@alma/widgets 4.0.3 → 4.0.5
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/hooks/useFetchEligibility.test.d.ts +1 -0
- package/dist/types/src/hooks/useSessionStorage.d.ts +2 -0
- package/dist/types/src/intl/messages/messages.es.json.d.ts +2 -2
- package/dist/types/src/intl/messages/messages.nl.json.d.ts +1 -1
- package/dist/types/src/types.d.ts +4 -0
- package/dist/types/src/utils/fetch.d.ts +2 -2
- package/dist/widgets-wc.umd.js +13 -13
- package/dist/widgets-wc.umd.js.map +1 -0
- package/dist/widgets.js +1207 -1197
- package/dist/widgets.js.map +1 -1
- package/dist/widgets.umd.js +13 -13
- package/dist/widgets.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/widgets-wc.umd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(H,F){typeof exports=="object"&&typeof module!="undefined"?F(exports):typeof define=="function"&&define.amd?define(["exports"],F):(H=typeof globalThis!="undefined"?globalThis:H||self,F(H.Alma={}))})(this,function(H){"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=(H,F,L)=>F in H?Nc(H,F,{enumerable:!0,configurable:!0,writable:!0,value:L}):H[F]=L,Re=(H,F)=>{for(var L in F||(F={}))Xa.call(F,L)&&qa(H,L,F[L]);if(Zt)for(var L of Zt(F))Za.call(F,L)&&qa(H,L,F[L]);return H},Ka=(H,F)=>Rc(H,wc(F));var Kt=(H,F)=>{var L={};for(var V in H)Xa.call(H,V)&&F.indexOf(V)<0&&(L[V]=H[V]);if(H!=null&&Zt)for(var V of Zt(H))F.indexOf(V)<0&&Za.call(H,V)&&(L[V]=H[V]);return L};var Ya=(H,F,L)=>new Promise((V,Ot)=>{var Y=Ae=>{try{it(L.next(Ae))}catch(Ie){Ot(Ie)}},Yt=Ae=>{try{it(L.throw(Ae))}catch(Ie){Ot(Ie)}},it=Ae=>Ae.done?V(Ae.value):Promise.resolve(Ae.value).then(Y,Yt);it((L=L.apply(H,F)).next())});var F=(e=>(e.PaymentPlans="PaymentPlans",e.Modal="Modal",e))(F||{}),L=(e=>(e.PENDING="pending",e.SUCCESS="success",e.FAILED="failed",e))(L||{}),V=(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))(V||{});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,Ae=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 c=0,m=0;const u=function(){if(!c)throw TypeError("Illegal constructor")};u.prototype.toString=u.prototype.toLocaleString=function(){return this.value},u.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,I=T.length,g=v;E!==I;++E){if(this[E]===v)continue e;g+=` ${this[E]}`}this[I]=v,T.length+=1,T.value=g}m=1,y.className=T.value,m=0},u.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,I=T.length,g="",R=0;E!==I;++E)R?this[E-1]=this[E]:this[E]!==v?g+=`${this[E]} `:R=1;R&&(delete this[I],T.length-=1,T.value=g)}m=1,y.className=T.value,m=0},o.DOMTokenList=u;function d(){const _=o.event,b=_.propertyName;if(!m&&(b==="className"||b==="classList"&&!l)){const E=_.srcElement,I=E[" uCLp"],g=`${E[b]}`,R=g.trim().split(t),Z=E[b==="classList"?" uCL":"classList"],ee=I.length;e:for(var v=0,y=I.length=R.length,T=0;v!==y;++v){for(let G=0;G!==v;++G)if(R[G]===R[v]){T++;continue e}Z[v-T]=R[v]}for(let G=y-T;G<ee;++G)delete Z[G];if(b!=="classList")return;m=1,E.classList=Z,E.className=g,m=0,Z.length=R.length-T}}function h(_){if(!_||!("innerText"in _))throw TypeError("Illegal invocation");_.detachEvent("onpropertychange",d),c=1;try{var b=function(){};b.prototype=new u}finally{c=0}const v=b.prototype,y=new b;e:for(var T=_.className.trim().split(t),E=0,I=T.length,g=0;E!==I;++E){for(let R=0;R!==E;++R)if(T[R]===T[E]){g++;continue e}this[E-g]=T[E]}v.length=I-g,v.value=_.className,v[" uCL"]=_,l?(l(_,"classList",{enumerable:1,get(){return y},configurable:0,set(R){m=1,_.className=v.value=R+="",m=0;const Z=R.trim().split(t),ee=v.length;e:for(var G=0,q=v.length=Z.length,ge=0;G!==q;++G){for(let ue=0;ue!==G;++ue)if(Z[ue]===Z[G]){ge++;continue e}y[G-ge]=Z[G]}for(let ue=q-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,c=arguments[1];s!==l;++s)i.call(c,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 Ie,N,ir,Pe,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 Ce(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?Ie.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&&N.vnode!=null&&N.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)&&Pe.push(e)&&!Rt.__r++||sr!==N.debounceRendering)&&((sr=N.debounceRendering)||lr)(Rt)}function Rt(){var e,t,n,r,o,a,i,s;for(Pe.sort(Jt);e=Pe.shift();)e.__d&&(t=Pe.length,r=void 0,a=(o=(n=e).__v).__e,i=[],s=[],n.__P&&((r=Ce({},o)).__v=o.__v+1,N.vnode&&N.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)),Pe.length>t&&Pe.sort(Jt));Rt.__r=0}function hr(e,t,n,r,o,a,i,s,l,c,m){var u,d,h,_,b,v=r&&r.__k||cr,y=t.length;for(n.__d=l,Qa(n,t,v),l=n.__d,u=0;u<y;u++)(h=n.__k[u])!=null&&(d=h.__i===-1?st:v[h.__i]||st,h.__i=u,rn(e,h,d,o,a,i,s,l,c,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,c=n.length,m=c,u=0;for(e.__k=[],r=0;r<l;r++)(o=t[r])!=null&&typeof o!="boolean"&&typeof o!="function"?(i=r+u,(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&&u--,typeof o.type!="function"&&(o.__u|=65536)):s!==i&&(s==i-1?u--:s==i+1?u++:(s>i?u--:u++,o.__u|=65536))):o=e.__k[r]=null;if(m)for(r=0;r<c;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(N.event?N.event(t):t)}}}function rn(e,t,n,r,o,a,i,s,l,c){var m,u,d,h,_,b,v,y,T,E,I,g,R,Z,ee,G,q=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),a=[s=t.__e=n.__e]),(m=N.__b)&&m(t);e:if(typeof q=="function")try{if(y=t.props,T="prototype"in q&&q.prototype.render,E=(m=q.contextType)&&r[m.__c],I=m?E?E.props.value:m.__:r,n.__c?v=(u=t.__c=n.__c).__=u.__E:(T?t.__c=u=new q(y,I):(t.__c=u=new ve(y,I),u.constructor=q,u.render=ni),E&&E.sub(u),u.props=y,u.state||(u.state={}),u.context=I,u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),T&&u.__s==null&&(u.__s=u.state),T&&q.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Ce({},u.__s)),Ce(u.__s,q.getDerivedStateFromProps(y,u.__s))),h=u.props,_=u.state,u.__v=t,d)T&&q.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),T&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(T&&q.getDerivedStateFromProps==null&&y!==h&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(y,I),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(y,u.__s,I)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=y,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(ge){ge&&(ge.__=t)}),g=0;g<u._sb.length;g++)u.__h.push(u._sb[g]);u._sb=[],u.__h.length&&i.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(y,u.__s,I),T&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(h,_,b)})}if(u.context=I,u.props=y,u.__P=e,u.__e=!1,R=N.__r,Z=0,T){for(u.state=u.__s,u.__d=!1,R&&R(t),m=u.render(u.props,u.state,u.context),ee=0;ee<u._sb.length;ee++)u.__h.push(u._sb[ee]);u._sb=[]}else do u.__d=!1,R&&R(t),m=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++Z<25);u.state=u.__s,u.getChildContext!=null&&(r=Ce(Ce({},r),u.getChildContext())),T&&!d&&u.getSnapshotBeforeUpdate!=null&&(b=u.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,c),u.base=t.__e,t.__u&=-161,u.__h.length&&i.push(u),v&&(u.__E=u.__=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;N.__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,c);(m=N.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]);N.__c&&N.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(a){a.call(o)})}catch(a){N.__e(a,o.__v)}})}function ti(e,t,n,r,o,a,i,s,l){var c,m,u,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(c=0;c<a.length;c++)if((h=a[c])&&"setAttribute"in h==!!T&&(T?h.localName===T:h.nodeType===3)){e=h,a[c]=null;break}}if(e==null){if(T===null)return document.createTextNode(y);e=document.createElementNS(o,T,y.is&&y),s&&(N.__m&&N.__m(t,a),s=!1),a=null}if(T===null)v===y||s&&e.data===y||(e.data=y);else{if(a=a&&Ie.call(e.childNodes),v=n.props||st,!s&&a!=null)for(v={},c=0;c<e.attributes.length;c++)v[(h=e.attributes[c]).name]=h.value;for(c in v)if(h=v[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=h;else if(!(c in y)){if(c=="value"&&"defaultValue"in y||c=="checked"&&"defaultChecked"in y)continue;wt(e,c,null,h,o)}}for(c in y)h=y[c],c=="children"?d=h:c=="dangerouslySetInnerHTML"?m=h:c=="value"?_=h:c=="checked"?b=h:s&&typeof h!="function"||v[c]===h||wt(e,c,h,v[c],o);if(m)s||u&&(m.__html===u.__html||m.__html===e.innerText)||(e.innerText=m.__html),t.__k=[];else if(u&&(e.innerText=""),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(c=a.length;c--;)mr(a[c]);s||(c="value",T==="progress"&&_==null?e.removeAttribute("value"):_!==void 0&&(_!==e[c]||T==="progress"&&!_||T==="option"&&_!==v[c])&&wt(e,c,_,v[c],o),c="checked",b!==void 0&&b!==e[c]&&wt(e,c,b,v[c],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){N.__e(o,n)}}function yr(e,t,n){var r,o;if(N.unmount&&N.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){N.__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;N.__&&N.__(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?Ie.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=Ce({},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?Ie.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}Ie=cr.slice,N={__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=Ce({},this.state),typeof e=="function"&&(e=e(Ce({},n),this.props)),e&&Ce(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,Pe=[],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=[],W=N,Ar=W.__b,xr=W.__r,Sr=W.diffed,Ir=W.__c,Cr=W.unmount,Or=W.__;function He(e,t){W.__h&&W.__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=He(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],c=r.t(l,s);l!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=k,!k.u)){var o=function(s,l,c){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,c);var u=!1;return m.forEach(function(d){if(d.__N){var h=d.__[0];d.__=d.__N,d.__N=void 0,h!==d.__[0]&&(u=!0)}}),!(!u&&r.__c.props===s)&&(!a||a.call(this,s,l,c))};k.u=!0;var a=k.shouldComponentUpdate,i=k.componentWillUpdate;k.componentWillUpdate=function(s,l,c){if(this.__e){var m=a;a=void 0,o(s,l,c),a=m}i&&i.call(this,s,l,c)},k.shouldComponentUpdate=o}return r.__N||r.__}function fe(e,t){var n=He(Ne++,3);!W.__s&&fn(n.__H,t)&&(n.__=e,n.i=t,k.__H.__h.push(n))}function Xe(e,t){var n=He(Ne++,4);!W.__s&&fn(n.__H,t)&&(n.__=e,n.i=t,k.__h.push(n))}function Pt(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=He(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=He(Ne++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(k)),t.props.value):e.__}function un(e,t){W.useDebugValue&&W.useDebugValue(t?t(e):e)}function oi(e){var t=He(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=He(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(Ht),e.__H.__h.forEach(mn),e.__H.__h=[]}catch(t){e.__H.__h=[],W.__e(t,e.__v)}}W.__b=function(e){k=null,Ar&&Ar(e)},W.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Or&&Or(e,t)},W.__r=function(e){xr&&xr(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(Ht),t.__h.forEach(mn),t.__h=[],Ne=0)),an=k},W.diffed=function(e){Sr&&Sr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Tr.push(t)!==1&&Er===W.requestAnimationFrame||((Er=W.requestAnimationFrame)||ii)(ai)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),an=k=null},W.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Ht),n.__h=n.__h.filter(function(r){return!r.__||mn(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],W.__e(r,n.__v)}}),Ir&&Ir(e,t)},W.unmount=function(e){Cr&&Cr(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Ht(r)}catch(o){t=o}}),n.__H=void 0,t&&W.__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 Ht(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=N.__b;N.__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 Pr=function(e,t){return e==null?null:Oe(Oe(e).map(t))},ht={map:Pr,forEach:Pr,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=N.__e;N.__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 Hr=N.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}N.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Hr&&Hr(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 c;for(r.setState({__a:r.__b=null});c=r.t.pop();)c.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=N.event;function _i(){}function gi(){return this.cancelBubble}function vi(){return this.defaultPrevented}N.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=N.vnode;N.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(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Oe(n.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.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=N.__r;N.__r=function(e){Vr&&Vr(e),_n=e.__c};var zr=N.diffed;N.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:Pt,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,An(o)&&a({h:o})},[e,n,t]),fe(function(){return An(o)&&a({h:o}),e(function(){An(o)&&a({h:o})})},[e]),n}function An(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:Pt,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:Pt,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 xn=function(e,t){return xn=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])},xn(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");xn(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var A=function(){return A=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},A.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:Ci,r=t&&t.serializer?t.serializer:Ii,o=t&&t.strategy?t.strategy:Ai;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 Sn(e,t,n,r,o){return n.bind(t,e,r,o)}function Ai(e,t){var n=e.length===1?oo:ao;return Sn(e,this,n,t.cache.create(),t.serializer)}function xi(e,t){return Sn(e,this,ao,t.cache.create(),t.serializer)}function Si(e,t){return Sn(e,this,oo,t.cache.create(),t.serializer)}var Ii=function(){return JSON.stringify(arguments)};function In(){this.cache=Object.create(null)}In.prototype.get=function(e){return this.cache[e]},In.prototype.set=function(e,t){this.cache[e]=t};var Ci={create:function(){return new In}},ae={variadic:xi,monadic:Si};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 Cn(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 Pi(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),c=0,m=l;c<m.length;c++){var u=m[c];if(u.length===0)throw new Error("Invalid number skeleton")}n.push({stem:s,options:l})}return n}function Hi(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=Hi(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=A(A(A({},t),{notation:"scientific"}),o.options.reduce(function(l,c){return A(A({},l),To(c))},{}));continue;case"engineering":t=A(A(A({},t),{notation:"engineering"}),o.options.reduce(function(l,c){return A(A({},l),To(c))},{}));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,c,m,u,d,h){if(c)t.minimumIntegerDigits=m.length;else{if(u&&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,c,m,u,d,h){return m==="*"?t.minimumFractionDigits=c.length:u&&u[0]==="#"?t.maximumFractionDigits=u.length:d&&h?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+h.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var a=o.options[0];a==="w"?t=A(A({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=A(A({},t),bo(a)));continue}if(vo.test(o.stem)){t=A(A({},t),bo(o.stem));continue}var i=Eo(o.stem);i&&(t=A(A({},t),i));var s=Di(o.stem);s&&(t=A(A({},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",c=Fi(t);for((c=="H"||c=="k")&&(s=0);s-- >0;)n+=l;for(;i-- >0;)n=c+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=Io("([^\\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 Ao=$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},xo=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},So=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 Io(e,t){return new RegExp(e,t)}var wn;if(Nn){var Co=Io("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");wn=function(t,n){var r;Co.lastIndex=n;var o=Co.exec(t);return(r=o[1])!==null&&r!==void 0?r:""}}else wn=function(t,n){for(var r=[];;){var o=So(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(),c=this.parseTagName();return o!==c?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 c=null;if(this.bumpIf(",")){this.bumpSpace();var m=this.clonePosition(),u=this.parseSimpleArgStyleIfPossible();if(u.err)return u;var d=Ji(u.val);if(d.length===0)return this.error(w.EXPECT_ARGUMENT_STYLE,M(this.clonePosition(),this.clonePosition()));var h=M(m,this.clonePosition());c={style:d,styleLocation:h}}var _=this.tryParseArgumentClose(o);if(_.err)return _;var b=M(o,this.clonePosition());if(c&&Ao(c==null?void 0:c.style,"::",0)){var v=Yi(c.style.slice(2));if(s==="number"){var u=this.parseNumberSkeletonFromString(v,c.styleLocation);return u.err?u:{val:{type:$.number,value:r,location:b,style:u.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:c.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=c==null?void 0:c.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,A({},E)));this.bumpSpace();var I=this.parseIdentifierIfPossible(),g=0;if(s!=="select"&&I.value==="offset"){if(!this.bumpIf(":"))return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,M(this.clonePosition(),this.clonePosition()));this.bumpSpace();var u=this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(u.err)return u;this.bumpSpace(),I=this.parseIdentifierIfPossible(),g=u.val}var R=this.tryParsePluralOrSelectOptions(t,s,n,I);if(R.err)return R;var _=this.tryParseArgumentClose(o);if(_.err)return _;var Z=M(o,this.clonePosition());return s==="select"?{val:{type:$.select,value:r,options:xo(R.val),location:Z},err:null}:{val:{type:$.plural,value:r,options:xo(R.val),offset:g,pluralType:s==="plural"?"cardinal":"ordinal",location:Z},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=Pi(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,c=o.value,m=o.location;;){if(c.length===0){var u=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(u,this.clonePosition()),c=this.message.slice(u.offset,this.offset())}else break}if(l.has(c))return this.error(n==="select"?w.DUPLICATE_SELECT_ARGUMENT_SELECTOR:w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,m);c==="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([c,{value:_.val,location:M(h,this.clonePosition())}]),l.add(c),this.bumpSpace(),a=this.parseIdentifierIfPossible(),c=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=So(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(Ao(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 Pn(e){e.forEach(function(t){if(delete t.location,mo(t)||fo(t))for(var n in t.options)delete t.options[n].location,Pn(t.options[n].value);else lo(t)&&po(t.style)||(uo(t)||co(t))&&Cn(t.style)?delete t.style.location:ho(t)&&Pn(t.children)})}function rs(e,t){t===void 0&&(t={}),t=A({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||Pn(n.val),n.val}var xe;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(xe||(xe={}));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('", "'),'"'),xe.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),xe.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,'"'),xe.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,c=e;l<c.length;l++){var m=c[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 u=m.value;if(!(o&&u in o))throw new as(u,i);var d=o[u];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]:Cn(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]:Cn(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(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),j=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}j[v-T]=N[v]}for(let G=y-T;G<ee;++G)delete j[G];if(b!=="classList")return;m=1,E.classList=j,E.className=g,m=0,j.length=N.length-T}}function h(_){if(!_||!("innerText"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 j=N.trim().split(t),ee=v.length;e:for(var G=0,X=v.length=j.length,ge=0;G!==X;++G){for(let ue=0;ue!==G;++ue)if(j[ue]===j[G]){ge++;continue e}y[G-ge]=j[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,j,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,j=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&&++j<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.innerText)||(e.innerText=m.__html),t.__k=[];else if(c&&(e.innerText=""),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=[],W=O,xr=W.__b,Ar=W.__r,Ir=W.diffed,Cr=W.__c,Sr=W.unmount,Or=W.__;function Pe(e,t){W.__h&&W.__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);!W.__s&&fn(n.__H,t)&&(n.__=e,n.i=t,k.__H.__h.push(n))}function Xe(e,t){var n=Pe(Ne++,4);!W.__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){W.useDebugValue&&W.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=[],W.__e(t,e.__v)}}W.__b=function(e){k=null,xr&&xr(e)},W.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Or&&Or(e,t)},W.__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},W.diffed=function(e){Ir&&Ir(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Tr.push(t)!==1&&Er===W.requestAnimationFrame||((Er=W.requestAnimationFrame)||ii)(ai)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),an=k=null},W.__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=[],W.__e(r,n.__v)}}),Cr&&Cr(e,t)},W.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&&W.__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 j=M(o,this.clonePosition());return s==="select"?{val:{type:$.select,value:r,options:Ao(N.val),location:j},err:null}:{val:{type:$.plural,value:r,options:Ao(N.val),offset:g,pluralType:s==="plural"?"cardinal":"ordinal",location:j},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.
|
|
2
2
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3
|
-
`,
|
|
3
|
+
`,Ae.MISSING_INTL_API,i);var R=n.getPluralRules(t,{type:m.pluralType}).select(d-(m.offset||0));E=m.options[R]||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,d-(m.offset||0)));continue}}return is(s)}function ss(e,t){return t?x(x(x({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=x(x({},e[r]),t[r]||{}),n},{})):e}function ls(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=ss(e[r],t[r]),n},x({},e)):e}function Pn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function us(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:oe(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,re([void 0],n,!1)))},{cache:Pn(e.number),strategy:ae.variadic}),getDateTimeFormat:oe(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,re([void 0],n,!1)))},{cache:Pn(e.dateTime),strategy:ae.variadic}),getPluralRules:oe(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,re([void 0],n,!1)))},{cache:Pn(e.pluralRules),strategy:ae.variadic})}}var wo=function(){function e(t,n,r,o){n===void 0&&(n=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=a.formatToParts(l);if(u.length===1)return u[0].value;var m=u.reduce(function(c,d){return!c.length||d.type!==ie.literal||typeof c[c.length-1]!="string"?c.push(d.value):c[c.length-1]+=d.value,c},[]);return m.length<=1?m[0]||"":m},this.formatToParts=function(l){return Dt(a.ast,a.locales,a.formatters,a.formats,l,void 0,a.message)},this.resolvedOptions=function(){var l;return{locale:((l=a.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.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 i=o||{};i.formatters;var s=Ke(i,["formatters"]);this.ast=e.__parse(t,x(x({},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=ls(e.formats,r),this.formatters=o&&o.formatters||us(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=rs,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}(),Le;(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"})(Le||(Le={}));var gt=function(e){he(t,e);function t(n,r,o){var a=this,i=o?o instanceof Error?o:new Error(String(o)):void 0;return a=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,`
|
|
4
4
|
`).concat(i?`
|
|
5
5
|
`.concat(i.message,`
|
|
6
6
|
`).concat(i.stack):""))||this,a.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(a,t),a}return t}(Error),cs=function(e){he(t,e);function t(n,r){return e.call(this,Le.UNSUPPORTED_FORMATTER,n,r)||this}return t}(gt),ms=function(e){he(t,e);function t(n,r){return e.call(this,Le.INVALID_CONFIG,n,r)||this}return t}(gt),Mo=function(e){he(t,e);function t(n,r){return e.call(this,Le.MISSING_DATA,n,r)||this}return t}(gt),pe=function(e){he(t,e);function t(n,r,o){var a=e.call(this,Le.FORMAT_ERROR,"".concat(n,`
|
|
@@ -9,28 +9,28 @@ Locale: `).concat(r,`
|
|
|
9
9
|
MessageID: `).concat(o==null?void 0:o.id,`
|
|
10
10
|
Default Message: `).concat(o==null?void 0:o.defaultMessage,`
|
|
11
11
|
Description: `).concat(o==null?void 0:o.description,`
|
|
12
|
-
`),r,a)||this;return i.descriptor=o,i.locale=r,i}return t}(pe),fs=function(e){he(t,e);function t(n,r){var o=e.call(this,Le.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(a){var i;return(i=a.value)!==null&&i!==void 0?i:JSON.stringify(a)}).join(),")"):"id"," as fallback."))||this;return o.descriptor=n,o}return t}(gt);function De(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,o){return o in e?r[o]=e[o]:o in n&&(r[o]=n[o]),r},{})}var ds=function(e){},hs=function(e){},
|
|
12
|
+
`),r,a)||this;return i.descriptor=o,i.locale=r,i}return t}(pe),fs=function(e){he(t,e);function t(n,r){var o=e.call(this,Le.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(a){var i;return(i=a.value)!==null&&i!==void 0?i:JSON.stringify(a)}).join(),")"):"id"," as fallback."))||this;return o.descriptor=n,o}return t}(gt);function De(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,o){return o in e?r[o]=e[o]:o in n&&(r[o]=n[o]),r},{})}var ds=function(e){},hs=function(e){},Ho={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:ds,onWarn:hs};function Po(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Be(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function ps(e){e===void 0&&(e=Po());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,o=oe(function(){for(var s,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new((s=Intl.DateTimeFormat).bind.apply(s,re([void 0],l,!1)))},{cache:Be(e.dateTime),strategy:ae.variadic}),a=oe(function(){for(var s,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new((s=Intl.NumberFormat).bind.apply(s,re([void 0],l,!1)))},{cache:Be(e.number),strategy:ae.variadic}),i=oe(function(){for(var s,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new((s=Intl.PluralRules).bind.apply(s,re([void 0],l,!1)))},{cache:Be(e.pluralRules),strategy:ae.variadic});return{getDateTimeFormat:o,getNumberFormat:a,getMessageFormat:oe(function(s,l,u,m){return new wo(s,l,u,x({formatters:{getNumberFormat:a,getDateTimeFormat:o,getPluralRules:i}},m||{}))},{cache:Be(e.message),strategy:ae.variadic}),getRelativeTimeFormat:oe(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(t.bind.apply(t,re([void 0],s,!1)))},{cache:Be(e.relativeTime),strategy:ae.variadic}),getPluralRules:i,getListFormat:oe(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(n.bind.apply(n,re([void 0],s,!1)))},{cache:Be(e.list),strategy:ae.variadic}),getDisplayNames:oe(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(r.bind.apply(r,re([void 0],s,!1)))},{cache:Be(e.displayNames),strategy:ae.variadic})}}function Dn(e,t,n,r){var o=e&&e[t],a;if(o&&(a=o[n]),a)return a;r(new cs("No ".concat(t," format named: ").concat(n)))}function Bt(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=x({timeZone:t},e[r]),n},{})}function Lo(e,t){var n=Object.keys(x(x({},e),t));return n.reduce(function(r,o){return r[o]=x(x({},e[o]||{}),t[o]||{}),r},{})}function Do(e,t){if(!t)return e;var n=wo.formats;return x(x(x({},n),e),{date:Lo(Bt(n.date,t),Bt(e.date||{},t)),time:Lo(Bt(n.time,t),Bt(e.time||{},t))})}var Bn=function(e,t,n,r,o){var a=e.locale,i=e.formats,s=e.messages,l=e.defaultLocale,u=e.defaultFormats,m=e.fallbackOnEmptyString,c=e.onError,d=e.timeZone,h=e.defaultRichTextElements;n===void 0&&(n={id:""});var _=n.id,b=n.defaultMessage;io(!!_,"[@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 v=String(_),y=s&&Object.prototype.hasOwnProperty.call(s,v)&&s[v];if(Array.isArray(y)&&y.length===1&&y[0].type===$.literal)return y[0].value;if(!r&&y&&typeof y=="string"&&!h)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=x(x({},h),r||{}),i=Do(i,d),u=Do(u,d),!y){if(m===!1&&y==="")return y;if((!b||a&&a.toLowerCase()!==l.toLowerCase())&&c(new fs(n,a)),b)try{var T=t.getMessageFormat(b,l,u,o);return T.format(r)}catch(E){return c(new Ln('Error formatting default message for: "'.concat(v,'", rendering default message verbatim'),a,n,E)),typeof b=="string"?b:v}return v}try{var T=t.getMessageFormat(y,a,i,x({formatters:t},o||{}));return T.format(r)}catch(E){c(new Ln('Error formatting message: "'.concat(v,'", using ').concat(b?"default message":"id"," as fallback."),a,n,E))}if(b)try{var T=t.getMessageFormat(b,l,u,o);return T.format(r)}catch(E){c(new Ln('Error formatting the default message for: "'.concat(v,'", rendering message verbatim'),a,n,E))}return typeof y=="string"?y:typeof b=="string"?b:v},Bo=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function Ut(e,t,n,r){var o=e.locale,a=e.formats,i=e.onError,s=e.timeZone;r===void 0&&(r={});var l=r.format,u=x(x({},s&&{timeZone:s}),l&&Dn(a,t,l,i)),m=De(r,Bo,u);return t==="time"&&!m.hour&&!m.minute&&!m.second&&!m.timeStyle&&!m.dateStyle&&(m=x(x({},m),{hour:"numeric",minute:"numeric"})),n(o,m)}function _s(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],a=n[1],i=a===void 0?{}:a,s=typeof o=="string"?new Date(o||0):o;try{return Ut(e,"date",t,i).format(s)}catch(l){e.onError(new pe("Error formatting date.",e.locale,l))}return String(s)}function gs(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],a=n[1],i=a===void 0?{}:a,s=typeof o=="string"?new Date(o||0):o;try{return Ut(e,"time",t,i).format(s)}catch(l){e.onError(new pe("Error formatting time.",e.locale,l))}return String(s)}function vs(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],a=n[1],i=n[2],s=i===void 0?{}:i,l=e.timeZone,u=e.locale,m=e.onError,c=De(s,Bo,l?{timeZone:l}:{});try{return t(u,c).formatRange(o,a)}catch(d){m(new pe("Error formatting date time range.",e.locale,d))}return String(o)}function ys(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],a=n[1],i=a===void 0?{}:a,s=typeof o=="string"?new Date(o||0):o;try{return Ut(e,"date",t,i).formatToParts(s)}catch(l){e.onError(new pe("Error formatting date.",e.locale,l))}return[]}function bs(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],a=n[1],i=a===void 0?{}:a,s=typeof o=="string"?new Date(o||0):o;try{return Ut(e,"time",t,i).formatToParts(s)}catch(l){e.onError(new pe("Error formatting time.",e.locale,l))}return[]}var Es=["style","type","fallback","languageDisplay"];function Ts(e,t,n,r){var o=e.locale,a=e.onError,i=Intl.DisplayNames;i||a(new we(`Intl.DisplayNames is not available in this environment.
|
|
13
13
|
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
14
|
-
`,
|
|
14
|
+
`,Ae.MISSING_INTL_API));var s=De(r,Es);try{return t(o,s).of(n)}catch(l){a(new pe("Error formatting display name.",o,l))}}var xs=["type","style"],Uo=Date.now();function As(e){return"".concat(Uo,"_").concat(e,"_").concat(Uo)}function Is(e,t,n,r){r===void 0&&(r={});var o=Fo(e,t,n,r).reduce(function(a,i){var s=i.value;return typeof s!="string"?a.push(s):typeof a[a.length-1]=="string"?a[a.length-1]+=s:a.push(s),a},[]);return o.length===1?o[0]:o.length===0?"":o}function Fo(e,t,n,r){var o=e.locale,a=e.onError;r===void 0&&(r={});var i=Intl.ListFormat;i||a(new we(`Intl.ListFormat is not available in this environment.
|
|
15
15
|
Try polyfilling it using "@formatjs/intl-listformat"
|
|
16
|
-
`,
|
|
16
|
+
`,Ae.MISSING_INTL_API));var s=De(r,xs);try{var l={},u=n.map(function(m,c){if(typeof m=="object"){var d=As(c);return l[d]=m,d}return String(m)});return t(o,s).formatToParts(u).map(function(m){return m.type==="literal"?m:x(x({},m),{value:l[m.value]||m.value})})}catch(m){a(new pe("Error formatting list.",o,m))}return n}var Cs=["type"];function Ss(e,t,n,r){var o=e.locale,a=e.onError;r===void 0&&(r={}),Intl.PluralRules||a(new we(`Intl.PluralRules is not available in this environment.
|
|
17
17
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
18
|
-
`,
|
|
18
|
+
`,Ae.MISSING_INTL_API));var i=De(r,Cs);try{return t(o,i).select(n)}catch(s){a(new pe("Error formatting plural.",o,s))}return"other"}var Os=["numeric","style"];function Ns(e,t,n){var r=e.locale,o=e.formats,a=e.onError;n===void 0&&(n={});var i=n.format,s=!!i&&Dn(o,"relative",i,a)||{},l=De(n,Os,s);return t(r,l)}function Rs(e,t,n,r,o){o===void 0&&(o={}),r||(r="second");var a=Intl.RelativeTimeFormat;a||e.onError(new we(`Intl.RelativeTimeFormat is not available in this environment.
|
|
19
19
|
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
20
|
-
`,
|
|
20
|
+
`,Ae.MISSING_INTL_API));try{return Ns(e,t,o).format(n,r)}catch(i){e.onError(new pe("Error formatting relative time.",e.locale,i))}return String(n)}var ws=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function ko(e,t,n){var r=e.locale,o=e.formats,a=e.onError;n===void 0&&(n={});var i=n.format,s=i&&Dn(o,"number",i,a)||{},l=De(n,ws,s);return t(r,l)}function Ms(e,t,n,r){r===void 0&&(r={});try{return ko(e,t,r).format(n)}catch(o){e.onError(new pe("Error formatting number.",e.locale,o))}return String(n)}function Hs(e,t,n,r){r===void 0&&(r={});try{return ko(e,t,r).formatToParts(n)}catch(o){e.onError(new pe("Error formatting number.",e.locale,o))}return[]}function Ps(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function Ls(e){e.onWarn&&e.defaultRichTextElements&&Ps(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 Ds(e,t){var n=ps(t),r=
|
|
22
|
+
For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function Ds(e,t){var n=ps(t),r=x(x({},Ho),e),o=r.locale,a=r.defaultLocale,i=r.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&i?i(new Mo('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(a,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&i&&i(new Mo('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(a,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(i&&i(new ms('"locale" was not configured, using "'.concat(a,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),Ls(r),x(x({},r),{formatters:n,formatNumber:Ms.bind(null,r,n.getNumberFormat),formatNumberToParts:Hs.bind(null,r,n.getNumberFormat),formatRelativeTime:Rs.bind(null,r,n.getRelativeTimeFormat),formatDate:_s.bind(null,r,n.getDateTimeFormat),formatDateToParts:ys.bind(null,r,n.getDateTimeFormat),formatTime:gs.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:vs.bind(null,r,n.getDateTimeFormat),formatTimeToParts:bs.bind(null,r,n.getDateTimeFormat),formatPlural:Ss.bind(null,r,n.getPluralRules),formatMessage:Bn.bind(null,r,n),$t:Bn.bind(null,r,n),formatList:Is.bind(null,r,n.getListFormat),formatListToParts:Fo.bind(null,r,n.getListFormat),formatDisplayName:Ts.bind(null,r,n.getDisplayNames)})}function Go(e){io(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var $o=x(x({},Ho),{textComponent:me});function Bs(e){return function(t){return e(ht.toArray(t))}}function Un(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var a=0;a<o;a++){var i=n[a];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0}function vt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wo(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?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(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var jo={exports:{}},U={};/** @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,c=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,u=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 R=g.$$typeof;switch(R){case t:switch(g=g.type,g){case l:case c:case r:case a:case o:case u:return g;default:switch(g=g&&g.$$typeof,g){case s:case m:case _:case h:case i:return g;default:return R}}case n:return R}}}function I(g){return E(g)===c}return U.AsyncMode=l,U.ConcurrentMode=c,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=u,U.isAsyncMode=function(g){return I(g)||E(g)===l},U.isConcurrentMode=I,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)===u},U.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===c||g===a||g===o||g===u||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(A(A(A({},$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 A(A({},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=Ho(),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,c=e.children,m=e.tagName,u=m===void 0?o:m,d=e.ignoreTag,h={id:a,description:i,defaultMessage:s},_=n(h,l,{ignoreTag:d});return typeof c=="function"?c(Array.isArray(_)?_:[_]):u?ce(u,null,ht.toArray(_)):ce(me,null,_)}Jo.displayName="FormattedMessage";var D=hn(Jo,zs);D.displayName="MemoizedFormattedMessage";var Qo=yt("formatDate");yt("formatTime");var Se=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":"{totalWithoutFirstInstallment} {taegPercentage} {installmeentsCountWithoutFirst} Préstamo de a un tipo deudor fijo de a lo largo de un periodo de meses. {firstInstallmentAmount} {productPriceWithoutCreditCost}Además de un depósito de , esto le permitirá financiar una compra de . 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":"Haz click 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":"{totalWithoutFirstInstallment} {taegPercentage} {installmeentsCountWithoutFirst} Lening van tegen een vaste rentevoet van over een periode van maanden. {firstInstallmentAmount} {productPriceWithoutCreditCost}Naast een aanbetaling van , kun je hiermee een aankoop financieren van . Onder voorbehoud van beoordeling en aanvaarding door Alma. Wettelijke herroepingstermijn van 14 dagen. Simulatie aangeboden door Alma, ingeschreven in het handels- en bedrijvenregister van Nanterre onder 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 V.fr:return Ks;case V.es:return Zs;case V.it:return Ys;case V.de:return qs;case V.pt:return Qs;case V.nl:return Js;case V.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_1fc15047-9446-40d6-8249-2d20509d02e5",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",BUILD_VERSION:"v4.0.3",npm_config_user_agent:"npm/10.9.2 node/v22.13.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_1fc15047-9446-40d6-8249-2d20509d02e5",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/22.13.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.12.1",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",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:"831",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250209.1.0",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",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.6/x64",JOURNAL_STREAM:"8:6787",GITHUB_WORKFLOW:"Release",_:"/opt/hostedtoolcache/node/22.13.1/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/22.13.1/x64",npm_config_npm_version:"10.9.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"false",GITHUB_RUN_ID:"13287417963",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"tag",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"c3b024e8d8785940481cfee975bbc5adb57a891f",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"alma/widgets/.github/workflows/release.yml@refs/tags/v4.0.3",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/22.13.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.13.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.13.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/22.13.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_aa889753-466b-4fc1-9d24-229f4e71449f",INVOCATION_ID:"26ac63bb42bd4f9e9514df3bb9fc14df",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/22.13.1/x64/bin/node",npm_package_name:"@alma/widgets",GITHUB_ACTION:"__run_3",GITHUB_RUN_NUMBER:"25",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 6",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"v4.0.3",GITHUB_REPOSITORY:"alma/widgets",STATS_D_D:"false",npm_lifecycle_script:"vite",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"436622633",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"4.0.3",npm_lifecycle_event:"npx",GITHUB_REF_PROTECTED:"false",GITHUB_WORKSPACE:"/home/runner/work/widgets/widgets",ACCEPT_EULA:"Y",GITHUB_JOB:"publish-package",RUNNER_PERFLOG:"/home/runner/perflog",npm_package_config_commitizen_path:"./node_modules/cz-conventional-changelog",GITHUB_SHA:"c3b024e8d8785940481cfee975bbc5adb57a891f",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/tags/v4.0.3",GITHUB_ACTOR:"FranceBe",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/22.13.1/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_1fc15047-9446-40d6-8249-2d20509d02e5",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.13.1/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",STATS_TIS:"mining",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_1fc15047-9446-40d6-8249-2d20509d02e5",npm_config_global_prefix:"/opt/hostedtoolcache/node/22.13.1/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"exec",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_1fc15047-9446-40d6-8249-2d20509d02e5",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:c}=a,m=i.toString(),u=JSON.stringify(s),d=rl.BUILD_VERSION;return tl(`${m}${u}${l}${c}${d}`)}});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_1fc15047-9446-40d6-8249-2d20509d02e5",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",BUILD_VERSION:"v4.0.3",npm_config_user_agent:"npm/10.9.2 node/v22.13.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_1fc15047-9446-40d6-8249-2d20509d02e5",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/22.13.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.12.1",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",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:"831",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250209.1.0",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",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.6/x64",JOURNAL_STREAM:"8:6787",GITHUB_WORKFLOW:"Release",_:"/opt/hostedtoolcache/node/22.13.1/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/22.13.1/x64",npm_config_npm_version:"10.9.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"false",GITHUB_RUN_ID:"13287417963",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"tag",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"c3b024e8d8785940481cfee975bbc5adb57a891f",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"alma/widgets/.github/workflows/release.yml@refs/tags/v4.0.3",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/22.13.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.13.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.13.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/22.13.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_aa889753-466b-4fc1-9d24-229f4e71449f",INVOCATION_ID:"26ac63bb42bd4f9e9514df3bb9fc14df",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/22.13.1/x64/bin/node",npm_package_name:"@alma/widgets",GITHUB_ACTION:"__run_3",GITHUB_RUN_NUMBER:"25",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 6",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"v4.0.3",GITHUB_REPOSITORY:"alma/widgets",STATS_D_D:"false",npm_lifecycle_script:"vite",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"436622633",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"4.0.3",npm_lifecycle_event:"npx",GITHUB_REF_PROTECTED:"false",GITHUB_WORKSPACE:"/home/runner/work/widgets/widgets",ACCEPT_EULA:"Y",GITHUB_JOB:"publish-package",RUNNER_PERFLOG:"/home/runner/perflog",npm_package_config_commitizen_path:"./node_modules/cz-conventional-changelog",GITHUB_SHA:"c3b024e8d8785940481cfee975bbc5adb57a891f",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/tags/v4.0.3",GITHUB_ACTOR:"FranceBe",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/22.13.1/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_1fc15047-9446-40d6-8249-2d20509d02e5",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.13.1/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",STATS_TIS:"mining",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_1fc15047-9446-40d6-8249-2d20509d02e5",npm_config_global_prefix:"/opt/hostedtoolcache/node/22.13.1/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"exec",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_1fc15047-9446-40d6-8249-2d20509d02e5",INIT_CWD:"/home/runner/work/widgets/widgets",EDITOR:"vi",NODE_ENV:"production"};const ta=(e,{domain:t,merchantId:n},r,o,a)=>{var T,E;const[i,s]=ne([]),[l,c]=ne(L.PENDING),{getCache:m,setCache:u,createKey:d}=ol(),h=d({purchaseAmount:e,plans:r,customerBillingCountry:o,customerShippingCountry:a}),_=(T=m(h))==null?void 0:T.value,b=(E=m(h))==null?void 0:E.timestamp,v=b&&nl(b),y=r==null?void 0:r.map(I=>({installments_count:I.installmentsCount,deferred_days:I==null?void 0:I.deferredDays,deferred_months:I==null?void 0:I.deferredMonths}));return fe(()=>{if(l===L.PENDING){let I=null;o&&(I={country:o});let g=null;a&&(g={country:a}),_&&!v&&(s(_),c(L.SUCCESS)),(!_||v)&&al({purchase_amount:e,queries:y,billing_address:I,shipping_address:g},{Authorization:`Alma-Merchant-Auth ${n}`,"X-Alma-Agent":`Alma Widget/${ul.BUILD_VERSION}`},`${t}/v2/payments/eligibility`).then(R=>{u(h,R),s(R),c(L.SUCCESS)}).catch(()=>{c(L.FAILED)})}},[l,e,h,o,a,_,v,y,n,t,u]),[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,c=i.value,m=t[s];if(!m)return!1;switch(s){case"orientation":case"scan":return m.toLowerCase()===c.toLowerCase();case"width":case"height":case"device-width":case"device-height":c=aa(c),m=aa(m);break;case"resolution":c=oa(c),m=oa(m);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":c=ra(c),m=ra(m);break;case"grid":case"color":case"color-index":case"monochrome":c=parseInt(c,10)||1,m=parseInt(m,10)||0;break}switch(l){case"min":return m>=c;case"max":return m<=c;default:return m===c}});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),c=l[1].toLowerCase().match(fl);return{modifier:c[1],feature:c[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(c){o&&o.addListener(c)}function i(c){o&&o.removeListener(c)}function s(c){r.matches=c.matches,r.media=c.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 Al(e){return"-"+e.toLowerCase()}function sa(e){if(jn.hasOwnProperty(e))return jn[e];var t=e.replace(El,Al);return jn[e]=Tl.test(t)?"-"+t:t}function xl(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 Sl(){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 Il(){if(ca)return zn;ca=1;var e=Sl();function t(){}function n(){}return n.resetWarningCache=t,zn=function(){function r(i,s,l,c,m,u){if(u!==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=Il()();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,Cl=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},Cl);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)},Pl=ct(void 0),Hl=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=Pt(!1);return fe(()=>{e.current=!0},[]),e.current},Ll=e=>{const t=ft(Pl),n=()=>da(e)||da(t),[r,o]=ne(n);return fe(()=>{const a=n();xl(r,a)||o(a)},[e,t]),r},Dl=e=>{const t=()=>Hl(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 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_5ab48eba-df31-4602-ae56-84ceb2328b35",DOTNET_NOLOGO:"1",USER:"runner",BUILD_VERSION:"v4.0.5",npm_config_user_agent:"npm/10.9.2 node/v22.16.0 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_5ab48eba-df31-4602-ae56-84ceb2328b35",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/22.16.0/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.1",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.1.13356709",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:"1889",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250602.3.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.9/x64",JOURNAL_STREAM:"9:12688",GITHUB_WORKFLOW:"Release",_:"/opt/hostedtoolcache/node/22.16.0/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/22.16.0/x64",npm_config_npm_version:"10.9.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",GITHUB_RUN_ID:"15702833436",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"tag",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"564d07ac78d63ac818401a1c3cbc548e01e85002",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"alma/widgets/.github/workflows/release.yml@refs/tags/v4.0.5",GITHUB_ACTION_REPOSITORY:"",ENABLE_RUNNER_TRACING:"true",npm_config_node_gyp:"/opt/hostedtoolcache/node/22.16.0/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.16.0/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.16.0/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/22.16.0/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_a2df4944-4f92-44ab-b519-99ea73975620",INVOCATION_ID:"3d3687753f114f0ab9b5acb9e1e5c9fe",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/22.16.0/x64/bin/node",npm_package_name:"@alma/widgets",GITHUB_ACTION:"__run_3",GITHUB_RUN_NUMBER:"27",GITHUB_TRIGGERING_ACTOR:"CamilleFljt",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 1000059657",XDG_CONFIG_HOME:"/home/runner/.config",GITHUB_REF_NAME:"v4.0.5",GITHUB_REPOSITORY:"alma/widgets",npm_lifecycle_script:"vite",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",SHELL:"/bin/bash",GITHUB_REPOSITORY_ID:"436622633",GITHUB_ACTIONS:"true",npm_package_version:"4.0.5",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:"564d07ac78d63ac818401a1c3cbc548e01e85002",GITHUB_RUN_ATTEMPT:"1",GITHUB_REF:"refs/tags/v4.0.5",GITHUB_ACTOR:"CamilleFljt",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/22.16.0/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_5ab48eba-df31-4602-ae56-84ceb2328b35",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/widgets/widgets",GITHUB_ACTOR_ID:"112871182",RUNNER_WORKSPACE:"/home/runner/work/widgets",npm_execpath:"/opt/hostedtoolcache/node/22.16.0/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_5ab48eba-df31-4602-ae56-84ceb2328b35",npm_config_global_prefix:"/opt/hostedtoolcache/node/22.16.0/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",npm_command:"exec",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",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.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_5ab48eba-df31-4602-ae56-84ceb2328b35",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_5ab48eba-df31-4602-ae56-84ceb2328b35",DOTNET_NOLOGO:"1",USER:"runner",BUILD_VERSION:"v4.0.5",npm_config_user_agent:"npm/10.9.2 node/v22.16.0 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_5ab48eba-df31-4602-ae56-84ceb2328b35",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/22.16.0/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.1",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.1.13356709",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:"1889",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250602.3.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.9/x64",JOURNAL_STREAM:"9:12688",GITHUB_WORKFLOW:"Release",_:"/opt/hostedtoolcache/node/22.16.0/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/22.16.0/x64",npm_config_npm_version:"10.9.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",GITHUB_RUN_ID:"15702833436",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"tag",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"564d07ac78d63ac818401a1c3cbc548e01e85002",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"alma/widgets/.github/workflows/release.yml@refs/tags/v4.0.5",GITHUB_ACTION_REPOSITORY:"",ENABLE_RUNNER_TRACING:"true",npm_config_node_gyp:"/opt/hostedtoolcache/node/22.16.0/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.16.0/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.16.0/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/22.16.0/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_a2df4944-4f92-44ab-b519-99ea73975620",INVOCATION_ID:"3d3687753f114f0ab9b5acb9e1e5c9fe",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/22.16.0/x64/bin/node",npm_package_name:"@alma/widgets",GITHUB_ACTION:"__run_3",GITHUB_RUN_NUMBER:"27",GITHUB_TRIGGERING_ACTOR:"CamilleFljt",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 1000059657",XDG_CONFIG_HOME:"/home/runner/.config",GITHUB_REF_NAME:"v4.0.5",GITHUB_REPOSITORY:"alma/widgets",npm_lifecycle_script:"vite",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",SHELL:"/bin/bash",GITHUB_REPOSITORY_ID:"436622633",GITHUB_ACTIONS:"true",npm_package_version:"4.0.5",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:"564d07ac78d63ac818401a1c3cbc548e01e85002",GITHUB_RUN_ATTEMPT:"1",GITHUB_REF:"refs/tags/v4.0.5",GITHUB_ACTOR:"CamilleFljt",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/22.16.0/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_5ab48eba-df31-4602-ae56-84ceb2328b35",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/widgets/widgets",GITHUB_ACTOR_ID:"112871182",RUNNER_WORKSPACE:"/home/runner/work/widgets",npm_execpath:"/opt/hostedtoolcache/node/22.16.0/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_5ab48eba-df31-4602-ae56-84ceb2328b35",npm_config_global_prefix:"/opt/hostedtoolcache/node/22.16.0/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",npm_command:"exec",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",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.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_5ab48eba-df31-4602-ae56-84ceb2328b35",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(j=>{"error_code"in j?u(H.FAILED):(s(j),c(_,j),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:{}};/*!
|
|
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 a="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(a=o(a,r(s)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var s in a)t.call(a,s)&&a[s]&&(i=o(i,s));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(pa);var kl=pa.exports;const P=vt(kl),Ue={container:"_container_xqepo_1",total:"_total_xqepo_15",creditInfo:"_creditInfo_xqepo_22",creditInfoTitle:"_creditInfoTitle_xqepo_33",fees:"_fees_xqepo_37",creditCost:"_creditCost_xqepo_47",creditInfoLegalText:"_creditInfoLegalText_xqepo_51"},J="alma-eligibility-modal",
|
|
33
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(a=o(a,r(s)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var s in a)t.call(a,s)&&a[s]&&(i=o(i,s));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(pa);var kl=pa.exports;const P=vt(kl),Ue={container:"_container_xqepo_1",total:"_total_xqepo_15",creditInfo:"_creditInfo_xqepo_22",creditInfoTitle:"_creditInfoTitle_xqepo_33",fees:"_fees_xqepo_37",creditCost:"_creditCost_xqepo_47",creditInfoLegalText:"_creditInfoLegalText_xqepo_51"},J="alma-eligibility-modal",q={desktopModal:`${J}-desktop-modal`,mobileModal:`${J}-mobile-modal`,leftSide:`${J}-left-side`,bullet:`${J}-bullet`,rightSide:`${J}-right-side`,title:`${J}-title`,info:`${J}-info`,infoMessage:`${J}-info-message`,eligibilityOptions:`${J}-eligibility-options`,activeOption:`${J}-active-option`,closeButton:`${J}-close-button`,scheduleDetails:`${J}-schedule-details`,scheduleTotal:`${J}-schedule-total`,scheduleCredit:`${J}-schedule-credit`,cardContainer:`${J}-card-logos`,summary:`${J}-summary`},Gl=({currentPlan:e})=>{var u,m,c,d,h,_;const t=Ft(),n=Y(e.purchase_amount+e.customer_total_cost_amount),r=Y(e.customer_total_cost_amount),o=(e==null?void 0:e.annual_interest_rate)&&e.annual_interest_rate/1e4||0,a=Y(e.customer_total_cost_amount),i=e.installments_count>4,s=Y((c=(m=(u=e.payment_plan)==null?void 0:u[0])==null?void 0:m.total_amount)!=null?c:0),l=Y(e.purchase_amount+e.customer_total_cost_amount-((_=(h=(d=e.payment_plan)==null?void 0:d[0])==null?void 0:h.total_amount)!=null?_:0));return f.createElement(f.Fragment,null,i&&f.createElement("div",{className:Ue.creditInfo},f.createElement("span",{className:Ue.creditInfoTitle},f.createElement(D,{id:"credit-features.information.title",defaultMessage:"Un crédit vous engage et doit être remboursé."})),f.createElement("br",null),f.createElement(D,{id:"credit-features.information",defaultMessage:"Vérifiez vos capacités de remboursement avant de vous engager."})),f.createElement("div",{className:P(Ue.container,q.summary),"data-testid":"modal-summary"},f.createElement("div",{className:P(Ue.total,q.scheduleTotal)},f.createElement(D,{tagName:"div",id:"installments.total-amount",defaultMessage:"Total"}),f.createElement(Ie,{value:n||0,style:"currency",currency:"EUR"})),f.createElement("div",{className:P(Ue.fees,q.scheduleCredit)},i?f.createElement(f.Fragment,null,f.createElement(D,{id:"credit-features.total-credit-cost",defaultMessage:"Dont coût du crédit"}),f.createElement("span",{className:Ue.creditCost},f.createElement(D,{id:"credit-features.credit-cost-display",defaultMessage:"{creditCost} (TAEG {taegPercentage})",values:{creditCost:t.formatNumber(r,{style:"currency",currency:"EUR"}),taegPercentage:t.formatNumber(o,{style:"percent",maximumFractionDigits:2})}}))):f.createElement(f.Fragment,null,f.createElement(D,{id:"installments.total-fees",defaultMessage:"Dont frais (TTC)",tagName:"div"}),f.createElement("div",null,f.createElement(Ie,{value:a,style:"currency",currency:"EUR"})))),i&&f.createElement("div",{className:Ue.creditInfoLegalText},f.createElement(D,{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(o,{style:"percent",maximumFractionDigits:2}),installmeentsCountWithoutFirst:e.installments_count-1,firstInstallmentAmount:t.formatNumber(s,{style:"currency",currency:"EUR"}),productPriceWithoutCreditCost:t.formatNumber(n-r,{style:"currency",currency:"EUR"})}}))))},$l={loadingIndicator:"_loadingIndicator_rleli_1",bounce:"_bounce_rleli_1"},Wl=({className:e})=>f.createElement("div",{className:P($l.loadingIndicator,e),"data-testid":"loader"},f.createElement("svg",{width:"120",height:"134",viewBox:"0 0 120 134",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f.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 _a={exports:{}};(function(e){(function(t){var n=!1,r,o;function a(){if(typeof r!="undefined")return r;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),r=d.offsetWidth-d.clientWidth,c.removeChild(d),r}function i(){return document.documentElement.scrollHeight>window.innerHeight}function s(c){if(!(typeof document=="undefined"||n)){var d=document.documentElement;o=window.pageYOffset,i()?d.style.width="calc(100% - "+a()+"px)":d.style.width="100%",d.style.position="fixed",d.style.top=-o+"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,o),n=!1}}function u(){if(n){l();return}s()}var m={on:s,off:l,toggle:u};e.exports=m})()})(_a);var jl=_a.exports;const ga=vt(jl);var Zn={exports:{}},Fe={};const Kn=Wo(Ei);var Yn={exports:{}},ye={},Jn={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;/*!
|
|
34
34
|
* Adapted from jQuery UI core
|
|
35
35
|
*
|
|
36
36
|
* http://jqueryui.com
|
|
@@ -40,11 +40,11 @@ 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",r="contents",o=/input|select|textarea|button|object|iframe/;function a(
|
|
43
|
+
*/var n="none",r="contents",o=/input|select|textarea|button|object|iframe/;function a(c,d){return d.getPropertyValue("overflow")!=="visible"||c.scrollWidth<=0&&c.scrollHeight<=0}function i(c){var d=c.offsetWidth<=0&&c.offsetHeight<=0;if(d&&!c.innerText)return!0;try{var h=window.getComputedStyle(c),_=h.getPropertyValue("display");return d?_!==r&&a(c,h):_===n}catch(b){return console.warn("Failed to inspect element style"),!1}}function s(c){for(var d=c,h=c.getRootNode&&c.getRootNode();d&&d!==document.body;){if(h&&d===h&&(d=h.host.parentNode),i(d))return!1;d=d.parentNode}return!0}function l(c,d){var h=c.nodeName.toLowerCase(),_=o.test(h)&&!c.disabled||h==="a"&&c.href||d;return _&&s(c)}function u(c){var d=c.getAttribute("tabindex");d===null&&(d=void 0);var h=isNaN(d);return(h||d>=0)&&l(c,!h)}function m(c){var d=[].slice.call(c.querySelectorAll("*"),0).reduce(function(h,_){return h.concat(_.shadowRoot?m(_.shadowRoot):[_])},[]);return d.filter(u)}e.exports=t.default})(Jn,Jn.exports);var va=Jn.exports;Object.defineProperty(ye,"__esModule",{value:!0}),ye.resetState=Xl,ye.log=Zl,ye.handleBlur=bt,ye.handleFocus=Et,ye.markForFocusLater=Kl,ye.returnFocus=Yl,ye.popWithoutFocus=Jl,ye.setupScopedFocus=Ql,ye.teardownScopedFocus=eu;var Vl=va,zl=ql(Vl);function ql(e){return e&&e.__esModule?e:{default:e}}var Je=[],Qe=null,Qn=!1;function Xl(){Je=[]}function Zl(){}function bt(){Qn=!0}function Et(){if(Qn){if(Qn=!1,!Qe)return;setTimeout(function(){if(!Qe.contains(document.activeElement)){var e=(0,zl.default)(Qe)[0]||Qe;e.focus()}},0)}}function Kl(){Je.push(document.activeElement)}function Yl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=null;try{Je.length!==0&&(t=Je.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 Jl(){Je.length>0&&Je.pop()}function Ql(e){Qe=e,window.addEventListener?(window.addEventListener("blur",bt,!1),document.addEventListener("focus",Et,!0)):(window.attachEvent("onBlur",bt),document.attachEvent("onFocus",Et))}function eu(){Qe=null,window.addEventListener?(window.removeEventListener("blur",bt),document.removeEventListener("focus",Et)):(window.detachEvent("onBlur",bt),document.detachEvent("onFocus",Et))}var er={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=va,r=o(n);function o(s){return s&&s.__esModule?s:{default:s}}function a(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return s.activeElement.shadowRoot?a(s.activeElement.shadowRoot):s.activeElement}function i(s,l){var u=(0,r.default)(s);if(!u.length){l.preventDefault();return}var m=void 0,c=l.shiftKey,d=u[0],h=u[u.length-1],_=a();if(s===_){if(!c)return;m=h}if(h===_&&!c&&(m=d),d===_&&c&&(m=h),m){l.preventDefault(),m.focus();return}var b=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),v=b!=null&&b[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(v){var y=u.indexOf(_);if(y>-1&&(y+=c?-1:1),m=u[y],typeof m=="undefined"){l.preventDefault(),m=c?h:d,m.focus();return}l.preventDefault(),m.focus()}}e.exports=t.default})(er,er.exports);var tu=er.exports,be={},nu=function(){},ru=nu,Ee={},ya={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={},At={};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 At)Ea(n,At[r]);Tt={},At={}}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},Au=function(t,n,r){r.forEach(function(o){Eu(n,o),t.add(o)})},xu=function(t,n,r){r.forEach(function(o){Tu(n,o),n[o]===0&&t.remove(o)})};et.add=function(t,n){return Au(t.classList,t.nodeName.toLowerCase()=="html"?Tt:At,n.split(" "))},et.remove=function(t,n){return xu(t.classList,t.nodeName.toLowerCase()=="html"?Tt:At,n.split(" "))};var tt={};Object.defineProperty(tt,"__esModule",{value:!0}),tt.log=Iu,tt.resetState=Cu;function Su(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Ta=function e(){var t=this;Su(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 Iu(){console.log("portalOpenInstances ----------"),console.log(Gt.openInstances.length),Gt.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")}function Cu(){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 Aa(){ke.length!==0&&ke[ke.length-1].focusContent()}function Pu(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",Aa),Te=Q.cloneNode(),Te.addEventListener("focus",Aa)),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(Pu),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(x){for(var S=1;S<arguments.length;S++){var X=arguments[S];for(var p in X)Object.prototype.hasOwnProperty.call(X,p)&&(x[p]=X[p])}return x},r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},o=function(){function x(S,X){for(var p=0;p<X.length;p++){var C=X[p];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(S,C.key,C)}}return function(S,X,p){return X&&x(S.prototype,X),p&&x(S,p),S}}(),a=Kn,i=qn,s=g(i),l=ye,c=I(l),m=tu,u=g(m),d=be,h=I(d),_=et,b=I(_),v=Ee,y=g(v),T=tt,E=g(T);function I(x){if(x&&x.__esModule)return x;var S={};if(x!=null)for(var X in x)Object.prototype.hasOwnProperty.call(x,X)&&(S[X]=x[X]);return S.default=x,S}function g(x){return x&&x.__esModule?x:{default:x}}function R(x,S){if(!(x instanceof S))throw new TypeError("Cannot call a class as a function")}function Z(x,S){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:x}function ee(x,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);x.prototype=Object.create(S&&S.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(x,S):x.__proto__=S)}var G={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},q=function(S){return S.code==="Tab"||S.keyCode===9},ge=function(S){return S.code==="Escape"||S.keyCode===27},ue=0,j=function(x){ee(S,x);function S(X){R(this,S);var p=Z(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,X));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?(c.returnFocus(p.props.preventScroll),c.teardownScopedFocus()):c.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&&(c.setupScopedFocus(p.node),c.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){q(C)&&(0,u.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(S,[{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 Ic={ref:this.setOverlayRef,className:this.buildClassName("overlay",de),style:n({},Xt,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},Cc=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(Cc,je);return this.props.overlayElement(Ic,Oc)}}]),S}(a.Component);j.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},j.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=j,e.exports=t.default}(Yn,Yn.exports);var Hu=Yn.exports;function xa(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function Sa(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r!=null?r:null}this.setState(t.bind(this))}function Ia(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}}xa.__suppressDeprecationWarning=!0,Sa.__suppressDeprecationWarning=!0,Ia.__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})()})(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 j(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=j(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.
|
|
48
48
|
|
|
49
49
|
`+a+" uses "+i+" but also contains the following legacy lifecycles:"+(n!==null?`
|
|
50
50
|
`+n:"")+(r!==null?`
|
|
@@ -52,5 +52,5 @@ For more details see https://formatjs.io/docs/getting-started/message-distributi
|
|
|
52
52
|
`+o:"")+`
|
|
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=xa,t.componentWillReceiveProps=Sa),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=Ia;var s=t.componentDidUpdate;t.componentDidUpdate=function(c,m,u){var d=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:u;s.call(this,c,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 Ca=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=xt(Oa),Uu=Kn,Wt=xt(Uu),Fu=qn,O=xt(Fu),ku=Hu,Na=xt(ku),Gu=be,$u=ju(Gu),Me=Ee,Ra=xt(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 xt(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)},Pa=function(){return Ge?Wt.default.createPortal:Wt.default.unstable_renderSubtreeIntoContainer};function jt(e){return e()}var St=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 c=jt(o.props.parentSelector);c&&c.contains(o.node)?c.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(c){o.portal=c},o.renderPortal=function(c){var m=Pa(),u=m(o,$t.default.createElement(Na.default,Ca({defaultStyles:t.defaultStyles},c)),o.node);o.portalRef(u)},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 c=a.prevParent,m=a.nextParent;m!==c&&(c.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=Pa();return r($t.default.createElement(Na.default,Ca({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)}}],[{key:"setAppElement",value:function(r){$u.setElement(r)}}]),t}(Oa.Component);St.propTypes={isOpen:O.default.bool.isRequired,style:O.default.shape({content:O.default.object,overlay:O.default.object}),portalClassName:O.default.string,bodyOpenClassName:O.default.string,htmlOpenClassName:O.default.string,className:O.default.oneOfType([O.default.string,O.default.shape({base:O.default.string.isRequired,afterOpen:O.default.string.isRequired,beforeClose:O.default.string.isRequired})]),overlayClassName:O.default.oneOfType([O.default.string,O.default.shape({base:O.default.string.isRequired,afterOpen:O.default.string.isRequired,beforeClose:O.default.string.isRequired})]),appElement:O.default.oneOfType([O.default.instanceOf(Ra.default),O.default.instanceOf(Me.SafeHTMLCollection),O.default.instanceOf(Me.SafeNodeList),O.default.arrayOf(O.default.instanceOf(Ra.default))]),onAfterOpen:O.default.func,onRequestClose:O.default.func,closeTimeoutMS:O.default.number,ariaHideApp:O.default.bool,shouldFocusAfterRender:O.default.bool,shouldCloseOnOverlayClick:O.default.bool,shouldReturnFocusAfterClose:O.default.bool,preventScroll:O.default.bool,parentSelector:O.default.func,aria:O.default.object,data:O.default.object,role:O.default.string,contentLabel:O.default.string,shouldCloseOnEsc:O.default.bool,overlayRef:O.default.func,contentRef:O.default.func,id:O.default.string,overlayElement:O.default.func,contentElement:O.default.func},St.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)}},St.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)(St),Fe.default=St,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 Ha=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 Ha.setAppElement("body"),f.createElement(Ha,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,z.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,c=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(Se,{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(Se,{value:Y(i),style:"currency",currency:"EUR"})}});if(l){if(c!==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(Se,{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((u,d)=>d===0||u.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"})):Ae(e)?f.createElement(f.Fragment,null,f.createElement(D,{id:"payment-plan-strings.pay-now",defaultMessage:"Payer maintenant {totalAmount}",values:{totalAmount:f.createElement(Se,{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(Se,{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(Se,{value:Y(l[0].total_amount),style:"currency",currency:"EUR"}),numberOfRemainingInstallments:r-1,othersInstallmentAmount:f.createElement(Se,{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,z.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,z.activeOption)]:o===t}),onClick:()=>n(o)},f.createElement("span",{className:rr.textButton},Ba(r))))),It={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:It.installment,"data-testid":`installment-${t}`},f.createElement("div",{className:It.date},f.createElement("div",{className:P(It.dot,{[It.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({[It.bold]:t===0})},f.createElement(Se,{value:e.total_amount/100,style:"currency",currency:"EUR"}))),uc={schedule:"_schedule_mjau7_1"},cc=({currentPlan:e})=>f.createElement("div",{className:P(uc.schedule,z.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,z.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,z.info),"data-testid":"modal-info-element"},f.createElement("div",{className:$e.listItem},f.createElement("div",{className:P($e.bullet,z.bullet)},"1"),f.createElement("div",{className:z.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,z.bullet)},"2"),f.createElement("div",{className:z.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,z.bullet)},"3"),f.createElement("div",{className:z.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,z.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."})),Ct={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(Ct.container,z.desktopModal),"data-testid":"modal-container"},f.createElement("aside",{className:P([Ct.block,Ct.left,z.leftSide])},f.createElement(Ga,{isSomePlanDeferred:t,isCurrentPlanP1X:r}),f.createElement(ka,{isCurrentPlanP1X:r}),n&&f.createElement(Fa,{cards:n}),f.createElement(or,{className:Ct.logo,width:"75"})),f.createElement("div",{className:P(Ct.block,z.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,z.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,c=n.filter(d=>d.eligible),m=c[a],u=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:u,cards:o,isCurrentPlanP1X:Ae(m)},r===L.PENDING&&f.createElement("div",{className:qt.loader},f.createElement(Wl,null)),r===L.SUCCESS&&c.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===L.SUCCESS&&c.length>=1&&f.createElement(f.Fragment,null,f.createElement(sc,{eligibilityPlans:c,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,Ac=({apiData:e,configPlans:t,hideIfNotEligible:n,monochrome:r,purchaseAmount:o,suggestedPaymentPlan:a,cards:i,customerBillingCountry:s,customerShippingCountry:l,transitionDelay:c,hideBorder:m=!1,onModalClose:u})=>{const[d,h]=ta(o,e,t,s,l),_=d.filter(j=>j.eligible),b=Ec({eligibilityPlans:d,suggestedPaymentPlan:a!=null?a:0}),v=a!==void 0,y=c!==void 0,[T,E]=ne(!1),I=()=>E(!0),g=j=>{E(!1),u==null||u(j)},R=d.reduce((j,x,S)=>x.eligible?[...j,S]:j,[]),Z=()=>y?c!=null?c:ja:v?Tc:ja,{current:ee,onHover:G,onLeave:q}=bc(R,Z());fe(()=>{h===L.SUCCESS&&v&&(G(b),q())},[h]);const ge=j=>{const x=R.findIndex(S=>S===j);return x===-1?0:x};if(h===L.PENDING)return f.createElement("div",{className:P(le.widgetButton,le.pending)},f.createElement(yc,null));if(n&&_.length===0||d.length===0||h===L.FAILED)return null;const ue=j=>{j.preventDefault(),_.length>0&&I()};return f.createElement(f.Fragment,null,f.createElement("div",{tabIndex:0,role:"button",onClick:ue,onKeyDown:j=>j.key==="Enter"&&ue(j),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((j,x)=>{const S=x===ee;return f.createElement("div",{key:`p${j.installments_count}x-d+${j.deferred_days}-m+${j.deferred_months}`,onMouseEnter:()=>G(x),onTouchStart:()=>G(x),onMouseOut:q,onBlur:q,onTouchEnd:q,className:P(le.plan,{[P(le.active,We.activeOption)]:S,[le.monochrome]:r&&S,[P(le.notEligible,We.notEligibleOption)]:!j.eligible})},Ba(j))}))),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,xc=(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:c=!1,monochrome:m=!0,suggestedPaymentPlan:u,customerBillingCountry:d,customerShippingCountry:h,locale:_=V.en,cards:b,onModalClose:v}=n;if(r){const y=ro(r);y.render(f.createElement(ea,{locale:_},f.createElement(Ac,{apiData:e,configPlans:i,hideIfNotEligible:l,monochrome:m,purchaseAmount:a,suggestedPaymentPlan:u,cards:b,customerBillingCountry:d,customerShippingCountry:h,transitionDelay:s,hideBorder:c,onModalClose:v}))),at.set(r,y)}}if(t===F.Modal){const{clickableSelector:a,purchaseAmount:i,plans:s,locale:l=V.en,customerBillingCountry:c,customerShippingCountry:m,cards:u,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:c,customerShippingCountry:m,onClose:h,cards:u}))),at.set(r,b)}};return a&&((o=document.querySelector(a))==null||o.addEventListener("click",_,!1)),{open:_,close:h}}},Sc=e=>({add:(t,n)=>xc(e,t,n)});var Va=(e=>(e.LIVE="https://api.getalma.eu",e.TEST="https://api.sandbox.getalma.eu",e))(Va||{});H.Widgets=void 0,(e=>{function t(n,r){return Sc({domain:r,merchantId:n})}e.initialize=t,e.PaymentPlans=F.PaymentPlans,e.Modal=F.Modal})(H.Widgets||(H.Widgets={})),H.Utils=void 0,(e=>{e.priceToCents=Ot,e.priceFromCents=Y,e.formatCents=Yt})(H.Utils||(H.Utils={})),H.ApiMode=Va,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});
|
|
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,[]),j=()=>y?u!=null?u:ja:v?Tc:ja,{current:ee,onHover:G,onLeave:X}=bc(N,j());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"})});
|
|
56
56
|
//# sourceMappingURL=widgets-wc.umd.js.map
|