1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{35:e=>{e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var u=o[l];if(!s(u))return!1;var c=e[u],d=t[u];if(!1===(i=r?r.call(n,c,d,u):void 0)||void 0===i&&c!==d)return!1}return!0}},785:()=>{},1092:(e,t)=>{"use strict";var r,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");r=Symbol.for("react.module.reference"),t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===a||e===f||e===p||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===r||void 0!==e.getModuleId)||!1},t.typeOf=function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case s:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case c:case u:case d:case m:case h:case l:return e;default:return t}}case i:return t}}}},1094:e=>{e.exports={"color-variant-pay-default":"styles_color-variant-pay-default__aB_9b","color-variant-pay-dark":"styles_color-variant-pay-dark__yotcf","color-variant-pay-10":"styles_color-variant-pay-10__IE3WH","color-variant-send-default":"styles_color-variant-send-default__WVUpn","color-variant-send-dark":"styles_color-variant-send-dark__5rY7T","color-variant-send-10":"styles_color-variant-send-10__phDaG","color-variant-blue-cross-dark":"styles_color-variant-blue-cross-dark__5CvKS","color-variant-black":"styles_color-variant-black__C7t_A","color-variant-gray-80":"styles_color-variant-gray-80__z_bpQ","color-variant-white":"styles_color-variant-white__peWip","color-variant-reward-default":"styles_color-variant-reward-default__F5OHc","color-variant-reward-light":"styles_color-variant-reward-light__WBZGx","color-variant-grey-03":"styles_color-variant-grey-03__ZA7xN","color-variant-full-white":"styles_color-variant-full-white__xgUHs","color-variant-transparent":"styles_color-variant-transparent__XpkjM",root:"styles_root__jeA4G",h1:"styles_h1__Gqdn5",h2:"styles_h2__8B4_O",span:"styles_span__NWpUT"}},1342:(e,t,r)=>{"use strict";function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{A:()=>n})},1641:e=>{e.exports={"color-variant-pay-default":"styles_color-variant-pay-default__pOeq1","color-variant-pay-dark":"styles_color-variant-pay-dark__sbgTg","color-variant-pay-10":"styles_color-variant-pay-10__0DpAf","color-variant-send-default":"styles_color-variant-send-default__34rTt","color-variant-send-dark":"styles_color-variant-send-dark__4gmlv","color-variant-send-10":"styles_color-variant-send-10__A6FX0","color-variant-blue-cross-dark":"styles_color-variant-blue-cross-dark__J70pm","color-variant-black":"styles_color-variant-black__gcCmN","color-variant-gray-80":"styles_color-variant-gray-80__o80Oz","color-variant-white":"styles_color-variant-white__e5U8c","color-variant-reward-default":"styles_color-variant-reward-default__EA4ST","color-variant-reward-light":"styles_color-variant-reward-light__SDfg_","color-variant-grey-03":"styles_color-variant-grey-03__FOTa5","color-variant-full-white":"styles_color-variant-full-white__qVpIf","color-variant-transparent":"styles_color-variant-transparent__Cmv62","color-banner-absolute-container":"styles_color-banner-absolute-container__HlrKg","color-banner-offset":"styles_color-banner-offset__0YATD","color-banner-root":"styles_color-banner-root__cAnnS","color-banner-main-container":"styles_color-banner-main-container__iVxWA","color-banner-flex-container":"styles_color-banner-flex-container___7wDj","color-banner-title":"styles_color-banner-title__u7t_K","color-banner-sub-title":"styles_color-banner-sub-title__LrSaX","white-banner-absolute-container":"styles_white-banner-absolute-container__UFZAS","white-banner-offset":"styles_white-banner-offset__KPy1F","white-banner-banner-radius":"styles_white-banner-banner-radius__vVEfn","white-banner-root":"styles_white-banner-root__Shm_x","white-banner-main-container":"styles_white-banner-main-container__hV_eI","white-banner-flex-container":"styles_white-banner-flex-container__rX_iX","white-banner-title":"styles_white-banner-title__Uo3u2","white-banner-sub-title":"styles_white-banner-sub-title__HiEaG","white-background":"styles_white-background__isfh6"}},1845:(e,t,r)=>{e.exports=r(9816)},3943:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(59827),i=r(40435),o=r(46930),a=r(72277),s=r(50084),l=r.n(s);function u({icon:e,width:t="38px",height:r="38px",alt:s="icon"}){let l=o.Z?.[e]?.app,{theme:c}=(0,a.dU)();return(0,n.Y)(i.e7,{"data-testid":"item-icon-id",children:(0,n.Y)(i.zG,{backgroundColor:c.color.brand.primary,width:t,height:r,children:(0,n.Y)("img",{alt:s,src:l})})})}
1u.propTypes={icon:l().string.isRequired,width:l().string,height:l().string,alt:l().string},u.defaultProps={width:"38px",height:"38px",alt:"icon"}},4452:(e,t,r)=>{e.exports=r(73921)},4862:(e,t,r)=>{"use strict";var n=r(72223),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,s=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return s(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},4957:e=>{e.exports={"color-variant-pay-default":"styles_color-variant-pay-default__abXmq","color-variant-pay-dark":"styles_color-variant-pay-dark__wOxyJ","color-variant-pay-10":"styles_color-variant-pay-10__H9At9","color-variant-send-default":"styles_color-variant-send-default__ohyC9","color-variant-send-dark":"styles_color-variant-send-dark__gAfRV","color-variant-send-10":"styles_color-variant-send-10__fPdVp","color-variant-blue-cross-dark":"styles_color-variant-blue-cross-dark__bFAPZ","color-variant-black":"styles_color-variant-black__D6iO0","color-variant-gray-80":"styles_color-variant-gray-80__bzIjm","color-variant-white":"styles_color-variant-white__uVTK3","color-variant-reward-default":"styles_color-variant-reward-default___gnXZ","color-variant-reward-light":"styles_color-variant-reward-light__vto2f","color-variant-grey-03":"styles_color-variant-grey-03___ofmR","color-variant-full-white":"styles_color-variant-full-white__APnpU","color-variant-transparent":"styles_color-variant-transparent__5FX4p",root:"styles_root__XwDNz",content:"styles_content__uiwKJ",title:"styles_title__RYiAP",mainButton:"styles_mainButton__nteo8"}},5173:(e,t,r)=>{"use strict";function n(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(e){return"'"+e+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function i(e){return!!e&&!!e[H]}function o(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===$}(e)||Array.isArray(e)||!!e[V]||!!(null==(t=e.constructor)?void 0:t[V])||d(e)||f(e))}function a(e,t,r){void 0===r&&(r=!1),0===s(e)?(r?Object.keys:z)(e).forEach(function(n){r&&"symbol"==typeof n||t(n,e[n],e)}):e.forEach(function(r,n){return t(n,r,e)})}function s(e){var t=e[H];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:3*!!f(e)}function l(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function u(e,t,r){var n=s(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function c(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return j&&e instanceof Map}function f(e){return U&&e instanceof Set}function p(e){return e.o||e.t}function h(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=q(e);delete t[H];for(var r=z(t),n=0;n<r.length;n++){var i=r[n],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function m(e,t){return void 0===t&&(t=!1),g(e)||i(e)||!o(e)||(s(e)>1&&(e.set=e.add=e.clear=e.delete=v),Object.freeze(e),t&&a(e,function(e,t){return m(t,!0)},!0)),e}function v(){n(2)}function g(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function y(e){var t=W[e];return t||n(18,e),t}r.d(t,{U1:()=>eC,zD:()=>eL,Z0:()=>eP});function b(e,t){t&&(y("Patches"),e.u=[],e.s=[],e.v=t)}function _(e){w(e),e.p.forEach(x),e.p=null}function w(e){e===M&&(M=e.l)}function S(e){return M={p:[],l:M,h:e,m:!0,_:0}}function x(e){var t=e[H];0===t.i||1===t.i?t.j():t.g=!0}function E(e,t){t._=t.p.length;var r=t.p[0],i=void 0!==e&&e!==r;return t.h.O||y("ES5").S(t,e,i),i?(r[H].P&&(_(t),n(4)),o(e)&&(e=k(t,e),t.l||A(t,e)),t.u&&y("Patches").M(r[H].t,e,t.u,t.s)):e=k(t,r,[]),_(t),t.u&&t.v(t.u,t.s),e!==Y?e:void 0}function k(e,t,r){if(g(t))return t;var n=t[H];if(!n)return a(t,function(i,o){return C(e,n,t,i,o,r)},!0),t;if(n.A!==e)return t;if(!n.P)return A(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=4===n.i||5===n.i?n.o=h(n.k):n.o,o=i,s=!1;3===n.i&&(o=new Set(i),i.clear(),s=!0),a(o,function(t,o){return C(e,n,i,t,o,r,s)}),A(e,i,!1),r&&e.u&&y("Patches").N(n,r,e.u,e.s)}return n.o}function C(e,t,r,n,a,s,c){if(i(a)){var d=k(e,a,s&&t&&3!==t.i&&!l(t.R,n)?s.concat(n):void 0);if(u(r,n,d),!i(d))return;e.m=!1}else c&&r.add(a);if(o(a)&&!g(a)){if(!e.h.D&&e._<1)return;k(e,a),t&&t.A.l||A(e,a)}}function A(e,t,r){void 0===r&&(r=!1),!e.l&&e.h.D&&e.m&&m(t,r)}function P(e,t){var r=e[H];return(r?p(r):e)[t]}function T(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function I(e){e.P||(e.P=!0,e.l&&I(e.l))}function O(e){e.o||(e.o=h(e.t))}function R(e,t,r){var n,i,o,a,s,l,u,c=d(t)?y("MapSet").F(t,r):f(t)?y("MapSet").T(t,r):e.O?(o=i={i:+!!(n=Array.isArray(t)),A:r?r.A:M,P:!1,I:!1,R:{},l:r,t:t,k:null,o:null,j:null,C:!1},a=K,n&&(o=[i],a=G),l=(s=Proxy.revocable(o,a)).revoke,i.k=u=s.proxy,i.j=l,u):y("ES5").J(t,r);return(r?r.A:M).p.push(c),c}function N(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return h(e)}var L,D,M,F="u">typeof Symbol&&"symbol"==typeof Symbol("x"),j="u">typeof Map,U="u">typeof Set,B="u">typeof Proxy&&void 0!==Proxy.revocable&&"u">typeof Reflect,Y=F?Symbol.for("immer-nothing"):((D={})["immer-nothing"]=!0,D),V=F?Symbol.for("immer-draftable"):"__$immer_draftable",H=F?Symbol.for("immer-state"):"__$immer_state",$=""+Object.prototype.constructor,z="u">typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,q=Object.getOwnPropertyDescriptors||function(e){var t={};return z(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},W={},K={get:function(e,t){if(t===H)return e;var r,n,i=p(e);if(!l(i,t))return(n=T(i,t))?"value"in n?n.value:null==(r=n.get)?void 0:r.call(e.k):void 0;var a=i[t];return e.I||!o(a)?a:a===P(e.t,t)?(O(e),e.o[t]=R(e.A.h,a,e)):a},has:function(e,t){return t in p(e)},ownKeys:function(e){return Reflect.ownKeys(p(e))},set:function(e,t,r){var n=T(p(e),t);if(null==n?void 0:n.set)return n.set.call(e.k,r),!0;if(!e.P){var i=P(p(e),t),o=null==i?void 0:i[H];if(o&&o.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(c(r,i)&&(void 0!==r||l(e.t,t)))return!0;O(e),I(e)}return e.o[t]===r&&(void 0!==r||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==P(e.t,t)||t in e.t?(e.R[t]=!1,O(e),I(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=p(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty:function(){n(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){n(12)}},G={};a(K,function(e,t){G[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),G.deleteProperty=function(e,t){return G.set.call(this,e,t,void 0)},G.set=function(e,t,r){return K.set.call(this,e[0],t,r,e[0])};var X=new(function(){function e(e){var t=this;this.O=B,this.D=!0,this.produce=function(e,r,i){if("function"==typeof e&&"function"!=typeof r){var a,s=r;return r=e,function(e){var n=this;void 0===e&&(e=s);for(var i=arguments.length,o=Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return t.produce(e,function(e){var t;return(t=r).call.apply(t,[n,e].concat(o))})}}if("function"!=typeof r&&n(6),void 0!==i&&"function"!=typeof i&&n(7),o(e)){var l=S(t),u=R(t,e,void 0),c=!0;try{a=r(u),c=!1}finally{c?_(l):w(l)}return"u">typeof Promise&&a instanceof Promise?a.then(function(e){return b(l,i),E(e,l)},function(e){throw _(l),e}):(b(l,i),E(a,l))}if(!e||"object"!=typeof e){if(void 0===(a=r(e))&&(a=e),a===Y&&(a=void 0),t.D&&m(a,!0),i){var d=[],f=[];y("Patches").M(e,a,d,f),i(d,f)}return a}n(21,e)},this.produceWithPatches=function(e,r){if("function"==typeof e)return function(r){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return t.produceWithPatches(r,function(t){return e.apply(void 0,[t].concat(i))})};var n,i,o=t.produce(e,r,function(e,t){n=e,i=t});return"u">typeof Promise&&o instanceof Promise?o.then(function(e){return[e,n,i]}):[o,n,i]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}
1var t=e.prototype;return t.createDraft=function(e){o(e)||n(8),i(e)&&(i(t=e)||n(22,t),e=function e(t){if(!o(t))return t;var r,n=t[H],i=s(t);if(n){if(!n.P&&(n.i<4||!y("ES5").K(n)))return n.t;n.I=!0,r=N(t,i),n.I=!1}else r=N(t,i);return a(r,function(t,i){var o;n&&(o=n.t,(2===s(o)?o.get(t):o[t])===i)||u(r,t,e(i))}),3===i?new Set(r):r}(t));var t,r=S(this),l=R(this,e,void 0);return l[H].C=!0,w(r),l},t.finishDraft=function(e,t){var r=(e&&e[H]).A;return b(r,t),E(void 0,r)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!B&&n(20),this.O=e},t.applyPatches=function(e,t){for(r=t.length-1;r>=0;r--){var r,n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));var o=y("Patches").$;return i(e)?o(e,t):this.produce(e,function(e){return o(e,t)})},e}()),J=X.produce;function Z(e){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(r),!0).forEach(function(t){!function(e,t,r){var n;(n=function(e,t){if("object"!=Z(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Z(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Z(n)?n:n+"")in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function et(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}X.produceWithPatches.bind(X),X.setAutoFreeze.bind(X),X.setUseProxies.bind(X),X.applyPatches.bind(X),X.createDraft.bind(X),X.finishDraft.bind(X);var er="function"==typeof Symbol&&Symbol.observable||"@@observable",en=function(){return Math.random().toString(36).substring(7).split("").join(".")},ei={INIT:"@@redux/INIT"+en(),REPLACE:"@@redux/REPLACE"+en(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+en()}};function eo(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function ea(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw Error(et(15))},i={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},o=t.map(function(e){return e(i)});return n=eo.apply(void 0,o)(r.dispatch),ee(ee({},r),{},{dispatch:n})}}}function es(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(i){return"function"==typeof i?i(r,n,e):t(i)}}}}var el=es();el.withExtraArgument=es,r(50839);var eu=(L=function(e,t){return(L=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}L(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),ec=function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){var l=[o,s];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&l[0]?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,n=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){a.label=l[1];break}if(6===l[0]&&a.label<i[1]){a.label=i[1],i=l;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(l);break}i[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],n=0}finally{r=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}},ed=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},ef=Object.defineProperty,ep=Object.defineProperties,eh=Object.getOwnPropertyDescriptors,em=Object.getOwnPropertySymbols,ev=Object.prototype.hasOwnProperty,eg=Object.prototype.propertyIsEnumerable,ey=function(e,t,r){return t in e?ef(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},eb=function(e,t){for(var r in t||(t={}))ev.call(t,r)&&ey(e,r,t[r]);if(em)for(var n=0,i=em(t);n<i.length;n++){var r=i[n];eg.call(t,r)&&ey(e,r,t[r])}return e},e_=function(e,t){return ep(e,eh(t))},ew="u">typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?eo:eo.apply(null,arguments)};function eS(e,t){function r(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(t){var i=t.apply(void 0,r);if(!i)throw Error("prepareAction did not return an object");return eb(eb({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:r[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(t){return t.type===e},r}"u">typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var ex=function(e){function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return eu(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t}
1,enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,ed([void 0],e[0].concat(this)))):new(t.bind.apply(t,ed([void 0],e.concat(this))))},t}(Array),eE=function(e){function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return eu(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,ed([void 0],e[0].concat(this)))):new(t.bind.apply(t,ed([void 0],e.concat(this))))},t}(Array);function ek(e){return o(e)?J(e,function(){}):e}function eC(e){var t,r=function(e){var t,r,n,i;return void 0===(t=e)&&(t={}),n=void 0===(r=t.thunk)||r,i=(t.immutableCheck,t.serializableCheck,t.actionCreatorCheck,new ex),n&&("boolean"==typeof n?i.push(el):i.push(el.withExtraArgument(n.extraArgument))),i},n=e||{},i=n.reducer,o=void 0===i?void 0:i,a=n.middleware,s=void 0===a?r():a,l=n.devTools,u=void 0===l||l,c=n.preloadedState,d=n.enhancers,f=void 0===d?void 0:d;if("function"==typeof o)t=o;else if(function(e){if("object"!=typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var r=t;null!==Object.getPrototypeOf(r);)r=Object.getPrototypeOf(r);return t===r}(o))t=function(e){for(var t,r=Object.keys(e),n={},i=0;i<r.length;i++){var o=r[i];"function"==typeof e[o]&&(n[o]=e[o])}var a=Object.keys(n);try{Object.keys(n).forEach(function(e){var t=n[e];if(void 0===t(void 0,{type:ei.INIT}))throw Error(et(12));if(void 0===t(void 0,{type:ei.PROBE_UNKNOWN_ACTION()}))throw Error(et(13))})}catch(e){t=e}return function(e,r){if(void 0===e&&(e={}),t)throw t;for(var i=!1,o={},s=0;s<a.length;s++){var l=a[s],u=n[l],c=e[l],d=u(c,r);if(void 0===d)throw r&&r.type,Error(et(14));o[l]=d,i=i||d!==c}return(i=i||a.length!==Object.keys(e).length)?o:e}}(o);else throw Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var p=s;"function"==typeof p&&(p=p(r));var h=ea.apply(void 0,p),m=eo;u&&(m=ew(eb({trace:!1},"object"==typeof u&&u)));var v=new eE(h),g=v;return Array.isArray(f)?g=ed([h],f):"function"==typeof f&&(g=f(v)),function e(t,r,n){if("function"==typeof r&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw Error(et(0));if("function"==typeof r&&void 0===n&&(n=r,r=void 0),void 0!==n){if("function"!=typeof n)throw Error(et(1));return n(e)(t,r)}if("function"!=typeof t)throw Error(et(2));var i,o=t,a=r,s=[],l=s,u=!1;function c(){l===s&&(l=s.slice())}function d(){if(u)throw Error(et(3));return a}function f(e){if("function"!=typeof e)throw Error(et(4));if(u)throw Error(et(5));var t=!0;return c(),l.push(e),function(){if(t){if(u)throw Error(et(6));t=!1,c();var r=l.indexOf(e);l.splice(r,1),s=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw Error(et(7));if(void 0===e.type)throw Error(et(8));if(u)throw Error(et(9));try{u=!0,a=o(a,e)}finally{u=!1}for(var t=s=l,r=0;r<t.length;r++)(0,t[r])();return e}return p({type:ei.INIT}),(i={dispatch:p,subscribe:f,getState:d,replaceReducer:function(e){if("function"!=typeof e)throw Error(et(10));o=e,p({type:ei.REPLACE})}})[er]=function(){var e;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw Error(et(11));function t(){e.next&&e.next(d())}return t(),{unsubscribe:f(t)}}})[er]=function(){return this},e},i}(t,void 0===c?void 0:c,m.apply(void 0,g))}function eA(e){var t,r={},n=[],i={addCase:function(e,t){var n="string"==typeof e?e:e.type;if(!n)throw Error("`builder.addCase` cannot be called with an empty action type");if(n in r)throw Error("`builder.addCase` cannot be called with two reducers for the same action type");return r[n]=t,i},addMatcher:function(e,t){return n.push({matcher:e,reducer:t}),i},addDefaultCase:function(e){return t=e,i}};return e(i),[r,n,t]}function eP(e){var t,r=e.name;if(!r)throw Error("`name` is a required option for createSlice");var n="function"==typeof e.initialState?e.initialState:ek(e.initialState),a=e.reducers||{},s=Object.keys(a),l={},u={},c={};function d(){var t="function"==typeof e.extraReducers?eA(e.extraReducers):[e.extraReducers],r=t[0],a=t[1],s=void 0===a?[]:a,l=t[2],c=void 0===l?void 0:l,d=eb(eb({},void 0===r?{}:r),u);return function(e,t,r){void 0===r&&(r=[]);var n,a="function"==typeof t?eA(t):[t,r,void 0],s=a[0],l=a[1],u=a[2];if("function"==typeof e)n=function(){return ek(e())};else{var c=ek(e);n=function(){return c}}function d(e,t){void 0===e&&(e=n());var r=ed([s[t.type]],l.filter(function(e){return(0,e.matcher)(t)}).map(function(e){return e.reducer}));return 0===r.filter(function(e){return!!e}).length&&(r=[u]),r.reduce(function(e,r){if(r)if(i(e)){var n=r(e,t);return void 0===n?e:n}else{if(o(e))return J(e,function(e){return r(e,t)});var n=r(e,t);if(void 0===n){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return e},e)}return d.getInitialState=n,d}(n,function(e){for(var t in d)e.addCase(t,d[t]);for(var r=0;r<s.length;r++){var n=s[r];e.addMatcher(n.matcher,n.reducer)}c&&e.addDefaultCase(c)})}
1return s.forEach(function(e){var t,n,i=a[e],o=r+"/"+e;"reducer"in i?(t=i.reducer,n=i.prepare):t=i,l[e]=t,u[o]=t,c[e]=n?eS(o,n):eS(o)}),{name:r,reducer:function(e,r){return t||(t=d()),t(e,r)},actions:c,caseReducers:l,getInitialState:function(){return t||(t=d()),t.getInitialState()}}}var eT=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},eI=["name","message","stack","code"],eO=function(e,t){this.payload=e,this.meta=t},eR=function(e,t){this.payload=e,this.meta=t},eN=function(e){if("object"==typeof e&&null!==e){for(var t={},r=0;r<eI.length;r++){var n=eI[r];"string"==typeof e[n]&&(t[n]=e[n])}return t}return{message:String(e)}},eL=function(){function e(e,t,r){var n=eS(e+"/fulfilled",function(e,t,r,n){return{payload:e,meta:e_(eb({},n||{}),{arg:r,requestId:t,requestStatus:"fulfilled"})}}),i=eS(e+"/pending",function(e,t,r){return{payload:void 0,meta:e_(eb({},r||{}),{arg:t,requestId:e,requestStatus:"pending"})}}),o=eS(e+"/rejected",function(e,t,n,i,o){return{payload:i,error:(r&&r.serializeError||eN)(e||"Rejected"),meta:e_(eb({},o||{}),{arg:n,requestId:t,rejectedWithValue:!!i,requestStatus:"rejected",aborted:(null==e?void 0:e.name)==="AbortError",condition:(null==e?void 0:e.name)==="ConditionError"})}}),a="u">typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){},e}();return Object.assign(function(e){return function(s,l,u){var c,d=(null==r?void 0:r.idGenerator)?r.idGenerator(e):eT(),f=new a;function p(e){c=e,f.abort()}var h=function(){var a,h;return a=this,h=function(){var a,h,m,v,g,y;return ec(this,function(b){switch(b.label){case 0:var _;if(b.trys.push([0,4,,5]),null===(_=v=null==(a=null==r?void 0:r.condition)?void 0:a.call(r,e,{getState:l,extra:u}))||"object"!=typeof _||"function"!=typeof _.then)return[3,2];return[4,v];case 1:v=b.sent(),b.label=2;case 2:if(!1===v||f.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return g=new Promise(function(e,t){return f.signal.addEventListener("abort",function(){return t({name:"AbortError",message:c||"Aborted"})})}),s(i(d,e,null==(h=null==r?void 0:r.getPendingMeta)?void 0:h.call(r,{requestId:d,arg:e},{getState:l,extra:u}))),[4,Promise.race([g,Promise.resolve(t(e,{dispatch:s,getState:l,extra:u,requestId:d,signal:f.signal,abort:p,rejectWithValue:function(e,t){return new eO(e,t)},fulfillWithValue:function(e,t){return new eR(e,t)}})).then(function(t){if(t instanceof eO)throw t;return t instanceof eR?n(t.payload,d,e,t.meta):n(t,d,e)})])];case 3:return m=b.sent(),[3,5];case 4:return m=(y=b.sent())instanceof eO?o(null,d,e,y.payload,y.meta):o(y,d,e),[3,5];case 5:return r&&!r.dispatchConditionRejection&&o.match(m)&&m.meta.condition||s(m),[2,m]}})},new Promise(function(e,t){var r=function(e){try{i(h.next(e))}catch(e){t(e)}},n=function(e){try{i(h.throw(e))}catch(e){t(e)}},i=function(t){return t.done?e(t.value):Promise.resolve(t.value).then(r,n)};i((h=h.apply(a,null)).next())})}();return Object.assign(h,{abort:p,requestId:d,arg:e,unwrap:function(){return h.then(eD)}})}},{pending:i,rejected:o,fulfilled:n,typePrefix:e})}return e.withTypes=function(){return e},e}();function eD(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var eM="listenerMiddleware";eS(eM+"/add"),eS(eM+"/removeAll"),eS(eM+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("u">typeof window?window:void 0!==r.g?r.g:globalThis),"u">typeof window&&window.requestAnimationFrame&&window.requestAnimationFrame,function(){function e(e,t){var r=o[e];return r?r.enumerable=t:o[e]=r={configurable:!0,enumerable:t,get:function(){var t=this[H];return K.get(t,e)},set:function(t){var r=this[H];K.set(r,e,t)}},r}function t(e){for(var t=e.length-1;t>=0;t--){var i=e[t][H];if(!i.P)switch(i.i){case 5:n(i)&&I(i);break;case 4:r(i)&&I(i)}}}function r(e){for(var t=e.t,r=e.k,n=z(r),i=n.length-1;i>=0;i--){var o=n[i];if(o!==H){var a=t[o];if(void 0===a&&!l(t,o))return!0;var s=r[o],u=s&&s[H];if(u?u.t!==a:!c(s,a))return!0}}var d=!!t[H];return n.length!==z(t).length+ +!d}function n(e){var t=e.k;if(t.length!==e.t.length)return!0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);if(r&&!r.get)return!0;for(var n=0;n<t.length;n++)if(!t.hasOwnProperty(n))return!0;return!1}var o={};W.ES5||(W.ES5={J:function(t,r){var n=Array.isArray(t),i=function(t,r){if(t){for(var n=Array(r.length),i=0;i<r.length;i++)Object.defineProperty(n,""+i,e(i,!0));return n}var o=q(r);delete o[H];for(var a=z(o),s=0;s<a.length;s++){var l=a[s];o[l]=e(l,t||!!o[l].enumerable)}return Object.create(Object.getPrototypeOf(r),o)}(n,t),o={i:n?5:4,A:r?r.A:M,P:!1,I:!1,R:{},l:r,t:t,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,H,{value:o,writable:!0}),i},S:function(e,r,o){o?i(r)&&r[H].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var r=t[H];if(r){var i=r.t,o=r.k,s=r.R,u=r.i;if(4===u)a(o,function(t){t!==H&&(void 0!==i[t]||l(i,t)?s[t]||e(o[t]):(s[t]=!0,I(r)))}),a(i,function(e){void 0!==o[e]||l(o,e)||(s[e]=!1,I(r))});else if(5===u){if(n(r)&&(I(r),s.length=!0),o.length<i.length)for(var c=o.length;c<i.length;c++)s[c]=!1;else for(var d=i.length;d<o.length;d++)s[d]=!0;for(var f=Math.min(o.length,i.length),p=0;p<f;p++)o.hasOwnProperty(p)||(s[p]=!0),void 0===s[p]&&e(o[p])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?r(e):n(e)}})}()},5960:(e,t,r)=>{"use strict";r.d(t,{$i:()=>d,GQ:()=>c,SP:()=>l,zF:()=>f});var n=r(27804),i=r(45477),o=r(81025),a=r(19444),s=r(50839);i.Hl.WEBVIEW_MODO;let l=n.A.create({baseURL:(0,a.Bd)()?(0,a.lh)("API_BASE_PROMOS_URL_BFF",s.env.API_BASE_PROMOS_URL_BFF):""});l?.interceptors.request.use(function(e){let t=(0,o.Id)();return e.headers["x-auth-application"]=t,e},function(e){return e});let u=[null,void 0,""],c=(e={})=>Object.fromEntries(Object.entries(e).filter(([,e])=>!u.includes(e))),d=async(e,t,r)=>{let{data:n}=await l.get(`${r}/slots/web-modo-hub-carrousel_principal`,{params:c(e),signal:t});return n},f=async()=>{let e=(0,o.Id)();try{let{data:t}=await l.get("/banks/sdk",{params:c(),headers:{"x-auth-application":e}}).catch(function(e){console.error(e)});return t}catch(e){console.error(e)}}},6171:e=>{e.exports={"color-variant-pay-default":"styles_color-variant-pay-default__cDXGD","color-variant-pay-dark":"styles_color-variant-pay-dark__WNpDJ","color-variant-pay-10":"styles_color-variant-pay-10__rCCUE","color-variant-send-default":"styles_color-variant-send-default__UDTAI","color-variant-send-dark":"styles_color-variant-send-dark__cARi_","color-variant-send-10":"styles_color-variant-send-10__kVdk9","color-variant-blue-cross-dark":"styles_color-variant-blue-cross-dark__StfWz","color-variant-black":"styles_color-variant-black__HgxKk","color-variant-gray-80":"styles_color-variant-gray-80__YvcrF","color-variant-white":"styles_color-variant-white__RYpjB","color-variant-reward-default":"styles_color-variant-reward-default__WwegZ","color-variant-reward-light":"styles_color-variant-reward-light__qRhso","color-variant-grey-03":"styles_color-variant-grey-03__k_m_C","color-variant-full-white":"styles_color-variant-full-white__HZq2J","color-variant-transparent":"styles_color-variant-transparent__FCCyW",root:"styles_root__kqKSr","variant-rectangle":"styles_variant-rectangle__Uh9xB","variant-square":"styles_variant-square__kt8f8",asset:"styles_asset__Mo3Pz",title:"styles_title__oCXMk",text:"styles_text__Ih__a"}},6537:e=>{e.exports={"color-variant-pay-default":"styles_color-variant-pay-default__3PO_8","color-variant-pay-dark":"styles_color-variant-pay-dark__R6Iqg","color-variant-pay-10":"styles_color-variant-pay-10__8Mfkl","color-variant-send-default":"styles_color-variant-send-default__1QarV","color-variant-send-dark":"styles_color-variant-send-dark__O_4OE","color-variant-send-10":"styles_color-variant-send-10__N2MwB","color-variant-blue-cross-dark":"styles_color-variant-blue-cross-dark__2WGlv","color-variant-black":"styles_color-variant-black__lY8Ct","color-variant-gray-80":"styles_color-variant-gray-80__PSApl","color-variant-white":"styles_color-variant-white__a4IIo","color-variant-reward-default":"styles_color-variant-reward-default__asw73","color-variant-reward-light":"styles_color-variant-reward-light__XH_il","color-variant-grey-03":"styles_color-variant-grey-03__udilR","color-variant-full-white":"styles_color-variant-full-white__eUN4r","color-variant-transparent":"styles_color-variant-transparent__iTdfN",root:"styles_root__a_bx4",controls:"styles_controls__mRbVj",content:"styles_content__blShb",cards:"styles_cards__s162C",data:"styles_data__d3Qtl",title:"styles_title__vZPuf",text:"styles_text__5VNIe"}},6730:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>d,CE:()=>b,Dv:()=>p,Pl:()=>m,RQ:()=>f,Vh:()=>y,Zb:()=>v,jf:()=>_,li:()=>g,nA:()=>h});
1var n=r(5173),i=r(99554),o=r(89747);let a={stores:[],paginationStores:{page:0,page_results:0,total_pages:0},promos:[],spotlightStores:[],isStoresLoading:!0,isPromosLoading:!0,isSpotlightStoresLoading:!0,storesByType:{},storeSummaryByPromoId:{}},s=(0,n.Z0)({name:"Stores",initialState:a,reducers:{setLoading:(e,t)=>{e.isStoresLoading=t.payload},setPromosLoading:(e,t)=>{e.isPromosLoading=t.payload},setSpotlightStores:(e,t)=>{e.isSpotlightStoresLoading=t.payload}},extraReducers:e=>{e.addCase(o.hO.pending,e=>{e.isStoresLoading=!0}),e.addCase(o.hO.fulfilled,(e,t)=>{e.stores=t.payload.stores,e.paginationStores=t.payload.pagination,e.isStoresLoading=!1}),e.addCase(o.hO.rejected,e=>{e.stores=[],e.paginationStores=a.paginationStores,e.isStoresLoading=!1}),e.addCase(o.CC.pending,e=>{e.isPromosLoading=!0}),e.addCase(o.CC.fulfilled,(e,t)=>{e.promos=t.payload.cards,e.isPromosLoading=!1}),e.addCase(o.CC.rejected,e=>{e.promos=[],e.isPromosLoading=!1}),e.addCase(o.fW.pending,e=>{e.isSpotlightStoresLoading=!0}),e.addCase(o.fW.fulfilled,(e,t)=>{e.spotlightStores=t.payload,e.isSpotlightStoresLoading=!1}),e.addCase(o.fW.rejected,e=>{e.spotlightStores=[],e.isSpotlightStoresLoading=!1}),e.addCase(i.cH.pending,(e,t)=>{let r=t.meta.arg.promoId;e.storeSummaryByPromoId[r]={...e.storeSummaryByPromoId[r],isLoading:!0,error:!1}}),e.addCase(i.cH.fulfilled,(e,t)=>{let r=t.meta.arg.promoId;e.storeSummaryByPromoId[r]={...e.storeSummaryByPromoId[r],data:t?.payload?.summary,isLoading:!1,error:!1}}),e.addCase(i.cH.rejected,(e,t)=>{let r=t.meta.arg.promoId;e.storeSummaryByPromoId[r]={...e.storeSummaryByPromoId[r],isLoading:!1,error:!0}});let t=(e,t)=>{let r=t.meta.arg.promoId;e.storesByType[r]={...e.storesByType[r],isLoading:!0,error:!1}},r=(e,t)=>{var r,n,i,o,a;let s=t.meta.arg.promoId,l=t?.payload?.type,u=t?.payload?.results?.length>0?t?.payload?.results:[],c=(r=e,n=s,!(r.storesByType[n]?.data?.results?.length>0)||(i=e,o=s,a=l,i.storesByType[o].type!==a)||w(t)),d=c?[]:e?.storesByType[s]?.data?.results,f=c?{page:1,total_pages:t?.payload?.pagination?.total_pages}:t?.payload?.pagination;e.storesByType[s]={...e.storesByType[s],data:{pagination:f,results:[...d,...u]},type:l,isFromSearch:w(t),isLoading:!1,error:!1}},n=(e,t)=>{let r=t.meta.arg.promoId;e.storesByType[r]={...e.storesByType[r],isLoading:!1,error:!0}};e.addCase(i.kt.pending,t),e.addCase(i.kt.fulfilled,r),e.addCase(i.kt.rejected,n),e.addCase(i.NK.pending,t),e.addCase(i.NK.fulfilled,r),e.addCase(i.NK.rejected,n)}}),{setLoading:l,setPromosLoading:u,setSpotlightStores:c}=s.actions,d=s.reducer;function f(e){return e.storesReducer.isStoresLoading}function p(e){return e.storesReducer.stores}function h(e){return e.storesReducer.paginationStores}function m(e){return e.storesReducer.isPromosLoading}function v(e){return e.storesReducer.promos}function g(e){return e.storesReducer.isSpotlightStoresLoading}function y(e){return e.storesReducer.spotlightStores}function b(e){return e.storesReducer.storesByType}function _(e){return e.storesReducer.storeSummaryByPromoId}function w(e){return e.payload?.isFromSearch}},7160:(e,t,r)=>{"use strict";r.d(t,{B4:()=>i,KP:()=>o});var n=r(72223);function i(e=1){let[t,r]=(0,n.useState)(!1),[o,a]=(0,n.useState)(null),s=(0,n.useCallback)(e=>{null!==e&&a(e)},[]);return(0,n.useEffect)(()=>{if(o&&!t){let t=new IntersectionObserver(([e])=>{e.isIntersecting&&r(!0)},{threshold:e});return t.observe(o),()=>{t.disconnect()}}},[t,o]),[t,s]}function o(e){let[t,r]=(0,n.useState)(!1),[i,o]=(0,n.useState)(null),a=(0,n.useCallback)(e=>{null!==e&&o(e)},[]);return(0,n.useEffect)(()=>{let t=new IntersectionObserver(e=>{e.forEach(e=>{r(e.isIntersecting)})},{threshold:1,...e});if(i)return t.observe(i),()=>{t.unobserve(i)}},[i,e?.threshold,e?.root,e?.rootMargin]),[t,a]}},8114:(e,t,r)=>{"use strict";r.d(t,{H:()=>i,Y:()=>o});let n={hasGeolocation:!1,lat:null,lng:null},i=async()=>{try{if(!navigator.geolocation)return n;return await new Promise((e,t)=>navigator.geolocation.getCurrentPosition(t=>e({hasGeolocation:!0,lat:t.coords.latitude,lng:t.coords.longitude}),t,{enableHighAccuracy:!0,timeout:5e3,maximumAge:1e4}))}catch(e){return n}},o=e=>{let t=Number(e);return!e||isNaN(t)||t<.001?"0m":t<=1e3?`${t.toFixed(0)}m`:`${(t/1e3).toFixed(1)}km`}},9092:(e,t,r)=>{"use strict";r.d(t,{h:()=>o});var n=r(5173),i=r(27209);let o=(0,n.zD)("promotions/getBankPromotions",async({bankIds:e,apiUrl:t,source:r,sessionToken:n})=>await (0,i.cb)({apiUrl:t,source:r,sessionToken:n}))},9313:e=>{e.exports={root:"styles_root__t8KRl",item:"styles_item__4dhzI",title:"styles_title__GhI_J",text:"styles_text__KSU73",images:"styles_images__cDfxm",image:"styles_image__7DGX_"}},9456:(e,t,r)=>{"use strict";e.exports=r(1092)},9723:(e,t,r)=>{"use strict";let n,i,o,a,s,l,u;r.d(t,{rF:()=>o7,iP:()=>o9,eO:()=>o0,aN:()=>o3,$n:()=>oi,Ak:()=>on,qJ:()=>sc,n9:()=>x,wi:()=>ss,Ni:()=>o$,NO:()=>
1oK,_V:()=>o_,Fp:()=>aN,CU:()=>sb,TO:()=>am,wN:()=>sP,U_:()=>a1,QB:()=>au,YQ:()=>si,_M:()=>se,KG:()=>ar,rz:()=>ay,_D:()=>aB,L:()=>aF,NP:()=>T,ag:()=>sf});var c,d,f,p,h,m,v,g,y,b,_,w,S,x=((c={}).PAY_DEFAULT="pay-default",c.PAY_DARK="pay-dark",c.PAY10="pay-10",c.SEND_DEFAULT="send-default",c.SEND_DARK="send-dark",c.SEND10="send-10",c.BLUE_CROSS_DARK="blue-cross-dark",c.BLACK="black",c.GREY03="grey-03",c.GRAY80="gray-80",c.WHITE="white",c.TRANSPARENT="transparent",c.REWARD_DEFAULT="reward-default",c.REWARD_LIGHT="reward-light",c),E=r(59827),k=r(72223),C=r(21379),A=r(55713),P=r.n(A);let T=({children:e,cssVarsOverrides:t=""})=>(0,E.Y)("div",{className:(0,C.XS)(P().root,t),"data-testid":"theme-provider",children:e});r(59077),r(38610);let I=(0,k.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),O=(0,k.createContext)({}),R=(0,k.createContext)(null),N="u">typeof document,L=N?k.useLayoutEffect:k.useEffect,D=(0,k.createContext)({strict:!1}),M=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),F="data-"+M("framerAppearId");function j(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function U(e){return"string"==typeof e||Array.isArray(e)}function B(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}let Y=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],V=["initial",...Y];function H(e){return B(e.animate)||V.some(t=>U(e[t]))}function $(e){return!!(H(e)||e.variants)}function z(e){return Array.isArray(e)?e.join(" "):e}let q={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},W={};for(let e in q)W[e]={isEnabled:t=>q[e].some(e=>!!t[e])};let K=(0,k.createContext)({}),G=(0,k.createContext)({}),X=Symbol.for("motionComponentSymbol"),J=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Z(e){if("string"!=typeof e||e.includes("-"));else if(J.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let Q={},ee=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],et=new Set(ee);function er(e,{layout:t,layoutId:r}){return et.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!Q[e]||"opacity"===e)}let en=e=>!!(e&&e.getVelocity),ei={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eo=ee.length,ea=e=>t=>"string"==typeof t&&t.startsWith(e),es=ea("--"),el=ea("var(--"),eu=(e,t)=>t&&"number"==typeof e?t.transform(e):e,ec=(e,t,r)=>Math.min(Math.max(r,e),t),ed={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ef={...ed,transform:e=>ec(0,1,e)},ep={...ed,default:1},eh=e=>Math.round(1e5*e)/1e5,em=/(-)?([\d]*\.?[\d])+/g,ev=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,eg=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ey(e){return"string"==typeof e}let eb=e=>({test:t=>ey(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),e_=eb("deg"),ew=eb("%"),eS=eb("px"),ex=eb("vh"),eE=eb("vw"),ek={...ew,parse:e=>ew.parse(e)/100,transform:e=>ew.transform(100*e)},eC={...ed,transform:Math.round},eA={borderWidth:eS,borderTopWidth:eS,borderRightWidth:eS,borderBottomWidth:eS,borderLeftWidth:eS,borderRadius:eS,radius:eS,borderTopLeftRadius:eS,borderTopRightRadius:eS,borderBottomRightRadius:eS,borderBottomLeftRadius:eS,width:eS,maxWidth:eS,height:eS,maxHeight:eS,size:eS,top:eS,right:eS,bottom:eS,left
1:eS,padding:eS,paddingTop:eS,paddingRight:eS,paddingBottom:eS,paddingLeft:eS,margin:eS,marginTop:eS,marginRight:eS,marginBottom:eS,marginLeft:eS,rotate:e_,rotateX:e_,rotateY:e_,rotateZ:e_,scale:ep,scaleX:ep,scaleY:ep,scaleZ:ep,skew:e_,skewX:e_,skewY:e_,distance:eS,translateX:eS,translateY:eS,translateZ:eS,x:eS,y:eS,z:eS,perspective:eS,transformPerspective:eS,opacity:ef,originX:ek,originY:ek,originZ:eS,zIndex:eC,fillOpacity:ef,strokeOpacity:ef,numOctaves:eC};function eP(e,t,r,n){let{style:i,vars:o,transform:a,transformOrigin:s}=e,l=!1,u=!1,c=!0;for(let e in t){let r=t[e];if(es(e)){o[e]=r;continue}let n=eA[e],d=eu(r,n);if(et.has(e)){if(l=!0,a[e]=d,!c)continue;r!==(n.default||0)&&(c=!1)}else e.startsWith("origin")?(u=!0,s[e]=d):i[e]=d}if(!t.transform&&(l||n?i.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let o="";for(let t=0;t<eo;t++){let r=ee[t];if(void 0!==e[r]){let t=ei[r]||r;o+=`${t}(${e[r]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,n?"":o):r&&n&&(o="none"),o}(e.transform,r,c,n):i.transform&&(i.transform="none")),u){let{originX:e="50%",originY:t="50%",originZ:r=0}=s;i.transformOrigin=`${e} ${t} ${r}`}}let eT=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eI(e,t,r){for(let n in t)en(t[n])||er(n,r)||(e[n]=t[n])}let eO=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function eR(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||eO.has(e)}let eN=e=>!eR(e);try{(d=require("@emotion/is-prop-valid").default)&&(eN=e=>e.startsWith("on")?!eR(e):d(e))}catch(e){}function eL(e,t,r){return"string"==typeof e?e:eS.transform(t+r*e)}let eD={offset:"stroke-dashoffset",array:"stroke-dasharray"},eM={offset:"strokeDashoffset",array:"strokeDasharray"};function eF(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d,f){let p,h;if(eP(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:m,style:v,dimensions:g}=e;m.transform&&(g&&(v.transform=m.transform),delete m.transform),g&&(void 0!==i||void 0!==o||v.transform)&&(p=eL(void 0!==i?i:.5,g.x,g.width),h=eL(void 0!==o?o:.5,g.y,g.height),v.transformOrigin=`${p} ${h}`),void 0!==t&&(m.x=t),void 0!==r&&(m.y=r),void 0!==n&&(m.scale=n),void 0!==a&&function(e,t,r=1,n=0,i=!0){e.pathLength=1;let o=i?eD:eM;e[o.offset]=eS.transform(-n);let a=eS.transform(t),s=eS.transform(r);e[o.array]=`${a} ${s}`}(m,a,s,l,!1)}let ej=()=>({...eT(),attrs:{}}),eU=e=>"string"==typeof e&&"svg"===e.toLowerCase();function eB(e,{style:t,vars:r},n,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(n)),r)e.style.setProperty(o,r[o])}let eY=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function eV(e,t,r,n){for(let r in eB(e,t,void 0,n),t.attrs)e.setAttribute(eY.has(r)?r:M(r),t.attrs[r])}function eH(e,t){let{style:r}=e,n={};for(let i in r)(en(r[i])||t.style&&en(t.style[i])||er(i,e))&&(n[i]=r[i]);return n}function e$(e,t){let r=eH(e,t);for(let n in e)(en(e[n])||en(t[n]))&&(r[-1!==ee.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}function ez(e,t,r,n={},i={}){return"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),t}function eq(e){let t=(0,k.useRef)(null);return null===t.current&&(t.current=e()),t.current}let eW=e=>Array.isArray(e),eK=e=>eW(e)?e[e.length-1]||0:e;function eG(e){let t=en(e)?e.get():e;return t&&"object"==typeof t&&t.mix&&t.toValue?t.toValue():t}let eX=e=>(t,r)=>{let n=(0,k.useContext)(O),i=(0,k.useContext)(R),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){let a={latestValues:function(e,t,r,n){let i={},o=n(e,{});for(let e in o)i[e]=eG(o[e]);let{initial:a,animate:s}=e,l=H(e),u=$(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!r&&!1===r.initial,d=(c=c||!1===a)?s:a;return d&&"boolean"!=typeof d&&!B(d)&&(Array.isArray(d)?d:[d]).forEac
1h(t=>{let r=ez(e,t);if(!r)return;let{transitionEnd:n,transition:o,...a}=r;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in n)i[e]=n[e]}),i}(n,i,o,e),renderState:t()};return r&&(a.mount=e=>r(n,e,a)),a})(e,t,n,i);return r?o():eq(o)},eJ=e=>e;class eZ{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){let t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}let eQ=["prepare","read","update","preRender","render","postRender"],{schedule:e0,cancel:e1,state:e2,steps:e3}=(f="u">typeof requestAnimationFrame?requestAnimationFrame:eJ,n=!1,i=!0,o={delta:0,timestamp:0,isProcessing:!1},a=eQ.reduce((e,t)=>{var r;let i,o,a,s,l,u,c;return e[t]=(r=()=>n=!0,i=new eZ,o=new eZ,a=0,s=!1,l=!1,u=new WeakSet,c={schedule:(e,t=!1,r=!1)=>{let n=r&&s,l=n?i:o;return t&&u.add(e),l.add(e)&&n&&s&&(a=i.order.length),e},cancel:e=>{o.remove(e),u.delete(e)},process:e=>{if(s){l=!0;return}if(s=!0,[i,o]=[o,i],o.clear(),a=i.order.length)for(let t=0;t<a;t++){let n=i.order[t];n(e),u.has(n)&&(c.schedule(n),r())}s=!1,l&&(l=!1,c.process(e))}}),e},{}),s=e=>a[e].process(o),l=()=>{let e=performance.now();n=!1,o.delta=i?1e3/60:Math.max(Math.min(e-o.timestamp,40),1),o.timestamp=e,o.isProcessing=!0,eQ.forEach(s),o.isProcessing=!1,n&&(i=!1,f(l))},{schedule:eQ.reduce((e,t)=>{let r=a[t];return e[t]=(e,t=!1,a=!1)=>(!n&&(n=!0,i=!0,o.isProcessing||f(l)),r.schedule(e,t,a)),e},{}),cancel:e=>eQ.forEach(t=>a[t].cancel(e)),state:o,steps:a}),e5={useVisualState:eX({scrapeMotionValuesFromProps:e$,createRenderState:ej,onMount:(e,t,{renderState:r,latestValues:n})=>{e0.read(()=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}}),e0.render(()=>{eF(r,n,{enableHardwareAcceleration:!1},eU(t.tagName),e.transformTemplate),eV(t,r)})}})},e4={useVisualState:eX({scrapeMotionValuesFromProps:eH,createRenderState:eT})};function e6(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}let e8=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function e9(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}function e7(e,t,r,n){return e6(e,t,e=>e8(e)&&r(e,e9(e)),n)}let te=(e,t)=>r=>t(e(r)),tt=(...e)=>e.reduce(te);function tr(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let tn=tr("dragHorizontal"),ti=tr("dragVertical");function to(e){let t=!1;if("y"===e)t=ti();else if("x"===e)t=tn();else{let e=tn(),r=ti();e&&r?t=()=>{e(),r()}
1:(e&&e(),r&&r())}return t}function ta(){let e=to(!0);return!e||(e(),!1)}class ts{constructor(e){this.isMounted=!1,this.node=e}update(){}}function tl(e,t){let r="onHover"+(t?"Start":"End");return e7(e.current,"pointer"+(t?"enter":"leave"),(n,i)=>{if("touch"===n.pointerType||ta())return;let o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t),o[r]&&e0.update(()=>o[r](n,i))},{passive:!e.getProps()[r]})}class tu extends ts{mount(){this.unmount=tt(tl(this.node,!0),tl(this.node,!1))}unmount(){}}class tc extends ts{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tt(e6(this.node.current,"focus",()=>this.onFocus()),e6(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let td=(e,t)=>!!t&&(e===t||td(e,t.parentElement));function tf(e,t){if(!t)return;let r=new PointerEvent("pointer"+e);t(r,e9(r))}class tp extends ts{constructor(){super(...arguments),this.removeStartListeners=eJ,this.removeEndListeners=eJ,this.removeAccessibleListeners=eJ,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();let r=this.node.getProps(),n=e7(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;let{onTap:r,onTapCancel:n,globalTapTarget:i}=this.node.getProps();e0.update(()=>{i||td(this.node.current,e.target)?r&&r(e,t):n&&n(e,t)})},{passive:!(r.onTap||r.onPointerUp)}),i=e7(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=tt(n,i),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=e=>{if("Enter"!==e.key||this.isPressing)return;let t=e=>{"Enter"===e.key&&this.checkPressEnd()&&tf("up",(e,t)=>{let{onTap:r}=this.node.getProps();r&&e0.update(()=>r(e,t))})};this.removeEndListeners(),this.removeEndListeners=e6(this.node.current,"keyup",t),tf("down",(e,t)=>{this.startPress(e,t)})},t=e6(this.node.current,"keydown",e),r=()=>{this.isPressing&&tf("cancel",(e,t)=>this.cancelPress(e,t))},n=e6(this.node.current,"blur",r);this.removeAccessibleListeners=tt(t,n)}}startPress(e,t){this.isPressing=!0;let{onTapStart:r,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&e0.update(()=>r(e,t))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ta()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:r}=this.node.getProps();r&&e0.update(()=>r(e,t))}mount(){let e=this.node.getProps(),t=e7(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=e6(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tt(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let th=new WeakMap,tm=new WeakMap,tv=e=>{let t=th.get(e.target);t&&t(e)},tg=e=>{e.forEach(tv)},ty={some:0,all:1};class tb extends ts{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.unmount();let{viewport:r={}}=this.node.getProps(),{root:n,margin:i,amount:o="some",once:a}=r,s={root:n?n.current:void 0,rootMargin:i,threshold:"number"==typeof o?o:ty[o]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),i=t?r:n;i&&i(e)};return e=this.node.current,t=function({root:e,...t}){let r=e||document;tm.has(r)||tm.set(r,{});let n=tm.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(tg,{root:e,...t})),n[i]}(s),th.set(e,l),t.observe(e),()=>{th.delete(e),t.unobserve(e)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}function t_(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function tw(e,t,r){let n,i,o=e.getProps();return ez(o,t,void 0!==r?r:o.custom,(n={}
1,e.values.forEach((e,t)=>n[t]=e.get()),n),(i={},e.values.forEach((e,t)=>i[t]=e.getVelocity()),i))}let tS=e=>1e3*e,tx=e=>Array.isArray(e)&&"number"==typeof e[0],tE=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,tk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tE([0,.65,.55,1]),circOut:tE([.55,0,1,.45]),backIn:tE([.31,.01,.66,-.59]),backOut:tE([.33,1.53,.69,.99])},tC=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function tA(e,t,r,n){return e===t&&r===n?eJ:i=>0===i||1===i?i:tC(function(e,t,r,n,i){let o,a,s=0;do(o=tC(a=t+(r-t)/2,n,i)-e)>0?r=a:t=a;while(Math.abs(o)>1e-7&&++s<12);return a}(i,0,1,e,r),t,n)}let tP=tA(.42,0,1,1),tT=tA(0,0,.58,1),tI=tA(.42,0,.58,1),tO=e=>Array.isArray(e)&&"number"!=typeof e[0],tR=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tN=e=>t=>1-e(1-t),tL=e=>1-Math.sin(Math.acos(e)),tD=tN(tL),tM=tR(tL),tF=tA(.33,1.53,.69,.99),tj=tN(tF),tU=tR(tj),tB={linear:eJ,easeIn:tP,easeInOut:tI,easeOut:tT,circIn:tL,circInOut:tM,circOut:tD,backIn:tj,backInOut:tU,backOut:tF,anticipate:e=>(e*=2)<1?.5*tj(e):.5*(2-Math.pow(2,-10*(e-1)))},tY=e=>{if(Array.isArray(e)){eJ(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return tA(t,r,n,i)}return"string"==typeof e?(eJ(void 0!==tB[e],`Invalid easing type '${e}'`),tB[e]):e},tV=(e,t)=>r=>!!(ey(r)&&eg.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),tH=(e,t,r)=>n=>{if(!ey(n))return n;let[i,o,a,s]=n.match(em);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},t$={...ed,transform:e=>Math.round(ec(0,255,e))},tz={test:tV("rgb","red"),parse:tH("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+t$.transform(e)+", "+t$.transform(t)+", "+t$.transform(r)+", "+eh(ef.transform(n))+")"},tq={test:tV("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:tz.transform},tW={test:tV("hsl","hue"),parse:tH("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+ew.transform(eh(t))+", "+ew.transform(eh(r))+", "+eh(ef.transform(n))+")"},tK={test:e=>tz.test(e)||tq.test(e)||tW.test(e),parse:e=>tz.test(e)?tz.parse(e):tW.test(e)?tW.parse(e):tq.parse(e),transform:e=>ey(e)?e:e.hasOwnProperty("red")?tz.transform(e):tW.transform(e)},tG=(e,t,r)=>-r*e+r*t+e;function tX(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}let tJ=(e,t,r)=>{let n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},tZ=[tq,tz,tW];function tQ(e){let t=tZ.find(t=>t.test(e));eJ(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===tW&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,o=0,a=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;i=tX(s,n,e+1/3),o=tX(s,n,e),a=tX(s,n,e-1/3)}else i=o=a=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}(r)),r}let t0=(e,t)=>{let r=tQ(e),n=tQ(t),i={...r};return e=>(i.red=tJ(r.red,n.red,e),i.green=tJ(r.green,n.green,e),i.blue=tJ(r.blue,n.blue,e),i.alpha=tG(r.alpha,n.alpha,e),tz.transform(i))}
1,t1={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:eJ},t2={regex:ev,countKey:"Colors",token:"${c}",parse:tK.parse},t3={regex:em,countKey:"Numbers",token:"${n}",parse:ed.parse};function t5(e,{regex:t,countKey:r,token:n,parse:i}){let o=e.tokenised.match(t);o&&(e["num"+r]=o.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...o.map(i)))}function t4(e){let t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&t5(r,t1),t5(r,t2),t5(r,t3),r}function t6(e){return t4(e).values}function t8(e){let{values:t,numColors:r,numVars:n,tokenised:i}=t4(e),o=t.length;return e=>{let t=i;for(let i=0;i<o;i++)t=i<n?t.replace(t1.token,e[i]):i<n+r?t.replace(t2.token,tK.transform(e[i])):t.replace(t3.token,eh(e[i]));return t}}let t9=e=>"number"==typeof e?0:e,t7={test:function(e){var t,r;return isNaN(e)&&ey(e)&&((null==(t=e.match(em))?void 0:t.length)||0)+((null==(r=e.match(ev))?void 0:r.length)||0)>0},parse:t6,createTransformer:t8,getAnimatableNone:function(e){let t=t6(e);return t8(e)(t.map(t9))}},re=(e,t)=>r=>`${r>0?t:e}`;function rt(e,t){return"number"==typeof e?r=>tG(e,t,r):tK.test(e)?t0(e,t):e.startsWith("var(")?re(e,t):ri(e,t)}let rr=(e,t)=>{let r=[...e],n=r.length,i=e.map((e,r)=>rt(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=i[t](e);return r}},rn=(e,t)=>{let r={...e,...t},n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=rt(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}},ri=(e,t)=>{let r=t7.createTransformer(t),n=t4(e),i=t4(t);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?tt(rr(n.values,i.values),r):(eJ(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),re(e,t))},ro=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n},ra=(e,t)=>r=>tG(e,t,r);function rs(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;if(eJ(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,r){let n=[],i=r||function(e){if("number"==typeof e);else if("string"==typeof e)return tK.test(e)?t0:ri;else if(Array.isArray(e))return rr;else if("object"==typeof e)return rn;return ra}(e[0]),o=e.length-1;for(let r=0;r<o;r++){let o=i(e[r],e[r+1]);t&&(o=tt(Array.isArray(t)?t[r]||eJ:t,o)),n.push(o)}return n}(t,n,i),s=a.length,l=t=>{let r=0;if(s>1)for(;r<e.length-2&&!(t<e[r+1]);r++);let n=ro(e[r],e[r+1],t);return a[r](n)};return r?t=>l(ec(e[0],e[o-1],t)):l}function rl(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let i=ro(0,t,n);e.push(tG(r,1,i))}}function ru(e){let t=[0];return rl(t,e.length-1),t}function rc({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){var i;let o=tO(n)?n.map(tY):tY(n),a={done:!1,value:t[0]},s=rs((i=r&&r.length===t.length?r:ru(t),i.map(t=>t*e)),t,{ease:Array.isArray(o)?o:t.map(()=>o||tI).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=s(t),a.done=t>=e,a)}}function rd(e,t,r){var n,i;let o=Math.max(t-5,0);return n=r-e(o),(i=t-o)?1e3/i*n:0}function rf(e,t){return e*Math.sqrt(1-t*t)}let rp=["duration","bounce"],rh=["stiffness","damping","mass"];function rm(e,t){return t.some(t=>void 0!==e[t])}function rv({keyframes:e,restDelta:t,restSpeed:r,...n}){let i,o=e[0],a=e[e.length-1],s={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!rm(e,rh)&&rm(e,rp)){let r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;eJ(e<=tS(10),"Spring duration must be 10 seconds or less");let a=1-t;a=ec(.05,1,a),e=ec(.01,10,e/1e3),a<1?(i=t=>{let n=t*a,i=n*e;return .001-(n-r)/rf(t,a)*Math.exp(-i)},o=t=>{let n=t*a*e,o=Math.pow(a,2)*Math.pow(t,2)*e,s=Math.exp(-n),l=rf(Math.pow(t,2),a);return(n*r+r-o)*s*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),o=t=>e*e*(r-t)*Math.exp(-t*e));let s=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,o,5/e);if(e=tS(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*n;
1return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}(e);(t={...t,...r,mass:1}).isResolvedFromDuration=!0}return t}({...n,velocity:-((n.velocity||0)/1e3)}),h=f||0,m=u/(2*Math.sqrt(l*c)),v=a-o,g=Math.sqrt(l/c)/1e3,y=5>Math.abs(v);if(r||(r=y?.01:2),t||(t=y?.005:.5),m<1){let e=rf(g,m);i=t=>a-Math.exp(-m*g*t)*((h+m*g*v)/e*Math.sin(e*t)+v*Math.cos(e*t))}else if(1===m)i=e=>a-Math.exp(-g*e)*(v+(h+g*v)*e);else{let e=g*Math.sqrt(m*m-1);i=t=>{let r=Math.exp(-m*g*t),n=Math.min(e*t,300);return a-r*((h+m*g*v)*Math.sinh(n)+e*v*Math.cosh(n))/e}}return{calculatedDuration:p&&d||null,next:e=>{let n=i(e);if(p)s.done=e>=d;else{let o=h;0!==e&&(o=m<1?rd(i,e,n):0);let l=Math.abs(a-n)<=t;s.done=Math.abs(o)<=r&&l}return s.value=s.done?a:n,s}}}function rg({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d,f,p=e[0],h={done:!1,value:p},m=r*t,v=p+m,g=void 0===a?v:a(v);g!==v&&(m=g-p);let y=e=>-m*Math.exp(-e/n),b=e=>g+y(e),_=e=>{let t=y(e),r=b(e);h.done=Math.abs(t)<=u,h.value=h.done?g:r},w=e=>{let t;if(t=h.value,void 0!==s&&t<s||void 0!==l&&t>l){var r;d=e,f=rv({keyframes:[h.value,(r=h.value,void 0===s?l:void 0===l||Math.abs(s-r)<Math.abs(l-r)?s:l)],velocity:rd(b,e,h.value),damping:i,stiffness:o,restDelta:u,restSpeed:c})}};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==d||(t=!0,_(e),w(e)),void 0!==d&&e>d)?f.next(e-d):(t||_(e),h)}}}let ry=e=>{let t=({timestamp:t})=>e(t);return{start:()=>e0.update(t,!0),stop:()=>e1(t),now:()=>e2.isProcessing?e2.timestamp:performance.now()}};function rb(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}let r_={decay:rg,inertia:rg,tween:rc,keyframes:rc,spring:rv};function rw({autoplay:e=!0,delay:t=0,driver:r=ry,keyframes:n,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let p,h,m,v,g,y=1,b=!1,_=()=>{h=new Promise(e=>{p=e})};_();let w=r_[i]||rc;w!==rc&&"number"!=typeof n[0]&&(v=rs([0,100],n,{clamp:!1}),n=[0,100]);let S=w({...f,keyframes:n});"mirror"===s&&(g=w({...f,keyframes:[...n].reverse(),velocity:-(f.velocity||0)}));let x="idle",E=null,k=null,C=null;null===S.calculatedDuration&&o&&(S.calculatedDuration=rb(S));let{calculatedDuration:A}=S,P=1/0,T=1/0;null!==A&&(T=(P=A+a)*(o+1)-a);let I=0,O=e=>{if(null===k)return;y>0&&(k=Math.min(k,e)),y<0&&(k=Math.min(e-T/y,k));let r=(I=null!==E?E:Math.round(e-k)*y)-t*(y>=0?1:-1),i=y>=0?r<0:r>T;I=Math.max(r,0),"finished"===x&&null===E&&(I=T);let l=I,u=S;if(o){let e=Math.min(I,T)/P,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,o+1))%2&&("reverse"===s?(r=1-r,a&&(r-=a/P)):"mirror"===s&&(u=g)),l=ec(0,1,r)*P}let c=i?{done:!1,value:n[0]}:u.next(l);v&&(c.value=v(c.value));let{done:f}=c;i||null===A||(f=y>=0?I>=T:I<=0);let p=null===E&&("finished"===x||"running"===x&&f);return d&&d(c.value),p&&L(),c},R=()=>{m&&m.stop(),m=void 0},N=()=>{x="idle",R(),p(),_(),k=C=null},L=()=>{x="finished",c&&c(),R(),p()},D=()=>{if(b)return;m||(m=r(O));let e=m.now();l&&l(),null!==E?k=e-E:k&&"finished"!==x||(k=e),"finished"===x&&_(),C=k,E=null,x="running",m.start()};e&&D();let M={then:(e,t)=>h.then(e,t),get time(){return I/1e3},set time(newTime){I=newTime=tS(newTime),null===E&&m&&0!==y?k=m.now()-newTime/y:E=newTime},get duration(){return(null===S.calculatedDuration?rb(S):S.calculatedDuration)/1e3},get speed(){return y},set speed(newSpeed){if(newSpeed===y||!m)return;y=newSpeed,M.time=I/1e3},get state(){return x},play:D,pause:()=>{x="paused",E=I},stop:()=>{b=!0,"idle"!==x&&(x="idle",u&&u(),N())},cancel:()=>{null!==C&&O(C),N()},complete:()=>{x="finished"},sample:e=>(k=0,O(e))};return M}function rS(e){let t;return()=>(void 0===t&&(t=e()),t)}let rx=rS(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),rE=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),rk={type:"spring",stiffness:500,damping:25,restSpeed:10},rC={type:"keyframes",duration:.8},rA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rP=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(t7.test(t)||"0"===t)&&!t.startsWith("url(")),rT=new Set(["brightness","contrast","saturate","opacity"]);function rI(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(em)||[];if(!n)return e;let i=r.replace(n,""),o=+!!rT.has(t);return n!==r&&(o*=100),t+"("+o+i+")"}let rO=/([a-z-]*)\(.*?\)/g,rR={...t7,getAnimatableNone:e=>{let t=e.match(rO);return t?t.map(rI).join(" "):e}},rN={...eA,color:tK,backgroundColor:tK,outlineColor:tK,fill:tK,stroke:tK,borderColor:tK,borderTopColor:tK,borderRightColor:tK,borderBottomColor:tK,borderLeftColor:tK,filter:rR,WebkitFilter:rR},rL=e=>rN[e];function rD(e,t){let r=rL(e);return r!==rR&&(r=t7),r.getAnimatableNone?r.getAnimatableNone(t):void 0}let rM=e=>/^0[^.\s]+$/.test(e);function rF(e,t){return e[t]||e.default||e}let rj=(e,t,r,n={})=>i=>{let o=rF(n,e)||{},a=o.delay||n.delay||0,{elapsed:s=0}=n;s-=tS(a);let l=function(e,t,r,n){let i,o,a=rP(t,r);i=Array.isArray(r)?[...r]:[null,r];let s=void 0!==n.from?n.from:e.get(),l=[];for(let e=0;e<i.length;e++){var u;null===i[e]&&(i[e]=0===e?s:i[e-1]),("number"==typeof(u=i[e])?0===u:null!==u?"none"===u||"0"===u||rM(u):void 0)&&l.push(e),"string"==typeof i[e]&&"none"!==i[e]&&"0"!==i[e]&&(o=i[e])}
1if(a&&l.length&&o)for(let e=0;e<l.length;e++)i[l[e]]=rD(t,o);return i}(t,e,r,o),u=l[0],c=l[l.length-1],d=rP(e,u),f=rP(e,c);eJ(d===f,`You are trying to animate ${e} from "${u}" to "${c}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${c} via the \`style\` property.`);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-s,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(!function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(o)&&(p={...p,...((e,{keyframes:t})=>t.length>2?rC:et.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:rk:rA)(e,p)}),p.duration&&(p.duration=tS(p.duration)),p.repeatDelay&&(p.repeatDelay=tS(p.repeatDelay)),!d||!f||!1===o.type)return function({keyframes:e,delay:t,onUpdate:r,onComplete:n}){let i=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:eJ,pause:eJ,stop:eJ,then:e=>(e(),Promise.resolve()),cancel:eJ,complete:eJ});return t?rw({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}(p);if(!n.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){let r=function(e,t,{onUpdate:r,onComplete:n,...i}){let o,a;if(!(rx()&&rE.has(t)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type))return!1;let s=!1,l=!1,u=()=>{a=new Promise(e=>{o=e})};u();let{keyframes:c,duration:d=300,ease:f,times:p}=i;if("spring"===i.type||"backgroundColor"===t||!function e(t){return!!(!t||"string"==typeof t&&tk[t]||tx(t)||Array.isArray(t)&&t.every(e))}(i.ease)){let e=rw({...i,repeat:0,delay:0}),t={done:!1,value:c[0]},r=[],n=0;for(;!t.done&&n<2e4;)t=e.sample(n),r.push(t.value),n+=10;p=void 0,c=r,d=n-10,f="linear"}let h=function(e,t,r,{delay:n=0,duration:i,repeat:o=0,repeatType:a="loop",ease:s,times:l}={}){let u={[t]:r};l&&(u.offset=l);let c=function e(t){if(t)return tx(t)?tE(t):Array.isArray(t)?t.map(e):tk[t]}(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,c,{...i,duration:d,ease:f,times:p}),m=()=>{l=!1,h.cancel()},v=()=>{l=!0,e0.update(m),o(),u()};return h.onfinish=()=>{l||(e.set(function(e,{repeat:t,repeatType:r="loop"}){let n=t&&"loop"!==r&&t%2==1?0:e.length-1;return e[n]}(c,i)),n&&n(),v())},{then:(e,t)=>a.then(e,t),attachTimeline:e=>(h.timeline=e,h.onfinish=null,eJ),get time(){return(h.currentTime||0)/1e3},set time(newTime){h.currentTime=tS(newTime)},get speed(){return h.playbackRate},set speed(newSpeed){h.playbackRate=newSpeed},get duration(){return d/1e3},play:()=>{s||(h.play(),e1(m))},pause:()=>h.pause(),stop:()=>{if(s=!0,"idle"===h.playState)return;let{currentTime:t}=h;if(t){let r=rw({...i,autoplay:!1});e.setWithVelocity(r.sample(t-10).value,r.sample(t).value,10)}v()},complete:()=>{l||h.finish()},cancel:v}}(t,e,p);if(r)return r}return rw(p)};function rU(e){return!!(en(e)&&e.add)}let rB=e=>/^\-?\d*\.?\d+$/.test(e);function rY(e,t){-1===e.indexOf(t)&&e.push(t)}function rV(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}class rH{constructor(){this.subscriptions=[]}add(e){return rY(this.subscriptions,e),()=>rV(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i<n;i++){let n=this.subscriptions[i];n&&n(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class r${constructor(e,t={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:r,timestamp:n}=e2;this.lastUpdated!==n&&(this.timeDelta=r,this.lastUpdated=n,e0.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>e0.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(e=>!isNaN(parseFloat(e)))(this.current),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new rH);let r=this.events[e].add(t);return"change"===e?()=>{r(),e0.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return u&&u.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?1e3/t*e:0):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function rz(e,t){return new r$(e,t)}let rq=e=>t=>t.test(e),rW=[ed,eS,ew,e_,eE,ex,{test:e=>"auto"===e,parse:e=>e}],rK=e=>rW.find(rq(e)),rG=[...rW,tK,t7],rX=e=>rG.find(rq(e));function rJ(e,t){let r=tw(e,t),{transitionEnd:n={},transition:i={},...o}=r?e.makeTargetAnimatable(r,!1):{};for(let t in o={...o,...n}){let r=eK(o[t]);e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,rz(r))}}
1function rZ(e,t){[...t].reverse().forEach(r=>{let n=e.getVariant(r);n&&rJ(e,n),e.variantChildren&&e.variantChildren.forEach(e=>{rZ(e,t)})})}function rQ(e,t,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t),l=e.getValue("willChange");n&&(o=n);let u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let n=e.getValue(t),i=s[t];if(!n||void 0===i||c&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(c,t))continue;let a={delay:r,elapsed:0,...rF(o||{},t)};if(window.HandoffAppearAnimations){let r=e.getProps()[F];if(r){let e=window.HandoffAppearAnimations(r,t,n,e0);null!==e&&(a.elapsed=e,a.isHandoff=!0)}}let d=!a.isHandoff&&!function(e,t){let r=e.get();if(!Array.isArray(t))return r!==t;for(let e=0;e<t.length;e++)if(t[e]!==r)return!0}(n,i);if("spring"===a.type&&(n.getVelocity()||a.velocity)&&(d=!1),n.animation&&(d=!1),d)continue;n.start(rj(t,n,i,e.shouldReduceMotion&&et.has(t)?{type:!1}:a));let f=n.animation;rU(l)&&(l.add(t),f.then(()=>l.remove(t))),u.push(f)}return a&&Promise.all(u).then(()=>{a&&rJ(e,a)}),u}function r0(e,t,r={}){let n=tw(e,t,r.custom),{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);let o=n?()=>Promise.all(rQ(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,r=0,n=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*n,l=1===i?(e=0)=>e*n:(e=0)=>s-e*n;return Array.from(e.variantChildren).sort(r1).forEach((e,n)=>{e.notify("AnimationStart",t),a.push(r0(e,t,{...o,delay:r+l(n)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,o+n,a,s,r)}:()=>Promise.resolve(),{when:s}=i;if(!s)return Promise.all([o(),a(r.delay)]);{let[e,t]="beforeChildren"===s?[o,a]:[a,o];return e().then(()=>t())}}function r1(e,t){return e.sortNodePosition(t)}function r2(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>r0(e,t,r)));else if("string"==typeof t)n=r0(e,t,r);else{let i="function"==typeof t?tw(e,t,r.custom):t;n=Promise.all(rQ(e,i,r))}return n.then(()=>e.notify("AnimationComplete",t))}let r3=[...Y].reverse(),r5=Y.length;function r4(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class r6 extends ts{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>r2(e,t,r))),r={animate:r4(!0),whileInView:r4(),whileHover:r4(),whileTap:r4(),whileDrag:r4(),whileFocus:r4(),exit:r4()},n=!0,i=(t,r)=>{let n=tw(e,r);if(n){let{transition:e,transitionEnd:r,...i}=n;t={...t,...i,...r}}return t};function o(o,a){let s=e.getProps(),l=e.getVariantContext(!0)||{},u=[],c=new Set,d={},f=1/0;for(let t=0;t<r5;t++){var p,h;let m=r3[t],v=r[m],g=void 0!==s[m]?s[m]:l[m],y=U(g),b=m===a?v.isActive:null;!1===b&&(f=t);let _=g===l[m]&&g!==s[m]&&y;if(_&&n&&e.manuallyAnimateOnMount&&(_=!1),v.protectedKeys={...d},!v.isActive&&null===b||!g&&!v.prevProp||B(g)||"boolean"==typeof g)continue;let w=(p=v.prevProp,("string"==typeof(h=g)?h!==p:!!Array.isArray(h)&&!t_(h,p))||m===a&&v.isActive&&!_&&y||t>f&&y),S=!1,x=Array.isArray(g)?g:[g],E=x.reduce(i,{});!1===b&&(E={});let{prevResolvedValues:k={}}=v,C={...k,...E},A=e=>{w=!0,c.has(e)&&(S=!0,c.delete(e)),v.needsAnimating[e]=!0};for(let e in C){let t=E[e],r=k[e];if(!d.hasOwnProperty(e))(eW(t)&&eW(r)?t_(t,r):t===r)?void 0!==t&&c.has(e)?A(e):v.protectedKeys[e]=!0:void 0!==t?A(e):c.add(e)}v.prevProp=g,v.prevResolvedValues=E,v.isActive&&(d={...d,...E}),n&&e.blockInitialAnimation&&(w=!1),w&&(!_||S)&&u.push(...x.map(e=>({animation:e,options:{type:m,...o}})))}if(c.size){let t={};
1c.forEach(r=>{let n=e.getBaseTarget(r);void 0!==n&&(t[r]=n)}),u.push({animation:t})}let m=!!u.length;return n&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(m=!1),n=!1,m?t(u):Promise.resolve()}return{animateChanges:o,setActive:function(t,n,i){var a;if(r[t].isActive===n)return Promise.resolve();null==(a=e.variantChildren)||a.forEach(e=>{var r;return null==(r=e.animationState)?void 0:r.setActive(t,n)}),r[t].isActive=n;let s=o(i,t);for(let e in r)r[e].protectedKeys={};return s},setAnimateFunction:function(r){t=r(e)},getState:()=>r}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),B(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}let r8=0;class r9 extends ts{constructor(){super(...arguments),this.id=r8++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t,custom:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let i=this.node.animationState.setActive("exit",!e,{custom:null!=r?r:this.node.getProps().custom});t&&!e&&i.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}let r7=(e,t)=>Math.abs(e-t);class ne{constructor(e,t,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=nn(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,i=(e=r.offset,t={x:0,y:0},Math.sqrt(r7(e.x,t.x)**2+r7(e.y,t.y)**2)>=3);if(!n&&!i)return;let{point:o}=r,{timestamp:a}=e2;this.history.push({...o,timestamp:a});let{onStart:s,onMove:l}=this.handlers;n||(s&&s(this.lastMoveEvent,r),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,r)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=nt(t,this.transformPagePoint),e0.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=nn("pointercancel"===e.type?this.lastMoveEventInfo:nt(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,o),n&&n(e,o)},!e8(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=r,this.contextWindow=n||window;const o=nt(e9(e),this.transformPagePoint),{point:a}=o,{timestamp:s}=e2;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,nn(o,this.history)),this.removeListeners=tt(e7(this.contextWindow,"pointermove",this.handlePointerMove),e7(this.contextWindow,"pointerup",this.handlePointerUp),e7(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),e1(this.updatePoint)}}function nt(e,t){return t?{point:t(e.point)}:e}function nr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nn({point:e},t){return{point:e,delta:nr(e,ni(t)),offset:nr(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,r=null,n=ni(e);for(;t>=0&&(r=e[t],!(n.timestamp-r.timestamp>tS(.1)));)t--;if(!r)return{x:0,y:0};let i=(n.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};let o={x:(n.x-r.x)/i,y:(n.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(t)}}function ni(e){return e[e.length-1]}function no(e){return e.max-e.min}function na(e,t=0,r=.01){return Math.abs(e-t)<=r}function ns(e,t,r,n=.5){e.origin=n,e.originPoint=tG(t.min,t.max,e.origin),e.scale=no(r)/no(t),(na(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=tG(r.min,r.max,e.origin)-e.originPoint,(na(e.translate)||isNaN(e.translate))&&(e.translate=0)}function nl(e,t,r,n){ns(e.x,t.x,r.x,n?n.originX:void 0),ns(e.y,t.y,r.y,n?n.originY:void 0)}function nu(e,t,r){e.min=r.min+t.min,e.max=e.min+no(t)}function nc(e,t,r){e.min=t.min-r.min,e.max=e.min+no(t)}
1function nd(e,t,r){nc(e.x,t.x,r.x),nc(e.y,t.y,r.y)}function nf(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function np(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function nh(e,t,r){return{min:nm(e,t),max:nm(e,r)}}function nm(e,t){return"number"==typeof e?e:e[t]||0}let nv=()=>({translate:0,scale:1,origin:0,originPoint:0}),ng=()=>({x:nv(),y:nv()}),ny=()=>({min:0,max:0}),nb=()=>({x:ny(),y:ny()});function n_(e){return[e("x"),e("y")]}function nw({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function nS(e){return void 0===e||1===e}function nx({scale:e,scaleX:t,scaleY:r}){return!nS(e)||!nS(t)||!nS(r)}function nE(e){return nx(e)||nk(e)||e.z||e.rotate||e.rotateX||e.rotateY}function nk(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function nC(e,t,r,n,i){return void 0!==i&&(e=n+i*(e-n)),n+r*(e-n)+t}function nA(e,t=0,r=1,n,i){e.min=nC(e.min,t,r,n,i),e.max=nC(e.max,t,r,n,i)}function nP(e,{x:t,y:r}){nA(e.x,t.translate,t.scale,t.originPoint),nA(e.y,r.translate,r.scale,r.originPoint)}function nT(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function nI(e,t){e.min=e.min+t,e.max=e.max+t}function nO(e,t,[r,n,i]){let o=void 0!==t[i]?t[i]:.5,a=tG(e.min,e.max,o);nA(e,t[r],t[n],a,t.scale)}let nR=["x","scaleX","originX"],nN=["y","scaleY","originY"];function nL(e,t){nO(e.x,t,nR),nO(e.y,t,nN)}function nD(e,t){return nw(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}let nM=({current:e})=>e?e.ownerDocument.defaultView:null,nF=new WeakMap;class nj{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=nb(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let n=e=>{let{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(e9(e,"page").point)},i=(e,t)=>{let{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=to(r),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),n_(e=>{let t=this.getAxisMotionValue(e).get()||0;if(ew.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[e];n&&(t=no(n)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&e0.update(()=>i(e,t),!1,!0);let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},o=(e,t)=>{let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:o}=this.getProps();if(!r&&!this.openGlobalLock)return;let{offset:a}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},a=(e,t)=>this.stop(e,t),s=()=>n_(e=>{var t;return"paused"===this.getAnimationState(e)&&(null==(t=this.getAxisMotionValue(e).animation)?void 0:t.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new ne(e,{onSessionStart:n,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:s},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:nM(this.visualElement)})}stop(e,t){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:n}=t;this.startAnimation(n);let{onDragEnd:i}=this.getProps();i&&e0.update(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!nU(e,n,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?tG(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?tG(r,e,n.max):Math.min(e,r)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(e=this.visualElement.projection)?void 0:e.layout,i=this.constraints;t&&j(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=function(e,{top:t,left:r,bottom:n,right:i}){return{x:nf(e.x,r,i),y:nf(e.y,t,n)}}(n.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:nh(e,"left","right"),y:nh(e,"top","bottom")}}(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&n_(e=>{var t,r;let i;this.getAxisMotionValue(e)&&(this.constraints[e]=(t=n.layoutBox[e],r=this.constraints[e],i={},void 0!==r.min&&(i.min=r.min-t.min),void 0!==r.max&&(i.max=r.max-t.min),i))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!j(t))return!1;let n=t.current;eJ(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,r){let n=nD(e,r),{scroll:i}=t;return i&&(nI(n.x,i.offset.x),nI(n.y,i.offset.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),a=(e=i.layout.layoutBox,{x:np(e.x,o.x),y:np(e.y,o.y)});if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=nw(e))}return a}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(n_(a=>{if(!nU(a,t,this.currentDirection))return;let l=s&&s[a]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:r?e[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return r.start(rj(e,r,0,t))}stopAnimation(){n_(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){n_(e=>{var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.pause()})}getAnimationState(e){var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.state}getAxisMotionValue(e){let t="_drag"+e.toUpperCase(),r=this.visualElement.getProps();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){n_(t=>{let{drag:r}=this.getProps();if(!nU(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:o}=n.layout.layoutBox[t];i.set(e[t]-tG(r,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!j(t)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};n_(e=>{let t=this.getAxisMotionValue(e);if(t){var r,i;let o,a,s,l=t.get();n[e]=(r={min:l,max:l},i=this.constraints[e],o=.5,a=no(r),(s=no(i))>a?o=ro(i.min,i.max-a,r.min):a>s&&(o=ro(r.min,r.max-s,i.min)),ec(0,1,o))}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),n_(t=>{if(!nU(t,e,null))return;let r=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];r.set(tG(i,o,n[t]))})}addListeners(){if(!this.visualElement.current)return;nF.set(this.visualElement,this);let e=e7(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();j(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),t();let i=e6(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(n_(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),n(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function nU(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}class nB extends ts{constructor(e){super(e),this.removeGroupControls=eJ,this.removeListeners=eJ,this.controls=new nj(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eJ}unmount(){this.removeGroupControls(),this.removeListeners()}}let nY=e=>(t,r)=>{e&&e0.update(()=>e(t,r))};
1class nV extends ts{constructor(){super(...arguments),this.removePointerDownListener=eJ}onPointerDown(e){this.session=new ne(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nM(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:nY(e),onStart:nY(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&e0.update(()=>n(e,t))}}}mount(){this.removePointerDownListener=e7(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let nH={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function n$(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let nz={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!eS.test(e))return e;else e=parseFloat(e);let r=n$(e,t.target.x),n=n$(e,t.target.y);return`${r}% ${n}%`}};class nq extends k.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;Object.assign(Q,nK),i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),nH.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,n||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||e0.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nW(e){let[t,r]=function(){let e=(0,k.useContext)(R);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,i=(0,k.useId)();return(0,k.useEffect)(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}(),n=(0,k.useContext)(K);return k.createElement(nq,{...e,layoutGroup:n,switchLayoutGroup:(0,k.useContext)(G),isPresent:t,safeToRemove:r})}let nK={borderRadius:{...nz,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nz,borderTopRightRadius:nz,borderBottomLeftRadius:nz,borderBottomRightRadius:nz,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let n=t7.parse(e);if(n.length>5)return e;let i=t7.createTransformer(e),o=+("number"!=typeof n[0]),a=r.x.scale*t.x,s=r.y.scale*t.y;n[0+o]/=a,n[1+o]/=s;let l=tG(a,s,.5);return"number"==typeof n[2+o]&&(n[2+o]/=l),"number"==typeof n[3+o]&&(n[3+o]/=l),i(n)}}},nG=["TopLeft","TopRight","BottomLeft","BottomRight"],nX=nG.length,nJ=e=>"string"==typeof e?parseFloat(e):e,nZ=e=>"number"==typeof e||eS.test(e);function nQ(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let n0=n2(0,.5,tD),n1=n2(.5,.95,eJ);function n2(e,t,r){return n=>n<e?0:n>t?1:r(ro(e,t,n))}function n3(e,t){e.min=t.min,e.max=t.max}function n5(e,t){n3(e.x,t.x),n3(e.y,t.y)}function n4(e,t,r,n,i){return e-=t,e=n+1/r*(e-n),void 0!==i&&(e=n+1/i*(e-n)),e}function n6(e,t,[r,n,i],o,a){!function(e,t=0,r=1,n=.5,i,o=e,a=e){if(ew.test(t)&&(t=parseFloat(t),t=tG(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=tG(o.min,o.max,n);e===o&&(s-=t),e.min=n4(e.min,t,r,s,i),e.max=n4(e.max,t,r,s,i)}(e,t[r],t[n],t[i],t.scale,o,a)}let n8=["x","scaleX","originX"],n9=["y","scaleY","originY"];function n7(e,t,r,n){n6(e.x,t,n8,r?r.x:void 0,n?n.x:void 0),n6(e.y,t,n9,r?r.y:void 0,n?n.y:void 0)}function ie(e){return 0===e.translate&&1===e.scale}function it(e){return ie(e.x)&&ie(e.y)}function ir(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function ii(e){return no(e.x)/no(e.y)}class io{constructor(){this.members=[]}add(e){rY(this.members,e),e.scheduleRender()}remove(e){if(rV(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,r=this.members.findIndex(t=>e===t);if(0===r)return!1;for(let e=r;e>=0;e--){let r=this.members[e];if(!1!==r.isPresent){t=r;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:n}=e.options;!1===n&&r.hide()}}
1exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ia(e,t,r){let n="",i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(n=`translate3d(${i}px, ${o}px, 0) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{rotate:e,rotateX:t,rotateY:i}=r;e&&(n+=`rotate(${e}deg) `),t&&(n+=`rotateX(${t}deg) `),i&&(n+=`rotateY(${i}deg) `)}let a=e.x.scale*t.x,s=e.y.scale*t.y;return(1!==a||1!==s)&&(n+=`scale(${a}, ${s})`),n||"none"}let is=(e,t)=>e.depth-t.depth;class il{constructor(){this.children=[],this.isDirty=!1}add(e){rY(this.children,e),this.isDirty=!0}remove(e){rV(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(is),this.isDirty=!1,this.children.forEach(e)}}function iu(e){return e instanceof SVGElement&&"svg"!==e.tagName}function ic(e,t,r){let n=en(e)?e:rz(e);return n.start(rj("",n,t,r)),n.animation}let id=["","X","Y","Z"],ip={visibility:"hidden"},ih=0,im={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function iv({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e={},r=null==t?void 0:t()){this.id=ih++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,im.totalNodes=im.resolvedTargetDeltas=im.recalculatedProjection=0,this.nodes.forEach(ib),this.nodes.forEach(iC),this.nodes.forEach(iA),this.nodes.forEach(i_),window.MotionDebug&&window.MotionDebug.record(im)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new il)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new rH),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,r=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=iu(t),this.instance=t;let{layoutId:n,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(i||n)&&(this.isLayoutDirty=!0),e){let r,n=()=>this.root.updateBlockedByResize=!1;e(t,()=>{let e,t;this.root.updateBlockedByResize=!0,r&&r(),e=performance.now(),t=({timestamp:r})=>{let i=r-e;i>=250&&(e1(t),n(i-250))},e0.read(t,!0),r=()=>
1e1(t),nH.hasAnimatedSinceResize&&(nH.hasAnimatedSinceResize=!1,this.nodes.forEach(ik))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&o&&(n||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||o.getDefaultTransition()||iN,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=o.getProps(),l=!this.targetLayout||!ir(this.targetLayout,n)||r,u=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...rF(i,"layout"),onPlay:a,onComplete:s};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||ik(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,e1(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(iP),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(iS);return}this.isUpdating||this.nodes.forEach(ix),this.isUpdating=!1,this.nodes.forEach(iE),this.nodes.forEach(ig),this.nodes.forEach(iy),this.clearAllSnapshots();let e=performance.now();e2.delta=ec(0,1e3/60,e-e2.timestamp),e2.timestamp=e,e2.isProcessing=!0,e3.update.process(e2),e3.preRender.process(e2),e3.render.process(e2),e2.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(iw),this.sharedNodes.forEach(iT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,e0.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){e0.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=nb(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!it(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,o=n!==this.prevTransformTemplateValue;e&&(t||nE(this.latestValues)||o)&&(i(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),n=this.removeElementScroll(r);return e&&(n=this.removeTransform(n)),iM((t=n).x),iM(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return nb();let t=e.measureViewportBox(),{scroll:r}=this.root;return r&&(nI(t.x,r.offset.x),nI(t.y,r.offset.y)),t}removeElementScroll(e){let t=nb();n5(t,e);for(let r=0;r<this.path.length;r++){let n=this.path[r],{scroll:i,options:o}=n;if(n!==this.root&&i&&o.layoutScroll){if(i.isRoot){n5(t,e);let{scroll:r}=this.root;r&&(nI(t.x,-r.offset.x),nI(t.y,-r.offset.y))}nI(t.x,i.offset.x),nI(t.y,i.offset.y)}}return t}applyTransform(e,t=!1){let r=nb();n5(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&nL(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),nE(n.latestValues)&&nL(r,n.latestValues)}return nE(this.latestValues)&&nL(r,this.latestValues),r}removeTransform(e){let t=nb();n5(t,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];if(!r.instance||!nE(r.latestValues))continue;nx(r.latestValues)&&r.updateSnapshot();let n=nb();n5(n,r.measurePageBox()),n7(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return nE(this.latestValues)&&n7(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==e2.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,r,n,i;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let a=!!this.resumingFrom||this!==o;if(!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:s,layoutId:l}=this.options;if(this.layout&&(s||l)){if(this.resolvedRelativeTargetAt=e2.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nb(),this.relativeTargetOrigin=nb(),nd(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),n5(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=nb(),this.targetWithTransforms=nb()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),r=this.target,n=this.relativeTarget,i=this.relativeParent.target,nu(r.x,n.x,i.x),nu(r.y,n.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):n5(this.target,this.layout.layoutBox),nP(this.target,this.targetDelta)):n5(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nb(),this.relativeTargetOrigin=nb(),nd(this.relativeTargetOrigin,this.target,e.target),n5(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}im.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||nx(this.parent.latestValues)||nk(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),r=!!this.resumingFrom||this!==t,n=!0;if((this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty))&&(n=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===e2.timestamp&&(n=!1),n)return;let{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||o))return;n5(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,s=this.treeScale.y;!function(e,t,r,n=!1){let i,o,a=r.length;if(a){t.x=t.y=1;for(let s=0;s<a;s++){o=(i=r[s]).projectionDelta;let a=i.instance;(!a||!a.style||"contents"!==a.style.display)&&(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&nL(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,nP(e,o)),n&&nE(i.latestValues)&&nL(e,i.latestValues))}t.x=nT(t.x),t.y=nT(t.y)}}(this.layoutCorrected,this.treeScale,this.path,r),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox);let{target:l}=t;if(!l){this.projectionTransform&&(this.projectionDelta=ng(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=ng(),this.projectionDeltaWithTransform=ng());let u=this.projectionTransform;nl(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=ia(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==a||this.treeScale.y!==s)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),im.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){let r,n=this.snapshot,i=n?n.latestValues:{},o={...this.latestValues},a=ng();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=nb(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(iR));this.animationProgress=0,this.mixTargetDelta=t=>{let n=t/1e3;if(iI(a.x,e.x,n),iI(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,f,p,h,m,v;nd(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,h=this.relativeTargetOrigin,m=s,v=n,iO(p.x,h.x,m.x,v),iO(p.y,h.y,m.y,v),r&&(u=this.relativeTarget,f=r,u.x.min===f.x.min&&u.x.max===f.x.max&&u.y.min===f.y.min&&u.y.max===f.y.max)&&(this.isProjectionDirty=!1),r||(r=nb()),n5(r,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,r,n,i,o){i?(e.opacity=tG(0,void 0!==r.opacity?r.opacity:1,n0(n)),e.opacityExit=tG(void 0!==t.opacity?t.opacity:1,0,n1(n))
1):o&&(e.opacity=tG(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let i=0;i<nX;i++){let o=`border${nG[i]}Radius`,a=nQ(t,o),s=nQ(r,o);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||nZ(a)===nZ(s)?(e[o]=Math.max(tG(nJ(a),nJ(s),n),0),(ew.test(s)||ew.test(a))&&(e[o]+="%")):e[o]=s)}(t.rotate||r.rotate)&&(e.rotate=tG(t.rotate||0,r.rotate||0,n))}(o,i,this.latestValues,n,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(e1(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=e0.update(()=>{nH.hasAnimatedSinceResize=!0,this.currentAnimation=ic(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&iF(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||nb();let t=no(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=no(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}n5(t,r),nL(t,i),nl(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new io),this.sharedNodes.get(e).add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null==(e=this.getStack())?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null==(e=this.getStack())?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.rotate||r.rotateX||r.rotateY||r.rotateZ)&&(t=!0),!t)return;let n={};for(let t=0;t<id.length;t++){let i="rotate"+id[t];r[i]&&(n[i]=r[i],e.setStaticValue(i,0))}for(let t in e.render(),n)e.setStaticValue(t,n[t]);e.scheduleRender()}getProjectionStyles(e){var t,r;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ip;let n={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=eG(null==e?void 0:e.pointerEvents)||"",n.transform=i?i(this.latestValues,""):"none",n;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=eG(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!nE(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}let a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),n.transform=ia(this.projectionDeltaWithTransform,this.treeScale,a),i&&(n.transform=i(a,n.transform));let{x:s,y:l}=this.projectionDelta;for(let e in n.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,o.animationValues?n.opacity=o===this?null!=(r=null!=(t=a.opacity)?t:this.latestValues.opacity)?r:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:n.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,Q){if(void 0===a[e])continue;let{correct:t,applyTo:r}=Q[e],i="none"===n.transform?a[e]:t(a[e],o);if(r){let e=r.length;for(let t=0;t<e;t++)n[r[t]]=i}else n[e]=i}return this.options.layoutId&&(n.pointerEvents=o===this?eG(null==e?void 0:e.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
1resetTree(){this.root.nodes.forEach(e=>{var t;return null==(t=e.currentAnimation)?void 0:t.stop()}),this.root.nodes.forEach(iS),this.root.sharedNodes.clear()}}}function ig(e){e.updateLayout()}function iy(e){var t;let r=(null==(t=e.resumeFrom)?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:n}=e.layout,{animationType:i}=e.options,o=r.source!==e.layout.source;"size"===i?n_(e=>{let n=o?r.measuredBox[e]:r.layoutBox[e],i=no(n);n.min=t[e].min,n.max=n.min+i}):iF(i,r.layoutBox,t)&&n_(n=>{let i=o?r.measuredBox[n]:r.layoutBox[n],a=no(t[n]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)});let a=ng();nl(a,t,r.layoutBox);let s=ng();o?nl(s,e.applyTransform(n,!0),r.measuredBox):nl(s,t,r.layoutBox);let l=!it(a),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:i,layout:o}=n;if(i&&o){let a=nb();nd(a,r.layoutBox,i.layoutBox);let s=nb();nd(s,t,o.layoutBox),ir(a,s)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ib(e){im.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function i_(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iw(e){e.clearSnapshot()}function iS(e){e.clearMeasurements()}function ix(e){e.isLayoutDirty=!1}function iE(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ik(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function iC(e){e.resolveTargetDelta()}function iA(e){e.calcProjection()}function iP(e){e.resetRotation()}function iT(e){e.removeLeadSnapshot()}function iI(e,t,r){e.translate=tG(t.translate,0,r),e.scale=tG(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function iO(e,t,r,n){e.min=tG(t.min,r.min,n),e.max=tG(t.max,r.max,n)}function iR(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let iN={duration:.45,ease:[.4,0,.1,1]},iL=e=>"u">typeof navigator&&navigator.userAgent.toLowerCase().includes(e),iD=iL("applewebkit/")&&!iL("chrome/")?Math.round:eJ;function iM(e){e.min=iD(e.min),e.max=iD(e.max)}function iF(e,t,r){return"position"===e||"preserve-aspect"===e&&!na(ii(t),ii(r),.2)}let ij=iv({attachResizeListener:(e,t)=>e6(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iU={current:void 0},iB=iv({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!iU.current){let e=new ij({});e.mount(window),e.setOptions({layoutScroll:!0}),iU.current=e}return iU.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),iY=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function iV(e,t,r=1){eJ(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,i]=function(e){let t=iY.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]}(e);if(!n)return;let o=window.getComputedStyle(t).getPropertyValue(n);if(o){let e=o.trim();return rB(e)?parseFloat(e):e}return el(i)?iV(i,t,r+1):i}let iH=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),i$=e=>iH.has(e),iz=e=>e===ed||e===eS,iq=(e,t)=>parseFloat(e.split(", ")[t]),iW=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/);if(i)return iq(i[1],t);{let t=n.match(/^matrix\((.+)\)$/);return t?iq(t[1],e):0}},iK=new Set(["x","y","z"]),iG=ee.filter(e=>!iK.has(e)),iX={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:iW(4,13),y:iW(5,14)};iX.translateX=iX.x,iX.translateY=iX.y;let iJ={current:null},iZ={current:!1},iQ=new WeakMap,i0=Object.keys(W),i1=i0.length,i2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],i3=V.length;class i5{constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>e0.render(this.render,!1,!0);const{latestValues:a,renderState:s}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=H(t),this.isVariantNode=$(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(t,{});for(const e in u){const t=u[e];void 0!==a[e]&&en(t)&&(t.set(a[e],!1),rU(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,iQ.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
1h((e,t)=>this.bindToMotionValue(t,e)),iZ.current||function(){if(iZ.current=!0,N)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>iJ.current=e.matches;e.addListener(t),t()}else iJ.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||iJ.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in iQ.delete(this.current),this.projection&&this.projection.unmount(),e1(this.notifyUpdate),e1(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){let r=et.has(e),n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&e0.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),i()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},r,n,i){let o,a;for(let e=0;e<i1;e++){let r=i0[e],{isEnabled:n,Feature:i,ProjectionNode:s,MeasureLayout:l}=W[r];s&&(o=s),n(t)&&(!this.features[r]&&i&&(this.features[r]=new i(this)),l&&(a=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);let{layoutId:e,layout:r,drag:n,dragConstraints:a,layoutScroll:s,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:r,alwaysMeasureLayout:!!n||a&&j(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof r?r:"both",initialPromotionConfig:i,layoutScroll:s,layoutRoot:l})}return a}updateFeatures(){for(let e in this.features){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):nb()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<i2.length;t++){let r=i2[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){let{willChange:n}=t;for(let i in t){let o=t[i],a=r[i];if(en(o))e.addValue(i,o),rU(n)&&n.add(i);else if(en(a))e.addValue(i,rz(o,{owner:e})),rU(n)&&n.remove(i);else if(a!==o)if(e.hasValue(i)){let t=e.getValue(i);t.hasAnimated||t.set(o)}else{let t=e.getStaticValue(i);e.addValue(i,rz(void 0!==t?t:o,{owner:e}))}}for(let n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let t={};for(let e=0;e<i3;e++){let r=V[e],n=this.props[r];(U(n)||!1===n)&&(t[r]=n)}return t}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=rz(t,{owner:this}),this.addValue(e,r)),r}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!=(t=this.getBaseTargetFromProps(this.props,e))?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:r}=this.props,n="string"==typeof r||"object"==typeof r?null==(t=ez(this.props,r))?void 0:t[e]:void 0;if(r&&void 0!==n)return n;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||en(i)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new rH),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class i4 extends i5{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...r},{transformValues:n},i){let o=function(e,t,r){let n={};for(let i in e){let e=function(e,t){if(t)return(t[e]||t.default||t).from}(i,t);if(void 0!==e)n[i]=e;else{let e=r.getValue(i);e&&(n[i]=e.get())}}return n}(r,e||{},this);if(n&&(t&&(t=n(t)),r&&(r=n(r)),o&&(o=n(o))),i){var a,s,l,u,c;let e;!function(e,t,r){var n,i;let o=Object.keys(t).filter(t=>!e.hasValue(t)),a=o.length;if(a)for(let s=0;s<a;s++){let a=o[s],l=t[a],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!=(i=null!=(n=r[a])?n:e.readValue(a))?i:t[a]),null!=u&&("string"==typeof u&&(rB(u)||rM(u))?u=parseFloat(u):!rX(u)&&t7.test(l)&&(u=rD(a,l)),e.addValue(a,rz(u,{owner:e})),void 0===r[a]&&(r[a]=u),null!==u&&e.setBaseTarget(a,u))}}(this,r,o);let n=(a=r,s=o,a=(e=function(e,{...t},r){let n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};for(let i in r&&(r={...r}
1),e.values.forEach(e=>{let t=e.get();if(!el(t))return;let r=iV(t,n);r&&e.set(r)}),t){let e=t[i];if(!el(e))continue;let o=iV(e,n);o&&(t[i]=o,r||(r={}),void 0===r[i]&&(r[i]=e))}return{target:t,transitionEnd:r}}(this,a,l=t)).target,l=e.transitionEnd,u=a,c=l,Object.keys(u).some(i$)?((e,t,r={},n={})=>{t={...t},n={...n};let i=Object.keys(t).filter(i$),o=[],a=!1,s=[];if(i.forEach(i=>{let l,u=e.getValue(i);if(!e.hasValue(i))return;let c=r[i],d=rK(c),f=t[i];if(eW(f)){let e=f.length,t=+(null===f[0]);d=rK(c=f[t]);for(let r=t;r<e&&null!==f[r];r++)l?eJ(rK(f[r])===l,"All keyframes must be of the same type"):eJ((l=rK(f[r]))===d||iz(d)&&iz(l),"Keyframes must be of the same dimension as the current value")}else l=rK(f);if(d!==l)if(iz(d)&&iz(l)){let e=u.get();"string"==typeof e&&u.set(parseFloat(e)),"string"==typeof f?t[i]=parseFloat(f):Array.isArray(f)&&l===eS&&(t[i]=f.map(parseFloat))}else if((null==d?void 0:d.transform)&&(null==l?void 0:l.transform)&&(0===c||0===f))0===c?u.set(l.transform(c)):t[i]=d.transform(f);else{if(!a){let t;t=[],iG.forEach(r=>{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(+!!r.startsWith("scale")))}),t.length&&e.render(),o=t,a=!0}s.push(i),n[i]=void 0!==n[i]?n[i]:t[i],u.jump(f)}}),!s.length)return{target:t,transitionEnd:n};{let r=s.indexOf("height")>=0?window.pageYOffset:null,i=((e,t,r)=>{let n=t.measureViewportBox(),i=getComputedStyle(t.current),{display:o}=i,a={};"none"===o&&t.setStaticValue("display",e.display||"block"),r.forEach(e=>{a[e]=iX[e](n,i)}),t.render();let s=t.measureViewportBox();return r.forEach(r=>{let n=t.getValue(r);n&&n.jump(a[r]),e[r]=iX[r](s,i)}),e})(t,e,s);return o.length&&o.forEach(([t,r])=>{e.getValue(t).set(r)}),e.render(),N&&null!==r&&window.scrollTo({top:r}),{target:i,transitionEnd:n}}})(this,u,s,c):{target:u,transitionEnd:c});t=n.transitionEnd,r=n.target}return{transition:e,transitionEnd:t,...r}}}class i6 extends i4{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(et.has(t)){let e=rL(t);return e&&e.default||0}{let r=window.getComputedStyle(e),n=(es(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return nD(e,t)}build(e,t,r,n){eP(e,t,r,n.transformTemplate)}scrapeMotionValuesFromProps(e,t){return eH(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;en(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,r,n){eB(e,t,r,n)}}class i8 extends i4{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(et.has(t)){let e=rL(t);return e&&e.default||0}return t=eY.has(t)?t:M(t),e.getAttribute(t)}measureInstanceViewportBox(){return nb()}scrapeMotionValuesFromProps(e,t){return e$(e,t)}
1build(e,t,r,n){eF(e,t,r,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,r,n){eV(e,t,r,n)}mount(e){this.isSVGTag=eU(e.tagName),super.mount(e)}}let i9=(e,t)=>Z(e)?new i8(t,{enableHardwareAcceleration:!1}):new i6(t,{enableHardwareAcceleration:!0}),i7={animation:{Feature:r6},exit:{Feature:r9},inView:{Feature:tb},tap:{Feature:tp},focus:{Feature:tc},hover:{Feature:tu},pan:{Feature:nV},drag:{Feature:nB,ProjectionNode:iB,MeasureLayout:nW},layout:{ProjectionNode:iB,MeasureLayout:nW}},oe=function(e){function t(r,n={}){return function({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){e&&function(e){for(let t in e)W[t]={...W[t],...e[t]}}(e);let o=(0,k.forwardRef)(function(o,a){var s;let l,u={...(0,k.useContext)(I),...o,layoutId:function({layoutId:e}){let t=(0,k.useContext)(K).id;return t&&void 0!==e?t+"-"+e:e}(o)},{isStatic:c}=u,d=function(e){let{initial:t,animate:r}=function(e,t){if(H(e)){let{initial:t,animate:r}=e;return{initial:!1===t||U(t)?t:void 0,animate:U(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,k.useContext)(O));return(0,k.useMemo)(()=>({initial:t,animate:r}),[z(t),z(r)])}(o),f=n(o,c);if(!c&&N){d.visualElement=function(e,t,r,n){let{visualElement:i}=(0,k.useContext)(O),o=(0,k.useContext)(D),a=(0,k.useContext)(R),s=(0,k.useContext)(I).reducedMotion,l=(0,k.useRef)();n=n||o.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:i,props:r,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));let u=l.current;(0,k.useInsertionEffect)(()=>{u&&u.update(r,a)});let c=(0,k.useRef)(!!(r[F]&&!window.HandoffComplete));return L(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),(0,k.useEffect)(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}(i,f,u,t);let r=(0,k.useContext)(G),n=(0,k.useContext)(D).strict;d.visualElement&&(l=d.visualElement.loadFeatures(u,n,e,r))}return k.createElement(O.Provider,{value:d},l&&d.visualElement?k.createElement(l,{visualElement:d.visualElement,...u}):null,r(i,o,(s=d.visualElement,(0,k.useCallback)(e=>{e&&f.mount&&f.mount(e),s&&(e?s.mount(e):s.unmount()),a&&("function"==typeof a?a(e):j(a)&&(a.current=e))},[s])),f,c,d.visualElement))});return o[X]=i,o}(e(r,n))}if("u"<typeof Proxy)return t;let r=new Map;return new Proxy(t,{get:(e,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},r,n){return{...Z(e)?e5:e4,preloadedFeatures:r,useRender:function(e=!1){return(t,r,n,{latestValues:i},o)=>{let a=(Z(t)?function(e,t,r,n){let i=(0,k.useMemo)(()=>{let r=ej();return eF(r,t,{enableHardwareAcceleration:!1},eU(n),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};eI(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t,r){let n,i,o={},a=(n=e.style||{},eI(i={},n,e),Object.assign(i,function({transformTemplate:e},t,r){return(0,k.useMemo)(()=>{let n=eT();return eP(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}(e,t,r)),e.transformValues?e.transformValues(i):i);return e.drag&&!1!==e.dragListener&&(o.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(o.tabIndex=0),o.style=a,o})(r,i,o,t),s={...function(e,t,r){let n={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(eN(i)||!0===r&&eR(i)||!t&&!eR(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(r,"string"==typeof t,e),...a,ref:n},{children:l}=r,u=(0,k.useMemo)(()=>en(l)?l.get():l,[l]);return(0,k.createElement)(t,{...s,children:u})}}(t),createVisualElement:n,Component:e}})(e,t,i7,i9));var ot=r(27320),or=r.n(ot),on=((p={}).PRIMARY_PAY="primary-pay",p.PRIMARY_BLACK="primary-black",p.PRIMARY_WHITE="primary-white",p.SECONDARY_PAY="secondary-pay",p.SECONDARY_BLACK="secondary-black",p.SECONDARY_WHITE="secondary-white",p.LINK_LIGHT="link-light",p.LINK_DARK="link-dark",p.SEND_WHITE="send-white",p);let oi=(0,k.forwardRef)(({className:e,children:t,variant:r=on.PRIMARY_PAY,role:n="button",...i},o)=>(0,E.Y)("button",{className:(0,C.XS)(or().root,or()[r],e),role:n,ref:o,...i,children:t}));oi.displayName="Button";let oo=(0,k.forwardRef)(({className:e,children:t,variant:r=on.PRIMARY_PAY,role:n="button",...i},o)=>(0,E.Y)(oe.button,{className:(0,C.XS)(or().root,or()[r],e),role:n,ref:o,...i,children:t}));function oa(){let e=!1,t=new Set,r={subscribe:e=>(t.add(e),()=>void t.delete(e)),start(r,n){eJ(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let i=[];
1return t.forEach(e=>{i.push(r2(e,r,{transitionOverride:n}))}),Promise.all(i)},set:r=>(eJ(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(e=>{var t,n;t=e,Array.isArray(n=r)?rZ(t,n):"string"==typeof n?rZ(t,[n]):rJ(t,n)})),stop(){t.forEach(e=>{e.values.forEach(e=>e.stop())})},mount:()=>(e=!0,()=>{e=!1,r.stop()})};return r}oo.displayName="FramerButton";let os=function(){let e=eq(oa);return L(e.mount,[]),e};var ol=r(27885),ou=r.n(ol),oc=((h={}).PAY="pay",h.BLACK="black",h.WHITE="white",h);let od={pay:on.PRIMARY_PAY,black:on.PRIMARY_BLACK,white:on.PRIMARY_WHITE};function of({fill:e,...t}){return(0,E.FD)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"37",viewBox:"0 0 36 37",fill:"none",...t,children:[(0,E.Y)("path",{d:"M23.6722 14.3089L18.841 9.45457C18.6101 9.23568 18.3049 9.11377 17.9876 9.11377C17.6704 9.11377 17.3652 9.23568 17.1343 9.45457L12.303 14.3089C12.0993 14.5409 11.9911 14.8423 12.0006 15.1517C12.0101 15.4611 12.1365 15.7552 12.3541 15.9741C12.5717 16.1929 12.8642 16.3201 13.1718 16.3297C13.4794 16.3392 13.779 16.2304 14.0097 16.0254L16.7811 13.243V21.6555C16.7705 21.8214 16.7938 21.9878 16.8496 22.1442C16.9055 22.3007 16.9926 22.444 17.1057 22.5653C17.2188 22.6866 17.3554 22.7833 17.5071 22.8494C17.6588 22.9154 17.8223 22.9495 17.9876 22.9495C18.153 22.9495 18.3165 22.9154 18.4682 22.8494C18.6199 22.7833 18.7565 22.6866 18.8696 22.5653C18.9826 22.444 19.0698 22.3007 19.1256 22.1442C19.1815 21.9878 19.2048 21.8214 19.1942 21.6555V13.243L21.9606 16.0254C22.1892 16.2426 22.4929 16.3617 22.8072 16.3574C23.1216 16.3531 23.422 16.2259 23.6446 16.0026C23.8673 15.7793 23.9947 15.4776 23.9998 15.1614C24.005 14.8452 23.8875 14.5394 23.6722 14.3089Z",fill:e}),(0,E.Y)("path",{d:"M19.1 25.3341C19.0684 25.2631 19.0318 25.1946 18.9905 25.1289C18.9473 25.0607 18.8955 24.9984 18.8363 24.9438C18.7825 24.8854 18.7225 24.8334 18.6571 24.7886C18.5896 24.748 18.5198 24.7113 18.4482 24.6785C18.3744 24.6476 18.2977 24.6242 18.2193 24.6085C18.0631 24.5784 17.9028 24.5784 17.7466 24.6085C17.67 24.6249 17.5951 24.6484 17.5227 24.6785C17.4501 24.7092 17.3801 24.746 17.3137 24.7886C17.2468 24.8333 17.1851 24.8853 17.1296 24.9438C17.0734 24.9999 17.0233 25.0619 16.9804 25.1289C16.9371 25.1934 16.9005 25.2622 16.8709 25.3341C16.8402 25.4083 16.8169 25.4855 16.8012 25.5643C16.7857 25.6401 16.7773 25.7172 16.7764 25.7945C16.7769 25.9544 16.809 26.1126 16.8709 26.2599C16.8994 26.3339 16.9361 26.4044 16.9804 26.4701C17.067 26.604 17.1806 26.7182 17.3137 26.8054C17.379 26.8499 17.4491 26.8869 17.5227 26.9155C17.6692 26.9778 17.8264 27.0101 17.9854 27.0106C18.0632 27.0182 18.1415 27.0182 18.2193 27.0106C18.2977 26.9949 18.3744 26.9714 18.4482 26.9405C18.5197 26.9108 18.588 26.8739 18.6522 26.8304C18.7187 26.7872 18.7805 26.7369 18.8363 26.6803C18.8944 26.6245 18.9461 26.5624 18.9905 26.4951C19.0329 26.4283 19.0695 26.358 19.1 26.285C19.1632 26.1382 19.1938 25.9794 19.1895 25.8195C19.1971 25.7413 19.1971 25.6625 19.1895 25.5843C19.1688 25.4979 19.1388 25.414 19.1 25.3341Z",fill:e})]})}let op={duration:.1,type:"spring",stiffness:90,damping:8},oh=(e,t)=>Math.random()*(e-t)+t,om={hover:{scale:1,opacity:1,width:"28px"},initial:{width:0,scale:0,opacity:0}},ov=(0,k.forwardRef)(({children:e,className:t,onMouseEnter:r,onMouseLeave:n,variant:i=oc.PAY,disabled:o=!1,...a},s)=>{let l=os();return(0,E.Y)("div",{className:t,onMouseEnter:function(e){l.start("hover"),r?.(e)},onMouseLeave:function(e){l.start("initial"),n?.(e)},children:(0,E.FD)(oo,{className:ou().root,variant:od[i],whileHover:{padding:"0 40px",transition:op},ref:s,disabled:o,...a,children:[e,(0,E.Y)(oe.div,{className:ou().iconContainer,initial:"initial",transition:{duration:.1,ease:"easeIn"},variants:om,animate:!o&&l,children:(0,E.Y)(of,{className:ou()[`icon-${i}`]})})]})})});ov.displayName="ButtonForward";var og=r(82398),oy=r(68289),ob=r.n(oy);function o_({children:e,className:t,contentClassName:r}){return(0,E.Y)("div",{className:(0,C.XS)(ob().root,t),children:(0,E.Y)("div",{className:(0,C.XS)(ob().content,r),children:e})})}function ow(e){let[t,r]=(0,k.useState)(!1);function n(){r((0,C.sh)(e))}return(0,k.useEffect)(()=>{let t=window.matchMedia(e);return n(),t.addListener?t.addListener(n):t.addEventListener("change",n),(
1)=>{t.removeListener?t.removeListener(n):t.removeEventListener("change",n)}},[e]),t}var oS=r(51214),ox=r.n(oS);function oE(e,t,r){if("string"==typeof e){let n=document;t&&(eJ(!!t.current,"Scope provided, but no element detected."),n=t.current),r?(null!=r[e]||(r[e]=n.querySelectorAll(e)),e=r[e]):e=n.querySelectorAll(e)}else e instanceof Element&&(e=[e]);return Array.from(e||[])}let ok=rS(()=>void 0!==window.ScrollTimeline);class oC{constructor(e){this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=t}attachTimeline(e){let t=this.animations.map(t=>{if(ok()&&t.attachTimeline)t.attachTimeline(e);else{var r;let n,i;return t.pause(),r=e=>{t.time=t.duration*e},i=()=>{let{currentTime:t}=e,i=(null===t?0:t.value)/100;n!==i&&r(i),n=i},e0.update(i,!0),()=>e1(i)}});return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}stop(){this.runAll("stop")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function oA(e,t,r,n){var i;return"number"==typeof t?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):"<"===t?r:null!=(i=n.get(t))?i:e}function oP(e,t){return e.at!==t.at?e.at-t.at:null===e.value?1:null===t.value?-1:0}function oT(e,t){return t.has(e)||t.set(e,{}),t.get(e)}function oI(e,t){return t[e]||(t[e]=[]),t[e]}let oO=e=>"number"==typeof e,oR=e=>e.every(oO);function oN(e,t,r,n){let i=oE(e,n),o=i.length;eJ(!!o,"No valid element provided.");let a=[];for(let e=0;e<o;e++){let n=i[e];iQ.has(n)||function(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},r=iu(e)?new i8(t,{enableHardwareAcceleration:!1}):new i6(t,{enableHardwareAcceleration:!0});r.mount(e),iQ.set(e,r)}(n);let s=iQ.get(n),l={...r};"function"==typeof l.delay&&(l.delay=l.delay(e,o)),a.push(...rQ(s,{...t,transition:l},{}))}return new oC(a)}let oL=e=>function(t,r,n){let i;if(Array.isArray(t)&&Array.isArray(t[0])){let n;n=[],(function(e,{defaultTransition:t={},...r}={},n){let i=t.duration||.3,o=new Map,a=new Map,s={},l=new Map,u=0,c=0,d=0;for(let r=0;r<e.length;r++){let o=e[r];if("string"==typeof o){l.set(o,c);continue}if(!Array.isArray(o)){l.set(o.name,oA(c,o.at,u,l));continue}let[h,m,v={}]=o;void 0!==v.at&&(c=oA(c,v.at,u,l));let g=0,y=(e,r,n,o=0,a=0)=>{var s;let l=Array.isArray(s=e)?s:[s],{delay:u=0,times:f=ru(l),type:p="keyframes",...h}=r,{ease:m=t.ease||"easeOut",duration:v}=r,y="function"==typeof u?u(o,a):u,b=l.length;if(b<=2&&"spring"===p){let e=100;2===b&&oR(l)&&(e=Math.abs(l[1]-l[0]));let t={...h};void 0!==v&&(t.duration=tS(v));let r=function(e,t=100){let r=rv({keyframes:[0,t],...e}),n=Math.min(rb(r),2e4);return{type:"keyframes",ease:e=>r.next(n*e).value/t,duration:n/1e3}}(t,e);m=r.ease,v=r.duration}null!=v||(v=i);let _=c+y,w=_+v;1===f.length&&0===f[0]&&(f[1]=1);let S=f.length-l.length;S>0&&rl(f,S),1===l.length&&l.unshift(null),function(e,t,r,n,i,o){for(let t=0;t<e.length;t++){let r=e[t];r.at>i&&r.at<o&&(rV(e,r),t--)}for(let a=0;a<t.length;a++)e.push({value:t[a],at:tG(i,o,n[a]),easing:function(e,t){var r;let n;return tO(e)?e[r=e.length,((t-0)%(n=r-0)+n)%n+0]:e}(r,a)})}(n,l,m,f,_,w),g=Math.max(y+v,g),d=Math.max(w,d)};if(en(h))y(m,v,oI("default",oT(h,a)));else{let e=oE(h,n,s),t=e.length;for(let r=0;r<t;r++){let n=oT(e[r],a);for(let e in m){var f,p;y(m[e],(f=v)[p=e]?{...f,...f[p]}:{...f},oI(e,n),r,t)}}}u=c,c+=g}return a.forEach((e,n)=>{for(let i in e){let a=e[i];a.sort(oP);let s=[],l=[],u=[];for(let e=0;e<a.length;e++){let{at:t,value:r,easing:n}=a[e];s.push(r),l.push(ro(0,d,t)),u.push(n||"easeOut")}0!==l[0]&&(l.unshift(0),s.unshift(s[0]),u.unshift("easeInOut")),1!==l[l.length-1]&&(l.push(1),s.push(null)),o.has(n)||o.set(n,{keyframes:{},transition:{}});let c=o.get(n);c.keyframes[i]=s,c.transition[i]={...t,duration:d,ease:u,times:l,...r}}}),o})(t,r,e).forEach(({keyframes:e,transition:t},r)=>{let i;i=en(r)?ic(r,e.default,t.default):oN(r,e,t),n.push(i)}),i=new oC(n)}else i="object"!=typeof r||Array.isArray(r)?ic(t,r,n):oN(t,r,n,e);return e&&e.animations.push(i),i};function oD(){var e;let t=eq(()=>({current:null,animations:[]})),r=eq(()=>oL(t));return e=()=>
1{t.animations.forEach(e=>e.stop())},(0,k.useEffect)(()=>()=>e(),[]),[t,r]}oL();var oM=r(68810),oF=r.n(oM);let oj=(0,k.forwardRef)(({className:e,nextSectionId:t},r)=>{let[n,i]=oD();return(0,k.useImperativeHandle)(r,()=>({showAnimation:e=>i(n.current,{opacity:1,scale:1},{ease:"easeOut",duration:.8,delay:e})}),[]),(0,E.FD)(oe.div,{"data-testid":"hero-primary-swipe",initial:{opacity:0,scale:.2},ref:n,className:(0,C.XS)(oF().root,e),children:[(0,E.Y)("div",{className:(0,C.XS)(oF().pulse,oF()["delay-pulse"])}),(0,E.Y)("div",{className:oF().pulse}),(0,E.Y)("div",{className:oF().trail,children:(0,E.Y)("a",{className:oF()["button-wrapper"],href:t,children:(0,E.Y)(oe.button,{"aria-label":"avanzar a la pr\xf3xima regi\xf3n",whileHover:{height:"120px",transition:{...op,delay:.1,duration:.02}},className:oF().button,children:(0,E.Y)(of,{className:oF().arrow})})})})]})});oj.displayName="HeroSwipe";var oU=r(63443),oB=r.n(oU);let oY=(0,k.forwardRef)(({className:e,children:t,initialRotation:r,onEnterAnimation:n,onIdleAnimation:i},o)=>{let[a,s]=oD(),[l,u]=oD();return(0,k.useEffect)(()=>{u(l.current,{scale:oh(1.3,1.6)},{duration:0})},[]),(0,k.useImperativeHandle)(o,()=>({enterAnimation:async(e,t)=>{n?.(),Promise.all([s(a.current,e,{duration:1,ease:"easeOut",...t}),u(l.current,{scale:1},{duration:1,ease:"easeOut",...t})])},idleAnimation:()=>(i?.(),s(a.current,{rotate:r-5},{repeat:1/0,repeatType:"mirror",ease:"easeInOut",duration:3}))}),[]),(0,E.Y)(oe.div,{ref:a,initial:{rotate:r},className:(0,C.XS)(oB().root,e),exit:{opacity:0},children:(0,E.Y)(oe.div,{initial:{scale:1},ref:l,className:oB().asset,children:t})})});oY.displayName="Pill";let oV=[-10,15,-15,15,-10,-15],oH=[{x:160,y:120},{x:-180,y:-80},{x:200,y:-140},{x:200,y:-80},{x:-180,y:80},{x:-280,y:-120}];function o$({className:e,title:t,subtitle:r,assets:n,nextSectionId:i}){let o=ow("(max-width: 768px)"),a=n.length>=3?n.slice(0,6):[];(0,k.useEffect)(()=>{n.length<3&&console.warn("Hero Primary: Se requieren 3 assets m\xednimamente."),n.length>6&&console.warn(`Hero Primary: Se requieren solo 6 assets, los \xfaltimos ${n.length-6} no ser\xe1n utilizados.`)},[]);let{pillRefs:s,swipeRef:l}=function(e){let t=[(0,k.useRef)(null),(0,k.useRef)(null),(0,k.useRef)(null),(0,k.useRef)(null),(0,k.useRef)(null),(0,k.useRef)(null)],r=(0,k.useRef)(null);async function n(e){await Promise.all(t.map((e,t)=>e.current?.enterAnimation(oH[t],{delay:oh(1.2,.4)}))),await r.current?.showAnimation(e?.2:1.4),Promise.all(t.map(e=>e.current?.idleAnimation()))}return(0,k.useEffect)(()=>{n(e)},[e]),{pillRefs:t,swipeRef:r}}(o);return(0,E.FD)("section",{"aria-labelledby":"hero",className:ox().root,children:[(0,E.FD)(o_,{contentClassName:ox().container,className:e,children:[(0,E.FD)("div",{className:ox().content,children:[(0,E.Y)(og.f,{id:"hero",title:t}),!!r&&(0,E.Y)("p",{className:ox().subtitle,children:r})]}),(0,E.Y)(oj,{ref:l,nextSectionId:`#${i}`})]}),!o&&a.map((e,t)=>(0,E.Y)(oY,{ref:s[t],className:ox()[`pill-${t+1}`],initialRotation:oV[t],children:e},t))]})}var oz=r(89402),oq=r.n(oz),oW=r(99485);function oK({className:e,title:t,subtitle:r}){return(0,E.Y)(o_,{className:e,children:(0,E.FD)("section",{"aria-labelledby":"hero",className:oq().root,children:[(0,E.Y)(og.f,{id:"hero",title:t,variant:oW.i.H2}),!!r&&(0,E.Y)("p",{className:oq().subtitle,children:r})]})})}var oG=r(76397),oX=r.n(oG),oJ=((m={}).FULL_WHITE="full-white",m);let oZ={[x.PAY_DEFAULT]:oc.WHITE,[x.PAY_DARK]:oc.WHITE,[x.SEND_DEFAULT]:oc.WHITE,[x.SEND_DARK]:oc.WHITE,[x.BLACK]:oc.WHITE,[x.GRAY80]:oc.WHITE,[x.BLUE_CROSS_DARK]:oc.WHITE,[x.WHITE]:oc.PAY,"full-white":oc.PAY,[x.REWARD_DEFAULT]:oc.BLACK,[x.PAY10]:oc.BLACK,[x.SEND10]:oc.BLACK,[x.REWARD_LIGHT]:oc.BLACK,[x.GREY03]:oc.BLACK,[x.TRANSPARENT]:oc.PAY};var oQ=((v={}).LEFT_POSITION="left",v.RIGHT_POSITION="right",v);function o0({id:e,title:t,text:r,button:n,children:i,className:o,bannerColor:a=oJ.FULL_WHITE,imagePosition:s=oQ.RIGHT_POSITION,backgroundColor:l=x.GREY03,offsetBackground:u=x.GRAY80}){let c=a===oJ.FULL_WHITE?"white-banner":"color-banner",d=a===oJ.FULL_WHITE?"white":u;return(0,E.FD)("section",{className:(0,C.XS)(oX()[`${c}-absolute-container`],oX()[`color-variant-${l}`],o),id:e,"aria-label":t,children:[(0,E.Y)("div",{className:(0,C.XS)(oX()[`${c}-offset`],oX()[`color-variant-${d}`])}),(0,E.Y)(o_,{contentClassName:oX()[`${c}-mobile-width`],children:(0,E.Y)("div",{className:oX()[`${c}-root`],children:(0,E.Y)("div",{className:oX()[`${c}-main-container`],children:(0,E.FD)("div",{className:oX()[`${c}
1-flex-container`],"data-position":s,children:[(0,E.FD)("div",{className:(0,C.XS)(oX()[`${c}-text-container`],oX()[`color-variant-${a}`]),"data-position":s,children:[(0,E.Y)("div",{className:oX()[`${c}-title`],children:t}),(0,E.Y)("div",{className:oX()[`${c}-sub-title`],children:r}),n&&(0,E.Y)(ov,{disabled:n.disabled,className:oX().button,variant:oZ[a],onClick:n.onClick,children:n.text})]}),(0,E.Y)("div",{className:(0,C.XS)(oX()[`${c}-image-container`],oX()[`color-variant-${a}`]),"data-position":s,children:i})]})})})})]})}var o1=r(1641),o2=r.n(o1);function o3({id:e,title:t,text:r,button:n,bannerColor:i=oJ.FULL_WHITE,offsetBackground:o=x.WHITE,backgroundColor:a=x.GREY03,className:s}){let l=i===oJ.FULL_WHITE?"white-banner":"color-banner",u=i===oJ.FULL_WHITE?"white":o;return(0,E.FD)("section",{className:(0,C.XS)(o2()[`${l}-absolute-container`],o2()[`color-variant-${a}`],s),id:e,"aria-label":t,children:[(0,E.Y)("div",{className:(0,C.XS)(o2()[`${l}-offset`],o2()[`color-variant-${u}`])}),(0,E.Y)(o_,{children:(0,E.Y)("div",{className:o2()[`${l}-root`],children:(0,E.Y)("div",{className:o2()[`${l}-main-container`],children:(0,E.FD)("div",{className:(0,C.XS)(o2()[`${l}-flex-container`],o2()[`color-variant-${i}`]),children:[(0,E.Y)("div",{className:o2()[`${l}-title`],children:t}),(0,E.Y)("div",{className:o2()[`${l}-sub-title`],children:r}),n&&(0,E.Y)(ov,{disabled:n.disabled,variant:oZ[i],onClick:n.onClick,children:n.text})]})})})})]})}let o5=[x.WHITE,x.REWARD_DEFAULT,x.REWARD_LIGHT,x.SEND10,x.PAY10];function o4(e){return!o5.includes(e)}var o6=r(76994),o8=r.n(o6),o9=((g={}).COLUMN_RECTANGLE="column-rectangle",g.COLUMN_SQUARE="column-square",g.GRID_HORIZONTAL="grid-horizontal",g.GRID_HORIZONTAL_REVERSE="grid-horizontal-reverse",g.GRID_VERTICAL="grid-vertical",g);function o7({className:e,variant:t,color:r,title:n,text:i,button:o,reverse:a,children:s}){let l=t?.split("-").map(e=>o8()[`banner-asset-${e}`]);return(0,E.FD)("section",{"aria-label":n,onClick:o?.onClick,onKeyDown:o?.onClick,className:(0,C.XS)(o8().root,...l,o8()[`color-variant-${r}`],e),"data-reverse":`${a}`,children:[(0,E.Y)("div",{className:o8()["content-container"],children:(0,E.FD)("div",{className:o8().content,children:[(0,E.Y)("h4",{className:o8().title,children:n}),(0,E.Y)("p",{className:o8().text,children:i}),!!o&&(0,E.Y)(oi,{variant:o4(r)?on.SECONDARY_WHITE:on.SECONDARY_BLACK,onClick:o.onClick,children:o.text})]})}),(0,E.Y)("div",{className:o8().children,children:s})]})}var ae=r(91579),at=r.n(ae);function ar({id:e,ariaLabel:t,className:r,banner1:n,banner2:i,banner3:o,reverse:a}){let s=n.color===x.WHITE||i.color===x.WHITE||o&&o.color===x.WHITE;return(0,E.Y)(o_,{className:(0,C.XS)(at().root,s&&at().background,r),children:o?(0,E.FD)("section",{id:e,"aria-label":t,className:(0,C.XS)(at().content,at()["grid-gap"]),"data-reverse":a,children:[(0,E.Y)(o7,{...n,variant:o9.GRID_VERTICAL}),(0,E.FD)("div",{className:(0,C.XS)(at().column,at()["grid-gap"]),children:[(0,E.Y)(o7,{...i,variant:o9.GRID_HORIZONTAL}),(0,E.Y)(o7,{...o,variant:o9.GRID_HORIZONTAL})]})]}):(0,E.FD)("section",{id:e,"aria-label":t,className:(0,C.XS)(at().row,at()["grid-gap"]),children:[(0,E.Y)(o7,{...n,variant:o9.COLUMN_RECTANGLE}),(0,E.Y)(o7,{...i,variant:o9.COLUMN_RECTANGLE})]})})}var an=r(10660),ai=r.n(an);function ao({fill:e,...t}){return(0,E.Y)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:(0,E.Y)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.7071 21.7071C23.3166 22.0976 22.6834 22.0976 22.2929 21.7071L18 17.4142L13.7071 21.7071C13.3166 22.0976 12.6834 22.0976 12.2929 21.7071C11.9024 21.3166 11.9024 20.6834 12.2929 20.2929L17.2929 15.2929C17.6834 14.9024 18.3166 14.9024 18.7071 15.2929L23.7071 20.2929C24.0976 20.6834 24.0976 21.3166 23.7071 21.7071Z",fill:e})})}function aa({title:e,body:t,button:r,alwaysOpen:n=!1}){let[i,o]=(0,k.useState)(n),a=(0,k.useCallback)(()=>{n||o(e=>!e)},[]);return(0,E.FD)("div",{className:ai().root,"aria-expanded":i,children:[(0,E.FD)("div",{className:ai().header,onClick:a,onKeyDown:a,children:[e,!n&&(0,E.Y)(ao,{fill:"black",className:ai().chevron,"data-show-body":i,"aria-label":i?"Contraer":"Expandir"})]}),(0,E.Y)("div",{className:ai().content,"data-show-body":i,"aria-hidden":!i,children:(0,E.FD)("div",{className:ai().body,"data-show-body":i,children:[(0,E.Y)("p",{children:t}),r&&(0,E.Y)("div",{className:ai().button,children:(0,E.Y)(oi,{variant:on.LINK_LIGHT,onClick:r.onClick,children:r.text})})]})})]})}var as=r(4957),al=r.n(as);function au({id:e,title:t,primaryButton:r,content:n,ariaLabel:i,className:o,backgroundColor:a=x.GREY03}){return(0,E.Y)("section",{id:e,"aria-label":i,className:(0,C.XS)(al().root,o,al()[`color-variant-${a}`]),children:(0,E.FD)(o_,{children:[(0,E.Y)("h4",{className:al().title,children:t}),(0,E.Y)("div",{className:al().content,children:n.map(e=>(0,E.Y)(aa,{...e},e.id))}),r&&(0,E.Y)(ov,{disabled:r.disabled,className:al().mainButton,onClick:r.onClick,variant:oZ[a],children:r.text})]})})}
1var ac=r(6171),ad=r.n(ac);function af({variant:e,color:t,title:r,text:n,className:i,renderAsset:o}){return(0,E.FD)("section",{"aria-label":r,className:(0,C.XS)(ad().root,ad()[`variant-${e}`],ad()[`color-variant-${t}`],i),children:[(0,E.Y)("div",{className:ad().asset,children:o(o4(t))}),(0,E.FD)("div",{children:[(0,E.Y)("h4",{className:ad().title,children:r}),(0,E.Y)("p",{className:ad().text,children:n})]})]})}var ap=r(45072),ah=r.n(ap);function am({id:e,ariaLabel:t,className:r,banners:n,variant:i}){return(0,E.Y)(o_,{className:(0,C.XS)(ah().root,r),children:(0,E.Y)("section",{id:e,"aria-label":t,className:(0,C.XS)(ah().section,ah()["grid-gap"]),children:n.map(e=>(0,E.Y)(af,{...e,variant:i},e.title))})})}var av=r(72448),ag=r.n(av);function ay({id:e,title:t,text:r,button:n,image:i,reverse:o,className:a,color:s=x.PAY10}){return(0,E.Y)(o_,{className:(0,C.XS)(ag().root,a),children:(0,E.FD)("section",{"aria-label":t,className:(0,C.XS)(ag().section,ag()[`color-variant-${s}`]),id:e,"data-reverse":`${o}`,children:[(0,E.Y)("div",{className:ag().image,children:i}),(0,E.FD)("div",{className:ag()["content-wrapper"],"data-reverse":`${o}`,children:[(0,E.FD)("div",{className:ag().content,children:[(0,E.Y)("h4",{className:ag().title,children:t}),(0,E.Y)("p",{className:ag().text,children:r}),n&&(0,E.Y)(ov,{disabled:n.disabled,className:ag().button,onClick:n.onClick,variant:oZ[s],children:n.text})]}),(0,E.Y)("div",{className:ag()["blank-space"]})]})]})})}var ab=r(49762),a_=r.n(ab),aw=r(94164),aS=r.n(aw);function ax({children:e,onClick:t}){return(0,E.FD)("button",{className:(0,C.XS)(aS().root,aS().button,aS()["primary-black"]),onClick:t,children:[(0,E.Y)("span",{className:aS()["default-title"],children:e}),(0,E.Y)("div",{className:(0,C.XS)(aS().button,aS()["top-title"]),"aria-hidden":!0,children:e})]})}function aE({fill:e="white",...t}){return(0,E.FD)("svg",{width:"32",height:"33",viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,E.Y)("path",{d:"M9 9.33325L23 9.33325",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,E.Y)("path",{d:"M9 16.3333L23 16.3333",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,E.Y)("path",{d:"M9 23.3333L23 23.3333",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function ak({fill:e="#ECECEC",...t}){return(0,E.Y)("svg",{width:"58",height:"16",viewBox:"0 0 58 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:(0,E.Y)("path",{id:"Pointer",fillRule:"evenodd",clipRule:"evenodd",d:"M58 15.9976C55.8867 15.9976 53.774 16.0081 51.6608 15.9853C49.6382 15.9631 47.3744 15.9317 45.406 15.1913C43.2798 14.3913 41.8722 12.9923 40.4559 11.346C39.4363 10.1618 37.4334 7.63537 36.4582 6.41554C35.66 5.41542 34.0975 3.43857 33.2445 2.48214C32.1705 1.27892 30.8431 3.34792e-06 28.9994 3.18673e-06C27.1557 3.02555e-06 25.8288 1.27892 24.7555 2.48091C23.9025 3.43672 22.34 5.4148 21.5412 6.4143C20.5672 7.63414 18.5643 10.1606 17.5441 11.3447C16.1254 12.9911 14.7202 14.39 12.5946 15.1901C10.6256 15.9287 8.36123 15.9619 6.33986 15.9841C4.22595 16.0068 2.11328 15.9964 -3.81438e-06 15.9964",fill:e})})}function aC({item:e,onClose:t}){return(0,E.Y)("div",{className:a_()["option-item"],children:(0,E.FD)("button",{"aria-label":e.ariaLabel,onClick:()=>{t&&t(!1),e.action()},children:[(0,E.Y)("img",{src:e.icon,alt:`Icon ${e.text}`}),(0,E.Y)("label",{children:e.text})]})})}function aA({options:e}){return(0,E.Y)(E.FK,{children:e.map(e=>(0,E.Y)(aC,{item:e},e.text))})}function aP({menuOptions:e}){return(0,E.Y)("ul",{className:a_()["menu-container"],children:e.map((t,r)=>(0,E.FD)("li",{className:t.active?a_()["menu-container-active"]:"",children:[(0,E.Y)("button",{className:a_()["menu-container-a"],onClick:t.action,children:(0,E.Y)("span",{children:t.text})}),t.detail.length>0&&(0,E.FD)(E.FK,{children:[(0,E.Y)("div",{className:a_()["menu-option-triangle"],children:(0,E.Y)("span",{children:(0,E.Y)(ak,{})})}),(0,E.Y)("div",{className:a_()["menu-option-detail"],style:0===r?{left:"20%"}:r===e.length-1?{right:"0"}:void 0,children:(0,E.Y)("div",{className:a_()["menu-options-columns"],children:t.detail.map(e=>(0,E.Y)("div",{className:a_()["menu-option-items"],children:(0,E.Y)(aA,{options:e.options})},e._uid))})})]})]},t._uid))})}function aT({fill:e,...t}){return(0,E.Y)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:(0,E.FD)("g",{id:"Web_menu",children:[(0,E.Y)("path",{id:"Vector 5",d:"M9 9L23 23",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,E.Y)("path",{id:"Vector 7",d:"M9 23L23 9",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})}
1function aI({fill:e,...t}){return(0,E.Y)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:e,xmlns:"http://www.w3.org/2000/svg",...t,children:(0,E.Y)("g",{id:"Icon_simple",children:(0,E.Y)("path",{id:"icon (Stroke)",fillRule:"evenodd",clipRule:"evenodd",d:"M14.7929 24.2071C14.4024 23.8166 14.4024 23.1834 14.7929 22.7929L19.0858 18.5L14.7929 14.2071C14.4024 13.8166 14.4024 13.1834 14.7929 12.7929C15.1834 12.4024 15.8166 12.4024 16.2071 12.7929L21.2071 17.7929C21.5976 18.1834 21.5976 18.8166 21.2071 19.2071L16.2071 24.2071C15.8166 24.5976 15.1834 24.5976 14.7929 24.2071Z",fill:"#121212"})})})}function aO({option:e,showingMenu:t,onClose:r}){let[n,i]=(0,k.useState)(!1),o=(0,k.useCallback)(t=>{(t.stopPropagation(),e.detail.length>0)?i(e=>!e):e.action()},[]);return(0,k.useEffect)(()=>{t||i(t)},[t]),(0,E.FD)("li",{children:[(0,E.FD)("div",{className:a_()["menu-option-title"],onClick:o,onKeyDown:o,children:[(0,E.Y)("span",{children:e.text}),e.detail.length>0&&(0,E.Y)(aI,{fill:"black",className:a_().chevron,"data-show-body":n,"aria-label":n?"Contraer":"Expandir"})]}),(0,E.Y)("div",{className:a_()["menu-option-content"],"data-show-body":n,children:(0,E.Y)("div",{className:a_()["menu-option-body"],"data-show-body":n,children:e.detail.map(e=>(0,E.Y)("div",{children:e.options.map(e=>(0,E.Y)(aC,{item:e,onClose:r},e.text))},e._uid))})})]},e.text)}function aR({show:e,onClose:t,logo:r,menuOptions:n,button:i}){let o=()=>{t(!1)};return(0,E.Y)("div",{className:a_().overlay,"data-show":e,onClick:o,onKeyDown:o,children:(0,E.FD)("div",{className:a_()["mobile-menu-root"],"data-show":e,children:[(0,E.FD)("div",{className:a_()["mobile-menu-container"],children:[(0,E.FD)("div",{className:a_()["flex-container"],children:[(0,E.Y)("button",{"aria-label":"Cerrar men\xfa",className:(0,C.XS)(a_()["mobile-menu-icon"],a_()["no-select"]),onClick:()=>t(!1),children:(0,E.Y)(aT,{})}),r]}),(0,E.Y)("ul",{"data-show":e,className:a_()["no-select"],children:n.map(r=>(0,E.Y)(aO,{option:r,onClose:t,showingMenu:e},r.text))})]}),(0,E.Y)("div",{className:a_()["mobile-menu-bottom"],children:(0,E.Y)(ax,{onClick:()=>{t(!1),i.action()},children:i.text})})]})})}function aN({logo:e,menuOptions:t,button:r}){let[n,i]=(0,k.useState)(!1),[o,a]=(0,k.useState)(!1),s=ow("(min-width: 1280px)"),l=(0,k.useRef)(null),u=e=>{i(e)},c=(0,k.useCallback)(()=>{(()=>{let{scrollY:e}=window;return e>100?(a(!0),!0):(a(!1),!1)})()?(l.current?.classList.add(a_()["sticky-navbar"]),l.current?.classList.remove(a_()["fixed-navbar"])):(l.current?.classList.add(a_()["fixed-navbar"]),l.current?.classList.remove(a_()["sticky-navbar"]))},[]);return(0,k.useEffect)(()=>(window.addEventListener("scroll",c,{passive:!0}),()=>{window.removeEventListener("scroll",c)}),[]),(0,E.FD)(E.FK,{children:[(0,E.Y)("div",{className:(0,C.XS)(a_().root,a_()["fixed-navbar"],a_()["navbar-transitions"]),id:"navbar_root",ref:l,children:(0,E.Y)(o_,{className:o?"":a_()["navbar-padding"],contentClassName:a_()["navbar-content"],children:(0,E.FD)("nav",{className:(0,C.XS)(a_().nav,a_()["no-select"]),children:[(0,E.FD)("div",{className:a_()["flex-container"],children:[(0,E.Y)("button",{"aria-label":"Abrir men\xfa",className:a_()["mobile-menu-icon"],onClick:()=>u(!n),children:(0,E.Y)(aE,{})}),e]}),s&&(0,E.Y)(aP,{menuOptions:t}),(0,E.Y)(ax,{onClick:r.action,children:r.text})]})})}),(0,E.Y)(aR,{show:n,onClose:u,logo:e,menuOptions:t,button:r})]})}let aL={some:0,all:1};var aD=r(97522),aM=r.n(aD);function aF({id:e,title:t,text:r,button:n,renderBackgroundVideo:i,className:o}){let a=(0,k.useRef)(null),s=function(e,{root:t,margin:r,amount:n,once:i=!1}={}){let[o,a]=(0,k.useState)(!1);return(0,k.useEffect)(()=>{if(!e.current||i&&o)return;let s={root:t&&t.current||void 0,margin:r,amount:n};return function(e,t,{root:r,margin:n,amount:i="some"}={}){let o=oE(e),a=new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let r=a.get(e.target);if(!!r!==e.isIntersecting)if(e.isIntersecting){let r=t(e);"function"==typeof r?a.set(e.target,r):s.unobserve(e.target)}else r&&(r(e),a.delete(e.target))})},{root:r,rootMargin:n,threshold:"number"==typeof i?i:aL[i]});
1return o.forEach(e=>s.observe(e)),()=>s.disconnect()}(e.current,()=>(a(!0),i?void 0:()=>a(!1)),s)},[t,e,r,i,n]),o}(a);return(0,E.FD)("section",{id:e,"aria-label":t,ref:a,className:(0,C.XS)(aM().root,o),children:[(0,E.Y)("div",{className:aM()["video-background"],children:i?.(s)}),(0,E.Y)("div",{className:aM()["video-filter"],children:(0,E.FD)(o_,{contentClassName:aM().content,children:[(0,E.Y)("h2",{className:aM().title,children:t}),!!r&&(0,E.Y)("p",{className:aM().text,children:r}),!!n&&(0,E.Y)(ov,{disabled:n.disabled,onClick:n.onClick,children:n.text})]})})]})}var aj=r(66397),aU=r.n(aj);function aB({id:e,heading:t,roundedAction1:r,roundedAction2:n,button:i,className:o}){return(0,E.FD)("section",{id:e,"aria-label":t.title,className:(0,C.XS)(aU().root,o),children:[(0,E.Y)("div",{className:aU().row,children:(0,E.FD)("div",{className:(0,C.XS)(aU().heading,aU().grow),children:[(0,E.Y)("h3",{className:aU().title,children:t.title}),(0,E.Y)("div",{className:aU()["image-container"],children:(0,E.Y)("div",{className:aU()["image-wrapper"],children:t.image})})]})}),(0,E.Y)("div",{className:aU().row,children:(0,E.FD)("div",{className:(0,C.XS)(aU().actions,aU().grow),children:[[r,n].map((e,t)=>(0,E.Y)("button",{className:(0,C.XS)(aU().action,aU()["rounded-action"]),onClick:e.onClick,children:(0,E.Y)("div",{className:aU().image,children:e.image})},e.key)),(0,E.FD)("div",{className:(0,C.XS)(aU().action,aU().button),children:[(0,E.Y)("p",{className:aU().text,children:i.title}),(0,E.Y)(oi,{variant:on.SECONDARY_BLACK,onClick:i.action.onClick,children:i.action.text})]})]})})]})}var aY=r(6537),aV=r.n(aY),aH=r(36111),a$=r.n(aH);function az({title:e,text:t,button:r,image:n,className:i}){return(0,E.FD)("section",{"aria-label":e,className:(0,C.XS)(a$().root,i),children:[(0,E.FD)("div",{className:(0,C.XS)(a$().content,!!r&&a$()["content-button"]),children:[(0,E.Y)("h5",{className:a$().title,children:e}),!r&&(0,E.Y)("p",{className:a$().text,children:t}),!!r&&(0,E.Y)(oi,{variant:on.SECONDARY_BLACK,onClick:r.onClick,children:r.text})]}),(0,E.Y)("div",{className:a$().image,children:n})]})}var aq=r(18455),aW=r.n(aq),aK=r(36305),aG=r.n(aK);let aX=(0,k.forwardRef)(({className:e,children:t,variant:r=x.PAY_DEFAULT,role:n="button",...i},o)=>(0,E.Y)("button",{className:(0,C.XS)(aG().root,aG()[o4(r)?"dark-image":"light-image"],aG()[r],e),role:n,ref:o,...i,children:(0,E.Y)("div",{className:aG().image,children:t})}));function aJ({fill:e,...t}){return(0,E.Y)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"37",fill:"none",...t,children:(0,E.Y)("path",{d:"M21.2071 12.793C21.5976 13.1835 21.5976 13.8166 21.2071 14.2072L16.9142 18.5001L21.2071 22.793C21.5976 23.1835 21.5976 23.8166 21.2071 24.2072C20.8166 24.5977 20.1834 24.5977 19.7929 24.2072L14.7929 19.2072C14.4024 18.8166 14.4024 18.1835 14.7929 17.793L19.7929 12.793C20.1834 12.4024 20.8166 12.4024 21.2071 12.793Z",fill:e})})}function aZ({fill:e,...t}){return(0,E.Y)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"37",fill:"none",...t,children:(0,E.Y)("path",{d:"M14.7929 24.2071C14.4024 23.8166 14.4024 23.1834 14.7929 22.7929L19.0858 18.5L14.7929 14.2071C14.4024 13.8166 14.4024 13.1834 14.7929 12.7929C15.1834 12.4024 15.8166 12.4024 16.2071 12.7929L21.2071 17.7929C21.5976 18.1834 21.5976 18.8166 21.2071 19.2071L16.2071 24.2071C15.8166 24.5976 15.1834 24.5976 14.7929 24.2071Z",fill:e})})}function aQ({onBack:e,onForward:t,variant:r,className:n}){return(0,E.FD)("section",{"aria-label":"controles del carrusel",className:(0,C.XS)(aW().root,n),children:[(0,E.Y)(aX,{variant:r,onClick:e,"aria-label":"atr\xe1s",children:(0,E.Y)(aJ,{"aria-hidden":!0,width:"100%",height:"100%",style:{fill:"inherit"}})}),(0,E.Y)(aX,{variant:r,onClick:t,"aria-label":"adelante",children:(0,E.Y)(aZ,{"aria-hidden":!0,width:"100%",height:"100%",style:{fill:"inherit"}})})]})}aX.displayName="ButtonIcon";var a0=((y=a0||{}).RIGHT="right",y.LEFT="left",y);function a1({id:e,ariaLabel:t,cards:r,title:n,text:i,button:o,className:a,color:s,backgroundColor:l=x.WHITE,reverse:u}){let c=(0,k.useMemo)(()=>o4(s)?on.SECONDARY_WHITE:on.SECONDARY_BLACK,[s]),d=(0,k.useMemo)(()=>o4(s)?x.WHITE:x.PAY_DEFAULT,[s]),{onForward:f,onBack:p,listRef:h,listItemRef:m}=function({cards:e}){let t=(0,k.useRef)(0),r=(0,k.useRef)(null),n=(0,k.useRef)(null),i=ow("(max-width: 768px)"),o=ow("(max-width: 620px)"),a=i?16:64,s=(0,k.useCallback)(()=>Number(n.current?.clientWidth)+a,[a]),[l,u]=(0,k.useState)({position:0,direction:"right"}),c=function(e,t=500){let[r,n]=(0,k.useState)(e);return(0,k.useEffect)(()=>{let r=setTimeout(()=>n(e),t);return()=>{clearTimeout(r)}},[e,t]),r}(l,80),d=(0,k.useCallback)(n=>{let i=Math.min(Math.max(n,0),e-1);t.current=i,r.current?.scroll({left:i*s(),behavior:"smooth"})},[e]);(0,k.useEffect)(()=>{d(t.current)},[i,o]);let f=(0,k.useCallback)(e=>{u({position:r.current.scrollLeft,direction:e.deltaX>0?"right":"left"})},[]),p=(0,k.useCallback)(()=>{let n=(r.current?.scrollLeft??0)/s();d(t.current===e-1||n>=t.current?Math.ceil(n):Math.floor(n))},[]);return(0,k.useEffect)(()=>{let e=c.position/s();d("right"===c.direction?Math.ceil(e):Math.floor(e))},[c]),(0,k.useEffect)(()=>(r.current?.addEventListener("wheel",f,{passive:!1}),r.current?.addEventListener("scrollend",p,{passive:!1}),()=>{r.current?.removeEventListener("wheel",f),r.current?.removeEventListener("scrollend",p)}),[]),{onForward:(0,k.useCallback)(()=>d(t.current+1),[]),onBack:(0,k.useCallback)(()=>d(t.current-1),[]),listRef:r,listItemRef:n}}({cards:r.length});return(0,E.Y)("section",{id:e,"aria-label":t,className:(0,C.XS)(a,aV()[`color-variant-${l}`]),children:(0,E.Y)(o_,{children:(0,E.FD)("div",{className:(0,C.XS)(aV().root,aV()[`color-variant-${s}`]),"data-reverse":`${u}`,children:[(0,E.FD)("div",{className:aV().content,children:[(0,E.FD)("div",{className:aV().data,children:[(0,E.Y)("h4",{className:aV().title,children:n}),(0,E.Y)("p",{className:aV().text,children:i}),o&&(0,E.Y)(oi,{variant:c,onClick:o.onClick,children:o.text})]}),(0,E.Y)(aQ,{className:aV().controls,onForward:f,onBack:p,variant:d})]}),(0,E.Y)("ul",{ref:h,className:aV().cards,"data-testid":"list",children:r?.map((e,t)=>(0,E.Y)("li",{ref:m,"data-testid":`li-${t}`,children:(0,E.Y)(az,{...e})},e.key))}),(0,E.Y)(aQ,{className:aV().controls,onForward:f,onBack:p,variant:d})]})})})}var a2=r(60685),a3=r.n(a2),a5=r(50181),a4=r.n(a5),a6=r(36250),a8=r.n(a6);function a9({icon:e,title:t,className:r}){return(0,E.FD)("div",{className:(0,C.XS)(a8().root,r),children:[e&&(0,E.Y)("div",{className:a8().icon,children:e}),t]})}function a7({ariaLabel:e,className:t,data:r}){return(0,E.Y)("ul",{"aria-label":e,className:(0,C.XS)(a4().root,t),children:r.map(({title:e,icon:t,onClick:r})=>(0,E.Y)("li",{children:r?(0,E.FD)("a",{className:(0,C.XS)(a4().item,a4().pressable),onClick:r,onKeyDown:r,children:[(0,E.Y)(a9,{icon:t,title:e}),(0,E.Y)(of,{className:a4().arrow,fill:"#008859"})]}):(0,E.Y)("div",{className:a4().item,children:(0,E.Y)(a9,{icon:t,title:e})})},e))})}var se=((b={}).LIST="list",b.INFO="info",b),st=r(9313),sr=r.n(st);function sn({ariaLabel:e,className:t,data:r}){return(0,E.Y)("section",{"aria-label":e,className:(0,C.XS)(sr().root,t),children:r.map(({title:e,text:t,images:r,buttons:n})=>(0,E.FD)("div",{className:sr().item,children:[(0,E.Y)("h5",{className:sr().title,children:e}),(0,E.Y)("p",{className:sr().text,children:t}),r?.length&&(0,E.Y)("div",{className:sr().images,children:r.map((e,t)=>(0,E.Y)("div",{className:sr().image,children:e},t))}),n?.length&&(0,E.Y)("div",{className:sr().actions,children:n.map(e=>(0,E.Y)(oi,{onClick:e.onClick,variant:on.SECONDARY_PAY,children:(0,E.Y)("p",{children:e.text})},e.text))})]},e))})}function si(e){let{id:t,ariaLabel:r,dataAriaLabel:n,className:i,banner:o,reverse:a,background:s=x.GREY03}=e;return(0,E.Y)(o_,{className:(0,C.XS)(a3().root,a3()[`color-variant-${s}`],i),children:(0,E.FD)("section",{id:t,"aria-label":r,className:(0,C.XS)(a3().container,a3()["grid-gap"]),"data-reverse":`${a}`,children:[(0,E.Y)(o7,{...o,variant:o9.COLUMN_SQUARE}),e.type===se.LIST&&(0,E.Y)(a7,{ariaLabel:n,className:(0,C.XS)(a3().data),data:e.data}),e.type===se.INFO&&(0,E.Y)(sn,{ariaLabel:n,className:(0,C.XS)(a3().data),data:e.data})]})})}var so=r(75811),sa=r.n(so);function ss({id:e,actions:t,className:r,companyInfo:n,companyLogo:i,resources:o,social:a,resourcesTitle:s,actionsTitle:l,financialData:u}){return(0,E.FD)("footer",{id:e,className:(0,C.XS)(sa().root,r),children:[(0,E.Y)("div",{className:sa().socials,children:a.map(e=>(0,E.Y)("div",{onClick:e.onClick,onKeyDown:e.onClick,children:(0,E.Y)("div",{className:sa().story,children:e.icon})},e.key))}),(0,E.Y)("div",{className:sa().inner,children:(0,E.FD)("div",{className:sa().innerContent,children:[i,(0,E.FD)("div",{className:sa().innerColumns,children:[(0,E.FD)("div",{children:[(0,E.Y)("p",{children:n}),(0,E.Y)("div",{className:sa().fiscalData,children:u.map(e=>e)})]}),(0,E.FD)("div",{children:[(0,E.Y)("h4",{children:s}),o.map(e=>(0,E.Y)("div",{onClick:e.onClick,onKeyDown:e.onClick,className:sa().resources,children:(0,E.Y)("p",{children:e.text})},e.text))]}),(0,E.FD)("div",{children:[(0,E.Y)("h4",{children:l}),t.map(e=>(0,E.FD)(oi,{variant:on.SEND_WHITE,className:sa()["help-button"],onClick:e.button.onClick,children:[(0,E.Y)("label",{children:e.button.text})," ",e.icon]},e.button.text))]})]})]})})]})}var sl=r(84939),su=r.n(sl),sc=((_={}).SM="sm",_.MD="md",_.LG="lg",_.XL="xl",_),sd=((w={}).SMALL="small",w.MEDIUM="medium",w),sf=((S={}).ONLINE_STORE="online_store",S.NEW="new",S.FINISHED="finished",S.NEXT="next",S.TIME="time",S),sp=r(82475),sh=r.n(sp);function sm({text:e,type:t}){return(0,E.Y)("div",{"data-testid":`top-tag-card-promotion-${e}`,className:sh()["top-tag-container"],"data-type-tag":t,children:(0,E.Y)("div",{className:sh()["top-tag-text"],"data-text-alternative-color":t===sf.NEXT,children:e})})}var sv=r(77719),sg=r.n(sv);function sy({icon:e,text:t,textSize:r}){return(0,E.FD)("div",{"data-testid":`bottom-tag-card-promotion-${t}`,className:sg()["common-data-tag"],children:[e,(0,E.Y)("div",{className:sg()["bottom-tag-text"],"data-type-text":r,children:t})]})}
1function sb({onClick:e,size:t=sc.MD,title:r="Promoci\xf3n",benefit:n,primaryImage:i,secondaryImage:o,topTags:a=[],bottomTags:s=[],key:l=""}){let u=(0,k.useMemo)(()=>[sc.LG,sc.XL].includes(t),[t]),c=(0,k.useMemo)(()=>[sc.MD,sc.LG].includes(t),[t]),d=(0,k.useMemo)(()=>[sc.SM].includes(t),[t]),f=(0,k.useMemo)(()=>[sc.MD].includes(t),[t]),p=(0,k.useMemo)(()=>u?a:a.slice(0,1),[u,a]);return(0,E.FD)("div",{onClick:e,onKeyDown:e,className:(0,C.XS)(su()["common-card-promo-container"],su()[`card-promo-container-${t}`]),"data-testid":`card-promotion-${t}`,children:[(0,E.FD)("div",{className:(0,C.XS)(su()["common-primary-image"],su()[`primary-image-${t}`]),children:[p.length>0&&(0,E.Y)("div",{className:(0,C.XS)(su()["common-image-tag-container"],su()[`image-tag-container-${t}`]),children:p.map(({text:e,type:t},r)=>(0,E.Y)(sm,{text:e,type:t},`${t}-${e}-${r}`))}),i]}),(0,E.FD)("div",{className:(0,C.XS)(su()["common-data"],su()[`data-${t}`]),children:[(0,E.FD)("div",{className:(0,C.XS)(su()["common-secondary-image"],su()[`secondary-image-${t}`]),children:[u&&o,(0,E.FD)("div",{className:(0,C.XS)(su()["common-title-wrapper"],su()[`title-wrapper-${t}`]),children:[(0,E.Y)("div",{className:su()["elliptical-text"],children:(0,E.Y)("div",{className:(0,C.XS)(su()["elliptical-text"],su().title,su()[`title-${t}`],!c&&su()["center-text"]),"data-testid":`title-${r}`,children:r})}),(0,E.Y)("div",{className:(0,C.XS)(su()["common-benefit-container"],su()[`benefit-container-${t}`]),children:(0,E.Y)("div",{className:(0,C.XS)(!d&&su()["elliptical-text"],!c&&su()["center-text"],su()["text-benefit"]),children:n&&(n?.length>17&&d?n.trim().slice(0,14)+"...":n)})})]})]}),!d&&s.length>0&&(0,E.Y)("div",{className:(0,C.XS)(su()["common-data-tag-container"],su()[`data-tag-container-${t}`]),children:s.map(({icon:e,text:t},r)=>(0,E.Y)(sy,{text:t,icon:e,textSize:f?sd.SMALL:sd.MEDIUM},`${t}-${r}`))})]})]},l||`card-promo-${r}`)}var s_=r(72455),sw=r.n(s_),sS=r(53629),sx=r.n(sS);let sE=function({title:e,subtitle:t,image:r,className:n}){return(0,E.FD)("section",{"aria-labelledby":"hero",className:(0,C.XS)(n,sx().root),children:[(0,E.Y)("div",{className:sx()["image-container"],children:r}),(0,E.Y)(o_,{className:sx().layout,children:(0,E.FD)("div",{className:sx()["text-container"],children:[(0,E.Y)("h1",{className:sx().title,children:e}),!!t&&(0,E.Y)("p",{className:sx().subtitle,children:t})]})})]})};var sk=r(82058),sC=r.n(sk);let sA=function({content:e}){return(0,E.Y)(o_,{children:(0,E.Y)("div",{className:sC().content,children:e})})};function sP({className:e,hero:t,content:r,button:n}){return(0,E.FD)("div",{className:(0,C.XS)(e,sw().root),children:[(0,E.Y)(sE,{...t}),!!r&&(0,E.Y)(sA,{content:r}),!!n&&(0,E.Y)(oi,{className:sw().button,...n,variant:on.PRIMARY_PAY,children:n.text})]})}},9816:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={default:function(){return E},useLinkStatus:function(){return x}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let o=r(98781),a=r(1503),s=o._(r(72223)),l=r(62598),u=r(95876),c=r(70061),d=r(82651),f=r(88228),p=r(65693),h=r(75003),m=r(22880),v=r(10601),g=r(92734);r(30784);let y=new Set;function b(e,t,r,n){if((0,u.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let i=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(y.has(i))return;y.add(i)}e.prefetch(t,r,n).catch(e=>{})}}function _(e){return"string"==typeof e?e:(0,c.formatUrl)(e)}let w=s.default.forwardRef(function(e,t){let r,n,{href:i,as:o,children:c,prefetch:y=null,passHref:w,replace:S,shallow:x,scroll:E,locale:k,onClick:C,onNavigate:A,onMouseEnter:P,onTouchStart:T,legacyBehavior:I=!1,transitionTypes:O,...R}=e;r=c,I&&("string"==typeof r||"number"==typeof r)&&(r=(0,a.jsx)("a",{children:r}));let N=s.default.useContext(p.RouterContext),L=!1!==y,{href:D,as:M}=s.default.useMemo(()=>{if(!N){let e=_(i);return{href:e,as:o?_(o):e}}let[e,t]=(0,l.resolveHref)(N,i,!0);return{href:e,as:o?(0,l.resolveHref)(N,o):t||e}},[N,i,o]),F=s.default.useRef(D),j=s.default.useRef(M);I&&(n=s.default.Children.only(r));let U=I?n&&"object"==typeof n&&n.ref:t,[B,Y,V]=(0,h.useIntersection)({rootMargin:"200px"}),H=s.default.useCallback(e=>{(j.current!==M||F.current!==D)&&(V(),j.current=M,F.current=D),B(e)},[M,D,V,B]),$=(0,g.useMergedRef)(H,U);s.default.useEffect(()=>{!N||Y&&L&&b(N,D,M,{locale:k})},[M,D,Y,k,L,N?.locale,N]);let z={ref:$,onClick(e){I||"function"!=typeof C||C(e),I&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),!N||e.defaultPrevented||function(e,t,r,n,i,o,a,s,l){let c,{nodeName:d}=e.currentTarget;if(!("A"===d.toUpperCase()&&((c=e.currentTarget.getAttribute("target"))&&"_self"!==c||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))){if
1(!(0,u.isLocalURL)(r)){i&&(e.preventDefault(),location.replace(r));return}e.preventDefault(),(()=>{if(l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let e=a??!0;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:o,locale:s,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})})()}}(e,N,D,M,S,x,E,k,A)},onMouseEnter(e){I||"function"!=typeof P||P(e),I&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),N&&b(N,D,M,{locale:k,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){I||"function"!=typeof T||T(e),I&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),N&&b(N,D,M,{locale:k,priority:!0,bypassPrefetchedCheck:!0})}};if((0,d.isAbsoluteUrl)(M))z.href=M;else if(!I||w||"a"===n.type&&!("href"in n.props)){let e=void 0!==k?k:N?.locale;z.href=N?.isLocaleDomain&&(0,m.getDomainLocale)(M,e,N?.locales,N?.domainLocales)||(0,v.addBasePath)((0,f.addLocale)(M,e,N?.defaultLocale))}return I?s.default.cloneElement(n,z):(0,a.jsx)("a",{...R,...z,children:r})}),S=(0,s.createContext)({pending:!1}),x=()=>(0,s.useContext)(S),E=w;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10368:(e,t)=>{"use strict";function r({widthInt:e,heightInt:t,blurWidth:n,blurHeight:i,blurDataURL:o,objectFit:a}){let s=n?40*n:e,l=i?40*i:t,u=s&&l?`viewBox='0 0 ${s} ${l}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${u}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${o}'/%3E%3C/svg%3E`}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},10660:e=>{e.exports={root:"styles_root__PsuzQ",header:"styles_header__R6dX4",content:"styles_content__CryFC",body:"styles_body__QvDgY",chevron:"styles_chevron__5MNft",button:"styles_button__8b5j0"}},11051:(e,t,r)=>{"use strict";var n,i=(n=r(83810))&&n.__esModule?n:{default:n};e.exports={dataScript:function(e){var t=document.createElement("script");return t.innerHTML=e,t},gtm:function(e){var t=i.default.tags(e);return{noScript:function(){var e=document.createElement("noscript");return e.innerHTML=t.iframe,e},script:function(){var e=document.createElement("script");return e.innerHTML=t.script,e},dataScript:this.dataScript(t.dataLayerVar)}},initialize:function(e){var t=e.gtmId,r=e.events,n=e.dataLayer,i=e.dataLayerName,o=e.auth,a=e.preview,s=this.gtm({id:t,events:void 0===r?{}:r,dataLayer:n||void 0,dataLayerName:void 0===i?"dataLayer":i,auth:void 0===o?"":o,preview:void 0===a?"":a});n&&document.head.appendChild(s.dataScript),document.head.insertBefore(s.script(),document.head.childNodes[0]),document.body.insertBefore(s.noScript(),document.body.childNodes[0])},dataLayer:function(e){var t=e.dataLayer,r=e.dataLayerName,n=void 0===r?"dataLayer":r;if(window[n])return window[n].push(t);var o=i.default.dataLayer(t,n),a=this.dataScript(o);document.head.insertBefore(a,document.head.childNodes[0])}}},13027:(e,t,r)=>{"use strict";var n=r(28153),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var i=p(r);i&&i!==h&&e(t,i,n)}var a=c(r);d&&(a=a.concat(d(r)));for(var s=l(t),m=l(r),v=0;v<a.length;++v){var g=a[v];
1if(!o[g]&&!(n&&n[g])&&!(m&&m[g])&&!(s&&s[g])){var y=f(r,g);try{u(t,g,y)}catch(e){}}}}return t}},13955:(e,t,r)=>{"use strict";r.d(t,{j:()=>n});let n=r(90575).wA},15875:(e,t,r)=>{"use strict";r.d(t,{v:()=>d});var n=r(59827);r(72223);var i=r(50084),o=r.n(i),a=r(38269),s=r(19671);let l=(0,a.default)(e=>(0,n.FD)("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,n.Y)("path",{d:"M12.75 4.25L4.25 12.75",stroke:"var(--color)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.Y)("path",{d:"M4.25 4.25L12.75 12.75",stroke:"var(--color)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})).withConfig({componentId:"sc-e5162fb7-0"})(["height:12px;width:12px;display:block;--color:",";& > path{stroke:",";}&[data-from-app='true'] > path{stroke:",";}"],({fromstores:e,theme:t})=>e?`${t.color.black}`:`${t.color.brand.primary}`,s.w4.color.black,e=>e.theme.color.brand.primary),u=a.default.div.withConfig({componentId:"sc-e5162fb7-1"})(["display:flex;justify-content:space-between;padding:8px 14px;align-items:center;gap:var(--modo-spacing-xsmall);white-space:nowrap;border-radius:var(--modo-border-large);border:1px solid ",";background:",";color:var(--primary-black);font-size:14px;font-weight:500;&[data-disable-button='true']{padding:8px 14px;}"],e=>e.theme.color.brand.primary,e=>e.selected?e.theme.promotionColors.secondary_payment_10:e.theme.promotionColors.secondary_payment_01),c=a.default.button.withConfig({componentId:"sc-e5162fb7-2"})(["all:unset;display:flex;align-items:center;justify-content:center;width:20px;height:20px;&:hover{cursor:pointer;}&:focus-visible{outline:2px solid var(--modo-color-primary-black);}"]),d=({theme:e,text:t,onDelete:r,disableButton:i=!1,selected:o=!1,onClick:a,style:s})=>(0,n.FD)(u,{onClick:a,theme:e,"data-disable-button":i,selected:o,style:s,children:[t,!i&&(0,n.Y)(c,{onClick:r,"aria-label":`Remover filtro ${t}`,children:(0,n.Y)(l,{fromstores:!0,theme:e,"aria-label":"close icon"})})]});d.propTypes={theme:o().object,style:o().object,text:o().string,onDelete:o().func,disableButton:o().bool,selected:o().bool,onClick:o().func}},17389:(e,t,r)=>{"use strict";r.d(t,{WE:()=>f,Ay:()=>J,qH:()=>ew,Z1:()=>ex,sF:()=>Q,nL:()=>eo,hp:()=>ea,c1:()=>es,yY:()=>el,th:()=>ek,Tj:()=>eE,E3:()=>ec,Pj:()=>eb,n:()=>eg,fh:()=>e_,Uo:()=>Z,VS:()=>ed,cC:()=>ee,RQ:()=>er,yi:()=>ep,yd:()=>ev,c4:()=>eA,L$:()=>en,MV:()=>ei,qO:()=>eu,fQ:()=>et,_n:()=>eh,px:()=>eS,o6:()=>em,cN:()=>eC,Jy:()=>ey,oj:()=>ef,Ap:()=>N,KK:()=>T,rn:()=>P,nF:()=>k,JX:()=>O,ar:()=>M,y0:()=>U,NZ:()=>S,Lk:()=>E,HE:()=>X,OU:()=>x,Ll:()=>w,Et:()=>L});var n=r(5173),i="NOT_FOUND",o=function(e,t){return e===t},a=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return function(){for(var t,n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=0,s={memoizeOptions:void 0},l=i.pop();if("object"==typeof l&&(s=l,l=i.pop()),"function"!=typeof l)throw Error("createSelector expects an output function after the inputs, but received: ["+typeof l+"]");var u=s.memoizeOptions,c=void 0===u?r:u,d=Array.isArray(c)?c:[c],f=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return"function"==typeof e}))throw Error("createSelector expects all input-selectors to be functions, but received the following types: ["+t.map(function(e){return"function"==typeof e?"function "+(e.name||"unnamed")+"()":typeof e}).join(", ")+"]");return t}(i),p=e.apply(void 0,[function(){return a++,l.apply(null,arguments)}].concat(d)),h=e(function(){for(var e=[],r=f.length,n=0;n<r;n++)e.push(f[n].apply(null,arguments));return t=p.apply(null,e)});return Object.assign(h,{resultFunc:l,memoizedResultFunc:p,dependencies:f,lastResult:function(){return t},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),h}}(function(e,t){var r,n,a="object"==typeof t?t:{equalityCheck:t},s=a.equalityCheck,l=a.maxSize,u=void 0===l?1:l,c=a.resultEqualityCheck,d=(r=void 0===s?o:s,function(e,t){if(null===e||null===t||e.length!==t.length)return!1;for(var n=e.length,i=0;i<n;i++)if(!r(e[i],t[i]))return!1;return!0}),f=1===u?{get:function(e){return n&&d(n.key,e)?n.value:i},put:function(e,t){n={key:e,value:t}},getEntries:function(){return n?[n]:[]},clear:function(){n=void 0}}:function(e,t){var r=[];function n(e){var n=r.findIndex(function(r){return t(e,r.key)});if(n>-1){var o=r[n];return n>0&&(r.splice(n,1),r.unshift(o)),o.value}return i}return{get:n,put:function(t,o){n(t)===i&&(r.unshift({key:t,value:o}),r.length>e&&r.pop())},getEntries:function(){return r},clear:function(){r=[]}}}(u,d);function p(){var t=f.get(arguments);if(t===i){if(t=e.apply(null,arguments),c){var r=f.getEntries().find(function(e){return c(e.value,t)});r&&(t=r.value)}f.put(arguments,t)}return t}return p.clearCache=function(){return f.clear()},p}
1),s=r(52591),l=r(21773),u=r(94331),c=r(45477),d=r(9092);let f={CARROUSEL_PROMOTIONS:"carrouselPromotionsLoading",BANK_PROMOTIONS:"bankPromotionsLoading",SEARCH_PROMOTIONS:"promotionsInSearchLoading",PROMOTIONS_LIST:"loading"},p={status:[],days:[],modality:[],banks:[]},h={carrouselPromotions:[],carrouselPromotionsLoading:!0,bankPromotions:[],bankPromotionsEnabled:[],bankPromotionsLoading:!0,promotions:[],filters:{promotionState:c.gF.ALL,search:""},bankIds:[],appInformation:{userId:"",banksPromotions:[],isFromModo:!1,fingerprint:{}},loading:!0,isFilterActive:!1,isWebviewActive:!1,isSdkActive:!1,isSearching:!1,isLoadingSearch:!1,bankPromotionsEnabledLoading:!1,filtersOpen:!1,promotionsBySlot:{"":{cards:[],slot_id:"",slot_title:"",current_page:0,total_pages:2,current_page_cards_count:100,total_cards_count:"111",isLoading:!1}},promotionsBySlotLoading:!1,userId:"",appendPromotionsBySlotLoading:!1,promotionsInSearch:[],promotionsInSearchPage:1,promotionsInSearchLoading:!1,totalResultFiltered:null,filtersApplied:p,anyFilterApplied:!1,slotsThatRequirePagination:[],filtersAppliedStr:"",allBankPromotions:[],promotionsInSearchLoadingMore:!1,containerSlots:[],containerSlotsLoading:!0,storesModalInDetailOpen:!1,showModalFilters:!1,promotionSearchFocus:!1,queryPromoSearch:"",hint_ai:null,search_ia:!1,search_id:null,similar_cards:[],current_page:null,total_pages:null,noMorePromotionsForSearch:!1,setSearchIAModalOpen:!1,setIsSearchingSearchIA:!1,slotsMetadata:{}},m=(0,n.Z0)({name:"Promotions",initialState:h,reducers:{setFiltersOpen:(e,t)=>{e.filtersOpen=t.payload},setCarrouselPromotions:(e,t)=>{e.carrouselPromotions=t.payload},setPromotions:(e,t)=>({...e,loading:!1,promotions:t.payload}),setFilters:(e,t)=>{e.filters=t.payload},setAppInformation:(e,t)=>({...e,appInformation:t.payload}),setLoading:(e,t)=>
1{e.loading=t.payload},setSearching:(e,t)=>{e.isSearching=t.payload},setIsFilterActive:(e,t)=>{e.isFilterActive=t.payload},setIsWebviewActive:(e,t)=>{e.isWebviewActive=t.payload},setIsSdkActive:(e,t)=>{e.isSdkActive=t.payload},setBankIds:(e,t)=>{e.bankIds=t.payload},setIsLoadingSearch:(e,t)=>{e.isLoadingSearch=t.payload},setUserId:(e,t)=>{e.userId=t.payload},resetPromotionBySlot:(e,t)=>{let r=t.payload;e.promotionsBySlot[r]={...e.promotionsBySlot[r],isLoading:!1,current_page:0,cards:[]}},resetPromotionBySearch:e=>{e.promotionsInSearch=[],e.slotsThatRequirePagination=[],e.promotionsInSearchPage=0,e.noMorePromotionsForSearch=!1,e.hint_ai=""},setTotalResultFiltered:(e,t)=>{e.totalResultFiltered=t.payload},setFiltersApplied:(e,t)=>{let{filter:r,value:n}=t.payload,i=e.filtersApplied[r].includes(n)?e.filtersApplied[r].filter(e=>e!==n):[...e.filtersApplied[r],n];e.filtersApplied={...e.filtersApplied,[r]:i};let o=Object.entries(e.filtersApplied).some(([e,t])=>p[e].length!==t.length);e.anyFilterApplied=o,e.promotionsInSearchPage=1},resetFiltersApplied:e=>{e.filtersApplied={...p},e.anyFilterApplied=!1,e.slotsThatRequirePagination=[],e.similar_cards=[],e.filtersAppliedStr="",e.promotionsInSearchPage=0},setStoresModalInDetailOpen:(e,t)=>{e.storesModalInDetailOpen=t.payload},setShowModalFilters:(e,t)=>{e.showModalFilters=t.payload},setSearchFocus:(e,t)=>{e.promotionSearchFocus=t.payload},setQueryPromoSearch:(e,t)=>{e.queryPromoSearch=t.payload},setHintIa:(e,t)=>{e.hint_ai=t.payload},setSearchId:(e,t)=>{e.search_id=t.payload},setSearchIa:(e,t)=>{e.search_ia=t.payload},setSimilarCards:(e,t)=>{e.similar_cards=t.payload},setCurrentPage:(e,t)=>{e.current_page=t.payload},setTotalPages:(e,t)=>{e.total_pages=t.payload},setAddEndPromotionsInSearch:(e,t)=>{e.promotionsInSearch=t.payload},setPromotionsInSearchLoading:(e,t)=>
1{e.promotionsInSearchLoading=t.payload},setPromotionsInSearchPage:(e,t)=>{e.promotionsInSearchPage=t.payload},setnoMorePromotionsForSearch:(e,t)=>{e.noMorePromotionsForSearch=t.payload},setSearchIAModalOpen:(e,t)=>{e.setSearchIAModalOpen=t.payload},setIsSearchingSearchIA:(e,t)=>{e.setIsSearchingSearchIA=t.payload}},extraReducers:e=>{e.addCase(s.fR.pending,e=>{e.isLoadingSearch=!0,e.loading=!0}),e.addCase(s.fR.fulfilled,(e,t)=>{e.isLoadingSearch=!1,e.promotions=t.payload,e.loading=!1}),e.addCase(s.fR.rejected,e=>{e.isLoadingSearch=!1,e.loading=!1}),e.addCase(s.$6.pending,e=>{e.carrouselPromotionsLoading=!0}),e.addCase(s.$6.fulfilled,(e,t)=>{e.carrouselPromotionsLoading=!1,e.carrouselPromotions=t.payload}),e.addCase(s.$6.rejected,e=>{e.carrouselPromotionsLoading=!1}),e.addCase(s.gJ.pending,e=>{e.carrouselPromotionsLoading=!0}),e.addCase(s.gJ.fulfilled,(e,t)=>{e.carrouselPromotionsLoading=!1,e.carrouselPromotions=t.payload}),e.addCase(s.gJ.rejected,e=>{e.carrouselPromotionsLoading=!1}),e.addCase(d.h.pending,e=>{e.bankPromotionsLoading=!0}),e.addCase(d.h.fulfilled,(e,t)=>{let{bankIds:r}=t.meta.arg??{};e.bankPromotionsLoading=!1,r&&Array.isArray(r)&&(e.bankPromotions=t.payload.filter(e=>r.includes(e.id))),e.allBankPromotions=t.payload}),e.addCase(d.h.rejected,e=>{e.bankPromotionsLoading=!1}),e.addCase(s.hr.pending,e=>{e.bankPromotionsEnabledLoading=!0}),e.addCase(s.hr.fulfilled,(e,t)=>{e.bankPromotionsEnabledLoading=!1,e.bankPromotionsEnabled=t.payload}),e.addCase(s.hr.rejected,e=>{e.bankPromotionsEnabledLoading=!1}),e.addCase(s.BO.pending,e=>{e.promotionsBySlotLoading=!0}),e.addCase(s.BO.fulfilled,(e,t)=>{e.promotionsBySlotLoading=!1,e.promotionsBySlot={...e.promotionsBySlot,[t.payload?.slot_id]:t.payload}}),e.addCase(s.BO.rejected,e=>{e.promotionsBySlotLoading=!1}),e.addCase(s.m5.pending,(e,t)=>{e.promotionsBySlot[t.meta.arg.slot]={...e.promotionsBySlot[t.meta.arg.slot],isLoading:!0},e.appendPromotionsBySlotLoading=!0}),e.addCase(s.m5.fulfilled,(e,t)=>{let{promotions:r,slot:n}=t.payload;e.appendPromotionsBySlotLoading=!1;let i=e.promotionsBySlot[n]?.cards??[],o=(0,u.ZV)(r.cards,n);r.current_page!==e.promotionsBySlot[n]?.current_page?e.promotionsBySlot={...e.promotionsBySlot,[n]:{...r,cards:[...i,...o],isLoading:!1}}:e.promotionsBySlot[n]={...e.promotionsBySlot[n],isLoading:!1}}),e.addCase(s.m5.rejected,(e,t)=>{e.appendPromotionsBySlotLoading=!1,e.promotionsBySlot[t.meta.arg.slot]={...e.promotionsBySlot[t.meta.arg.slot],isLoading:!1}}),e.addCase(s.w$.pending,e=>{e.promotionsBySlotLoading=!0}),e.addCase(s.w$.fulfilled,(e,t)=>{e.promotionsBySlotLoading=!1;let r=[...e.promotionsBySlot[t.payload?.slot]?.cards??[],...t.payload?.cards].reduce((e,t)=>(e.some(e=>e.id===t.id)||e.push(t),e),[]);e.promotionsBySlot={...e.promotionsBySlot,[t.payload?.slot]:{...t.payload,slot_id:t.payload?.slot,slot_title:t.payload?.slot_title,cards:r}}}),e.addCase(s.w$.rejected,e=>{e.promotionsBySlotLoading=!1}),e.addCase(s.n2.pending,(e,t)=>{e.setIsSearchingSearchIA=!0,t.meta.arg.loadMore?e.promotionsInSearchLoadingMore=!0:e.promotionsInSearchLoading=!0}),e.addCase(s.n2.fulfilled,(e,t)=>{let{cards:r=[],pagination:n,filtersAppliedStr:i,search_ia:o}=t.payload,a=[...e.promotionsInSearch,...r].reduce((e,t)=>(e.some(e=>e.id===t.id)||e.push(t),e),[]);if(e.promotionsInSearch=a,Object.keys(o).length>0){let t=o?.similar_cards??[];e.search_id=o.search_id,e.similar_cards=[...t]}e.hint_ai=o?.hint_ai,e.setIsSearchingSearchIA=!1,e.promotionsInSearchLoading=!1,e.promotionsInSearchPagination=n,e.totalResultFiltered=n.total_results,e.filtersAppliedStr=i,e.promotionsInSearchLoadingMore=!1,(t.meta.arg.loadMore||0===e.promotionsInSearchPage)&&(e.promotionsInSearchPage=e.promotionsInSearchPage+1)}),e.addCase(s.n2.rejected,(e,t)=>{t.meta.arg.loadMore?e.promotionsInSearchLoadingMore=!1:e.promotionsInSearchLoading=!1,e.setIsSearchingSearchIA=!1,e.promotionsInSearch=[],e.similar_cards=[],e.hint_ai="",e.search_id=""}),e.addCase(s.Lx.pending,e=>{e.containerSlotsLoading=!0}),e.addCase(s.Lx.fulfilled,(e,t)=>{let{slots:r=[]}=t.payload;e.containerSlots=r,e.containerSlotsLoading=!1}),e.addCase(s.Lx.rejected,e=>{e.containerSlotsLoading=!1,e.containerSlots=[]})}}),{setPromotions:v,setCarrouselPromotions:g,setFilters:y,setAppInformation:b,setLoading:_,setSearching:w,setIsFilterActive:S,setIsWebviewActive:x,setIsSdkActive:E,setBankIds:k,setIsLoadingSearch:C,setUserId:A,resetPromotionBySlot:P,resetPromotionBySearch:T,setTotalResultFiltered:I,setFiltersApplied:O,setFiltersTouched:R,resetFiltersApplied:N,setStoresModalInDetailOpen:L,setShowModalFilters:D,setFiltersOpen:M,setSearchFocus:F,setQueryPromoSearch:j,setHintIa:U,setSearchIa:B,setSearchId:Y,setSimilarCards:V,setCurrentPage:H,setTotalPages:$,setAddEndPromotionsInSearch:z,setPromotionsInSearchLoading:q,setPromotionsInSearchPage:W,setnoMorePromotionsForSearch:K,setSearchIAModalOpen:G,setIsSearchingSearchIA:X}=m.actions,J=m.reducer;function Z(e){return e.promotionsReducer.filtersOpen}function Q(e){return e.promotionsReducer.appInformation}function ee(e){return e.promotionsReducer.appInformation.isFromModo}function et(e){return e.promotionsReducer.carrouselPromotions}function er(e){return e.promotionsReducer.loading}function en(e){return e.promotionsReducer.isSearching}function ei(e){return e.promotionsReducer.isWebviewActive}function eo(e){return e.promotionsReducer.bankIds}function ea(e){return e.promotionsReducer.bankPromotions}function es(e){return e.promotionsReducer.bankPromotionsEnabled}function el(e){return e.promotionsReducer.bankPromotionsEnabledLoading}function eu(e){return e.promotionsReducer.promotionsBySlot}function ec(e){return Object.values(e.promotionsReducer.promotionsBySlot).reduce((e,{cards:t})=>e+(t?.length??0),0)}function ed(e){return Object.values(e.promotionsReducer.promotionsBySlot).reduce((e,{cards:t})=>e+(t?.map(e=>e.id)??[]).join(","),"")}function ef(){return e=>
1e.promotionsReducer.promotionsBySlotLoading}function ep(e){return t=>t.promotionsReducer.promotionsBySlot[e]?.isLoading}function eh(e){return e.promotionsReducer.promotionsInSearch}function em(e){return e.promotionsReducer.promotionsInSearchPagination}function ev(e){return e.promotionsReducer.promotionsInSearchLoading}function eg(e){return e.promotionsReducer.filtersApplied}function ey(e){return e.promotionsReducer.totalResultFiltered}function eb(e){return e.promotionsReducer.anyFilterApplied}function e_(e){return Object.values(e.promotionsReducer.filtersApplied).flat().length}function ew(e){return e.promotionsReducer.allBankPromotions}function eS(e){return e.promotionsReducer.promotionsInSearchLoadingMore}a(ea,e=>e?.filter(e=>(0,l.n)(e?.on_hub_list)));let ex=a(ew,e=>e?.filter(e=>(0,l.n)(e?.on_hub_list)));function eE(e){return e.promotionsReducer.containerSlotsLoading}function ek(e){return e.promotionsReducer.containerSlots}function eC(e){return e.promotionsReducer.storesModalInDetailOpen}function eA(e){return e.promotionsReducer.setSearchIAModalOpen}},18455:e=>{e.exports={"color-variant-pay-default":"styles_color-variant-pay-default___8hXR","color-variant-pay-dark":"styles_color-variant-pay-dark__gw_wH","color-variant-pay-10":"styles_color-variant-pay-10__T75C0","color-variant-send-default":"styles_color-variant-send-default__v5Jyh","color-variant-send-dark":"styles_color-variant-send-dark__lp6Gv","color-variant-send-10":"styles_color-variant-send-10__yOPHP","color-variant-blue-cross-dark":"styles_color-variant-blue-cross-dark__mXG17","color-variant-black":"styles_color-variant-black__rZsoc","color-variant-gray-80":"styles_color-variant-gray-80__G7JQR","color-variant-white":"styles_color-variant-white__dDmc7","color-variant-reward-default":"styles_color-variant-reward-default__0kGD8","color-variant-reward-light":"styles_color-variant-reward-light__qVqD6","color-variant-grey-03":"styles_color-variant-grey-03__1luKD","color-variant-full-white":"styles_color-variant-full-white__8TBQE","color-variant-transparent":"styles_color-variant-transparent__5W9xX",root:"styles_root__fqpeo"}},19245:(e,t,r)=>{"use strict";var n=r(72223),i=r(90799),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=n.useRef,l=n.useEffect,u=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=a(e,(d=u(function(){function e(e){if(!l){if(l=!0,a=e,e=n(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var r=n(e);return void 0!==i&&i(t,r)?(a=e,t):(a=e,s=r)}var a,s,l=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,n,i]))[0],d[1]);return l(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}},19444:(e,t,r)=>{"use strict";r.d(t,{Bd:()=>i,lh:()=>o});var n=r(50839);function i(){return!0}function o(e,t){let r=n.env[e];if(r)return r;let i=window.__ENV?.[e];return i?i.startsWith("@@")&&t?t:i:(console?.warn(`The variable: ${e} doesn't exist`),"")}},19671:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>o,w4:()=>n,xh:()=>i});let n={layout:"1024px",color:{blackDark:"#000000",black:"#121212",tertiaryGray08:"#ECECEC",tertiaryGray80:"#414141",white:"#FFFFFF",darkGray:"#717171",gray:"#D2D2D2",connectionsGray:"#EAEAEA",mediumGray:"#1C302C",lightGray:"#AFB9B7",ultraLightGray:"#F1F7F6",slimGray:"#F8F8F8",textGray:"#5B5F62",textGrayDark:"#2D3134",bluePromotions:"#E5F5FE",blueDark:"#263144",paymentTertiary10:"#E5FAF6",lightGreen:"#DDF1EE",greenPromotions:"#CCF6ED",blackPromotions:"#212529",whiteClearPromotions:"#FFEFEF",orangeClearPromotions:"#FDE9DB",blueDarkPromotions:"#ccdbf3",blueWhitePromotions:"#EBF4FF",lightBlueWhitePromotions:"#EAF9FC",greenClearPromotions:"#EDF8EA",greenDarkPromotions:"#00471B",endedPromotions:"#D0D0D0",alertIcons:"#F39200",pills:{bluePrimary:"#2B67F4",blueSecondary:"#4D85F5",lightbluePrimary:"#0097F7",lightblueSecondary:"#44ADF0",cyanPrimary:"#00C0DB",cyanSecondary:"#45CFE2",greenPrimary:"#008859",greenSecondary:"#5bb680"},brand:{primary:"#008859",secondary:"#0049C4",secondaryHover:"#0D3F92",tertiary:"#0097F7",tertiaryHover:"#0783D3"},blue:"#0669FD",transparent:"#FFFFFF0",opacityBlack20:"rgba(18, 18, 18, 0.20)"},promotionColors:{secondary_payment_10:"#dcf5e7",payment_primary_light:"#43B9A2",payment_primary_dark:"#008859",send_primary_dark:"#0D3F92",collect_primary_dark:"#0783D3",category_1_dark:"#EBAE10",category_2_dark:"#FE5E5E",category_3_dark:"#F7924A",category_4_dark:"#A376FF",category_5_dark:"#6D6B6B",category_6_dark:"#3395FF",category_7_dark:"#4EB62A",category_8_dark:"#29C6E2",category_9_dark:"#ED72DA",category_10_dark:"#425573",category_11_dark:"#FFF8E5",category_12_dark:"#CFCFCF",primay_rewards_default:"#FFC738"},onlineStoresColors:{payment_primary_light:"#3CAB6D",payment_primary_default:"#008859",store_with_promo_background:"#FFC738",promo_arrow_background:"#F1F7F6"},onlineStoresBreakpoints:{storeListMDSize:"1120px"},screenSizes:{mobileMDwidth:480,mobileLGwidth:768},breakpoints:{mobileSMmin:"375px",mobileSMmax:"374.98px",mobileMDmin:"480px",mobileMDmax:"479.98px",mobileLGmin:"768px",mobileLGmax:"767.98px",desktopXS:"991",desktopXSmin:"991px",desktopXSmax:"990.98}px",desktopSMmin:"1024px",desktopSMmax:"1023.98px",desktopMDmin:"1260px",desktopMDmax:"1259.98px",desktopLGmin:"1440px",desktopLGmax:"1439.98px",desktopXLmin:"1899px",desktopXLmax:"1898.98px"}},i={modo:{},santander:{color:{greenDarkPromotions:"#F60004",pills:{greenPrimary:"#F60004",greenSecondary:"#f5e6dc"},brand:{primary:"#F60004",secondary:"#F7585A"}},promotionColors:{secondary_payment_10:"#dcf5e7",payment_primary_light:"#f5e6dc",payment_primary_dark:"#F60004"},onlineStoresColors:{payment_primary_light:"#f5e6dc",payment_primary_default:"#F60004"}},patagonia:{color:{greenDarkPromotions:"#003973",pills:{greenPrimary:"#003973",greenSecondary:"#457294"},brand:{primary:"#003973",secondary:"#C4CD4C",secondaryHover:"#A9B233",tertiary:"#02294F",tert
1iaryHover:"#003973"}},promotionColors:{secondary_payment_10:"#BBD7E9",payment_primary_light:"#A9B233",payment_primary_dark:"#003973"},onlineStoresColors:{payment_primary_light:"#A9B233",payment_primary_default:"#003973"}},"santa-fe":{color:{greenDarkPromotions:"#198038",pills:{greenPrimary:"#198038",greenSecondary:"#62A877"},brand:{primary:"#198038",secondary:"#62A877",secondaryHover:"#A2D1B0",tertiary:"#076D25",tertiaryHover:"#5F7967"}},promotionColors:{secondary_payment_10:"#DEFBE6",payment_primary_light:"#A2D1B0",payment_primary_dark:"#198038"},onlineStoresColors:{payment_primary_light:"#A2D1B0",payment_primary_default:"#198038"}},galicia:{color:{greenDarkPromotions:"#F1592F",pills:{greenPrimary:"#F1592F",greenSecondary:"#f8dad2"},brand:{primary:"#F1592F",secondary:"#f8dad2"}},promotionColors:{secondary_payment_10:"#dcf5e7",payment_primary_light:"#f8dad2",payment_primary_dark:"#F1592F"},onlineStoresColors:{payment_primary_light:"#f8dad2",payment_primary_default:"#F1592F"}},macro:{color:{greenDarkPromotions:"#053575",pills:{greenPrimary:"#053575",greenSecondary:"#E2EFFD"},brand:{primary:"#053575",secondary:"#E2EFFD"}},promotionColors:{secondary_payment_10:"#DCE6E5",payment_primary_light:"#E2EFFD",payment_primary_dark:"#053575"},onlineStoresColors:{payment_primary_light:"#E2EFFD",payment_primary_default:"#053575"}}},o=n},20830:e=>{e.exports={root:"styles_root__qTLp5",line:"styles_line__nSn6m"}},21100:e=>{e.exports={style:{fontFamily:"'Quicksand', 'Quicksand Fallback', sans-serif",fontStyle:"normal"},className:"__className_d0e7d8",variable:"__variable_d0e7d8"}},21379:(e,t,r)=>{"use strict";r.d(t,{XS:()=>n,sh:()=>i});let n=(...e)=>e.filter(Boolean).join(" "),i=e=>window.matchMedia(e).matches},21510:()=>{},21656:()=>{},21773:(e,t,r)=>{"use strict";r.d(t,{n:()=>n});let n=e=>"true"===e||"boolean"==typeof e&&e},22880:(e,t,r)=>{"use strict";function n(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(15910),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26127:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(4452),i=r(90575),o=r(17389);function a(){let e=(0,n.useRouter)(),t=(0,i.d4)(o.cC),r=(0,i.d4)(o.MV);return e.isReady&&r||t}},27050:(e,t,r)=>{"use strict";r.d(t,{L:()=>u,n:()=>s});var n=r(72305),i=r(76215),o=r(4452),a=r(45477);let s=()=>{let e=(0,o.useRouter)(),t=(0,n.A)(),r=e.isReady&&"true"===e.query.webview;return t&&r?`${i.XT}?source=${a.Hl.WEBVIEW_BANK}`:t?`${i.XT}?source=${a.Hl.WEB_BANK}`:`${i.bv}?source=${a.Hl.WEB_MODO}`},l={style:"legacy",max_rows_on_slot:5,start_date:"2023-01-01",stop_date:"2026-01-01",daily_start_time:"00:00:00.000",daily_stop_time:"23:59:59.999",status:"active",days_of_week:"DLMXJVS"},u={"app-modo-container-hub-promos-1?source=app_modo":{slots:[{id:"app-modo-home-carrousel_principal",type:"carrousel",priority:1,...l},{id:"app-modo-destacados-1",type:"horizontal",priority:2,...l},{id:"app-modo-supermercados-1",type:"horizontal",priority:3,...l},{id:"app-modo-exclusivas-on-line-1",type:"horizontal",priority:4,...l},{id:"app-modo-otras-promos-corriendo",type:"vertical",priority:5,...l}]},"web-modo-container-hub-promos-1?source=web_modo":{slots:[{id:"web-modo-hub-carrousel_principal",type:"carrousel",priority:1,...l},{id:"web-modo-hub-promos_corriendo",type:"vertical",priority:2,...l},{id:"web-modo-hub-proximas_promos",type:"vertical",priority:3,...l},{id:"web-modo-hub-promos_finalizadas",type:"vertical",priority:4,...l}]},"bank-container-hub-promos-1?source=web_bank":{slots:[{id:"web-modo-hub-promos_corriendo",type:"vertical",priority:1,...l}]},"bank-container-hub-promos-1?source=app_bank":{slots:[{id:"web-modo-hub-promos_corriendo",type:"vertical",priority:1,...l}]}}},27209:(e,t,r)=>{"use strict";r.d(t,{cb:()=>i});var n=r(27804);let i=async({apiUrl:e,source:t,sessionToken:r})=>{try{let{data:i}=await n.A.get(`${e}/banks`,{headers:{"x-auth-application":r},params:{source:t}});return i}catch{return[]}}},27320:e=>{e.exports={root:"styles_root__LvlwC","primary-white":"styles_primary-white__fS9K2","primary-black":"styles_primary-black__h9JR1","primary-pay":"styles_primary-pay__Z7aQj","send-white":"styles_send-white___D2zt","secondary-white":"styles_secondary-white___s0Vv","secondary-black":"styles_secondary-black__jFtd4","secondary-pay":"styles_secondary-pay__G7KV6","link-dark":"styles_link-dark__Q6zoa","link-light":"styles_link-light__G4tXG"}},27804:(e,t,r)=>{"use strict";let n,i,o,a,s;r.d(t,{A:()=>tf});var l,u,c,d,f,p={};function h(e,t){return function(){return e.apply(t,arguments)}}r.r(p),r.d(p,{hasBrowserEnv:()=>eb,hasStandardBrowserEnv:()=>ew,hasStandardBrowserWebWorkerEnv:()=>eS,navigator:()=>e_,origin:()=>ex});var m=r(50839);let{toString:v}=Object.prototype,{getPrototypeOf:g}=Object,{iterator:y,toStringTag:b}=Symbol,_=(n=Object.create(null),e=>{let t=v.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())}),w=e=>(e=e.toLowerCase(),t=>_(t)===e),S=e=>t=>typeof t===e,{isArray:x}=Array,E=S("undefined");function k(e){return null!==e&&!E(e)&&null!==e.constructor&&!E(e.constructor)&&P(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let C=w("ArrayBuffer"),A=S("string"),P=S("function"),T=S("number"),I=e=>null!==e&&"object"==typeof e,O=e=>{if("object"!==_(e))return!1;let t=g(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(b in e)&&!(y in e)},R=w("Date"),N=w("File"),L=w("Blob"),D=w("FileList"),M=w("URLSearchParams"),[F,j,U,B]=["ReadableStream","Request","Response","Headers"].map(w);function Y(e,t,{allOwnKeys:r=!1}={}){let n,i;if(null!=e)if("object"!=typeof e&&(e=[e]),x(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{let i;if(k(e))return;let o=r?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;for(n=0;n<a;n++)i=o[n],t.call(null,e[i],i,e)}}function V(e,t){let r;if(k(e))return null;t=t.toLowerCase();let n=Object.keys(e),i=n.length;for(;i-- >0;)if(t===(r=n[i]).toLowerCase())return r;return null}let H="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,$=e=>!E(e)&&e!==H,z=(i="u">typeof Uint8Array&&g(Uint8Array),e=>i&&e instanceof i),q=w("HTMLFormElement"),W=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),K=w("RegExp"),G=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};Y(r,(r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)}),Object.defineProperties(e,n)},X=w("AsyncFunction"),J=(l="function"==typeof setImmediate,u=P(H.postMessage),l?setImmediate:u?(c=`axios@${Math.random()}`,d=[],H.addEventListener("message",({source:e,data:t})=>{e===H&&t===c&&d.length&&d.shift()()},!1),e=>{d.push(e),H.postMessage(c,"*")}):e=>setTimeout(e)),Z="u">typeof queueMicrotask?queueMicrotask.bind(H):void 0!==m&&m.nextTick||J,Q={isArray:x,isArrayBuffer:C,isBuffer:k,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||P(e.append)&&("formdata"===(t=_(e))||"object"===t&&P(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&C(e.buffer)},isString:A,isNumber:T,isBoolean:e=>!0===e||!1===e,isObject:I,isPlainObject:O,isEmptyObject:e=>{if(!I(e)||k(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:F,isRequest:j,isResponse:U,isHeaders:B,isUndefined:E,isDate:R,isFile:N,isBlob:L,isRegExp:K,isFunction:P,isStream:e=>I(e)&&P(e.pipe),isURLSearchParams:M,isTypedArray:z,isFileList:D,forEac
1h:Y,merge:function e(){let{caseless:t}=$(this)&&this||{},r={},n=(n,i)=>{let o=t&&V(r,i)||i;O(r[o])&&O(n)?r[o]=e(r[o],n):O(n)?r[o]=e({},n):x(n)?r[o]=n.slice():r[o]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Y(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(Y(t,(t,n)=>{r&&P(t)?e[n]=h(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,o,a,s={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==r&&g(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:_,kindOfTest:w,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(x(e))return e;let t=e.length;if(!T(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r,n=(e&&e[y]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r,n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:q,hasOwnProperty:W,hasOwnProp:W,reduceDescriptors:G,freezeMethods:e=>{G(e,(t,r)=>{if(P(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;if(P(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(x(e)?e:String(e).split(t)).forEach(e=>{r[e]=!0}),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:V,global:H,isContextDefined:$,isSpecCompliantForm:function(e){return!!(e&&P(e.append)&&"FormData"===e[b]&&e[y])},toJSONObject:e=>{let t=Array(10),r=(e,n)=>{if(I(e)){if(t.indexOf(e)>=0)return;if(k(e))return e;if(!("toJSON"in e)){t[n]=e;let i=x(e)?[]:{};return Y(e,(e,t)=>{let o=r(e,n+1);E(o)||(i[t]=o)}),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:X,isThenable:e=>e&&(I(e)||P(e))&&P(e.then)&&P(e.catch),setImmediate:J,asap:Z,isIterable:e=>null!=e&&P(e[y])};function ee(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}Q.inherits(ee,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.status}}});let et=ee.prototype,er={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{er[e]={value:e}}),Object.defineProperties(ee,er),Object.defineProperty(et,"isAxiosError",{value:!0}),ee.from=(e,t,r,n,i,o)=>{let a=Object.create(et);return Q.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),ee.call(a,e.message,t,r,n,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var en=r(87187).Buffer;function ei(e){return Q.isPlainObject(e)||Q.isArray(e)}function eo(e){return Q.endsWith(e,"[]")?e.slice(0,-2):e}function ea(e,t,r){return e?e.concat(t).map(function(e,t){return e=eo(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let es=Q.toFlatObject(Q,{},null,function(e){return/^is[A-Z]/.test(e)}),el=function(e,t,r){if(!Q.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(r=Q.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Q.isUndefined(t[e])})).metaTokens,i=r.visitor||u,o=r.dots,a=r.indexes,s=(r.Blob||"u">typeof Blob&&Blob)&&Q.isSpecCompliantForm(t);if(!Q.isFunction(i))throw TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Q.isDate(e))return e.toISOString();if(Q.isBoolean(e))return e.toString();if(!s&&Q.isBlob(e))throw new ee("Blob is not supported. Use a Buffer instead.");
1return Q.isArrayBuffer(e)||Q.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):en.from(e):e}function u(e,r,i){let s=e;if(e&&!i&&"object"==typeof e)if(Q.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var u;if(Q.isArray(e)&&(u=e,Q.isArray(u)&&!u.some(ei))||(Q.isFileList(e)||Q.endsWith(r,"[]"))&&(s=Q.toArray(e)))return r=eo(r),s.forEach(function(e,n){Q.isUndefined(e)||null===e||t.append(!0===a?ea([r],n,o):null===a?r:r+"[]",l(e))}),!1}return!!ei(e)||(t.append(ea(i,r,o),l(e)),!1)}let c=[],d=Object.assign(es,{defaultVisitor:u,convertValue:l,isVisitable:ei});if(!Q.isObject(e))throw TypeError("data must be an object");return!function e(r,n){if(!Q.isUndefined(r)){if(-1!==c.indexOf(r))throw Error("Circular reference detected in "+n.join("."));c.push(r),Q.forEach(r,function(r,o){!0===(!(Q.isUndefined(r)||null===r)&&i.call(t,r,Q.isString(o)?o.trim():o,n,d))&&e(r,n?n.concat(o):[o])}),c.pop()}}(e),t};function eu(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ec(e,t){this._pairs=[],e&&el(e,this,t)}let ed=ec.prototype;function ef(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ep(e,t,r){let n;if(!t)return e;let i=r&&r.encode||ef;Q.isFunction(r)&&(r={serialize:r});let o=r&&r.serialize;if(n=o?o(t,r):Q.isURLSearchParams(t)?t.toString():new ec(t,r).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}ed.append=function(e,t){this._pairs.push([e,t])},ed.toString=function(e){let t=e?function(t){return e.call(this,t,eu)}:eu;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class eh{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Q.forEach(this.handlers,function(t){null!==t&&e(t)})}}let em={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ev="u">typeof URLSearchParams?URLSearchParams:ec,eg="u">typeof FormData?FormData:null,ey="u">typeof Blob?Blob:null,eb="u">typeof window&&"u">typeof document,e_="object"==typeof navigator&&navigator||void 0,ew=eb&&(!e_||0>["ReactNative","NativeScript","NS"].indexOf(e_.product)),eS="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ex=eb&&window.location.href||"http://localhost",eE={...p,isBrowser:!0,classes:{URLSearchParams:ev,FormData:eg,Blob:ey},protocols:["http","https","file","blob","url","data"]},ek=function(e){if(Q.isFormData(e)&&Q.isFunction(e.entries)){let t={};return Q.forEachEntry(e,(e,r)=>{!function e(t,r,n,i){let o=t[i++];if("__proto__"===o)return!0;let a=Number.isFinite(+o),s=i>=t.length;return(o=!o&&Q.isArray(n)?n.length:o,s)?Q.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r:(n[o]&&Q.isObject(n[o])||(n[o]=[]),e(t,r,n[o],i)&&Q.isArray(n[o])&&(n[o]=function(e){let t,r,n={},i=Object.keys(e),o=i.length;for(t=0;t<o;t++)n[r=i[t]]=e[r];return n}(n[o]))),!a}(Q.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null},eC={transitional:em,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r,n=t.getContentType()||"",i=n.indexOf("application/json")>-1,o=Q.isObject(e);if(o&&Q.isHTMLForm(e)&&(e=new FormData(e)),Q.isFormData(e))return i?JSON.stringify(ek(e)):e;if(Q.isArrayBuffer(e)||Q.isBuffer(e)||Q.isStream(e)||Q.isFile(e)||Q.isBlob(e)||Q.isReadableStream(e))return e;if(Q.isArrayBufferView(e))return e.buffer;if(Q.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1){var a,s;return(a=e,s=this.formSerializer,el(a,new eE.classes.URLSearchParams,{visitor:function(e,t,r,n){return eE.isNode&&Q.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...s})).toString()}if((r=Q.isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return el(r?{"files[]":e}
1:e,t&&new t,this.formSerializer)}}if(o||i){t.setContentType("application/json",!1);var l=e;if(Q.isString(l))try{return(0,JSON.parse)(l),Q.trim(l)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(l)}return e}],transformResponse:[function(e){let t=this.transitional||eC.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(Q.isResponse(e)||Q.isReadableStream(e))return e;if(e&&Q.isString(e)&&(r&&!this.responseType||n)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!r&&n){if("SyntaxError"===e.name)throw ee.from(e,ee.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:eE.classes.FormData,Blob:eE.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],e=>{eC.headers[e]={}});let eA=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),eP=Symbol("internals");function eT(e){return e&&String(e).trim().toLowerCase()}function eI(e){return!1===e||null==e?e:Q.isArray(e)?e.map(eI):String(e)}function eO(e,t,r,n,i){if(Q.isFunction(n))return n.call(this,t,r);if(i&&(t=r),Q.isString(t)){if(Q.isString(n))return -1!==t.indexOf(n);if(Q.isRegExp(n))return n.test(t)}}class eR{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function i(e,t,r){let i=eT(t);if(!i)throw Error("header name must be a non-empty string");let o=Q.findKey(n,i);o&&void 0!==n[o]&&!0!==r&&(void 0!==r||!1===n[o])||(n[o||t]=eI(e))}let o=(e,t)=>
1Q.forEach(e,(e,r)=>i(e,r,t));if(Q.isPlainObject(e)||e instanceof this.constructor)o(e,t);else{let n;if(Q.isString(e)&&(e=e.trim())&&(n=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim()))){var a;let r,n,i,s;o((s={},(a=e)&&a.split("\n").forEach(function(e){i=e.indexOf(":"),r=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!r||s[r]&&eA[r]||("set-cookie"===r?s[r]?s[r].push(n):s[r]=[n]:s[r]=s[r]?s[r]+", "+n:n)}),s),t)}else if(Q.isObject(e)&&Q.isIterable(e)){let r={},n,i;for(let t of e){if(!Q.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[i=t[0]]=(n=r[i])?Q.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}o(r,t)}else null!=e&&i(t,e,r)}return this}get(e,t){if(e=eT(e)){let r=Q.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t){let t,r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}if(Q.isFunction(t))return t.call(this,e,r);if(Q.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eT(e)){let r=Q.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||eO(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function i(e){if(e=eT(e)){let i=Q.findKey(r,e);i&&(!t||eO(r,r[i],i,t))&&(delete r[i],n=!0)}}return Q.isArray(e)?e.forEach(i):i(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let i=t[r];(!e||eO(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,r={};return Q.forEach(this,(n,i)=>{let o=Q.findKey(r,i);if(o){t[o]=eI(n),delete t[i];return}let a=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(i).trim();a!==i&&delete t[i],t[a]=eI(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return Q.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&Q.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[eP]=this[eP]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=eT(e);if(!t[n]){let i;i=Q.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(r,t+i,{value:function(r,n,i){return this[t].call(this,e,r,n,i)},configurable:!0})}),t[n]=!0}}return Q.isArray(e)?e.forEach(n):n(e),this}}function eN(e,t){let r=this||eC,n=t||r,i=eR.from(n.headers),o=n.data;return Q.forEach(e,function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function eL(e){return!!(e&&e.__CANCEL__)}function eD(e,t,r){ee.call(this,null==e?"canceled":e,ee.ERR_CANCELED,t,r),this.name="CanceledError"}function eM(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ee("Request failed with status code "+r.status,[ee.ERR_BAD_REQUEST,ee.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}eR.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q.reduceDescriptors(eR.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),Q.freezeMethods(eR),Q.inherits(eD,ee,{__CANCEL__:!0});let eF=function(e,t){let r,n=Array(e=e||10),i=Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),u=i[a];r||(r=l),n[o]=s,i[o]=l;let c=a,d=0;for(;c!==o;)d+=n[c++],c%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),l-r<t)return;let f=u&&l-u;return f?Math.round(1e3*d/f):void 0}},ej=function(e,t){let r,n,i=0,o=1e3/t,a=(t,o=Date.now())=>{i=o,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-i;s>=o?a(e,t):(r=e,n||(n=setTimeout(()=>{n=null,a(r)},o-s)))},()=>r&&a(r)]},eU=(e,t,r=3)=>{let n=0,i=eF(50,250);return ej(r=>{let o=r.loaded,a=r.lengthComputable?r.total:void 0,s=o-n,l=i(s);n=o,e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})},r)},eB=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},eY=e=>(...t)=>Q.asap(()=>
1e(...t)),eV=eE.hasStandardBrowserEnv?(o=new URL(eE.origin),a=eE.navigator&&/(msie|trident)/i.test(eE.navigator.userAgent),e=>(e=new URL(e,eE.origin),o.protocol===e.protocol&&o.host===e.host&&(a||o.port===e.port))):()=>!0,eH=eE.hasStandardBrowserEnv?{write(e,t,r,n,i,o){let a=[e+"="+encodeURIComponent(t)];Q.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Q.isString(n)&&a.push("path="+n),Q.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function e$(e,t,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(n||!1==r)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let ez=e=>e instanceof eR?{...e}:e;function eq(e,t){t=t||{};let r={};function n(e,t,r,n){return Q.isPlainObject(e)&&Q.isPlainObject(t)?Q.merge.call({caseless:n},e,t):Q.isPlainObject(t)?Q.merge({},t):Q.isArray(t)?t.slice():t}function i(e,t,r,i){return Q.isUndefined(t)?Q.isUndefined(e)?void 0:n(void 0,e,r,i):n(e,t,r,i)}function o(e,t){if(!Q.isUndefined(t))return n(void 0,t)}function a(e,t){return Q.isUndefined(t)?Q.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,i,o){return o in t?n(r,i):o in e?n(void 0,r):void 0}let l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,r)=>i(ez(e),ez(t),r,!0)};return Q.forEach(Object.keys({...e,...t}),function(n){let o=l[n]||i,a=o(e[n],t[n],n);Q.isUndefined(a)&&o!==s||(r[n]=a)}),r}let eW=e=>{let t,r=eq({},e),{data:n,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=r;if(r.headers=s=eR.from(s),r.url=ep(e$(r.baseURL,r.url,r.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Q.isFormData(n)){if(eE.hasStandardBrowserEnv||eE.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(t=s.getContentType())){let[e,...r]=t?t.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...r].join("; "))}}if(eE.hasStandardBrowserEnv&&(i&&Q.isFunction(i)&&(i=i(r)),i||!1!==i&&eV(r.url))){let e=o&&a&&eH.read(a);e&&s.set(o,e)}return r},eK="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){var n;let i,o,a,s,l,u,c=eW(e),d=c.data,f=eR.from(c.headers).normalize(),{responseType:p,onUploadProgress:h,onDownloadProgress:m}=c;function v(){s&&s(),l&&l(),c.cancelToken&&c.cancelToken.unsubscribe(i),c.signal&&c.signal.removeEventListener("abort",i)}let g=new XMLHttpRequest;function y(){if(!g)return;let n=eR.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());eM(function(e){t(e),v()},function(e){r(e),v()},{data:p&&"text"!==p&&"json"!==p?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:n,config:e,request:g}),g=null}g.open(c.method.toUpperCase(),c.url,!0),g.timeout=c.timeout,"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||4!==g.readyState||(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(y)},g.onabort=function(){g&&(r(new ee("Request aborted",ee.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new ee("Network Error",ee.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",n=c.transitional||em;c.timeoutErrorMessage&&(t=c.timeoutErrorMessage),r(new ee(t,n.clarifyTimeoutError?ee.ETIMEDOUT:ee.ECONNABORTED,e,g)),g=null},void 0===d&&f.setContentType(null),"setRequestHeader"in g&&Q.forEach(f.toJSON(),function(e,t){g.setRequestHeader(t,e)}),Q.isUndefined(c.withCredentials)||(g.withCredentials=!!c.withCredentials),p&&"json"!==p&&(g.responseType=c.responseType),m&&([a,l]=eU(m,!0),g.addEventListener("progress",a)),h&&g.upload&&([o,s]=eU(h),g.upload.addEventListener("progress",o),g.upload.addEventListener("loadend",s)),(c.cancelToken||c.signal)&&(i=t=>{g&&(r(!t||t.type?new eD(null,e,g):t),g.abort(),g=null)},c.cancelToken&&c.cancelToken.subscribe(i),c.signal&&(c.signal.aborted?i():c.signal.addEventListener("abort",i)));let b=(n=c.url,(u=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n))&&u[1]||"");b&&-1===eE.protocols.indexOf(b)?r(new ee("Unsupported protocol "+b+":",ee.ERR_BAD_REQUEST,e)):g.send(d||null)})},eG=function*(e,t){let r,n=e.byteLength;if(!t||n<t)return void(yield e);let i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},eX=async function*(e,t){for await(let r of eJ(e))yield*eG(r,t)},eJ=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},eZ=(e,t,r,n)=>{let i,o=eX(e,t),a=0,s=e=>{!i&&(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await o.next();if(t){s(),e.close();return}let i=n.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},eQ="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,e0=eQ&&"function"==typeof ReadableStream,e1=eQ&&("function"==typeof TextEncoder?(s=new TextEncoder,e=>s.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer())),e2=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},e3=e0&&e2(()=>
1{let e=!1,t=new Request(eE.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),e5=e0&&e2(()=>Q.isReadableStream(new Response("").body)),e4={stream:e5&&(e=>e.body)};eQ&&(f=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{e4[e]||(e4[e]=Q.isFunction(f[e])?t=>t[e]():(t,r)=>{throw new ee(`Response type '${e}' is not supported`,ee.ERR_NOT_SUPPORT,r)})}));let e6=async e=>{if(null==e)return 0;if(Q.isBlob(e))return e.size;if(Q.isSpecCompliantForm(e)){let t=new Request(eE.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Q.isArrayBufferView(e)||Q.isArrayBuffer(e)?e.byteLength:(Q.isURLSearchParams(e)&&(e+=""),Q.isString(e))?(await e1(e)).byteLength:void 0},e8=async(e,t)=>{let r=Q.toFiniteNumber(e.getContentLength());return null==r?e6(t):r},e9={http:null,xhr:eK,fetch:eQ&&(async e=>{let t,r,{url:n,method:i,data:o,signal:a,cancelToken:s,timeout:l,onDownloadProgress:u,onUploadProgress:c,responseType:d,headers:f,withCredentials:p="same-origin",fetchOptions:h}=eW(e);d=d?(d+"").toLowerCase():"text";let m=((e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController,i=function(e){if(!r){r=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof ee?t:new eD(t instanceof Error?t.message:t))}},o=t&&setTimeout(()=>{o=null,i(new ee(`timeout ${t} of ms exceeded`,ee.ETIMEDOUT))},t),a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));let{signal:s}=n;return s.unsubscribe=()=>Q.asap(a),s}})([a,s&&s.toAbortSignal()],l),v=m&&m.unsubscribe&&(()=>{m.unsubscribe()});try{if(c&&e3&&"get"!==i&&"head"!==i&&0!==(r=await e8(f,o))){let e,t=new Request(n,{method:"POST",body:o,duplex:"half"});if(Q.isFormData(o)&&(e=t.headers.get("content-type"))&&f.setContentType(e),t.body){let[e,n]=eB(r,eU(eY(c)));o=eZ(t.body,65536,e,n)}}Q.isString(p)||(p=p?"include":"omit");let a="credentials"in Request.prototype;t=new Request(n,{...h,signal:m,method:i.toUpperCase(),headers:f.normalize().toJSON(),body:o,duplex:"half",credentials:a?p:void 0});let s=await fetch(t,h),l=e5&&("stream"===d||"response"===d);if(e5&&(u||l&&v)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=s[t]});let t=Q.toFiniteNumber(s.headers.get("content-length")),[r,n]=u&&eB(t,eU(eY(u),!0))||[];s=new Response(eZ(s.body,65536,r,()=>{n&&n(),v&&v()}),e)}d=d||"text";let g=await e4[Q.findKey(e4,d)||"text"](s,e);return!l&&v&&v(),await new Promise((r,n)=>{eM(r,n,{data:g,headers:eR.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:t})})}catch(r){if(v&&v(),r&&"TypeError"===r.name&&/Load failed|fetch/i.test(r.message))throw Object.assign(new ee("Network Error",ee.ERR_NETWORK,e,t),{cause:r.cause||r});throw ee.from(r,r&&r.code,e,t)}})};Q.forEach(e9,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let e7=e=>`- ${e}`,te=e=>Q.isFunction(e)||null===e||!1===e,tt=e=>{let t,r,{length:n}=e=Q.isArray(e)?e:[e],i={};for(let o=0;o<n;o++){let n;if(r=t=e[o],!te(t)&&void 0===(r=e9[(n=String(t)).toLowerCase()]))throw new ee(`Unknown adapter '${n}'`);if(r)break;i[n||"#"+o]=r}if(!r){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new ee("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(e7).join("\n"):" "+e7(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function tr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eD(null,e)}function tn(e){return tr(e),e.headers=eR.from(e.headers),e.data=eN.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||eC.adapter)(e).then(function(t){return tr(e),t.data=eN.call(e,e.transformResponse,t),t.headers=eR.from(t.headers),t},function(t){return!eL(t)&&(tr(e),t&&t.response&&(t.response.data=eN.call(e,e.transformResponse,t.response),t.response.headers=eR.from(t.response.headers))),Promise.reject(t)})}let ti="1.11.0",to={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{to[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let ta={};to.transitional=function(e,t,r){function n(e,t){return"[Axios v"+ti+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,o)=>
1{if(!1===e)throw new ee(n(i," has been removed"+(t?" in "+t:"")),ee.ERR_DEPRECATED);return t&&!ta[i]&&(ta[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}},to.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};let ts=function(e,t,r){if("object"!=typeof e)throw new ee("options must be an object",ee.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let o=n[i],a=t[o];if(a){let t=e[o],r=void 0===t||a(t,o,e);if(!0!==r)throw new ee("option "+o+" must be "+r,ee.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new ee("Unknown option "+o,ee.ERR_BAD_OPTION)}};class tl{constructor(e){this.defaults=e||{},this.interceptors={request:new eh,response:new eh}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:o,headers:a}=t=eq(this.defaults,t);void 0!==i&&ts(i,{silentJSONParsing:to.transitional(to.boolean),forcedJSONParsing:to.transitional(to.boolean),clarifyTimeoutError:to.transitional(to.boolean)},!1),null!=o&&(Q.isFunction(o)?t.paramsSerializer={serialize:o}:ts(o,{encode:to.function,serialize:to.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ts(t,{baseUrl:to.spelling("baseURL"),withXsrfToken:to.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&Q.merge(a.common,a[t.method]);a&&Q.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=eR.concat(s,a);let l=[],u=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!u){let e=[tn.bind(this),void 0];for(e.unshift(...l),e.push(...c),n=e.length,r=Promise.resolve(t);d<n;)r=r.then(e[d++],e[d++]);return r}n=l.length;let f=t;for(d=0;d<n;){let e=l[d++],t=l[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{r=tn.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,n=c.length;d<n;)r=r.then(c[d++],c[d++]);return r}getUri(e){return ep(e$((e=eq(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Q.forEach(["delete","get","head","options"],function(e){tl.prototype[e]=function(t,r){return this.request(eq(r||{},{method:e,url:t,data:(r||{}).data}))}}),Q.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,i){return this.request(eq(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}tl.prototype[e]=t(),tl.prototype[e+"Form"]=t(!0)});class tu{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t,n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new eD(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new tu(function(t){e=t}),cancel:e}}}let tc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,Re
1setContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(tc).forEach(([e,t])=>{tc[t]=e});let td=function e(t){let r=new tl(t),n=h(tl.prototype.request,r);return Q.extend(n,tl.prototype,r,{allOwnKeys:!0}),Q.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(eq(t,r))},n}(eC);td.Axios=tl,td.CanceledError=eD,td.CancelToken=tu,td.isCancel=eL,td.VERSION=ti,td.toFormData=el,td.AxiosError=ee,td.Cancel=td.CanceledError,td.all=function(e){return Promise.all(e)},td.spread=function(e){return function(t){return e.apply(null,t)}},td.isAxiosError=function(e){return Q.isObject(e)&&!0===e.isAxiosError},td.mergeConfig=eq,td.AxiosHeaders=eR,td.formToJSON=e=>ek(Q.isHTMLForm(e)?new FormData(e):e),td.getAdapter=tt,td.HttpStatusCode=tc,td.default=td;let tf=td},27885:e=>{e.exports={root:"styles_root__zTVWf",iconContainer:"styles_iconContainer__8OFN2","icon-white":"styles_icon-white__ep3_c","icon-black":"styles_icon-black__sP4km","icon-pay":"styles_icon-pay__wwbVX"}},28153:(e,t,r)=>{"use strict";e.exports=r(68053)},28761:(e,t,r)=>{"use strict";r.d(t,{e:()=>$,N:()=>H});var n=r(59827),i=r(75755),o=r(72223),a=r(13955),s=r(45477),l=r(59819),u=r(87031),c=r(4452),d=r(43165),f=r(90575),p=r(70180),h=r(81025),m=r(17389),v=r(85760),g=r(97133),y=r(72277),b=r(29258),_=r(15875),w=r(52155);let S=({slug:e,type:t,promoId:r,paymentFlow:a,promotionName:s,promotionStatus:l,handleFilterChange:u})=>{let{theme:c}=(0,y.dU)(),{lat:d,lng:h}=(0,f.d4)(p.NL),{summary:m}=(0,i.A)(r,s,a,l),v=(0,o.useMemo)(()=>m?.data?.filter(e=>0!=e.count),[m]);return(0,n.Y)("div",{className:"flex gap-2 mt-4 mb-4",children:v?.length>1&&v?.map(i=>(0,n.Y)(_.v,{style:{order:i.order},text:i.text,theme:c,disableButton:!0,selected:i.type===t,onClick:()=>{var t;return t=i?.type,void((0,b.eu)(r,e,l,a,w.W[t],!!d&&!!h),u(t))},onDelete:void 0},i.text))})};var x=r(93571);let E=({isDesktop:e,text:t,selectedComponent:r,handleClose:i,handleOnBack:o,setSelectedComponent:a})=>{let s=(0,f.d4)(p.NO),l=(0,f.d4)(p.UM);return e?(0,n.FD)("div",{className:"flex items-center justify-between mt-8",children:[r.page===H.SHOPPING_LIST&&(0,n.Y)("button",{"data-testid":"button-modal-back",onClick:()=>a({page:H.STORES_LIST,storeId:0}),className:"flex items-center justify-center",children:(0,n.Y)(x.A,{})}),(0,n.Y)("h3",{className:"font-bold text-[20px] leading-[26px]",children:t}),(0,n.Y)("button",{"data-testid":"button-modal-close",onClick:i,className:"bg-white shadow-md rounded-2xl h-12 w-12 flex items-center justify-center cursor-pointer focus-visible:outline focus-visible:outline-2 focus-visible:outline-opacity-black-00",children:(0,n.Y)("img",{src:"/static/images/promotions/close-icon.svg",alt:"close-modal",className:"w-9 h-9"})})]}):(0,n.FD)("div",{className:"bg-white w-full h-[50px] z-10 flex items-center px-4 md:px-6 lg:px-8",children:[!s&&!l&&(0,n.Y)("button",{"data-testid":"button-modal-back",onClick:o,className:"flex items-center justify-center",children:(0,n.Y)(x.A,{})}),(0,n.Y)("h1",{className:"flex-1 text-center font-bold text-[16px] leading-[22px]",children:t})]})};var k=r(7160);let C=()=>(0,n.FD)("div",{className:"text-center border border-gray-300 p-6 rounded-lg",children:[(0,n.Y)("img",{className:"mx-auto",src:"/static/images/promotions/empty-search-green.svg",alt:"empty-search"}),(0,n.Y)("div",{className:"text-base font-normal leading-5 text-center",children:"No hay comercios que"}),(0,n.Y)("div",{className:"text-base font-normal leading-5 text-center",children:"coincidan con tu b\xfasqueda"})]});var A=r(68462),P=r.n(A);let T=({isDesktop:e})=>(0,n.FD)("div",{className:`text-center ${e?"my-12":"my-20"}`,"data-testid":"connection-error-container-test",children:[(0,n.Y)(P(),{src:"/static/images/svg/connection-error.svg",width:120,height:120,alt:"Error de conexi\xf3n"}
1),(0,n.Y)("div",{className:"text-lg font-bold leading-6 mb-2",children:"No pudimos cargar los comercios"}),(0,n.Y)("div",{className:"text-lg font-normal leading-6",children:"Te pedimos disculpas, estamos trabajando para solucionarlo."})]});var I=r(1845),O=r.n(I);let R=({promoId:e})=>{let{lat:t,lng:r}=(0,f.d4)(p.NL),i=(0,f.d4)(p.NO),o=t&&r?`&positionDefault=${t},${r}`:"",a=(0,f.d4)(p.UM);return i?null:(0,n.Y)(O(),{href:`/mapa?application_id=${e}${o}${a?"&webview=true":""}`,children:(0,n.FD)("div",{className:`bg-gray-50 border border-opacity-5 rounded-2xl flex items-center cursor-pointer mb-6 ${a?"h-[116px]":"h-[97px]"}`,children:[(0,n.Y)("img",{className:`m-0 ${a?"h-[116px]":"h-[97px]"}`,src:"/static/images/promotions/map-pin.svg",alt:"Abrir comercios cercanos"}),(0,n.FD)("div",{className:"flex flex-col xl:gap-3 p-3",children:[(0,n.Y)("div",{className:"font-quicksand xl:text-lg text-sm font-bold leading-6 text-left text-gray-700",children:s.TC}),(0,n.FD)("div",{className:"text-title-medium text-gray-800 hover:underline",children:["Ir al mapa "," >"]})]})]})})};var N=r(82104),L=r(3943),D=r(8114);let M=["capital federal","caba","ciudad autonoma de buenos aires","ciudad autonoma buenos aires","ciudad aut\xf3noma de buenos aires"];function F({slug:e,store:t,promoId:r,type:i,paymentFlow:o,promotionStatus:a,selectedComponent:s,setSelectedComponent:l}){let u,{hasGeolocation:d,lat:h,lng:m}=(0,f.d4)(p.NL),v=(0,c.useRouter)(),g=(0,f.wA)(),y=e=>v.push(e),_=(0,f.d4)(p.NO),S=H.SHOPPING_LIST===s.page?w.y.ONSITE:i,x=async n=>{if(_&&S===w.y.ONLINE){var u,c,d;return void(u=t.url,c=t.name,d=t.image,n.preventDefault(),g((0,p.nd)({isOpen:!0,href:u,name:c,image:d})))}(0,b.eE)(r,e,a,o,w.W[H.SHOPPING_LIST===s.page?H.SHOPPING_LIST:i]),N.U[S]?.onClick({store:t,promoId:r,slug:e,setSelectedComponent:l,navigate:y})};return(0,n.Y)("button",{onClick:x,className:"flex justify-between items-center w-full cursor-pointer",children:(0,n.FD)("div",{className:"flex justify-between items-center w-full text-start",children:[(0,n.Y)("div",{className:"flex gap-4 items-center justify-between w-full",children:(0,n.FD)("div",{className:"flex gap-4 items-center justify-between w-full",children:[(0,n.FD)("div",{className:"flex w-full gap-sm",children:[t?.image?(0,n.Y)("div",{className:"w-[60px] h-[60px] bg-gray-200 rounded-full flex justify-center items-center","data-testid":"store-image",children:(0,n.Y)("img",{src:t?.image,alt:`Icono Sucursal ${t.name}`,className:"w-[60px] h-[60px] min-w-[60px] min-h-[60px] rounded-full object-scale-down"})}):(0,n.Y)(L.A,{icon:"where",width:"60px",height:"60px",alt:"where-icon"}),(0,n.FD)("div",{children:[(0,n.Y)("p",{className:"text-callout-medium","data-testid":"store-name",children:(({stringToCapitalize:e,allFirstsLetters:t=!1})=>e?t?e.toLowerCase().trim().replace(/\w\S*/g,e=>e.replace(/^\w/,e=>e.toUpperCase())):e.toLowerCase().trim().replace(/^\w/,e=>e.toUpperCase()):"")({stringToCapitalize:t?.name})}),i!=w.y.ONLINE?(0,n.FD)(n.FK,{children:[(0,n.Y)("p",{className:"text-caption-regular text-sdk-greys-black capitalize","data-testid":"store-address",children:t?.address?.toLowerCase()}),(0,n.Y)("p",{className:"bg-sdk-greys-gray-3 mb-1 capitalize text-overline-l-medium w-fit px-2 py-1 rounded-md mt-1",children:(u=t?.district,M.includes(u?.toLowerCase()))?"CABA":t?.district?.toLowerCase()})]}):(0,n.Y)(n.FK,{children:_?null:(0,n.Y)("p",{className:"text-caption-regular text-gray-600",children:"Ir a la tienda online"})})]})]}),d&&!!h&&!!m&&!!t?.distance&&i!=w.y.ONLINE&&(0,n.FD)("div",{className:"flex items-center",children:[(0,n.Y)("div",{className:"w-[20px] h-[20px] p-[3px]",children:(0,n.Y)("img",{src:"/static/images/svg/distance.svg",alt:"icono distancia",className:"w-full h-full"})}),(0,n.Y)("p",{className:"font-medium text-[16px] leading-[22px] pl-1 w-[65px]","data-testid":"store-distance",children:(0,D.Y)(t?.distance)})]})]})}),(i===w.y.ONLINE||i===w.y.GROUPS)&&(0,n.Y)("img",{className:"rotate-[270deg]",src:"/static/images/svg/chevron.svg",alt:"Abrir comercios cercanos","data-testid":"chevron-image"})]})})}var j=r(31671),U=r(9723);let B=()=>{let e=(0,f.wA)(),{isOpen:t,href:r,name:i,image:o}=(0,f.d4)(p.lc);return t?(0,n.Y)("div",{className:"fixed inset-0 flex justify-center bg-black bg-opacity-30 z-50 items-end md:items-center md:justify-center",children:(0,n.FD)("div",{className:"bg-white rounded-3xl p-7 flex flex-col text-center shadow-lg gap-4 w-full fixed bottom-0 left-0 right-0 rounded-t-3xl rounded-b-none h-auto md:w-1/2 md:relative md:rounded-l",children:[(0,n.Y)("div",{className:"absolute left-1/2 transform -translate-x-1/2 top-2 w-[64px] h-[5px] bg-gray-200 rounded-full"}),(0,n.Y)("div",{className:"bg-blue-50 w-16 h-16 rounded-full mx-auto flex justify-center items-center border border-solid border-x-gray-100",children:o?(0,n.Y)("img",{src:o,alt:"shop-icon",className:"w-5 h-5 mx-auto"}):(0,n.Y)("img",{src:"/static/images/promotions/shop.svg",alt:"shop-icon",className:"w-5 h-5 mx-auto"})}),(0,n.FD)("div",{className:"font-bold",children:["Vas a ingresar a la tienda de ",i]}),(0,n.FD)("div",{className:"flex justify-end mt-2 gap-3 flex-col-reverse",children:[(0,n.Y)("button",{onClick:()=>e((0,p.nd)({isOpen:!1,href:"",image:""})),children:"Cancelar"}),(0,n.Y)(U.$n,{onClick:t=>{t.preventDefault(),window.open(r,"_blank"),e((0,p.nd)({isOpen:!1,href:"",image:""}))},children:"Continuar"})]})]})}):(0,n.Y)(n.FK,{})},Y=({type:e,slug:t,error:r,stores:i,search:a,promoId:s,promoName:l,isDesktop:u,isRunning:c,isLoading:d,promoStatus:h,paymentFlow:m,storeFetchProps:g,selectedComponent:y,setSelectedComponent:_})=>{let w=i?.pagination,S="onsite"===e,{lat:x,lng:E}=(0,f.d4)(p.NL),A=!i?.results?.length||Number(w?.page)>=Number(w?.total_pages),[P,I]=(0,k.KP)({rootMargin:"0px",threshold:0});return((0,o.useEffect)(()=>{P&&!d&&!A&&e&&g.onFetch(e,a,!1,y.storeId)},[P,A,e,a,g]),(0,o.useEffect)(()=>{(0,b.Ht)(s,l,h,m,!!x&&!!E)},[]),!i?.results?.length&&a)?(0,n.Y)(C,{}):r&&!d?(0,n.Y)(T,{isDesktop:u}):(0,n.FD)(n.FK,{children:[(0,n.Y)(B,{}),c&&S&&(0,n.Y)(R,{promoId:s}),!!i?.results?.length&&(0,n.Y)("section",{"data-testid":"participating-stores-list",children:i?.results?.map((r,o)=>{let a=o!==i.results.length-1;return(0,n.FD)("div",{"data-testid":`StoreItem-${r.name}-${o}`,children:[(0,n.Y)(F,{slug:t,store:r,type:e,paymentFlow:m,promoId:s,promotionStatus:h,selectedComponent:y,setSelectedComponent:_}),a&&(0,n.Y)(j.A,{})]},`StoreItem-${r.name}-${o}`)})}),d&&(0,n.Y)(v.A,{customWidth:"100px",quantity:10,showDivider:!0}),!A&&(0,n.Y)("div",{className:"h-[5px]",id:"visibility-more-stores",ref:I})]})},V=(0,o.memo)(({promotionData:e,promotionId:t=null,slug:r=null,type:y,promotionStatus:b=null,storeFetchProps:_,selectedComponent:w,setType:x,setSelectedComponent:k})=>{let{query:C,asPath:A,back:P}=(0,c.useRouter)(),T=t??C?.["promo-id"],I=b??C?.promotionStatus,{summary:O,stores:R}=(0,i.A)(T,e.title,e.payment_flow,I),N=(0,h.ZA)(),L=A?.includes("/promos/"),D=(0,a.j)(),M=(0,f.d4)(p.UM),[F,j]=(0,g.ZA)("search_text",{defaultValue:""});(0,o.useEffect)(()=>((0,u.F)({type:l.g.SHOW_TAB_BAR,payload:{show:!1}}),()=>{(0,u.F)({type:l.g.SHOW_TAB_BAR,payload:{show:!0}})}),[u.F]);let U=e=>{j(e),_.onFetch(y,e,!0,w?.storeId)},B=(0,o.useCallback)(()=>D((0,m.Et)(!1)),[]);return(0,n.FD)("div",{className:`px-6 md:px-8 ${!M&&"pt-0"} overflow-scroll`,style:{paddingTop:N?`${N}px`:void 0},children:[(0,n.FD)("div",{className:`sticky top-0 left-0 right-0 z-10 w-full flex flex-col bg-white ${M&&"pt-12"}`,children:[(0,n.Y)(E,{handleOnBack:e=>{e.preventDefault(),P()},isDesktop:L,handleClose:B,selectedComponent:w,setSelectedComponent:k,text:_.text}),(0,n.Y)("div",{className:`mt-4 ${w.page===H.SHOPPING_LIST&&"mb-4"} `,children:(0,n.Y)(d.default,{disablePadding:!0,placeholder:"Buscar por nombre",propsToQueryStateSetter:{scroll:!1,shallow:!0},onDebouncedChange:U,onClickSearch:U,onClean:()=>{j(""),_.onFetch(y,"",!0,w?.storeId)},cleanOnEmpty:!0})}),w.page===H.STORES_LIST&&(0,n.Y)(S,{slug:r,type:y,promoId:T,promotionName:e.title,paymentFlow:e.payment_flow,promotionStatus:b,handleFilterChange:e=>x(e)})]}),(O?.isLoading||R?.isLoading)&&R?.isFromSearch&&(0,n.Y)(v.A,{customWidth:"100px",quantity:10,showDivider:!0}),(0,n.Y)(Y,{type:y,slug:r,paymentFlow:e.payment_flow,promoId:T,stores:R?.data,promoName:e.title,search:F,isDesktop:L,promoStatus:I,storeFetchProps:_,selectedComponent:w,error:O.error||R.error,isLoading:O?.isLoading||R?.isLoading,isRunning:e?.calculated_status===s.Jy.RUNNING,setSelectedComponent:k})]})});V.displayName="ParticipatingStoresList";let H={STORES_LIST:"STORES_LIST",SHOPPING_LIST:"SHOPPING_LIST"},$=({promotion:e})=>{let[t,r]=(0,o.useState)({page:H.STORES_LIST,storeId:0}),[a,l]=(0,o.useState)(""),{title:u,id:c,payment_flow:d,slug:f,calculated_status:p}=e,{summary:h,getSummary:m,getStores:v,getShoppings:g}=(0,i.A)(c,u,d,p),y={[H.STORES_LIST]:{onFetch:v,text:s.YB},[H.SHOPPING_LIST]:{onFetch:g,text:"Shoppings"}};return(0,o.useEffect)(()=>{let e=h.data?.filter(e=>e?.count>0),t=e?.sort((e,t)=>
1e.order-t.order);l(t?.find(e=>!0)?.type)},[]),(0,o.useEffect)(()=>{a||m(),a&&y[t.page].onFetch(a,"",!0,t.storeId)},[a,t]),(0,n.Y)(V,{selectedComponent:t,setSelectedComponent:r,promotionData:e,promotionId:c,slug:f,promotionStatus:p,storeFetchProps:y[t.page],type:a,setType:l})}},29258:(e,t,r)=>{"use strict";r.d(t,{D1:()=>g,Fs:()=>u,Ht:()=>y,Nj:()=>h,QH:()=>s,TK:()=>c,Ue:()=>l,V4:()=>S,a6:()=>f,bC:()=>m,bv:()=>_,eE:()=>b,eu:()=>w,fs:()=>p,rO:()=>d,vD:()=>v});var n=r(58985),i=r(49736),o=r(46560),a=r(35324);let s=({source:e,eventName:t,promotionId:r,properties:n={}})=>{let o=e||(0,a.el)()||"unknown";(0,i.w)({eventName:t,properties:{...(0,a.lC)({promotionId:r,variant:(0,a.Gm)(),...o,...n}),...(0,a.uo)()}})};function l({promotionsShowed:e,promotionsIds:t}){s({eventName:o.m_,properties:{"promotions showed":e,"promotions ids":t}})}function u({promotionName:e}){s({eventName:o.Dr,properties:{promotionName:e}})}function c({promotionName:e,position:t,section:r,section_name:n,source:i}){s({eventName:o.bl,properties:{promotionName:e,position:t,section:r,section_name:n,source:i}})}function d({filter_status:e,filter_days:t,filter_banks:r,filter_modality:n,results:i,search_text:l,filter_type:u}){let c=l?.length>3?l:null;s({eventName:o.p,properties:{filter_status:(0,a.U)(e),filter_days:(0,a.U)(t),filter_banks:(0,a.U)(r),filter_modality:(0,a.U)(n),results:i,"with search":c,filter_type:u}})}function f({keywords:e,totalCards:t,searchType:r}){s({eventName:o.Pp,properties:{keywords:e?.toLowerCase(),"total results":t,searchType:r}})}function p({title:e,url:t,promotionName:r,status:n,promotionSlug:i}){s({eventName:o.k$,properties:{title:e,url:t,name:r,status:n,slug:i}})}function h(){s({eventName:o.vq})}function m({promotionName:e,status:t,promotionSlug:r}){s({eventName:o.u0,properties:{name:e,status:t,slug:r}})}function v({title:e,url:t,status:r,promotionName:n,promotionSlug:i}){s({eventName:o.h6,properties:{title:e,url:t,name:n,status:r,slug:i}})}function g(e){s({eventName:n.KL,properties:{promotionName:e}})}function y(e,t,r,i,o){s({eventName:n.fe,promotionId:e,properties:{promotionStatus:r,promotionType:i,promotionName:t,geolocation:o}})}function b(e,t,r,i,o){s({eventName:n.gm,promotionId:e,properties:{promotionStatus:r,selectedType:o,promotionType:i,promotionName:t}})}function _({promotionId:e,promotionName:t,promotionStatus:r,promotionType:i,section:o,stores:a,keywords:l,geolocation:u}){s({eventName:n.E8,promotionId:e,properties:{promotionName:t,promotionStatus:r,section:o,promotionType:i,stores:a,keywords:l,geolocation:u}})}function w(e,t,r,i,o,a){s({eventName:n.HM,promotionId:e,properties:{promotionStatus:r,promotionType:i,promotionName:t,filterType:o,geolocation:a}})}function S({geolocation:e}){s({eventName:o.Vn,properties:{geolocation:e}})}},30784:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},31589:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={default:function(){return c},getImageProps:function(){return u}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let o=r(51532),a=r(36703),s=r(32539),l=o._(r(52889));function u(e){let{props:t}=(0,a.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],qualities:[75,95,100],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let c=s.Image},31671:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(59827),i=r(20830),o=r.n(i);function a(){return(0,n.Y)("div",{"data-testid":"divider",className:o().root,children:(0,n.Y)("span",{className:o().line})})}},32123:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>a,MA:()=>i,N0:()=>l,qw:()=>s,vD:()=>o});let n=(0,r(5173).Z0)({name:"CMS",initialState:{isModalVisible:!1,content:{title:"",body:null}},reducers:{setModalVisible:(e,t)=>{e.isModalVisible=t.payload,t.payload||(e.content=null)},setModalContent:(e,t)=>{e.isModalVisible=!0,e.content=t.payload}}}),{setModalVisible:i,setModalContent:o}=n.actions,a=n.reducer;function s(e){return e.cmsReducer.isModalVisible}function l(e){return e.cmsReducer.content}},32539:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return _}});let n=r(51532),i=r(98781),o=r(1503),a=i._(r(72223)),s=n._(r(69507)),l=n._(r(89968)),u=r(36703),c=r(82652),d=r(65724);r(95646);let f=r(65693),p=n._(r(52889)),h=r(92734),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],qualities:[75,95,100],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function v(e,t,r,n,i,o,a){let s=e?.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),r?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}n?.current&&n.current(e)}}))}function g(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}let y=(0,a.forwardRef)(({src:e,srcSet:t,sizes:r,height:n,width:i,decoding:s,className:l,style:u,fetchPriority:c,placeholder:d,loading:f,unoptimized:p,fill:m,onLoadRef:y,onLoadingCompleteRef:b,setBlurComplete:_,setShowAltText:w,sizesInput:S,onLoad:x,onError:E,...k},C)=>{let A=(0,a.useCallback)(e=>{e&&(E&&(e.src=e.src),e.complete&&v(e,d,y,b,_,p,S))},[e,d,y,b,_,E,p,S]),P=(0,h.useMergedRef)(C,A);return(0,o.jsx)("img",{...k,...g(c),loading:f,width:i,height:n,decoding:s,"data-nimg":m?"fill":"1",className:l,style:u,sizes:r,srcSet:t,src:e,ref:P,onLoad:e=>{v(e.currentTarget,d,y,b,_,p,S)},onError:e=>{w(!0),"empty"!==d&&_(!0),E&&E(e)}})});function b({isAppRouter:e,imgAttributes:t}){let r={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...g(t.fetchPriority)};return e&&s.default.preload?(s.default.preload(t.src,r),null):(0,o.jsx)(l.default,{children:(0,o.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...r},"__nimg-"+t.src+t.srcSet+t.sizes)})}let _=(0,a.forwardRef)((e,t)=>{let r=(0,a.useContext)(f.RouterContext),n=(0,a.useContext)(d.ImageConfigContext),i=(0,a.useMemo)(()=>{let e=m||n||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t),i=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r,qualities:i,localPatterns:e.localPatterns}},[n]),{onLoad:s,onLoadingComplete:l}=e,h=(0,a.useRef)(s);(0,a.useEffect)(()=>{h.current=s},[s]);let v=(0,a.useRef)(l);(0,a.useEffect)(()=>{v.current=l},[l]);let[g,_]=(0,a.useState)(!1),[w,S]=(0,a.useState)(!1),{props:x,meta:E}=(0,u.getImgProps)(e,{defaultLoader:p.default,imgConf:i,blurComplete:g,showAltText:w});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(y,{...x,unoptimized:E.unoptimized,placeholder:E.placeholder,fill:E.fill,onLoadRef:h,onLoadingCompleteRef:v,setBlurComplete:_,setShowAltText:S,sizesInput:e.sizes,ref:t}),E.preload?(0,o.jsx)(b,{isAppRouter:!r,imgAttributes:x}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},32779:(e,t,r)=>{"use strict";r.d(t,{kb:()=>i,mm:()=>n});let n=({id:e,name:t,lat:r,lng:n,address:i,categories:o,image:a,district:s,state:l})=>e&&t&&r&&n&&i?{id:e,name:t,location:{lat:Number(r),lng:Number(n)},address:i,categories:o?.split(",").map(Number)||[],image:a,city:s,province:l}:null;function i({store:e,promoId:t}){let{id:r,name:n,location:o,address:a,categories:s,image:l,district:u,state:c}=e;if(o?.lat==null||o?.lng==null)return"";let d=new URLSearchParams({merchant_id:r.toString(),merchant_name:n??"",merchant_lat:o.lat.toString(),merchant_lng:o.lng.toString(),merchant_address:a??"",merchant_categories:s?.map(e=>e.id).join(",")??"",merchant_image:l,merchant_district:u??"",merchant_state:c??"",application_id:t,webview:"true"});return`/mapa?${d.toString()}`}},33152:(e,t,r)=>{"use strict";var n=r(58619);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
1:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},33510:(e,t,r)=>{"use strict";r.d(t,{i:()=>f});var n=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:i(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),i=function(){return"u">typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},o=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},e.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach(function(t){e(t)}),this.queue=[])},e}(),a=function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}"function"==typeof SuppressedError&&SuppressedError;var u=function(e,t){var r,n,i=typeof e;if(i!==typeof t)return!1;try{for(var o=s(["string","number","boolean","undefined"]),a=o.next();!a.done;a=o.next())if(a.value===i)return e===t}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;var l=Array.isArray(e),c=Array.isArray(t);if(l!==c)return!1;if(l&&c){for(var d=0;d<e.length;d++)if(!u(e[d],t[d]))return!1}else{if(!u(Object.keys(e).sort(),Object.keys(t).sort()))return!1;var f=!0;return Object.keys(e).forEach(function(r){u(e[r],t[r])||(f=!1)}),f}return!0};Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),r=t.length,n=Array(r);r--;)n[r]=[t[r],e[t[r]]];return n});var c=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var e=this,t=a({},this.identity.userProperties),r=a(a({},this.identity),{userProperties:t});return{setUserId:function(e){return r.userId=e,this},setDeviceId:function(e){return r.deviceId=e,this},setUserProperties:function(e){return r.userProperties=e,this},setOptOut:function(e){return r.optOut=e,this},updateUserProperties:function(e){var t,n,i,o,a,u,c=r.userProperties||{};try{for(var d=s(Object.entries(e)),f=d.next();!f.done;f=d.next()){var p=l(f.value,2),h=p[0],m=p[1];switch(h){case"$set":try{for(var v=(i=void 0,s(Object.entries(m))),g=v.next();!g.done;g=v.next()){var y=l(g.value,2),b=y[0],_=y[1];c[b]=_}}catch(e){i={error:e}}finally{try{g&&!g.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}break;case"$unset":try{for(var w=(a=void 0,s(Object.keys(m))),S=w.next();!S.done;S=w.next()){var b=S.value;delete c[b]}}catch(e){a={error:e}}finally{try{S&&!S.done&&(u=w.return)&&u.call(w)}finally{if(a)throw a.error}}break;case"$clearAll":c={}}}}catch(e){t={error:e}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(t)throw t.error}}return r.userProperties=c,this},commit:function(){return e.setIdentity(r),this}}},e.prototype.getIdentity=function(){return a({},this.identity)},e.prototype.setIdentity=function(e){var t=a({},this.identity);this.identity=a({},e),u(t,this.identity)||this.listeners.forEach(function(t){t(e)})},e.prototype.addIdentityListener=function(e){this.listeners.add(e)},e.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},e}(),d="u">typeof globalThis?globalThis:void 0!==r.g?r.g:self,f=function(){function e(){this.identityStore=new c,this.eventBridge=new o,this.applicationContextProvider=new n}return e.getInstance=function(t){return d.analyticsConnectorInstances||(d.analyticsConnectorInstances={}),d.analyticsConnectorInstances[t]||(d.analyticsConnectorInstances[t]=new e),d.analyticsConnectorInstances[t]},e}()},34910:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n={spacing:{section:"24px",internalSpacingSection:"14px",internalSpacingSectionSM:"8px",internalSpacingSectionMD:"12px"},color:{greenDarkPromotion:"#008859",greenLightPromotion:"#DCF5E7",white:"#FFFFFF",black:"#121212"}}},35324:(e,t,r)=>{"use strict";r.d(t,{Gm:()=>l,U:()=>s,el:()=>c,lC:()=>u,uo:()=>a});var n=r(74211),i=r(74448),o=r(46560);let a=()=>{var e;return{platform:!function(){let e=(0,n.ID)();if(e.includes("promos-banco")||e.includes("promos/banks/"))return`${(0,i.Xt)()?"promos app":"web"}`}()?"web":"promos app",os:(0,i.Xt)()?(e=navigator.userAgent||navigator.vendor||window.opera,/android/i.test(e)?"android":/iPad|iPhone|iPod/.test(e)&&!window.MSStream?"ios":"unknown"):"desktop"}},s=e=>{if(""!==e)return e},l=()=>(0,n.gU)("test-variant"),u=e=>Object.entries(e).reduce((e,[t,r])=>(null!=r&&(e[t]=r),e),{});function c(){let e=(0,n.ID)();if(e.includes("promos-banco"))return{source:o.Hl.BANK,bank_name:(0,n.gU)("ids")??window.bank};if(e.includes("promos/banks/")){let e;return{source:o.Hl.BANK,bank_name:(e=(0,n.ID)().split("/"))[e.length-1]??window?.bank}}
1return(0,n.gU)(o.oq.SOURCE)||(0,n.gU)(o.oq.CAMPAIGN)||(0,n.gU)(o.oq.CONTENT)||(0,n.gU)(o.oq.TERM)||(0,n.gU)(o.oq.MEDIUM)?{source:o.Hl.UTM,[o.oq.SOURCE]:(0,n.gU)(o.oq.SOURCE),[o.oq.CAMPAIGN]:(0,n.gU)(o.oq.CAMPAIGN),[o.oq.CONTENT]:(0,n.gU)(o.oq.CONTENT),[o.oq.TERM]:(0,n.gU)(o.oq.TERM),[o.oq.MEDIUM]:(0,n.gU)(o.oq.MEDIUM)}:{source:e?e.substring(e.lastIndexOf("/")+1).split("?")[0]:""}}},36110:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){console.warn("[react-gtm]",e)}},36111:e=>{e.exports={"color-variant-pay-default":"styles_color-variant-pay-default__xGxKg","color-variant-pay-dark":"styles_color-variant-pay-dark__Ia19_","color-variant-pay-10":"styles_color-variant-pay-10__KpCmY","color-variant-send-default":"styles_color-variant-send-default__CyseR","color-variant-send-dark":"styles_color-variant-send-dark__NHRGU","color-variant-send-10":"styles_color-variant-send-10__LtPKe","color-variant-blue-cross-dark":"styles_color-variant-blue-cross-dark__SyqOj","color-variant-black":"styles_color-variant-black__uU3xi","color-variant-gray-80":"styles_color-variant-gray-80__SMFsW","color-variant-white":"styles_color-variant-white__t3x9f","color-variant-reward-default":"styles_color-variant-reward-default__V810t","color-variant-reward-light":"styles_color-variant-reward-light__qPArq","color-variant-grey-03":"styles_color-variant-grey-03__USb_F","color-variant-full-white":"styles_color-variant-full-white__8gHzF","color-variant-transparent":"styles_color-variant-transparent__9aQQj",root:"styles_root__LH6Pz",image:"styles_image__1_dpp",content:"styles_content__KIU0w","content-button":"styles_content-button__Ap3at",title:"styles_title__E0zkb",data:"styles_data__cQGCJ",text:"styles_text___OiRk"}},36250:e=>{e.exports={root:"styles_root__RD5rf",icon:"styles_icon__BXO_J"}},36305:e=>{e.exports={root:"styles_root__QRU_y",image:"styles_image__ozccw","light-image":"styles_light-image__a_DAA","dark-image":"styles_dark-image__DQM23",white:"styles_white__uEdeH","pay-default":"styles_pay-default__Q4WP5"}},36703:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return u}}),r(95646);let n=r(37505),i=r(10368),o=r(82652),a=["-moz-initial","fill","none","scale-down",void 0];function s(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function u({src:e,sizes:t,unoptimized:r=!1,priority:c=!1,preload:d=!1,loading:f,className:p,quality:h,width:m,height:v,fill:g=!1,style:y,overrideSrc:b,onLoad:_,onLoadingComplete:w,placeholder:S="empty",blurDataURL:x,fetchPriority:E,decoding:k="async",layout:C,objectFit:A,objectPosition:P,lazyBoundary:T,lazyRoot:I,...O},R){var N;let L,D,M,{imgConf:F,showAltText:j,blurComplete:U,defaultLoader:B}=R,Y=F||o.imageConfigDefault;if("allSizes"in Y)L=Y;else{let e=[...Y.deviceSizes,...Y.imageSizes].sort((e,t)=>e-t),t=Y.deviceSizes.sort((e,t)=>e-t),r=Y.qualities?.sort((e,t)=>e-t);L={...Y,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===B)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let V=O.loader||B;delete O.loader,delete O.srcSet;let H="__next_img_default"in V;if(H){if("custom"===L.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop. 2Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=V;V=t=>{let{config:r,...n}=t;return e(n)}}if(C){"fill"===C&&(g=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[C];e&&(y={...y,...e});let r={responsive:"100vw",fill:"100vw"}[C];r&&!t&&(t=r)}let $="",z=l(m),q=l(v);if((N=e)&&"object"==typeof N&&(s(N)||void 0!==N.src)){let t=s(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}
2`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(D=t.blurWidth,M=t.blurHeight,x=x||t.blurDataURL,$=t.src,!g)if(z||q){if(z&&!q){let e=z/t.width;q=Math.round(t.height*e)}else if(!z&&q){let e=q/t.height;z=Math.round(t.width*e)}}else z=t.width,q=t.height}let W=!c&&!d&&("lazy"===f||void 0===f);(!(e="string"==typeof e?e:$)||e.startsWith("data:")||e.startsWith("blob:"))&&(r=!0,W=!1),L.unoptimized&&(r=!0),H&&!L.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(r=!0);let K=l(h),G=Object.assign(g?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:A,objectPosition:P}:{},j?{}:{color:"transparent"},y),X=U||"empty"===S?null:"blur"===S?`url("data:image/svg+xml;charset=utf-8,${(0,i.getImageBlurSvg)({widthInt:z,heightInt:q,blurWidth:D,blurHeight:M,blurDataURL:x||"",objectFit:G.objectFit})}")`:`url("${S}")`,J=a.includes(G.objectFit)?"fill"===G.objectFit?"100% 100%":"cover":G.objectFit,Z=X?{backgroundSize:J,backgroundPosition:G.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:X}:{},Q=function({config:e,src:t,unoptimized:r,width:i,quality:o,sizes:a,loader:s}){if(r){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,n.getDeploymentId)();if(e){let r=t.indexOf("?");if(-1!==r){let n=new URLSearchParams(t.slice(r+1));n.get("dpl")||(n.append("dpl",e),t=t.slice(0,r)+"?"+n.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:l,kind:u}=function({deviceSizes:e,allSizes:t},r,n){if(n){let r=/(^|\s)(1?\d?\d)vw/g,i=[];for(let e;e=r.exec(n);)i.push(parseInt(e[2]));if(i.length){let r=.01*Math.min(...i);return{widths:t.filter(t=>t>=e[0]*r),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof r?{widths:e,kind:"w"}:{widths:[...new Set([r,2*r].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,i,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((r,n)=>`${s({config:e,src:t,quality:o,width:r})} ${"w"===u?r:n+1}${u}`).join(", "),src:s({config:e,src:t,quality:o,width:l[c]})}}({config:L,src:e,unoptimized:r,width:z,quality:K,sizes:t,loader:V}),ee=W?"lazy":f;return{props:{...O,loading:ee,fetchPriority:E,width:z,height:q,decoding:k,className:p,style:{...G,...Z},sizes:Q.sizes,srcSet:Q.srcSet,src:b||Q.src},meta:{unoptimized:r,preload:d||c,placeholder:S,fill:g}}}},38269:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ServerStyleSheet:()=>eF,StyleSheetConsumer:()=>eo,StyleSheetContext:()=>ei,StyleSheetManager:()=>ed,ThemeConsumer:()=>eI,ThemeContext:()=>eT,ThemeProvider:()=>eO,__PRIVATE__:()=>eB,createGlobalStyle:()=>eD,css:()=>ew,default:()=>eY,isStyledComponent:()=>S,keyframes:()=>eM,useTheme:()=>eU,version:()=>E,withTheme:()=>ej});var n=r(9456),i=r(72223),o=r(35),a=r.n(o);let s=function(e){function t(e,t,n){var i=t.trim().split(h);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<o;++s)for(var u=0;u<a;++u)t[l++]=r(e[u]+" ",i[s],n).trim()}return t}function r(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<+r&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function n(e,t,r,o){var a=e+";",s=2*t+3*r+4*o;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===T||2===T&&i(l,1)?"-webkit-"+l+l:l}if(0===T||2===T&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;
vendor: 4,793 bytes, line 2
2case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(k,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return f.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(b,"tb");break;case 232:l=a.replace(b,"tb-rl");break;case 220:l=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(S,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(S,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===E.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?n(e.replace("stretch","fill-available"),t,r,o).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+o&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),N(2!==t?n:n.replace(x,"$1"),r,t)}function o(e,t){var r=n(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(w," or ($1)").substring(4):"("+t+")"}function a(e,t,r,n,i,o,a,s,u,c){for(var d,f=0,p=t;f<R;++f)switch(d=O[f].call(l,e,p,r,n,i,o,a,s,u,c)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function s(e){return void 0!==(e=e.prefix)&&(N=null,e?"function"!=typeof e?T=1:(T=2,N=e):T=0),s}function l(e,r){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<R){var l=a(-1,r,s,s,A,C,0,0,0,0);void 0!==l&&"string"==typeof l&&(r=l)}var d=function e(r,s,l,d,f){for(var p,h,m,b,w,S=0,x=0,E=0,k=0,O=0,N=0,D=m=p=0,M=0,F=0,j=0,U=0,B=l.length,Y=B-1,V="",H="",$="",z="";M<B;){if(h=l.charCodeAt(M),M===Y&&0!==x+k+E+S&&(0!==x&&(h=47===x?10:47),k=E=S=0,B++,Y++),0===x+k+E+S){if(M===Y&&(0<F&&(V=V.replace(c,"")),0<V.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:V+=l.charAt(M)}h=59}switch(h){case 123:for(p=(V=V.trim()).charCodeAt(0),m=1,U=++M;M<B;){switch(h=l.charCodeAt(M)){case 123:m++;break;case 125:m--;break;case 47:switch(h=l.charCodeAt(M+1)){case 42:case 47:e:{for(D=M+1;D<Y;++D)switch(l.charCodeAt(D)){case 47:if(42===h&&42===l.charCodeAt(D-1)&&M+2!==D){M=D+1;break e}break;case 10:if(47===h){M=D+1;break e}}M=D}}break;case 91:h++;case 40:h++;case 34:case 39:for(;M++<Y&&l.charCodeAt(M)!==h;);}if(0===m)break;M++}if(m=l.substring(U,M),0===p&&(p=(V=V.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<F&&(V=V.replace(c,"")),h=V.charCodeAt(1)){case 100:case 109:case 115:case 45:F=s;break;default:F=I}if(U=(m=e(s,F,m,h,f+1)).length,0<R&&(w=a(3,m,F=t(I,V,j),s,A,C,U,h,f,d),V=F.join(""),void 0!==w&&0===(U=(m=w.trim()).length)&&(h=0,m="")),0<U)switch(h){case 115:V=V.replace(_,o);case 100:case 109:case 45:m=V+"{"+m+"}";break;case 107:m=(V=V.replace(v,"$1 $2"))+"{"+m+"}",m=1===T||2===T&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=V+m,112===d&&(H+=m,m="")}else m=""}else m=e(s,t(s,V,j),m,d,f+1);$+=m,m=j=F=D=p=0,V="",h=l.charCodeAt(++M);break;case 125:case 59:if(1<(U=(V=(0<F?V.replace(c,""):V).trim()).length))switch(0===D&&(45===(p=V.charCodeAt(0))||96<p&&123>p)&&(U=(V=V.replace(" ",":")).length),0<R&&void 0!==(w=a(1,V,s,r,A,C,H.length,d,f,d))&&0===(U=(V=w.trim()).length)&&(V="\0\0"),p=V.charCodeAt(0),h=V.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){z+=V+l.charAt(M);break}
vendor: 4,738 bytes, line 2
2default:58!==V.charCodeAt(U-1)&&(H+=n(V,p,h,V.charCodeAt(2)))}j=F=D=p=0,V="",h=l.charCodeAt(++M)}}switch(h){case 13:case 10:47===x?x=0:0===1+p&&107!==d&&0<V.length&&(F=1,V+="\0"),0<R*L&&a(0,V,s,r,A,C,H.length,d,f,d),C=1,A++;break;case 59:case 125:if(0===x+k+E+S){C++;break}default:switch(C++,b=l.charAt(M),h){case 9:case 32:if(0===k+S+x)switch(O){case 44:case 58:case 9:case 32:b="";break;default:32!==h&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===k+x+S&&(F=j=1,b="\f"+b);break;case 108:if(0===k+x+S+P&&0<D)switch(M-D){case 2:112===O&&58===l.charCodeAt(M-3)&&(P=O);case 8:111===N&&(P=N)}break;case 58:0===k+x+S&&(D=M);break;case 44:0===x+E+k+S&&(F=1,b+="\r");break;case 34:case 39:0===x&&(k=k===h?0:0===k?h:k);break;case 91:0===k+x+E&&S++;break;case 93:0===k+x+E&&S--;break;case 41:0===k+x+S&&E--;break;case 40:0===k+x+S&&(0===p&&(2*O+3*N==533||(p=1)),E++);break;case 64:0===x+E+k+S+D+m&&(m=1);break;case 42:case 47:if(!(0<k+S+E))switch(x){case 0:switch(2*h+3*l.charCodeAt(M+1)){case 235:x=47;break;case 220:U=M,x=42}break;case 42:47===h&&42===O&&U+2!==M&&(33===l.charCodeAt(U+2)&&(H+=l.substring(U,M+1)),b="",x=0)}}0===x&&(V+=b)}N=O,O=h,M++}if(0<(U=H.length)){if(F=s,0<R&&void 0!==(w=a(2,H,F,r,A,C,U,d,f,d))&&0===(H=w).length)return z+H+$;if(H=F.join(",")+"{"+H+"}",0!=T*P){switch(2!==T||i(H,2)||(P=0),P){case 111:H=H.replace(y,":-moz-$1")+H;break;case 112:H=H.replace(g,"::-webkit-input-$1")+H.replace(g,"::-moz-$1")+H.replace(g,":-ms-input-$1")+H}P=0}}return z+H+$}(I,s,r,0,0);return 0<R&&void 0!==(l=a(-2,d,s,s,A,C,d.length,0,0,0))&&(d=l),P=0,C=A=1,d}var u=/^\0+/g,c=/[\0\r\f]/g,d=/: */g,f=/zoo|gra/,p=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,y=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,S=/-self|flex-/g,x=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,C=1,A=1,P=0,T=1,I=[],O=[],R=0,N=null,L=0;return l.use=function e(t){switch(t){case void 0:case null:R=O.length=0;break;default:if("function"==typeof t)O[R++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else L=0|!!t}return e},l.set=s,void 0!==e&&s(e),l},l={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var u=r(1342),c=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRen
2dering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,d=(0,u.A)(function(e){return c.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),f=r(13027),p=r.n(f),h=r(50839);function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var v=function(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r},g=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,n.typeOf)(e)},y=Object.freeze([]),b=Object.freeze({});function _(e){return"function"==typeof e}function w(e){return e.displayName||e.name||"Component"}function S(e){return e&&"string"==typeof e.styledComponentId}var x=void 0!==h&&void 0!==h.env&&(h.env.REACT_APP_SC_ATTR||h.env.SC_ATTR)||"data-styled",E="5.3.11",k="u">typeof window&&"HTMLElement"in window,C=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==h&&void 0!==h.env&&(void 0!==h.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==h.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==h.env.REACT_APP_SC_DISABLE_SPEEDY&&h.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==h.env.SC_DISABLE_SPEEDY&&""!==h.env.SC_DISABLE_SPEEDY&&"false"!==h.env.SC_DISABLE_SPEEDY&&h.env.SC_DISABLE_SPEEDY)),A={};function P(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var T=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)(i<<=1)<0&&P(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=n;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,o=n;o<i;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),I=new Map,O=new Map,R=1,N=function(e){if(I.has(e))return I.get(e);for(;O.has(R);)R++;var t=R++;return I.set(e,t),O.set(t,e),t},L=function(e,t){t>=R&&(R=t+1),I.set(e,t),O.set(t,e)},D="style["+x+'][data-styled-version="5.3.11"]',M=RegExp("^"+x+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),F=function(e,t,r){for(var n,i=r.split(","),o=0,a=i.length;o<a;o++)(n=i[o])&&e.registerName(t,n)},j=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],i=0,o=r.length;i<o;i++){var a=r[i].trim();if(a){var s=a.match(M);if(s){var l=0|parseInt(s[1],10),u=s[2];0!==l&&(L(u,l),F(e,u,s[3]),e.getTag().insertRules(l,n)),n.length=0}else n.push(a)}}},U=function(){return r.nc},B=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];
vendor: 6,494 bytes, line 2
2if(n&&1===n.nodeType&&n.hasAttribute(x))return n}}(r),o=void 0!==i?i.nextSibling:null;n.setAttribute(x,"active"),n.setAttribute("data-styled-version","5.3.11");var a=U();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},Y=function(){function e(e){var t=this.element=B(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var i=t[r];if(i.ownerNode===e)return i}P(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),V=function(){function e(e){var t=this.element=B(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),H=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),$=k,z={isServer:!k,useCSSOMInjection:!C},q=function(){function e(e,t,r){void 0===e&&(e=b),void 0===t&&(t={}),this.options=m({},z,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&k&&$&&($=!1,function(e){for(var t=document.querySelectorAll(D),r=0,n=t.length;r<n;r++){var i=t[r];i&&"active"!==i.getAttribute(x)&&(j(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return N(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(m({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){var e,t,r,n;return this.tag||(this.tag=(t=(e=this.options).isServer,r=e.useCSSOMInjection,n=e.target,new T(t?new H(n):r?new Y(n):new V(n))))},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(N(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(N(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(N(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",i=0;i<r;i++){var o,a=(o=i,O.get(o));if(void 0!==a){var s=e.names.get(a),l=t.getGroup(i);if(s&&l&&s.size){var u=x+".g"+i+'[id="'+a+'"]',c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+=e+",")}),n+=""+l+u+'{content:"'+c+'"}/*!sc*/\n'}}}return n}(this)},e}(),W=/(a)(d)/gi,K=function(e){return String.fromCharCode(e+(e>25?39:97))};function G(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=K(t%52)+r;return(K(t%52)+r).replace(W,"$1-$2")}var X=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},J=function(e){return X(5381,e)};function Z(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(_(r)&&!S(r))return!1}return!0}var Q=J("5.3.11"),ee=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Z(e),this.componentId=t,this.baseHash=X(Q,t),this.baseStyle=r,q.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))i.push(this.staticRulesId);else{var o=eb(this.rules,e,t,r).join(""),a=G(X(this.baseHash,o)>>>0);if(!t.hasNameForId(n,a)){var s=r(o,"."+a,void 0,n);t.insertRules(n,a,s)}i.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,u=X(this.baseHash,r.hash),c="",d=0;d<l;d++){var f=this.rules[d];if("string"==typeof f)c+=f;else if(f){var p=eb(f,e,t,r),h=Array.isArray(p)?p.join(""):p;u=X(u,h+d),c+=h}}if(c){var m=G(u>>>0);if(!t.hasNameForId(n,m)){var v=r(c,"."+m,void 0,n);t.insertRules(n,m,v)}i.push(m)}}return i.join(" ")},e}(),et=/^\s*\/\/.*$/gm,er=[":","[",".","#"];function en(e){var t,r,n,i,o=void 0===e?b:e,a=o.options,l=void 0===a?b:a,u=o.plugins,c=void 0===u?y:u,d=new s(l),f=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,i,o,a,s,l,u,c,d){switch(r){case 1:if(0===c&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(i[0]+n),"";default:return n+(0===d?"/*|*/":"")}case -2:n.split("/*|*/}").forEach(t)}}}(function(e){f.push(e)}),h=function(e,n,o){return 0===n&&-1!==er.indexOf(o[r.length])||o.match(i)?e:"."+t};function m(e,o,a,s){void 0===s&&(s="&");var l=e.replace(et,""),u=o&&a?a+" "+o+" { "+l+" }":l;return t=s,n=RegExp("\\"+(r=o)+"\\b","g"),i=RegExp("(\\"+r+"\\b){2,}"),d(a||!o?"":o,u)}return d.use([].concat(c,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(r)>0&&(i[0]=i[0].replace(n,h))},p,function(e){if(-2===e){var t=f;return f=[],t}}])),m.hash=c.length?c.reduce(function(e,t){return t.name||P(15),X(e,t.name)},5381).toString():"",m}var ei=i.createContext(),eo=ei.Consumer,ea=i.createContext(),es=(ea.Consumer,new q),el=en();function eu(){return(0,i.useContext)(ei)||es}function ec(){return(0,i.useContext)(ea)||el}function ed(e){var t=(0,i.useState)(e.stylisPlugins),r=t[0],n=t[1],o=eu(),s=(0,i.useMemo)(function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target]),l=(0,i.useMemo)(function(){return en({options:{prefix:!e.disableVendorPrefixes},plugins:r})},[e.disableVendorPrefixes,r]);return(0,i.useEffect)(function(){a()(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]),i.createElement(ei.Provider,{value:s},i.createElement(ea.Provider,{value:l},e.children))}var ef=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=el);var n=r.name+t.hash;
2e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return P(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=el),this.name+e.hash},e}(),ep=/([A-Z])/,eh=/([A-Z])/g,em=/^ms-/,ev=function(e){return"-"+e.toLowerCase()};function eg(e){return ep.test(e)?e.replace(eh,ev).replace(em,"-ms-"):e}var ey=function(e){return null==e||!1===e||""===e};function eb(e,t,r,n){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a<s;a+=1)""!==(i=eb(e[a],t,r,n))&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}return ey(e)?"":S(e)?"."+e.styledComponentId:_(e)?"function"!=typeof e||e.prototype&&e.prototype.isReactComponent||!t?e:eb(e(t),t,r,n):e instanceof ef?r?(e.inject(r,n),e.getName(n)):e:g(e)?function e(t,r){var n,i=[];for(var o in t)t.hasOwnProperty(o)&&!ey(t[o])&&(Array.isArray(t[o])&&t[o].isCss||_(t[o])?i.push(eg(o)+":",t[o],";"):g(t[o])?i.push.apply(i,e(t[o],o)):i.push(eg(o)+": "+(null==(n=t[o])||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||o in l||o.startsWith("--")?String(n).trim():n+"px")+";"));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString()}var e_=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ew(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return _(e)||g(e)?e_(eb(v(y,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:e_(eb(v(e,r)))}var eS=function(e,t,r){return void 0===r&&(r=b),e.theme!==r.theme&&e.theme||t||r.theme},ex=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,eE=/(^-|-$)/g;function ek(e){return e.replace(ex,"-").replace(eE,"")}var eC=function(e){return G(J(e)>>>0)};function eA(e){return"string"==typeof e}var eP=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},eT=i.createContext(),eI=eT.Consumer;function eO(e){var t=(0,i.useContext)(eT),r=(0,i.useMemo)(function(){var r;return r=e.theme,r?_(r)?r(t):Array.isArray(r)||"object"!=typeof r?P(8):t?m({},t,{},r):r:P(14)},[e.theme,t]);return e.children?i.createElement(eT.Provider,{value:r},e.children):null}var eR={},eN=function(e){return function e(t,r,i){if(void 0===i&&(i=b),!(0,n.isValidElementType)(r))return P(1,String(r));var o=function(){return t(r,i,ew.apply(void 0,arguments))};return o.withConfig=function(n){return e(t,r,m({},i,{},n))},o.attrs=function(n){return e(t,r,m({},i,{attrs:Array.prototype.concat(i.attrs,n).filter(Boolean)}))},o}(function e(t,r,n){var o=S(t),a=!eA(t),s=r.attrs,l=void 0===s?y:s,u=r.componentId,c=void 0===u?(E=r.displayName,k=r.parentComponentId,eR[C="string"!=typeof E?"sc":ek(E)]=(eR[C]||0)+1,A=C+"-"+eC("5.3.11"+C+eR[C]),k?k+"-"+A:A):u,f=r.displayName,h=void 0===f?eA(t)?"styled."+t:"Styled("+w(t)+")":f,v=r.displayName&&r.componentId?ek(r.displayName)+"-"+r.componentId:r.componentId||c,g=o&&t.attrs?Array.prototype.concat(t.attrs,l).filter(Boolean):l,x=r.shouldForwardProp;o&&t.shouldForwardProp&&(x=r.shouldForwardProp?function(e,n,i){return t.shouldForwardProp(e,n,i)&&r.shouldForwardProp(e,n,i)}:t.shouldForwardProp);var E,k,C,A,P,T=new ee(n,v,o?t.componentStyle:void 0),I=T.isStatic&&0===l.length,O=function(e,t){return function(e,t,r,n){var o,a,s,l,u,c=e.attrs,f=e.componentStyle,p=e.defaultProps,h=e.foldedComponentIds,v=e.shouldForwardProp,g=e.styledComponentId,y=e.target,w=(o=eS(t,(0,i.useContext)(eT),p)||b,void 0===o&&(o=b),a=m({},t,{theme:o}),s={},c.forEach(function(e){var t,r,n,i=e;for(t in _(i)&&(i=i(a)),i)a[t]=s[t]="className"===t?(r=s[t],n=i[t],r&&n?r+" "+n:r||n):i[t]}),[a,s]),S=w[0],x=w[1],E=(l=eu(),u=ec(),n?f.generateAndInjectStyles(b,l,u):f.generateAndInjectStyles(S,l,u)),k=x.$as||t.$as||x.as||t.as||y,C=eA(k),A=x!==t?m({},t,{},x):t,P={};for(var T in A)"$"!==T[0]&&"as"!==T&&("forwardedAs"===T?P.as=A[T]:(v?v(T,d,k):!C||d(T))&&(P[T]=A[T]));return t.style&&x.style!==t.style&&(P.style=m({},t.style,{},x.style)),P.className=Array.prototype.concat(h,g,E!==g?E:null,t.className,x.className).filter(Boolean).join(" "),P.ref=r,(0,i.createElement)(k,P)}(P,e,t,I)};return O.displayName=h,(P=i.forwardRef(O)).attrs=g,P.componentStyle=T,P.displayName=h,P.shouldForwardProp=x,P.foldedComponentIds=o?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):y,P.styledComponentId=v,P.target=
2o?t.target:t,P.withComponent=function(t){var i=r.componentId,o=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}(r,["componentId"]),a=i&&i+"-"+(eA(t)?t:ek(w(t)));return e(t,m({},o,{attrs:g,componentId:a}),n)},Object.defineProperty(P,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];for(var o=0;o<n.length;o++){var a=n[o];if(eP(a))for(var s in a)"__proto__"!==s&&"constructor"!==s&&"prototype"!==s&&function(t,r,n){var i=t[n];eP(r)&&eP(i)?e(i,r):t[n]=r}(t,a[s],s)}return t}({},t.defaultProps,e):e}}),Object.defineProperty(P,"toString",{value:function(){return"."+P.styledComponentId}}),a&&p()(P,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),P},e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){eN[e]=eN(e)});var eL=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Z(e),q.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var i=n(eb(this.rules,t,r,n).join(""),""),o=this.componentId+e;r.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&q.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function eD(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=ew.apply(void 0,[e].concat(r)),a="sc-global-"+eC(JSON.stringify(o)),s=new eL(o,a);function l(e){var t=eu(),r=ec(),n=(0,i.useContext)(eT),o=(0,i.useRef)(t.allocateGSInstance(a)).current;return t.server&&u(o,e,t,n,r),(0,i.useLayoutEffect)(function(){if(!t.server)return u(o,e,t,n,r),function(){return s.removeStyles(o,t)}},[o,e,t,n,r]),null}function u(e,t,r,n,i){if(s.isStatic)s.renderStyles(e,A,r,i);else{var o=m({},t,{theme:eS(t,n,l.defaultProps)});s.renderStyles(e,o,r,i)}}return i.memo(l)}function eM(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=ew.apply(void 0,[e].concat(r)).join("");return new ef(eC(i),i)}var eF=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=U();return"<style "+[r&&'nonce="'+r+'"',x+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?P(2):e._emitSheetCSS()}
2,this.getStyleElement=function(){if(e.sealed)return P(2);var t,r=((t={})[x]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=U();return n&&(r.nonce=n),[i.createElement("style",m({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new q({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?P(2):i.createElement(ed,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return P(3)},e}(),ej=function(e){var t=i.forwardRef(function(t,r){var n=eS(t,(0,i.useContext)(eT),e.defaultProps);return i.createElement(e,m({},t,{theme:n,ref:r}))});return p()(t,e),t.displayName="WithTheme("+w(e)+")",t},eU=function(){return(0,i.useContext)(eT)},eB={StyleSheet:q,masterSheet:es};let eY=eN},38610:e=>{e.exports={root:"styles_root__N1uet",removeButton:"styles_removeButton__w0eHp",icon:"styles_icon___DO9v"}},40435:(e,t,r)=>{"use strict";r.d(t,{GB:()=>b,H:()=>f,MI:()=>y,Md:()=>u,QA:()=>o,QS:()=>c,ak:()=>s,b1:()=>d,cf:()=>v,e7:()=>p,gk:()=>g,k3:()=>a,m5:()=>_,p4:()=>m,pU:()=>l,zG:()=>h});var n=r(19671),i=r(38269);let o=i.default.div.withConfig({componentId:"sc-1ce6f847-0"})(["@media (min-width:600px){border-top-left-radius:0px;border-top-right-radius:0px;padding-left:15px;padding-right:15px;}@media (max-width:600px){background-color:white;border-top-left-radius:22px;border-top-right-radius:22px;padding-top:24px;margin-top:-20px;position:relative;padding-left:15px;padding-right:15px;margin-bottom:20px;}"]);i.default.img.withConfig({componentId:"sc-1ce6f847-1"})(["width:48px;margin-bottom:16px;"]),i.default.div.withConfig({componentId:"sc-1ce6f847-2"})(["border:1px solid ",";padding:20px 16px 24px 16px;text-align:center;border-radius:24px;margin-top:-100px;background:white;display:flex;flex-direction:column;align-items:center;"],n.w4.color.tertiaryGray08);let a=i.default.div.withConfig({componentId:"sc-1ce6f847-3"})(["display:flex;"]),s=i.default.div.withConfig({componentId:"sc-1ce6f847-4"})(["display:flex;flex-direction:row;"]),l=i.default.h2.withConfig({componentId:"sc-1ce6f847-5"})(["font-weight:700;font-size:20px;line-height:28px;margin-bottom:16px;text-align:start;"]),u=i.default.div.withConfig({componentId:"sc-1ce6f847-6"})(["display:flex;width:100%;margin:24px 0;"]),c=i.default.div.withConfig({componentId:"sc-1ce6f847-7"})(["border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#ececec;"]),d=i.default.div.withConfig({componentId:"sc-1ce6f847-8"})(["display:flex;flex-direction:column;padding-bottom:8px;margin-bottom:16px;margin-top:30px;"]),f=i.default.div.withConfig({componentId:"sc-1ce6f847-9"})(["display:flex;flex-direction:row;height:100%;align-items:flex-start;"]),p=i.default.div.withConfig({componentId:"sc-1ce6f847-10"})(["margin:0px;padding:0px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;"]),h=i.default.span.withConfig({componentId:"sc-1ce6f847-11"})(["background-color:",";height:",";width:",";display:flex;justify-content:center;align-items:center;border-radius:50%;padding:4px;& > img{width:100%;height:100%;}"],e=>e.backgroundColor,e=>e.height||"38px",e=>e.width||"38px"),m=i.default.div.withConfig({componentId:"sc-1ce6f847-12"})(["display:flex;flex-direction:column;padding-left:15px;"]),v=i.default.div.withConfig({componentId:"sc-1ce6f847-13"})(["height:18px;width:18px;display:flex;justify-content:center;align-items:center;border:1px solid ",";border-radius:4px;margin:2px;"],e=>e.borderColor),g=i.default.span.withConfig({componentId:"sc-1ce6f847-14"})(["font-size:12px;color:",";"],e=>e.color),y=i.default.img.withConfig({componentId:"sc-1ce6f847-15"})(["width:40px;display:inline-block;"]),b=i.default.span.withConfig({componentId:"sc-1ce6f847-16"})(["font-style:normal;font-weight:400;font-size:14px;line-height:17px;color:",";"],n.w4.color.tertiaryGray80),_=i.default.span.withConfig({componentId:"sc-1ce6f847-17"})(["font-style:normal;font-weight:500;font-size:15px;line-height:20px;"])},43165:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var n=r(59827),i=r(72223),o=r(38269),a=r(19671),s=r(34910);let l=o.default.div.withConfig({componentId:"sc-29d095d9-0"}
2)(["height:48px;width:",";background:",";border-radius:18px;margin:0;display:-webkit-box;display:-ms-flexbox;display:flex;flex-direction:row;align-items:flex-start;flex:1;@media screen and (min-width:","){width:100%;margin:",";}"],({fill:e})=>e?"100%":"calc(100% - 48px - 8px)",({fromstores:e})=>e?`${a.w4.color.white}`:"#f8f8f8",a.w4.breakpoints.mobileMDmin,({fromstores:e})=>e?0:"0.8 0.8 0.8 0"),u=o.default.input.attrs(()=>({type:"search",name:"searchInput"})).withConfig({componentId:"sc-29d095d9-1"})(["display:flex;flex-direction:column;align-items:flex-start;-webkit-box-flex:1;-ms-flex:1;flex:1;height:31px;margin:8px 0;padding:6px 0 6px 0;gap:10px;outline:none;border-width:0px;background-color:transparent;font-style:normal;font-weight:normal;font-size:14px;line-height:20px;color:",";::placeholder{color:",";}&::-webkit-search-cancel-button{-webkit-appearance:none;}"],a.w4.color.darkGray,a.w4.color.darkGray),c=(0,o.default)(e=>(0,n.FD)("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,n.Y)("path",{d:"M12.75 4.25L4.25 12.75",stroke:"var(--color)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.Y)("path",{d:"M4.25 4.25L12.75 12.75",stroke:"var(--color)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})).withConfig({componentId:"sc-29d095d9-2"})(["margin:17px 16px 0 0;height:14px;width:14px;display:block;--color:",";& > path{stroke:",";}&[data-from-app='true'] > path{stroke:",";}@media screen and (min-width:","){margin:17px 14px 0 0;}"],({fromstores:e,theme:t})=>e?`${a.w4.color.black}`:`${t.color.brand.primary}`,e=>e.theme.color.brand.primary,e=>e.theme.color.brand.primary,a.w4.breakpoints.mobileMDmin),d=(0,o.default)(e=>(0,n.Y)("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,n.Y)("path",{d:"M11.2973 11.2973L15.5863 15.5863L11.2973 11.2973ZM13.0119 7.00534C13.0119 8.19309 12.6597 9.35417 11.9999 10.3418C11.34 11.3294 10.4021 12.0991 9.30479 12.5537C8.20747 13.0083 7 13.1273 5.83506 12.8956C4.67012 12.664 3.60002 12.0921 2.76008 11.2523C1.92015 10.4125 1.34809 9.34249 1.11625 8.17759C0.884413 7.01268 1.0032 5.80519 1.4576 4.7078C1.91199 3.6104 2.68159 2.67239 3.66907 2.01237C4.65655 1.35234 5.81757 0.999954 7.00532 0.999756C7.79407 0.999625 8.57512 1.15487 9.30387 1.45662C10.0326 1.75837 10.6948 2.20071 11.2526 2.7584C11.8103 3.31608 12.2528 3.97818 12.5547 4.70687C12.8565 5.43557 13.0119 6.21659 13.0119 7.00534V7.00534Z",stroke:"var(--color)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})).withConfig({componentId:"sc-29d095d9-3"})(["margin:17px 12px 0 19px;height:14px;width:14px;display:block;--color:",";& > path{stroke:",";}&[data-from-app='true'] > path{stroke:",";}@media screen and (min-width:","){margin:17px 10px 0 16px;}"],({fromstores:e})=>e?`${a.w4.color.black}`:`${a.w4.color.brand.primary}`,e=>e.theme.color.brand.primary,e=>e.theme.color.brand.primary,a.w4.breakpoints.mobileMDmin);o.default.button.withConfig({componentId:"sc-29d095d9-4"})(["background:none;color:inherit;border:none;padding:0;font:inherit;cursor:pointer;outline:inherit;font-family:var(--font-red-hat-display,'Red Hat Display');font-style:normal;font-weight:400;font-size:14px;line-height:20px;"]);let f=o.default.div.withConfig({componentId:"sc-29d095d9-5"})(["display:flex;flex:1;flex-direction:row;align-items:center;gap:0.5rem;width:100%;input:focus-visible{outline:none;}@media screen and (min-width:","){padding-inline:",";}"],a.w4.breakpoints.mobileLGmin,({fromstores:e,disablePadding:t})=>e||t?0:"1rem"),p=o.default.button.withConfig({componentId:"sc-29d095d9-6"})(["all:unset;height:20px;width:55px;font-family:var(--font-red-hat-display,'Red Hat Display');font-weight:400;font-size:14px;color:",";&[data-from-app='true']{color:",";}"],a.w4.color.greenDarkPromotions,s.A.color.greenDarkPromotion);var h=r(26127),m=r(97133),v=r(72277);let g=({onDebouncedChange:e,onChange:t,onClean:r,onClickSearch:o,value:a="",disablePadding:s=!1,delay:g=800,placeholder:y="\xbfQu\xe9 est\xe1s buscando?",fill:b="",validatorSearch:_=e=>e.length>0,disableCancelButtonInside:w=!1,cancelTextOutside:S,cleanOnEmpty:x=!1,propsToQueryStateSetter:E={},...k})=>{let[C,A]=(0,m.ZA)("search_text",{defaultValue:a}),[P,T]=(0,i.useState)(C),I=(0,i.useRef)(null),O=(0,h.A)(),{theme:R}=(0,v.dU)(),N=function(e,t,r,n){var o=this,a=(0,i.useRef)(null),s=(0,i.useRef)(0),l=(0,i.useRef)(0),u=(0,i.useRef)(null),c=(0,i.useRef)([]),d=(0,i.useRef)(),f=(0,i.useRef)(),p=(0,i.useRef)(e),h=(0,i.useRef)(!0);p.current=e;var m="u">typeof window,v=!t&&0!==t&&m;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var g=!!(r=r||{}).leading,y=!("trailing"in r)||!!r.trailing,b="maxWait"in r,_="debounceOnServer"in r&&!!r.debounceOnServer,w=b?Math.max(+r.maxWait||0,t):null;return(0,i.useEffect)(function(){return h.current=!0,function(){h.current=!1}},[]),(0,i.useMemo)(function(){var e=function(e){var t=c.current,r=d.current;return c.current=d.current=null,s.current=e,l.current=l.current||e,f.current=p.current.apply(r,t)},r=function(e,t){v&&cancelAnimationFrame(u.current),u.current=v?requestAnimationFrame(e):setTimeout(e,t)},i=function(e){if(!h.current)return!1;var r=e-a.current;return!a.current||r>=t||r<0||b&&e-s.current>=w},S=function(t){return u.current=null,y&&c.current?e(t):(c.current=d.current=null,f.current)},x=function e(){var n=Date.now();if(g&&l.current===s.current&&E(),i(n))return S(n);if(h.current){var o=t-(n-a.current);r(e,b?Math.min(o,w-(n-s.current)):o)}},E=function(){n&&n({})},k=function(){if(m||_){var n=Date.now(),l=i(n);if(c.current=[].slice.call(arguments),d.current=o,a.current=n,l){if(!u.current&&h.current)return s.current=a.current,r(x,t),g?e(a.current):f.current;if(b)return r(x,t),e(a.current)}return u.current||r(x,t),f.current}};return k.cancel=function(){u.current&&(v?cancelAnimationFrame(u.current):clearTimeout(u.current)),s.current=0,c.current=a.current=d.current=u.current=null},k.isPending=function(){return!!u.current},k.flush=function(){return u.current?S(Date.now()):f.current},k},[g,b,t,w,y,v,m,_,n])}(()=>{_(P)&&e?.(P)},g);(0,i.useEffect)(()=>{N()},[P,N]);let L=()=>{T(""),A("",E),setTimeout(()=>{r?.()},100)},D=()=>{I?.current&&_(I.current.value)&&(o?.(I.current.value),A(I.current.value,E))};return(0,n.FD)(f,{fromstores:k.fromstores,disablePadding:s,children:[(0,n.FD)(l,{fill:b,fromstores:k.fromstores,children:[(0,n.Y)(d,{theme:R,"data-from-app":O,onClick:D,fromstores:k.fromstores}),(0,n.Y)(u,{type:"text",placeholder:y,ref:I,className:"Search-Input",value:P,"data-testid":"search-input",onFocus:()=>{},onChange:e=>{var r;
2e.preventDefault(),r=e.target.value,t?.(r),T(r),""===e.target.value&&x&&L()},onKeyDown:e=>{let{key:t}=e;"Enter"===t&&(e.preventDefault(),D())},onKeyUp:e=>{let{key:t}=e;"Enter"===t&&e.currentTarget.blur()},...k}),!w&&P&&(0,n.Y)(c,{theme:R,onClick:L,"data-from-app":O,fromstores:k.fromstores})]}),S&&P&&(0,n.Y)(p,{"data-from-app":O,onClick:L,children:S})]})}},44406:(e,t,r)=>{"use strict";r.d(t,{Me:()=>s,SC:()=>h,pC:()=>m,FO:()=>l,F6:()=>u,_U:()=>d,jN:()=>f,C$:()=>c,s9:()=>p,zG:()=>a});var n=r(59827);function i({fill:e="var(--active-icon, #121212)"}){return(0,n.FD)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:[(0,n.FD)("g",{clipPath:"url(#clip0_11903_4235)",children:[(0,n.Y)("path",{d:"M7.97706 24.001C9.01018 24.001 9.84768 23.1548 9.84768 22.1109C9.84768 21.067 9.01018 20.2207 7.97706 20.2207C6.94395 20.2207 6.10645 21.067 6.10645 22.1109C6.10645 23.1548 6.94395 24.001 7.97706 24.001Z",fill:e}),(0,n.Y)("path",{d:"M19.9712 24.001C21.0043 24.001 21.8418 23.1548 21.8418 22.1109C21.8418 21.067 21.0043 20.2207 19.9712 20.2207C18.9381 20.2207 18.1006 21.067 18.1006 22.1109C18.1006 23.1548 18.9381 24.001 19.9712 24.001Z",fill:e}),(0,n.Y)("path",{d:"M23.8446 5.35131C23.5138 4.87827 23.0756 4.49223 22.5667 4.22551C22.0579 3.95879 21.4932 3.81917 20.9199 3.81833H4.09189L3.47408 2.1073C3.25106 1.49092 2.84639 0.958435 2.31461 0.581637C1.78282 0.204839 1.1495 0.00183847 0.5 0V1.89017C0.766007 1.89051 1.0255 1.97336 1.2434 2.12753C1.46131 2.28169 1.62712 2.49974 1.71843 2.75219L2.55972 5.08966L5.80241 14.7435C6.04127 15.4581 6.49565 16.0791 7.10172 16.5194C7.70779 16.9597 8.43512 17.1971 9.18156 17.1982C9.30326 17.2016 9.42504 17.1954 9.5458 17.1798L19.4598 16.2092C20.1371 16.1431 20.7816 15.8826 21.3171 15.4584C21.8527 15.0342 22.2569 14.4641 22.4822 13.8153L24.3012 8.64417C24.4918 8.0988 24.5503 7.51521 24.4718 6.9423C24.3933 6.36938 24.1801 5.82382 23.85 5.35131H23.8446ZM22.5327 8.0123L20.7222 13.1964C20.6146 13.5044 20.4221 13.7748 20.1674 13.9758C19.9127 14.1769 19.6064 14.3001 19.2846 14.331L9.36637 15.3026C8.98145 15.3416 8.59482 15.2475 8.26968 15.0357C7.94454 14.8239 7.70011 14.507 7.57633 14.1366L5.17601 7.01999L4.72283 5.70741H4.76987H20.9199C21.1934 5.70804 21.4627 5.77482 21.7053 5.90216C21.948 6.0295 22.157 6.2137 22.3148 6.43936C22.4725 6.66501 22.5746 6.92556 22.6123 7.19921C22.65 7.47287 22.6224 7.75167 22.5316 8.0123H22.5327Z",fill:e})]}),(0,n.Y)("defs",{children:(0,n.Y)("clipPath",{id:"clip0_11903_4235",children:(0,n.Y)("rect",{width:"24",height:"24",fill:e,transform:"translate(0.5)"})})})]})}function o({fill:e="var(--future-icon, #121212)"}){return(0,n.FD)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"37",height:"36",viewBox:"0 0 37 36",fill:"none",children:[(0,n.Y)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.5 17.5C29.5 23.8513 24.3513 29 18 29C14.95 29 12.0249 27.7884 9.86827 25.6317C7.7116 23.4751 6.5 20.55 6.5 17.5C6.5 11.1487 11.6487 6 18 6C24.3513 6 29.5 11.1487 29.5 17.5ZM27.7748 17.4998C27.7748 12.1013 23.3984 7.72485 17.9998 7.72485C15.4074 7.72485 12.921 8.75471 11.0879 10.5879C9.25471 12.421 8.22485 14.9074 8.22485 17.4999C8.22485 22.8984 12.6013 27.2748 17.9998 27.2748C23.3984 27.2748 27.7748 22.8984 27.7748 17.4998Z",fill:e}),(0,n.Y)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.9695 10.7355L18.9695 16.4937C18.9832 16.5018 18.9968 16.51 19.0103 16.5183L21.8108 14.81C22.2395 14.5485 22.7993 14.6873 23.0562 15.1188C23.3093 15.5438 23.173 16.0933 22.7507 16.3509L19.9295 18.0719C19.9358 18.8916 19.3873 19.6196 18.5921 19.847C17.8423 20.0614 17.0495 19.7803 16.611 19.159C16.4815 18.9801 16.3826 18.7751 16.3234 18.551C16.1119 17.7514 16.4569 16.9076 17.1644 16.4937L17.1644 10.7355C17.1644 10.2371 17.5685 9.83301 18.067 9.83301C18.5654 9.83301 18.9695 10.2371 18.9695 10.7355Z",fill:e})]})}let a={modo:"modo",patagonia:"patagonia",santaFe:"santa-fe",macro:"macro"},s={DEV:"develop",QA:"qa",PREPROD:"preprod",PRODUCTION:"production"},l={L:{label:"Lunes"},M:{label:"Martes"},X:{label:"Miercoles"},J:{label:"Jueves"},V:{label:"Viernes"},S:{label:"S\xe1bado"},D:{label:"Domingo"}},u={instore:{label:"Presencial"},online:{label:"Online"}},c=Object.keys(u),d={running:{label:"Activas",icon:(0,n.Y)(i,{})},next_for_product:{label:"Pr\xf3ximas",icon:(0,n.Y)(o,{})}},f={running:{label:"Activas",icon:(0,n.Y)(i,{})},next_for_product:{label:"Pr\xf3ximas",icon:(0,n.Y)(o,{})},finished_for_product:{label:"Finalizadas",icon:(0,n.Y)(function({fill:e="var(--active-icon, #121212)"}){return(0,n.FD)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",children:[(0,n.Y)("path",{d:"M21.75 10V8H14.25V10H9V11.5H15.75V9.5H20.25V11.5H26.938V10H21.75Z",fill:e}),(0,n.Y)("path",{d:"M11.001 28H24.938L26.938 13H9.00098L11.001 28ZM23.625 26.5H12.314L10.714 14.5H25.224L23.625 26.5Z",fill:e}),(0,n.Y)("path",{d:"M16.6885 19H15.1885V22H16.6885V19Z",fill:e}),(0,n.Y)("path",{d:"M20.6885 19H19.1885V22H20.6885V19Z",fill:e})]})},{})}},p=["running","next_for_product","finished_for_product"],h={modality:u,days:l,status:d},m={...h,status:f}},44584:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(59827);r(72223);var i=r(64039),o=r.n(i);function a({data:e}){return(0,n.Y)(o(),{children:(0,n.Y)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(e).replaceAll("<","\\u003c")}},`jsonld-${JSON.stringify(e)}`)})}},45072:e=>{e.exports={root:"styles_root__AvHky",content:"styles_content__ZHQJ_","grid-gap":"styles_grid-gap__PCNGL",section:"styles_section__BTDJB"}},45477:(e,t,r)=>{"use strict";r.d(t,{Hl:()=>d,Jy:()=>a,S1:()=>h,Sp:()=>f,TC:()=>g,YB:()=>v,gF:()=>o,gT:()=>p,j_:()=>m});var n,i=r(19444);let o={ALL:"all",ACTIVE:"active",EXPIRED:"expired",FUTURE:"future"},a={NEXT_FOR_PRODUCT:"NEXT_FOR_PRODUCT",RUNNING:"RUNNING",FINISHED:"FINISHED_FOR_PRODUCT"},s="app_modo",l="web_modo",u="app_bank",c="web_bank",d={WEBVIEW_MODO:s,WEB_MODO:l,WEBVIEW_BANK:u,WEB_BANK:c};var f=((n={})[n.WEBVIEW_MODO=s]="WEBVIEW_MODO",n[n.WEB_MODO=l]="WEB_MODO",n[n.WEBVIEW_BANK=u]="WEBVIEW_BANK",n[n.WEB_BANK=c]="WEB_BANK",n);(0,i.lh)("API_BASE_PROMOS_URL_BFF");
2let p={CASHBACK_BANK:"cashback_bancario",CASHBACK_LINK:"cashback_link",CASHBACK_BY_RULE:"cashback_por_regla",DISCOUNT_PDV:"descuento_en_pdv",CASHBACK_MANUAL:"cashback_manual"},h="https://ayuda.modo.com.ar/support/solutions/articles/66000088378-conoce-todas-las-promos-de-modo-",m=["L","M","X","J","V","S","D"],v="Comercios adheridos",g="\xa1Busc\xe1 en el mapa los comercios adheridos!"},46560:(e,t,r)=>{"use strict";r.d(t,{DZ:()=>a,Dr:()=>s,Hl:()=>p,Pp:()=>n,Vn:()=>v,_U:()=>m,bl:()=>o,h6:()=>d,k$:()=>c,m_:()=>i,oq:()=>h,p:()=>l,u0:()=>u,vq:()=>f});let n="Search Hub Completed",i="Promotion Hub Rendered",o="Promotion Card Selected",a="Promotion Hub Sessions",s="Promotion Detail Showed",l="Promotion Filter Applied",u="Promotion Terms Opened",c="Promotion detailed shared",d="Promotion detail url copied",f="Promotion Filter Reset",p={BANK:"app bancaria",UTM:"utm"},h={SOURCE:"utm_source",CAMPAIGN:"utm_campaign",TERM:"utm_term",CONTENT:"utm_content",MEDIUM:"utm_medium"},m={running:"activa",next_for_product:"proxima",finished:"vencida"},v="Promotion Geolocation"},46930:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i,l:()=>n});function n(e){switch(e){case"all":default:return"App de MODO y App de tu Banco";case"banks":return"App de tu Banco";case"modo":return"App de MODO"}}let i={where:{app:"/static/images/promotions/detail/merchants.svg",web:"\uD83D\uDCCDï¸"},days:{app:"/static/images/promotions/detail/days-of-week.svg",web:"\uD83C\uDF89"},banks:{app:"/static/images/promotions/detail/banks.svg",web:"\uD83C\uDFE6ï¸"},from:{app:"/static/images/promotions/detail/from-use.svg",web:"\uD83D\uDCF1"},validity:{app:"/static/images/promotions/detail/validity.svg",web:"\uD83C\uDF89"},cap_amount:{app:"/static/images/promotions/detail/tope-reintegro-compra.svg",web:"\uD83D\uDCB8ï¸"},cap_amount_period:{app:"/static/images/promotions/detail/tope-reintegro-compra.svg",web:"\uD83D\uDCB0"},show_alert_cash:{app:"/static/images/promotions/detail/acreditacion.svg",web:"â"}}},49203:(e,t,r)=>{"use strict";let n,i;r.d(t,{AJ:()=>tm});var o,a,s,l,u=r(50501),c=r(87187).Buffer,d=function(e,t){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function f(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var p=function(){return(p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function h(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}function m(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);
2if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function y(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var b="is not",_="contains",w="does not contain",S="less",x="less or equal",E="greater",k="greater or equal",C="version less",A="version less or equal",P="version greater",T="version greater or equal",I="set is",O="set is not",R="set contains",N="set does not contain",L="set contains any",D="set does not contain any",M=function(e){for(var t=[],r=0,n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t[r++]=i:(i<2048?t[r++]=i>>6|192:((64512&i)==55296&&n+1<e.length&&(64512&e.charCodeAt(n+1))==56320?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++n)),t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128)}return Uint8Array.from(t)},F=function(e,t){void 0===t&&(t=0);for(var r=M(e),n=r.length,i=n>>2,o=t,a=0;a<i;a++)o=j(Y(r,a<<2),o);var s=i<<2,l=0;switch(n-s){case 3:l^=r[s+2]<<16,l^=r[s+1]<<8,l^=r[s],o^=l=Math.imul(l=B(l=Math.imul(l,-0x3361d2af),15),0x1b873593);break;case 2:l^=r[s+1]<<8,l^=r[s],o^=l=Math.imul(l=B(l=Math.imul(l,-0x3361d2af),15),0x1b873593);break;case 1:l^=r[s],o^=l=Math.imul(l=B(l=Math.imul(l,-0x3361d2af),15),0x1b873593)}return U(o^=n)>>>0},j=function(e,t){var r=e,n=t;return n^=r=Math.imul(r=B(r=Math.imul(r,-0x3361d2af),15),0x1b873593),(n=Math.imul(n=B(n,13),5))+-0x19ab949c|0},U=function(e){var t=e;return t^=t>>>16,t=Math.imul(t,-0x7a143595),t^=t>>>13,t=Math.imul(t,-0x3d4d51cb),t^=t>>>16},B=function(e,t,r){void 0===r&&(r=32),t>r&&(t%=r);var n=(e&0xffffffff<<r-t>>>0)>>>0>>>r-t>>>0;return(e<<t|n)>>>0},Y=function(e,t){return void 0===t&&(t=0),V(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},V=function(e){return(-0x1000000&e)>>>24|(0xff0000&e)>>>8|(65280&e)<<8|(255&e)<<24},H=function(e,t){var r,n;if(t&&0!==t.length){try{for(var i=v(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(!a||!e||"object"!=typeof e)return;e=e[a]}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}if(!e)return;return e}},$="^".concat("(\\d+)\\.(\\d+)","(\\.").concat("(\\d+)").concat("(-(([-\\w]+\\.?)*))?",")?$"),z=function(){function e(e,t,r,n){void 0===n&&(n=void 0),this.major=e,this.minor=t,this.patch=r,this.preRelease=n}return e.parse=function(t){if(t){var r=new RegExp($).exec(t);if(r){var n=Number(r[1]),i=Number(r[2]);if(!(isNaN(n)||isNaN(i)))return new e(n,i,Number(r[4])||0,r[5]||void 0)}}},e.prototype.compareTo=function(e){if(this.major>e.major)return 1;if(this.major<e.major)return -1;if(this.minor>e.minor)return 1;if(this.minor<e.minor)return -1;if(this.patch>e.patch)return 1;if(this.patch<e.patch||this.preRelease&&!e.preRelease)return -1;if(!this.preRelease&&e.preRelease)return 1;if(this.preRelease&&e.preRelease){if(this.preRelease>e.preRelease)return 1;if(this.preRelease<e.preRelease)return -1}return 0},e}(),q=function(){function e(){}return e.prototype.evaluate=function(e,t){var r,n,i={},o={context:e,result:i};try{for(var a=v(t),s=a.next();!s.done;s=a.next()){var l=s.value,u=this.evaluateFlag(o,l);u&&(i[l.key]=u)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i},e.prototype.evaluateFlag=function(e,t){try{for(var r,n,i,o=v(t.segments),a=o.next();!a.done;a=o.next()){var s=a.value;if(i=this.evaluateSegment(e,t,s)){var l=p(p(p({},t.metadata),s.metadata),i.metadata);i=p(p({},i),{metadata:l});break}}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},e.prototype.evaluateSegment=function(e,t,r){if(!r.conditions){var n=this.bucket(e,r);return void 0!==n?t.variants[n]:void 0}if(this.evaluateConditions(e,r.conditions)){var n=this.bucket(e,r);if(void 0!==n)return t.variants[n]}},e.prototype.evaluateConditions=function(e,t){var r,n,i,o;try{for(var a=v(t),s=a.next();!s.done;s=a.next()){var l=s.value,u=!0;try{for(var c=(i=void 0,v(l)),d=c.next();!d.done;d=c.next()){var f=d.value;if(!(u=this.matchCondition(e,f)))break}}catch(e){i={error:e}}
2finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}if(u)return!0}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return!1},e.prototype.matchCondition=function(e,t){var r=H(e,t.selector);if(!r)return this.matchNull(t.op,t.values);if(this.isSetOperator(t.op)){var n=this.coerceStringArray(r);return!!n&&this.matchSet(n,t.op,t.values)}var i=this.coerceString(r);return void 0!==i&&this.matchString(i,t.op,t.values)},e.prototype.getHash=function(e){return F(e)},e.prototype.bucket=function(e,t){if(!t.bucket)return t.variant;var r,n,i,o,a=this.coerceString(H(e,t.bucket.selector));if(!a||0===a.length)return t.variant;var s="".concat(t.bucket.salt,"/").concat(a),l=this.getHash(s),u=l%100,c=Math.floor(l/100);try{for(var d=v(t.bucket.allocations),f=d.next();!f.done;f=d.next()){var p=f.value,h=p.range[0],m=p.range[1];if(u>=h&&u<m)try{for(var g=(i=void 0,v(p.distributions)),y=g.next();!y.done;y=g.next()){var b=y.value,_=b.range[0],w=b.range[1];if(c>=_&&c<w)return b.variant}}catch(e){i={error:e}}finally{try{y&&!y.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}}}catch(e){r={error:e}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}return t.variant},e.prototype.matchNull=function(e,t){var r=this.containsNone(t);switch(e){case"is":case _:case S:case x:case E:case k:case C:case A:case P:case T:case I:case R:case L:return r;case b:case w:case N:case D:return!r;default:return!1}},e.prototype.matchSet=function(e,t,r){switch(t){case I:return this.setEquals(e,r);case O:return!this.setEquals(e,r);case R:return this.matchesSetContainsAll(e,r);case N:return!this.matchesSetContainsAll(e,r);case L:return this.matchesSetContainsAny(e,r);case D:return!this.matchesSetContainsAny(e,r);default:return!1}},e.prototype.matchString=function(e,t,r){var n=this;switch(t){case"is":return this.matchesIs(e,r);case b:return!this.matchesIs(e,r);case _:return this.matchesContains(e,r);case w:return!this.matchesContains(e,r);case S:case x:case E:case k:return this.matchesComparable(e,t,r,function(e){return n.parseNumber(e)},this.comparator);case C:case A:case P:case T:return this.matchesComparable(e,t,r,function(e){return z.parse(e)},this.versionComparator);case"regex match":return this.matchesRegex(e,r);case"regex does not match":return!this.matchesRegex(e,r);default:return!1}},e.prototype.matchesIs=function(e,t){if(this.containsBooleans(t)){var r=e.toLowerCase();if("true"===r||"false"===r)return t.some(function(e){return e.toLowerCase()===r})}return t.some(function(t){return e===t})},e.prototype.matchesContains=function(e,t){var r,n;try{for(var i=v(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(e.toLowerCase().includes(a.toLowerCase()))return!0}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return!1},e.prototype.matchesComparable=function(e,t,r,n,i){var o=this,a=n(e),s=r.map(function(e){return n(e)}).filter(function(e){return void 0!==e});return void 0===a||0===s.length?r.some(function(r){return o.comparator(e,t,r)}):s.some(function(e){return i(a,t,e)})},e.prototype.comparator=function(e,t,r){switch(t){case S:case C:return e<r;case x:case A:return e<=r;case E:case P:return e>r;case k:case T:return e>=r;default:return!1}},e.prototype.versionComparator=function(e,t,r){var n=e.compareTo(r);switch(t){case S:case C:return n<0;case x:case A:return n<=0;case E:case P:return n>0;case k:case T:return n>=0;default:return!1}},e.prototype.matchesRegex=function(e,t){return t.some(function(t){return!!new RegExp(t).exec(e)})},e.prototype.containsNone=function(e){return e.some(function(e){return"(none)"===e})},e.prototype.containsBooleans=function(e){return e.some(function(e){switch(e.toLowerCase()){case"true":case"false":return!0;default:return!1}})},e.prototype.parseNumber=function(e){var t;return null!=(t=Number(e))?t:void 0},e.prototype.coerceString=function(e){if(null!=e)return"object"==typeof e?JSON.stringify(e):String(e)},e.prototype.coerceStringArray=function(e){var t=this;if(Array.isArray(e)){var r=e;return r.map(function(e){return t.coerceString(e)}
2).filter(Boolean)}var n=String(e);try{var i=JSON.parse(n);if(Array.isArray(i)){var r=e;return r.map(function(e){return t.coerceString(e)}).filter(Boolean)}var o=this.coerceString(n);return o?[o]:void 0}catch(e){var o=this.coerceString(n);return o?[o]:void 0}},e.prototype.isSetOperator=function(e){switch(e){case I:case O:case R:case N:case L:case D:return!0;default:return!1}},e.prototype.setEquals=function(e,t){var r=new Set(e),n=new Set(t);return r.size===n.size&&y([],g(n),!1).every(function(e){return r.has(e)})},e.prototype.matchesSetContainsAll=function(e,t){var r,n;if(e.length<t.length)return!1;try{for(var i=v(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(!this.matchesIs(a,e))return!1}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return!0},e.prototype.matchesSetContainsAny=function(e,t){var r,n;try{for(var i=v(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(this.matchesIs(a,e))return!0}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return!1},e}(),W=function(e,t){var r,n,i=p({},e),o=[],a=t||Object.keys(i);try{for(var s=v(a),l=s.next();!l.done;l=s.next()){var u=l.value,c=K(u,i);c&&o.push.apply(o,y([],g(c),!1))}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return o},K=function(e,t,r){void 0===r&&(r=[]);var n,i,o=t[e];if(o){if(!o.dependencies||0===o.dependencies.length)return delete t[o.key],[o];r.push(o.key);var a=[],s=function(e){if(r.some(function(t){return t===e}))throw Error("Detected a cycle between flags ".concat(r));var n=K(e,t,r);n&&a.push.apply(a,y([],g(n),!1))};try{for(var l=v(o.dependencies),u=l.next();!u.done;u=l.next()){var c=u.value;s(c)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}return a.push(o),r.pop(),delete t[o.key],a}};let G="function"==typeof atob,X="function"==typeof btoa,J="function"==typeof c,Z="function"==typeof TextDecoder?new TextDecoder:void 0,Q="function"==typeof TextEncoder?new TextEncoder:void 0,ee=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),et=(i={},ee.forEach((e,t)=>i[e]=t),i),er=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,en=String.fromCharCode.bind(String),ei="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),eo=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),ea=X?e=>btoa(e):J?e=>c.from(e,"binary").toString("base64"):e=>{let t,r,n,i,o="",a=e.length%3;for(let a=0;a<e.length;){if((r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw TypeError("invalid character found");o+=ee[(t=r<<16|n<<8|i)>>18&63]+ee[t>>12&63]+ee[t>>6&63]+ee[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o},es=J?e=>c.from(e).toString("base64"):e=>{let t=[];for(let r=0,n=e.length;r<n;r+=4096)t.push(en.apply(null,e.subarray(r,r+4096)));return ea(t.join(""))},el=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?en(192|t>>>6)+en(128|63&t):en(224|t>>>12&15)+en(128|t>>>6&63)+en(128|63&t)}var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return en(240|t>>>18&7)+en(128|t>>>12&63)+en(128|t>>>6&63)+en(128|63&t)},eu=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ec=J?e=>c.from(e,"utf8").toString("base64"):Q?e=>es(Q.encode(e)):e=>ea(e.replace(eu,el)),ed=(e,t=!1)=>t?eo(ec(e)):ec(e),ef=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ep=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return en((t>>>10)+55296)+en((1023&t)+56320);case 3:return en((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return en((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},eh=G?e=>atob(e.replace(/[^A-Za-z0-9\+\/]/g,"")):J?e=>c.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!er.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r="",n,i;for(let o=0;o<e.length;)t=et[e.charAt(o++)]<<18|et[e.charAt(o++)]<<12|(n=et[e.charAt(o++)])<<6|(i=et[e.charAt(o++)]),r+=64===n?en(t>>16&255):64===i?en(t>>16&255,t>>8&255):en(t>>16&255,t>>8&255,255&t);return r},em=J?e=>ei(c.from(e,"base64")):e=>ei(eh(e).split("").map(e=>e.charCodeAt(0))),ev=J?e=>c.from(e,"base64").toString("utf8"):Z?e=>Z.decode(em(e)):e=>eh(e).replace(ef,ep);var eg=function(e){function t(r,n){var i=e.call(this,n)||this;return i.statusCode=r,Object.setPrototypeOf(i,t.prototype),i}return f(t,e),t}(Error),ey=function(e){function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return f(t,e),t}(Error),eb=function(){function e(e,t,r){this.deploymentKey=e,this.serverUrl=t,this.httpClient=r}return e.prototype.getVariants=function(e,t){return h(this,void 0,void 0,function(){var r,n,i,o;return m(this,function(a){switch(a.label){case 0:return r=ed(JSON.stringify(e),!0),n={Authorization:"Api-Key ".concat(this.deploymentKey),"X-Amp-Exp-User":r},(null==t?void 0:t.flagKeys)&&(n["X-Amp-Exp-Flag-Keys"]=ed(JSON.stringify(t.flagKeys),!0)),(null==t?void 0:t.trackingOption)&&(n["X-Amp-Exp-Track"]=t.trackingOption),i=new URL("".concat(this.serverUrl,"/sdk/v2/vardata?v=0")),(null==t?void 0:t.evaluationMode)&&i.searchParams.append("eval_mode",null==t?void 0:t.evaluationMode),(null==t?void 0:t.deliveryMethod)&&i.searchParams.append("delivery_method",null==t?void 0:t.deliveryMethod),[4,this.httpClient.request({requestUrl:i.toString(),method:"GET",headers:n,timeoutMillis:null==t?void 0:t.t
2imeoutMillis})];case 1:if(200!=(o=a.sent()).status)throw new eg(o.status,"Fetch error response: status=".concat(o.status));return[2,JSON.parse(o.body)]}})})},e}(),e_=function(){function e(e,t,r){this.deploymentKey=e,this.serverUrl=t,this.httpClient=r}return e.prototype.getFlags=function(e){return h(this,void 0,void 0,function(){var t,r;return m(this,function(n){switch(n.label){case 0:return t={Authorization:"Api-Key ".concat(this.deploymentKey)},(null==e?void 0:e.libraryName)&&(null==e?void 0:e.libraryVersion)&&(t["X-Amp-Exp-Library"]="".concat(e.libraryName,"/").concat(e.libraryVersion)),(null==e?void 0:e.user)&&(t["X-Amp-Exp-User"]=ed(JSON.stringify(e.user),!0)),[4,this.httpClient.request({requestUrl:"".concat(this.serverUrl,"/sdk/v2/flags")+((null==e?void 0:e.deliveryMethod)?"?delivery_method=".concat(e.deliveryMethod):""),method:"GET",headers:t,timeoutMillis:null==e?void 0:e.timeoutMillis})];case 1:if(200!=(r=n.sent()).status)throw Error("Flags error response: status=".concat(r.status));return[2,JSON.parse(r.body).reduce(function(e,t){return e[t.key]=t,e},{})]}})})},e}(),ew="u">typeof globalThis?globalThis:r.g||self,eS=function(){return"u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof self?self:void 0!==r.g?r.g:void 0},ex=function(){var e=eS();if(e)try{var t="EXP_test";return e.localStorage.setItem(t,t),e.localStorage.removeItem(t),!0}catch(e){}return!1},eE=function(){function e(e,t){this.poller=void 0,this.action=e,this.ms=t}return e.prototype.start=function(){this.poller||(this.poller=ew.setInterval(this.action,this.ms),this.action())},e.prototype.stop=function(){this.poller&&(ew.clearInterval(this.poller),this.poller=void 0)},e}(),ek=r(33510),eC=r(59215);function eA(e){this.amplitudeInstance=e}function eP(e){this.amplitudeInstance=e}eA.prototype.getUser=function(){var e,t,r,n,i,o,a,s,l,u;return{device_id:null==(t=null==(e=this.amplitudeInstance)?void 0:e.options)?void 0:t.deviceId,user_id:null==(n=null==(r=this.amplitudeInstance)?void 0:r.options)?void 0:n.userId,version:null==(o=null==(i=this.amplitudeInstance)?void 0:i.options)?void 0:o.versionName,language:null==(s=null==(a=this.amplitudeInstance)?void 0:a.options)?void 0:s.language,platform:null==(u=null==(l=this.amplitudeInstance)?void 0:l.options)?void 0:u.platform,os:this.getOs(),device_model:this.getDeviceModel()}},eA.prototype.getOs=function(){var e,t,r,n,i,o;return[null==(r=null==(t=null==(e=this.amplitudeInstance)?void 0:e._ua)?void 0:t.browser)?void 0:r.name,null==(o=null==(i=null==(n=this.amplitudeInstance)?void 0:n._ua)?void 0:i.browser)?void 0:o.major].filter(function(e){return null!=e}).join(" ")},eA.prototype.getDeviceModel=function(){var e,t,r;return null==(r=null==(t=null==(e=this.amplitudeInstance)?void 0:e._ua)?void 0:t.os)?void 0:r.name},eP.prototype.track=function(e){this.amplitudeInstance.logEvent(e.name,e.properties)},eP.prototype.setUserProperty=function(e){var t,r;this.amplitudeInstance.setUserProperties(((t={})[e.userProperty]=null==(r=e.variant)?void 0:r.value,t))},eP.prototype.unsetUserProperty=function(e){var t;this.amplitudeInstance._logEvent("$identify",null,null,{$unset:((t={})[e.userProperty]="-",t)})};var eT=function(){return(eT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function eI(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}function eO(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(6===u[0]&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function eR(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);
2if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function eN(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function eL(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var eD=function(e,t){void 0===t&&(t=!1);var r,n,i=ej(e,t),o=void 0,a=ew.document.cookie.split("; ");try{for(var s=eR(a),l=s.next();!l.done;l=s.next()){var u=l.value,c=eN(u.split("=",2),2),d=c[0],f=c[1];d===i&&(o=decodeURIComponent(f))}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}if(o)try{if(t){var p=atob(o);return JSON.parse(decodeURIComponent(p))}var h=o.split("."),m=void 0;return h.length>=2&&h[1]&&(m=atob(h[1])),{deviceId:h[0],userId:m}}catch(e){return}},eM=function(e){var t=ej(e,!0);try{var r=ew.localStorage.getItem(t);if(!r)return;var n=JSON.parse(r);if("object"!=typeof n)return;return n}catch(e){return}},eF=function(e){var t=ej(e,!0);try{var r=ew.sessionStorage.getItem(t);if(!r)return;var n=JSON.parse(r);if("object"!=typeof n)return;return n}catch(e){return}},ej=function(e,t){if(t){if((null==e?void 0:e.length)<10)return;return"AMP_".concat(e.substring(0,10))}if(!((null==e?void 0:e.length)<6))return"amp_".concat(e.substring(0,6))},eU=function(){function e(e,t,r){this.type="integration",this.apiKey=e,this.identityStore=t.identityStore,this.eventBridge=t.eventBridge,this.contextProvider=t.applicationContextProvider,this.timeoutMillis=r,this.loadPersistedState(),r<=0&&(this.setup=void 0)}return e.prototype.setup=function(e,t){return eI(this,void 0,void 0,function(){return eO(this,function(r){return(null==e?void 0:e.automaticFetchOnAmplitudeIdentityChange)&&this.identityStore.addIdentityListener(function(){null==t||t.fetch()}),[2,this.waitForConnectorIdentity(this.timeoutMillis)]})})},e.prototype.getUser=function(){var e=this.identityStore.getIdentity();return{user_id:e.userId,device_id:e.deviceId,user_properties:e.userProperties,version:this.contextProvider.versionName}},e.prototype.track=function(e){return!!this.eventBridge.receiver&&(this.eventBridge.logEvent({eventType:e.eventType,eventProperties:e.eventProperties}),!0)},e.prototype.loadPersistedState=function(){if(!this.apiKey||this.apiKey.startsWith("client-"))return!1;var e=eD(this.apiKey,!0);return!!(e||(e=eD(this.apiKey,!1))||(e=eM(this.apiKey))||(e=eF(this.apiKey)))&&(this.commitIdentityToConnector(e),!0)},e.prototype.commitIdentityToConnector=function(e){var t=this.identityStore.editIdentity();t.setDeviceId(e.deviceId),e.userId&&t.setUserId(e.userId),t.commit()},e.prototype.waitForConnectorIdentity=function(e){return eI(this,void 0,void 0,function(){var t,r=this;return eO(this,function(n){return(t=this.identityStore.getIdentity()).userId||t.deviceId?[2]:[2,Promise.race([new Promise(function(e){var t=function(){e(),r.identityStore.removeIdentityListener(t)};r.identityStore.addIdentityListener(t)}),new Promise(function(t,r){ew.setTimeout(r,e,"Timed out waiting for Amplitude Analytics SDK to initialize.")})])]})})},e}(),eB=ew.fetch||function(e,t){return t=t||{},new Promise(function(r,n){var i=new XMLHttpRequest,o=[],a=[],s={},l=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(JSON.parse(i.responseText))},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:l,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var u in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,t,r){o.push(t=t.toLowerCase()),a.push([t,r]),s[t]=s[t]?s[t]+","+r:r}),r(l())},i.onerror=n,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(u,t.headers[u]);i.send(t.body||null)})},eY=function(){function e(e){this.client=e}return e.prototype.request=function(e){return eI(this,void 0,void 0,function(){return eO(this,function(t){switch(t.label){case 0:return[4,this.client.request(e.requestUrl,e.method,e.headers,null,e.timeoutMillis)];case 1:return[2,t.sent()]}})})},e}(),eV={request:function(e,t,r,n,i){var o;return o=eI(void 0,void 0,void 0,function(){var i,o;return eO(this,function(a){switch(a.label){case 0:return[4,eB(e,{method:t,headers:r,body:n})];case 1:return o={status:(i=a.sent()).status},[4,i.text()];case 2:return o.body=a.sent(),[2,o]}})}),null==i||i<=0?o:new Promise(function(e,t){ew.setTimeout(function(){t(new ey("Request timeout after "+i+" milliseconds"))},i),o.then(e,t)})}};(o=s||(s={})).LocalStorage="localStorage",o.InitialVariants="initialVariants",(a=l||(l={})).LocalStorage="storage",a.InitialVariants="initial",a.SecondaryLocalStorage="secondary-storage",a.SecondaryInitialVariants="secondary-initial",a.FallbackInline="fallback-inline",a.FallbackConfig="fallback-config",a.LocalEvaluation="local-evaluation";var eH=function(e){return!e||e===l.FallbackInline||e===l.FallbackConfig||e===l.SecondaryInitialVariants},e$={debug:!1,instanceName:"$default_instance",fallbackVariant:{},initialVariants:{},initialFlags:void 0,source:s.LocalStorage,serverUrl:"https://api.lab.amplitude.com",flagsServerUrl:"https://flag.lab.amplitude.com",serverZone:"US",fetchTimeoutMillis:1e4,retryFetchOnFailure:!0,throwOnError:!1,automaticExposureTracking:!0,pollOnStart:!0,flagConfigPollingIntervalMillis:3e5,fetchOnStart:!0,automaticFetchOnAmplitudeIdentityChange:!1,userProvider:null,analyticsProvider:null,exposureTrackingProvider:null,httpClient:eV},ez="1.16.2",eq=function(){function e(e,t){var r,n=this;this.isReady=new Promise(function(e){n.resolve=e}),this.config=e,this.client=t;var i=null!=(r=e.instanceName)?r:e$.instanceName;this.queue=new eK(i),this.cache=new eW(i)}return e.prototype.ready=function(){return this.integration?this.isReady:Prom
2ise.resolve()},e.prototype.setIntegration=function(e){var t=this;this.integration&&this.integration.teardown&&this.integration.teardown(),this.integration=e,e.setup?this.integration.setup(this.config,this.client).then(function(){t.queue.setTracker(t.integration.track.bind(e)),t.resolve()},function(){t.queue.setTracker(t.integration.track.bind(e)),t.resolve()}):(this.queue.setTracker(this.integration.track.bind(e)),this.resolve())},e.prototype.getUser=function(){return this.integration?this.integration.getUser():{}},e.prototype.track=function(e){if(this.cache.shouldTrack(e)){var t=this.getExposureEvent(e);this.queue.push(t)}},e.prototype.getExposureEvent=function(e){var t,r,n,i={eventType:"$exposure",eventProperties:e};return(null==(t=e.metadata)?void 0:t.exposureEvent)?i={eventType:null==(r=e.metadata)?void 0:r.exposureEvent,eventProperties:e}:(null==(n=e.metadata)?void 0:n.deliveryMethod)==="web"&&(i={eventType:"$impression",eventProperties:e}),i},e}(),eW=function(){function e(e){this.isSessionStorageAvailable=eG(),this.inMemoryCache={},this.storageKey="EXP_sent_v2_".concat(e),this.isSessionStorageAvailable&&ew.sessionStorage.removeItem("EXP_sent_".concat(e))}return e.prototype.shouldTrack=function(e){if((null==(t=e.metadata)?void 0:t.deliveryMethod)==="web")return!0;this.loadCache();var t,r=this.inMemoryCache[e.flag_key],n=!1;return r&&r.variant===e.variant||(n=!0,this.inMemoryCache[e.flag_key]=e),this.storeCache(),n},e.prototype.loadCache=function(){if(this.isSessionStorageAvailable){var e=ew.sessionStorage.getItem(this.storageKey);this.inMemoryCache=e?JSON.parse(e):{}}},e.prototype.storeCache=function(){this.isSessionStorageAvailable&&ew.sessionStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryCache))},e}(),eK=function(){function e(e,t){void 0===t&&(t=512),this.isLocalStorageAvailable=ex(),this.inMemoryQueue=[],this.storageKey="EXP_unsent_".concat(e),this.maxQueueSize=t}return e.prototype.push=function(e){this.loadQueue(),this.inMemoryQueue.push(e),this.flush(),this.storeQueue()},e.prototype.setTracker=function(e){var t=this;this.tracker=e,this.poller=ew.setInterval(function(){t.loadFlushStore()},1e3),this.loadFlushStore()},e.prototype.flush=function(){var e,t;if(this.tracker&&0!==this.inMemoryQueue.length){try{for(var r=eR(this.inMemoryQueue),n=r.next();!n.done;n=r.next()){var i=n.value;try{if(!this.tracker(i))return}catch(e){return}}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}this.inMemoryQueue=[],this.poller&&(ew.clearInterval(this.poller),this.poller=void 0)}},e.prototype.loadQueue=function(){if(this.isLocalStorageAvailable){var e=ew.localStorage.getItem(this.storageKey);this.inMemoryQueue=e?JSON.parse(e):[]}},e.prototype.storeQueue=function(){this.isLocalStorageAvailable&&(this.inMemoryQueue.length>this.maxQueueSize&&(this.inMemoryQueue=this.inMemoryQueue.slice(this.inMemoryQueue.length-this.maxQueueSize)),ew.localStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryQueue)))},e.prototype.loadFlushStore=function(){this.loadQueue(),this.flush(),this.storeQueue()},e}(),eG=function(){var e=eS();if(e)try{var t="EXP_test";return e.sessionStorage.setItem(t,t),e.sessionStorage.removeItem(t),!0}catch(e){}return!1},eX=function(){function e(){this.globalScope=eS()}return e.prototype.get=function(e){var t;return null==(t=this.globalScope)?void 0:t.localStorage.getItem(e)},e.prototype.put=function(e,t){var r;null==(r=this.globalScope)||r.localStorage.setItem(e,t)},e.prototype.delete=function(e){var t;null==(t=this.globalScope)||t.localStorage.removeItem(e)},e}(),eJ=function(e,t,r){var n=e.substring(e.length-6);return new eQ("amp-exp-".concat(t,"-").concat(n),r,e0)},eZ=function(e,t,r){void 0===r&&(r=new eX);var n=e.substring(e.length-6);return new eQ("amp-exp-".concat(t,"-").concat(n,"-flags"),r)},eQ=function(){function e(e,t,r){this.cache={},this.namespace=e,this.storage=t,this.transformer=r}return e.prototype.get=function(e){return this.cache[e]},e.prototype.getAll=function(){return eT({},this.cache)},e.prototype.put=function(e,t){this.cache[e]=t},e.prototype.putAll=function(e){var t,r;try{for(var n=eR(Object.keys(e)),i=n.next();!i.done;i=n.next()){var o=i.value;this.cache[o]=e[o]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},e.prototype.remove=function(e){delete this.cache[e]},e.prototype.clear=function(){this.cache={}},e.prototype.load=function(){var e,t,r,n=this.storage.get(this.namespace);try{r=JSON.parse(n)||{}}catch(e){return}var i={};try{for(var o=eR(Object.keys(r)),a=o.next();!a.done;a=o.next()){var s=a.value;try{var l=void 0;(l=this.transformer?this.transformer(r[s]):r[s])&&(i[s]=l)}catch(e){}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}this.clear(),this.putAll(i)},e.prototype.store=function(e){void 0===e&&(e=this.cache),this.storage.put(this.namespace,JSON.stringify(e))},e}(),e0=function(e){if("string"==typeof e)return{key:e,value:e};if("object"==typeof e){var t=e.key,r=e.value,n=e.payload,i=e.metadata,o=e.expKey;i&&i.experimentKey?o=i.experimentKey:o&&((i=i||{}).experimentKey=o);var a={};return t?a.key=t:r&&(a.key=r),r&&(a.value=r),i&&(a.metadata=i),n&&(a.payload=n),o&&(a.expKey=o),a}},e1=function(){function e(){this.globalScope=eS()}return e.prototype.get=function(e){var t;return null==(t=this.globalScope)?void 0:t.sessionStorage.getItem(e)},e.prototype.put=function(e,t){var r;null==(r=this.globalScope)||r.sessionStorage.setItem(e,t)},e.prototype.delete=function(e){var t;null==(t=this.globalScope)||t.sessionStorage.removeItem(e)},e}(),e2=function(e,t,r,n){var i,o=null==r?void 0:r.value,a="[Experiment] ".concat(t);return{name:"[Experiment] Exposure",user:e,key:t,variant:r,userProperty:a,properties:{key:t,variant:o,source:n},userProperties:((i={})[a]=o,i)}},e3=function(e){return null==e},e5=function(e){return!!e3(e)||e&&0===Object.keys(e).length},e4=function(e){if(!e||"object"!=typeof e)return{};var t,r,n={};try{for(var i=eR(Object.entries(e)),o=i.next();!o.done;o=i.next()){var a=eN(o.value,2),s=a[0],l=a[1];e3(l)||(n[s]=l)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e6=function(e){var t;return(null==(t=null==e?void 0:e.metadata)?void 0:t.evaluationMode)==="local"},e8=function(){function e(e,t,r,n){this.started=!1,this.done=!1,this.attempts=e,this.min=t,this.max=r,this.scalar=n}return e.prototype.start=function(e){return eI(this,void 0,void 0,function(){return eO(this,function(t){switch(t.label){case 0:if(this.started)throw Error("Backoff already started");return this.started=!0,[4,this.backoff(e,0,this.min)];case 1:return t.sent(),[2]}})})},e.prototype.cancel=function(){this.done=!0,clearTimeout(this.timeoutHandle)},e.prototype.backoff=function(e,t,r){return eI(this,void 0,void 0,function(){var n=this;return eO(this,function(i){return this.done||(this.timeoutHandle=ew.setTimeout(function(){return eI(n,void 0,void 0,function(){var n,i;return eO(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,e()];case 1:return o.sent(),[3,3];case 2:return o.sent(),(n=t+1)<this.attempts&&(i=Math.min(r*this.scalar,this.max),this.backoff(e,n,i)
2),[3,3];case 3:return[2]}})})},r)),[2]})})},e}(),e9=function(e){if(!e)return{};var t,r,n,i,o={user:e},a=eS();a&&(o.page={url:a.location.href});var s={};if(!e.groups)return o;try{for(var l=eR(Object.keys(e.groups)),u=l.next();!u.done;u=l.next()){var c=u.value,d=e.groups[c];if(d.length>0&&d[0]){var f=d[0],p={group_name:f},h=null==(i=null==(n=e.group_properties)?void 0:n[c])?void 0:i[f];h&&Object.keys(h).length>0&&(p.group_properties=h),s[c]=p}}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}return Object.keys(s).length>0&&(o.groups=s),delete o.user.groups,delete o.user.group_properties,o},e7=function(e){return null==e?{}:"string"==typeof e?{key:e,value:e}:e},te=function(e){if(!e)return{};var t=void 0;e.metadata&&(t=e.metadata.experimentKey);var r={};return e.key&&(r.key=e.key),e.value&&(r.value=e.value),e.payload&&(r.payload=e.payload),t&&(r.expKey=t),e.metadata&&(r.metadata=e.metadata),r},tt=function(){function e(e){this.setProperties={},this.unsetProperties={},this.analyticsProvider=e}return e.prototype.track=function(e){this.setProperties[e.key]!=e.variant.value&&(this.setProperties[e.key]=e.variant.value,delete this.unsetProperties[e.key],this.analyticsProvider.track(e))},e.prototype.setUserProperty=function(e){this.setProperties[e.key]!=e.variant.value&&this.analyticsProvider.setUserProperty(e)},e.prototype.unsetUserProperty=function(e){this.unsetProperties[e.key]||(this.unsetProperties[e.key]="unset",delete this.setProperties[e.key],this.analyticsProvider.unsetUserProperty(e))},e}(),tr=function(){function e(e){this.tracked={},this.exposureTrackingProvider=e}return e.prototype.track=function(e){var t=this.tracked[e.flag_key];t&&t.variant===e.variant||(this.tracked[e.flag_key]=e,this.exposureTrackingProvider.track(e))},e}(),tn=function(){function e(e,t){var r,n,i,o,a,s=this;this.engine=new q,this.isRunning=!1,this.apiKey=e,t=e4(t),this.config=eT(eT(eT({},e$),t),{serverUrl:(null==t?void 0:t.serverUrl)||((null==(r=null==t?void 0:t.serverZone)?void 0:r.toLowerCase())==="eu"?"https://api.lab.eu.amplitude.com":e$.serverUrl),flagsServerUrl:(null==t?void 0:t.flagsServerUrl)||((null==(n=null==t?void 0:t.serverZone)?void 0:n.toLowerCase())==="eu"?"https://flag.lab.eu.amplitude.com":e$.flagsServerUrl),flagConfigPollingIntervalMillis:t.flagConfigPollingIntervalMillis<6e4?6e4:null!=(i=t.flagConfigPollingIntervalMillis)?i:e$.flagConfigPollingIntervalMillis});var l=null==(o=this.config)?void 0:o.internalInstanceNameSuffix;if(this.isWebExperiment="web"===l,this.poller=new eE(function(){return s.doFlags()},this.config.flagConfigPollingIntervalMillis),this.config.initialVariants)for(var u in this.config.initialVariants)this.config.initialVariants[u]=e0(this.config.initialVariants[u]);this.config.userProvider&&(this.userProvider=this.config.userProvider),this.config.analyticsProvider&&(this.analyticsProvider=new tt(this.config.analyticsProvider)),this.config.exposureTrackingProvider&&(this.exposureTrackingProvider=new tr(this.config.exposureTrackingProvider)),this.integrationManager=new eq(this.config,this);var c=new eY(this.config.httpClient||eV);this.flagApi=new e_(this.apiKey,this.config.flagsServerUrl,c),this.evaluationApi=new eb(this.apiKey,this.config.serverUrl,c);var d=l?"".concat(this.config.instanceName,"-").concat(l):this.config.instanceName;a=this.isWebExperiment?new e1:new eX,this.variants=eJ(this.apiKey,d,a),this.flags=eZ(this.apiKey,d,a);try{this.flags.load(),this.variants.load()}catch(e){}this.mergeInitialFlagsWithStorage()}return e.prototype.start=function(e){return eI(this,void 0,void 0,function(){var t,r,n;return eO(this,function(i){switch(i.label){case 0:if(this.isRunning)return[2];this.isRunning=!0,this.setUser(e),i.label=1;case 1:if(i.trys.push([1,6,,7]),t=this.doFlags(),!(null==(n=this.config.fetchOnStart)||n))return[3,3];return[4,Promise.all([this.fetch(e),t])];case 2:return i.sent(),[3,5];case 3:return[4,t];case 4:i.sent(),i.label=5;case 5:return[3,7];case 6:if(r=i.sent(),this.config.throwOnError)throw r;return[3,7];case 7:return this.config.pollOnStart&&this.poller.start(),[2]}})})},e.prototype.stop=function(){this.isRunning&&(this.poller.stop(),this.isRunning=!1)},e.prototype.fetch=function(){return eI(this,arguments,void 0,function(e,t){var r;return void 0===e&&(e=this.user),eO(this,function(n){switch(n.label){case 0:this.setUser(e||{}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.fetchInternal(e,this.config.fetchTimeoutMillis,this.config.retryFetchOnFailure,t)];case 2:return n.sent(),[3,4];case 3:if(r=n.sent(),this.config.throwOnError)throw r;return this.config.debug&&(r instanceof ey?console.debug(r):console.error(r)),[3,4];case 4:return[2,this]}})})},e.prototype.variant=function(e,t){if(!this.apiKey)return{value:void 0};var r,n,i=this.variantAndSource(e,t);return this.config.automaticExposureTracking&&this.exposureInternal(e,i),this.debug("[Experiment] variant for ".concat(e," is ").concat((null==(r=i.variant)?void 0:r.key)||(null==(n=i.variant)?void 0:n.value))),i.variant||{}}
2,e.prototype.exposure=function(e){var t=this.variantAndSource(e);this.exposureInternal(e,t)},e.prototype.all=function(){if(!this.apiKey)return{};var e=this.evaluate();for(var t in e)e6(this.flags.get(t))||delete e[t];return eT(eT(eT({},this.secondaryVariants()),this.sourceVariants()),e)},e.prototype.clear=function(){this.variants.clear();try{this.variants.store()}catch(e){}},e.prototype.getUser=function(){if(!this.user)return this.user;if(null==(e=this.user)||!e.user_properties)return eT({},this.user);var e,t=eT({},this.user.user_properties);return eT(eT({},this.user),{user_properties:t})},e.prototype.setUser=function(e){var t;if(!e){this.user=null;return}if(null==(t=this.user)?void 0:t.user_properties){var r=eT({},e.user_properties);this.user=eT(eT({},e),{user_properties:r})}else this.user=eT({},e)},e.prototype.getUserProvider=function(){return this.userProvider},e.prototype.setUserProvider=function(e){return this.userProvider=e,this},e.prototype.mergeInitialFlagsWithStorage=function(){var e=this;this.config.initialFlags&&JSON.parse(this.config.initialFlags).forEach(function(t){e.flags.get(t.key)||e.flags.put(t.key,t)})},e.prototype.evaluate=function(e){var t,r,n=this.addContext(this.user),i=W(this.flags.getAll(),e),o=e9(n),a=this.engine.evaluate(o,i),s={};try{for(var l=eR(Object.keys(a)),u=l.next();!u.done;u=l.next()){var c=u.value;s[c]=te(a[c])}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}return s},e.prototype.variantAndSource=function(e,t){var r={};this.config.source===s.LocalStorage?r=this.localStorageVariantAndSource(e,t):this.config.source===s.InitialVariants&&(r=this.initialVariantsVariantAndSource(e,t));var n=this.flags.get(e);return(e6(n)||!r.variant&&n)&&(r=this.localEvaluationVariantAndSource(e,n,t)),r},e.prototype.localEvaluationVariantAndSource=function(e,t,r){var n,i={},o=this.evaluate([t.key])[e],a=l.LocalEvaluation,s=null==(n=null==o?void 0:o.metadata)?void 0:n.default;if(!e3(o)&&!s)return{variant:e7(o),source:a,hasDefaultVariant:!1};if(s&&(i={variant:e7(o),source:a,hasDefaultVariant:!0}),!e3(r))return{variant:e7(r),source:l.FallbackInline,hasDefaultVariant:i.hasDefaultVariant};var u=this.config.initialVariants[e];if(!e3(u))return{variant:e7(u),source:l.SecondaryInitialVariants,hasDefaultVariant:i.hasDefaultVariant};var c=e7(this.config.fallbackVariant),d={variant:c,source:l.FallbackConfig,hasDefaultVariant:i.hasDefaultVariant};return e5(c)?i:d},e.prototype.localStorageVariantAndSource=function(e,t){var r,n={},i=this.variants.get(e),o=null==(r=null==i?void 0:i.metadata)?void 0:r.default;if(!e3(i)&&!o)return{variant:e7(i),source:l.LocalStorage,hasDefaultVariant:!1};if(o&&(n={variant:e7(i),source:l.LocalStorage,hasDefaultVariant:!0}),!e3(t))return{variant:e7(t),source:l.FallbackInline,hasDefaultVariant:n.hasDefaultVariant};var a=this.config.initialVariants[e];if(!e3(a))return{variant:e7(a),source:l.SecondaryInitialVariants,hasDefaultVariant:n.hasDefaultVariant};var s=e7(this.config.fallbackVariant),u={variant:s,source:l.FallbackConfig,hasDefaultVariant:n.hasDefaultVariant};return e5(s)?n:u},e.prototype.initialVariantsVariantAndSource=function(e,t){var r,n={},i=this.config.initialVariants[e];if(!e3(i))return{variant:e7(i),source:l.InitialVariants,hasDefaultVariant:!1};var o=this.variants.get(e),a=null==(r=null==o?void 0:o.metadata)?void 0:r.default;if(!e3(o)&&!a)return{variant:e7(o),source:l.LocalStorage,hasDefaultVariant:!1};if(a&&(n={variant:e7(o),source:l.LocalStorage,hasDefaultVariant:!0}),!e3(t))return{variant:e7(t),source:l.FallbackInline,hasDefaultVariant:n.hasDefaultVariant};var s=e7(this.config.fallbackVariant),u={variant:s,source:l.FallbackConfig,hasDefaultVariant:n.hasDefaultVariant};return e5(s)?n:u},e.prototype.fetchInternal=function(e,t,r,n){return eI(this,void 0,void 0,function(){var i,o;return eO(this,function(a){switch(a.label){case 0:if(!this.apiKey)throw Error("Experiment API key is empty");this.debug("[Experiment] Fetch all: retry=".concat(r)),r&&this.stopRetries(),a.label=1;case 1:return a.trys.push([1,4,,5]),[4,this.doFetch(e,t,n)];case 2:return i=a.sent(),[4,this.storeVariants(i,n)];case 3:return a.sent(),[2,i];case 4:throw o=a.sent(),r&&this.shouldRetryFetch(o)&&this.startRetries(e,n),o;case 5:return[2]}})})},e.prototype.cleanUserPropsForFetch=function(e){var t=eT({},e);return delete t.cookie,t},e.prototype.doFetch=function(e,t,r){return eI(this,void 0,void 0,function(){var n,i,o,a,s,l,u;return eO(this,function(c){switch(c.label){case 0:return[4,this.addContextOrWait(e)];case 1:return e=c.sent(),e=this.cleanUserPropsForFetch(e),this.debug("[Experiment] Fetch variants for user: ",e),[4,this.evaluationApi.getVariants(e,eT({timeoutMillis:t},r))];case 2:n=c.sent(),i={};try{for(a=(o=eR(Object.keys(n))).next();!a.done;a=o.next())i[s=a.value]=te(n[s])}catch(e){l={error:e}}
2finally{try{a&&!a.done&&(u=o.return)&&u.call(o)}finally{if(l)throw l.error}}return this.debug("[Experiment] Received variants: ",i),[2,i]}})})},e.prototype.doFlags=function(){return eI(this,void 0,void 0,function(){var e,t,r;return eO(this,function(n){switch(n.label){case 0:if(n.trys.push([0,4,,5]),e=void 0,!this.isWebExperiment)return[3,2];return[4,this.addContextOrWait(this.getUser())];case 1:e=n.sent(),n.label=2;case 2:return[4,this.flagApi.getFlags({libraryName:"experiment-js-client",libraryVersion:ez,timeoutMillis:this.config.fetchTimeoutMillis,deliveryMethod:this.isWebExperiment?"web":void 0,user:(null==e?void 0:e.user_id)||(null==e?void 0:e.device_id)?{user_id:null==e?void 0:e.user_id,device_id:null==e?void 0:e.device_id}:void 0})];case 3:return t=n.sent(),this.flags.clear(),this.flags.putAll(t),[3,5];case 4:if((r=n.sent())instanceof ey){if(this.config.debug&&console.debug(r),this.config.throwOnError)throw r}else throw r;return[3,5];case 5:try{this.flags.store()}catch(e){}return this.mergeInitialFlagsWithStorage(),[2]}})})},e.prototype.storeVariants=function(e,t){return eI(this,void 0,void 0,function(){var r,n,i,o;return eO(this,function(a){for(o in 0===(r=t&&t.flagKeys?t.flagKeys:[]).length&&this.variants.clear(),n=function(t){r=r.filter(function(e){return e!==t}),i.variants.put(t,e[t])},i=this,e)n(o);for(o in r)this.variants.remove(o);try{this.variants.store()}catch(e){}return this.debug("[Experiment] Stored variants: ",e),[2]})})},e.prototype.startRetries=function(e,t){return eI(this,void 0,void 0,function(){var r=this;return eO(this,function(n){return this.debug("[Experiment] Retry fetch"),this.retriesBackoff=new e8(8,500,1e4,1.5),this.retriesBackoff.start(function(){return eI(r,void 0,void 0,function(){return eO(this,function(r){switch(r.label){case 0:return[4,this.fetchInternal(e,1e4,!1,t)];case 1:return r.sent(),[2]}})})}),[2]})})},e.prototype.stopRetries=function(){this.retriesBackoff&&this.retriesBackoff.cancel()},e.prototype.addContext=function(e){var t,r=null==(t=this.userProvider)?void 0:t.getUser(),n=this.integrationManager.getUser(),i=eT(eT(eT({},null==r?void 0:r.user_properties),n.user_properties),null==e?void 0:e.user_properties);return eT(eT(eT(eT({library:"experiment-js-client/".concat(ez)},r),n),e),{user_properties:i})},e.prototype.addContextOrWait=function(e){return eI(this,void 0,void 0,function(){return eO(this,function(t){switch(t.label){case 0:return[4,this.integrationManager.ready()];case 1:return t.sent(),[2,this.addContext(e)]}})})},e.prototype.sourceVariants=function(){return this.config.source==s.LocalStorage?this.variants.getAll():this.config.source==s.InitialVariants?this.config.initialVariants:void 0},e.prototype.secondaryVariants=function(){return this.config.source==s.LocalStorage?this.config.initialVariants:this.config.source==s.InitialVariants?this.variants.getAll():void 0},e.prototype.exposureInternal=function(e,t){if(null==(i=null==(n=null==(r=t.variant)?void 0:r.metadata)?void 0:n.trackExposure)||i){this.legacyExposureInternal(e,t.variant,t.source);var r,n,i,o,a,s,l,u,c,d={flag_key:e},f=eH(t.source);if(!f||t.hasDefaultVariant){(null==(o=t.variant)?void 0:o.expKey)&&(d.experiment_key=null==(a=t.variant)?void 0:a.expKey);var p=null==(s=t.variant)?void 0:s.metadata;if(f||(null==p?void 0:p.default)||((null==(l=t.variant)?void 0:l.key)?d.variant=t.variant.key:(null==(u=t.variant)?void 0:u.value)&&(d.variant=t.variant.value)),p&&(d.metadata=p),this.isWebExperiment){var h=eS();if(null==h?void 0:h.location)try{var m=h.location.href;d.metadata.url=m.split("?")[0]||""}catch(e){}}null==(c=this.exposureTrackingProvider)||c.track(d),this.integrationManager.track(d)}}},e.prototype.legacyExposureInternal=function(e,t,r){var n,i,o,a,s;if(this.analyticsProvider){var l=e2(this.addContext(this.getUser()),e,t,r);!eH(r)&&(null==t?void 0:t.value)?(null==t?void 0:t.value)&&(null==(a=null==(o=this.analyticsProvider)?void 0:o.setUserProperty)||a.call(o,l),null==(s=this.analyticsProvider)||s.track(l)):null==(i=null==(n=this.analyticsProvider)?void 0:n.unsetUserProperty)||i.call(n,l)}},e.prototype.debug=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this.config.debug&&console.debug.apply(console,eL([e],eN(t),!1))},e.prototype.shouldRetryFetch=function(e){return!(e instanceof eg)||e.statusCode<400||e.statusCode>=500||429===e.statusCode}
2,e.prototype.addPlugin=function(e){"integration"===e.type&&this.integrationManager.setIntegration(e)},e}(),ti=function(){function e(e,t){var r,n,i;this.globalScope=eS(),this.userAgent=void 0!==(null==(r=this.globalScope)?void 0:r.navigator)?null==(n=this.globalScope)?void 0:n.navigator.userAgent:void 0,this.ua=new eC.UAParser(this.userAgent).getResult(),this.localStorage=new eX,this.sessionStorage=new e1,this.userProvider=e,this.apiKey=t,this.storageKey="EXP_".concat(null==(i=this.apiKey)?void 0:i.slice(0,10),"_DEFAULT_USER_PROVIDER")}return e.prototype.getUser=function(){var e,t,r,n,i,o=(null==(e=this.userProvider)?void 0:e.getUser())||{};return eT({language:this.getLanguage(),platform:"Web",os:this.getOs(this.ua),device_model:this.getDeviceModel(this.ua),device_category:null!=(r=null==(t=this.ua.device)?void 0:t.type)?r:"desktop",referring_url:null==(i=null==(n=this.globalScope)?void 0:n.document)?void 0:i.referrer.replace(/\/$/,""),cookie:this.getCookie(),browser:this.getBrowser(this.ua),landing_url:this.getLandingUrl(),first_seen:this.getFirstSeen(),url_param:this.getUrlParam(),user_agent:this.userAgent},o)},e.prototype.getLanguage=function(){return"u">typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},e.prototype.getOs=function(e){var t,r;return[null==(t=e.browser)?void 0:t.name,null==(r=e.browser)?void 0:r.major].filter(function(e){return null!=e}).join(" ")},e.prototype.getDeviceModel=function(e){var t;return null==(t=e.os)?void 0:t.name},e.prototype.getBrowser=function(e){var t,r=null==(t=e.browser)?void 0:t.name;return(null==r?void 0:r.includes("Chrom"))&&(r="Chrome"),(null==r?void 0:r.includes("Firefox"))&&(r="Firefox"),(null==r?void 0:r.includes("Safari"))&&(r="Safari"),(null==r?void 0:r.includes("Edge"))&&(r="Edge"),(null==r?void 0:r.includes("Opera"))&&(r="Opera"),r},e.prototype.getCookie=function(){var e,t,r,n,i;if(null==(t=null==(e=this.globalScope)?void 0:e.document)?void 0:t.cookie)return Object.fromEntries(null==(i=null==(n=null==(r=this.globalScope)?void 0:r.document)?void 0:n.cookie)?void 0:i.split("; ").map(function(e){return e.split("=")}))},e.prototype.getLandingUrl=function(){var e,t;try{var r=JSON.parse(this.sessionStorage.get(this.storageKey)||"{}");return r.landing_url||(r.landing_url=null==(t=null==(e=this.globalScope)?void 0:e.location)?void 0:t.href.replace(/\/$/,""),this.sessionStorage.put(this.storageKey,JSON.stringify(r))),r.landing_url}catch(e){return}},e.prototype.getFirstSeen=function(){try{var e=JSON.parse(this.localStorage.get(this.storageKey)||"{}");return e.first_seen||(e.first_seen=(Date.now()/1e3).toString(),this.localStorage.put(this.storageKey,JSON.stringify(e))),e.first_seen}catch(e){return}},e.prototype.getUrlParam=function(){if(this.globalScope){var e,t,r,n={};try{var i=new URL(this.globalScope.location.href);try{for(var o=eR(i.searchParams),a=o.next();!a.done;a=o.next()){var s=eN(a.value,2),l=s[0],u=s[1];n[l]=eL(eL([],eN(null!=(r=n[l])?r:[]),!1),eN(u.split(",")),!1)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}}catch(e){return}return Object.entries(n).reduce(function(e,t){var r=eN(t,2),n=r[0],i=r[1];return e[n]=1==i.length?i[0]:i,e},{})}},e}();ew.experimentInstances={};var to=ew.experimentInstances,ta=function(e){return(null==e?void 0:e.instanceName)||e$.instanceName},ts=function(e,t){var r=ta(t),n=null==t?void 0:t.internalInstanceNameSuffix;return n?"".concat(r,".").concat(e,".").concat(n):"".concat(r,".").concat(e)},tl=function(e,t,r){var n=ts(e,t),i=to[n];return i?i:(i=new tn(e,eT(eT({},t),{userProvider:new ti(null==t?void 0:t.userProvider,e)})),r&&i.addPlugin(r()),to[n]=i,i)};function tu(){}tu.prototype.getUser=function(){return{}},tu.prototype.start=function(e){return eI(this,void 0,void 0,function(){return eO(this,function(e){return[2]})})},tu.prototype.stop=function(){},tu.prototype.setUser=function(e){},tu.prototype.fetch=function(e,t){return eI(this,void 0,void 0,function(){return eO(this,function(e){return[2,this]})})},tu.prototype.getUserProvider=function(){return null},tu.prototype.setUserProvider=function(e){return this},tu.prototype.variant=function(e,t){return e$.fallbackVariant},tu.prototype.all=function(){return{}},tu.prototype.clear=function(){}
2,tu.prototype.exposure=function(e){};var tc=r(19444),td=r(81025);let tf=()=>{let e=window.location.toString();return/[?&]sdk=true([^&]*)/.test(e)};var tp=r(50839);let th=null,tm=()=>(0,tc.Bd)()?null!==th?th:th=Promise.all([r.e(3545),r.e(3034)]).then(r.bind(r,79789)).then(({getApps:e,initializeApp:t})=>{e().length||t(tv)}).catch(e=>{throw th=null,e}):Promise.resolve(),tv={apiKey:(0,tc.Bd)()?(0,tc.lh)("FIREBASE_API_KEY",tp.env.FIREBASE_API_KEY):"",authDomain:(0,tc.Bd)()?(0,tc.lh)("FIREBASE_AUTH_DOMAIN",tp.env.FIREBASE_AUTH_DOMAIN):"",databaseURL:(0,tc.Bd)()?(0,tc.lh)("FIREBASE_DATABASE_URL",tp.env.FIREBASE_DATABASE_URL):"",projectId:(0,tc.Bd)()?(0,tc.lh)("FIREBASE_PROJECT_ID",tp.env.FIREBASE_PROJECT_ID):"",storageBucket:(0,tc.Bd)()?(0,tc.lh)("FIREBASE_STORAGE_BUCKET",tp.env.FIREBASE_STORAGE_BUCKET):"",messagingSenderId:(0,tc.Bd)()?(0,tc.lh)("FIREBASE_MESSAGING_SENDER_ID",tp.env.FIREBASE_MESSAGING_SENDER_ID):"",appId:(0,tc.Bd)()?(0,tc.lh)("FIREBASE_APP_ID",tp.env.FIREBASE_APP_ID):"",measurementId:(0,tc.Bd)()?(0,tc.lh)("FIREBASE_MEASUREMENT_ID",tp.env.FIREBASE_MEASUREMENT_ID):""},tg={isSdk:!1,amplitudeKey:(0,tc.Bd)()?(0,tc.lh)("AMPLITUDE_API_KEY",tp.env.AMPLITUDE_API_KEY):"",amplitudeExperimentKey:(0,tc.Bd)()?(0,tc.lh)("AMPLITUDE_EXPERIMENT_API_KEY",tp.env.AMPLITUDE_EXPERIMENT_API_KEY):""},ty={isSdk:!0,amplitudeKey:(0,tc.Bd)()?(0,tc.lh)("AMPLITUDE_SDK_API_KEY",tp.env.AMPLITUDE_SDK_API_KEY):"",amplitudeExperimentKey:(0,tc.Bd)()?(0,tc.lh)("AMPLITUDE_SDK_EXPERIMENT_API_KEY",tp.env.AMPLITUDE_SDK_EXPERIMENT_API_KEY):""};if((0,tc.Bd)()){let e=()=>{tm().catch(()=>{})};"function"==typeof globalThis.requestIdleCallback?globalThis.requestIdleCallback(e,{timeout:3e3}):setTimeout(e,100)}let tb=async()=>{var e;n=tl(e=tf()?ty.amplitudeExperimentKey:tg.amplitudeExperimentKey,void 0,function(){return new eU(e,ek.i.getInstance(ta(void 0)),1e4)}),await n.start()};if((0,tc.Bd)()){let e;(e=tf())&&(0,td.pI)(),u.Ts(e?ty.amplitudeKey:tg.amplitudeKey,{defaultTracking:!0}),tb()}},49736:(e,t,r)=>{"use strict";r.d(t,{w:()=>s});var n=r(50501),i=r(46560),o=r(81025);let a=[i.Dr,i.p,i.Pp,i.DZ],s=async({eventName:e="",properties:t={}}={})=>{if((0,o.NO)()&&!a.includes(e))return;let r=(e=>{if(!e)return;let t={};return Object.entries(e).forEach(([e,r])=>{t[e.replace(/[A-Z]/g,(e,t)=>0===t?e.toLowerCase():` ${e.toLowerCase()}`)]=r}),t})(t);n.$s(e,{...r,agent:"modo-landing"})}},49762:e=>{e.exports={overlay:"styles_overlay__zi_tj","mobile-menu-root":"styles_mobile-menu-root__Giqf6","mobile-menu-container":"styles_mobile-menu-container__iTq_L",chevron:"styles_chevron__PXumQ","menu-option-content":"styles_menu-option-content__EUJES","menu-option-body":"styles_menu-option-body__3O98w","menu-option-title":"styles_menu-option-title__K_tsJ","mobile-menu-bottom":"styles_mobile-menu-bottom__gzDDa","menu-container":"styles_menu-container__dNGR9","menu-container-active":"styles_menu-container-active__Xqirr","option-item":"styles_option-item__mk3gJ","menu-container-a":"styles_menu-container-a__1nJXp","menu-option-triangle":"styles_menu-option-triangle__KHd_0","menu-option-detail":"styles_menu-option-detail__z_7WS","menu-options-columns":"styles_menu-options-columns__YpqZa","menu-option-items":"styles_menu-option-items__WIpDb","navbar-transitions":"styles_navbar-transitions__AAiwD","fixed-navbar":"styles_fixed-navbar__cQsSO","sticky-navbar":"styles_sticky-navbar__ZEI41",root:"styles_root__MUz8P",nav:"styles_nav__gjXxL","flex-container":"styles_flex-container__LO10m","mobile-menu-icon":"styles_mobile-menu-icon__sIQYZ","navbar-padding":"styles_navbar-padding__RQsUC","navbar-content":"styles_navbar-content__gf2Ui","no-select":"styles_no-select__ojUYT"}},50084:(e,t,r)=>{e.exports=r(33152)()},50181:e=>{e.exports={root:"styles_root__e1BNT",item:"styles_item__sFMYG",pressable:"styles_pressable__EzGXi",icon:"styles_icon__LcpsW",arrow:"styles_arrow__8K4sn",title:"styles_title__C2kS2"}},50501:(e,t,r)=>{"use strict";let n;r.d(t,{Ts:()=>iM,$s:()=>iF});var i,o,a,s,l,u,c,d,f,p,h,m,v,g,y,b,_,w,S,x,E,k,C,A,P,T,I=r(82643);(i=g||(g={}))[i.None=0]="None",i[i.Error=1]="Error",i[i.Warn=2]="Warn",i[i.Verbose
2=3]="Verbose",i[i.Debug=4]="Debug";var O=function(e){return function(){var t=(0,I.Cl)({},e.config);return{logger:t.loggerProvider,logLevel:t.logLevel}}},R=function(e,t){var r,n;t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");try{for(var i=(0,I.Ju)(t.split(".")),o=i.next();!o.done;o=i.next()){var a=o.value;if(!(a in e))return;e=e[a]}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return e},N=function(e,t){return function(){var r,n,i={};try{for(var o=(0,I.Ju)(t),a=o.next();!a.done;a=o.next()){var s=a.value;i[s]=R(e,s)}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i}},L=function(e,t,r,n,i){return void 0===i&&(i=null),function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=r(),l=s.logger,u=s.logLevel;if(u&&u<g.Debug||!u||!l)return e.apply(i,o);var c={type:"invoke public method",name:t,args:o,stacktrace:(Error().stack||"").split("\n").slice(3).map(function(e){return e.trim()}),time:{start:new Date().toISOString()},states:{}};n&&c.states&&(c.states.before=n());var d=e.apply(i,o);return d&&d.promise?d.promise.then(function(){n&&c.states&&(c.states.after=n()),c.time&&(c.time.end=new Date().toISOString()),l.debug(JSON.stringify(c,null,2))}):(n&&c.states&&(c.states.after=n()),c.time&&(c.time.end=new Date().toISOString()),l.debug(JSON.stringify(c,null,2))),d}},D=function(e){return{promise:e||Promise.resolve()}},M=function(){function e(e,t){this.key="AMP_remote_config_".concat(e.substring(0,10)),this.logger=t}return e.prototype.fetchConfig=function(){var e=null,t={remoteConfig:null,lastFetch:new Date};try{e=localStorage.getItem(this.key)}catch(e){return this.logger.debug("Remote config localstorage failed to access: ",e),Promise.resolve(t)}if(null===e)return this.logger.debug("Remote config localstorage gets null because the key does not exist"),Promise.resolve(t);try{var r=JSON.parse(e);return this.logger.debug("Remote config localstorage parsed successfully: ".concat(JSON.stringify(r))),Promise.resolve({remoteConfig:r.remoteConfig,lastFetch:new Date(r.lastFetch)})}catch(e){return this.logger.debug("Remote config localstorage failed to parse: ",e),localStorage.removeItem(this.key),Promise.resolve(t)}},e.prototype.setConfig=function(e){try{return localStorage.setItem(this.key,JSON.stringify(e)),this.logger.debug("Remote config localstorage set successfully."),Promise.resolve(!0)}catch(e){this.logger.debug("Remote config localstorage failed to set: ",e)}return Promise.resolve(!1)},e}(),F=function(){var e="ampIntegrationContext";return"u">typeof globalThis&&void 0!==globalThis[e]?globalThis[e]:"u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof self?self:void 0!==r.g?r.g:void 0},j=(0,I.fX)([],(0,I.zs)(Array(256).keys()),!1).map(function(e){return e.toString(16).padStart(2,"0")}),U=function(e){var t,r=F();if(!(null==(t=null==r?void 0:r.crypto)?void 0:t.getRandomValues))return e?(e^16*Math.random()>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,U);var n=r.crypto.getRandomValues(new Uint8Array(16));return n[6]=15&n[6]|64,n[8]=63&n[8]|128,(0,I.fX)([],(0,I.zs)(n.entries()),!1).map(function(e){var t=(0,I.zs)(e,2),r=t[0],n=t[1];return[4,6,8,10].includes(r)?"-".concat(j[n]):j[n]}).join("")},B=function(){function e(e,t,r){void 0===r&&(r="US"),this.callbackInfos=[],this.apiKey=e,this.serverUrl="US"===r?"https://sr-client-cfg.amplitude.com/config":"https://sr-client-cfg.eu.amplitude.com/config",this.logger=t,this.storage=new M(e,t)}return e.prototype.subscribe=function(e,t,r){var n=U(),i={id:n,key:e,deliveryMode:t,callback:r};return this.callbackInfos.push(i),"all"===t?this.subscribeAll(i):this.subscribeWaitForRemote(i,t.timeout),n},e.prototype.unsubscribe=function(e){var t=this.callbackInfos.findIndex(function(t){return t.id===e});return -1===t?(this.logger.debug("Remote config client unsubscribe failed because callback with id ".concat(e," doesn't exist.")),!1):(this.callbackInfos.splice(t,1),this.logger.debug("Remote config client unsubscribe succeeded removing callback with id ".concat(e,".")),!0)},e.prototype.updateConfigs=function(){return(0,I.sH)(this,void 0,void 0,function(){var e,t=this;return(0,I.YH)(this,function(r){switch(r.label){case 0:return[4,this.fetch()];case 1:return e=r.sent(),this.storage.setConfig(e),this.callbackInfos.forEach(function(r){t.sendCallback(r,e,"remote")}),[2]}})})},e.prototype.subscribeAll=function(e){return(0,I.sH)(this,void 0,void 0,function(){var t,r,n,i=this;return(0,I.YH)(this,function(o){switch(o.label){case 0:return t=this.fetch().then(function(t){i.logger.debug("Remote config client subscription all mode fetched from remote: ".concat(JSON.stringify(t))),i.sendCallback(e,t,"remote"),i.storage.setConfig(t)}),r=this.storage.fetchConfig().then(function(e){return e}),[4,Promise.race([t,r])];case 1:return void 0!==(n=o.sent())&&(this.logger.debug("Remote config client subscription all mode fetched from cache: ".concat(JSON.stringify(n))),this.sendCallback(e,n,"cache")),[4,t];case 2:return o.sent(),[2]}})})},e.prototype.subscribeWaitForRemote=function(e,t){return(0,I.sH)(this,void 0,void 0,function(){var r,n;return(0,I.YH)(this,function(i){switch(i.label){case 0:r=new Promise(function(e,r){setTimeout(function(){r("Timeout exceeded")},t)}
2),i.label=1;case 1:return i.trys.push([1,3,,5]),[4,Promise.race([this.fetch(),r])];case 2:return n=i.sent(),this.logger.debug("Remote config client subscription wait for remote mode returns from remote."),this.sendCallback(e,n,"remote"),this.storage.setConfig(n),[3,5];case 3:return i.sent(),this.logger.debug("Remote config client subscription wait for remote mode exceeded timeout. Try to fetch from cache."),[4,this.storage.fetchConfig()];case 4:return null!==(n=i.sent()).remoteConfig?(this.logger.debug("Remote config client subscription wait for remote mode returns a cached copy."),this.sendCallback(e,n,"cache")):(this.logger.debug("Remote config client subscription wait for remote mode failed to fetch cache."),this.sendCallback(e,n,"remote")),[3,5];case 5:return[2]}})})},e.prototype.sendCallback=function(e,t,r){var n;e.lastCallback=new Date,n=e.key?e.key.split(".").reduce(function(e,t){return null===e?e:t in e?e[t]:null},t.remoteConfig):t.remoteConfig,e.callback(n,r,t.lastFetch)},e.prototype.fetch=function(e,t){return void 0===e&&(e=3),void 0===t&&(t=1e3),(0,I.sH)(this,void 0,void 0,function(){var r,n,i,o,a,s,l=this;return(0,I.YH)(this,function(u){switch(u.label){case 0:r=t/e,n={remoteConfig:null,lastFetch:new Date},i=0,u.label=1;case 1:if(!(i<e))return[3,12];u.label=2;case 2:return u.trys.push([2,8,,9]),[4,fetch(this.getUrlParams(),{method:"GET",headers:{Accept:"*/*"}})];case 3:if((o=u.sent()).ok)return[3,5];return[4,o.text()];case 4:return a=u.sent(),this.logger.debug("Remote config client fetch with retry time ".concat(e," failed with ").concat(o.status,": ").concat(a)),[3,7];case 5:return[4,o.json()];case 6:return[2,{remoteConfig:u.sent(),lastFetch:new Date}];case 7:return[3,9];case 8:return s=u.sent(),this.logger.debug("Remote config client fetch with retry time ".concat(e," is rejected because: "),s),[3,9];case 9:if(!(i<e-1))return[3,11];return[4,new Promise(function(e){return setTimeout(e,l.getJitterDelay(r))})];case 10:u.sent(),u.label=11;case 11:return i++,[3,1];case 12:return[2,n]}})})},e.prototype.getJitterDelay=function(e){return Math.floor(Math.random()*e)},e.prototype.getUrlParams=function(){var t=encodeURIComponent(this.apiKey),r=new URLSearchParams;return r.append("config_group",e.CONFIG_GROUP),"".concat(this.serverUrl,"/").concat(t,"?").concat(r.toString())},e.CONFIG_GROUP="browser",e}(),Y=function(){var e,t=F();return(null==(e=null==t?void 0:t.location)?void 0:e.search)?t.location.search.substring(1).split("&").filter(Boolean).reduce(function(e,t){var r=t.split("=",2),n=V(r[0]),i=V(r[1]);return i&&(e[n]=i),e},{}):{}},V=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},H=r(33510),$="".concat("AMP","_unsent"),z="$default_instance",q="https://api2.amplitude.com/2/httpapi",W="dclid",K="fbclid",G="gbraid",X="gclid",J="ko_click_id",Z="li_fat_id",Q="msclkid",ee="rtd_cid",et="ttclid",er="twclid",en="wbraid",ei={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},eo=function(e){return void 0===e&&(e=z),H.i.getInstance(e)},ea=function(e,t){eo(t).identityStore.editIdentity().setUserId(e).commit()},es=function(e,t){eo(t).identityStore.editIdentity().setDeviceId(e).commit()};(o=y||(y={})).Unknown="unknown",o.Skipped="skipped",o.Success="success",o.RateLimit="rate_limit",o.PayloadTooLarge="payload_too_large",o.Invalid="invalid",o.Failed="failed",o.Timeout="Timeout",o.SystemError="SystemError";var el=function(e,t){var r=Math.max(t,1);return e.reduce(function(e,t,n){var i=Math.floor(n/r);return e[i]||(e[i]=[]),e[i].push(t),e},[])},eu=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=y.Unknown),{event:e,code:t,message:r}},ec="Amplitude Logger ",ed=function(){function e(){this.logLevel=g.None}return e.prototype.disable=function(){this.logLevel=g.None},e.prototype.enable=function(e){void 0===e&&(e=g.Warn),this.logLevel=e},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<g.Verbose||console.log("".concat(ec,"[Log]: ").concat(e.join(" ")))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<g.Warn||console.warn("".concat(ec,"[Warn]: ").concat(e.join(" ")))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<g.Error||console.error("".concat(ec,"[Error]: ").concat(e.join(" ")))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<g.Debug||console.log("".concat(ec,"[Debug]: ").concat(e.join(" ")))},e}(),ef=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:z,logLevel:g.Warn,loggerProvider:new ed,offline:!1,optOut:!1,serverUrl:q,serverZone:"US",useBatch:!1}},ep=function(){function e(e){this._optOut=!1;var t,r,n,i,o=ef();this.apiKey=e.apiKey,this.flushIntervalMillis=null!=(t=e.flushIntervalMillis)?t:o.flushIntervalMillis,this.flushMaxRetries=e.flushMaxRetries||o.flushMaxRetries,this.flushQueueSize=e.flushQueueSize||o.flushQueueSize,this.instanceName=e.instanceName||o.instanceName,this.loggerProvider=e.loggerProvider||o.loggerProvider,this.logLevel=null!=(r=e.logLevel)?r:o.logLevel,this.minIdLength=e.minIdLength,this.plan=e.plan,this.ingestionMetadata=e.ingestionMetadata,this.offline=void 0!==e.offline?e.offline:o.offline,this.optOut=null!=(n=e.optOut)?n:o.optOut,this.serverUrl=e.serverUrl,this.serverZone=e.serverZone||o.serverZone,this.storageProvider=e.storageProvider,this.transportProvider=e.transportProvider,this.useBatch=null!=(i=e.useBatch)?i:o.useBatch,this.loggerProvider.enable(this.logLevel);var a=eh(e.serverUrl,e.serverZone,e.useBatch);this.serverZone=a.serverZone,this.serverUrl=a.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut=e}
2,enumerable:!1,configurable:!0}),e}(),eh=function(e,t,r){if(void 0===e&&(e=""),void 0===t&&(t=ef().serverZone),void 0===r&&(r=ef().useBatch),e)return{serverUrl:e,serverZone:void 0};var n,i=["US","EU"].includes(t)?t:ef().serverZone;return{serverZone:i,serverUrl:(n=r,"EU"===i?n?"https://api.eu.amplitude.com/batch":"https://api.eu.amplitude.com/2/httpapi":n?"https://api2.amplitude.com/batch":q)}},em=function(){function e(){this.sdk={metrics:{histogram:{}}}}return e.prototype.recordHistogram=function(e,t){this.sdk.metrics.histogram[e]=t},e}();function ev(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch(e){}return t}var eg=function(){function e(){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduleId=null,this.scheduledTimeout=0,this.flushId=null,this.queue=[]}return e.prototype.setup=function(e){var t;return(0,I.sH)(this,void 0,void 0,function(){var r,n=this;return(0,I.YH)(this,function(i){switch(i.label){case 0:return this.config=e,this.storageKey="".concat($,"_").concat(this.config.apiKey.substring(0,10)),[4,null==(t=this.config.storageProvider)?void 0:t.get(this.storageKey)];case 1:return(r=i.sent())&&r.length>0&&Promise.all(r.map(function(e){return n.execute(e)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(e){var t=this;return e.insert_id||(e.insert_id=U()),new Promise(function(r){t.queue.push({event:e,attempts:0,callback:function(e){return r(e)},timeout:0}),t.schedule(t.config.flushIntervalMillis),t.saveEvents()})},e.prototype.removeEventsExceedFlushMaxRetries=function(e){var t=this;return e.filter(function(e){return e.attempts+=1,e.attempts<t.config.flushMaxRetries||(t.fulfillRequest([e],500,"Event rejected due to exceeded retry count"),!1)})},e.prototype.scheduleEvents=function(e){var t=this;e.forEach(function(e){t.schedule(0===e.timeout?t.config.flushIntervalMillis:e.timeout)})},e.prototype.schedule=function(e){var t=this;if(!this.config.offline&&(null===this.scheduleId||this.scheduleId&&e>this.scheduledTimeout)){this.scheduleId&&clearTimeout(this.scheduleId),this.scheduledTimeout=e,this.scheduleId=setTimeout(function(){t.queue=t.queue.map(function(e){return e.timeout=0,e}),t.flush(!0)},e);return}},e.prototype.resetSchedule=function(){this.scheduleId=null,this.scheduledTimeout=0},e.prototype.flush=function(e){return void 0===e&&(e=!1),(0,I.sH)(this,void 0,void 0,function(){var t,r,n=this;return(0,I.YH)(this,function(i){switch(i.label){case 0:if(this.config.offline)return this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush while offline."),[2];if(this.flushId)return this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush because previous flush has not resolved."),[2];return this.flushId=this.scheduleId,this.resetSchedule(),t=[],r=[],this.queue.forEach(function(e){return 0===e.timeout?t.push(e):r.push(e)}),[4,el(t,this.config.flushQueueSize).reduce(function(t,r){return(0,I.sH)(n,void 0,void 0,function(){return(0,I.YH)(this,function(n){switch(n.label){case 0:return[4,t];case 1:return n.sent(),[4,this.send(r,e)];case 2:return[2,n.sent()]}})})},Promise.resolve())];case 1:return i.sent(),this.flushId=null,this.scheduleEvents(this.queue),[2]}})})},e.prototype.send=function(e,t){return void 0===t&&(t=!0),(0,I.sH)(this,void 0,void 0,function(){var r,n,i,o;return(0,I.YH)(this,function(a){switch(a.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(e,400,"Event rejected due to missing API key")];r={api_key:this.config.apiKey,events:e.map(function(e){var t=e.event;return t.extra,(0,I.Tt)(t,["extra"])}),options:{min_id_length:this.config.minIdLength},client_upload_time:new Date().toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new em,a.label=1;case 1:return a.trys.push([1,3,,4]),n=eh(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(n,r)];case 2:if(null===(i=a.sent()))return this.fulfillRequest(e,0,"Unexpected error occurred"),[2];if(!t)return"body"in i?this.fulfillRequest(e,i.statusCode,"".concat(i.status,": ").concat(ev(i))):this.fulfillRequest(e,i.statusCode,i.status),[2];return this.handleResponse(i,e),[3,4];case 3:var s;return o=(s=a.sent())instanceof Error?s.message:String(s),this.config.loggerProvider.error(o),this.handleResponse({status:y.Failed,statusCode:0},e),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(e,t){var r=e.status;switch(r){case y.Success:this.handleSuccessResponse(e,t);break;case y.Invalid:this.handleInvalidResponse(e,t);break;case y.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case y.RateLimit:this.handleRateLimitResponse(e,t);break;default:this.config.loggerProvider.warn("{code: 0, error: \"Status '".concat(r,"' provided for ").concat(t.length,' events"}')),this.handleOtherResponse(t)}},e.prototype.handleSuccessResponse=function(e,t){this.fulfillRequest(t,e.statusCode,"Event tracked successfully")},e.prototype.handleInvalidResponse=function(e,t){var r=this;if(e.body.missingField||e.body.error.startsWith("Invalid API key"))return void this.fulfillRequest(t,e.statusCode,e.body.error);var n=new Set((0,I.fX)((0,I.fX)((0,I.fX)((0,I.fX)([],(0,I.zs)(Object.values(e.body.eventsWithInvalidFields)),!1),(0,I.zs)(Object.values(e.body.eventsWithMissingFields)),!1),(0,I.zs)(Object.values(e.body.eventsWithInvalidIdLengths)),!1),(0,I.zs)(e.body.silencedEvents),!1).flat()),i=t.filter(function(t,i){return!n.has(i)||void r.fulfillRequest([t],e.statusCode,e.body.error)});i.length>0&&this.config.loggerProvider.warn(ev(e));
2var o=this.removeEventsExceedFlushMaxRetries(i);this.scheduleEvents(o)},e.prototype.handlePayloadTooLargeResponse=function(e,t){if(1===t.length)return void this.fulfillRequest(t,e.statusCode,e.body.error);this.config.loggerProvider.warn(ev(e)),this.config.flushQueueSize/=2;var r=this.removeEventsExceedFlushMaxRetries(t);this.scheduleEvents(r)},e.prototype.handleRateLimitResponse=function(e,t){var r=this,n=Object.keys(e.body.exceededDailyQuotaUsers),i=Object.keys(e.body.exceededDailyQuotaDevices),o=e.body.throttledEvents,a=new Set(n),s=new Set(i),l=new Set(o),u=t.filter(function(t,n){return t.event.user_id&&a.has(t.event.user_id)||t.event.device_id&&s.has(t.event.device_id)?void r.fulfillRequest([t],e.statusCode,e.body.error):(l.has(n)&&(t.timeout=r.throttleTimeout),!0)});u.length>0&&this.config.loggerProvider.warn(ev(e));var c=this.removeEventsExceedFlushMaxRetries(u);this.scheduleEvents(c)},e.prototype.handleOtherResponse=function(e){var t=this,r=e.map(function(e){return e.timeout=e.attempts*t.retryTimeout,e}),n=this.removeEventsExceedFlushMaxRetries(r);this.scheduleEvents(n)},e.prototype.fulfillRequest=function(e,t,r){this.removeEvents(e),e.forEach(function(e){return e.callback(eu(e.event,t,r))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var e=this.queue.map(function(e){return e.event});this.config.storageProvider.set(this.storageKey,e)}},e.prototype.removeEvents=function(e){this.queue=this.queue.filter(function(t){return!e.some(function(e){return e.event.insert_id===t.event.insert_id})}),this.saveEvents()},e}(),ey=function(){function e(){this.name="identity",this.type="before",this.identityStore=eo().identityStore}return e.prototype.execute=function(e){return(0,I.sH)(this,void 0,void 0,function(){var t;return(0,I.YH)(this,function(r){return(t=e.user_properties)&&this.identityStore.editIdentity().updateUserProperties(t).commit(),[2,e]})})},e.prototype.setup=function(e){return(0,I.sH)(this,void 0,void 0,function(){return(0,I.YH)(this,function(t){return e.instanceName&&(this.identityStore=eo(e.instanceName).identityStore),[2]})})},e}(),eb=function(e){if(Object.keys(e).length>1e3)return!1;for(var t in e){var r=e[t];if(!e_(t,r))return!1}return!0},e_=function(e,t){var r,n;if("string"!=typeof e)return!1;if(Array.isArray(t)){var i=!0;try{for(var o=(0,I.Ju)(t),a=o.next();!a.done;a=o.next()){var s=a.value;if(Array.isArray(s))return!1;if("object"==typeof s)i=i&&eb(s);else if(!["number","string"].includes(typeof s))return!1;if(!i)return!1}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}else if(null==t)return!1;else if("object"==typeof t)return eb(t);else if(!["number","string","boolean"].includes(typeof t))return!1;return!0},ew=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return(0,I.Cl)({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(b.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(b.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(b.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(b.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(b.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(b.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(b.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(b.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(b.UNSET,e,"-"),this},e.prototype.clearAll=function(){return this._properties={},this._properties[b.CLEAR_ALL]="-",this},e.prototype._safeSet=function(e,t,r){if(this._validate(e,t,r)){var n=this._properties[e];return void 0===n&&(n={},this._properties[e]=n),n[t]=r,this._propertySet.add(t),!0}return!1},e.prototype._validate=function(e,t,r){return!(void 0!==this._properties[b.CLEAR_ALL]||this._propertySet.has(t))&&(e===b.ADD?"number"==typeof r:e===b.UNSET||e===b.REMOVE||e_(t,r))},e}();(a=b||(b={})).SET="$set",a.SET_ONCE="$setOnce",a.ADD="$add",a.APPEND="$append",a.PREPEND="$prepend",a.REMOVE="$remove",a.PREINSERT="$preInsert",a.POSTINSERT="$postInsert",a.UNSET="$unset",a.CLEAR_ALL="$clearAll";var eS=[b.CLEAR_ALL,b.UNSET,b.SET,b.SET_ONCE,b.ADD,b.APPEND,b.PREPEND,b.PREINSERT,b.POSTINSERT,b.REMOVE],ex=function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(e){return this.productId=e,this},e.prototype.setQuantity=function(e){return e>0&&(this.quantity=e),this},e.prototype.setPrice=function(e){return this.price=e,this},e.prototype.setRevenueType=function(e){return this.revenueType=e,this},e.prototype.setCurrency=function(e){return this.currency=e,this},e.prototype.setRevenue=function(e){return this.revenue=e,this},e.prototype.setReceipt=function(e){return this.receipt=e,this},e.prototype.setReceiptSig=function(e){return this.receiptSig=e,this},e.prototype.setEventProperties=function(e){return eb(e)&&(this.properties=e),this},e.prototype.getEventProperties=function(){var e=this.properties?(0,I.Cl)({},this.properties):{};return e[_.REVENUE_PRODUCT_ID]=this.productId,e[_.REVENUE_QUANTITY]=this.quantity,e[_.REVENUE_PRICE]=this.price,e[_.REVENUE_TYPE]=this.revenueType,e[_.REVENUE_CURRENCY]=this.currency,e[_.REVENUE]=this.revenue,e[_.RECEIPT]=this.receipt,e[_.RECEIPT_SIG]=this.receiptSig,e},e}();(s=_||(_={})).REVENUE_PRODUCT_ID="$productId",s.REVENUE_QUANTITY="$quantity",s.REVENUE_PRICE="$price",s.REVENUE_TYPE="$revenueType",s.REVENUE_CURRENCY="$currency",s.REVENUE="$revenue",s.RECEIPT="$receipt",s.RECEIPT_SIG="$receiptSig";var eE=function(e,t){return void 0===t&&(t=Date.now()),Date.now()-t>e};(l=w||(w={})).SET="$set",l.SET_ONCE="$setOnce",l.ADD="$add",l.APPEND="$append",l.PREPEND="$prepend",l.REMOVE="$remove",l.PREINSERT="$preInsert",l.POSTINSERT="$postInsert",l.UNSET="$unset",l.CLEAR_ALL="$clearAll",(u=S||(S={})).IDENTIFY="$identify",u.GROUP_IDENTIFY="$groupidentify",u.REVENUE="revenue_amount";var ek=function(){function e(e){this.client=e,this.queue=[],this.applying=!1,this.plugins=[]}return e.prototype.register=function(e,t){var r,n;return(0,I.sH)(this,void 0,void 0,function(){return(0,I.YH)(this,function(i){switch(i.label){case 0:if(this.plugins.some(function(t){return t.name===e.name}))return this.loggerProvider.warn("Plugin with name ".concat(e.name," already exists, skipping registration")),[2];return void 0===e.name&&(e.name=U(),this.loggerProvider.warn("Plugin name is undefined. \n Generating a random UUID for plugin name: ".concat(e.name,". \n Set a name for the plugin to prevent it from being added multiple times."))),e.type=null!=(r=e.type)?r:"enrichment",[4,null==(n=e.setup)?void 0:n.call(e,t,this.client)];case 1:return i.sent(),this.plugins.push(e),[2]}})})},e.prototype.deregister=function(e,t){var r;return(0,I.sH)(this,void 0,void 0,function(){var n,i;return(0,I.YH)(this,function(o){switch(o.label){case 0:if(-1===(n=this.plugins.findIndex(function(t){return t.name===e})))return t.loggerProvider.warn("Plugin with name ".concat(e," does not exist, skipping deregistration")),[2];return i=this.plugins[n],this.plugins.splice(n,1),[4,null==(r=i.teardown)?void 0:r.call(i)];case 1:return o.sent(),[2]}})})},e.prototype.reset=function(e){this.applying=!1,this.plugins.map(function(e){var t;return null==(t=e.teardown)?void 0:t.call(e)}),this.plugins=[],this.client=e},e.prototype.push=function(e){var t=this;return new Promise(function(r){t.queue.push([e,r]),t.scheduleApply(0)})},e.prototype.scheduleApply=function(e){var t=this;this.applying||(this.applying=!0,setTimeout(function(){t.apply(t.queue.shift()).then(function(){t.applying=!1,t.queue.length>0&&t.scheduleApply(0)})},e))},e.prototype.apply=function(e){return(0,I.sH)(this,void 0,void 0,function(){var t,r,n,i,o,a,s,l,u,c,d,f,p,h,m;return(0,I.YH)(this,function(v){switch(v.label){case 0:if(!e)return[2];t=(0,I.zs)(e,1)[0],r=(0,I.zs)(e,2)[1],this.loggerProvider.log("Timeline.apply: Initial event",t),n=this.plugins.filter(function(e){return"before"===e.type}),v.label=1;case 1:v.trys.push([1,6,7,8]),o=(i=(0,I.Ju)(n)).next(),v.label=2;case 2:if(o.done)return[3,5];if(!(a=o.value).execute)return[3,4];return[4,a.execute((0,I.Cl)({},t))];case 3:if(null===(s=v.sent()))return this.loggerProvider.log("Timeline.apply: Event filtered out by before plugin '".concat(String(a.name),"', event: ").concat(JSON.stringify(t))),r({event:t,code:0,message:""}),[2];t=s,this.loggerProvider.log("Timeline.apply: Event after before plugin '".concat(String(a.name),"', event: ").concat(JSON.stringify(t))),v.label=4;case 4:return o=i.next(),[3,2];case 5:return[3,8];case 6:return f={error:v.sent()},[3,8];
2case 7:try{o&&!o.done&&(p=i.return)&&p.call(i)}finally{if(f)throw f.error}return[7];case 8:l=this.plugins.filter(function(e){return"enrichment"===e.type||void 0===e.type}),v.label=9;case 9:v.trys.push([9,14,15,16]),c=(u=(0,I.Ju)(l)).next(),v.label=10;case 10:if(c.done)return[3,13];if(!(a=c.value).execute)return[3,12];return[4,a.execute((0,I.Cl)({},t))];case 11:if(null===(s=v.sent()))return this.loggerProvider.log("Timeline.apply: Event filtered out by enrichment plugin '".concat(String(a.name),"', event: ").concat(JSON.stringify(t))),r({event:t,code:0,message:""}),[2];t=s,this.loggerProvider.log("Timeline.apply: Event after enrichment plugin '".concat(String(a.name),"', event: ").concat(JSON.stringify(t))),v.label=12;case 12:return c=u.next(),[3,10];case 13:return[3,16];case 14:return h={error:v.sent()},[3,16];case 15:try{c&&!c.done&&(m=u.return)&&m.call(u)}finally{if(h)throw h.error}return[7];case 16:return d=this.plugins.filter(function(e){return"destination"===e.type}),this.loggerProvider.log("Timeline.apply: Final event before destinations, event: ".concat(JSON.stringify(t))),Promise.all(d.map(function(e){var r=(0,I.Cl)({},t);return e.execute(r).catch(function(e){return eu(r,0,String(e))})})).then(function(e){var n=(0,I.zs)(e,1)[0]||eu(t,100,"Event not tracked, no destination plugins on the instance");r(n)}),[2]}})})},e.prototype.flush=function(){return(0,I.sH)(this,void 0,void 0,function(){var e,t=this;return(0,I.YH)(this,function(r){switch(r.label){case 0:return e=this.queue,this.queue=[],[4,Promise.all(e.map(function(e){return t.apply(e)}))];case 1:return r.sent(),[4,Promise.all(this.plugins.filter(function(e){return"destination"===e.type}).map(function(e){return e.flush&&e.flush()}))];case 2:return r.sent(),[2]}})})},e.prototype.onIdentityChanged=function(e){this.plugins.forEach(function(t){var r;null==(r=t.onIdentityChanged)||r.call(t,e)})},e.prototype.onSessionIdChanged=function(e){this.plugins.forEach(function(t){var r;null==(r=t.onSessionIdChanged)||r.call(t,e)})},e.prototype.onOptOutChanged=function(e){this.plugins.forEach(function(t){var r;null==(r=t.onOptOutChanged)||r.call(t,e)})},e}(),eC=function(e,t){return(0,I.Cl)((0,I.Cl)({},t),{event_type:S.IDENTIFY,user_properties:e.getUserProperties()})},eA=function(e,t,r,n){var i;return(0,I.Cl)((0,I.Cl)({},n),{event_type:S.GROUP_IDENTIFY,group_properties:r.getUserProperties(),groups:((i={})[e]=t,i)})},eP=function(e,t,r){var n,i=new ew;return i.set(e,t),(0,I.Cl)((0,I.Cl)({},r),{event_type:S.IDENTIFY,user_properties:i.getUserProperties(),groups:((n={})[e]=t,n)})},eT=function(){function e(e){void 0===e&&(e="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new ek(this),this.name=e}return e.prototype._init=function(e){return(0,I.sH)(this,void 0,void 0,function(){return(0,I.YH)(this,function(t){switch(t.label){case 0:return this.config=e,this.timeline.reset(this),this.timeline.loggerProvider=this.config.loggerProvider,[4,this.runQueuedFunctions("q")];case 1:return t.sent(),this.isReady=!0,[2]}})})},e.prototype.runQueuedFunctions=function(e){return(0,I.sH)(this,void 0,void 0,function(){var t,r,n,i,o,a;return(0,I.YH)(this,function(s){switch(s.label){case 0:t=this[e],this[e]=[],s.label=1;case 1:s.trys.push([1,8,9,10]),n=(r=(0,I.Ju)(t)).next(),s.label=2;case 2:if(n.done)return[3,7];if(!((i=(0,n.value)())&&"promise"in i))return[3,4];return[4,i.promise];case 3:return s.sent(),[3,6];case 4:return[4,i];case 5:s.sent(),s.label=6;case 6:return n=r.next(),[3,2];case 7:return[3,10];case 8:return o={error:s.sent()},[3,10];case 9:try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}return[7];case 10:if(!this[e].length)return[3,12];return[4,this.runQueuedFunctions(e)];case 11:s.sent(),s.label=12;case 12:return[2]}})})},e.prototype.track=function(e,t,r){var n=(0,I.Cl)((0,I.Cl)((0,I.Cl)({},"string"==typeof e?{event_type:e}:e),r),t&&{event_properties:t});return D(this.dispatch(n))},e.prototype.identify=function(e,t){var r=eC(e,t);return D(this.dispatch(r))},e.prototype.groupIdentify=function(e,t,r,n){var i=eA(e,t,r,n);return D(this.dispatch(i))},e.prototype.setGroup=function(e,t,r){var n=eP(e,t,r);return D(this.dispatch(n))},e.prototype.revenue=function(e,t){var r=(0,I.Cl)((0,I.Cl)({},t),{event_type:S.REVENUE,event_properties:e.getEventProperties()});return D(this.dispatch(r))},e.prototype.add=function(e){return this.isReady?this._addPlugin(e):(this.q.push(this._addPlugin.bind(this,e)),D())},e.prototype._addPlugin=function(e){return D(this.timeline.register(e,this.config))},e.prototype.remove=function(e){return this.isReady?this._removePlugin(e):(this.q.push(this._removePlugin.bind(this,e)),D())},e.prototype._removePlugin=function(e){return D(this.timeline.deregister(e,this.config))},e.prototype.dispatchWithCallback=function(e,t){if(!this.isReady)return t(eu(e,0,"Client not initialized"));this.process(e).then(t)},e.prototype.dispatch=function(e){return(0,I.sH)(this,void 0,void 0,function(){var t=this;return(0,I.YH)(this,function(r){return this.isReady?[2,this.process(e)]:[2,new Promise(function(r){t.dispatchQ.push(t.dispatchWithCallback.bind(t,e,r))})]})})},e.prototype.getOperationAppliedUserProperties=function(e){var t={};if(void 0===e)return t;var r={};return Object.keys(e).forEach(function(t){Object.values(w).includes(t)||(r[t]=e[t])}
2),eS.forEach(function(r){if(Object.keys(e).includes(r)){var n=e[r];switch(r){case w.CLEAR_ALL:Object.keys(t).forEach(function(e){delete t[e]});break;case w.UNSET:Object.keys(n).forEach(function(e){delete t[e]});break;case w.SET:Object.assign(t,n)}}}),Object.assign(t,r),t},e.prototype.process=function(e){return(0,I.sH)(this,void 0,void 0,function(){var t,r,n;return(0,I.YH)(this,function(i){switch(i.label){case 0:if(i.trys.push([0,2,,3]),this.config.optOut)return[2,eu(e,0,"Event skipped due to optOut config")];return e.event_type===S.IDENTIFY&&(t=this.getOperationAppliedUserProperties(e.user_properties),this.timeline.onIdentityChanged({userProperties:t})),[4,this.timeline.push(e)];case 1:return 200===(r=i.sent()).code?this.config.loggerProvider.log(r.message):100===r.code?this.config.loggerProvider.warn(r.message):this.config.loggerProvider.error(r.message),[2,r];case 2:return n=String(i.sent()),this.config.loggerProvider.error(n),[2,r=eu(e,0,n)];case 3:return[2]}})})},e.prototype.setOptOut=function(e){this.isReady?this._setOptOut(e):this.q.push(this._setOptOut.bind(this,!!e))},e.prototype._setOptOut=function(e){this.config.optOut!==e&&(this.timeline.onOptOutChanged(e),this.config.optOut=!!e)},e.prototype.flush=function(){return D(this.timeline.flush())},e.prototype.plugin=function(e){var t=this.timeline.plugins.find(function(t){return t.name===e});return void 0===t?void this.config.loggerProvider.debug("Cannot find plugin with name ".concat(e)):t},e.prototype.plugins=function(e){return this.timeline.plugins.filter(function(t){return t instanceof e})},e}(),eI=function(e,t){return"boolean"==typeof e?e:(null==e?void 0:e[t])!==!1},eO=function(e){return eI(e,"attribution")},eR=function(e){return eI(e,"pageViews")},eN=function(e){return eI(e,"sessions")},eL=function(e){return"object"==typeof e&&(!0===e.networkTracking||"object"==typeof e.networkTracking)},eD=function(e){return"boolean"==typeof e?e:"object"==typeof e&&(!0===e.elementInteractions||"object"==typeof e.elementInteractions)},eM=function(e){return"object"==typeof e&&(!0===e.frustrationInteractions||"object"==typeof e.frustrationInteractions)},eF=function(e){if(eD(e.autocapture)&&"object"==typeof e.autocapture&&"object"==typeof e.autocapture.elementInteractions)return e.autocapture.elementInteractions},ej=function(e){if(eM(e.autocapture)&&"object"==typeof e.autocapture&&"object"==typeof e.autocapture.frustrationInteractions)return e.autocapture.frustrationInteractions},eU=function(e){if(eL(e.autocapture)){if("object"==typeof e.autocapture&&"object"==typeof e.autocapture.networkTracking)return e.autocapture.networkTracking;else if(e.networkTrackingOptions)return e.networkTrackingOptions}},eB=function(e){var t,r=function(){return!1},n=void 0,i=e.pageCounter;return eR(e.defaultTracking)&&(r=void 0,t=void 0,e.defaultTracking&&"object"==typeof e.defaultTracking&&e.defaultTracking.pageViews&&"object"==typeof e.defaultTracking.pageViews&&("trackOn"in e.defaultTracking.pageViews&&(r=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(t=e.defaultTracking.pageViews.eventType))),{trackOn:r,trackHistoryChanges:n,eventType:t,pageCounter:i}},eY=function(e,t){for(var r=0;r<t.length;r++){var n=t[r],i=n.name,o=n.args,a=n.resolve,s=e&&e[i];if("function"==typeof s){var l=s.apply(e,o);"function"==typeof a&&a(null==l?void 0:l.promise)}}return e},eV=function(e){return e&&void 0!==e._q},eH=function(){if("u"<typeof navigator)return"";var e,t,r,n,i=navigator.userLanguage;return null!=(n=null!=(r=null!=(t=null==(e=navigator.languages)?void 0:e[0])?t:navigator.language)?r:i)?n:""},e$="2.22.0",ez=function(){function e(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat("amplitude-ts","/").concat(e$),"u">typeof navigator&&(this.userAgent=navigator.userAgent)}return e.prototype.setup=function(e){return this.config=e,Promise.resolve(void 0)},e.prototype.execute=function(e){var t,r;return(0,I.sH)(this,void 0,void 0,function(){var n,i,o;return(0,I.YH)(this,function(a){return n=new Date().getTime(),i=null!=(t=this.config.lastEventId)?t:-1,o=null!=(r=e.event_id)?r:i+1,this.config.lastEventId=o,e.time||(this.config.lastEventTime=n),[2,(0,I.Cl)((0,I.Cl)((0,I.Cl)((0,I.Cl)((0,I.Cl)((0,I.Cl)((0,I.Cl)((0,I.Cl)({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:n},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:"Web"}),this.config.trackingOptions.language&&{language:eH()}),this.config.trackingOptions.ipAddress&&{ip:"$remote"}),{insert_id:U(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),e),{event_id:o,library:this.library,user_agent:this.userAgent})]})})},e}(),eq=function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return(0,I.sH)(this,void 0,void 0,function(){return(0,I.YH)(this,function(e){return[2,!0]})})},e.prototype.get=function(e){return(0,I.sH)(this,void 0,void 0,function(){return(0,I.YH)(this,function(t){return[2,this.memoryStorage.get(e)]})})},e.prototype.getRaw=function(e){return(0,I.sH)(this,void 0,void 0,function(){var t;return(0,I.YH)(this,function(r){switch(r.label){case 0:return[4,this.get(e)];case 1:return[2,(t=r.sent())?JSON.stringify(t):void 0]}})})},e.prototype.set=function(e,t){return(0,I.sH)(this,void 0,void 0,function(){return(0,I.YH)(this,function(r){return this.memoryStorage.set(e,t),[2]})})},e.prototype.remove=function(e){return(0,I.sH)(this,void 0,void 0,function(){return(0,I.YH)(this,function(t){return this.memoryStorage.delete(e),[2]})})},e.prototype.reset=function(){return(0,I.sH)(this,void 0,void 0,function(){return(0,I.YH)(this,function(e){return this.memoryStorage.clear(),[2]})})},e}(),eW=function(e,t,r){return void 0===t&&(t=""),void 0===r&&(r=10),["AMP",t,e.substring(0,r)].filter(
2Boolean).join("_")},eK=function(){function e(e){this.options=(0,I.Cl)({},e)}return e.prototype.isEnabled=function(){return(0,I.sH)(this,void 0,void 0,function(){var t,r;return(0,I.YH)(this,function(n){switch(n.label){case 0:if(!F())return[2,!1];e.testValue=String(Date.now()),t=new e(this.options),r="AMP_TEST",n.label=1;case 1:return n.trys.push([1,4,5,7]),[4,t.set(r,e.testValue)];case 2:return n.sent(),[4,t.get(r)];case 3:return[2,n.sent()===e.testValue];case 4:return n.sent(),[2,!1];case 5:return[4,t.remove(r)];case 6:return n.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){var t;return(0,I.sH)(this,void 0,void 0,function(){var r,n;return(0,I.YH)(this,function(i){switch(i.label){case 0:return[4,this.getRaw(e)];case 1:if(!(r=i.sent()))return[2,void 0];try{if(n=null!=(t=eG(r))?t:eX(r),void 0===n)return console.error("Amplitude Logger [Error]: Failed to decode cookie value for key: ".concat(e,", value: ").concat(r)),[2,void 0];return[2,JSON.parse(n)]}catch(t){return console.error("Amplitude Logger [Error]: Failed to parse cookie value for key: ".concat(e,", value: ").concat(r)),[2,void 0]}}})})},e.prototype.getRaw=function(e){var t,r;return(0,I.sH)(this,void 0,void 0,function(){var n,i;return(0,I.YH)(this,function(o){return(i=(null!=(r=null==(t=null==(n=F())?void 0:n.document)?void 0:t.cookie.split("; "))?r:[]).find(function(t){return 0===t.indexOf(e+"=")}))?[2,i.substring(e.length+1)]:[2,void 0]})})},e.prototype.set=function(e,t){var r;return(0,I.sH)(this,void 0,void 0,function(){var n,i,o,a,s,l,u;return(0,I.YH)(this,function(c){try{n=null!=(r=this.options.expirationDays)?r:0,i=null!==t?n:-1,o=void 0,i&&((a=new Date).setTime(a.getTime()+24*i*36e5),o=a),s="".concat(e,"=").concat(btoa(encodeURIComponent(JSON.stringify(t)))),o&&(s+="; expires=".concat(o.toUTCString())),s+="; path=/",this.options.domain&&(s+="; domain=".concat(this.options.domain)),this.options.secure&&(s+="; Secure"),this.options.sameSite&&(s+="; SameSite=".concat(this.options.sameSite)),(l=F())&&(l.document.cookie=s)}catch(t){u=t instanceof Error?t.message:String(t),console.error("Amplitude Logger [Error]: Failed to set cookie for key: ".concat(e,". Error: ").concat(u))}return[2]})})},e.prototype.remove=function(e){return(0,I.sH)(this,void 0,void 0,function(){return(0,I.YH)(this,function(t){switch(t.label){case 0:return[4,this.set(e,null)];case 1:return t.sent(),[2]}})})},e.prototype.reset=function(){return(0,I.sH)(this,void 0,void 0,function(){return(0,I.YH)(this,function(e){return[2]})})},e}(),eG=function(e){try{return decodeURIComponent(atob(e))}catch(e){return}},eX=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch(e){return}},eJ=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if("object"!=typeof e)return null;var t,r,n,i,o,a,s,l,u,c,d,f,p,h,m,v,g,b,_,w,S,x,E=e.code||0,k=this.buildStatus(E);switch(k){case y.Success:return{status:k,statusCode:E,body:{eventsIngested:null!=(t=e.events_ingested)?t:0,payloadSizeBytes:null!=(r=e.payload_size_bytes)?r:0,serverUploadTime:null!=(n=e.server_upload_time)?n:0}};case y.Invalid:return{status:k,statusCode:E,body:{error:null!=(i=e.error)?i:"",missingField:null!=(o=e.missing_field)?o:"",eventsWithInvalidFields:null!=(a=e.events_with_invalid_fields)?a:{},eventsWithMissingFields:null!=(s=e.events_with_missing_fields)?s:{},eventsWithInvalidIdLengths:null!=(l=e.events_with_invalid_id_lengths)?l:{},epsThreshold:null!=(u=e.eps_threshold)?u:0,exceededDailyQuotaDevices:null!=(c=e.exceeded_daily_quota_devices)?c:{},silencedDevices:null!=(d=e.silenced_devices)?d:[],silencedEvents:null!=(f=e.silenced_events)?f:[],throttledDevices:null!=(p=e.throttled_devices)?p:{},throttledEvents:null!=(h=e.throttled_events)?h:[]}};case y.PayloadTooLarge:return{status:k,statusCode:E,body:{error:null!=(m=e.error)?m:""}};case y.RateLimit:return{status:k,statusCode:E,body:{error:null!=(v=e.error)?v:"",epsThreshold:null!=(g=e.eps_threshold)?g:0,throttledDevices:null!=(b=e.throttled_devices)?b:{},throttledUsers:null!=(_=e.throttled_users)?_:{},exceededDailyQuotaDevices:null!=(w=e.exceeded_daily_quota_devices)?w:{},exceededDailyQuotaUsers:null!=(S=e.exceeded_daily_quota_users)?S:{},throttledEvents:null!=(x=e.throttled_events)?x:[]}};case y.Timeout:default:return{status:k,statusCode:E}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?y.Success:429===e?y.RateLimit:413===e?y.PayloadTooLarge:408===e?y.Timeout:e>
2=400&&e<500?y.Invalid:e>=500?y.Failed:y.Unknown},e}(),eZ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,I.C6)(t,e),t.prototype.send=function(e,t){return(0,I.sH)(this,void 0,void 0,function(){var r,n;return(0,I.YH)(this,function(i){switch(i.label){case 0:if("u"<typeof fetch)throw Error("FetchTransport is not supported");return[4,fetch(e,{headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(t),method:"POST"})];case 1:return[4,(r=i.sent()).text()];case 2:n=i.sent();try{return[2,this.buildResponse(JSON.parse(n))]}catch(e){return[2,this.buildResponse({code:r.status})]}}})})},t}(eJ),eQ=function(){function e(e){this.storage=e}return e.prototype.isEnabled=function(){return(0,I.sH)(this,void 0,void 0,function(){var t,r,n;return(0,I.YH)(this,function(i){switch(i.label){case 0:if(!this.storage)return[2,!1];t=String(Date.now()),r=new e(this.storage),n="AMP_TEST",i.label=1;case 1:return i.trys.push([1,4,5,7]),[4,r.set(n,t)];case 2:return i.sent(),[4,r.get(n)];case 3:return[2,i.sent()===t];case 4:return i.sent(),[2,!1];case 5:return[4,r.remove(n)];case 6:return i.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){return(0,I.sH)(this,void 0,void 0,function(){var t;return(0,I.YH)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.getRaw(e)];case 1:if(!(t=r.sent()))return[2,void 0];return[2,JSON.parse(t)];case 2:return r.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}})})},e.prototype.getRaw=function(e){var t;return(0,I.sH)(this,void 0,void 0,function(){return(0,I.YH)(this,function(r){return[2,(null==(t=this.storage)?void 0:t.getItem(e))||void 0]})})},e.prototype.set=function(e,t){var r;return(0,I.sH)(this,void 0,void 0,function(){return(0,I.YH)(this,function(n){try{null==(r=this.storage)||r.setItem(e,JSON.stringify(t))}catch(e){}return[2]})})},e.prototype.remove=function(e){var t;return(0,I.sH)(this,void 0,void 0,function(){return(0,I.YH)(this,function(r){try{null==(t=this.storage)||t.removeItem(e)}catch(e){}return[2]})})},e.prototype.reset=function(){var e;return(0,I.sH)(this,void 0,void 0,function(){return(0,I.YH)(this,function(t){try{null==(e=this.storage)||e.clear()}catch(e){}return[2]})})},e}(),e0=function(e){function t(t){var r,n,i,o=this;try{i=null==(r=F())?void 0:r.localStorage}catch(e){null==(n=null==t?void 0:t.loggerProvider)||n.debug("Failed to access localStorage. error=".concat(JSON.stringify(e))),i=void 0}return(o=e.call(this,i)||this).loggerProvider=null==t?void 0:t.loggerProvider,o}return(0,I.C6)(t,e),t.prototype.set=function(t,r){var n;return(0,I.sH)(this,void 0,void 0,function(){var i;return(0,I.YH)(this,function(o){switch(o.label){case 0:if(!(Array.isArray(r)&&r.length>1e3))return[3,2];return i=r.length-1e3,[4,e.prototype.set.call(this,t,r.slice(0,1e3))];case 1:return o.sent(),null==(n=this.loggerProvider)||n.error("Failed to save ".concat(i," events because the queue length exceeded ").concat(1e3,".")),[3,4];case 2:return[4,e.prototype.set.call(this,t,r)];case 3:o.sent(),o.label=4;case 4:return[2]}})})},t}(eQ),e1=function(e){function t(){var t;return e.call(this,null==(t=F())?void 0:t.sessionStorage)||this}return(0,I.C6)(t,e),t}(eQ),e2=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={done:4},t}return(0,I.C6)(t,e),t.prototype.send=function(e,t){return(0,I.sH)(this,void 0,void 0,function(){var r=this;return(0,I.YH)(this,function(n){return[2,new Promise(function(n,i){"u"<typeof XMLHttpRequest&&i(Error("XHRTransport is not supported."));var o=new XMLHttpRequest;o.open("POST",e,!0),o.onreadystatechange=function(){if(o.readyState===r.state.done){var e=o.responseText;try{n(r.buildResponse(JSON.parse(e)))}catch(e){n(r.buildResponse({code:o.status}))}}},o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("Accept","*/*"),o.send(JSON.stringify(t))})]})})},t}(eJ),e3=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,I.C6)(t,e),t.prototype.send=function(e,t){return(0,I.sH)(this,void 0,void 0,function(){var r=this;return(0,I.YH)(this,function(n){return[2,new Promise(function(n,i){var o=F();if(!(null==o?void 0:o.navigator.sendBeacon))throw Error("SendBeaconTransport is not supported");try{var a=JSON.stringify(t);if(o.navigator.sendBeacon(e,JSON.stringify(t)))return n(r.buildResponse({code:200,events_ingested:t.events.length,payload_size_bytes:a.length,server_upload_time:Date.now()}));return n(r.buildResponse({code:500}))}catch(e){i(e)}})]})})},t}(eJ),e5=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},e4=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(e){return}},e6="[Amplitude]",e8="".concat(e6," Form Started"),e9="".concat(e6," Form Submitted"),e7="".concat(e6," File Downloaded"),te="session_start",tt="session_end",tr="".concat(e6," File Extension"),tn="".concat(e6," File Name"),ti="".concat(e6," Link ID"),to="".concat(e6," Link Text"),ta="".concat(e6," Link URL"),ts="".concat(e6," Form ID"),tl="".concat(e6," Form Name"),tu="".concat(e6," Form Destination"),tc="cookie",td=function(e){function t(t,r,n,i,o,a,s,l,u,c,d,f,p,h,m,v,y,b,_,w,S,x,E,k,C,A,P,T,I,O,R,N,L,D,M){void 0===n&&(n=new eq),void 0===i&&(i={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),void 0===l&&(l=1e3),void 0===u&&(u=5),void 0===c&&(c=30),void 0===d&&(d=tc),void 0===v&&(v=new ed),void 0===y&&(y=g.Warn),void 0===_&&(_=!1),void 0===w&&(w=!1),void 0===E&&(E=""),void 0===k&&(k="US"),void 0===A&&(A=18e5),void 0===P&&(P=new e0({loggerProvider:v})),void 0===T&&(T={ipAddress:!0,language:!0,platform:!0}),void 0===I&&(I="fetch"),void 0===O&&(O=!1),void 0===R&&(R=!0);var F=e.call(this,{apiKey:t,storageProvider:P,transportProvider:tp(I)})||this;return F.apiKey=t,F.appVersion=r,F.cookieOptions=i,F.defaultTracking=o,F.autocapture=a,F.flushIntervalMillis=l,F.flushMaxRetries=u,F.flushQueueSize=c,F.identityStorage=d,F.ingestionMetadata=f,F.instanceName=p,F.loggerProvider=v,F.logLevel=y,F.minIdLength=b,F.offline=_,F.partnerId=S,F.plan=x,F.serverUrl=E,F.serverZone=k,F.sessionTimeout=A,F.storageProvider=P,F.trackingOptions=T,F.transport=I,F.useBatch=O,F.fetchRemoteConfig=R,F.networkTrackingOptions=M,F.version=e$,F._optOut=!1,F._cookieStorage=n,F.deviceId=s,F.lastEventId=h,F.lastEventTime=m,F.optOut=w,F.sessionId=C,F.pageCounter=L,F.userId=N,F.debugLogsEnabled=D,F.loggerProvider.enable(D?g.Debug:F.logLevel),F.networkTrackingOptions=M,F}return(0,I.C6)(t,e),Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(e){this._cookieStorage!==e&&(this._cookieStorage=e,this.updateStorage())}
2,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(e){this._deviceId!==e&&(this._deviceId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(e){this._userId!==e&&(this._userId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(e){this._sessionId!==e&&(this._sessionId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut!==e&&(this._optOut=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(e){this._lastEventTime!==e&&(this._lastEventTime=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(e){this._lastEventId!==e&&(this._lastEventId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(e){this._pageCounter!==e&&(this._pageCounter=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugLogsEnabled",{set:function(e){this._debugLogsEnabled!==e&&(this._debugLogsEnabled=e,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var e={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled};this.cookieStorage.set(eW(this.apiKey),e)},t}(ep),tf=function(e,t){switch(void 0===e&&(e=tc),void 0===t&&(t={}),e){case"localStorage":return new e0;case"sessionStorage":return new e1;case"none":return new eq;default:return new eK((0,I.Cl)((0,I.Cl)({},t),{expirationDays:t.expiration}))}},tp=function(e){return"xhr"===e?new e2:"beacon"===e?new e3:new eZ},th=function(){var e="ampIntegrationContext";return"u">typeof globalThis&&void 0!==globalThis[e]?globalThis[e]:"u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof self?self:void 0!==r.g?r.g:void 0},tm=function(){var e,t=th();return(null==(e=null==t?void 0:t.location)?void 0:e.search)?t.location.search.substring(1).split("&").filter(Boolean).reduce(function(e,t){var r=t.split("=",2),n=tv(r[0]),i=tv(r[1]);return i&&(e[n]=i),e},{}):{}},tv=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},tg="dclid",ty="fbclid",tb="gbraid",t_="gclid",tw="ko_click_id",tS="li_fat_id",tx="msclkid",tE="rtd_cid",tk="ttclid",tC="twclid",tA="wbraid",tP={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},tT=function(){function e(){}return e.prototype.parse=function(){return(0,I.sH)(this,void 0,void 0,function(){return(0,I.YH)(this,function(e){return[2,(0,I.Cl)((0,I.Cl)((0,I.Cl)((0,I.Cl)({},tP),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=tm();return{utm_campaign:e.utm_campaign,utm_content:e.utm_content,utm_id:e.utm_id,utm_medium:e.utm_medium,utm_source:e.utm_source,utm_term:e.utm_term}},e.prototype.getReferrer=function(){var e,t,r={referrer:void 0,referring_domain:void 0};try{r.referrer=document.referrer||void 0,r.referring_domain=null!=(t=null==(e=r.referrer)?void 0:e.split("/")[2])?t:void 0}catch(e){}return r},e.prototype.getClickIds=function(){var e,t=tm();return(e={})[tg]=t[tg],e[ty]=t[ty],e[tb]=t[tb],e[t_]=t[t_],e[tw]=t[tw],e[tS]=t[tS],e[tx]=t[tx],e[tE]=t[tE],e[tk]=t[tk],e[tC]=t[tC],e[tA]=t[tA],e},e}();(c=x||(x={})).SET="$set",c.SET_ONCE="$setOnce",c.ADD="$add",c.APPEND="$append",c.PREPEND="$prepend",c.REMOVE="$remove",c.PREINSERT="$preInsert",c.POSTINSERT="$postInsert",c.UNSET="$unset",c.CLEAR_ALL="$clearAll",(d=E||(E={})).REVENUE_PRODUCT_ID="$productId",d.REVENUE_QUANTITY="$quantity",d.REVENUE_PRICE="$price",d.REVENUE_TYPE="$revenueType",d.REVENUE_CURRENCY="$currency",d.REVENUE="$revenue",(f=k||(k={})).IDENTIFY="$identify",f.GROUP_IDENTIFY="$groupidentify",f.REVENUE="revenue_amount";var tI=function(e){var t={};for(var r in e){var n=e[r];n&&(t[r]=n)}return t},tO=function(e){void 0===e&&(e={});var t,r,n=th(),i=void 0,o=!1,a=e.trackOn,s=e.trackHistoryChanges,l=e.eventType,u=void 0===l?"[Amplitude] Page Viewed":l,c=function(e){var t=e;try{t=decodeURI(e)}catch(e){null==i||i.error("Malformed URI sequence: ",e)}return t},d=function(){return(0,I.sH)(void 0,void 0,void 0,function(){var e,t,r;return(0,I.YH)(this,function(n){switch(n.label){case 0:return e=c("u">typeof location&&location.href||""),r={event_type:u},t=[{}],[4,tR()];case 1:return[2,(r.event_properties=I.Cl.apply(void 0,[I.Cl.apply(void 0,t.concat([n.sent()])),{"[Amplitude] Page Domain":"u">typeof location&&location.hostname||"","[Amplitude] Page Location":e,"[Amplitude] Page Path":"u">typeof location&&c(location.pathname)||"","[Amplitude] Page Title":"u">typeof document&&document.title||"","[Amplitude] Page URL":e.split("?")[0]}]),r)]}})})},f=function(){return void 0===a||"function"==typeof a&&a()},p="u">typeof location?location.href:null,h=function(){return(0,I.sH)(void 0,void 0,void 0,function(){var e,r,n,o;return(0,I.YH)(this,function(a){switch(a.label){case 0:if(r=tL(s,e=location.href,p||"")&&f(),p=e,!r)return[3,4];if(null==i||i.log("Tracking page view event"),null!=t)return[3,1];return[3,3];case 1:return o=(n=t).track,[4,d()];case 2:o.apply(n,[a.sent()]),a.label=3;case 3:a.label=4;case 4:return[2]}})})},m=function(){h()};return{name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(e,a){return(0,I.sH)(void 0,void 0,void 0,function(){var s,l;return(0,I.YH)(this,function(u){switch(u.label){case 0:if(t=a,r=e,(i=e.loggerProvider).log("Installing @amplitude/plugin-page-view-tracking-browser"),o=!0,n&&(n.addEventListener("popstate",m),n.history.pushState=new Proxy(n.history.pushState,{apply:function(e,t,r){var n=(0,I.zs)(r,3),i=n[0],a=n[1],s=n[2];e.apply(t,[i,a,s]),o&&h()}})),!f())return[3,2];return i.log("Tracking page view event"),l=(s=t).track,[4,d()];case 1:l.apply(s,[u.sent()]),u.label=2;case 2:return[2]}})})},execute:function(e){return(0,I.sH)(void 0,void 0,void 0,function(){var t;return(0,I.YH)(this,function(n){switch(n.label){case 0:if(!("attribution"===a&&tN(e)))return[3,2];
2return null==i||i.log("Enriching campaign event to page view event with campaign parameters"),[4,d()];case 1:e.event_type=(t=n.sent()).event_type,e.event_properties=(0,I.Cl)((0,I.Cl)({},e.event_properties),t.event_properties),n.label=2;case 2:return r&&e.event_type===u&&(r.pageCounter=r.pageCounter?r.pageCounter+1:1,e.event_properties=(0,I.Cl)((0,I.Cl)({},e.event_properties),{"[Amplitude] Page Counter":r.pageCounter})),[2,e]}})})},teardown:function(){return(0,I.sH)(void 0,void 0,void 0,function(){return(0,I.YH)(this,function(e){return n&&(n.removeEventListener("popstate",m),o=!1),[2]})})}}},tR=function(){return(0,I.sH)(void 0,void 0,void 0,function(){var e;return(0,I.YH)(this,function(t){switch(t.label){case 0:return e=tI,[4,new tT().parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},tN=function(e){if("$identify"===e.event_type&&e.user_properties){var t=e.user_properties,r=t[x.SET]||{},n=t[x.UNSET]||{},i=(0,I.fX)((0,I.fX)([],(0,I.zs)(Object.keys(r)),!1),(0,I.zs)(Object.keys(n)),!1);return Object.keys(tP).every(function(e){return i.includes(e)})}return!1},tL=function(e,t,r){if("pathOnly"!==e)return t!==r;if(""==r)return!0;var n=new URL(t),i=new URL(r);return n.origin+n.pathname!==i.origin+i.pathname},tD=function(){var e,t=[],r=function(e,r,n){e.addEventListener(r,n),t.push({element:e,type:r,handler:n})},n=function(){t.forEach(function(e){var t=e.element,r=e.type,n=e.handler;null==t||t.removeEventListener(r,n)}),t=[]};return{name:"@amplitude/plugin-form-interaction-tracking-browser",type:"enrichment",setup:function(t,n){return(0,I.sH)(void 0,void 0,void 0,function(){var i,o;return(0,I.YH)(this,function(a){return i=function(){if(!n)return void t.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.");if("u">typeof document){var i=function(e){var t=!1;r(e,"change",function(){var r,i=tF(e);t||n.track(e8,((r={})[ts]=tM(e.id),r[tl]=tM(e.name),r[tu]=i,r)),t=!0}),r(e,"submit",function(){var r,i,o=tF(e);t||n.track(e8,((r={})[ts]=tM(e.id),r[tl]=tM(e.name),r[tu]=o,r)),n.track(e9,((i={})[ts]=tM(e.id),i[tl]=tM(e.name),i[tu]=o,i)),t=!1})};Array.from(document.getElementsByTagName("form")).forEach(i),"u">typeof MutationObserver&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){"FORM"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("form")).map(i)})})})).observe(document.body,{subtree:!0,childList:!0})}},"complete"===document.readyState?i():(o=F())?o.addEventListener("load",i):t.loggerProvider.debug("Form interaction tracking is not installed because global is undefined."),[2]})})},execute:function(e){return(0,I.sH)(void 0,void 0,void 0,function(){return(0,I.YH)(this,function(t){return[2,e]})})},teardown:function(){return(0,I.sH)(void 0,void 0,void 0,function(){return(0,I.YH)(this,function(t){return null==e||e.disconnect(),n(),[2]})})}}},tM=function(e){if("string"==typeof e)return e},tF=function(e){var t=e.getAttribute("action");try{t=new URL(encodeURI(null!=t?t:""),window.location.href).href}catch(e){}return t},tj=function(){var e,t=[],r=function(e,r,n){e.addEventListener(r,n),t.push({element:e,type:r,handler:n})},n=function(){t.forEach(function(e){var t=e.element,r=e.type,n=e.handler;null==t||t.removeEventListener(r,n)}),t=[]};return{name:"@amplitude/plugin-file-download-tracking-browser",type:"enrichment",setup:function(t,n){return(0,I.sH)(void 0,void 0,void 0,function(){var i,o;return(0,I.YH)(this,function(a){return i=function(){if(!n)return void t.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.");if("u">typeof document){var i=function(e){try{t=new URL(e.href,window.location.href)}catch(e){return}var t,i=o.exec(t.href),a=null==i?void 0:i[1];a&&r(e,"click",function(){var r;a&&n.track(e7,((r={})[tr]=a,r[tn]=t.pathname,r[ti]=e.id,r[to]=e.text,r[ta]=e.href,r))})},o=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/;
2Array.from(document.getElementsByTagName("a")).forEach(i),"u">typeof MutationObserver&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){"A"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("a")).map(i)})})})).observe(document.body,{subtree:!0,childList:!0})}},"complete"===document.readyState?i():(o=F())?o.addEventListener("load",i):t.loggerProvider.debug("File download tracking is not installed because global is undefined."),[2]})})},execute:function(e){return(0,I.sH)(void 0,void 0,void 0,function(){return(0,I.YH)(this,function(t){return[2,e]})})},teardown:function(){return(0,I.sH)(void 0,void 0,void 0,function(){return(0,I.YH)(this,function(t){return null==e||e.disconnect(),n(),[2]})})}}},tU=!1,tB=function(e){tU||void 0!==e.defaultTracking||(e.loggerProvider.warn("`options.defaultTracking` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to `options.defaultTracking`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:\n\namplitude.init(<YOUR_API_KEY>, {\n defaultTracking: true,\n});\n\nVisit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details."),tU=!0)},tY=function(){var e=F(),t=[],r=function(r,n){(null==e?void 0:e.addEventListener)&&(null==e||e.addEventListener(r,n),t.push({type:r,handler:n}))},n=function(){t.forEach(function(t){var r=t.type,n=t.handler;null==e||e.removeEventListener(r,n)}),t=[]};return{name:"@amplitude/plugin-network-checker-browser",type:"before",setup:function(e,t){return(0,I.sH)(void 0,void 0,void 0,function(){return(0,I.YH)(this,function(n){return"u"<typeof navigator?(e.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),e.offline=!1):(e.offline=!navigator.onLine,r("online",function(){e.loggerProvider.debug("Network connectivity changed to online."),e.offline=!1,setTimeout(function(){t.flush()},e.flushIntervalMillis)}),r("offline",function(){e.loggerProvider.debug("Network connectivity changed to offline."),e.offline=!0})),[2]})})},teardown:function(){return(0,I.sH)(void 0,void 0,void 0,function(){return(0,I.YH)(this,function(e){return n(),[2]})})}}},tV=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],tH="data-amp-track-",t$=["div","span","h1","h2","h3","h4","h5","h6"];(p=C||(C={})).Unknown="unknown",p.Skipped="skipped",p.Success="success",p.RateLimit="rate_limit",p.PayloadTooLarge="payload_too_large",p.Invalid="invalid",p.Failed="failed",p.Timeout="Timeout",p.SystemError="SystemError";var tz=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if("object"!=typeof e)return null;var t,r,n,i,o,a,s,l,u,c,d,f,p,h,m,v,g,y,b,_,w,S,x=e.code||0,E=this.buildStatus(x);switch(E){case C.Success:return{status:E,statusCode:x,body:{eventsIngested:null!=(t=e.events_ingested)?t:0,payloadSizeBytes:null!=(r=e.payload_size_bytes)?r:0,serverUploadTime:null!=(n=e.server_upload_time)?n:0}};case C.Invalid:return{status:E,statusCode:x,body:{error:null!=(i=e.error)?i:"",missingField:null!=(o=e.missing_field)?o:"",eventsWithInvalidFields:null!=(a=e.events_with_invalid_fields)?a:{},eventsWithMissingFields:null!=(s=e.events_with_missing_fields)?s:{},eventsWithInvalidIdLengths:null!=(l=e.events_with_invalid_id_lengths)?l:{},epsThreshold:null!=(u=e.eps_threshold)?u:0,exceededDailyQuotaDevices:null!=(c=e.exceeded_daily_quota_devices)?c:{},silencedDevices:null!=(d=e.silenced_devices)?d:[],silencedEvents:null!=(f=e.silenced_events)?f:[],throttledDevices:null!=(p=e.throttled_devices)?p:{},throttledEvents:null!=(h=e.throttled_events)?h:[]}};case C.PayloadTooLarge:return{status:E,statusCode:x,body:{error:null!=(m=e.error)?m:""}};case C.RateLimit:return{status:E,statusCode:x,body:{error:null!=(v=e.error)?v:"",epsThreshold:null!=(g=e.eps_threshold)?g:0,throttledDevices:null!=(y=e.throttled_devices)?y:{},throttledUsers:null!=(b=e.throttled_users)?b:{},exceededDailyQuotaDevices:null!=(_=e.exceeded_daily_quota_devices)?_:{},exceededDailyQuotaUsers:null!=(w=e.exceeded_daily_quota_users)?w:{},throttledEvents:null!=(S=e.throttled_events)?S:[]}};case C.Timeout:default:return{status:E,statusCode:x}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?C.Success:429===e?C.RateLimit:413===e?C.PayloadTooLarge:408===e?C.Timeout:e>
2=400&&e<500?C.Invalid:e>=500?C.Failed:C.Unknown},e}();(h=A||(A={})).US="US",h.EU="EU",h.STAGING="STAGING";var tq="Remote config fetch rejected due to timeout after 5 seconds",tW="Unexpected error occurred",tK=function(){function e(e){var t=e.localConfig,r=e.configKeys,n=this;this.retryTimeout=1e3,this.attempts=0,this.sessionTargetingMatch=!1,this.metrics={},this.getRemoteNamespaceConfig=function(e,t){return(0,I.sH)(n,void 0,void 0,function(){var r,n,i;return(0,I.YH)(this,function(o){switch(o.label){case 0:return r=Date.now(),[4,this.fetchWithTimeout(t)];case 1:if((n=o.sent())&&(i=n.configs&&n.configs[e]))return this.metrics.fetchTimeAPISuccess=Date.now()-r,[2,i];return this.metrics.fetchTimeAPIFail=Date.now()-r,[2,void 0]}})})},this.getRemoteConfig=function(e,t,r){return(0,I.sH)(n,void 0,void 0,function(){var n;return(0,I.YH)(this,function(i){switch(i.label){case 0:return[4,this.getRemoteNamespaceConfig(e,r)];case 1:return[2,null==(n=i.sent())?void 0:n[t]]}})})},this.fetchWithTimeout=function(e){return(0,I.sH)(n,void 0,void 0,function(){var t,r,n;return(0,I.YH)(this,function(i){switch(i.label){case 0:return t=new AbortController,r=setTimeout(function(){return t.abort()},5e3),[4,this.fetchRemoteConfig(t.signal,e)];case 1:return n=i.sent(),clearTimeout(r),[2,n]}})})},this.fetchRemoteConfig=function(e,t){return(0,I.sH)(n,void 0,void 0,function(){var r,n,i,o,a,s,l,u,c,d,f;return(0,I.YH)(this,function(p){switch(p.label){case 0:if(t===this.lastFetchedSessionId&&this.attempts>=this.localConfig.flushMaxRetries)return[2,this.completeRequest({err:"Remote config fetch rejected due to exceeded retry count"})];if(e.aborted)return[2,this.completeRequest({err:tq})];t!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=t,this.attempts=0);p.label=1;
2case 1:p.trys.push([1,3,,4]),r=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(i=(n=(0,I.Ju)(this.configKeys)).next();!i.done;i=n.next())o=i.value,r.append("config_keys",o)}catch(e){c={error:e}}finally{try{i&&!i.done&&(d=n.return)&&d.call(n)}finally{if(c)throw c.error}}return t&&r.set("session_id",String(t)),a={headers:{Accept:"*/*"},method:"GET"},s="".concat(this.getServerUrl(),"?").concat(r.toString()),this.attempts+=1,[4,fetch(s,(0,I.Cl)((0,I.Cl)({},a),{signal:e}))];case 2:if(null===(l=p.sent()))return[2,this.completeRequest({err:tW})];switch(new tz().buildStatus(l.status)){case C.Success:return this.attempts=0,[2,this.parseAndStoreConfig(l)];case C.Failed:return[2,this.retryFetch(e,t)];default:return[2,this.completeRequest({err:"Network error occurred, remote config fetch failed"})]}case 3:if(u=p.sent(),e.aborted)return[2,this.completeRequest({err:tq})];return[2,this.completeRequest({err:null!=(f=u.message)?f:tW})];case 4:return[2]}})})},this.retryFetch=function(e,t){return(0,I.sH)(n,void 0,void 0,function(){var r=this;return(0,I.YH)(this,function(n){switch(n.label){case 0:return[4,new Promise(function(e){return setTimeout(e,r.attempts*r.retryTimeout)})];case 1:return n.sent(),[2,this.fetchRemoteConfig(e,t)]}})})},this.parseAndStoreConfig=function(e){return(0,I.sH)(n,void 0,void 0,function(){var t;return(0,I.YH)(this,function(r){switch(r.label){case 0:return[4,e.json()];case 1:return t=r.sent(),this.completeRequest({success:"Remote config successfully fetched"}),[2,t]}})})},this.localConfig=t,this.configKeys=r}return e.prototype.getServerUrl=function(){return this.localConfig.configServerUrl?this.localConfig.configServerUrl:this.localConfig.serverZone===A.STAGING?"https://sr-client-cfg.stag2.amplitude.com/config":this.localConfig.serverZone===A.EU?"https://sr-client-cfg.eu.amplitude.com/config":"https://sr-client-cfg.amplitude.com/config"},e.prototype.completeRequest=function(e){var t=e.err,r=e.success;if(t)throw Error(t);r&&this.localConfig.loggerProvider.log(r)},e}(),tG=function(e){var t=e.localConfig,r=e.configKeys;return(0,I.sH)(void 0,void 0,void 0,function(){return(0,I.YH)(this,function(e){return[2,new tK({localConfig:t,configKeys:r})]})})},tX="[Amplitude] Element Clicked",tJ="[Amplitude] Element Tag",tZ="[Amplitude] Element Text",tQ="[Amplitude] Page URL",t0="https://app.amplitude.com",t1={US:t0,EU:"https://app.eu.amplitude.com",STAGING:"https://apps.stag2.amplitude.com"};function t2(e){return"function"==typeof e}function t3(e){return function(t){if(t2(null==t?void 0:t.lift))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}function t5(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var t4=t5(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function t6(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var t8=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,r,n,i,o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=(0,I.Ju)(o),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);var l=this.initialTeardown;if(t2(l))try{l()}catch(e){i=e instanceof t4?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=(0,I.Ju)(u),d=c.next();!d.done;d=c.next()){var f=d.value;try{re(f)}catch(e){i=null!=i?i:[],e instanceof t4?i=(0,I.fX)((0,I.fX)([],(0,I.zs)(i)),(0,I.zs)(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}if(i)throw new t4(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)re(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(r=this._finalizers)?r:[]).push(e)}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&t6(t,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&t6(r,e),e instanceof t&&e._removeParent(this)},(e=new t).closed=!0,t.EMPTY=e,t}(),t9=t8.EMPTY;function t7(e){return e instanceof t8||e&&"closed"in e&&t2(e.remove)&&t2(e.add)&&t2(e.unsubscribe)}function re(e){t2(e)?e():e.unsubscribe()}var rt=void 0,rr={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=rr.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,(0,I.fX)([e,t],(0,I.zs)(r))):setTimeout.apply(void 0,(0,I.fX)([e,t],(0,I.zs)(r)))},clearTimeout:function(e){var t=rr.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function rn(e){rr.setTimeout(function(){!1;throw e})}function ri(){}var ro=ra("C",void 0,void 0);function ra(e,t,r){return{kind:e,value:t,error:r}}var rs=null;function rl(e){var t,r,n,i;1;e()}var ru=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,t7(t)&&t.add(r)):r.destination=rv,r}return(0,I.C6)(t,e),t.create=function(e,t,r){return new rp(e,t,r)},t.prototype.next=function(e){this.isStopped?rm(ra("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?rm(ra("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?rm(ro,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(t8),rc=Function.prototype.bind;function rd(e,t){return rc.call(e,t)}var rf=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){rh(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){rh(e)}else rh(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){rh(e)}},e}(),rp=function(e){function t(t,r,n){var i,o,a=e.call(this)||this;return t2(t)||!t?i={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:i=t,a.destination=new rf(i),a}return(0,I.C6)(t,e),t}(ru);function rh(e){1;rn(e)}function rm(e,t){}var rv={closed:!0,next:ri,error:function(e){throw e},complete:ri};function rg(e,t,r,n,i){return new ry(e,t,r,n,i)}var ry=function(e){function t(t,r,n,i,o,a){var s=e.call(this,t)||this;return s.onFinalize=o,s.shouldUnsubscribe=a,s._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return(0,I.C6)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),r||null==(t=this.onFinalize)||t.call(this)}},t}(ru);function rb(e,t){return t3(function(r,n){var i=0;r.subscribe(rg(n,function(r){n.next(e.call(t,r,i++))}))})}var r_=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function rw(e){return t2(null==e?void 0:e.then)}var rS="function"==typeof Symbol&&Symbol.observable||"@@observable";function rx(e){return e}var rE=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n=this,i=!function(e){return e&&e instanceof ru||e&&t2(e.next)&&t2(e.error)&&t2(e.complete)&&t7(e)}(e)?new rp(e,t,r):e;return rl(function(){var e=n.operator,t=n.source;i.add(e?e.call(i,t):t?n._subscribe(i):n._trySubscribe(i))}),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=rk(t))(function(t,n){var i=new rp({next:function(t){try{e(t)}catch(e){n(e),i.unsubscribe()}},error:n,complete:t});r.subscribe(i)})},e.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},e.prototype[rS]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===e.length?rx:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=rk(e))(function(e,r){var n;t.subscribe(function(e){return n=e},function(e){return r(e)},function(){return e(n)})})},e.create=function(t){return new e(t)},e}();function rk(e){var t;return null!=(t=null!=e?e:rt)?t:Promise}function rC(e){return Symbol.asyncIterator&&t2(null==e?void 0:e[Symbol.asyncIterator])}function rA(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invali
2d object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var rP="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function rT(e){return t2(null==e?void 0:e[rP])}function rI(e){return(0,I.AQ)(this,arguments,function(){var t,r,n;return(0,I.YH)(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,(0,I.N3)(t.read())];case 3:if(n=(r=i.sent()).value,!r.done)return[3,5];return[4,(0,I.N3)(void 0)];case 4:return[2,i.sent()];case 5:return[4,(0,I.N3)(n)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function rO(e){return t2(null==e?void 0:e.getReader)}function rR(e){if(e instanceof rE)return e;if(null!=e){var t,r,n,i;if(t2(e[rS])){return t=e,new rE(function(e){var r=t[rS]();if(t2(r.subscribe))return r.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")})}if(r_(e)){return r=e,new rE(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()})}if(rw(e)){return n=e,new rE(function(e){n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,rn)})}if(rC(e))return rN(e);if(rT(e)){return i=e,new rE(function(e){var t,r;try{for(var n=(0,I.Ju)(i),o=n.next();!o.done;o=n.next()){var a=o.value;if(e.next(a),e.closed)return}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}e.complete()})}if(rO(e))return rN(rI(e))}throw rA(e)}function rN(e){return new rE(function(t){(function(e,t){var r,n,i,o;return(0,I.sH)(this,void 0,void 0,function(){var a;return(0,I.YH)(this,function(s){switch(s.label){case 0:s.trys.push([0,5,6,11]),r=(0,I.xN)(e),s.label=1;case 1:return[4,r.next()];case 2:if((n=s.sent()).done)return[3,4];if(a=n.value,t.next(a),t.closed)return[2];s.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:s.sent()},[3,11];case 6:if(s.trys.push([6,,9,10]),!(n&&!n.done&&(o=r.return)))return[3,8];return[4,o.call(r)];case 7:s.sent(),s.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}var rL=t5(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),rD=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,I.C6)(t,e),t.prototype.lift=function(e){var t=new rM(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new rL},t.prototype.next=function(e){var t=this;rl(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=(0,I.Ju)(t.currentObservers),o=i.next();!o.done;o=i.next())o.value.next(e)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;rl(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;rl(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null==(e=this.observers)?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?t9:(this.currentObservers=null,i.push(e),new t8(function(){t.currentObservers=null,t6(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},t.prototype.asObservable=function(){var e=new rE;return e.source=this,e},t.create=function(e,t){return new rM(e,t)},t}(rE),rM=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return(0,I.C6)(t,e),t.prototype.next=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.next)||r.call(t,e)},t.prototype.error=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.error)||r.call(t,e)},t.prototype.complete=function(){var e,t;null==(t=null==(e=this.destination)?void 0:e.complete)||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!=(r=null==(t=this.source)?void 0:t.subscribe(e))?r:t9},t}(rD);function rF(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new rD}:t,n=e.resetOnError,i=void 0===n||n,o=e.resetOnComplete,a=void 0===o||o,s=e.resetOnRefCountZero,l=void 0===s||s;
2return function(e){var t,n,o,s=0,u=!1,c=!1,d=function(){null==n||n.unsubscribe(),n=void 0},f=function(){d(),t=o=void 0,u=c=!1},p=function(){var e=t;f(),null==e||e.unsubscribe()};return t3(function(e,h){s++,c||u||d();var m=o=null!=o?o:r();h.add(function(){0!=--s||c||u||(n=rj(p,l))}),m.subscribe(h),!t&&s>0&&(t=new rp({next:function(e){return m.next(e)},error:function(e){c=!0,d(),n=rj(f,i,e),m.error(e)},complete:function(){u=!0,d(),n=rj(f,a),m.complete()}}),rR(e).subscribe(t))})(e)}}function rj(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(!0===t)return void e();if(!1!==t){var i=new rp({next:function(){i.unsubscribe(),e()}});return rR(t.apply(void 0,(0,I.fX)([],(0,I.zs)(r)))).subscribe(i)}}function rU(e,t,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!i)return o}function rB(e,t,r){return(void 0===r&&(r=1/0),t2(t))?rB(function(r,n){return rb(function(e,i){return t(r,e,n,i)})(rR(e(r,n)))},r):("number"==typeof t&&(r=t),t3(function(t,n){var i,o,a,s,l,u,c,d;return i=r,o=[],a=0,s=0,l=!1,u=function(){!l||o.length||a||n.complete()},c=function(e){return a<i?d(e):o.push(e)},d=function(t){a++;var r=!1;rR(e(t,s++)).subscribe(rg(n,function(e){n.next(e)},function(){r=!0},void 0,function(){if(r)try{for(a--;o.length&&a<i;)!function(){var e=o.shift();d(e)}();u()}catch(e){n.error(e)}}))},t.subscribe(rg(n,c,function(){l=!0,u()})),function(){}}))}var rY=Array.isArray,rV=["addListener","removeListener"],rH=["addEventListener","removeEventListener"],r$=["on","off"];function rz(e,t,r,n){if(t2(r)&&(n=r,r=void 0),n){return rz(e,t,r).pipe((i=n,rb(function(e){return rY(e)?i.apply(void 0,(0,I.fX)([],(0,I.zs)(e))):i(e)})))}var i,o,a,s,l=(0,I.zs)(t2((o=e).addEventListener)&&t2(o.removeEventListener)?rH.map(function(n){return function(i){return e[n](t,i,r)}}):t2((a=e).addListener)&&t2(a.removeListener)?rV.map(rq(e,t)):t2((s=e).on)&&t2(s.off)?r$.map(rq(e,t)):[],2),u=l[0],c=l[1];if(!u&&r_(e))return rB(function(e){return rz(e,t,r)})(rR(e));if(!u)throw TypeError("Invalid event target");return new rE(function(e){var t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1<t.length?t:t[0])};return u(t),function(){return c(t)}})}function rq(e,t){return function(r){return function(n){return e[r](t,n)}}}var rW=["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot"],rK=["type"],rG=["svg","path","g"],rX=["password","hidden"],rJ=function(e){return e?function(e){for(var t=0,r=0;r<e.length;r++){var n=e[r];if(null===n)t+=4;else{var i=function e(t,r){void 0===r&&(r=!1);try{if(null==t){if(r)return"None";return null}if("string"==typeof t){if(r){if((t=t.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r")).includes('"'))return"'".concat(t,"'");if(t.includes("'"))return'"'.concat(t.replace(/'/g,"\\'"),'"');return"'".concat(t,"'")}return t}if("boolean"==typeof t)return t?"True":"False";else if(Array.isArray(t)){var n=t.map(function(t){return e(t,!0)});return"[".concat(n.join(", "),"]")}else if("object"==typeof t){var i=Object.entries(t).filter(function(e){var t=(0,I.zs)(e,1)[0];return null!=t}).map(function(t){var r=(0,I.zs)(t,2),n=r[0],i=r[1];return"".concat(String(e(n,!0)),": ").concat(String(e(i,!0)))}),o="{".concat(i.join(", "),"}");return o.includes("\\'")&&(o=o.replace(/'/g,"'").replace(/'/g,"\\'")),o}return t.toString()}catch(e){return null}}(n);t+=i?Array.from(i).length:4}if(t>1024)return e.slice(0,r)}return e}((function(e){var t=[];if(!e)return t;
2t.push(e);for(var r=e.parentElement;r&&"HTML"!==r.tagName;)t.push(r),r=r.parentElement;return t})(e).map(function(e){return function(e){if(null===e)return null;var t,r,n,i,o,a,s=String(e.tagName).toLowerCase(),l={tag:s},u=Array.from(null!=(i=null==(n=e.parentElement)?void 0:n.children)?i:[]);u.length&&(l.index=u.indexOf(e),l.indexOfType=u.filter(function(t){return t.tagName===e.tagName}).indexOf(e));var c=null==(a=null==(o=e.previousElementSibling)?void 0:o.tagName)?void 0:a.toLowerCase();c&&(l.prevSib=String(c));var d=e.getAttribute("id");d&&(l.id=String(d));var f=Array.from(e.classList);f.length&&(l.classes=f);var p={},h=Array.from(e.attributes).filter(function(e){return!rW.includes(e.name)}),m=!r2(e);if(!rX.includes(String(e.getAttribute("type")))&&!rG.includes(s))try{for(var v=(0,I.Ju)(h),g=v.next();!g.done;g=v.next()){var y=g.value;(!m||rK.includes(y.name))&&(p[y.name]=String(y.value).substring(0,128))}}catch(e){t={error:e}}finally{try{g&&!g.done&&(r=v.return)&&r.call(v)}finally{if(t)throw t.error}}return Object.keys(p).length&&(l.attrs=p),l}(e)})):[]},rZ=["input","select","textarea"],rQ=function(e,t){var r,n=null==(r=null==window?void 0:window.getComputedStyle)?void 0:r.call(window,e);return(null==n?void 0:n.getPropertyValue("cursor"))==="pointer"&&"click"===t},r0=function(e,t,r){return void 0===r&&(r=!1),function(n,i){var o,a,s=e.pageUrlAllowlist,l=e.shouldTrackEventResolver,u=null==(a=null==(o=null==i?void 0:i.tagName)?void 0:o.toLowerCase)?void 0:a.call(o);if(!u)return!1;if(l)return l(n,i);if(!r5(window.location.href,s))return!1;var c=String(null==i?void 0:i.getAttribute("type"))||"";if("string"==typeof c)switch(c.toLowerCase()){case"hidden":case"password":return!1}var d=rQ(i,n);if(r&&d)return!0;if(t&&!t.some(function(e){var t;return!!(null==(t=null==i?void 0:i.matches)?void 0:t.call(i,e))}))return!1;switch(u){case"input":case"select":case"textarea":return"change"===n||"click"===n;default:if(d)return!0;return"click"===n}}},r1=function(e){if(null==e)return!1;if("string"==typeof e&&(/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))return!1;return!0},r2=function(e){var t,r,n,i=null==(r=null==(t=null==e?void 0:e.tagName)?void 0:t.toLowerCase)?void 0:r.call(t),o=e instanceof HTMLElement&&(null==(n=e.getAttribute("contenteditable"))?void 0:n.toLowerCase())==="true";return!rZ.includes(i)&&!o},r3=function(e){var t="";return r2(e)&&e.childNodes&&e.childNodes.length&&e.childNodes.forEach(function(e){var r="";e&&3===e.nodeType?e.textContent&&(r=e.textContent):r=r3(e),t+=r.split(/(\s+)/).filter(r1).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}),t},r5=function(e,t){return!t||!t.length||t.some(function(t){return"string"==typeof t?e===t:e.match(t)})},r4=function(e){return Object.keys(e).reduce(function(t,r){var n=e[r];return null!=n&&("object"!=typeof n||0!==Object.keys(n).length)&&("string"!=typeof n||0!==n.trim().length)&&(t[r]=n),t},{})},r6=function(e){var t,r=e.parentElement;if(!r)return"";try{t=r.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch(e){t=null}if(t){var n=t.textContent||"";return r1(n)?n:""}return r6(r)},r8=function(e,t){return e?t.some(function(t){var r;return null==(r=null==e?void 0:e.matches)?void 0:r.call(e,t)})?e:r8(null==e?void 0:e.parentElement,t):null},r9=function(e){if(!e)return{};var t,r,n,i=null==(n=null==(r=null==e?void 0:e.tagName)?void 0:r.toLowerCase)?void 0:n.call(r);return r4(((t={})[tJ]=i,t[tZ]=r3(e),t[tQ]=window.location.href.split("?")[0],t))},r7=function(e){return null!==e.event.target&&!!e.closestTrackedAncestor},ne=function(e,t,r){var n,i,o,a=null==(o=null==(i=null==t?void 0:t.tagName)?void 0:i.toLowerCase)?void 0:o.call(i),s="function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{left:null,top:null},l=t.getAttribute("aria-label"),u=t.getAttributeNames().reduce(function(e,n){if(n.startsWith(r)){var i=n.replace(r,""),o=t.getAttribute(n);i&&(e[i]=o||"")}return e},{}),c=r6(t),d=((n={})["[Amplitude] Element ID"]=t.getAttribute("id")||"",n["[Amplitude] Element Class"]=t.getAttribute("class"),n["[Amplitude] Element Hierarchy"]=rJ(t),n[tJ]=a,n[tZ]=r3(t),n["[Amplitude] Element Position Left"]=null==s.left?null:Math.round(s.left),n["[Amplitude] Element Position Top"]=null==s.top?null:Math.round(s.top),n["[Amplitude] Element Aria Label"]=l,n["[Amplitude] Element Attributes"]=u,n["[Amplitude] Element Parent Label"]=c,n[tQ]=window.location.href.split("?")[0],n["[Amplitude] Page Title"]="u">typeof document&&document.title||"",n["[Amplitude] Viewport Height"]=window.innerHeight,n["[Amplitude] Viewport Width"]=window.innerWidth,n);return"a"===a&&"click"===e&&t instanceof HTMLAnchorElement&&(d["[Amplitude] Element Href"]=t.href),r4(d)},nt=function(e,t,r,n,i){void 0===i&&(i=!1);var o,a={event:e,timestamp:Date.now(),type:t};if(("click"===(o=a).type||"change"===o.type)&&null!==a.event.target){if(i&&rQ(a.event.target,a.type))return a.closestTrackedAncestor=a.event.target,a.targetElementProperties=ne(a.type,a.closestTrackedAncestor,n),a;var s=r8(a.event.target,r);s&&(a.closestTrackedAncestor=s,a.targetElementProperties=ne(a.type,s,n))}return a},nr=function(e,t){if("DOM_ELEMENT"===e.sourceType){var r=document.documentElement;return(e.scope&&t&&(r=t.closest(e.scope)),r&&e.selector)?r.querySelector(e.selector):r}},nn=function(e,t){if("DOM_ELEMENT"===e.sourceType){var r=nr(e,t);if(r){if("TEXT"===e.elementExtractType)return r.textContent;if("ATTRIBUTE"===e.elementExtractType&&e.attribute)return r.getAttribute(e.attribute)}}},ni=function(e,t){e.forEach(function(e){if("string"!=typeof e&&"ATTACH_EVENT_PROPERTY"===e.actionType){var r=nn(e.dataSource,t.closestTrackedAncestor);t.targetElementProperties[e.destinationKey]=r}})},no=function(){function e(e){var t=(void 0===e?{}:e).origin,r=this;this.endpoint=t0,this.requestCallbacks={},this.onSelect=function(e){r.notify({action:"element-selected",data:e})},this.onTrack=function(e,t){"selector-mode-changed"===e?r.notify({action:"track-selector-mode-changed",data:t}):"selector-moved"===e&&r.notify({action:"track-selector-moved",data:t})},this.endpoint=void 0===t?t0:t}return e.prototype.notify=function(e){var t,r,n,i;null==(r=null==(t=this.logger)?void 0:t.debug)||r.call(t,"Message sent: ",JSON.stringify(e)),null==(i=null==(n=window.opener)?void 0:n.postMessage)||i.call(n,e,this.endpoint)},e.prototype.sendRequest=function(e,t,r){var n=this;void 0===r&&(r={timeout:15e3});var i="".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9)),o={id:i,action:e,args:t};return new Promise(function(t,a){n.requestCallbacks[i]={resolve:t,reject:a},n.notify(o),(null==r?void 0:r.timeout)>0&&setTimeout(function(){a(Error("".concat(e," timed out (id: ").concat(i,")"))),delete n.requestCallbacks[i]},r.timeout)})},e.prototype.handleResponse=function(e){var t;if(!this.requestCallbacks[e.id]){null==(t=this.logger)||t.warn("No callback found for request id: ".concat(e.id));return}this.requestCallbacks[e.id].resolve(e.responseData),delete this.requestCallbacks[e.id]},e.prototype.setup=function(e){var t=this,r=void 0===e?{}:e,n=r.logger,i=r.endpoint,o=r.isElementSelectable,a=r.cssSelectorAllowlist,s=r.actionClickAllowlist;this.logger=n,i&&this.endpoint===t0&&(this.endpoint=i);var l=null;window.addEventListener("message",function(e){if(null==(n=null==(r=t.logger)?void 0:r.debug)||n.call(r,"Message received: ",JSON.stringify(e)),t.endpoint===e.origin){var r,n,i,u,c,d=null==e?void 0:e.data,f=null==d?void 0:d.action;if(f)if("id"in d)null==(u=null==(i=t.logger)?void 0:i.debug)||u.call(i,"Received Response to previous request: ",JSON.stringify(e)),t.handleResponse(d);else if("ping"===f)t.notify({action:"pong"});else if("initialize-visual-tagging-selector"===f){var p,h=null==d?void 0:d.data;(p="https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz",new Promise(function(e,t){var r;try{var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src=p,n.addEventListener("load",function(){e({status:!0})},{once:!0}),n.addEventListener("error",function(){t({status:!1,message:"Failed to load the script ".concat(p)})}),null==(r=document.head)||r.appendChild(n)}catch(e){t(e)}})).then(function(){var e;l=null==(e=null==window?void 0:window.amplitudeVisualTaggingSelector)?void 0:e.call(window,{getEventTagProps:r9,isElementSelectable:function(e){return!o||o((null==h?void 0:h.actionType)||"click",e)},onTrack:t.onTrack,onSelect:t.onSelect,visualHighlightClass:"amp-visual-tagging-selector-highlight",messenger:t,cssSelectorAllowlist:a,actionClickAllowlist:s,extractDataFromDataSource:nn}),t.notify({action:"selector-loaded"})}).catch(function(){var e;null==(e=t.logger)||e.warn("Failed to initialize visual tagging selector")})}else"close-visual-tagging-selector"===f&&(null==(c=null==l?void 0:l.close)||c.call(l))}}),this.notify({action:"page-loaded"})},e}();function na(e,t){return t3(function(r,n){var i=0;r.subscribe(rg(n,function(r){return e.call(t,r,i++)&&n.next(r)}))})}var ns=function(e){function t(t,r){return e.call(this)||this}return(0,I.C6)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(t8),nl={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=nl.delegate;return(null==i?void 0:i.setInterval)?i.setInterval.apply(i,(0,I.fX)([e,t],(0,I.zs)(r))):setInterval.apply(void 0,(0,I.fX)([e,t],(0,I.zs)(r)))},clearInterval:function(e){var t=nl.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},nu=function(e){function t(t,r){var n=e.call(this,t,r)||this;
2return n.scheduler=t,n.work=r,n.pending=!1,n}return(0,I.C6)(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r,n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=null!=(r=this.id)?r:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),nl.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&nl.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,t6(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(ns),nc={now:function(){return(nc.delegate||Date).now()},delegate:void 0},nd=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=nc.now,e}(),nf=new(function(e){function t(t,r){void 0===r&&(r=nd.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return(0,I.C6)(t,e),t.prototype.flush=function(e){var t,r=this.actions;if(this._active)return void r.push(e);this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,t){for(;e=r.shift();)e.unsubscribe();throw t}},t}(nd))(nu);function np(e){return void 0===e&&(e=1/0),rB(rx,e)}var nh=new rE(function(e){return e.complete()});function nm(e){return e&&t2(e.schedule)}function nv(e){return e[e.length-1]}function ng(e){return nm(nv(e))?e.pop():void 0}function ny(e,t){return void 0===t&&(t=0),t3(function(r,n){r.subscribe(rg(n,function(r){return rU(n,e,function(){return n.next(r)},t)},function(){return rU(n,e,function(){return n.complete()},t)},function(r){return rU(n,e,function(){return n.error(r)},t)}))})}function nb(e,t){return void 0===t&&(t=0),t3(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function n_(e,t){if(!e)throw Error("Iterable cannot be null");return new rE(function(r){rU(r,t,function(){var n=e[Symbol.asyncIterator]();rU(r,t,function(){n.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}function nw(e,t){return t?function(e,t){if(null!=e){if(t2(e[rS]))return rR(e).pipe(nb(t),ny(t));if(r_(e))return new rE(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})});if(rw(e))return rR(e).pipe(nb(t),ny(t));if(rC(e))return n_(e,t);if(rT(e))return new rE(function(r){var n;return rU(r,t,function(){n=e[rP](),rU(r,t,function(){var e,t,i;try{t=(e=n.next()).value,i=e.done}catch(e){r.error(e);return}i?r.complete():r.next(t)},0,!0)}),function(){return t2(null==n?void 0:n.return)&&n.return()}});if(rO(e))return n_(rI(e),t)}throw rA(e)}(e,t):rR(e)}function nS(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=ng(t),i=(e=1/0,"number"==typeof nv(t)?t.pop():e);return t.length?1===t.length?rR(t[0]):np(i)(nw(t,n)):nh}function nx(e){return e<=0?function(){return nh}:t3(function(t,r){var n=0;t.subscribe(rg(r,function(t){++n<=e&&(r.next(t),e<=n&&r.complete())}))})}function nE(e){return e instanceof Date&&!isNaN(e)}function nk(e,t,r){void 0===e&&(e=0),void 0===r&&(r=nf);var n=-1;return null!=t&&(nm(t)?r=t:n=t),new rE(function(t){var i=nE(e)?e-r.now():e;i<0&&(i=0);var o=0;return r.schedule(function(){t.closed||(t.next(o++),0<=n?this.schedule(void 0,n):t.complete())},i)})}var nC=t5(function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function nA(e){throw new nC(e)}var nP=function(){return new rE(function(e){var t=new MutationObserver(function(t){e.next(t)});return t.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return t.disconnect()}})},nT=function(e){return void 0===e&&(e="click"),rz(document,e,{capture:!0})},nI=function(e,t){try{if("[Amplitude] Element Text"===t.subprop_key)return"is"===t.subprop_op&&t.subprop_value.includes(e.targetElementProperties["[Amplitude] Element Text"]);if("[Amplitude] Element Hierarchy"===t.subprop_key)return"autotrack css match"===t.subprop_op&&!!e.closestTrackedAncestor.closest(t.subprop_value.toString())}catch(e){console.error("Error matching event to filter",e)}return!1},nO={"[Amplitude] Element Clicked":"click","[Amplitude] Element Changed":"change"},nR=function(e){var t,r,n,i,o=Object.values(nO).reduce(function(e,t){return e[t]=new Set,e},{});if(!e)return o;try{for(var a=(0,I.Ju)(e),s=a.next();!s.done;s=a.next()){var l=s.value;try{try{for(var u=(n=void 0,(0,I.Ju)(l.definition)),c=u.next();!c.done;c=u.next()){var d=nO[c.value.event_type];d&&o[d].add(l.id)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}catch(e){console.warn("Skipping Labeled Event due to malformed definition",null==l?void 0:l.id,e)}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return o},nN=function(e){var t,r,n,i,o=new Map;try{for(var a=(0,I.Ju)(e),s=a.next();!s.done;s=a.next()){var l=s.value;try{for(var u=(n=void 0,(0,I.Ju)(l.conditions)),c=u.next();!c.done;c=u.next()){var d=c.value;if("LABELED_EVENT"===d.type){var f=d.match.eventId,p=o.get(f);p||(p=[],o.set(f,p)),p.push(l)}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return o},nL=function(e,t){var r,n,i,o,a=new Set;try{for(var s=(0,I.Ju)(e),l=s.next();!l.done;l=s.next()){var u=l.value,c=t.get(u.id);if(c)try{for(var d=(i=void 0,(0,I.Ju)(c)),f=d.next();!f.done;f=d.next()){var p=f.value;a.add(p)}}catch(e){i={error:e}}
2finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return Array.from(a)},nD=function(){function e(e,t,r){this.groupedLabeledEvents=e,this.labeledEventToTriggerMap=t,this.options=r}return e.prototype.evaluate=function(e){var t,r,n=this.options.pageActions;if(!n)return e;var i=nL(Array.from(this.groupedLabeledEvents[e.type]).map(function(e){return n.labeledEvents[e]}).filter(function(t){return t.definition.some(function(t){return nO[t.event_type]===e.type&&t.filters.every(function(t){return nI(e,t)})})}),this.labeledEventToTriggerMap);try{for(var o=(0,I.Ju)(i),a=o.next();!a.done;a=o.next()){var s=a.value;ni(s.actions,e)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return e},e.prototype.update=function(e,t,r){this.groupedLabeledEvents=e,this.labeledEventToTriggerMap=t,this.options=r},e}();(m=P||(P={})).ClickObservable="clickObservable",m.ChangeObservable="changeObservable",m.NavigateObservable="navigateObservable",m.MutationObservable="mutationObservable";var nM=function(e){void 0===e&&(e={});var t,r,n,i,o,a,s,l=e.dataAttributePrefix,u=void 0===l?tH:l,c=e.visualTaggingOptions,d=void 0===c?{enabled:!0,messenger:new no}:c;e.cssSelectorAllowlist=null!=(t=e.cssSelectorAllowlist)?t:tV,e.actionClickAllowlist=null!=(r=e.actionClickAllowlist)?r:t$,e.debounceTime=null!=(n=e.debounceTime)?n:0;var f="@amplitude/plugin-autocapture-browser",p=[],h=function(){var t,r,n=nT().pipe(rb(function(t){return nt(t,"click",e.cssSelectorAllowlist,u)}),rF()),i=rz(document,"change",{capture:!0}).pipe(rb(function(t){return nt(t,"change",e.cssSelectorAllowlist,u)}),rF());window.navigation&&(r=rz(window.navigation,"navigate").pipe(rb(function(t){return nt(t,"navigate",e.cssSelectorAllowlist,u)}),rF()));var o=nP().pipe(rb(function(t){return nt(t,"mutation",e.cssSelectorAllowlist,u)}),rF());return(t={})[P.ClickObservable]=n,t[P.ChangeObservable]=i,t[P.NavigateObservable]=r,t[P.MutationObservable]=o,t},m=nR(Object.values(null!=(o=null==(i=e.pageActions)?void 0:i.labeledEvents)?o:{})),v=nN(null!=(s=null==(a=e.pageActions)?void 0:a.triggers)?s:[]),g=new nD(m,v,e),y=function(t){var r,n;t&&(e.pageActions=(0,I.Cl)((0,I.Cl)({},e.pageActions),t),m=nR(Object.values(null!=(r=e.pageActions.labeledEvents)?r:{})),v=nN(null!=(n=e.pageActions.triggers)?n:[]),g.update(m,v,e))};return{name:f,type:"enrichment",setup:function(t,r){return(0,I.sH)(void 0,void 0,void 0,function(){var n,i,o,a,s,l,c,m,v,b;return(0,I.YH)(this,function(_){var w,S,x,E,k,C,A,P,T,O,R,N,L,D,M,F,j,U,B,Y,V,H,$,z,q,W,K,G,X,J,Z,Q;return"u"<typeof document?[2]:(t.fetchRemoteConfig&&tG({localConfig:t,configKeys:["analyticsSDK.pageActions"]}).then(function(e){return(0,I.sH)(void 0,void 0,void 0,function(){var r,n;return(0,I.YH)(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,e.getRemoteConfig("analyticsSDK","pageActions")];case 1:return y(i.sent()),[3,3];case 2:return r=i.sent(),null==(n=null==t?void 0:t.loggerProvider)||n.error("Failed to fetch remote config: ".concat(String(r))),[3,3];case 3:return[2]}})})}).catch(function(e){var r;null==(r=null==t?void 0:t.loggerProvider)||r.error("Failed to create remote config fetch: ".concat(String(e)))}),n=r0(e,e.cssSelectorAllowlist),i=r0(e,e.actionClickAllowlist),S=(w={allObservables:o=h(),options:e,amplitude:r,shouldTrackEvent:n,evaluateTriggers:g.evaluate.bind(g)}).amplitude,x=w.allObservables,E=w.options,k=w.shouldTrackEvent,C=w.evaluateTriggers,O=nS((A=x.clickObservable).pipe(t3(function(e,t){var r,n=!1;e.subscribe(rg(t,function(e){var i=r;r=e,n&&t.next([i,e]),n=!0}))}),na(function(e){var t=(0,I.zs)(e,2),r=t[0],n=t[1],i=r.event.target!==n.event.target,o=20>=Math.abs(n.event.screenX-r.event.screenX)&&20>=Math.abs(n.event.screenY-r.event.screenY);return i&&!o})),A.pipe((P=E.debounceTime,void 0===T&&(T=nf),t3(function(e,t){var r=null,n=null,i=null,o=function(){if(r){r.unsubscribe(),r=null;var e=n;n=null,t.next(e)}};function a(){var e=i+P,n=T.now();if(n<e){r=this.schedule(void 0,e-n),t.add(r);return}o()}e.subscribe(rg(t,function(e){n=e,i=T.now(),r||(r=T.schedule(a,P),t.add(r))},function(){o(),t.complete()},void 0,function(){n=r=null}))})),rb(function(){return"timeout"}))),a=A.pipe((void 0===R&&(R=nf),N=nk(0,R),function e(t,r){return r?function(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return np(1)(nw(e,ng(e)))}(r.pipe(nx(1),t3(function(e,t){e.subscribe(rg(t,ri))})),n.pipe(e(t)))}:rB(function(e,r){return rR(t(e,r)).pipe(nx(1),rb(function(){return e}))})}(function(){return N})),na(r7),na(function(e){return k("click",e.closestTrackedAncestor)}),rb(function(e){return C(e)}),t3(function(e,t){var r=[];return e.subscribe(rg(t,function(e){return r.push(e)},function(){t.next(r),t.complete()}
2)),rR(O).subscribe(rg(t,function(){var e=r;r=[],t.next(e)},ri)),function(){r=null}})).subscribe(function(e){var t,r,n=(e.length,tX);try{for(var i=(0,I.Ju)(e),o=i.next();!o.done;o=i.next()){var a=o.value;null==S||S.track(n,a.targetElementProperties)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}),p.push(a),D=(L={allObservables:o,getEventProperties:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ne.apply(void 0,(0,I.fX)((0,I.fX)([],(0,I.zs)(e),!1),[u],!1))},amplitude:r,shouldTrackEvent:n,evaluateTriggers:g.evaluate.bind(g)}).amplitude,M=L.allObservables,F=L.getEventProperties,j=L.shouldTrackEvent,U=L.evaluateTriggers,s=M.changeObservable.pipe(na(r7),na(function(e){return j("change",e.closestTrackedAncestor)}),rb(function(e){return U(e)})).subscribe(function(e){null==D||D.track("[Amplitude] Element Changed",F("change",e.closestTrackedAncestor))}),p.push(s),Y=(B={allObservables:o,options:e,getEventProperties:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ne.apply(void 0,(0,I.fX)((0,I.fX)([],(0,I.zs)(e),!1),[u],!1))},amplitude:r,shouldTrackEvent:n,shouldTrackActionClick:i}).amplitude,V=B.allObservables,H=B.options,$=B.getEventProperties,z=B.shouldTrackEvent,q=B.shouldTrackActionClick,W=V.clickObservable,K=V.mutationObservable,G=V.navigateObservable,X=W.pipe(na(function(e){return!z("click",e.closestTrackedAncestor)}),rb(function(e){var t=r8(e.event.target,H.actionClickAllowlist);return e.closestTrackedAncestor=t,null!==e.closestTrackedAncestor&&(e.targetElementProperties=$(e.type,e.closestTrackedAncestor)),e}),na(r7),na(function(e){return q("click",e.closestTrackedAncestor)})),J=[K],G&&J.push(G),Z=nS.apply(void 0,(0,I.fX)([],(0,I.zs)(J),!1)),l=X.pipe((Q=function(e){return Z.pipe(nx(1),function(e){var t=nE(e)?{first:e}:"number"==typeof e?{each:e}:e,r=t.first,n=t.each,i=t.with,o=void 0===i?nA:i,a=t.scheduler,s=void 0===a?nf:a,l=t.meta,u=void 0===l?null:l;if(null==r&&null==n)throw TypeError("No timeout provided.");return t3(function(e,t){var i,a,l=null,c=0,d=function(e){a=rU(t,s,function(){try{i.unsubscribe(),rR(o({meta:u,lastValue:l,seen:c})).subscribe(t)}catch(e){t.error(e)}},e)};i=e.subscribe(rg(t,function(e){null==a||a.unsubscribe(),c++,t.next(l=e),n>0&&d(n)},void 0,void 0,function(){(null==a?void 0:a.closed)||null==a||a.unsubscribe(),l=null})),c||d(null!=r?"number"==typeof r?r:r-s.now():n)})}({first:500,with:function(){return nh}}),rb(function(){return e}))},t3(function(e,t){var r=null,n=0,i=!1,o=function(){return i&&!r&&t.complete()};e.subscribe(rg(t,function(e){null==r||r.unsubscribe(),rR(Q(e,n++)).subscribe(r=rg(t,function(e){return t.next(e)},function(){r=null,o()}))},function(){i=!0,o()}))}))).subscribe(function(e){null==Y||Y.track(tX,$("click",e.closestTrackedAncestor))}),p.push(l),null==(v=null==t?void 0:t.loggerProvider)||v.log("".concat(f," has been successfully added.")),window.opener&&d.enabled&&(c=e.cssSelectorAllowlist,m=e.actionClickAllowlist,null==(b=d.messenger)||b.setup((0,I.Cl)((0,I.Cl)({logger:null==t?void 0:t.loggerProvider},(null==t?void 0:t.serverZone)&&{endpoint:t1[t.serverZone]}),{isElementSelectable:r0(e,(0,I.fX)((0,I.fX)([],(0,I.zs)(c),!1),(0,I.zs)(m),!1)),cssSelectorAllowlist:c,actionClickAllowlist:m}))),[2])})})},execute:function(e){return(0,I.sH)(void 0,void 0,void 0,function(){return(0,I.YH)(this,function(t){return[2,e]})})},teardown:function(){return(0,I.sH)(void 0,void 0,void 0,function(){var e,t,r,n;return(0,I.YH)(this,function(i){try{for(t=(e=(0,I.Ju)(p)).next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){r={error:e}}finally{try{t&&!t.done&&(n=e.return)&&n.call(e)}finally{if(r)throw r.error}}return[2]})})}}},nF=(0,I.fX)(['input[type="button"]','input[type="submit"]','input[type="reset"]','input[type="image"]','input[type="file"]'],(0,I.zs)(["a","button",'[role="button"]','[role="link"]','[role="menuitem"]','[role="menuitemcheckbox"]','[role="menuitemradio"]','[role="option"]','[role="tab"]','[role="treeitem"]','[contenteditable="true" i]']),!1),nj=["*"],nU=Array.isArray,nB=function(e){void 0===e&&(e={});var t,r,n,i,o,a="@amplitude/plugin-frustration-browser",s=[],l=null!=(r=null==(t=e.rageClicks)?void 0:t.cssSelectorAllowlist)?r:nj,u=null!=(i=null==(n=e.deadClicks)?void 0:n.cssSelectorAllowlist)?i:nF,c=null!=(o=e.dataAttributePrefix)?o:tH,d=(0,I.fX)([],(0,I.zs)(new Set((0,I.fX)((0,I.fX)([],(0,I.zs)(l),
2!1),(0,I.zs)(u),!1))),!1),f=function(){var e,t,r=nT("pointerdown").pipe(rb(function(e){return nt(e,"click",d,c,!0)}),rF());window.navigation&&(t=rz(window.navigation,"navigate").pipe(rb(function(e){return nt(e,"navigate",d,c)}),rF()));var n=nP().pipe(rb(function(e){return nt(e,"mutation",d,c)}),rF());return(e={})[P.ClickObservable]=r,e[P.ChangeObservable]=new rE,e[P.NavigateObservable]=t,e[P.MutationObservable]=n,e};return{name:a,type:"enrichment",setup:function(t,r){return(0,I.sH)(void 0,void 0,void 0,function(){var n,i,o,d,p,h;return(0,I.YH)(this,function(m){var v,g,y,b,_,w,S,x,E,k,C,A,P,T,O,R,N,L,D,M,F;return"u"<typeof document?[2]:(n=r0(e,l),i=r0(e,u),g=(v={allObservables:o=f(),amplitude:r,shouldTrackRageClick:n}).amplitude,y=v.allObservables,b=v.shouldTrackRageClick,_=y.clickObservable,w=[],d=_.pipe(na(r7),na(function(e){return b("click",e.closestTrackedAncestor)}),rb(function(e){var t=e.timestamp;w.length>0&&w[w.length-1].closestTrackedAncestor!==e.closestTrackedAncestor&&w.splice(0,w.length);for(var r=0;r<w.length&&!(t-w[r].timestamp<1e3);r++);if(w.splice(0,r),w.push(e),w.length<4)return null;var n=w[0],i=w[w.length-1],o=(0,I.Cl)({"[Amplitude] Begin Time":new Date(n.timestamp).toISOString(),"[Amplitude] End Time":new Date(i.timestamp).toISOString(),"[Amplitude] Duration":i.timestamp-n.timestamp,"[Amplitude] Clicks":w.map(function(e){return{X:e.event.clientX,Y:e.event.clientY,Time:e.timestamp}}),"[Amplitude] Click Count":w.length},n.targetElementProperties);return w.splice(0,w.length),{rageClickEvent:o,time:n.timestamp}}),na(function(e){return null!==e})).subscribe(function(e){null!==e&&g.track("[Amplitude] Rage Click",e.rageClickEvent,{time:e.time})}),s.push(d),x=(S={amplitude:r,allObservables:o,getEventProperties:function(e,t){return ne(e,t,c)},shouldTrackDeadClick:i}).amplitude,E=S.allObservables,k=S.getEventProperties,C=S.shouldTrackDeadClick,A=E.clickObservable,P=E.mutationObservable,T=E.navigateObservable,O=A.pipe(na(r7),na(function(e){return C("click",e.closestTrackedAncestor)})),R=[P],T&&R.push(T),N=nS.apply(void 0,(0,I.fX)([],(0,I.zs)(R),!1)),p=O.pipe(rB(function(e){var t;return(function(){for(var e,t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return 1===(r=1===(t=r).length&&nU(t[0])?t[0]:t).length?rR(r[0]):new rE((e=r,function(t){for(var r=[],n=function(n){r.push(rR(e[n]).subscribe(rg(t,function(e){if(r){for(var i=0;i<r.length;i++)i!==n&&r[i].unsubscribe();r=null}t.next(e)})))},i=0;r&&!t.closed&&i<e.length;i++)n(i)}))})(new rE(function(r){return t=setTimeout(function(){return r.next(e)},3e3),function(){clearTimeout(t)}}),N.pipe(nx(1),rb(function(){return null}))).pipe(na(function(e){return null!==e}))}),(void 0===L&&(L=nf),D=nk(3e3,L),M=function(){return D},F=void 0,t3(function(e,t){var r=null!=F?F:{},n=r.leading,i=void 0===n||n,o=r.trailing,a=void 0!==o&&o,s=!1,l=null,u=null,c=!1,d=function(){null==u||u.unsubscribe(),u=null,a&&(h(),c&&t.complete())},f=function(){u=null,c&&t.complete()},p=function(e){return u=rR(M(e)).subscribe(rg(t,d,f))},h=function(){if(s){s=!1;var e=l;l=null,t.next(e),c||p(e)}};e.subscribe(rg(t,function(e){s=!0,l=e,u&&!u.closed||(i?h():p(e))},function(){c=!0,a&&s&&u&&!u.closed||t.complete()}))}))).subscribe(function(e){var t={"[Amplitude] X":e.event.clientX,"[Amplitude] Y":e.event.clientY};x.track("[Amplitude] Dead Click",(0,I.Cl)((0,I.Cl)({},k("click",e.closestTrackedAncestor)),t),{time:e.timestamp})}),s.push(p),null==(h=null==t?void 0:t.loggerProvider)||h.log("".concat(a," has been successfully added.")),[2])})})},execute:function(e){return(0,I.sH)(void 0,void 0,void 0,function(){return(0,I.YH)(this,function(t){return[2,e]})})},teardown:function(){return(0,I.sH)(void 0,void 0,void 0,function(){var e,t,r,n;return(0,I.YH)(this,function(i){try{for(t=(e=(0,I.Ju)(s)).next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){r={error:e}}finally{try{t&&!t.done&&(n=e.return)&&n.call(e)}finally{if(r)throw r.error}}return[2]})})}}},nY=function(){function e(e){this.request=e}return Object.defineProperty(e.prototype,"headers",{get:function(){if(this._headers)return this._headers;var e=this.request.headers;if(Array.isArray(e))this._headers=e.reduce(function(e,t){var r=(0,I.zs)(t,2),n=r[0],i=r[1];return e[n]=i,e},{});else if(e instanceof Headers){var t={};e.forEach(function(e,r){t[r]=e}),this._headers=t}else"object"==typeof e&&(this._headers=e);return this._headers}
2,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bodySize",{get:function(){if("number"==typeof this._bodySize)return this._bodySize;var e=F();if(null==e?void 0:e.TextEncoder){var t=this.request.body;return this._bodySize=nH(t,100),this._bodySize}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"method",{get:function(){return this.request.method},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return"string"==typeof this.request.body?this.request.body:null},enumerable:!1,configurable:!0}),e}(),nV=function(){function e(e){this.body=e}return Object.defineProperty(e.prototype,"bodySize",{get:function(){return nH(this.body,100)},enumerable:!1,configurable:!0}),e}();function nH(e,t){var r,n,i,o,a=F(),s=null==a?void 0:a.TextEncoder;if(s){if("string"==typeof e)o=e,i=new s().encode(o).length;else if(e instanceof Blob)i=(o=e).size;else if(e instanceof URLSearchParams)o=e,i=new s().encode(o.toString()).length;else if(ArrayBuffer.isView(e))i=(o=e).byteLength;else if(e instanceof ArrayBuffer)i=(o=e).byteLength;else if(e instanceof FormData){var l=0,u=0;try{for(var c=(0,I.Ju)(e.entries()),d=c.next();!d.done;d=c.next()){var f=(0,I.zs)(d.value,2),p=f[0],h=f[1];if(l+=p.length,"string"==typeof h)l+=new s().encode(h).length;else{if(!(h instanceof Blob))return;l+=h.size}if(++u>=t)return}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}i=l}else if(e instanceof ReadableStream){o=e;return}return i}}var n$=function(){function e(e){this.response=e}return Object.defineProperty(e.prototype,"headers",{get:function(){var e;if(this._headers)return this._headers;if(this.response.headers instanceof Headers){var t=this.response.headers,r={};return null==(e=null==t?void 0:t.forEach)||e.call(t,function(e,t){r[t]=e}),this._headers=r,r}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bodySize",{get:function(){if(void 0!==this._bodySize)return this._bodySize;var e,t,r=null==(t=null==(e=this.response.headers)?void 0:e.get)?void 0:t.call(e,"content-length"),n=r?parseInt(r,10):void 0;return this._bodySize=n,n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.response.status},enumerable:!1,configurable:!0}),e}(),nz=function(){function e(e,t,r){this.statusCode=e,this.headersString=t,this.size=r}return Object.defineProperty(e.prototype,"bodySize",{get:function(){return this.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.statusCode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headers",{get:function(){if(this.headersString){var e,t,r={},n=this.headersString.split("\r\n");try{for(var i=(0,I.Ju)(n),o=i.next();!o.done;o=i.next()){var a=o.value,s=(0,I.zs)(a.split(": "),2),l=s[0],u=s[1];l&&u&&(r[l]=u)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return r}},enumerable:!1,configurable:!0}),e}(),nq=function(){function e(e,t,r,n,i,o,a,s,l,u,c){void 0===a&&(a=0),this.type=e,this.method=t,this.timestamp=r,this.startTime=n,this.url=i,this.requestWrapper=o,this.status=a,this.duration=s,this.responseWrapper=l,this.error=u,this.endTime=c}return e.prototype.toSerializable=function(){var e,t,r,n;return Object.fromEntries(Object.entries({type:this.type,method:this.method,url:this.url,timestamp:this.timestamp,status:this.status,duration:this.duration,error:this.error,startTime:this.startTime,endTime:this.endTime,requestHeaders:null==(e=this.requestWrapper)?void 0:e.headers,requestBodySize:null==(t=this.requestWrapper)?void 0:t.bodySize,responseHeaders:null==(r=this.responseWrapper)?void 0:r.headers,responseBodySize:null==(n=this.responseWrapper)?void 0:n.bodySize}).filter(function(e){var t=(0,I.zs)(e,2);return void 0!==(t[0],t[1])}))},e}(),nW=function(e,t){void 0===t&&(t=U()),this.callback=e,this.id=t},nK=new(function(){function e(t){this.eventCallbacks=new Map,this.isObserving=!1,this.logger=t;var r=F();e.isSupported()&&(this.globalScope=r)}return e.isSupported=function(){var e=F();return!!e&&!!e.fetch},e.prototype.subscribe=function(e,t){var r,n,i,o,a,s,l;if(this.logger||(this.logger=t),this.eventCallbacks.set(e.id,e),!this.isObserving){var u=null==(i=null==(n=null==(r=this.globalScope)?void 0:r.XMLHttpRequest)?void 0:n.prototype)?void 0:i.open,c=null==(s=null==(a=null==(o=this.globalScope)?void 0:o.XMLHttpRequest)?void 0:a.prototype)?void 0:s.send;u&&c&&this.observeXhr(u,c);var d=null==(l=this.globalScope)?void 0:l.fetch;d&&this.observeFetch(d),this.isObserving=!0}},e.prototype.unsubscribe=function(e){this.eventCallbacks.delete(e.id)},e.prototype.triggerEventCallbacks=function(e){var t=this;this.eventCallbacks.forEach(function(r){var n;try{r.callback(e)}catch(e){null==(n=t.logger)||n.debug("an unexpected error occurred while triggering event callbacks",e)}})},e.prototype.handleNetworkRequestEvent=function(e,t,r,n,i,o,a){if(void 0!==o&&void 0!==a){var s,l,u,c,d="GET";"object"==typeof t&&null!==t&&"url"in t&&"method"in t?(l=t.url,d=t.method):l=null==(s=null==t?void 0:t.toString)?void 0:s.call(t),d=(null==r?void 0:r.method)||d,n&&(u=n.status),i&&(c={name:i.name||"UnknownError",message:i.message||"An unknown error occurred"},u=0);var f=Math.floor(performance.now()-a),p=Math.floor(o+f),h=new nq(e,d,o,o,l,r,u,f,n,c,p);this.triggerEventCallbacks(h)}},e.prototype.getTimestamps=function(){var e,t;return{startTime:null==(e=Date.now)?void 0:e.call(Date),durationStart:null==(t=null==performance?void 0:performance.now)?void 0:t.call(performance)}},e.prototype.observeFetch=function(e){var t=this;this.globalScope&&e&&(this.globalScope.fetch=function(r,n){return(0,I.sH)(t,void 0,void 0,function(){var t,i,o,a,s;return(0,I.YH)(this,function(l){switch(l.label){case 0:try{t=this.getTimestamps()}catch(e){null==(a=this.logger)||a.debug("an unexpected error occurred while retrieving timestamps",e)}l.label=1;case 1:return l.trys.push([1,3,,4]),[4,e(r,n)];case 2:return i=l.sent(),[3,4];case 3:return o=l.sent(),[3,4];case 4:try{this.handleNetworkRequestEvent("fetch",r,n?new nY(n):void 0,i?new n$(i):void 0,o,null==t?void 0:t.startTime,null==t?void 0:t.durationStart)}catch(e){null==(s=this.logger)||s.debug("an unexpected error occurred while handling fetch",e)}if(i)return[2,i];throw o}})})})},e.prototype.observeXhr=function(e,t){if(this.globalScope&&e&&t){var r=this.globalScope.XMLHttpRequest.prototype,n=this;r.open=function(){for(var t,r,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var a=(0,I.zs)(i,2),s=a[0],l=a[1];try{this.$$AmplitudeAnalyticsEvent=(0,I.Cl)({method:s,url:null==(t=null==l?void 0:l.toString)?void 0:t.call(l)},n.getTimestamps())}catch(e){null==(r=n.logger)||r.debug("an unexpected error occurred while calling xhr open",e)}return e.apply(this,i)},r.send=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var i=this,o=e[0],a=i.$$AmplitudeAnalyticsEvent;return i.addEventListener("loadend",function(){var e;try{var t=i.getAllResponseHeaders(),r=i.getResponseHeader("content-length"),s=new nz(i.status,t,r?parseInt(r,10):void 0),l=new nV(o);a.status=i.status,n.handleNetworkRequestEvent("xhr",{url:a.url,method:a.method},l,s,void 0,a.startTime,a.durationStart)}catch(t){null==(e=n.logger)||e.debug("an unexpected error occurred while handling xhr send",t)}}),t.apply(i,e)}}},e}()),nG="[Amplitude] Network Request",nX="500-599";function nJ(e,t){return RegExp("^"+t.replace(/[-[\]{}()+?.,\\^$|#\s]/g,"\\$&").replace(/\*/g,".*")+"$").test(e)}function nZ(e,t){var r,n,i=t.split(",");try{for(var o=(0,I.Ju)(i),a=o.next();!a.done;a=o.next()){var s=a.value,l=(0,I.zs)(s.split("-").map(Number),2),u=l[0],c=l[1];if(e===u&&void 0===c||e>=u&&e<=c)return!0}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1}function nQ(e){var t;if(e)try{var r=null==(t=F())?void 0:t.location.href,n=new URL(e,r),i=n.searchParams.toString(),o=n.hash.replace("#",""),a=n.href,s=n.host;n.hash="",n.search="";var l=n.href;return{query:i,fragment:o,href:a,hrefWithoutQueryOrHash:l,host:s}}catch(e){return}}(T||(T={})).NetworkObservable="networkObservable";var n0=function(e){void 0===e&&(e={});var t,r="@amplitude/plugin-network-capture-browser",n=[],i=function(){var e,r=new rE(function(e){var r=new nW(function(t){var r={event:t,timestamp:Date.now(),type:"network"};e.next(r)});return nK.subscribe(r,t),function(){nK.unsubscribe(r)}});return(e={})[T.NetworkObservable]=r,e};return{name:r,type:"enrichment",setup:function(o,a){return(0,I.sH)(void 0,void 0,void 0,function(){var s;return(0,I.YH)(this,function(l){var u,c,d,f;return"u"<typeof document?[2]:(c=(u={allObservables:i(),networkTrackingOptions:e,amplitude:a}).allObservables,d=u.networkTrackingOptions,f=u.amplitude,s=c.networkObservable.pipe(na(function(e){return function(e,t){void 0===t&&(t={});var r,n,i=nQ(e.url);if(!i)return!1;var o=i.host;return!(!1!==t.ignoreAmplitudeRequests&&(nJ(o,"*.amplitude.com")||nJ(o,"amplitude.com"))||(null==(r=t.ignoreHosts)?void 0:r.find(function(e){return nJ(o,e)})))&&(!!t.captureRules||void 0===e.status||!!nZ(e.status,nX))&&(!t.captureRules||((0,I.fX)([],(0,I.zs)(t.captureRules),!1).reverse().find(function(t){return void 0!==(n=function(e,t,r){if(!e.hosts||e.hosts.find(function(e){return nJ(t,e)}
2))return(!r&&0!==r||!!nZ(r,e.statusCodeRange||nX))&&!0}(t,o,e.status))}),!!n))&&!(e.requestWrapper&&function(e,t){if(e.includes("amplitude.com"))try{var r=t.body;if("string"!=typeof r)return!1;if(JSON.parse(r).events.find(function(e){return e.event_type===nG}))return!0}catch(e){}return!1}(o,e.requestWrapper))}(e.event,d)})).subscribe(function(e){var t,r,n,i=e.event,o=nQ(i.url);if(o){var a=null==(r=i.responseWrapper)?void 0:r.bodySize,s=null==(n=i.requestWrapper)?void 0:n.bodySize,l=((t={})["[Amplitude] URL"]=o.hrefWithoutQueryOrHash,t["[Amplitude] URL Query"]=o.query,t["[Amplitude] URL Fragment"]=o.fragment,t["[Amplitude] Request Method"]=i.method,t["[Amplitude] Status Code"]=i.status,t["[Amplitude] Start Time"]=i.startTime,t["[Amplitude] Completion Time"]=i.endTime,t["[Amplitude] Duration"]=i.duration,t["[Amplitude] Request Body Size"]=s,t["[Amplitude] Response Body Size"]=a,t["[Amplitude] Request Type"]=i.type,t);null==f||f.track(nG,l)}}),n.push(s),null==(t=null==o?void 0:o.loggerProvider)||t.log("".concat(r," has been successfully added.")),[2])})})},execute:function(e){return(0,I.sH)(void 0,void 0,void 0,function(){return(0,I.YH)(this,function(t){return[2,e]})})},teardown:function(){return(0,I.sH)(void 0,void 0,void 0,function(){var e,t,r,i;return(0,I.YH)(this,function(o){try{for(t=(e=(0,I.Ju)(n)).next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){r={error:e}}finally{try{t&&!t.done&&(i=e.return)&&i.call(e)}finally{if(r)throw r.error}}return[2]})})}}};let n1=-1,n2=e=>{addEventListener("pageshow",t=>{t.persisted&&(n1=t.timeStamp,e(t))},!0)},n3=(e,t,r,n)=>{let i,o;return a=>{let s;t.value>=0&&(a||n)&&((o=t.value-(i??0))||void 0===i)&&(i=t.value,t.delta=o,s=t.value,t.rating=s>r[1]?"poor":s>r[0]?"needs-improvement":"good",e(t))}},n5=e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))},n4=()=>{let e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},n6=()=>{let e=n4();return e?.activationStart??0},n8=(e,t=-1)=>{let r=n4(),n="navigate";return n1>=0?n="back-forward-cache":r&&(document.prerendering||n6()>0?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(0x82f79cd8fff*Math.random())+1e12}`,navigationType:n}},n9=new WeakMap;function n7(e,t){return n9.get(e)||n9.set(e,new t),n9.get(e)}class ie{t;i=0;o=[];h(e){if(e.hadRecentInput)return;let t=this.o[0],r=this.o.at(-1);this.i&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),this.t?.(e)}}let it=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let n=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return n.observe({type:e,buffered:!0,...r}),n}}catch{}},ir=e=>{let t=!1;return()=>{t||(e(),t=!0)}},ii=-1,io=new Set,ia=()=>"hidden"!==document.visibilityState||document.prerendering?1/0:0,is=e=>{if("hidden"===document.visibilityState){if("visibilitychange"===e.type)for(let e of io)e();isFinite(ii)||(ii="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("prerenderingchange",is,!0))}},il=()=>{if(ii<0){let e=n6();ii=(document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??ia(),addEventListener("visibilitychange",is,!0),addEventListener("prerenderingchange",is,!0),n2(()=>{setTimeout(()=>{ii=ia()})})}return{get firstHiddenTime(){return ii},onHidden(e){io.add(e)}}},iu=e=>{document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},ic=[1800,3e3],id=(e,t={})=>{iu(()=>{let r=il(),n,i=n8("FCP"),o=it("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(o.disconnect(),t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-n6(),0),i.entries.push(t),n(!0)))});o&&(n=n3(e,i,ic,t.reportAllChanges),n2(r=>{n=n3(e,i=n8("FCP"),ic,t.reportAllChanges),n5(()=>{i.value=performance.now()-r.timeStamp,n(!0)})}))})},ip=[.1,.25],ih=0,im=1/0,iv=0,ig=e=>{for(let t of e)t.interactionId&&(im=Math.min(im,t.interactionId),ih=(iv=Math.max(iv,t.interactionId))?(iv-im)/7+1:0)},iy=()=>n?ih:performance.interactionCount??0,ib=0;class i_{u=[];l=new Map;m;p;v(){ib=iy(),this.u.length=0,this.l.clear()}L(){let e=Math.min(this.u.length-1,Math.floor((iy()-ib)/50));return this.u[e]}h(e){if(this.m?.(e),!e.interactionId&&"first-input"!==e.entryType)return;let t=this.u.at(-1),r=this.l.get(e.interactionId);if(r||this.u.length<10||e.duration>t.P){if(r?e.duration>r.P?(r.entries=[e],r.P=e.duration):e.duration===r.P&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],P:e.duration},this.l.set(r.id,r),this.u.push(r)),this.u.sort((e,t)=>
2t.P-e.P),this.u.length>10)for(let e of this.u.splice(10))this.l.delete(e.id);this.p?.(r)}}}let iw=e=>{let t=globalThis.requestIdleCallback||setTimeout;"hidden"===document.visibilityState?e():(addEventListener("visibilitychange",e=ir(e),{once:!0,capture:!0}),t(()=>{e(),removeEventListener("visibilitychange",e,{capture:!0})}))},iS=[200,500];class ix{m;h(e){this.m?.(e)}}let iE=[2500,4e3],ik=[800,1800],iC=e=>{document.prerendering?iu(()=>iC(e)):"complete"!==document.readyState?addEventListener("load",()=>iC(e),!0):setTimeout(e)};function iA(e){var t,r;return{value:e.value,rating:e.rating,delta:e.delta,navigationType:e.navigationType,id:e.id,timestamp:Math.floor((r=(null==(t=e.entries[0])?void 0:t.startTime)||0,performance.timeOrigin+r)),navigationStart:Math.floor(performance.timeOrigin)}}var iP=function(){var e=null,t=F(),r=null==t?void 0:t.document,i=null==t?void 0:t.location;return{name:"web-vitals-browser",type:"enrichment",setup:function(t,o){return(0,I.sH)(void 0,void 0,void 0,function(){var a,s,l;return(0,I.YH)(this,function(u){return a=function(e){if(!e)return"";var r,n=e;try{n=decodeURI(e)}catch(e){null==(r=t.loggerProvider)||r.error("Malformed URI sequence: ",e)}return n},void 0===r||(s=a(null==i?void 0:i.href),l={"[Amplitude] Page Domain":(null==i?void 0:i.hostname)||"","[Amplitude] Page Location":s,"[Amplitude] Page Path":a(null==i?void 0:i.pathname),"[Amplitude] Page Title":"u">typeof document&&document.title||"","[Amplitude] Page URL":s.split("?")[0]},((e,t={})=>{iu(()=>{let r=il(),n,i=n8("LCP"),o=n7(t,ix),a=e=>{for(let a of(t.reportAllChanges||(e=e.slice(-1)),e))o.h(a),a.startTime<r.firstHiddenTime&&(i.value=Math.max(a.startTime-n6(),0),i.entries=[a],n())},s=it("largest-contentful-paint",a);if(s){n=n3(e,i,iE,t.reportAllChanges);let r=ir(()=>{a(s.takeRecords()),s.disconnect(),n(!0)}),o=e=>{e.isTrusted&&(iw(r),removeEventListener(e.type,o,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])addEventListener(e,o,{capture:!0});n2(r=>{n=n3(e,i=n8("LCP"),iE,t.reportAllChanges),n5(()=>{i.value=performance.now()-r.timeStamp,n(!0)})})}})})(function(e){l["[Amplitude] LCP"]=iA(e)}),id(function(e){l["[Amplitude] FCP"]=iA(e)}),((e,t={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;let r=il();iu(()=>{"interactionCount"in performance||n||(n=it("event",ig,{type:"event",buffered:!0,durationThreshold:0}));let i,o=n8("INP"),a=n7(t,i_),s=e=>{iw(()=>{for(let t of e)a.h(t);let t=a.L();t&&t.P!==o.value&&(o.value=t.P,o.entries=t.entries,i())})},l=it("event",s,{durationThreshold:t.durationThreshold??40});i=n3(e,o,iS,t.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),r.onHidden(()=>{s(l.takeRecords()),i(!0)}),n2(()=>{a.v(),i=n3(e,o=n8("INP"),iS,t.reportAllChanges)}))})})(function(e){l["[Amplitude] INP"]=iA(e)}),((e,t={})=>{let r=il();id(ir(()=>{let n,i=n8("CLS",0),o=n7(t,ie),a=e=>{for(let t of e)o.h(t);o.i>i.value&&(i.value=o.i,i.entries=o.o,n())},s=it("layout-shift",a);s&&(n=n3(e,i,ip,t.reportAllChanges),r.onHidden(()=>{a(s.takeRecords()),n(!0)}),n2(()=>{o.i=0,n=n3(e,i=n8("CLS",0),ip,t.reportAllChanges),n5(()=>n())}),setTimeout(n))}))})(function(e){l["[Amplitude] CLS"]=iA(e)}),((e,t={})=>{let r=n8("TTFB"),n=n3(e,r,ik,t.reportAllChanges);iC(()=>{let i=n4();i&&(r.value=Math.max(i.responseStart-n6(),0),r.entries=[i],n(!0),n2(()=>{(n=n3(e,r=n8("TTFB",0),ik,t.reportAllChanges))(!0)}))})})(function(e){l["[Amplitude] TTFB"]=iA(e)}),e=function(){"hidden"===r.visibilityState&&e&&(o.track("[Amplitude] Web Vitals",l),r.removeEventListener("visibilitychange",e),e=null)},r.addEventListener("visibilitychange",e)),[2]})})},execute:function(e){return(0,I.sH)(void 0,void 0,void 0,function(){return(0,I.YH)(this,function(t){return[2,e]})})},teardown:function(){return(0,I.sH)(void 0,void 0,void 0,function(){return(0,I.YH)(this,function(t){return e&&(null==r||r.removeEventListener("visibilitychange",e)),[2]})})}}},iT=function(){function e(){}return e.prototype.parse=function(){return(0,I.sH)(this,void 0,void 0,function(){return(0,I.YH)(this,function(e){return[2,(0,I.Cl)((0,I.Cl)((0,I.Cl)((0,I.Cl)({},ei),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=Y();
2return{utm_campaign:e.utm_campaign,utm_content:e.utm_content,utm_id:e.utm_id,utm_medium:e.utm_medium,utm_source:e.utm_source,utm_term:e.utm_term}},e.prototype.getReferrer=function(){var e,t,r={referrer:void 0,referring_domain:void 0};try{r.referrer=document.referrer||void 0,r.referring_domain=null!=(t=null==(e=r.referrer)?void 0:e.split("/")[2])?t:void 0}catch(e){}return r},e.prototype.getClickIds=function(){var e,t=Y();return(e={})[W]=t[W],e[K]=t[K],e[G]=t[G],e[X]=t[X],e[J]=t[J],e[Z]=t[Z],e[Q]=t[Q],e[ee]=t[ee],e[et]=t[et],e[er]=t[er],e[en]=t[en],e},e}(),iI=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},iO=function(e,t,r,n,i){void 0===i&&(i=!0),e.referrer;var o=e.referring_domain,a=(0,I.Tt)(e,["referrer","referring_domain"]),s=t||{},l=(s.referrer,s.referring_domain),u=(0,I.Tt)(s,["referrer","referring_domain"]);if(iR(r.excludeReferrers,e.referring_domain))return n.debug("This is not a new campaign because ".concat(e.referring_domain," is in the exclude referrer list.")),!1;if(!i&&Object.values(e).every(function(e){return!e})&&t)return n.debug("This is not a new campaign because this is a direct traffic in the same session."),!1;var c=JSON.stringify(a)!==JSON.stringify(u),d=iI(o||"")!==iI(l||""),f=!t||c||d;return f?n.debug("This is a new campaign. An $identify event will be sent."):n.debug("This is not a new campaign because it's the same as the previous one."),f},iR=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=""),e.some(function(e){return e instanceof RegExp?e.test(t):e===t})},iN=function(e){var t=e;return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},iL=function(){function e(e,t){var r,n,i;this.shouldTrackNewCampaign=!1,this.options=(0,I.Cl)({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:iN(null==(r=t.cookieOptions)?void 0:r.domain)},e),this.storage=t.cookieStorage,this.storageKey=(n=t.apiKey,void 0===i&&(i=10),["AMP","MKTG",n.substring(0,i)].filter(Boolean).join("_")),this.currentCampaign=ei,this.sessionTimeout=t.sessionTimeout,this.lastEventTime=t.lastEventTime,this.logger=t.loggerProvider,t.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return(0,I.sH)(this,void 0,void 0,function(){var e,t;return(0,I.YH)(this,function(r){switch(r.label){case 0:return[4,this.fetchCampaign()];case 1:if(t=I.zs.apply(void 0,[r.sent(),2]),this.currentCampaign=t[0],this.previousCampaign=t[1],e=!this.lastEventTime||eE(this.sessionTimeout,this.lastEventTime),!iO(this.currentCampaign,this.previousCampaign,this.options,this.logger,e))return[3,3];return this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.fetchCampaign=function(){return(0,I.sH)(this,void 0,void 0,function(){return(0,I.YH)(this,function(e){switch(e.label){case 0:return[4,Promise.all([new iT().parse(),this.storage.get(this.storageKey)])];case 1:return[2,e.sent()]}})})},e.prototype.generateCampaignEvent=function(e){this.shouldTrackNewCampaign=!1;var t,r,n=(t=this.currentCampaign,r=this.options,eC(Object.entries((0,I.Cl)((0,I.Cl)({},ei),t)).reduce(function(e,t){var n,i=(0,I.zs)(t,2),o=i[0],a=i[1];return(e.setOnce("initial_".concat(o),null!=(n=null!=a?a:r.initialEmptyValue)?n:"EMPTY"),a)?e.set(o,a):e.unset(o)},new ew)));return e&&(n.event_id=e),n},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}();let iD={init:L((v=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,I.C6)(t,e),t.prototype.init=function(e,t,r){var n,i;return void 0===e&&(e=""),arguments.length>2?(n=t,i=r):"string"==typeof t?(n=t,i=void 0):(n=null==t?void 0:t.userId,i=t),D(this._init((0,I.Cl)((0,I.Cl)({},i),{userId:n,apiKey:e})))},t.prototype._init=function(t){var r,n,i;return(0,I.sH)(this,void 0,void 0,function(){var o,a,s,l,u,c,d=this;return(0,I.YH)(this,function(f){var p,h,m,v,g;switch(f.label){case 0:if(this.initializing)return[2];return this.initializing=!0,[4,(p=t.apiKey,h=t,m=this,void 0===h&&(h={}),(0,I.sH)(void 0,void 0,void 0,function(){var e,t,r,n,i,o,a,s,l,u,c,d,f,v,g,y,b,_,w,S,x,E,k,C,A,P,T,O,R,N,L,D,M,F,j,B,V,H,$,z,q,W,K,G,X;return(0,I.YH)(this,function(J){switch(J.label){case 0:if(e=h.identityStorage||tc,x={},e===tc)return[3,1];return r="",[3,5];case 1:if(null==(k=null==(E=h.cookieOptions)?void 0:E.domain))return[3,2];return n=k,[3,4];case 2:return[4,(0,I.sH)(void 0,void 0,void 0,function(){var e,t,r,n,i,o;return(0,I.YH)(this,function(a){switch(a.label){case 0:return[4,new eK().isEnabled()];case 1:if(!a.sent()||"u"<typeof location||!location.hostname)return[2,""];for(e=(0,location.hostname).split("."),t=[],r="AMP_TLDTEST",n=e.length-2;n>=0;--n)t.push(e.slice(n).join("."));n=0,a.label=2;case 2:if(!(n<t.length))return[3,7];return[4,(o=new eK({domain:"."+(i=t[n])})).set(r,1)];case 3:return a.sent(),[4,o.get(r)];case 4:if(!a.sent())return[3,6];return[4,o.remove(r)];case 5:return a.sent(),[2,"."+i];case 6:return n++,[3,2];case 7:return[2,""]}})})];case 3:n=J.sent(),J.label=4;case 4:r=n,J.label=5;case 5:var Z,Q;return t=I.Cl.apply(void 0,[(x.domain=r,x.expiration=365,x.sameSite="Lax",x.secure=!1,x.upgrade=!0,x),h.cookieOptions]),[4,(Z=i=tf(h.identityStorage,t),void 0===(Q=null==(A=null==(C=h.cookieOptions)?void 0:C.upgrade)||A)&&(Q=!0),(0,I.sH)(void 0,void 0,void 0,function(){var e,t,r,n,i,o,a,s,l;return(0,I.YH)(this,function(u){switch(u.label){case 0:return e="".concat("amp","_").concat(p.substring(0,6)),[4,Z.getRaw(e)];case 1:if(!(t=u.sent()))return[2,{optOut:!1}];if(!Q)return[3,3];
2return[4,Z.remove(e)];case 2:u.sent(),u.label=3;case 3:return n=(r=(0,I.zs)(t.split("."),6))[0],i=r[1],o=r[2],a=r[3],s=r[4],l=r[5],[2,{deviceId:n,userId:e4(i),sessionId:e5(a),lastEventId:e5(l),lastEventTime:e5(s),optOut:!!o}]}})}))];case 6:return o=J.sent(),[4,i.get(eW(p))];case 7:return a=J.sent(),u=!(l=(s=Y()).ampTimestamp?Number(s.ampTimestamp):void 0)||Date.now()<l,c=null!=(N=null!=(R=null!=(O=null!=(P=h.deviceId)?P:u?null!=(T=s.ampDeviceId)?T:s.deviceId:void 0)?O:null==a?void 0:a.deviceId)?R:o.deviceId)?N:U(),d=null!=(L=null==a?void 0:a.lastEventId)?L:o.lastEventId,f=null!=(D=null==a?void 0:a.lastEventTime)?D:o.lastEventTime,v=null!=(F=null!=(M=h.optOut)?M:null==a?void 0:a.optOut)?F:o.optOut,g=null!=(j=null==a?void 0:a.sessionId)?j:o.sessionId,y=null!=(V=null!=(B=h.userId)?B:null==a?void 0:a.userId)?V:o.userId,m.previousSessionDeviceId=null!=(H=null==a?void 0:a.deviceId)?H:o.deviceId,m.previousSessionUserId=null!=($=null==a?void 0:a.userId)?$:o.userId,b={ipAddress:null==(q=null==(z=h.trackingOptions)?void 0:z.ipAddress)||q,language:null==(K=null==(W=h.trackingOptions)?void 0:W.language)||K,platform:null==(X=null==(G=h.trackingOptions)?void 0:G.platform)||X},_=null==a?void 0:a.pageCounter,w=null==a?void 0:a.debugLogsEnabled,void 0!==h.autocapture&&(h.defaultTracking=h.autocapture),[4,(S=new td(p,h.appVersion,i,t,h.defaultTracking,h.autocapture,c,h.flushIntervalMillis,h.flushMaxRetries,h.flushQueueSize,e,h.ingestionMetadata,h.instanceName,d,f,h.loggerProvider,h.logLevel,h.minIdLength,h.offline,v,h.partnerId,h.plan,h.serverUrl,h.serverZone,g,h.sessionTimeout,h.storageProvider,b,h.transport,h.useBatch,h.fetchRemoteConfig,y,_,w,h.networkTrackingOptions)).storageProvider.isEnabled()];case 8:return J.sent()||(S.loggerProvider.warn("Storage provider ".concat(S.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),S.storageProvider=new eq),[2,S]}})}))];case 1:if(!(o=f.sent()).fetchRemoteConfig)return[3,3];return this.remoteConfigClient=new B(o.apiKey,o.loggerProvider,o.serverZone),[4,new Promise(function(e){var t;null==(t=d.remoteConfigClient)||t.subscribe("configs.analyticsSDK.browserSDK","all",function(t,r,n){o.loggerProvider.debug("Remote configuration received:",JSON.stringify({remoteConfig:t,source:r,lastFetch:n},null,2)),t&&function(e,t){if(e)try{var r,n,i,o;if(t.loggerProvider.debug("Update browser config with remote configuration:",JSON.stringify(e)),e&&"autocapture"in e){if("boolean"==typeof e.autocapture&&(t.autocapture=e.autocapture),"object"==typeof e.autocapture&&null!==e.autocapture){var a=(0,I.Cl)({},e.autocapture);if(void 0===t.autocapture&&(t.autocapture=e.autocapture),"object"==typeof e.autocapture.elementInteractions&&null!==e.autocapture.elementInteractions&&(null==(i=e.autocapture.elementInteractions.pageUrlAllowlistRegex)?void 0:i.length)){a.elementInteractions=(0,I.Cl)({},e.autocapture.elementInteractions);var s=a.elementInteractions,l=null!=(o=s.pageUrlAllowlist)?o:[],u=[];try{for(var c=(0,I.Ju)(e.autocapture.elementInteractions.pageUrlAllowlistRegex),d=c.next();!d.done;d=c.next()){var f=d.value;try{u.push(new RegExp(f))}catch(e){t.loggerProvider.warn("Invalid regex pattern: ".concat(f),e)}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}s.pageUrlAllowlist=l.concat(u),delete s.pageUrlAllowlistRegex}"boolean"==typeof t.autocapture&&(t.autocapture=(0,I.Cl)({attribution:t.autocapture,fileDownloads:t.autocapture,formInteractions:t.autocapture,pageViews:t.autocapture,sessions:t.autocapture,elementInteractions:t.autocapture,webVitals:t.autocapture,frustrationInteractions:t.autocapture},a)),"object"==typeof t.autocapture&&(t.autocapture=(0,I.Cl)((0,I.Cl)({},t.autocapture),a))}t.defaultTracking=t.autocapture}t.loggerProvider.debug("Browser config after remote config update:",JSON.stringify(t))}catch(e){t.loggerProvider.error("Failed to apply remote configuration because of error: ",e)}}(t,o),e()})})];case 2:f.sent(),f.label=3;case 3:return[4,e.prototype._init.call(this,o)];case 4:if(f.sent(),this.logBrowserOptions(o),!eO(this.config.defaultTracking))return[3,6];return a=eO((v=this.config).defaultTracking)&&v.defaultTracking&&"object"==typeof v.defaultTracking&&v.defaultTracking.attribution&&"object"==typeof v.defaultTracking.attribution?(0,I.Cl)({},v.defaultTracking.attribution):{},this.webAttribution=new iL(a,this.config),[4,this.webAttribution.init()];case 5:f.sent(),f.label=6;case 6:if(u=!(!(l=(s=Y()).ampTimestamp?Number(s.ampTimestamp):void 0)||Date.now()<l)||Number.isNaN(Number(s.ampSessionId))?void 0:Number(s.ampSessionId),this.setSessionId(null!=(i=null!=(n=null!=(r=t.sessionId)?r:u)?n:this.config.sessionId)?i:Date.now()),(c=eo(t.instanceName)).identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),null===this.config.offline)return[3,8];return[4,this.add(tY()).promise];case 7:f.sent(),f.label=8;case 8:return[4,this.add(new eg).promise];case 9:return f.sent(),[4,this.add(new ez).promise];case 10:return f.sent(),[4,this.add(new ey).promise];case 11:if(f.sent(),tB(this.config),!eI(this.config.defaultTracking,"fileDownloads"))return[3,13];return this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(tj()).promise];case 12:f.sent(),f.label=13;case 13:if(!eI(this.config.defaultTracking,"formInteractions"))return[3,15];return this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(tD()).promise];case 14:f.sent(),f.label=15;case 15:if(!eR(this.config.defaultTracking))return[3,17];return this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(tO(eB(this.config))).promise];case 16:f.sent(),f.label=17;case 17:if(!eD(this.config.autocapture))return[3,19];return this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(nM(eF(this.config))).promise];case 18:f.sent(),f.label=19;case 19:if(!eM(this.config.autocapture))return[3,21];return this.config.loggerProvider.debug("Adding frustration interactions plugin"),[4,this.add(nB(ej(this.config))).promise];case 20:f.sent(),f.label=21;case 21:if(!eL(this.config.autocapture))return[3,23];return this.config.loggerProvider.debug("Adding network tracking plugin"),[4,this.add(n0(eU(this.config))).promise];case 22:f.sent(),f.label=23;case 23:if("object"!=typeof(g=this.config.autocapture)||!0!==g.webVitals)return[3,25];return this.config.loggerProvider.debug("Adding web vitals plugin"),[4,this.add(iP()).promise];case 24:f.sent(),f.label=25;case 25:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 26:return f.sent(),c.eventBridge.setEventReceiver(function(e){d.track(e.eventType,e.eventProperties)}),[2]}})})},t.prototype.getUserId=function(){var e;return null==(e=this.config)?void 0:e.userId},t.prototype.setUserId=function(e){this.config?(this.config.loggerProvider.debug("function setUserId: ",e),(e!==this.config.userId||void 0===e)&&(this.config.userId=e,this.timeline.onIdentityChanged({userId:e}),ea(e,this.config.instanceName))):this.q.push(this.setUserId.bind(this,e))},t.prototype.getDeviceId=function(){var e;return null==(e=this.config)?void 0:e.deviceId},t.prototype.setDeviceId=function(e){this.config?(this.config.loggerProvider.debug("function setDeviceId: ",e),e!==this.config.deviceId&&(this.config.deviceId=e,this.timeline.onIdentityChanged({deviceId:e}),es(e,this.config.instanceName))):this.q.push(this.setDeviceId.bind(this,e))},t.prototype.reset=function(){this.setDeviceId(U()),this.setUserId(void 0)},t.prototype.getIdentity=function(){var e,t;return{deviceId:null==(e=this.config)?void 0:e.deviceId,userId:null==(t=this.config)?void 0:t.userId,userProperties:this.userProperties}},t.prototype.getOptOut=function(){var e;return null==(e=this.config)?void 0:e.optOut},t.prototype.getSessionId=function(){var e;return null==(e=this.config)?void 0:e.sessionId},t.prototype.setSessionId=function(e){var t,r=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,e)),D(Promise.resolve());if(e===this.config.sessionId)return D(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",e);var n=this.getSessionId();n!==e&&this.timeline.onSessionIdChanged(e);var i=this.config.lastEventTime,o=null!=(t=this.config.lastEventId)?t:-1;this.config.sessionId=e,this.config.lastEventTime=void 0,this.config.pageCounter=0,eN(this.config.defaultTracking)&&(n&&i&&r.push(this.track(tt,void 0,{device_id:this.previousSessionDeviceId,event_id:++o,session_id:n,time:i+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var a=this.trackCampaignEventIfNeeded(++o,r);return eN(this.config.defaultTracking)&&r.push(this.track(te,void 0,{event_id:a?++o:o,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,D(Promise.all(r))},t.prototype.extendSession=function(){this.config?this.config.lastEventTime=
2Date.now():this.q.push(this.extendSession.bind(this))},t.prototype.setTransport=function(e){this.config?this.config.transportProvider=tp(e):this.q.push(this.setTransport.bind(this,e))},t.prototype.identify=function(t,r){if(eV(t)){var n=t._q;t._q=[],t=eY(new ew,n)}return(null==r?void 0:r.user_id)&&this.setUserId(r.user_id),(null==r?void 0:r.device_id)&&this.setDeviceId(r.device_id),e.prototype.identify.call(this,t,r)},t.prototype.groupIdentify=function(t,r,n,i){if(eV(n)){var o=n._q;n._q=[],n=eY(new ew,o)}return e.prototype.groupIdentify.call(this,t,r,n,i)},t.prototype.revenue=function(t,r){if(eV(t)){var n=t._q;t._q=[],t=eY(new ex,n)}return e.prototype.revenue.call(this,t,r)},t.prototype.trackCampaignEventIfNeeded=function(e,t){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var r=this.webAttribution.generateCampaignEvent(e);return t?t.push(this.track(r).promise):this.track(r),this.config.loggerProvider.log("Tracking attribution."),!0},t.prototype.process=function(t){return(0,I.sH)(this,void 0,void 0,function(){var r,n,i;return(0,I.YH)(this,function(o){return r=Date.now(),n=eE(this.config.sessionTimeout,this.config.lastEventTime),i=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),t.event_type!==te&&t.event_type!==tt&&(!t.session_id||t.session_id===this.getSessionId())&&(n||i?(this.setSessionId(r),i&&this.config.loggerProvider.log("Created a new session for new campaign.")):n||this.trackCampaignEventIfNeeded()),t.event_type===S.IDENTIFY&&t.user_properties&&(this.userProperties=this.getOperationAppliedUserProperties(t.user_properties)),[2,e.prototype.process.call(this,t)]})})},t.prototype.logBrowserOptions=function(e){try{var t=(0,I.Cl)((0,I.Cl)({},e),{apiKey:e.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",JSON.stringify(t))}catch(e){this.config.loggerProvider.error("Error logging browser config",e)}},t}(eT))).init.bind(v),"init",O(v),N(v,["config"])),add:L(v.add.bind(v),"add",O(v),N(v,["config.apiKey","timeline.plugins"])),remove:L(v.remove.bind(v),"remove",O(v),N(v,["config.apiKey","timeline.plugins"])),track:L(v.track.bind(v),"track",O(v),N(v,["config.apiKey","timeline.queue.length"])),logEvent:L(v.logEvent.bind(v),"logEvent",O(v),N(v,["config.apiKey","timeline.queue.length"])),identify:L(v.identify.bind(v),"identify",O(v),N(v,["config.apiKey","timeline.queue.length"])),groupIdentify:L(v.groupIdentify.bind(v),"groupIdentify",O(v),N(v,["config.apiKey","timeline.queue.length"])),setGroup:L(v.setGroup.bind(v),"setGroup",O(v),N(v,["config.apiKey","timeline.queue.length"])),revenue:L(v.revenue.bind(v),"revenue",O(v),N(v,["config.apiKey","timeline.queue.length"])),flush:L(v.flush.bind(v),"flush",O(v),N(v,["config.apiKey","timeline.queue.length"])),getUserId:L(v.getUserId.bind(v),"getUserId",O(v),N(v,["config","config.userId"])),setUserId:L(v.setUserId.bind(v),"setUserId",O(v),N(v,["config","config.userId"])),getDeviceId:L(v.getDeviceId.bind(v),"getDeviceId",O(v),N(v,["config","config.deviceId"])),setDeviceId:L(v.setDeviceId.bind(v),"setDeviceId",O(v),N(v,["config","config.deviceId"])),reset:L(v.reset.bind(v),"reset",O(v),N(v,["config","config.userId","config.deviceId"])),getSessionId:L(v.getSessionId.bind(v),"getSessionId",O(v),N(v,["config"])),setSessionId:L(v.setSessionId.bind(v),"setSessionId",O(v),N(v,["config"])),extendSession:L(v.extendSession.bind(v),"extendSession",O(v),N(v,["config"])),setOptOut:L(v.setOptOut.bind(v),"setOptOut",O(v),N(v,["config"])),setTransport:L(v.setTransport.bind(v),"setTransport",O(v),N(v,["config"])),getIdentity:L(v.getIdentity.bind(v),"getIdentity",O(v),N(v,["config"])),getOptOut:L(v.getOptOut.bind(v),"getOptOut",O(v),N(v,["config"]))};iD.add,iD.extendSession,iD.flush,iD.getDeviceId,iD.getSessionId,iD.getUserId,iD.groupIdentify,iD.identify;var iM=iD.init,iF=iD.logEvent;iD.remove,iD.reset,iD.revenue,iD.setDeviceId,iD.setGroup,iD.setOptOut,iD.setSessionId,iD.setTransport,iD.setUserId,iD.track},51214:e=>{e.exports={root:"styles_root__GMJx8",container:"styles_container__IJTT4",content:"styles_content__wK3CC",subtitle:"styles_subt
2itle__5xNr_","pill-1":"styles_pill-1__XXBfX","pill-2":"styles_pill-2__9lpYn","pill-3":"styles_pill-3__Yj6uw","pill-4":"styles_pill-4__GLAiC","pill-5":"styles_pill-5__XI1Yb","pill-6":"styles_pill-6__D0a0q"}},51817:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(59827),i=r(64039),o=r.n(i);r(72223);let a=function({seo:e,children:t}){let r=e.og?.type??"website",i=e.twitter??{},a=i.title??e.og?.title??e.title,s=i.description??e.og?.description??e.description,l=i.image??e.og?.image,u=e.og?.imageAlt??e.og?.title??e.title;return(0,n.FD)(o(),{children:[(0,n.Y)("title",{children:e.title}),e.title&&(0,n.Y)("meta",{name:"title",content:e.title}),e.description&&(0,n.Y)("meta",{name:"description",content:e.description}),e.keywords&&(0,n.Y)("meta",{name:"keywords",content:e.keywords}),e.url&&(0,n.Y)("link",{rel:"canonical",href:e.url},"canonical"),e.og?.title&&(0,n.Y)("meta",{property:"og:title",content:e.og.title}),e.og?.description&&(0,n.Y)("meta",{property:"og:description",content:e.og.description}),e.og?.url&&(0,n.Y)("meta",{property:"og:url",content:e.og.url},"og:url"),e.og?.image&&(0,n.Y)("meta",{property:"og:image",content:e.og.image}),e.og?.image&&(0,n.Y)("meta",{property:"og:image:alt",content:u}),e.og?.imageWidth?(0,n.Y)("meta",{property:"og:image:width",content:String(e.og.imageWidth)}):null,e.og?.imageHeight?(0,n.Y)("meta",{property:"og:image:height",content:String(e.og.imageHeight)}):null,(0,n.Y)("meta",{property:"og:type",content:r}),(0,n.Y)("meta",{property:"og:site_name",content:"MODO"}),(0,n.Y)("meta",{property:"og:locale",content:"es_AR"}),(0,n.Y)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,n.Y)("meta",{name:"twitter:site",content:i.site??"@MODO_Arg"}),a&&(0,n.Y)("meta",{name:"twitter:title",content:a}),s&&(0,n.Y)("meta",{name:"twitter:description",content:s}),l&&(0,n.Y)("meta",{name:"twitter:image",content:l}),t]})}},52155:(e,t,r)=>{"use strict";r.d(t,{W:()=>o,y:()=>i});var n=r(28761);let i={ONLINE:"online",ONSITE:"onsite",SHOPPING:"shopping",GROUPS:"groups"},o={[i.ONSITE]:"presencial",[i.ONLINE]:"online",[i.GROUPS]:"groups",[n.N?.SHOPPING_LIST]:"in groups"}},52591:(e,t,r)=>{"use strict";r.d(t,{n2:()=>C,m5:()=>x,hr:()=>b,BO:()=>S,gJ:()=>w,$6:()=>_,Lx:()=>A,w$:()=>k,fR:()=>y});var n=r(5173),i=r(94331),o=r(5960),a=r(27050);let s=async(e,t,r,n)=>{let{data:a}=await o.SP.get(`${e}/slots/${t}`,{signal:n,params:(0,o.GQ)(r)});return(0,i.F1)(a?.cards)??[]},l=async(e,t,r,n)=>{let{data:a}=await o.SP.get(`${e}/slots/${t}`,{signal:n,params:(0,o.GQ)(r)});return{...a,cards:(0,i.F1)(a?.cards)??[]}},u=async(e,t,r,n)=>{let{data:i}=await o.SP.get(`${e}/slots?slots=${t}`,{signal:n,params:(0,o.GQ)(r)});return i},c=async(e,t)=>{try{let{data:r}=await o.SP.get(`${e}/slots-container/${t}`);return{...r}}catch(e){return a.L[t]??[]}};var d=r(76215),f=r(17389),p=r(21773),h=r(45477);let m=async({apiUrl:e,signal:t})=>{try{let{data:r=[]}=await o.SP.get(`${e}/banks`,{params:{source:h.Hl.WEBVIEW_MODO},signal:t});return r.filter(e=>(0,p.n)(e?.on_hub_list))}catch(e){return console.error(e),[]}};var v=r(29258),g=r(44406);let y=(0,n.zD)("promotions/getPromotions",async({search_text:e}={search_text:void 0},{getState:t,rejectWithValue:r,dispatch:n})=>{try{let r=t();n((0,f.Ll)(void 0!==e&&""!==e));let i=r?.promotionsReducer?.bankIds?.join(","),a=(0,o.GQ)({banks:i,search_text:e,source:h.Hl.WEBVIEW_MODO}),l=await s(d.Jm,a);return e&&(0,v.a6)({keywords:a.search_text,total:l.length,totalActive:l.length}),l}catch(e){return r(e)}}),b=(0,n.zD)("promotions/getAllBankPromotionsEnabled",async({apiUrl:e},{signal:t})=>await m({signal:t,apiUrl:e})),_=(0,n.zD)("promotions/getCarrouselPromotions",async({user_id:e,banks:t,apiUrl:r},{signal:n})=>{let i=(0,o.GQ)({source:h.Hl.WEBVIEW_MODO,user_id:e,banks:t});return await (0,o.$i)(i,n,r)}),w=(0,n.zD)("promotions/getCarrouselBySlot",async({slot:e,user_id:t,banks:r,apiUrl:n,hideStatus:i},{signal:o})=>{let a={banks:r,user_bank_ids:r,limit:6,page:1,search_text:"",source:"",origin:"",user_id:t,fdoweeks:"",fflow:"",...!i&&{fcalcstatus:"running"},search_ia:!1,slot_info:!0},s=await u(n??"",e,a,o);return{cards:s?.data?.cards??[],total_cards_count:s?.metadata?.pagination?.total_results??0}}),S=(0,n.zD)("promotions/getAllPromotionsBySlot",async({slot:e,banks:t,fromState:r=!1,page:n=1,limit:i=5,user_id:o,apiUrl:a},{signal:s,getState:u})=>{let c=t,d=o,f=u();return r&&(c=f?.promotionsReducer?.bankIds?.join(","),d=f?.promotionsReducer?.userId),await l(a,e,{banks:c,page:n,limit:i,source:h.Hl.WEBVIEW_MODO,user_id:d},s)}),x=(0,n.zD)("promotions/appendPromotionsBySlot",async({slot:e,banks:t,fromState:r=!1,limit:n=5,search_text:i,user_id:o,source:a=h.Hl.WEBVIEW_MODO,apiUrl:s,sessionToken:u},{signal:c,getState:d})=>{let f=t,p=d(),m=o,v=p?.promotionsReducer?.promotionsBySlot?.[e]?.current_page||0;r&&(f=p?.promotionsReducer?.bankIds?.join(","),m=p?.promotionsReducer?.userId);let g=await l(s,e,{banks:f,page:v+1,limit:n,search_text:i,source:a,user_id:m},c,u);return{slot:e,promotions:g}},{condition:({slot:e},{getState:t})=>{let r=t(),{isLoading:n}=r?.promotionsReducer?.promotionsBySlot?.[e]??{};return!n}}),E=async({overridePageWith:e=0,slots:t=[],banks:r,search_text:n,user_id:i,source:o=h.Hl.WEBVIEW_MODO,apiUrl:a,getState:s,signal:l,loadMore:c,isSingleSlot:d=!1})=>{let f=s(),p=r??f?.promotionsReducer?.bankIds?.join(","),m=i??f?.promotionsReducer?.userId,y=f.promotionsReducer.setSearchIAModalOpen,b=c?f?.promotionsReducer?.promotionsInSearchPage+1:f?.promotionsReducer?.promotionsInSearchPage;0===b&&(b=1),e>0&&(b=e);let _=((e={},t)=>{let{days:r=[],modality:n=[],status:i=[],banks:o=[]}=e,a=r.join(","),s=n.join(","),l=i.join(","),u=o.join(",");return 0===i.length&&(l=g.s9.join(",")),0===o.length&&(u=t),n.length===g.C$.length&&(s=""),{fdoweeks:a,fflow:s,fcalcstatus:l,banksFromFilter:u}})(f?.promotionsReducer?.filtersApplied,p),w=_?.fflow??"",S=_?.fcalcstatus??"",x=_?.fdoweeks??"",E=_?.banksFromFilter??"",k=function(e={}){let{days:t=[],modality:r=[],status:n=[],banks:i=[]}=e;return[i,t,r,n].every(e=>0===e.length)?"":[i,t.join(","),r.join(","),n.join(",")].join("&")}({...f?.promotionsReducer?.filtersApplied,banks:E}),C=t?.join(","),A={banks:E,user_bank_ids:p,limit:y?10:25,page:b,search_text:n,source:o,origin:o,user_id:m,fdoweeks:x,fflow:w,fcalcstatus:d?"running":S,search_ia:y,slot_info:!0};y&&(A={...A,fcalcstatus:"running"},b>1&&(A={...A,search_id:f.promotionsReducer.search_id}));let P=await u(a,C,A,l),T={cards:P?.data?.cards??[],search_ia:{...P?.data?.search_ia??{}},pagination:P?.metadata?.pagination??{}},I=P?.metadata?.pagination?.total_results??0;n&&(0,v.a6)({keywords:n,totalCards:I,searchType:y?"search IA":"default"});let O="";
2if(d){let e=Object.values(P?.metadata?.slots_info??{})[0];O=e?.slot_title??""}return{slot:C,slot_id:C,slot_title:O,total_cards_count:I,cards:T?.cards,pagination:T?.pagination,filtersAppliedStr:k,search_ia:T?.search_ia??{}}},k=(0,n.zD)("promotions/getNewPromotionsForOneSlot",async({slots:e=[],banks:t,search_text:r,user_id:n,source:i=h.Hl.WEBVIEW_MODO,apiUrl:o,currentPage:a},{signal:s,getState:l})=>await E({slots:e,banks:t,search_text:r,user_id:n,source:i,apiUrl:o,getState:l,signal:s,overridePageWith:a,isSingleSlot:!0})),C=(0,n.zD)("promotions/appendNewPromotionsSearch",async({slots:e=[],banks:t,search_text:r,user_id:n,loadMore:i,source:o=h.Hl.WEBVIEW_MODO,apiUrl:a},{signal:s,getState:l})=>{let u=await E({slots:e,banks:t,search_text:r,user_id:n,loadMore:i,source:o,apiUrl:a,getState:l,signal:s});return{cards:u?.cards,pagination:u?.pagination,filtersAppliedStr:u?.filtersAppliedStr,search_ia:u?.search_ia??{}}}),A=(0,n.zD)("promotions/getContainerSlotsPromotions",async({apiUrl:e,labelSlotToLoad:t,sessionToken:r})=>{try{return await c(e,t,r)}catch{return[]}})},52889:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=r(65371),i=r(37505);function o({config:e,src:t,width:r,quality:a}){let s=(0,i.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//")){let e=t.indexOf("?");if(-1!==e){let r=new URLSearchParams(t.slice(e+1)),n=r.get("dpl");if(n){s=n,r.delete("dpl");let i=r.toString();t=t.slice(0,e)+(i?"?"+i:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns. 3Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let l=(0,n.findClosestQuality)(a,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${r}&q=${l}${t.startsWith("/")&&s?`&dpl=${s}`:""}`}o.__next_img_default=!0;let a=o},53629:e=>{e.exports={root:"styles_root__y9c4O","image-container":"styles_image-container__p3HLQ",layout:"styles_layout___KXJY","text-container":"styles_text-container__fkWr7",title:"styles_title__U5TFL",subtitle:"styles_subtitle__fde_6"}},55403:(e,t,r)=>{"use strict";r.d(t,{B3:()=>o,d0:()=>a,kG:()=>i,xY:()=>s,xc:()=>n});let n={amplitude:"Store Category Selected"},i={amplitude:"Online List Search"},o={amplitude:"Site Online Opened"},a={amplitude:"Spotlight Site Online Opened"},s={amplitude:"Online List Opened"}},55713:e=>{e.exports={root:"styles_root__KGqH1","font-h1-bold":"styles_font-h1-bold__uLUlL","font-h1-span":"styles_font-h1-span__Kokc6","font-h2-bold":"styles_font-h2-bold__dClvx","font-h2-span":"styles_font-h2-span__K_qGw","font-h3-bold":"styles_font-h3-bold__J9T6T","font-h4-bold":"styles_font-h4-bold__AG87q","font-h5-bold":"styles_font-h5-bold__wN7g_","font-h6-semibold":"styles_font-h6-semibold__dxupC","font-callout-regular":"styles_font-callout-regular__Gevp2","font-callout-medium":"styles_font-callout-medium__fdg7y","font-callout-bold":"styles_font-callout-bold__Sw8_O","font-body-regular":"styles_font-body-regular__tXzUv","font-body-medium":"styles_font-body-medium__sATcR","font-body-bold":"styles_font-body-bold__fvizn","font-body-medium-link":"styles_font-body-medium-link__u6DZT","font-body-bold-link":"styles_font-body-bold-link__T2B38","font-caption-regular":"styles_font-caption-regular__KSeM7","font-caption-medium":"styles_font-caption-medium__T1Qam","font-caption-bold":"styles_font-caption-bold__pi1Sw","font-app-amount-large":"styles_font-app-amount-large__YGlHX","font-app-title-capital":"styles_font-app-title-capital__QPzZx","font-app-balance-medium":"styles_font-app-balance-medium__YEqTe","font-app-h1-bold":"styles_font-app-h1-bold__SrBxC","font-app-h1-medium":"styles_font-app-h1-medium__ZJMeh","font-app-h2-bold":"styles_font-app-h2-bold__Y3OII","font-app-h2-regular":"styles_font-app-h2-regular__V0TRG","font-app-h3-medium":"styles_font-app-h3-medium__pC3yU","font-app-h3-regular":"styles_font-app-h3-regular__LBaXt","font-app-h4-bold":"styles_font-app-h4-bold___CPhN","font-app-callout-regular":"styles_font-app-callout-regular__AXRqr","font-app-callout-medium":"styles_font-app-callout-medium__DLqr4","font-app-body-regular":"styles_font-app-body-regular__4wQer","font-app-body-medium":"styles_font-app-body-medium__ZKG_O","font-app-caption-regular":"styles_font-app-caption-regular__z_eZk","font-app-caption-medium":"styles_font-app-caption-medium__IDAlA","font-app-small-title-regular":"styles_font-app-small-title-regular__aBVO9","font-app-small-title-medium":"styles_font-app-small-title-medium__CWUcT","font-app-small-title-capital":"styles_font-app-small-title-capital__oXaJN","font-app-overline-regular":"styles_font-app-overline-regular__6W_9k","font-app-overline-medium":"styles_font-app-overline-medium__82JqJ","font-app-small-overline-regular":"styles_font-app-small-overline-regular___1MaA","font-app-small-overline-medium":"styles_font-app-small-overline-medium__3iefR","font-app-xsmall-overline-medium":"styles_font-app-xsmall-overline-medium__EdvWO","font-app-xsmall-overline-bold":"styles_font-app-xsmall-overline-bold__9Znlh","font-app-rewards-bold-large":"styles_font-app-rewards-bold-large__naYVE","font-app-rewards-bold-medium":"styles_font-app-rewards-bold-medium__v9drK","font-app-rewards-bold-small":"styles_font-app-rewards-bold-small__pxXAA"}},57200:(e,t,r)=>{"use strict";var n;e.exports=((n=r(11051))&&n.__esModule?n:{default:n}).default},58619:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},58985:(e,t,r)=>{"use strict";r.d(t,{E8:()=>s,HM:()=>l,KL:()=>i,fe:()=>o,gm:()=>a,hg:()=>n});let n="Promotion Store PDF Download",i="Promotion Store List",o="Promotion Stores List Showed",a="Promotion Stores List Selected",s="Promotion Stores List Searched",l="Promotion Stores List Filter Applied"},59077:e=>{e.exports={disabled:"styles_disabled__38Ftx",root:"styles_root__kUXRk"}},59215:function(e,t,r){var n;!function(i){"use strict";var o="function",a="undefined",s="object",l="string",u="model",c="name",d="type",f="vendor",p="version",h="architecture",m="console",v="mobile",g="tablet",y="smarttv",b="wearable",_="embedded",w="Amazon",S="Apple",x="ASUS",E="BlackBerry",k="Browser",C="Chrome",A="Firefox",P="Google",T="Huawei",I="Microsoft",O="Motorola",R="Opera",N="Samsung",L="Sharp",D="Sony",M="Xiaomi",F="Zebra",j="Facebook",U=function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},B=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},Y=function(e,t){return typeof e===l&&-1!==V(t).indexOf(V(e))},V=function(e){return e.toLowerCase()},H=function(e,t){if(typeof e===l)return e=e.replace(/^\s\s*/,""),typeof t===a?e:e.substring(0,350)},$=function(e,t){for(var r,n,i,a,l,u,c=0;c<t.length&&!l;){var d=t[c],f=t[c+1];for(r=n=0;r<d.length&&!l;)if(l=d[r++].exec(e))for(i=0;i<f.length;i++)u=l[++n],typeof(a=f[i])===s&&a.length>0?2===a.length?typeof a[1]==o?this[a[0]]=a[1].call(this,u):this[a[0]]=a[1]:3===a.length?typeof a[1]!==o||a[1].exec&&a[1].test?this[a[0]]=u?u.replace(a[1],a[2]):void 0:this[a[0]]=u?a[1].call(this,u,a[2]):void 0:4===a.length&&(this[a[0]]=u?a[3].call(this,u.replace(a[1],a[2])):void 0):this[a]=u||void 0;c+=2}},z=function(e,t){for(var r in t)if(typeof t[r]===s&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(Y(t[r][n],e))return"?"===r?void 0:r}else if(Y(t[r],e))return"?"===r?void 0:r;return e},q={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},W={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,p],[/opios[\/ ]+([\w\.]+)/i],[p,[c,R+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[c,R]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[c,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[c,"UC"+k]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[p,[c,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[c,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[c,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)
vendor: 5,167 bytes, line 3
3/,"$1 Secure "+k],p],[/\bfocus\/([\w\.]+)/i],[p,[c,A+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[c,R+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[c,R+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[c,"MIUI "+k]],[/fxios\/([-\w\.]+)/i],[p,[c,A]],[/\bqihu|(qi?ho?o?|360)browser/i],[[c,"360 "+k]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1 "+k],p],[/(comodo_dragon)\/([\w\.]+)/i],[[c,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[c,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,j],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[c,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[c,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[c,C+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,C+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[c,"Android "+k]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[c,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[p,z,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[c,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[c,A+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[c,p],[/(cobalt)\/([\w\.]+)/i],[c,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,V]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/windows (ce|mobile); ppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[h,/ower/,"",V]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[h,V]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[f,N],[d,g]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[f,N],[d,v]],[/((ipod|iphone)\d+,\d+)/i],[u,[f,S],[d,v]],[/(ipad\d+,\d+)/i],[u,[f,S],[d,g]],[/\((ip(?:hone|od)[\w ]*);/i],[u,[f,S],[d,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[f,S],[d,g]],[/(macintosh);/i],[u,[f,S]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[f,T],[d,g]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[f,T],[d,v]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[f,M],[d,v]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[f,M],[d,g]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[f,"OPPO"],[d,v]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[f,"Vivo"],[d,v]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[u,[f,"Realme"],[d,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[f,O],[d,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[f,O],[d,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[f,"LG"],[d,g]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[f,"LG"],[d,v]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[f,"Lenovo"],[d,g]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[f,"Nokia"],[d,v]],[/(pixel c)\b/i],[u,[f,P],[d,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[f,P],[d,v]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[f,D],[d,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[f,D],[d,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[f,"OnePlus"],[d,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[f,w],[d,g]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+
vendor: 4,338 bytes, line 3
3)/g,"Fire Phone $1"],[f,w],[d,v]],[/(playbook);[-\w\),; ]+(rim)/i],[u,f,[d,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[f,E],[d,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[f,x],[d,g]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[f,x],[d,v]],[/(nexus 9)/i],[u,[f,"HTC"],[d,g]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[u,/_/g," "],[d,v]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[f,"Acer"],[d,g]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[f,"Meizu"],[d,v]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[f,L],[d,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,u,[d,v]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,u,[d,g]],[/(surface duo)/i],[u,[f,I],[d,g]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[f,"Fairphone"],[d,v]],[/(u304aa)/i],[u,[f,"AT&T"],[d,v]],[/\bsie-(\w*)/i],[u,[f,"Siemens"],[d,v]],[/\b(rct\w+) b/i],[u,[f,"RCA"],[d,g]],[/\b(venue[\d ]{2,7}) b/i],[u,[f,"Dell"],[d,g]],[/\b(q(?:mv|ta)\w+) b/i],[u,[f,"Verizon"],[d,g]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[f,"Barnes & Noble"],[d,g]],[/\b(tm\d{3}\w+) b/i],[u,[f,"NuVision"],[d,g]],[/\b(k88) b/i],[u,[f,"ZTE"],[d,g]],[/\b(nx\d{3}j) b/i],[u,[f,"ZTE"],[d,v]],[/\b(gen\d{3}) b.+49h/i],[u,[f,"Swiss"],[d,v]],[/\b(zur\d{3}) b/i],[u,[f,"Swiss"],[d,g]],[/\b((zeki)?tb.*\b) b/i],[u,[f,"Zeki"],[d,g]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],u,[d,g]],[/\b(ns-?\w{0,9}) b/i],[u,[f,"Insignia"],[d,g]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[f,"NextBook"],[d,g]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],u,[d,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],u,[d,v]],[/\b(ph-1) /i],[u,[f,"Essential"],[d,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[f,"Envizen"],[d,g]],[/\b(trio[-\w\. ]+) b/i],[u,[f,"MachSpeed"],[d,g]],[/\btu_(1491) b/i],[u,[f,"Rotor"],[d,g]],[/(shield[\w ]+) b/i],[u,[f,"Nvidia"],[d,g]],[/(sprint) (\w+)/i],[f,u,[d,v]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[f,I],[d,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[f,F],[d,g]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[f,F],[d,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,u,[d,m]],[/droid.+; (shield) bui/i],[u,[f,"Nvidia"],[d,m]],[/(playstation [345portablevi]+)/i],[u,[f,D],[d,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[f,I],[d,m]],[/smart-tv.+(samsung)/i],[f,[d,y]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[f,N],[d,y]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,"LG"],[d,y]],[/(apple) ?tv/i],[f,[u,S+" TV"],[d,y]],[/crkey/i],[[u,C+"cast"],[f,P],[d,y]],[/droid.+aft(\w)( bui|\))/i],[u,[f,w],[d,y]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[f,L],[d,y]],[/(bravia[\w ]+)( bui|\))/i],[u,[f,D],[d,y]],[/(mitv-\w{5}) bui/i],[u,[f,M],[d,y]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[f,H],[u,H],[d,y]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,y]],[/((pebble))app/i],[f,u,[d,b]],[/droid.+; (glass) \d/i],[u,[f,P],[d,b]],[/droid.+; (wt63?0{2,3})\)/i],[u,[f,F],[d,b]],[/(quest( 2)?)/i],[u,[f,j],[d,b]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[d,_]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[u,[d,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[d,g]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,g]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,v]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[c,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[c,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[c,p],[/rv\
3:([\w\.]{1,9})\b.+(gecko)/i],[p,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[c,[p,z,q]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[c,"Windows"],[p,z,q]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,c],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[c,p],[/\(bb(10);/i],[p,[c,E]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[c,A+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[c,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[c,C+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[c,"Chromium OS"],p],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[c,p],[/(sunos) ?([\w\.\d]*)/i],[[c,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[c,p]]},K=function(e,t){if(typeof e===s&&(t=e,e=void 0),!(this instanceof K))return new K(e,t).getResult();var r=e||(typeof i!==a&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),n=t?U(W,t):W;return this.getBrowser=function(){var e,t={};return t[c]=void 0,t[p]=void 0,$.call(t,r,n.browser),t.major=typeof(e=t.version)===l?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0,t},this.getCPU=function(){var e={};return e[h]=void 0,$.call(e,r,n.cpu),e},this.getDevice=function(){var e={};return e[f]=void 0,e[u]=void 0,e[d]=void 0,$.call(e,r,n.device),e},this.getEngine=function(){var e={};return e[c]=void 0,e[p]=void 0,$.call(e,r,n.engine),e},this.getOS=function(){var e={};return e[c]=void 0,e[p]=void 0,$.call(e,r,n.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===l&&e.length>350?H(e,350):e,this},this.setUA(r),this};K.VERSION="0.7.33",K.BROWSER=B([c,p,"major"]),K.CPU=B([h]),K.DEVICE=B([u,f,d,m,v,y,g,b,_]),K.ENGINE=K.OS=B([c,p]),typeof t!==a?(e.exports&&(t=e.exports=K),t.UAParser=K):r.amdO?void 0===(n=(function(){return K}).call(t,r,t,e))||(e.exports=n):typeof i!==a&&(i.UAParser=K);var G=typeof i!==a&&(i.jQuery||i.Zepto);if(G&&!G.ua){var X=new K;G.ua=X.getResult(),G.ua.get=function(){return X.getUA()},G.ua.set=function(e){X.setUA(e);var t=X.getResult();for(var r in t)G.ua[r]=t[r]}}}("object"==typeof window?window:this)},59819:(e,t,r)=>{"use strict";r.d(t,{g:()=>i});var n,i=((n={}).MERCHANT_MAP="MERCHANT_MAP",n.OPEN_URL="OPEN_URL",n.ADD_PAYMENT_METHOD="ADD_PAYMENT_METHOD",n.SHARE="SHARE",n.GO_TO_HELP="GO_TO_HELP",n.SHOW_TAB_BAR="SHOW_TAB_BAR",n)},59827:(e,t,r)=>{"use strict";r.d(t,{FK:()=>ev,Y:()=>eg,FD:()=>ey});var n,i,o=r(1503),a=r(72223),s=r.t(a,2),l=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t));var t,r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++}
vendor: 4,947 bytes, line 3
3,t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),u=Math.abs,c=String.fromCharCode,d=Object.assign;function f(e,t,r){return e.replace(t,r)}function p(e,t){return e.indexOf(t)}function h(e,t){return 0|e.charCodeAt(t)}function m(e,t,r){return e.slice(t,r)}function v(e){return e.length}function g(e,t){return t.push(e),e}var y=1,b=1,_=0,w=0,S=0,x="";function E(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:y,column:b,length:a,return:""}}function k(e,t){return d(E("",null,null,"",null,null,0),e,{length:-e.length},t)}function C(){return S=w<_?h(x,w++):0,b++,10===S&&(b=1,y++),S}function A(){return h(x,w)}function P(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function T(e){return y=b=1,_=v(x=e),w=0,[]}function I(e){var t,r;return(t=w-1,r=function e(t){for(;C();)switch(S){case t:return w;case 34:case 39:34!==t&&39!==t&&e(S);break;case 40:41===t&&e(t);break;case 92:C()}return w}(91===e?e+2:40===e?e+1:e),m(x,t,r)).trim()}var O="-ms-",R="-moz-",N="-webkit-",L="comm",D="rule",M="decl",F="@keyframes";function j(e,t){for(var r="",n=e.length,i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function U(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case M:return e.return=e.return||e.value;case L:return"";case F:return e.return=e.value+"{"+j(e.children,n)+"}";case D:e.value=e.props.join(",")}return v(r=j(e.children,n))?e.return=e.value+"{"+r+"}":""}function B(e,t,r,n,i,o,a,s,l,c,d){for(var p=i-1,h=0===i?o:[""],v=h.length,g=0,y=0,b=0;g<n;++g)for(var _=0,w=m(e,p+1,p=u(y=a[g])),S=e;_<v;++_)(S=(y>0?h[_]+" "+w:f(w,/&\f/g,h[_])).trim())&&(l[b++]=S);return E(e,t,r,0===i?D:s,l,c,d)}function Y(e,t,r,n){return E(e,t,r,M,m(e,0,n),m(e,n+1,-1),n)}var V=function(e,t,r){for(var n=0,i=0;n=i,i=A(),38===n&&12===i&&(t[r]=1),!P(i);)C();return m(x,e,w)},H=function(e,t){var r=-1,n=44;do switch(P(n)){case 0:38===n&&12===A()&&(t[r]=1),e[r]+=V(w-1,t,r);break;case 2:e[r]+=I(n);break;case 4:if(44===n){e[++r]=58===A()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=c(n)}while(n=C());return e},$=function(e,t){var r;return r=H(T(e),t),x="",r},z=new WeakMap,q=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||z.get(r))&&!n){z.set(e,!0);for(var i=[],o=$(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},W=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},K=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case M:e.return=function e(t,r){switch(45^h(t,0)?(((r<<2^h(t,0))<<2^h(t,1))<<2^h(t,2))<<2^h(t,3):0){case 5103:return N+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return N+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return N+t+R+t+O+t+t;case 6828:case 4268:return N+t+O+t+t;case 6165:return N+t+O+"flex-"+t+t;case 5187:return N+t+f(t,/(\w+).+(:[^]+)/,N+"box-$1$2"+O+"flex-$1$2")+t;case 5443:return N+t+O+"flex-item-"+f(t,/flex-|-self/,"")+t;case 4675:return N+t+O+"flex-line-pack"+f(t,/align-content|flex-|-self/,"")+t;case 5548:return N+t+O+f(t,"shrink","negative")+t;case 5292:return N+t+O+f(t,"basis","preferred-size")+t;case 6060:return N+"box-"+f(t,"-grow","")+N+t+O+f(t,"grow","positive")+t;case 4554:return N+f(t,/([^-])(transform)/g,"$1"+N+"$2")+t;case 6187:return f(f(f(t,/(zoom-|grab)/,N+"$1"),/(image-set)/,N+"$1"),t,"")+t;case 5495:case 3959:return f(t,/(image-set\([^]*)/,N+"$1$`$1");case 4968:return f(f(t,/(.+:)(flex-)?(.*)/,N+"box-pack:$3"+O+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+N+t+t;case 4095:case 3583:case 4068:case 2532:return f(t,/(.+)-inline(.+)/,N+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(v(t)-1-r>6)switch(h(t,r+1)){case 109:if(45!==h(t,r+4))break;case 102:return f(t,/(.+:)(.+)-([^]+)/,"$1"+N+"$2-$3$1"+R+(108==h(t,r+3)?"$3":"$2-$3"))+t;case 115:return~p(t,"stretch")?e(f(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==h(t,r+1))break;case 6444:switch(h(t,v(t)-3-(~p(t,"!important")&&10))){case 107:return f(t,":",":"+N)+t;case 101:return f(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+N+(45===h(t,14)?"inline-":"")+"box$3$1"+N+"$2$3$1"+O+"$2box$3")+t}break;case 5936:switch(h(t,r+11)){case 114:return N+t+O+f(t,/[svh]\w+-[tblr]{2}/,"tb")+t;
vendor: 4,353 bytes, line 3
3case 108:return N+t+O+f(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return N+t+O+f(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return N+t+O+t+t}return t}(e.value,e.length);break;case F:return j([k(e,{value:f(e.value,"@","@"+N)})],n);case D:if(e.length){var i,o;return i=e.props,o=function(t){var r;switch(r=t,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return j([k(e,{props:[f(t,/:(read-\w+)/,":"+R+"$1")]})],n);case"::placeholder":return j([k(e,{props:[f(t,/:(plac\w+)/,":"+N+"input-$1")]}),k(e,{props:[f(t,/:(plac\w+)/,":"+R+"$1")]}),k(e,{props:[f(t,/:(plac\w+)/,O+"input-$1")]})],n)}return""},i.map(o).join("")}}}],G=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},X=function(e,t,r){G(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(void 0!==i)}},J={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Z=r(1342),Q=/[A-Z]|^ms/g,ee=/_EMO_([^_]+?)_([^]*?)_EMO_/g,et=function(e){return 45===e.charCodeAt(1)},er=function(e){return null!=e&&"boolean"!=typeof e},en=(0,Z.A)(function(e){return et(e)?e:e.replace(Q,"-$&").toLowerCase()}),ei=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ee,function(e,t,r){return i={name:t,styles:r,next:i},t})}return 1===J[e]||et(e)||"number"!=typeof t||0===t?t:t+"px"};function eo(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return i={name:r.name,styles:r.styles,next:i},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)i={name:n.name,styles:n.styles,next:i},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=eo(e,t,r[i])+";";else for(var o in r){var a=r[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?n+=o+"{"+t[a]+"}":er(a)&&(n+=en(o)+":"+ei(o,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var s=0;s<a.length;s++)er(a[s])&&(n+=en(o)+":"+ei(o,a[s])+";");else{var l=eo(e,t,a);switch(o){case"animation":case"animationName":n+=en(o)+":"+l+";";break;default:n+=o+"{"+l+"}"}}}return n}(e,t,r);case"function":if(void 0!==e){var o=i,a=r(e);return i=o,eo(e,t,a)}}if(null==t)return r;var s=t[r];return void 0!==s?s:r}var ea=/label:\s*([^\s;{]+)\s*(;|$)/g,es=!!s.useInsertionEffect&&s.useInsertionEffect,el=es||function(e){return e()};es||a.useLayoutEffect;var eu=a.createContext("u">typeof HTMLElement?function(e){var t,r,n,i,o,a=e.key;if("css"===a){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var u=e.stylisPlugins||K,d={},_=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+a+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)d[t[r]]=!0;_.push(e)});var k=(r=(t=[q,W].concat(u,[U,(n=function(e){o.insert(e)},function(e){!e.root&&(e=e.return)&&n(e)})])).length,function(e,n,i,o){for(var a="",s=0;s<r;s++)a+=t[s](e,n,i,o)||"";return a}),O=function(e){var t,r;return j((r=function e(t,r,n,i,o,a,s,l,u){for(var d,_=0,k=0,T=s,O=0,R=0,N=0,D=1,M=1,F=1,j=0,U="",V=o,H=a,$=i,z=U;M;)switch(N=j,j=C()){case 40:if(108!=N&&58==h(z,T-1)){-1!=p(z+=f(I(j),"&","&\f"),"&\f")&&(F=-1);break}case 34:case 39:case 91:z+=I(j);break;case 9:case 10:case 13:case 32:z+=function(e){for(;S=A();)if(S<33)C();else break;return P(e)>2||P(S)>3?"":" "}(N);break;case 92:z+=function(e,t){for(var r;--t&&C()&&!(S<48)&&!(S>102)&&(!(S>57)||!(S<65))&&(!(S>
370)||!(S<97)););return r=w+(t<6&&32==A()&&32==C()),m(x,e,r)}(w-1,7);continue;case 47:switch(A()){case 42:case 47:g((d=function(e,t){for(;C();)if(e+S===57)break;else if(e+S===84&&47===A())break;return"/*"+m(x,t,w-1)+"*"+c(47===e?e:C())}(C(),w),E(d,r,n,L,c(S),m(d,2,-2),0)),u);break;default:z+="/"}break;case 123*D:l[_++]=v(z)*F;case 125*D:case 59:case 0:switch(j){case 0:case 125:M=0;case 59+k:-1==F&&(z=f(z,/\f/g,"")),R>0&&v(z)-T&&g(R>32?Y(z+";",i,n,T-1):Y(f(z," ","")+";",i,n,T-2),u);break;case 59:z+=";";default:if(g($=B(z,r,n,_,k,o,l,U,V=[],H=[],T),a),123===j)if(0===k)e(z,r,$,$,V,a,T,l,H);else switch(99===O&&110===h(z,3)?100:O){case 100:case 108:case 109:case 115:e(t,$,$,i&&g(B(t,$,$,0,0,o,l,U,o,V=[],T),H),o,H,T,l,i?V:H);break;default:e(z,$,$,$,[""],H,0,l,H)}}_=k=R=0,D=F=1,U=z="",T=s;break;case 58:T=1+v(z),R=N;default:if(D<1){if(123==j)--D;else if(125==j&&0==D++&&125==(S=w>0?h(x,--w):0,b--,10===S&&(b=1,y--),S))continue}switch(z+=c(j),j*D){case 38:F=k>0?1:(z+="\f",-1);break;case 44:l[_++]=(v(z)-1)*F,F=1;break;case 64:45===A()&&(z+=I(C())),O=A(),k=T=v(U=z+=function(e){for(;!P(A());)C();return m(x,e,w)}(w)),j++;break;case 45:45===N&&2==v(z)&&(D=0)}}return a}("",null,null,null,[""],t=T(t=e),0,[0],t),x="",r),k)},R={key:a,sheet:new l({key:a,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:d,registered:{},insert:function(e,t,r,n){o=r,O(e?e+"{"+t.styles+"}":t.styles),n&&(R.inserted[t.name]=!0)}};return R.sheet.hydrate(_),R}({key:"css"}):null);eu.Provider;var ec=a.createContext({}),ed={}.hasOwnProperty,ef="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ep=function(e,t){var r={};for(var n in t)ed.call(t,n)&&(r[n]=t[n]);return r[ef]=e,r},eh=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return G(t,r,n),el(function(){return X(t,r,n)}),null},em=(n=function(e,t,r){var n,o,s,l=e.css;"string"==typeof l&&void 0!==t.registered[l]&&(l=t.registered[l]);var u=e[ef],c=[l],d="";"string"==typeof e.className?(n=t.registered,o=e.className,s="",o.split(" ").forEach(function(e){void 0!==n[e]?c.push(n[e]+";"):e&&(s+=e+" ")}),d=s):null!=e.className&&(d=e.className+" ");var f=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n,o=!0,a="";i=void 0;var s=e[0];null==s||void 0===s.raw?(o=!1,a+=eo(r,t,s)):a+=s[0];for(var l=1;l<e.length;l++)a+=eo(r,t,e[l]),o&&(a+=s[l]);ea.lastIndex=0;for(var u="";null!==(n=ea.exec(a));)u+="-"+n[1];return{name:function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&r)*0x5bd1e995+((r>>>16)*59797<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(a)+u,styles:a,next:i}}(c,void 0,a.useContext(ec));d+=t.key+"-"+f.name;var p={};for(var h in e)ed.call(e,h)&&"css"!==h&&h!==ef&&(p[h]=e[h]);return p.className=d,r&&(p.ref=r),a.createElement(a.Fragment,null,a.createElement(eh,{cache:t,serialized:f,isStringTag:"string"==typeof u}),a.createElement(u,p))},(0,a.forwardRef)(function(e,t){return n(e,(0,a.useContext)(eu),t)}));r(13027);var ev=o.Fragment,eg=function(e,t,r){return ed.call(t,"css")?o.jsx(em,ep(e,t),r):o.jsx(e,t,r)},ey=function(e,t,r){return ed.call(t,"css")?o.jsxs(em,ep(e,t),r):o.jsxs(e,t,r)}},60685:e=>{e.exports={root:"styles_root__0P_Ra",content:"styles_content__JTK2v","grid-gap":"styles_grid-gap__dyCrt","color-variant-pay-default":"styles_color-variant-pay-default__lNNB_","color-variant-pay-dark":"styles_color-variant-pay-dark__mV_1V","color-variant-pay-10":"styles_color-variant-pay-10__3Bcyz","color-variant-send-default":"styles_color-variant-send-default__mX_iE","color-variant-send-dark":"styles_color-variant-send-dark__G5HEN","color-variant-send-10":"styles_color-variant-send-10__MhN19","color-variant-blue-cross-dark":"styles_color-variant-blue-cross-dark__NOQd3","color-variant-black":"styles_color-variant-black__tecle","color-variant-gray-80":"styles_color-variant-gray-80__ZzbTA","color-variant-white":"styles_color-variant-white__wATDo","color-variant-reward-default":"styles_color-variant-reward-default__f0O3I","color-variant-reward-light":"styles_color-variant-reward-light__aEuME","color-variant-grey-03":"styles_color-variant-grey-03__iFRc4","color-variant-full-white":"styles_color-variant-full-white__mfNFI","color-variant-transparent":"styles_color-variant-transparent__urSyV",container:"styles_container__Y0vaV",data:"styles_data__y2Bpa"}},63443:e=>{e.exports={root:"styles_root__1_WGh",asset:"styles_asset__4_1ub"}},64039:(e,t,r)=>{e.exports=r(89968)},65371:(e,t)=>{"use strict";function r(e,t){let r=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>
3Math.abs(t-r)<Math.abs(e-r)?t:e,t.qualities[0]):r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findClosestQuality",{enumerable:!0,get:function(){return r}})},66397:e=>{e.exports={"color-variant-pay-default":"styles_color-variant-pay-default__aRPnp","color-variant-pay-dark":"styles_color-variant-pay-dark__DsNUb","color-variant-pay-10":"styles_color-variant-pay-10__Xevjb","color-variant-send-default":"styles_color-variant-send-default__BT4Qs","color-variant-send-dark":"styles_color-variant-send-dark__gEOke","color-variant-send-10":"styles_color-variant-send-10__FMAk0","color-variant-blue-cross-dark":"styles_color-variant-blue-cross-dark__oYfwU","color-variant-black":"styles_color-variant-black__GgTkK","color-variant-gray-80":"styles_color-variant-gray-80__zdstR","color-variant-white":"styles_color-variant-white__aEtZU","color-variant-reward-default":"styles_color-variant-reward-default__MjOnI","color-variant-reward-light":"styles_color-variant-reward-light__VQzNn","color-variant-grey-03":"styles_color-variant-grey-03__iIYPY","color-variant-full-white":"styles_color-variant-full-white__NH_WZ","color-variant-transparent":"styles_color-variant-transparent__oSaki",root:"styles_root__yk0Na",row:"styles_row__G5FG6",grow:"styles_grow__Y0LXb",heading:"styles_heading__YjcMy",title:"styles_title__7Frlw","image-container":"styles_image-container__PchOK","image-wrapper":"styles_image-wrapper__lKTyl",actions:"styles_actions__8wPGE",action:"styles_action__rG7TL","rounded-action":"styles_rounded-action__WIbSr",image:"styles_image__fk_Vn",button:"styles_button__8vdlo"}},68053:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case v:case m:case l:return e;default:return t}}case i:return t}}}function S(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=f,t.Fragment=o,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||w(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===_||e.$$typeof===g)},t.typeOf=w},68289:e=>{e.exports={root:"styles_root__slAFm",content:"styles_content__PUfyH","grid-gap":"styles_grid-gap__Rm9hZ"}},68462:(e,t,r)=>{e.exports=r(31589)},68810:e=>{e.exports={root:"styles_root__hNZHR",trail:"styles_trail__Tpyoq","button-wrapper":"styles_button-wrapper__3Q1dS",pulse:"styles_pulse__kzg6S",button:"styles_button__UQfOi",arrow:"styles_arrow__kt3_W","delay-pulse":"styles_delay-pulse__84cJw"}},70180:(e,t,r)=>{"use strict";r.d(t,{Av:()=>s,Ay:()=>c,EQ:()=>i,NL:()=>h,NO:()=>f,UM:()=>d,lc:()=>m,nd:()=>u,vI:()=>l,w3:()=>p});let n=(0,r(5173).Z0)({name:"General",initialState:{isWebView:!0,isMobile:!1,isSDK:null,isSDKTheme:null,geolocation:{hasGeolocation:!1,lat:null,lng:null},externalLinkModalOpen:{open:!1,name:"",url:"",image:""}}
3,reducers:{setWebView:(e,t)=>{e.isWebView=t.payload},setSDK:(e,t)=>{e.isSDK=t.payload},setSDKTheme:(e,t)=>{e.isSDKTheme=t.payload},setMobileView:(e,t)=>{e.isMobile=t.payload},setGeolocation:(e,t)=>{e.geolocation=t.payload},setExternalLinkModalOpen:(e,t)=>{e.externalLinkModalOpen=t.payload}}}),{setWebView:i,setSDK:o,setSDKTheme:a,setMobileView:s,setGeolocation:l,setExternalLinkModalOpen:u}=n.actions,c=n.reducer;function d(e){return e.generalReducer.isWebView}function f(e){return e.generalReducer.isSDK}function p(e){return e.generalReducer.isMobile}function h(e){return e.generalReducer.geolocation}function m(e){return e.generalReducer.externalLinkModalOpen}},70616:()=>{},72277:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>g,dU:()=>m});var n=r(59827),i=r(72223),o=r(50084),a=r.n(o),s=r(19671),l=r(5960),u=r(81025),c=r(44406),d=r(90575),f=r(17389),p=r(4452);let h=(0,i.createContext)(),m=()=>(0,i.useContext)(h),v=({children:e})=>{let t=(0,p.useRouter)(),[r,o]=(0,i.useState)(!1),[a,m]=(0,i.useState)(c.zG.modo),[v,g]=(0,i.useState)(s.w4),y=(0,d.wA)(),b=async()=>{let e,t,r=(e=window.location.toString(),((t=RegExp("[?&]sdkTheme=([^&]*)").exec(e))?t[1]:null)||c.zG.modo);if("modo"!=r&&"production"!=c.Me.PRODUCTION){let e=s.xh?.[r]||{};g({...s.w4,...e}),m(r)}else try{let{hub_bank_id:e}=await (0,l.zF)();m(e);let t=s.xh?.[e]||{};g({...s.w4,...t})}catch(e){g(s.w4)}};(0,i.useEffect)(()=>{(0,u.Id)()&&(o(!0),b(),y((0,f.NZ)(!0)),y((0,f.OU)(!0)),y((0,f.Lk)(!0)))},[t,y]);let _=(0,i.useMemo)(()=>({bank:a,theme:v}),[a,v]);return(0,n.Y)(h.Provider,{value:_,children:(0,n.Y)("div",{className:r?"layout-sdk":"",children:e})})};v.propTypes={children:a().node,headerToken:a().string};let g=v},72305:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(4452);function i(){let e=(0,n.useRouter)();return e.pathname.includes("promos-banco")||e.pathname.includes("promos/bank")}},72448:e=>{e.exports={"color-variant-pay-default":"styles_color-variant-pay-default__vHwU6","color-variant-pay-dark":"styles_color-variant-pay-dark__buwgh","color-variant-pay-10":"styles_color-variant-pay-10__9asgl","color-variant-send-default":"styles_color-variant-send-default__FtmjX","color-variant-send-dark":"styles_color-variant-send-dark__sWMRA","color-variant-send-10":"styles_color-variant-send-10__qTZEE","color-variant-blue-cross-dark":"styles_color-variant-blue-cross-dark__mlOn3","color-variant-black":"styles_color-variant-black__24PoW","color-variant-gray-80":"styles_color-variant-gray-80__Su_gl","color-variant-white":"styles_color-variant-white__NXpjf","color-variant-reward-default":"styles_color-variant-reward-default__ECjkd","color-variant-reward-light":"styles_color-variant-reward-light__oVFr6","color-variant-grey-03":"styles_color-variant-grey-03__EZc2h","color-variant-full-white":"styles_color-variant-full-white__FsZbz","color-variant-transparent":"styles_color-variant-transparent__IgAXv",root:"styles_root__GrhI7",section:"styles_section__dLVpB",image:"styles_image__sxtI8","content-wrapper":"styles_content-wrapper__jIW4X",content:"styles_content__p7_nW","blank-space":"styles_blank-space__Xzagf",title:"styles_title__eu6ax",text:"styles_text__2wmaH",button:"styles_button__Ew84O"}},72455:e=>{e.exports={root:"styles_root__5H7KI",button:"styles_button__u_3JY"}},72989:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(95023)}])},73381:(e,t,r)=>{"use strict";r.d(t,{G0:()=>s,LA:()=>o,O7:()=>l,RV:()=>c,ol:()=>i});let n="https://schema.org";function i(e){return{"@context":n,"@type":"BreadcrumbList",itemListElement:e.map((e,t)=>({"@type":"ListItem",position:t+1,name:e.name,item:e.url}))}}function o(){return[{"@context":n,"@type":"MobileApplication",name:"MODO",operatingSystem:"iOS",applicationCategory:"FinanceApplication",offers:{"@type":"Offer",price:"0",priceCurrency:"ARS"},installUrl:"https://apps.apple.com/ar/app/modo/id1530606263"},{"@context":n,"@type":"MobileApplication",name:"MODO",operatingSystem:"Android",applicationCategory:"FinanceApplication",offers:{"@type":"Offer",price:"0",priceCurrency:"ARS"},installUrl:"https://play.google.com/store/apps/details?id=com.playdigital.modo"}]}let a=["/bancos"];function s(e){return!a.some(t=>e===t||e.startsWith(`${t}/`))}function l(e,t){return e?.length?{"@context":n,"@type":"FAQPage",mainEntity:e.map(e=>
3({"@type":"Question",name:e.title,acceptedAnswer:{"@type":"Answer",text:t(e.body)}}))}:null}let u=" â ";function c(e){if(!e)return{name:"Modo"};let t=e.indexOf(u);return -1===t?{name:e}:{name:e.slice(0,t),bio:e.slice(t+u.length)}}},74211:(e,t,r)=>{"use strict";r.d(t,{ID:()=>i,gU:()=>n,jE:()=>o});let n=e=>new URLSearchParams(new URL(window.location.href).search).get(e),i=()=>{let e=new URL(window.location.href);return e.origin.concat(e.pathname)},o=()=>new URL(window.location.href).pathname.includes("promos-banco")},74448:(e,t,r)=>{"use strict";r.d(t,{Cu:()=>o,Xt:()=>i});let n=e=>e.test(window.navigator.userAgent),i=()=>[/Android/gi,/BlackBerry/gi,/iPhone|iPad|iPod/gi,/Opera Mini/gi,/IEMobile/gi,/WPDesktop/gi].some(n),o=()=>[/iPhone|iPad|iPod/gi].some(n)},74569:(e,t,r)=>{"use strict";r.d(t,{AB:()=>l,at:()=>d,dU:()=>c,ls:()=>u,ry:()=>s});var n=r(38269),i=r(99512),o=r(19671);let a=(0,n.keyframes)(["to{background-position:left;}"]),s=n.default.div.withConfig({componentId:"sc-56c81196-0"})(["height:60px;width:60px;border-radius:100%;background:",";"],o.Ay.color.tertiaryGray08),l=n.default.div.withConfig({componentId:"sc-56c81196-1"})(["gap:var(--modo-spacing-xsmall);"," "," "," display:flex;flex-direction:column;justify-content:center;width:",";"],e=>e.variant===i.z.S&&"gap: var(--modo-spacing-xxsmall);",e=>e.variant===i.z.M&&"gap: var(--modo-spacing-xsmall);",e=>e.variant===i.z.L&&"gap: var(--modo-spacing-small);",e=>e.customWidth||"100%"),u=n.default.div.withConfig({componentId:"sc-56c81196-2"})(["gap:var(--modo-spacing-xsmall);display:flex;"]),c=n.default.div.withConfig({componentId:"sc-56c81196-3"})(["gap:var(--modo-spacing-xsmall);display:flex;flex-direction:column;width:",";"],e=>e.customWidth||"100%"),d=n.default.div.withConfig({componentId:"sc-56c81196-4"})(["border:1px solid ",";border-radius:12px;height:20px;display:block;background:linear-gradient(to right,"," 50%,#1212120d 0);background-size:200% 100%;background-position:right;animation:"," 2s infinite;"," "," ",""],o.Ay.color.tertiaryGray08,o.Ay.color.tertiaryGray08,a,e=>e.variant===i.z.L&&"height: 24px;",e=>e.variant===i.z.M&&"height: 20px;",e=>e.variant===i.z.S&&"height: 12px;")},74639:()=>{},75003:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(72223),i=r(1862),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l({rootRef:e,rootMargin:t,disabled:r}){let u=r||!o,[c,d]=(0,n.useState)(!1),f=(0,n.useRef)(null),p=(0,n.useCallback)(e=>{f.current=e},[]);return(0,n.useEffect)(()=>{if(o){if(u||c)return;let r=f.current;if(r&&r.tagName)return function(e,t,r){let{id:n,observer:i,elements:o}=function(e){let t,r={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let i=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},s.push(r),a.set(r,t),t}(r);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}(r,e=>e&&d(e),{root:e?.current,rootMargin:t})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,t,e,c,f.current]),[p,c,(0,n.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75009:()=>{},75755:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(99554),i=r(72223),o=r(90575),a=r(90339),s=r(87809),l=r(6730),u=r(74211);function c(e,t,r,c){let d=(0,o.wA)(),{apiStoreUrl:f}=(0,a.n)(),p=(0,o.d4)(l.jf),h=(0,o.d4)(l.CE)||{},m=h?.[e]||{},v=p?.[e]||{},g=(0,i.useCallback)((i,o,a)=>{d((0,n.kt)({promoId:e,apiStoreUrl:f,isFromSearch:a,text_search:o,type:i,promotionName:t,paymentFlow:r,promotionStatus:c,source:(0,s.e)((0,u.ID)())}))},[e]),y=(0,i.useCallback)((t,r,i,o)=>{d((0,n.NK)({promoId:e,group_id:o,apiStoreUrl:f,type:t,text_search:r,isFromSearch:i,source:(0,s.e)((0,u.ID)())}))},[e]);return{summary:v,stores:m,hasOneStore:()=>
3{let e=v?.data?.filter(e=>e.count>0);return e?.length===1&&e?.[0]?.count===1},hasMultipleStore:()=>{let e=v?.data?.filter(e=>e.count>0);return!!e?.length&&(e?.length>1||1===e.length&&e.some(e=>e.count>1))},isGroups:()=>{let e=v?.data?.filter(e=>e.count>0);return e?.[0]?.type==="groups"},getShoppings:y,getStores:g,getSummary:(0,i.useCallback)(()=>{d((0,n.cH)({promoId:e,apiStoreUrl:f,source:(0,s.e)((0,u.ID)())}))},[e])}}},75811:e=>{e.exports={root:"styles_root__pas2a",socials:"styles_socials__57PI_",story:"styles_story___JL8F",inner:"styles_inner__yFQ3K",innerColumns:"styles_innerColumns__XlHAs","help-button":"styles_help-button__GmjPI",fiscalData:"styles_fiscalData__I_Hg_",resources:"styles_resources__Gvu5Q"}},76215:(e,t,r)=>{"use strict";r.d(t,{HP:()=>c,Jm:()=>a,XT:()=>l,bv:()=>s,ff:()=>u,l9:()=>o,tH:()=>i,uq:()=>n});let n="web-modo-hub-promos_corriendo",i="web-modo-hub-promos_finalizadas",o="web-modo-hub-proximas_promos",a="app-modo-hub-promos_corriendo",s="web-modo-container-hub-promos-1",l="bank-container-hub-promos-1",u="vertical",c="carrousel"},76397:e=>{e.exports={"color-variant-pay-default":"styles_color-variant-pay-default__hHcoh","color-variant-pay-dark":"styles_color-variant-pay-dark__UAZ5p","color-variant-pay-10":"styles_color-variant-pay-10__12cEA","color-variant-send-default":"styles_color-variant-send-default__bBdK2","color-variant-send-dark":"styles_color-variant-send-dark__MAL1u","color-variant-send-10":"styles_color-variant-send-10__CTbEa","color-variant-blue-cross-dark":"styles_color-variant-blue-cross-dark__R6eeL","color-variant-black":"styles_color-variant-black__OIFGw","color-variant-gray-80":"styles_color-variant-gray-80__J5mjO","color-variant-white":"styles_color-variant-white__6Zwc0","color-variant-reward-default":"styles_color-variant-reward-default__gErH0","color-variant-reward-light":"styles_color-variant-reward-light__LB7C1","color-variant-grey-03":"styles_color-variant-grey-03__9zqOM","color-variant-full-white":"styles_color-variant-full-white__yiaPp","color-variant-transparent":"styles_color-variant-transparent__Nh1UU","color-banner-absolute-container":"styles_color-banner-absolute-container__dG6Qo","color-banner-offset":"styles_color-banner-offset__ks1C8","color-banner-root":"styles_color-banner-root__rfORP","color-banner-main-container":"styles_color-banner-main-container__MXi_e","color-banner-flex-container":"styles_color-banner-flex-container__hhT_i","color-banner-text-container":"styles_color-banner-text-container___Hyef","color-banner-title":"styles_color-banner-title__lV0N9","color-banner-sub-title":"styles_color-banner-sub-title__YpyQs","color-banner-image-container":"styles_color-banner-image-container__IQyns","color-banner-mobile-width":"styles_color-banner-mobile-width__arZpy","white-banner-absolute-container":"styles_white-banner-absolute-container__IXX0X","white-banner-offset":"styles_white-banner-offset__uUIeC","white-banner-root":"styles_white-banner-root__AokII","white-banner-main-container":"styles_white-banner-main-container__tdSXG","white-banner-flex-container":"styles_white-banner-flex-container__pbCyP","white-banner-text-container":"styles_white-banner-text-container__QzL9j","white-banner-title":"styles_white-banner-title__2BiXv","white-banner-sub-title":"styles_white-banner-sub-title__Mbn1I","white-banner-image-container":"styles_white-banner-image-container__Nq4TY","white-banner-mobile-width":"styles_white-banner-mobile-width__clzCd",button:"styles_button__29Qsb","white-background":"styles_white-background__XCWOO"}},76994:e=>{e.exports={"color-variant-pay-default":"styles_color-variant-pay-default__ziyyT","color-variant-pay-dark":"styles_color-variant-pay-dark__L3MHk","color-variant-pay-10":"styles_color-variant-pay-10__5fSbp","color-variant-send-default":"styles_color-variant-send-default__GwvIM","color-variant-send-dark":"styles_color-variant-send-dark__Sic_j","color-variant-send-10":"styles_color-variant-send-10__jw6gG","color-variant-blue-cross-dark":"styles_color-variant-blue-cross-dark__uNGHz","color-variant-black":"styles_color-variant-black__mb0cn","color-variant-gray-80":"styles_color-variant-gray-80__4U7EE","color-variant-white":"styles_color-variant-white__C3YSg","color-variant-reward-default":"styles_color-variant-reward-default__yuxZp","color-variant-reward-light":"styles_color-variant-reward-light__Bq69d","color-variant-grey-03":"styles_color-variant-grey-03__VQpL8","color-variant-full-white":"styles_color-variant-full-white__flNy1","color-variant-transparent":"styles_color-variant-transparent__VE7Fo",root:"styles_root__zmEI5",title:"styles_title__VVGEn",text:"styles_text__WLZ3L","content-container":"styles_content-container__aOJ3n",content:"styles_content__mU5VV",children:"styles_children__DB5yX","banner-asset-column":"styles_banner-asset-column__zm2Ui","banner-asset-rectangle":"styles_banner-asset-rectangle__UzP__","banner-asset-square":"styles_banner-asset-square__ZuqR_","banner-asset-grid":"styles_banner-asset-grid__lmETr","banner-asset-vertical":"styles_banner-asset-vertical__DgEqc","banner-asset-horizontal":"styles_banner-asset-horizontal__r9Q4x","banner-asset-reverse":"styles_banner-asset-reverse__UEOLV"}},77719:e=>{e.exports={"common-data-tag":"styles_common-data-tag__S8kxf","bottom-tag-text":"styles_bottom-tag-text__UXLUT"}},81025:(e,t,r)=>{"use strict";r.d(t,{Id:()=>o,M5:()=>u,NO:()=>l,ZA:()=>c,i0:()=>a,pI:()=>s});let n="auth-token-sdk",i="is_sdk",o=()=>{try{return globalThis?.sessionStorage?.getItem(n)||""}catch(e){return""}},a=e=>{globalThis?.sessionStorage?.setItem(n,e)},s=()=>globalThis?.sessionStorage?.setItem(i,"true"),l=()=>{try{return!!globalThis?.sessionStorage?.getItem(i)}catch(e){return""}},u=()=>{try{let e=globalThis?.sessionStorage?.getItem("geo_lat")||"",t=globalThis?.sessionStorage?.getItem("geo_long")||"";return{lat:e,lng:t}}catch(e){return{lat:"",lng:""}}},c=()=>{try{return Number(globalThis?.sessionStorage?.getItem("status_bar_height"))||0}catch(e){return 0}}},82058:e=>{e.exports={content:"styles_content__yu289"}},82104:(e,t,r)=>{"use strict";r.d(t,{U:()=>o});var n=r(28761),i=r(32779);
3let o={online:{subtitle:"Ir a tienda online",onClick:({store:e})=>{window.open(e?.url,"_blank")}},onsite:{subtitle:"Ver en mapa",onClick:({store:e,promoId:t,navigate:r})=>{r((0,i.kb)({store:e,promoId:t}))}},groups:{subtitle:"Ver listado",onClick:({store:e,setSelectedComponent:t})=>{t({storeId:e.id,page:n.N.SHOPPING_LIST})}}}},82398:(e,t,r)=>{"use strict";r.d(t,{f:()=>u});var n=r(59827),i=r(72223),o=r(1094),a=r.n(o),s=r(21379),l=r(99485);function u({variant:e=l.i.H1,className:t,title:r,...o}){return(0,n.Y)("h1",{className:(0,s.XS)(a().root,a()[e],t),...o,children:r.map(({text:e,color:t},r)=>(0,n.Y)(i.Fragment,{children:t?(0,n.Y)("span",{className:(0,s.XS)(a().span,a()[`color-variant-${t}`]),children:e}):e},r))})}},82475:e=>{e.exports={"top-tag-container":"styles_top-tag-container__SL7jF","top-tag-text":"styles_top-tag-text__rzZNI",wave:"styles_wave__0rmpq"}},82643:(e,t,r)=>{"use strict";r.d(t,{AQ:()=>p,C6:()=>i,Cl:()=>o,Ju:()=>u,N3:()=>f,Tt:()=>a,YH:()=>l,fX:()=>d,sH:()=>s,xN:()=>h,zs:()=>c});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}function l(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(6===u[0]&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function u(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function d(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function f(e){return this instanceof f?(this.v=e,this):new f(e)}function p(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),n[Symbol.asyncIterator]=function(){return this},n;function a(e,t){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||s(e,t)})},t&&(n[e]=t(n[e])))}function s(e,t){try{var r;(r=i[e](t)).value instanceof f?Promise.resolve(r.value.v).then(l,u):c(o[0][2],r)}catch(e){c(o[0][3],e)}}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function h(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=u(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){var o,a,s;o=n,a=i,s=(t=e[r](t)).done,Promise.resolve(t.value).then(function(e){o({value:e,done:s})},a)})}}}"function"==typeof SuppressedError&&SuppressedError},83810:(e,t,r)=>{"use strict";var n,i=(n=r(36110))&&n.__esModule?n:{default:n};e.exports={tags:function(e){var t=e.id,r=e.events,n=e.dataLayer,o=e.dataLayerName,a=e.preview,s=">m_auth="+e.auth,l=">m_preview="+a;t||(0,i.default)("GTM Id is required");var u="\n (function(w,d,s,l,i){w[l]=w[l]||[];\n w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js', "+JSON.stringify(r).slice(1,-1)+"});\n var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';\n j.async=true;
3j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl+'"+s+l+">m_cookies_win=x';\n f.parentNode.insertBefore(j,f);\n })(window,document,'script','"+o+"','"+t+"');";return{iframe:'\n <iframe src="https://www.googletagmanager.com/ns.html?id='+t+s+l+'>m_cookies_win=x"\n height="0" width="0" style="display:none;visibility:hidden" id="tag-manager"></iframe>',script:u,dataLayerVar:this.dataLayer(n,o)}},dataLayer:function(e,t){return"\n window."+t+" = window."+t+" || [];\n window."+t+".push("+JSON.stringify(e)+")"}}},84939:e=>{e.exports={"common-card-promo-container":"styles_common-card-promo-container__3W8tN","card-promo-container-sm":"styles_card-promo-container-sm__D5SOR","card-promo-container-md":"styles_card-promo-container-md__Q6j0F","card-promo-container-lg":"styles_card-promo-container-lg__k7kCq","card-promo-container-xl":"styles_card-promo-container-xl__zHmtm","common-image-tag-container":"styles_common-image-tag-container__F7xeG","image-tag-container-md":"styles_image-tag-container-md__vnTxP","image-tag-container-lg":"styles_image-tag-container-lg__b8i3y","image-tag-container-xl":"styles_image-tag-container-xl__9rJv5","common-primary-image":"styles_common-primary-image__dIWOe","primary-image-sm":"styles_primary-image-sm__v87NS","primary-image-md":"styles_primary-image-md__ZBu_M","primary-image-lg":"styles_primary-image-lg__yJ0ZA","primary-image-xl":"styles_primary-image-xl__qhlVZ","common-data":"styles_common-data__kbjyX","data-sm":"styles_data-sm__FxRHd","data-md":"styles_data-md__eM6Xf","data-lg":"styles_data-lg__TMHCM","data-xl":"styles_data-xl__o_r4C","elliptical-text":"styles_elliptical-text__AuCKD",title:"styles_title__e26rM","title-sm":"styles_title-sm__9Wq_G","title-md":"styles_title-md__6rXsf","title-lg":"styles_title-lg__IB6Fb","title-xl":"styles_title-xl__b_52T","center-text":"styles_center-text__4OVhw","common-title-wrapper":"styles_common-title-wrapper__uO2nD","title-wrapper-sm":"styles_title-wrapper-sm__1Pw3p","title-wrapper-md":"styles_title-wrapper-md__23efV","title-wrapper-lg":"styles_title-wrapper-lg__TVJ2T","title-wrapper-xl":"styles_title-wrapper-xl__DoF2Y","common-benefit-container":"styles_common-benefit-container__WL5Wa","benefit-container-sm":"styles_benefit-container-sm__oZybK","text-benefit":"styles_text-benefit__zZG0v","common-secondary-image":"styles_common-secondary-image__p0tSF","secondary-image-sm":"styles_secondary-image-sm__q5LLc","secondary-image-xl":"styles_secondary-image-xl___QQJZ","common-data-tag-container":"styles_common-data-tag-container__hGo_S","data-tag-container-md":"styles_data-tag-container-md__oUqVd","data-tag-container-lg":"styles_data-tag-container-lg__VFczd","data-tag-container-xl":"styles_data-tag-container-xl__wH3dK"}},85760:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(59827),i=r(31671),o=r(99512),a=r(74569);let s=({showDivider:e=!1,customWidth:t,icons:r,quantity:s=1,variant:l})=>(0,n.Y)(a.dU,{"data-testid":"skeleton-wrapper",children:Array.from({length:s},(a,s)=>{let u=`skeleton-${s}-${r?.[s]?.toString()||"no-icon"}`;return(0,n.FD)("div",{children:[e&&(0,n.Y)(i.A,{},`divider-${s}`),(0,n.Y)(o.A,{icon:r?.[s]??null,order:s,variant:l,customWidth:t},`skeleton-${s}`)]},u)})})},86197:()=>{},87031:(e,t,r)=>{"use strict";r.d(t,{F:()=>n});let n=({type:e,payload:t=""})=>{window?.ReactNativeWebView?.postMessage(JSON.stringify({type:e,payload:t}))}},87187:e=>{var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(function(e,t,n){for(var i,o=[],a=t;a<n;a+=3)i=(e[a]<<16&0xff0000)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,a,a+16383>
vendor: 19,248 bytes, line 3
3s?s:a+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="u">typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},72:function(e,t,r){"use strict";var n=r(675),i=r(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|p(n,i),l=a(o),u=l.write(n,i);return u!==o&&(l=l.slice(0,u)),l}if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(T(e,ArrayBuffer)||e&&T(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(T(e,SharedArrayBuffer)||e&&T(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),n}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var c=e.valueOf&&e.valueOf();if(null!=c&&c!==e)return s.from(c,t,r);var h=function(e){if(s.isBuffer(e)){var t=0|f(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(h)return h;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|f(e))}function d(e){for(var t=e.length<0?0:0|f(e.length),r=a(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!s.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)};function f(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||T(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return k(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return A(e).length;default:if(i)return n?-1:k(e).length;t=(""+t).toLowerCase(),i=!0}}function h(e,t,r){var i,o,a,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=I[e[o]];return i}(this,t,r);case"utf8":case"utf-8":return y(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return i=this,o=t,a=r,0===o&&a===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(o,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,t,r);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function m(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function v(e,t,r,n,i){var o;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:g(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return g(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function g(e,t,r,n,i){var o,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else -1!==c&&(o-=o-c),c=-1}else for(r+l>s&&(r=s-l),o=r;o>=0;o--){for(var d=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){d=!1;break}if(d)return o}return -1}s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),T(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=s.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(T(o,Uint8Array)&&(o=s.from(o)),!s.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?y(this,0,e):h.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,l=Math.min(o,a),u=this.slice(n,i),c=e.slice(t,r),d=0;d<l;++d)if(u[d]!==c[d]){o=u[d],a=c[d];break}return o<a?-1:+(a<o)},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)};function y(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,l,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=r)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=d}var f=n,p=f.length;if(p<=4096)return String.fromCharCode.apply(String,f);for(var h="",m=0;m<p;)h+=String.fromCharCode.apply(String,f.slice(m,m+=4096));return h}function b(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function _(e,t,r,n,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function w(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function S(e,t,r,n,o){return t*=1,r>>>=0,o||w(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function x(e,t,r,n,o){return t*=1,r>>>=0,o||w(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}s.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,d,f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s,l=parseInt(t.substr(2*a,2),16);if((s=l)!=s)break;e[r+a]=l}return a}(this,e,t,r);case"utf8":case"utf-8":return i=t,o=r,P(k(e,this.length-i),this,i,o);case"ascii":return a=t,s=r,P(C(e),this,a,s);case"latin1":case"binary":return function(e,t,r,n){return P(C(t),e,r,n)}(this,e,t,r);case"base64":return l=t,u=r,P(A(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,d=r,P(function(e,t){for(var r,n,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,d);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;_(this,e,t,r,i,0)}var o=1,a=0;for(this[t]=255&e;++a<r&&(o*=256);)this[t+a]=e/o&255;return t+r},s.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;_(this,e,t,r,i,0)}var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},s.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);_(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);_(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return S(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return S(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return x(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return x(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var o=i-1;o>=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},s.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=s.isBuffer(e)?e:s.from(e,n),l=a.length;
3if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=a[i%l]}return this};var E=/[^+/0-9A-Za-z-_]/g;function k(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function C(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function A(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(E,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function P(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function T(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var I=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},783:function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,l=(1<<s)-1,u=l>>1,c=-7,d=r?i-1:0,f=r?-1:1,p=e[t+d];for(d+=f,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=u}return(p?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,d=c>>1,f=5960464477539062e-23*(23===i),p=n?0:o-1,h=n?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+p]=255&s,p+=h,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[r+p]=255&a,p+=h,a/=256,u-=8);e[r+p-h]|=128*m}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}},a=!0;try{t[e](o,o.exports,n),a=!1}finally{a&&delete r[e]}return o.exports}n.ab="//",e.exports=n(72)},87809:(e,t,r)=>{"use strict";r.d(t,{e:()=>i});var n=r(45477);function i(e){let t=e.includes("webview=true");return e.includes("promos-banco")||e.includes("promos/banks")?t?n.Sp.WEBVIEW_BANK:n.Sp.WEB_BANK:n.Sp.WEB_MODO}},89402:e=>{e.exports={root:"styles_root__q_0K4",subtitle:"styles_subtitle__u8Fa_"}},89747:(e,t,r)=>{"use strict";r.d(t,{CC:()=>u,fW:()=>c,hO:()=>l});var n=r(5173),i=r(99614),o=r(49736),a=r(55403),s=r(76215);let l=(0,n.zD)("stores/fetchStores",async({baseStoresUrl:e,search:t,stateFilter:r,category:n,order:s,page:l,limit:u},{rejectWithValue:c})=>{try{let c=await (0,i.oM)({baseStoresUrl:e,search:t,stateFilter:r,category:n,order:s,page:l,limit:u});return t?.length>=3&&"stores"in c&&(0,o.w)({eventName:a.kG.amplitude,properties:{keywords:t,numberOfSearchResult:c.stores.length}}),c}catch(e){return c(e)}}),u=(0,n.zD)("stores/fetchHighlightedPromos",async({basePromosUrl:e,limit:t},{rejectWithValue:r,signal:n})=>{try{return await (0,i.SO)({basePromosUrl:e,slot:s.uq,signal:n,limit:t})}catch(e){return r(e)}}),c=(0,n.zD)("stores/fetchSpotlightStores",async({baseStoresUrl:e,limit:t},{rejectWithValue:r,signal:n})=>{try{return await (0,i.as)({baseStoresUrl:e,limit:t,signal:n})}catch(e){return r(e)}})},90339:(e,t,r)=>{"use strict";r.d(t,{n:()=>s,q:()=>a});var n=r(59827),i=r(72223);let o=(0,i.createContext)();function a({children:e,value:t}){return(0,n.Y)(o.Provider,{value:t,children:e})}function s(){let e=(0,i.useContext)(o);if(!e)throw Error("useDetailContext must be used within a PromotionEnvVarsProvider");return e}},90575:(e,t,r)=>{"use strict";r.d(t,{Kq:()=>y,wA:()=>w,d4:()=>m});var n=r(90799),i=r(95197),o=r(69507);let a=function(e){e()};var s=r(72223);let l=Symbol.for("react-redux-context"),u="u">typeof globalThis?globalThis:{},c=function(){var e;if(!s.createContext)return{};let t=null!=(e=u[l])?e:u[l]=new Map,r=t.get(s.createContext);return r||(r=s.createContext(null),t.set(s.createContext,r)),r}();function d(e=c){return function(){return(0,s.useContext)(e)}}let f=d(),p=()=>{throw Error("uSES not initialized!")},h=(e,t)=>e===t,m=function(e=c){let t=e===c?f:d(e);return function(e,r={}
3){let{equalityFn:n=h,stabilityCheck:i,noopCheck:o}="function"==typeof r?{equalityFn:r}:r,{store:a,subscription:l,getServerState:u,stabilityCheck:c,noopCheck:d}=t();(0,s.useRef)(!0);let f=(0,s.useCallback)({[e.name]:t=>e(t)}[e.name],[e,c,i]),m=p(l.addNestedSub,a.getState,u||a.getState,f,n);return(0,s.useDebugValue)(m),m}}();r(13027),r(9456);let v={notify(){},get:()=>[]},g="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement?s.useLayoutEffect:s.useEffect,y=function({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:o="once"}){let l=s.useMemo(()=>{let t=function(e){let t,r=v,n=0,i=!1;function o(){u.onStateChange&&u.onStateChange()}function s(){if(n++,!t){let n,i,s;t=e.subscribe(o),n=a,i=null,s=null,r={clear(){i=null,s=null},notify(){n(()=>{let e=i;for(;e;)e.callback(),e=e.next})},get(){let e=[],t=i;for(;t;)e.push(t),t=t.next;return e},subscribe(e){let t=!0,r=s={callback:e,next:null,prev:s};return r.prev?r.prev.next=r:i=r,function(){t&&null!==i&&(t=!1,r.next?r.next.prev=r.prev:s=r.prev,r.prev?r.prev.next=r.next:i=r.next)}}}}}function l(){n--,t&&0===n&&(t(),t=void 0,r.clear(),r=v)}let u={addNestedSub:function(e){s();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,l())},getListeners:()=>r};return u}(e);return{store:e,subscription:t,getServerState:n?()=>n:void 0,stabilityCheck:i,noopCheck:o}},[e,n,i,o]),u=s.useMemo(()=>e.getState(),[e]);return g(()=>{let{subscription:t}=l;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),u!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}},[l,u]),s.createElement((t||c).Provider,{value:l},r)};function b(e=c){let t=e===c?f:d(e);return function(){let{store:e}=t();return e}}let _=b(),w=function(e=c){let t=e===c?_:b(e);return function(){return t().dispatch}}();p=i.useSyncExternalStoreWithSelector,n.useSyncExternalStore,a=o.unstable_batchedUpdates},90799:(e,t,r)=>{"use strict";e.exports=r(4862)},91579:e=>{e.exports={root:"styles_root__9AtRl",content:"styles_content__qicrb","grid-gap":"styles_grid-gap__3G4pP",background:"styles_background__DSD3t",column:"styles_column__MgFhC",row:"styles_row__v7OaD"}},92734:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(72223);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=o(e,n)),t&&(i.current=o(t,n))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93571:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(59827);r(72223);let i=e=>(0,n.FD)("svg",{width:"20",height:"17",viewBox:"0 0 20 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,n.Y)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.56066 0.43934C10.1464 1.02513 10.1464 1.97487 9.56066 2.56066L3.62132 8.5L9.56066 14.4393C10.1464 15.0251 10.1464 15.9749 9.56066 16.5607C8.97487 17.1464 8.02513 17.1464 7.43934 16.5607L0.43934 9.56066C-0.146447 8.97487 -0.146447 8.02513 0.43934 7.43934L7.43934 0.43934C8.02513 -0.146447 8.97487 -0.146447 9.56066 0.43934Z",fill:"#121212"}),(0,n.Y)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 8.5C0 7.67157 0.671573 7 1.5 7H18C18.8284 7 19.5 7.67157 19.5 8.5C19.5 9.32843 18.8284 10 18 10H1.5C0.671573 10 0 9.32843 0 8.5Z",fill:"#121212"})]})},94164:e=>{e.exports={"primary-black":"styles_primary-black__a9_IY",root:"styles_root__o92Dp",button:"styles_button__opbAb","top-title":"styles_top-title__svvBC","default-title":"styles_default-title__AIEIu"}},94331:(e,t,r)=>{"use strict";r.d(t,{F1:()=>o,ZV:()=>a});var n=r(45477),i=r(76215);let o=(e=[],t=n.gF.ACTIVE)=>e.map(e=>({...e,card_status:t})),a=(e=[],t="")=>t===i.l9?o(e,n.gF.FUTURE):t===i.tH?o(e,n.gF.EXPIRED):e},94576:e=>{e.exports={style:{fontFamily:"'Red Hat Display', 'Red Hat Display Fallback', sans-serif",fontStyle:"normal"},className:"__className_f4c31c",variable:"__variable_f4c31c"}},95023:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>F,default:()=>j});var n=r(59827),i=r(72223),o=r(50084),a=r.n(o),s=r(90575),l=r(57200),u=r.n(l),c=r(4452),d=r(64039),f=r.n(d),p=r(94576),h=r.n(p),m=r(21100),v=r.n(m),g=r(44584),y=r(51817);function b({data:e,children:t}){let{seo:r,extraMeta:i,jsonLd:o}=e;return(0,n.FD)(n.FK,{children:[(0,n.FD)(y.A,{seo:r,children:[i?.map(e=>{let t=`${e.property??e.name}-${e.content}`;return e.property?(0,n.Y)("meta",{property:e.property,content:e.content},t):e.name?(0,n.Y)("meta",{name:e.name,content:e.content},t):null}),t]}),o?.map((e,t)=>{let r=e["@type"];return(0,n.Y)(g.A,{data:e},`jsonld-${"string"==typeof r?r:"schema"}-${t}`)})]})}var _=r(73381);r(74639),r(70616),r(75009);var w=r(9723),S=r(72277);r(785),r(86197),r(21510),r(21656),r(49203);var x=r(5173);function E(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var k=()=>Math.random().toString(36).substring(7).split("").join("."),C={INIT:`@@redux/INIT${k()}`,REPLACE:`@@redux/REPLACE${k()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${k()}`},A=r(17389),P=r(70180),T=r(6730),I=r(32123);let O=function(e){let t,r=Object.keys(e),n={};for(let t=0;t<r.length;t++){let i=r[t];"function"==typeof e[i]&&(n[i]=e[i])}let i=Object.keys(n);
3try{Object.keys(n).forEach(e=>{let t=n[e];if(void 0===t(void 0,{type:C.INIT}))throw Error(E(12));if(void 0===t(void 0,{type:C.PROBE_UNKNOWN_ACTION()}))throw Error(E(13))})}catch(e){t=e}return function(e={},r){if(t)throw t;let o=!1,a={};for(let t=0;t<i.length;t++){let s=i[t],l=n[s],u=e[s],c=l(u,r);if(void 0===c)throw r&&r.type,Error(E(14));a[s]=c,o=o||c!==u}return(o=o||i.length!==Object.keys(e).length)?a:e}}({promotionsReducer:A.Ay,cmsReducer:I.Ay,generalReducer:P.Ay,storesReducer:T.Ay}),R=(0,x.U1)({reducer:O,devTools:!1});var N=r(19671),L=r(81025),D=r(50839);function M({Component:e,pageProps:t}){let{asPath:r,push:o}=(0,c.useRouter)(),[a,l]=(0,i.useState)(!1),d=(0,i.useCallback)(()=>{if(a){let e=globalThis?.sessionStorage;if(!e)return;let t=e?.getItem("currentPath");e?.setItem("prevPath",t),e?.setItem("currentPath",globalThis.location.pathname)}},[a]);(0,i.useEffect)(()=>{try{let e=globalThis?.localStorage,t=globalThis?.sessionStorage;l(!!(e||t))}catch(e){console?.warn("Advertencia, no se ha podido verificar la dis
3ponibilidad del almacenamiento web -",e),l(!1);return}},[globalThis]),(0,i.useEffect)(()=>d(),[r]),(0,i.useEffect)(()=>{console.info("v2.472.0")},[]),(0,i.useEffect)(()=>{u().initialize({gtmId:"GTM-59R5Z3H"}),window.addEventListener("message",e=>{if(e.data&&function(e){if(!e)return!1;if(e===globalThis.location?.origin||new Set((D.env.NEXT_PUBLIC_ALLOWED_MESSAGE_ORIGINS??"").split(",").map(e=>e.trim()).filter(Boolean)).has(e))return!0;try{let{hostname:t}=new URL(e);return"modo.com.ar"===t||t.endsWith(".modo.com.ar")}catch{return!1}}(e.origin))try{let r;if("string"==typeof e.data)r=JSON.parse(e.data);else{if("object"!=typeof e.data)return;r=e.data}if(r.type)if("OPEN_BLANK_URL"===r.type)window.open(r.payload,"_blank");else if("REDIRECT_TO_MAP"===r.type)o(window.location.origin+r.payload);else if("SCROLL_INTENT"===r.type){var t;let e;t=r.direction,e=window.pageYOffset||document.documentElement.scrollTop,"down"===t?window.scrollTo({top:e+200,behavior:"smooth"}):"up"===t&&window.scrollTo({top:Math.max(0,e-200),behavior:"smooth"})}else window?.ReactNativeWebView?.postMessage(JSON.stringify({type:r.type,payload:r.payload}))}catch(e){console.error("Error parsing message data:",e)}}),t?.headerToken&&(0,L.i0)(t?.headerToken)},[]);let p=r.split("?")[0].split("#")[0],m=`https://www.modo.com.ar${"/"===p?"":p}`;return(0,n.FD)("div",{className:`${h().variable} ${v().variable}`,children:[(0,n.FD)(f(),{children:[(0,n.Y)("link",{rel:"canonical",href:m},"canonical"),(0,n.Y)("meta",{property:"og:url",content:m},"og:url"),(0,n.Y)("link",{rel:"alternate",hrefLang:"es-AR",href:m}),(0,n.Y)("link",{rel:"alternate",hrefLang:"x-default",href:m}),(0,n.Y)("meta",{content:"es-ar",httpEquiv:"content-language"}),(0,n.Y)("meta",{name:"robots",content:"index,follow"}),(0,n.Y)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),a&&(0,n.FD)(n.FK,{children:[(0,n.Y)("script",{type:"text/javascript",src:"//script.crazyegg.com/pages/scripts/0112/8493.js",async:"async"}),(0,n.Y)("script",{type:"text/javascript",src:"//onelinksmartscript.appsflyer.com/onelink-smart-script-latest.js",async:"async"})]}),(0,n.Y)("script",{type:"text/javascript",src:"/static/js/public-env-vars.js","data-environment":!0,"data-testid":"environments"}),(0,n.Y)("style",{global:"true",jxs:"true",children:` 4 * { 5 box-sizing: border-box; 6 -webkit-font-smoothing: antialiased; 7 -moz-osx-font-smoothing: grayscale; 8 outline: none; 9 } 10 11 html { 12 font-family: var(--font-red-hat-display, 'Red Hat Display'), sans-serif; 13 font-size: 20px; 14 scroll-behavior: smooth; 15 color: ${N.w4.color.black}; 16 } 17 18 body { 19 margin: 0; 20 overflow-x: hidden; 21 } 22 23 p, 24 ul { 25 padding: 0; 26 margin: 0; 27 } 28 29 ul { 30 list-style: none; 31 } 32 33 a { 34 color: inherit; 35 } 36 37 /* Make images easier to work with */ 38 img { 39 display: block; 40 max-width: 100%; 41 height: auto; 42 vertical-align: top; 43 } 44 45 /* Inherit fonts for inputs and buttons */ 46 input, 47 button, 48 textarea, 49 select { 50 font: inherit; 51 } 52 button { 53 padding: 0; 54 border: 0; 55 background: none; 56 } 57 58 /* Remove _all_ animations and transitions for people that prefer not to see them */ 59 @media (prefers-reduced-motion: reduce) { 60 * { 61 animation-play-state: paused !important; 62 transition: none !important; 63 scroll-behavior: auto !important; 64 } 65 } 66 `})]}),(0,_.G0)(p)&&(0,_.LA)().map(e=>(0,n.Y)(g.A,{data:e},e.operatingSystem)),t?.pageSeo&&(0,n.Y)(b,{data:t.pageSeo}),(0,n.Y)("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:z-50 focus:bg-primary-PaymentDefault focus:text-white focus:px-4 focus:py-2 focus:rounded-lg",children:"Saltar al contenido principal"}),(0,n.Y)("div",{id:"main-content",tabIndex:"-1",className:"focus:outline-none",children:(0,n.Y)(s.Kq,{store:R,children:(0,n.Y)(w.NP,{children:(0,n.Y)(S.Ay,{children:(0,n.Y)(e,{...t})})})})})]})}M.propTypes={pageProps:a().object};var F=!0;let j=M},95197:(e,t,r)=>{"use strict";e.exports=r(19245)},97133:(e,t,r)=>{"use strict";r.d(t,{ZA:()=>o});var n=r(4452),i=r(72223);function o(e,{history:t="replace",parse:r=e=>e,serialize:a=e=>`${e}`,defaultValue:s}={}){var l;let u=(0,n.useRouter)(),c=i.useMemo(()=>"push"===t?u.push:u.replace,[t]),d=i.useCallback(()=>
66{if("u"<typeof window)return null;let t=new URLSearchParams(window.location.search).get(e);return null!==t?r(t):null},[]),f=i.useMemo(d,[u.query[e]]),p=i.useCallback((t,r)=>{let n=d(),i="function"==typeof t?t(n):t,o=new URLSearchParams(window.location.search);null==i?o.delete(e):o.set(e,a(i));let[s]=u.asPath.split(/\?|#/,1),l=o.toString(),f=window.location.hash;return null==c?void 0:c.call(u,{pathname:u.pathname,hash:f,search:l},{pathname:s,hash:f,search:l},r)},[e,c]);return[null!=(l=null!=f?f:s)?l:null,p]}},97522:e=>{e.exports={"color-variant-pay-default":"styles_color-variant-pay-default__dABKx","color-variant-pay-dark":"styles_color-variant-pay-dark__RLubW","color-variant-pay-10":"styles_color-variant-pay-10__L2CqU","color-variant-send-default":"styles_color-variant-send-default__YkMMU","color-variant-send-dark":"styles_color-variant-send-dark__CfTRA","color-variant-send-10":"styles_color-variant-send-10__3kUzw","color-variant-blue-cross-dark":"styles_color-variant-blue-cross-dark__cib4e","color-variant-black":"styles_color-variant-black__pSqhx","color-variant-gray-80":"styles_color-variant-gray-80__nGY2M","color-variant-white":"styles_color-variant-white__P4aul","color-variant-reward-default":"styles_color-variant-reward-default__AfS7c","color-variant-reward-light":"styles_color-variant-reward-light__51pDa","color-variant-grey-03":"styles_color-variant-grey-03__EgWAB","color-variant-full-white":"styles_color-variant-full-white__SvIbX","color-variant-transparent":"styles_color-variant-transparent__wzNtm",root:"styles_root__ODvGb","video-background":"styles_video-background__bdNo9","video-filter":"styles_video-filter__XBqQu",content:"styles_content__Xi3xD",title:"styles_title__6a_r4",text:"styles_text__FrTWl"}},99485:(e,t,r)=>{"use strict";r.d(t,{i:()=>i});var n,i=((n={}).H1="h1",n.H2="h2",n)},99512:(e,t,r)=>{"use strict";r.d(t,{A:()=>s,z:()=>a});var n,i=r(59827),o=r(74569),a=((n={}).L="L",n.M="M",n.S="S",n);let s=({icon:e,variant:t="M",customWidth:r="100%",order:n})=>(0,i.FD)(o.ls,{"data-testid":"skeleton-container",variant:t,children:[e||(0,i.Y)(o.ry,{"data-testid":"skeleton-icon"}),(0,i.FD)(o.AB,{"data-testid":"skeleton-section",variant:t,customWidth:r,children:[(0,i.Y)(o.at,{"data-testid":"skeleton-title",variant:t}),(0,i.Y)(o.at,{"data-testid":"skeleton-subtitle",variant:t})]})]},`skeleton-container-${n}`)},99554:(e,t,r)=>{"use strict";r.d(t,{NK:()=>x,kt:()=>S,cH:()=>E});var n=r(87809),i=r(27804),o=r(99614),a=r(74211);let s=async({apiStoreUrl:e,promoId:t,params:r})=>{if(!t)return null;try{let{data:n}=await i.A.get(`${e}/stores/applications/summary`,{params:(0,o.GQ)({application_id:t,entities:"stores,brands,groups",slots:!1,...r})});return n}catch(e){return null}},l=async({apiStoreUrl:e,promoId:t,type:r,params:n})=>{if(!t)return null;try{let{data:o}=await i.A.get(`${e}/stores/applications/${r}`,{params:{application_id:t,slots:!1,...n}});return{...o,type:r,isFromSearch:n.isFromSearch}}catch(e){return null}},u=async({apiStoreUrl:e,promoId:t,type:r,group_id:s,params:l})=>{if(!t)return null;try{let{data:u}=await i.A.get(`${e}/stores/by-shoppings`,{params:(0,o.GQ)({group_id:s,source:(0,n.e)((0,a.ID)()),application_id:t,page:l.page,text_search:l.text_search})});return{...u,type:r,isFromSearch:l.isFromSearch}}catch(e){return null}};var c=r(5173),d=r(29258),f=r(70180),p=r(8114),h=r(81025);let m=e=>({id:e.id,name:e.fantasy_name,image:e?.image||e?.categories?.[0]?.img_square||"https://assets.mobile.playdigital.com.ar/images/merchants/categories/Ctg-OtrosyTodos.png",brand:e?.brand,url:e?.url,location:{lng:e?.location?.coordinates?.[0],lat:e?.location?.coordinates?.[1]},address:e?.address,categories:e?.categories,district:e?.district,state:e?.state,distance:e?.distance});var v=r(52155);let g=(e,t,r,n)=>{e.lat=r?.toString()||"",e.long=n?.toString()||"",e.hasGeolocation=t||!1,(0,d.V4)({geolocation:{hasGeolocation:t,lat:r,lng:n}})},y=(e,t,r,n,i,o)=>{(0,d.bv)({promotionId:e,promotionName:t?.promotionName,promotionStatus:t?.promotionStatus,promotionType:t?.paymentFlow,section:v.W[n],stores:r?.results,keywords:t?.text_search,geolocation:!!i&&!!o})},b=(e,t,r)=>{if(r.lat&&r.long&&r.hasGeolocation&&t!=v.y.ONLINE)return{...e,results:e?.results?.map(e=>m(e)).sort((e,t)=>
66e.distance-t.distance)};return{...e,results:e?.results?.map(e=>m(e)).sort((e,t)=>e.name.localeCompare(t.name,void 0,{sensitivity:"base"}))}},_=async(e,t,r,n,i,o)=>{let a=(0,h.M5)();if(t)g(n,a.lat&&a.lng,a.lat,a.lng);else if(i&&o&&e)g(n,e,i,o);else{let e=await (0,p.H)();r((0,f.vI)({hasGeolocation:!0,lat:e.lat,lng:e.lng})),g(n,e.hasGeolocation,e.lat,e.lng)}},w=(e,t,r)=>{let n=e?.storesReducer?.storesByType?.[t];r.isFromSearch?r.page=1:r.page=(e=>{let{page:t=0,total_pages:r}=e||{},n=Number(t);return r<=n?n:n+1})(n?.data?.pagination)},S=(0,c.zD)("stores/fetchStoresByType",async({promoId:e,apiStoreUrl:t,type:r,...n},{rejectWithValue:i,getState:o,dispatch:a})=>{let s=o(),{isSDK:u,geolocation:{hasGeolocation:c,lat:d,lng:f}}=s.generalReducer;n.applications="promotions",await _(c,u,a,n,d,f),w(s,e,n);try{let i=await l({apiStoreUrl:t,promoId:e,type:r,params:n});return n.isFromSearch&&n.text_search&&y(e,n,i,r,d,f),b(i,r,n)}catch(e){return i(e)}}),x=(0,c.zD)("stores/fetchStoresByShoppingId",async({promoId:e,apiStoreUrl:t,type:r,group_id:n,...i},{rejectWithValue:o,getState:a,dispatch:s})=>{let l=a(),{isSDK:c,geolocation:{hasGeolocation:d,lat:f,lng:p}}=l.generalReducer;i.applications="promotions",await _(d,c,s,i,f,p),w(l,e,i);try{let o=await u({apiStoreUrl:t,promoId:e,type:r,group_id:n,params:i});return i.isFromSearch&&i.text_search&&y(e,i,o,r,f,p),b(o,v.y.SHOPPING,i)}catch(e){return o(e)}}),E=(0,c.zD)("stores/fetchStoresSummaryByPromoId",async({promoId:e,apiStoreUrl:t,...r},{rejectWithValue:n})=>{r.applications="promotions";try{return{summary:await s({apiStoreUrl:t,promoId:e,params:r})}}catch(e){return n(e)}})},99614:(e,t,r)=>{"use strict";r.d(t,{GQ:()=>s,SO:()=>c,as:()=>u,oM:()=>l});var n=r(50839);let i=n.env.API_BASE_PROMOS_URL_BFF,o=n.env.API_BASE_STORES_BFF_URL,a=[null,void 0,""],s=(e={})=>Object.fromEntries(Object.entries(e).filter(([,e])=>!a.includes(e))),l=async({baseStoresUrl:e=o,search:t="",stateFilter:r="",category:n=null,application:i=null,applicationId:a=null,order:s=null,limit:l=24,page:u=1})=>{try{let o=`${e}/stores/online?source=web_modo&limit=${l}&page=${u-1}`;t&&(o=`${o}&search=${encodeURIComponent(t)}`),"all"!==r&&(o=`${o}&applications=${encodeURIComponent(r)}`),n&&(o=`${o}&category=${encodeURIComponent(n)}`),i&&a&&(o=`${o}&application=${encodeURIComponent(i)}&application_id=${encodeURIComponent(a)}`),s&&(o=`${o}&order_by=name&order=${s}`);let c=await fetch(o),{stores:d,pagination:f}=await c.json();return{stores:d,pagination:f}}catch(e){return[]}},u=async({baseStoresUrl:e=o,signal:t,limit:r=5})=>{try{let n=`${e}/stores/online?source=web_modo&limit=${r}&order_by=spotlight`,i=await fetch(n,{signal:t}).then(e=>e),{stores:o}=await i.json();return o}catch(e){return[]}},c=async({basePromosUrl:e=i,slot:t,signal:r,limit:n})=>{let o=await fetch(`${e}/slots/${t}?fflow=online&limit=${n}`,{signal:r}).then(e=>e);return o.status>=400?{cards:[]}:await o.json()}}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(72989),t(73921))),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.