PageSourceSearch

https://alivecor.com/_next/static/chunks/b392c9177b9ec3d8.js

js alivecor.com collected 2026-09-24 08:52:08 UTC 217,099 bytes, 30 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,232189,(e,t,n)=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},865156,(e,t,n)=>{"use strict";var r=e.r(232189);function i(){}function a(){}a.resetWarningCache=i,t.exports=function(){function e(e,t,n,i,a,o){if(o!==r){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 n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},745009,(e,t,n)=>{t.exports=e.r(865156)()},716915,(e,t,n)=>{!function(r,i){if("function"==typeof define&&define.amd){let r;void 0!==(r=i(e.r,n,t))&&e.v(r)}else t.exports=i()}(e.e,function(){var e,t,n,r={};r.version="0.2.0";var i=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function a(e,t,n){return e<t?t:e>n?n:e}r.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(i[t]=n);return this},r.status=null,r.set=function(e){var t=r.isStarted();r.status=1===(e=a(e,i.minimum,1))?null:e;var n=r.render(!t),c=n.querySelector(i.barSelector),l=i.speed,u=i.easing;return n.offsetWidth,o(function(t){var a,o,d,p;""===i.positionUsing&&(i.positionUsing=r.getPositioningCSS()),s(c,(a=e,o=l,d=u,(p="translate3d"===i.positionUsing?{transform:"translate3d("+(-1+a)*100+"%,0,0)"}:"translate"===i.positionUsing?{transform:"translate("+(-1+a)*100+"%,0)"}:{"margin-left":(-1+a)*100+"%"}).transition="all "+o+"ms "+d,p)),1===e?(s(n,{transition:"none",opacity:1}),n.offsetWidth,setTimeout(function(){s(n,{transition:"all "+l+"ms linear",opacity:0}),setTimeout(function(){r.remove(),t()},l)},l)):setTimeout(t,l)}),this},r.isStarted=function(){return"number"==typeof r.status},r.start=function(){r.status||r.set(0);var e=function(){setTimeout(function(){r.status&&(r.trickle(),e())},i.trickleSpeed)};return i.trickle&&e(),this},r.done=function(e){return e||r.status?r.inc(.3+.5*Math.random()).set(1):this},r.inc=function(e){var t=r.status;return t?("number"!=typeof e&&(e=(1-t)*a(Math.random()*t,.1,.95)),t=a(t+e,0,.994),r.set(t)):r.start()},r.trickle=function(){return r.inc(Math.random()*i.trickleRate)},e=0,t=0,r.promise=function(n){return n&&"resolved"!==n.state()&&(0===t&&r.start(),e++,t++,n.always(function(){0==--t?(e=0,r.done()):r.set((e-t)/e)})),this},r.render=function(e){if(r.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=i.template;var n,a=t.querySelector(i.barSelector),o=e?"-100":(-1+(r.status||0))*100,c=document.querySelector(i.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+o+"%,0,0)"}),!i.showSpinner&&(n=t.querySelector(i.spinnerSelector))&&p(n),c!=document.body&&l(c,"nprogress-custom-parent"),c.appendChild(t),t},r.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(i.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&p(e)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var o=(n=[],function(e){n.push(e),1==n.length&&function e(){var t=n.shift();t&&t(e)}()}),s=function(){var e=["Webkit","O","Moz","ms"],t={};function n(n,r,i){var a;r=t[a=(a=r).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[a]=function(t){var n=document.body.style;if(t in n)return t;for(var r,i=e.length,a=t.charAt(0).toUpperCase()+t.slice(1);i--;)if((r=e[i]+a)in n)return r;return t}(a)),n.style[r]=i}return function(e,t){var r,i,a=arguments;if(2==a.length)for(r in t)void 0!==(i=t[r])&&t.hasOwnProperty(r)&&n(e,r,i);else n(e,a[1],a[2])}}();function c(e,t){return("string"==typeof e?e:d(e)).indexOf(" "+t+" ")>=0}function l(e,t){var n=d(e),r=n+t;c(n,t)||(e.className=r.substring(1))}function u(e,t){var n,r=d(e);c(e,t)&&(e.className=(n=r.replace(" "+t+" "," ")).substring(1,n.length-1))}function d(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function p(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return r})},818421,(e,t,n)=>{var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t)=>
1i(e,"name",{value:t,configurable:!0}),u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of o(t))c.call(e,s)||s===n||i(e,s,{get:()=>t[s],enumerable:!(r=a(t,s))||r.enumerable});return e},d=(e,t,n)=>(n=null!=e?r(s(e)):{},u(!t&&e&&e.__esModule?n:i(n,"default",{value:e,enumerable:!0}),e)),p={},f={default:()=>w,useTopLoader:()=>y};for(var h in f)i(p,h,{get:f[h],enumerable:!0});t.exports=u(i({},"__esModule",{value:!0}),p);var m=d(e.r(745009)),v=d(e.r(271645)),g=d(e.r(716915)),b=d(e.r(716915)),y=l(()=>({start:()=>b.start(),done:e=>b.done(e),remove:()=>b.remove(),setProgress:e=>b.set(e),inc:e=>b.inc(e),trickle:()=>b.trickle(),isStarted:()=>b.isStarted(),isRendered:()=>b.isRendered(),getPositioningCSS:()=>b.getPositioningCSS()}),"useTopLoader"),x=l(({color:e,height:t,showSpinner:n,crawl:r,crawlSpeed:i,initialPosition:a,easing:o,speed:s,shadow:c,template:u,zIndex:d=1600,showAtBottom:p=!1,showForHashAnchor:f=!0,nonce:h})=>{let m=null!=e?e:"#29d",b=c||void 0===c?c?`box-shadow:${c}`:`box-shadow:0 0 10px ${m},0 0 5px ${m}`:"",y=v.createElement("style",{nonce:h},`#nprogress{pointer-events:none}#nprogress .bar{background:${m};position:fixed;z-index:${d};${p?"bottom: 0;":"top: 0;"}left:0;width:100%;height:${null!=t?t:3}px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;${b};opacity:1;-webkit-transform:rotate(3deg) translate(0px,-4px);-ms-transform:rotate(3deg) translate(0px,-4px);transform:rotate(3deg) translate(0px,-4px)}#nprogress .spinner{display:block;position:fixed;z-index:${d};${p?"bottom: 15px;":"top: 15px;"}right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border:2px solid transparent;border-top-color:${m};border-left-color:${m};border-radius:50%;-webkit-animation:nprogress-spinner 400ms linear infinite;animation:nprogress-spinner 400ms linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .bar,.nprogress-custom-parent #nprogress .spinner{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes nprogress-spinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}`),x=l(e=>new URL(e,window.location.href).href,"toAbsoluteURL"),w=l((e,t)=>{let n=new URL(x(e)),r=new URL(x(t));return n.href.split("#")[0]===r.href.split("#")[0]},"isHashAnchor"),_=l((e,t)=>{let n=new URL(x(e)),r=new URL(x(t));return n.hostname.replace(/^www\./,"")===r.hostname.replace(/^www\./,"")},"isSameHostName");return v.useEffect(()=>{let e,t;function c(e,t){let n=new URL(e),r=new URL(t);if(n.hostname===r.hostname&&n.pathname===r.pathname&&n.search===r.search){let e=n.hash,t=r.hash;return e!==t&&n.href.replace(e,"")===r.href.replace(t,"")}return!1}g.configure({showSpinner:null==n||n,trickle:null==r||r,trickleSpeed:null!=i?i:200,minimum:null!=a?a:.08,easing:null!=o?o:"ease",speed:null!=s?s:200,template:null!=u?u:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'}),l(c,"isAnchorOfCurrentUrl");var d,p,h=document.querySelectorAll("html");let m=l(()=>h.forEach(e=>e.classList.remove("nprogress-busy")),"removeNProgressClass");function v(e){for(;e&&"a"!==e.tagName.toLowerCase();)e=e.parentElement;return e}function b(e){try{let t=e.target,n=v(t),r=null==n?void 0:n.href;if(r){let t=window.location.href,i=""!==n.target,a=["tel:","mailto:","sms:","blob:","download:"].some(e=>r.startsWith(e));if(!_(window.location.href,n.href))return;let o=c(t,r)||w(window.location.href,n.href);if(!f&&o)return;r===t||i||a||o||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||!x(n.href).startsWith("http")?(g.start(),g.done(),m()):g.start()}}catch(e){g.start(),g.done()}}function y(){g.done(),m()}function S(){g.done()}return l(v,"findClosestAnchor"),l(b,"handleClick"),e=(d=window.history).pushState,d.pushState=(...t)=>(g.done(),m(),e.apply(d,t)),t=(p=window.history).replaceState,p.replaceState=(...e)=>(g.done(),m(),t.apply(p,e)),l(y,"handlePageHide"),l(S,"handleBackAndForth"),window.addEventListener("popstate",S),document.addEventListener("click",b),window.addEventListener("pagehide",y),()=>{document.removeEventListener("click",b),window.removeEventListener("pagehide",y),window.removeEventListener("popstate",S)}},[]),y},"NextTopLoader"),w=x;x.propTypes={color:m.string,height:m.number,showSpinner:m.bool,crawl:m.bool,crawlSpeed:m.number,initialPosition:m.number,easing:m.string,speed:m.number,template:m.string,shadow:m.oneOfType([m.string,m.bool]),zIndex:m.number,showAtBottom:m.bool}},829517,e=>{"use strict";var t=e.i(843476),n=e.i(3303),r=e.i(861745),i=e.i(271645),a=e.i(394580),o=e.i(443667),s=e.i(361628),c=e.i(3366);function l(){let e=(0,r.useLocale)(),[l,u]=(0,i.useState)({isGtmTrigger:!1,isOmniTrigger:!1}),{isVerifyCookiebot:d,setIsVerifyCookiebot:p}=(0,c.useCookiebot)(),{loadQueryParamsFromUrl:f,captureCookieConsent:h}=(0,o.default)();function m(e){let t=`; ${document.cookie}`.split(`; ${e}=`);return 2===t.length?t.pop().split(";").shift():null}let v=()=>{document.cookie.split(";
1").forEach(e=>{let[t]=e.split("="),n=t.trim();"CookieConsent"!==n&&(document.cookie=`${n}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; domain=alivecor.com;`)})};return(0,i.useEffect)(()=>{f()},[f]),(0,i.useEffect)(()=>{let e=null;return d&&("-2"===m("CookieConsent")&&v(),e=setInterval(function(){let t=window?.CookieConsent?.consent,n=window?.CookieConsent?.doNotTrack,r=window?.CookieConsent?.declined,i=window?.CookieConsent?.dialog?.visible,o={isGtmTrigger:!1,isOmniTrigger:!1};t&&!n&&(t?.marketing&&(o.isOmniTrigger=!0),t&&(t?.statistics||t?.preferences)&&(o.isGtmTrigger=!0)),"-2"===m("CookieConsent")&&v(),t?.stamp==="0"||i||(a.default.info({consent:t},`Consent ${!r?"Accepted":"Rejected"}:`),u(o),p(!1),clearInterval(e)),h({necessary:t?.necessary,preferences:t?.preferences,statistics:t?.statistics,marketing:t?.marketing})},1e3)),()=>clearInterval(e)},[d]),(0,i.useEffect)(()=>{let e=()=>{let e=document.createElement("script");e.id="Cookiebot",e.src="https://consent.cookiebot.com/uc.js",e.type="text/javascript",e.defer=!0,e.setAttribute("data-cbid","23b3e596-e802-4a2b-abe7-e1d5d6464669"),e.setAttribute("data-blockingmode","auto"),document.head.appendChild(e)};return document?.readyState==="complete"?e():window.addEventListener("load",e),()=>{window.removeEventListener("load",e)}},[]),(0,i.useEffect)(()=>{let e=null,t=0;return(l?.isGtmTrigger||l?.isOmniTrigger)&&(e=setInterval(()=>{t++;let n=document.querySelector(".grecaptcha-badge");n&&(n.classList.add("grecaptcha-badge-custom"),clearInterval(e)),20===t&&clearInterval(e)},3e3)),()=>{clearInterval(e)}},[l?.isGtmTrigger,l?.isOmniTrigger]),(0,t.jsxs)(t.Fragment,{children:[l?.isGtmTrigger&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.default,{id:"gtm-init",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:`
vendor: 398 bytes, lines 1-6
1
2              (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
3              new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
4              j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
5              'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
6              })(window,document,'script','dataLayer','
6GTM-PTR94V6T
vendor: 16 bytes, lines 6-7
6');
7            
7`}}),(0,t.jsx)(n.default,{id:"salesloft-init",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:`
8              (function(i,s,o,g,r,a,m){i['SLScoutObject']=r;i[r]=i[r]||function(){
9    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
10    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
11    })(window,document,'script','https://scout-cdn.salesloft.com/sl.js','slscout');
12    slscout(["init", "eyJhbGciOiJIUzI1NiJ9.eyJ0IjoxMTg2OTd9.Fywn9z2xE2u4u3jM0uHGTJl4ZjiqxzorSxzL_JXNFb0"]);
13            `}})]}),l?.isOmniTrigger&&(0,t.jsx)(n.default,{id:"omniconvert-init",strategy:"afterInteractive",src:"//cdn.omniconvert.com/js/l256132.js"}),e===s.CONFIG_LOCALES.EN&&l?.isGtmTrigger&&(0,t.jsx)(n.default,{id:"gtm-ads-init",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:`
vendor: 398 bytes, lines 13-18
13
14              (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
15              new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
16              j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
17              'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
18              })(window,document,'script','dataLayer','
18GTM-PD2ZQ3SG
vendor: 16 bytes, lines 18-19
18');
19            
19`}}),(l?.isGtmTrigger||l?.isOmniTrigger)&&(0,t.jsx)(n.default,{src:"https://www.google.com/recaptcha/api.js?render=6LdjZssqAAAAAAd9V5BpVXVDRPC3XOKBFHt5ICb_"}),e===s.CONFIG_LOCALES.EN&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.default,{id:"meta-init",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:`
vendor: 525 bytes, lines 19-28
19
20              !function(f,b,e,v,n,t,s)
21              {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
22              n.callMethod.apply(n,arguments):n.queue.push(arguments)};
23              if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
24              n.queue=[];t=b.createElement(e);t.async=!0;
25              t.src=v;s=b.getElementsByTagName(e)[0];
26              s.parentNode.insertBefore(t,s)}(window, document,'script',
27              'https://connect.facebook.net/en_US/fbevents.js');
28              fbq('init', '
282273753773103488
vendor: 56 bytes, lines 28-30
28');
29              fbq('track', 'PageView');
30            
30`}}),(0,t.jsx)("noscript",{children:(0,t.jsx)("img",{alt:"",height:"1",width:"1",style:{display:"none"},src:"https://www.facebook.com/tr?id=2273753773103488&ev=PageView&noscript=1"})})]})]})}e.s(["default",()=>l])},340408,e=>{"use strict";e.i(247167);var t=e.i(843476),n=e.i(657688),r=e.i(618566),i=e.i(271645),a=e.i(394580),o=e.i(443667);let s={src:e.i(133187).default,width:512,height:512,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAmUlEQVR42oXPLQvCcBDH8ePvizAImlQwiFWDUfAliEHw9QizbaBhoC9CMAgrwiyKGgTjntLCLW5w229jbWzhA3f3TUdKqVYd0jYTQ9+OzSpo5OlLjo4LAT4Uyh2Nwr/NSfCR2H/L17rmMOOGRtbvzg/3JbbzlPPtIqcMZtzQaLCbc28/E+hq01y597NGndXIaK+HZhU0anozBVigdVM32YoPAAAAAElFTkSuQmCC"},c=["/shop","/about","/solutions","/newsrooms","/leadpage","/legal"];[...c],[...c],[...c],[...c],[...c],[...c],[...c];let l=["/products","/csicon2025","/device-comparison","/products/kardiamobile6l","/products/kardia12l","/products/kardiamobile","/products/kardiamobile-card","/onestepcloser-kardia12l","/kardiastation","/kardiapro","/kardiasdk","/leadership-team","/mission","/research","/careers","/privacy","/security","/telehealth-informed-consent","/tos","/compatibility","/ewaste","/contact-us","/cart","/getintouch","/our-ai","/experience-kardia12l","/enquire-kardia12l"];var u=e.i(744705),d=e.i(3366),p=e.i(380353);function f({locale:e}){let c=(0,r.useRouter)(),f=(0,u.usePathname)(),{isVerifyCookiebot:h}=(0,d.useCookiebot)(),{captureUserJourney:m}=(0,o.default)(),[v,g]=(0,i.useState)(!1),b=(0,i.useMemo)(()=>["/press"],[]),y=(0,i.useMemo)(()=>({en:"us-dismiss-modal",uk:"uk-dismiss-modal",es:"es-dismiss-modal",de:"de-dismiss-modal",fr:"fr-dismiss-modal",it:"it-dismiss-modal",ca:"ca-dismiss-modal"}),[]),x=()=>{let t=y[e];if(!t)return void a.default.warn(`Unsupported locale '${e}' for modal dismissal.`);let n={dismissed:!0,dismissedAt:new Date().toISOString()};localStorage.setItem(t,JSON.stringify(n)),document?.body?.classList.remove("modal-open"),g(!1)};return(0,i.useEffect)(()=>{let t="",n=async()=>{try{let e=await fetch("https://alivecor.com/api/get-location",{cache:"no-store"});return await e.json()}catch(e){a.default.error(e,"Error fetching location data:")}};(async()=>{let r=await n();if(t=r?.data?.country?.iso_code,m({route:f,timestamp:new Date().toISOString(),locale:e}),"IN"===t&&"in"!==e&&!h&&!b.includes(f)){let t=y[e],n=localStorage.getItem(t);if(n)try{let e=JSON.parse(n),t=new Date(e.dismissedAt),r=new Date,i=t.getFullYear()===r.getFullYear()&&t.getMonth()===r.getMonth()&&t.getDate()===r.getDate();e.dismissed&&i?g(!1):g(!0)}catch(e){a.default.error(e,"Failed to parse localStorage data:"),g(!0)}else g(!0)}})()},[h,e,f,b,y,m]),(0,t.jsx)(t.Fragment,{children:v&&(0,t.jsx)(p.default,{isCenter:!0,showClose:!0,handleClose:()=>{x()},children:(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center p-6 text-center",children:[(0,t.jsx)(n.default,{src:s,width:50,height:50,alt:"India Flag"}),(0,t.jsx)("p",{className:"mt-s2 md:mt-s4 text-xl font-bold md:text-3xl",children:"We noticed you're in India."}),(0,t.jsx)("p",{className:"mt-s2 text-base font-bold md:text-2xl",children:"To give you the best experience, we recommend visiting our India site."}),(0,t.jsxs)("div",{className:"mt-s6 md:mt-s8 flex flex-col gap-3 font-bold sm:flex-row sm:gap-4",children:[(0,t.jsx)("button",{onClick:()=>{let t,n,r;return t=y[e],n={dismissed:!1,dismissedAt:new Date().toISOString()},localStorage.setItem(t,JSON.stringify(n)),g(!1),document?.body?.classList.remove("modal-open"),r="/"===f||!f.startsWith("/press")&&l.includes(f)?`/in${f}`:"/in",void c.replace(r,{scroll:!1})},className:"bg-primary-500 hover:bg-primary-700 px-s6 py-s3 md:px-s7 md:py-s4 rounded-xl text-xs tracking-[0.2em] text-white uppercase ease-in-out md:text-sm",children:"Switch to India"}),(0,t.jsx)("button",{onClick:()=>x(),className:"px-s6 py-s3 md:px-s7 md:py-s4 rounded-xl bg-gray-400 text-xs tracking-[0.2em] text-white uppercase ease-in-out hover:bg-gray-500 md:text-sm",children:"Stay on this site"})]})]})})})}e.s(["default",()=>f],340408)},522169,e=>{"use strict";var t=e.i(861745),n=e.i(271645),r=e.i(857970),i=e.i(502962),a=e.i(361628),o=e.i(744705);function s(){let e=(0,t.useLocale)(),s=(0,o.usePathname)(),[c,l]=(0,n.use
30State)(!1),{fetchShopifyGtmProductData:u,fetchShopifyProductData:d,setLocale:p}=(0,i.default)();return(0,n.useEffect)(()=>{let e=setInterval(()=>{window?.dataLayer&&"function"==typeof window?.dataLayer.push&&(l(!0),clearInterval(e))},500);return()=>clearInterval(e)},[]),(0,n.useEffect)(()=>{c&&(0,r.gtmEvent)({event:"page_properties",page_info:{page_type:r.PAGE_VIEW_INFO[s]?.page_view??`${s.replace(/^\/+|\/+$/g,"").toLowerCase().split(/[/_-]+/).map((e,t)=>0===t?e:e.charAt(0).toUpperCase()+e.slice(1)).join("")}Page`,page_status_code:200,market_region:a.localeArr.find(t=>t.locale===e)?.countryCode}})},[s,e,c]),(0,n.useEffect)(()=>{"in"===e&&(d(),u(),p(e))},[d,u,p,e]),null}e.s(["default",()=>s])},121249,e=>{"use strict";function t(e){return[{label:"products.shopAllProducts",url:{uk:"https://store.alivecor.co.uk",es:"https://shop.de.alivecor.com/es",de:"https://shop.de.alivecor.com/de"}[(e||"uk").toLowerCase()]||"https://store.alivecor.co.uk"},{label:"header.resourceHub",url:"/resource-hub"}]}e.s(["SAMenu",0,[{label:"About",url:"/mission"},{label:"Support",url:"https://alivecor.zendesk.com/hc/en-us?_gl=1%2A1avlad2%2A_gcl_au%2AMTkxMDczMzcwNy4xNzMyNTE2MzQ3%2A_ga%2AMjEzOTQ5MDM3Mi4xNzMyNTE2MzQ5%2A_ga_583Y24F5NF%2AMTczMjYwMjQxMS44LjAuMTczMjYwMjQxMS42MC4wLjA."}],"getUKMenu",()=>t])},552210,(e,t,n)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,x=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case p:case o:case c:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case v:case l:return e;default:return t}}case a:return t}}}function S(e){return _(e)===p}n.AsyncMode=d,n.ConcurrentMode=p,n.ContextConsumer=u,n.ContextProvider=l,n.Element=i,n.ForwardRef=f,n.Fragment=o,n.Lazy=g,n.Memo=v,n.Portal=a,n.Profiler=c,n.StrictMode=s,n.Suspense=h,n.isAsyncMode=function(e){return S(e)||_(e)===d},n.isConcurrentMode=S,n.isContextConsumer=function(e){return _(e)===u},n.isContextProvider=function(e){return _(e)===l},n.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},n.isForwardRef=function(e){return _(e)===f},n.isFragment=function(e){return _(e)===o},n.isLazy=function(e){return _(e)===g},n.isMemo=function(e){return _(e)===v},n.isPortal=function(e){return _(e)===a},n.isProfiler=function(e){return _(e)===c},n.isStrictMode=function(e){return _(e)===s},n.isSuspense=function(e){return _(e)===h},n.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===p||e===c||e===s||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===x||e.$$typeof===w||e.$$typeof===b)},n.typeOf=_},179684,(e,t,n)=>{"use strict";t.exports=e.r(552210)},398437,(e,t,n)=>{"use strict";var r=e.r(179684),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?o:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;
30t.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=f(n);i&&i!==h&&e(t,i,r)}var o=u(n);d&&(o=o.concat(d(n)));for(var s=c(t),m=c(n),v=0;v<o.length;++v){var g=o[v];if(!a[g]&&!(r&&r[g])&&!(m&&m[g])&&!(s&&s[g])){var b=p(n,g);try{l(t,g,b)}catch(e){}}}}return t}},393533,582934,32485,e=>{"use strict";let t,n={src:e.i(827005).default,width:147,height:200,blurWidth:6,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAICAYAAADaxo44AAAAqklEQVR42lXOTwsBQQAF8N3aXfafzCTJ33FBaaxWJtl1cVhrKaeJtnBwkQNXd8o38BWclY8kyVmUk9Zhsu/6e/UexwXheT4qK0gUpRT3H11VgW11L5lscRfUGJRRvu5T/2pg4yQJQoTBwCZz2vc+LmnccwlgMuiY2NlORs/DYvyuFtIug3hMB/vl9Hxcz14oCXuhA1atQldO8wE1mYSghUveZti+QU35bXwB8FIcyoftf7IAAAAASUVORK5CYII="};e.s(["default",0,n],393533);var r,i,a,o,s,c,l,u,d,p=e.i(843476),f=e.i(618566),h=e.i(271645);function m(){return(m=Object.assign.bind()).apply(this,arguments)}var v=["cdnSuffix","cdnUrl","countryCode","style","svg"];let g=function(e){var t=e.cdnSuffix,n=e.cdnUrl,r=e.countryCode,i=e.style,a=e.svg,o=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,v);if("string"!=typeof r)return null;if(void 0!==a&&a){var s=""+(void 0===n?"https://cdn.jsdelivr.net/gh/lipis/flag-icons/flags/4x3/":n)+r.toLowerCase()+"."+(void 0===t?"svg":t);return(0,h.createElement)("img",Object.assign({},o,{src:s,style:m({display:"inline-block",width:"1em",height:"1em",verticalAlign:"middle"},i)}))}var c=r.toUpperCase().replace(/./g,function(e){return String.fromCodePoint(e.charCodeAt(0)+127397)});return(0,h.createElement)("span",Object.assign({role:"img"},o,{style:m({display:"inline-block",fontSize:"1em",lineHeight:"1em",verticalAlign:"middle"},i)}),c)};function b(e){return(b="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 y(e){var t=function(e,t){if("object"!=b(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=b(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==b(t)?t:t+""}function x(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach(function(t){x(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function j(e,t){if(e){if("string"==typeof e)return S(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}(e,t)||j(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var O=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function E(){return(E=Object.assign.bind()).apply(null,arguments)}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function T(e,t){return(T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}
30function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function L(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!e})()}function M(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||j(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}e.i(247167);var A=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=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,n),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,n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=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]}(n);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else n.appendChild(document.createTextNode(e));this.ctr++}
vendor: 5,025 bytes, line 30
30,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}(),P=Math.abs,R=String.fromCharCode,F=Object.assign;function V(e,t,n){return e.replace(t,n)}function D(e,t){return e.indexOf(t)}function H(e,t){return 0|e.charCodeAt(t)}function U(e,t,n){return e.slice(t,n)}function $(e){return e.length}function z(e,t){return t.push(e),e}var B=1,q=1,W=0,G=0,K=0,Y="";function X(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:B,column:q,length:o,return:""}}function J(e,t){return F(X("",null,null,"",null,null,0),e,{length:-e.length},t)}function Q(){return K=G<W?H(Y,G++):0,q++,10===K&&(q=1,B++),K}function Z(){return H(Y,G)}function ee(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 et(e){return B=q=1,W=$(Y=e),G=0,[]}function en(e){var t,n;return(t=G-1,n=function e(t){for(;Q();)switch(K){case t:return G;case 34:case 39:34!==t&&39!==t&&e(K);break;case 40:41===t&&e(t);break;case 92:Q()}return G}(91===e?e+2:40===e?e+1:e),U(Y,t,n)).trim()}var er="-ms-",ei="-moz-",ea="-webkit-",eo="comm",es="rule",ec="decl",el="@keyframes";function eu(e,t){for(var n="",r=e.length,i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function ed(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ec:return e.return=e.return||e.value;case eo:return"";case el:return e.return=e.value+"{"+eu(e.children,r)+"}";case es:e.value=e.props.join(",")}return $(n=eu(e.children,r))?e.return=e.value+"{"+n+"}":""}function ep(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,p=0===i?a:[""],f=p.length,h=0,m=0,v=0;h<r;++h)for(var g=0,b=U(e,d+1,d=P(m=o[h])),y=e;g<f;++g)(y=(m>0?p[g]+" "+b:V(b,/&\f/g,p[g])).trim())&&(c[v++]=y);return X(e,t,n,0===i?es:s,c,l,u)}function ef(e,t,n,r){return X(e,t,n,ec,U(e,0,r),U(e,r+1,-1),r)}var eh=function(e,t,n){for(var r=0,i=0;r=i,i=Z(),38===r&&12===i&&(t[n]=1),!ee(i);)Q();return U(Y,e,G)},em=function(e,t){var n=-1,r=44;do switch(ee(r)){case 0:38===r&&12===Z()&&(t[n]=1),e[n]+=eh(G-1,t,n);break;case 2:e[n]+=en(r);break;case 4:if(44===r){e[++n]=58===Z()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=R(r)}while(r=Q())return e},ev=function(e,t){var n;return n=em(et(e),t),Y="",n},eg=new WeakMap,eb=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||eg.get(n))&&!r){eg.set(e,!0);for(var i=[],a=ev(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+" "+a[s]}}},ey=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},ex=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ec:e.return=function e(t,n){switch(45^H(t,0)?(((n<<2^H(t,0))<<2^H(t,1))<<2^H(t,2))<<2^H(t,3):0){case 5103:return ea+"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 ea+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return ea+t+ei+t+er+t+t;case 6828:case 4268:return ea+t+er+t+t;case 6165:return ea+t+er+"flex-"+t+t;case 5187:return ea+t+V(t,/(\w+).+(:[^]+)/,ea+"box-$1$2"+er+"flex-$1$2")+t;case 5443:return ea+t+er+"flex-item-"+V(t,/flex-|-self/,"")+t;case 4675:return ea+t+er+"flex-line-pack"+V(t,/align-content|flex-|-self/,"")+t;case 5548:return ea+t+er+V(t,"shrink","negative")+t;case 5292:return ea+t+er+V(t,"basis","preferred-size")+t;case 6060:return ea+"box-"+V(t,"-grow","")+ea+t+er+V(t,"grow","positive")+t;case 4554:return ea+V(t,/([^-])(transform)/g,"$1"+ea+"$2")+t;case 6187:return V(V(V(t,/(zoom-|grab)/,ea+"$1"),/(image-set)/,ea+"$1"),t,"")+t;case 5495:case 3959:return V(t,/(image-set\([^]*)/,ea+"$1$`$1");case 4968:return V(V(t,/(.+:)(flex-)?(.*)/,ea+"box-pack:$3"+er+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ea+t+t;case 4095:case 3583:case 4068:case 2532:return V(t,/(.+)-inline(.+)/,ea+"$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($(t)-1-n>6)switch(H(t,n+1)){case 109:if(45!==H(t,n+4))break;case 102:return V(t,/(.+:)(.+)-([^]+)/,"$1"+ea+"$2-$3$1"+ei+(108==H(t,n+3)?"$3":"$2-$3"))+t;case 115:return~D(t,"stretch")?e(V(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==H(t,n+1))break;case 6444:switch(H(t,$(t)-3-(~D(t,"!important")&&10))){case 107:return V(t,":",":"+ea)+t;case 101:return V(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ea+(45===H(t,14)?"inline-":"")+"box$3$1"+ea+"$2$3$1"+er+"$2box$3")+t}break;case 5936:switch(H(t,n+11)){case 114:return ea+t+er+V(t,/[svh]\w+-[tblr]{2}/,"tb")+t;
vendor: 3,106 bytes, line 30
30case 108:return ea+t+er+V(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return ea+t+er+V(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return ea+t+er+t+t}return t}(e.value,e.length);break;case el:return eu([J(e,{value:V(e.value,"@","@"+ea)})],r);case es:if(e.length){var i,a;return i=e.props,a=function(t){var n;switch(n=t,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return eu([J(e,{props:[V(t,/:(read-\w+)/,":"+ei+"$1")]})],r);case"::placeholder":return eu([J(e,{props:[V(t,/:(plac\w+)/,":"+ea+"input-$1")]}),J(e,{props:[V(t,/:(plac\w+)/,":"+ei+"$1")]}),J(e,{props:[V(t,/:(plac\w+)/,er+"input-$1")]})],r)}return""},i.map(a).join("")}}}];e.i(398437);var ew=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},e_=function(e,t,n){ew(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next;while(void 0!==i)}},eS={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},ej=/[A-Z]|^ms/g,ek=/_EMO_([^_]+?)_([^]*?)_EMO_/g,eC=function(e){return 45===e.charCodeAt(1)},eO=function(e){return null!=e&&"boolean"!=typeof e},eE=(a=function(e){return eC(e)?e:e.replace(ej,"-$&").toLowerCase()},o=Object.create(null),function(e){return void 0===o[e]&&(o[e]=a(e)),o[e]}),eN=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ek,function(e,t,n){return r={name:t,styles:n,next:r},t})}return 1===eS[e]||eC(e)||"number"!=typeof t||0===t?t:t+"px"};function eT(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return r={name:n.name,styles:n.styles,next:r},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)r={name:i.name,styles:i.styles,next:r},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=eT(e,t,n[i])+";";else for(var a in n){var o=n[a];if("object"!=typeof o)null!=t&&void 0!==t[o]?r+=a+"{"+t[o]+"}":eO(o)&&(r+=eE(a)+":"+eN(a,o)+";");else if(Array.isArray(o)&&"string"==typeof o[0]&&(null==t||void 0===t[o[0]]))for(var s=0;s<o.length;s++)eO(o[s])&&(r+=eE(a)+":"+eN(a,o[s])+";");else{var c=eT(e,t,o);switch(a){case"animation":case"animationName":r+=eE(a)+":"+c+";";break;default:r+=a+"{"+c+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var a=r,o=n(e);return r=a,eT(e,t,o)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var eI=/label:\s*([^\s;{]+)\s*(;|$)/g;
vendor: 4,365 bytes, line 30
30function eL(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i,a=!0,o="";r=void 0;var s=e[0];null==s||void 0===s.raw?(a=!1,o+=eT(n,t,s)):o+=s[0];for(var c=1;c<e.length;c++)o+=eT(n,t,e[c]),a&&(o+=s[c]);eI.lastIndex=0;for(var l="";null!==(i=eI.exec(o));)l+="-"+i[1];return{name:function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&n)*0x5bd1e995+((n>>>16)*59797<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(o)+l,styles:o,next:r}}var eM=!!h.useInsertionEffect&&h.useInsertionEffect,eA=eM||function(e){return e()};eM||h.useLayoutEffect;var eP=h.createContext("u">typeof HTMLElement?function(e){var t,n,r,i,a,o=e.key;if("css"===o){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 c=e.stylisPlugins||ex,l={},u=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+o+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)l[t[n]]=!0;u.push(e)});var d=(n=(t=[eb,ey].concat(c,[ed,(r=function(e){a.insert(e)},function(e){!e.root&&(e=e.return)&&r(e)})])).length,function(e,r,i,a){for(var o="",s=0;s<n;s++)o+=t[s](e,r,i,a)||"";return o}),p=function(e){var t,n;return eu((n=function e(t,n,r,i,a,o,s,c,l){for(var u,d=0,p=0,f=s,h=0,m=0,v=0,g=1,b=1,y=1,x=0,w="",_=a,S=o,j=i,k=w;b;)switch(v=x,x=Q()){case 40:if(108!=v&&58==H(k,f-1)){-1!=D(k+=V(en(x),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=en(x);break;case 9:case 10:case 13:case 32:k+=function(e){for(;K=Z();)if(K<33)Q();else break;return ee(e)>2||ee(K)>3?"":" "}(v);break;case 92:k+=function(e,t){for(var n;--t&&Q()&&!(K<48)&&!(K>102)&&(!(K>57)||!(K<65))&&(!(K>70)||!(K<97)););return n=G+(t<6&&32==Z()&&32==Q()),U(Y,e,n)}(G-1,7);continue;case 47:switch(Z()){case 42:case 47:z((u=function(e,t){for(;Q();)if(e+K===57)break;else if(e+K===84&&47===Z())break;return"/*"+U(Y,t,G-1)+"*"+R(47===e?e:Q())}(Q(),G),X(u,n,r,eo,R(K),U(u,2,-2),0)),l);break;default:k+="/"}break;case 123*g:c[d++]=$(k)*y;case 125*g:case 59:case 0:switch(x){case 0:case 125:b=0;case 59+p:-1==y&&(k=V(k,/\f/g,"")),m>0&&$(k)-f&&z(m>32?ef(k+";",i,r,f-1):ef(V(k," ","")+";",i,r,f-2),l);break;case 59:k+=";";default:if(z(j=ep(k,n,r,d,p,a,c,w,_=[],S=[],f),o),123===x)if(0===p)e(k,n,j,j,_,o,f,c,S);else switch(99===h&&110===H(k,3)?100:h){case 100:case 108:case 109:case 115:e(t,j,j,i&&z(ep(t,j,j,0,0,a,c,w,a,_=[],f),S),a,S,f,c,i?_:S);break;default:e(k,j,j,j,[""],S,0,c,S)}}d=p=m=0,g=y=1,w=k="",f=s;break;case 58:f=1+$(k),m=v;default:if(g<1){if(123==x)--g;else if(125==x&&0==g++&&125==(K=G>0?H(Y,--G):0,q--,10===K&&(q=1,B--),K))continue}switch(k+=R(x),x*g){case 38:y=p>0?1:(k+="\f",-1);break;case 44:c[d++]=($(k)-1)*y,y=1;break;case 64:45===Z()&&(k+=en(Q())),h=Z(),p=f=$(w=k+=function(e){for(;!ee(Z());)Q();return U(Y,e,G)}(G)),x++;break;case 45:45===v&&2==$(k)&&(g=0)}}return o}("",null,null,null,[""],t=et(t=e),0,[0],t),Y="",n),d)},f={key:o,sheet:new A({key:o,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:function(e,t,n,r){a=n,p(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)}};return f.sheet.hydrate(u),f}({key:"css"}):null);eP.Provider;var eR=h.createContext({}),eF={}.hasOwnProperty,eV="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",eD=function(e,t){var n={};for(var r in t)eF.call(t,r)&&(n[r]=t[r]);return n[eV]=e,n},eH=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return ew(t,n,r),eA(function(){return e_(t,n,r)}),null},eU=(s=function(e,t,n){var r,i,a,o,s=e.css;"string"==typeof s&&void 0!==t.registered[s]&&(s=t.registered[s]);var c=e[eV],l=[s],u="";"string"==typeof e.className?(r=t.registered,i=l,a=e.className,o="",a.split(" ").forEach(function(e){void 0!==r[e]?i.push(r[e]+";"):e&&(o+=e+" ")}
30),u=o):null!=e.className&&(u=e.className+" ");var d=eL(l,void 0,h.useContext(eR));u+=t.key+"-"+d.name;var p={};for(var f in e)eF.call(e,f)&&"css"!==f&&f!==eV&&(p[f]=e[f]);return p.className=u,n&&(p.ref=n),h.createElement(h.Fragment,null,h.createElement(eH,{cache:t,serialized:d,isStringTag:"string"==typeof c}),h.createElement(c,p))},(0,h.forwardRef)(function(e,t){return s(e,(0,h.useContext)(eP),t)})),e$=function(e,t){var n=arguments;if(null==t||!eF.call(t,"css"))return h.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=eU,i[1]=eD(e,t);for(var a=2;a<r;a++)i[a]=n[a];return h.createElement.apply(null,i)};function ez(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return eL(t)}c=e$||(e$={}),l||(l=c.JSX||(c.JSX={}));var eB=e.i(174080);let eq=Math.min,eW=Math.max,eG=Math.round,eK=Math.floor,eY=e=>({x:e,y:e});function eX(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function eJ(){return"u">typeof window}function eQ(e){return e1(e)?(e.nodeName||"").toLowerCase():"#document"}function eZ(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function e0(e){var t;return null==(t=(e1(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function e1(e){return!!eJ()&&(e instanceof Node||e instanceof eZ(e).Node)}function e2(e){return!!eJ()&&(e instanceof Element||e instanceof eZ(e).Element)}function e4(e){return!!eJ()&&(e instanceof HTMLElement||e instanceof eZ(e).HTMLElement)}function e5(e){return!(!eJ()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof eZ(e).ShadowRoot)}function e3(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=e7(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function e6(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function e8(e){return/^(html|body|#document)$/.test(eQ(e))}function e7(e){return eZ(e).getComputedStyle(e)}function e9(e){if("html"===eQ(e))return e;let t=e.assignedSlot||e.parentNode||e5(e)&&e.host||e0(e);return e5(t)?t.host:t}function te(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=e9(t);return e8(n)?t.ownerDocument?t.ownerDocument.body:t.body:e4(n)&&e3(n)?n:e(n)}(e),a=i===(null==(r=e.ownerDocument)?void 0:r.body),o=eZ(i);if(!a)return t.concat(i,te(i,[],n));{let e=tt(o);return t.concat(o,o.visualViewport||[],e3(i)?i:[],e&&n?te(e):[])}}function tt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tn(e){return e2(e)?e:e.contextElement}function tr(e){var t;let n,r,i,a,o,s,c,l=tn(e);if(!e4(l))return eY(1);let u=l.getBoundingClientRect(),{width:d,height:p,$:f}=(r=parseFloat((n=e7(t=l)).width)||0,i=parseFloat(n.height)||0,o=(a=e4(t))?t.offsetWidth:r,s=a?t.offsetHeight:i,(c=eG(r)!==o||eG(i)!==s)&&(r=o,i=s),{width:r,height:i,$:c}),h=(f?eG(u.width):u.width)/d,m=(f?eG(u.height):u.height)/p;return h&&Number.isFinite(h)||(h=1),m&&Number.isFinite(m)||(m=1),{x:h,y:m}}let ti=eY(0);function ta(e){let t=eZ(e);return e6()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ti}function to(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),o=tn(e),s=eY(1);t&&(r?e2(r)&&(s=tr(r)):s=tr(e));let c=(void 0===(i=n)&&(i=!1),r&&(!i||r===eZ(o))&&i)?ta(o):eY(0),l=(a.left+c.x)/s.x,u=(a.top+c.y)/s.y,d=a.width/s.x,p=a.height/s.y;if(o){let e=eZ(o),t=r&&e2(r)?eZ(r):r,n=e,i=tt(n);for(;i&&r&&t!==n;){let e=tr(i),t=i.getBoundingClientRect(),r=e7(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,d*=e.x,p*=e.y,l+=a,u+=o,i=tt(n=eZ(i))}}return eX({width:d,height:p,x:l,y:u})}function ts(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var tc=h.useLayoutEffect,tl=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],tu=function(){};function td(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=[].concat(r);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&a.push("".concat(o?"-"===o[0]?e+o:e+"__"+o:e));return a.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var tp=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===b(e)&&null!==e?[e]:[]},tf=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,_({},C(e,tl))},th=function(e,t,n){var r=e.cx,i=e.getStyles,a=e.getClassNames,o=e.className;return{css:i(t,e),className:r(null!=n?n:{},a(t,e),o)}};function tm(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function tv(e){return tm(e)?window.pageYOffset:e.scrollTop}function tg(e,t){tm(e)?window.scrollTo(0,t):e.scrollTop=t}function tb(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:tu,i=tv(e),a=t-i,o=0;!function t(){var s;o+=10,tg(e,a*((s=(s=o)/n-1)*s*s+1)+i),o<n?window.requestAnimationFrame(t):r(e)}()}function ty(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?tg(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&tg(e,Math.max(t.offsetTop-i,0))}function tx(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var tw=!1,t_="u">typeof window?window:{};t_.addEventListener&&t_.removeEventListener&&(t_.addEventListener("p",tu,{get passive
30(){return tw=!0}}),t_.removeEventListener("p",tu,!1));var tS=tw;function tj(e){return null!=e}var tk=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.entries(e).filter(function(e){var t=k(e,1)[0];return!n.includes(t)}).reduce(function(e,t){var n=k(t,2),r=n[0],i=n[1];return e[r]=i,e},{})},tC=["children","innerProps"],tO=["children","innerProps"],tE=function(e){return"auto"===e?"bottom":e},tN=(0,h.createContext)(null),tT=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,o=e.menuShouldScrollIntoView,s=e.theme,c=((0,h.useContext)(tN)||{}).setPortalPlacement,l=(0,h.useRef)(null),u=k((0,h.useState)(r),2),d=u[0],p=u[1],f=k((0,h.useState)(null),2),m=f[0],v=f[1],g=s.spacing.controlHeight;return tc(function(){var e=l.current;if(e){var t="fixed"===a,s=function(e){var t,n=e.maxHeight,r=e.menuEl,i=e.minHeight,a=e.placement,o=e.shouldScroll,s=e.isFixedPosition,c=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(r),u={placement:"bottom",maxHeight:n};if(!r||!r.offsetParent)return u;var d=l.getBoundingClientRect().height,p=r.getBoundingClientRect(),f=p.bottom,h=p.height,m=p.top,v=r.offsetParent.getBoundingClientRect().top,g=s||tm(t=l)?window.innerHeight:t.clientHeight,b=tv(l),y=parseInt(getComputedStyle(r).marginBottom,10),x=parseInt(getComputedStyle(r).marginTop,10),w=v-x,_=g-m,S=w+b,j=d-b-m,k=f-g+b+y,C=b+m-x;switch(a){case"auto":case"bottom":if(_>=h)return{placement:"bottom",maxHeight:n};if(j>=h&&!s)return o&&tb(l,k,160),{placement:"bottom",maxHeight:n};if(!s&&j>=i||s&&_>=i)return o&&tb(l,k,160),{placement:"bottom",maxHeight:s?_-y:j-y};if("auto"===a||s){var O=n,E=s?w:S;return E>=i&&(O=Math.min(E-y-c,n)),{placement:"top",maxHeight:O}}if("bottom"===a)return o&&tg(l,k),{placement:"bottom",maxHeight:n};break;case"top":if(w>=h)return{placement:"top",maxHeight:n};if(S>=h&&!s)return o&&tb(l,C,160),{placement:"top",maxHeight:n};if(!s&&S>=i||s&&w>=i){var N=n;return(!s&&S>=i||s&&w>=i)&&(N=s?w-x:S-x),o&&tb(l,C,160),{placement:"top",maxHeight:N}}return{placement:"bottom",maxHeight:n};default:throw Error('Invalid placement provided "'.concat(a,'".'))}return u}({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:o&&!t,isFixedPosition:t,controlHeight:g});p(s.maxHeight),v(s.placement),null==c||c(s.placement)}},[r,i,a,o,n,c,g]),t({ref:l,placerProps:_(_({},e),{},{placement:m||tE(i),maxHeight:d})})},tI=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return _({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},tL=["size"],tM=["innerProps","isRtl","size"],tA={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},tP=function(e){var t=e.size,n=C(e,tL);return e$("svg",E({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:tA},n))},tR=function(e){return e$(tP,E({size:20},e),e$("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},tF=function(e){return e$(tP,E({size:20},e),e$("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},tV=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,a=r.colors;return _({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i,":hover":{color:n?a.neutral80:a.neutral40}})},tD=function(){var e=ez.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(i||(u=["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"],d||(d=u.slice(0)),i=Object.freeze(Object.defineProperties(u,{raw:{value:Object.freeze(d)}})))),tH=function(e){var t=e.delay,n=e.offset;return e$("span",{css:ez({animation:"".concat(tD," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},tU=["data"],t$=["innerRef","isDisabled","isHidden","inputClassName"],tz={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},tB={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":_({content:'attr(data-value) " "',visibility:"hidden",
30whiteSpace:"pre"},tz)},tq=function(e){var t=e.children,n=e.innerProps;return e$("div",n,t)},tW={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return e$("div",E({},th(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||e$(tR,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,a=e.innerProps,o=e.menuIsOpen;return e$("div",E({ref:i},th(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":o}),a,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return e$("div",E({},th(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||e$(tF,null))},DownChevron:tF,CrossIcon:tR,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,a=e.Heading,o=e.headingProps,s=e.innerProps,c=e.label,l=e.theme,u=e.selectProps;return e$("div",E({},th(e,"group",{group:!0}),s),e$(a,E({},o,{selectProps:u,theme:l,getStyles:r,getClassNames:i,cx:n}),c),e$("div",null,t))},GroupHeading:function(e){var t=tf(e);t.data;var n=C(t,tU);return e$("div",E({},th(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return e$("div",E({},th(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return e$("span",E({},t,th(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=tf(e),i=r.innerRef,a=r.isDisabled,o=r.isHidden,s=r.inputClassName,c=C(r,t$);return e$("div",E({},th(e,"input",{"input-container":!0}),{"data-value":n||""}),e$("input",E({className:t({input:!0},s),ref:i,style:_({label:"input",color:"inherit",background:0,opacity:+!o,width:"100%"},tz),disabled:a},c)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=C(e,tM);return e$("div",E({},th(_(_({},i),{},{innerProps:t,isRtl:n,size:void 0===r?4:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),e$(tH,{delay:0,offset:n}),e$(tH,{delay:160,offset:!0}),e$(tH,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return e$("div",E({},th(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return e$("div",E({},th(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,a=e.menuPlacement,o=e.menuPosition,s=(0,h.useRef)(null),c=(0,h.useRef)(null),l=k((0,h.useState)(tE(a)),2),u=l[0],d=l[1],p=(0,h.useMemo)(function(){return{setPortalPlacement:d}},[]),f=k((0,h.useState)(null),2),m=f[0],v=f[1],g=(0,h.useCallback)(function(){if(r){var e,t={bottom:(e=r.getBoundingClientRect()).bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width},n="fixed"===o?0:window.pageYOffset,i=t[u]+n;(i!==(null==m?void 0:m.offset)||t.left!==(null==m?void 0:m.rect.left)||t.width!==(null==m?void 0:m.rect.width))&&v({offset:i,rect:t})}},[r,o,u,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);tc(function(){g()},[g]);var b=(0,h.useCallback)(function(){"function"==typeof c.current&&(c.current(),c.current=null),r&&s.current&&(c.current=function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=tn(e),d=a||o?[...u?te(u):[],...t?te(t):[]]:[];d.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});let p=u&&c?function(e,t){let n,r=null,i=e0(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function o(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:p,height:f}=l;if(s||t(),!p||!f)return;let h={rootMargin:-eK(d)+"px "+-eK(i.clientWidth-(u+p))+"px "+-eK(i.clientHeight-(d+f))+"px "+-eK(u)+"px",threshold:eW(0,eq(1,c))||1},m=!0;function v(t){let r=t[0].intersectionRatio;if(r!==c){if(!m)return o();r?o(!1,r):n=setTimeout(()=>{o(!1,1e-7)},1e3)}1!==r||ts(l,e.getBoundingClientRect())||o(),m=!1}try{r=new IntersectionObserver(v,{...h,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(v,h)}r.observe(e)}(!0),a}(u,n):null,f=-1,h=null;s&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),u&&!l&&h.observe(u),t&&h.observe(t));let m=l?to(e):null;return l&&function t(){let r=to(e);m&&!ts(m,r)&&n(),m=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;
30d.forEach(e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==p||p(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(i)}}(r,s.current,g,{elementResize:"ResizeObserver"in window}))},[r,g]);tc(function(){b()},[b]);var y=(0,h.useCallback)(function(e){s.current=e,b()},[b]);if(!t&&"fixed"!==o||!m)return null;var x=e$("div",E({ref:y},th(_(_({},e),{},{offset:m.offset,position:o,rect:m.rect}),"menuPortal",{"menu-portal":!0}),i),n);return e$(tN.Provider,{value:p},t?(0,eB.createPortal)(x,t):x)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,i=C(e,tO);return e$("div",E({},th(_(_({},i),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,i=C(e,tC);return e$("div",E({},th(_(_({},i),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,a=e.isDisabled,o=e.removeProps,s=e.selectProps,c=n.Container,l=n.Label,u=n.Remove;return e$(c,{data:r,innerProps:_(_({},th(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:s},e$(l,{data:r,innerProps:_({},th(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),e$(u,{data:r,innerProps:_(_({},th(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},o),selectProps:s}))},MultiValueContainer:tq,MultiValueLabel:tq,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return e$("div",E({role:"button"},n),t||e$(tR,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,a=e.innerRef,o=e.innerProps;return e$("div",E({},th(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:a,"aria-disabled":n},o),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return e$("div",E({},th(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return e$("div",E({},th(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return e$("div",E({},th(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return e$("div",E({},th(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},tG=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function tK(e,t){if(e.length!==t.length)return!1;for(var n,r,i=0;i<e.length;i++)if(!((n=e[i])===(r=t[i])||tG(n)&&tG(r))&&1)return!1;return!0}for(var tY={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},tX=function(e){return e$("span",E({css:tY},e))},tJ={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,i=e.context,a=e.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,i=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return a?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,a=void 0===i?"":i,o=e.selectValue,s=e.isDisabled,c=e.isSelected,l=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&o)return"value ".concat(a," focused, ").concat(u(o,n),".");if("menu"===t&&l){var d="".concat(c?" selected":"").concat(s?" disabled":"");return"".concat(a).concat(d,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},tQ=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,a=e.isFocused,o=e.selectValue,s=e.selectProps,c=e.id,l=e.isAppleDevice,u=s.ariaLiveMessages,d=s.getOptionLabel,p=s.inputValue,f=s.isMulti,m=s.isOptionDisabled,v=s.isSearchable,g=s.menuIsOpen,b=s.options,y=s.screenReaderStatus,x=s.tabSelectsValue,w=s.isLoading,S=s["aria-label"],j=s["aria-live"],k=(0,h.useMemo)(function(){return _(_({},tJ),u||{})},[u]),C=(0,h.useMemo)(function(){var e="";if(t&&k.onChange){var n=t.option,r=t.options,i=t.removedValue,a=t.removedValues,s=t.value,c=i||n||(Array.isArray(s)?null:s),l=c?d(c):"",u=r||a||void 0,p=u?u.map(d):[],f=_({isDisabled:c&&m(c,o),label:l,labels:p},t);e=k.onChange(f)}return e},[t,k,m,o,d]),O=(0,h.useMemo)(function(){var e="",t=n||r,a=!!(n&&o&&o.includes(n));
30if(t&&k.onFocus){var s={focused:t,label:d(t),isDisabled:m(t,o),isSelected:a,options:i,context:t===n?"menu":"value",selectValue:o,isAppleDevice:l};e=k.onFocus(s)}return e},[n,r,d,m,k,i,o,l]),E=(0,h.useMemo)(function(){var e="";if(g&&b.length&&!w&&k.onFilter){var t=y({count:i.length});e=k.onFilter({inputValue:p,resultsMessage:t})}return e},[i,p,g,k,b,y,w]),N=(null==t?void 0:t.action)==="initial-input-focus",T=(0,h.useMemo)(function(){var e="";if(k.guidance){var t=r?"value":g?"menu":"input";e=k.guidance({"aria-label":S,context:t,isDisabled:n&&m(n,o),isMulti:f,isSearchable:v,tabSelectsValue:x,isInitialFocus:N})}return e},[S,n,r,f,m,v,g,k,o,x,N]),I=e$(h.Fragment,null,e$("span",{id:"aria-selection"},C),e$("span",{id:"aria-focused"},O),e$("span",{id:"aria-results"},E),e$("span",{id:"aria-guidance"},T));return e$(h.Fragment,null,e$(tX,{id:c},N&&I),e$(tX,{"aria-live":j,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!N&&I))},tZ=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],t0=RegExp("["+tZ.map(function(e){return e.letters}).join("")+"]","g"),t1={},t2=0;t2<tZ.length;t2++)for(var t4=tZ[t2],t5=0;t5<t4.letters.length;t5++)t1[t4.letters[t5]]=t4.base;var t3=function(e){return e.replace(t0,function(e){return t1[e]})},t6=function(e,t){void 0===t&&(t=tK);var n=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}(t3),t8=function(e){return e.replace(/^\s+|\s+$/g,"")},t7=function(e){return"".concat(e.label," ").concat(e.value)},t9=["innerRef"];function ne(e){var t=e.innerRef,n=tk(C(e,t9),"onExited","in","enter","exit","appear");return e$("input",E({ref:t},n,{css:ez({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var nt=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()},nn=["boxSizing","height","overflow","paddingRight","position"],nr={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ni(e){e.cancelable&&e.preventDefault()}function na(e){e.stopPropagation()}function no(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function ns(){return"ontouchstart"in window||navigator.maxTouchPoints}var nc=!!("u">typeof window&&window.document&&window.document.createElement),nl=0,nu={capture:!1,passive:!1},nd=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},np={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function nf(e){var t,n,r,i,a,o,s,c,l,u,d,p,f,m,v,g,b,y,x,w,_,S,j,k,C=e.children,O=e.lockEnabled,E=e.captureEnabled,N=(n=(t={isEnabled:void 0===E||E,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}).isEnabled,r=t.onBottomArrive,i=t.onBottomLeave,a=t.onTopArrive,o=t.onTopLeave,s=(0,h.useRef)(!1),c=(0,h.useRef)(!1),l=(0,h.useRef)(0),u=(0,h.useRef)(null),d=(0,h.useCallback)(function(e,t){if(null!==u.current){var n=u.current,l=n.scrollTop,d=n.scrollHeight,p=n.clientHeight,f=u.current,h=t>0,m=d-p-l,v=!1;m>t&&s.current&&(i&&i(e),s.current=!1),h&&c.current&&(o&&o(e),c.current=!1),h&&t>m?(r&&!s.current&&r(e),f.scrollTop=d,v=!0,s.current=!0):!h&&-t>l&&(a&&!c.current&&a(e),f.scrollTop=0,v=!0,c.current=!0),v&&nt(e)}},[r,i,a,o]),p=(0,h.useCallback)(function(e){d(e,e.deltaY)},[d]),f=(0,h.useCallback)(function(e){l.current=e.changedTouches[0].clientY},[]),m=(0,h.useCallback)(function(e){var t=l.current-e.changedTouches[0].clientY;d(e,t)},[d]),v=(0,h.useCallback)(function(e){if(e){var t=!!tS&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",m,t)}}
30,[m,f,p]),g=(0,h.useCallback)(function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",m,!1))},[m,f,p]),(0,h.useEffect)(function(){if(n){var e=u.current;return v(e),function(){g(e)}}},[n,v,g]),function(e){u.current=e}),T=(y=(b={isEnabled:O}).isEnabled,w=void 0===(x=b.accountForScrollbars)||x,_=(0,h.useRef)({}),S=(0,h.useRef)(null),j=(0,h.useCallback)(function(e){if(nc){var t=document.body,n=t&&t.style;if(w&&nn.forEach(function(e){var t=n&&n[e];_.current[e]=t}),w&&nl<1){var r=parseInt(_.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,a=window.innerWidth-i+r||0;Object.keys(nr).forEach(function(e){var t=nr[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(a,"px"))}t&&ns()&&(t.addEventListener("touchmove",ni,nu),e&&(e.addEventListener("touchstart",no,nu),e.addEventListener("touchmove",na,nu))),nl+=1}},[w]),k=(0,h.useCallback)(function(e){if(nc){var t=document.body,n=t&&t.style;nl=Math.max(nl-1,0),w&&nl<1&&nn.forEach(function(e){var t=_.current[e];n&&(n[e]=t)}),t&&ns()&&(t.removeEventListener("touchmove",ni,nu),e&&(e.removeEventListener("touchstart",no,nu),e.removeEventListener("touchmove",na,nu)))}},[w]),(0,h.useEffect)(function(){if(y){var e=S.current;return j(e),function(){k(e)}}},[y,j,k]),function(e){S.current=e});return e$(h.Fragment,null,O&&e$("div",{onClick:nd,css:np}),C(function(e){N(e),T(e)}))}var nh={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},nm=function(e){var t=e.name,n=e.onFocus;return e$("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:nh,value:"",onChange:function(){}})};function nv(e){var t;return"u">typeof window&&null!=window.navigator&&e.test((null==(t=window.navigator.userAgentData)?void 0:t.platform)||window.navigator.platform)}var ng={clearIndicator:tV,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,a=i.colors,o=i.borderRadius;return _({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},dropdownIndicator:tV,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return _({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,a=r.colors;return _({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,a=i.spacing,o=i.colors;return _(_({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},tB),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:o.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,i=e.theme,a=i.colors,o=i.spacing.baseUnit;return _({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*o})},loadingMessage:tI,menu:function(e,t){var n,r=e.placement,i=e.theme,a=i.borderRadius,o=i.spacing,s=i.colors;return _((x(n={label:"menu"},r?({bottom:"top",top:"bottom"})[r]:"bottom","100%"),x(n,"position","absolute"),x(n,"width","100%"),x(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:o.menuGutter,marginTop:o.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return _({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,a=n.colors;return _({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,a=e.cropWithEllipsis;return _({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,a=n.colors,o=e.isFocused;return _({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:o?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:tI,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,a=e.theme,o=a.spacing,s=a.colors;return _({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(2*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})}
30,placeholder:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return _({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,a=r.colors;return _({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,a=e.selectProps.controlShouldRenderValue;return _({alignItems:"center",display:r&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},nb={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},ny={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:tx(),captureMenuScroll:!tx(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=_({ignoreCase:!0,ignoreAccents:!0,stringify:t7,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,i=n.ignoreAccents,a=n.stringify,o=n.trim,s=n.matchFrom,c=o?t8(t):t,l=o?t8(a(e)):a(e);return r&&(c=c.toLowerCase(),l=l.toLowerCase()),i&&(c=t6(c),l=t3(l)),"start"===s?l.substr(0,c.length)===c:l.indexOf(c)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function nx(e,t,n,r){var i=nE(e,t,n),a=nN(e,t,n),o=nC(e,t),s=nO(e,t);return{type:"option",data:t,isDisabled:i,isSelected:a,label:o,value:s,index:r}}function nw(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(n,r){return nx(e,n,t,r)}).filter(function(t){return nj(e,t)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var a=nx(e,n,t,r);return nj(e,a)?a:void 0}).filter(tj)}function n_(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,M(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function nS(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,M(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function nj(e,t){var n=e.inputValue,r=t.data,i=t.isSelected,a=t.label,o=t.value;return(!nI(e)||!i)&&nT(e,{label:a,value:o,data:r},void 0===n?"":n)}var nk=function(e,t){var n;return(null==(n=e.find(function(e){return e.data===t}))?void 0:n.id)||null},nC=function(e,t){return e.getOptionLabel(t)},nO=function(e,t){return e.getOptionValue(t)};function nE(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function nN(e,t,n){if(n.indexOf(t)>-1)return!0;
30if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=nO(e,t);return n.some(function(t){return nO(e,t)===r})}function nT(e,t,n){return!e.filterOption||e.filterOption(t,n)}var nI=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},nL=1,nM=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),e&&T(a,e);var t,n,r,i=(t=L(),function(){var e,n=I(a);e=t?Reflect.construct(n,arguments,I(this).constructor):n.apply(this,arguments);if(e&&("object"==b(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return this});function a(e){var t;if(!(this instanceof a))throw TypeError("Cannot call a class as a function");if((t=i.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,i=r.onChange;n.name=r.name,t.ariaOnChange(e,n),i(e,n)},t.setValue=function(e,n,r){var i=t.props,a=i.closeMenuOnSelect,o=i.isMulti,s=i.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),a&&(t.setState({inputIsHiddenAfterUpdate:!o}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,i=n.isMulti,a=n.name,o=t.state.selectValue,s=i&&t.isOptionSelected(e,o),c=t.isOptionDisabled(e,o);if(s){var l=t.getOptionValue(e);t.setValue(o.filter(function(e){return t.getOptionValue(e)!==l}),"deselect-option",e)}else{if(c)return void t.ariaOnChange(e,{action:"select-option",option:e,name:a});i?t.setValue([].concat(M(o),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n,r=t.props.isMulti,i=t.state.selectValue,a=t.getOptionValue(e),o=i.filter(function(e){return t.getOptionValue(e)!==a}),s=(n=o[0]||null,r?o:n);t.onChange(s,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e,n,r=t.state.selectValue;t.onChange((e=t.props.isMulti,n=[],e?n:null),{action:"clear",removedValues:r})},t.popValue=function(){var e,n=t.props.isMulti,r=t.state.selectValue,i=r[r.length-1],a=r.slice(0,r.length-1),o=(e=a[0]||null,n?a:e);i&&t.onChange(o,{action:"pop-value",removedValue:i})},t.getFocusedOptionId=function(e){return nk(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return nS(nw(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return td.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return nC(t.props,e)},t.getOptionValue=function(e){return nO(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,i=ng[e](n,r);i.boxSizing="border-box";var a=t.props.styles[e];return a?a(i,n):i},t.getClassNames=function(e,n){var r,i;return null==(r=(i=t.props.classNames)[e])?void 0:r.call(i,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){var e;return e=t.props,_(_({},tW),e.components)},t.buildCategorizedOptions=function(){return nw(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return n_(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:_({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!t.props.isDisabled){var n=t.props,r=n.isMulti,i=n.menuIsOpen;t.focusInput(),i?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focu
30sInput():setTimeout(function(){return t.focusInput()}))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&tm(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var i=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=i>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return nI(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,i=n.backspaceRemovesValue,a=n.escapeClearsValue,o=n.inputValue,s=n.isClearable,c=n.isDisabled,l=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,f=t.state,h=f.focusedOption,m=f.focusedValue,v=f.selectValue;if(!c){if("function"==typeof u&&(u(e),e.defaultPrevented))return;switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||o)return;t.focusValue("previous");break;case"ArrowRight":if(!r||o)return;t.focusValue("next");break;case"Delete":case"Backspace":if(o)return;if(m)t.removeValue(m);else{if(!i)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing||e.shiftKey||!l||!d||!h||p&&t.isOptionSelected(h,v))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h||t.isComposing)return;t.selectOption(h);break}return;case"Escape":l?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:o}),t.onMenuClose()):s&&a&&t.clearValue();break;case" ":if(o)return;if(!l){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;
30case"ArrowUp":l?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":l?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!l)return;t.focusOption("pageup");break;case"PageDown":if(!l)return;t.focusOption("pagedown");break;case"Home":if(!l)return;t.focusOption("first");break;case"End":if(!l)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++nL),t.state.selectValue=tp(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),o=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[o],t.state.focusedOptionId=nk(n,r[o])}return t}return n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&ty(this.menuListRef,this.focusedOptionRef),(nv(/^Mac/i)||nv(/^iPhone/i)||nv(/^iPad/i)||nv(/^Mac/i)&&navigator.maxTouchPoints>1)&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(ty(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,a=this.buildFocusableOptions(),o="first"===e?0:a.length-1;if(!this.props.isMulti){var s=a.indexOf(r[0]);s>-1&&(o=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[o],focusedOptionId:this.getFocusedOptionId(a[o])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var a=n.length-1,o=-1;if(n.length){switch(e){case"previous":o=0===i?0:-1===i?a:i-1;break;case"next":i>-1&&i<a&&(o=i+1)}this.setState({inputIsHidden:-1!==o,focusedValue:n[o]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,a=r.indexOf(n);n||(a=-1),"up"===e?i=a>0?a-1:r.length-1:"down"===e?i=(a+1)%r.length:"pageup"===e?(i=a-t)<0&&(i=0):"pagedown"===e?(i=a+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(nb):_(_({},nb),this.props.theme):nb}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,a=this.selectOption,o=this.setValue,s=this.props,c=s.isMulti,l=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:c,isRtl:l,options:u,selectOption:a,selectProps:s,setValue:o,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return nE(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return nN(this.props,e,t)}},{key:"filterOption",value:function(e,t){return nT(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"!=typeof this.props.formatOptionLabel)return this.getOptionLabel(e);var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,a=e.tabIndex,o=e.form,s=e.menuIsOpen,c=e.required,l=this.getComponents().Input,u=this.state,d=u.inputIsHidden,p=u.ariaSelection,f=this.commonProps,m=r||this.getElementId("input"),v=_(_(_({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?(null==p?void 0:p.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?h.createElement(l,E({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:o,type:"text",value:i},v)):h.createElement(ne,E({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:tu,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:o,value:""},v))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,o=t.SingleValue,s=t.Placeholder,c=this.commonProps,l=this.props,u=l.controlShouldRenderValue,d=l.isDisabled,p=l.isMulti,f=l.inputValue,m=l.placeholder,v=this.state,g=v.selectValue,b=v.focusedValue,y=v.isFocused;if(!this.hasValue()||!u)return f?null:h.createElement(s,E({},c,{key:"placeholder",isDisabled:d,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return g.map(function(t,o){var s=t===b,l="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return h.createElement(n,E({}
30,c,{components:{Container:r,Label:i,Remove:a},isFocused:s,isDisabled:d,key:l,index:o,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(f)return null;var x=g[0];return h.createElement(o,E({},c,{data:x,isDisabled:d}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var o={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return h.createElement(e,E({},t,{innerProps:o,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;return e&&i?h.createElement(e,E({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return h.createElement(n,E({},r,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return h.createElement(e,E({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e,t=this,n=this.getComponents(),r=n.Group,i=n.GroupHeading,a=n.Menu,o=n.MenuList,s=n.MenuPortal,c=n.LoadingMessage,l=n.NoOptionsMessage,u=n.Option,d=this.commonProps,p=this.state.focusedOption,f=this.props,m=f.captureMenuScroll,v=f.inputValue,g=f.isLoading,b=f.loadingMessage,y=f.minMenuHeight,x=f.maxMenuHeight,w=f.menuIsOpen,_=f.menuPlacement,S=f.menuPosition,j=f.menuPortalTarget,k=f.menuShouldBlockScroll,C=f.menuShouldScrollIntoView,O=f.noOptionsMessage,N=f.onMenuScrollToTop,T=f.onMenuScrollToBottom;if(!w)return null;var I=function(e,n){var r=e.type,i=e.data,a=e.isDisabled,o=e.isSelected,s=e.label,c=e.value,l=p===i,f=a?void 0:function(){return t.onOptionHover(i)},m=a?void 0:function(){return t.selectOption(i)},v="".concat(t.getElementId("option"),"-").concat(n),g={id:v,onClick:m,onMouseMove:f,onMouseOver:f,tabIndex:-1,role:"option","aria-selected":t.state.isAppleDevice?void 0:o};return h.createElement(u,E({},d,{innerProps:g,data:i,isDisabled:a,isSelected:o,key:v,label:s,type:r,value:c,isFocused:l,innerRef:l?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(e.data,"menu"))};if(this.hasOptions())e=this.getCategorizedOptions().map(function(e){if("group"===e.type){var n=e.data,a=e.options,o=e.index,s="".concat(t.getElementId("group"),"-").concat(o),c="".concat(s,"-heading");return h.createElement(r,E({},d,{key:s,data:n,options:a,Heading:i,headingProps:{id:c,data:e.data},label:t.formatGroupLabel(e.data)}),e.options.map(function(e){return I(e,"".concat(o,"-").concat(e.index))}))}if("option"===e.type)return I(e,"".concat(e.index))});else if(g){var L=b({inputValue:v});if(null===L)return null;e=h.createElement(c,d,L)}else{var M=O({inputValue:v});if(null===M)return null;e=h.createElement(l,d,M)}var A={minMenuHeight:y,maxMenuHeight:x,menuPlacement:_,menuPosition:S,menuShouldScrollIntoView:C},P=h.createElement(tT,E({},d,A),function(n){var r=n.ref,i=n.placerProps,s=i.placement,c=i.maxHeight;return h.createElement(a,E({},d,A,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:g,placement:s}),h.createElement(nf,{captureEnabled:m,onTopArrive:N,onBottomArrive:T,lockEnabled:k},function(n){return h.createElement(o,E({},d,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:t.getElementId("listbox")},isLoading:g,maxHeight:c,focusedOption:p}),e)}))});return j||"fixed"===S?h.createElement(s,E({},d,{appendTo:j,controlElement:this.controlRef,menuPlacement:_,menuPosition:S}
30),P):P}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,a=t.name,o=t.required,s=this.state.selectValue;if(o&&!this.hasValue()&&!r)return h.createElement(nm,{name:a,onFocus:this.onValueInputFocus});if(a&&!r)if(i)if(n){var c=s.map(function(t){return e.getOptionValue(t)}).join(n);return h.createElement("input",{name:a,type:"hidden",value:c})}else{var l=s.length>0?s.map(function(t,n){return h.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})}):h.createElement("input",{name:a,type:"hidden",value:""});return h.createElement("div",null,l)}else{var u=s[0]?this.getOptionValue(s[0]):"";return h.createElement("input",{name:a,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.isFocused,o=t.selectValue,s=this.getFocusableOptions();return h.createElement(tQ,E({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:a,selectValue:o,focusableOptions:s,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,a=this.props,o=a.className,s=a.id,c=a.isDisabled,l=a.menuIsOpen,u=this.state.isFocused,d=this.commonProps=this.getCommonProps();return h.createElement(r,E({},d,{className:o,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:u}),this.renderLiveRegion(),h.createElement(t,E({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:u,menuIsOpen:l}),h.createElement(i,E({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),h.createElement(n,E({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,i=t.clearFocusValueOnUpdate,a=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,s=t.isFocused,c=t.prevWasFocused,l=t.instancePrefix,u=e.options,d=e.value,p=e.menuIsOpen,f=e.inputValue,h=e.isMulti,m=tp(d),v={};if(r&&(d!==r.value||u!==r.options||p!==r.menuIsOpen||f!==r.inputValue)){var g,b=p?n_(nw(e,m)):[],y=p?nS(nw(e,m),"".concat(l,"-option")):[],x=i?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,m):null,w=(g=t.focusedOption)&&b.indexOf(g)>-1?g:b[0],S=nk(y,w);v={selectValue:m,focusedOption:w,focusedOptionId:S,focusableOptionsWithIds:y,focusedValue:x,clearFocusValueOnUpdate:!1}}var j=null!=a&&e!==r?{inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{},k=o,C=s&&c;return s&&!C&&(k={value:(n=m[0]||null,h?m:n),options:m,action:"initial-input-focus"},C=!c),(null==o?void 0:o.action)==="initial-input-focus"&&(k=null),_(_(_({},v),j),{},{prevProps:e,ariaSelection:k,prevWasFocused:C})}}],n&&N(a.prototype,n),r&&N(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(h.Component);nM.defaultProps=ny;var nA=(0,h.forwardRef)(function(e,t){var n,r,i,a,o,s,c,l,u,d,p,f,m,v,g,b,y,x,w,S,j,N,T,I,L,M,A,P=(n=e.defaultInputValue,r=e.defaultMenuIsOpen,i=e.defaultValue,a=e.inputValue,o=e.menuIsOpen,s=e.onChange,c=e.onInputChange,l=e.onMenuClose,u=e.onMenuOpen,d=e.value,p=C(e,O),m=(f=k((0,h.useState)(void 0!==a?a:void 0===n?"":n),2))[0],v=f[1],b=(g=k((0,h.useState)(void 0!==o?o:void 0!==r&&r),2))[0],y=g[1],w=(x=k((0,h.useState)(void 0!==d?d:void 0===i?null:i),2))[0],S=x[1],j=(0,h.useCallback)(function(e,t){"function"==typeof s&&s(e,t),S(e)},[s]),N=(0,h.useCallback)(function(e,t){var n;"function"==typeof c&&(n=c(e,t)),v(void 0!==n?n:e)},[c]),T=(0,h.useCallback)(function(){"function"==typeof u&&u(),y(!0)},[u]),I=(0,h.useCallback)(function(){"function"==typeof l&&l(),y(!1)},[l]),L=void 0!==a?a:m,M=void 0!==o?o:b,A=void 0!==d?d:w,_(_({},p),{},{inputValue:L,menuIsOpen:M,onChange:j,onInputChange:N,onMenuClose:I,onMenuOpen:T,value:A}));return h.createElement(nM,E({ref:t},P))}),nP=e.i(744705),nR=e.i(908034),nF=e.i(41533);let nV={control:e=>({...e,border:"none !important",outline:"none !important",boxShadow:"none",cursor:"pointer","&:hover":{outline:"none !important",border:"none !important",boxShadow:"none"},"&:focus":{outline:"none !important",border:"none !important",boxShadow:"none"},input:{width:"0px"}}),menu:e=>({...e,border:"none",minWidth:"220px",boxShadow:"none",backgroundColor:"#F1F5F3",cursor:"pointer"}),option:(e,t)=>({...e,backgroundColor:t.isSelected?"#6386C4":"#ele6ef",color:t.isSelected?"#1A1A1A":"#0E335A",cursor:"pointer","&:hover":{backgroundColor:"#95AEDA",color:"#0A2440"}}),singleValue:e=>({...e,color:"#174E8C"}),dropdownIndicator:e=>({...e,color:"#124173","&:hover":{color:"#061627"}}),indicatorSeparator:()=>({display:"none"}),clearIndicator:e=>({...e,color:"#174E8C","&:hover":{color:"#174E8C"}}),menuList:e=>({...e,backgroundColor:"#F1F5F3"})};e.s(["default",0,({locale:e="en",isMobile:t})=>{let n=(0,nP.useRouter)(),r=(0,nP.usePathname)(),i=(0,f.useSearchParams)(),[a,o]=(0,h.useTransition)(),s={en:"US",uk:"GB",in:"IN",sa:"SA","sa-en":"SA-EN",ca:"CA"},c={en:"United States",uk:"United Kingdom",in:"India",sa:"Saudi Arabia","sa-en":"Saudi Arabia",fr:"France",de:"Germany",it:"Italy",es:"Spain",ca:"Canada"},l=e=>{let t=s[e]||e;return(0,p.jsx)(g,{countryCode:t,svg:!0,"aria-label":c[e],title:c[e]})},u=[],d={ca:"/products/kardia12l"},m=nF.locales?.filter(e=>!u.includes(e)).map(e=>({label:(0,p.jsxs)("div",{className:"gap-s2 flex items-center",children:[l("sa-en"===e?"sa":e),(0,p.jsx)("p",{className:"text-sm",children:c[e]}),(0,p.jsxs)("p",{className:"text-sm",children:["(",e?.toUpperCase(),")"]})]}),value:e})),v=m.find(t=>t.value===e);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("label",{htmlFor:"locale-switcher",className:"sr-only",children:"Select country/language"}
30),(0,p.jsx)(nA,{options:m,value:v,onChange:e=>{o(()=>{let t=e?.value,a=d[t],o=(0,nR.getMergedPath)(i,a||r);n.replace(o,{locale:`${t}`})})},styles:nV,isSearchable:!1,isDisabled:a,menuPlacement:t?"top":"auto",components:{SingleValue:({...e})=>(0,p.jsx)(tW.SingleValue,{...e,children:(0,p.jsxs)("div",{className:"gap-s1 flex items-center",children:[l(v?.value==="sa-en"?"sa":v?.value),(0,p.jsxs)("p",{className:"text-sm",children:["(",v?.value?.toUpperCase(),")"]})]})})},inputId:"locale-switcher","aria-label":"Select country/language"})]})}],582934);var nD=e.i(657688),nH=e.i(861745),nU=e.i(948148),n$=e.i(501859),nz=e.i(466837),nB=e.i(122640),nq=e.i(724732),nW=e.i(361628),nG=e.i(857970),nK=e.i(280301);let nY={kardia12l:n?.src,kardiaMobile:nz.default?.src,kardiaMobile6l:nB.default?.src,kardiaMobileCard:nq.default?.src};e.s(["default",0,({data:e=[],title:t,isProduct:n=!1})=>{let r=(0,nH.useLocale)(),[i,a]=(0,h.useState)(!1),o=(0,nU.useTranslations)("common"),s=(0,nW.isFR_ESLocale)(r),c=[],l=e=>(0,p.jsx)(p.Fragment,{children:e?.map((i,a)=>{let s=i?.isHTTPLink?"a":nK.default;return n&&r===nW.CONFIG_LOCALES.IN?(0,p.jsx)("div",{className:"flex space-x-4",children:(0,p.jsxs)(nP.Link,{className:`hover:bg-primary-50 relative flex w-[180px] flex-col items-center overflow-clip rounded-lg bg-gray-100 p-2 ${c.includes(i?.label)?"lg:hidden":""}`,href:i?.href,locale:r,onClick:()=>{(0,nG.gtmEvent)({event:"navigation_click",top_category:`${t}`,sub_category:`${i?.label}`,navigation_type:"Main Nav"})},children:[(0,p.jsx)("div",{className:"relative w-full",children:(0,p.jsx)(nD.default,{src:nY[i?.key],alt:`${i?.key}`,width:200,height:200,className:"h-[180px] object-cover"})}),(0,p.jsx)("p",{className:"w-full text-center",children:i?.label})]})},a):(0,p.jsxs)("div",{className:`gap-s2 py-s2 group/item relative flex w-full px-6 ${0===a?"pt-s4":e.length===a+1?"pb-s4":""}`,children:[i?.href?(0,p.jsx)(s,{className:`text-primary-900 hover:text-primary-500 ${!i?.children?"flex-1":""}`,href:i?.href,onClick:()=>{(0,nG.gtmEvent)({event:"navigation_click",top_category:`${t}`,sub_category:`${i?.label}`,navigation_type:"Main Nav"})},children:i?.label}):(0,p.jsxs)("div",{className:"flex flex-1 items-center justify-between",children:[(0,p.jsx)("p",{children:i?.label}),(0,p.jsx)(n$.RiArrowRightSLine,{"aria-hidden":"true"})]}),i?.isNew&&(0,p.jsx)("p",{className:"bg-primary-900 flag py-1 pr-4 pl-2 text-xs text-white",children:o("new")}),i?.children&&(0,p.jsx)("div",{className:"absolute top-0 left-[100%] hidden min-w-[300px] bg-white shadow-lg group-hover/item:block",children:l(i?.children)})]},i?.label)})});return(0,p.jsxs)("div",{className:"dropdown flex",onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[(0,p.jsxs)("div",{className:"dropbtn text-primary-900 hover:text-primary-500 gap-s1 flex items-center",children:[(0,p.jsx)("p",{className:`${s?"text-sm":"text-base"}`,children:t}),i?(0,p.jsx)(n$.RiArrowUpSLine,{size:"20px","aria-hidden":"true"}):(0,p.jsx)(n$.RiArrowDownSLine,{size:"20px","aria-hidden":"true"})]}),(0,p.jsx)("div",{className:"dropdown-content min-w-[300px]",children:(0,p.jsx)("div",{className:`flex items-start text-base ${n?"space-x-4 px-7 py-8 text-base":"flex-col"}`,children:l(e)})})]})}],32485)},802945,e=>{"use strict";var t=e.i(843476),n=e.i(657688),r=e.i(861745),i=e.i(948148),a=e.i(271645),o=e.i(549377),s=e.i(899081),c=e.i(394580),l=e.i(744705),u=e.i(361628),d=e.i(121249),p=e.i(857970),f=e.i(585080),h=e.i(738306),m=e.i(582934),v=e.i(32485),g=e.i(383417),b=e.i(280301);function y({locale:e}){let y=(0,f.usePersistentRouter)(),[x,w]=(0,a.useState)(!1),[_,S]=(0,a.useState)("en"),[j,k]=(0,a.useState)(!1),[C,O]=(0,a.useState)(!1),[E,N]=(0,a.useState)("US");c.default.info({countryCode:E},"countryCode");let T=(0,i.useTranslations)("header");(0,a.useEffect)(()=>{let e=setTimeout(()=>{O(!0)},50);return()=>clearTimeout(e)},[]);let[I,L]=(0,a.useTransition)(),M=(0,l.usePathname)(),A=(0,r.useLocale)(),P=()=>{j?document?.body?.classList?.remove("modal-open"):document?.body?.classList?.add("modal-open"),k(e=>!e)},R=(n=!1)=>C&&(0,t.jsx)(m.default,{isMobile:n,locale:e}),F=[{label:T("kardiaMobile"),href:"/products/kardiamobile"},{label:T("kardiaMobile6L"),href:"/products/kardiamobile6l"},{label:T("kardiaMobileCarrypod"),href:"/products/kardiamobile-carrypod"},{label:T("kardiaMobilePhoneclip"),href:"/products/kardiamobile-phoneclip"},{label:T("kardiaCare"),href:"/products/kardiacare"}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"sticky top-[0px] z-50 shadow-xs",children:(0,t.jsxs)("div",{className:"px-s7 sm:px-s5 md:px-s10 lg:px-s7 h-[56px] w-full bg-white",children:[(0,t.jsxs)("div",{className:"xLg:flex xLg:justify-between hidden h-full",children:[(0,t.jsxs)("div",{className:"gap-s8 flex cursor-pointer",children:[(0,t.jsx)(b.default,{href:"/",className:"flex h-full",children:(0,t.jsx)(n.default,{src:s.default?.src,alt:"AliveCor Logo",width:130,height:120})}
30),d.SAMenu?.map((e,n)=>(0,t.jsx)("div",{className:"flex items-center",children:(0,t.jsx)(b.default,{href:e?.url,className:"dropbtn text-primary-900 hover:text-primary-500 text-base",children:e?.label})},n)),(0,t.jsx)(v.default,{title:T("ourProducts"),data:F})]}),(0,t.jsxs)("div",{className:"gap-s4 flex items-center",children:[R(),(0,t.jsx)(h.default,{id:"contact-us-click"})]})]}),(0,t.jsxs)("div",{className:"xLg:hidden flex h-full items-center justify-between",children:[j?(0,t.jsx)("button",{type:"button","aria-label":"Close menu",onClick:P,className:"flex items-center justify-center p-1",children:(0,t.jsx)(o.RxCross2,{fontSize:"32px",className:"text-primary-800","aria-hidden":"true"})}):(0,t.jsxs)("button",{onClick:P,"aria-label":"Open menu","aria-controls":"collapse2",className:"menu-btn","aria-expanded":"false",children:[(0,t.jsx)("span",{className:"menu__bar bg-primary-500 menu__bar--1"}),(0,t.jsx)("span",{className:"menu__bar bg-primary-500 menu__bar--2"}),(0,t.jsx)("span",{className:"menu__bar bg-primary-500 menu__bar--3"})]}),(0,t.jsx)(n.default,{src:s.default?.src,alt:"AliveCor Logo",width:130,height:120,onClick:()=>{y.push("/"),document?.body?.classList?.remove("modal-open"),k(!1)}})]})]})}),x&&(0,t.jsx)(g.default,{showClose:!0,isCenter:!0,handleClose:()=>w(!1),contentClassName:"w-[80%] sm:w-[35%] md:w-[45%] lg:w-[35%] mx-auto",children:(0,t.jsxs)("div",{className:"flex flex-col space-y-6",children:[(0,t.jsx)("div",{className:"flex justify-between font-bold",children:(0,t.jsx)("p",{className:"text-xl",children:T("preferences")})}),(0,t.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,t.jsx)("p",{className:"text-xl font-bold",children:T("shopIn")}),(0,t.jsxs)("label",{className:"rounded-sm border-2 text-lg",children:[(0,t.jsx)("p",{className:"sr-only",children:T("changeLanguage")}),(0,t.jsx)("select",{className:"w-full bg-transparent px-2 py-2",onChange:e=>{let t=e.target.value;N(u.localeArr.find(e=>e.locale===t).countryCode),S(t)},defaultValue:A,disabled:I,children:u.localeArr.map(e=>(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("option",{value:e.locale,children:e.label})}))})]})]}),(0,t.jsx)("button",{className:"bg-primary-500 rounded-sm p-3 text-xl font-bold text-white",onClick:()=>{_&&L(()=>{y.replace(`/${_}${M}`)}),(0,p.gtmEvent)({event:"cta_click",click_text:"Update Preferences",click_url:"locale-change"}),w(!1)},children:T("updatePreferences")})]})}),j&&(0,t.jsx)("div",{className:"border-primary-100 h-[calc(100% - 56px)] xLg:hidden fixed top-[56px] bottom-[0] z-999 w-full border-t-2 bg-white text-2xl font-medium shadow-md sm:w-full md:w-full",children:(0,t.jsxs)("div",{className:"border-primary-100 flex h-full flex-col",children:[(0,t.jsxs)("div",{className:"px-s7 md:px-s9 pt-s7 flex-auto overflow-auto",children:[d.SAMe
30nu?.map((e,n)=>(0,t.jsx)("div",{className:"text-primary-900 border-primary-100 py-s4 hover:text-primary-500 border-b",children:(0,t.jsx)("p",{className:"cursor-pointer text-base",onClick:()=>{y.push(e?.url),P()},children:e?.label})},n)),(0,t.jsx)("div",{className:"flex justify-between",children:(0,t.jsx)("div",{className:"py-s9 flex items-center justify-start space-x-2 font-normal",children:R(!0)})})]}),(0,t.jsx)("div",{className:"px-s7 md:px-s9 pb-s8",children:(0,t.jsx)(h.default,{type:"normal-full-w",id:"contact-us-click"})})]})})]})}e.s(["default",()=>y])},893929,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(857970),i=e.i(361628),a=e.i(280301);function o({localActive:e,_data:o}){let s=(0,n.useMemo)(()=>({en:{creative_name:"Kardia 12L",currency:"USD",item_id:"k_12",item_name:"Kardia 12L",item_variant:"Kardia 12L",price:2700,compare_price:2700},uk:{creative_name:"Watch our exclusive interview with our trusted SDK partner, Qurasoft",currency:"GBP",item_id:"",item_name:"",item_variant:"",price:0,compare_price:0},in:{creative_name:"Kardia 12L",currency:"INR",item_id:"k_12l",item_name:"Kardia 12L",item_variant:"Kardia 12L",price:0,compare_price:0}}),[]);(0,n.useEffect)(()=>{c("view_promotion")},[e,s]);let c=async t=>{await (0,r.isGTMReady)()&&(0,r.gtmEvent)({event:t,ecommerce:{promotion_id:"",promotion_name:"",creative_name:s[e]?.creative_name,creative_slot:"top_banner",currency:s[e]?.currency,items:[{item_id:s[e]?.item_id,item_name:s[e]?.item_name,affiliation:"Store",coupon:"",creative_name:s[e]?.creative_name,creative_slot:"top_banner",discount:0,index:0,item_brand:"Kardia",item_category:"Device",item_category2:"Main Device",item_variant:s[e]?.item_variant,price:s[e]?.price,quantity:1,stock:!0,compare_price:s[e]?.compare_price}]}})},l=e===i.CONFIG_LOCALES.UK,u=(0,i.isEULocale)(e);return o?(0,t.jsx)("div",{onClick:()=>c("select_promotion"),style:{backgroundColor:o?.bgColor||"#164F8C"},className:`banner sticky top-0 z-50 h-[80px] ${l||u?"xLg:h-[36px] md:h-[50px]":"md:h-[36px]"} px-s7 sm:px-s9 md:px-s10 lg:px-s11 bg-secondary flex w-full items-center`,children:(0,t.jsx)(a.default,{href:o?.url,style:{color:o?.textColor},className:"max-w-content text-primary-50 hover/focus:text-primary-50 mx-auto w-full transition-colors duration-500",children:(0,t.jsx)("p",{className:"text-center text-sm font-bold lg:text-base",children:o?.content})})}):null}e.s(["default",()=>o])},255853,e=>{"use strict";let t={src:e.i(260207).default,width:16,height:16,blurWidth:0,blurHeight:0};e.s(["default",0,t])},117619,e=>{"use strict";var t=e.i(843476),n=e.i(657688),r=e.i(861745),i=e.i(948148),a=e.i(271645),o=e.i(549377),s=e.i(899081),c=e.i(255853),l=e.i(394580),u=e.i(744705),d=e.i(361628),p=e.i(121249),f=e.i(857970),h=e.i(349412),m=e.i(585080),v=e.i(511633),g=e.i(582934),b=e.i(32485),y=e.i(383417),x=e.i(280301);function w({locale:e,isTopHeaderAvailable:w}){let _=(0,m.usePersistentRouter)(),[S,j]=(0,a.useState)(!1),[k,C]=(0,a.useState)("en"),[O,E]=(0,a.useState)(!1),[N,T]=(0,a.useState)(!1),[I,L]=(0,a.useState)("US");l.default.info({countryCode:I},"countryCode");let M=(0,i.useTranslations)("header"),A=(0,i.useTranslations)(),{solutionsArr:P,professionalsArr:R,aboutArr:F}=(0,h.getHeaderMenu)(M,"uk",e),V=(0,d.isFR_ESLocale)(e);(0,a.useEffect)(()=>{let e=setTimeout(()=>{T(!0)},50);return()=>clearTimeout(e)},[]);let[D,H]=(0,a.useTransition)(),U=(0,u.usePathname)(),$=(0,r.useLocale)(),z=()=>{O?document?.body?.classList?.remove("modal-open"):document?.body?.classList?.add("modal-open"),E(e=>!e)},B=(e,n)=>(0,t.jsx)("div",{children:n?.map((e,n)=>(0,t.jsxs)("p",{onClick:()=>{_.push(e?.href),z()},className:"text-primary-900 hover:text-primary-500 border-primary-100 flex cursor-pointer items-center justify-between border-b-2 px-[3%] py-4 text-base",children:[e?.label,e?.isNew&&(0,t.jsx)("span",{className:"bg-primary-900 ml-s2 flag inline-block py-1 pr-4 pl-2 text-xs text-white",children:M("new")})]},n))}),q=(n=!1)=>N&&(0,t.jsx)(g.default,{isMobile:n,locale:e}),W="uk"===e?"08000668028":"fr"===e?"0805220703":"de"===e?"08001810996":null;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:`sticky top-[0px] z-50 shadow-xs ${w&&"xLg:top-[36px] top-[80px] md:top-[50px]"}`,children:(0,t.jsxs)("div",{className:"px-s7 sm:px-s5 md:px-s10 lg:px-s7 h-[56px] w-full bg-white",children:[(0,t.jsxs)("div",{className:"xxl:flex xxl:justify-between hidden h-full",children:[(0,t.jsxs)("div",{className:"gap-s8 flex cursor-pointer",children:[(0,t.jsx)(x.default,{href:"/",className:"flex h-full",children:(0,t.jsx)(n.default,{src:s.default,alt:"AliveCor Logo",width:130,height:120})}),P?.length>0?(0,t.jsx)(b.default,{title:M("ourProducts"),data:P}):(0,t.jsx)(t.Fragment,{}),R?.length>0?(0,t.jsx)(b.default,{title:M("ourSolutions"),data:R}):(0,t.jsx)(t.Fragment,{}),F?.length>0?(0,t.jsx)(b.default,{title:M("about"),data:F}):(0,t.jsx)(t.Fragment,{}),(0,p.getUKMenu)(e)?.map((e,n)=>(0,t.jsx)("div",{className:"flex items-center",children:(0,t.jsx)(x.default,{href:e?.url,onClick:()=>{(0,f.gtmEvent)({event:"navigation_click",top_category:`${e?.label}`,navigation_type:"Main Nav"})},className:`dropbtn text-primary-900 hover:text-primary-500 ${V?"text-sm":"text-base"}`,children:A(e?.label)})},n))]}),(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[q(),W&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.default,{src:c.default?.src,width:16,height:16,alt:"Phone"}),(0,t.jsx)("div",{className:"text-base font-normal pr-2",children:W})]}),(0,t.jsx)("div",{className:"",children:(0,t.jsx)(x.default,{className:"bg-primary-500 hover:bg-primary-900 px-s3 py-s3 rounded-xl text-sm tracking-[0.2em] text-white uppercase ease-in-out hover:text-white",href:"/contact-us?page=web",children:A("common.contactUs")})})]})]}),(0,t.jsxs)("div",{className:"xxl:hidden flex h-full items-center justify-between",children:[O?(0,t.jsx)("button",{type:"button","aria-label":"Close menu",onClick:z,className:"flex items-center justify-center p-1",children:(0,t.jsx)(o.RxCross2,{fontSize:"32px",className:"text-primary-800","aria-hidden":"true"})}):(0,t.jsxs)("button",{onClick:z,"aria-label":"Open menu","aria-controls":"collapse2",className:"menu-btn","aria-expanded":"false",children:[(0,t.jsx)("span",{className:"menu__bar bg-primary-500 menu__bar--1"}),(0,t.jsx)("span",{className:"menu__bar bg-primary-500 menu__bar--2"}),(0,t.jsx)("span",{className:"menu__bar bg-primary-500 menu__bar--3"})]}),(0,t.jsx)(n.default,{src:s.default,alt:"AliveCor Logo",width:130,height:120,onClick:()=>{_.push("/"),document?.body?.classList?.remove("modal-open"),E(!1)}})]})]})}),S&&(0,t.jsx)(y.default,{showClose:!0,isCenter:!0,handleClose:()=>j(!1),contentClassName:"w-[80%] sm:w-[35%] md:w-[45%] lg:w-[35%] mx-auto",children:(0,t.jsxs)("div",{className:"flex flex-col space-y-6",children:[(0,t.jsx)("div",{className:"flex justify-between font-bold",children:(0,t.jsx)("p",{className:"text-xl",children:M("preferences")})}),(0,t.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,t.jsx)("p",{className:"text-xl font-bold",children:M("shopIn")}),(0,t.jsxs)("label",{className:"rounded-sm border-2 text-lg",children:[(0,t.jsx)("p",{className:"sr-only",children:M("changeLanguage")}),(0,t.jsx)("select",{className:"w-full bg-transparent px-2 py-2",onCh
30ange:e=>{let t=e.target.value;L(d.localeArr.find(e=>e.locale===t).countryCode),C(t)},defaultValue:$,disabled:D,children:d.localeArr.map(e=>(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("option",{value:e.locale,children:e.label})}))})]})]}),(0,t.jsx)("button",{className:"bg-primary-500 rounded-sm p-3 text-xl font-bold text-white",onClick:()=>{k&&H(()=>{_.replace(`/${k}${U}`)}),(0,f.gtmEvent)({event:"cta_click",click_text:"Update Preferences",click_url:"locale-change"}),j(!1)},children:M("updatePreferences")})]})}),O&&(0,t.jsx)("div",{className:`border-primary-100 h-[calc(100% - 136px)] md:h-[calc(100% - 92px)] fixed z-999 w-full border-t-2 bg-white shadow-md ${w?"top-[136px]":"top-[56px]"} ${w?"md:top-[92px]":"md:top-[56px]"} xxl:hidden bottom-[0] text-2xl font-medium`,children:(0,t.jsxs)("div",{className:"border-primary-100 flex h-full flex-col",children:[(0,t.jsxs)("div",{className:"px-s7 md:px-s9 pt-s7 flex-auto overflow-auto",children:[P?.length>0?(0,t.jsx)(v.default,{open:!1,content:B(M("ourProducts"),P),title:(0,t.jsx)("p",{className:"text-base",children:M("ourProducts")})}):(0,t.jsx)(t.Fragment,{}),R?.length>0?(0,t.jsx)(v.default,{open:!1,content:B(M("ourSolutions"),R),title:(0,t.jsx)("p",{className:"text-base",children:M("ourSolutions")})}):(0,t.jsx)(t.Fragment,{}),F?.length>0?(0,t.jsx)(v.default,{open:!1,content:B(M("about"),F),title:(0,t.jsx)("p",{className:"text-base",children:M("about")})}):(0,t.jsx)(t.Fragment,{}),(0,p.getUKMenu)(e)?.map((e,n)=>(0,t.jsx)("div",{className:"text-primary-900 border-primary-100 py-s4 hover:text-primary-500 border-b",children:(0,t.jsx)("p",{className:"cursor-pointer text-base",onClick:()=>{_.push(e?.url),z()},children:A(e?.label)})},n)),(0,t.jsx)("div",{className:"flex justify-between",children:W&&(0,t.jsxs)("div",{className:"pt-s7 pb-s6 flex items-center justify-start space-x-2 font-normal text-black",children:[(0,t.jsx)(n.default,{src:c.default?.src,width:16,height:16,alt:"Phone"}),(0,t.jsx)("p",{className:"text-base",children:W})]})}),(0,t.jsx)("div",{className:"pb-s5",children:q(!0)})]}),(0,t.jsx)("div",{className:"px-s7 md:px-s9 pb-s8",children:(0,t.jsx)(x.default,{className:"bg-primary-500 hover:bg-primary-900 px-s6 py-s3 inline-block w-full rounded-xl text-center text-sm tracking-[0.2em] text-white uppercase ease-in-out hover:text-white sm:w-fit",href:"/contact-us?page=web",children:A("common.contactUs")})})]})})]})}e.s(["default",()=>w])},178111,e=>{"use strict";var t=e.i(500753);e.s(["whatsappIcon",()=>t.default])},25765,e=>{"use strict";var t=e.i(843476),n=e.i(657688),r=e.i(522016);e.i(314547);var i=e.i(178111),a=e.i(857970);e.s(["default",0,()=>(0,t.jsxs)("div",{className:"right-s2 sm:right-s4 fixed bottom-25 z-50 flex items-center gap-3",children:[(0,t.jsx)("span",{className:"pointer-events-none hidden rounded-lg bg-gray-800 px-3 py-1.5 text-sm text-white opacity-0 transition-opacity group-hover:opacity-100 md:block",children:"Chat with us"}),(0,t.jsxs)(r.default,{href:"https://alivecor.com/in/wa",target:"_blank",rel:"noopener noreferrer",className:"group relative flex h-14 w-14 items-center justify-center rounded-full bg-[#25D366] shadow-lg transition-all hover:scale-110 hover:bg-[#128C7E] active:scale-95","aria-label":"Chat on WhatsApp",onClick:()=>{(0,a.gtmEvent)({event:"cta_click",click_text:"WhatsApp",click_url:"https://alivecor.com/in/wa"})},children:[(0,t.jsx)("span",{className:"absolute right-16 scale-0 rounded bg-gray-800 p-2 text-xs whitespace-nowrap text-white transition-all group-hover:scale-100",children:"Chat with us!"}),(0,t.jsx)("div",{className:"relative h-8 w-8",children:(0,t.jsx)(n.default,{src:i.whatsappIcon,alt:"WhatsApp",fill:!0,className:"object-contain"})})]})]})])},634613,(e,t,n)=>{!function(n,r){"use strict";if("function"==typeof define&&define.amd){let t;void 0!==(t=r())&&e.v(t)}else t.exports=r()}(e.e,function(){"use strict";function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t(e,t,n,r,i,a){void 0!==e&&this.setFunctionName(e),void 0!==t&&this.setArgs(t),void 0!==n&&this.setFileName(n),void 0!==r&&this.setLineNumber(r),void 0!==i&&this.setColumnNumber(i),void 0!==a&&this.setSource(a)}return t.prototype={getFunctionName:function(){return this.functionName},setFunctionName:function(e){this.functionName=String(e)},getArgs:function(){return this.args},setArgs:function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw TypeError("Args must be an Array");this.args=e},getFileName:function(){return this.fileName},setFileName:function(e){this.fileName=String(e)},getLineNumber:function(){return this.lineNumber},setLineNumber:function(t){if(!e(t))throw TypeError("Line Number must be a Number");this.lineNumber=Number(t)},getColumnNumber:function(){return this.columnNumber},setColumnNumber:function(t){if(!e(t))throw TypeError("Column Number must be a Number");this.columnNumber=Number(t)},getSource:function(){return this.source},setSource:function(e){this.source=String(e)},toString:function(){return(this.getFunctionName()||"{anonymous}")+("("+(this.getArgs()||[]).join(","))+")"+(this.getFileName()?"@"+this.getFileName():"")+(e(this.getLineNumber())?":"+this.getLineNumber():"")+(e(this.getColumnNumber())?":"+this.getColumnNumber():"")}},t})},813392,(e,t,n)=>{!function(n,r){"use strict";if("function"==typeof define&&define.amd){let t;void 0!==(t=r(e.r(634613)))&&e.v(t)}
30else t.exports=r(e.r(634613))}(e.e,function(e){"use strict";var t=/(^|@)\S+\:\d+/,n=/^\s*at .*(\S+\:\d+|\(native\))/m,r=/^(eval@)?(\[native code\])?$/;function i(e,t,n){if("function"==typeof Array.prototype.map)return e.map(t,n);for(var r=Array(e.length),i=0;i<e.length;i++)r[i]=t.call(n,e[i]);return r}function a(e,t,n){if("function"==typeof Array.prototype.filter)return e.filter(t,n);for(var r=[],i=0;i<e.length;i++)t.call(n,e[i])&&r.push(e[i]);return r}return{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?:\:(\d+))?(?:\:(\d+))?$/.exec(e.replace(/[\(\)]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){return i(a(t.stack.split("\n"),function(e){return!!e.match(n)},this),function(t){t.indexOf("(eval ")>-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var n=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").split(/\s+/).slice(1),r=this.extractLocation(n.pop());return new e(n.join(" ")||void 0,void 0,function(e,t){if("function"==typeof Array.prototype.indexOf)return e.indexOf(t);for(var n=0;n<e.length;n++)if(e[n]===t)return n;return -1}(["eval","<anonymous>"],r[0])>-1?void 0:r[0],r[1],r[2],t)},this)},parseFFOrSafari:function(t){return i(a(t.stack.split("\n"),function(e){return!e.match(r)},this),function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new e(t);var n=t.split("@"),r=this.extractLocation(n.pop());return new e(n.join("@")||void 0,void 0,r[0],r[1],r[2],t)},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split("\n"),i=[],a=2,o=r.length;a<o;a+=2){var s=n.exec(r[a]);s&&i.push(new e(void 0,void 0,s[2],s[1],void 0,r[a]))}return i},parseOpera10:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split("\n"),i=[],a=0,o=r.length;a<o;a+=2){var s=n.exec(r[a]);s&&i.push(new e(s[3]||void 0,void 0,s[2],s[1],void 0,r[a]))}return i},parseOpera11:function(n){return i(a(n.stack.split("\n"),function(e){return!!e.match(t)&&!e.match(/^Error created at/)},this),function(t){var n,r=t.split("@"),i=this.extractLocation(r.pop()),a=r.shift()||"",o=a.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^\)]*\)/g,"")||void 0;return a.match(/\(([^\)]*)\)/)&&(n=a.replace(/^[^\(]+\(([^\)]*)\)$/,"$1")),new e(o,void 0===n||"[arguments not available]"===n?void 0:n.split(","),i[0],i[1],i[2],t)},this)}}})},4810,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.FORMAT_BINARY="binary",n.FORMAT_TEXT_MAP="text_map",n.FORMAT_HTTP_HEADERS="http_headers",n.REFERENCE_CHILD_OF="child_of",n.REFERENCE_FOLLOWS_FROM="follows_from"},728684,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(){}return e.prototype.toTraceId=function(){return""},e.prototype.toSpanId=function(){return""},e}();n.SpanContext=r,n.default=r},614262,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e.r(912818),i=e.r(728684),a=e.r(772236);n.tracer=null,n.spanContext=null,n.span=null,n.initialize=function(){n.tracer=new a.default,n.span=new r.default,n.spanContext=new i.default}},912818,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e.r(614262),i=function(){function e(){}return e.prototype.context=function(){return this._context()},e.prototype.tracer=function(){return this._tracer()},e.prototype.setOperationName=function(e){return this._setOperationName(e),this},e.prototype.setBaggageItem=function(e,t){return this._setBaggageItem(e,t),this},e.prototype.getBaggageItem=function(e){return this._getBaggageItem(e)},e.prototype.setTag=function(e,t){var n;return this._addTags(((n={})[e]=t,n)),this},e.prototype.addTags=function(e){return this._addTags(e),this},e.prototype.log=function(e,t){return this._log(e,t),this},e.prototype.logEvent=function(e,t){return this._log({event:e,payload:t})},e.prototype.finish=function(e){this._finish(e)},e.prototype._context=function(){return r.spanContext},e.prototype._tracer=function(){return r.tracer},e.prototype._setOperationName=function(e){},e.prototype._setBaggageItem=function(e,t){},e.prototype._getBaggageItem=function(e){},e.prototype._addTags=function(e){},e.prototype._log=function(e,t){},e.prototype._finish=function(e){},e}();n.Span=i,n.default=i},3297,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e.r(912818);n.default=function(){function e(e,t){this._type=e,this._referencedContext=t instanceof r.default?t.context():t}return e.prototype.type=function(){return this._type},e.prototype.referencedContext=function(){return this._referencedContext},e}()},938916,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e.r(4810),i=e.r(3297),a=e.r(912818);n.childOf=function(e){return e instanceof a.default&&(e=e.context()),new i.default(r.REFERENCE_CHILD_OF,e)},n.followsFrom=function(e){return e instanceof a.default&&(e=e.context()),new i.default(r.REFERENCE_FOLLOWS_FROM,e)}},772236,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e.r(938916),i=e.r(614262),a=e.r(912818),o=function(){function e(){}return e.prototype.startSpan=function(e,t){if(void 0===t&&(t={}),t.childOf){var n=r.childOf(t.childOf);t.references?t.references.push(n):t.references=[n],delete t.childOf}return this._startSpan(e,t)},e.prototype.inject=function(e,t,n){return e instanceof a.default&&(e=e.context()),this._inject(e,t,n)},e.prototype.extract=function(e,t){return this._extract(e,t)},e.prototype._startSpan=function(e,t){return i.span},e.prototype._inject=function(e,t,n){},e.prototype._extract=function(e,t){return i.spanContext},e}();n.Tracer=o,n.default=o},844285,e=>{"use strict";e.i(247167);var t,n=e.i(843476);function r(e,t){this.name="AggregateError",this.errors=e,this.message=t||""}r.prototype=Error.prototype;var i=setTimeout;function a(e){return!!(e&&void 0!==e.length)}function o(){}function s(e){if(!(this instanceof s))throw TypeError("Promises must be constructed via new");if("function"!=typeof e)throw TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(e,this)}function c(e,t){for(;3===e._state;)e=e._value;0===e._state?e._deferreds.push(t):(e._handled=!0,s._immediateFn(function(){var n,r=1===e._state?t.onFulfilled:t.onRejected;if(null===r)return void(1===e._state?l:u)(t.promise,e._value);try{n=r(e._value)}catch(e){u(t.promise,e);return}l(t.promise,n)}))}function l(e,t){try{if(t===e)throw TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof s){e._state=3,e._value=t,d(e);return}if("function"==typeof n)return void f(function(){n.apply(t,arguments)},e)}e._state=1,e._value=t,d(e)}catch(t){u(e,t)}}function u(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&s._immediateFn(function(){e._handled||s._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)c(e,e._deferreds[t]);e._deferreds=null}function p(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function f(e,t){var n=!1;try{e(function(e){n||(n=!0,l(t,e))},function(e){n||(n=!0,u(t,e))})}catch(e){if(n)return;n=!0,u(t,e)}}s.prototype.catch=function(e){return this.then(null,e)},s.prototype.then=function(e,t){var n=new this.constructor(o);return c(this,new p(e,t,n)),n},s.prototype.finally=function(e){var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){return t.reject(n)})})},s.all=function(e){return new s(function(t,n){if(!a(e))return n(TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(e);
30if(0===r.length)return t([]);for(var i=r.length,o=0;o<r.length;o++)!function e(a,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var s=o.then;if("function"==typeof s)return void s.call(o,function(t){e(a,t)},n)}r[a]=o,0==--i&&t(r)}catch(e){n(e)}}(o,r[o])})},s.any=function(e){var t=this;return new t(function(n,i){if(!(e&&void 0!==e.length))return i(TypeError("Promise.any accepts an array"));var a=Array.prototype.slice.call(e);if(0===a.length)return i();for(var o=[],s=0;s<a.length;s++)try{t.resolve(a[s]).then(n).catch(function(e){o.push(e),o.length===a.length&&i(new r(o,"All promises were rejected"))})}catch(e){i(e)}})},s.allSettled=function(e){return new this(function(t,n){if(!(e&&void 0!==e.length))return n(TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);for(var i=r.length,a=0;a<r.length;a++)!function e(n,a){if(a&&("object"==typeof a||"function"==typeof a)){var o=a.then;if("function"==typeof o)return void o.call(a,function(t){e(n,t)},function(e){r[n]={status:"rejected",reason:e},0==--i&&t(r)})}r[n]={status:"fulfilled",value:a},0==--i&&t(r)}(a,r[a])})},s.resolve=function(e){return e&&"object"==typeof e&&e.constructor===s?e:new s(function(t){t(e)})},s.reject=function(e){return new s(function(t,n){n(e)})},s.race=function(e){return new s(function(t,n){if(!a(e))return n(TypeError("Promise.race accepts an array"));for(var r=0,i=e.length;r<i;r++)s.resolve(e[r]).then(t,n)})},s._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){i(e,0)},s._unhandledRejectionFn=function(e){"u">typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var h={};g?h=window:"u">typeof self&&(h=self);for(var m=("Promise"in h)?h.Promise:s,v=[].slice,g="u">typeof window,b=g&&"u">typeof performance?performance:{},y=[],x=0;x<256;++x)y[x]=(x+256).toString(16).substr(1);var w=new Uint8Array(16);function _(e){return(function(e){for(var t=[],n=0;n<e.length;n++)t.push(y[e[n]]);return t.join("")})("u">typeof crypto&&"function"==typeof crypto.getRandomValues?crypto.getRandomValues(w):"u">typeof msCrypto&&"function"==typeof msCrypto.getRandomValues?msCrypto.getRandomValues(w):w).substr(0,e)}function S(e,t,n){"function"==typeof e.setRequestHeader?e.setRequestHeader(t,n):e.headers&&"function"==typeof e.headers.append?e.headers.append(t,n):e[t]=n}function j(e,t){var n=!1;return"string"==typeof t?n=e===t:t&&"function"==typeof t.test?n=t.test(e):Array.isArray(t)&&t.forEach(function(t){n||(n=j(e,t))}),n}function k(e,t,n){if(n&&e){var r=A(e),i=typeof t;return void 0!=t&&"boolean"!==i&&"number"!==i&&(t=String(t)),n[r]=t,n}}function C(){return b.timing.fetchStart}function O(e){return e&&e.split("?")[0]}function E(e){return null!==e&&"object"==typeof e}function N(e,t,n){for(var r=0,i=t.length;r<i;++r){var a=t[r];if(E(a)||"function"==typeof a)for(var o=Object.keys(a),s=0,c=o.length;s<c;s++){var l=o[s],u=a[l];n&&E(u)?(E(e[l])||(e[l]=Array.isArray(u)?[]:{}),N(e[l],[u],!1)):e[l]=u}}return e}function T(){return N(Object.create(null),v.call(arguments),!1)}function I(){return N(Object.create(null),v.call(arguments),!0)}function L(e){return void 0===e}function M(){}function A(e){return e.replace(/[.*"]/g,"_")}function P(e,t){for(var n=null,r=0;r<e.length;r++){var i=e[r];t&&t(i.type)&&(!n||n._end<i._end)&&(n=i)}return n}function R(){return b.now()}function F(e){return"number"==typeof e&&e>=0?e:R()}function V(e,t){return L(t)||L(e)?null:parseInt(t-e)}function D(e){m.resolve().then(e)}function H(){return"function"==typeof b.getEntriesByType}function U(e){return"u">typeof PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.indexOf(e)>=0}function $(){return"interactionCount"in performance}function z(e){return e.redirectStart>0}var B=[["#","hash"],["?","query"],["/","path"],["@","auth",1],[NaN,"host",void 0,1]],q=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,W=function(){function e(e){var t,n=this.extractProtocol(e||""),r=n.protocol,i=n.address,a=n.slashes,o=!r&&!a,s=this.getLocation(),c=B.slice();i=i.replace("\\","/"),a||(c[2]=[NaN,"path"]);for(var l=0;l<c.length;l++){var u=c[l],d=u[0],p=u[1];if("string"==typeof d){if(~(t=i.indexOf(d))){var f=u[2];f?(t=Math.max(t,i.lastIndexOf(d)),this[p]=i.slice(0,t),i=i.slice(t+f)):(this[p]=i.slice(t),i=i.slice(0,t))}}else this[p]=i,i="";this[p]=this[p]||o&&u[3]&&s[p]||"",u[3]&&(this[p]=this[p].toLowerCase())}if(o&&"/"!==this.path.charAt(0)&&(this.path="/"+this.path),this.relative=o,this.protocol=r||s.protocol,this.hostname=this.host,this.port="",/:\d+$/.test(this.host)){var h=this.host.split(":"),m=h.pop(),v=h.join(":");!function(e,t){switch(t){case"http:":return"80"===e;case"https:":return"443"===e}return!0}(m,this.protocol)?this.port=m:this.host=v,this.hostname=v}
30this.origin=this.protocol&&this.host&&"file:"!==this.protocol?this.protocol+"//"+this.host:"null",this.href=this.toString()}var t=e.prototype;return t.toString=function(){var e=this.protocol;if(e+="//",this.auth){var t="[REDACTED]",n=this.auth.split(":");e+=(n[0]?t:"")+(n[1]?":"+t:"")+"@"}return e+=this.host,e+=this.path,e+=this.query,e+=this.hash},t.getLocation=function(){var e={};return g&&(e=window),e.location},t.extractProtocol=function(e){var t=q.exec(e);return{protocol:t[1]?t[1].toLowerCase():"",slashes:!!t[2],address:t[3]}},e}(),G="schedule",K="invoke",Y="addEventListener",X=["link","css","script","img","xmlhttprequest","fetch","beacon","iframe"],J="page-load",Q="custom",Z="user-interaction",ee="http-request",et="temporary",en="Unknown",er="page-exit",ei=[J,"route-change",Z,ee,Q,et],ea="transaction:end",eo="config:change",es="queue:flush",ec="queue:add_transaction",el="transaction:ignore",eu="xmlhttprequest",ed="fetch",ep="history",ef="eventtarget",eh="click",em="error",ev=":after",eg="elastic_apm_config",eb="longtask",ey="largest-contentful-paint",ex="first-input",ew="layout-shift",e_="errors",eS="transactions",ej="ConfigService",ek="LoggingService",eC="TransactionService",eO="ApmServer",eE="PerformanceMonitoring",eN="ErrorLogging",eT=".truncated",eI=["tags"];function eL(e){var t=e.transferSize,n=e.encodedBodySize,r=e.decodedBodySize,i=e.serverTiming,a={transfer_size:t,encoded_body_size:n,decoded_body_size:r},o=function(e){void 0===e&&(e=[]);for(var t=[],n=0;n<e.length;n++){var r=e[n],i=r.name,a=r.duration,o=r.description,s=i;o&&(s+=";desc="+o),a&&(s+=";dur="+a),t.push(s)}return t.join(", ")}(i);return o&&(a.headers={"server-timing":o}),a}function eM(e){var t,n=e.port,r=e.protocol,i=e.hostname,a=(""===(t=n)&&(t="http:"===r?"80":"https:"===r?"443":""),t),o=91===i.charCodeAt(0)&&93===i.charCodeAt(i.length-1),s=i;return o&&(s=i.slice(1,-1)),{service:{resource:i+":"+a,name:"",type:""},address:s,port:Number(a)}}function eA(){return{page:{referer:document.referrer,url:location.href}}}var eP={service:{name:[1024,!0],version:!0,agent:{version:[1024,!0]},environment:!0},labels:{"*":!0}},eR={"*":!0,headers:{"*":!0}},eF={user:{id:!0,email:!0,username:!0},tags:{"*":!0},http:{response:eR},destination:{address:[1024],service:{"*":[1024,!0]}},response:eR},eV={name:[1024,!0],type:[1024,!0],id:[1024,!0],trace_id:[1024,!0],parent_id:[1024,!0],transaction_id:[1024,!0],subtype:!0,action:!0,context:eF},eD={name:!0,parent_id:!0,type:[1024,!0],id:[1024,!0],trace_id:[1024,!0],span_count:{started:[1024,!0]},context:eF},eH={id:[1024,!0],trace_id:!0,transaction_id:!0,parent_id:!0,culprit:!0,exception:{type:!0},transaction:{type:!0},context:eF};function eU(e){return null==e||""===e||void 0===e}function e$(e,t,n){var r,i,a,o,s=(r=e[t],(void 0===(i=n[0])&&(i=1024),void 0===(a=n[1])&&(a=!1),void 0===o&&(o="N/A"),a&&eU(r)&&(r=o),"string"==typeof r)?r.substring(0,i):r);eU(s)?delete e[t]:e[t]=s}function ez(e,t,n){void 0===e&&(e={}),void 0===n&&(n=t);for(var r=Object.keys(e),i=[],a=0;a<r.length;a++)!function(){var o=r[a],s=!0===e[o]?i:e[o];Array.isArray(s)?"*"===o?Object.keys(n).forEach(function(e){return e$(n,e,s)}):e$(n,o,s):ez(s,t,n[o])}();return t}var eB=e.i(813392),eq=["tags"],eW=["stack","message"],eG="Unhandled promise rejection: ",eK=function(){function e(e,t,n){this._apmServer=e,this._configService=t,this._transactionService=n}var t=e.prototype;return t.createErrorDataModel=function(e,t){var n=(function(e,t){var n,r=t.error,i=t.filename,a=t.lineno,o=t.colno,s=[];if(r)try{s=e.parse(r)}catch(e){}return 0!==(n=s).length&&(1!==n.length||"lineNumber"in n[0])||(s=[{fileName:i,lineNumber:a,columnNumber:o}]),s.map(function(e){var t,n;return e.functionName&&(e.functionName=(n=(t=(t=(t=(n=(t=e.functionName).split("/")).length>1?["Object",n[n.length-1]].join("."):n[0]).replace(/.<$/gi,".<anonymous>")).replace(/^Anonymous function$/,"<anonymous>")).split(".")).length>1?n[n.length-1]:n[0]),e}).map(function(e){var t,n,r,i=e.fileName,a=e.lineNumber,o=e.columnNumber,s=e.functionName;if(!i&&!a||!o&&!a)return{};var c=(void 0===(t=i)&&(t=""),"<anonymous>"===t&&(t=""),t),l=(n=c,r=window.location.origin||window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""),n.indexOf(r)>-1&&(n=n.replace(r+"/","")),n);return c&&0===window.location.href.indexOf(c)&&(l="(inline script)"),{abs_path:i,filename:l,function:void 0===s?"<anonymous>":s,lineno:a,colno:o}})})(eB.default,e).filter(function(e){var t=e.filename,n=e.lineno;return void 0!==t&&void 0!==n}),r="(inline script)",i=n[n.length-1];i&&i.filename&&(r=i.filename);var a=e.message,o=e.error,s=a,c="",l={};if(o&&"object"==typeof o){s=s||o.message,c=o.name;var u=function(e){var t=!1,n={};if(Object.keys(e).forEach(function(r){if(!(eW.indexOf(r)>=0)){var i=e[r];if(null!=i&&"function"!=typeof i){if("object"==typeof i){if("function"!=typeof i.toISOString)return;i=i.toISOString()}n[r]=i,t=!0}}}),t)return n}(o);u&&(l.custom=u)}if(t&&t.labels){var d=Object.keys(t.labels);l.tags={},d.forEach(function(e){return k(e,t.labels[e],l.tags)})}!c&&s&&s.indexOf(":")>-1&&(c=s.split(":")[0]);var p=this._transactionService.getCurrentTransaction(),f=p?p.context:{}
30,h=this._configService.get("context"),m=(h.tags,function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(h,eq)),v=I({},eA(),f,m,l),g={id:_(),culprit:r,exception:{message:s,stacktrace:n,type:c},context:v};return p&&(g=T(g,{trace_id:p.traceId,parent_id:p.id,transaction_id:p.id,transaction:{type:p.type,sampled:p.sampled}})),ez(eH,g)},t.logErrorEvent=function(e,t){if(void 0!==e){var n=this.createErrorDataModel(e,t);void 0!==n.exception.message&&this._apmServer.addError(n)}},t.registerListeners=function(){var e=this;window.addEventListener("error",function(t){return e.logErrorEvent(t)}),window.addEventListener("unhandledrejection",function(t){return e.logPromiseEvent(t)})},t.logPromiseEvent=function(e){var t,n=e.reason;if(null==n&&(n="<no reason specified>"),"string"==typeof n.message){var r=n.name?n.name+": ":"";t={error:n,message:eG+r+n.message}}else t=this._parseRejectReason(n);this.logErrorEvent(t)},t.logError=function(e,t){var n={};return"string"==typeof e?n.message=e:n.error=e,this.logErrorEvent(n,t)},t._parseRejectReason=function(e){var t={message:eG};if(Array.isArray(e))t.message+="<object>";else if("object"==typeof e)try{t.message+=JSON.stringify(e),t.error=e}catch(e){t.message+="<object>"}else"function"==typeof e?t.message+="<function>":t.message+=e;return t},e}(),eY=function(){function e(e,t){void 0===t&&(t={}),this.onFlush=e,this.items=[],this.queueLimit=t.queueLimit||-1,this.flushInterval=t.flushInterval||0,this.timeoutId=void 0}var t=e.prototype;return t._setTimer=function(){var e=this;this.timeoutId=setTimeout(function(){return e.flush()},this.flushInterval)},t._clear=function(){void 0!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),this.items=[]},t.flush=function(){this.onFlush(this.items),this._clear()},t.add=function(e){this.items.push(e),-1!==this.queueLimit&&this.items.length>=this.queueLimit?this.flush():void 0===this.timeoutId&&this._setTimer()},e}(),eX=function(){function e(){}return e.stringify=function(e){return JSON.stringify(e)+"\n"},e}(),eJ=["fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","requestStart","responseStart","responseEnd","domLoading","domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","loadEventStart","loadEventEnd"],eQ=["fs","ls","le","cs","ce","qs","rs","re","dl","di","ds","de","dc","es","ee"];function eZ(e){return{ts:e.transfer_size,ebs:e.encoded_body_size,dbs:e.decoded_body_size}}function e0(e){if(!e)return null;var t,n,r,i,a,o={},s=e.page,c=e.http,l=e.response,u=e.destination,d=e.user,p=e.custom,f=e.tags;if(s&&(o.p={rf:s.referer,url:s.url}),c&&(t={},n=c.method,r=c.status_code,i=c.url,a=c.response,t.url=i,n&&(t.mt=n),r&&(t.sc=r),a&&(t.r=eZ(a)),o.h=t),l&&(o.r=eZ(l)),u){var h=u.service;o.dt={se:{n:h.name,t:h.type,rc:h.resource},ad:u.address,po:u.port}}return d&&(o.u={id:d.id,un:d.username,em:d.email}),p&&(o.cu=p),f&&(o.g=f),o}var e1={bootstrapTime:null,lastHiddenStart:Number.MIN_SAFE_INTEGER};function e2(e){return 0!==e&&(!(e>399)||!(e<600))}function e4(){return(e4=Object.assign.bind()).apply(null,arguments)}function e5(){return"function"==typeof window.fetch&&"function"==typeof window.Request}var e3={fetchInProgress:!1};function e6(e){return"__apm_symbol__"+e}function e8(e,t,n){for(var r,i=e;i&&!i.hasOwnProperty(t);)i=Object.getPrototypeOf(i);!i&&e[t]&&(i=e);var a=e6(t);if(i&&!(r=i[a])&&(r=i[a]=i[t],!(o=i&&Object.getOwnPropertyDescriptor(i,t))||!1!==o.writable&&("function"!=typeof o.get||void 0!==o.set))){var o,s,c,l=n(r,a,t);i[t]=function(){return l(this,arguments)},s=i[t],c=r,s[e6("OriginalDelegate")]=c}return r}var e7=e6("xhrIgnore"),e9=e6("xhrSync"),te=e6("xhrURL"),tt=e6("xhrMethod");function tn(e,t,n){var r=n.timeout,i=void 0===r?HTTP_REQUEST_TIMEOUT:r,a=n.payload,o=n.headers,s=n.beforeSend,c=n.sendCredentials;return new m(function(n,r){var l=new window.XMLHttpRequest;if(l[e7]=!0,l.open(e,t,!0),l.timeout=i,l.withCredentials=c,o)for(var u in o)o.hasOwnProperty(u)&&l.setRequestHeader(u,o[u]);l.onreadystatechange=function(){if(4===l.readyState){var e=l.status,i=l.responseText;e2(e)?n(l):r({url:t,status:e,responseText:i})}},l.onerror=function(){r({url:t,status:l.status,responseText:l.responseText})};var d=!0;"function"==typeof s&&(d=s({url:t,method:e,headers:o,payload:a,xhr:l})),d?l.send(a):r({url:t,status:0,responseText:"Request rejected by user configuration."})})}var tr=function(){function e(e,t){this._configService=e,this._loggingService=t,this.queue=void 0,this.throttleEvents=M}var t=e.prototype;return t.init=function(){var e=this,t=this._configService.get("queueLimit"),n=this._configService.get("flushInterval"),r=this._configService.get("eventsLimit");this.queue=new eY(function(t){var n=e.sendEvents(t);n&&n.catch(function(t){e._loggingService.warn("Failed sending events!",e._constructError(t))})},{queueLimit:t,flushInterval:n}),this.throttleEvents=function(e,t,n){var r,i=this,a=n.limit,o=n.interval,s=0;return function(){return(s++,void 0===r&&(r=setTimeout(function(){s=0,r=void 0},o)),s>a&&"function"==typeof t)?t.apply(i,arguments):e.apply(i,arguments)}}(this.queue.add.bind(this.queue),function(){return e._loggingService.warn("Dropped events due to throttling!")},{limit:r,interval:6e4}),this._configService.observeEvent(es,function(){e.queue.flush()})},t._postJson=function(e,t){var n,r,i=this,a={payload:t,headers:{"Content-Type":"application/x-ndjson"},beforeSend:this._configService.get("apmRequest")};return(void 0===n&&(n="gzip"),r="function"==typeof CompressionStream,new m(function(e){if(!r||function(){var e="_elastic_inspect_beacon_";if(null!=sessionStorage.getItem(e))return!0;
30if(!window.URL||!window.URLSearchParams)return!1;try{var t=new URL(window.location.href).searchParams.has(e);return t&&sessionStorage.setItem(e,!0),t}catch(e){}return!1}())return e(a);var t=a.payload,i=a.headers,o=a.beforeSend;return new Response(new Blob([t]).stream().pipeThrough(new CompressionStream(n))).blob().then(function(t){return i["Content-Encoding"]=n,e({payload:t,headers:i,beforeSend:o})})})).catch(function(e){return a}).then(function(t){return i._makeHttpRequest("POST",e,t)}).then(function(e){return e.responseText})},t._constructError=function(e){var t=e.url,n=e.status;return(e.responseText,void 0===n)?e:Error(t+" HTTP status: "+n)},t._makeHttpRequest=function(e,t,n){var r=void 0===n?{}:n,i=r.timeout,a=void 0===i?1e4:i,o=r.payload,s=r.headers,c=r.beforeSend,l=this._configService.get("sendCredentials");return!c&&function(e,t){if(!e5()||!("keepalive"in new Request("")))return!1;var n,r=(n=t)?n instanceof Blob?n.size:new Blob([n]).size:0;return"POST"===e&&r<6e4}(e,o)?(function(e,t,n){var r,i=n.keepalive,a=n.timeout,o=n.payload,s=n.headers,c=n.sendCredentials,l={};if("function"==typeof AbortController){var u=new AbortController;l.signal=u.signal,setTimeout(function(){return u.abort()},void 0===a?1e4:a)}return window.fetch(t,e4({body:o,headers:s,method:e,keepalive:void 0!==i&&i,credentials:c?"include":"omit"},l)).then(function(e){return(r=e).text()}).then(function(e){var n={url:t,status:r.status,responseText:e};if(!e2(r.status))throw n;return n})})(e,t,{keepalive:!0,timeout:a,payload:o,headers:s,sendCredentials:l}).catch(function(n){if(n instanceof TypeError)return tn(e,t,{timeout:a,payload:o,headers:s,beforeSend:c,sendCredentials:l});throw n}):tn(e,t,{timeout:a,payload:o,headers:s,beforeSend:c,sendCredentials:l})},t.fetchConfig=function(e,t){var n=this,r=this.getEndpoints().configEndpoint;if(!e)return m.reject("serviceName is required for fetching central config.");r+="?service.name="+e,t&&(r+="&service.environment="+t);var i=this._configService.getLocalConfig();i&&(r+="&ifnonematch="+i.etag);var a=this._configService.get("apmRequest");return this._makeHttpRequest("GET",r,{timeout:5e3,beforeSend:a}).then(function(e){var t=e.status,r=e.responseText;if(304===t)return i;var a=JSON.parse(r),o=e.getResponseHeader("etag");return o&&(a.etag=o.replace(/["]/g,""),n._configService.setLocalConfig(a,!0)),a}).catch(function(e){var t=n._constructError(e);return m.reject(t)})},t.createMetaData=function(){var e=this._configService;return ez(eP,{service:{name:e.get("serviceName"),version:e.get("serviceVersion"),agent:{name:"rum-js",version:e.version},language:{name:"javascript"},environment:e.get("environment")},labels:e.get("context.tags")})},t.addError=function(e){var t;this.throttleEvents(((t={})[e_]=e,t))},t.addTransaction=function(e){var t;this.throttleEvents(((t={})[eS]=e,t))},t.ndjsonErrors=function(e,t){var n=t?"e":"error";return e.map(function(e){var r,i,a,o,s;return eX.stringify(((r={})[n]=t?(a=(i=e).exception,o={id:i.id,cl:i.culprit,ex:{mg:a.message,st:a.stacktrace.map(function(e){return{ap:e.abs_path,f:e.filename,fn:e.function,li:e.lineno,co:e.colno}}),t:i.type},c:e0(i.context)},(s=i.transaction)&&(o.tid=i.trace_id,o.pid=i.parent_id,o.xid=i.transaction_id,o.x={t:s.type,sm:s.sampled}),o):e,r))})},t.ndjsonMetricsets=function(e){return e.map(function(e){return eX.stringify({metricset:e})}).join("")},t.ndjsonTransactions=function(e,t){var n=this,r=t?"x":"transaction";return e.map(function(e){var i,a="",o="";return!t&&(e.spans&&(a=e.spans.map(function(e){return eX.stringify({span:e})}).join(""),delete e.spans),e.breakdown&&(o=n.ndjsonMetricsets(e.breakdown),delete e.breakdown)),eX.stringify(((i={})[r]=t?function(e){var t=e.spans.map(function(t){var n={id:t.id,n:t.name,t:t.type,s:t.start,d:t.duration,c:e0(t.context),o:t.outcome,sr:t.sample_rate};return t.parent_id!==e.id&&(n.pid=t.parent_id),!0===t.sync&&(n.sy=!0),t.subtype&&(n.su=t.subtype),t.action&&(n.ac=t.action),n}),n={id:e.id,pid:e.parent_id,tid:e.trace_id,n:e.name,t:e.type,d:e.duration,c:e0(e.context),k:function(e){if(!e)return null;var t=function(e){if(!e)return null;var t={};return eQ.forEach(function(n,r){var i=eJ[r];t[n]=e[i]}),t}(e.navigationTiming);return{nt:t,a:function(e,t){var n={};if(e&&(n={fb:e.rs,di:e.di,dc:e.dc}),t){var r=t.firstContentfulPaint,i=t.largestContentfulPaint;r&&(n.fp=r),i&&(n.lp=i)}return 0===Object.keys(n).length?null:n}(t,e.agent)}}(e.marks),me:e.breakdown.map(function(e){var t=e.span,n=e.samples;return{y:{t:t.type},sa:{ysc:{v:n["span.self_time.count"].value},yss:{v:n["span.self_time.sum.us"].value}}}}),y:t,yc:{sd:t.length},sm:e.sampled,sr:e.sample_rate,o:e.outcome};if(e.experience){var r=e.experience;n.exp={cls:r.cls,fid:r.fid,tbt:r.tbt,lt:r.longtask}}if(e.session){var i=e.session;n.ses={id:i.id,seq:i.sequence}}return n}(e):e,i))+a+o})},t.sendEvents=function(e){if(0!==e.length){for(var t,n,r=[],i=[],a=0;a<e.length;a++){var o=e[a];o[eS]&&r.push(o[eS]),o[e_]&&i.push(o[e_])}if(0!==r.length||0!==i.length){var s,c,l,u,d=this._configService,p=((t={})[eS]=r,t[e_]=i,t),f=d.applyFilters(p);if(!f)return void this._loggingService.warn("Dropped payload due to filtering!");var h=d.get("apiVersion")>2,m=[],v=this.createMetaData(),g=h?"m":"metadata";m.push(eX.stringify(((n={})[g]=h?(s=v.service,c=v.labels,l=s.agent,u=s.language,{se:{n:s.name,ve:s.version,a:{n:l.name,ve:l.version},la:{n:u.name},en:s.environment},l:c}):v,n)));var b=(m=m.concat(this.ndjsonErrors(f[e_],h),this.ndjsonTransactions(f[eS],h))).join(""),y=this.getEndpoints().intakeEndpoint;return this._postJson(y,b)}}},t.getEndpoints=function(){var e=this._configService.get("serverUrl"),t=this._configService.get("apiVersion");return{intakeEndpoint:e+(this._configService.get("serverUrlPrefix")||"/intake/v"+t+"/rum/events"),configEndpoint:e+"/config/v1/rum/agents"}},e}(),ti=function(){function e(){this.observers={}}var t=e.prototype;return t.observe=function(e,t){var n=this;if("function"==typeof t)return this.observers[e]||(this.observers[e]=[]),this.observers[e].push(t),function(){var r=n.observers[e].indexOf(t);r>-1&&n.observers[e].splice(r,1)}}
30,t.sendOnly=function(e,t){var n=this.observers[e];n&&n.forEach(function(e){try{e.apply(void 0,t)}catch(e){console.log(e,e.stack)}})},t.send=function(e,t){this.sendOnly(e+":before",t),this.sendOnly(e,t),this.sendOnly(e+ev,t)},e}();function ta(){return(ta=Object.assign.bind()).apply(null,arguments)}var to=function(){function e(){this.config={serviceName:"",serviceVersion:"",environment:"",serverUrl:"http://localhost:8200",serverUrlPrefix:"",active:!0,instrument:!0,disableInstrumentations:[],logLevel:"warn",breakdownMetrics:!1,ignoreTransactions:[],eventsLimit:80,queueLimit:-1,flushInterval:500,distributedTracing:!0,distributedTracingOrigins:[],distributedTracingHeaderName:"traceparent",pageLoadTraceId:"",pageLoadSpanId:"",pageLoadSampled:!1,pageLoadParentId:"",pageLoadTransactionName:"",propagateTracestate:!1,transactionSampleRate:1,centralConfig:!1,monitorLongtasks:!0,apiVersion:2,context:{},session:!1,apmRequest:null,sendCredentials:!1,reportTransactionsWithoutSpans:!1},this.events=new ti,this.filters=[],this.version=""}var t=e.prototype;return t.init=function(){var e=function(e){if(!e)return{};for(var t={},n=/^data-([\w-]+)$/,r=e.attributes,i=0;i<r.length;i++){var a=r[i];n.test(a.nodeName)&&(t[a.nodeName.match(n)[1].split("-").map(function(e,t){return t>0?e.charAt(0).toUpperCase()+e.substring(1):e}).join("")]=a.value||a.nodeValue)}return t}(function(){if("u">typeof document){var e=document.currentScript;if(!e){if("u">typeof document)for(var t=document.getElementsByTagName("script"),n=0,r=t.length;n<r;n++){var i=t[n];if(i.src.indexOf("elastic")>0)return i}return}return e}}());this.setConfig(e)},t.setVersion=function(e){this.version=e},t.addFilter=function(e){if("function"!=typeof e)throw Error("Argument to must be function");this.filters.push(e)},t.applyFilters=function(e){try{for(var t=0;t<this.filters.length;t++)if(!(e=this.filters[t](e)))return;if(e.transactions=e.transactions.filter(function(e){return e}),e.errors=e.errors.filter(function(e){return e}),0===e.transactions.length&&0===e.errors.length)return}catch(e){return}return e},t.get=function(e){return e.split(".").reduce(function(e,t){return e&&e[t]},this.config)},t.setUserContext=function(e){void 0===e&&(e={});var t={},n=e,r=n.id,i=n.username,a=n.email;("number"==typeof r||"string"==typeof r)&&(t.id=r),"string"==typeof i&&(t.username=i),"string"==typeof a&&(t.email=a),this.config.context.user=T(this.config.context.user||{},t)},t.setCustomContext=function(e){void 0===e&&(e={}),this.config.context.custom=T(this.config.context.custom||{},e)},t.addLabels=function(e){var t=this;this.config.context.tags||(this.config.context.tags={}),Object.keys(e).forEach(function(n){return k(n,e[n],t.config.context.tags)})},t.setConfig=function(e){void 0===e&&(e={});var t=e,n=t.transactionSampleRate,r=t.serverUrl;r&&(e.serverUrl=r.replace(/\/+$/,"")),L(n)||(n<1e-4&&n>0&&(n=1e-4),e.transactionSampleRate=Math.round(1e4*n)/1e4),this.config=I(this.config,e),this.events.send(eo,[this.config])},t.validate=function(e){void 0===e&&(e={});var t=["serviceName","serverUrl"],n=Object.keys(this.config),r={missing:[],invalid:[],unknown:[]};Object.keys(e).forEach(function(i){-1===t.indexOf(i)||e[i]||r.missing.push(i),-1===n.indexOf(i)&&r.unknown.push(i)}),e.serviceName&&!/^[a-zA-Z0-9 _-]+$/.test(e.serviceName)&&r.invalid.push({key:"serviceName",value:e.serviceName,allowed:"a-z, A-Z, 0-9, _, -, <space>"});var i=e.transactionSampleRate;return void 0!==i&&("number"!=typeof i||isNaN(i)||i<0||i>1)&&r.invalid.push({key:"transactionSampleRate",value:i,allowed:"Number between 0 and 1"}),r},t.getLocalConfig=function(){var e=sessionStorage;this.config.session&&(e=localStorage);var t=e.getItem(eg);if(t)return JSON.parse(t)},t.setLocalConfig=function(e,t){if(e){if(t){var n=this.getLocalConfig();e=ta({},n,e)}var r=sessionStorage;this.config.session&&(r=localStorage),r.setItem(eg,JSON.stringify(e))}},t.dispatchEvent=function(e,t){this.events.send(e,t)},t.observeEvent=function(e,t){return this.events.observe(e,t)},e}(),ts=function(){function e(e){void 0===e&&(e={}),this.levels=["trace","debug","info","warn","error"],this.level=e.level||"warn",this.prefix=e.prefix||"",this.resetLogMethods()}var t=e.prototype;return t.shouldLog=function(e){return this.levels.indexOf(e)>=this.levels.indexOf(this.level)},t.setLevel=function(e){e!==this.level&&(this.level=e,this.resetLogMethods())},t.resetLogMethods=function(){var e=this;
30this.levels.forEach(function(t){e[t]=e.shouldLog(t)?function(){var e=t;("trace"===t||"debug"===t)&&(e="info");var n=arguments;if(n[0]=this.prefix+n[0],console){var r=console[e]||console.log;"function"==typeof r&&r.apply(console,n)}}:M})},e}(),tc=((t={})[ej]=function(){return new to},t[ek]=function(){return new ts({prefix:"[Elastic APM] "})},t[eO]=function(e){var t=e.getService([ej,ek]);return new tr(t[0],t[1])},t),tl=function(){function e(){this.instances={},this.initialized=!1}var t=e.prototype;return t.init=function(){if(!this.initialized){this.initialized=!0;var e=this.getService(ej);e.init();var t=this.getService([ek,eO]),n=t[0],r=t[1];e.events.observe(eo,function(){var t=e.get("logLevel");n.setLevel(t)}),r.init()}},t.getService=function(e){var t=this;return"string"==typeof e?(this.instances[e]||"function"==typeof tc[e]&&(this.instances[e]=tc[e](this)),this.instances[e]):Array.isArray(e)?e.map(function(e){return t.getService(e)}):void 0},e}(),tu=new ti,td=!1,tp=function(){function e(e,t,n,r){this._apmServer=e,this._configService=t,this._logginService=n,this._transactionService=r}var t=e.prototype;return t.init=function(e){var t=this;void 0===e&&(e={}),this._configService.events.observe(ea+ev,function(e){var n=t.createTransactionPayload(e);n&&(t._apmServer.addTransaction(n),t._configService.dispatchEvent(ec))}),e[ep]&&tu.observe(ep,this.getHistorySub()),e[eu]&&tu.observe(eu,this.getXHRSub()),e[ed]&&tu.observe(ed,this.getFetchSub())},t.getHistorySub=function(){var e=this._transactionService;return function(t,n){n.source===ep&&t===K&&e.startTransaction(n.data.title,"route-change",{managed:!0,canReuse:!0})}},t.getXHRSub=function(){var e=this;return function(t,n){n.source!==eu||e3.fetchInProgress||e.processAPICalls(t,n)}},t.getFetchSub=function(){var e=this;return function(t,n){n.source===ed&&e.processAPICalls(t,n)}},t.processAPICalls=function(e,t){var n=this._configService,r=this._transactionService;if(t.data&&t.data.url){var i=this._apmServer.getEndpoints();if(Object.keys(i).some(function(e){return -1!==t.data.url.indexOf(i[e])}))return}if(e===G&&t.data){var a=t.data,o=new W(a.url),s=a.method+" "+(o.relative?o.path:O(o.href));r.getCurrentTransaction()||r.startTransaction(s,ee,{managed:!0});var c=r.startSpan(s,"external.http",{blocking:!0});if(!c)return;var l=n.get("distributedTracing"),u=n.get("distributedTracingOrigins"),d=new W(window.location.href),p=j(o.origin,d.origin)||j(o.origin,u),f=a.target;l&&p&&f&&(this.injectDtHeader(c,f),n.get("propagateTracestate")&&this.injectTSHeader(c,f)),a.sync&&(c.sync=a.sync),a.span=c}else if(e===K){var h=t.data;if(h&&h.span){var m,v,g=h.span,b=h.response,y=h.target;m=b?b.status:y.status,g.outcome=v="abort"==h.status||h.aborted?"unknown":m>=400||0==m?"failure":"success";var x=r.getCurrentTransaction();x&&x.type===ee&&(x.outcome=v),r.endSpan(g,h)}}},t.injectDtHeader=function(e,t){var n=this._configService.get("distributedTracingHeaderName"),r=function(e){if(e&&e.traceId&&e.id&&e.parentId){var t=e.sampled?"01":"00",n=e.sampled?e.id:e.parentId;return"00-"+e.traceId+"-"+n+"-"+t}}(e);/^[\da-f]{2}-[\da-f]{32}-[\da-f]{16}-[\da-f]{2}$/.test(r)&&"00000000000000000000000000000000"!==r.slice(3,35)&&"0000000000000000"!==r.slice(36,52)&&r&&n&&S(t,n,r)},t.injectTSHeader=function(e,t){var n=function(e){var t=e.sampleRate;if("number"==typeof t&&!(String(t).length>
30256))return"es=s:"+t}(e);n&&S(t,"tracestate",n)},t.extractDtHeader=function(e){var t=this._configService.get("distributedTracingHeaderName");if(e){var n=e[t],r=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})$/.exec(n);if(r){var i=r[4];return{traceId:r[2],id:r[3],sampled:"00"!==i}}return}},t.filterTransaction=function(e){var t=e.duration();if(!t)return!1;if(e.isManaged()){if(t>6e4)return!1;var n=this._configService.get("reportTransactionsWithoutSpans");if(e.sampled&&0===e.spans.length&&!n)return!1}return!0},t.createTransactionDataModel=function(e){var t=e._start,n=e.spans.map(function(n){return ez(eV,{id:n.id,transaction_id:e.id,parent_id:n.parentId||e.id,trace_id:e.traceId,name:n.name,type:n.type,subtype:n.subtype,action:n.action,sync:n.sync,start:parseInt(n._start-t),duration:n.duration(),context:n.context,outcome:n.outcome,sample_rate:n.sampleRate})});return ez(eD,{id:e.id,parent_id:e.parentId,trace_id:e.traceId,session:e.session,name:e.name,type:e.type,duration:e.duration(),spans:n,context:e.context,marks:e.marks,breakdown:e.breakdownTimings,span_count:{started:n.length},sampled:e.sampled,sample_rate:e.sampleRate,experience:e.experience,outcome:e.outcome})},t.createTransactionPayload=function(e){var t=function(e){if(e.sampled){var t=e.spans.filter(function(t){return t.duration()>0&&t._start>=e._start&&t._end<=e._end});if(e.isManaged()){var n,r,i=e.duration();t.sort(function(e,t){return e._start-t._start}),n=[],r=1,t.forEach(function(e,a){if(0===n.length)n.push(e);else{var o=n[n.length-1],s=o.type===e.type&&o.subtype===e.subtype&&o.action===e.action&&o.name===e.name&&e.duration()/i<.05&&(e._start-o._end)/i<.05,c=t.length===a+1;s&&(r++,o._end=e._end),r>1&&(!s||c)&&(o.name=r+"x "+o.name,r=1),s||n.push(e)}}),e.spans=n}else e.spans=t}else e.resetFields();return e}(e);if(this.filterTransaction(t))return this.createTransactionDataModel(e);this._configService.dispatchEvent(el)},e}(),tf=function(){function e(e,t,n){void 0===n&&(n={}),e||(e=en),t||(t=Q),this.name=e,this.type=t,this.options=n,this.id=n.id||_(16),this.traceId=n.traceId,this.sampled=n.sampled,this.sampleRate=n.sampleRate,this.timestamp=n.timestamp,this._start=F(n.startTime),this._end=void 0,this.ended=!1,this.outcome=void 0,this.onEnd=n.onEnd}var t=e.prototype;return t.ensureContext=function(){this.context||(this.context={})},t.addLabels=function(e){this.ensureContext();var t=this.context;t.tags||(t.tags={}),Object.keys(e).forEach(function(n){return k(n,e[n],t.tags)})},t.addContext=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];0!==t.length&&(this.ensureContext(),this.context=I.apply(void 0,[this.context].concat(t)))},t.end=function(e){this.ended||(this.ended=!0,this._end=F(e),this.callOnEnd())},t.callOnEnd=function(){"function"==typeof this.onEnd&&this.onEnd(this)},t.duration=function(){return V(this._start,this._end)},e}();function th(e,t){return(th=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var tm=function(e){function t(t,n,r){var i;if((i=e.call(this,t,n,r)||this).parentId=i.options.parentId,i.subtype=void 0,i.action=void 0,-1!==i.type.indexOf(".")){var a=i.type.split(".",3);i.type=a[0],i.subtype=a[1],i.action=a[2]}return i.sync=i.options.sync,i}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,th(t,e),t.prototype.end=function(t,n){e.prototype.end.call(this,t),function(e,t){if(t){var n,r,i,a,o,s,c,l,u,d,p,f;switch(e.type){case"external":i=t.url,a=t.method,o=t.target,s=t.response,l=eM(c=new W(i)),u={http:{method:a,url:c.href},destination:l},o&&void 0!==o.status?r=o.status:s&&(r=s.status),u.http.status_code=r,n=u;break;case"resource":d=t.entry,f=eM(new W(p=t.url)),n={http:{url:p,response:eL(d)},destination:f};break;case"hard-navigation":n={destination:eM(new W(t.url))}}e.addContext(n)}}(this,n)},t}(tf),tv=[["domainLookupStart","domainLookupEnd","DNS"],["connectStart","connectEnd","TCP"],["requestStart","responseStart","Request"],["responseStart","responseEnd","Re
30sponse"],["domLoading","domComplete","Processing"],["loadEventStart","loadEventEnd","Load"]];function tg(e,t){var n=t.details,r=t.count;return{transaction:e,span:n,samples:{"span.self_time.count":{value:void 0===r?1:r},"span.self_time.sum.us":{value:1e3*t.duration}}}}function tb(e,t){return(tb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ty=function(e){function t(t,n,r){var i;return(i=e.call(this,t,n,r)||this).traceId=_(),i.marks=void 0,i.spans=[],i._activeSpans={},i._activeTasks=new Set,i.blocked=!1,i.captureTimings=!1,i.breakdownTimings=[],i.sampleRate=i.options.transactionSampleRate,i.sampled=Math.random()<=i.sampleRate,i}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,tb(t,e);var n=t.prototype;return n.addMarks=function(e){this.marks=I(this.marks||{},e)},n.mark=function(e){var t=A(e),n=R()-this._start,r={};r[t]=n,this.addMarks({custom:r})},n.canReuse=function(){var e=this.options.reuseThreshold||5e3;return!!this.options.canReuse&&!this.ended&&R()-this._start<e},n.redefine=function(e,t,n){e&&(this.name=e),t&&(this.type=t),n&&(this.options.reuseThreshold=n.reuseThreshold,this.options=T(this.options,n))},n.startSpan=function(e,t,n){var r=this;if(!this.ended){var i=T({},n);i.onEnd=function(e){r._onSpanEnd(e)},i.traceId=this.traceId,i.sampled=this.sampled,i.sampleRate=this.sampleRate,i.parentId||(i.parentId=this.id);var a=new tm(e,t,i);return this._activeSpans[a.id]=a,i.blocking&&this.addTask(a.id),a}},n.isFinished=function(){return!this.blocked&&0===this._activeTasks.size},n.detectFinish=function(){this.isFinished()&&this.end()},n.end=function(e){if(!this.ended){for(var t in this.ended=!0,this._end=F(e),this._activeSpans){var n=this._activeSpans[t];n.type=n.type+eT,n.end(e)}this.callOnEnd()}},n.captureBreakdown=function(){this.breakdownTimings=function(e,t){void 0===t&&(t=b.timing);var n=[],r=e.name,i=e.type,a=e.sampled,o={name:r,type:i};if(!a)return n;if(i===J&&t)for(var s=0;s<tv.length;s++){var c=tv[s],l=V(t[c[0]],t[c[1]]);0!==l&&null!=l&&n.push(tg(o,{details:{type:c[2]},duration:l}))}else{var u=function(e){var t={};t.app={count:1,duration:function(e){var t=e.spans,n=e._start,r=e._end;if(0===t.length)return e.duration();t.sort(function(e,t){return e._start-t._start});for(var i=t[0],a=i._end,o=i._start,s=a,c=o-n,l=1;l<t.length;l++)o=(i=t[l])._start,a=i._end,o>s?(c+=o-s,s=a):a>s&&(s=a);return s<r&&(c+=r-s),c}(e)};for(var n=e.spans,r=0;r<n.length;r++){var i=n[r],a=i.duration();if(0!==a&&null!=a){var o=i.type,s=i.subtype,c=o.replace(eT,"");s&&(c+="."+s),t[c]||(t[c]={duration:0,count:0}),t[c].count++,t[c].duration+=a}}return t}(e);Object.keys(u).forEach(function(e){var t=e.split("."),r=t[0],i=t[1],a=u[e],s=a.duration,c=a.count;n.push(tg(o,{details:{type:r,subtype:i},duration:s,count:c}))})}return n}(this)},n.block=function(e){this.blocked=e,this.blocked||this.detectFinish()},n.addTask=function(e){return e||(e="task-"+_(16)),this._activeTasks.add(e),e},n.removeTask=function(e){this._activeTasks.delete(e)&&this.detectFinish()},n.resetFields=function(){this.spans=[],this.sampleRate=0},n._onSpanEnd=function(e){this.spans.push(e),delete this._activeSpans[e.id],this.removeTask(e.id)},n.isManaged=function(){return!!this.options.managed},t}(tf);function tx(){return(tx=Object.assign.bind()).apply(null,arguments)}var tw={fid:0,fcp:0,tbt:{start:1/0,duration:0},cls:{score:0,firstEntryTime:-1/0,prevEntryTime:-1/0,currentSessionScore:0},longtask:{count:0,duration:0,max:0}},t_=function(){function e(e){this.po={observe:M,disconnect:M},window.PerformanceObserver&&(this.po=new PerformanceObserver(e))}var t=e.prototype;return t.start=function(e,t){void 0===t&&(t={buffered:!0});try{if(!U(e))return;this.po.observe(tx({type:e},t))}catch(e){}},t.stop=function(){this.po.disconnect()},e}();function tS(e,t,n,r,i){return void 0===i&&(i=0),"number"==typeof e&&"number"==typeof t&&e>=i&&t>e&&e-i>=n&&t-i<=r&&t-e<3e5&&e-i<3e5&&t-i<3e5}var tj=[["redirectStart","redirectEnd","Redirect"],["domainLookupStart","domainLookupEnd","Domain lookup"],["connectStart","connectEnd","Making a connection to the server"],["requestStart","responseEnd","Requesting and receiving the document"],["domLoading","domInteractive","Parsing the document, executing sync. scripts"],["domContentLoadedEventStart","domContentLoadedEventEnd",'Fire "DOMContentLoaded" event'],["loadEventStart","loadEventEnd",'Fire "load" event']],tk=function(){function e(e,t){var n=this;this._config=t,this._logger=e,this.currentTransaction=void 0,this.respIntervalId=void 0,this.recorder=new t_(function(e){var t=n.getCurrentTransaction();if(t&&t.captureTimings){var r,i=t.type===J,a=function(e,t){var n=t.isHardNavigation,r=t.trStart,i=e.getEntriesByType(eb).filter(function(e){return e.startTime>=r}),a={spans:function(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r],a=i.name,o=i.startTime,s=i.duration,c=i.attribution,l=o+s,u=new tm("Longtask("+a+")",eb,{startTime:o});if(t.count++,t.duration+=s,t.max=Math.max(s,t.max),c.length>0){var d=c[0],p=d.name,f=d.containerType,h=d.containerName,m=d.containerId,v={attribution:p,type:f};h&&(v.name=h),m&&(v.id=m),u.addContext({custom:v})}u.end(l),n.push(u)}return n}(i,tw.longtask),marks:{}};if(!n)return a;var o=e.getEntriesByType(ey),s=o[o.length-1];if(s){var c=parseInt(s.startTime);tw.lcp=c,a.marks.largestContentfulPaint=c}var l=b.timing,u=l.fetchStart-l.navigationStart;z(l)&&(u=0);var d=e.getEntriesByName("first-contentful-paint")[0];if(d){var p=parseInt(u>=0?d.startTime-u:d.startTime);tw.fcp=p,a.marks.firstContentfulPaint=p}var f=function(e){var t=e[0];if(t){var n=t.startTime,r=t.processingStart,i=new tm("First Input Delay",ex,{startTime:n});return i.end(r),i}}(e.getEntriesByType(ex));
30return f&&(tw.fid=f.duration(),a.spans.push(f)),i.forEach(function(e){var t=e.name,n=e.startTime,r=e.duration;if(!(n<tw.fcp)&&("self"===t||-1!==t.indexOf("same-origin"))){tw.tbt.start=Math.min(tw.tbt.start,n);var i=r-50;i>0&&(tw.tbt.duration+=i)}}),e.getEntriesByType(ew).forEach(function(e){!e.hadRecentInput&&e.value&&((e.startTime-tw.cls.firstEntryTime>5e3||e.startTime-tw.cls.prevEntryTime>1e3)&&(tw.cls.firstEntryTime=e.startTime,tw.cls.currentSessionScore=0),tw.cls.prevEntryTime=e.startTime,tw.cls.currentSessionScore+=e.value,tw.cls.score=Math.max(tw.cls.score,tw.cls.currentSessionScore))}),a}(e,{isHardNavigation:i,trStart:i?0:t._start}),o=a.spans,s=a.marks;(r=t.spans).push.apply(r,o),t.addMarks({agent:s})}})}var t=e.prototype;return t.createCurrentTransaction=function(e,t,n){var r=new ty(e,t,n);return this.currentTransaction=r,r},t.getCurrentTransaction=function(){if(this.currentTransaction&&!this.currentTransaction.ended)return this.currentTransaction},t.createOptions=function(e){var t=this._config.config,n=T({transactionSampleRate:t.transactionSampleRate},e);return n.managed&&(n=T({pageLoadTraceId:t.pageLoadTraceId,pageLoadSampled:t.pageLoadSampled,pageLoadSpanId:t.pageLoadSpanId,pageLoadTransactionName:t.pageLoadTransactionName,pageLoadParentId:t.pageLoadParentId},n)),n},t.startManagedTransaction=function(e,t,n){var r=this.getCurrentTransaction(),i=!1;if(r)if(r.canReuse()&&n.canReuse){var a=r.type,o=ei.indexOf(r.type),s=ei.indexOf(t);o>=0&&s<o&&(a=t),r.redefine(e,a,n),i=!0}else r.end(),r=this.createCurrentTransaction(e,t,n);else r=this.createCurrentTransaction(e,t,n);return r.type===J&&(i||(this.recorder.start(ey),this.recorder.start("paint"),this.recorder.start(ex),this.recorder.start(ew)),n.pageLoadTraceId&&(r.traceId=n.pageLoadTraceId),n.pageLoadSampled&&(r.sampled=n.pageLoadSampled),r.name===en&&n.pageLoadTransactionName&&(r.name=n.pageLoadTransactionName)),!i&&this._config.get("monitorLongtasks")&&this.recorder.start(eb),r.sampled&&(r.captureTimings=!0),r},t.startTransaction=function(e,t,n){var r,i=this,a=this.createOptions(n),o=!0;return a.managed?this.currentTransaction===(r=this.startManagedTransaction(e,t,a))&&(o=!1):r=new ty(e,t,a),r.onEnd=function(){return i.handleTransactionEnd(r)},o&&this._config.events.send("transaction:start",[r]),r},t.handleTransactionEnd=function(e){var t=this;this.recorder.stop();var n=window.location.href;return m.resolve().then(function(){var r=e.name,i=e.type;if(e1.lastHiddenStart>=e._start||t.shouldIgnoreTransaction(r)||i===et)return void t._config.dispatchEvent(el);if(i===J){var a=t._config.get("pageLoadTransactionName");if(r===en&&a&&(e.name=a),e.captureTimings){var o,s,c,l=tw.cls,u=tw.fid,d=tw.tbt,p=tw.longtask;d.duration>0&&e.spans.push((o=d.start,s=d.duration,(c=new tm("Total Blocking Time",eb,{startTime:o})).end(o+s),c)),e.experience={},U(eb)&&(e.experience.tbt=d.duration),U(ew)&&(e.experience.cls=l.score),u>0&&(e.experience.fid=u),p.count>0&&(e.experience.longtask={count:p.count,sum:p.duration,max:p.max})}t.setSession(e)}e.name===en&&(e.name=function(e,t){void 0===t&&(t=2);for(var n=new W(e),r=n.query,i=n.path.substring(1).split("/"),a=/\W|_/g,o=/[0-9]/g,s=/[a-z]/g,c=/[A-Z]/g,l=[],u=!1,d=0;d<i.length;d++){var p=i[d];if(u||d>t-1){p&&l.push("*");break}if((p.match(a)||[]).length>=2){l.push(":id"),u=!0;continue}var f=(p.match(o)||[]).length;if(f>3||p.length>3&&f/p.length>=.3){l.push(":id"),u=!0;continue}var h=(p.match(c)||[]).length,m=(p.match(s)||[]).length/p.length,v=h/p.length;if(p.length>5&&(v>.3&&v<.6||m>.3&&m<.6)){l.push(":id"),u=!0;continue}p&&l.push(p)}return"/"+(l.length>=2?l.join("/"):l.join(""))+(r?"?{query}":"")}(n)),function(e){if(!e.captureTimings){e.type===J&&(e._start=0);return}var t=e._end;if(e.type===J){if(e.marks&&e.marks.custom){var n,r=e.marks.custom;Object.keys(r).forEach(function(t){r[t]+=e._start})}e._start=0;var i=b.timing,a=z(i)?i.redirectStart:i.fetchStart;(function(e,t,n,r){for(var i=[],a=0;a<tj.length;a++){var o=e[tj[a][0]],s=e[tj[a][1]];if(tS(o,s,0,r,t)){var c=new tm(tj[a][2],"hard-navigation.browser-timing"),l=null;"requestStart"===tj[a][0]&&(c.pageResponse=!0,l={url:location.origin}),c._start=o-t,c.end(s-t,l),i.push(c)}}return i})(i,a,0,t).forEach(function(t){t.traceId=e.traceId,t.sampled=e.sampled,t.pageResponse&&e.o
30ptions.pageLoadSpanId&&(t.id=e.options.pageLoadSpanId),e.spans.push(t)}),e.options.pageLoadParentId&&(e.parentId=e.options.pageLoadParentId),e.addMarks(null==(n=function(e){var t=e.redirectStart,n=e.fetchStart,r=e.navigationStart,i=e.responseStart,a=e.responseEnd;if(n>=r&&i>=n&&a>=i){var o={};return eJ.forEach(function(r){var i=e[r];i&&i>=n&&(z(e)?o[r]=parseInt(i-t):o[r]=parseInt(i-n))}),o}return null}(i))?null:{navigationTiming:n,agent:{timeToFirstByte:n.responseStart,domInteractive:n.domInteractive,domComplete:n.domComplete}})}if(H()){var o=e._start;(function(e,t,n,r){for(var i=[],a=0;a<e.length;a++){var o=e[a],s=o.initiatorType,c=o.name,l=o.startTime,u=o.responseEnd;-1!==X.indexOf(s)&&null!=c&&!(("xmlhttprequest"===s||"fetch"===s)&&(/intake\/v\d+\/rum\/events/.test(c)||null!=t&&l>t))&&tS(l,u,n,r)&&i.push(function(e){var t=e.name,n=e.initiatorType,r=e.startTime,i=e.responseEnd,a="resource";n&&(a+="."+n);var o=new tm(O(t),a);return o._start=r,o.end(i,{url:t,entry:e}),o}(e[a]))}return i})(b.getEntriesByType("resource"),e1.bootstrapTime,o,t).forEach(function(t){return e.spans.push(t)}),(function(e,t,n){for(var r=[],i=0;i<e.length;i++){var a=e[i],o=a.name,s=a.startTime,c=a.duration,l=s+c;if(!(c<=60)&&tS(s,l,t,n)){var u=new tm(o,"app");u._start=s,u.end(l),r.push(u)}}return r})(b.getEntriesByType("measure"),o,t).forEach(function(t){return e.spans.push(t)})}}(e),t.adjustTransactionTime(e),t._config.get("breakdownMetrics")&&e.captureBreakdown(),function(e,t){var n=void 0===t?{}:t,r=(n.tags,function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(n,eI)),i=eA(),a={};if(e.type===er)e.ensureContext(),e.context.page&&e.context.page.url&&(i.page.url=e.context.page.url);else if(e.type===J&&H()){var o=b.getEntriesByType("navigation");o&&o.length>0&&(a={response:eL(o[0])})}e.addContext(i,a,r)}(e,t._config.get("context")),t._config.events.send(ea,[e])},function(e){})},t.setSession=function(e){var t=this._config.get("session");if(t){"boolean"==typeof t||t.timestamp&&Date.now()-t.timestamp>18e5?e.session={id:_(16),sequence:1}:e.session={id:t.id,sequence:t.sequence?t.sequence+1:1};var n={session:{id:e.session.id,sequence:e.session.sequence,timestamp:Date.now()}};this._config.setConfig(n),this._config.setLocalConfig(n,!0)}},t.adjustTransactionTime=function(e){var t=e.spans,n=function(e){for(var t=e[0],n=1;n<e.length;n++){var r=e[n];t._start>r._start&&(t=r)}return t}(t);n&&n._start<e._start&&(e._start=n._start);var r=(P(t,function(e){return -1===String(e).indexOf("external")})||{})._end||0;if(e.type===J){var i=e._end-1e3,a=tw.lcp||0;e._end=Math.max(r,(P(t,function(e){return -1!==String(e).indexOf("external")})||{})._end||0,a,i)}else r>e._end&&(e._end=r);this.truncateSpans(t,e._end)},t.truncateSpans=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];r._end>t&&(r._end=t,r.type+=eT),r._start>t&&(r._start=t)}},t.shouldIgnoreTransaction=function(e){var t=this._config.get("ignoreTransactions");if(t&&t.length)for(var n=0;n<t.length;n++){var r=t[n];if("function"==typeof r.test){if(r.test(e))return!0}else if(r===e)return!0}return!1},t.startSpan=function(e,t,n){var r=this.getCurrentTransaction();return r||(r=this.createCurrentTransaction(void 0,et,this.createOptions({canReuse:!0,managed:!0}))),r.startSpan(e,t,n)},t.endSpan=function(e,t){e&&e.end(null,t)},e}(),tC={minInteractionId:1/0,maxInteractionId:0,interactionCount:0,longestInteractions:[]};function tO(e){e.getEntries().forEach(function(e){var t;!e.interactionId||(t=e,$()||(tC.minInteractionId=Math.min(tC.minInteractionId,t.interactionId),tC.maxInteractionId=Math.max(tC.maxInteractionId,t.interactionId),tC.interactionCount=(tC.maxInteractionId-tC.minInteractionId)/7+1),e.duration<40||function(e){var t=tC.longestInteractions[tC.longestInteractions.length-1];if(void 0===t||!(e.duration<=t.duration)||e.interactionId==t.id){var n=tC.longestInteractions.filter(function(t){return t.id===e.interactionId});if(n.length>0){var r=n[0];r.duration=Math.max(r.duration,e.duration)}else tC.longestInteractions.push({id:e.interactionId,duration:e.duration});tC.longestInteractions.sort(function(e,t){return t.duration-e.duration}),tC.longestInteractions.splice(10)}}(e))})}function tE(){return performance.interactionCount||tC.interactionCount}function tN(e,t){if(function(e){var t=function(){if(0===tC.longestInteractions.length)return tE()>0?0:void 0;var e=Math.min(tC.longestInteractions.length-1,Math.floor(tE()/50));return tC.longestInteractions[e].duration}();if(t>=0){var n=R(),r=e.startTransaction(er,er,{startTime:n}),i=performance.getEntriesByType("navigation");if(i.length>0){var a=i[0].name;r.addContext({page:{url:a}})}return r.addLabels({inp_value:t}),r.end(n+t+1),tC.minInteractionId=1/0,tC.maxInteractionId=0,tC.interactionCount=0,tC.longestInteractions=[],r}}(t))var n=e.observeEvent(ec,function(){tT(e,t),n()});else tT(e,t)}function tT(e,t){var n=t.getCurrentTransaction();if(n){var r=e.observeEvent(el,function(){e1.lastHiddenStart=R(),r(),i()}),i=e.observeEvent(ec,function(){e.dispatchEvent(es),e1.lastHiddenStart=R(),i(),r()});n.end()}else e.dispatchEvent(es),e1.lastHiddenStart=R()}var tI=!1,tL=e.i(772236),tM=e.i(4810),tA=e.i(912818);function tP(e,t){return(tP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var tR=function(e){function t(t,n){var r;return(r=e.call(this)||this).__tracer=t,r.span=n,r.isTransaction=n instanceof ty,r.spanContext={id:n.id,traceId:n.traceId,sampled:n.sampled},r}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,tP(t,e);var n=t.prototype;return n._context=function(){return this.spanContext},n._tracer=function(){return this.__tracer},n._setOperationName=function(e){this.span.name=e},n._addTags=function(e){var t=T({},e);if(t.type&&(this.span.type=t.type,delete t.type),this.isTransaction){var n=t["user.id"],r=t["user.username"],i=t["user.email"];(n||r||i)&&(this.span.addContext({user:{id:n,username:r,email:i}}),delete t["user.id"],delete t["user.username"],delete t["user.email"])}this.span.addLabels(t)},n._log=function(e,t){"error"===e.event&&(e["error.object"]?this.__tracer.errorLogging.logError(e["error.object"]):e.message&&this.__tracer.errorLogging.logError(e.message))},n._finish=function(e){this.span.end(),e&&(this.span._end=e-C())},t}(tA.Span);
30function tF(e,t){return(tF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}!function(e){function t(t,n,r,i){var a;return(a=e.call(this)||this).performanceMonitoring=t,a.transactionService=n,a.loggingService=r,a.errorLogging=i,a}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,tF(t,e);var n=t.prototype;n._startSpan=function(e,t){var n,r={managed:!0};if(t){if(r.timestamp=t.startTime,t.childOf)r.parentId=t.childOf.id;else if(t.references&&t.references.length>0){t.references.length;var i=function(e,t,n){if(null==e)throw TypeError("array is null or not defined");var r=Object(e),i=r.length>>>0;if("function"!=typeof t)throw TypeError("predicate must be a function");for(var a=0;a<i;){var o=r[a];if(t.call(void 0,o,a,r))return o;a++}}(t.references,function(e){return e.type()===tM.REFERENCE_CHILD_OF});i&&(r.parentId=i.referencedContext().id)}}if(!(n=this.transactionService.getCurrentTransaction()?this.transactionService.startSpan(e,void 0,r):this.transactionService.startTransaction(e,void 0,r)))return new tA.Span;r.timestamp&&(n._start=r.timestamp-C());var a=new tR(this,n);return t&&t.tags&&a.addTags(t.tags),a},n._inject=function(e,t,n){switch(t){case tM.FORMAT_TEXT_MAP:case tM.FORMAT_HTTP_HEADERS:this.performanceMonitoring.injectDtHeader(e,n);case tM.FORMAT_BINARY:}},n._extract=function(e,t){var n;switch(e){case tM.FORMAT_TEXT_MAP:case tM.FORMAT_HTTP_HEADERS:n=this.performanceMonitoring.extractDtHeader(t);case tM.FORMAT_BINARY:}return n||(n=null),n}}(tL.Tracer);var tV=function(){function e(e,t){this._disable=t,this.serviceFactory=e,this._initialized=!1}var t=e.prototype;return t.isEnabled=function(){return!this._disable},t.isActive=function(){var e=this.serviceFactory.getService(ej);return this.isEnabled()&&this._initialized&&e.get("active")},t.init=function(e){var t=this;if(this.isEnabled()&&!this._initialized){this._initialized=!0;var n=this.serviceFactory.getService([ej,ek,eC]),r=n[0],i=n[1],a=n[2];r.setVersion("5.17.4"),this.config(e);var o=r.get("logLevel");if(i.setLevel(o),r.get("active")){this.serviceFactory.init();var s,c,l,u,d,p,f=(s=r.get("instrument"),c=r.get("disableInstrumentations"),(l={})[eu]=!1,l[ed]=!1,l[ep]=!1,l[J]=!1,l[em]=!1,l[ef]=!1,l[eh]=!1,u=l,s&&Object.keys(u).forEach(function(e){-1===c.indexOf(e)&&(u[e]=!0)}),u);if(this.serviceFactory.getService(eE).init(f),f[em]&&this.serviceFactory.getService(eN).registerListeners(),r.get("session")){var h=r.getLocalConfig();h&&h.session&&r.setConfig({session:h.session})}var m=function(){return f[J]&&t._sendPageLoadMetrics()};r.get("centralConfig")?this.fetchCentralConfig().then(m):m(),"hidden"===document.visibilityState&&(e1.lastHiddenStart=0),window.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&tN(r,a)},!0),window.addEventListener("pagehide",function(){return tN(r,a)},!0),f[ef]&&f[eh]&&window.addEventListener("click",function(e){var t,n,r,i,o,s,c,l,u;e.target instanceof Element&&(t=a,n=e.target,c=(s=((i={transactionName:null,context:null}).transactionName=function(e){var t=function(e){var t="data-transaction-name",n=e.getAttribute(t);if(e.closest){var r=e.closest("a[data-transaction-name], button[data-transaction-name]");return r?r.getAttribute(t):n}return n}(e);if(t)return t;var n=e.tagName.toLowerCase(),r=e.getAttribute("name");return r?n+'["'+r+'"]':n}(r=n),(o=r.getAttribute("class"))&&(i.context={custom:{classes:o}}),i)).transactionName,l=s.context,(u=t.startTransaction("Click - "+c,Z,{managed:!0,canReuse:!0,reuseThreshold:300}))&&l&&u.addContext(l))},!0),void 0===d&&(d=new t_(tO)),p=$(),d.start("event",{buffered:!0,durationThreshold:p?40:16}),p||d.start(ex)}else this._disable=!0,i.warn("RUM agent is inactive")}return this},t.fetchCentralConfig=function(){var e=this.serviceFactory.getService([eO,ek,ej]),t=e[0],n=e[1],r=e[2];return t.fetchConfig(r.get("serviceName"),r.get("environment")).then(function(e){var t=e.transaction_sample_rate;if(t){var i={transactionSampleRate:t=Number(t)},a=r.validate(i).invalid;if(0===a.length)r.setConfig(i);else{var o=a[0],s=o.key,c=o.value,l=o.allowed;n.warn('invalid value "'+c+'" for '+s+". Allowed: "+l+".")}}return e}).catch(function(e){n.warn("failed fetching config:",e)})},t._sendPageLoadMetrics=function(){var e=this.startTransaction(void 0,J,{managed:!0,canReuse:!0});if(e){e.addTask(J);var t=function(){setTimeout(function(){return e.removeTask(J)},1e3)};"complete"===document.readyState?t():window.addEventListener("load",t)}},t.observe=function(e,t){this.serviceFactory.getService(ej).events.observe(e,t)},t.config=function(e){var t=this.serviceFactory.getService([ej,ek]),n=t[0],r=t[1],i=n.validate(e),a=i.missing,o=i.invalid,s=i.unknown;if(s.length>0){var c="Unknown config options are specified for RUM agent: "+s.join(", ");r.warn(c)}if(0===a.length&&0===o.length)n.setConfig(e);else{var l="RUM agent isn't correctly configured. ";a.length>0&&(l+=a.join(", ")+" is missing",o.length>0&&(l+=", ")),o.forEach(function(e,t){var n=e.key,r=e.value,i=e.allowed;
30l+=n+' "'+r+'" contains invalid characters! (allowed: '+i+")"+(t!==o.length-1?", ":"")}),r.error(l),n.setConfig({active:!1})}},t.setUserContext=function(e){this.serviceFactory.getService(ej).setUserContext(e)},t.setCustomContext=function(e){this.serviceFactory.getService(ej).setCustomContext(e)},t.addLabels=function(e){this.serviceFactory.getService(ej).addLabels(e)},t.setInitialPageLoadName=function(e){this.serviceFactory.getService(ej).setConfig({pageLoadTransactionName:e})},t.startTransaction=function(e,t,n){if(this.isEnabled())return this.serviceFactory.getService(eC).startTransaction(e,t,n)},t.startSpan=function(e,t,n){if(this.isEnabled())return this.serviceFactory.getService(eC).startSpan(e,t,n)},t.getCurrentTransaction=function(){if(this.isEnabled())return this.serviceFactory.getService(eC).getCurrentTransaction()},t.captureError=function(e,t){if(this.isEnabled())return this.serviceFactory.getService(eN).logError(e,t)},t.addFilter=function(e){this.serviceFactory.getService(ej).addFilter(e)},e}(),tD=function(){if(g&&window.elasticApm)return window.elasticApm;var e=(g&&"function"==typeof Set&&"function"==typeof JSON.stringify&&b&&"function"==typeof b.now&&"withCredentials"in new window.XMLHttpRequest?(!function(){if(!td&&(td=!0,!function(e){var t=XMLHttpRequest.prototype;if(t&&t[Y])var n="readystatechange",r="load",i="error",a=e8(t,"open",function(){return function(e,t){return e[e7]||(e[tt]=t[0],e[te]=t[1],e[e9]=!1===t[2]),a.apply(e,t)}}),o=e8(t,"send",function(){return function(t,a){if(t[e7])return o.apply(t,a);var c={source:eu,state:"",type:"macroTask",data:{target:t,method:t[tt],sync:t[e9],url:t[te],status:""}};try{return function(t){if(t.state!==G){t.state=G,e(G,t);var a=t.data.target;o(n),o(r),o("timeout"),o(i),o("abort")}function o(e){a[Y](e,function(e){var i=e.type;i===n?4===a.readyState&&0!==a.status&&s(t,"success"):s(t,i===r?"success":i)})}}(c),o.apply(t,a)}catch(e){throw s(c,i),e}}});function s(t,n){t.state!==K&&(t.state=K,t.data.status=n,e(K,t))}}(function(e,t){tu.send(eu,[e,t])}),!function(e){if(e5()){var t=window.fetch;window.fetch=function(i,a){var o,s,c=this,l=arguments,u=i instanceof URL;if("string"==typeof i||u)o=new Request(i,a),s=u?o.url:i;else{if(!i)return t.apply(c,l);s=(o=new Request(i,a)).url}var d={source:ed,state:"",type:"macroTask",data:{target:o,method:o.method,url:s,aborted:!1}};return new m(function(i,a){var s,l;e3.fetchInProgress=!0,(l=d).state=G,e(G,l);try{s=t.apply(c,[o])}catch(e){a(e),d.data.error=e,n(d),e3.fetchInProgress=!1;return}s.then(function(e){var t=e.clone?e.clone():{};i(e),D(function(){d.data.response=e;var i,a,o,s,c=t.body;c?(i=c,a=d,o=i.getReader(),(s=function(){o.read().then(function(e){e.done?n(a):s()},function(e){r(a,e)})})()):n(d)})},function(e){a(e),D(function(){r(d,e)})}),e3.fetchInProgress=!1})}}function n(t){t.state=K,e(K,t)}function r(e,t){var r;e.data.aborted=(r=t)&&"AbortError"===r.name,e.data.error=t,n(e)}}(function(e,t){tu.send(ed,[e,t])}),window.history)){var e=history.pushState;"function"==typeof e&&(history.pushState=function(t,n,r){var i,a;i=K,a={source:ep,data:{state:t,title:n,url:r}},tu.send(ep,[i,a]),e.apply(this,arguments)})}}(),e1.bootstrapTime=R(),tI=!0):g&&console.log("[Elastic APM] platform is not supported!"),tI),t=new tV((tc[eC]=function(e){var t=e.getService([ek,ej]);return new tk(t[0],t[1])},tc[eE]=function(e){var t=e.getService([eO,ej,ek,eC]);return new tp(t[0],t[1],t[2],t[3])},tc[eN]=function(e){var t=e.getService([eO,ej,eC]);return new eK(t[0],t[1],t[2])},new tl),!e);return g&&(window.elasticApm=t),t}(),tH=tD.init.bind(tD),tU=e.i(271645);function t$(){return(0,tU.useEffect)(()=>{tH({serviceName:"alivecor-website-next",serverUrl:"https://apm.us-monitoring.alivecor.com",environment:"usw2.production",serviceVersion:"1.0.0"})},[]),(0,n.jsx)(n.Fragment,{})}e.s(["default",()=>t$],844285)},448358,e=>{"use strict";e.i(247167);var t=e.i(843476),n=e.i(657688),r=e.i(948148),i=e.i(501859);let a={src:e.i(296368).default,width:337,height:65,blurWidth:0,blurHeight:0};var o=e.i(899081),s=e.i(744705),c=e.i(361628),l=e.i(857970),u=e.i(349412),d=e.i(280301);function p({localActive:e="en"}){let p=(0,r.useTranslations)("footer"),f=(0,s.usePathname)(),{footerLinks:h,kardiaArr:m}=(0,u.getFooterMenu)(e),v=e===c.CONFIG_LOCALES.UK,g=(0,c.isEULocale)(e),b=[{label:p("Denmark"),number:"80827060"},{label:p("France"),number:"0805220703"},{label:p("Germany"),number:"08001810996"},{label:p("Israel"),number:"1809344393"},{label:p("Italy"),number:"800934336"},{label:p("UnitedKingdom"),number:"08000668028"}],y=(e="")=>v||g?(0,t.jsxs)("div",{className:`mt-s6 ${e}`,children:[(0,t.jsx)("p",{className:"font-bold text-primary-500 mb-s2",children:p("supportNumber")}),(0,t.jsx)("ul",{className:"list-none m-0 p-0 space-y-2",children:b.map((e,n)=>(0,t.jsxs)("li",{className:"text-black-800 text-sm",children:[e.label,": ",e.number]},n))})]}):null,x=(e,t)=>{if(window.innerWidth<768){let n=document?.getElementById(e),r=document?.getElementById(t);n&&(n.classList.toggle("hidden"),r.classList.toggle("pb-s0!"))}};return(0,t.jsx)("footer",{"data-aos":"fade-up",className:`main-footer main-fade-in relative mt-auto ${"/products/kardia12l"===f?"pb-s13 md:pb-s11":""}`,children:(0,t.jsxs)("div",{id:"footer-nav",className:"overflow-hidden",children:[(0,t.jsx)("div",{className:"max-w-layout border-primary-100 mx-auto border-t"}
30),(0,t.jsxs)("div",{className:"footer__content pt-s11 mx-auto grid max-w-[1440px] gap-[72px]",children:[(0,t.jsxs)("div",{className:"px-s7 xl:px-s11 flex flex-col items-center xl:items-start",children:[(0,t.jsx)(d.default,{href:"/","aria-label":"Kardia by AliveCor (return to homepage)",className:"block max-w-[215px]",children:(0,t.jsx)(n.default,{src:o.default?.src,alt:"AliveCor Logo",className:"cursor-pointer",width:200,height:100})}),y("hidden xl:block"),(0,t.jsx)("ul",{className:"gap-s4 mt-s7 mx-auto flex list-none flex-wrap xl:hidden",children:(0,c.getSocialMediaArr)(e)?.map((e,r)=>(0,t.jsx)("li",{className:"block",children:(0,t.jsx)("a",{href:e?.href,onClick:()=>{(0,l.gtmEvent)({event:"navigation_click",top_category:"Social",sub_category:`${e?.alt}`,navigation_type:"Footer"})},target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram profile",className:"text-primary-700 hover/focus:text-primary-900 transition-all duration-500 ease-in-out",children:(0,t.jsx)(n.default,{src:e?.icon,alt:e?.alt,width:24,height:24,className:"cursor-pointer"})})},r))})]}),(0,t.jsxs)("nav",{className:"px-s7",children:[(0,t.jsxs)("ul",{className:"nav-footer gap-s7 footer__theme--alivecor xl:pr-s11 m-s0 grid list-none",children:[!(v||g)&&(0,t.jsxs)("li",{className:"footer_list pb-s4 md:pb-s7 list-none border-b-2 md:hidden",children:[(0,t.jsx)("button",{type:"button","aria-label":"Customer Service",className:"mb-s7 flex w-full items-center justify-between",children:(0,t.jsx)("span",{className:"text-primary-500 font-bold",children:p("customerService")})}),(0,t.jsx)("ul",{className:"footer_list__items space-y-s6 ml-0",children:(0,t.jsx)("li",{className:"list-none",children:(0,t.jsx)("a",{href:"tel:+18553388800",rel:"noopener","aria-label":"Customer Service Phone Number","aria-expanded":"false",className:"footer__link text-black-800 font-16",children:p("number")})})})]}),h?.map((e,n)=>(0,t.jsxs)("li",{id:`link-li-${n}`,className:"footer_list pb-s0 md:pb-s0 footer_nav__closed list-none border-b-2 md:border-0",children:[(0,t.jsxs)("button",{type:"button","aria-label":p(e?.title),"aria-expanded":"false",className:"mb-s7 flex w-full cursor-pointer items-center justify-between md:cursor-default",onClick:()=>x(`link-${n}`,`link-li-${n}`),children:[(0,t.jsx)("span",{className:"text-primary-500 font-bold",children:p(e?.title)}),(0,t.jsx)("span",{className:"md:hidden",children:(0,t.jsx)(i.RiArrowDownSLine,{size:"20px","aria-hidden":"true"})})]}),(0,t.jsx)("ul",{className:"footer_list__items ml-0 hidden md:block",id:`link-${n}`,children:e?.data?.map((n,r)=>(0,t.jsx)("li",{className:"footer_list footer_nav__closed mt-s4 list-none",children:n?.isHTMLLink?(0,t.jsx)("a",{href:n?.href,onClick:()=>{(0,l.gtmEvent)({event:"navigation_click",top_category:p(e?.title),sub_category:p(n?.label),navigation_type:"Footer"})},rel:"noopener","aria-label":p(n?.ariaLabel),"aria-expanded":"false",className:"footer__link text-black-800 font-16",children:p(n?.label)}):(0,t.jsx)(d.default,{className:"footer__link text-black-800 font-16",href:n?.href,onClick:()=>{(0,l.gtmEvent)({event:"navigation_click",top_category:p(e?.title),sub_category:p(n?.label),navigation_type:"Footer"})},children:p(n?.label)})},r))})]},n)),(0,t.jsxs)("li",{id:"kardia-li",className:"pb-s0 md:pb-s0 xl:border-black-100 xl:pl-s8 footer_nav__closed border-b-2 md:border-0 xl:border-l-2",children:[(0,t.jsxs)("div",{className:"mb-s7 flex w-full items-center justify-between",children:[(0,t.jsx)("a",{href:"https://kardia.com","aria-label":"Kardia by AliveCor",children:(0,t.jsx)(n.default,{src:a,alt:"Kardia by AliveCor",width:100,height:24,className:"cursor-pointer"})}),(0,t.jsx)("button",{type:"button","aria-label":"Kardia by AliveCor links","aria-expanded":"false",onClick:()=>x("kardia-consumer-id","kardia-li"),className:"md:hidden",children:(0,t.jsx)(i.RiArrowDownSLine,{size:"20px","aria-hidden":"true"})})]}),(0,t.jsx)("div",{className:"submenu-items-wrapper",children:(0,t.jsx)("div",{className:"submenu-items-wrapper-int",children:(0,t.jsx)("ul",{id:"kardia-consumer-id",className:"kardia-consumer footer_list__items ml-0 hidden md:block",children:m?.map((e,n)=>(0,t.jsx)("li",{className:"footer_list footer_nav__closed mt-s4 list-none",children:e?.isHTMLLink?(0,t.jsx)("a",{href:e?.href,onClick:()=>{(0,l.gtmEvent)({event:"navigation_click",top_category:"Kardia Links",sub_category:p(e?.label),navigation_type:"Footer"})},rel:"noopener","aria-label":p(e?.ariaLabel),"aria-expanded":"false",className:"footer__link text-black-800 font-16",children:p(e?.label)}):(0,t.jsx)(d.default,{className:"footer__link text-black-800 font-16",href:e?.href,onClick:()=>{(0,l.gtmEvent)({event:"navigation_click",top_category:"Kardia Links",sub_category:p(e?.label),navigation_type:"Footer"})},children:p(e?.label)})},n))})})})]})]}),y("xl:hidden mb-s6")]})]}),(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"footer__grid mb-s6 mx-auto flex max-w-[1440px] items-center justify-between",children:[(0,t.jsx)("ul",{className:"px-s7 xl:px-s11 gap-s4 m-s0 hidden list-none flex-wrap xl:flex",children:(0,c.getSocialMediaArr)(e)?.map((e,r)=>(0,t.jsx)("li",{className:"block",children:(0,t.jsx)("a",{href:e?.href,onClick:()=>{(0,l.gtmEvent)({event:"navigation_click",top_category:"Social",sub_category:`${e?.alt}`,navigation_type:"Footer"})},target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram profile",className:"text-primary-700 hover/focus:text-primary-900 transition-all duration-500 ease-in-out",children:(0,t.jsx)(n.default,{src:e?.icon,alt:e?.alt,width:24,height:24,className:"cursor-pointer"})})},r))}),(0,t.jsx)("ul",{className:"footer_list__items space-x-s6 px-s7 xl:px-s11 m-s0 hidden items-center justify-end xl:flex",children:c.footerBottomArr?.map((e,n)=>(0,t.jsx)("li",{className:"footer_list footer_nav__closed list-none",children:e?.isHTMLLink?(0,t.jsx)("a",{href:e?.href,onClick:()=>{(0,l.gtmEvent)({event:"navigation_click",top_category:"FooterBottom",sub_category:p(e?.label),navigation_type:"Footer"})},rel:"noopener","aria-label":e?.ariaLabel,"aria-expanded":"false",className:"footer__link text-black-800 font-16",children:p(e?.label)}):(0,t.jsx)(d.default,{className:"footer__link text-black-800 font-16",href:e?.href,onClick:()=>{(0,l.gtmEvent)({event:"navigation_click",top_category:"FooterBottom",sub_category:p(e?.label),navigation_type:"Footer"})},children:p(e?.label)})},n))})]})}),(0,t.jsx)("div",{className:"footer__grid",children:(0,t.jsx)("div",{className:"py-s8 px-s7 xl:px-s11 items-center",children:(0,t.jsx)("div",{id:"adasc_adapter_code"})})}),(0,t.jsx)("div",{className:"bg-[#F5FAFD]",children:(0,t.jsx)("div",{className:"footer__grid",children:(0,t.jsx)("div",{className:"footer__c
30opyright max-w-content px-s7 xl:px-s11 py-s6 mx-auto",children:(0,t.jsx)("p",{className:"text-primary-600 text-lg",children:p("text")})})})})]})})}e.s(["default",()=>p],448358)},834816,e=>{"use strict";var t=e.i(843476),n=e.i(657688),r=e.i(522016),i=e.i(948148),a=e.i(271645),o=e.i(473665),s=e.i(549377),c=e.i(393533),l=e.i(466837),u=e.i(122640),d=e.i(724732),p=e.i(899081),f=e.i(255853),h=e.i(157111),m=e.i(744705),v=e.i(502962);e.i(314547);var g=e.i(178111),b=e.i(361628),y=e.i(857970),x=e.i(349412),w=e.i(585080),_=e.i(511633),S=e.i(738306),j=e.i(581070),k=e.i(442836),C=e.i(582934),O=e.i(32485),E=e.i(280301),N=e.i(651558);let T={kardia12l:c.default?.src,kardiaMobile:l.default?.src,kardiaMobile6l:u.default?.src,kardiaMobileCard:d.default?.src};function I({localActive:e,isTopHeaderAvailable:c}){let l=(0,w.usePersistentRouter)(),[u,d]=(0,a.useState)(!1),[I,L]=(0,a.useState)(!1),M=(0,a.useRef)(0),A=(0,i.useTranslations)("header"),P=(0,m.usePathname)(),R="/products/kardia12l"===P,F=String(P).includes("experience-kardia12l"),{solutionsArr:V,professionalsArr:D,aboutArr:H}=(0,x.getHeaderMenu)(A,e),U=e===b.CONFIG_LOCALES.IN,$=(0,v.default)(e=>e.cartData),z=(0,v.default)(e=>e.fetchShopifyCartData),B=(0,v.default)(e=>e.cartId),q=$?.length||0;(0,a.useEffect)(()=>{M.current=0;let e=setTimeout(()=>{L(!0)},50),t=()=>{if(!U||"visible"!==document.visibilityState||!B||0===q)return;let e=Date.now();if(!(e-M.current<6e4)){M.current=e,z();try{localStorage.setItem(`last_sync_${B}`,e.toString())}catch(e){console.warn("localStorage setItem failed:",e)}}};return t(),document.addEventListener("visibilitychange",t),()=>{clearTimeout(e),document.removeEventListener("visibilitychange",t)}},[U,B,q,z]);let W=()=>{u?document?.body?.classList?.remove("modal-open"):document?.body?.classList?.add("modal-open"),d(e=>!e)},G=(e,r,i=!1)=>(0,t.jsx)("div",{children:r?.map((a,o)=>(0,t.jsxs)("div",{className:i?"text-primary-900 mb-s4 p-s3 flex cursor-pointer items-center justify-between space-x-5 rounded-xl bg-gray-200 text-[20px]":"",children:[a?.children?(0,t.jsx)("div",{className:"pl-[3%]",children:(0,t.jsx)(_.default,{open:!1,title:(0,t.jsx)("p",{className:"text-base",children:a?.label}),content:G(a?.label,a?.children)})}):(0,t.jsxs)("p",{onClick:()=>{l.push(a?.href),W(),(0,y.gtmEvent)({event:"navigation_click",top_category:`${e}`,sub_category:`${a?.label}`,navigation_type:"Main Nav"})},className:`flex cursor-pointer items-center justify-between pl-[3%] text-base text-gray-500 hover:text-gray-400 ${i?"":r.length-1===o?"border-b-2":"border-b-1"} border-primary-100 py-4`,children:[a?.label,a?.isNew&&(0,t.jsx)("span",{className:"bg-primary-900 ml-s2 flag inline-block py-1 pr-4 pl-2 text-xs text-white",children:A("new")})]}),i?(0,t.jsx)("div",{className:"h-[64px] w-[64px] flex-none overflow-hidden rounded-lg bg-white",children:(0,t.jsx)(n.default,{src:T[a?.key],alt:`${a?.key}`,width:64,height:64,className:"object-contain"})}):null]},a?.label))}),K=(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(r.default,{href:"https://alivecor.com/in/wa",target:"_blank",rel:"noopener noreferrer",className:"flex h-10 w-10 items-center justify-center rounded-full bg-[#25D366] transition-colors hover:bg-[#128C7E]","aria-label":"Chat on WhatsApp",onClick:()=>{(0,y.gtmEvent)({event:"navigation_click",top_category:"WhatsApp",navigation_type:"Main Nav"})},children:(0,t.jsx)(n.default,{src:g.whatsappIcon,alt:"WhatsApp",width:24,height:24,priority:!0})})}),Y=(n=!1)=>I&&(0,t.jsx)(C.default,{isMobile:n,locale:e});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:`sticky top-[0px] z-50 w-full shadow-xs ${c&&"top-[80px] md:top-[36px]"}`,children:(0,t.jsxs)("div",{className:`px-s7 sm:px-s5 md:px-s10 h-[56px] bg-white ${U?"lg:px-s4":"lg:px-s7"} w-full`,children:[(0,t.jsxs)("div",{className:`hidden h-full ${U?"x2l:flex x2l:justify-between":"xl:flex xl:justify-between"}`,children:[(0,t.jsxs)("div",{className:`flex cursor-pointer ${U?"gap-s6":"gap-s8"}`,children:[(0,t.jsx)(E.default,{href:"/",className:"flex h-full items-center",children:(0,t.jsx)(n.default,{src:p.default?.src,alt:"AliveCor Logo",width:130,height:120})}),V?.length>0?(0,t.jsx)(O.default,{title:A("ourTechnology"),data:V,isProduct:e===b.CONFIG_LOCALES.IN}):(0,t.jsx)(t.Fragment,{}),D?.length>0?(0,t.jsx)(O.default,{title:A("ourSolutions"),data:D}):(0,t.jsx)(t.Fragment,{}),H?.length>0?(0,t.jsx)(O.default,{title:A("about"),data:H}):(0,t.jsx)(t.Fragment,{}),"in"===e&&(0,t.jsx)("div",{className:"flex items-center",children:(0,t.jsx)(E.default,{href:"/press",onClick:()=>{(0,y.gtmEvent)({event:"navigation_click",top_category:"Newsroom",navigation_type:"Main Nav"})},className:"dropbtn text-primary-900 hover:text-primary-500 text-base",children:A("newsroom")})})]}),(0,t.jsxs)("div",{className:`flex items-center ${U?"gap-s2":"gap-s4"}`,children:[Y(),!F&&(0,t.jsxs)("div",{className:"flex items-center space-x-2 text-black",onClick:()=>{(0,y.gtmEvent)({event:"navigation_click",top_category:"PhoneNumber",navigation_type:"Main Nav"})},children:[(0,t.jsx)(n.default,{src:f.default?.src,width:16,height:16,alt:"Phone"}),(0,t.jsx)("div",{className:"text-base",children:A("number")})]}),U&&(0,t.jsx)(t.Fragment,{children:K}),U&&"/device-comparison"!==String(P)&&"/products"!==String(P)&&(0,t.jsx)(N.default,{btnClassName:"inline-block text-sm font-bold bg-primary-500 text-white px-6 py-3 rounded-xl uppercase tracking-[0.2em] disabled:bg-gray-400 disabled:cursor-not-allowed transition-colors ease-in-out",handle:h.getShopifyProductHandle[String(P)]}),U&&R?(0,t.jsx)(k.default,{id:"contact-us-click"}):(0,t.jsx)(t.Fragment,{children:R?(0,t.jsx)(j.default,{id:"contact-us-click"}):(0,t.jsx)(S.default,{id:"contact-us-click"})}),U&&(0,t.jsxs)(E.default,{href:"/cart","aria-label":"Shopping cart",className:"bg-primary-500 py-s2 relative cursor-pointer rounded-lg px-4",children:[(0,t.jsx)(o.MdOutlineShoppingCart,{size:"25px",color:"white","aria-hidden":"true"}),0!==q&&(0,t.jsx)("div",{className:"absolute -top-1 -right-1 flex h-5 w-5 items-center justify-center rounded-full border-2 border-white bg-red-500 text-xs text-white",style:{minWidth:20,minHeight:20},children:q})]})]})]}),(0,t.jsxs)("div",{className:`flex h-full items-center justify-between ${U?"x2l:hidden":"xl:hidden"}`,children:[u?(0,t.jsx)("button",{type:"button","aria-label":"Close menu",onClick:W,className:"flex items-center justify-center p-1",children:(0,t.jsx)(s.RxCross2,{fontSize:"32px",className:"text-primary-800","aria-hidden":"true"})}):(0,t.jsxs)("button",{onClick:W,"aria-label":"Open menu","aria-controls":"collapse2",className:"menu-btn","aria-expanded":"false",children:[(0,t.jsx)("span",{className:"menu__bar bg-primary-500 menu__bar--1"}),(0,t.jsx)("span",{className:"menu__bar bg-primary-500 menu__bar--2"}),(0,t.jsx)("span",{className:"menu__bar bg-primary-500 menu__bar--3"})]}),(0,t.jsx)(n.default,{src:p.default?.src,alt:"AliveCor Logo",width:130,height:120,onClick:()=>{l.push("/"),document?.body?.classList?.remove("modal-open"),d(!1)}}),U&&(0,t.jsxs)(E.default,{href:"/cart","aria-label":"Shopping cart",className:"bg-primary-500 relative cursor-pointer rounded-lg px-2 py-1.5",children:[(0,t.jsx)(o.MdOutlineShoppingCart,{size:"20px",color:"white"}),0!==q&&(0,t.jsx)("div",{className:"absolute -top-1 -right-1 flex h-4 w-4 items-center justify-center rounded-full border-2 border-white bg-red-500 text-[11px] text-white",style:{minWidth:18,minHeight:18},children:q})]})]})]})}),u&&(0,t.jsx)("div",{className:`border-primary-100 h-[calc(100% - 136px)] md:h-[calc(100% - 92px)] fixed z-999 w-full border-t-2 bg-white shadow-md ${c?"top-[136px]":"top-[56px]"} ${c?"md:top-[92px]":"md:top-[56px]"} bottom-[0] text-2xl font-medium ${U?"x2l:hidden":"xl:hidden"}`,children:(0,t.jsxs)("div",{className:"border-primary-100 flex h-full flex-col",children:[(0,t.jsxs)("div",{className:"px-s7 md:px-s9 pt-s7 flex-auto overflow-auto",children:[V?.length>0?(0,t.jsx)(_.default,{open:!1,content:G(A("ourTechnology"),V,U),title:(0,t.jsx)("p",{className:"text-base",children:A("ourTechnology")}),headerClassName:"border-b-[0px]"}):(0,t.jsx)(t.Fragment,{}),D?.length>0?(0,t.jsx)(_.default,{open:!1,title:(0,t.jsx)("p",{className:"text-base",children:A("ourSolutions")}),content:G(A("ourSolutions"),D)}):(0,t.jsx)(t.Fragment,{}),H?.length>0?(0,t.jsx)(_.default,{open:!1,title:(0,t.jsx)("p",{className:"text-base",children:A("about")}),content:G(A("about"),H)}):(0,t.jsx)(t.Fragment,{}),"in"===e&&(0,t.jsx)("div",{className:"text-primary-900 border-primary-100 py-s4 hover:text-primary-500 border-b",children:(0,t.jsx)("p",{className:"cursor-pointer text-base",onClick:()=>{l.push("/press"),(0,y.gtmEvent)({event:"navigation_click",top_category:"Newsroom",navigation_type:"Main Nav"}),W()},children:A("newsroom")})}),(0,t.jsxs)("div",{className:"flex justify-between",children:[!F&&(0,t.jsxs)("div",{className:"pt-s7 pb-s6 flex items-center justify-start space-x-2 font-normal",onClick:()=>{(0,y.gtmEvent)({event:"navigation_click",top_category:"PhoneNumber",navigation_type:"Main Nav"})},children:[(0,t.jsx)(n.default,{src:f.default?.src,width:16,height:16,alt:"Phone"}),(0,t.jsx)("p",{className:"text-base",children:A("number")})]}),U&&(0,t.jsx)("div",{className:"pt-s7 pb-s6",children:K})]}),(0,t.jsx)("div",{className:"pb-s5",children:Y(!0)})]}),U&&"/device-comparison"!==String(P)&&"/products"!==String(P)&&(0,t.jsx)("div",{className:"px-s7 md:px-s9 pb-s4",children:(0,t.jsx)(N.default,{btnClassName:"inline-block text-sm font-bold bg-primary-500 text-white px-6 py-3 rounded-xl uppercase tracking-[0.2em] disabled:bg-gray-400 disabled:cursor-not-allowed transition-colors ease-in-out",handle:h.getShopifyProductHandle[String(P)]})}),(0,t.jsx)("div",{className:"px-s7 md:px-s9 pb-s8",children:U&&R?(0,t.jsx)(k.default,{id:"contact-us-click"}):(0,t.jsx)(t.Fragment,{children:R?(0,t.jsx)(j.default,{btnClassName:"w-full sm:w-fit",id:"contact-us-click"}):(0,t.jsx)(S.default,{btnClassName:"w-full sm:w-fit",id:"contact-us-click"})})})]})})]})}e.s(["default",()=>I])},362167,e=>{"use strict";
30var t=e.i(843476),n=e.i(657688),r=e.i(861745),i=e.i(948148),a=e.i(899081),o=e.i(744705),s=e.i(361628),c=e.i(280301);function l(){let e=(0,i.useTranslations)("footer"),l=(0,r.useLocale)(),u=(0,o.usePathname)();return(0,t.jsx)("footer",{"data-aos":"fade-up",className:`main-footer main-fade-in relative mt-auto ${"/products/kardia12l"===u?"pb-s13 md:pb-s11":""}`,children:(0,t.jsxs)("div",{id:"footer-nav",className:"overflow-hidden",children:[(0,t.jsx)("div",{className:"max-w-layout border-primary-100 mx-auto border-t"}),(0,t.jsx)("div",{className:"footer__content pt-s11 mx-auto grid max-w-[1440px] gap-[72px]",children:(0,t.jsxs)("div",{className:"px-s7 xl:px-s11 flex flex-col items-center xl:items-start",children:[(0,t.jsx)("a",{href:"https://kardia.com","aria-label":"Kardia by AliveCor (return to homepage)",className:"block max-w-[215px]",children:(0,t.jsx)(n.default,{src:a.default?.src,alt:"AliveCor Logo",className:"cursor-pointer",width:200,height:100})}),(0,t.jsx)("ul",{className:"gap-s4 mt-s7 mx-auto flex list-none flex-wrap xl:hidden",children:(0,s.getSocialMediaArr)(l)?.map((e,r)=>(0,t.jsx)("li",{className:"block",children:(0,t.jsx)("a",{href:e?.href,target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram profile",className:"text-primary-700 hover/focus:text-primary-900 transition-all duration-500 ease-in-out",children:(0,t.jsx)(n.default,{src:e?.icon,alt:e?.alt,width:24,height:24,className:"cursor-pointer"})})},r))})]})}),(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"footer__grid mb-s6 mx-auto flex max-w-[1440px] items-center justify-between",children:[(0,t.jsx)("ul",{className:"px-s7 xl:px-s11 gap-s4 m-s0 hidden list-none flex-wrap xl:flex",children:(0,s.getSocialMediaArr)(l)?.map((e,r)=>(0,t.jsx)("li",{className:"block",children:(0,t.jsx)("a",{href:e?.href,target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram profile",className:"text-primary-700 hover/focus:text-primary-900 transition-all duration-500 ease-in-out",children:(0,t.jsx)(n.default,{src:e?.icon,alt:e?.alt,width:24,height:24,className:"cursor-pointer"})})},r))}),(0,t.jsx)("ul",{className:"footer_list__items gap-s6 px-s7 xl:px-s11 m-s0 hidden items-center justify-end xl:flex",children:s.footerBottomSAArr?.map((n,r)=>(0,t.jsx)("li",{className:"footer_list footer_nav__closed list-none",children:(0,t.jsx)(c.default,{className:"footer__link text-black-800 font-16",href:n?.href,children:e(n?.label)})},r))})]})}),(0,t.jsx)("div",{className:"footer__grid",children:(0,t.jsx)("div",{className:"py-s8 px-s7 xl:px-s11 items-center",children:(0,t.jsx)("div",{id:"adasc_adapter_code"})})}),(0,t.jsx)("div",{className:"bg-[#F5FAFD]",children:(0,t.jsx)("div",{className:"footer__grid",children:(0,t.jsx)("div",{className:"footer__copyright max-w-content px-s7 xl:px-s11 py-s6 mx-auto",children:(0,t.jsx)("p",{className:"text-primary-600 text-lg",children:e("text")})})})})]})})}e.s(["default",()=>l])}]);

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.