@alma/widgets 4.0.6 → 4.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/src/Widgets/EligibilityModal/__tests__/Accessibility.test.d.ts +1 -0
- package/dist/types/src/Widgets/EligibilityModal/components/EligibilityPlansButtons/index.d.ts +1 -0
- package/dist/types/src/Widgets/EligibilityModal/components/Info/index.d.ts +1 -0
- package/dist/types/src/Widgets/EligibilityModal/components/Schedule/index.d.ts +1 -0
- package/dist/types/src/Widgets/PaymentPlans/__tests__/Accessibility.test.d.ts +1 -0
- package/dist/types/src/Widgets/PaymentPlans/__tests__/AriaLandmarks.test.d.ts +1 -0
- package/dist/types/src/Widgets/PaymentPlans/__tests__/KnowMoreButton.test.d.ts +1 -0
- package/dist/types/src/Widgets/PaymentPlans/classNames.const.d.ts +1 -0
- package/dist/types/src/Widgets/PaymentPlans/index.d.ts +9 -0
- package/dist/types/src/assets/Cross.d.ts +18 -2
- package/dist/types/src/assets/__tests__/Accessibility.test.d.ts +1 -0
- package/dist/types/src/assets/almaLogo.d.ts +18 -2
- package/dist/types/src/components/Installments/Installment/__tests__/Accessibility.test.d.ts +1 -0
- package/dist/types/src/components/Loader/__tests__/Accessibility.test.d.ts +1 -0
- package/dist/types/src/components/Modal/__tests__/Accessibility.test.d.ts +1 -0
- package/dist/types/src/components/SkipLinks/__tests__/Accessibility.test.d.ts +1 -0
- package/dist/types/src/components/SkipLinks/__tests__/SkipLinks.test.d.ts +0 -0
- package/dist/types/src/components/SkipLinks/index.d.ts +11 -0
- package/dist/types/src/hooks/useAnimationInstructions.d.ts +22 -0
- package/dist/types/src/hooks/useAnimationInstructions.test.d.ts +1 -0
- package/dist/types/src/hooks/useAnnounceText.d.ts +9 -0
- package/dist/types/src/hooks/useAnnounceText.test.d.ts +1 -0
- package/dist/types/src/hooks/useButtonAnimation.test.d.ts +1 -0
- package/dist/types/src/intl/messages/messages.de.json.d.ts +25 -1
- package/dist/types/src/intl/messages/messages.en.json.d.ts +25 -1
- package/dist/types/src/intl/messages/messages.es.json.d.ts +25 -1
- package/dist/types/src/intl/messages/messages.fr.json.d.ts +25 -1
- package/dist/types/src/intl/messages/messages.it.json.d.ts +25 -1
- package/dist/types/src/intl/messages/messages.nl.json.d.ts +25 -1
- package/dist/types/src/intl/messages/messages.pt.json.d.ts +25 -1
- package/dist/types/src/utils/paymentPlanStrings.d.ts +7 -0
- package/dist/widgets-wc.umd.js +25 -25
- package/dist/widgets-wc.umd.js.map +1 -1
- package/dist/widgets.css +1 -1
- package/dist/widgets.js +3603 -2981
- package/dist/widgets.js.map +1 -1
- package/dist/widgets.min.css +1 -1
- package/dist/widgets.umd.js +25 -25
- package/dist/widgets.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/widgets.umd.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
(function(L,F){typeof exports=="object"&&typeof module!="undefined"?F(exports):typeof define=="function"&&define.amd?define(["exports"],F):(L=typeof globalThis!="undefined"?globalThis:L||self,F(L.Alma={}))})(this,function(L){"use strict";var Nc=Object.defineProperty,Rc=Object.defineProperties;var wc=Object.getOwnPropertyDescriptors;var Zt=Object.getOwnPropertySymbols;var Xa=Object.prototype.hasOwnProperty,Za=Object.prototype.propertyIsEnumerable;var qa=(L,F,H)=>F in L?Nc(L,F,{enumerable:!0,configurable:!0,writable:!0,value:H}):L[F]=H,Re=(L,F)=>{for(var H in F||(F={}))Xa.call(F,H)&&qa(L,H,F[H]);if(Zt)for(var H of Zt(F))Za.call(F,H)&&qa(L,H,F[H]);return L},Ka=(L,F)=>Rc(L,wc(F));var Kt=(L,F)=>{var H={};for(var z in L)Xa.call(L,z)&&F.indexOf(z)<0&&(H[z]=L[z]);if(L!=null&&Zt)for(var z of Zt(L))F.indexOf(z)<0&&Za.call(L,z)&&(H[z]=L[z]);return H};var Ya=(L,F,H)=>new Promise((z,Ot)=>{var Y=xe=>{try{it(H.next(xe))}catch(Ce){Ot(Ce)}},Yt=xe=>{try{it(H.throw(xe))}catch(Ce){Ot(Ce)}},it=xe=>xe.done?z(xe.value):Promise.resolve(xe.value).then(Y,Yt);it((H=H.apply(L,F)).next())});var F=(e=>(e.PaymentPlans="PaymentPlans",e.Modal="Modal",e))(F||{}),H=(e=>(e.PENDING="pending",e.SUCCESS="success",e.FAILED="failed",e))(H||{}),z=(e=>(e.en="en",e["fr-FR"]="fr-FR",e.fr="fr",e["de-DE"]="de-DE",e.de="de",e.it="it",e["it-IT"]="it-IT",e.es="es",e["es-ES"]="es-ES",e.pt="pt",e["pt-PT"]="pt-PT",e.nl="nl",e["nl-NL"]="nl-NL",e["nl-BE"]="nl-BE",e))(z||{});function Ot(e){return Math.round(e*100)}function Y(e){return Number((e/100).toFixed(2))}function Yt(e){return String(Y(e)).replace(".",",")}const it=800,xe=e=>(e==null?void 0:e.installments_count)===1&&(e==null?void 0:e.deferred_days)===0&&(e==null?void 0:e.deferred_months)===0;(function(e){typeof e.matches!="function"&&(e.matches=e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||function(n){const r=this,o=(r.document||r.ownerDocument).querySelectorAll(n);let a=0;for(;o[a]&&o[a]!==r;)++a;return!!o[a]}),typeof e.closest!="function"&&(e.closest=function(n){let r=this;for(;r&&r.nodeType===1;){if(r.matches(n))return r;r=r.parentNode}return null})})(window.Element.prototype),"".trim||(String.prototype.trim=function(){return this.replace(/^[\s]+|[\s]+$/g,"")}),function(e){e.DOMException||((DOMException=function(o){this.message=o}).prototype=new Error);const t=/[\11\12\14\15\40]/;let n=0;const r=function(o,a){if(a==="")throw new DOMException(`Failed to execute '${o}' on 'DOMTokenList': The token provided must not be empty.`);if((n=a.search(t))!==-1)throw new DOMException(`Failed to execute '${o}' on 'DOMTokenList': The token provided ('${a[n]}') contains HTML space characters, which are not valid in tokens.`)};typeof DOMTokenList!="function"&&function(o){const a=o.document,i=o.Object,s=i.prototype.hasOwnProperty,l=i.defineProperty;let u=0,m=0;const c=function(){if(!u)throw TypeError("Illegal constructor")};c.prototype.toString=c.prototype.toLocaleString=function(){return this.value},c.prototype.add=function(){e:for(var _=0,b=arguments.length,v="",y=this[" uCL"],T=y[" uCLp"];_!==b;++_){v=`${arguments[_]}`,r("add",v);for(var E=0,R=T.length,g=v;E!==R;++E){if(this[E]===v)continue e;g+=` ${this[E]}`}this[R]=v,T.length+=1,T.value=g}m=1,y.className=T.value,m=0},c.prototype.remove=function(){for(var _=0,b=arguments.length,v="",y=this[" uCL"],T=y[" uCLp"];_!==b;++_){v=`${arguments[_]}`,r("remove",v);for(var E=0,R=T.length,g="",N=0;E!==R;++E)N?this[E-1]=this[E]:this[E]!==v?g+=`${this[E]} `:N=1;N&&(delete this[R],T.length-=1,T.value=g)}m=1,y.className=T.value,m=0},o.DOMTokenList=c;function d(){const _=o.event,b=_.propertyName;if(!m&&(b==="className"||b==="classList"&&!l)){const E=_.srcElement,R=E[" uCLp"],g=`${E[b]}`,N=g.trim().split(t),W=E[b==="classList"?" uCL":"classList"],ee=R.length;e:for(var v=0,y=R.length=N.length,T=0;v!==y;++v){for(let G=0;G!==v;++G)if(N[G]===N[v]){T++;continue e}W[v-T]=N[v]}for(let G=y-T;G<ee;++G)delete W[G];if(b!=="classList")return;m=1,E.classList=W,E.className=g,m=0,W.length=N.length-T}}function h(_){if(!_||!("innerHTML"in _))throw TypeError("Illegal invocation");_.detachEvent("onpropertychange",d),u=1;try{var b=function(){};b.prototype=new c}finally{u=0}const v=b.prototype,y=new b;e:for(var T=_.className.trim().split(t),E=0,R=T.length,g=0;E!==R;++E){for(let N=0;N!==E;++N)if(T[N]===T[E]){g++;continue e}this[E-g]=T[E]}v.length=R-g,v.value=_.className,v[" uCL"]=_,l?(l(_,"classList",{enumerable:1,get(){return y},configurable:0,set(N){m=1,_.className=v.value=N+="",m=0;const W=N.trim().split(t),ee=v.length;e:for(var G=0,X=v.length=W.length,ge=0;G!==X;++G){for(let ue=0;ue!==G;++ue)if(W[ue]===W[G]){ge++;continue e}y[G-ge]=W[G]}for(let ue=X-ge;ue<ee;++ue)delete y[ue]}}),l(_," uCLp",{enumerable:0,configurable:0,writeable:0,value:b.prototype}),l(v," uCL",{enumerable:0,configurable:0,writeable:0,value:_})):(_.classList=y,_[" uCL"]=y,_[" uCLp"]=b.prototype),_.attachEvent("onpropertychange",d)}try{o.Object.defineProperty(o.Element.prototype,"classList",{enumerable:1,get(_){return s.call(this,"classList")||h(this),this.classList},configurable:0,set(_){this.className=_}})}catch(_){o[" uCL"]=h,a.documentElement.firstChild.appendChild(a.createElement("style")).styleSheet.cssText='_*{x-uCLp:expression(!this.hasOwnProperty("classList")&&window[" uCL"](this))}[class]{x-uCLp/**/:expression(!this.hasOwnProperty("classList")&&window[" uCL"](this))}'}}(e),function(o,a){o.item||(o.item=function(i){function s(l){return l===void 0?null:l}return s(this[i])}),(!o.toggle||a.toggle("a",0)!==!1)&&(o.toggle=function(i){if(arguments.length>1)return this[arguments[1]?"add":"remove"](i),!!arguments[1];const s=this.value;return this.remove(s),s===this.value&&(this.add(i),!0)}),(!o.replace||typeof a.replace("a","b")!="boolean")&&(o.replace=function(i,s){r("replace",i),r("replace",s);const l=this.value;return this.remove(i),this.value!==l&&(this.add(s),!0)}),o.contains||(o.contains=function(i){for(let s=0,l=this.length;s!==l;++s)if(this[s]===i)return!0;return!1}),o.forEach||(o.forEach=function(i){if(arguments.length===1)for(var s=0,l=this.length;s!==l;++s)i(this[s],s,this);else for(var s=0,l=this.length,u=arguments[1];s!==l;++s)i.call(u,this[s],s,this)}),o.entries||(o.entries=function(){const s=this;return{next(){return 0<s.length?{value:[0,s[0]],done:!1}:{done:!0}}}}),o.values||(o.values=function(){const s=this;return{next(){return 0<s.length?{value:s[0],done:!1}:{done:!0}}}}),o.keys||(o.keys=function(){const s=this;return{next(){return 0<s.length?{value:0,done:!1}:{done:!0}}}})}(e.DOMTokenList.prototype,e.document.createElement("div").classList)}(window);var Ce,O,ir,He,sr,lr,Jt,Qt,en,tn,ur,st={},cr=[],Ja=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Nt=Array.isArray;function Se(e,t){for(var n in t)e[n]=t[n];return e}function mr(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ce(e,t,n){var r,o,a,i={};for(a in t)a=="key"?r=t[a]:a=="ref"?o=t[a]:i[a]=t[a];if(arguments.length>2&&(i.children=arguments.length>3?Ce.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)i[a]===void 0&&(i[a]=e.defaultProps[a]);return lt(e,i,r,o,null)}function lt(e,t,n,r,o){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o==null?++ir:o,__i:-1,__u:0};return o==null&&O.vnode!=null&&O.vnode(a),a}function fr(){return{current:null}}function me(e){return e.children}function ve(e,t){this.props=e,this.context=t}function ze(e,t){if(t==null)return e.__?ze(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?ze(e):null}function dr(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return dr(e)}}function nn(e){(!e.__d&&(e.__d=!0)&&He.push(e)&&!Rt.__r++||sr!==O.debounceRendering)&&((sr=O.debounceRendering)||lr)(Rt)}function Rt(){var e,t,n,r,o,a,i,s;for(He.sort(Jt);e=He.shift();)e.__d&&(t=He.length,r=void 0,a=(o=(n=e).__v).__e,i=[],s=[],n.__P&&((r=Se({},o)).__v=o.__v+1,O.vnode&&O.vnode(r),rn(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[a]:null,i,a==null?ze(o):a,!!(32&o.__u),s),r.__v=o.__v,r.__.__k[r.__i]=r,vr(i,r,s),r.__e!=a&&dr(r)),He.length>t&&He.sort(Jt));Rt.__r=0}function hr(e,t,n,r,o,a,i,s,l,u,m){var c,d,h,_,b,v=r&&r.__k||cr,y=t.length;for(n.__d=l,Qa(n,t,v),l=n.__d,c=0;c<y;c++)(h=n.__k[c])!=null&&(d=h.__i===-1?st:v[h.__i]||st,h.__i=c,rn(e,h,d,o,a,i,s,l,u,m),_=h.__e,h.ref&&d.ref!=h.ref&&(d.ref&&on(d.ref,null,h),m.push(h.ref,h.__c||_,h)),b==null&&_!=null&&(b=_),65536&h.__u||d.__k===h.__k?l=pr(h,l,e):typeof h.type=="function"&&h.__d!==void 0?l=h.__d:_&&(l=_.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=b}function Qa(e,t,n){var r,o,a,i,s,l=t.length,u=n.length,m=u,c=0;for(e.__k=[],r=0;r<l;r++)(o=t[r])!=null&&typeof o!="boolean"&&typeof o!="function"?(i=r+c,(o=e.__k[r]=typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?lt(null,o,null,null,null):Nt(o)?lt(me,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?lt(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,a=null,(s=o.__i=ei(o,n,i,m))!==-1&&(m--,(a=n[s])&&(a.__u|=131072)),a==null||a.__v===null?(s==-1&&c--,typeof o.type!="function"&&(o.__u|=65536)):s!==i&&(s==i-1?c--:s==i+1?c++:(s>i?c--:c++,o.__u|=65536))):o=e.__k[r]=null;if(m)for(r=0;r<u;r++)(a=n[r])!=null&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=ze(a)),yr(a,a))}function pr(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=pr(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=ze(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Oe(e,t){return t=t||[],e==null||typeof e=="boolean"||(Nt(e)?e.some(function(n){Oe(n,t)}):t.push(e)),t}function ei(e,t,n,r){var o=e.key,a=e.type,i=n-1,s=n+1,l=t[n];if(l===null||l&&o==l.key&&a===l.type&&!(131072&l.__u))return n;if(r>(l!=null&&!(131072&l.__u)?1:0))for(;i>=0||s<t.length;){if(i>=0){if((l=t[i])&&!(131072&l.__u)&&o==l.key&&a===l.type)return i;i--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&o==l.key&&a===l.type)return s;s++}}return-1}function _r(e,t,n){t[0]==="-"?e.setProperty(t,n==null?"":n):e[t]=n==null?"":typeof n!="number"||Ja.test(t)?n:n+"px"}function wt(e,t,n,r,o){var a;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||_r(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||_r(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")a=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r?n.u=r.u:(n.u=Qt,e.addEventListener(t,a?tn:en,a)):e.removeEventListener(t,a?tn:en,a);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n==null?"":n;break e}catch(i){}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function gr(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Qt++;else if(t.t<n.u)return;return n(O.event?O.event(t):t)}}}function rn(e,t,n,r,o,a,i,s,l,u){var m,c,d,h,_,b,v,y,T,E,R,g,N,W,ee,G,X=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),a=[s=t.__e=n.__e]),(m=O.__b)&&m(t);e:if(typeof X=="function")try{if(y=t.props,T="prototype"in X&&X.prototype.render,E=(m=X.contextType)&&r[m.__c],R=m?E?E.props.value:m.__:r,n.__c?v=(c=t.__c=n.__c).__=c.__E:(T?t.__c=c=new X(y,R):(t.__c=c=new ve(y,R),c.constructor=X,c.render=ni),E&&E.sub(c),c.props=y,c.state||(c.state={}),c.context=R,c.__n=r,d=c.__d=!0,c.__h=[],c._sb=[]),T&&c.__s==null&&(c.__s=c.state),T&&X.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=Se({},c.__s)),Se(c.__s,X.getDerivedStateFromProps(y,c.__s))),h=c.props,_=c.state,c.__v=t,d)T&&X.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),T&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(T&&X.getDerivedStateFromProps==null&&y!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(y,R),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(y,c.__s,R)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=y,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(ge){ge&&(ge.__=t)}),g=0;g<c._sb.length;g++)c.__h.push(c._sb[g]);c._sb=[],c.__h.length&&i.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(y,c.__s,R),T&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(h,_,b)})}if(c.context=R,c.props=y,c.__P=e,c.__e=!1,N=O.__r,W=0,T){for(c.state=c.__s,c.__d=!1,N&&N(t),m=c.render(c.props,c.state,c.context),ee=0;ee<c._sb.length;ee++)c.__h.push(c._sb[ee]);c._sb=[]}else do c.__d=!1,N&&N(t),m=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++W<25);c.state=c.__s,c.getChildContext!=null&&(r=Se(Se({},r),c.getChildContext())),T&&!d&&c.getSnapshotBeforeUpdate!=null&&(b=c.getSnapshotBeforeUpdate(h,_)),hr(e,Nt(G=m!=null&&m.type===me&&m.key==null?m.props.children:m)?G:[G],t,n,r,o,a,i,s,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&i.push(c),v&&(c.__E=c.__=null)}catch(ge){if(t.__v=null,l||a!=null){for(t.__u|=l?160:128;s&&s.nodeType===8&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,t.__e=s}else t.__e=n.__e,t.__k=n.__k;O.__e(ge,t,n)}else a==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=ti(n.__e,t,n,r,o,a,i,l,u);(m=O.diffed)&&m(t)}function vr(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)on(n[r],n[++r],n[++r]);O.__c&&O.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(a){a.call(o)})}catch(a){O.__e(a,o.__v)}})}function ti(e,t,n,r,o,a,i,s,l){var u,m,c,d,h,_,b,v=n.props,y=t.props,T=t.type;if(T==="svg"?o="http://www.w3.org/2000/svg":T==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),a!=null){for(u=0;u<a.length;u++)if((h=a[u])&&"setAttribute"in h==!!T&&(T?h.localName===T:h.nodeType===3)){e=h,a[u]=null;break}}if(e==null){if(T===null)return document.createTextNode(y);e=document.createElementNS(o,T,y.is&&y),s&&(O.__m&&O.__m(t,a),s=!1),a=null}if(T===null)v===y||s&&e.data===y||(e.data=y);else{if(a=a&&Ce.call(e.childNodes),v=n.props||st,!s&&a!=null)for(v={},u=0;u<e.attributes.length;u++)v[(h=e.attributes[u]).name]=h.value;for(u in v)if(h=v[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=h;else if(!(u in y)){if(u=="value"&&"defaultValue"in y||u=="checked"&&"defaultChecked"in y)continue;wt(e,u,null,h,o)}}for(u in y)h=y[u],u=="children"?d=h:u=="dangerouslySetInnerHTML"?m=h:u=="value"?_=h:u=="checked"?b=h:s&&typeof h!="function"||v[u]===h||wt(e,u,h,v[u],o);if(m)s||c&&(m.__html===c.__html||m.__html===e.innerHTML)||(e.innerHTML=m.__html),t.__k=[];else if(c&&(e.innerHTML=""),hr(e,Nt(d)?d:[d],t,n,r,T==="foreignObject"?"http://www.w3.org/1999/xhtml":o,a,i,a?a[0]:n.__k&&ze(n,0),s,l),a!=null)for(u=a.length;u--;)mr(a[u]);s||(u="value",T==="progress"&&_==null?e.removeAttribute("value"):_!==void 0&&(_!==e[u]||T==="progress"&&!_||T==="option"&&_!==v[u])&&wt(e,u,_,v[u],o),u="checked",b!==void 0&&b!==e[u]&&wt(e,u,b,v[u],o))}return e}function on(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){O.__e(o,n)}}function yr(e,t,n){var r,o;if(O.unmount&&O.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||on(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(a){O.__e(a,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&yr(r[o],t,n||typeof e.type!="function");n||mr(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function ni(e,t,n){return this.constructor(e,n)}function ut(e,t,n){var r,o,a,i;O.__&&O.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,a=[],i=[],rn(t,e=(!r&&n||t).__k=ce(me,null,[e]),o||st,st,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?Ce.call(t.childNodes):null,a,!r&&n?n:o?o.__e:t.firstChild,r,i),vr(a,e,i)}function br(e,t){ut(e,t,br)}function ri(e,t,n){var r,o,a,i,s=Se({},e.props);for(a in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)a=="key"?r=t[a]:a=="ref"?o=t[a]:s[a]=t[a]===void 0&&i!==void 0?i[a]:t[a];return arguments.length>2&&(s.children=arguments.length>3?Ce.call(arguments,2):n),lt(e.type,s,r||e.key,o||e.ref,null)}function ct(e,t){var n={__c:t="__cC"+ur++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,a;return this.getChildContext||(o=new Set,(a={})[t]=this,this.getChildContext=function(){return a},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&o.forEach(function(s){s.__e=!0,nn(s)})},this.sub=function(i){o.add(i);var s=i.componentWillUnmount;i.componentWillUnmount=function(){o&&o.delete(i),s&&s.call(i)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Ce=cr.slice,O={__e:function(e,t,n,r){for(var o,a,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((a=o.constructor)&&a.getDerivedStateFromError!=null&&(o.setState(a.getDerivedStateFromError(e)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(s){e=s}throw e}},ir=0,ve.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Se({},this.state),typeof e=="function"&&(e=e(Se({},n),this.props)),e&&Se(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),nn(this))},ve.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),nn(this))},ve.prototype.render=me,He=[],lr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Jt=function(e,t){return e.__v.__b-t.__v.__b},Rt.__r=0,Qt=0,en=gr(!1),tn=gr(!0),ur=0;var Ne,k,an,Er,qe=0,Tr=[],j=O,xr=j.__b,Ar=j.__r,Ir=j.diffed,Cr=j.__c,Sr=j.unmount,Or=j.__;function Pe(e,t){j.__h&&j.__h(k,e,qe||t),qe=0;var n=k.__H||(k.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ne(e){return qe=1,Mt(Rr,e)}function Mt(e,t,n){var r=Pe(Ne++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Rr(void 0,t),function(s){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,s);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=k,!k.u)){var o=function(s,l,u){if(!r.__c.__H)return!0;var m=r.__c.__H.__.filter(function(d){return!!d.__c});if(m.every(function(d){return!d.__N}))return!a||a.call(this,s,l,u);var c=!1;return m.forEach(function(d){if(d.__N){var h=d.__[0];d.__=d.__N,d.__N=void 0,h!==d.__[0]&&(c=!0)}}),!(!c&&r.__c.props===s)&&(!a||a.call(this,s,l,u))};k.u=!0;var a=k.shouldComponentUpdate,i=k.componentWillUpdate;k.componentWillUpdate=function(s,l,u){if(this.__e){var m=a;a=void 0,o(s,l,u),a=m}i&&i.call(this,s,l,u)},k.shouldComponentUpdate=o}return r.__N||r.__}function fe(e,t){var n=Pe(Ne++,3);!j.__s&&fn(n.__H,t)&&(n.__=e,n.i=t,k.__H.__h.push(n))}function Xe(e,t){var n=Pe(Ne++,4);!j.__s&&fn(n.__H,t)&&(n.__=e,n.i=t,k.__h.push(n))}function Ht(e){return qe=5,mt(function(){return{current:e}},[])}function sn(e,t,n){qe=6,Xe(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function mt(e,t){var n=Pe(Ne++,7);return fn(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ln(e,t){return qe=8,mt(function(){return e},t)}function ft(e){var t=k.context[e.__c],n=Pe(Ne++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(k)),t.props.value):e.__}function un(e,t){j.useDebugValue&&j.useDebugValue(t?t(e):e)}function oi(e){var t=Pe(Ne++,10),n=ne();return t.__=e,k.componentDidCatch||(k.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function cn(){var e=Pe(Ne++,11);if(!e.__){for(var t=k.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function ai(){for(var e;e=Tr.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Pt),e.__H.__h.forEach(mn),e.__H.__h=[]}catch(t){e.__H.__h=[],j.__e(t,e.__v)}}j.__b=function(e){k=null,xr&&xr(e)},j.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Or&&Or(e,t)},j.__r=function(e){Ar&&Ar(e),Ne=0;var t=(k=e.__c).__H;t&&(an===k?(t.__h=[],k.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Pt),t.__h.forEach(mn),t.__h=[],Ne=0)),an=k},j.diffed=function(e){Ir&&Ir(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Tr.push(t)!==1&&Er===j.requestAnimationFrame||((Er=j.requestAnimationFrame)||ii)(ai)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),an=k=null},j.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Pt),n.__h=n.__h.filter(function(r){return!r.__||mn(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],j.__e(r,n.__v)}}),Cr&&Cr(e,t)},j.unmount=function(e){Sr&&Sr(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Pt(r)}catch(o){t=o}}),n.__H=void 0,t&&j.__e(t,n.__v))};var Nr=typeof requestAnimationFrame=="function";function ii(e){var t,n=function(){clearTimeout(r),Nr&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Nr&&(t=requestAnimationFrame(n))}function Pt(e){var t=k,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),k=t}function mn(e){var t=k;e.__c=e.__(),k=t}function fn(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Rr(e,t){return typeof t=="function"?t(e):t}function dn(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function dt(e,t){this.props=e,this.context=t}function hn(e,t){function n(o){var a=this.props.ref,i=a==o.ref;return!i&&a&&(a.call?a(null):a.current=null),t?!t(this.props,o)||!i:dn(this.props,o)}function r(o){return this.shouldComponentUpdate=n,ce(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(dt.prototype=new ve).isPureReactComponent=!0,dt.prototype.shouldComponentUpdate=function(e,t){return dn(this.props,e)||dn(this.state,t)};var wr=O.__b;O.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),wr&&wr(e)};var si=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Mr(e){function t(n){if(!("ref"in n))return e(n,null);var r=n.ref;delete n.ref;var o=e(n,r);return n.ref=r,o}return t.$$typeof=si,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Hr=function(e,t){return e==null?null:Oe(Oe(e).map(t))},ht={map:Hr,forEach:Hr,count:function(e){return e?Oe(e).length:0},only:function(e){var t=Oe(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Oe},li=O.__e;O.__e=function(e,t,n,r){if(e.then){for(var o,a=t;a=a.__;)if((o=a.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}li(e,t,n,r)};var Pr=O.unmount;function Lr(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=function(r,o){for(var a in o)r[a]=o[a];return r}({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Lr(r,t,n)})),e}function Dr(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Dr(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function pt(){this.__u=0,this.t=null,this.__b=null}function Br(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ur(e){var t,n,r;function o(a){if(t||(t=e()).then(function(i){n=i.default||i},function(i){r=i}),r)throw r;if(!n)throw t;return ce(n,a)}return o.displayName="Lazy",o.__f=!0,o}function Ze(){this.u=null,this.o=null}O.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Pr&&Pr(e)},(pt.prototype=new ve).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Br(r.__v),a=!1,i=function(){a||(a=!0,n.__R=null,o?o(s):s())};n.__R=i;var s=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=Dr(l,l.__c.__P,l.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.t.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},pt.prototype.componentWillUnmount=function(){this.t=[]},pt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Lr(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&ce(me,null,e.fallback);return o&&(o.__u&=-33),[ce(me,null,t.__a?null:e.children),o]};var Fr=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function ui(e){return this.getChildContext=function(){return e.context},e.children}function ci(e){var t=this,n=e.i;t.componentWillUnmount=function(){ut(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),ut(ce(ui,{context:t.context},e.__v),t.l)}function kr(e,t){var n=ce(ci,{__v:e,i:t});return n.containerInfo=t,n}(Ze.prototype=new ve).__a=function(e){var t=this,n=Br(t.__v),r=t.o.get(e);return r[0]++,function(o){var a=function(){t.props.revealOrder?(r.push(o),Fr(t,e,r)):o()};n?n(a):a()}},Ze.prototype.render=function(e){this.u=null,this.o=new Map;var t=Oe(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Ze.prototype.componentDidUpdate=Ze.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Fr(e,n,t)})};var Gr=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,mi=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,fi=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,di=/[A-Z0-9]/g,hi=typeof document!="undefined",pi=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function pn(e,t,n){return t.__k==null&&(t.textContent=""),ut(e,t),typeof n=="function"&&n(),e?e.__c:null}function $r(e,t,n){return br(e,t),typeof n=="function"&&n(),e?e.__c:null}ve.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ve.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Wr=O.event;function _i(){}function gi(){return this.cancelBubble}function vi(){return this.defaultPrevented}O.event=function(e){return Wr&&(e=Wr(e)),e.persist=_i,e.isPropagationStopped=gi,e.isDefaultPrevented=vi,e.nativeEvent=e};var _n,yi={enumerable:!1,configurable:!0,get:function(){return this.class}},jr=O.vnode;O.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},a=r.indexOf("-")===-1;for(var i in n){var s=n[i];if(!(i==="value"&&"defaultValue"in n&&s==null||hi&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var l=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&s===!0?s="":l==="translate"&&s==="no"?s=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?i="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||pi(n.type)?l==="onfocus"?i="onfocusin":l==="onblur"?i="onfocusout":fi.test(i)&&(i=l):l=i="oninput":a&&mi.test(i)?i=i.replace(di,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&o[i=l]&&(i="oninputCapture"),o[i]=s}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Oe(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Oe(n.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",yi)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Gr,jr&&jr(e)};var Vr=O.__r;O.__r=function(e){Vr&&Vr(e),_n=e.__c};var zr=O.diffed;O.diffed=function(e){zr&&zr(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),_n=null};var qr={ReactCurrentDispatcher:{current:{readContext:function(e){return _n.__n[e.__c].props.value},useCallback:ln,useContext:ft,useDebugValue:un,useDeferredValue:yn,useEffect:fe,useId:cn,useImperativeHandle:sn,useInsertionEffect:En,useLayoutEffect:Xe,useMemo:mt,useReducer:Mt,useRef:Ht,useState:ne,useSyncExternalStore:Tn,useTransition:bn}}},bi="18.3.1";function Xr(e){return ce.bind(null,e)}function _t(e){return!!e&&e.$$typeof===Gr}function Zr(e){return _t(e)&&e.type===me}function Kr(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Yr(e){return _t(e)?ri.apply(null,arguments):e}function gn(e){return!!e.__k&&(ut(null,e),!0)}function Jr(e){return e&&(e.base||e.nodeType===1&&e)||null}var Qr=function(e,t){return e(t)},eo=function(e,t){return e(t)},to=me;function vn(e){e()}function yn(e){return e}function bn(){return[!1,vn]}var En=Xe,no=_t;function Tn(e,t){var n=t(),r=ne({h:{__:n,v:t}}),o=r[0].h,a=r[1];return Xe(function(){o.__=n,o.v=t,xn(o)&&a({h:o})},[e,n,t]),fe(function(){return xn(o)&&a({h:o}),e(function(){xn(o)&&a({h:o})})},[e]),n}function xn(e){var t,n,r=e.v,o=e.__;try{var a=r();return!((t=o)===(n=a)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch(i){return!0}}var f={useState:ne,useId:cn,useReducer:Mt,useEffect:fe,useLayoutEffect:Xe,useInsertionEffect:En,useTransition:bn,useDeferredValue:yn,useSyncExternalStore:Tn,startTransition:vn,useRef:Ht,useImperativeHandle:sn,useMemo:mt,useCallback:ln,useContext:ft,useDebugValue:un,version:"18.3.1",Children:ht,render:pn,hydrate:$r,unmountComponentAtNode:gn,createPortal:kr,createElement:ce,createContext:ct,createFactory:Xr,cloneElement:Yr,createRef:fr,Fragment:me,isValidElement:_t,isElement:no,isFragment:Zr,isMemo:Kr,findDOMNode:Jr,Component:ve,PureComponent:dt,memo:hn,forwardRef:Mr,flushSync:eo,unstable_batchedUpdates:Qr,StrictMode:to,Suspense:pt,SuspenseList:Ze,lazy:Ur,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:qr};const Ei=Object.freeze(Object.defineProperty({__proto__:null,Children:ht,Component:ve,Fragment:me,PureComponent:dt,StrictMode:to,Suspense:pt,SuspenseList:Ze,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:qr,cloneElement:Yr,createContext:ct,createElement:ce,createFactory:Xr,createPortal:kr,createRef:fr,default:f,findDOMNode:Jr,flushSync:eo,forwardRef:Mr,hydrate:$r,isElement:no,isFragment:Zr,isMemo:Kr,isValidElement:_t,lazy:Ur,memo:hn,render:pn,startTransition:vn,unmountComponentAtNode:gn,unstable_batchedUpdates:Qr,useCallback:ln,useContext:ft,useDebugValue:un,useDeferredValue:yn,useEffect:fe,useErrorBoundary:oi,useId:cn,useImperativeHandle:sn,useInsertionEffect:En,useLayoutEffect:Xe,useMemo:mt,useReducer:Mt,useRef:Ht,useState:ne,useSyncExternalStore:Tn,useTransition:bn,version:bi},Symbol.toStringTag,{value:"Module"}));function ro(e){return{render:function(t){pn(t,e)},unmount:function(){gn(e)}}}var An=function(e,t){return An=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},An(e,t)};function he(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");An(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var x=function(){return x=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},x.apply(this,arguments)};function Ke(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function re(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function oe(e,t){var n=t&&t.cache?t.cache:Si,r=t&&t.serializer?t.serializer:Ci,o=t&&t.strategy?t.strategy:xi;return o(e,{cache:n,serializer:r})}function Ti(e){return e==null||typeof e=="number"||typeof e=="boolean"}function oo(e,t,n,r){var o=Ti(r)?r:n(r),a=t.get(o);return typeof a=="undefined"&&(a=e.call(this,r),t.set(o,a)),a}function ao(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),a=t.get(o);return typeof a=="undefined"&&(a=e.apply(this,r),t.set(o,a)),a}function In(e,t,n,r,o){return n.bind(t,e,r,o)}function xi(e,t){var n=e.length===1?oo:ao;return In(e,this,n,t.cache.create(),t.serializer)}function Ai(e,t){return In(e,this,ao,t.cache.create(),t.serializer)}function Ii(e,t){return In(e,this,oo,t.cache.create(),t.serializer)}var Ci=function(){return JSON.stringify(arguments)};function Cn(){this.cache=Object.create(null)}Cn.prototype.get=function(e){return this.cache[e]},Cn.prototype.set=function(e,t){this.cache[e]=t};var Si={create:function(){return new Cn}},ae={variadic:Ai,monadic:Ii};function io(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}oe(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,re([void 0],t,!1)))},{strategy:ae.variadic}),oe(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,re([void 0],t,!1)))},{strategy:ae.variadic}),oe(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,re([void 0],t,!1)))},{strategy:ae.variadic}),oe(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.Locale).bind.apply(e,re([void 0],t,!1)))},{strategy:ae.variadic}),oe(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.ListFormat).bind.apply(e,re([void 0],t,!1)))},{strategy:ae.variadic});var w;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(w||(w={}));var $;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})($||($={}));var Ye;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Ye||(Ye={}));function so(e){return e.type===$.literal}function Oi(e){return e.type===$.argument}function lo(e){return e.type===$.number}function uo(e){return e.type===$.date}function co(e){return e.type===$.time}function mo(e){return e.type===$.select}function fo(e){return e.type===$.plural}function Ni(e){return e.type===$.pound}function ho(e){return e.type===$.tag}function po(e){return!!(e&&typeof e=="object"&&e.type===Ye.number)}function Sn(e){return!!(e&&typeof e=="object"&&e.type===Ye.dateTime)}var _o=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ri=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function wi(e){var t={};return e.replace(Ri,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var Mi=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Hi(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Mi).filter(function(d){return d.length>0}),n=[],r=0,o=t;r<o.length;r++){var a=o[r],i=a.split("/");if(i.length===0)throw new Error("Invalid number skeleton");for(var s=i[0],l=i.slice(1),u=0,m=l;u<m.length;u++){var c=m[u];if(c.length===0)throw new Error("Invalid number skeleton")}n.push({stem:s,options:l})}return n}function Pi(e){return e.replace(/^(.*?)-/,"")}var go=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,vo=/^(@+)?(\+|#+)?[rs]?$/g,Li=/(\*)(0+)|(#+)(0+)|(0+)/g,yo=/^(0+)$/;function bo(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(vo,function(n,r,o){return typeof o!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):o==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof o=="string"?o.length:0)),""}),t}function Eo(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Di(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!yo.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function To(e){var t={},n=Eo(e);return n||t}function Bi(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Pi(o.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=x(x(x({},t),{notation:"scientific"}),o.options.reduce(function(l,u){return x(x({},l),To(u))},{}));continue;case"engineering":t=x(x(x({},t),{notation:"engineering"}),o.options.reduce(function(l,u){return x(x({},l),To(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Li,function(l,u,m,c,d,h){if(u)t.minimumIntegerDigits=m.length;else{if(c&&d)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(yo.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(go.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(go,function(l,u,m,c,d,h){return m==="*"?t.minimumFractionDigits=u.length:c&&c[0]==="#"?t.maximumFractionDigits=c.length:d&&h?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+h.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var a=o.options[0];a==="w"?t=x(x({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=x(x({},t),bo(a)));continue}if(vo.test(o.stem)){t=x(x({},t),bo(o.stem));continue}var i=Eo(o.stem);i&&(t=x(x({},t),i));var s=Di(o.stem);s&&(t=x(x({},t),s))}return t}var Lt={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Ui(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if(o==="j"){for(var a=0;r+1<e.length&&e.charAt(r+1)===o;)a++,r++;var i=1+(a&1),s=a<2?1:3+(a>>1),l="a",u=Fi(t);for((u=="H"||u=="k")&&(s=0);s-- >0;)n+=l;for(;i-- >0;)n=u+n}else o==="J"?n+="H":n+=o}return n}function Fi(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var o=Lt[r||""]||Lt[n||""]||Lt["".concat(n,"-001")]||Lt["001"];return o[0]}var On,ki=new RegExp("^".concat(_o.source,"*")),Gi=new RegExp("".concat(_o.source,"*$"));function M(e,t){return{start:e,end:t}}var $i=!!String.prototype.startsWith&&"_a".startsWith("a",1),Wi=!!String.fromCodePoint,ji=!!Object.fromEntries,Vi=!!String.prototype.codePointAt,zi=!!String.prototype.trimStart,qi=!!String.prototype.trimEnd,Xi=!!Number.isSafeInteger,Zi=Xi?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Nn=!0;try{var Ki=Co("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Nn=((On=Ki.exec("a"))===null||On===void 0?void 0:On[0])==="a"}catch(e){Nn=!1}var xo=$i?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},Rn=Wi?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",o=t.length,a=0,i;o>a;){if(i=t[a++],i>1114111)throw RangeError(i+" is not a valid code point");r+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320)}return r},Ao=ji?Object.fromEntries:function(t){for(var n={},r=0,o=t;r<o.length;r++){var a=o[r],i=a[0],s=a[1];n[i]=s}return n},Io=Vi?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var o=t.charCodeAt(n),a;return o<55296||o>56319||n+1===r||(a=t.charCodeAt(n+1))<56320||a>57343?o:(o-55296<<10)+(a-56320)+65536}},Yi=zi?function(t){return t.trimStart()}:function(t){return t.replace(ki,"")},Ji=qi?function(t){return t.trimEnd()}:function(t){return t.replace(Gi,"")};function Co(e,t){return new RegExp(e,t)}var wn;if(Nn){var So=Co("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");wn=function(t,n){var r;So.lastIndex=n;var o=So.exec(t);return(r=o[1])!==null&&r!==void 0?r:""}}else wn=function(t,n){for(var r=[];;){var o=Io(t,n);if(o===void 0||Oo(o)||ns(o))break;r.push(o),n+=o>=65536?2:1}return Rn.apply(void 0,r)};var Qi=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var o=[];!this.isEOF();){var a=this.char();if(a===123){var i=this.parseArgument(t,r);if(i.err)return i;o.push(i.val)}else{if(a===125&&t>0)break;if(a===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),o.push({type:$.pound,location:M(s,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(w.UNMATCHED_CLOSING_TAG,M(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&Mn(this.peek()||0)){var i=this.parseTag(t,n);if(i.err)return i;o.push(i.val)}else{var i=this.parseLiteral(t,n);if(i.err)return i;o.push(i.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:$.literal,value:"<".concat(o,"/>"),location:M(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,n,!0);if(a.err)return a;var i=a.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Mn(this.char()))return this.error(w.INVALID_TAG,M(s,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return o!==u?this.error(w.UNMATCHED_CLOSING_TAG,M(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:$.tag,value:o,children:i,location:M(r,this.clonePosition())},err:null}:this.error(w.INVALID_TAG,M(s,this.clonePosition())))}else return this.error(w.UNCLOSED_TAG,M(r,this.clonePosition()))}else return this.error(w.INVALID_TAG,M(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ts(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),o="";;){var a=this.tryParseQuote(n);if(a){o+=a;continue}var i=this.tryParseUnquoted(t,n);if(i){o+=i;continue}var s=this.tryParseLeftAngleBracket();if(s){o+=s;continue}break}var l=M(r,this.clonePosition());return{val:{type:$.literal,value:o,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!es(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return Rn.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),Rn(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE,M(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(w.EMPTY_ARGUMENT,M(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(w.MALFORMED_ARGUMENT,M(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE,M(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:$.argument,value:o,location:M(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE,M(r,this.clonePosition())):this.parseArgumentOptions(t,n,o,r);default:return this.error(w.MALFORMED_ARGUMENT,M(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=wn(this.message,n),o=n+r.length;this.bumpTo(o);var a=this.clonePosition(),i=M(t,a);return{value:r,location:i}},e.prototype.parseArgumentOptions=function(t,n,r,o){var a,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(w.EXPECT_ARGUMENT_TYPE,M(i,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var m=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var d=Ji(c.val);if(d.length===0)return this.error(w.EXPECT_ARGUMENT_STYLE,M(this.clonePosition(),this.clonePosition()));var h=M(m,this.clonePosition());u={style:d,styleLocation:h}}var _=this.tryParseArgumentClose(o);if(_.err)return _;var b=M(o,this.clonePosition());if(u&&xo(u==null?void 0:u.style,"::",0)){var v=Yi(u.style.slice(2));if(s==="number"){var c=this.parseNumberSkeletonFromString(v,u.styleLocation);return c.err?c:{val:{type:$.number,value:r,location:b,style:c.val},err:null}}else{if(v.length===0)return this.error(w.EXPECT_DATE_TIME_SKELETON,b);var y=v;this.locale&&(y=Ui(v,this.locale));var d={type:Ye.dateTime,pattern:y,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?wi(y):{}},T=s==="date"?$.date:$.time;return{val:{type:T,value:r,location:b,style:d},err:null}}}return{val:{type:s==="number"?$.number:s==="date"?$.date:$.time,value:r,location:b,style:(a=u==null?void 0:u.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS,M(E,x({},E)));this.bumpSpace();var R=this.parseIdentifierIfPossible(),g=0;if(s!=="select"&&R.value==="offset"){if(!this.bumpIf(":"))return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,M(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),R=this.parseIdentifierIfPossible(),g=c.val}var N=this.tryParsePluralOrSelectOptions(t,s,n,R);if(N.err)return N;var _=this.tryParseArgumentClose(o);if(_.err)return _;var W=M(o,this.clonePosition());return s==="select"?{val:{type:$.select,value:r,options:Ao(N.val),location:W},err:null}:{val:{type:$.plural,value:r,options:Ao(N.val),offset:g,pluralType:s==="plural"?"cardinal":"ordinal",location:W},err:null}}default:return this.error(w.INVALID_ARGUMENT_TYPE,M(i,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE,M(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(w.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,M(o,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=Hi(t)}catch(o){return this.error(w.INVALID_NUMBER_SKELETON,n)}return{val:{type:Ye.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?Bi(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,o){for(var a,i=!1,s=[],l=new Set,u=o.value,m=o.location;;){if(u.length===0){var c=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_SELECTOR,w.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;m=M(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}else break}if(l.has(u))return this.error(n==="select"?w.DUPLICATE_SELECT_ARGUMENT_SELECTOR:w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,m);u==="other"&&(i=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,M(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,n,r);if(_.err)return _;var b=this.tryParseArgumentClose(h);if(b.err)return b;s.push([u,{value:_.val,location:M(h,this.clonePosition())}]),l.add(u),this.bumpSpace(),a=this.parseIdentifierIfPossible(),u=a.value,m=a.location}return s.length===0?this.error(n==="select"?w.EXPECT_SELECT_ARGUMENT_SELECTOR:w.EXPECT_PLURAL_ARGUMENT_SELECTOR,M(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(w.MISSING_OTHER_CLAUSE,M(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var a=!1,i=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)a=!0,i=i*10+(s-48),this.bump();else break}var l=M(o,this.clonePosition());return a?(i*=r,Zi(i)?{val:i,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Io(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(xo(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Oo(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r!=null?r:null},e}();function Mn(e){return e>=97&&e<=122||e>=65&&e<=90}function es(e){return Mn(e)||e===47}function ts(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Oo(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ns(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Hn(e){e.forEach(function(t){if(delete t.location,mo(t)||fo(t))for(var n in t.options)delete t.options[n].location,Hn(t.options[n].value);else lo(t)&&po(t.style)||(uo(t)||co(t))&&Sn(t.style)?delete t.style.location:ho(t)&&Hn(t.children)})}function rs(e,t){t===void 0&&(t={}),t=x({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Qi(e,t).parse();if(n.err){var r=SyntaxError(w[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||Hn(n.val),n.val}var Ae;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Ae||(Ae={}));var we=function(e){he(t,e);function t(n,r,o){var a=e.call(this,n)||this;return a.code=r,a.originalMessage=o,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),No=function(e){he(t,e);function t(n,r,o,a){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),Ae.INVALID_VALUE,a)||this}return t}(we),os=function(e){he(t,e);function t(n,r,o){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Ae.INVALID_VALUE,o)||this}return t}(we),as=function(e){he(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Ae.MISSING_VALUE,r)||this}return t}(we),ie;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ie||(ie={}));function is(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==ie.literal||n.type!==ie.literal?t.push(n):r.value+=n.value,t},[])}function Ro(e){return typeof e=="function"}function Dt(e,t,n,r,o,a,i){if(e.length===1&&so(e[0]))return[{type:ie.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var m=u[l];if(so(m)){s.push({type:ie.literal,value:m.value});continue}if(Ni(m)){typeof a=="number"&&s.push({type:ie.literal,value:n.getNumberFormat(t).format(a)});continue}var c=m.value;if(!(o&&c in o))throw new as(c,i);var d=o[c];if(Oi(m)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),s.push({type:typeof d=="string"?ie.literal:ie.object,value:d});continue}if(uo(m)){var h=typeof m.style=="string"?r.date[m.style]:Sn(m.style)?m.style.parsedOptions:void 0;s.push({type:ie.literal,value:n.getDateTimeFormat(t,h).format(d)});continue}if(co(m)){var h=typeof m.style=="string"?r.time[m.style]:Sn(m.style)?m.style.parsedOptions:r.time.medium;s.push({type:ie.literal,value:n.getDateTimeFormat(t,h).format(d)});continue}if(lo(m)){var h=typeof m.style=="string"?r.number[m.style]:po(m.style)?m.style.parsedOptions:void 0;h&&h.scale&&(d=d*(h.scale||1)),s.push({type:ie.literal,value:n.getNumberFormat(t,h).format(d)});continue}if(ho(m)){var _=m.children,b=m.value,v=o[b];if(!Ro(v))throw new os(b,"function",i);var y=Dt(_,t,n,r,o,a),T=v(y.map(function(g){return g.value}));Array.isArray(T)||(T=[T]),s.push.apply(s,T.map(function(g){return{type:typeof g=="string"?ie.literal:ie.object,value:g}}))}if(mo(m)){var E=m.options[d]||m.options.other;if(!E)throw new No(m.value,d,Object.keys(m.options),i);s.push.apply(s,Dt(E.value,t,n,r,o));continue}if(fo(m)){var E=m.options["=".concat(d)];if(!E){if(!Intl.PluralRules)throw new we(`Intl.PluralRules is not available in this environment.
|
|
1
|
+
(function(D,G){typeof exports=="object"&&typeof module!="undefined"?G(exports):typeof define=="function"&&define.amd?define(["exports"],G):(D=typeof globalThis!="undefined"?globalThis:D||self,G(D.Alma={}))})(this,function(D){"use strict";var Hc=Object.defineProperty,kc=Object.defineProperties;var Dc=Object.getOwnPropertyDescriptors;var en=Object.getOwnPropertySymbols;var Qi=Object.prototype.hasOwnProperty,eo=Object.prototype.propertyIsEnumerable;var Yi=(D,G,P)=>G in D?Hc(D,G,{enumerable:!0,configurable:!0,writable:!0,value:P}):D[G]=P,ke=(D,G)=>{for(var P in G||(G={}))Qi.call(G,P)&&Yi(D,P,G[P]);if(en)for(var P of en(G))eo.call(G,P)&&Yi(D,P,G[P]);return D},to=(D,G)=>kc(D,Dc(G));var tn=(D,G)=>{var P={};for(var X in D)Qi.call(D,X)&&G.indexOf(X)<0&&(P[X]=D[X]);if(D!=null&&en)for(var X of en(D))G.indexOf(X)<0&&eo.call(D,X)&&(P[X]=D[X]);return P};var no=(D,G,P)=>new Promise((X,Ht)=>{var oe=Me=>{try{ft(P.next(Me))}catch(Pe){Ht(Pe)}},nn=Me=>{try{ft(P.throw(Me))}catch(Pe){Ht(Pe)}},ft=Me=>Me.done?X(Me.value):Promise.resolve(Me.value).then(oe,nn);ft((P=P.apply(D,G)).next())});var G=(e=>(e.PaymentPlans="PaymentPlans",e.Modal="Modal",e))(G||{}),P=(e=>(e.PENDING="pending",e.SUCCESS="success",e.FAILED="failed",e))(P||{}),X=(e=>(e.en="en",e["fr-FR"]="fr-FR",e.fr="fr",e["de-DE"]="de-DE",e.de="de",e.it="it",e["it-IT"]="it-IT",e.es="es",e["es-ES"]="es-ES",e.pt="pt",e["pt-PT"]="pt-PT",e.nl="nl",e["nl-NL"]="nl-NL",e["nl-BE"]="nl-BE",e))(X||{});function Ht(e){return Math.round(e*100)}function oe(e){return Number((e/100).toFixed(2))}function nn(e){return String(oe(e)).replace(".",",")}const ft=800,Me=e=>(e==null?void 0:e.installments_count)===1&&(e==null?void 0:e.deferred_days)===0&&(e==null?void 0:e.deferred_months)===0;(function(e){typeof e.matches!="function"&&(e.matches=e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||function(n){const a=this,r=(a.document||a.ownerDocument).querySelectorAll(n);let i=0;for(;r[i]&&r[i]!==a;)++i;return!!r[i]}),typeof e.closest!="function"&&(e.closest=function(n){let a=this;for(;a&&a.nodeType===1;){if(a.matches(n))return a;a=a.parentNode}return null})})(window.Element.prototype),"".trim||(String.prototype.trim=function(){return this.replace(/^[\s]+|[\s]+$/g,"")}),function(e){e.DOMException||((DOMException=function(r){this.message=r}).prototype=new Error);const t=/[\11\12\14\15\40]/;let n=0;const a=function(r,i){if(i==="")throw new DOMException(`Failed to execute '${r}' on 'DOMTokenList': The token provided must not be empty.`);if((n=i.search(t))!==-1)throw new DOMException(`Failed to execute '${r}' on 'DOMTokenList': The token provided ('${i[n]}') contains HTML space characters, which are not valid in tokens.`)};typeof DOMTokenList!="function"&&function(r){const i=r.document,o=r.Object,s=o.prototype.hasOwnProperty,l=o.defineProperty;let u=0,f=0;const c=function(){if(!u)throw TypeError("Illegal constructor")};c.prototype.toString=c.prototype.toLocaleString=function(){return this.value},c.prototype.add=function(){e:for(var g=0,v=arguments.length,b="",_=this[" uCL"],x=_[" uCLp"];g!==v;++g){b=`${arguments[g]}`,a("add",b);for(var E=0,N=x.length,y=b;E!==N;++E){if(this[E]===b)continue e;y+=` ${this[E]}`}this[N]=b,x.length+=1,x.value=y}f=1,_.className=x.value,f=0},c.prototype.remove=function(){for(var g=0,v=arguments.length,b="",_=this[" uCL"],x=_[" uCLp"];g!==v;++g){b=`${arguments[g]}`,a("remove",b);for(var E=0,N=x.length,y="",w=0;E!==N;++E)w?this[E-1]=this[E]:this[E]!==b?y+=`${this[E]} `:w=1;w&&(delete this[N],x.length-=1,x.value=y)}f=1,_.className=x.value,f=0},r.DOMTokenList=c;function d(){const g=r.event,v=g.propertyName;if(!f&&(v==="className"||v==="classList"&&!l)){const E=g.srcElement,N=E[" uCLp"],y=`${E[v]}`,w=y.trim().split(t),V=E[v==="classList"?" uCL":"classList"],ve=N.length;e:for(var b=0,_=N.length=w.length,x=0;b!==_;++b){for(let U=0;U!==b;++U)if(w[U]===w[b]){x++;continue e}V[b-x]=w[b]}for(let U=_-x;U<ve;++U)delete V[U];if(v!=="classList")return;f=1,E.classList=V,E.className=y,f=0,V.length=w.length-x}}function p(g){if(!g||!("innerHTML"in g))throw TypeError("Illegal invocation");g.detachEvent("onpropertychange",d),u=1;try{var v=function(){};v.prototype=new c}finally{u=0}const b=v.prototype,_=new v;e:for(var x=g.className.trim().split(t),E=0,N=x.length,y=0;E!==N;++E){for(let w=0;w!==E;++w)if(x[w]===x[E]){y++;continue e}this[E-y]=x[E]}b.length=N-y,b.value=g.className,b[" uCL"]=g,l?(l(g,"classList",{enumerable:1,get(){return _},configurable:0,set(w){f=1,g.className=b.value=w+="",f=0;const V=w.trim().split(t),ve=b.length;e:for(var U=0,re=b.length=V.length,ae=0;U!==re;++U){for(let W=0;W!==U;++W)if(V[W]===V[U]){ae++;continue e}_[U-ae]=V[U]}for(let W=re-ae;W<ve;++W)delete _[W]}}),l(g," uCLp",{enumerable:0,configurable:0,writeable:0,value:v.prototype}),l(b," uCL",{enumerable:0,configurable:0,writeable:0,value:g})):(g.classList=_,g[" uCL"]=_,g[" uCLp"]=v.prototype),g.attachEvent("onpropertychange",d)}try{r.Object.defineProperty(r.Element.prototype,"classList",{enumerable:1,get(g){return s.call(this,"classList")||p(this),this.classList},configurable:0,set(g){this.className=g}})}catch(g){r[" uCL"]=p,i.documentElement.firstChild.appendChild(i.createElement("style")).styleSheet.cssText='_*{x-uCLp:expression(!this.hasOwnProperty("classList")&&window[" uCL"](this))}[class]{x-uCLp/**/:expression(!this.hasOwnProperty("classList")&&window[" uCL"](this))}'}}(e),function(r,i){r.item||(r.item=function(o){function s(l){return l===void 0?null:l}return s(this[o])}),(!r.toggle||i.toggle("a",0)!==!1)&&(r.toggle=function(o){if(arguments.length>1)return this[arguments[1]?"add":"remove"](o),!!arguments[1];const s=this.value;return this.remove(s),s===this.value&&(this.add(o),!0)}),(!r.replace||typeof i.replace("a","b")!="boolean")&&(r.replace=function(o,s){a("replace",o),a("replace",s);const l=this.value;return this.remove(o),this.value!==l&&(this.add(s),!0)}),r.contains||(r.contains=function(o){for(let s=0,l=this.length;s!==l;++s)if(this[s]===o)return!0;return!1}),r.forEach||(r.forEach=function(o){if(arguments.length===1)for(var s=0,l=this.length;s!==l;++s)o(this[s],s,this);else for(var s=0,l=this.length,u=arguments[1];s!==l;++s)o.call(u,this[s],s,this)}),r.entries||(r.entries=function(){const s=this;return{next(){return 0<s.length?{value:[0,s[0]],done:!1}:{done:!0}}}}),r.values||(r.values=function(){const s=this;return{next(){return 0<s.length?{value:s[0],done:!1}:{done:!0}}}}),r.keys||(r.keys=function(){const s=this;return{next(){return 0<s.length?{value:0,done:!1}:{done:!0}}}})}(e.DOMTokenList.prototype,e.document.createElement("div").classList)}(window);var Pe,M,ua,ze,ca,ma,fa,da,an,rn,on,pa,dt={},ha=[],ao=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,pt=Array.isArray;function we(e,t){for(var n in t)e[n]=t[n];return e}function sn(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function he(e,t,n){var a,r,i,o={};for(i in t)i=="key"?a=t[i]:i=="ref"?r=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?Pe.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]==null&&(o[i]=e.defaultProps[i]);return ht(e,o,a,r,null)}function ht(e,t,n,a,r){var i={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:r==null?++ua:r,__i:-1,__u:0};return r==null&&M.vnode!=null&&M.vnode(i),i}function ga(){return{current:null}}function ge(e){return e.children}function Ce(e,t){this.props=e,this.context=t}function Qe(e,t){if(t==null)return e.__?Qe(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Qe(e):null}function ya(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return ya(e)}}function ln(e){(!e.__d&&(e.__d=!0)&&ze.push(e)&&!kt.__r++||ca!=M.debounceRendering)&&((ca=M.debounceRendering)||ma)(kt)}function kt(){for(var e,t,n,a,r,i,o,s=1;ze.length;)ze.length>s&&ze.sort(fa),e=ze.shift(),s=ze.length,e.__d&&(n=void 0,r=(a=(t=e).__v).__e,i=[],o=[],t.__P&&((n=we({},a)).__v=a.__v+1,M.vnode&&M.vnode(n),un(t.__P,n,a,t.__n,t.__P.namespaceURI,32&a.__u?[r]:null,i,r==null?Qe(a):r,!!(32&a.__u),o),n.__v=a.__v,n.__.__k[n.__i]=n,xa(i,n,o),n.__e!=r&&ya(n)));kt.__r=0}function _a(e,t,n,a,r,i,o,s,l,u,f){var c,d,p,g,v,b,_=a&&a.__k||ha,x=t.length;for(l=ro(n,t,_,l,x),c=0;c<x;c++)(p=n.__k[c])!=null&&(d=p.__i==-1?dt:_[p.__i]||dt,p.__i=c,b=un(e,p,d,r,i,o,s,l,u,f),g=p.__e,p.ref&&d.ref!=p.ref&&(d.ref&&cn(d.ref,null,p),f.push(p.ref,p.__c||g,p)),v==null&&g!=null&&(v=g),4&p.__u||d.__k===p.__k?l=va(p,l,e):typeof p.type=="function"&&b!==void 0?l=b:g&&(l=g.nextSibling),p.__u&=-7);return n.__e=v,l}function ro(e,t,n,a,r){var i,o,s,l,u,f=n.length,c=f,d=0;for(e.__k=new Array(r),i=0;i<r;i++)(o=t[i])!=null&&typeof o!="boolean"&&typeof o!="function"?(l=i+d,(o=e.__k[i]=typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?ht(null,o,null,null,null):pt(o)?ht(ge,{children:o},null,null,null):o.constructor==null&&o.__b>0?ht(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,s=null,(u=o.__i=io(o,n,l,c))!=-1&&(c--,(s=n[u])&&(s.__u|=2)),s==null||s.__v==null?(u==-1&&(r>f?d--:r<f&&d++),typeof o.type!="function"&&(o.__u|=4)):u!=l&&(u==l-1?d--:u==l+1?d++:(u>l?d--:d++,o.__u|=4))):e.__k[i]=null;if(c)for(i=0;i<f;i++)(s=n[i])!=null&&!(2&s.__u)&&(s.__e==a&&(a=Qe(s)),Sa(s,s));return a}function va(e,t,n){var a,r;if(typeof e.type=="function"){for(a=e.__k,r=0;a&&r<a.length;r++)a[r]&&(a[r].__=e,t=va(a[r],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Qe(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Re(e,t){return t=t||[],e==null||typeof e=="boolean"||(pt(e)?e.some(function(n){Re(n,t)}):t.push(e)),t}function io(e,t,n,a){var r,i,o=e.key,s=e.type,l=t[n];if(l===null&&e.key==null||l&&o==l.key&&s==l.type&&!(2&l.__u))return n;if(a>(l!=null&&!(2&l.__u)?1:0))for(r=n-1,i=n+1;r>=0||i<t.length;){if(r>=0){if((l=t[r])&&!(2&l.__u)&&o==l.key&&s==l.type)return r;r--}if(i<t.length){if((l=t[i])&&!(2&l.__u)&&o==l.key&&s==l.type)return i;i++}}return-1}function ba(e,t,n){t[0]=="-"?e.setProperty(t,n==null?"":n):e[t]=n==null?"":typeof n!="number"||ao.test(t)?n:n+"px"}function Dt(e,t,n,a,r){var i;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof a=="string"&&(e.style.cssText=a=""),a)for(t in a)n&&t in n||ba(e.style,t,"");if(n)for(t in n)a&&n[t]==a[t]||ba(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(da,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?a?n.u=a.u:(n.u=an,e.addEventListener(t,i?on:rn,i)):e.removeEventListener(t,i?on:rn,i);else{if(r=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n==null?"":n;break e}catch(o){}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Ea(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=an++;else if(t.t<n.u)return;return n(M.event?M.event(t):t)}}}function un(e,t,n,a,r,i,o,s,l,u){var f,c,d,p,g,v,b,_,x,E,N,y,w,V,ve,U,re,ae=t.type;if(t.constructor!=null)return null;128&n.__u&&(l=!!(32&n.__u),i=[s=t.__e=n.__e]),(f=M.__b)&&f(t);e:if(typeof ae=="function")try{if(_=t.props,x="prototype"in ae&&ae.prototype.render,E=(f=ae.contextType)&&a[f.__c],N=f?E?E.props.value:f.__:a,n.__c?b=(c=t.__c=n.__c).__=c.__E:(x?t.__c=c=new ae(_,N):(t.__c=c=new Ce(_,N),c.constructor=ae,c.render=so),E&&E.sub(c),c.props=_,c.state||(c.state={}),c.context=N,c.__n=a,d=c.__d=!0,c.__h=[],c._sb=[]),x&&c.__s==null&&(c.__s=c.state),x&&ae.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=we({},c.__s)),we(c.__s,ae.getDerivedStateFromProps(_,c.__s))),p=c.props,g=c.state,c.__v=t,d)x&&ae.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),x&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(x&&ae.getDerivedStateFromProps==null&&_!==p&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(_,N),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(_,c.__s,N)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(c.props=_,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(W){W&&(W.__=t)}),y=0;y<c._sb.length;y++)c.__h.push(c._sb[y]);c._sb=[],c.__h.length&&o.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(_,c.__s,N),x&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(p,g,v)})}if(c.context=N,c.props=_,c.__P=e,c.__e=!1,w=M.__r,V=0,x){for(c.state=c.__s,c.__d=!1,w&&w(t),f=c.render(c.props,c.state,c.context),ve=0;ve<c._sb.length;ve++)c.__h.push(c._sb[ve]);c._sb=[]}else do c.__d=!1,w&&w(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++V<25);c.state=c.__s,c.getChildContext!=null&&(a=we(we({},a),c.getChildContext())),x&&!d&&c.getSnapshotBeforeUpdate!=null&&(v=c.getSnapshotBeforeUpdate(p,g)),U=f,f!=null&&f.type===ge&&f.key==null&&(U=Ca(f.props.children)),s=_a(e,pt(U)?U:[U],t,n,a,r,i,o,s,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&o.push(c),b&&(c.__E=c.__=null)}catch(W){if(t.__v=null,l||i!=null)if(W.then){for(t.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,t.__e=s}else for(re=i.length;re--;)sn(i[re]);else t.__e=n.__e,t.__k=n.__k;M.__e(W,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=oo(n.__e,t,n,a,r,i,o,l,u);return(f=M.diffed)&&f(t),128&t.__u?void 0:s}function xa(e,t,n){for(var a=0;a<n.length;a++)cn(n[a],n[++a],n[++a]);M.__c&&M.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(i){i.call(r)})}catch(i){M.__e(i,r.__v)}})}function Ca(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:pt(e)?e.map(Ca):we({},e)}function oo(e,t,n,a,r,i,o,s,l){var u,f,c,d,p,g,v,b=n.props,_=t.props,x=t.type;if(x=="svg"?r="http://www.w3.org/2000/svg":x=="math"?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((p=i[u])&&"setAttribute"in p==!!x&&(x?p.localName==x:p.nodeType==3)){e=p,i[u]=null;break}}if(e==null){if(x==null)return document.createTextNode(_);e=document.createElementNS(r,x,_.is&&_),s&&(M.__m&&M.__m(t,i),s=!1),i=null}if(x==null)b===_||s&&e.data==_||(e.data=_);else{if(i=i&&Pe.call(e.childNodes),b=n.props||dt,!s&&i!=null)for(b={},u=0;u<e.attributes.length;u++)b[(p=e.attributes[u]).name]=p.value;for(u in b)if(p=b[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=p;else if(!(u in _)){if(u=="value"&&"defaultValue"in _||u=="checked"&&"defaultChecked"in _)continue;Dt(e,u,null,p,r)}}for(u in _)p=_[u],u=="children"?d=p:u=="dangerouslySetInnerHTML"?f=p:u=="value"?g=p:u=="checked"?v=p:s&&typeof p!="function"||b[u]===p||Dt(e,u,p,b[u],r);if(f)s||c&&(f.__html==c.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),_a(t.type=="template"?e.content:e,pt(d)?d:[d],t,n,a,x=="foreignObject"?"http://www.w3.org/1999/xhtml":r,i,o,i?i[0]:n.__k&&Qe(n,0),s,l),i!=null)for(u=i.length;u--;)sn(i[u]);s||(u="value",x=="progress"&&g==null?e.removeAttribute("value"):g!=null&&(g!==e[u]||x=="progress"&&!g||x=="option"&&g!=b[u])&&Dt(e,u,g,b[u],r),u="checked",v!=null&&v!=e[u]&&Dt(e,u,v,b[u],r))}return e}function cn(e,t,n){try{if(typeof e=="function"){var a=typeof e.__u=="function";a&&e.__u(),a&&t==null||(e.__u=e(t))}else e.current=t}catch(r){M.__e(r,n)}}function Sa(e,t,n){var a,r;if(M.unmount&&M.unmount(e),(a=e.ref)&&(a.current&&a.current!=e.__e||cn(a,null,t)),(a=e.__c)!=null){if(a.componentWillUnmount)try{a.componentWillUnmount()}catch(i){M.__e(i,t)}a.base=a.__P=null}if(a=e.__k)for(r=0;r<a.length;r++)a[r]&&Sa(a[r],t,n||typeof e.type!="function");n||sn(e.__e),e.__c=e.__=e.__e=void 0}function so(e,t,n){return this.constructor(e,n)}function gt(e,t,n){var a,r,i,o;t==document&&(t=document.documentElement),M.__&&M.__(e,t),r=(a=typeof n=="function")?null:n&&n.__k||t.__k,i=[],o=[],un(t,e=(!a&&n||t).__k=he(ge,null,[e]),r||dt,dt,t.namespaceURI,!a&&n?[n]:r?null:t.firstChild?Pe.call(t.childNodes):null,i,!a&&n?n:r?r.__e:t.firstChild,a,o),xa(i,e,o)}function Aa(e,t){gt(e,t,Aa)}function lo(e,t,n){var a,r,i,o,s=we({},e.props);for(i in e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)i=="key"?a=t[i]:i=="ref"?r=t[i]:s[i]=t[i]==null&&o!=null?o[i]:t[i];return arguments.length>2&&(s.children=arguments.length>3?Pe.call(arguments,2):n),ht(e.type,s,a||e.key,r||e.ref,null)}function yt(e){function t(n){var a,r;return this.getChildContext||(a=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){a=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&a.forEach(function(o){o.__e=!0,ln(o)})},this.sub=function(i){a.add(i);var o=i.componentWillUnmount;i.componentWillUnmount=function(){a&&a.delete(i),o&&o.call(i)}}),n.children}return t.__c="__cC"+pa++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,a){return n.children(a)}).contextType=t,t}Pe=ha.slice,M={__e:function(e,t,n,a){for(var r,i,o;t=t.__;)if((r=t.__c)&&!r.__)try{if((i=r.constructor)&&i.getDerivedStateFromError!=null&&(r.setState(i.getDerivedStateFromError(e)),o=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(e,a||{}),o=r.__d),o)return r.__E=r}catch(s){e=s}throw e}},ua=0,Ce.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=we({},this.state),typeof e=="function"&&(e=e(we({},n),this.props)),e&&we(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),ln(this))},Ce.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ln(this))},Ce.prototype.render=ge,ze=[],ma=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,fa=function(e,t){return e.__v.__b-t.__v.__b},kt.__r=0,da=/(PointerCapture)$|Capture$/i,an=0,rn=Ea(!1),on=Ea(!0),pa=0;var Le,z,mn,Ta,et=0,Ia=[],Z=M,Ma=Z.__b,wa=Z.__r,Na=Z.diffed,Oa=Z.__c,Pa=Z.unmount,Ra=Z.__;function We(e,t){Z.__h&&Z.__h(z,e,et||t),et=0;var n=z.__H||(z.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ne(e){return et=1,Bt(Ha,e)}function Bt(e,t,n){var a=We(Le++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):Ha(void 0,t),function(s){var l=a.__N?a.__N[0]:a.__[0],u=a.t(l,s);l!==u&&(a.__N=[u,a.__[1]],a.__c.setState({}))}],a.__c=z,!z.__f)){var r=function(s,l,u){if(!a.__c.__H)return!0;var f=a.__c.__H.__.filter(function(d){return!!d.__c});if(f.every(function(d){return!d.__N}))return!i||i.call(this,s,l,u);var c=a.__c.props!==s;return f.forEach(function(d){if(d.__N){var p=d.__[0];d.__=d.__N,d.__N=void 0,p!==d.__[0]&&(c=!0)}}),i&&i.call(this,s,l,u)||c};z.__f=!0;var i=z.shouldComponentUpdate,o=z.componentWillUpdate;z.componentWillUpdate=function(s,l,u){if(this.__e){var f=i;i=void 0,r(s,l,u),i=f}o&&o.call(this,s,l,u)},z.shouldComponentUpdate=r}return a.__N||a.__}function Y(e,t){var n=We(Le++,3);!Z.__s&&gn(n.__H,t)&&(n.__=e,n.u=t,z.__H.__h.push(n))}function tt(e,t){var n=We(Le++,4);!Z.__s&&gn(n.__H,t)&&(n.__=e,n.u=t,z.__h.push(n))}function De(e){return et=5,Be(function(){return{current:e}},[])}function fn(e,t,n){et=6,tt(function(){if(typeof e=="function"){var a=e(t());return function(){e(null),a&&typeof a=="function"&&a()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function Be(e,t){var n=We(Le++,7);return gn(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function _t(e,t){return et=8,Be(function(){return e},t)}function vt(e){var t=z.context[e.__c],n=We(Le++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(z)),t.props.value):e.__}function dn(e,t){Z.useDebugValue&&Z.useDebugValue(t?t(e):e)}function uo(e){var t=We(Le++,10),n=ne();return t.__=e,z.componentDidCatch||(z.componentDidCatch=function(a,r){t.__&&t.__(a,r),n[1](a)}),[n[0],function(){n[1](void 0)}]}function pn(){var e=We(Le++,11);if(!e.__){for(var t=z.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function co(){for(var e;e=Ia.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ft),e.__H.__h.forEach(hn),e.__H.__h=[]}catch(t){e.__H.__h=[],Z.__e(t,e.__v)}}Z.__b=function(e){z=null,Ma&&Ma(e)},Z.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ra&&Ra(e,t)},Z.__r=function(e){wa&&wa(e),Le=0;var t=(z=e.__c).__H;t&&(mn===z?(t.__h=[],z.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(Ft),t.__h.forEach(hn),t.__h=[],Le=0)),mn=z},Z.diffed=function(e){Na&&Na(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ia.push(t)!==1&&Ta===Z.requestAnimationFrame||((Ta=Z.requestAnimationFrame)||mo)(co)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),mn=z=null},Z.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Ft),n.__h=n.__h.filter(function(a){return!a.__||hn(a)})}catch(a){t.some(function(r){r.__h&&(r.__h=[])}),t=[],Z.__e(a,n.__v)}}),Oa&&Oa(e,t)},Z.unmount=function(e){Pa&&Pa(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{Ft(a)}catch(r){t=r}}),n.__H=void 0,t&&Z.__e(t,n.__v))};var La=typeof requestAnimationFrame=="function";function mo(e){var t,n=function(){clearTimeout(a),La&&cancelAnimationFrame(t),setTimeout(e)},a=setTimeout(n,100);La&&(t=requestAnimationFrame(n))}function Ft(e){var t=z,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),z=t}function hn(e){var t=z;e.__c=e.__(),z=t}function gn(e,t){return!e||e.length!==t.length||t.some(function(n,a){return n!==e[a]})}function Ha(e,t){return typeof t=="function"?t(e):t}function ka(e,t){for(var n in t)e[n]=t[n];return e}function yn(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var a in t)if(a!=="__source"&&e[a]!==t[a])return!0;return!1}function _n(e,t){var n=t(),a=ne({t:{__:n,u:t}}),r=a[0].t,i=a[1];return tt(function(){r.__=n,r.u=t,vn(r)&&i({t:r})},[e,n,t]),Y(function(){return vn(r)&&i({t:r}),e(function(){vn(r)&&i({t:r})})},[e]),n}function vn(e){var t,n,a=e.u,r=e.__;try{var i=a();return!((t=r)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch(o){return!0}}function bn(e){e()}function En(e){return e}function xn(){return[!1,bn]}var Cn=tt;function bt(e,t){this.props=e,this.context=t}function Sn(e,t){function n(r){var i=this.props.ref,o=i==r.ref;return!o&&i&&(i.call?i(null):i.current=null),t?!t(this.props,r)||!o:yn(this.props,r)}function a(r){return this.shouldComponentUpdate=n,he(e,r)}return a.displayName="Memo("+(e.displayName||e.name)+")",a.prototype.isReactComponent=!0,a.__f=!0,a}(bt.prototype=new Ce).isPureReactComponent=!0,bt.prototype.shouldComponentUpdate=function(e,t){return yn(this.props,e)||yn(this.state,t)};var Da=M.__b;M.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Da&&Da(e)};var fo=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ba(e){function t(n){var a=ka({},n);return delete a.ref,e(a,n.ref||null)}return t.$$typeof=fo,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Fa=function(e,t){return e==null?null:Re(Re(e).map(t))},Et={map:Fa,forEach:Fa,count:function(e){return e?Re(e).length:0},only:function(e){var t=Re(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Re},po=M.__e;M.__e=function(e,t,n,a){if(e.then){for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t)}po(e,t,n,a)};var Ua=M.unmount;function $a(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(a){typeof a.__c=="function"&&a.__c()}),e.__c.__H=null),(e=ka({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(a){return $a(a,t,n)})),e}function Ga(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(a){return Ga(a,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function xt(){this.__u=0,this.o=null,this.__b=null}function za(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Wa(e){var t,n,a;function r(i){if(t||(t=e()).then(function(o){n=o.default||o},function(o){a=o}),a)throw a;if(!n)throw t;return he(n,i)}return r.displayName="Lazy",r.__f=!0,r}function nt(){this.i=null,this.l=null}M.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ua&&Ua(e)},(xt.prototype=new Ce).__c=function(e,t){var n=t.__c,a=this;a.o==null&&(a.o=[]),a.o.push(n);var r=za(a.__v),i=!1,o=function(){i||(i=!0,n.__R=null,r?r(s):s())};n.__R=o;var s=function(){if(!--a.__u){if(a.state.__a){var l=a.state.__a;a.__v.__k[0]=Ga(l,l.__c.__P,l.__c.__O)}var u;for(a.setState({__a:a.__b=null});u=a.o.pop();)u.forceUpdate()}};a.__u++||32&t.__u||a.setState({__a:a.__b=a.__v.__k[0]}),e.then(o,o)},xt.prototype.componentWillUnmount=function(){this.o=[]},xt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),a=this.__v.__k[0].__c;this.__v.__k[0]=$a(this.__b,n,a.__O=a.__P)}this.__b=null}var r=t.__a&&he(ge,null,e.fallback);return r&&(r.__u&=-33),[he(ge,null,t.__a?null:e.children),r]};var ja=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function ho(e){return this.getChildContext=function(){return e.context},e.children}function go(e){var t=this,n=e.h;t.componentWillUnmount=function(){gt(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(a){this.childNodes.push(a),t.h.appendChild(a)},insertBefore:function(a,r){this.childNodes.push(a),t.h.insertBefore(a,r)},removeChild:function(a){this.childNodes.splice(this.childNodes.indexOf(a)>>>1,1),t.h.removeChild(a)}}),gt(he(ho,{context:t.context},e.__v),t.v)}function Va(e,t){var n=he(go,{__v:e,h:t});return n.containerInfo=t,n}(nt.prototype=new Ce).__a=function(e){var t=this,n=za(t.__v),a=t.l.get(e);return a[0]++,function(r){var i=function(){t.props.revealOrder?(a.push(r),ja(t,e,a)):r()};n?n(i):i()}},nt.prototype.render=function(e){this.i=null,this.l=new Map;var t=Re(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},nt.prototype.componentDidUpdate=nt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){ja(e,n,t)})};var qa=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,yo=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,_o=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,vo=/[A-Z0-9]/g,bo=typeof document!="undefined",Eo=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function An(e,t,n){return t.__k==null&&(t.textContent=""),gt(e,t),typeof n=="function"&&n(),e?e.__c:null}function Za(e,t,n){return Aa(e,t),typeof n=="function"&&n(),e?e.__c:null}Ce.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ce.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Xa=M.event;function xo(){}function Co(){return this.cancelBubble}function So(){return this.defaultPrevented}M.event=function(e){return Xa&&(e=Xa(e)),e.persist=xo,e.isPropagationStopped=Co,e.isDefaultPrevented=So,e.nativeEvent=e};var Tn,Ao={enumerable:!1,configurable:!0,get:function(){return this.class}},Ka=M.vnode;M.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,a=t.type,r={},i=a.indexOf("-")===-1;for(var o in n){var s=n[o];if(!(o==="value"&&"defaultValue"in n&&s==null||bo&&o==="children"&&a==="noscript"||o==="class"||o==="className")){var l=o.toLowerCase();o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&s===!0?s="":l==="translate"&&s==="no"?s=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?o="ondblclick":l!=="onchange"||a!=="input"&&a!=="textarea"||Eo(n.type)?l==="onfocus"?o="onfocusin":l==="onblur"?o="onfocusout":_o.test(o)&&(o=l):l=o="oninput":i&&yo.test(o)?o=o.replace(vo,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&r[o=l]&&(o="oninputCapture"),r[o]=s}}a=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=Re(n.children).forEach(function(u){u.props.selected=r.value.indexOf(u.props.value)!=-1})),a=="select"&&r.defaultValue!=null&&(r.value=Re(n.children).forEach(function(u){u.props.selected=r.multiple?r.defaultValue.indexOf(u.props.value)!=-1:r.defaultValue==u.props.value})),n.class&&!n.className?(r.class=n.class,Object.defineProperty(r,"className",Ao)):(n.className&&!n.class||n.class&&n.className)&&(r.class=r.className=n.className),t.props=r}(e),e.$$typeof=qa,Ka&&Ka(e)};var Ja=M.__r;M.__r=function(e){Ja&&Ja(e),Tn=e.__c};var Ya=M.diffed;M.diffed=function(e){Ya&&Ya(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Tn=null};var Qa={ReactCurrentDispatcher:{current:{readContext:function(e){return Tn.__n[e.__c].props.value},useCallback:_t,useContext:vt,useDebugValue:dn,useDeferredValue:En,useEffect:Y,useId:pn,useImperativeHandle:fn,useInsertionEffect:Cn,useLayoutEffect:tt,useMemo:Be,useReducer:Bt,useRef:De,useState:ne,useSyncExternalStore:_n,useTransition:xn}}},To="18.3.1";function er(e){return he.bind(null,e)}function Ct(e){return!!e&&e.$$typeof===qa}function tr(e){return Ct(e)&&e.type===ge}function nr(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function ar(e){return Ct(e)?lo.apply(null,arguments):e}function In(e){return!!e.__k&&(gt(null,e),!0)}function rr(e){return e&&(e.base||e.nodeType===1&&e)||null}var ir=function(e,t){return e(t)},or=function(e,t){return e(t)},sr=ge,lr=Ct,m={useState:ne,useId:pn,useReducer:Bt,useEffect:Y,useLayoutEffect:tt,useInsertionEffect:Cn,useTransition:xn,useDeferredValue:En,useSyncExternalStore:_n,startTransition:bn,useRef:De,useImperativeHandle:fn,useMemo:Be,useCallback:_t,useContext:vt,useDebugValue:dn,version:"18.3.1",Children:Et,render:An,hydrate:Za,unmountComponentAtNode:In,createPortal:Va,createElement:he,createContext:yt,createFactory:er,cloneElement:ar,createRef:ga,Fragment:ge,isValidElement:Ct,isElement:lr,isFragment:tr,isMemo:nr,findDOMNode:rr,Component:Ce,PureComponent:bt,memo:Sn,forwardRef:Ba,flushSync:or,unstable_batchedUpdates:ir,StrictMode:sr,Suspense:xt,SuspenseList:nt,lazy:Wa,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Qa};const Io=Object.freeze(Object.defineProperty({__proto__:null,Children:Et,Component:Ce,Fragment:ge,PureComponent:bt,StrictMode:sr,Suspense:xt,SuspenseList:nt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Qa,cloneElement:ar,createContext:yt,createElement:he,createFactory:er,createPortal:Va,createRef:ga,default:m,findDOMNode:rr,flushSync:or,forwardRef:Ba,hydrate:Za,isElement:lr,isFragment:tr,isMemo:nr,isValidElement:Ct,lazy:Wa,memo:Sn,render:An,startTransition:bn,unmountComponentAtNode:In,unstable_batchedUpdates:ir,useCallback:_t,useContext:vt,useDebugValue:dn,useDeferredValue:En,useEffect:Y,useErrorBoundary:uo,useId:pn,useImperativeHandle:fn,useInsertionEffect:Cn,useLayoutEffect:tt,useMemo:Be,useReducer:Bt,useRef:De,useState:ne,useSyncExternalStore:_n,useTransition:xn,version:To},Symbol.toStringTag,{value:"Module"}));function ur(e){return{render:function(t){An(t,e)},unmount:function(){In(e)}}}var Mn=function(e,t){return Mn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(n[r]=a[r])},Mn(e,t)};function be(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Mn(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var C=function(){return C=Object.assign||function(t){for(var n,a=1,r=arguments.length;a<r;a++){n=arguments[a];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},C.apply(this,arguments)};function at(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n}function ce(e,t,n){if(n||arguments.length===2)for(var a=0,r=t.length,i;a<r;a++)(i||!(a in t))&&(i||(i=Array.prototype.slice.call(t,0,a)),i[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function me(e,t){var n=t&&t.cache?t.cache:Ro,a=t&&t.serializer?t.serializer:Po,r=t&&t.strategy?t.strategy:No;return r(e,{cache:n,serializer:a})}function Mo(e){return e==null||typeof e=="number"||typeof e=="boolean"}function wo(e,t,n,a){var r=Mo(a)?a:n(a),i=t.get(r);return typeof i=="undefined"&&(i=e.call(this,a),t.set(r,i)),i}function cr(e,t,n){var a=Array.prototype.slice.call(arguments,3),r=n(a),i=t.get(r);return typeof i=="undefined"&&(i=e.apply(this,a),t.set(r,i)),i}function mr(e,t,n,a,r){return n.bind(t,e,a,r)}function No(e,t){var n=e.length===1?wo:cr;return mr(e,this,n,t.cache.create(),t.serializer)}function Oo(e,t){return mr(e,this,cr,t.cache.create(),t.serializer)}var Po=function(){return JSON.stringify(arguments)};function wn(){this.cache=Object.create(null)}wn.prototype.get=function(e){return this.cache[e]},wn.prototype.set=function(e,t){this.cache[e]=t};var Ro={create:function(){return new wn}},fe={variadic:Oo};function fr(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}me(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,ce([void 0],t,!1)))},{strategy:fe.variadic}),me(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,ce([void 0],t,!1)))},{strategy:fe.variadic}),me(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,ce([void 0],t,!1)))},{strategy:fe.variadic}),me(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.Locale).bind.apply(e,ce([void 0],t,!1)))},{strategy:fe.variadic}),me(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.ListFormat).bind.apply(e,ce([void 0],t,!1)))},{strategy:fe.variadic});var R;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(R||(R={}));var j;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(j||(j={}));var rt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(rt||(rt={}));function dr(e){return e.type===j.literal}function Lo(e){return e.type===j.argument}function pr(e){return e.type===j.number}function hr(e){return e.type===j.date}function gr(e){return e.type===j.time}function yr(e){return e.type===j.select}function _r(e){return e.type===j.plural}function Ho(e){return e.type===j.pound}function vr(e){return e.type===j.tag}function br(e){return!!(e&&typeof e=="object"&&e.type===rt.number)}function Nn(e){return!!(e&&typeof e=="object"&&e.type===rt.dateTime)}var Er=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ko=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Do(e){var t={};return e.replace(ko,function(n){var a=n.length;switch(n[0]){case"G":t.era=a===4?"long":a===5?"narrow":"short";break;case"y":t.year=a===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][a-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][a-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=a===4?"long":a===5?"narrow":"short";break;case"e":if(a<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][a-4];break;case"c":if(a<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][a-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][a-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][a-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][a-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][a-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][a-1];break;case"s":t.second=["numeric","2-digit"][a-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=a<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var Bo=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Fo(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Bo).filter(function(d){return d.length>0}),n=[],a=0,r=t;a<r.length;a++){var i=r[a],o=i.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var s=o[0],l=o.slice(1),u=0,f=l;u<f.length;u++){var c=f[u];if(c.length===0)throw new Error("Invalid number skeleton")}n.push({stem:s,options:l})}return n}function Uo(e){return e.replace(/^(.*?)-/,"")}var xr=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Cr=/^(@+)?(\+|#+)?[rs]?$/g,$o=/(\*)(0+)|(#+)(0+)|(0+)/g,Sr=/^(0+)$/;function Ar(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Cr,function(n,a,r){return typeof r!="string"?(t.minimumSignificantDigits=a.length,t.maximumSignificantDigits=a.length):r==="+"?t.minimumSignificantDigits=a.length:a[0]==="#"?t.maximumSignificantDigits=a.length:(t.minimumSignificantDigits=a.length,t.maximumSignificantDigits=a.length+(typeof r=="string"?r.length:0)),""}),t}function Tr(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Go(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Sr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ir(e){var t={},n=Tr(e);return n||t}function zo(e){for(var t={},n=0,a=e;n<a.length;n++){var r=a[n];switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Uo(r.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=C(C(C({},t),{notation:"scientific"}),r.options.reduce(function(l,u){return C(C({},l),Ir(u))},{}));continue;case"engineering":t=C(C(C({},t),{notation:"engineering"}),r.options.reduce(function(l,u){return C(C({},l),Ir(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace($o,function(l,u,f,c,d,p){if(u)t.minimumIntegerDigits=f.length;else{if(c&&d)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Sr.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(xr.test(r.stem)){if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(xr,function(l,u,f,c,d,p){return f==="*"?t.minimumFractionDigits=u.length:c&&c[0]==="#"?t.maximumFractionDigits=c.length:d&&p?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+p.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var i=r.options[0];i==="w"?t=C(C({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=C(C({},t),Ar(i)));continue}if(Cr.test(r.stem)){t=C(C({},t),Ar(r.stem));continue}var o=Tr(r.stem);o&&(t=C(C({},t),o));var s=Go(r.stem);s&&(t=C(C({},t),s))}return t}var Ut={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Wo(e,t){for(var n="",a=0;a<e.length;a++){var r=e.charAt(a);if(r==="j"){for(var i=0;a+1<e.length&&e.charAt(a+1)===r;)i++,a++;var o=1+(i&1),s=i<2?1:3+(i>>1),l="a",u=jo(t);for((u=="H"||u=="k")&&(s=0);s-- >0;)n+=l;for(;o-- >0;)n=u+n}else r==="J"?n+="H":n+=r}return n}function jo(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,a;n!=="root"&&(a=e.maximize().region);var r=Ut[a||""]||Ut[n||""]||Ut["".concat(n,"-001")]||Ut["001"];return r[0]}var On,Vo=new RegExp("^".concat(Er.source,"*")),qo=new RegExp("".concat(Er.source,"*$"));function k(e,t){return{start:e,end:t}}var Zo=!!String.prototype.startsWith&&"_a".startsWith("a",1),Xo=!!String.fromCodePoint,Ko=!!Object.fromEntries,Jo=!!String.prototype.codePointAt,Yo=!!String.prototype.trimStart,Qo=!!String.prototype.trimEnd,es=!!Number.isSafeInteger,ts=es?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Pn=!0;try{var ns=Or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Pn=((On=ns.exec("a"))===null||On===void 0?void 0:On[0])==="a"}catch(e){Pn=!1}var Mr=Zo?function(t,n,a){return t.startsWith(n,a)}:function(t,n,a){return t.slice(a,a+n.length)===n},Rn=Xo?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var a="",r=t.length,i=0,o;r>i;){if(o=t[i++],o>1114111)throw RangeError(o+" is not a valid code point");a+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return a},wr=Ko?Object.fromEntries:function(t){for(var n={},a=0,r=t;a<r.length;a++){var i=r[a],o=i[0],s=i[1];n[o]=s}return n},Nr=Jo?function(t,n){return t.codePointAt(n)}:function(t,n){var a=t.length;if(!(n<0||n>=a)){var r=t.charCodeAt(n),i;return r<55296||r>56319||n+1===a||(i=t.charCodeAt(n+1))<56320||i>57343?r:(r-55296<<10)+(i-56320)+65536}},as=Yo?function(t){return t.trimStart()}:function(t){return t.replace(Vo,"")},rs=Qo?function(t){return t.trimEnd()}:function(t){return t.replace(qo,"")};function Or(e,t){return new RegExp(e,t)}var Ln;if(Pn){var Pr=Or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ln=function(t,n){var a;Pr.lastIndex=n;var r=Pr.exec(t);return(a=r[1])!==null&&a!==void 0?a:""}}else Ln=function(t,n){for(var a=[];;){var r=Nr(t,n);if(r===void 0||Rr(r)||ls(r))break;a.push(r),n+=r>=65536?2:1}return Rn.apply(void 0,a)};var is=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,a){for(var r=[];!this.isEOF();){var i=this.char();if(i===123){var o=this.parseArgument(t,a);if(o.err)return o;r.push(o.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),r.push({type:j.pound,location:k(s,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(a)break;return this.error(R.UNMATCHED_CLOSING_TAG,k(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&Hn(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;r.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;r.push(o.val)}}}return{val:r,err:null}},e.prototype.parseTag=function(t,n){var a=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:j.literal,value:"<".concat(r,"/>"),location:k(a,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Hn(this.char()))return this.error(R.INVALID_TAG,k(s,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return r!==u?this.error(R.UNMATCHED_CLOSING_TAG,k(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:j.tag,value:r,children:o,location:k(a,this.clonePosition())},err:null}:this.error(R.INVALID_TAG,k(s,this.clonePosition())))}else return this.error(R.UNCLOSED_TAG,k(a,this.clonePosition()))}else return this.error(R.INVALID_TAG,k(a,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ss(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var a=this.clonePosition(),r="";;){var i=this.tryParseQuote(n);if(i){r+=i;continue}var o=this.tryParseUnquoted(t,n);if(o){r+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){r+=s;continue}break}var l=k(a,this.clonePosition());return{val:{type:j.literal,value:r,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!os(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var a=this.char();if(a===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(a);this.bump()}return Rn.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var a=this.char();return a===60||a===123||a===35&&(n==="plural"||n==="selectordinal")||a===125&&t>0?null:(this.bump(),Rn(a))},e.prototype.parseArgument=function(t,n){var a=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE,k(a,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(R.EMPTY_ARGUMENT,k(a,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(R.MALFORMED_ARGUMENT,k(a,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE,k(a,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:j.argument,value:r,location:k(a,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE,k(a,this.clonePosition())):this.parseArgumentOptions(t,n,r,a);default:return this.error(R.MALFORMED_ARGUMENT,k(a,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),a=Ln(this.message,n),r=n+a.length;this.bumpTo(r);var i=this.clonePosition(),o=k(t,i);return{value:a,location:o}},e.prototype.parseArgumentOptions=function(t,n,a,r){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(R.EXPECT_ARGUMENT_TYPE,k(o,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var d=rs(c.val);if(d.length===0)return this.error(R.EXPECT_ARGUMENT_STYLE,k(this.clonePosition(),this.clonePosition()));var p=k(f,this.clonePosition());u={style:d,styleLocation:p}}var g=this.tryParseArgumentClose(r);if(g.err)return g;var v=k(r,this.clonePosition());if(u&&Mr(u==null?void 0:u.style,"::",0)){var b=as(u.style.slice(2));if(s==="number"){var c=this.parseNumberSkeletonFromString(b,u.styleLocation);return c.err?c:{val:{type:j.number,value:a,location:v,style:c.val},err:null}}else{if(b.length===0)return this.error(R.EXPECT_DATE_TIME_SKELETON,v);var _=b;this.locale&&(_=Wo(b,this.locale));var d={type:rt.dateTime,pattern:_,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Do(_):{}},x=s==="date"?j.date:j.time;return{val:{type:x,value:a,location:v,style:d},err:null}}}return{val:{type:s==="number"?j.number:s==="date"?j.date:j.time,value:a,location:v,style:(i=u==null?void 0:u.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(R.EXPECT_SELECT_ARGUMENT_OPTIONS,k(E,C({},E)));this.bumpSpace();var N=this.parseIdentifierIfPossible(),y=0;if(s!=="select"&&N.value==="offset"){if(!this.bumpIf(":"))return this.error(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,k(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,R.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),N=this.parseIdentifierIfPossible(),y=c.val}var w=this.tryParsePluralOrSelectOptions(t,s,n,N);if(w.err)return w;var g=this.tryParseArgumentClose(r);if(g.err)return g;var V=k(r,this.clonePosition());return s==="select"?{val:{type:j.select,value:a,options:wr(w.val),location:V},err:null}:{val:{type:j.plural,value:a,options:wr(w.val),offset:y,pluralType:s==="plural"?"cardinal":"ordinal",location:V},err:null}}default:return this.error(R.INVALID_ARGUMENT_TYPE,k(o,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE,k(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var a=this.char();switch(a){case 39:{this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(R.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,k(r,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var a=[];try{a=Fo(t)}catch(r){return this.error(R.INVALID_NUMBER_SKELETON,n)}return{val:{type:rt.number,tokens:a,location:n,parsedOptions:this.shouldParseSkeletons?zo(a):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,a,r){for(var i,o=!1,s=[],l=new Set,u=r.value,f=r.location;;){if(u.length===0){var c=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_SELECTOR,R.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;f=k(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}else break}if(l.has(u))return this.error(n==="select"?R.DUPLICATE_SELECT_ARGUMENT_SELECTOR:R.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);u==="other"&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?R.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:R.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,k(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(t+1,n,a);if(g.err)return g;var v=this.tryParseArgumentClose(p);if(v.err)return v;s.push([u,{value:g.val,location:k(p,this.clonePosition())}]),l.add(u),this.bumpSpace(),i=this.parseIdentifierIfPossible(),u=i.value,f=i.location}return s.length===0?this.error(n==="select"?R.EXPECT_SELECT_ARGUMENT_SELECTOR:R.EXPECT_PLURAL_ARGUMENT_SELECTOR,k(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(R.MISSING_OTHER_CLAUSE,k(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var a=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(a=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,o=o*10+(s-48),this.bump();else break}var l=k(r,this.clonePosition());return i?(o*=a,ts(o)?{val:o,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Nr(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Mr(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),a=this.message.indexOf(t,n);return a>=0?(this.bumpTo(a),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Rr(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),a=this.message.charCodeAt(n+(t>=65536?2:1));return a!=null?a:null},e}();function Hn(e){return e>=97&&e<=122||e>=65&&e<=90}function os(e){return Hn(e)||e===47}function ss(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Rr(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ls(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function kn(e){e.forEach(function(t){if(delete t.location,yr(t)||_r(t))for(var n in t.options)delete t.options[n].location,kn(t.options[n].value);else pr(t)&&br(t.style)||(hr(t)||gr(t))&&Nn(t.style)?delete t.style.location:vr(t)&&kn(t.children)})}function us(e,t){t===void 0&&(t={}),t=C({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new is(e,t).parse();if(n.err){var a=SyntaxError(R[n.err.kind]);throw a.location=n.err.location,a.originalMessage=n.err.message,a}return t!=null&&t.captureLocation||kn(n.val),n.val}var Ne;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Ne||(Ne={}));var Fe=function(e){be(t,e);function t(n,a,r){var i=e.call(this,n)||this;return i.code=a,i.originalMessage=r,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Lr=function(e){be(t,e);function t(n,a,r,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(a,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Ne.INVALID_VALUE,i)||this}return t}(Fe),cs=function(e){be(t,e);function t(n,a,r){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(a),Ne.INVALID_VALUE,r)||this}return t}(Fe),ms=function(e){be(t,e);function t(n,a){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(a,'"'),Ne.MISSING_VALUE,a)||this}return t}(Fe),de;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(de||(de={}));function fs(e){return e.length<2?e:e.reduce(function(t,n){var a=t[t.length-1];return!a||a.type!==de.literal||n.type!==de.literal?t.push(n):a.value+=n.value,t},[])}function Hr(e){return typeof e=="function"}function $t(e,t,n,a,r,i,o){if(e.length===1&&dr(e[0]))return[{type:de.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var f=u[l];if(dr(f)){s.push({type:de.literal,value:f.value});continue}if(Ho(f)){typeof i=="number"&&s.push({type:de.literal,value:n.getNumberFormat(t).format(i)});continue}var c=f.value;if(!(r&&c in r))throw new ms(c,o);var d=r[c];if(Lo(f)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),s.push({type:typeof d=="string"?de.literal:de.object,value:d});continue}if(hr(f)){var p=typeof f.style=="string"?a.date[f.style]:Nn(f.style)?f.style.parsedOptions:void 0;s.push({type:de.literal,value:n.getDateTimeFormat(t,p).format(d)});continue}if(gr(f)){var p=typeof f.style=="string"?a.time[f.style]:Nn(f.style)?f.style.parsedOptions:a.time.medium;s.push({type:de.literal,value:n.getDateTimeFormat(t,p).format(d)});continue}if(pr(f)){var p=typeof f.style=="string"?a.number[f.style]:br(f.style)?f.style.parsedOptions:void 0;p&&p.scale&&(d=d*(p.scale||1)),s.push({type:de.literal,value:n.getNumberFormat(t,p).format(d)});continue}if(vr(f)){var g=f.children,v=f.value,b=r[v];if(!Hr(b))throw new cs(v,"function",o);var _=$t(g,t,n,a,r,i),x=b(_.map(function(y){return y.value}));Array.isArray(x)||(x=[x]),s.push.apply(s,x.map(function(y){return{type:typeof y=="string"?de.literal:de.object,value:y}}))}if(yr(f)){var E=f.options[d]||f.options.other;if(!E)throw new Lr(f.value,d,Object.keys(f.options),o);s.push.apply(s,$t(E.value,t,n,a,r));continue}if(_r(f)){var E=f.options["=".concat(d)];if(!E){if(!Intl.PluralRules)throw new Fe(`Intl.PluralRules is not available in this environment.
|
|
2
2
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3
|
-
`,
|
|
4
|
-
`).concat(
|
|
5
|
-
`.concat(
|
|
6
|
-
`).concat(
|
|
7
|
-
Locale: `).concat(
|
|
8
|
-
`),
|
|
9
|
-
MessageID: `).concat(
|
|
10
|
-
Default Message: `).concat(
|
|
11
|
-
Description: `).concat(
|
|
12
|
-
`),
|
|
3
|
+
`,Ne.MISSING_INTL_API,o);var N=n.getPluralRules(t,{type:f.pluralType}).select(d-(f.offset||0));E=f.options[N]||f.options.other}if(!E)throw new Lr(f.value,d,Object.keys(f.options),o);s.push.apply(s,$t(E.value,t,n,a,r,d-(f.offset||0)));continue}}return fs(s)}function ds(e,t){return t?C(C(C({},e||{}),t||{}),Object.keys(e).reduce(function(n,a){return n[a]=C(C({},e[a]),t[a]||{}),n},{})):e}function ps(e,t){return t?Object.keys(e).reduce(function(n,a){return n[a]=ds(e[a],t[a]),n},C({},e)):e}function Dn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function hs(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:me(function(){for(var t,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return new((t=Intl.NumberFormat).bind.apply(t,ce([void 0],n,!1)))},{cache:Dn(e.number),strategy:fe.variadic}),getDateTimeFormat:me(function(){for(var t,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return new((t=Intl.DateTimeFormat).bind.apply(t,ce([void 0],n,!1)))},{cache:Dn(e.dateTime),strategy:fe.variadic}),getPluralRules:me(function(){for(var t,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return new((t=Intl.PluralRules).bind.apply(t,ce([void 0],n,!1)))},{cache:Dn(e.pluralRules),strategy:fe.variadic})}}var kr=function(){function e(t,n,a,r){n===void 0&&(n=e.defaultLocale);var i=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=i.formatToParts(l);if(u.length===1)return u[0].value;var f=u.reduce(function(c,d){return!c.length||d.type!==de.literal||typeof c[c.length-1]!="string"?c.push(d.value):c[c.length-1]+=d.value,c},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(l){return $t(i.ast,i.locales,i.formatters,i.formats,l,void 0,i.message)},this.resolvedOptions=function(){var l;return{locale:((l=i.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=r||{};o.formatters;var s=at(o,["formatters"]);this.ast=e.__parse(t,C(C({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=ps(e.formats,a),this.formatters=r&&r.formatters||hs(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=us,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),je;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(je||(je={}));var St=function(e){be(t,e);function t(n,a,r){var i=this,o=r?r instanceof Error?r:new Error(String(r)):void 0;return i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(a,`
|
|
4
|
+
`).concat(o?`
|
|
5
|
+
`.concat(o.message,`
|
|
6
|
+
`).concat(o.stack):""))||this,i.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t}(Error),gs=function(e){be(t,e);function t(n,a){return e.call(this,je.UNSUPPORTED_FORMATTER,n,a)||this}return t}(St),ys=function(e){be(t,e);function t(n,a){return e.call(this,je.INVALID_CONFIG,n,a)||this}return t}(St),Dr=function(e){be(t,e);function t(n,a){return e.call(this,je.MISSING_DATA,n,a)||this}return t}(St),Ee=function(e){be(t,e);function t(n,a,r){var i=e.call(this,je.FORMAT_ERROR,"".concat(n,`
|
|
7
|
+
Locale: `).concat(a,`
|
|
8
|
+
`),r)||this;return i.locale=a,i}return t}(St),Bn=function(e){be(t,e);function t(n,a,r,i){var o=e.call(this,"".concat(n,`
|
|
9
|
+
MessageID: `).concat(r==null?void 0:r.id,`
|
|
10
|
+
Default Message: `).concat(r==null?void 0:r.defaultMessage,`
|
|
11
|
+
Description: `).concat(r==null?void 0:r.description,`
|
|
12
|
+
`),a,i)||this;return o.descriptor=r,o.locale=a,o}return t}(Ee),_s=function(e){be(t,e);function t(n,a){var r=e.call(this,je.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(a,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(i){var o;return(o=i.value)!==null&&o!==void 0?o:JSON.stringify(i)}).join(),")"):"id"," as fallback."))||this;return r.descriptor=n,r}return t}(St);function Ve(e,t,n){return n===void 0&&(n={}),t.reduce(function(a,r){return r in e?a[r]=e[r]:r in n&&(a[r]=n[r]),a},{})}var vs=function(e){},bs=function(e){},Br={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:vs,onWarn:bs};function Fr(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function qe(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Es(e){e===void 0&&(e=Fr());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,a=Intl.DisplayNames,r=me(function(){for(var s,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new((s=Intl.DateTimeFormat).bind.apply(s,ce([void 0],l,!1)))},{cache:qe(e.dateTime),strategy:fe.variadic}),i=me(function(){for(var s,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new((s=Intl.NumberFormat).bind.apply(s,ce([void 0],l,!1)))},{cache:qe(e.number),strategy:fe.variadic}),o=me(function(){for(var s,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new((s=Intl.PluralRules).bind.apply(s,ce([void 0],l,!1)))},{cache:qe(e.pluralRules),strategy:fe.variadic});return{getDateTimeFormat:r,getNumberFormat:i,getMessageFormat:me(function(s,l,u,f){return new kr(s,l,u,C({formatters:{getNumberFormat:i,getDateTimeFormat:r,getPluralRules:o}},f||{}))},{cache:qe(e.message),strategy:fe.variadic}),getRelativeTimeFormat:me(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(t.bind.apply(t,ce([void 0],s,!1)))},{cache:qe(e.relativeTime),strategy:fe.variadic}),getPluralRules:o,getListFormat:me(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(n.bind.apply(n,ce([void 0],s,!1)))},{cache:qe(e.list),strategy:fe.variadic}),getDisplayNames:me(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(a.bind.apply(a,ce([void 0],s,!1)))},{cache:qe(e.displayNames),strategy:fe.variadic})}}function Fn(e,t,n,a){var r=e&&e[t],i;if(r&&(i=r[n]),i)return i;a(new gs("No ".concat(t," format named: ").concat(n)))}function Gt(e,t){return Object.keys(e).reduce(function(n,a){return n[a]=C({timeZone:t},e[a]),n},{})}function Ur(e,t){var n=Object.keys(C(C({},e),t));return n.reduce(function(a,r){return a[r]=C(C({},e[r]||{}),t[r]||{}),a},{})}function $r(e,t){if(!t)return e;var n=kr.formats;return C(C(C({},n),e),{date:Ur(Gt(n.date,t),Gt(e.date||{},t)),time:Ur(Gt(n.time,t),Gt(e.time||{},t))})}var Un=function(e,t,n,a,r){var i=e.locale,o=e.formats,s=e.messages,l=e.defaultLocale,u=e.defaultFormats,f=e.fallbackOnEmptyString,c=e.onError,d=e.timeZone,p=e.defaultRichTextElements;n===void 0&&(n={id:""});var g=n.id,v=n.defaultMessage;fr(!!g,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var b=String(g),_=s&&Object.prototype.hasOwnProperty.call(s,b)&&s[b];if(Array.isArray(_)&&_.length===1&&_[0].type===j.literal)return _[0].value;if(!a&&_&&typeof _=="string"&&!p)return _.replace(/'\{(.*?)\}'/gi,"{$1}");if(a=C(C({},p),a||{}),o=$r(o,d),u=$r(u,d),!_){if(f===!1&&_==="")return _;if((!v||i&&i.toLowerCase()!==l.toLowerCase())&&c(new _s(n,i)),v)try{var x=t.getMessageFormat(v,l,u,r);return x.format(a)}catch(E){return c(new Bn('Error formatting default message for: "'.concat(b,'", rendering default message verbatim'),i,n,E)),typeof v=="string"?v:b}return b}try{var x=t.getMessageFormat(_,i,o,C({formatters:t},r||{}));return x.format(a)}catch(E){c(new Bn('Error formatting message: "'.concat(b,'", using ').concat(v?"default message":"id"," as fallback."),i,n,E))}if(v)try{var x=t.getMessageFormat(v,l,u,r);return x.format(a)}catch(E){c(new Bn('Error formatting the default message for: "'.concat(b,'", rendering message verbatim'),i,n,E))}return typeof _=="string"?_:typeof v=="string"?v:b},Gr=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function zt(e,t,n,a){var r=e.locale,i=e.formats,o=e.onError,s=e.timeZone;a===void 0&&(a={});var l=a.format,u=C(C({},s&&{timeZone:s}),l&&Fn(i,t,l,o)),f=Ve(a,Gr,u);return t==="time"&&!f.hour&&!f.minute&&!f.second&&!f.timeStyle&&!f.dateStyle&&(f=C(C({},f),{hour:"numeric",minute:"numeric"})),n(r,f)}function xs(e,t){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];var r=n[0],i=n[1],o=i===void 0?{}:i,s=typeof r=="string"?new Date(r||0):r;try{return zt(e,"date",t,o).format(s)}catch(l){e.onError(new Ee("Error formatting date.",e.locale,l))}return String(s)}function Cs(e,t){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];var r=n[0],i=n[1],o=i===void 0?{}:i,s=typeof r=="string"?new Date(r||0):r;try{return zt(e,"time",t,o).format(s)}catch(l){e.onError(new Ee("Error formatting time.",e.locale,l))}return String(s)}function Ss(e,t){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];var r=n[0],i=n[1],o=n[2],s=o===void 0?{}:o,l=e.timeZone,u=e.locale,f=e.onError,c=Ve(s,Gr,l?{timeZone:l}:{});try{return t(u,c).formatRange(r,i)}catch(d){f(new Ee("Error formatting date time range.",e.locale,d))}return String(r)}function As(e,t){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];var r=n[0],i=n[1],o=i===void 0?{}:i,s=typeof r=="string"?new Date(r||0):r;try{return zt(e,"date",t,o).formatToParts(s)}catch(l){e.onError(new Ee("Error formatting date.",e.locale,l))}return[]}function Ts(e,t){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];var r=n[0],i=n[1],o=i===void 0?{}:i,s=typeof r=="string"?new Date(r||0):r;try{return zt(e,"time",t,o).formatToParts(s)}catch(l){e.onError(new Ee("Error formatting time.",e.locale,l))}return[]}var Is=["style","type","fallback","languageDisplay"];function Ms(e,t,n,a){var r=e.locale,i=e.onError,o=Intl.DisplayNames;o||i(new Fe(`Intl.DisplayNames is not available in this environment.
|
|
13
13
|
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
14
|
-
`,
|
|
14
|
+
`,Ne.MISSING_INTL_API));var s=Ve(a,Is);try{return t(r,s).of(n)}catch(l){i(new Ee("Error formatting display name.",r,l))}}var ws=["type","style"],zr=Date.now();function Ns(e){return"".concat(zr,"_").concat(e,"_").concat(zr)}function Os(e,t,n,a){a===void 0&&(a={});var r=Wr(e,t,n,a).reduce(function(i,o){var s=o.value;return typeof s!="string"?i.push(s):typeof i[i.length-1]=="string"?i[i.length-1]+=s:i.push(s),i},[]);return r.length===1?r[0]:r.length===0?"":r}function Wr(e,t,n,a){var r=e.locale,i=e.onError;a===void 0&&(a={});var o=Intl.ListFormat;o||i(new Fe(`Intl.ListFormat is not available in this environment.
|
|
15
15
|
Try polyfilling it using "@formatjs/intl-listformat"
|
|
16
|
-
`,
|
|
16
|
+
`,Ne.MISSING_INTL_API));var s=Ve(a,ws);try{var l={},u=n.map(function(f,c){if(typeof f=="object"){var d=Ns(c);return l[d]=f,d}return String(f)});return t(r,s).formatToParts(u).map(function(f){return f.type==="literal"?f:C(C({},f),{value:l[f.value]||f.value})})}catch(f){i(new Ee("Error formatting list.",r,f))}return n}var Ps=["type"];function Rs(e,t,n,a){var r=e.locale,i=e.onError;a===void 0&&(a={}),Intl.PluralRules||i(new Fe(`Intl.PluralRules is not available in this environment.
|
|
17
17
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
18
|
-
`,
|
|
18
|
+
`,Ne.MISSING_INTL_API));var o=Ve(a,Ps);try{return t(r,o).select(n)}catch(s){i(new Ee("Error formatting plural.",r,s))}return"other"}var Ls=["numeric","style"];function Hs(e,t,n){var a=e.locale,r=e.formats,i=e.onError;n===void 0&&(n={});var o=n.format,s=!!o&&Fn(r,"relative",o,i)||{},l=Ve(n,Ls,s);return t(a,l)}function ks(e,t,n,a,r){r===void 0&&(r={}),a||(a="second");var i=Intl.RelativeTimeFormat;i||e.onError(new Fe(`Intl.RelativeTimeFormat is not available in this environment.
|
|
19
19
|
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
20
|
-
`,
|
|
20
|
+
`,Ne.MISSING_INTL_API));try{return Hs(e,t,r).format(n,a)}catch(o){e.onError(new Ee("Error formatting relative time.",e.locale,o))}return String(n)}var Ds=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function jr(e,t,n){var a=e.locale,r=e.formats,i=e.onError;n===void 0&&(n={});var o=n.format,s=o&&Fn(r,"number",o,i)||{},l=Ve(n,Ds,s);return t(a,l)}function Bs(e,t,n,a){a===void 0&&(a={});try{return jr(e,t,a).format(n)}catch(r){e.onError(new Ee("Error formatting number.",e.locale,r))}return String(n)}function Fs(e,t,n,a){a===void 0&&(a={});try{return jr(e,t,a).formatToParts(n)}catch(r){e.onError(new Ee("Error formatting number.",e.locale,r))}return[]}function Us(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function $s(e){e.onWarn&&e.defaultRichTextElements&&Us(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
|
21
21
|
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
|
22
|
-
For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function
|
|
22
|
+
For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function Gs(e,t){var n=Es(t),a=C(C({},Br),e),r=a.locale,i=a.defaultLocale,o=a.onError;return r?!Intl.NumberFormat.supportedLocalesOf(r).length&&o?o(new Dr('Missing locale data for locale: "'.concat(r,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(r).length&&o&&o(new Dr('Missing locale data for locale: "'.concat(r,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(o&&o(new ys('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),a.locale=a.defaultLocale||"en"),$s(a),C(C({},a),{formatters:n,formatNumber:Bs.bind(null,a,n.getNumberFormat),formatNumberToParts:Fs.bind(null,a,n.getNumberFormat),formatRelativeTime:ks.bind(null,a,n.getRelativeTimeFormat),formatDate:xs.bind(null,a,n.getDateTimeFormat),formatDateToParts:As.bind(null,a,n.getDateTimeFormat),formatTime:Cs.bind(null,a,n.getDateTimeFormat),formatDateTimeRange:Ss.bind(null,a,n.getDateTimeFormat),formatTimeToParts:Ts.bind(null,a,n.getDateTimeFormat),formatPlural:Rs.bind(null,a,n.getPluralRules),formatMessage:Un.bind(null,a,n),$t:Un.bind(null,a,n),formatList:Os.bind(null,a,n.getListFormat),formatListToParts:Wr.bind(null,a,n.getListFormat),formatDisplayName:Ms.bind(null,a,n.getDisplayNames)})}function Vr(e){fr(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var qr=C(C({},Br),{textComponent:ge});function zs(e){return function(t){return e(Et.toArray(t))}}function $n(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),a=Object.keys(t),r=n.length;if(a.length!==r)return!1;for(var i=0;i<r;i++){var o=n[i];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0}function At(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Zr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function a(){return this instanceof a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}),n}var Xr={exports:{}},F={};/** @license React v16.13.1
|
|
23
23
|
* react-is.production.min.js
|
|
24
24
|
*
|
|
25
25
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
26
26
|
*
|
|
27
27
|
* This source code is licensed under the MIT license found in the
|
|
28
28
|
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/var Vo;function Us(){if(Vo)return U;Vo=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,c=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function E(g){if(typeof g=="object"&&g!==null){var N=g.$$typeof;switch(N){case t:switch(g=g.type,g){case l:case u:case r:case a:case o:case c:return g;default:switch(g=g&&g.$$typeof,g){case s:case m:case _:case h:case i:return g;default:return N}}case n:return N}}}function R(g){return E(g)===u}return U.AsyncMode=l,U.ConcurrentMode=u,U.ContextConsumer=s,U.ContextProvider=i,U.Element=t,U.ForwardRef=m,U.Fragment=r,U.Lazy=_,U.Memo=h,U.Portal=n,U.Profiler=a,U.StrictMode=o,U.Suspense=c,U.isAsyncMode=function(g){return R(g)||E(g)===l},U.isConcurrentMode=R,U.isContextConsumer=function(g){return E(g)===s},U.isContextProvider=function(g){return E(g)===i},U.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},U.isForwardRef=function(g){return E(g)===m},U.isFragment=function(g){return E(g)===r},U.isLazy=function(g){return E(g)===_},U.isMemo=function(g){return E(g)===h},U.isPortal=function(g){return E(g)===n},U.isProfiler=function(g){return E(g)===a},U.isStrictMode=function(g){return E(g)===o},U.isSuspense=function(g){return E(g)===c},U.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===u||g===a||g===o||g===c||g===d||typeof g=="object"&&g!==null&&(g.$$typeof===_||g.$$typeof===h||g.$$typeof===i||g.$$typeof===s||g.$$typeof===m||g.$$typeof===v||g.$$typeof===y||g.$$typeof===T||g.$$typeof===b)},U.typeOf=E,U}jo.exports=Us();var Fs=jo.exports,zo=Fs,ks={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Gs={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},qo={};qo[zo.ForwardRef]=ks,qo[zo.Memo]=Gs;var Fn=typeof window!="undefined"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=ct(null)):ct(null);Fn.Consumer;var $s=Fn.Provider,Ws=$s,js=Fn;function Ft(){var e=ft(js);return Go(e),e}var kn;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(kn||(kn={}));var Gn;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Gn||(Gn={}));function Xo(e){var t=function(n){var r=Ft(),o=n.value,a=n.children,i=Ke(n,["value","children"]),s=typeof o=="string"?new Date(o||0):o,l=e==="formatDate"?r.formatDateToParts(s,i):r.formatTimeToParts(s,i);return a(l)};return t.displayName=Gn[e],t}function yt(e){var t=function(n){var r=Ft(),o=n.value,a=n.children,i=Ke(n,["value","children"]),s=r[e](o,i);if(typeof a=="function")return a(s);var l=r.textComponent||me;return ce(l,null,s)};return t.displayName=kn[e],t}function Zo(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=Ro(r)?Bs(r):r,t},{})}var Ko=function(e,t,n,r){for(var o=[],a=4;a<arguments.length;a++)o[a-4]=arguments[a];var i=Zo(r),s=Bn.apply(void 0,re([e,t,n,i],o,!1));return Array.isArray(s)?ht.toArray(s):s},Yo=function(e,t){var n=e.defaultRichTextElements,r=Ke(e,["defaultRichTextElements"]),o=Zo(n),a=Ds(x(x(x({},$o),r),{defaultRichTextElements:o}),t),i={locale:a.locale,timeZone:a.timeZone,fallbackOnEmptyString:a.fallbackOnEmptyString,formats:a.formats,defaultLocale:a.defaultLocale,defaultFormats:a.defaultFormats,messages:a.messages,onError:a.onError,defaultRichTextElements:o};return x(x({},a),{formatMessage:Ko.bind(null,i,a.formatters),$t:Ko.bind(null,i,a.formatters)})};function $n(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var Vs=function(e){he(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache=Po(),n.state={cache:n.cache,intl:Yo($n(n.props),n.cache),prevConfig:$n(n.props)},n}return t.getDerivedStateFromProps=function(n,r){var o=r.prevConfig,a=r.cache,i=$n(n);return Un(o,i)?null:{intl:Yo(i,a),prevConfig:i}},t.prototype.render=function(){return Go(this.state.intl),ce(Ws,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=$o,t}(dt);function zs(e,t){var n=e.values,r=Ke(e,["values"]),o=t.values,a=Ke(t,["values"]);return Un(o,n)&&Un(r,a)}function Jo(e){var t=Ft(),n=t.formatMessage,r=t.textComponent,o=r===void 0?me:r,a=e.id,i=e.description,s=e.defaultMessage,l=e.values,u=e.children,m=e.tagName,c=m===void 0?o:m,d=e.ignoreTag,h={id:a,description:i,defaultMessage:s},_=n(h,l,{ignoreTag:d});return typeof u=="function"?u(Array.isArray(_)?_:[_]):c?ce(c,null,ht.toArray(_)):ce(me,null,_)}Jo.displayName="FormattedMessage";var D=hn(Jo,zs);D.displayName="MemoizedFormattedMessage";var Qo=yt("formatDate");yt("formatTime");var Ie=yt("formatNumber");yt("formatList"),yt("formatDisplayName"),Xo("formatDate"),Xo("formatTime");const qs={"credit-features.credit-cost-display":"{creditCost} (APR {taegPercentage})","credit-features.information":"Überprüfen Sie Ihre Rückzahlungsmöglichkeiten, bevor Sie eine Verpflichtung eingehen.","credit-features.information.title":"Ein Kredit verpflichtet Sie und muss zurückgezahlt werden.","credit-features.legal-text":"Kredit in Höhe von {totalWithoutFirstInstallment} zu einem festen Sollzinssatz von {taegPercentage} über eine Laufzeit von {installmeentsCountWithoutFirst} Monaten. Ermöglicht, zusätzlich zu einer Anzahlung von {firstInstallmentAmount}, die Finanzierung eines Kaufs in Höhe von {productPriceWithoutCreditCost}. Vorbehaltlich der Prüfung und Annahme durch Alma. Gesetzliche Widerrufsfrist von 14 Tagen. Simulation präsentiert von Alma, eingetragen im RCS Nanterre unter der Nummer 839 100 575, Zahlungsinstitut und Finanzierungsgesellschaft, zugelassen von der ACPR unter der Nummer 17408 (IPC-Nummer / Bankcode).","credit-features.total-credit-cost":"Davon Kreditkosten","eligibility-modal.bullet-1":"Wählen Sie <strong>Alma</strong> beim Check-out. ","eligibility-modal.bullet-2":"Lassen Sie sich führen und bestätigen Sie Ihre Zahlung in <strong>2 Minuten.</strong>","eligibility-modal.bullet-3":"<strong>Behalten Sie die Kontrolle</strong> , indem Sie Ihre Fälligkeitstermine in Ihrem eigenen Tempo vor- oder zurückverlegen.","eligibility-modal.no-eligibility":"Ups, die Prüfung hat anscheinend nicht funktioniert.","eligibility-modal.p1x-bullet-1":"Wählen Sie <strong>Alma - Jetzt bezahlen</strong> zum Zeitpunkt der Zahlung.","eligibility-modal.p1x-bullet-2":"Tragen Sie Ihre <strong>Kreditkarteninformationen ein.</strong>","eligibility-modal.p1x-bullet-3":"<strong> Die Bestätigung </strong> Ihrer Zahlung erfolgt sofort !","eligibility-modal.title-deferred-plan":"Zahlen Sie mit Alma in Raten oder später.","eligibility-modal.title-normal":"Zahlen Sie mit Alma in mehreren Raten.","eligibility-modal.title-pay-now":"Bezahlen Sie auf einmal mit Alma per Kreditkarte.","installments.today":"Heute","installments.total-amount":"Gesamtsumme","installments.total-fees":"Davon Kosten","payment-plan-strings.credit":"Klicken Sie, um mehr zu erfahren","payment-plan-strings.day-abbreviation":"T{deferredDays}","payment-plan-strings.default-message":"Bezahlen Sie zinsfrei in mehreren Raten mit Alma.","payment-plan-strings.deferred":"{totalAmount} zu zahlen am {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Bis zu {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Ab {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(0% Finanzierung)","payment-plan-strings.pay-now":"Zahlen Sie jetzt {totalAmount}","payment-plan-strings.pay.now.button":"Jetzt bezahlen"},Xs={"credit-features.credit-cost-display":"{creditCost} (APR {taegPercentage})","credit-features.information":"Check your repayment capacity before committing yourself.","credit-features.information.title":"Credit is a commitment and must be repaid.","credit-features.legal-text":"Loan of {totalWithoutFirstInstallment} at a fixed interest rate of {taegPercentage} over a period of {installmeentsCountWithoutFirst} months. In addition to a down payment of {firstInstallmentAmount}, this loan can be used to finance a purchase of {productPriceWithoutCreditCost}. Subject to review and acceptance by Alma. Legal cooling-off period of 14 days. Simulation presented by Alma, registered with the RCS Nanterre under number 839 100 575, payment and finance company approved by the ACPR under number 17408 (CIB number / Bank code).","credit-features.total-credit-cost":"Of which cost of credit","eligibility-modal.bullet-1":"Choose <strong>Alma</strong> at checkout.","eligibility-modal.bullet-2":"Let us guide you and validate your payment in <strong>2 minutes.</strong>","eligibility-modal.bullet-3":"<strong>Stay in control</strong> by advancing or postponing your deadlines at your own pace.","eligibility-modal.no-eligibility":"Oops, looks like the simulation didn't work.","eligibility-modal.p1x-bullet-1":"Choose <strong>Alma - Pay now</strong> at checkout.","eligibility-modal.p1x-bullet-2":"Enter your <strong>credit card details.</strong>","eligibility-modal.p1x-bullet-3":"<strong>Your payment is instantly validated at </strong> !","eligibility-modal.title-deferred-plan":"Pay in installments or later by credit card with Alma.","eligibility-modal.title-normal":"Pay in installments by credit card with Alma.","eligibility-modal.title-pay-now":"Pay cash by credit card with Alma.","installments.today":"Today","installments.total-amount":"Total","installments.total-fees":"Of which costs (incl. VAT)","payment-plan-strings.credit":"Click to find out more","payment-plan-strings.day-abbreviation":"D{deferredDays}","payment-plan-strings.default-message":"Pay in installments with Alma","payment-plan-strings.deferred":"{totalAmount} to pay the {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Until {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"From {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} then {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} then {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(free of charge)","payment-plan-strings.pay-now":"Pay now {totalAmount}","payment-plan-strings.pay.now.button":"Pay now"},Zs={"credit-features.credit-cost-display":"{creditCost} (TAE {taegPercentage})","credit-features.information":"Compruebe tu capacidad de reembolso antes de comprometerte.","credit-features.information.title":"El crédito y/o pago a plazos es un compromiso y debe devolverse.","credit-features.legal-text":" Préstamo de {totalWithoutFirstInstallment} a un tipo deudor fijo a {taegPercentage} a lo largo de un periodo de {installmeentsCountWithoutFirst} meses. Además de un depósito de {firstInstallmentAmount}, esto te permitirá financiar una compra de {productPriceWithoutCreditCost}. Sujeto a revisión y aceptación por parte de Alma. Plazo legal de retractación de 14 días. Simulación presentada por Alma, inscrita en el Registro Mercantil de Nanterre con el número 839 100 575, sociedad de pago y financiación autorizada por la ACPR con el número 17408 (número CIB / código bancario).","credit-features.total-credit-cost":"Coste de crédito (incl. en el total)","eligibility-modal.bullet-1":"Elige <strong>Alma</strong> como método de pago.","eligibility-modal.bullet-2":"Déjate guiar y válida tu pago en <strong>2 minutos.</strong>","eligibility-modal.bullet-3":"<strong>Mantén el control</strong> adelantando o aplazando los plazos a su propio ritmo.","eligibility-modal.no-eligibility":"Uy, parece que la simulación no ha funcionado.","eligibility-modal.p1x-bullet-1":"Elije <strong>Alma - Pagar ahora</strong> al momento de la compra.","eligibility-modal.p1x-bullet-2":"Introduce los datos de tu tarjeta bancaria en <strong>.</strong>","eligibility-modal.p1x-bullet-3":"<strong>¡La validación </strong> de tu pago es instantánea!","eligibility-modal.title-deferred-plan":"Paga a plazos o posteriormente con tarjeta bancaria con Alma.","eligibility-modal.title-normal":"Pagar a plazos con tarjeta bancaria con Alma.","eligibility-modal.title-pay-now":"Paga de contado con tu tarjeta bancaria a través de alma.","installments.today":"Hoy","installments.total-amount":"Total","installments.total-fees":"De los cuales, costes (IVA incluido)","payment-plan-strings.credit":"Pincha aqui para más información","payment-plan-strings.day-abbreviation":"D{deferredDays}","payment-plan-strings.default-message":"Pagar a plazos con Alma","payment-plan-strings.deferred":"{totalAmount} a pagar el {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Hasta {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Desde {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} hoy, después {numberOfRemainingInstallments} mensualidad de {othersInstallmentAmount}} other {{firstInstallmentAmount} hoy, después {numberOfRemainingInstallments} mensualidades de {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} plazos de {totalAmount}","payment-plan-strings.no-fee":"(sin intereses)","payment-plan-strings.pay-now":"Pague ahora {totalAmount}","payment-plan-strings.pay.now.button":"Pagar ahora"},Ks={"credit-features.credit-cost-display":"{creditCost} (TAEG {taegPercentage})","credit-features.information":"Vérifiez vos capacités de remboursement avant de vous engager.","credit-features.information.title":"Un crédit vous engage et doit être remboursé.","credit-features.legal-text":"Crédit d'un montant de {totalWithoutFirstInstallment} au taux débiteur fixe de {taegPercentage} sur une durée de {installmeentsCountWithoutFirst} mois. Permettant, en complément d'un acompte de {firstInstallmentAmount}, de financer un achat d'un montant de {productPriceWithoutCreditCost}. Sous réserve d'étude et d'acceptation par Alma. Délai légal de rétractation de 14 jours. Simulation présentée par Alma, immatriculée au RCS Nanterre sous le numéro 839 100 575, établissement de paiement et société de financement agréée par l’ACPR sous le n° 17408 (numéro CIB / Code banque).","credit-features.total-credit-cost":"Dont coût du crédit","eligibility-modal.bullet-1":"Choisissez <strong>Alma</strong> au moment du paiement.","eligibility-modal.bullet-2":"Laissez-vous guider et validez votre paiement en <strong>2 minutes.</strong>","eligibility-modal.bullet-3":"<strong>Gardez le contrôle</strong> en avançant ou reculant vos échéances à votre rythme.","eligibility-modal.no-eligibility":"Oups, il semblerait que la simulation n'ait pas fonctionné.","eligibility-modal.p1x-bullet-1":"Choisissez <strong>Alma - Payer maintenant</strong> au moment du paiement.","eligibility-modal.p1x-bullet-2":"Renseignez les informations de votre <strong>carte bancaire.</strong>","eligibility-modal.p1x-bullet-3":"<strong>La validation </strong> de votre paiement est instantanée !","eligibility-modal.title-deferred-plan":"Payez en plusieurs fois ou plus tard par carte bancaire avec Alma.","eligibility-modal.title-normal":"Payez en plusieurs fois par carte bancaire avec Alma.","eligibility-modal.title-pay-now":"Payez comptant par carte bancaire avec Alma.","installments.today":"Aujourd'hui","installments.total-amount":"Total","installments.total-fees":"Dont frais (TTC)","payment-plan-strings.credit":"Cliquez pour en savoir plus","payment-plan-strings.day-abbreviation":"J{deferredDays}","payment-plan-strings.default-message":"Payez en plusieurs fois avec Alma","payment-plan-strings.deferred":"{totalAmount} à payer le {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Jusqu'à {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"À partir de {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(sans frais)","payment-plan-strings.pay-now":"Payer maintenant {totalAmount}","payment-plan-strings.pay.now.button":"Payer maintenant"},Ys={"credit-features.credit-cost-display":"{creditCost} (TAEG {taegPercentage})","credit-features.information":"Verificate la vostra capacità di rimborso prima di prendere un impegno.","credit-features.information.title":"Il credito è un impegno e deve essere ripagato.","credit-features.legal-text":"{totalWithoutFirstInstallment} {taegPercentage} {installmeentsCountWithoutFirst} Prestito a tasso fisso per un periodo di mesi. {firstInstallmentAmount} {productPriceWithoutCreditCost}Oltre a un deposito di , questo vi permetterà di finanziare un acquisto di . Soggetto a revisione e accettazione da parte di Alma. Periodo di recesso legale di 14 giorni. Simulazione presentata da Alma, iscritta al Registro del Commercio e delle Imprese di Nanterre con il numero 839 100 575, società di pagamento e di finanziamento approvata dall'ACPR con il numero 17408 (numero CIB / codice bancario).","credit-features.total-credit-cost":"Di cui commissioni","eligibility-modal.bullet-1":"Seleziona <strong>Alma</strong> come metodo di pagamento.","eligibility-modal.bullet-2":"Segui le istruzioni e completa l'acquisto <strong>in meno di 2 minuti.</strong>","eligibility-modal.bullet-3":"<strong>Gestisci il tuo piano di pagamento</strong> e modifica le scadenze secondo le tue esigenze.","eligibility-modal.no-eligibility":"Ops, sembra che qualcosa non abbia funzionato.","eligibility-modal.p1x-bullet-1":"Scegli <strong>Alma - Paga ora</strong> alla cassa.","eligibility-modal.p1x-bullet-2":"Inserisci i dati della tua <strong>carta bancaria.</strong>","eligibility-modal.p1x-bullet-3":"Ricevi la <strong>conferma di pagamento</strong> istantaneamente!","eligibility-modal.title-deferred-plan":"Paga a rate con Alma, senza registrazione.","eligibility-modal.title-normal":"Paga a rate con Alma, senza registrazione.","eligibility-modal.title-pay-now":"Paga ora con carta tramite Alma.","installments.today":"Oggi","installments.total-amount":"Totale","installments.total-fees":"Di cui commissioni","payment-plan-strings.credit":"Clicca qui per saperne di più","payment-plan-strings.day-abbreviation":"G{deferredDays}","payment-plan-strings.default-message":"Paga a rate con Alma, senza registrazione.","payment-plan-strings.deferred":"{totalAmount} da pagare il {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Disponibile fino a {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Pagamento rateale disponibile a partire da {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {Oggi paghi {firstInstallmentAmount} poi tra {numberOfRemainingInstallments} mese {othersInstallmentAmount}} other {Oggi paghi {firstInstallmentAmount} poi {numberOfRemainingInstallments} rate mensili di {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"In {installmentsCount} rate mensili di {totalAmount}","payment-plan-strings.no-fee":"(senza interessi)","payment-plan-strings.pay-now":"Paga ora {totalAmount}","payment-plan-strings.pay.now.button":"Paga ora"},Js={"credit-features.credit-cost-display":"{creditCost} (gemiddeld rente percentage {taegPercentage})","credit-features.information":"Controleer uw terugbetalingscapaciteit voordat u een toezegging doet.","credit-features.information.title":"Krediet is een verplichting en moet worden terugbetaald.","credit-features.legal-text":"Krediet van {totalWithoutFirstInstallment} tegen een vaste rentevoet van {taegPercentage} over een periode van {installmeentsCountWithoutFirst} maanden. Naast een aanbetaling van {firstInstallmentAmount}, kun je hiermee een aankoop financieren van {productPriceWithoutCreditCost}. Onder voorbehoud van beoordeling en aanvaarding door Alma. Wettelijke herroepingsrecht van 14 dagen. Simulatie aangeboden door Alma, ingeschreven in het handels- en bedrijvenregister van Nanterre onder het nummer 839 100 575, betalings- en financieringsmaatschappij erkend door de ACPR onder nummer 17408 (CIB-nummer / bankcode).","credit-features.total-credit-cost":"Waarvan kredietkosten","eligibility-modal.bullet-1":"Kies <strong>Alma</strong> bij het afrekenen om de eerste termijnbetaling te voldoen. Dit kan gemakkelijk via jouw favoriete betaalmethode.","eligibility-modal.bullet-2":"Betaal gemakkelijk <strong>binnen 1 minuut </strong>. Je hebt hier geen account voor nodig.","eligibility-modal.bullet-3":"<strong>Behoud de controle </strong> en bepaal je eigen tempo. Bij Alma schuif je de deadlines gemakkelijk vooruit of achteruit. Zonder bijkomende kosten.","eligibility-modal.no-eligibility":"Oeps, het lijkt erop dat de simulatie niet werkte.","eligibility-modal.p1x-bullet-1":"Kies <strong>Alma - Betaal nu</strong> bij het afrekenen om de eerste termijnbetaling te voldoen. Dit kan gemakkelijk via jouw favoriete betaalmethode.","eligibility-modal.p1x-bullet-2":"Vul je <strong>gegevens </strong> in","eligibility-modal.p1x-bullet-3":"<strong>De bevestiging </strong> van jouw betaling is direct!","eligibility-modal.title-deferred-plan":"Betaal in termijnen bij Alma - helemaal rentevrij.","eligibility-modal.title-normal":"Betaal in termijnen bij Alma - helemaal rentevrij.","eligibility-modal.title-pay-now":"Betaal met iDEAL of per creditcard bij Alma.","installments.today":"Vandaag","installments.total-amount":"Totaal","installments.total-fees":"Waarvan kosten (incl. BTW)","payment-plan-strings.credit":"Klik hier voor meer informatie","payment-plan-strings.day-abbreviation":"D{deferredDays}","payment-plan-strings.default-message":"Betaal in termijnen bij Alma - helemaal rentevrij","payment-plan-strings.deferred":"{totalAmount} te betalen op {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Tot {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Vanaf {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(zonder kosten)","payment-plan-strings.pay-now":"Betaal nu {totalAmount}","payment-plan-strings.pay.now.button":"Betaal nu"},Qs={"credit-features.credit-cost-display":"{creditCost} (TAEG {taegPercentage})","credit-features.information":"Verifique a sua capacidade de reembolso antes de assumir um compromisso.","credit-features.information.title":"O crédito é um compromisso e deve ser reembolsado.","credit-features.legal-text":"{totalWithoutFirstInstallment} {taegPercentage} {installmeentsCountWithoutFirst} Empréstimo de a uma taxa de juro fixa de durante um período de meses. {firstInstallmentAmount} {productPriceWithoutCreditCost}Para além de um depósito de , isto permitir-lhe-á financiar uma compra de . Sujeito a análise e aceitação pela Alma. Prazo legal de retratação de 14 dias. Simulação apresentada pela Alma, inscrita na Conservatória do Registo Comercial e das Sociedades de Nanterre sob o número 839 100 575, sociedade de pagamento e de financiamento aprovada pela ACPR sob o número 17408 (número CIB / código bancário).","credit-features.total-credit-cost":"Incluindo comissões de crédito","eligibility-modal.bullet-1":"Seleccionar <strong>Alma - Pay Now</strong> no final da compra.","eligibility-modal.bullet-2":"Siga as instruções e valide o seu pagamento em <strong>2 minutos.</strong>","eligibility-modal.bullet-3":"<strong>Mantenha o controlo</strong> adiando as datas de pagamento ao seu próprio ritmo.","eligibility-modal.no-eligibility":"Ups, parece que a simulação não funcionou.","eligibility-modal.p1x-bullet-1":"Escolha <strong>Alma - Pague agora</strong> no checkout.","eligibility-modal.p1x-bullet-2":"Preencha os dados do seu <strong>cartão de bancário.</strong>","eligibility-modal.p1x-bullet-3":"<strong>A validação </strong> do seu pagamento é instantânea!","eligibility-modal.title-deferred-plan":"Pagar em prestações ou mais tarde por cartão de crédito com Alma.","eligibility-modal.title-normal":"Pagar em prestações por cartão bancário com a Alma.","eligibility-modal.title-pay-now":"Pague na integralidade com a Alma por cartão bancário.","installments.today":"Hoje","installments.total-amount":"Total","installments.total-fees":"Das quais comissões (incl. IVA)","payment-plan-strings.credit":"Clique aqui para saber mais","payment-plan-strings.day-abbreviation":"D{deferredDays}","payment-plan-strings.default-message":"Pagamento em prestações com a Alma","payment-plan-strings.deferred":"{totalAmount} a pagar em {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Até {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"A partir de {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} depois {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} depois {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(sem encargos)","payment-plan-strings.pay-now":"Pagar agora {totalAmount}","payment-plan-strings.pay.now.button":"Pagar agora"},el=e=>{switch(e.slice(0,2)){case z.fr:return Ks;case z.es:return Zs;case z.it:return Ys;case z.de:return qs;case z.pt:return Qs;case z.nl:return Js;case z.en:default:return Xs}},ea=({children:e,locale:t})=>f.createElement(Vs,{messages:el(t),locale:t,defaultLocale:"en"},e),tl=e=>e.split("").reduce((t,n)=>(t<<5)-t+n.charCodeAt(0)|0,0).toString().replace("-","A"),nl=e=>Date.now()-e>=36e5;var rl={GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_4be90f1b-5944-491a-9b24-c8de1000f0b2",DOTNET_NOLOGO:"1",USER:"runner",BUILD_VERSION:"v4.0.6",npm_config_user_agent:"npm/10.9.2 node/v22.17.1 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_4be90f1b-5944-491a-9b24-c8de1000f0b2",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/22.17.1/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/widgets/widgets/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"alma",npm_package_engines_node:">=6.0.0",GRADLE_HOME:"/usr/share/gradle-8.14.3",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.2.13676358",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43338473",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/widgets/widgets",SYSTEMD_EXEC_PID:"1904",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250728.1.0",LOGNAME:"runner",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.11/x64",JOURNAL_STREAM:"9:10063",GITHUB_WORKFLOW:"Release",_:"/opt/hostedtoolcache/node/22.17.1/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/22.17.1/x64",npm_config_npm_version:"10.9.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure",GOROOT_1_24_X64:"/opt/hostedtoolcache/go/1.24.5/x64",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",GITHUB_RUN_ID:"16645096448",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"tag",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"0aa5a42b3d74766505763aeb1d71861303ebc46e",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"alma/widgets/.github/workflows/release.yml@refs/tags/v4.0.6",GITHUB_ACTION_REPOSITORY:"",ENABLE_RUNNER_TRACING:"true",npm_config_node_gyp:"/opt/hostedtoolcache/node/22.17.1/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/widgets/widgets/node_modules/.bin:/home/runner/work/widgets/widgets/node_modules/.bin:/home/runner/work/widgets/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.17.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/widgets/widgets/node_modules/.bin:/home/runner/work/widgets/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.17.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/22.17.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_9852ab24-6875-463b-aa2b-fe860c437037",INVOCATION_ID:"7d70e6a383074c37a4f065da17950d4c",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/22.17.1/x64/bin/node",npm_package_name:"@alma/widgets",GITHUB_ACTION:"__run_3",GITHUB_RUN_NUMBER:"28",GITHUB_TRIGGERING_ACTOR:"FranceBe",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 1000135752",XDG_CONFIG_HOME:"/home/runner/.config",GITHUB_REF_NAME:"v4.0.6",GITHUB_REPOSITORY:"alma/widgets",npm_lifecycle_script:"vite",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.3.13750724",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",SHELL:"/bin/bash",GITHUB_REPOSITORY_ID:"436622633",GITHUB_ACTIONS:"true",npm_package_version:"4.0.6",npm_lifecycle_event:"npx",GITHUB_REF_PROTECTED:"false",GITHUB_WORKSPACE:"/home/runner/work/widgets/widgets",ACCEPT_EULA:"Y",GITHUB_JOB:"publish-package",npm_package_config_commitizen_path:"./node_modules/cz-conventional-changelog",GITHUB_SHA:"0aa5a42b3d74766505763aeb1d71861303ebc46e",GITHUB_RUN_ATTEMPT:"1",GITHUB_REF:"refs/tags/v4.0.6",GITHUB_ACTOR:"FranceBe",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/22.17.1/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_4be90f1b-5944-491a-9b24-c8de1000f0b2",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/widgets/widgets",GITHUB_ACTOR_ID:"33830009",RUNNER_WORKSPACE:"/home/runner/work/widgets",npm_execpath:"/opt/hostedtoolcache/node/22.17.1/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"release",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_4be90f1b-5944-491a-9b24-c8de1000f0b2",npm_config_global_prefix:"/opt/hostedtoolcache/node/22.17.1/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",npm_command:"exec",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.3.13750724",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.3.13750724",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_4be90f1b-5944-491a-9b24-c8de1000f0b2",INIT_CWD:"/home/runner/work/widgets/widgets",EDITOR:"vi",NODE_ENV:"production"};const ol=()=>({setCache:(a,i)=>{const s=Date.now();sessionStorage.setItem(a,JSON.stringify({value:i,timestamp:s}))},getCache:a=>{const i=sessionStorage.getItem(a)||"";return i?JSON.parse(i):null},clearCache:()=>{sessionStorage.clear()},deleteCache:a=>{sessionStorage.removeItem(a)},createKey:a=>{const{purchaseAmount:i,plans:s,customerBillingCountry:l,customerShippingCountry:u,domain:m,merchantId:c}=a,d=i.toString(),h=JSON.stringify(s),_=rl.BUILD_VERSION;return tl(`${m}${c}${d}${h}${l}${u}${_}`)}});function al(e,t,n=""){return Ya(this,null,function*(){return(yield fetch(n,{method:"POST",headers:Re({"Content-Type":"application/json"},t),cache:"force-cache",body:JSON.stringify(e)})).json()})}const il=(e,t)=>e.eligible&&t?e.purchase_amount>=(t==null?void 0:t.minAmount)&&e.purchase_amount<=(t==null?void 0:t.maxAmount):!1,sl=(e,t)=>{var r;const n=(r=e.constraints)==null?void 0:r.purchase_amount;return n&&t?{minAmount:Math.max(t.minAmount,n==null?void 0:n.minimum),maxAmount:Math.min(t.maxAmount,n==null?void 0:n.maximum)}:t!=null?t:{}},ll=(e,t)=>t?e.map(n=>{const r=(n.deferred_months?n.deferred_months:0)*30+(n.deferred_days?n.deferred_days:0),o=t.find(a=>{const i=(a.deferredMonths?a.deferredMonths:0)*30+(a.deferredDays?a.deferredDays:0);return n.installments_count===a.installmentsCount&&r===i});return Re(Ka(Re({},n),{eligible:il(n,o)}),sl(n,o))}):e.filter(n=>!(n.installments_count===1&&n.deferred_days===0&&n.deferred_months===0));var ul={GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_4be90f1b-5944-491a-9b24-c8de1000f0b2",DOTNET_NOLOGO:"1",USER:"runner",BUILD_VERSION:"v4.0.6",npm_config_user_agent:"npm/10.9.2 node/v22.17.1 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_4be90f1b-5944-491a-9b24-c8de1000f0b2",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/22.17.1/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/widgets/widgets/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"alma",npm_package_engines_node:">=6.0.0",GRADLE_HOME:"/usr/share/gradle-8.14.3",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.2.13676358",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43338473",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/widgets/widgets",SYSTEMD_EXEC_PID:"1904",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250728.1.0",LOGNAME:"runner",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.11/x64",JOURNAL_STREAM:"9:10063",GITHUB_WORKFLOW:"Release",_:"/opt/hostedtoolcache/node/22.17.1/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/22.17.1/x64",npm_config_npm_version:"10.9.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure",GOROOT_1_24_X64:"/opt/hostedtoolcache/go/1.24.5/x64",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",GITHUB_RUN_ID:"16645096448",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"tag",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"0aa5a42b3d74766505763aeb1d71861303ebc46e",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"alma/widgets/.github/workflows/release.yml@refs/tags/v4.0.6",GITHUB_ACTION_REPOSITORY:"",ENABLE_RUNNER_TRACING:"true",npm_config_node_gyp:"/opt/hostedtoolcache/node/22.17.1/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/widgets/widgets/node_modules/.bin:/home/runner/work/widgets/widgets/node_modules/.bin:/home/runner/work/widgets/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.17.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/widgets/widgets/node_modules/.bin:/home/runner/work/widgets/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.17.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/22.17.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_9852ab24-6875-463b-aa2b-fe860c437037",INVOCATION_ID:"7d70e6a383074c37a4f065da17950d4c",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/22.17.1/x64/bin/node",npm_package_name:"@alma/widgets",GITHUB_ACTION:"__run_3",GITHUB_RUN_NUMBER:"28",GITHUB_TRIGGERING_ACTOR:"FranceBe",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 1000135752",XDG_CONFIG_HOME:"/home/runner/.config",GITHUB_REF_NAME:"v4.0.6",GITHUB_REPOSITORY:"alma/widgets",npm_lifecycle_script:"vite",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.3.13750724",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",SHELL:"/bin/bash",GITHUB_REPOSITORY_ID:"436622633",GITHUB_ACTIONS:"true",npm_package_version:"4.0.6",npm_lifecycle_event:"npx",GITHUB_REF_PROTECTED:"false",GITHUB_WORKSPACE:"/home/runner/work/widgets/widgets",ACCEPT_EULA:"Y",GITHUB_JOB:"publish-package",npm_package_config_commitizen_path:"./node_modules/cz-conventional-changelog",GITHUB_SHA:"0aa5a42b3d74766505763aeb1d71861303ebc46e",GITHUB_RUN_ATTEMPT:"1",GITHUB_REF:"refs/tags/v4.0.6",GITHUB_ACTOR:"FranceBe",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/22.17.1/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_4be90f1b-5944-491a-9b24-c8de1000f0b2",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/widgets/widgets",GITHUB_ACTOR_ID:"33830009",RUNNER_WORKSPACE:"/home/runner/work/widgets",npm_execpath:"/opt/hostedtoolcache/node/22.17.1/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"release",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_4be90f1b-5944-491a-9b24-c8de1000f0b2",npm_config_global_prefix:"/opt/hostedtoolcache/node/22.17.1/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",npm_command:"exec",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.3.13750724",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.3.13750724",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_4be90f1b-5944-491a-9b24-c8de1000f0b2",INIT_CWD:"/home/runner/work/widgets/widgets",EDITOR:"vi",NODE_ENV:"production"};const ta=(e,{domain:t,merchantId:n},r,o,a)=>{var E,R;const[i,s]=ne([]),[l,u]=ne(H.PENDING),{getCache:m,setCache:c,createKey:d,clearCache:h}=ol(),_=d({purchaseAmount:e,plans:r,customerBillingCountry:o,customerShippingCountry:a,domain:t,merchantId:n}),b=(E=m(_))==null?void 0:E.value,v=(R=m(_))==null?void 0:R.timestamp,y=v&&nl(v),T=r==null?void 0:r.map(g=>({installments_count:g.installmentsCount,deferred_days:g==null?void 0:g.deferredDays,deferred_months:g==null?void 0:g.deferredMonths}));return fe(()=>{if(l===H.PENDING){let g=null;o&&(g={country:o});let N=null;a&&(N={country:a}),b&&!y&&(s(b),u(H.SUCCESS)),y&&h(),b||al({purchase_amount:e,queries:T,billing_address:g,shipping_address:N},{Authorization:`Alma-Merchant-Auth ${n}`,"X-Alma-Agent":`Alma Widget/${ul.BUILD_VERSION}`},`${t}/v2/payments/eligibility`).then(W=>{"error_code"in W||"errors"in W?u(H.FAILED):(s(W),c(_,W),u(H.SUCCESS))}).catch(()=>{u(H.FAILED)})}},[l,e,_,o,a,b,y,T,n,t,c,h]),[ll(i,r),l]};var Wn={};Wn.match=pl,Wn.parse=na;var cl=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,ml=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,fl=/^(?:(min|max)-)?(.+)/,dl=/(em|rem|px|cm|mm|in|pt|pc)?$/,hl=/(dpi|dpcm|dppx)?$/;function pl(e,t){return na(e).some(function(n){var r=n.inverse,o=n.type==="all"||t.type===n.type;if(o&&r||!(o||r))return!1;var a=n.expressions.every(function(i){var s=i.feature,l=i.modifier,u=i.value,m=t[s];if(!m)return!1;switch(s){case"orientation":case"scan":return m.toLowerCase()===u.toLowerCase();case"width":case"height":case"device-width":case"device-height":u=aa(u),m=aa(m);break;case"resolution":u=oa(u),m=oa(m);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":u=ra(u),m=ra(m);break;case"grid":case"color":case"color-index":case"monochrome":u=parseInt(u,10)||1,m=parseInt(m,10)||0;break}switch(l){case"min":return m>=u;case"max":return m<=u;default:return m===u}});return a&&!r||!a&&r})}function na(e){return e.split(",").map(function(t){t=t.trim();var n=t.match(cl),r=n[1],o=n[2],a=n[3]||"",i={};return i.inverse=!!r&&r.toLowerCase()==="not",i.type=o?o.toLowerCase():"all",a=a.match(/\([^\)]+\)/g)||[],i.expressions=a.map(function(s){var l=s.match(ml),u=l[1].toLowerCase().match(fl);return{modifier:u[1],feature:u[2],value:l[2]}}),i})}function ra(e){var t=Number(e),n;return t||(n=e.match(/^(\d+)\s*\/\s*(\d+)$/),t=n[1]/n[2]),t}function oa(e){var t=parseFloat(e),n=String(e).match(hl)[1];switch(n){case"dpcm":return t/2.54;case"dppx":return t*96;default:return t}}function aa(e){var t=parseFloat(e),n=String(e).match(dl)[1];switch(n){case"em":return t*16;case"rem":return t*16;case"cm":return t*96/2.54;case"mm":return t*96/2.54/10;case"in":return t*96;case"pt":return t*72;case"pc":return t*72/12;default:return t}}var _l=Wn.match,ia=typeof window!="undefined"?window.matchMedia:null;function gl(e,t,n){var r=this,o;ia&&!n&&(o=ia.call(window,e)),o?(this.matches=o.matches,this.media=o.media,o.addListener(s)):(this.matches=_l(e,t),this.media=e),this.addListener=a,this.removeListener=i,this.dispose=l;function a(u){o&&o.addListener(u)}function i(u){o&&o.removeListener(u)}function s(u){r.matches=u.matches,r.media=u.media}function l(){o&&o.removeListener(s)}}function vl(e,t,n){return new gl(e,t,n)}var yl=vl;const bl=vt(yl);var El=/[A-Z]/g,Tl=/^ms-/,jn={};function xl(e){return"-"+e.toLowerCase()}function sa(e){if(jn.hasOwnProperty(e))return jn[e];var t=e.replace(El,xl);return jn[e]=Tl.test(t)?"-"+t:t}function Al(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(let a=0;a<o;a++){const i=n[a];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0}var la={exports:{}},Vn,ua;function Il(){if(ua)return Vn;ua=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Vn=e,Vn}var zn,ca;function Cl(){if(ca)return zn;ca=1;var e=Il();function t(){}function n(){}return n.resetWarningCache=t,zn=function(){function r(i,s,l,u,m,c){if(c!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}r.isRequired=r;function o(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},zn}la.exports=Cl()();var qn=la.exports;const B=vt(qn),se=B.oneOfType([B.string,B.number]),Xn={all:B.bool,grid:B.bool,aural:B.bool,braille:B.bool,handheld:B.bool,print:B.bool,projection:B.bool,screen:B.bool,tty:B.bool,tv:B.bool,embossed:B.bool},ma={orientation:B.oneOf(["portrait","landscape"]),scan:B.oneOf(["progressive","interlace"]),aspectRatio:B.string,deviceAspectRatio:B.string,height:se,deviceHeight:se,width:se,deviceWidth:se,color:B.bool,colorIndex:B.bool,monochrome:B.bool,resolution:se,type:Object.keys(Xn)},za=ma,{type:Mc}=za,Sl=Kt(za,["type"]),fa=Re({minAspectRatio:B.string,maxAspectRatio:B.string,minDeviceAspectRatio:B.string,maxDeviceAspectRatio:B.string,minHeight:se,maxHeight:se,minDeviceHeight:se,maxDeviceHeight:se,minWidth:se,maxWidth:se,minDeviceWidth:se,maxDeviceWidth:se,minColor:B.number,maxColor:B.number,minColorIndex:B.number,maxColorIndex:B.number,minMonochrome:B.number,maxMonochrome:B.number,minResolution:se,maxResolution:se},Sl);var Ol={all:Re(Re({},Xn),fa),types:Xn,matchers:ma,features:fa};const Nl=e=>`not ${e}`,Rl=(e,t)=>{const n=sa(e);return typeof t=="number"&&(t=`${t}px`),t===!0?n:t===!1?Nl(n):`(${n}: ${t})`},wl=e=>e.join(" and "),Ml=e=>{const t=[];return Object.keys(Ol.all).forEach(n=>{const r=e[n];r!=null&&t.push(Rl(n,r))}),wl(t)},Hl=ct(void 0),Pl=e=>e.query||Ml(e),da=e=>e?Object.keys(e).reduce((n,r)=>(n[sa(r)]=e[r],n),{}):void 0,ha=()=>{const e=Ht(!1);return fe(()=>{e.current=!0},[]),e.current},Ll=e=>{const t=ft(Hl),n=()=>da(e)||da(t),[r,o]=ne(n);return fe(()=>{const a=n();Al(r,a)||o(a)},[e,t]),r},Dl=e=>{const t=()=>Pl(e),[n,r]=ne(t);return fe(()=>{const o=t();n!==o&&r(o)},[e]),n},Bl=(e,t)=>{const n=()=>bl(e,t||{},!!t),[r,o]=ne(n),a=ha();return fe(()=>{if(a){const i=n();return o(i),()=>{i&&i.dispose()}}},[e,t]),r},Ul=e=>{const[t,n]=ne(e.matches);return fe(()=>{const r=o=>{n(o.matches)};return e.addListener(r),n(e.matches),()=>{e.removeListener(r)}},[e]),t},Fl=(e,t,n)=>{const r=Ll(t),o=Dl(e);if(!o)throw new Error("Invalid or missing MediaQuery!");const a=Bl(o,r),i=Ul(a),s=ha();return fe(()=>{s&&n&&n(i)},[i]),fe(()=>()=>{a&&a.dispose()},[]),i};var pa={exports:{}};/*!
|
|
29
|
+
*/var Kr;function Ws(){if(Kr)return F;Kr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,c=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function E(y){if(typeof y=="object"&&y!==null){var w=y.$$typeof;switch(w){case t:switch(y=y.type,y){case l:case u:case a:case i:case r:case c:return y;default:switch(y=y&&y.$$typeof,y){case s:case f:case g:case p:case o:return y;default:return w}}case n:return w}}}function N(y){return E(y)===u}return F.AsyncMode=l,F.ConcurrentMode=u,F.ContextConsumer=s,F.ContextProvider=o,F.Element=t,F.ForwardRef=f,F.Fragment=a,F.Lazy=g,F.Memo=p,F.Portal=n,F.Profiler=i,F.StrictMode=r,F.Suspense=c,F.isAsyncMode=function(y){return N(y)||E(y)===l},F.isConcurrentMode=N,F.isContextConsumer=function(y){return E(y)===s},F.isContextProvider=function(y){return E(y)===o},F.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},F.isForwardRef=function(y){return E(y)===f},F.isFragment=function(y){return E(y)===a},F.isLazy=function(y){return E(y)===g},F.isMemo=function(y){return E(y)===p},F.isPortal=function(y){return E(y)===n},F.isProfiler=function(y){return E(y)===i},F.isStrictMode=function(y){return E(y)===r},F.isSuspense=function(y){return E(y)===c},F.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===a||y===u||y===i||y===r||y===c||y===d||typeof y=="object"&&y!==null&&(y.$$typeof===g||y.$$typeof===p||y.$$typeof===o||y.$$typeof===s||y.$$typeof===f||y.$$typeof===b||y.$$typeof===_||y.$$typeof===x||y.$$typeof===v)},F.typeOf=E,F}Xr.exports=Ws();var js=Xr.exports,Jr=js,Vs={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qs={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Yr={};Yr[Jr.ForwardRef]=Vs,Yr[Jr.Memo]=qs;var Gn=typeof window!="undefined"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=yt(null)):yt(null);Gn.Consumer;var Zs=Gn.Provider,Xs=Zs,Ks=Gn;function ye(){var e=vt(Ks);return Vr(e),e}var zn;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(zn||(zn={}));var Wn;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Wn||(Wn={}));function Qr(e){var t=function(n){var a=ye(),r=n.value,i=n.children,o=at(n,["value","children"]),s=typeof r=="string"?new Date(r||0):r,l=e==="formatDate"?a.formatDateToParts(s,o):a.formatTimeToParts(s,o);return i(l)};return t.displayName=Wn[e],t}function Tt(e){var t=function(n){var a=ye(),r=n.value,i=n.children,o=at(n,["value","children"]),s=a[e](r,o);if(typeof i=="function")return i(s);var l=a.textComponent||ge;return he(l,null,s)};return t.displayName=zn[e],t}function ei(e){return e&&Object.keys(e).reduce(function(t,n){var a=e[n];return t[n]=Hr(a)?zs(a):a,t},{})}var ti=function(e,t,n,a){for(var r=[],i=4;i<arguments.length;i++)r[i-4]=arguments[i];var o=ei(a),s=Un.apply(void 0,ce([e,t,n,o],r,!1));return Array.isArray(s)?Et.toArray(s):s},ni=function(e,t){var n=e.defaultRichTextElements,a=at(e,["defaultRichTextElements"]),r=ei(n),i=Gs(C(C(C({},qr),a),{defaultRichTextElements:r}),t),o={locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:r};return C(C({},i),{formatMessage:ti.bind(null,o,i.formatters),$t:ti.bind(null,o,i.formatters)})};function jn(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var Js=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache=Fr(),n.state={cache:n.cache,intl:ni(jn(n.props),n.cache),prevConfig:jn(n.props)},n}return t.getDerivedStateFromProps=function(n,a){var r=a.prevConfig,i=a.cache,o=jn(n);return $n(r,o)?null:{intl:ni(o,i),prevConfig:o}},t.prototype.render=function(){return Vr(this.state.intl),he(Xs,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=qr,t}(bt);function Ys(e,t){var n=e.values,a=at(e,["values"]),r=t.values,i=at(t,["values"]);return $n(r,n)&&$n(a,i)}function ai(e){var t=ye(),n=t.formatMessage,a=t.textComponent,r=a===void 0?ge:a,i=e.id,o=e.description,s=e.defaultMessage,l=e.values,u=e.children,f=e.tagName,c=f===void 0?r:f,d=e.ignoreTag,p={id:i,description:o,defaultMessage:s},g=n(p,l,{ignoreTag:d});return typeof u=="function"?u(Array.isArray(g)?g:[g]):c?he(c,null,Et.toArray(g)):he(ge,null,g)}ai.displayName="FormattedMessage";var L=Sn(ai,Ys);L.displayName="MemoizedFormattedMessage";var ri=Tt("formatDate");Tt("formatTime");var Oe=Tt("formatNumber");Tt("formatList"),Tt("formatDisplayName"),Qr("formatDate"),Qr("formatTime");const Qs={"accessibility.amex-card.aria-label":"American Express-Karte akzeptiert","accessibility.animation-control-instructions":"Automatische Animation der Zahlungspläne aktiv. Bewegen Sie den Mauszeiger über oder navigieren Sie mit den Pfeiltasten, um die Animation zu stoppen.","accessibility.cb-card.aria-label":"Kreditkarte CB akzeptiert","accessibility.close-button.aria-label":"Fenster schließen","accessibility.mastercard.aria-label":"Mastercard akzeptiert","accessibility.payment-info.section-title":"Informationen über den ausgewählten Zahlungsplan","accessibility.payment-options.listbox.aria-label":"Verfügbare Zahlungsoptionen","accessibility.payment-plan-button.aria-label":"Wählen Sie den Zahlungsplan {planName}","accessibility.payment-plan.option.aria-label":"Zahlungsoption {planDescription}","accessibility.payment-plans-title":"Verfügbare Zahlungsoptionen","accessibility.payment-plans.section-title":"Verfügbare Zahlungsoptionen","accessibility.payment-schedule-title":"Ratenplan für die Zahlung","accessibility.payment-widget.main.aria-label":"Auswahl der Zahlungsoptionen Alma","accessibility.payment-widget.open-button.aria-label":"Ouvrir les options de paiement Alma pour en savoir plus","accessibility.plan-selection-changed":"Ausgewählter Plan: {planDescription}","accessibility.skip-links.navigation.aria-label":"Schnelle Navigation","accessibility.visa-card.aria-label":"Visa-Karte wird akzeptiert","credit-features.credit-cost-display":"{creditCost} (APR {taegPercentage})","credit-features.information":"Überprüfen Sie Ihre Rückzahlungsmöglichkeiten, bevor Sie eine Verpflichtung eingehen.","credit-features.information.title":"Ein Kredit verpflichtet Sie und muss zurückgezahlt werden.","credit-features.legal-text":"Kredit in Höhe von {totalWithoutFirstInstallment} zu einem festen Sollzinssatz von {taegPercentage} über eine Laufzeit von {installmeentsCountWithoutFirst} Monaten. Ermöglicht, zusätzlich zu einer Anzahlung von {firstInstallmentAmount}, die Finanzierung eines Kaufs in Höhe von {productPriceWithoutCreditCost}. Vorbehaltlich der Prüfung und Annahme durch Alma. Gesetzliche Widerrufsfrist von 14 Tagen. Simulation präsentiert von Alma, eingetragen im RCS Nanterre unter der Nummer 839 100 575, Zahlungsinstitut und Finanzierungsgesellschaft, zugelassen von der ACPR unter der Nummer 17408 (IPC-Nummer / Bankcode).","credit-features.total-credit-cost":"Davon Kreditkosten","eligibility-modal.bullet-1":"Wählen Sie <strong>Alma</strong> beim Check-out. ","eligibility-modal.bullet-2":"Lassen Sie sich führen und bestätigen Sie Ihre Zahlung in <strong>2 Minuten.</strong>","eligibility-modal.bullet-3":"<strong>Behalten Sie die Kontrolle</strong> , indem Sie Ihre Fälligkeitstermine in Ihrem eigenen Tempo vor- oder zurückverlegen.","eligibility-modal.info-title":"Wie erfolgt die Bezahlung","eligibility-modal.no-eligibility":"Ups, die Prüfung hat anscheinend nicht funktioniert.","eligibility-modal.p1x-bullet-1":"Wählen Sie <strong>Alma - Jetzt bezahlen</strong> zum Zeitpunkt der Zahlung.","eligibility-modal.p1x-bullet-2":"Tragen Sie Ihre <strong>Kreditkarteninformationen ein.</strong>","eligibility-modal.p1x-bullet-3":"<strong> Die Bestätigung </strong> Ihrer Zahlung erfolgt sofort !","eligibility-modal.title-deferred-plan":"Zahlen Sie mit Alma in Raten oder später.","eligibility-modal.title-normal":"Zahlen Sie mit Alma in mehreren Raten.","eligibility-modal.title-pay-now":"Bezahlen Sie auf einmal mit Alma per Kreditkarte.","installments.today":"Heute","installments.total-amount":"Gesamtsumme","installments.total-fees":"Davon Kosten","payment-plan-strings.credit":"Klicken Sie, um mehr zu erfahren","payment-plan-strings.day-abbreviation":"T{deferredDays}","payment-plan-strings.default-message":"Bezahlen Sie zinsfrei in mehreren Raten mit Alma.","payment-plan-strings.deferred":"{totalAmount} zu zahlen am {dueDate}","payment-plan-strings.deferred.days":"{days, number} {days, plural, one {Tag} other {Tage}}","payment-plan-strings.deferred.months":"{months, number} {months, plural, one {Monate} other {Monate}}","payment-plan-strings.ineligible-greater-than-max":"Bis zu {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Ab {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(0% Finanzierung)","payment-plan-strings.pay-now":"Zahlen Sie jetzt {totalAmount}","payment-plan-strings.pay.deferred.button":"Aufgeschobenes Bezahlen: {deferredTime}","payment-plan-strings.pay.now.button":"Jetzt bezahlen","skip-links.payment-info":"Zu den Zahlungsinformationen gehen","skip-links.payment-plans":"Zu den Zahlungsoptionen gehen","skip-links.payment-schedule":"Zum Zahlungskalender gehen"},el={"accessibility.amex-card.aria-label":"American Express card accepted","accessibility.animation-control-instructions":"Automatic animation of payment plans active. Hover or navigate with the arrows to stop animation.","accessibility.cb-card.aria-label":"CB credit card accepted","accessibility.close-button.aria-label":"Close window","accessibility.mastercard.aria-label":"Mastercard accepted","accessibility.payment-info.section-title":"Information on the selected payment plan","accessibility.payment-options.listbox.aria-label":"Available payment options","accessibility.payment-plan-button.aria-label":"Select payment plan {planName}","accessibility.payment-plan.option.aria-label":"Payment option {planDescription}","accessibility.payment-plans-title":"Available payment options","accessibility.payment-plans.section-title":"Available payment options","accessibility.payment-schedule-title":"Payment schedule","accessibility.payment-widget.main.aria-label":"Selecting Alma payment options","accessibility.payment-widget.open-button.aria-label":"Ouvrir les options de paiement Alma pour en savoir plus","accessibility.plan-selection-changed":"Selected plan: {planDescription}","accessibility.skip-links.navigation.aria-label":"Quick navigation","accessibility.visa-card.aria-label":"Visa card accepted","credit-features.credit-cost-display":"{creditCost} (APR {taegPercentage})","credit-features.information":"Check your repayment capacity before committing yourself.","credit-features.information.title":"Credit is a commitment and must be repaid.","credit-features.legal-text":"Loan of {totalWithoutFirstInstallment} at a fixed interest rate of {taegPercentage} over a period of {installmeentsCountWithoutFirst} months. In addition to a down payment of {firstInstallmentAmount}, this loan can be used to finance a purchase of {productPriceWithoutCreditCost}. Subject to review and acceptance by Alma. Legal cooling-off period of 14 days. Simulation presented by Alma, registered with the RCS Nanterre under number 839 100 575, payment and finance company approved by the ACPR under number 17408 (CIB number / Bank code).","credit-features.total-credit-cost":"Of which cost of credit","eligibility-modal.bullet-1":"Choose <strong>Alma</strong> at checkout.","eligibility-modal.bullet-2":"Let us guide you and validate your payment in <strong>2 minutes.</strong>","eligibility-modal.bullet-3":"<strong>Stay in control</strong> by advancing or postponing your deadlines at your own pace.","eligibility-modal.info-title":"How to pay","eligibility-modal.no-eligibility":"Oops, looks like the simulation didn't work.","eligibility-modal.p1x-bullet-1":"Choose <strong>Alma - Pay now</strong> at checkout.","eligibility-modal.p1x-bullet-2":"Enter your <strong>credit card details.</strong>","eligibility-modal.p1x-bullet-3":"<strong>Your payment is instantly validated at </strong> !","eligibility-modal.title-deferred-plan":"Pay in installments or later by credit card with Alma.","eligibility-modal.title-normal":"Pay in installments by credit card with Alma.","eligibility-modal.title-pay-now":"Pay cash by credit card with Alma.","installments.today":"Today","installments.total-amount":"Total","installments.total-fees":"Of which costs (incl. VAT)","payment-plan-strings.credit":"Click to find out more","payment-plan-strings.day-abbreviation":"D{deferredDays}","payment-plan-strings.default-message":"Pay in installments with Alma","payment-plan-strings.deferred":"{totalAmount} to pay the {dueDate}","payment-plan-strings.deferred.days":"{days, number} {days, plural, one {day} other {days}}","payment-plan-strings.deferred.months":"{months, number} {months, plural, one {months} other {months}}","payment-plan-strings.ineligible-greater-than-max":"Until {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"From {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} then {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} then {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(free of charge)","payment-plan-strings.pay-now":"Pay now {totalAmount}","payment-plan-strings.pay.deferred.button":"Deferred payment: {deferredTime}","payment-plan-strings.pay.now.button":"Pay now","skip-links.payment-info":"Go to payment information","skip-links.payment-plans":"Go to payment options","skip-links.payment-schedule":"Go to payment calendar"},tl={"accessibility.amex-card.aria-label":"Se acepta la tarjeta American Express","accessibility.animation-control-instructions":"La animación automática de los planes de pago está activa. Pase el ratón por encima o desplácese con las flechas para detener la animación.","accessibility.cb-card.aria-label":"Se acepta tarjeta de crédito CB","accessibility.close-button.aria-label":"Cerrar ventana","accessibility.mastercard.aria-label":"Se acepta Mastercard","accessibility.payment-info.section-title":"Información sobre el plan de pago seleccionado","accessibility.payment-options.listbox.aria-label":"Formas de pago disponibles","accessibility.payment-plan-button.aria-label":"Seleccione el plan de pago {planName}","accessibility.payment-plan.option.aria-label":"Forma de pago {planDescription}","accessibility.payment-plans-title":"Formas de pago disponibles","accessibility.payment-plans.section-title":"Formas de pago disponibles","accessibility.payment-schedule-title":"Calendario de pagos","accessibility.payment-widget.main.aria-label":"Selección de opciones de pago Alma","accessibility.payment-widget.open-button.aria-label":"Ouvrir les options de paiement Alma pour en savoir plus","accessibility.plan-selection-changed":"Plan seleccionado: {planDescription}","accessibility.skip-links.navigation.aria-label":"Navegación rápida","accessibility.visa-card.aria-label":"Se acepta tarjeta Visa","credit-features.credit-cost-display":"{creditCost} (TAE {taegPercentage})","credit-features.information":"Compruebe tu capacidad de reembolso antes de comprometerte.","credit-features.information.title":"El crédito y/o pago a plazos es un compromiso y debe devolverse.","credit-features.legal-text":" Préstamo de {totalWithoutFirstInstallment} a un tipo deudor fijo a {taegPercentage} a lo largo de un periodo de {installmeentsCountWithoutFirst} meses. Además de un depósito de {firstInstallmentAmount}, esto te permitirá financiar una compra de {productPriceWithoutCreditCost}. Sujeto a revisión y aceptación por parte de Alma. Plazo legal de retractación de 14 días. Simulación presentada por Alma, inscrita en el Registro Mercantil de Nanterre con el número 839 100 575, sociedad de pago y financiación autorizada por la ACPR con el número 17408 (número CIB / código bancario).","credit-features.total-credit-cost":"Coste de crédito (incl. en el total)","eligibility-modal.bullet-1":"Elige <strong>Alma</strong> como método de pago.","eligibility-modal.bullet-2":"Déjate guiar y válida tu pago en <strong>2 minutos.</strong>","eligibility-modal.bullet-3":"<strong>Mantén el control</strong> adelantando o aplazando los plazos a su propio ritmo.","eligibility-modal.info-title":"Cómo pagar","eligibility-modal.no-eligibility":"Uy, parece que la simulación no ha funcionado.","eligibility-modal.p1x-bullet-1":"Elije <strong>Alma - Pagar ahora</strong> al momento de la compra.","eligibility-modal.p1x-bullet-2":"Introduce los datos de tu tarjeta bancaria en <strong>.</strong>","eligibility-modal.p1x-bullet-3":"<strong>¡La validación </strong> de tu pago es instantánea!","eligibility-modal.title-deferred-plan":"Paga a plazos o posteriormente con tarjeta bancaria con Alma.","eligibility-modal.title-normal":"Pagar a plazos con tarjeta bancaria con Alma.","eligibility-modal.title-pay-now":"Paga de contado con tu tarjeta bancaria a través de alma.","installments.today":"Hoy","installments.total-amount":"Total","installments.total-fees":"De los cuales, costes (IVA incluido)","payment-plan-strings.credit":"Pincha aqui para más información","payment-plan-strings.day-abbreviation":"D{deferredDays}","payment-plan-strings.default-message":"Pagar a plazos con Alma","payment-plan-strings.deferred":"{totalAmount} a pagar el {dueDate}","payment-plan-strings.deferred.days":"{days, number} {days, plural, one {día} other {días}}","payment-plan-strings.deferred.months":"{months, number} {months, plural, one {meses} other {meses}}","payment-plan-strings.ineligible-greater-than-max":"Hasta {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Desde {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} hoy, después {numberOfRemainingInstallments} mensualidad de {othersInstallmentAmount}} other {{firstInstallmentAmount} hoy, después {numberOfRemainingInstallments} mensualidades de {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} plazos de {totalAmount}","payment-plan-strings.no-fee":"(sin intereses)","payment-plan-strings.pay-now":"Pague ahora {totalAmount}","payment-plan-strings.pay.deferred.button":"Pago aplazado: {deferredTime}","payment-plan-strings.pay.now.button":"Pagar ahora","skip-links.payment-info":"Ir a la información de pago","skip-links.payment-plans":"Ir a las opciones de pago","skip-links.payment-schedule":"Ir al calendario de pagos"},nl={"accessibility.amex-card.aria-label":"Carte American Express acceptée","accessibility.animation-control-instructions":"Animation automatique des plans de paiement active. Survolez ou naviguez avec les flèches pour arrêter l'animation.","accessibility.cb-card.aria-label":"Carte Bancaire CB acceptée","accessibility.close-button.aria-label":"Fermer la fenêtre","accessibility.mastercard.aria-label":"Carte Mastercard acceptée","accessibility.payment-info.section-title":"Informations sur le plan de paiement sélectionné","accessibility.payment-options.listbox.aria-label":"Options de paiement disponibles","accessibility.payment-plan-button.aria-label":"Sélectionner le plan de paiement {planName}","accessibility.payment-plan.option.aria-label":"Option de paiement {planDescription}","accessibility.payment-plans-title":"Options de paiement disponibles","accessibility.payment-plans.section-title":"Options de paiement disponibles","accessibility.payment-schedule-title":"Calendrier de paiement","accessibility.payment-widget.main.aria-label":"Sélection des options de paiement Alma","accessibility.payment-widget.open-button.aria-label":"Ouvrir les options de paiement Alma pour en savoir plus","accessibility.plan-selection-changed":"Plan sélectionné : {planDescription}","accessibility.skip-links.navigation.aria-label":"Navigation rapide","accessibility.visa-card.aria-label":"Carte Visa acceptée","credit-features.credit-cost-display":"{creditCost} (TAEG {taegPercentage})","credit-features.information":"Vérifiez vos capacités de remboursement avant de vous engager.","credit-features.information.title":"Un crédit vous engage et doit être remboursé.","credit-features.legal-text":"Crédit d'un montant de {totalWithoutFirstInstallment} au taux débiteur fixe de {taegPercentage} sur une durée de {installmeentsCountWithoutFirst} mois. Permettant, en complément d'un acompte de {firstInstallmentAmount}, de financer un achat d'un montant de {productPriceWithoutCreditCost}. Sous réserve d'étude et d'acceptation par Alma. Délai légal de rétractation de 14 jours. Simulation présentée par Alma, immatriculée au RCS Nanterre sous le numéro 839 100 575, établissement de paiement et société de financement agréée par l’ACPR sous le n° 17408 (numéro CIB / Code banque).","credit-features.total-credit-cost":"Dont coût du crédit","eligibility-modal.bullet-1":"Choisissez <strong>Alma</strong> au moment du paiement.","eligibility-modal.bullet-2":"Laissez-vous guider et validez votre paiement en <strong>2 minutes.</strong>","eligibility-modal.bullet-3":"<strong>Gardez le contrôle</strong> en avançant ou reculant vos échéances à votre rythme.","eligibility-modal.info-title":"Comment procéder au paiement","eligibility-modal.no-eligibility":"Oups, il semblerait que la simulation n'ait pas fonctionné.","eligibility-modal.p1x-bullet-1":"Choisissez <strong>Alma - Payer maintenant</strong> au moment du paiement.","eligibility-modal.p1x-bullet-2":"Renseignez les informations de votre <strong>carte bancaire.</strong>","eligibility-modal.p1x-bullet-3":"<strong>La validation </strong> de votre paiement est instantanée !","eligibility-modal.title-deferred-plan":"Payez en plusieurs fois ou plus tard par carte bancaire avec Alma.","eligibility-modal.title-normal":"Payez en plusieurs fois par carte bancaire avec Alma.","eligibility-modal.title-pay-now":"Payez comptant par carte bancaire avec Alma.","installments.today":"Aujourd'hui","installments.total-amount":"Total","installments.total-fees":"Dont frais (TTC)","payment-plan-strings.credit":"Cliquez pour en savoir plus","payment-plan-strings.day-abbreviation":"J{deferredDays}","payment-plan-strings.default-message":"Payez en plusieurs fois avec Alma","payment-plan-strings.deferred":"{totalAmount} à payer le {dueDate}","payment-plan-strings.deferred.days":"{days, number} {days, plural, one {jour} other {jours}}","payment-plan-strings.deferred.months":"{months, number} {months, plural, one {mois} other {mois}}","payment-plan-strings.ineligible-greater-than-max":"Jusqu'à {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"À partir de {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(sans frais)","payment-plan-strings.pay-now":"Payer maintenant {totalAmount}","payment-plan-strings.pay.deferred.button":"Payer en différé : {deferredTime}","payment-plan-strings.pay.now.button":"Payer maintenant","skip-links.payment-info":"Aller aux informations de paiement","skip-links.payment-plans":"Aller aux options de paiement","skip-links.payment-schedule":"Aller au calendrier de paiement"},al={"accessibility.amex-card.aria-label":"Carta American Express accettata","accessibility.animation-control-instructions":"L'animazione automatica dei piani di pagamento è attiva. Passare il mouse sopra o navigare con le frecce per fermare l'animazione.","accessibility.cb-card.aria-label":"Carta di credito CB accettata","accessibility.close-button.aria-label":"Chiudere la finestra","accessibility.mastercard.aria-label":"Mastercard accettata","accessibility.payment-info.section-title":"Informazioni sul piano di pagamento selezionato","accessibility.payment-options.listbox.aria-label":"Opzioni di pagamento disponibili","accessibility.payment-plan-button.aria-label":"Selezionare il piano di pagamento {planName}","accessibility.payment-plan.option.aria-label":"Opzione di pagamento {planDescription}","accessibility.payment-plans-title":"Opzioni di pagamento disponibili","accessibility.payment-plans.section-title":"Opzioni di pagamento disponibili","accessibility.payment-schedule-title":"Piano di pagamento","accessibility.payment-widget.main.aria-label":"Selezione delle opzioni di pagamento Alma","accessibility.payment-widget.open-button.aria-label":"Ouvrir les options de paiement Alma pour en savoir plus","accessibility.plan-selection-changed":"Piano selezionato: {planDescription}","accessibility.skip-links.navigation.aria-label":"Navigazione rapida","accessibility.visa-card.aria-label":"Carta Visa accettata","credit-features.credit-cost-display":"{creditCost} (TAEG {taegPercentage})","credit-features.information":"Verificate la vostra capacità di rimborso prima di prendere un impegno.","credit-features.information.title":"Il credito è un impegno e deve essere ripagato.","credit-features.legal-text":"{totalWithoutFirstInstallment} {taegPercentage} {installmeentsCountWithoutFirst} Prestito a tasso fisso per un periodo di mesi. {firstInstallmentAmount} {productPriceWithoutCreditCost}Oltre a un deposito di , questo vi permetterà di finanziare un acquisto di . Soggetto a revisione e accettazione da parte di Alma. Periodo di recesso legale di 14 giorni. Simulazione presentata da Alma, iscritta al Registro del Commercio e delle Imprese di Nanterre con il numero 839 100 575, società di pagamento e di finanziamento approvata dall'ACPR con il numero 17408 (numero CIB / codice bancario).","credit-features.total-credit-cost":"Di cui commissioni","eligibility-modal.bullet-1":"Seleziona <strong>Alma</strong> come metodo di pagamento.","eligibility-modal.bullet-2":"Segui le istruzioni e completa l'acquisto <strong>in meno di 2 minuti.</strong>","eligibility-modal.bullet-3":"<strong>Gestisci il tuo piano di pagamento</strong> e modifica le scadenze secondo le tue esigenze.","eligibility-modal.info-title":"Come pagare","eligibility-modal.no-eligibility":"Ops, sembra che qualcosa non abbia funzionato.","eligibility-modal.p1x-bullet-1":"Scegli <strong>Alma - Paga ora</strong> alla cassa.","eligibility-modal.p1x-bullet-2":"Inserisci i dati della tua <strong>carta bancaria.</strong>","eligibility-modal.p1x-bullet-3":"Ricevi la <strong>conferma di pagamento</strong> istantaneamente!","eligibility-modal.title-deferred-plan":"Paga a rate con Alma, senza registrazione.","eligibility-modal.title-normal":"Paga a rate con Alma, senza registrazione.","eligibility-modal.title-pay-now":"Paga ora con carta tramite Alma.","installments.today":"Oggi","installments.total-amount":"Totale","installments.total-fees":"Di cui commissioni","payment-plan-strings.credit":"Clicca qui per saperne di più","payment-plan-strings.day-abbreviation":"G{deferredDays}","payment-plan-strings.default-message":"Paga a rate con Alma, senza registrazione.","payment-plan-strings.deferred":"{totalAmount} da pagare il {dueDate}","payment-plan-strings.deferred.days":"{days, number} {days, plural, one {giorno} other {giorni}}","payment-plan-strings.deferred.months":"{months, number} {months, plural, one {mesi} other {mesi}}","payment-plan-strings.ineligible-greater-than-max":"Disponibile fino a {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Pagamento rateale disponibile a partire da {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {Oggi paghi {firstInstallmentAmount} poi tra {numberOfRemainingInstallments} mese {othersInstallmentAmount}} other {Oggi paghi {firstInstallmentAmount} poi {numberOfRemainingInstallments} rate mensili di {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"In {installmentsCount} rate mensili di {totalAmount}","payment-plan-strings.no-fee":"(senza interessi)","payment-plan-strings.pay-now":"Paga ora {totalAmount}","payment-plan-strings.pay.deferred.button":"Pagamento dilazionato: {deferredTime}","payment-plan-strings.pay.now.button":"Paga ora","skip-links.payment-info":"Vai alle informazioni di pagamento","skip-links.payment-plans":"Vai alle opzioni di pagamento","skip-links.payment-schedule":"Vai al calendario dei pagamenti"},rl={"accessibility.amex-card.aria-label":"American Express kaart geaccepteerd","accessibility.animation-control-instructions":"Automatische animatie van betalingsplannen is actief. Beweeg erover of navigeer met de pijltjes om de animatie te stoppen.","accessibility.cb-card.aria-label":"CB creditcard geaccepteerd","accessibility.close-button.aria-label":"Venster sluiten","accessibility.mastercard.aria-label":"Mastercard geaccepteerd","accessibility.payment-info.section-title":"Informatie over het geselecteerde betalingsplan","accessibility.payment-options.listbox.aria-label":"Betalingsopties beschikbaar","accessibility.payment-plan-button.aria-label":"Selecteer betalingsplan {planName}","accessibility.payment-plan.option.aria-label":"Betalingsoptie {planDescription}","accessibility.payment-plans-title":"Betalingsopties beschikbaar","accessibility.payment-plans.section-title":"Betalingsopties beschikbaar","accessibility.payment-schedule-title":"Betalingsschema","accessibility.payment-widget.main.aria-label":"Alma betalingsopties selecteren","accessibility.payment-widget.open-button.aria-label":"Ouvrir les options de paiement Alma pour en savoir plus","accessibility.plan-selection-changed":"Gekozen plan: {planDescription}","accessibility.skip-links.navigation.aria-label":"Snelle navigatie","accessibility.visa-card.aria-label":"Visa-kaart geaccepteerd","credit-features.credit-cost-display":"{creditCost} (gemiddeld rente percentage {taegPercentage})","credit-features.information":"Controleer uw terugbetalingscapaciteit voordat u een toezegging doet.","credit-features.information.title":"Krediet is een verplichting en moet worden terugbetaald.","credit-features.legal-text":"Krediet van {totalWithoutFirstInstallment} tegen een vaste rentevoet van {taegPercentage} over een periode van {installmeentsCountWithoutFirst} maanden. Naast een aanbetaling van {firstInstallmentAmount}, kun je hiermee een aankoop financieren van {productPriceWithoutCreditCost}. Onder voorbehoud van beoordeling en aanvaarding door Alma. Wettelijke herroepingsrecht van 14 dagen. Simulatie aangeboden door Alma, ingeschreven in het handels- en bedrijvenregister van Nanterre onder het nummer 839 100 575, betalings- en financieringsmaatschappij erkend door de ACPR onder nummer 17408 (CIB-nummer / bankcode).","credit-features.total-credit-cost":"Waarvan kredietkosten","eligibility-modal.bullet-1":"Kies <strong>Alma</strong> bij het afrekenen om de eerste termijnbetaling te voldoen. Dit kan gemakkelijk via jouw favoriete betaalmethode.","eligibility-modal.bullet-2":"Betaal gemakkelijk <strong>binnen 1 minuut </strong>. Je hebt hier geen account voor nodig.","eligibility-modal.bullet-3":"<strong>Behoud de controle </strong> en bepaal je eigen tempo. Bij Alma schuif je de deadlines gemakkelijk vooruit of achteruit. Zonder bijkomende kosten.","eligibility-modal.info-title":"Hoe betalen?","eligibility-modal.no-eligibility":"Oeps, het lijkt erop dat de simulatie niet werkte.","eligibility-modal.p1x-bullet-1":"Kies <strong>Alma - Betaal nu</strong> bij het afrekenen om de eerste termijnbetaling te voldoen. Dit kan gemakkelijk via jouw favoriete betaalmethode.","eligibility-modal.p1x-bullet-2":"Vul je <strong>gegevens </strong> in","eligibility-modal.p1x-bullet-3":"<strong>De bevestiging </strong> van jouw betaling is direct!","eligibility-modal.title-deferred-plan":"Betaal in termijnen bij Alma - helemaal rentevrij.","eligibility-modal.title-normal":"Betaal in termijnen bij Alma - helemaal rentevrij.","eligibility-modal.title-pay-now":"Betaal met iDEAL of per creditcard bij Alma.","installments.today":"Vandaag","installments.total-amount":"Totaal","installments.total-fees":"Waarvan kosten (incl. BTW)","payment-plan-strings.credit":"Klik hier voor meer informatie","payment-plan-strings.day-abbreviation":"D{deferredDays}","payment-plan-strings.default-message":"Betaal in termijnen bij Alma - helemaal rentevrij","payment-plan-strings.deferred":"{totalAmount} te betalen op {dueDate}","payment-plan-strings.deferred.days":"{days, number} {days, plural, one {dag} other {dagen}}","payment-plan-strings.deferred.months":"{months, number} {months, plural, one {maanden} other {maanden}}","payment-plan-strings.ineligible-greater-than-max":"Tot {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Vanaf {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(zonder kosten)","payment-plan-strings.pay-now":"Betaal nu {totalAmount}","payment-plan-strings.pay.deferred.button":"Betalen met uitgestelde betaling: {deferredTime}","payment-plan-strings.pay.now.button":"Betaal nu","skip-links.payment-info":"Ga naar betalingsinformatie","skip-links.payment-plans":"Ga naar betalingsopties","skip-links.payment-schedule":"Ga naar de betalingskalender"},il={"accessibility.amex-card.aria-label":"Aceita cartão American Express","accessibility.animation-control-instructions":"A animação automática dos planos de pagamento está ativa. Passe o rato por cima ou navegue com as setas para parar a animação.","accessibility.cb-card.aria-label":"Aceita-se cartão de crédito CB","accessibility.close-button.aria-label":"Fechar a janela","accessibility.mastercard.aria-label":"Aceita Mastercard","accessibility.payment-info.section-title":"Informações sobre o plano de pagamento selecionado","accessibility.payment-options.listbox.aria-label":"Opções de pagamento disponíveis","accessibility.payment-plan-button.aria-label":"Selecionar plano de pagamento {planName}","accessibility.payment-plan.option.aria-label":"Opção de pagamento {planDescription}","accessibility.payment-plans-title":"Opções de pagamento disponíveis","accessibility.payment-plans.section-title":"Opções de pagamento disponíveis","accessibility.payment-schedule-title":"Calendário de pagamento","accessibility.payment-widget.main.aria-label":"Seleção das opções de pagamento da Alma","accessibility.payment-widget.open-button.aria-label":"Ouvrir les options de paiement Alma pour en savoir plus","accessibility.plan-selection-changed":"Plano selecionado: {planDescription}","accessibility.skip-links.navigation.aria-label":"Navegação rápida","accessibility.visa-card.aria-label":"Aceita cartão Visa","credit-features.credit-cost-display":"{creditCost} (TAEG {taegPercentage})","credit-features.information":"Verifique a sua capacidade de reembolso antes de assumir um compromisso.","credit-features.information.title":"O crédito é um compromisso e deve ser reembolsado.","credit-features.legal-text":"{totalWithoutFirstInstallment} {taegPercentage} {installmeentsCountWithoutFirst} Empréstimo de a uma taxa de juro fixa de durante um período de meses. {firstInstallmentAmount} {productPriceWithoutCreditCost}Para além de um depósito de , isto permitir-lhe-á financiar uma compra de . Sujeito a análise e aceitação pela Alma. Prazo legal de retratação de 14 dias. Simulação apresentada pela Alma, inscrita na Conservatória do Registo Comercial e das Sociedades de Nanterre sob o número 839 100 575, sociedade de pagamento e de financiamento aprovada pela ACPR sob o número 17408 (número CIB / código bancário).","credit-features.total-credit-cost":"Incluindo comissões de crédito","eligibility-modal.bullet-1":"Seleccionar <strong>Alma - Pay Now</strong> no final da compra.","eligibility-modal.bullet-2":"Siga as instruções e valide o seu pagamento em <strong>2 minutos.</strong>","eligibility-modal.bullet-3":"<strong>Mantenha o controlo</strong> adiando as datas de pagamento ao seu próprio ritmo.","eligibility-modal.info-title":"Como pagar","eligibility-modal.no-eligibility":"Ups, parece que a simulação não funcionou.","eligibility-modal.p1x-bullet-1":"Escolha <strong>Alma - Pague agora</strong> no checkout.","eligibility-modal.p1x-bullet-2":"Preencha os dados do seu <strong>cartão de bancário.</strong>","eligibility-modal.p1x-bullet-3":"<strong>A validação </strong> do seu pagamento é instantânea!","eligibility-modal.title-deferred-plan":"Pagar em prestações ou mais tarde por cartão de crédito com Alma.","eligibility-modal.title-normal":"Pagar em prestações por cartão bancário com a Alma.","eligibility-modal.title-pay-now":"Pague na integralidade com a Alma por cartão bancário.","installments.today":"Hoje","installments.total-amount":"Total","installments.total-fees":"Das quais comissões (incl. IVA)","payment-plan-strings.credit":"Clique aqui para saber mais","payment-plan-strings.day-abbreviation":"D{deferredDays}","payment-plan-strings.default-message":"Pagamento em prestações com a Alma","payment-plan-strings.deferred":"{totalAmount} a pagar em {dueDate}","payment-plan-strings.deferred.days":"{days, number} {days, plural, one {dia} other {dias}}","payment-plan-strings.deferred.months":"{months, number} {months, plural, one {meses} other {meses}}","payment-plan-strings.ineligible-greater-than-max":"Até {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"A partir de {minAmount}","payment-plan-strings.month-abbreviation":"M{deferredMonths}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} depois {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} depois {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(sem encargos)","payment-plan-strings.pay-now":"Pagar agora {totalAmount}","payment-plan-strings.pay.deferred.button":"Pagamento diferido: {deferredTime}","payment-plan-strings.pay.now.button":"Pagar agora","skip-links.payment-info":"Ir para as informações de pagamento","skip-links.payment-plans":"Ir para as opções de pagamento","skip-links.payment-schedule":"Ir para o calendário de pagamentos"},ol=e=>{switch(e.slice(0,2)){case X.fr:return nl;case X.es:return tl;case X.it:return al;case X.de:return Qs;case X.pt:return il;case X.nl:return rl;case X.en:default:return el}},ii=({children:e,locale:t})=>m.createElement(Js,{messages:ol(t),locale:t,defaultLocale:"en"},e),sl=e=>e.split("").reduce((t,n)=>(t<<5)-t+n.charCodeAt(0)|0,0).toString().replace("-","A"),ll=e=>Date.now()-e>=36e5;var ul={BUILD_VERSION:"v4.0.8"};const cl=()=>({setCache:(i,o)=>{const s=Date.now();sessionStorage.setItem(i,JSON.stringify({value:o,timestamp:s}))},getCache:i=>{const o=sessionStorage.getItem(i)||"";return o?JSON.parse(o):null},clearCache:()=>{sessionStorage.clear()},deleteCache:i=>{sessionStorage.removeItem(i)},createKey:i=>{const{purchaseAmount:o,plans:s,customerBillingCountry:l,customerShippingCountry:u,domain:f,merchantId:c}=i,d=o.toString(),p=JSON.stringify(s),g=ul.BUILD_VERSION;return sl(`${f}${c}${d}${p}${l}${u}${g}`)}});function ml(e,t,n=""){return no(this,null,function*(){return(yield fetch(n,{method:"POST",headers:ke({"Content-Type":"application/json"},t),cache:"force-cache",body:JSON.stringify(e)})).json()})}const fl=(e,t)=>e.eligible&&t?e.purchase_amount>=(t==null?void 0:t.minAmount)&&e.purchase_amount<=(t==null?void 0:t.maxAmount):!1,dl=(e,t)=>{var a;const n=(a=e.constraints)==null?void 0:a.purchase_amount;return n&&t?{minAmount:Math.max(t.minAmount,n==null?void 0:n.minimum),maxAmount:Math.min(t.maxAmount,n==null?void 0:n.maximum)}:t!=null?t:{}},pl=(e,t)=>t?e.map(n=>{const a=(n.deferred_months?n.deferred_months:0)*30+(n.deferred_days?n.deferred_days:0),r=t.find(i=>{const o=(i.deferredMonths?i.deferredMonths:0)*30+(i.deferredDays?i.deferredDays:0);return n.installments_count===i.installmentsCount&&a===o});return ke(to(ke({},n),{eligible:fl(n,r)}),dl(n,r))}):e.filter(n=>!(n.installments_count===1&&n.deferred_days===0&&n.deferred_months===0));var hl={BUILD_VERSION:"v4.0.8"};const oi=(e,{domain:t,merchantId:n},a,r,i)=>{var E,N;const[o,s]=ne([]),[l,u]=ne(P.PENDING),{getCache:f,setCache:c,createKey:d,clearCache:p}=cl(),g=d({purchaseAmount:e,plans:a,customerBillingCountry:r,customerShippingCountry:i,domain:t,merchantId:n}),v=(E=f(g))==null?void 0:E.value,b=(N=f(g))==null?void 0:N.timestamp,_=b&&ll(b),x=a==null?void 0:a.map(y=>({installments_count:y.installmentsCount,deferred_days:y==null?void 0:y.deferredDays,deferred_months:y==null?void 0:y.deferredMonths}));return Y(()=>{if(l===P.PENDING){let y=null;r&&(y={country:r});let w=null;i&&(w={country:i}),v&&!_&&(s(v),u(P.SUCCESS)),_&&p(),v||ml({purchase_amount:e,queries:x,billing_address:y,shipping_address:w},{Authorization:`Alma-Merchant-Auth ${n}`,"X-Alma-Agent":`Alma Widget/${hl.BUILD_VERSION}`},`${t}/v2/payments/eligibility`).then(V=>{"error_code"in V||"errors"in V?u(P.FAILED):(s(V),c(g,V),u(P.SUCCESS))}).catch(()=>{u(P.FAILED)})}},[l,e,g,r,i,v,_,x,n,t,c,p]),[pl(o,a),l]};var Vn={};Vn.match=El,Vn.parse=si;var gl=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,yl=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,_l=/^(?:(min|max)-)?(.+)/,vl=/(em|rem|px|cm|mm|in|pt|pc)?$/,bl=/(dpi|dpcm|dppx)?$/;function El(e,t){return si(e).some(function(n){var a=n.inverse,r=n.type==="all"||t.type===n.type;if(r&&a||!(r||a))return!1;var i=n.expressions.every(function(o){var s=o.feature,l=o.modifier,u=o.value,f=t[s];if(!f)return!1;switch(s){case"orientation":case"scan":return f.toLowerCase()===u.toLowerCase();case"width":case"height":case"device-width":case"device-height":u=ci(u),f=ci(f);break;case"resolution":u=ui(u),f=ui(f);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":u=li(u),f=li(f);break;case"grid":case"color":case"color-index":case"monochrome":u=parseInt(u,10)||1,f=parseInt(f,10)||0;break}switch(l){case"min":return f>=u;case"max":return f<=u;default:return f===u}});return i&&!a||!i&&a})}function si(e){return e.split(",").map(function(t){t=t.trim();var n=t.match(gl),a=n[1],r=n[2],i=n[3]||"",o={};return o.inverse=!!a&&a.toLowerCase()==="not",o.type=r?r.toLowerCase():"all",i=i.match(/\([^\)]+\)/g)||[],o.expressions=i.map(function(s){var l=s.match(yl),u=l[1].toLowerCase().match(_l);return{modifier:u[1],feature:u[2],value:l[2]}}),o})}function li(e){var t=Number(e),n;return t||(n=e.match(/^(\d+)\s*\/\s*(\d+)$/),t=n[1]/n[2]),t}function ui(e){var t=parseFloat(e),n=String(e).match(bl)[1];switch(n){case"dpcm":return t/2.54;case"dppx":return t*96;default:return t}}function ci(e){var t=parseFloat(e),n=String(e).match(vl)[1];switch(n){case"em":return t*16;case"rem":return t*16;case"cm":return t*96/2.54;case"mm":return t*96/2.54/10;case"in":return t*96;case"pt":return t*72;case"pc":return t*72/12;default:return t}}var xl=Vn.match,mi=typeof window!="undefined"?window.matchMedia:null;function Cl(e,t,n){var a=this,r;mi&&!n&&(r=mi.call(window,e)),r?(this.matches=r.matches,this.media=r.media,r.addListener(s)):(this.matches=xl(e,t),this.media=e),this.addListener=i,this.removeListener=o,this.dispose=l;function i(u){r&&r.addListener(u)}function o(u){r&&r.removeListener(u)}function s(u){a.matches=u.matches,a.media=u.media}function l(){r&&r.removeListener(s)}}function Sl(e,t,n){return new Cl(e,t,n)}var Al=Sl;const Tl=At(Al);var Il=/[A-Z]/g,Ml=/^ms-/,qn={};function wl(e){return"-"+e.toLowerCase()}function fi(e){if(qn.hasOwnProperty(e))return qn[e];var t=e.replace(Il,wl);return qn[e]=Ml.test(t)?"-"+t:t}function Nl(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),a=Object.keys(t),r=n.length;if(a.length!==r)return!1;for(let i=0;i<r;i++){const o=n[i];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0}var di={exports:{}},Zn,pi;function Ol(){if(pi)return Zn;pi=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Zn=e,Zn}var Xn,hi;function Pl(){if(hi)return Xn;hi=1;var e=Ol();function t(){}function n(){}return n.resetWarningCache=t,Xn=function(){function a(o,s,l,u,f,c){if(c!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}a.isRequired=a;function r(){return a}var i={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:r,element:a,elementType:a,instanceOf:r,node:a,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Xn}di.exports=Pl()();var Kn=di.exports;const B=At(Kn),pe=B.oneOfType([B.string,B.number]),gi={all:B.bool,grid:B.bool,aural:B.bool,braille:B.bool,handheld:B.bool,print:B.bool,projection:B.bool,screen:B.bool,tty:B.bool,tv:B.bool,embossed:B.bool},Ji={orientation:B.oneOf(["portrait","landscape"]),scan:B.oneOf(["progressive","interlace"]),aspectRatio:B.string,deviceAspectRatio:B.string,height:pe,deviceHeight:pe,width:pe,deviceWidth:pe,color:B.bool,colorIndex:B.bool,monochrome:B.bool,resolution:pe,type:Object.keys(gi)},{type:Fc}=Ji,Rl=tn(Ji,["type"]),Ll=ke({minAspectRatio:B.string,maxAspectRatio:B.string,minDeviceAspectRatio:B.string,maxDeviceAspectRatio:B.string,minHeight:pe,maxHeight:pe,minDeviceHeight:pe,maxDeviceHeight:pe,minWidth:pe,maxWidth:pe,minDeviceWidth:pe,maxDeviceWidth:pe,minColor:B.number,maxColor:B.number,minColorIndex:B.number,maxColorIndex:B.number,minMonochrome:B.number,maxMonochrome:B.number,minResolution:pe,maxResolution:pe},Rl);var Hl={all:ke(ke({},gi),Ll)};const kl=e=>`not ${e}`,Dl=(e,t)=>{const n=fi(e);return typeof t=="number"&&(t=`${t}px`),t===!0?n:t===!1?kl(n):`(${n}: ${t})`},Bl=e=>e.join(" and "),Fl=e=>{const t=[];return Object.keys(Hl.all).forEach(n=>{const a=e[n];a!=null&&t.push(Dl(n,a))}),Bl(t)},Ul=yt(void 0),$l=e=>e.query||Fl(e),yi=e=>e?Object.keys(e).reduce((n,a)=>(n[fi(a)]=e[a],n),{}):void 0,_i=()=>{const e=De(!1);return Y(()=>{e.current=!0},[]),e.current},Gl=e=>{const t=vt(Ul),n=()=>yi(e)||yi(t),[a,r]=ne(n);return Y(()=>{const i=n();Nl(a,i)||r(i)},[e,t]),a},zl=e=>{const t=()=>$l(e),[n,a]=ne(t);return Y(()=>{const r=t();n!==r&&a(r)},[e]),n},Wl=(e,t)=>{const n=()=>Tl(e,t||{},!!t),[a,r]=ne(n),i=_i();return Y(()=>{if(i){const o=n();return r(o),()=>{o&&o.dispose()}}},[e,t]),a},jl=e=>{const[t,n]=ne(e.matches);return Y(()=>{const a=r=>{n(r.matches)};return e.addListener(a),n(e.matches),()=>{e.removeListener(a)}},[e]),t},Vl=(e,t,n)=>{const a=Gl(t),r=zl(e);if(!r)throw new Error("Invalid or missing MediaQuery!");const i=Wl(r,a),o=jl(i);return _i(),Y(()=>{},[o]),Y(()=>()=>{i&&i.dispose()},[]),o};var vi={exports:{}};/*!
|
|
30
30
|
Copyright (c) 2018 Jed Watson.
|
|
31
31
|
Licensed under the MIT License (MIT), see
|
|
32
32
|
http://jedwatson.github.io/classnames
|
|
33
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var
|
|
33
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(i=r(i,a(s)))}return i}function a(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var o="";for(var s in i)t.call(i,s)&&i[s]&&(o=r(o,s));return o}function r(i,o){return o?i?i+" "+o:i+o:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(vi);var ql=vi.exports;const H=At(ql),Zl={loadingIndicator:"_loadingIndicator_1fdeg_1"},Xl=({className:e})=>m.createElement("div",{className:H(Zl.loadingIndicator,e),"data-testid":"loader"},m.createElement("svg",{width:"120",height:"134",viewBox:"0 0 120 134",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.createElement("path",{d:"M83.8164 41.0325C79.1708 22.8241 69.3458 17 59.9939 17C50.642 17 40.8171 22.8241 36.1715 41.0325L16 117H35.8804C39.119 104.311 49.1016 97.2436 59.9939 97.2436C70.8863 97.2436 80.8689 104.324 84.1075 117H104L83.8164 41.0325ZM59.9939 79.5428C53.6623 79.5428 47.925 82.0552 43.6918 86.1283L55.0936 41.9207C56.1853 37.6953 57.7985 36.3503 60.0061 36.3503C62.2136 36.3503 63.8269 37.6953 64.9185 41.9207L76.3082 86.1283C72.075 82.0552 66.3256 79.5428 59.9939 79.5428Z",fill:"#FA5022"})));var bi={exports:{}};(function(e){(function(t){var n=!1,a,r;function i(){if(typeof a!="undefined")return a;var c=document.documentElement,d=document.createElement("div");return d.setAttribute("style","width:99px;height:99px;position:absolute;top:-9999px;overflow:scroll;"),c.appendChild(d),a=d.offsetWidth-d.clientWidth,c.removeChild(d),a}function o(){return document.documentElement.scrollHeight>window.innerHeight}function s(c){if(!(typeof document=="undefined"||n)){var d=document.documentElement;r=window.pageYOffset,o()?d.style.width="calc(100% - "+i()+"px)":d.style.width="100%",d.style.position="fixed",d.style.top=-r+"px",d.style.overflow="hidden",n=!0}}function l(){if(!(typeof document=="undefined"||!n)){var c=document.documentElement;c.style.width="",c.style.position="",c.style.top="",c.style.overflow="",window.scroll(0,r),n=!1}}function u(){if(n){l();return}s()}var f={on:s,off:l,toggle:u};e.exports=f})()})(bi);var Kl=bi.exports;const Ei=At(Kl);var Jn={exports:{}},Ze={};const Yn=Zr(Io);var Qn={exports:{}},Se={},ea={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;/*!
|
|
34
34
|
* Adapted from jQuery UI core
|
|
35
35
|
*
|
|
36
36
|
* http://jqueryui.com
|
|
@@ -40,17 +40,17 @@ For more details see https://formatjs.io/docs/getting-started/message-distributi
|
|
|
40
40
|
* http://jquery.org/license
|
|
41
41
|
*
|
|
42
42
|
* http://api.jqueryui.com/category/ui-core/
|
|
43
|
-
*/var n="none",
|
|
43
|
+
*/var n="none",a="contents",r=/input|select|textarea|button|object|iframe/;function i(c,d){return d.getPropertyValue("overflow")!=="visible"||c.scrollWidth<=0&&c.scrollHeight<=0}function o(c){var d=c.offsetWidth<=0&&c.offsetHeight<=0;if(d&&!c.innerHTML)return!0;try{var p=window.getComputedStyle(c),g=p.getPropertyValue("display");return d?g!==a&&i(c,p):g===n}catch(v){return console.warn("Failed to inspect element style"),!1}}function s(c){for(var d=c,p=c.getRootNode&&c.getRootNode();d&&d!==document.body;){if(p&&d===p&&(d=p.host.parentNode),o(d))return!1;d=d.parentNode}return!0}function l(c,d){var p=c.nodeName.toLowerCase(),g=r.test(p)&&!c.disabled||p==="a"&&c.href||d;return g&&s(c)}function u(c){var d=c.getAttribute("tabindex");d===null&&(d=void 0);var p=isNaN(d);return(p||d>=0)&&l(c,!p)}function f(c){var d=[].slice.call(c.querySelectorAll("*"),0).reduce(function(p,g){return p.concat(g.shadowRoot?f(g.shadowRoot):[g])},[]);return d.filter(u)}e.exports=t.default})(ea,ea.exports);var xi=ea.exports;Object.defineProperty(Se,"__esModule",{value:!0}),Se.resetState=eu,Se.log=tu,Se.handleBlur=It,Se.handleFocus=Mt,Se.markForFocusLater=nu,Se.returnFocus=au,Se.popWithoutFocus=ru,Se.setupScopedFocus=iu,Se.teardownScopedFocus=ou;var Jl=xi,Yl=Ql(Jl);function Ql(e){return e&&e.__esModule?e:{default:e}}var it=[],ot=null,ta=!1;function eu(){it=[]}function tu(){}function It(){ta=!0}function Mt(){if(ta){if(ta=!1,!ot)return;setTimeout(function(){if(!ot.contains(document.activeElement)){var e=(0,Yl.default)(ot)[0]||ot;e.focus()}},0)}}function nu(){it.push(document.activeElement)}function au(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=null;try{it.length!==0&&(t=it.pop(),t.focus({preventScroll:e}));return}catch(n){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}}function ru(){it.length>0&&it.pop()}function iu(e){ot=e,window.addEventListener?(window.addEventListener("blur",It,!1),document.addEventListener("focus",Mt,!0)):(window.attachEvent("onBlur",It),document.attachEvent("onFocus",Mt))}function ou(){ot=null,window.addEventListener?(window.removeEventListener("blur",It),document.removeEventListener("focus",Mt)):(window.detachEvent("onBlur",It),document.detachEvent("onFocus",Mt))}var na={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=xi,a=r(n);function r(s){return s&&s.__esModule?s:{default:s}}function i(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return s.activeElement.shadowRoot?i(s.activeElement.shadowRoot):s.activeElement}function o(s,l){var u=(0,a.default)(s);if(!u.length){l.preventDefault();return}var f=void 0,c=l.shiftKey,d=u[0],p=u[u.length-1],g=i();if(s===g){if(!c)return;f=p}if(p===g&&!c&&(f=d),d===g&&c&&(f=p),f){l.preventDefault(),f.focus();return}var v=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),b=v!=null&&v[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(b){var _=u.indexOf(g);if(_>-1&&(_+=c?-1:1),f=u[_],typeof f=="undefined"){l.preventDefault(),f=c?p:d,f.focus();return}l.preventDefault(),f.focus()}}e.exports=t.default})(na,na.exports);var su=na.exports,Ae={},lu=function(){},uu=lu,Te={},Ci={exports:{}};/*!
|
|
44
44
|
Copyright (c) 2015 Jed Watson.
|
|
45
45
|
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
46
46
|
All rights reserved.
|
|
47
|
-
*/(function(e){(function(){var t=!!(typeof window!="undefined"&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n})()})(ya);var ou=ya.exports;Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.canUseDOM=Ee.SafeNodeList=Ee.SafeHTMLCollection=void 0;var au=ou,iu=su(au);function su(e){return e&&e.__esModule?e:{default:e}}var kt=iu.default,lu=kt.canUseDOM?window.HTMLElement:{};Ee.SafeHTMLCollection=kt.canUseDOM?window.HTMLCollection:{},Ee.SafeNodeList=kt.canUseDOM?window.NodeList:{},Ee.canUseDOM=kt.canUseDOM,Ee.default=lu,Object.defineProperty(be,"__esModule",{value:!0}),be.resetState=du,be.log=hu,be.assertNodeList=ba,be.setElement=pu,be.validateElement=tr,be.hide=_u,be.show=gu,be.documentNotReadyOrSSRTesting=vu;var uu=ru,cu=fu(uu),mu=Ee;function fu(e){return e&&e.__esModule?e:{default:e}}var _e=null;function du(){_e&&(_e.removeAttribute?_e.removeAttribute("aria-hidden"):_e.length!=null?_e.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(_e).forEach(function(e){return e.removeAttribute("aria-hidden")})),_e=null}function hu(){}function ba(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function pu(e){var t=e;if(typeof t=="string"&&mu.canUseDOM){var n=document.querySelectorAll(t);ba(n,t),t=n}return _e=t||_e,_e}function tr(e){var t=e||_e;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,cu.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function _u(e){var t=!0,n=!1,r=void 0;try{for(var o=tr(e)[Symbol.iterator](),a;!(t=(a=o.next()).done);t=!0){var i=a.value;i.setAttribute("aria-hidden","true")}}catch(s){n=!0,r=s}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}function gu(e){var t=!0,n=!1,r=void 0;try{for(var o=tr(e)[Symbol.iterator](),a;!(t=(a=o.next()).done);t=!0){var i=a.value;i.removeAttribute("aria-hidden")}}catch(s){n=!0,r=s}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}function vu(){_e=null}var et={};Object.defineProperty(et,"__esModule",{value:!0}),et.resetState=yu,et.log=bu;var Tt={},xt={};function Ea(e,t){e.classList.remove(t)}function yu(){var e=document.getElementsByTagName("html")[0];for(var t in Tt)Ea(e,Tt[t]);var n=document.body;for(var r in xt)Ea(n,xt[r]);Tt={},xt={}}function bu(){}var Eu=function(t,n){return t[n]||(t[n]=0),t[n]+=1,n},Tu=function(t,n){return t[n]&&(t[n]-=1),n},xu=function(t,n,r){r.forEach(function(o){Eu(n,o),t.add(o)})},Au=function(t,n,r){r.forEach(function(o){Tu(n,o),n[o]===0&&t.remove(o)})};et.add=function(t,n){return xu(t.classList,t.nodeName.toLowerCase()=="html"?Tt:xt,n.split(" "))},et.remove=function(t,n){return Au(t.classList,t.nodeName.toLowerCase()=="html"?Tt:xt,n.split(" "))};var tt={};Object.defineProperty(tt,"__esModule",{value:!0}),tt.log=Cu,tt.resetState=Su;function Iu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Ta=function e(){var t=this;Iu(this,e),this.register=function(n){t.openInstances.indexOf(n)===-1&&(t.openInstances.push(n),t.emit("register"))},this.deregister=function(n){var r=t.openInstances.indexOf(n);r!==-1&&(t.openInstances.splice(r,1),t.emit("deregister"))},this.subscribe=function(n){t.subscribers.push(n)},this.emit=function(n){t.subscribers.forEach(function(r){return r(n,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},Gt=new Ta;function Cu(){console.log("portalOpenInstances ----------"),console.log(Gt.openInstances.length),Gt.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")}function Su(){Gt=new Ta}tt.default=Gt;var nr={};Object.defineProperty(nr,"__esModule",{value:!0}),nr.resetState=wu,nr.log=Mu;var Ou=tt,Nu=Ru(Ou);function Ru(e){return e&&e.__esModule?e:{default:e}}var Q=void 0,Te=void 0,ke=[];function wu(){for(var e=[Q,Te],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}Q=Te=null,ke=[]}function Mu(){console.log("bodyTrap ----------"),console.log(ke.length);for(var e=[Q,Te],t=0;t<e.length;t++){var n=e[t],r=n||{};console.log(r.nodeName,r.className,r.id)}console.log("edn bodyTrap ----------")}function xa(){ke.length!==0&&ke[ke.length-1].focusContent()}function Hu(e,t){!Q&&!Te&&(Q=document.createElement("div"),Q.setAttribute("data-react-modal-body-trap",""),Q.style.position="absolute",Q.style.opacity="0",Q.setAttribute("tabindex","0"),Q.addEventListener("focus",xa),Te=Q.cloneNode(),Te.addEventListener("focus",xa)),ke=t,ke.length>0?(document.body.firstChild!==Q&&document.body.insertBefore(Q,document.body.firstChild),document.body.lastChild!==Te&&document.body.appendChild(Te)):(Q.parentElement&&Q.parentElement.removeChild(Q),Te.parentElement&&Te.parentElement.removeChild(Te))}Nu.default.subscribe(Hu),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(A){for(var I=1;I<arguments.length;I++){var Z=arguments[I];for(var p in Z)Object.prototype.hasOwnProperty.call(Z,p)&&(A[p]=Z[p])}return A},r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},o=function(){function A(I,Z){for(var p=0;p<Z.length;p++){var C=Z[p];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(I,C.key,C)}}return function(I,Z,p){return Z&&A(I.prototype,Z),p&&A(I,p),I}}(),a=Kn,i=qn,s=g(i),l=ye,u=R(l),m=tu,c=g(m),d=be,h=R(d),_=et,b=R(_),v=Ee,y=g(v),T=tt,E=g(T);function R(A){if(A&&A.__esModule)return A;var I={};if(A!=null)for(var Z in A)Object.prototype.hasOwnProperty.call(A,Z)&&(I[Z]=A[Z]);return I.default=A,I}function g(A){return A&&A.__esModule?A:{default:A}}function N(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}function W(A,I){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:A}function ee(A,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);A.prototype=Object.create(I&&I.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(A,I):A.__proto__=I)}var G={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},X=function(I){return I.code==="Tab"||I.keyCode===9},ge=function(I){return I.code==="Escape"||I.keyCode===27},ue=0,V=function(A){ee(I,A);function I(Z){N(this,I);var p=W(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,Z));return p.setOverlayRef=function(C){p.overlay=C,p.props.overlayRef&&p.props.overlayRef(C)},p.setContentRef=function(C){p.content=C,p.props.contentRef&&p.props.contentRef(C)},p.afterClose=function(){var C=p.props,te=C.appElement,de=C.ariaHideApp,K=C.htmlOpenClassName,je=C.bodyOpenClassName,Ve=C.parentSelector,Xt=Ve&&Ve().ownerDocument||document;je&&b.remove(Xt.body,je),K&&b.remove(Xt.getElementsByTagName("html")[0],K),de&&ue>0&&(ue-=1,ue===0&&h.show(te)),p.props.shouldFocusAfterRender&&(p.props.shouldReturnFocusAfterClose?(u.returnFocus(p.props.preventScroll),u.teardownScopedFocus()):u.popWithoutFocus()),p.props.onAfterClose&&p.props.onAfterClose(),E.default.deregister(p)},p.open=function(){p.beforeOpen(),p.state.afterOpen&&p.state.beforeClose?(clearTimeout(p.closeTimer),p.setState({beforeClose:!1})):(p.props.shouldFocusAfterRender&&(u.setupScopedFocus(p.node),u.markForFocusLater()),p.setState({isOpen:!0},function(){p.openAnimationFrame=requestAnimationFrame(function(){p.setState({afterOpen:!0}),p.props.isOpen&&p.props.onAfterOpen&&p.props.onAfterOpen({overlayEl:p.overlay,contentEl:p.content})})}))},p.close=function(){p.props.closeTimeoutMS>0?p.closeWithTimeout():p.closeWithoutTimeout()},p.focusContent=function(){return p.content&&!p.contentHasFocus()&&p.content.focus({preventScroll:!0})},p.closeWithTimeout=function(){var C=Date.now()+p.props.closeTimeoutMS;p.setState({beforeClose:!0,closesAt:C},function(){p.closeTimer=setTimeout(p.closeWithoutTimeout,p.state.closesAt-Date.now())})},p.closeWithoutTimeout=function(){p.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},p.afterClose)},p.handleKeyDown=function(C){X(C)&&(0,c.default)(p.content,C),p.props.shouldCloseOnEsc&&ge(C)&&(C.stopPropagation(),p.requestClose(C))},p.handleOverlayOnClick=function(C){p.shouldClose===null&&(p.shouldClose=!0),p.shouldClose&&p.props.shouldCloseOnOverlayClick&&(p.ownerHandlesClose()?p.requestClose(C):p.focusContent()),p.shouldClose=null},p.handleContentOnMouseUp=function(){p.shouldClose=!1},p.handleOverlayOnMouseDown=function(C){!p.props.shouldCloseOnOverlayClick&&C.target==p.overlay&&C.preventDefault()},p.handleContentOnClick=function(){p.shouldClose=!1},p.handleContentOnMouseDown=function(){p.shouldClose=!1},p.requestClose=function(C){return p.ownerHandlesClose()&&p.props.onRequestClose(C)},p.ownerHandlesClose=function(){return p.props.onRequestClose},p.shouldBeClosed=function(){return!p.state.isOpen&&!p.state.beforeClose},p.contentHasFocus=function(){return document.activeElement===p.content||p.content.contains(document.activeElement)},p.buildClassName=function(C,te){var de=(typeof te=="undefined"?"undefined":r(te))==="object"?te:{base:G[C],afterOpen:G[C]+"--after-open",beforeClose:G[C]+"--before-close"},K=de.base;return p.state.afterOpen&&(K=K+" "+de.afterOpen),p.state.beforeClose&&(K=K+" "+de.beforeClose),typeof te=="string"&&te?K+" "+te:K},p.attributesFromObject=function(C,te){return Object.keys(te).reduce(function(de,K){return de[C+"-"+K]=te[K],de},{})},p.state={afterOpen:!1,beforeClose:!1},p.shouldClose=null,p.moveFromContentToOverlay=null,p}return o(I,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(p,C){this.props.isOpen&&!p.isOpen?this.open():!this.props.isOpen&&p.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!C.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var p=this.props,C=p.appElement,te=p.ariaHideApp,de=p.htmlOpenClassName,K=p.bodyOpenClassName,je=p.parentSelector,Ve=je&&je().ownerDocument||document;K&&b.add(Ve.body,K),de&&b.add(Ve.getElementsByTagName("html")[0],de),te&&(ue+=1,h.hide(C)),E.default.register(this)}},{key:"render",value:function(){var p=this.props,C=p.id,te=p.className,de=p.overlayClassName,K=p.defaultStyles,je=p.children,Ve=te?{}:K.content,Xt=de?{}:K.overlay;if(this.shouldBeClosed())return null;var Cc={ref:this.setOverlayRef,className:this.buildClassName("overlay",de),style:n({},Xt,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},Sc=n({id:C,ref:this.setContentRef,style:n({},Ve,this.props.style.content),className:this.buildClassName("content",te),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),Oc=this.props.contentElement(Sc,je);return this.props.overlayElement(Cc,Oc)}}]),I}(a.Component);V.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},V.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(y.default),s.default.instanceOf(v.SafeHTMLCollection),s.default.instanceOf(v.SafeNodeList),s.default.arrayOf(s.default.instanceOf(y.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=V,e.exports=t.default}(Yn,Yn.exports);var Pu=Yn.exports;function Aa(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function Ia(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r!=null?r:null}this.setState(t.bind(this))}function Ca(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}Aa.__suppressDeprecationWarning=!0,Ia.__suppressDeprecationWarning=!0,Ca.__suppressDeprecationWarning=!0;function Lu(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,o=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?o="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(o="UNSAFE_componentWillUpdate"),n!==null||r!==null||o!==null){var a=e.displayName||e.name,i=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
47
|
+
*/(function(e){(function(){var t=!!(typeof window!="undefined"&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n})()})(Ci);var cu=Ci.exports;Object.defineProperty(Te,"__esModule",{value:!0}),Te.canUseDOM=Te.SafeNodeList=Te.SafeHTMLCollection=void 0;var mu=cu,fu=du(mu);function du(e){return e&&e.__esModule?e:{default:e}}var Wt=fu.default,pu=Wt.canUseDOM?window.HTMLElement:{};Te.SafeHTMLCollection=Wt.canUseDOM?window.HTMLCollection:{},Te.SafeNodeList=Wt.canUseDOM?window.NodeList:{},Te.canUseDOM=Wt.canUseDOM,Te.default=pu,Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.resetState=vu,Ae.log=bu,Ae.assertNodeList=Si,Ae.setElement=Eu,Ae.validateElement=aa,Ae.hide=xu,Ae.show=Cu,Ae.documentNotReadyOrSSRTesting=Su;var hu=uu,gu=_u(hu),yu=Te;function _u(e){return e&&e.__esModule?e:{default:e}}var xe=null;function vu(){xe&&(xe.removeAttribute?xe.removeAttribute("aria-hidden"):xe.length!=null?xe.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(xe).forEach(function(e){return e.removeAttribute("aria-hidden")})),xe=null}function bu(){}function Si(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function Eu(e){var t=e;if(typeof t=="string"&&yu.canUseDOM){var n=document.querySelectorAll(t);Si(n,t),t=n}return xe=t||xe,xe}function aa(e){var t=e||xe;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,gu.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function xu(e){var t=!0,n=!1,a=void 0;try{for(var r=aa(e)[Symbol.iterator](),i;!(t=(i=r.next()).done);t=!0){var o=i.value;o.setAttribute("aria-hidden","true")}}catch(s){n=!0,a=s}finally{try{!t&&r.return&&r.return()}finally{if(n)throw a}}}function Cu(e){var t=!0,n=!1,a=void 0;try{for(var r=aa(e)[Symbol.iterator](),i;!(t=(i=r.next()).done);t=!0){var o=i.value;o.removeAttribute("aria-hidden")}}catch(s){n=!0,a=s}finally{try{!t&&r.return&&r.return()}finally{if(n)throw a}}}function Su(){xe=null}var st={};Object.defineProperty(st,"__esModule",{value:!0}),st.resetState=Au,st.log=Tu;var wt={},Nt={};function Ai(e,t){e.classList.remove(t)}function Au(){var e=document.getElementsByTagName("html")[0];for(var t in wt)Ai(e,wt[t]);var n=document.body;for(var a in Nt)Ai(n,Nt[a]);wt={},Nt={}}function Tu(){}var Iu=function(t,n){return t[n]||(t[n]=0),t[n]+=1,n},Mu=function(t,n){return t[n]&&(t[n]-=1),n},wu=function(t,n,a){a.forEach(function(r){Iu(n,r),t.add(r)})},Nu=function(t,n,a){a.forEach(function(r){Mu(n,r),n[r]===0&&t.remove(r)})};st.add=function(t,n){return wu(t.classList,t.nodeName.toLowerCase()=="html"?wt:Nt,n.split(" "))},st.remove=function(t,n){return Nu(t.classList,t.nodeName.toLowerCase()=="html"?wt:Nt,n.split(" "))};var lt={};Object.defineProperty(lt,"__esModule",{value:!0}),lt.log=Pu,lt.resetState=Ru;function Ou(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Ti=function e(){var t=this;Ou(this,e),this.register=function(n){t.openInstances.indexOf(n)===-1&&(t.openInstances.push(n),t.emit("register"))},this.deregister=function(n){var a=t.openInstances.indexOf(n);a!==-1&&(t.openInstances.splice(a,1),t.emit("deregister"))},this.subscribe=function(n){t.subscribers.push(n)},this.emit=function(n){t.subscribers.forEach(function(a){return a(n,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},jt=new Ti;function Pu(){console.log("portalOpenInstances ----------"),console.log(jt.openInstances.length),jt.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")}function Ru(){jt=new Ti}lt.default=jt;var ra={};Object.defineProperty(ra,"__esModule",{value:!0}),ra.resetState=Du,ra.log=Bu;var Lu=lt,Hu=ku(Lu);function ku(e){return e&&e.__esModule?e:{default:e}}var se=void 0,Ie=void 0,Xe=[];function Du(){for(var e=[se,Ie],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}se=Ie=null,Xe=[]}function Bu(){console.log("bodyTrap ----------"),console.log(Xe.length);for(var e=[se,Ie],t=0;t<e.length;t++){var n=e[t],a=n||{};console.log(a.nodeName,a.className,a.id)}console.log("edn bodyTrap ----------")}function Ii(){Xe.length!==0&&Xe[Xe.length-1].focusContent()}function Fu(e,t){!se&&!Ie&&(se=document.createElement("div"),se.setAttribute("data-react-modal-body-trap",""),se.style.position="absolute",se.style.opacity="0",se.setAttribute("tabindex","0"),se.addEventListener("focus",Ii),Ie=se.cloneNode(),Ie.addEventListener("focus",Ii)),Xe=t,Xe.length>0?(document.body.firstChild!==se&&document.body.insertBefore(se,document.body.firstChild),document.body.lastChild!==Ie&&document.body.appendChild(Ie)):(se.parentElement&&se.parentElement.removeChild(se),Ie.parentElement&&Ie.parentElement.removeChild(Ie))}Hu.default.subscribe(Fu),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(I){for(var A=1;A<arguments.length;A++){var q=arguments[A];for(var h in q)Object.prototype.hasOwnProperty.call(q,h)&&(I[h]=q[h])}return I},a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(I){return typeof I}:function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},r=function(){function I(A,q){for(var h=0;h<q.length;h++){var S=q[h];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(A,S.key,S)}}return function(A,q,h){return q&&I(A.prototype,q),h&&I(A,h),A}}(),i=Yn,o=Kn,s=y(o),l=Se,u=N(l),f=su,c=y(f),d=Ae,p=N(d),g=st,v=N(g),b=Te,_=y(b),x=lt,E=y(x);function N(I){if(I&&I.__esModule)return I;var A={};if(I!=null)for(var q in I)Object.prototype.hasOwnProperty.call(I,q)&&(A[q]=I[q]);return A.default=I,A}function y(I){return I&&I.__esModule?I:{default:I}}function w(I,A){if(!(I instanceof A))throw new TypeError("Cannot call a class as a function")}function V(I,A){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:I}function ve(I,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);I.prototype=Object.create(A&&A.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(I,A):I.__proto__=A)}var U={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},re=function(A){return A.code==="Tab"||A.keyCode===9},ae=function(A){return A.code==="Escape"||A.keyCode===27},W=0,He=function(I){ve(A,I);function A(q){w(this,A);var h=V(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,q));return h.setOverlayRef=function(S){h.overlay=S,h.props.overlayRef&&h.props.overlayRef(S)},h.setContentRef=function(S){h.content=S,h.props.contentRef&&h.props.contentRef(S)},h.afterClose=function(){var S=h.props,te=S.appElement,ue=S.ariaHideApp,K=S.htmlOpenClassName,O=S.bodyOpenClassName,$=S.parentSelector,J=$&&$().ownerDocument||document;O&&v.remove(J.body,O),K&&v.remove(J.getElementsByTagName("html")[0],K),ue&&W>0&&(W-=1,W===0&&p.show(te)),h.props.shouldFocusAfterRender&&(h.props.shouldReturnFocusAfterClose?(u.returnFocus(h.props.preventScroll),u.teardownScopedFocus()):u.popWithoutFocus()),h.props.onAfterClose&&h.props.onAfterClose(),E.default.deregister(h)},h.open=function(){h.beforeOpen(),h.state.afterOpen&&h.state.beforeClose?(clearTimeout(h.closeTimer),h.setState({beforeClose:!1})):(h.props.shouldFocusAfterRender&&(u.setupScopedFocus(h.node),u.markForFocusLater()),h.setState({isOpen:!0},function(){h.openAnimationFrame=requestAnimationFrame(function(){h.setState({afterOpen:!0}),h.props.isOpen&&h.props.onAfterOpen&&h.props.onAfterOpen({overlayEl:h.overlay,contentEl:h.content})})}))},h.close=function(){h.props.closeTimeoutMS>0?h.closeWithTimeout():h.closeWithoutTimeout()},h.focusContent=function(){return h.content&&!h.contentHasFocus()&&h.content.focus({preventScroll:!0})},h.closeWithTimeout=function(){var S=Date.now()+h.props.closeTimeoutMS;h.setState({beforeClose:!0,closesAt:S},function(){h.closeTimer=setTimeout(h.closeWithoutTimeout,h.state.closesAt-Date.now())})},h.closeWithoutTimeout=function(){h.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},h.afterClose)},h.handleKeyDown=function(S){re(S)&&(0,c.default)(h.content,S),h.props.shouldCloseOnEsc&&ae(S)&&(S.stopPropagation(),h.requestClose(S))},h.handleOverlayOnClick=function(S){h.shouldClose===null&&(h.shouldClose=!0),h.shouldClose&&h.props.shouldCloseOnOverlayClick&&(h.ownerHandlesClose()?h.requestClose(S):h.focusContent()),h.shouldClose=null},h.handleContentOnMouseUp=function(){h.shouldClose=!1},h.handleOverlayOnMouseDown=function(S){!h.props.shouldCloseOnOverlayClick&&S.target==h.overlay&&S.preventDefault()},h.handleContentOnClick=function(){h.shouldClose=!1},h.handleContentOnMouseDown=function(){h.shouldClose=!1},h.requestClose=function(S){return h.ownerHandlesClose()&&h.props.onRequestClose(S)},h.ownerHandlesClose=function(){return h.props.onRequestClose},h.shouldBeClosed=function(){return!h.state.isOpen&&!h.state.beforeClose},h.contentHasFocus=function(){return document.activeElement===h.content||h.content.contains(document.activeElement)},h.buildClassName=function(S,te){var ue=(typeof te=="undefined"?"undefined":a(te))==="object"?te:{base:U[S],afterOpen:U[S]+"--after-open",beforeClose:U[S]+"--before-close"},K=ue.base;return h.state.afterOpen&&(K=K+" "+ue.afterOpen),h.state.beforeClose&&(K=K+" "+ue.beforeClose),typeof te=="string"&&te?K+" "+te:K},h.attributesFromObject=function(S,te){return Object.keys(te).reduce(function(ue,K){return ue[S+"-"+K]=te[K],ue},{})},h.state={afterOpen:!1,beforeClose:!1},h.shouldClose=null,h.moveFromContentToOverlay=null,h}return r(A,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(h,S){this.props.isOpen&&!h.isOpen?this.open():!this.props.isOpen&&h.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!S.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var h=this.props,S=h.appElement,te=h.ariaHideApp,ue=h.htmlOpenClassName,K=h.bodyOpenClassName,O=h.parentSelector,$=O&&O().ownerDocument||document;K&&v.add($.body,K),ue&&v.add($.getElementsByTagName("html")[0],ue),te&&(W+=1,p.hide(S)),E.default.register(this)}},{key:"render",value:function(){var h=this.props,S=h.id,te=h.className,ue=h.overlayClassName,K=h.defaultStyles,O=h.children,$=te?{}:K.content,J=ue?{}:K.overlay;if(this.shouldBeClosed())return null;var _e={ref:this.setOverlayRef,className:this.buildClassName("overlay",ue),style:n({},J,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},ie=n({id:S,ref:this.setContentRef,style:n({},$,this.props.style.content),className:this.buildClassName("content",te),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),Qt=this.props.contentElement(ie,O);return this.props.overlayElement(_e,Qt)}}]),A}(i.Component);He.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},He.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(_.default),s.default.instanceOf(b.SafeHTMLCollection),s.default.instanceOf(b.SafeNodeList),s.default.arrayOf(s.default.instanceOf(_.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=He,e.exports=t.default}(Qn,Qn.exports);var Uu=Qn.exports;function Mi(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function wi(e){function t(n){var a=this.constructor.getDerivedStateFromProps(e,n);return a!=null?a:null}this.setState(t.bind(this))}function Ni(e,t){try{var n=this.props,a=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,a)}finally{this.props=n,this.state=a}}Mi.__suppressDeprecationWarning=!0,wi.__suppressDeprecationWarning=!0,Ni.__suppressDeprecationWarning=!0;function $u(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,a=null,r=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?a="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(a="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?r="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(r="UNSAFE_componentWillUpdate"),n!==null||a!==null||r!==null){var i=e.displayName||e.name,o=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
48
48
|
|
|
49
|
-
`+
|
|
50
|
-
`+n:"")+(
|
|
51
|
-
`+
|
|
52
|
-
`+
|
|
49
|
+
`+i+" uses "+o+" but also contains the following legacy lifecycles:"+(n!==null?`
|
|
50
|
+
`+n:"")+(a!==null?`
|
|
51
|
+
`+a:"")+(r!==null?`
|
|
52
|
+
`+r:"")+`
|
|
53
53
|
|
|
54
54
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
55
|
-
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=Aa,t.componentWillReceiveProps=Ia),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=Ca;var s=t.componentDidUpdate;t.componentDidUpdate=function(u,m,c){var d=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:c;s.call(this,u,m,d)}}return e}const Du=Wo(Object.freeze(Object.defineProperty({__proto__:null,polyfill:Lu},Symbol.toStringTag,{value:"Module"})));Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.bodyOpenClassName=Fe.portalClassName=void 0;var Sa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bu=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Oa=Kn,$t=At(Oa),Uu=Kn,Wt=At(Uu),Fu=qn,S=At(Fu),ku=Pu,Na=At(ku),Gu=be,$u=ju(Gu),Me=Ee,Ra=At(Me),Wu=Du;function ju(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function At(e){return e&&e.__esModule?e:{default:e}}function Vu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wa(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function zu(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var qu=Fe.portalClassName="ReactModalPortal",Xu=Fe.bodyOpenClassName="ReactModal__Body--open",Ge=Me.canUseDOM&&Wt.default.createPortal!==void 0,Ma=function(t){return document.createElement(t)},Ha=function(){return Ge?Wt.default.createPortal:Wt.default.unstable_renderSubtreeIntoContainer};function jt(e){return e()}var It=function(e){zu(t,e);function t(){var n,r,o,a;Vu(this,t);for(var i=arguments.length,s=Array(i),l=0;l<i;l++)s[l]=arguments[l];return a=(r=(o=wa(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(s))),o),o.removePortal=function(){!Ge&&Wt.default.unmountComponentAtNode(o.node);var u=jt(o.props.parentSelector);u&&u.contains(o.node)?u.removeChild(o.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},o.portalRef=function(u){o.portal=u},o.renderPortal=function(u){var m=Ha(),c=m(o,$t.default.createElement(Na.default,Sa({defaultStyles:t.defaultStyles},u)),o.node);o.portalRef(c)},r),wa(o,a)}return Bu(t,[{key:"componentDidMount",value:function(){if(Me.canUseDOM){Ge||(this.node=Ma("div")),this.node.className=this.props.portalClassName;var r=jt(this.props.parentSelector);r.appendChild(this.node),!Ge&&this.renderPortal(this.props)}}},{key:"getSnapshotBeforeUpdate",value:function(r){var o=jt(r.parentSelector),a=jt(this.props.parentSelector);return{prevParent:o,nextParent:a}}},{key:"componentDidUpdate",value:function(r,o,a){if(Me.canUseDOM){var i=this.props,s=i.isOpen,l=i.portalClassName;r.portalClassName!==l&&(this.node.className=l);var u=a.prevParent,m=a.nextParent;m!==u&&(u.removeChild(this.node),m.appendChild(this.node)),!(!r.isOpen&&!s)&&!Ge&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(!(!Me.canUseDOM||!this.node||!this.portal)){var r=this.portal.state,o=Date.now(),a=r.isOpen&&this.props.closeTimeoutMS&&(r.closesAt||o+this.props.closeTimeoutMS);a?(r.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,a-o)):this.removePortal()}}},{key:"render",value:function(){if(!Me.canUseDOM||!Ge)return null;!this.node&&Ge&&(this.node=Ma("div"));var r=Ha();return r($t.default.createElement(Na.default,Sa({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)}}],[{key:"setAppElement",value:function(r){$u.setElement(r)}}]),t}(Oa.Component);It.propTypes={isOpen:S.default.bool.isRequired,style:S.default.shape({content:S.default.object,overlay:S.default.object}),portalClassName:S.default.string,bodyOpenClassName:S.default.string,htmlOpenClassName:S.default.string,className:S.default.oneOfType([S.default.string,S.default.shape({base:S.default.string.isRequired,afterOpen:S.default.string.isRequired,beforeClose:S.default.string.isRequired})]),overlayClassName:S.default.oneOfType([S.default.string,S.default.shape({base:S.default.string.isRequired,afterOpen:S.default.string.isRequired,beforeClose:S.default.string.isRequired})]),appElement:S.default.oneOfType([S.default.instanceOf(Ra.default),S.default.instanceOf(Me.SafeHTMLCollection),S.default.instanceOf(Me.SafeNodeList),S.default.arrayOf(S.default.instanceOf(Ra.default))]),onAfterOpen:S.default.func,onRequestClose:S.default.func,closeTimeoutMS:S.default.number,ariaHideApp:S.default.bool,shouldFocusAfterRender:S.default.bool,shouldCloseOnOverlayClick:S.default.bool,shouldReturnFocusAfterClose:S.default.bool,preventScroll:S.default.bool,parentSelector:S.default.func,aria:S.default.object,data:S.default.object,role:S.default.string,contentLabel:S.default.string,shouldCloseOnEsc:S.default.bool,overlayRef:S.default.func,contentRef:S.default.func,id:S.default.string,overlayElement:S.default.func,contentElement:S.default.func},It.defaultProps={isOpen:!1,portalClassName:qu,bodyOpenClassName:Xu,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(t,n){return $t.default.createElement("div",t,n)},contentElement:function(t,n){return $t.default.createElement("div",t,n)}},It.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,Wu.polyfill)(It),Fe.default=It,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Fe,r=o(n);function o(a){return a&&a.__esModule?a:{default:a}}t.default=r.default,e.exports=t.default}(Zn,Zn.exports);var Zu=Zn.exports;const Pa=vt(Zu);function Ku({color:e="#fff",className:t}){return f.createElement("svg",{className:t,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f.createElement("path",{d:"M12.5964 11.404L9.41445 8.22205L12.5964 5.04007C12.7732 4.86329 12.7732 4.50974 12.5964 4.33296L11.8893 3.62585C11.6904 3.42698 11.359 3.44908 11.1822 3.62585L8.00023 6.80783L4.81825 3.62585C4.61938 3.42698 4.28792 3.44908 4.11114 3.62585L3.40404 4.33296C3.20516 4.53183 3.20516 4.84119 3.40404 5.04007L6.58602 8.22205L3.40404 11.404C3.20516 11.6029 3.20517 11.9123 3.40404 12.1111L4.11115 12.8182C4.28792 12.995 4.61938 13.0171 4.81825 12.8182L8.00023 9.63626L11.1822 12.8182C11.359 12.995 11.6904 13.0171 11.8893 12.8182L12.5964 12.1111C12.7732 11.9344 12.7732 11.5808 12.5964 11.404Z",fill:e}))}const nt={modal:"_modal_19xub_1",content:"_content_19xub_15",contentScrollable:"_contentScrollable_19xub_21",overlay:"_overlay_19xub_27",header:"_header_19xub_40",closeButton:"_closeButton_19xub_49"},Yu=s=>{var l=s,{children:e,isOpen:t,onClose:n,className:r,contentClassName:o,scrollable:a=!1}=l,i=Kt(l,["children","isOpen","onClose","className","contentClassName","scrollable"]);return Pa.setAppElement("body"),f.createElement(Pa,Re({className:P(nt.modal,r),overlayClassName:nt.overlay,onAfterOpen:()=>{ga.on()},onAfterClose:()=>{ga.off()},onRequestClose:n,isOpen:t,shouldCloseOnOverlayClick:!0,shouldCloseOnEsc:!0},i),f.createElement("div",{className:nt.header},f.createElement("button",{type:"button",onClick:n,className:P(nt.closeButton,q.closeButton),"data-testid":"modal-close-button"},f.createElement(Ku,null))),f.createElement("div",{className:P(nt.content,o,{[nt.contentScrollable]:a})},e))},Ju=1e3,La=Symbol.for("constructDateFrom");function Vt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&La in e?e[La](t):e instanceof Date?new e.constructor(t):new Date(t)}function Qu(e,t){return Vt(e,e)}function ec(e,...t){const n=Vt.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Da(e,t){const n=Qu(e);return n.setHours(0,0,0,0),n}function tc(e){return Vt(e,Date.now())}function nc(e,t,n){const[r,o]=ec(n==null?void 0:n.in,e,t);return+Da(r)==+Da(o)}function rc(e,t){return nc(Vt(e,e),tc(e))}function oc(e){return e*Ju}const ac={openModalInfo:"_openModalInfo_bndtu_1"},Ba=e=>{const{deferred_days:t,deferred_months:n,installments_count:r}=e;return r===1&&!t&&!n?f.createElement(D,{id:"payment-plan-strings.pay.now.button",defaultMessage:"Payer maintenant"}):r===1&&t?f.createElement(D,{id:"payment-plan-strings.day-abbreviation",defaultMessage:"J{deferredDays}",values:{deferredDays:`+${t}`}}):r===1&&n?f.createElement(D,{id:"payment-plan-strings.month-abbreviation",defaultMessage:"M{deferredMonths}",values:{deferredMonths:`+${n}`}}):`${r}x`},zt=e=>{var t;if((t=e.payment_plan)!=null&&t.every(n=>n.customer_fee===0&&n.customer_interest===0))return f.createElement(f.Fragment,null," ",f.createElement(D,{id:"payment-plan-strings.no-fee",defaultMessage:"(sans frais)"}))},ic=e=>{const{deferred_days:t,deferred_months:n,installments_count:r,eligible:o,purchase_amount:a,minAmount:i=0,maxAmount:s=0,payment_plan:l}=e,u=t+n*30;if(!o)return a>s?f.createElement(D,{id:"payment-plan-strings.ineligible-greater-than-max",defaultMessage:"Jusqu'à {maxAmount}",values:{maxAmount:f.createElement(Ie,{value:Y(s),style:"currency",currency:"EUR"})}}):f.createElement(D,{id:"payment-plan-strings.ineligible-lower-than-min",defaultMessage:"À partir de {minAmount}",values:{minAmount:f.createElement(Ie,{value:Y(i),style:"currency",currency:"EUR"})}});if(l){if(u!==0&&r===1)return f.createElement(f.Fragment,null,f.createElement(D,{id:"payment-plan-strings.deferred",defaultMessage:"{totalAmount} à payer le {dueDate}",values:{totalAmount:f.createElement(Ie,{value:Y(l[0].total_amount),style:"currency",currency:"EUR"}),dueDate:f.createElement(Qo,{value:oc(l[0].due_date),day:"numeric",month:"long",year:"numeric"})}}),zt(e));if(r>0){const m=l==null?void 0:l.every((c,d)=>d===0||c.total_amount===l[0].total_amount);return r>4?f.createElement("span",{className:ac.openModalInfo},f.createElement(D,{id:"payment-plan-strings.credit",defaultMessage:"Cliquez pour en savoir plus",description:"Link to credit details"})):xe(e)?f.createElement(f.Fragment,null,f.createElement(D,{id:"payment-plan-strings.pay-now",defaultMessage:"Payer maintenant {totalAmount}",values:{totalAmount:f.createElement(Ie,{value:Y(l[0].total_amount),style:"currency",currency:"EUR"}),installmentsCount:r}}),zt(e)):m?f.createElement(f.Fragment,null,f.createElement(D,{id:"payment-plan-strings.multiple-installments-same-amount",defaultMessage:"{installmentsCount} x {totalAmount}",values:{totalAmount:f.createElement(Ie,{value:Y(l[0].total_amount),style:"currency",currency:"EUR"}),installmentsCount:r}}),zt(e)):f.createElement(f.Fragment,null,f.createElement(D,{id:"payment-plan-strings.multiple-installments",defaultMessage:"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",values:{firstInstallmentAmount:f.createElement(Ie,{value:Y(l[0].total_amount),style:"currency",currency:"EUR"}),numberOfRemainingInstallments:r-1,othersInstallmentAmount:f.createElement(Ie,{value:Y(l[1].total_amount),style:"currency",currency:"EUR"})}}),zt(e))}}else throw Error(`No payment plan provided for payment in ${r} installments. Please contact us if you see this error.`);return f.createElement(D,{id:"payment-plan-strings.default-message",defaultMessage:"Payez en plusieurs fois avec Alma"})},rr={buttons:"_buttons_12ibe_1",active:"_active_12ibe_29",textButton:"_textButton_12ibe_35"},sc=({eligibilityPlans:e,currentPlanIndex:t,setCurrentPlanIndex:n})=>f.createElement("div",{className:P(rr.buttons,q.eligibilityOptions)},e.map((r,o)=>f.createElement("button",{type:"button",key:`p${r.installments_count}x-d+${r.deferred_days}-m+${r.deferred_months}`,className:P({[P(rr.active,q.activeOption)]:o===t}),onClick:()=>n(o)},f.createElement("span",{className:rr.textButton},Ba(r))))),Ct={installment:"_installment_1c45h_1",date:"_date_1c45h_11",dot:"_dot_1c45h_17",isCurrent:"_isCurrent_1c45h_26",bold:"_bold_1c45h_30"},lc=({installment:e,index:t})=>f.createElement("div",{className:Ct.installment,"data-testid":`installment-${t}`},f.createElement("div",{className:Ct.date},f.createElement("div",{className:P(Ct.dot,{[Ct.isCurrent]:t===0})}),rc(e.due_date*1e3)?f.createElement(D,{id:"installments.today",defaultMessage:"Aujourd'hui",tagName:"strong"}):f.createElement(Qo,{value:e.due_date*1e3,day:"numeric",month:"long",year:"numeric"})),f.createElement("div",{className:P({[Ct.bold]:t===0})},f.createElement(Ie,{value:e.total_amount/100,style:"currency",currency:"EUR"}))),uc={schedule:"_schedule_mjau7_1"},cc=({currentPlan:e})=>f.createElement("div",{className:P(uc.schedule,q.scheduleDetails),"data-testid":"modal-installments-element"},((e==null?void 0:e.payment_plan)||[]).map((t,n)=>f.createElement(lc,{key:t.due_date*1e3,installment:t,index:n}))),or=n=>{var r=n,{color:e="#FA5022"}=r,t=Kt(r,["color"]);return f.createElement("svg",Re({width:"50",height:"25",viewBox:"0 0 360 109",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),f.createElement("path",{d:"M333.24 28.3462V38.4459C327.504 31.1018 319.176 26.5132 309.288 26.5132C290.208 26.5132 275.424 43.5497 275.424 64.5757C275.424 85.6018 290.208 102.638 309.288 102.638C319.872 102.638 328.668 97.3908 334.416 89.1241V100.817H352.668V28.3462H333.24ZM314.028 84.4876C303.42 84.4876 294.828 75.574 294.828 64.5757C294.828 53.5775 303.42 44.6639 314.028 44.6639C324.636 44.6639 333.228 53.5775 333.228 64.5757C333.228 75.574 324.636 84.4876 314.028 84.4876ZM109.5 8.23073H128.916V100.805H109.5V8.23073ZM151.248 59.7356C151.248 39.8117 163.5 26.5252 180.468 26.5252C191.004 26.5252 199.332 31.1976 204.348 39.1648C209.376 31.1976 217.692 26.5252 228.228 26.5252C245.196 26.5252 257.448 39.8117 257.448 59.7356V100.817H238.032V57.639C238.032 49.8635 232.872 44.7957 226.044 44.7957C219.216 44.7957 214.056 49.8755 214.056 57.639V100.817H194.64V57.639C194.64 49.8635 189.48 44.7957 182.652 44.7957C175.824 44.7957 170.664 49.8755 170.664 57.639V100.817H151.248V59.7356ZM74.34 29.101C69.744 11.9088 60.0241 6.40967 50.772 6.40967C41.5201 6.40967 31.8 11.9088 27.204 29.101L7.24805 100.829H26.916C30.12 88.8485 39.996 82.1753 50.772 82.1753C61.548 82.1753 71.424 88.8605 74.6281 100.829H94.3081L74.34 29.101ZM50.772 65.4623C44.508 65.4623 38.8321 67.8345 34.6441 71.6803L45.924 29.9397C47.0041 25.9501 48.6001 24.6802 50.784 24.6802C52.9681 24.6802 54.5641 25.9501 55.6441 29.9397L66.912 71.6803C62.724 67.8345 57.036 65.4623 50.772 65.4623Z",fill:e}))},mc=()=>f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"16",viewBox:"0 0 24 16"},f.createElement("defs",null,f.createElement("linearGradient",{id:"cardamex",x1:"10.914%",x2:"87.432%",y1:"86.279%",y2:"15.035%"},f.createElement("stop",{offset:"0%",stopColor:"#3FA9F5"}),f.createElement("stop",{offset:"100%",stopColor:"#0071BC"}))),f.createElement("g",{fill:"none",fillRule:"evenodd"},f.createElement("path",{fill:"url(#cardamex)",fillRule:"nonzero",d:"M22.559 16H1.379C.627 16 0 15.392 0 14.662V1.338C0 .608.627 0 1.379 0H22.62C23.373 0 24 .608 24 1.338v13.324c-.063.73-.627 1.338-1.441 1.338z"}),f.createElement("g",{fill:"#FFF"},f.createElement("path",{d:"M10.115 8.711L8.889 6.044H7.295v3.852L5.517 6.044H4.17l-1.778 4.03h1.103l.368-.889h2.023l.368.89h2.084V7.11l1.349 2.963h.92l1.348-2.904v2.904h.98v-4.03H11.28l-1.165 2.667zm-5.272-.474H4.23l.613-1.422v.06l.613 1.362h-.613z"}),f.createElement("path",{fillRule:"nonzero",d:"M19.372 7.94l.735-.77 1.042-1.185h-1.287L18.697 7.23l-1.164-1.245h-3.985v3.97h3.923l1.226-1.303 1.165 1.304h1.287L20.107 8.71l-.735-.77zM16.92 9.186h-2.33v-.77h2.268v-.77H14.59v-.712h2.33L18.084 8 16.92 9.185z"})))),fc=()=>f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"16",viewBox:"0 0 24 16"},f.createElement("defs",null,f.createElement("linearGradient",{id:"cardcb",x1:"5.842%",x2:"95.393%",y1:"81.753%",y2:"17.344%"},f.createElement("stop",{offset:"0%",stopColor:"#39B54A"})," ",f.createElement("stop",{offset:"100%",stopColor:"#0A5296"}))),f.createElement("g",{fill:"none",fillRule:"nonzero"},f.createElement("path",{fill:"url(#cardcb)",d:"M22.621 16H1.38C.627 16 0 15.392 0 14.662V1.338C0 .608.627 0 1.379 0H22.62C23.373 0 24 .608 24 1.338v13.324c-.063.73-.627 1.338-1.379 1.338z"}),f.createElement("g",{fill:"#FFF"},f.createElement("path",{d:"M19.094 4.03h-6.437V8h6.498c1.165 0 2.084-.889 2.084-2.015-.06-1.066-.98-1.955-2.145-1.955zM19.094 8.593h-6.437v3.97h6.498c1.165 0 2.084-.889 2.084-2.015-.06-1.067-.98-1.955-2.145-1.955zM7.017 8.06h4.966c-.245-2.371-2.391-4.267-4.966-4.267-2.758 0-5.027 2.074-5.027 4.681s2.269 4.682 5.027 4.682c2.698 0 4.904-2.015 5.027-4.563H7.017v-.534z"})))),dc=()=>f.createElement("svg",{width:"24px",height:"16px",viewBox:"0 0 24 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},f.createElement("g",{id:"Parcours-1C-B",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"mobile-1C-Paiement-V1",transform:"translate(-269.000000, -313.000000)"},f.createElement("g",{id:"mastercard",transform:"translate(269.000000, 313.000000)"},f.createElement("rect",{id:"Rectangle",fill:"#FFFFFF",x:"0",y:"0",width:"24",height:"16",rx:"1"}),f.createElement("g",{id:"Group-6",transform:"translate(4.000000, 3.000000)"},f.createElement("circle",{id:"Oval-4-Copy",fill:"#EA001B",cx:"5.05263158",cy:"5.05263158",r:"5.05263158"}),f.createElement("circle",{id:"Oval-4",fillOpacity:"0.25",fill:"#F79F1A",cx:"10.9473684",cy:"5.05263158",r:"5.05263158"}),f.createElement("circle",{id:"Oval-4-Copy-2",fillOpacity:"0.9",fill:"#F79F1A",cx:"10.9473684",cy:"5.05263158",r:"5.05263158"}),f.createElement("circle",{id:"Oval-4-Copy-3",fillOpacity:"0.3",fill:"#EA001B",cx:"5.05263158",cy:"5.05263158",r:"5.05263158"})))))),hc=()=>f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"16",viewBox:"0 0 24 16"},f.createElement("g",{fill:"none",fillRule:"nonzero"},f.createElement("path",{fill:"#FCFCFC",d:"M22.684 16H1.38C.627 16 0 15.39 0 14.656V1.344C0 .61.627 0 1.379 0H22.62C23.373 0 24 .61 24 1.344v13.374c0 .671-.564 1.282-1.316 1.282z"})," ",f.createElement("path",{fill:"#005098",d:"M8.889 10.726l.948-5.393h1.482l-.949 5.393zM15.704 5.452a3.658 3.658 0 0 0-1.304-.237c-1.481 0-2.489.71-2.489 1.778 0 .77.711 1.185 1.304 1.481.592.237.77.415.77.652 0 .355-.474.533-.889.533-.592 0-.889-.059-1.363-.296l-.177-.06-.178 1.186c.355.178 1.007.296 1.659.296 1.54 0 2.548-.71 2.548-1.837 0-.592-.415-1.067-1.244-1.481-.534-.237-.83-.415-.83-.652 0-.237.237-.474.83-.474.474 0 .83.118 1.126.178l.118.059.119-1.126M19.496 5.333H18.37c-.355 0-.592.119-.77.474l-2.193 4.919h1.541s.237-.652.296-.83h1.897c.059.178.178.83.178.83h1.362l-1.185-5.393zM17.66 8.77l.593-1.481s.118-.296.178-.533l.118.474s.296 1.303.356 1.54h-1.245zM7.644 5.333L6.222 9.007l-.178-.77C5.748 7.348 4.92 6.459 4.03 5.985l1.303 4.682h1.541l2.311-5.393h-1.54"}),f.createElement("path",{fill:"#F6A500",d:"M4.919 5.333h-2.37v.119c1.836.474 3.08 1.54 3.555 2.844L5.57 5.807c-.118-.414-.355-.474-.651-.474"}),f.createElement("path",{fill:"#0A5296",d:"M23.937 3.23H0V1.316C0 .598.627 0 1.379 0H22.62C23.373 0 24 .598 24 1.316V3.23h-.063z"}),f.createElement("path",{fill:"#F4A428",d:"M.063 13H24v1.8c0 .655-.625 1.2-1.375 1.2H1.375C.625 16 0 15.455 0 14.8V13h.063z"}))),Ua={cardContainer:"_cardContainer_5dhmv_1"},Fa=({cards:e})=>{const t=Array.from(new Set(e));return f.createElement("div",{"data-testid":"card-logos",className:P(Ua.cardContainer,q.cardContainer)},t.map(n=>f.createElement("div",{key:n,className:Ua.card,"data-testid":`card-logo-${n}`},n==="cb"&&f.createElement(fc,null),n==="amex"&&f.createElement(mc,null),n==="mastercard"&&f.createElement(dc,null),n==="visa"&&f.createElement(hc,null))))},$e={list:"_list_11ul3_1",listItem:"_listItem_11ul3_10",bullet:"_bullet_11ul3_17"},rt=e=>f.createElement("strong",null,e),ka=({isCurrentPlanP1X:e})=>f.createElement("div",{className:P($e.list,q.info),"data-testid":"modal-info-element"},f.createElement("div",{className:$e.listItem},f.createElement("div",{className:P($e.bullet,q.bullet)},"1"),f.createElement("div",{className:q.infoMessage},e?f.createElement(D,{id:"eligibility-modal.p1x-bullet-1",defaultMessage:"Choisissez <strong>Alma - Payer maintenant</strong> au moment du paiement.",values:{strong:rt}}):f.createElement(D,{id:"eligibility-modal.bullet-1",defaultMessage:"Choisissez <strong>Alma</strong> au moment du paiement.",values:{strong:rt}}))),f.createElement("div",{className:$e.listItem},f.createElement("div",{className:P($e.bullet,q.bullet)},"2"),f.createElement("div",{className:q.infoMessage},e?f.createElement(D,{id:"eligibility-modal.p1x-bullet-2",defaultMessage:"Renseignez les informations de votre <strong>carte bancaire.</strong>",values:{strong:rt}}):f.createElement(D,{id:"eligibility-modal.bullet-2",defaultMessage:"Laissez-vous guider et validez votre paiement en <strong>2 minutes.</strong>",values:{strong:rt}}))),f.createElement("div",{className:$e.listItem},f.createElement("div",{className:P($e.bullet,q.bullet)},"3"),f.createElement("div",{className:q.infoMessage},e?f.createElement(D,{id:"eligibility-modal.p1x-bullet-3",defaultMessage:"<strong>La validation </strong> de votre paiement est instantanée !",values:{strong:rt}}):f.createElement(D,{id:"eligibility-modal.bullet-3",defaultMessage:"<strong>Gardez le contrôle</strong> en avançant ou reculant vos échéances à votre rythme.",values:{strong:rt}})))),pc={title:"_title_1yl0a_1"},Ga=({isSomePlanDeferred:e,isCurrentPlanP1X:t})=>f.createElement("div",{className:P(pc.title,q.title),"data-testid":"modal-title-element"},e&&f.createElement(D,{id:"eligibility-modal.title-deferred-plan",defaultMessage:"Payez en plusieurs fois ou plus tard par carte bancaire avec Alma."}),!e&&t&&f.createElement(D,{id:"eligibility-modal.title-pay-now",defaultMessage:"Payez comptant par carte bancaire avec Alma."}),!e&&!t&&f.createElement(D,{id:"eligibility-modal.title-normal",defaultMessage:"Payez en plusieurs fois par carte bancaire avec Alma."})),St={container:"_container_lop95_1",block:"_block_lop95_7",left:"_left_lop95_14",logo:"_logo_lop95_20"},_c=({children:e,isSomePlanDeferred:t,cards:n,isCurrentPlanP1X:r})=>f.createElement("div",{className:P(St.container,q.desktopModal),"data-testid":"modal-container"},f.createElement("aside",{className:P([St.block,St.left,q.leftSide])},f.createElement(Ga,{isSomePlanDeferred:t,isCurrentPlanP1X:r}),f.createElement(ka,{isCurrentPlanP1X:r}),n&&f.createElement(Fa,{cards:n}),f.createElement(or,{className:St.logo,width:"75"})),f.createElement("div",{className:P(St.block,q.rightSide)},e)),qt={noEligibility:"_noEligibility_1lg7e_1",loader:"_loader_1lg7e_9",scheduleArea:"_scheduleArea_1lg7e_16",verticalLine:"_verticalLine_1lg7e_20"},$a={container:"_container_1ca7c_1",logo:"_logo_1ca7c_6"},gc=({children:e,isSomePlanDeferred:t,cards:n,isCurrentPlanP1X:r})=>f.createElement("div",{className:P($a.container,q.mobileModal),"data-testid":"modal-container"},f.createElement(Ga,{isSomePlanDeferred:t,isCurrentPlanP1X:r}),e,f.createElement(ka,{isCurrentPlanP1X:r}),n&&f.createElement(Fa,{cards:n}),f.createElement(or,{className:$a.logo,width:"75"})),Wa=({initialPlanIndex:e,onClose:t,eligibilityPlans:n,status:r,cards:o})=>{const[a,i]=ne(e||0),l=Fl({minWidth:it})?_c:gc,u=n.filter(d=>d.eligible),m=u[a],c=n.some(d=>d.deferred_days>0||d.deferred_months>0);return f.createElement(Yu,{onClose:t,ariaHideApp:!1,scrollable:!0,isOpen:!0},f.createElement(l,{isSomePlanDeferred:c,cards:o,isCurrentPlanP1X:xe(m)},r===H.PENDING&&f.createElement("div",{className:qt.loader},f.createElement(Wl,null)),r===H.SUCCESS&&u.length===0&&f.createElement("div",{className:qt.noEligibility},f.createElement(D,{id:"eligibility-modal.no-eligibility",defaultMessage:"Oups, il semblerait que la simulation n'ait pas fonctionné."})),r===H.SUCCESS&&u.length>=1&&f.createElement(f.Fragment,null,f.createElement(sc,{eligibilityPlans:u,currentPlanIndex:a,setCurrentPlanIndex:i}),f.createElement("div",{className:qt.scheduleArea},f.createElement("div",{className:qt.verticalLine}),f.createElement(cc,{currentPlan:m}),f.createElement(Gl,{currentPlan:m})))))},vc=({purchaseAmount:e,apiData:t,configPlans:n,customerBillingCountry:r,customerShippingCountry:o,onClose:a,cards:i})=>{const[s,l]=ta(e,t,n,r,o);return f.createElement(Wa,{initialPlanIndex:0,onClose:a,eligibilityPlans:s,status:l,cards:i})},ar={loadingIndicator:"_loadingIndicator_mdgfa_1",line1:"_line1_mdgfa_8",line2:"_line2_mdgfa_14"},yc=({className:e})=>f.createElement("div",{className:P(ar.loadingIndicator,e),"data-testid":"loader"},f.createElement("div",{className:ar.line1}),f.createElement("div",{className:ar.line2})),bc=(e,t)=>{const[n,r]=ne(0),[o,a]=ne(!0);return fe(()=>{let i,s=!0;if(t!==-1)return e.length!==0&&(!e.includes(n)&&o&&r(e[0]),i=setTimeout(()=>{o&&s&&r(e[e.includes(n)?(e.indexOf(n)+1)%e.length:0])},t)),()=>{s=!1,clearTimeout(i)}},[e,n,t,o]),{current:n,onHover:i=>{r(i),a(!1)},onLeave:()=>{a(!0)}}},Ec=({suggestedPaymentPlan:e,eligibilityPlans:t})=>{const n=Array.isArray(e)?e:[e];let r=0;return n.some(o=>{const a=t.findIndex(i=>i.installments_count===o&&i.eligible&&!i.deferred_days&&!i.deferred_months);return a!==-1?(r=a,!0):!1}),r},ot="alma-payment-plans",We={container:`${ot}-container`,eligibilityLine:`${ot}-eligibility-line`,eligibilityOptions:`${ot}-eligibility-options`,notEligibleOption:`${ot}-not-eligible-option`,paymentInfo:`${ot}-payment-info`,activeOption:`${ot}-active-option`},le={widgetButton:"_widgetButton_11p0j_1",logo:"_logo_11p0j_18",primaryContainer:"_primaryContainer_11p0j_22",paymentPlans:"_paymentPlans_11p0j_28",plan:"_plan_11p0j_37",active:"_active_11p0j_52",monochrome:"_monochrome_11p0j_57",notEligible:"_notEligible_11p0j_61",hideBorder:"_hideBorder_11p0j_67",info:"_info_11p0j_71",loader:"_loader_11p0j_82",pending:"_pending_11p0j_87",clickable:"_clickable_11p0j_91",unClickable:"_unClickable_11p0j_95"},Tc=1e3*3600,ja=5500,xc=({apiData:e,configPlans:t,hideIfNotEligible:n,monochrome:r,purchaseAmount:o,suggestedPaymentPlan:a,cards:i,customerBillingCountry:s,customerShippingCountry:l,transitionDelay:u,hideBorder:m=!1,onModalClose:c})=>{const[d,h]=ta(o,e,t,s,l),_=d.filter(V=>V.eligible),b=Ec({eligibilityPlans:d,suggestedPaymentPlan:a!=null?a:0}),v=a!==void 0,y=u!==void 0,[T,E]=ne(!1),R=()=>E(!0),g=V=>{E(!1),c==null||c(V)},N=d.reduce((V,A,I)=>A.eligible?[...V,I]:V,[]),W=()=>y?u!=null?u:ja:v?Tc:ja,{current:ee,onHover:G,onLeave:X}=bc(N,W());fe(()=>{h===H.SUCCESS&&v&&(G(b),X())},[h]);const ge=V=>{const A=N.findIndex(I=>I===V);return A===-1?0:A};if(h===H.PENDING)return f.createElement("div",{className:P(le.widgetButton,le.pending)},f.createElement(yc,null));if(n&&_.length===0||d.length===0||h===H.FAILED)return null;const ue=V=>{V.preventDefault(),_.length>0&&R()};return f.createElement(f.Fragment,null,f.createElement("div",{tabIndex:0,role:"button",onClick:ue,onKeyDown:V=>V.key==="Enter"&&ue(V),className:P(le.widgetButton,{[le.clickable]:_.length>0,[le.unClickable]:_.length===0,[le.hideBorder]:m},We.container),"data-testid":"widget-button"},f.createElement("div",{className:P(le.primaryContainer,We.eligibilityLine)},f.createElement(or,{className:le.logo,color:r?"var(--off-black)":void 0}),f.createElement("div",{className:P(le.paymentPlans,We.eligibilityOptions)},d.map((V,A)=>{const I=A===ee;return f.createElement("div",{key:`p${V.installments_count}x-d+${V.deferred_days}-m+${V.deferred_months}`,onMouseEnter:()=>G(A),onTouchStart:()=>G(A),onMouseOut:X,onBlur:X,onTouchEnd:X,className:P(le.plan,{[P(le.active,We.activeOption)]:I,[le.monochrome]:r&&I,[P(le.notEligible,We.notEligibleOption)]:!V.eligible})},Ba(V))}))),f.createElement("div",{className:P(le.info,{[P(le.notEligible,We.notEligibleOption)]:d[ee]&&!d[ee].eligible},We.paymentInfo)},d.length!==0&&ic(d[ee]))),T&&f.createElement(Wa,{initialPlanIndex:ge(ee),onClose:g,eligibilityPlans:_,status:h,cards:i}))},at=new Map,Ac=(e,t,n)=>{var o;const r=document.querySelector(n.container);if(r){const a=at.get(r);a&&(a.unmount(),at.delete(r))}if(t===F.PaymentPlans){const{purchaseAmount:a,plans:i,transitionDelay:s,hideIfNotEligible:l,hideBorder:u=!1,monochrome:m=!0,suggestedPaymentPlan:c,customerBillingCountry:d,customerShippingCountry:h,locale:_=z.en,cards:b,onModalClose:v}=n;if(r){const y=ro(r);y.render(f.createElement(ea,{locale:_},f.createElement(xc,{apiData:e,configPlans:i,hideIfNotEligible:l,monochrome:m,purchaseAmount:a,suggestedPaymentPlan:c,cards:b,customerBillingCountry:d,customerShippingCountry:h,transitionDelay:s,hideBorder:u,onModalClose:v}))),at.set(r,y)}}if(t===F.Modal){const{clickableSelector:a,purchaseAmount:i,plans:s,locale:l=z.en,customerBillingCountry:u,customerShippingCountry:m,cards:c,onClose:d}=n,h=b=>{if(!r)return;const v=at.get(r);v&&(v.unmount(),at.delete(r)),d==null||d(b)},_=()=>{if(r){const b=ro(r);b.render(f.createElement(ea,{locale:l},f.createElement(vc,{purchaseAmount:i,apiData:e,configPlans:s,customerBillingCountry:u,customerShippingCountry:m,onClose:h,cards:c}))),at.set(r,b)}};return a&&((o=document.querySelector(a))==null||o.addEventListener("click",_,!1)),{open:_,close:h}}},Ic=e=>({add:(t,n)=>Ac(e,t,n)});var Va=(e=>(e.LIVE="https://api.getalma.eu",e.TEST="https://api.sandbox.getalma.eu",e))(Va||{});L.Widgets=void 0,(e=>{function t(n,r){return Ic({domain:r,merchantId:n})}e.initialize=t,e.PaymentPlans=F.PaymentPlans,e.Modal=F.Modal})(L.Widgets||(L.Widgets={})),L.Utils=void 0,(e=>{e.priceToCents=Ot,e.priceFromCents=Y,e.formatCents=Yt})(L.Utils||(L.Utils={})),L.ApiMode=Va,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})});
|
|
55
|
+
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=Mi,t.componentWillReceiveProps=wi),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=Ni;var s=t.componentDidUpdate;t.componentDidUpdate=function(u,f,c){var d=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:c;s.call(this,u,f,d)}}return e}const Gu=Zr(Object.freeze(Object.defineProperty({__proto__:null,polyfill:$u},Symbol.toStringTag,{value:"Module"})));Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.bodyOpenClassName=Ze.portalClassName=void 0;var Oi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},zu=function(){function e(t,n){for(var a=0;a<n.length;a++){var r=n[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),Pi=Yn,Vt=Ot(Pi),Wu=Yn,qt=Ot(Wu),ju=Kn,T=Ot(ju),Vu=Uu,Ri=Ot(Vu),qu=Ae,Zu=Ku(qu),Ue=Te,Li=Ot(Ue),Xu=Gu;function Ku(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function Ot(e){return e&&e.__esModule?e:{default:e}}function Ju(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hi(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Yu(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Qu=Ze.portalClassName="ReactModalPortal",ec=Ze.bodyOpenClassName="ReactModal__Body--open",Ke=Ue.canUseDOM&&qt.default.createPortal!==void 0,ki=function(t){return document.createElement(t)},Di=function(){return Ke?qt.default.createPortal:qt.default.unstable_renderSubtreeIntoContainer};function Zt(e){return e()}var Pt=function(e){Yu(t,e);function t(){var n,a,r,i;Ju(this,t);for(var o=arguments.length,s=Array(o),l=0;l<o;l++)s[l]=arguments[l];return i=(a=(r=Hi(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(s))),r),r.removePortal=function(){!Ke&&qt.default.unmountComponentAtNode(r.node);var u=Zt(r.props.parentSelector);u&&u.contains(r.node)?u.removeChild(r.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},r.portalRef=function(u){r.portal=u},r.renderPortal=function(u){var f=Di(),c=f(r,Vt.default.createElement(Ri.default,Oi({defaultStyles:t.defaultStyles},u)),r.node);r.portalRef(c)},a),Hi(r,i)}return zu(t,[{key:"componentDidMount",value:function(){if(Ue.canUseDOM){Ke||(this.node=ki("div")),this.node.className=this.props.portalClassName;var a=Zt(this.props.parentSelector);a.appendChild(this.node),!Ke&&this.renderPortal(this.props)}}},{key:"getSnapshotBeforeUpdate",value:function(a){var r=Zt(a.parentSelector),i=Zt(this.props.parentSelector);return{prevParent:r,nextParent:i}}},{key:"componentDidUpdate",value:function(a,r,i){if(Ue.canUseDOM){var o=this.props,s=o.isOpen,l=o.portalClassName;a.portalClassName!==l&&(this.node.className=l);var u=i.prevParent,f=i.nextParent;f!==u&&(u.removeChild(this.node),f.appendChild(this.node)),!(!a.isOpen&&!s)&&!Ke&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(!(!Ue.canUseDOM||!this.node||!this.portal)){var a=this.portal.state,r=Date.now(),i=a.isOpen&&this.props.closeTimeoutMS&&(a.closesAt||r+this.props.closeTimeoutMS);i?(a.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,i-r)):this.removePortal()}}},{key:"render",value:function(){if(!Ue.canUseDOM||!Ke)return null;!this.node&&Ke&&(this.node=ki("div"));var a=Di();return a(Vt.default.createElement(Ri.default,Oi({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)}}],[{key:"setAppElement",value:function(a){Zu.setElement(a)}}]),t}(Pi.Component);Pt.propTypes={isOpen:T.default.bool.isRequired,style:T.default.shape({content:T.default.object,overlay:T.default.object}),portalClassName:T.default.string,bodyOpenClassName:T.default.string,htmlOpenClassName:T.default.string,className:T.default.oneOfType([T.default.string,T.default.shape({base:T.default.string.isRequired,afterOpen:T.default.string.isRequired,beforeClose:T.default.string.isRequired})]),overlayClassName:T.default.oneOfType([T.default.string,T.default.shape({base:T.default.string.isRequired,afterOpen:T.default.string.isRequired,beforeClose:T.default.string.isRequired})]),appElement:T.default.oneOfType([T.default.instanceOf(Li.default),T.default.instanceOf(Ue.SafeHTMLCollection),T.default.instanceOf(Ue.SafeNodeList),T.default.arrayOf(T.default.instanceOf(Li.default))]),onAfterOpen:T.default.func,onRequestClose:T.default.func,closeTimeoutMS:T.default.number,ariaHideApp:T.default.bool,shouldFocusAfterRender:T.default.bool,shouldCloseOnOverlayClick:T.default.bool,shouldReturnFocusAfterClose:T.default.bool,preventScroll:T.default.bool,parentSelector:T.default.func,aria:T.default.object,data:T.default.object,role:T.default.string,contentLabel:T.default.string,shouldCloseOnEsc:T.default.bool,overlayRef:T.default.func,contentRef:T.default.func,id:T.default.string,overlayElement:T.default.func,contentElement:T.default.func},Pt.defaultProps={isOpen:!1,portalClassName:Qu,bodyOpenClassName:ec,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(t,n){return Vt.default.createElement("div",t,n)},contentElement:function(t,n){return Vt.default.createElement("div",t,n)}},Pt.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,Xu.polyfill)(Pt),Ze.default=Pt,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Ze,a=r(n);function r(i){return i&&i.__esModule?i:{default:i}}t.default=a.default,e.exports=t.default}(Jn,Jn.exports);var tc=Jn.exports;const Bi=At(tc);function nc({color:e="#fff",className:t}){return m.createElement("svg",{className:t,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false"},m.createElement("path",{d:"M12.5964 11.404L9.41445 8.22205L12.5964 5.04007C12.7732 4.86329 12.7732 4.50974 12.5964 4.33296L11.8893 3.62585C11.6904 3.42698 11.359 3.44908 11.1822 3.62585L8.00023 6.80783L4.81825 3.62585C4.61938 3.42698 4.28792 3.44908 4.11114 3.62585L3.40404 4.33296C3.20516 4.53183 3.20516 4.84119 3.40404 5.04007L6.58602 8.22205L3.40404 11.404C3.20516 11.6029 3.20517 11.9123 3.40404 12.1111L4.11115 12.8182C4.28792 12.995 4.61938 13.0171 4.81825 12.8182L8.00023 9.63626L11.1822 12.8182C11.359 12.995 11.6904 13.0171 11.8893 12.8182L12.5964 12.1111C12.7732 11.9344 12.7732 11.5808 12.5964 11.404Z",fill:e}))}const ut={modal:"_modal_1u882_1",content:"_content_1u882_19",contentScrollable:"_contentScrollable_1u882_25",overlay:"_overlay_1u882_31",header:"_header_1u882_44",closeButton:"_closeButton_1u882_53"},le="alma-eligibility-modal",Q={desktopModal:`${le}-desktop-modal`,mobileModal:`${le}-mobile-modal`,leftSide:`${le}-left-side`,bullet:`${le}-bullet`,rightSide:`${le}-right-side`,title:`${le}-title`,info:`${le}-info`,infoMessage:`${le}-info-message`,eligibilityOptions:`${le}-eligibility-options`,activeOption:`${le}-active-option`,closeButton:`${le}-close-button`,scheduleDetails:`${le}-schedule-details`,scheduleTotal:`${le}-schedule-total`,scheduleCredit:`${le}-schedule-credit`,cardContainer:`${le}-card-logos`,summary:`${le}-summary`},ac=s=>{var l=s,{children:e,isOpen:t,onClose:n,className:a,contentClassName:r,scrollable:i=!1}=l,o=tn(l,["children","isOpen","onClose","className","contentClassName","scrollable"]);const u=ye();return Bi.setAppElement("body"),m.createElement(Bi,ke({className:H(ut.modal,a),overlayClassName:ut.overlay,onAfterOpen:()=>{Ei.on()},onAfterClose:()=>{Ei.off()},onRequestClose:n,isOpen:t,shouldCloseOnOverlayClick:!0,shouldCloseOnEsc:!0,role:"dialog","aria-modal":"true"},o),m.createElement("div",{className:ut.header},m.createElement("button",{type:"button",onClick:n,className:H(ut.closeButton,Q.closeButton),"data-testid":"modal-close-button","aria-label":u.formatMessage({id:"accessibility.close-button.aria-label",defaultMessage:"Fermer la fenêtre"})},m.createElement(nc,{"aria-hidden":"true"}))),m.createElement("div",{className:H(ut.content,r,{[ut.contentScrollable]:i})},e))},Xt={skipLinks:"_skipLinks_14mgg_2",skipLinksList:"_skipLinksList_14mgg_10",skipLinkItem:"_skipLinkItem_14mgg_16",skipLink:"_skipLink_14mgg_2"},rc=({skipLinks:e,className:t})=>{const n=ye(),a=r=>{const i=r.currentTarget.getAttribute("href");if(i&&i.startsWith("#")){const o=i.substring(1),s=document.getElementById(o);s&&setTimeout(()=>{s.focus()},0)}};return m.createElement("nav",{className:H(Xt.skipLinks,t),role:"navigation","aria-label":n.formatMessage({id:"accessibility.skip-links.navigation.aria-label",defaultMessage:"Navigation rapide"})},m.createElement("ul",{className:Xt.skipLinksList},e.map(({href:r,labelId:i,defaultMessage:o})=>m.createElement("li",{key:r,className:Xt.skipLinkItem},m.createElement("a",{href:r,className:Xt.skipLink,onClick:a},m.createElement(L,{id:i,defaultMessage:o}))))))},ic=1e3,Fi=Symbol.for("constructDateFrom");function Kt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Fi in e?e[Fi](t):e instanceof Date?new e.constructor(t):new Date(t)}function oc(e,t){return Kt(e,e)}function sc(e,...t){const n=Kt.bind(null,t.find(a=>typeof a=="object"));return t.map(n)}function Ui(e,t){const n=oc(e);return n.setHours(0,0,0,0),n}function lc(e){return Kt(e,Date.now())}function uc(e,t,n){const[a,r]=sc(n==null?void 0:n.in,e,t);return+Ui(a)==+Ui(r)}function cc(e,t){return uc(Kt(e,e),lc(e))}function mc(e){return e*ic}const fc={openModalInfo:"_openModalInfo_a4893_1"},$i=e=>{const{deferred_days:t,deferred_months:n,installments_count:a}=e;return a===1&&!t&&!n?m.createElement(L,{id:"payment-plan-strings.pay.now.button",defaultMessage:"Payer maintenant"}):a===1&&t?m.createElement(L,{id:"payment-plan-strings.day-abbreviation",defaultMessage:"J{deferredDays}",values:{deferredDays:`+${t}`}}):a===1&&n?m.createElement(L,{id:"payment-plan-strings.month-abbreviation",defaultMessage:"M{deferredMonths}",values:{deferredMonths:`+${n}`}}):`${a}x`},dc=(e,t)=>{const{deferred_days:n,deferred_months:a,installments_count:r}=e;return r===1&&!n&&!a?t.formatMessage({id:"payment-plan-strings.pay.now.button",defaultMessage:"Payer maintenant"}):r===1&&n?t.formatMessage({id:"payment-plan-strings.day-abbreviation",defaultMessage:"J{deferredDays}"},{deferredDays:`+${n}`}):r===1&&a?t.formatMessage({id:"payment-plan-strings.month-abbreviation",defaultMessage:"M{deferredMonths}"},{deferredMonths:`+${a}`}):`${r}x`},Jt=e=>{var t;if((t=e.payment_plan)!=null&&t.every(n=>n.customer_fee===0&&n.customer_interest===0))return m.createElement(m.Fragment,null," ",m.createElement(L,{id:"payment-plan-strings.no-fee",defaultMessage:"(sans frais)"}))},pc=e=>{const{deferred_days:t,deferred_months:n,installments_count:a,eligible:r,purchase_amount:i,minAmount:o=0,maxAmount:s=0,payment_plan:l}=e,u=t+n*30;if(!r)return m.createElement("p",null,i>s?m.createElement(L,{id:"payment-plan-strings.ineligible-greater-than-max",defaultMessage:"Jusqu'à {maxAmount}",values:{maxAmount:m.createElement(Oe,{value:oe(s),style:"currency",currency:"EUR"})}}):m.createElement(L,{id:"payment-plan-strings.ineligible-lower-than-min",defaultMessage:"À partir de {minAmount}",values:{minAmount:m.createElement(Oe,{value:oe(o),style:"currency",currency:"EUR"})}}));if(l){if(u!==0&&a===1)return m.createElement("p",null,m.createElement(L,{id:"payment-plan-strings.deferred",defaultMessage:"{totalAmount} à payer le {dueDate}",values:{totalAmount:m.createElement(Oe,{value:oe(l[0].total_amount),style:"currency",currency:"EUR"}),dueDate:m.createElement(ri,{value:mc(l[0].due_date),day:"numeric",month:"long",year:"numeric"})}}),Jt(e));if(a>0){const f=l==null?void 0:l.every((c,d)=>d===0||c.total_amount===l[0].total_amount);return a>4?m.createElement("p",{className:fc.openModalInfo},m.createElement(L,{id:"payment-plan-strings.credit",defaultMessage:"Cliquez pour en savoir plus",description:"Link to credit details"})):Me(e)?m.createElement("p",null,m.createElement(L,{id:"payment-plan-strings.pay-now",defaultMessage:"Payer maintenant {totalAmount}",values:{totalAmount:m.createElement(Oe,{value:oe(l[0].total_amount),style:"currency",currency:"EUR"}),installmentsCount:a}}),Jt(e)):f?m.createElement("p",null,m.createElement(L,{id:"payment-plan-strings.multiple-installments-same-amount",defaultMessage:"{installmentsCount} x {totalAmount}",values:{totalAmount:m.createElement(Oe,{value:oe(l[0].total_amount),style:"currency",currency:"EUR"}),installmentsCount:a}}),Jt(e)):m.createElement("p",null,m.createElement(L,{id:"payment-plan-strings.multiple-installments",defaultMessage:"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",values:{firstInstallmentAmount:m.createElement(Oe,{value:oe(l[0].total_amount),style:"currency",currency:"EUR"}),numberOfRemainingInstallments:a-1,othersInstallmentAmount:m.createElement(Oe,{value:oe(l[1].total_amount),style:"currency",currency:"EUR"})}}),Jt(e))}}else throw Error(`No payment plan provided for payment in ${a} installments. Please contact us if you see this error.`);return m.createElement("p",null,m.createElement(L,{id:"payment-plan-strings.default-message",defaultMessage:"Payez en plusieurs fois avec Alma"}))},Gi=(e,t)=>e.installments_count===1&&e.deferred_days===0&&e.deferred_months===0?t.formatMessage({id:"payment-plan-strings.pay.now.button",defaultMessage:"Payer maintenant"}):e.installments_count===1&&(e.deferred_days>0||e.deferred_months>0)?t.formatMessage({id:"payment-plan-strings.pay.deferred.button",defaultMessage:"Payer en différé : {deferredTime}"},{deferredTime:e.deferred_months>0?t.formatMessage({id:"payment-plan-strings.deferred.months",defaultMessage:"{months, number} {months, plural, one {mois} other {mois}}"},{months:e.deferred_months}):t.formatMessage({id:"payment-plan-strings.deferred.days",defaultMessage:"{days, number} {days, plural, one {jour} other {jours}}"},{days:e.deferred_days})}):`${e.installments_count}x`,ia={buttons:"_buttons_1dtt2_1",active:"_active_1dtt2_54",textButton:"_textButton_1dtt2_60"},hc=({eligibilityPlans:e,currentPlanIndex:t,setCurrentPlanIndex:n,id:a})=>{const r=ye(),i=De([]),o=De(!1);Y(()=>{i.current=i.current.slice(0,e.length)},[e.length]),Y(()=>{var l;o.current&&i.current[t]&&((l=i.current[t])==null||l.focus(),o.current=!1)},[t]);const s=l=>{l>=0&&l<e.length&&(o.current=!0,n(l))};return m.createElement("div",null,m.createElement("h2",{id:"payment-plans-title",className:"sr-only"},m.createElement(L,{id:"accessibility.payment-plans-title",defaultMessage:"Options de paiement disponibles"})),m.createElement("div",{id:a,className:H(ia.buttons,Q.eligibilityOptions),role:"group","aria-labelledby":"payment-plans-title"},e.map((l,u)=>m.createElement("button",{type:"button",key:`p${l.installments_count}x-d+${l.deferred_days}-m+${l.deferred_months}`,className:H({[H(ia.active,Q.activeOption)]:u===t}),onClick:()=>n(u),onKeyDown:f=>{f.key==="ArrowLeft"?(f.preventDefault(),s(u-1)):f.key==="ArrowRight"?(f.preventDefault(),s(u+1)):f.key==="Home"?(f.preventDefault(),s(0)):f.key==="End"&&(f.preventDefault(),s(e.length-1))},"aria-pressed":u===t,"aria-describedby":"payment-info","aria-current":u===t?"true":void 0,"aria-label":r.formatMessage({id:"accessibility.payment-plan-button.aria-label",defaultMessage:"Sélectionner le plan de paiement {planName}"},{planName:dc(l,r)}),ref:f=>{i.current[u]=f}},m.createElement("span",{className:ia.textButton},$i(l))))))},Rt={installment:"_installment_yfot3_1",date:"_date_yfot3_11",dot:"_dot_yfot3_17",isCurrent:"_isCurrent_yfot3_26",bold:"_bold_yfot3_30"},gc=({installment:e,index:t})=>m.createElement("div",{className:Rt.installment,"data-testid":`installment-${t}`},m.createElement("div",{className:Rt.date},m.createElement("div",{className:H(Rt.dot,{[Rt.isCurrent]:t===0})}),cc(e.due_date*1e3)?m.createElement(L,{id:"installments.today",defaultMessage:"Aujourd'hui",tagName:"strong"}):m.createElement(ri,{value:e.due_date*1e3,day:"numeric",month:"long",year:"numeric"})),m.createElement("div",{className:H({[Rt.bold]:t===0})},m.createElement(Oe,{value:e.total_amount/100,style:"currency",currency:"EUR"}))),Je={container:"_container_gyhf6_1",total:"_total_gyhf6_18",creditInfo:"_creditInfo_gyhf6_25",creditInfoTitle:"_creditInfoTitle_gyhf6_36",fees:"_fees_gyhf6_40",creditCost:"_creditCost_gyhf6_50",creditInfoLegalText:"_creditInfoLegalText_gyhf6_54"},yc=({currentPlan:e})=>{var u,f,c,d,p,g;const t=ye(),n=oe(e.purchase_amount+e.customer_total_cost_amount),a=oe(e.customer_total_cost_amount),r=(e==null?void 0:e.annual_interest_rate)&&e.annual_interest_rate/1e4||0,i=oe(e.customer_total_cost_amount),o=e.installments_count>4,s=oe((c=(f=(u=e.payment_plan)==null?void 0:u[0])==null?void 0:f.total_amount)!=null?c:0),l=oe(e.purchase_amount+e.customer_total_cost_amount-((g=(p=(d=e.payment_plan)==null?void 0:d[0])==null?void 0:p.total_amount)!=null?g:0));return m.createElement(m.Fragment,null,o&&m.createElement("div",{className:Je.creditInfo},m.createElement("span",{className:Je.creditInfoTitle},m.createElement(L,{id:"credit-features.information.title",defaultMessage:"Un crédit vous engage et doit être remboursé."})),m.createElement("br",null),m.createElement(L,{id:"credit-features.information",defaultMessage:"Vérifiez vos capacités de remboursement avant de vous engager."})),m.createElement("div",{className:H(Je.container,Q.summary),"data-testid":"modal-summary"},m.createElement("p",{className:H(Je.total,Q.scheduleTotal)},m.createElement(L,{tagName:"span",id:"installments.total-amount",defaultMessage:"Total"}),m.createElement(Oe,{value:n||0,style:"currency",currency:"EUR"})),m.createElement("p",{className:H(Je.fees,Q.scheduleCredit)},o?m.createElement(m.Fragment,null,m.createElement(L,{id:"credit-features.total-credit-cost",defaultMessage:"Dont coût du crédit"}),m.createElement("span",{className:Je.creditCost},m.createElement(L,{id:"credit-features.credit-cost-display",defaultMessage:"{creditCost} (TAEG {taegPercentage})",values:{creditCost:t.formatNumber(a,{style:"currency",currency:"EUR"}),taegPercentage:t.formatNumber(r,{style:"percent",maximumFractionDigits:2})}}))):m.createElement(m.Fragment,null,m.createElement(L,{id:"installments.total-fees",defaultMessage:"Dont frais (TTC)",tagName:"span"}),m.createElement("span",null,m.createElement(Oe,{value:i,style:"currency",currency:"EUR"})))),o&&m.createElement("div",{className:Je.creditInfoLegalText},m.createElement(L,{id:"credit-features.legal-text",defaultMessage:"Crédit d'un montant de {totalWithoutFirstInstallment} au taux débiteur fixe de {taegPercentage} sur une durée de {installmeentsCountWithoutFirst} mois. Permettant, en complément d'un acompte de {firstInstallmentAmount}, de financer un achat d'un montant de {productPriceWithoutCreditCost}. Sous réserve d'étude et d'acceptation par Alma. Délai légal de rétractation de 14 jours. Simulation présentée par Alma, immatriculée au RCS Nanterre sous le numéro 839 100 575, établissement de paiement et société de financement agréée par l’ACPR sous le n° 17408 (numéro CIB / Code banque).",values:{totalWithoutFirstInstallment:t.formatNumber(l,{style:"currency",currency:"EUR"}),taegPercentage:t.formatNumber(r,{style:"percent",maximumFractionDigits:2}),installmeentsCountWithoutFirst:e.installments_count-1,firstInstallmentAmount:t.formatNumber(s,{style:"currency",currency:"EUR"}),productPriceWithoutCreditCost:t.formatNumber(n-a,{style:"currency",currency:"EUR"})}}))))},oa={scheduleContainer:"_scheduleContainer_j5a4f_1",schedule:"_schedule_j5a4f_1",scheduleItem:"_scheduleItem_j5a4f_16"},_c=({currentPlan:e,id:t})=>m.createElement("div",{id:t,className:oa.scheduleContainer,role:"region","aria-labelledby":"payment-schedule-title","aria-describedby":"payment-schedule-description",tabIndex:-1},m.createElement("h2",{id:"payment-schedule-title",className:"sr-only"},m.createElement(L,{id:"accessibility.payment-schedule-title",defaultMessage:"Calendrier de paiement"})),m.createElement("div",{id:"payment-schedule-description"},m.createElement("ul",{className:H(oa.schedule,Q.scheduleDetails),"data-testid":"modal-installments-element"},((e==null?void 0:e.payment_plan)||[]).map((n,a)=>m.createElement("li",{key:n.due_date*1e3,className:oa.scheduleItem},m.createElement(gc,{installment:n,index:a})))),m.createElement(yc,{currentPlan:e}))),sa=a=>{var r=a,{className:e,color:t="#fa5022"}=r,n=tn(r,["className","color"]);return m.createElement("svg",ke({width:"42",height:"24",viewBox:"0 0 352 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"aria-hidden":"true",focusable:"false"},n),m.createElement("path",{d:"M333.24 28.3462V38.4459C327.504 31.1018 319.176 26.5132 309.288 26.5132C290.208 26.5132 275.424 43.5497 275.424 64.5757C275.424 85.6018 290.208 102.638 309.288 102.638C319.872 102.638 328.668 97.3908 334.416 89.1241V100.817H352.668V28.3462H333.24ZM314.028 84.4876C303.42 84.4876 294.828 75.574 294.828 64.5757C294.828 53.5775 303.42 44.6639 314.028 44.6639C324.636 44.6639 333.228 53.5775 333.228 64.5757C333.228 75.574 324.636 84.4876 314.028 84.4876ZM109.5 8.23073H128.916V100.805H109.5V8.23073ZM151.248 59.7356C151.248 39.8117 163.5 26.5252 180.468 26.5252C191.004 26.5252 199.332 31.1976 204.348 39.1648C209.376 31.1976 217.692 26.5252 228.228 26.5252C245.196 26.5252 257.448 39.8117 257.448 59.7356V100.817H238.032V57.639C238.032 49.8635 232.872 44.7957 226.044 44.7957C219.216 44.7957 214.056 49.8755 214.056 57.639V100.817H194.64V57.639C194.64 49.8635 189.48 44.7957 182.652 44.7957C175.824 44.7957 170.664 49.8755 170.664 57.639V100.817H151.248V59.7356ZM74.34 29.101C69.744 11.9088 60.0241 6.40967 50.772 6.40967C41.5201 6.40967 31.8 11.9088 27.204 29.101L7.24805 100.829H26.916C30.12 88.8485 39.996 82.1753 50.772 82.1753C61.548 82.1753 71.424 88.8605 74.6281 100.829H94.3081L74.34 29.101ZM50.772 65.4623C44.508 65.4623 38.8321 67.8345 34.6441 71.6803L45.924 29.9397C47.0041 25.9501 48.6001 24.6802 50.784 24.6802C52.9681 24.6802 54.5641 25.9501 55.6441 29.9397L66.912 71.6803C62.724 67.8345 57.036 65.4623 50.772 65.4623Z",fill:t}))},vc=()=>{const e=ye();return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"16",viewBox:"0 0 24 16","aria-label":e.formatMessage({id:"accessibility.amex-card.aria-label",defaultMessage:"Carte American Express acceptée"}),role:"img"},m.createElement("defs",null,m.createElement("linearGradient",{id:"cardamex",x1:"10.914%",x2:"87.432%",y1:"86.279%",y2:"15.035%"},m.createElement("stop",{offset:"0%",stopColor:"#3FA9F5"}),m.createElement("stop",{offset:"100%",stopColor:"#0071BC"}))),m.createElement("g",{fill:"none",fillRule:"evenodd"},m.createElement("path",{fill:"url(#cardamex)",fillRule:"nonzero",d:"M22.559 16H1.379C.627 16 0 15.392 0 14.662V1.338C0 .608.627 0 1.379 0H22.62C23.373 0 24 .608 24 1.338v13.324c-.063.73-.627 1.338-1.441 1.338z"}),m.createElement("g",{fill:"#FFF"},m.createElement("path",{d:"M10.115 8.711L8.889 6.044H7.295v3.852L5.517 6.044H4.17l-1.778 4.03h1.103l.368-.889h2.023l.368.89h2.084V7.11l1.349 2.963h.92l1.348-2.904v2.904h.98v-4.03H11.28l-1.165 2.667zm-5.272-.474H4.23l.613-1.422v.06l.613 1.362h-.613z"}),m.createElement("path",{fillRule:"nonzero",d:"M19.372 7.94l.735-.77 1.042-1.185h-1.287L18.697 7.23l-1.164-1.245h-3.985v3.97h3.923l1.226-1.303 1.165 1.304h1.287L20.107 8.71l-.735-.77zM16.92 9.186h-2.33v-.77h2.268v-.77H14.59v-.712h2.33L18.084 8 16.92 9.185z"}))))},bc=()=>{const e=ye();return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"16",viewBox:"0 0 24 16","aria-label":e.formatMessage({id:"accessibility.cb-card.aria-label",defaultMessage:"Carte Bancaire CB acceptée"}),role:"img"},m.createElement("defs",null,m.createElement("linearGradient",{id:"cardcb",x1:"5.842%",x2:"95.393%",y1:"81.753%",y2:"17.344%"},m.createElement("stop",{offset:"0%",stopColor:"#39B54A"}),m.createElement("stop",{offset:"100%",stopColor:"#0A5296"}))),m.createElement("g",{fill:"none",fillRule:"nonzero"},m.createElement("path",{fill:"url(#cardcb)",d:"M22.621 16H1.38C.627 16 0 15.392 0 14.662V1.338C0 .608.627 0 1.379 0H22.62C23.373 0 24 .608 24 1.338v13.324c-.063.73-.627 1.338-1.379 1.338z"}),m.createElement("g",{fill:"#FFF"},m.createElement("path",{d:"M19.094 4.03h-6.437V8h6.498c1.165 0 2.084-.889 2.084-2.015-.06-1.066-.98-1.955-2.145-1.955zM19.094 8.593h-6.437v3.97h6.498c1.165 0 2.084-.889 2.084-2.015-.06-1.067-.98-1.955-2.145-1.955zM7.017 8.06h4.966c-.245-2.371-2.391-4.267-4.966-4.267-2.758 0-5.027 2.074-5.027 4.681s2.269 4.682 5.027 4.682c2.698 0 4.904-2.015 5.027-4.563H7.017v-.534z"}))))},Ec=()=>{const e=ye();return m.createElement("svg",{width:"24",height:"16",viewBox:"0 0 24 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-label":e.formatMessage({id:"accessibility.mastercard.aria-label",defaultMessage:"Carte Mastercard acceptée"}),role:"img"},m.createElement("g",{id:"Parcours-1C-B",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},m.createElement("g",{id:"mobile-1C-Paiement-V1",transform:"translate(-269.000000, -313.000000)"},m.createElement("g",{id:"mastercard",transform:"translate(269.000000, 313.000000)"},m.createElement("rect",{id:"Rectangle",fill:"#FFFFFF",x:"0",y:"0",width:"24",height:"16",rx:"1"}),m.createElement("g",{id:"Group-6",transform:"translate(4.000000, 3.000000)"},m.createElement("circle",{id:"Oval-4-Copy",fill:"#EA001B",cx:"5.05263158",cy:"5.05263158",r:"5.05263158"}),m.createElement("circle",{id:"Oval-4",fillOpacity:"0.25",fill:"#F79F1A",cx:"10.9473684",cy:"5.05263158",r:"5.05263158"}),m.createElement("circle",{id:"Oval-4-Copy-2",fillOpacity:"0.6",fill:"#F79F1A",cx:"10.9473684",cy:"5.05263158",r:"5.05263158"}),m.createElement("circle",{id:"Oval-4-Copy-3",fillOpacity:"0.3",fill:"#EA001B",cx:"5.05263158",cy:"5.05263158",r:"5.05263158"}))))))},xc=()=>{const e=ye();return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"16",viewBox:"0 0 24 16","aria-label":e.formatMessage({id:"accessibility.visa-card.aria-label",defaultMessage:"Carte Visa acceptée"}),role:"img"},m.createElement("g",{fill:"none",fillRule:"nonzero"},m.createElement("path",{fill:"#FCFCFC",d:"M22.684 16H1.38C.627 16 0 15.39 0 14.656V1.344C0 .61.627 0 1.379 0H22.62C23.373 0 24 .61 24 1.344v13.374c0 .671-.564 1.282-1.316 1.282z"}),m.createElement("path",{fill:"#005098",d:"M8.889 10.726l.948-5.393h1.482l-.949 5.393zM15.704 5.452a3.658 3.658 0 0 0-1.304-.237c-1.481 0-2.489.71-2.489 1.778 0 .77.711 1.185 1.304 1.481.592.237.77.415.77.652 0 .355-.474.533-.889.533-.592 0-.889-.059-1.363-.296l-.177-.06-.178 1.186c.355.178 1.007.296 1.659.296 1.54 0 2.548-.71 2.548-1.837 0-.592-.415-1.067-1.244-1.481-.534-.237-.83-.415-.83-.652 0-.237.237-.474.83-.474.474 0 .83.118 1.126.178l.118.059.119-1.126M19.496 5.333H18.37c-.355 0-.592.119-.77.474l-2.193 4.919h1.541s.237-.652.296-.83h1.897c.059.178.178.83.178.83h1.362l-1.185-5.393zM17.66 8.77l.593-1.481s.118-.296.178-.533l.118.474s.296 1.303.356 1.54h-1.245zM7.644 5.333L6.222 9.007l-.178-.77C5.748 7.348 4.92 6.459 4.03 5.985l1.303 4.682h1.541l2.311-5.393h-1.54"}),m.createElement("path",{fill:"#F6A500",d:"M4.919 5.333h-2.37v.119c1.836.474 3.08 1.54 3.555 2.844L5.57 5.807c-.118-.414-.355-.474-.651-.474"}),m.createElement("path",{fill:"#0A5296",d:"M23.937 3.23H0V1.316C0 .598.627 0 1.379 0H22.62C23.373 0 24 .598 24 1.316V3.23h-.063z"}),m.createElement("path",{fill:"#F4A428",d:"M.063 13H24v1.8c0 .655-.625 1.2-1.375 1.2H1.375C.625 16 0 15.455 0 14.8V13h.063z"})))},zi={cardContainer:"_cardContainer_5dhmv_1"},Wi=({cards:e})=>{const t=Array.from(new Set(e));return m.createElement("div",{"data-testid":"card-logos",className:H(zi.cardContainer,Q.cardContainer)},t.map(n=>m.createElement("div",{key:n,className:zi.card,"data-testid":`card-logo-${n}`},n==="cb"&&m.createElement(bc,null),n==="amex"&&m.createElement(vc,null),n==="mastercard"&&m.createElement(Ec,null),n==="visa"&&m.createElement(xc,null))))},$e={list:"_list_1ep12_1",listItem:"_listItem_1ep12_16",bullet:"_bullet_1ep12_23"},ct=e=>m.createElement("strong",null,e),ji=({isCurrentPlanP1X:e,id:t})=>m.createElement("div",{id:t,className:H($e.list,Q.info),"data-testid":"modal-info-element",role:"region","aria-labelledby":"payment-info-title","aria-describedby":"payment-info-description",tabIndex:-1},m.createElement("h2",{id:"payment-info-title",className:"sr-only"},m.createElement(L,{id:"eligibility-modal.info-title",defaultMessage:"Comment procéder au paiement"}))," ",m.createElement("ol",{className:$e.listContainer,id:"payment-info-description"},m.createElement("li",{className:$e.listItem},m.createElement("div",{className:H($e.bullet,Q.bullet)},"1"),m.createElement("div",{className:Q.infoMessage},e?m.createElement(L,{id:"eligibility-modal.p1x-bullet-1",defaultMessage:"Choisissez <strong>Alma - Payer maintenant</strong> au moment du paiement.",values:{strong:ct}}):m.createElement(L,{id:"eligibility-modal.bullet-1",defaultMessage:"Choisissez <strong>Alma</strong> au moment du paiement.",values:{strong:ct}}))),m.createElement("li",{className:$e.listItem},m.createElement("div",{className:H($e.bullet,Q.bullet)},"2"),m.createElement("div",{className:Q.infoMessage},e?m.createElement(L,{id:"eligibility-modal.p1x-bullet-2",defaultMessage:"Renseignez les informations de votre <strong>carte bancaire.</strong>",values:{strong:ct}}):m.createElement(L,{id:"eligibility-modal.bullet-2",defaultMessage:"Laissez-vous guider et validez votre paiement en <strong>2 minutes.</strong>",values:{strong:ct}}))),m.createElement("li",{className:$e.listItem},m.createElement("div",{className:H($e.bullet,Q.bullet)},"3"),m.createElement("div",{className:Q.infoMessage},e?m.createElement(L,{id:"eligibility-modal.p1x-bullet-3",defaultMessage:"<strong>La validation </strong> de votre paiement est instantanée !",values:{strong:ct}}):m.createElement(L,{id:"eligibility-modal.bullet-3",defaultMessage:"<strong>Gardez le contrôle</strong> en avançant ou reculant vos échéances à votre rythme.",values:{strong:ct}}))))),Cc={title:"_title_1j2j8_1"},Vi=({isSomePlanDeferred:e,isCurrentPlanP1X:t})=>m.createElement("h2",{id:"modal-title",className:H(Cc.title,Q.title),"data-testid":"modal-title-element"},e&&m.createElement(L,{id:"eligibility-modal.title-deferred-plan",defaultMessage:"Payez en plusieurs fois ou plus tard par carte bancaire avec Alma."}),!e&&t&&m.createElement(L,{id:"eligibility-modal.title-pay-now",defaultMessage:"Payez comptant par carte bancaire avec Alma."}),!e&&!t&&m.createElement(L,{id:"eligibility-modal.title-normal",defaultMessage:"Payez en plusieurs fois par carte bancaire avec Alma."})),Lt={container:"_container_lop95_1",block:"_block_lop95_7",left:"_left_lop95_14",logo:"_logo_lop95_20"},Sc=({children:e,isSomePlanDeferred:t,cards:n,isCurrentPlanP1X:a})=>m.createElement("div",{className:H(Lt.container,Q.desktopModal),"data-testid":"modal-container",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title"},m.createElement("aside",{className:H([Lt.block,Lt.left,Q.leftSide])},m.createElement(Vi,{isSomePlanDeferred:t,isCurrentPlanP1X:a}),m.createElement(ji,{id:"payment-info",isCurrentPlanP1X:a}),n&&m.createElement(Wi,{cards:n}),m.createElement(sa,{className:Lt.logo,width:"75"})),m.createElement("div",{className:H(Lt.block,Q.rightSide)},e)),Yt={noEligibility:"_noEligibility_1pcwf_1",loader:"_loader_1pcwf_9",scheduleArea:"_scheduleArea_1pcwf_16",verticalLine:"_verticalLine_1pcwf_20"},qi={container:"_container_1ca7c_1",logo:"_logo_1ca7c_6"},Ac=({children:e,isSomePlanDeferred:t,cards:n,isCurrentPlanP1X:a})=>m.createElement("div",{className:H(qi.container,Q.mobileModal),"data-testid":"modal-container",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title"},m.createElement(Vi,{isSomePlanDeferred:t,isCurrentPlanP1X:a}),e,m.createElement(ji,{id:"payment-info",isCurrentPlanP1X:a}),n&&m.createElement(Wi,{cards:n}),m.createElement(sa,{className:qi.logo,width:"75"})),Zi=({initialPlanIndex:e,onClose:t,eligibilityPlans:n,status:a,cards:r})=>{const[i,o]=ne(e||0),l=Vl({minWidth:ft})?Sc:Ac,u=n.filter(g=>g.eligible),f=u[i],c=ye(),d=n.some(g=>g.deferred_days>0||g.deferred_months>0),p=[{href:"#payment-plans",labelId:"skip-links.payment-plans",defaultMessage:c.formatMessage({id:"skip-links.payment-plans",defaultMessage:"Aller aux options de paiement"})},{href:"#payment-info",labelId:"skip-links.payment-info",defaultMessage:c.formatMessage({id:"skip-links.payment-info",defaultMessage:"Aller aux informations de paiement"})},{href:"#payment-schedule",labelId:"skip-links.payment-schedule",defaultMessage:c.formatMessage({id:"skip-links.payment-schedule",defaultMessage:"Aller au calendrier de paiement"})}];return m.createElement(ac,{onClose:t,ariaHideApp:!1,scrollable:!0,isOpen:!0,aria:{labelledby:"modal-title",describedby:"modal-info-element"}},m.createElement(rc,{skipLinks:p}),m.createElement(l,{isSomePlanDeferred:d,cards:r,isCurrentPlanP1X:Me(f)},a===P.PENDING&&m.createElement("div",{className:Yt.loader,role:"status","aria-live":"polite"},m.createElement(Xl,null)),a===P.SUCCESS&&u.length===0&&m.createElement("div",{className:Yt.noEligibility,role:"alert"},m.createElement(L,{id:"eligibility-modal.no-eligibility",defaultMessage:"Oups, il semblerait que la simulation n'ait pas fonctionné."})),a===P.SUCCESS&&u.length>=1&&m.createElement(m.Fragment,null,m.createElement("section",{"aria-labelledby":"payment-plans-title"},m.createElement(hc,{id:"payment-plans",eligibilityPlans:u,currentPlanIndex:i,setCurrentPlanIndex:o})),m.createElement("section",{className:Yt.scheduleArea,"aria-labelledby":"payment-schedule-title"},m.createElement("div",{className:Yt.verticalLine}),m.createElement(_c,{id:"payment-schedule",currentPlan:f})))))},Tc=({purchaseAmount:e,apiData:t,configPlans:n,customerBillingCountry:a,customerShippingCountry:r,onClose:i,cards:o})=>{const[s,l]=oi(e,t,n,a,r);return m.createElement(Zi,{initialPlanIndex:0,onClose:i,eligibilityPlans:s,status:l,cards:o})},la={loadingIndicator:"_loadingIndicator_n68kv_1",line1:"_line1_n68kv_8",line2:"_line2_n68kv_15"},Ic=({className:e})=>m.createElement("div",{className:H(la.loadingIndicator,e),"data-testid":"loader"},m.createElement("div",{className:la.line1}),m.createElement("div",{className:la.line2})),Xi=()=>{const[e,t]=ne(""),n=De(null),a=_t((i,o=1e3)=>{n.current&&clearTimeout(n.current),t(i),n.current=setTimeout(()=>{t(""),n.current=null},o)},[]),r=_t(()=>{n.current&&(clearTimeout(n.current),n.current=null),t("")},[]);return Y(()=>()=>{n.current&&clearTimeout(n.current)},[]),{announceText:e,announce:a,clearAnnouncement:r}},Mc=({status:e,hasUserInteracted:t,eligiblePlansCount:n,transitionDelay:a})=>{const r=ye(),{announce:i}=Xi();Y(()=>{if(e===P.SUCCESS&&!t&&n>1&&a!==-1){const s=r.formatMessage({id:"accessibility.animation-control-instructions",defaultMessage:"Animation automatique des plans de paiement active. Survolez ou naviguez avec les flèches pour arrêter l'animation."}),l=setTimeout(()=>{i(s,2e3)},1500);return()=>clearTimeout(l)}},[e,t,n,r,i,a])},wc=(e,t)=>{const[n,a]=ne(0),[r,i]=ne(!0),[o,s]=ne(1),l=typeof window!="undefined"&&window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,u=t<0?-1:Math.max(t,1e3);return Y(()=>{let f,c=!0;if(!(u===-1||l))return e.length!==0&&(!e.includes(n)&&r&&a(e[0]),o===e.length+1&&i(!1),f=setTimeout(()=>{r&&c&&(s(d=>d+1),a(e[e.includes(n)?(e.indexOf(n)+1)%e.length:0]))},u)),()=>{c=!1,clearTimeout(f)}},[e,n,u,r,l,o]),{current:n,onHover:f=>{a(f),i(!1)},onLeave:()=>{i(!0)}}},Nc=({suggestedPaymentPlan:e,eligibilityPlans:t})=>{const n=Array.isArray(e)?e:[e];let a=0;return n.some(r=>{const i=t.findIndex(o=>o.installments_count===r&&o.eligible&&!o.deferred_days&&!o.deferred_months);return i!==-1?(a=i,!0):!1}),a},Ye="alma-payment-plans",Ge={container:`${Ye}-container`,eligibilityLine:`${Ye}-eligibility-line`,eligibilityOptions:`${Ye}-eligibility-options`,notEligibleOption:`${Ye}-not-eligible-option`,paymentInfo:`${Ye}-payment-info`,activeOption:`${Ye}-active-option`,knowMoreAction:`${Ye}-know-more-action`},ee={widgetContainer:"_widgetContainer_ttyvk_1",primaryContainer:"_primaryContainer_ttyvk_13",paymentPlans:"_paymentPlans_ttyvk_19",plan:"_plan_ttyvk_28",planButton:"_planButton_ttyvk_44",monochrome:"_monochrome_ttyvk_69",notEligible:"_notEligible_ttyvk_75",active:"_active_ttyvk_89",hideBorder:"_hideBorder_ttyvk_104",infoContainer:"_infoContainer_ttyvk_108",info:"_info_ttyvk_108",announceText:"_announceText_ttyvk_123",pending:"_pending_ttyvk_144",clickable:"_clickable_ttyvk_148",knowMore:"_knowMore_ttyvk_156"},Oc=5500,Pc=({apiData:e,configPlans:t,hideIfNotEligible:n,monochrome:a,purchaseAmount:r,suggestedPaymentPlan:i,cards:o,customerBillingCountry:s,customerShippingCountry:l,transitionDelay:u,hideBorder:f=!1,onModalClose:c})=>{const d=ye(),[p,g]=oi(r,e,t,s,l),v=Be(()=>p.filter(O=>O.eligible),[p]),b=Nc({eligibilityPlans:p,suggestedPaymentPlan:i!=null?i:0}),_=i!==void 0,[x,E]=ne(!1),{announceText:N,announce:y}=Xi(),w=()=>E(!0),V=O=>{E(!1),c==null||c(O)},[ve,U]=ne(!1),re=Be(()=>p.reduce((O,$,J)=>$.eligible?[...O,J]:O,[]),[p]),ae=Be(()=>_&&!u?-1:u!=null?u:Oc,[u,_]),{current:W,onHover:He,onLeave:I}=wc(re,ae),A=De([]);Y(()=>{A.current=A.current.slice(0,p.length)},[p.length]),Y(()=>{if(p[W]&&g===P.SUCCESS){const O=p[W],$=Gi(O,d),J=d.formatMessage({id:"accessibility.plan-selection-changed",defaultMessage:"Plan sélectionné : {planDescription}"},{planDescription:$});y(J,1e3)}},[W,d,g,y]),Y(()=>{g===P.SUCCESS&&_&&(He(b),I())},[g]),Mc({status:g,hasUserInteracted:ve,eligiblePlansCount:v.length,transitionDelay:u});const q=O=>{U(!0),He(O)},h=()=>{ve||I()},S=(O,$)=>{var Qt;const J=re.indexOf($);if(J===-1)return;let _e;if(O==="next"){if(_e=J+1,_e>=re.length)return}else if(_e=J-1,_e<0)return;const ie=re[_e];U(!0),He(ie),(Qt=A.current[ie])==null||Qt.focus()},te=O=>{var J;const $=O==="first"?re[0]:re[re.length-1];U(!0),He($),(J=A.current[$])==null||J.focus()},ue=O=>{const $=re.findIndex(J=>J===O);return $===-1?0:$};if(g===P.PENDING)return m.createElement("div",{className:H(ee.widgetContainer,ee.pending)},m.createElement(Ic,null));if(n&&v.length===0||p.length===0||g===P.FAILED)return null;const K=O=>{O.preventDefault(),v.length>0&&w()};return m.createElement(m.Fragment,null,m.createElement("main",{role:"main","aria-label":d.formatMessage({id:"accessibility.payment-widget.main.aria-label",defaultMessage:"Sélection des options de paiement Alma"}),className:H(ee.widgetContainer,{[ee.hideBorder]:f,[ee.monochrome]:a},Ge.container),"data-testid":"widget-container"},m.createElement("section",{"aria-labelledby":"payment-plans-title",className:H(ee.primaryContainer,Ge.eligibilityLine)},m.createElement("h2",{id:"payment-plans-title",className:"sr-only"},d.formatMessage({id:"accessibility.payment-plans.section-title",defaultMessage:"Options de paiement disponibles"})),m.createElement("button",{type:"button",onClick:K,onKeyDown:O=>{(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),K(O))},className:H(ee.knowMore,ee.clickable,{[ee.monochrome]:a},Ge.knowMoreAction),"aria-label":d.formatMessage({id:"accessibility.payment-widget.open-button.aria-label",defaultMessage:"Ouvrir les options de paiement Alma pour en savoir plus"}),"aria-haspopup":"dialog","aria-describedby":"payment-info-text"},m.createElement(sa,{"data-testid":"Alma-Logo",className:ee.logo,color:a?"var(--off-black)":void 0})),m.createElement("div",{className:H(ee.paymentPlans,Ge.eligibilityOptions),role:"listbox","aria-label":d.formatMessage({id:"accessibility.payment-options.listbox.aria-label",defaultMessage:"Options de paiement disponibles"})},p.map((O,$)=>{const J=$===W,_e=O.eligible;return m.createElement("button",{type:"button",key:`p${O.installments_count}x-d+${O.deferred_days}-m+${O.deferred_months}`,onMouseEnter:()=>q($),onTouchStart:()=>q($),onMouseLeave:h,onBlur:h,onTouchEnd:h,onFocus:_e?()=>q($):void 0,onKeyDown:ie=>{_e&&(ie.key==="ArrowLeft"?(ie.preventDefault(),S("prev",$)):ie.key==="ArrowRight"?(ie.preventDefault(),S("next",$)):ie.key==="Home"?(ie.preventDefault(),te("first")):ie.key==="End"&&(ie.preventDefault(),te("last")))},onClick:ie=>{ie.stopPropagation(),_e&&(He($),v.length>0&&w())},className:H(ee.plan,ee.planButton,{[H(ee.active,Ge.activeOption)]:J,[ee.monochrome]:a&&J,[H(ee.notEligible,Ge.notEligibleOption)]:!_e}),role:"option","aria-selected":J,"aria-describedby":"payment-info-text","aria-label":d.formatMessage({id:"accessibility.payment-plan.option.aria-label",defaultMessage:"Option de paiement {planDescription}"},{planDescription:Gi(O,d)}),"aria-disabled":!_e,tabIndex:_e?0:-1,ref:ie=>{A.current[$]=ie}},$i(O))}))),m.createElement("aside",{"aria-labelledby":"payment-info-title",className:ee.infoContainer},m.createElement("h3",{id:"payment-info-title",className:"sr-only"},d.formatMessage({id:"accessibility.payment-info.section-title",defaultMessage:"Informations sur le plan de paiement sélectionné"})),m.createElement("div",{className:H(ee.info,{[H(ee.notEligible,Ge.notEligibleOption)]:p[W]&&!p[W].eligible},Ge.paymentInfo),id:"payment-info-text"},p.length!==0&&pc(p[W])))),x&&m.createElement(Zi,{initialPlanIndex:ue(W),onClose:V,eligibilityPlans:v,status:g,cards:o}),m.createElement("div",{role:"alert","aria-live":"assertive",className:ee.announceText},N))},mt=new Map,Rc=(e,t,n)=>{var r;const a=document.querySelector(n.container);if(a){const i=mt.get(a);i&&(i.unmount(),mt.delete(a))}if(t===G.PaymentPlans){const{purchaseAmount:i,plans:o,transitionDelay:s,hideIfNotEligible:l,hideBorder:u=!1,monochrome:f=!0,suggestedPaymentPlan:c,customerBillingCountry:d,customerShippingCountry:p,locale:g=X.en,cards:v,onModalClose:b}=n;if(a){const _=ur(a);_.render(m.createElement(ii,{locale:g},m.createElement(Pc,{apiData:e,configPlans:o,hideIfNotEligible:l,monochrome:f,purchaseAmount:i,suggestedPaymentPlan:c,cards:v,customerBillingCountry:d,customerShippingCountry:p,transitionDelay:s,hideBorder:u,onModalClose:b}))),mt.set(a,_)}}if(t===G.Modal){const{clickableSelector:i,purchaseAmount:o,plans:s,locale:l=X.en,customerBillingCountry:u,customerShippingCountry:f,cards:c,onClose:d}=n,p=v=>{if(!a)return;const b=mt.get(a);b&&(b.unmount(),mt.delete(a)),d==null||d(v)},g=()=>{if(a){const v=ur(a);v.render(m.createElement(ii,{locale:l},m.createElement(Tc,{purchaseAmount:o,apiData:e,configPlans:s,customerBillingCountry:u,customerShippingCountry:f,onClose:p,cards:c}))),mt.set(a,v)}};return i&&((r=document.querySelector(i))==null||r.addEventListener("click",g,!1)),{open:g,close:p}}},Lc=e=>({add:(t,n)=>Rc(e,t,n)});var Ki=(e=>(e.LIVE="https://api.getalma.eu",e.TEST="https://api.sandbox.getalma.eu",e))(Ki||{});D.Widgets=void 0,(e=>{function t(n,a){return Lc({domain:a,merchantId:n})}e.initialize=t,e.PaymentPlans=G.PaymentPlans,e.Modal=G.Modal})(D.Widgets||(D.Widgets={})),D.Utils=void 0,(e=>{e.priceToCents=Ht,e.priceFromCents=oe,e.formatCents=nn})(D.Utils||(D.Utils={})),D.ApiMode=Ki,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})});
|
|
56
56
|
//# sourceMappingURL=widgets.umd.js.map
|