(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4029],{41327:function(t,e,n){"use strict";var r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=function(t,e){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(s){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(6===a[0]&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=e.call(t,u)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},o=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},u=function(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},a=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.AnalyticsProvider=e.useAnalyticsContext=e.AnalyticsContext=void 0;var s=n(57437),c=n(56001),l=n(16463),f=a(n(31877)),d=a(n(82450)),p=n(2265),h=n(69018),v=n(67816),y=n(60962),g="OnetrustConsentModalCallback";function m(t){var e=t.isEnabled,n=t.newsroom,r=t.plausibleDomain,i=t.children;return e&&n&&n.is_plausible_enabled&&n.tracking_policy!==y.TrackingPolicy.DISABLED?(0,s.jsxs)(d.default,{domain:null!=r?r:n.plausible_site_id,scriptProps:{src:"https://atlas.prezly.com/js/script.outbound-links.js","data-api":"https://atlas.prezly.com/api/event"},children:[!1,i]}):(0,s.jsx)(s.Fragment,{children:i})}function b(t){var e=(0,l.usePathname)();return(0,p.useEffect)(function(){var t;null===(t=document.getElementById("onetrust-consent-sdk"))||void 0===t||t.remove(),window.OneTrust&&(window.OneTrust.Init(),setTimeout(function(){var t;null===(t=window.OneTrust)||void 0===t||t.LoadBanner()},1e3))},[e]),(0,s.jsx)("div",{id:"onetrust-cookie-consent-integration",dangerouslySetInnerHTML:{__html:"\n                    ".concat(t.script,'\n                    <script>\n                    window.OptanonWrapper = (function () {\n                      const prev = window.OptanonWrapper || function() {};\n                      return function() {\n                        prev();\n                        document.body.dispatchEvent(new Event("').concat(g,'")); // allow listening to the OptanonWrapper callback from anywhere.\n                      };\n                    })();\n                    </script>')}})}function w(t){var e;return(null===(e=t.analyticsId)||void 0===e?void 0:e.startsWith("GTM-"))?(0,s.jsx)(_,{analyticsId:t.analyticsId}):t.analyticsId?(0,s.jsx)(O,{analyticsId:t.analyticsId}):null}function _(t){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f.default,{id:"google-tag-manager-bootstrap",dangerouslySetInnerHTML:{__html:"\n                            (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n                            new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n                            j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n                            'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n                            })(window,document,'script','dataLayer','".concat(t.analyticsId,"');\n                        ")}}),(0,s.jsx)("noscript",{children:(0,s.jsx)("iframe",{src:"https://www.googletagmanager.com/ns.html?id=".concat(t.analyticsId),height:"0",width:"0",style:{display:"none",visibility:"hidden"}})})]})}function O(t){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f.default,{src:"https://www.googletagmanager.com/gtag/js?id=".concat(t.analyticsId)}),(0,s.jsx)(f.default,{id:"google-tag-manager-bootstrap",dangerouslySetInnerHTML:{__html:"\n                        window.dataLayer = window.dataLayer || [];\n                        function gtag(){dataLayer.push(arguments);}\n                        gtag('js', new Date());\n                        gtag('config', '".concat(t.analyticsId,"');\n                        ")}})]})}function S(){}e.AnalyticsContext=(0,p.createContext)(void 0),e.useAnalyticsContext=function(){var t=(0,p.useContext)(e.AnalyticsContext);if(!t)throw Error("No `AnalyticsProvider` found when calling `useAnalyticsContext`");return t},e.AnalyticsProvider=function(t){var n,a,l,f,d,_,O=t.cdnUrl,x=t.children,E=t.cookie,k=void 0===E?{}:E,j=t.gallery,A=t.ignoreConsent,P=t.integrations,C=t.isEnabled,I=void 0===C||C,T=t.isPlausibleEnabled,M=t.newsroom,N=t.plausibleDomain,L=t.plugins,F=t.segmentWriteKey,D=t.story,R=t.user,z=M||{},U=z.tracking_policy,G=void 0===U?y.TrackingPolicy.DEFAULT:U,J=z.segment_analytics_id,B=void 0===J?F:J,q=z.uuid,V=null!==(n=null==M?void 0:M.onetrust_cookie_consent.is_enabled)&&void 0!==n&&n,K=null!==(l=null===(a=null==M?void 0:M.onetrust_cookie_consent)||void 0===a?void 0:a.category)&&void 0!==l?l:"",Z=null!==(d=null===(f=null==M?void 0:M.onetrust_cookie_consent)||void 0===f?void 0:f.script)&&void 0!==d?d:"",H=o((0,p.useState)(function(){return!!A||(V?(0,h.getOnetrustCookieConsentStatus)(K):(0,h.getConsentCookie)())}),2),W=H[0],$=H[1],Y=o((0,p.useState)(void 0),2),Q=Y[0],X=Y[1];return(0,p.useEffect)(function(){I&&G!==y.TrackingPolicy.DISABLED&&(B||q||console.warn("Warning: You have not provided neither `newsroom`, nor `segmentWriteKey`. The library will not send any events."),function(t){var e,n,a,s;e=this,n=void 0,a=void 0,s=function(){return i(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,c.AnalyticsBrowser.load(r(r({writeKey:t,cdnURL:O},!t&&{cdnSettings:{integrations:{}}}),{plugins:u(u([],o(q?[(0,v.sendEventToPrezlyPlugin)(q),(0,v.normalizePrezlyMetaPlugin)()]:[]),!1),o(L||[]),!1)}),r({cookie:r({domain:document.location.host},k),integrations:P,user:R},!t&&{integrations:{"Segment.io":!1}}))];case 1:return X(o.apply(void 0,[e.sent(),1])[0]),[3,3];case 2:return console.error("Error while loading Analytics",e.sent()),[3,3];case 3:return[2]}})},new(a||(a=Promise))(function(t,r){function i(t){try{u(s.next(t))}catch(t){r(t)}}function o(t){try{u(s.throw(t))}catch(t){r(t)}}function u(e){var n;e.done?t(e.value):((n=e.value)instanceof a?n:new a(function(t){t(n)})).then(i,o)}u((s=s.apply(e,n||[])).next())})}(B||""))},[O,I,JSON.stringify(k),JSON.stringify(P),L,B,G,R,q]),(0,p.useEffect)(function(){A||"boolean"!=typeof W||V||(0,h.setConsentCookie)(W)},[W,A,V]),(0,p.useEffect)(function(){if(!V||!K)return S;function t(){$((0,h.getOnetrustCookieConsentStatus)(K))}return document.body.addEventListener(g,t),function(){document.body.removeEventListener(g,t)}},[V,K]),(0,s.jsxs)(e.AnalyticsContext.Provider,{value:{analytics:Q,consent:W,gallery:j,isEnabled:I,isTrackingCookieAllowed:(0,h.isTrackingCookieAllowed)(W,M),newsroom:M,story:D,setConsent:$,trackingPolicy:G},children:[V&&Z&&(0,s.jsx)(b,{script:Z}),(0,s.jsx)(w,{analyticsId:null!==(_=null==M?void 0:M.google_analytics_id)&&void 0!==_?_:null}),(0,s.jsx)(m,{isEnabled:I||T,newsroom:M,plausibleDomain:N,children:x})]})}},27138:function(t,e,n){"use strict";var r=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u};Object.defineProperty(e,"__esModule",{value:!0}),e.CookieConsentBar=void 0;var i=n(2265),o=n(41327),u=n(31906);e.CookieConsentBar=function(t){var e=t.children,n=r((0,i.useState)(!1),2),a=n[0],s=n[1],c=(0,o.useAnalyticsContext)(),l=c.isEnabled,f=c.newsroom,d=(0,u.useCookieConsent)(),p=d.accept,h=d.reject,v=d.isTrackingCookieAllowed,y=d.isNavigatorSupportsCookies;return((0,i.useEffect)(function(){return s(!0)},[]),a&&l&&y&&null===v&&(null==f||!f.onetrust_cookie_consent.is_enabled))?e({onAccept:p,onReject:h}):null}},33749:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CookieConsentBar=void 0;var r=n(27138);Object.defineProperty(e,"CookieConsentBar",{enumerable:!0,get:function(){return r.CookieConsentBar}})},82912:function(t,e,n){"use strict";var r=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u};Object.defineProperty(e,"__esModule",{value:!0}),e.CookieConsentLink=void 0;var i=n(57437),o=n(2265),u=n(41327),a=n(31906);e.CookieConsentLink=function(t){var e=t.className,n=t.startUsingCookiesLabel,s=t.stopUsingCookiesLabel,c=(0,u.useAnalyticsContext)().isEnabled,l=r((0,o.useState)(!1),2),f=l[0],d=l[1],p=(0,a.useCookieConsent)(),h=p.isTrackingCookieAllowed,v=p.isNavigatorSupportsCookies,y=p.toggle;return((0,o.useEffect)(function(){return d(!0)},[]),f&&c&&v)?(0,i.jsx)("button",{type:"button",className:e,onClick:y,children:h?void 0===s?"Stop using cookies":s:void 0===n?"Start using cookies":n}):null}},106:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CookieConsentLink=void 0;var r=n(82912);Object.defineProperty(e,"CookieConsentLink",{enumerable:!0,get:function(){return r.CookieConsentLink}})},31758:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Tracking=void 0;var r=n(49308),i=n(2265),o=n(90538),u=n(31906),a=n(69018),s=n(30433);e.Tracking=function(){var t=(0,u.useAnalytics)(),e=t.alias,n=t.identify,c=t.track,l=t.user,f=(0,r.useSyncedRef)(e),d=(0,r.useSyncedRef)(n),p=(0,r.useSyncedRef)(c),h=(0,r.useSyncedRef)(l);return(0,i.useEffect)(function(){function t(t){if(t.target instanceof HTMLElement){var e=t.target.closest("a");if(e){var n=new URL(e.href),r=n.hostname!==window.location.hostname,i=n.hostname===s.UPLOADCARE_CDN_HOSTNAME;r&&!i&&c(o.ACTIONS.OUTBOUND_LINK_CLICK,{href:e.href})}}}return document.addEventListener("click",t),function(){return document.removeEventListener("click",t)}},[c]),(0,i.useEffect)(function(){var t=(0,a.getUrlParameters)("utm_").get("id");t&&(0,a.getRecipientInfo)(t).then(function(t){d.current(t.id)}).catch(function(t){console.error(t)})},[f,d,h]),(0,i.useEffect)(function(){var t=window.location.hash.replace("#","").split("-"),e=t.pop(),n=t.join("-");e&&n&&window.setTimeout(function(){var t=document.getElementById("".concat(n,"-").concat(e))||document.querySelector("[data-type='".concat(n,"'][data-id='").concat(e,"']"));t&&t.click()},"image"===n||"gallery-image"===n?500:0)},[p]),null}},30433:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UPLOADCARE_CDN_HOSTNAME=void 0,e.UPLOADCARE_CDN_HOSTNAME="cdn.uc.assets.prezly.com"},66828:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CookieConsentLink=e.CookieConsentBar=e.Tracking=void 0;var r=n(31758);Object.defineProperty(e,"Tracking",{enumerable:!0,get:function(){return r.Tracking}});var i=n(33749);Object.defineProperty(e,"CookieConsentBar",{enumerable:!0,get:function(){return i.CookieConsentBar}});var o=n(106);Object.defineProperty(e,"CookieConsentLink",{enumerable:!0,get:function(){return o.CookieConsentLink}})},90538:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VIEW=e.MEDIA=e.DOWNLOAD=e.ACTIONS=void 0,e.ACTIONS={OUTBOUND_LINK_CLICK:"Outbound link click",SEARCH:"Search",SUBSCRIBE_FORM_SUBMIT:"Subscribe form submit",SWITCH_LANGUAGE:"Switch language"},e.DOWNLOAD={ATTACHMENT:"Attachment download",GALLERY_IMAGE:"Gallery image download",IMAGE:"Image download",MEDIA_GALLERY:"Media gallery download"},e.MEDIA={PLAY:"Media play"},e.VIEW={GALLERY_IMAGE:"Gallery image view",IMAGE:"Image view"}},31906:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(2708),e),i(n(14601),e)},2708:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u};Object.defineProperty(e,"__esModule",{value:!0}),e.useAnalytics=void 0;var o=n(49308),u=n(82450),a=n(2265),s=n(41327);n(69018);var c=n(60962),l=n(75411),f={id:function(){return null},anonymousId:function(){return null}};e.useAnalytics=function(){var t=(0,s.useAnalyticsContext)(),e=t.analytics,n=t.consent,d=t.gallery,p=t.isEnabled,h=t.newsroom,v=t.story,y=t.trackingPolicy,g=(0,u.usePlausible)(),m=h||{uuid:void 0,is_plausible_enabled:!1},b=m.uuid,w=m.is_plausible_enabled,_=null==v?void 0:v.uuid,O=null==d?void 0:d.uuid,S=(0,o.useSyncedRef)(e),x=(0,o.useSyncedRef)(g),E=i((0,o.useLocalStorageValue)("prezly_ajs_deferred_identity"),3),k=E[0],j=E[1],A=E[2],P=(0,l.useQueue)(),C=P.add,I=P.remove,T=P.first,M=(0,a.useCallback)(function(t){return b?r(r({},t),{prezly:r(r(r({newsroom:b},_&&{story:_}),O&&{gallery:O}),y!==c.TrackingPolicy.DEFAULT&&{tracking_policy:y})}):t},[O,b,_,y]),N=(0,a.useCallback)(function(t,e,r){void 0===e&&(e={});var i=M(e);if(y===c.TrackingPolicy.CONSENT_TO_IDENTIFY&&!n){j({userId:t,traits:i}),r&&r();return}C(function(){S.current&&S.current.identify&&S.current.identify(t,i,{},r)})},[C,S,n,j,y,M]),L=(0,a.useCallback)(function(t,e){C(function(){S.current&&S.current.alias&&S.current.alias(t,e)})},[C,S]),F=(0,a.useCallback)(function(t,e,n,r){void 0===n&&(n={});var i=M(n);C(function(){S.current&&S.current.page&&S.current.page(t,e,i,{},r)})},[C,S,M]),D=(0,a.useCallback)(function(t,e,n){void 0===e&&(e={});var r=M(e);C(function(){S.current&&S.current.track&&S.current.track(t,r,{},n),w&&x.current(t,{props:r})})},[C,S,M,w,x]),R=(0,a.useCallback)(function(){return e&&e.user?e.user():f},[e]);return((0,a.useEffect)(function(){e&&T&&(T(),I())},[T,e,I]),(0,a.useEffect)(function(){if(n)k&&(N(k.userId,k.traits),A());else{var t=R().id();t&&(null==k?void 0:k.userId)!==t&&j({userId:t}),R().id(null)}},[n,k,N,R,A,j]),p&&y!==c.TrackingPolicy.DISABLED)?{alias:L,identify:N,newsroom:h,page:F,track:D,user:R}:{alias:function(){},identify:function(){},page:function(){},track:function(){},user:R}}},14601:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useCookieConsent=void 0;var r=n(41327);e.useCookieConsent=function(){var t=(0,r.useAnalyticsContext)(),e=t.consent,n=t.isTrackingCookieAllowed,i=t.setConsent,o=t.newsroom;return{isTrackingCookieAllowed:n,isNavigatorSupportsCookies:"undefined"!=typeof navigator&&navigator.cookieEnabled,accept:function(){var t;if(null==o?void 0:o.onetrust_cookie_consent.is_enabled){null===(t=window.OneTrust)||void 0===t||t.ToggleInfoDisplay();return}i(!0)},reject:function(){var t;if(null==o?void 0:o.onetrust_cookie_consent.is_enabled){null===(t=window.OneTrust)||void 0===t||t.ToggleInfoDisplay();return}i(!1)},toggle:function(){var t;if(null==o?void 0:o.onetrust_cookie_consent.is_enabled){null===(t=window.OneTrust)||void 0===t||t.ToggleInfoDisplay();return}i(!e)}}}},75411:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u},i=this&&this.__spreadArray||function(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.useQueue=void 0;var o=n(2265);e.useQueue=function(t){void 0===t&&(t=[]);var e=r((0,o.useState)(t),2),n=e[0],u=e[1];return{add:(0,o.useCallback)(function(t){u(function(e){return i(i([],r(e),!1),[t],!1)})},[]),remove:(0,o.useCallback)(function(){u(function(t){return t.slice(1)})},[]),get first(){return n[0]},get last(){return n[n.length-1]},get size(){return n.length}}}},44321:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.TrackingPolicy=e.useAnalytics=e.useAnalyticsContext=e.AnalyticsProvider=void 0,i(n(66828),e);var o=n(41327);Object.defineProperty(e,"AnalyticsProvider",{enumerable:!0,get:function(){return o.AnalyticsProvider}}),Object.defineProperty(e,"useAnalyticsContext",{enumerable:!0,get:function(){return o.useAnalyticsContext}}),i(n(90538),e);var u=n(31906);Object.defineProperty(e,"useAnalytics",{enumerable:!0,get:function(){return u.useAnalytics}});var a=n(60962);Object.defineProperty(e,"TrackingPolicy",{enumerable:!0,get:function(){return a.TrackingPolicy}})},31266:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.setConsentCookie=e.getConsentCookie=e.COOKIE_EXPIRATION=e.COOKIE_NAME=void 0;var i=r(n(79933)),o=n(6525);e.COOKIE_NAME="consent",e.COOKIE_EXPIRATION=365,e.getConsentCookie=function(){var t=i.default.get(e.COOKIE_NAME);if(void 0===t)return null;try{return!!JSON.parse(t)}catch(t){return null}},e.setConsentCookie=function(t){var n=(0,o.getCookieConsentDomain)();i.default.remove(e.COOKIE_NAME),i.default.remove(e.COOKIE_NAME,{domain:n}),i.default.set(e.COOKIE_NAME,JSON.stringify(t),{expires:e.COOKIE_EXPIRATION,domain:n})}},24077:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getApiUrl=void 0,e.getApiUrl=function(){return"https://analytics.prezly.com"}},6525:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCookieConsentDomain=void 0,e.getCookieConsentDomain=function(){var t=document.querySelector('meta[name="prezly:cookie_consent_domain"]');return t?t.content:document.location.hostname}},88110:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getOnetrustCookieConsentStatus=void 0,e.getOnetrustCookieConsentStatus=function(t){return"undefined"==typeof window||void 0===window.OnetrustActiveGroups||null===window.OnetrustActiveGroups?null:window.OnetrustActiveGroups.includes(t)}},54655:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function u(t){try{s(r.next(t))}catch(t){o(t)}}function a(t){try{s(r.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(u,a)}s((r=r.apply(t,e||[])).next())})},i=this&&this.__generator||function(t,e){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(s){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(6===a[0]&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=e.call(t,u)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.getRecipientInfo=void 0;var o=n(24077);e.getRecipientInfo=function(t){return r(this,void 0,void 0,function(){var e,n;return i(this,function(r){switch(r.label){case 0:return e=(0,o.getApiUrl)(),[4,fetch("".concat(e,"/recipients?id=").concat(t))];case 1:if(!(n=r.sent()).ok)throw Error("Failed to fetch recipient with id: ".concat(t));return[2,n.json()]}})})}},69018:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(31266),e),i(n(24077),e),i(n(88110),e),i(n(54655),e),i(n(26935),e),i(n(9085),e),i(n(930),e)},92856:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isNavigatorTrackingAllowed=void 0,e.isNavigatorTrackingAllowed=function(){if("undefined"==typeof window)return null;if(!window.navigator.cookieEnabled)return!1;var t=window.navigator.doNotTrack||window.doNotTrack||window.navigator.msDoNotTrack;return"1"!==t&&("0"===t||null)}},26935:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTrackingCookieAllowed=void 0;var r=n(60962),i=n(92856);e.isTrackingCookieAllowed=function(t,e){return(null==e?void 0:e.tracking_policy)!==r.TrackingPolicy.DISABLED&&(null!==t?t:!1!==(0,i.isNavigatorTrackingAllowed)()&&null)}},9085:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=void 0,e.stringify=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.map(function(t){return JSON.stringify(t)}).join(", ")}},930:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getUrlParameters=void 0,e.getUrlParameters=function(t){var e=new URLSearchParams(window.location.search),n=new Map;return e.forEach(function(e,r){e&&"undefined"!==e&&r.startsWith(t)&&n.set(r.replace(t,""),e)}),n}},67816:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sendEventToPrezlyPlugin=e.normalizePrezlyMetaPlugin=void 0;var r=n(30224);Object.defineProperty(e,"normalizePrezlyMetaPlugin",{enumerable:!0,get:function(){return r.normalizePrezlyMetaPlugin}});var i=n(98014);Object.defineProperty(e,"sendEventToPrezlyPlugin",{enumerable:!0,get:function(){return i.sendEventToPrezlyPlugin}})},30224:function(t,e,n){"use strict";var r=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};Object.defineProperty(e,"__esModule",{value:!0}),e.normalizePrezlyMetaPlugin=void 0;var i=n(99719);e.normalizePrezlyMetaPlugin=function(){function t(t){var e=t.event.properties;if(!e||!e.prezly)return t;var n=e.prezly,i=r(e,["prezly"]);return t.updateEvent("prezly",n),t.updateEvent("properties",i),t}return{name:"Normalize Prezly Meta",type:"enrichment",version:i.version,isLoaded:function(){return!0},load:function(){return Promise.resolve()},identify:function(t){var e=t.event.traits;if(!e||!e.prezly)return t;var n=e.prezly,i=r(e,["prezly"]);return t.updateEvent("prezly",n),t.updateEvent("traits",i),t},page:t,track:t}}},98014:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function u(t){try{s(r.next(t))}catch(t){o(t)}}function a(t){try{s(r.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(u,a)}s((r=r.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(s){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(6===a[0]&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=e.call(t,u)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.sendEventToPrezlyPlugin=void 0;var u=n(69018),a=n(99719),s={alias:"/track/a",group:"/track/g",identify:"/track/i",page:"/track/p",track:"/track/t",screen:null};e.sendEventToPrezlyPlugin=function(t){function e(e){return i(this,void 0,void 0,function(){var n,i;return o(this,function(o){return(n=s[e.event.type])&&(i=new Blob([JSON.stringify(r(r({},e.event),{writeKey:t}),null,2)],{type:"application/json"}),navigator.sendBeacon("".concat((0,u.getApiUrl)()).concat(n),i)),[2,e]})})}return{name:"Send events to Prezly Analytics",type:"after",version:a.version,isLoaded:function(){return!0},load:function(){return Promise.resolve()},alias:e,group:e,identify:e,page:e,track:e}}},60962:function(t,e){"use strict";var n,r;Object.defineProperty(e,"__esModule",{value:!0}),e.TrackingPolicy=void 0,(r=n||(e.TrackingPolicy=n={})).DEFAULT="default",r.DISABLED="disabled",r.CONSENT_TO_IDENTIFY="consent-to-identify"},99719:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0,e.version="3.0.0"},49308:function(t,e,n){"use strict";n.r(e),n.d(e,{truthyAndArrayPredicate:function(){return l.wq},truthyOrArrayPredicate:function(){return l.aP},useAsync:function(){return tg},useAsyncAbortable:function(){return t_},useClickOutside:function(){return tD},useConditionalEffect:function(){return c.$},useCounter:function(){return ti},useCustomCompareEffect:function(){return p},useDebouncedCallback:function(){return r.y},useDebouncedEffect:function(){return h},useDebouncedState:function(){return J},useDeepCompareEffect:function(){return A},useDocumentTitle:function(){return tR},useEventListener:function(){return tI},useFirstMountState:function(){return P.Z},useFunctionalState:function(){return B},useHookableRef:function(){return tf.$},useIntersectionObserver:function(){return tk},useIntervalEffect:function(){return U},useIsMounted:function(){return C.t},useIsomorphicLayoutEffect:function(){return I.L},useKeyboardEvent:function(){return tM},useLifecycleLogger:function(){return R},useList:function(){return K},useLocalStorageValue:function(){return th},useMap:function(){return H},useMeasure:function(){return tA.x},useMediaQuery:function(){return tP.a},useMediatedState:function(){return W},useMountEffect:function(){return T.n},useNetworkState:function(){return ts},usePermission:function(){return tc},usePrevious:function(){return $.D},usePreviousDistinct:function(){return Y},useRafCallback:function(){return i.K},useRafEffect:function(){return M},useRafState:function(){return Q},useRerender:function(){return N.S},useResizeObserver:function(){return tj.y},useSafeState:function(){return G.F},useScreenOrientation:function(){return tN},useSessionStorageValue:function(){return tv.U},useSet:function(){return tt},useSyncedRef:function(){return z.x},useThrottledCallback:function(){return s},useThrottledEffect:function(){return L},useThrottledState:function(){return tn},useToggle:function(){return te},useUnmountEffect:function(){return u.z},useUpdateEffect:function(){return F.r},useValidator:function(){return tr},useVibrate:function(){return tl},useWindowSize:function(){return tG}});var r=n(31020),i=n(37767),o=n(2265),u=n(70819),a=function(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function s(t,e,n,r){void 0===r&&(r=!1);var i=(0,o.useRef)(),s=(0,o.useRef)();return(0,u.z)(function(){i.current&&clearTimeout(i.current)}),(0,o.useMemo)(function(){var e=function(o,u){s.current=void 0,t.apply(o,u),i.current=setTimeout(function(){i.current=void 0,!r&&s.current&&(e(s.current.this,s.current.args),s.current=void 0)},n)},o=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(i.current){s.current={args:t,this:this};return}e(this,t)};return Object.defineProperties(o,{length:{value:t.length},name:{value:"".concat(t.name||"anonymous","__throttled__").concat(n)}}),o},a([n,r],e,!0))}var c=n(72870),l=n(58279),f=n(53064),d=function(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function p(t,e,n,r){void 0===n&&(n=f.Zy),void 0===r&&(r=o.useEffect);for(var i=[],u=4;u<arguments.length;u++)i[u-4]=arguments[u];var a=(0,o.useRef)();(void 0===a.current||l.jU&&!n(a.current,e))&&(a.current=e),r.apply(void 0,d([t,a.current],i,!1))}function h(t,e,n,i){void 0===i&&(i=0),(0,o.useEffect)((0,r.y)(t,e,n,i),e)}var v=function(t,e,n){var r=t.length;if(r!==e.length)return!1;for(;r--&&n(t[r],e[r]););return -1===r},y=function(t,e,n){if(t.size!==e.size)return!1;for(var r,i=t.entries();!(r=i.next()).done;)if(!e.has(r.value[0])||!n(r.value[1],e.get(r.value[0])))return!1;return!0},g=function(t,e){if(t.size!==e.size)return!1;for(var n,r=t.values();!(n=r.next()).done;)if(!e.has(n.value))return!1;return!0},m=function(t,e){var n=t.byteLength;if(n!==e.byteLength)return!1;for(;n--&&t.getInt8(n)===e.getInt8(n););return -1===n},b=function(t,e){var n=t.length;if(n!==e.length)return!1;for(;n--&&t[n]===e[n];);return -1===n},w=Object.prototype.hasOwnProperty,_=Object.keys,O=function(t,e,n){var r,i=0;for(r in t)if(w.call(t,r)&&(i++,!w.call(e,r)||!n(t[r],e[r])))return!1;return _(e).length===i},S=Object.prototype,x=S.valueOf,E=S.toString,k=function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){var n=t.constructor;return n===e.constructor&&(n===Array?v(t,e,k):n===Date?t.getTime()===e.getTime():n===RegExp?t.source===e.source&&t.flags===e.flags:n===Map&&t instanceof Map&&e instanceof Map?y(t,e,k):n===Set&&t instanceof Set&&e instanceof Set?g(t,e):n===DataView?m(t,e):n===ArrayBuffer?b(new Uint8Array(t),new Uint8Array(e)):ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)?b(t,e):t.valueOf!==x?t.valueOf()===e.valueOf():t.toString!==E?t.toString()===e.toString():O(t,e,k))}return t!=t&&e!=e},j=function(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function A(t,e,n){void 0===n&&(n=o.useEffect);for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];return p.apply(void 0,j([t,e,k,n],r,!1))}var P=n(31217),C=n(12771),I=n(85803),T=n(13248);function M(t,e){var n=(0,i.K)(t),r=n[0],u=n[1];(0,o.useEffect)(function(){return r(),u},e)}var N=n(47930);function L(t,e,n,r){void 0===r&&(r=!1),(0,o.useEffect)(s(t,e,n,r),e)}var F=n(84903),D=function(){return(D=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function R(t,e){(0,T.n)(function(){return console.log("".concat(t," mounted"),D({},e)),function(){return console.log("".concat(t," unmounted"))}}),(0,F.r)(function(){console.log("".concat(t," updated"),D({},e))},e)}var z=n(76051);function U(t,e){var n=(0,z.x)(t);(0,o.useEffect)(function(){if(e||0===e){var t=setInterval(function(){return n.current()},e);return function(){return clearInterval(t)}}},[e])}var G=n(70813);function J(t,e,n){void 0===n&&(n=0);var i=(0,G.F)(t),o=i[0],u=i[1];return[o,(0,r.y)(u,[],e,n)]}function B(t){var e=(0,G.F)(t),n=e[0],r=e[1],i=(0,z.x)(n);return[(0,o.useCallback)(function(){return i.current},[]),r]}var q=n(30783),V=function(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function K(t){var e=(0,z.x)(t),n=(0,o.useRef)((0,q.f)(e.current)),r=(0,N.S)(),i=(0,o.useMemo)(function(){return{set:function(t){n.current=(0,q.f)(t,n.current),r()},push:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];i.set(function(e){return V(V([],e,!0),t,!0)})},updateAt:function(t,e){i.set(function(n){var r=V([],n,!0);return r[t]=e,r})},insertAt:function(t,e){i.set(function(n){var r=V([],n,!0);return t>=r.length?r[t]=e:r.splice(t,0,e),r})},update:function(t,e){i.set(function(n){return n.map(function(n){return t(n,e)?e:n})})},updateFirst:function(t,e){var r=n.current.findIndex(function(n){return t(n,e)});r>-1&&i.updateAt(r,e)},upsert:function(t,e){var r=n.current.findIndex(function(n){return t(n,e)});r>-1?i.updateAt(r,e):i.push(e)},sort:function(t){i.set(function(e){return V([],e,!0).sort(t)})},filter:function(t,e){i.set(function(n){return V([],n,!0).filter(t,e)})},removeAt:function(t){i.set(function(e){var n=V([],e,!0);return t<n.length&&n.splice(t,1),n})},clear:function(){return i.set([])},reset:function(){return i.set(V([],(0,q.f)(e.current),!0))}}},[e,r]);return[n.current,i]}var Z=Map.prototype;function H(t){var e=(0,o.useRef)(),n=(0,N.S)();if(!e.current){var r=new Map(t);e.current=r,r.set=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Z.set.apply(r,t),n(),r},r.clear=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];Z.clear.apply(r,t),n()},r.delete=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=Z.delete.apply(r,t);return n(),i}}return e.current}function W(t,e){var n=(0,G.F)(function(){return e?e((0,q.f)(t)):t}),r=n[0],i=n[1],u=(0,z.x)(e);return[r,(0,o.useCallback)(function(t){u.current?i(function(e){var n;return null===(n=u.current)||void 0===n?void 0:n.call(u,(0,q.f)(t,e))}):i(t)},[])]}var $=n(13719);function Y(t,e){void 0===e&&(e=l.p2);var n=(0,o.useState)(),r=n[0],i=n[1],u=(0,o.useRef)(t);return(0,F.r)(function(){e(u.current,t)||(i(u.current),u.current=t)},[t]),r}function Q(t){var e=(0,G.F)(t),n=e[0],r=e[1],o=(0,i.K)(r),a=o[0],s=o[1];return(0,u.z)(s),[n,a]}var X=Set.prototype;function tt(t){var e=(0,o.useRef)(),n=(0,N.S)();if(!e.current){var r=new Set(t);e.current=r,r.add=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return X.add.apply(r,t),n(),r},r.clear=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];X.clear.apply(r,t),n()},r.delete=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=X.delete.apply(r,t);return n(),i}}return e.current}function te(t){void 0===t&&(t=!1);var e=(0,G.F)(t),n=e[0],r=e[1];return[n,(0,o.useCallback)(function(t){r(function(e){return void 0===t?!e:!!(0,q.f)(t,e)})},[])]}function tn(t,e,n){void 0===n&&(n=!1);var r=(0,G.F)(t);return[r[0],s(r[1],[],e,n)]}function tr(t,e,n){void 0===n&&(n={isValid:void 0});var r=(0,G.F)(n),i=r[0],u=r[1],a=(0,z.x)(function(){t.length?t(u):u(t())});return(0,o.useEffect)(function(){a.current()},e),[i,(0,o.useCallback)(function(){a.current()},[])]}function ti(t,e,n){void 0===t&&(t=0);var r=W(t,function(t){return void 0!==e&&(t=Math.min(e,t)),void 0!==n&&(t=Math.max(n,t)),t}),i=r[0],u=r[1],a=(0,z.x)(i);return[i,(0,o.useMemo)(function(){return{get:function(){return a.current},set:u,dec:function(t){void 0===t&&(t=1),u(function(e){return e-(0,q.f)(t,e)})},inc:function(t){void 0===t&&(t=1),u(function(e){return e+(0,q.f)(t,e)})},reset:function(e){void 0===e&&(e=t),u(function(t){return(0,q.f)(e,t)})}}},[t,u,a])]}var to=l.jU?window.navigator:void 0,tu=to&&(to.connection||to.mozConnection||to.webkitConnection);function ta(t){var e=null==to?void 0:to.onLine,n=null==t?void 0:t.online;return{online:e,previous:n,since:e!==n?new Date:null==t?void 0:t.since,downlink:null==tu?void 0:tu.downlink,downlinkMax:null==tu?void 0:tu.downlinkMax,effectiveType:null==tu?void 0:tu.effectiveType,rtt:null==tu?void 0:tu.rtt,saveData:null==tu?void 0:tu.saveData,type:null==tu?void 0:tu.type}}function ts(t){var e=(0,G.F)(null!=t?t:ta),n=e[0],r=e[1];return(0,o.useEffect)(function(){var t=function(){r(ta)};return(0,f.on)(window,"online",t,{passive:!0}),(0,f.on)(window,"offline",t,{passive:!0}),tu&&(0,f.on)(tu,"change",t,{passive:!0}),function(){(0,f.S1)(window,"online",t),(0,f.S1)(window,"offline",t),tu&&(0,f.S1)(tu,"change",t)}},[]),n}function tc(t){var e=(0,G.F)("not-requested"),n=e[0],r=e[1];return(0,o.useEffect)(function(){var e={current:null};return r("requested"),navigator.permissions.query(t).then(function(t){var n=function(){r(t.state)};r(t.state),(0,f.on)(t,"change",n,{passive:!0}),e.current=function(){(0,f.S1)(t,"change",n)}}),function(){e.current&&e.current()}},[t.name]),n}var tl=l.jU&&void 0!==navigator.vibrate?function(t,e,n){(0,o.useEffect)(function(){var r;if(t)return navigator.vibrate(e),n&&(r=setInterval(function(){navigator.vibrate(e)},Array.isArray(e)?e.reduce(function(t,e){return t+e},0):e)),function(){navigator.vibrate(0),r&&clearInterval(r)}},[n,e,t])}:l.ZT,tf=n(8731),td=n(42471),tp=!1;try{tp=l.jU&&!!window.localStorage}catch(t){tp=!1}var th=tp?function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n={}),(0,td.$)(localStorage,t,e,n)}:function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n={}),l.jU,[void 0,l.ZT,l.ZT,l.ZT]},tv=n(78011),ty=function(){return(ty=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function tg(t,e){var n=(0,G.F)({status:"not-executed",error:void 0,result:e}),r=n[0],i=n[1],u=(0,o.useRef)(),a=(0,o.useRef)(),s=(0,z.x)({execute:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];a.current=e;var r=t.apply(void 0,e);return u.current=r,i(function(t){return ty(ty({},t),{status:"loading"})}),r.then(function(t){r===u.current&&i(function(e){return ty(ty({},e),{status:"success",error:void 0,result:t})})},function(t){r===u.current&&i(function(e){return ty(ty({},e),{status:"error",error:t})})}),r},reset:function(){i({status:"not-executed",error:void 0,result:e}),u.current=void 0,a.current=void 0}});return[r,(0,o.useMemo)(function(){return{reset:function(){s.current.reset()},execute:function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=s.current).execute.apply(t,e)}}},[]),{promise:u.current,lastArgs:a.current}]}var tm=function(){return(tm=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},tb=function(t,e){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=e.call(t,u)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},tw=function(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function t_(t,e){var n=this,r=(0,o.useRef)(),i=tg(function(){for(var e,i,o,u=[],a=0;a<arguments.length;a++)u[a]=arguments[a];return e=void 0,i=void 0,o=function(){var e,n;return tb(this,function(i){return null===(n=r.current)||void 0===n||n.abort(),e=new AbortController,r.current=e,[2,t.apply(void 0,tw([e.signal],u,!1)).finally(function(){r.current===e&&(r.current=void 0)})]})},new(i||(i=Promise))(function(t,r){function u(t){try{s(o.next(t))}catch(t){r(t)}}function a(t){try{s(o.throw(t))}catch(t){r(t)}}function s(e){var n;e.done?t(e.value):((n=e.value)instanceof i?n:new i(function(t){t(n)})).then(u,a)}s((o=o.apply(n,e||[])).next())})},e),u=i[0],a=i[1],s=i[2];return[u,(0,o.useMemo)(function(){var t={reset:function(){t.abort(),a.reset()},abort:function(){var t;null===(t=r.current)||void 0===t||t.abort()}};return tm(tm({},a),t)},[]),tm(tm({},s),{abortController:r.current})]}var tO=function(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},tS=[0],tx=new Map,tE=function(t){var e,n=null!==(e=t.root)&&void 0!==e?e:document,r=tx.get(n);r||(r=new Map,tx.set(n,r));var i=JSON.stringify([t.rootMargin,t.threshold]),o=r.get(i);if(!o){var u=new Map,a=new IntersectionObserver(function(t){return t.forEach(function(t){var e;return null===(e=u.get(t.target))||void 0===e?void 0:e.forEach(function(e){return setTimeout(function(){return e(t)},0)})})},t);o={observer:a,observe:function(t,e){var n=u.get(t);n||(n=new Set,u.set(t,n),a.observe(t)),n.add(e)},unobserve:function(t,e){var o=u.get(t);!o||(o.delete(e),o.size||(u.delete(t),a.unobserve(t),u.size||(a.disconnect(),r.delete(i),r.size||tx.delete(n))))}},r.set(i,o)}return o};function tk(t,e){var n=void 0===e?{}:e,r=n.threshold,i=void 0===r?tS:r,u=n.root,a=n.rootMargin,s=void 0===a?"0px":a,c=(0,G.F)(),l=c[0],f=c[1];return(0,o.useEffect)(function(){var e=t&&"current"in t?t.current:t;if(e){var n=!0,r=tE({root:u&&"current"in u?u.current:u,rootMargin:s,threshold:i}),o=function(t){n&&f(t)};return r.observe(e,o),function(){n=!1,r.unobserve(e,o)}}},tO([t,u,s],i,!0)),l}var tj=n(63591),tA=n(29195),tP=n(67922),tC=function(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function tI(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=(0,C.t)(),i=(0,z.x)(e[1]),u=(0,o.useMemo)(function(){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];r()&&("function"==typeof i.current?i.current.apply(this,t):"function"==typeof i.current.handleEvent&&i.current.handleEvent.apply(this,t))}},[]);(0,o.useEffect)(function(){var n=t&&(0,f.nr)(t,"current")?t.current:t;if(n){var r=e.slice(2);return n.addEventListener.apply(n,tC([e[0],u],r,!1)),function(){return n.removeEventListener.apply(n,tC([e[0],u],r,!1))}}},[t,e[0]])}var tT=l.jU?window:null;function tM(t,e,n,r){void 0===r&&(r={});var i=r.event,u=r.target,a=r.eventOptions,s=(0,z.x)(e);tI(void 0===u?tT:u,void 0===i?"keydown":i,(0,o.useMemo)(function(){var e="function"==typeof t?t:"string"==typeof t?function(e){return e.key===t}:t?f.cI:f.Vp;return function(t){e(t)&&s.current.call(this,t)}},n),a)}function tN(){return(0,tP.a)("(orientation: portrait)")?"portrait":"landscape"}var tL=function(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},tF=["mousedown","touchstart"];function tD(t,e,n){void 0===n&&(n=tF);var r=(0,z.x)(e),i=(0,z.x)(t);(0,o.useEffect)(function(){function t(t){if(i.current.current){var e=t.target,n=r.current;e&&(!e||i.current.current.contains(e))||n.call(this,t)}}return n.forEach(function(e){return(0,f.on)(document,e,t,{passive:!0})}),function(){n.forEach(function(e){return(0,f.S1)(document,e,t,{passive:!0})})}},tL([],n,!0))}function tR(t,e){void 0===e&&(e={});var n=(0,o.useRef)(l.jU?document.title:""),r=(0,z.x)(e);(0,o.useEffect)(function(){document.title=e.wrapper?e.wrapper(t):t},[t,e.wrapper]),(0,u.z)(function(){r.current.restoreOnUnmount&&(document.title=n.current)})}var tz=new Set,tU=function(){tz.forEach(function(t){t({width:window.innerWidth,height:window.innerHeight})})};function tG(t,e){void 0===t&&(t=Q);var n=(0,P.Z)(),r=t({width:n&&l.jU&&!e?window.innerWidth:0,height:n&&l.jU&&!e?window.innerHeight:0}),i=r[0],u=r[1];return(0,T.n)(function(){e&&u({width:window.innerWidth,height:window.innerHeight})}),(0,o.useEffect)(function(){return 0===tz.size&&window.addEventListener("resize",tU,{passive:!0}),tz.add(u),function(){tz.delete(u),0===tz.size&&window.removeEventListener("resize",tU)}},[u]),i}},72870:function(t,e,n){"use strict";n.d(e,{$:function(){return u}});var r=n(2265),i=n(58279),o=function(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function u(t,e,n,u,a){void 0===u&&(u=i.wq),void 0===a&&(a=r.useEffect);for(var s=[],c=5;c<arguments.length;c++)s[c-5]=arguments[c];a.apply(void 0,o([function(){if(u(n))return t()},e],s,!1))}},31020:function(t,e,n){"use strict";n.d(e,{y:function(){return u}});var r=n(2265),i=n(70819),o=function(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function u(t,e,n,u){void 0===u&&(u=0);var a=(0,r.useRef)(),s=(0,r.useRef)(),c=(0,r.useRef)(),l=function(){a.current&&(clearTimeout(a.current),a.current=void 0),s.current&&(clearTimeout(s.current),s.current=void 0)};return(0,i.z)(l),(0,r.useMemo)(function(){var e=function(){if(c.current){var e=c.current;c.current=void 0,t.apply(e.this,e.args),l()}},r=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];a.current&&clearTimeout(a.current),c.current={args:t,this:this},a.current=setTimeout(e,n),u>0&&!s.current&&(s.current=setTimeout(e,u))};return Object.defineProperties(r,{length:{value:t.length},name:{value:"".concat(t.name||"anonymous","__debounced__").concat(n)}}),r},o([n,u],e,!0))}},31217:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(2265);function i(){var t=(0,r.useRef)(!0);return(0,r.useEffect)(function(){t.current=!1},[]),t.current}},8731:function(t,e,n){"use strict";n.d(e,{$:function(){return o}});var r=n(2265),i=n(76051);function o(t,e,n){var o=(0,i.x)(e),u=(0,i.x)(n);return(0,r.useMemo)(function(){var e=t;return{get current(){return void 0!==u.current?u.current(e):e},set current(val){e=void 0!==o.current?o.current(val):val}}},[])}},12771:function(t,e,n){"use strict";n.d(e,{t:function(){return i}});var r=n(2265);function i(t){void 0===t&&(t=!1);var e=(0,r.useRef)(t),n=(0,r.useCallback)(function(){return e.current},[]);return(0,r.useEffect)(function(){return e.current=!0,function(){e.current=!1}},[]),n}},85803:function(t,e,n){"use strict";n.d(e,{L:function(){return i}});var r=n(2265),i=n(58279).jU?r.useLayoutEffect:r.useEffect},29195:function(t,e,n){"use strict";n.d(e,{x:function(){return a}});var r=n(70813),i=n(8731),o=n(37767),u=n(63591);function a(t){void 0===t&&(t=!0);var e=(0,r.F)(null),n=e[0],a=e[1],s=(0,i.$)(null,function(t){return a(t),t}),c=(0,r.F)(),l=c[0],f=c[1],d=(0,o.K)(function(t){return f(t.contentRect)})[0];return(0,u.y)(n,d,t),[l,s]}},67922:function(t,e,n){"use strict";n.d(e,{a:function(){return l}});var r=n(2265),i=n(47930),o=n(13719),u=n(58279),a=new Map,s=function(t,e){var n=a.get(t);if(!n){var r=matchMedia(t),i=new Set,o=function(){i.forEach(function(t){return t(r.matches)})};r.addEventListener?r.addEventListener("change",o,{passive:!0}):r.addListener(o),n={mql:r,dispatchers:i,listener:o},a.set(t,n)}n.dispatchers.add(e),e(n.mql.matches,!0)},c=function(t,e){var n=a.get(t);if(n){var r=n.mql,i=n.dispatchers,o=n.listener;i.delete(e),i.size||(a.delete(t),r.removeEventListener?r.removeEventListener("change",o):r.removeListener(o))}};function l(t,e){var n=(0,i.S)(),a=(0,o.D)(t),l=(0,r.useRef)(),f=(0,r.useCallback)(function(t,r){l.current!==t&&(l.current=t,(!r||e)&&n())},[e]);return!e&&u.jU&&a!==t&&s(t,f),(0,r.useEffect)(function(){return e&&s(t,f),function(){return c(t,f)}},[t]),l.current}},13248:function(t,e,n){"use strict";n.d(e,{n:function(){return i}});var r=n(2265);function i(t){(0,r.useEffect)(function(){t()},[])}},13719:function(t,e,n){"use strict";n.d(e,{D:function(){return i}});var r=n(2265);function i(t){var e=(0,r.useRef)();return(0,r.useEffect)(function(){e.current=t}),e.current}},37767:function(t,e,n){"use strict";n.d(e,{K:function(){return a}});var r=n(2265),i=n(76051),o=n(70819),u=n(58279);function a(t){var e=(0,i.x)(t),n=(0,r.useRef)(0),a=(0,r.useCallback)(function(){u.jU&&n.current&&(cancelAnimationFrame(n.current),n.current=0)},[]);return(0,o.z)(a),[(0,r.useMemo)(function(){var r=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];u.jU&&(a(),n.current=requestAnimationFrame(function(){e.current.apply(e,t),n.current=0}))};return Object.defineProperties(r,{length:{value:t.length},name:{value:"".concat(t.name||"anonymous","__raf")}}),r},[]),a]}},47930:function(t,e,n){"use strict";n.d(e,{S:function(){return u}});var r=n(2265),i=n(70813),o=function(t){return(t+1)%Number.MAX_SAFE_INTEGER};function u(){var t=(0,i.F)(0)[1];return(0,r.useCallback)(function(){t(o)},[])}},63591:function(t,e,n){"use strict";n.d(e,{y:function(){return a}});var r,i=n(2265),o=n(76051),u=n(58279);function a(t,e,n){void 0===n&&(n=!0);var a=n&&function(){if(u.jU){if(r)return r;var t=new Map,e=new ResizeObserver(function(e){e.forEach(function(e){var n;return null===(n=t.get(e.target))||void 0===n?void 0:n.forEach(function(t){return setTimeout(function(){return t(e)},0)})})});return r={observer:e,subscribe:function(n,r){var i=t.get(n);i||(i=new Set,t.set(n,i),e.observe(n)),i.add(r)},unsubscribe:function(n,r){var i=t.get(n);i&&(i.delete(r),i.size||(t.delete(n),e.unobserve(n)))}}}}(),s=(0,o.x)(e),c=t&&"current"in t?t.current:t;(0,i.useEffect)(function(){var e=t&&"current"in t?t.current:t;if(a&&e){var n=!0,r=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n&&s.current.apply(s,t)};return a.subscribe(e,r),function(){n=!1,a.unsubscribe(e,r)}}},[c,a])}},70813:function(t,e,n){"use strict";n.d(e,{F:function(){return o}});var r=n(2265),i=n(12771);function o(t){var e=(0,r.useState)(t),n=e[0],o=e[1],u=(0,i.t)(!0);return[n,(0,r.useCallback)(function(t){u()&&o(t)},[])]}},78011:function(t,e,n){"use strict";n.d(e,{U:function(){return u}});var r=n(42471),i=n(58279),o=!1;try{o=i.jU&&!!window.sessionStorage}catch(t){o=!1}var u=o?function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n={}),(0,r.$)(sessionStorage,t,e,n)}:function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n={}),i.jU,[void 0,i.ZT,i.ZT,i.ZT]}},42471:function(t,e,n){"use strict";n.d(e,{$:function(){return v}});var r=n(2265),i=n(76051),o=n(31217),u=n(70813),a=n(13719),s=n(13248),c=n(72870),l=n(84903),f=n(85803),d=n(30783),p=n(58279),h=n(53064);function v(t,e,n,v){void 0===n&&(n=null),void 0===v&&(v={});var b=v.isolated,w=v.initializeWithStorageValue,_=void 0===w||w,O=v.handleStorageEvent,S=void 0===O||O,x=v.storeDefaultValue,E=void 0!==x&&x;p.jU||(E=!1,_=!1,S=!1);var k=(0,i.x)({fetchVal:function(){return m(t.getItem(e),n)},storeVal:function(n){var r=g(n);return!!r&&(t.setItem(e,r),!0)},removeVal:function(){t.removeItem(e)},setVal:function(t){C(m(t,n))},fetchState:function(){var t=k.current.fetchVal();return C(t),t!==T.current?t:null},setState:function(t){C(null===t?n:t)}}),j=(0,o.Z)(),A=(0,u.F)(_&&j?k.current.fetchVal():void 0),P=A[0],C=A[1],I=(0,a.D)(P),T=(0,i.x)(P),M=(0,i.x)(e),N=(0,i.x)(b);return(0,s.n)(function(){_||k.current.fetchState()}),(0,c.$)(function(){k.current.storeVal(n)},void 0,[I!==P,E&&P===n&&null!==n]),(0,l.r)(function(){k.current.fetchState()},[e]),(0,f.L)(function(){if(S){var e=function(e){e.storageArea===t&&e.key===M.current&&k.current.setVal(e.newValue)};return(0,h.on)(window,"storage",e,{passive:!0}),function(){(0,h.S1)(window,"storage",e)}}},[S]),(0,f.L)(function(){if(!b){var n=y.get(t);n||(n=new Map,y.set(t,n));var r=n.get(e);r||(r=new Set,n.set(e,r));var i=k.current.setState;return r.add(i),function(){null==r||r.delete(i)}}},[b,e]),[P,(0,r.useCallback)(function(e){if(p.jU){var n,r,i=(0,d.f)(e,T.current);k.current.storeVal(i)&&(k.current.setState(i),N.current||null===(r=null===(n=y.get(t))||void 0===n?void 0:n.get(M.current))||void 0===r||r.forEach(function(t){t!==k.current.setState&&t(i)}))}},[]),(0,r.useCallback)(function(){var e,n;p.jU&&(k.current.removeVal(),k.current.setState(null),N.current||null===(n=null===(e=y.get(t))||void 0===e?void 0:e.get(M.current))||void 0===n||n.forEach(function(t){t!==k.current.setState&&t(null)}))},[]),(0,r.useCallback)(function(){if(p.jU){var e,n,r=k.current.fetchState();null===r||N.current||null===(n=null===(e=y.get(t))||void 0===e?void 0:e.get(M.current))||void 0===n||n.forEach(function(t){t!==k.current.setState&&t(r)})}},[])]}var y=new Map,g=function(t){if(null===t)return console.warn("'null' is not a valid data for useStorageValue hook, this operation will take no effect"),null;try{return JSON.stringify(t)}catch(t){return console.warn(t),null}},m=function(t,e){if(null===t)return e;try{return JSON.parse(t)}catch(t){return console.warn(t),e}}},76051:function(t,e,n){"use strict";n.d(e,{x:function(){return i}});var r=n(2265);function i(t){var e=(0,r.useRef)(t);return e.current=t,(0,r.useMemo)(function(){return Object.freeze({get current(){return e.current}})},[])}},70819:function(t,e,n){"use strict";n.d(e,{z:function(){return o}});var r=n(2265),i=n(76051);function o(t){var e=(0,i.x)(t);(0,r.useEffect)(function(){return function(){e.current()}},[])}},84903:function(t,e,n){"use strict";n.d(e,{r:function(){return u}});var r=n(2265),i=n(31217),o=n(58279);function u(t,e){var n=(0,i.Z)();(0,r.useEffect)(n?o.ZT:t,e)}},58279:function(t,e,n){"use strict";n.d(e,{ZT:function(){return r},aP:function(){return a},jU:function(){return i},p2:function(){return o},wq:function(){return u}});var r=function(){},i="undefined"!=typeof window&&"undefined"!=typeof navigator&&"undefined"!=typeof document,o=function(t,e){return t===e},u=function(t){return t.every(Boolean)},a=function(t){return t.some(Boolean)}},53064:function(t,e,n){"use strict";function r(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t&&t.addEventListener&&t.addEventListener.apply(t,e)}function i(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t&&t.removeEventListener&&t.removeEventListener.apply(t,e)}n.d(e,{S1:function(){return i},Vp:function(){return a},Zy:function(){return s},cI:function(){return u},nr:function(){return o},on:function(){return r}});var o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},u=function(){return!0},a=function(){return!1},s=function(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}},30783:function(t,e,n){"use strict";function r(t,e){return"function"==typeof t?t(e):t}n.d(e,{f:function(){return r}})},31115:function(t,e,n){"use strict";function r(t,e){return new Promise(function(n,r){var i=setTimeout(function(){r(Error("Promise timed out"))},e);t.then(function(t){return clearTimeout(i),n(t)}).catch(r)})}function i(t,e,n){var i=function(){try{return Promise.resolve(e(t))}catch(t){return Promise.reject(t)}};return new Promise(function(t){return setTimeout(t,n)}).then(function(){return r(i(),1e3)}).catch(function(e){null==t||t.log("warn","Callback Error",{error:e}),null==t||t.stats.increment("callback_error")}).then(function(){return t})}n.d(e,{FJ:function(){return r},UI:function(){return i}})},63882:function(t,e,n){"use strict";n.d(e,{Y:function(){return s},_:function(){return c}});var r=n(49668),i=n(91472),o=n(11735),u=function(){function t(){this._logs=[]}return t.prototype.log=function(t,e,n){var r=new Date;this._logs.push({level:t,message:e,time:r,extras:n})},Object.defineProperty(t.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),t.prototype.flush=function(){if(this.logs.length>1){var t=this._logs.reduce(function(t,e){var n,r,i,u=(0,o.pi)((0,o.pi)({},e),{json:JSON.stringify(e.extras,null," "),extras:e.extras});delete u.time;var a=null!==(i=null===(r=e.time)||void 0===r?void 0:r.toISOString())&&void 0!==i?i:"";return t[a]&&(a="".concat(a,"-").concat(Math.random())),(0,o.pi)((0,o.pi)({},t),((n={})[a]=u,n))},{});console.table?console.table(t):console.log(t)}else this.logs.forEach(function(t){var e=t.level,n=t.message,r=t.extras;"info"===e||"debug"===e?console.log(n,null!=r?r:""):console[e](n,null!=r?r:"")});this._logs=[]},t}(),a=n(48710),s=function(t){var e,n,r;this.retry=null===(e=t.retry)||void 0===e||e,this.type=null!==(n=t.type)&&void 0!==n?n:"plugin Error",this.reason=null!==(r=t.reason)&&void 0!==r?r:""},c=function(){function t(t,e,n,i){void 0===e&&(e=(0,r.v4)()),void 0===n&&(n=new a.i),void 0===i&&(i=new u),this.attempts=0,this.event=t,this._id=e,this.logger=i,this.stats=n}return t.system=function(){},t.prototype.isSame=function(t){return t.id===this.id},t.prototype.cancel=function(t){if(t)throw t;throw new s({reason:"Context Cancel"})},t.prototype.log=function(t,e,n){this.logger.log(t,e,n)},Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),t.prototype.updateEvent=function(t,e){var n;if("integrations"===t.split(".")[0]){var r=t.split(".")[1];if((null===(n=this.event.integrations)||void 0===n?void 0:n[r])===!1)return this.event}return(0,i.N)(this.event,t,e),this.event},t.prototype.failedDelivery=function(){return this._failedDelivery},t.prototype.setFailedDelivery=function(t){this._failedDelivery=t},t.prototype.logs=function(){return this.logger.logs},t.prototype.flush=function(){this.logger.flush(),this.stats.flush()},t.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},t}()},3518:function(t,e,n){"use strict";n.d(e,{M:function(){return o},Z:function(){return u}});var r=n(11735),i=n(52823),o="onRemoveFromFuture",u=function(t){function e(e,n,r){var i=t.call(this)||this;return i.future=[],i.maxAttempts=e,i.queue=n,i.seen=null!=r?r:{},i}return(0,r.ZT)(e,t),e.prototype.push=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.map(function(e){return!(t.updateAttempts(e)>t.maxAttempts||t.includes(e))&&(t.queue.push(e),!0)});return this.queue=this.queue.sort(function(e,n){return t.getAttempts(e)-t.getAttempts(n)}),r},e.prototype.pushWithBackoff=function(t){var e,n,r,i,u=this;if(0===this.getAttempts(t))return this.push(t)[0];var a=this.updateAttempts(t);return!(a>this.maxAttempts||this.includes(t))&&(setTimeout(function(){u.queue.push(t),u.future=u.future.filter(function(e){return e.id!==t.id}),u.emit(o)},(n=(e={attempt:a-1}).minTimeout,Math.min((Math.random()+1)*(void 0===n?500:n)*Math.pow(void 0===(r=e.factor)?2:r,e.attempt),void 0===(i=e.maxTimeout)?1/0:i))),this.future.push(t),!0)},e.prototype.getAttempts=function(t){var e;return null!==(e=this.seen[t.id])&&void 0!==e?e:0},e.prototype.updateAttempts=function(t){return this.seen[t.id]=this.getAttempts(t)+1,this.getAttempts(t)},e.prototype.includes=function(t){return this.queue.includes(t)||this.future.includes(t)||!!this.queue.find(function(e){return e.id===t.id})||!!this.future.find(function(e){return e.id===t.id})},e.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(e.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),e}(i.Q)},54314:function(t,e,n){"use strict";n.d(e,{a:function(){return o},z:function(){return u}});var r=n(11735),i=n(63882);function o(t,e){t.log("debug","plugin",{plugin:e.name});var n=new Date().getTime(),o=e[t.event.type];return void 0===o?Promise.resolve(t):(function(t){return(0,r.mG)(this,void 0,void 0,function(){return(0,r.Jh)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,t()];case 1:return[2,e.sent()];case 2:return[2,Promise.reject(e.sent())];case 3:return[2]}})})})(function(){return o.apply(e,[t])}).then(function(t){var r=new Date().getTime()-n;return t.stats.gauge("plugin_time",r,["plugin:".concat(e.name)]),t}).catch(function(n){if(n instanceof i.Y&&"middleware_cancellation"===n.type)throw n;return n instanceof i.Y?t.log("warn",n.type,{plugin:e.name,error:n}):(t.log("error","plugin Error",{plugin:e.name,error:n}),t.stats.increment("plugin_error",1,["plugin:".concat(e.name)])),n})}function u(t,e){return o(t,e).then(function(e){if(e instanceof i._)return e;t.log("debug","Context canceled"),t.stats.increment("context_canceled"),t.cancel(e)})}},48710:function(t,e,n){"use strict";n.d(e,{i:function(){return o},s:function(){return i}});var r=n(11735),i=function(){function t(){this.metrics=[]}return t.prototype.increment=function(t,e,n){void 0===e&&(e=1),this.metrics.push({metric:t,value:e,tags:null!=n?n:[],type:"counter",timestamp:Date.now()})},t.prototype.gauge=function(t,e,n){this.metrics.push({metric:t,value:e,tags:null!=n?n:[],type:"gauge",timestamp:Date.now()})},t.prototype.flush=function(){var t=this.metrics.map(function(t){return(0,r.pi)((0,r.pi)({},t),{tags:t.tags.join(",")})});console.table?console.table(t):console.log(t),this.metrics=[]},t.prototype.serialize=function(){return this.metrics.map(function(t){return{m:t.metric,v:t.value,t:t.tags,k:({gauge:"g",counter:"c"})[t.type],e:t.timestamp}})},t}(),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.gauge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},e.prototype.increment=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},e.prototype.flush=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},e.prototype.serialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return[]},e}(i)},44501:function(t,e,n){"use strict";function r(t){return"string"==typeof t}function i(t){return"number"==typeof t}function o(t){return"function"==typeof t}function u(t){return null!=t}function a(t){return"object"===Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}n.d(e,{Gg:function(){return u},HD:function(){return r},PO:function(){return a},hj:function(){return i},mf:function(){return o}})},26747:function(t,e,n){"use strict";n.d(e,{d:function(){return r}});var r=function(){var t,e,n=!1,r=new Promise(function(r,i){t=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n=!0,r.apply(void 0,t)},e=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n=!0,i.apply(void 0,t)}});return{resolve:t,reject:e,promise:r,isSettled:function(){return n}}}},52823:function(t,e,n){"use strict";n.d(e,{Q:function(){return r}});var r=function(){function t(t){var e;this.callbacks={},this.warned=!1,this.maxListeners=null!==(e=null==t?void 0:t.maxListeners)&&void 0!==e?e:10}return t.prototype.warnIfPossibleMemoryLeak=function(t){!this.warned&&this.maxListeners&&this.callbacks[t].length>this.maxListeners&&(console.warn("Event Emitter: Possible memory leak detected; ".concat(String(t)," has exceeded ").concat(this.maxListeners," listeners.")),this.warned=!0)},t.prototype.on=function(t,e){return this.callbacks[t]?(this.callbacks[t].push(e),this.warnIfPossibleMemoryLeak(t)):this.callbacks[t]=[e],this},t.prototype.once=function(t,e){var n=this,r=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n.off(t,r),e.apply(n,i)};return this.on(t,r),this},t.prototype.off=function(t,e){var n,r=(null!==(n=this.callbacks[t])&&void 0!==n?n:[]).filter(function(t){return t!==e});return this.callbacks[t]=r,this},t.prototype.emit=function(t){for(var e,n=this,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return(null!==(e=this.callbacks[t])&&void 0!==e?e:[]).forEach(function(t){t.apply(n,r)}),this},t}()},20045:function(t,e,n){"use strict";n.d(e,{G:function(){return i},s:function(){return o}});var r=n(38550);function i(){return!(0,r.j)()||window.navigator.onLine}function o(){return!i()}},21713:function(t,e,n){"use strict";n.d(e,{U:function(){return r}});var r="api.segment.io/v1"},30606:function(t,e,n){"use strict";n.d(e,{Y:function(){return i.Y},_:function(){return u}});var r=n(11735),i=n(63882),o=n(95453),u=function(t){function e(e,n){return t.call(this,e,n,new o.j)||this}return(0,r.ZT)(e,t),e.system=function(){return new this({type:"track",event:"system"})},e}(i._)},38550:function(t,e,n){"use strict";function r(){return"undefined"!=typeof window}function i(){return!r()}n.d(e,{j:function(){return r},s:function(){return i}})},70042:function(t,e,n){"use strict";function r(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}}n.d(e,{a:function(){return r}})},95453:function(t,e,n){"use strict";n.d(e,{j:function(){return p}});var r,i=n(11735),o=n(48710),u=n(47550),a=n(86461),s=n(41706),c=n(21713),l=function(t,e,n){var r=e.reduce(function(t,e){var n=e.split(":"),r=n[0],i=n[1];return t[r]=i,t},{});return{type:"Counter",metric:t,value:1,tags:(0,i.pi)((0,i.pi)({},r),{library:"analytics.js",library_version:"web"===n?"next-".concat(a.i):"npm:next-".concat(a.i)})}};function f(t){console.error("Error sending segment performance metrics",t)}var d=function(){function t(t){var e,n,r,i,o,u=this;if(this.host=null!==(e=null==t?void 0:t.host)&&void 0!==e?e:c.U,this.sampleRate=null!==(n=null==t?void 0:t.sampleRate)&&void 0!==n?n:1,this.flushTimer=null!==(r=null==t?void 0:t.flushTimer)&&void 0!==r?r:3e4,this.maxQueueSize=null!==(i=null==t?void 0:t.maxQueueSize)&&void 0!==i?i:20,this.protocol=null!==(o=null==t?void 0:t.protocol)&&void 0!==o?o:"https",this.queue=[],this.sampleRate>0){var a=!1,s=function(){a||(a=!0,u.flush().catch(f),a=!1,setTimeout(s,u.flushTimer))};s()}}return t.prototype.increment=function(t,e){if(!(!t.includes("analytics_js.")||0===e.length||Math.random()>this.sampleRate)&&!(this.queue.length>=this.maxQueueSize)){var n=l(t,e,(0,s.B)());this.queue.push(n),t.includes("error")&&this.flush().catch(f)}},t.prototype.flush=function(){return(0,i.mG)(this,void 0,void 0,function(){var t=this;return(0,i.Jh)(this,function(e){switch(e.label){case 0:if(this.queue.length<=0)return[2];return[4,this.send().catch(function(e){f(e),t.sampleRate=0})];case 1:return e.sent(),[2]}})})},t.prototype.send=function(){return(0,i.mG)(this,void 0,void 0,function(){var t,e,n;return(0,i.Jh)(this,function(r){return t={series:this.queue},this.queue=[],e={"Content-Type":"text/plain"},n="".concat(this.protocol,"://").concat(this.host,"/m"),[2,(0,u.h)(n,{headers:e,body:JSON.stringify(t),method:"POST"})]})})},t}(),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e.initRemoteMetrics=function(t){r=new d(t)},e.prototype.increment=function(e,n,i){t.prototype.increment.call(this,e,n,i),null==r||r.increment(e,null!=i?i:[])},e}(o.s)},10518:function(t,e,n){"use strict";function r(t,e){var n=e.methodName,r=e.integrationName,i=e.type,o=e.didError;t.stats.increment("analytics_js.integration.invoke".concat(void 0!==o&&o?".error":""),1,["method:".concat(n),"integration_name:".concat(r),"type:".concat(i)])}n.d(e,{z:function(){return r}})},86461:function(t,e,n){"use strict";n.d(e,{i:function(){return r}});var r="1.66.0"},56001:function(t,e,n){"use strict";n.r(e),n.d(e,{Analytics:function(){return tp},AnalyticsBrowser:function(){return tV},AnalyticsNode:function(){return tK},Context:function(){return d._},ContextCancelation:function(){return d.Y},EventFactory:function(){return k},Group:function(){return W},NullAnalytics:function(){return th},UniversalStorage:function(){return F},User:function(){return Z},getGlobalAnalytics:function(){return Q.wI},loadLegacySettings:function(){return tq}});var r,i,o=n(11735),u=n(44501);function a(t,e,n,r){var i,o=[t,e,n,r],a=(0,u.PO)(t)?t.event:t;if(!a||!(0,u.HD)(a))throw Error("Event missing");var s=(0,u.PO)(t)?null!==(i=t.properties)&&void 0!==i?i:{}:(0,u.PO)(e)?e:{},c={};return(0,u.mf)(n)||(c=null!=n?n:{}),(0,u.PO)(t)&&!(0,u.mf)(e)&&(c=null!=e?e:{}),[a,s,c,o.find(u.mf)]}function s(t,e,n,r,i){var o,a,s=null,c=null,l=[t,e,n,r,i],f=l.filter(u.HD);void 0!==f[0]&&void 0!==f[1]&&(s=f[0],c=f[1]),1===f.length&&(s=null,c=f[0]);var d=l.find(u.mf),p=l.filter(function(t){return null===c?(0,u.PO)(t):(0,u.PO)(t)||null===t}),h=null!==(o=p[0])&&void 0!==o?o:{},v=null!==(a=p[1])&&void 0!==a?a:{};return[s,c,h,v,d]}var c=function(t){return function(){for(var e,n,r,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];for(var a={},s=["callback","options","traits","id"],c=0;c<i.length;c++){var l=i[c],f=s.pop();if("id"===f){if((0,u.HD)(l)||(0,u.hj)(l)){a.id=l.toString();continue}if(null==l)continue;f=s.pop()}if(("traits"===f||"options"===f)&&(null==l||(0,u.PO)(l))&&(a[f]=l),(0,u.mf)(l)){a.callback=l;break}}return[null!==(e=a.id)&&void 0!==e?e:t.id(),null!==(n=a.traits)&&void 0!==n?n:{},null!==(r=a.options)&&void 0!==r?r:{},a.callback]}};function l(t,e,n,r){(0,u.hj)(t)&&(t=t.toString()),(0,u.hj)(e)&&(e=e.toString());var i=[t,e,n,r],o=i.filter(u.HD),a=o[0],s=void 0===a?t:a,c=o[1],l=i.filter(u.PO)[0];return[s,void 0===c?null:c,void 0===l?{}:l,i.find(u.mf)]}var f=n(20045),d=n(30606),p=n(31115),h=n(52823),v=n(49668),y=n(91472),g=n(25267),m=n.n(g),b=function(t,e,n,r,i,o){return{__t:"bpc",c:e,p:r,u:t,s:n,t:i,r:o}},w=Object.keys(b("","","","","","")),_=function(t){var e=t.indexOf("#");return -1===e?t:t.slice(0,e)},O=function(t){try{return new URL(t).pathname}catch(e){return"/"===t[0]?t:"/"+t}},S=function(t){var e=t.c,n=t.p,r=t.s,i=t.u,o=t.r,u=t.t,a=e?O(e):n,s=e?e.indexOf("?")>-1?e:e+r:_(i);return{path:a,referrer:o,search:r,title:u,url:s}},x=function(){var t=document.querySelector("link[rel='canonical']");return b(location.href,t&&t.getAttribute("href")||void 0,location.search,location.pathname,document.title,document.referrer)},E=function(t,e){void 0===e&&(e=S(x()));var n,r,i,u=t.context;"page"===t.type&&(i=t.properties&&(n=t.properties,r=Object.keys(e),Object.assign.apply(Object,(0,o.ev)([{}],r.map(function(t){var e;if(n&&Object.prototype.hasOwnProperty.call(n,t))return(e={})[t]=n[t],e}),!1))),t.properties=(0,o.pi)((0,o.pi)((0,o.pi)({},e),t.properties),t.name?{name:t.name}:{})),u.page=(0,o.pi)((0,o.pi)((0,o.pi)({},e),i),u.page)},k=function(){function t(t){this.user=t}return t.prototype.track=function(t,e,n,r,i){return this.normalize((0,o.pi)((0,o.pi)({},this.baseEvent()),{event:t,type:"track",properties:e,options:(0,o.pi)({},n),integrations:(0,o.pi)({},r)}),i)},t.prototype.page=function(t,e,n,r,i,u){var a,s={type:"page",properties:(0,o.pi)({},n),options:(0,o.pi)({},r),integrations:(0,o.pi)({},i)};return null!==t&&(s.category=t,s.properties=null!==(a=s.properties)&&void 0!==a?a:{},s.properties.category=t),null!==e&&(s.name=e),this.normalize((0,o.pi)((0,o.pi)({},this.baseEvent()),s),u)},t.prototype.screen=function(t,e,n,r,i,u){var a={type:"screen",properties:(0,o.pi)({},n),options:(0,o.pi)({},r),integrations:(0,o.pi)({},i)};return null!==t&&(a.category=t),null!==e&&(a.name=e),this.normalize((0,o.pi)((0,o.pi)({},this.baseEvent()),a),u)},t.prototype.identify=function(t,e,n,r,i){return this.normalize((0,o.pi)((0,o.pi)({},this.baseEvent()),{type:"identify",userId:t,traits:e,options:(0,o.pi)({},n),integrations:(0,o.pi)({},r)}),i)},t.prototype.group=function(t,e,n,r,i){return this.normalize((0,o.pi)((0,o.pi)({},this.baseEvent()),{type:"group",traits:e,options:(0,o.pi)({},n),integrations:(0,o.pi)({},r),groupId:t}),i)},t.prototype.alias=function(t,e,n,r,i){var u={userId:t,type:"alias",options:(0,o.pi)({},n),integrations:(0,o.pi)({},r)};return(null!==e&&(u.previousId=e),void 0===t)?this.normalize((0,o.pi)((0,o.pi)({},u),this.baseEvent())):this.normalize((0,o.pi)((0,o.pi)({},this.baseEvent()),u),i)},t.prototype.baseEvent=function(){var t={integrations:{},options:{}},e=this.user;return e.id()&&(t.userId=e.id()),e.anonymousId()&&(t.anonymousId=e.anonymousId()),t},t.prototype.context=function(t){var e,n,r,i=["integrations","anonymousId","timestamp","userId"],o=null!==(e=t.options)&&void 0!==e?e:{};delete o.integrations;var u=Object.keys(o),a=null!==(r=null===(n=t.options)||void 0===n?void 0:n.context)&&void 0!==r?r:{},s={};return u.forEach(function(t){"context"!==t&&(i.includes(t)?(0,y.N)(s,t,o[t]):(0,y.N)(a,t,o[t]))}),[a,s]},t.prototype.normalize=function(t,e){(null===(n=t.options)||void 0===n?void 0:n.anonymousId)&&this.user.anonymousId(t.options.anonymousId);var n,r,i,u=Object.keys(null!==(r=t.integrations)&&void 0!==r?r:{}).reduce(function(e,n){var r,i;return(0,o.pi)((0,o.pi)({},e),((r={})[n]=!!(null===(i=t.integrations)||void 0===i?void 0:i[n]),r))},{}),a=(0,o.pi)((0,o.pi)({},u),null===(i=t.options)||void 0===i?void 0:i.integrations),s=this.context(t),c=s[0],l=s[1];t.options;var f=(0,o._T)(t,["options"]),d=(0,o.pi)((0,o.pi)((0,o.pi)((0,o.pi)({timestamp:new Date},f),{context:c,integrations:a}),l),{messageId:"ajs-next-"+m().hash(JSON.stringify(t)+(0,v.v4)())});return E(d,e),d},t}(),j=n(73380),A=n(3518),P=n(63882),C=function(){var t,e,n=0;return{done:function(){return t},run:function(r){var i=r();return"object"==typeof i&&null!==i&&"then"in i&&"function"==typeof i.then&&(1==++n&&(t=new Promise(function(t){return e=t})),i.finally(function(){return 0==--n&&e()})),i}}},I=n(54314),T=function(t){function e(e){return t.call(this,"string"==typeof e?new j.$(4,e):e)||this}return(0,o.ZT)(e,t),e.prototype.flush=function(){return(0,o.mG)(this,void 0,void 0,function(){return(0,o.Jh)(this,function(e){return(0,f.s)()?[2,[]]:[2,t.prototype.flush.call(this)]})})},e}(function(t){function e(e){var n=t.call(this)||this;return n.criticalTasks=C(),n.plugins=[],n.failedInitializations=[],n.flushing=!1,n.queue=e,n.queue.on(A.M,function(){n.scheduleFlush(0)}),n}return(0,o.ZT)(e,t),e.prototype.register=function(t,e,n){return(0,o.mG)(this,void 0,void 0,function(){var r=this;return(0,o.Jh)(this,function(i){switch(i.label){case 0:if(!("destination"===e.type&&"Segment.io"!==e.name))return[3,1];return e.load(t,n).catch(function(n){r.failedInitializations.push(e.name),r.emit("initialization_failure",e),console.warn(e.name,n),t.log("warn","Failed to load destination",{plugin:e.name,error:n}),r.plugins=r.plugins.filter(function(t){return t===e})}),[3,3];case 1:return[4,e.load(t,n)];case 2:i.sent(),i.label=3;case 3:return this.plugins.push(e),[2]}})})},e.prototype.deregister=function(t,e,n){return(0,o.mG)(this,void 0,void 0,function(){var r;return(0,o.Jh)(this,function(i){switch(i.label){case 0:if(i.trys.push([0,3,,4]),!e.unload)return[3,2];return[4,Promise.resolve(e.unload(t,n))];case 1:i.sent(),i.label=2;case 2:return this.plugins=this.plugins.filter(function(t){return t.name!==e.name}),[3,4];case 3:return r=i.sent(),t.log("warn","Failed to unload destination",{plugin:e.name,error:r}),[3,4];case 4:return[2]}})})},e.prototype.dispatch=function(t){return(0,o.mG)(this,void 0,void 0,function(){var e;return(0,o.Jh)(this,function(n){return t.log("debug","Dispatching"),t.stats.increment("message_dispatched"),this.queue.push(t),e=this.subscribeToDelivery(t),this.scheduleFlush(0),[2,e]})})},e.prototype.subscribeToDelivery=function(t){return(0,o.mG)(this,void 0,void 0,function(){var e=this;return(0,o.Jh)(this,function(n){return[2,new Promise(function(n){var r=function(i,o){i.isSame(t)&&(e.off("flush",r),n(i))};e.on("flush",r)})]})})},e.prototype.dispatchSingle=function(t){return(0,o.mG)(this,void 0,void 0,function(){var e=this;return(0,o.Jh)(this,function(n){return t.log("debug","Dispatching"),t.stats.increment("message_dispatched"),this.queue.updateAttempts(t),t.attempts=1,[2,this.deliver(t).catch(function(n){return e.enqueuRetry(n,t)?e.subscribeToDelivery(t):(t.setFailedDelivery({reason:n}),t)})]})})},e.prototype.isEmpty=function(){return 0===this.queue.length},e.prototype.scheduleFlush=function(t){var e=this;void 0===t&&(t=500),this.flushing||(this.flushing=!0,setTimeout(function(){e.flush().then(function(){setTimeout(function(){e.flushing=!1,e.queue.length&&e.scheduleFlush(0)},0)})},t))},e.prototype.deliver=function(t){return(0,o.mG)(this,void 0,void 0,function(){var e,n,r,i;return(0,o.Jh)(this,function(o){switch(o.label){case 0:return[4,this.criticalTasks.done()];case 1:o.sent(),e=Date.now(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,this.flushOne(t)];case 3:return t=o.sent(),n=Date.now()-e,this.emit("delivery_success",t),t.stats.gauge("delivered",n),t.log("debug","Delivered",t.event),[2,t];case 4:throw i=r=o.sent(),t.log("error","Failed to deliver",i),this.emit("delivery_failure",t,i),t.stats.increment("delivery_failed"),r;case 5:return[2]}})})},e.prototype.enqueuRetry=function(t,e){return(!(t instanceof P.Y)||!!t.retry)&&this.queue.pushWithBackoff(e)},e.prototype.flush=function(){return(0,o.mG)(this,void 0,void 0,function(){var t,e;return(0,o.Jh)(this,function(n){switch(n.label){case 0:if(0===this.queue.length||!(t=this.queue.pop()))return[2,[]];t.attempts=this.queue.getAttempts(t),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.deliver(t)];case 2:return t=n.sent(),this.emit("flush",t,!0),[3,4];case 3:return e=n.sent(),this.enqueuRetry(e,t)||(t.setFailedDelivery({reason:e}),this.emit("flush",t,!1)),[2,[]];case 4:return[2,[t]]}})})},e.prototype.isReady=function(){return!0},e.prototype.availableExtensions=function(t){var e,n,r=(e="type",n={},this.plugins.filter(function(e){if("destination"!==e.type&&"Segment.io"!==e.name)return!0;var n,r,i,o=void 0;return null===(n=e.alternativeNames)||void 0===n||n.forEach(function(e){void 0!==t[e]&&(o=t[e])}),null!==(i=null!==(r=t[e.name])&&void 0!==r?r:o)&&void 0!==i?i:!1!==("Segment.io"===e.name||t.All)}).forEach(function(t){var r,i=void 0;if("string"==typeof e){var u=t[e];i="string"!=typeof u?JSON.stringify(u):u}else e instanceof Function&&(i=e(t));void 0!==i&&(n[i]=(0,o.ev)((0,o.ev)([],null!==(r=n[i])&&void 0!==r?r:[],!0),[t],!1))}),n),i=r.before,u=r.enrichment,a=r.destination,s=r.after;return{before:void 0===i?[]:i,enrichment:void 0===u?[]:u,destinations:void 0===a?[]:a,after:void 0===s?[]:s}},e.prototype.flushOne=function(t){var e,n;return(0,o.mG)(this,void 0,void 0,function(){var r,i,u,a,s,c,l,f,d,p,h,v,y;return(0,o.Jh)(this,function(o){switch(o.label){case 0:if(!this.isReady())throw Error("Not ready");t.attempts>1&&this.emit("delivery_retry",t),i=(r=this.availableExtensions(null!==(e=t.event.integrations)&&void 0!==e?e:{})).before,u=r.enrichment,a=0,s=i,o.label=1;case 1:if(!(a<s.length))return[3,4];return c=s[a],[4,(0,I.z)(t,c)];case 2:(l=o.sent())instanceof P._&&(t=l),this.emit("message_enriched",t,c),o.label=3;case 3:return a++,[3,1];case 4:f=0,d=u,o.label=5;case 5:if(!(f<d.length))return[3,8];return p=d[f],[4,(0,I.a)(t,p)];case 6:(l=o.sent())instanceof P._&&(t=l),this.emit("message_enriched",t,p),o.label=7;case 7:return f++,[3,5];case 8:return v=(h=this.availableExtensions(null!==(n=t.event.integrations)&&void 0!==n?n:{})).destinations,y=h.after,[4,new Promise(function(e,n){setTimeout(function(){Promise.all(v.map(function(e){return(0,I.a)(t,e)})).then(e).catch(n)},0)})];case 9:return o.sent(),t.stats.increment("message_delivered"),this.emit("message_delivered",t),[4,Promise.all(y.map(function(e){return(0,I.a)(t,e)}))];case 10:return o.sent(),[2,t]}})})},e}(h.Q));function M(t){for(var e=t.constructor.prototype,n=0,r=Object.getOwnPropertyNames(e);n<r.length;n++){var i=r[n];if("constructor"!==i){var o=Object.getOwnPropertyDescriptor(t.constructor.prototype,i);o&&"function"==typeof o.value&&(t[i]=t[i].bind(t))}}return t}var N={Cookie:"cookie",LocalStorage:"localStorage",Memory:"memory"},L=function(t,e,n,r){console.warn("".concat(t.constructor.name,": Can't ").concat(e,' key "').concat(n,'" | Err: ').concat(r))},F=function(){function t(t){this.stores=t}return t.prototype.get=function(t){for(var e=null,n=0,r=this.stores;n<r.length;n++){var i=r[n];try{if(null!=(e=i.get(t)))return e}catch(e){L(i,"get",t,e)}}return null},t.prototype.set=function(t,e){this.stores.forEach(function(n){try{n.set(t,e)}catch(e){L(n,"set",t,e)}})},t.prototype.clear=function(t){this.stores.forEach(function(e){try{e.remove(t)}catch(n){L(e,"remove",t,n)}})},t.prototype.getAndSync=function(t){var e=this.get(t),n="number"==typeof e?e.toString():e;return this.set(t,n),n},t}(),D=function(){function t(){this.cache={}}return t.prototype.get=function(t){var e;return null!==(e=this.cache[t])&&void 0!==e?e:null},t.prototype.set=function(t,e){this.cache[t]=e},t.prototype.remove=function(t){delete this.cache[t]},t}();function R(t){return t&&t.stores&&Array.isArray(t.stores)&&t.stores.every(function(t){return Object.values(N).includes(t)})}function z(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var U=function t(e,n){function r(t,r,i){if("undefined"!=typeof document){"number"==typeof(i=z({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var u in i)i[u]&&(o+="; "+u,!0!==i[u]&&(o+="="+i[u].split(";")[0]));return document.cookie=t+"="+e.write(r,t)+o}}return Object.create({set:r,get:function(t){if("undefined"!=typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),u=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(r[a]=e.read(u,a),t===a)break}catch(t){}}return t?r[t]:r}},remove:function(t,e){r(t,"",z({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,z({},this.attributes,e))},withConverter:function(e){return t(z({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});function G(t){var e=function(t){try{return new URL(t)}catch(t){return}}(t);if(e)for(var n=function(t){var e=t.hostname.split("."),n=e[e.length-1],r=[];if(4===e.length&&parseInt(n,10)>0||e.length<=1)return r;for(var i=e.length-2;i>=0;--i)r.push(e.slice(i).join("."));return r}(e),r=0;r<n.length;++r){var i="__tld__",o=n[r],u={domain:"."+o};try{if(U.set(i,"1",u),U.get(i))return U.remove(i,u),o}catch(t){return}}}var J=function(){function t(e){void 0===e&&(e=t.defaults),this.options=(0,o.pi)((0,o.pi)({},t.defaults),e)}return Object.defineProperty(t,"defaults",{get:function(){return{maxage:365,domain:G(window.location.href),path:"/",sameSite:"Lax"}},enumerable:!1,configurable:!0}),t.prototype.opts=function(){return{sameSite:this.options.sameSite,expires:this.options.maxage,domain:this.options.domain,path:this.options.path,secure:this.options.secure}},t.prototype.get=function(t){var e;try{var n=U.get(t);if(null==n)return null;try{return null!==(e=JSON.parse(n))&&void 0!==e?e:null}catch(t){return null!=n?n:null}}catch(t){return null}},t.prototype.set=function(t,e){"string"==typeof e?U.set(t,e,this.opts()):null===e?U.remove(t,this.opts()):U.set(t,JSON.stringify(e),this.opts())},t.prototype.remove=function(t){return U.remove(t,this.opts())},t}(),B=function(){function t(){}return t.prototype.localStorageWarning=function(t,e){console.warn("Unable to access ".concat(t,", localStorage may be ").concat(e))},t.prototype.get=function(t){var e;try{var n=localStorage.getItem(t);if(null===n)return null;try{return null!==(e=JSON.parse(n))&&void 0!==e?e:null}catch(t){return null!=n?n:null}}catch(e){return this.localStorageWarning(t,"unavailable"),null}},t.prototype.set=function(t,e){try{localStorage.setItem(t,JSON.stringify(e))}catch(e){this.localStorageWarning(t,"full")}},t.prototype.remove=function(t){try{return localStorage.removeItem(t)}catch(e){this.localStorageWarning(t,"unavailable")}},t}();function q(t){return t.map(function(t){var e,n;switch("object"==typeof t&&void 0!==t.name?(e=t.name,n=t.settings):e=t,e){case N.Cookie:return new J(n);case N.LocalStorage:return new B;case N.Memory:return new D;default:throw Error("Unknown Store Type: ".concat(t))}})}function V(t,e){return t.map(function(t){return e&&t===N.Cookie?{name:t,settings:e}:t})}var K={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},Z=function(){function t(t,e){void 0===t&&(t=K);var n,r,i,u,a=this;this.options={},this.id=function(t){if(a.options.disable)return null;var e=a.identityStore.getAndSync(a.idKey);void 0!==t&&(a.identityStore.set(a.idKey,t),t!==e&&null!==e&&null!==t&&a.anonymousId(null));var n=a.identityStore.getAndSync(a.idKey);if(n)return n;var r=a.legacyUserStore.get(K.cookie.oldKey);return r?"object"==typeof r?r.id:r:null},this.anonymousId=function(t){var e,n;if(a.options.disable)return null;if(void 0===t){var r=null!==(e=a.identityStore.getAndSync(a.anonKey))&&void 0!==e?e:null===(n=a.legacySIO())||void 0===n?void 0:n[0];if(r)return r}return null===t?a.identityStore.set(a.anonKey,null):a.identityStore.set(a.anonKey,null!=t?t:(0,v.v4)()),a.identityStore.getAndSync(a.anonKey)},this.traits=function(t){var e;if(!a.options.disable)return null===t&&(t={}),t&&a.traitsStore.set(a.traitsKey,null!=t?t:{}),null!==(e=a.traitsStore.get(a.traitsKey))&&void 0!==e?e:{}},this.options=(0,o.pi)((0,o.pi)({},K),t),this.cookieOptions=e,this.idKey=null!==(r=null===(n=t.cookie)||void 0===n?void 0:n.key)&&void 0!==r?r:K.cookie.key,this.traitsKey=null!==(u=null===(i=t.localStorage)||void 0===i?void 0:i.key)&&void 0!==u?u:K.localStorage.key,this.anonKey="ajs_anonymous_id",this.identityStore=this.createStorage(this.options,e),this.legacyUserStore=this.createStorage(this.options,e,function(t){return t===N.Cookie}),this.traitsStore=this.createStorage(this.options,e,function(t){return t!==N.Cookie});var s=this.legacyUserStore.get(K.cookie.oldKey);s&&"object"==typeof s&&(s.id&&this.id(s.id),s.traits&&this.traits(s.traits)),M(this)}return t.prototype.legacySIO=function(){var t=this.legacyUserStore.get("_sio");if(!t)return null;var e=t.split("----");return[e[0],e[1]]},t.prototype.identify=function(t,e){if(!this.options.disable){e=null!=e?e:{};var n=this.id();(null===n||n===t)&&(e=(0,o.pi)((0,o.pi)({},this.traits()),e)),t&&this.id(t),this.traits(e)}},t.prototype.logout=function(){this.anonymousId(null),this.id(null),this.traits({})},t.prototype.reset=function(){this.logout(),this.identityStore.clear(this.idKey),this.identityStore.clear(this.anonKey),this.traitsStore.clear(this.traitsKey)},t.prototype.load=function(){return new t(this.options,this.cookieOptions)},t.prototype.save=function(){return!0},t.prototype.createStorage=function(t,e,n){var r=[N.LocalStorage,N.Cookie,N.Memory];return t.disable?new F([]):t.persist?(void 0!==t.storage&&null!==t.storage&&R(t.storage)&&(r=t.storage.stores),t.localStorageFallbackDisabled&&(r=r.filter(function(t){return t!==N.LocalStorage})),n&&(r=r.filter(n)),new F(q(V(r,e)))):new F([new D])},t.defaults=K,t}(),H={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},W=function(t){function e(e,n){void 0===e&&(e=H);var r=t.call(this,(0,o.pi)((0,o.pi)({},H),e),n)||this;return r.anonymousId=function(t){},M(r),r}return(0,o.ZT)(e,t),e}(Z),$=n(86461),Y=n(83066),Q=n(42322),X=function(t,e,n){n.getCalls(t).forEach(function(t){ta(e,t).catch(console.error)})},tt=X.bind(void 0,"on"),te=X.bind(void 0,"setAnonymousId"),tn=function(t,e){e.toArray().forEach(function(e){setTimeout(function(){ta(t,e).catch(console.error)},0)})},tr=function(t){if(ti(t))return S(t.pop())},ti=function(t){return function(t){if(!(0,u.PO)(t)||"bpc"!==t.__t)return!1;for(var e in t)if(!w.includes(e))return!1;return!0}(t[t.length-1])},to=function(t,e,n,r){void 0===n&&(n=function(){}),void 0===r&&(r=console.error),this.method=t,this.resolve=n,this.reject=r,this.called=!1,this.args=e},tu=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._callMap={},this.push.apply(this,t)}return Object.defineProperty(t.prototype,"calls",{get:function(){return this._pushSnippetWindowBuffer(),this._callMap},set:function(t){this._callMap=t},enumerable:!1,configurable:!0}),t.prototype.getCalls=function(t){var e;return null!==(e=this.calls[t])&&void 0!==e?e:[]},t.prototype.push=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];e.forEach(function(e){["track","screen","alias","group","page","identify"].includes(e.method)&&!ti(e.args)&&(e.args=(0,o.ev)((0,o.ev)([],e.args,!0),[x()],!1)),t.calls[e.method]?t.calls[e.method].push(e):t.calls[e.method]=[e]})},t.prototype.clear=function(){this._pushSnippetWindowBuffer(),this.calls={}},t.prototype.toArray=function(){var t;return(t=[]).concat.apply(t,Object.values(this.calls))},t.prototype._pushSnippetWindowBuffer=function(){var t=(0,Q.wI)();if(Array.isArray(t)){var e=t.splice(0,t.length).map(function(t){return new to(t[0],t.slice(1))});this.push.apply(this,e)}},t}();function ta(t,e){return(0,o.mG)(this,void 0,void 0,function(){var n,r;return(0,o.Jh)(this,function(i){switch(i.label){case 0:var o;if(i.trys.push([0,3,,4]),e.called)return[2,void 0];if(e.called=!0,!("object"==typeof(o=n=t[e.method].apply(t,e.args))&&null!==o&&"then"in o&&"function"==typeof o.then))return[3,2];return[4,n];case 1:i.sent(),i.label=2;case 2:return e.resolve(n),[3,4];case 3:return r=i.sent(),e.reject(r),[3,4];case 4:return[2]}})})}var ts=function(){function t(t){var e=this;this.trackSubmit=this._createMethod("trackSubmit"),this.trackClick=this._createMethod("trackClick"),this.trackLink=this._createMethod("trackLink"),this.pageView=this._createMethod("pageview"),this.identify=this._createMethod("identify"),this.reset=this._createMethod("reset"),this.group=this._createMethod("group"),this.track=this._createMethod("track"),this.ready=this._createMethod("ready"),this.alias=this._createMethod("alias"),this.debug=this._createChainableMethod("debug"),this.page=this._createMethod("page"),this.once=this._createChainableMethod("once"),this.off=this._createChainableMethod("off"),this.on=this._createChainableMethod("on"),this.addSourceMiddleware=this._createMethod("addSourceMiddleware"),this.setAnonymousId=this._createMethod("setAnonymousId"),this.addDestinationMiddleware=this._createMethod("addDestinationMiddleware"),this.screen=this._createMethod("screen"),this.register=this._createMethod("register"),this.deregister=this._createMethod("deregister"),this.user=this._createMethod("user"),this.VERSION=$.i,this._preInitBuffer=new tu,this._promise=t(this._preInitBuffer),this._promise.then(function(t){var n=t[0],r=t[1];e.instance=n,e.ctx=r}).catch(function(){})}return t.prototype.then=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._promise).then.apply(t,e)},t.prototype.catch=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._promise).catch.apply(t,e)},t.prototype.finally=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._promise).finally.apply(t,e)},t.prototype._createMethod=function(t){var e=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.instance?Promise.resolve((n=e.instance)[t].apply(n,r)):new Promise(function(n,i){e._preInitBuffer.push(new to(t,r,n,i))})}},t.prototype._createChainableMethod=function(t){var e=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.instance?(n=e.instance)[t].apply(n,r):e._preInitBuffer.push(new to(t,r)),e}},t}(),tc="This is being deprecated and will be not be available in future releases of Analytics JS",tl=(0,Y.R)(),tf=null==tl?void 0:tl.analytics;function td(){console.warn(tc)}var tp=function(t){function e(e,n,r,i,u){var a,s,c,l,f,d,p,h=this;(h=t.call(this)||this)._debug=!1,h.initialized=!1,h.user=function(){return h._user},h.init=h.initialize.bind(h),h.log=td,h.addIntegrationMiddleware=td,h.listeners=td,h.addEventListener=td,h.removeAllListeners=td,h.removeListener=td,h.removeEventListener=td,h.hasListeners=td,h.add=td,h.addIntegration=td;var v=null==n?void 0:n.cookie,y=null!==(f=null==n?void 0:n.disableClientPersistence)&&void 0!==f&&f;h.settings=e,h.settings.timeout=null!==(d=h.settings.timeout)&&void 0!==d?d:300,h.queue=null!=r?r:(a="".concat(e.writeKey,":event-queue"),void 0===(s=null==n?void 0:n.retryQueue)&&(s=!1),void 0===(c=y)&&(c=!1),l=s?10:1,new T(c?new A.Z(l,[]):new j.$(l,a)));var g=null==n?void 0:n.storage;return h._universalStorage=h.createStore(y,g,v),h._user=null!=i?i:new Z((0,o.pi)({persist:!y,storage:null==n?void 0:n.storage},null==n?void 0:n.user),v).load(),h._group=null!=u?u:new W((0,o.pi)({persist:!y,storage:null==n?void 0:n.storage},null==n?void 0:n.group),v).load(),h.eventFactory=new k(h._user),h.integrations=null!==(p=null==n?void 0:n.integrations)&&void 0!==p?p:{},h.options=null!=n?n:{},M(h),h}return(0,o.ZT)(e,t),e.prototype.createStore=function(t,e,n){return new F(t?[new D]:e&&R(e)?q(V(e.stores,n)):q([N.LocalStorage,{name:N.Cookie,settings:n},N.Memory]))},Object.defineProperty(e.prototype,"storage",{get:function(){return this._universalStorage},enumerable:!1,configurable:!0}),e.prototype.track=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,o.mG)(this,void 0,void 0,function(){var e,n,r,i,u,s,c,l=this;return(0,o.Jh)(this,function(o){return e=tr(t),r=(n=a.apply(void 0,t))[0],i=n[1],u=n[2],s=n[3],c=this.eventFactory.track(r,i,u,this.integrations,e),[2,this._dispatch(c,s).then(function(t){return l.emit("track",r,t.event.properties,t.event.options),t})]})})},e.prototype.page=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,o.mG)(this,void 0,void 0,function(){var e,n,r,i,u,a,c,l,f=this;return(0,o.Jh)(this,function(o){return e=tr(t),r=(n=s.apply(void 0,t))[0],i=n[1],u=n[2],a=n[3],c=n[4],l=this.eventFactory.page(r,i,u,a,this.integrations,e),[2,this._dispatch(l,c).then(function(t){return f.emit("page",r,i,t.event.properties,t.event.options),t})]})})},e.prototype.identify=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,o.mG)(this,void 0,void 0,function(){var e,n,r,i,u,a,s,l=this;return(0,o.Jh)(this,function(o){return e=tr(t),r=(n=c(this._user).apply(void 0,t))[0],i=n[1],u=n[2],a=n[3],this._user.identify(r,i),s=this.eventFactory.identify(this._user.id(),this._user.traits(),u,this.integrations,e),[2,this._dispatch(s,a).then(function(t){return l.emit("identify",t.event.userId,t.event.traits,t.event.options),t})]})})},e.prototype.group=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=tr(e);if(0===e.length)return this._group;var i=c(this._group).apply(void 0,e),o=i[0],u=i[1],a=i[2],s=i[3];this._group.identify(o,u);var l=this._group.id(),f=this._group.traits(),d=this.eventFactory.group(l,f,a,this.integrations,r);return this._dispatch(d,s).then(function(e){return t.emit("group",e.event.groupId,e.event.traits,e.event.options),e})},e.prototype.alias=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,o.mG)(this,void 0,void 0,function(){var e,n,r,i,u,a,s,c=this;return(0,o.Jh)(this,function(o){return e=tr(t),r=(n=l.apply(void 0,t))[0],i=n[1],u=n[2],a=n[3],s=this.eventFactory.alias(r,i,u,this.integrations,e),[2,this._dispatch(s,a).then(function(t){return c.emit("alias",r,i,t.event.options),t})]})})},e.prototype.screen=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,o.mG)(this,void 0,void 0,function(){var e,n,r,i,u,a,c,l,f=this;return(0,o.Jh)(this,function(o){return e=tr(t),r=(n=s.apply(void 0,t))[0],i=n[1],u=n[2],a=n[3],c=n[4],l=this.eventFactory.screen(r,i,u,a,this.integrations,e),[2,this._dispatch(l,c).then(function(t){return f.emit("screen",r,i,t.event.properties,t.event.options),t})]})})},e.prototype.trackClick=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,o.mG)(this,void 0,void 0,function(){var e;return(0,o.Jh)(this,function(r){switch(r.label){case 0:return[4,n.e(8119).then(n.bind(n,36231))];case 1:return[2,(e=r.sent().link).call.apply(e,(0,o.ev)([this],t,!1))]}})})},e.prototype.trackLink=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,o.mG)(this,void 0,void 0,function(){var e;return(0,o.Jh)(this,function(r){switch(r.label){case 0:return[4,n.e(8119).then(n.bind(n,36231))];case 1:return[2,(e=r.sent().link).call.apply(e,(0,o.ev)([this],t,!1))]}})})},e.prototype.trackSubmit=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,o.mG)(this,void 0,void 0,function(){var e;return(0,o.Jh)(this,function(r){switch(r.label){case 0:return[4,n.e(8119).then(n.bind(n,36231))];case 1:return[2,(e=r.sent().form).call.apply(e,(0,o.ev)([this],t,!1))]}})})},e.prototype.trackForm=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,o.mG)(this,void 0,void 0,function(){var e;return(0,o.Jh)(this,function(r){switch(r.label){case 0:return[4,n.e(8119).then(n.bind(n,36231))];case 1:return[2,(e=r.sent().form).call.apply(e,(0,o.ev)([this],t,!1))]}})})},e.prototype.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,o.mG)(this,void 0,void 0,function(){var e,n=this;return(0,o.Jh)(this,function(r){switch(r.label){case 0:return e=d._.system(),[4,Promise.all(t.map(function(t){return n.queue.register(e,t,n)}))];case 1:return r.sent(),[2,e]}})})},e.prototype.deregister=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,o.mG)(this,void 0,void 0,function(){var e,n=this;return(0,o.Jh)(this,function(r){switch(r.label){case 0:return e=d._.system(),[4,Promise.all(t.map(function(t){var r=n.queue.plugins.find(function(e){return e.name===t});if(r)return n.queue.deregister(e,r,n);e.log("warn","plugin ".concat(t," not found"))}))];case 1:return r.sent(),[2,e]}})})},e.prototype.debug=function(t){return!1===t&&localStorage.getItem("debug")&&localStorage.removeItem("debug"),this._debug=t,this},e.prototype.reset=function(){this._user.reset(),this._group.reset(),this.emit("reset")},e.prototype.timeout=function(t){this.settings.timeout=t},e.prototype._dispatch=function(t,e){return(0,o.mG)(this,void 0,void 0,function(){var n;return(0,o.Jh)(this,function(r){return(n=new d._(t),(0,f.s)()&&!this.options.retryQueue)?[2,n]:[2,function(t,e,n,r){return(0,o.mG)(this,void 0,void 0,function(){var i,u;return(0,o.Jh)(this,function(o){switch(o.label){case 0:if(n.emit("dispatch_start",t),i=Date.now(),!e.isEmpty())return[3,2];return[4,e.dispatchSingle(t)];case 1:return u=o.sent(),[3,4];case 2:return[4,e.dispatch(t)];case 3:u=o.sent(),o.label=4;case 4:var a,s;if(!(null==r?void 0:r.callback))return[3,6];return[4,(0,p.UI)(u,r.callback,(a=i,Math.max((null!=(s=r.timeout)?s:300)-(Date.now()-a),0)))];case 5:u=o.sent(),o.label=6;case 6:return(null==r?void 0:r.debug)&&u.flush(),[2,u]}})})}(n,this.queue,this,{callback:e,debug:this._debug,timeout:this.settings.timeout})]})})},e.prototype.addSourceMiddleware=function(t){return(0,o.mG)(this,void 0,void 0,function(){var e=this;return(0,o.Jh)(this,function(r){switch(r.label){case 0:return[4,this.queue.criticalTasks.run(function(){return(0,o.mG)(e,void 0,void 0,function(){var e,r,i;return(0,o.Jh)(this,function(o){switch(o.label){case 0:return[4,Promise.resolve().then(n.bind(n,10113))];case 1:return e=o.sent().sourceMiddlewarePlugin,r={},this.queue.plugins.forEach(function(t){if("destination"===t.type)return r[t.name]=!0}),i=e(t,r),[4,this.register(i)];case 2:return o.sent(),[2]}})})})];case 1:return r.sent(),[2,this]}})})},e.prototype.addDestinationMiddleware=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return this.queue.plugins.filter(function(e){return e.name.toLowerCase()===t.toLowerCase()}).forEach(function(t){t.addMiddleware.apply(t,e)}),Promise.resolve(this)},e.prototype.setAnonymousId=function(t){return this._user.anonymousId(t)},e.prototype.queryString=function(t){return(0,o.mG)(this,void 0,void 0,function(){return(0,o.Jh)(this,function(e){switch(e.label){case 0:if(!1===this.options.useQueryString)return[2,[]];return[4,n.e(3096).then(n.bind(n,57878))];case 1:return[2,(0,e.sent().queryString)(this,t)]}})})},e.prototype.use=function(t){return t(this),this},e.prototype.ready=function(t){return void 0===t&&(t=function(t){return t}),(0,o.mG)(this,void 0,void 0,function(){return(0,o.Jh)(this,function(e){return[2,Promise.all(this.queue.plugins.map(function(t){return t.ready?t.ready():Promise.resolve()})).then(function(e){return t(e),e})]})})},e.prototype.noConflict=function(){return console.warn(tc),(0,Q.ql)(null!=tf?tf:this),this},e.prototype.normalize=function(t){return console.warn(tc),this.eventFactory.normalize(t)},Object.defineProperty(e.prototype,"failedInitializations",{get:function(){return console.warn(tc),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"VERSION",{get:function(){return $.i},enumerable:!1,configurable:!0}),e.prototype.initialize=function(t,e){return(0,o.mG)(this,void 0,void 0,function(){return(0,o.Jh)(this,function(t){return console.warn(tc),[2,Promise.resolve(this)]})})},e.prototype.pageview=function(t){return(0,o.mG)(this,void 0,void 0,function(){return(0,o.Jh)(this,function(e){switch(e.label){case 0:return console.warn(tc),[4,this.page({path:t})];case 1:return e.sent(),[2,this]}})})},Object.defineProperty(e.prototype,"plugins",{get:function(){var t;return console.warn(tc),null!==(t=this._plugins)&&void 0!==t?t:{}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Integrations",{get:function(){return console.warn(tc),this.queue.plugins.filter(function(t){return"destination"===t.type}).reduce(function(t,e){var n="".concat(e.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),r=window[n];if(!r)return t;var i=r.Integration;return i?t[e.name]=i:t[e.name]=r,t},{})},enumerable:!1,configurable:!0}),e.prototype.push=function(t){var e=t.shift();(!e||this[e])&&this[e].apply(this,t)},e}(h.Q),th=function(t){function e(){var e=t.call(this,{writeKey:""},{disableClientPersistence:!0})||this;return e.initialized=!0,e}return(0,o.ZT)(e,t),e}(tp),tv=n(25566);function ty(){return void 0!==tv&&tv.env?tv.env:{}}var tg=n(21982),tm=n(47550),tb=n(64146),tw=n(26747),t_=n(41706),tO=n(70042),tS=function(t){try{var e=new URLSearchParams;return Object.entries(t).forEach(function(t){var n=t[0],r=t[1];Array.isArray(r)?r.forEach(function(t){return e.append(n,t)}):e.append(n,r)}),e.toString()}catch(t){return""}},tx=new function(){var t=this;this.name="Page Enrichment",this.type="before",this.version="0.1.0",this.isLoaded=function(){return!0},this.load=function(e,n){return(0,o.mG)(t,void 0,void 0,function(){var t;return(0,o.Jh)(this,function(e){switch(e.label){case 0:this.instance=n,e.label=1;case 1:return e.trys.push([1,3,,4]),t=this,[4,function(t){return(0,o.mG)(this,void 0,void 0,function(){var e;return(0,o.Jh)(this,function(n){return(e=navigator.userAgentData)?t?[2,e.getHighEntropyValues(t).catch(function(){return e.toJSON()})]:[2,e.toJSON()]:[2,void 0]})})}(this.instance.options.highEntropyValuesClientHints)];case 2:return t.userAgentData=e.sent(),[3,4];case 3:return e.sent(),[3,4];case 4:return[2,Promise.resolve()]}})})},this.enrich=function(e){var n,i,u,a,s,c,l,f=e.event.context,d=f.page.search||"",p="object"==typeof d?tS(d):d;f.userAgent=navigator.userAgent,f.userAgentData=t.userAgentData;var h=navigator.userLanguage||navigator.language;void 0===f.locale&&void 0!==h&&(f.locale=h),null!==(c=f.library)&&void 0!==c||(f.library={name:"analytics.js",version:"".concat("web"===(0,t_.B)()?"next":"npm:next","-").concat($.i)}),p&&!f.campaign&&(f.campaign=((s=p).startsWith("?")&&(s=s.substring(1)),(s=s.replace(/\?/g,"&")).split("&").reduce(function(t,e){var n=e.split("="),r=n[0],i=n[1];if(r.includes("utm_")&&r.length>4){var o=r.slice(4);"campaign"===o&&(o="name"),t[o]=(0,tO.a)(void 0===i?"":i)}return t},{})));var v=function(){var t=U.get("_ga");if(t&&t.startsWith("amp"))return t}();v&&(f.amp={id:v}),u=(i=new F(null!==(l=t.instance.options.disableClientPersistence)&&void 0!==l&&l?[]:[new J(function(){if(r)return r;var t=G(window.location.href);return r={expires:31536e6,secure:!1,path:"/"},t&&(r.domain=t),r}())])).get("s:context.referrer"),(a=null!==(n=function(t){var e={btid:"dataxu",urid:"millennial-media"};t.startsWith("?")&&(t=t.substring(1));for(var n=(t=t.replace(/\?/g,"&")).split("&"),r=0;r<n.length;r++){var i=n[r].split("="),o=i[0],u=i[1];if(e[o])return{id:u,type:e[o]}}}(p))&&void 0!==n?n:u)&&(f&&(f.referrer=(0,o.pi)((0,o.pi)({},f.referrer),a)),i.set("s:context.referrer",a));try{f.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(t){}return e},this.track=this.enrich,this.identify=this.enrich,this.page=this.enrich,this.group=this.enrich,this.alias=this.enrich,this.screen=this.enrich},tE=n(45128),tk=n(10113),tj=n(10518),tA=function(){function t(t,e){this.version="1.0.0",this.alternativeNames=[],this.loadPromise=(0,tw.d)(),this.middleware=[],this.alias=this._createMethod("alias"),this.group=this._createMethod("group"),this.identify=this._createMethod("identify"),this.page=this._createMethod("page"),this.screen=this._createMethod("screen"),this.track=this._createMethod("track"),this.action=e,this.name=t,this.type=e.type,this.alternativeNames.push(e.name)}return t.prototype.addMiddleware=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];"destination"===this.type&&(t=this.middleware).push.apply(t,e)},t.prototype.transform=function(t){return(0,o.mG)(this,void 0,void 0,function(){var e;return(0,o.Jh)(this,function(n){switch(n.label){case 0:return[4,(0,tk.applyDestinationMiddleware)(this.name,t.event,this.middleware)];case 1:return null===(e=n.sent())&&t.cancel(new P.Y({retry:!1,reason:"dropped by destination middleware"})),[2,new d._(e)]}})})},t.prototype._createMethod=function(t){var e=this;return function(n){return(0,o.mG)(e,void 0,void 0,function(){var e,r;return(0,o.Jh)(this,function(i){switch(i.label){case 0:if(!this.action[t])return[2,n];if(e=n,"destination"!==this.type)return[3,2];return[4,this.transform(n)];case 1:e=i.sent(),i.label=2;case 2:return i.trys.push([2,5,,6]),[4,this.ready()];case 3:if(!i.sent())throw Error("Something prevented the destination from getting ready");return(0,tj.z)(n,{integrationName:this.action.name,methodName:t,type:"action"}),[4,this.action[t](e)];case 4:return i.sent(),[3,6];case 5:throw r=i.sent(),(0,tj.z)(n,{integrationName:this.action.name,methodName:t,type:"action",didError:!0}),r;case 6:return[2,n]}})})}},t.prototype.isLoaded=function(){return this.action.isLoaded()},t.prototype.ready=function(){return(0,o.mG)(this,void 0,void 0,function(){return(0,o.Jh)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.loadPromise.promise];case 1:return t.sent(),[2,!0];case 2:return t.sent(),[2,!1];case 3:return[2]}})})},t.prototype.load=function(t,e){return(0,o.mG)(this,void 0,void 0,function(){var n,r,i,u;return(0,o.Jh)(this,function(o){switch(o.label){case 0:if(this.loadPromise.isSettled())return[2,this.loadPromise.promise];o.label=1;case 1:return o.trys.push([1,3,,4]),(0,tj.z)(t,{integrationName:this.action.name,methodName:"load",type:"action"}),n=this.action.load(t,e),i=(r=this.loadPromise).resolve,[4,n];case 2:return i.apply(r,[o.sent()]),[2,n];case 3:throw u=o.sent(),(0,tj.z)(t,{integrationName:this.action.name,methodName:"load",type:"action",didError:!0}),this.loadPromise.reject(u),u;case 4:return[2]}})})},t.prototype.unload=function(t,e){var n,r;return null===(r=(n=this.action).unload)||void 0===r?void 0:r.call(n,t,e)},t}(),tP=n(33971),tC=function(t){var e=!1;window.addEventListener("pagehide",function(){e||t(e=!0)}),document.addEventListener("visibilitychange",function(){if("hidden"==document.visibilityState){if(e)return;e=!0}else e=!1;t(e)})};function tI(t){return(encodeURI(JSON.stringify(t)).split(/%..|./).length-1)/1024}var tT=n(69211);function tM(t,e,n,r){var i=this;t||setTimeout(function(){return(0,o.mG)(i,void 0,void 0,function(){var t,i;return(0,o.Jh)(this,function(u){switch(u.label){case 0:return t=!0,[4,function(t,e){return(0,o.mG)(this,void 0,void 0,function(){var n,r=this;return(0,o.Jh)(this,function(i){switch(i.label){case 0:if(n=[],(0,f.s)())return[2,e];return[4,(0,tT.x)(function(){return e.length>0&&!(0,f.s)()},function(){return(0,o.mG)(r,void 0,void 0,function(){var r;return(0,o.Jh)(this,function(i){switch(i.label){case 0:if(!(r=e.pop()))return[2];return[4,(0,I.a)(r,t)];case 1:return i.sent() instanceof d._||n.push(r),[2]}})})})];case 1:return i.sent(),n.map(function(t){return e.pushWithBackoff(t)}),[2,e]}})})}(n,e)];case 1:return i=u.sent(),t=!1,e.todo>0&&r(t,i,n,r),[2]}})})},5e3*Math.random())}var tN=n(21713),tL=function(t){function e(e,n){var r=t.call(this,"".concat(e," ").concat(n))||this;return r.field=e,r}return(0,o.ZT)(e,t),e}(Error),tF="is not a string",tD="is nil";function tR(t){var e,n=t.event;!function(t){if(!(0,u.Gg)(t))throw new tL("Event",tD);if("object"!=typeof t)throw new tL("Event","is not an object")}(n),function(t){if(!(0,u.HD)(t.type))throw new tL(".type",tF)}(n),"track"===n.type&&function(t){if(!(0,u.HD)(t.event))throw new tL(".event",tF)}(n);var r=null!==(e=n.properties)&&void 0!==e?e:n.traits;if("alias"!==n.type&&!(0,u.PO)(r))throw new tL(".properties","is not an object");return!function(t){var e,n,r,i=".userId/anonymousId/previousId/groupId",o=null!==(r=null!==(n=null!==(e=t.userId)&&void 0!==e?e:t.anonymousId)&&void 0!==n?n:t.groupId)&&void 0!==r?r:t.previousId;if((0,u.Gg)(o)){if(!(0,u.HD)(o))throw new tL(i,tF)}else throw new tL(i,tD)}(n),t}var tz={name:"Event Validation",type:"before",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:tR,identify:tR,page:tR,alias:tR,group:tR,screen:tR},tU=(0,Y.R)(),tG=null!==(i=tU.__SEGMENT_INSPECTOR__)&&void 0!==i?i:tU.__SEGMENT_INSPECTOR__={},tJ=function(t){var e;return null===(e=tG.attach)||void 0===e?void 0:e.call(tG,t)},tB=n(95453);function tq(t,e){var n=null!=e?e:(0,tg.Vl)();return(0,tm.h)("".concat(n,"/v1/projects/").concat(t,"/settings")).then(function(t){return t.ok?t.json():t.text().then(function(t){throw Error(t)})}).catch(function(t){throw console.error(t.message),t})}var tV=function(t){function e(){var e=this,r=(0,tw.d)(),i=r.promise,u=r.resolve;return(e=t.call(this,function(t){return i.then(function(e){return function(t,e,r){var i,u,a,s,c,l,p,h,v,y;return void 0===e&&(e={}),(0,o.mG)(this,void 0,void 0,function(){var g,m,b,w,_,O,S,x,E,k,P;return(0,o.Jh)(this,function(C){switch(C.label){case 0:if(!0===e.disable)return[2,[new th,d._.system()]];if(e.globalAnalyticsKey&&(0,Q.jV)(e.globalAnalyticsKey),t.cdnURL&&(0,tg.UH)(t.cdnURL),e.initialPageview&&r.push(new to("page",[])),!(null!==(i=t.cdnSettings)&&void 0!==i))return[3,1];return m=i,[3,3];case 1:return[4,tq(t.writeKey,t.cdnURL)];case 2:m=C.sent(),C.label=3;case 3:if(g=m,e.updateCDNSettings&&(g=e.updateCDNSettings(g)),"function"!=typeof e.disable)return[3,5];return[4,e.disable(g)];case 4:if(C.sent())return[2,[new th,d._.system()]];C.label=5;case 5:var I;return b=null===(a=null===(u=g.integrations["Segment.io"])||void 0===u?void 0:u.retryQueue)||void 0===a||a,tJ(w=new tp(t,e=(0,o.pi)({retryQueue:b},e))),_=null!==(s=t.plugins)&&void 0!==s?s:[],O=null!==(c=t.classicIntegrations)&&void 0!==c?c:[],S=null===(l=e.integrations)||void 0===l?void 0:l["Segment.io"],tB.j.initRemoteMetrics((0,o.pi)((0,o.pi)({},g.metrics),{host:null!==(p=null==S?void 0:S.apiHost)&&void 0!==p?p:null===(h=g.metrics)||void 0===h?void 0:h.host,protocol:null==S?void 0:S.protocol})),te(I=w,r),tt(I,r),[4,function(t,e,r,i,u,a){var s,c,l;return void 0===u&&(u=[]),(0,o.mG)(this,void 0,void 0,function(){var d,p,h,v,y,g,m,b,w,_,O,S,x,E,k=this;return(0,o.Jh)(this,function(P){var C,I,T;switch(P.label){case 0:if(d=null==u?void 0:u.filter(function(t){return"object"==typeof t}),p=null==u?void 0:u.filter(function(t){return"function"==typeof t&&"string"==typeof t.pluginName}),"test"===ty().NODE_ENV||!((null!==(T=null===(I=null===(C=e.middlewareSettings)||void 0===C?void 0:C.routingRules)||void 0===I?void 0:I.length)&&void 0!==T?T:0)>0))return[3,2];return[4,n.e(4604).then(n.bind(n,6463)).then(function(t){return t.tsubMiddleware(e.middlewareSettings.routingRules)})];case 1:return v=P.sent(),[3,3];case 2:v=void 0,P.label=3;case 3:if(h=v,("test"===ty().NODE_ENV||!(Object.keys(e.integrations).length>1))&&!(a.length>0))return[3,5];return[4,n.e(9464).then(n.bind(n,70965)).then(function(n){return n.ajsDestinations(t,e,r.integrations,i,h,a)})];case 4:return g=P.sent(),[3,6];case 5:g=[],P.label=6;case 6:if(y=g,!e.legacyVideoPluginsEnabled)return[3,8];return[4,n.e(8150).then(n.bind(n,77625)).then(function(t){return t.loadLegacyVideoPlugins(r)})];case 7:P.sent(),P.label=8;case 8:if(!(null===(s=i.plan)||void 0===s?void 0:s.track))return[3,10];return[4,n.e(7493).then(n.bind(n,69414)).then(function(t){var n;return t.schemaFilter(null===(n=i.plan)||void 0===n?void 0:n.track,e)})];case 9:return b=P.sent(),[3,11];case 10:b=void 0,P.label=11;case 11:return m=b,w=(0,tb.o)(e,i),[4,(function(t,e,n,r,i,u){var a,s,c;return(0,o.mG)(this,void 0,void 0,function(){var l,f,d=this;return(0,o.Jh)(this,function(p){switch(p.label){case 0:return l=[],f=null!==(s=null===(a=t.middlewareSettings)||void 0===a?void 0:a.routingRules)&&void 0!==s?s:[],[4,Promise.all((null!==(c=t.remotePlugins)&&void 0!==c?c:[]).map(function(t){return(0,o.mG)(d,void 0,void 0,function(){var a,s,c,d,p;return(0,o.Jh)(this,function(h){switch(h.label){case 0:var v,y;if(v=e[t.creationName],y=e[t.name],!1===e.All&&!v&&!y||!1===v||!1===y)return[2];h.label=1;case 1:if(h.trys.push([1,6,,7]),s=null==u?void 0:u.find(function(e){return e.pluginName===t.name}))return[3,3];return[4,function(t,e){return(0,o.mG)(this,void 0,void 0,function(){var n,r,i,u,a;return(0,o.Jh)(this,function(o){switch(o.label){case 0:if(n=RegExp("https://cdn.segment.(com|build)"),r=(0,tg.Vl)(),!e)return[3,6];u=(i=t.url.split("/"))[i.length-2],a=t.url.replace(u,btoa(u).replace(/=/g,"")),o.label=1;case 1:return o.trys.push([1,3,,5]),[4,(0,tE.v)(a.replace(n,r))];case 2:case 4:return o.sent(),[3,5];case 3:return o.sent(),[4,(0,tE.v)(t.url.replace(n,r))];case 5:return[3,8];case 6:return[4,(0,tE.v)(t.url.replace(n,r))];case 7:o.sent(),o.label=8;case 8:if("function"==typeof window[t.libraryName])return[2,window[t.libraryName]];return[2]}})})}(t,null==r?void 0:r.obfuscate)];case 2:s=h.sent(),h.label=3;case 3:if(!(a=s))return[3,5];return[4,a((0,o.pi)((0,o.pi)({},t.settings),n[t.name]))];case 4:(function(t){if(!Array.isArray(t))throw Error("Not a valid list of plugins");var e=["load","isLoaded","name","version","type"];t.forEach(function(t){e.forEach(function(e){var n;if(void 0===t[e])throw Error("Plugin: ".concat(null!==(n=t.name)&&void 0!==n?n:"unknown"," missing required function ").concat(e))})})})(d=Array.isArray(c=h.sent())?c:[c]),p=f.filter(function(e){return e.destinationName===t.creationName}),d.forEach(function(e){var n=new tA(t.creationName,e);p.length&&i&&"destination"===e.type&&n.addMiddleware(i),l.push(n)}),h.label=5;case 5:return[3,7];case 6:return console.warn("Failed to load Remote Plugin",h.sent()),[3,7];case 7:return[2]}})})}))];case 1:return p.sent(),[2,l.filter(Boolean)]}})})})(e,r.integrations,w,i,h,p).catch(function(){return[]})];case 12:if(_=P.sent(),O=(0,o.ev)((0,o.ev)((0,o.ev)([tz,tx],d,!0),y,!0),_,!0),m&&O.push(m),(null===(c=i.integrations)||void 0===c?void 0:c.All)===!1&&!i.integrations["Segment.io"]||i.integrations&&!1===i.integrations["Segment.io"])return[3,14];return x=(S=O).push,[4,function(t,e,n){window.addEventListener("pagehide",function(){c.push.apply(c,Array.from(l)),l.clear()});var r,i,u,a,s=null!==(i=null==e?void 0:e.apiKey)&&void 0!==i?i:"",c=t.options.disableClientPersistence?new A.Z(t.queue.queue.maxAttempts,[]):new j.$(t.queue.queue.maxAttempts,"".concat(s,":dest-Segment.io")),l=new Set,d=null!==(u=null==e?void 0:e.apiHost)&&void 0!==u?u:tN.U,p=null!==(a=null==e?void 0:e.protocol)&&void 0!==a?a:"https",h="".concat(p,"://").concat(d),v=null==e?void 0:e.deliveryStrategy,y=(null==v?void 0:v.strategy)==="batching"?function(t,e){var n,r,i,u=[],a=!1,s=null!==(n=null==e?void 0:e.size)&&void 0!==n?n:10,c=null!==(r=null==e?void 0:e.timeout)&&void 0!==r?r:5e3;function l(e){if(0!==e.length){var n,r=null===(n=e[0])||void 0===n?void 0:n.writeKey,i=e.map(function(t){return t.sentAt,(0,o._T)(t,["sentAt"])});return(0,tm.h)("https://".concat(t,"/b"),{keepalive:a,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify({writeKey:r,batch:i,sentAt:new Date().toISOString()})})}}function f(){return(0,o.mG)(this,void 0,void 0,function(){var t;return(0,o.Jh)(this,function(e){return u.length?(t=u,u=[],[2,l(t)]):[2]})})}return tC(function(t){if((a=t)&&u.length){var e,n;Promise.all((e=[],n=0,u.forEach(function(t){tI(e[n])>=64&&n++,e[n]?e[n].push(t):e[n]=[t]}),e).map(l)).catch(console.error)}}),{dispatch:function(t,e){return(0,o.mG)(this,void 0,void 0,function(){return(0,o.Jh)(this,function(t){return u.push(e),[2,u.length>=s||tI(u)>=450||a?f():void(i||(i=setTimeout(function(){i=void 0,f().catch(console.error)},c)))]})})}}}(d,v.config):(r=null==v?void 0:v.config,{dispatch:function(t,e){return(0,tm.h)(t,{keepalive:null==r?void 0:r.keepalive,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify(e)})}});function g(r){return(0,o.mG)(this,void 0,void 0,function(){var i,u;return(0,o.Jh)(this,function(a){if((0,f.s)())return c.push(r),tM(!1,c,m,tM),[2,r];if(l.add(r),i=r.event.type.charAt(0),u=(0,tP.D)(r.event).json(),"track"===r.event.type&&delete u.traits,"alias"===r.event.type){var s,d,p,v,g,b;s=u,b=t.user(),s.previousId=null!==(v=null!==(p=null!==(d=s.previousId)&&void 0!==d?d:s.from)&&void 0!==p?p:b.id())&&void 0!==v?v:b.anonymousId(),s.userId=null!==(g=s.userId)&&void 0!==g?g:s.to,delete s.from,delete s.to,u=s}return[2,y.dispatch("".concat(h,"/").concat(i),function(t,e,n,r){var i,u=t.user();delete e.options,e.writeKey=null==n?void 0:n.apiKey,e.userId=e.userId||u.id(),e.anonymousId=e.anonymousId||u.anonymousId(),e.sentAt=new Date;var a=t.queue.failedInitializations||[];a.length>0&&(e._metadata={failedInitializations:a});var s=[],c=[];for(var l in r){var f=r[l];"Segment.io"===l&&s.push(l),"bundled"===f.bundlingStatus&&s.push(l),"unbundled"===f.bundlingStatus&&c.push(l)}for(var d=0,p=(null==n?void 0:n.unbundledIntegrations)||[];d<p.length;d++){var h=p[d];c.includes(h)||c.push(h)}var v=null!==(i=null==n?void 0:n.maybeBundledConfigIds)&&void 0!==i?i:{},y=[];return s.sort().forEach(function(t){var e;(null!==(e=v[t])&&void 0!==e?e:[]).forEach(function(t){y.push(t)})}),(null==n?void 0:n.addBundledMetadata)!==!1&&(e._metadata=(0,o.pi)((0,o.pi)({},e._metadata),{bundled:s.sort(),unbundled:c.sort(),bundledIds:y})),e}(t,u,e,n)).then(function(){return r}).catch(function(){return c.pushWithBackoff(r),tM(!1,c,m,tM),r}).finally(function(){l.delete(r)})]})})}var m={name:"Segment.io",type:"destination",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:g,identify:g,page:g,alias:g,group:g,screen:g};return c.todo&&tM(!1,c,m,tM),m}(r,w["Segment.io"],e.integrations)];case 13:x.apply(S,[P.sent()]),P.label=14;case 14:return[4,r.register.apply(r,O)];case 15:if(E=P.sent(),!Object.entries(null!==(l=e.enabledMiddleware)&&void 0!==l?l:{}).some(function(t){return t[1]}))return[3,17];return[4,n.e(9214).then(n.bind(n,24309)).then(function(t){var n=t.remoteMiddlewares;return(0,o.mG)(k,void 0,void 0,function(){return(0,o.Jh)(this,function(t){switch(t.label){case 0:return[4,n(E,e,i.obfuscate)];case 1:return[2,Promise.all(t.sent().map(function(t){return r.addSourceMiddleware(t)}))]}})})})];case 16:P.sent(),P.label=17;case 17:return[2,E]}})})}(t.writeKey,g,w,e,_,O)];case 6:if(x=C.sent(),E=null!==(v=window.location.search)&&void 0!==v?v:"",k=null!==(y=window.location.hash)&&void 0!==y?y:"",!(P=E.length?E:k.replace(/(?=#).*(?=\?)/,"")).includes("ajs_"))return[3,8];return[4,w.queryString(P).catch(console.error)];case 7:C.sent(),C.label=8;case 8:return w.initialized=!0,w.emit("initialize",t,e),[4,function(t,e){return(0,o.mG)(this,void 0,void 0,function(){return(0,o.Jh)(this,function(n){switch(n.label){case 0:return[4,(0,o.mG)(void 0,void 0,void 0,function(){var n,r;return(0,o.Jh)(this,function(i){switch(i.label){case 0:n=0,r=e.getCalls("addSourceMiddleware"),i.label=1;case 1:if(!(n<r.length))return[3,4];return[4,ta(t,r[n]).catch(console.error)];case 2:i.sent(),i.label=3;case 3:return n++,[3,1];case 4:return[2]}})})];case 1:return n.sent(),tn(t,e),e.clear(),[2]}})})}(w,r)];case 9:return C.sent(),[2,[w,x]]}})})}(e[0],e[1],t)})})||this)._resolveLoadStart=function(t,e){return u([t,e])},e}return(0,o.ZT)(e,t),e.prototype.load=function(t,e){return void 0===e&&(e={}),this._resolveLoadStart(t,e),this},e.load=function(t,n){return void 0===n&&(n={}),new e().load(t,n)},e.standalone=function(t,n){return e.load({writeKey:t},n).then(function(t){return t[0]})},e}(ts),tK=function(){function t(){}return t.load=function(){return Promise.reject(Error("AnalyticsNode is not available in browsers."))},t}()},47550:function(t,e,n){"use strict";n.d(e,{h:function(){return u}});var r=n(37185),i=n.n(r),o=n(83066),u=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=(0,o.R)();return(n&&n.fetch||i()).apply(void 0,t)}},83066:function(t,e,n){"use strict";n.d(e,{R:function(){return r}});var r=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:null}},42322:function(t,e,n){"use strict";n.d(e,{jV:function(){return o},ql:function(){return u},wI:function(){return i}});var r="analytics";function i(){return window[r]}function o(t){r=t}function u(t){window[r]=t}},45128:function(t,e,n){"use strict";function r(t){return Array.prototype.slice.call(window.document.querySelectorAll("script")).find(function(e){return e.src===t})}function i(t,e){var n=r(t);if(void 0!==n){var i=null==n?void 0:n.getAttribute("status");if("loaded"===i)return Promise.resolve(n);if("loading"===i)return new Promise(function(t,e){n.addEventListener("load",function(){return t(n)}),n.addEventListener("error",function(t){return e(t)})})}return new Promise(function(n,r){var i,o=window.document.createElement("script");o.type="text/javascript",o.src=t,o.async=!0,o.setAttribute("status","loading");for(var u=0,a=Object.entries(null!=e?e:{});u<a.length;u++){var s=a[u],c=s[0],l=s[1];o.setAttribute(c,l)}o.onload=function(){o.onerror=o.onload=null,o.setAttribute("status","loaded"),n(o)},o.onerror=function(){o.onerror=o.onload=null,o.setAttribute("status","error"),r(Error("Failed to load ".concat(t)))};var f=window.document.getElementsByTagName("script")[0];null===(i=f.parentElement)||void 0===i||i.insertBefore(o,f)})}function o(t){var e=r(t);return void 0!==e&&e.remove(),Promise.resolve()}n.d(e,{t:function(){return o},v:function(){return i}})},64146:function(t,e,n){"use strict";n.d(e,{o:function(){return i}});var r=n(11735);function i(t,e){var n,i=Object.entries(null!==(n=e.integrations)&&void 0!==n?n:{}).reduce(function(t,e){var n,i,o=e[0],u=e[1];return"object"==typeof u?(0,r.pi)((0,r.pi)({},t),((n={})[o]=u,n)):(0,r.pi)((0,r.pi)({},t),((i={})[o]={},i))},{});return Object.entries(t.integrations).reduce(function(t,e){var n,o=e[0],u=e[1];return(0,r.pi)((0,r.pi)({},t),((n={})[o]=(0,r.pi)((0,r.pi)({},u),i[o]),n))},{})}},69211:function(t,e,n){"use strict";n.d(e,{x:function(){return i}});var r=n(11735),i=function(t,e){return(0,r.mG)(void 0,void 0,void 0,function(){var n;return(0,r.Jh)(this,function(i){return[2,(n=function(i){return(0,r.mG)(void 0,void 0,void 0,function(){var o;return(0,r.Jh)(this,function(r){switch(r.label){case 0:if(!t(i))return[3,2];return o=n,[4,e()];case 1:return[2,o.apply(void 0,[r.sent()])];case 2:return[2]}})})})(void 0)]})})}},21982:function(t,e,n){"use strict";n.d(e,{Kg:function(){return l},UH:function(){return s},Vl:function(){return c}});var r,i=n(42322),o=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,u=function(){var t;return Array.prototype.slice.call(document.querySelectorAll("script")).forEach(function(e){var n,r=null!==(n=e.getAttribute("src"))&&void 0!==n?n:"",i=o.exec(r);i&&i[1]&&(t=i[1])}),t},a=function(){var t;return null!=r?r:null===(t=(0,i.wI)())||void 0===t?void 0:t._cdn},s=function(t){var e=(0,i.wI)();e&&(e._cdn=t),r=t},c=function(){var t=a();return t?t:u()||"https://cdn.segment.com"},l=function(){var t=c();return"".concat(t,"/next-integrations")}},73380:function(t,e,n){"use strict";n.d(e,{$:function(){return d}});var r=n(11735),i=n(3518),o=n(30606),u=n(38550),a={getItem:function(){},setItem:function(){},removeItem:function(){}};try{a=(0,u.j)()&&window.localStorage?window.localStorage:a}catch(t){console.warn("Unable to access localStorage",t)}function s(t){var e=a.getItem(t);return(e?JSON.parse(e):[]).map(function(t){return new o._(t.event,t.id)})}function c(t){var e=a.getItem(t);return e?JSON.parse(e):{}}function l(t){a.removeItem(t)}function f(t,e,n){void 0===n&&(n=0);var r="persisted-queue:v1:".concat(t,":lock"),i=a.getItem(r),o=i?JSON.parse(i):null,u=null===o||new Date().getTime()>o;if(u){a.setItem(r,JSON.stringify(new Date().getTime()+50)),e(),a.removeItem(r);return}!u&&n<3?setTimeout(function(){f(t,e,n+1)},50):console.error("Unable to retrieve lock")}var d=function(t){function e(e,n){var i=t.call(this,e,[])||this,o="persisted-queue:v1:".concat(n,":items"),u="persisted-queue:v1:".concat(n,":seen"),d=[],p={};return f(n,function(){try{d=s(o),p=c(u),l(o),l(u),i.queue=(0,r.ev)((0,r.ev)([],d,!0),i.queue,!0),i.seen=(0,r.pi)((0,r.pi)({},p),i.seen)}catch(t){console.error(t)}}),window.addEventListener("pagehide",function(){if(i.todo>0){var t=(0,r.ev)((0,r.ev)([],i.queue,!0),i.future,!0);try{f(n,function(){var e,n,l,f;e=s(o),n=(0,r.ev)((0,r.ev)([],t,!0),e,!0).reduce(function(t,e){var n;return(0,r.pi)((0,r.pi)({},t),((n={})[e.id]=e,n))},{}),a.setItem(o,JSON.stringify(Object.values(n))),l=i.seen,f=c(u),a.setItem(u,JSON.stringify((0,r.pi)((0,r.pi)({},f),l)))})}catch(t){console.error(t)}}}),i}return(0,r.ZT)(e,t),e}(i.Z)},33971:function(t,e,n){"use strict";n.d(e,{D:function(){return i}});var r=n(12995);function i(t,e){var n=new r.Facade(t,e);return"track"===t.type&&(n=new r.Track(t,e)),"identify"===t.type&&(n=new r.Identify(t,e)),"page"===t.type&&(n=new r.Page(t,e)),"alias"===t.type&&(n=new r.Alias(t,e)),"group"===t.type&&(n=new r.Group(t,e)),"screen"===t.type&&(n=new r.Screen(t,e)),Object.defineProperty(n,"obj",{value:t,writable:!0}),n}},41706:function(t,e,n){"use strict";function r(){return"npm"}n.d(e,{B:function(){return r}})},10113:function(t,e,n){"use strict";n.r(e),n.d(e,{applyDestinationMiddleware:function(){return u},sourceMiddlewarePlugin:function(){return a}});var r=n(11735),i=n(63882),o=n(33971);function u(t,e,n){return(0,r.mG)(this,void 0,void 0,function(){var i,u,a,s,c;return(0,r.Jh)(this,function(l){switch(l.label){case 0:i=(0,o.D)(e,{clone:!0,traverse:!1}).rawEvent(),u=0,a=n,l.label=1;case 1:if(!(u<a.length))return[3,4];return s=a[u],[4,function(e,n){return(0,r.mG)(this,void 0,void 0,function(){var i,u,a;return(0,r.Jh)(this,function(s){switch(s.label){case 0:return i=!1,u=null,[4,n({payload:(0,o.D)(e,{clone:!0,traverse:!1}),integration:t,next:function(t){i=!0,null===t&&(u=null),t&&(u=t.obj)}})];case 1:return s.sent(),i||null===u||(u.integrations=(0,r.pi)((0,r.pi)({},e.integrations),((a={})[t]=!1,a))),[2,u]}})})}(i,s)];case 2:if(null===(c=l.sent()))return[2,null];i=c,l.label=3;case 3:return u++,[3,1];case 4:return[2,i]}})})}function a(t,e){function n(n){return(0,r.mG)(this,void 0,void 0,function(){var u;return(0,r.Jh)(this,function(r){switch(r.label){case 0:return u=!1,[4,t({payload:(0,o.D)(n.event,{clone:!0,traverse:!1}),integrations:null!=e?e:{},next:function(t){u=!0,t&&(n.event=t.obj)}})];case 1:if(r.sent(),!u)throw new i.Y({retry:!1,type:"middleware_cancellation",reason:"Middleware `next` function skipped"});return[2,n]}})})}return{name:"Source Middleware ".concat(t.name),type:"before",version:"0.1.0",isLoaded:function(){return!0},load:function(t){return Promise.resolve(t)},track:n,page:n,identify:n,alias:n,group:n}}},91308:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(50154));function o(t,e){return function(){var n=this.traits(),r=this.properties?this.properties():{};return i.default(n,"address."+t)||i.default(n,t)||(e?i.default(n,"address."+e):null)||(e?i.default(n,e):null)||i.default(r,"address."+t)||i.default(r,t)||(e?i.default(r,"address."+e):null)||(e?i.default(r,e):null)}}e.default=function(t){t.zip=o("postalCode","zip"),t.country=o("country"),t.street=o("street"),t.state=o("state"),t.city=o("city"),t.region=o("region")}},17501:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Alias=void 0;var i=r(n(87398)),o=n(33434);function u(t,e){o.Facade.call(this,t,e)}e.Alias=u,i.default(u,o.Facade),u.prototype.action=function(){return"alias"},u.prototype.type=u.prototype.action,u.prototype.previousId=function(){return this.field("previousId")||this.field("from")},u.prototype.from=u.prototype.previousId,u.prototype.userId=function(){return this.field("userId")||this.field("to")},u.prototype.to=u.prototype.userId},44357:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clone=void 0,e.clone=function t(e){if("object"!=typeof e)return e;if("[object Object]"===Object.prototype.toString.call(e)){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=t(e[r]));return n}return Array.isArray(e)?e.map(t):e}},98333:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Delete=void 0;var i=r(n(87398)),o=n(33434);function u(t,e){o.Facade.call(this,t,e)}e.Delete=u,i.default(u,o.Facade),u.prototype.type=function(){return"delete"}},33434:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Facade=void 0;var i=r(n(91308)),o=n(44357),u=r(n(89995)),a=r(n(8802)),s=r(n(50154)),c=r(n(84722));function l(t,e){e=e||{},this.raw=o.clone(t),"clone"in e||(e.clone=!0),e.clone&&(t=o.clone(t)),"traverse"in e||(e.traverse=!0),"timestamp"in t?t.timestamp=a.default(t.timestamp):t.timestamp=new Date,e.traverse&&c.default(t),this.opts=e,this.obj=t}e.Facade=l;var f=l.prototype;function d(t){return o.clone(t)}f.proxy=function(t){var e,n=t.split("."),r=this[t=n.shift()]||this.obj[t];return r?("function"==typeof r&&(r=r.call(this)||{}),0===n.length||(r=s.default(r,n.join("."))),this.opts.clone?(e=r,o.clone(e)):r):r},f.field=function(t){var e,n=this.obj[t];return this.opts.clone?(e=n,o.clone(e)):n},l.proxy=function(t){return function(){return this.proxy(t)}},l.field=function(t){return function(){return this.field(t)}},l.multi=function(t){return function(){var e=this.proxy(t+"s");if(Array.isArray(e))return e;var n=this.proxy(t);return n&&(n=[this.opts.clone?o.clone(n):n]),n||[]}},l.one=function(t){return function(){var e=this.proxy(t);if(e)return e;var n=this.proxy(t+"s");if(Array.isArray(n))return n[0]}},f.json=function(){var t=this.opts.clone?o.clone(this.obj):this.obj;return this.type&&(t.type=this.type()),t},f.rawEvent=function(){return this.raw},f.options=function(t){var e=this.obj.options||this.obj.context||{},n=this.opts.clone?o.clone(e):e;if(!t)return n;if(this.enabled(t)){var r=this.integrations(),i=r[t]||s.default(r,t);return"object"!=typeof i&&(i=s.default(this.options(),t)),"object"==typeof i?i:{}}},f.context=f.options,f.enabled=function(t){var e=this.proxy("options.providers.all");"boolean"!=typeof e&&(e=this.proxy("options.all")),"boolean"!=typeof e&&(e=this.proxy("integrations.all")),"boolean"!=typeof e&&(e=!0);var n=e&&u.default(t),r=this.integrations();if(r.providers&&r.providers.hasOwnProperty(t)&&(n=r.providers[t]),r.hasOwnProperty(t)){var i=r[t];n="boolean"!=typeof i||i}return!!n},f.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()},f.active=function(){var t=this.proxy("options.active");return null==t&&(t=!0),t},f.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")},f.sessionId=f.anonymousId,f.groupId=l.proxy("options.groupId"),f.traits=function(t){var e=this.proxy("options.traits")||{},n=this.userId();for(var r in t=t||{},n&&(e.id=n),t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=null==this[r]?this.proxy("options.traits."+r):this[r]();if(null==i)continue;e[t[r]]=i,delete e[r]}return e},f.library=function(){var t=this.proxy("options.library");return t?"string"==typeof t?{name:t,version:null}:t:{name:"unknown",version:null}},f.device=function(){var t=this.proxy("context.device");("object"!=typeof t||null===t)&&(t={});var e=this.library().name;return t.type||(e.indexOf("ios")>-1&&(t.type="ios"),e.indexOf("android")>-1&&(t.type="android")),t},f.userAgent=l.proxy("context.userAgent"),f.timezone=l.proxy("context.timezone"),f.timestamp=l.field("timestamp"),f.channel=l.field("channel"),f.ip=l.proxy("context.ip"),f.userId=l.field("userId"),i.default(f)},36491:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Group=void 0;var i=r(n(87398)),o=r(n(57791)),u=r(n(8802)),a=n(33434);function s(t,e){a.Facade.call(this,t,e)}e.Group=s,i.default(s,a.Facade);var c=s.prototype;c.action=function(){return"group"},c.type=c.action,c.groupId=a.Facade.field("groupId"),c.created=function(){var t=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(t)return u.default(t)},c.email=function(){var t=this.proxy("traits.email");if(t)return t;var e=this.groupId();if(o.default(e))return e},c.traits=function(t){var e=this.properties(),n=this.groupId();for(var r in t=t||{},n&&(e.id=n),t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=null==this[r]?this.proxy("traits."+r):this[r]();if(null==i)continue;e[t[r]]=i,delete e[r]}return e},c.name=a.Facade.proxy("traits.name"),c.industry=a.Facade.proxy("traits.industry"),c.employees=a.Facade.proxy("traits.employees"),c.properties=function(){return this.field("traits")||this.field("properties")||{}}},41173:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Identify=void 0;var i=n(33434),o=r(n(50154)),u=r(n(87398)),a=r(n(57791)),s=r(n(8802)),c=function(t){return t.trim()};function l(t,e){i.Facade.call(this,t,e)}e.Identify=l,u.default(l,i.Facade);var f=l.prototype;f.action=function(){return"identify"},f.type=f.action,f.traits=function(t){var e=this.field("traits")||{},n=this.userId();for(var r in t=t||{},n&&(e.id=n),t){var i=null==this[r]?this.proxy("traits."+r):this[r]();null!=i&&(e[t[r]]=i,r!==t[r]&&delete e[r])}return e},f.email=function(){var t=this.proxy("traits.email");if(t)return t;var e=this.userId();if(a.default(e))return e},f.created=function(){var t=this.proxy("traits.created")||this.proxy("traits.createdAt");if(t)return s.default(t)},f.companyCreated=function(){var t=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(t)return s.default(t)},f.companyName=function(){return this.proxy("traits.company.name")},f.name=function(){var t=this.proxy("traits.name");if("string"==typeof t)return c(t);var e=this.firstName(),n=this.lastName();if(e&&n)return c(e+" "+n)},f.firstName=function(){var t=this.proxy("traits.firstName");if("string"==typeof t)return c(t);var e=this.proxy("traits.name");if("string"==typeof e)return c(e).split(" ")[0]},f.lastName=function(){var t=this.proxy("traits.lastName");if("string"==typeof t)return c(t);var e=this.proxy("traits.name");if("string"==typeof e){var n=c(e).indexOf(" ");if(-1!==n)return c(e.substr(n+1))}},f.uid=function(){return this.userId()||this.username()||this.email()},f.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},f.age=function(){var t=this.birthday(),e=o.default(this.traits(),"age");return null!=e?e:t instanceof Date?new Date().getFullYear()-t.getFullYear():void 0},f.avatar=function(){var t=this.traits();return o.default(t,"avatar")||o.default(t,"photoUrl")||o.default(t,"avatarUrl")},f.position=function(){var t=this.traits();return o.default(t,"position")||o.default(t,"jobTitle")},f.username=i.Facade.proxy("traits.username"),f.website=i.Facade.one("traits.website"),f.websites=i.Facade.multi("traits.website"),f.phone=i.Facade.one("traits.phone"),f.phones=i.Facade.multi("traits.phone"),f.address=i.Facade.proxy("traits.address"),f.gender=i.Facade.proxy("traits.gender"),f.birthday=i.Facade.proxy("traits.birthday")},12995:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Delete=e.Screen=e.Page=e.Track=e.Identify=e.Group=e.Alias=e.Facade=void 0;var i=n(33434);Object.defineProperty(e,"Facade",{enumerable:!0,get:function(){return i.Facade}});var o=n(17501);Object.defineProperty(e,"Alias",{enumerable:!0,get:function(){return o.Alias}});var u=n(36491);Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return u.Group}});var a=n(41173);Object.defineProperty(e,"Identify",{enumerable:!0,get:function(){return a.Identify}});var s=n(54257);Object.defineProperty(e,"Track",{enumerable:!0,get:function(){return s.Track}});var c=n(10858);Object.defineProperty(e,"Page",{enumerable:!0,get:function(){return c.Page}});var l=n(60338);Object.defineProperty(e,"Screen",{enumerable:!0,get:function(){return l.Screen}});var f=n(98333);Object.defineProperty(e,"Delete",{enumerable:!0,get:function(){return f.Delete}}),e.default=r(r({},i.Facade),{Alias:o.Alias,Group:u.Group,Identify:a.Identify,Track:s.Track,Page:c.Page,Screen:l.Screen,Delete:f.Delete})},57791:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=/.+\@.+\..+/;e.default=function(t){return n.test(t)}},89995:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={Salesforce:!0};e.default=function(t){return!n[t]}},10858:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Page=void 0;var i=r(n(87398)),o=n(33434),u=n(54257),a=r(n(57791));function s(t,e){o.Facade.call(this,t,e)}e.Page=s,i.default(s,o.Facade);var c=s.prototype;c.action=function(){return"page"},c.type=c.action,c.category=o.Facade.field("category"),c.name=o.Facade.field("name"),c.title=o.Facade.proxy("properties.title"),c.path=o.Facade.proxy("properties.path"),c.url=o.Facade.proxy("properties.url"),c.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},c.properties=function(t){var e=this.field("properties")||{},n=this.category(),r=this.name();for(var i in t=t||{},n&&(e.category=n),r&&(e.name=r),t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=null==this[i]?this.proxy("properties."+i):this[i]();if(null==o)continue;e[t[i]]=o,i!==t[i]&&delete e[i]}return e},c.email=function(){var t=this.proxy("context.traits.email")||this.proxy("properties.email");if(t)return t;var e=this.userId();if(a.default(e))return e},c.fullName=function(){var t=this.category(),e=this.name();return e&&t?t+" "+e:e},c.event=function(t){return t?"Viewed "+t+" Page":"Loaded a Page"},c.track=function(t){var e=this.json();return e.event=this.event(t),e.timestamp=this.timestamp(),e.properties=this.properties(),new u.Track(e,this.opts)}},60338:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Screen=void 0;var i=r(n(87398)),o=n(10858),u=n(54257);function a(t,e){o.Page.call(this,t,e)}e.Screen=a,i.default(a,o.Page),a.prototype.action=function(){return"screen"},a.prototype.type=a.prototype.action,a.prototype.event=function(t){return t?"Viewed "+t+" Screen":"Loaded a Screen"},a.prototype.track=function(t){var e=this.json();return e.event=this.event(t),e.timestamp=this.timestamp(),e.properties=this.properties(),new u.Track(e,this.opts)}},54257:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Track=void 0;var i=r(n(87398)),o=n(33434),u=n(41173),a=r(n(57791)),s=r(n(50154));function c(t,e){o.Facade.call(this,t,e)}e.Track=c,i.default(c,o.Facade);var l=c.prototype;l.action=function(){return"track"},l.type=l.action,l.event=o.Facade.field("event"),l.value=o.Facade.proxy("properties.value"),l.category=o.Facade.proxy("properties.category"),l.id=o.Facade.proxy("properties.id"),l.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")},l.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")},l.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")},l.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")},l.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")},l.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")},l.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")},l.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")},l.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")},l.sku=o.Facade.proxy("properties.sku"),l.tax=o.Facade.proxy("properties.tax"),l.name=o.Facade.proxy("properties.name"),l.price=o.Facade.proxy("properties.price"),l.total=o.Facade.proxy("properties.total"),l.repeat=o.Facade.proxy("properties.repeat"),l.coupon=o.Facade.proxy("properties.coupon"),l.shipping=o.Facade.proxy("properties.shipping"),l.discount=o.Facade.proxy("properties.discount"),l.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")},l.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")},l.description=o.Facade.proxy("properties.description"),l.plan=o.Facade.proxy("properties.plan"),l.subtotal=function(){var t=s.default(this.properties(),"subtotal"),e=this.total()||this.revenue();if(t)return t;if(!e)return 0;if(this.total()){var n=this.tax();n&&(e-=n),(n=this.shipping())&&(e-=n),(n=this.discount())&&(e+=n)}return e},l.products=function(){var t=this.properties(),e=s.default(t,"products");return Array.isArray(e)?e.filter(function(t){return null!==t}):[]},l.quantity=function(){return(this.obj.properties||{}).quantity||1},l.currency=function(){return(this.obj.properties||{}).currency||"USD"},l.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},l.query=o.Facade.proxy("options.query"),l.properties=function(t){var e=this.field("properties")||{};for(var n in t=t||{})if(Object.prototype.hasOwnProperty.call(t,n)){var r=null==this[n]?this.proxy("properties."+n):this[n]();if(null==r)continue;e[t[n]]=r,delete e[n]}return e},l.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()},l.email=function(){var t=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(t)return t;var e=this.userId();if(a.default(e))return e},l.revenue=function(){var t=this.proxy("properties.revenue"),e=this.event();return!t&&e&&e.match(/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i)&&(t=this.proxy("properties.total")),function(t){if(t&&("number"==typeof t||"string"==typeof t&&!isNaN(t=parseFloat(t=t.replace(/\$/g,"")))))return t}(t)},l.cents=function(){var t=this.revenue();return"number"!=typeof t?this.value()||0:100*t},l.identify=function(){var t=this.json();return t.traits=this.traits(),new u.Identify(t,this.opts)}},84722:function(t,e,n){"use strict";var r=n(95876);t.exports=function t(e,n){var i,o;return(void 0===n&&(n=!0),e&&"object"==typeof e)?(i=n,Object.keys(e).forEach(function(n){e[n]=t(e[n],i)}),e):Array.isArray(e)?(o=n,e.forEach(function(n,r){e[r]=t(n,o)}),e):r.is(e,n)?r.parse(e):e}},95876:function(t,e){"use strict";var n=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;e.parse=function(t){var e=[1,5,6,7,11,12],r=n.exec(t),i=0;if(!r)return new Date(t);for(var o,u=0;o=e[u];u++)r[o]=parseInt(r[o],10)||0;return r[2]=parseInt(r[2],10)||1,r[3]=parseInt(r[3],10)||1,r[2]--,r[8]=r[8]?(r[8]+"00").substring(0,3):0," "===r[4]?i=new Date().getTimezoneOffset():"Z"!==r[9]&&r[10]&&(i=60*r[11]+r[12],"+"===r[10]&&(i=0-i)),new Date(Date.UTC(r[1],r[2],r[3],r[5],r[6]+i,r[7],r[8]))},e.is=function(t,e){return"string"==typeof t&&(!e||!1!==/^\d{4}-\d{2}-\d{2}/.test(t))&&n.test(t)}},87398:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},79933:function(t){var e;e=function(){"use strict";function t(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}return function e(n,r){function i(e,i,o){if("undefined"!=typeof document){"number"==typeof(o=t({},r,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var a in o)o[a]&&(u+="; "+a,!0!==o[a]&&(u+="="+o[a].split(";")[0]));return document.cookie=e+"="+n.write(i,e)+u}}return Object.create({set:i,get:function(t){if("undefined"!=typeof document&&(!arguments.length||t)){for(var e=document.cookie?document.cookie.split("; "):[],r={},i=0;i<e.length;i++){var o=e[i].split("="),u=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(r[a]=n.read(u,a),t===a)break}catch(t){}}return t?r[t]:r}},remove:function(e,n){i(e,"",t({},n,{expires:-1}))},withAttributes:function(n){return e(this.converter,t({},this.attributes,n))},withConverter:function(n){return e(t({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(n)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},t.exports=e()},8802:function(t,e,n){"use strict";var r=n(95876),i=n(93242),o=n(54963),u=Object.prototype.toString;t.exports=function(t){return"[object Date]"===u.call(t)?t:"[object Number]"===u.call(t)?new Date(t<315576e5?1e3*t:t):r.is(t)?r.parse(t):i.is(t)?i.parse(t):o.is(t)?o.parse(t):new Date(t)}},93242:function(t,e){"use strict";var n=/\d{13}/;e.is=function(t){return n.test(t)},e.parse=function(t){return new Date(t=parseInt(t,10))}},54963:function(t,e){"use strict";var n=/\d{10}/;e.is=function(t){return n.test(t)},e.parse=function(t){return new Date(1e3*parseInt(t,10))}},82450:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return h},usePlausible:function(){return u},withPlausibleProxy:function(){return p}});var r=n(2265),i=n(31877),o=n(25566);function u(){return(0,r.useCallback)(function(t,...e){var n,r;return null===(r=(n=window).plausible)||void 0===r?void 0:r.call(n,t,e[0])},[])}let a=["exclusions","local","manual","outbound-links","file-downloads","tagged-events","pageview-props","revenue","hash"],s=(t,...e)=>{var n,r;let i=null!==(n=t.basePath)&&void 0!==n?n:"";return t.subdirectory&&(i+=`/${t.subdirectory}`),`${i}/js/${[null!==(r=t.scriptName)&&void 0!==r?r:"script",...e.sort().filter(t=>null!==t)].join(".")}.js`},c="https://plausible.io",l=t=>t?"plausible":"script",f=t=>{var e;return null!==(e=t.customDomain)&&void 0!==e?e:c},d=t=>{var e,n;return`${null!==(e=t.basePath)&&void 0!==e?e:""}/${null!==(n=t.subdirectory)&&void 0!==n?n:"proxy"}/api/event${t.trailingSlash?"/":""}`};function p(t={}){return e=>{let n=Object.assign(Object.assign({},t),{trailingSlash:!!e.trailingSlash,basePath:e.basePath}),r={next_plausible_proxy:"true",next_plausible_trailingSlash:n.trailingSlash?"true":void 0,next_plausible_basePath:n.basePath,next_plausible_customDomain:n.customDomain,next_plausible_scriptName:n.scriptName,next_plausible_subdirectory:n.subdirectory};return Object.assign(Object.assign({},e),{env:Object.assign(Object.assign({},e.env),Object.fromEntries(Object.entries(r).filter(([t,e])=>void 0!==e))),rewrites:()=>{var r,i,u,p;return r=this,i=void 0,u=void 0,p=function*(){var r;let i=f(t),u=(...t)=>{var e;return(null!==(e=o.env.NEXT_PLAUSIBLE_TEST_DOMAIN)&&void 0!==e?e:i)+s({scriptName:l(i!==c)},...t)},p=[{source:s(t),destination:u()},...(function t(e){let n=[];for(let r=0;r<e.length;r++)n.push([e[r]]),r<e.length-1&&t(e.slice(r+1)).forEach(t=>{n.push([e[r],...t])});return n})(a).map(e=>({source:s(t,...e),destination:u(...e)})),{source:d(Object.assign(Object.assign({},n),{basePath:""})),destination:`${i}/api/event`}];o.env.NEXT_PLAUSIBLE_DEBUG&&console.log("plausibleRewrites = ",p);let h=yield null===(r=e.rewrites)||void 0===r?void 0:r.call(e);return h?Array.isArray(h)?h.concat(p):(h.afterFiles?h.afterFiles=h.afterFiles.concat(p):h.afterFiles=p,h):p},new(u||(u=Promise))(function(t,e){function n(t){try{a(p.next(t))}catch(t){e(t)}}function o(t){try{a(p.throw(t))}catch(t){e(t)}}function a(e){var r;e.done?t(e.value):((r=e.value)instanceof u?r:new u(function(t){t(r)})).then(n,o)}a((p=p.apply(r,i||[])).next())})}})}}function h(t){var e;let{enabled:n=!o.env.NEXT_PUBLIC_VERCEL_ENV||"production"===o.env.NEXT_PUBLIC_VERCEL_ENV}=t,u=o.env.next_plausible_proxy?{trailingSlash:"true"===o.env.next_plausible_trailingSlash,basePath:o.env.next_plausible_basePath,customDomain:o.env.next_plausible_customDomain,scriptName:o.env.next_plausible_scriptName,subdirectory:o.env.next_plausible_subdirectory}:void 0;return r.createElement(r.Fragment,null,n&&r.createElement(i.default,Object.assign({async:!0,defer:!0,"data-api":u?d(u):void 0,"data-domain":t.domain,"data-exclude":t.exclude,src:(u?"":f(t))+s(Object.assign(Object.assign({},u),{scriptName:u?u.scriptName:l(t.selfHosted)}),t.trackLocalhost?"local":null,t.manualPageviews?"manual":null,t.pageviewProps?"pageview-props":null,t.trackOutboundLinks?"outbound-links":null,t.exclude?"exclusions":null,t.revenue?"revenue":null,t.trackFileDownloads?"file-downloads":null,t.taggedEvents?"tagged-events":null,t.hash?"hash":null),integrity:t.integrity,crossOrigin:t.integrity?"anonymous":void 0},"object"==typeof t.pageviewProps?Object.fromEntries(Object.entries(t.pageviewProps).map(([t,e])=>[`event-${t}`,e])):void 0,t.scriptProps)),n&&r.createElement(i.default,{id:"next-plausible-init",dangerouslySetInnerHTML:{__html:"window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }"},nonce:null===(e=t.scriptProps)||void 0===e?void 0:e.nonce}),t.children)}},16463:function(t,e,n){"use strict";n.r(e);var r=n(71169),i={};for(var o in r)"default"!==o&&(i[o]=(function(t){return r[t]}).bind(0,o));n.d(e,i)},31877:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return i.a}});var r=n(84080),i=n.n(r),o={};for(var u in r)"default"!==u&&(o[u]=(function(t){return r[t]}).bind(0,u));n.d(e,o)},37185:function(t){"use strict";let e=self.fetch.bind(self);t.exports=e,t.exports.default=t.exports},50154:function(t){function e(t){return function(e,n,r,o){var u,a=o&&"function"==typeof o.normalizer?o.normalizer:i;n=a(n);for(var s=!1;!s;)!function(){for(u in e){var t=a(u);if(0===n.indexOf(t)){var r=n.substr(t.length);if("."===r.charAt(0)||0===r.length){n=r.substr(1);var i=e[u];if(null==i||!n.length){s=!0;return}e=i;return}}}u=void 0,s=!0}();if(u)return null==e?e:t(e,u,r)}}function n(t,e){return t.hasOwnProperty(e)&&delete t[e],t}function r(t,e,n){return t.hasOwnProperty(e)&&(t[e]=n),t}function i(t){return t.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}t.exports=e(function(t,e){if(t.hasOwnProperty(e))return t[e]}),t.exports.find=t.exports,t.exports.replace=function(t,n,i,o){return e(r).call(this,t,n,i,o),t},t.exports.del=function(t,r,i){return e(n).call(this,t,r,null,i),t}},25267:function(t){var e;e=function(t){"use strict";var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(t,e){var n=t[0],r=t[1],i=t[2],o=t[3];n+=(r&i|~r&o)+e[0]-680876936|0,o+=((n=(n<<7|n>>>25)+r|0)&r|~n&i)+e[1]-389564586|0,i+=((o=(o<<12|o>>>20)+n|0)&n|~o&r)+e[2]+606105819|0,r+=((i=(i<<17|i>>>15)+o|0)&o|~i&n)+e[3]-1044525330|0,n+=((r=(r<<22|r>>>10)+i|0)&i|~r&o)+e[4]-176418897|0,o+=((n=(n<<7|n>>>25)+r|0)&r|~n&i)+e[5]+1200080426|0,i+=((o=(o<<12|o>>>20)+n|0)&n|~o&r)+e[6]-1473231341|0,r+=((i=(i<<17|i>>>15)+o|0)&o|~i&n)+e[7]-45705983|0,n+=((r=(r<<22|r>>>10)+i|0)&i|~r&o)+e[8]+1770035416|0,o+=((n=(n<<7|n>>>25)+r|0)&r|~n&i)+e[9]-1958414417|0,i+=((o=(o<<12|o>>>20)+n|0)&n|~o&r)+e[10]-42063|0,r+=((i=(i<<17|i>>>15)+o|0)&o|~i&n)+e[11]-1990404162|0,n+=((r=(r<<22|r>>>10)+i|0)&i|~r&o)+e[12]+1804603682|0,o+=((n=(n<<7|n>>>25)+r|0)&r|~n&i)+e[13]-40341101|0,i+=((o=(o<<12|o>>>20)+n|0)&n|~o&r)+e[14]-1502002290|0,r+=((i=(i<<17|i>>>15)+o|0)&o|~i&n)+e[15]+1236535329|0,n+=((r=(r<<22|r>>>10)+i|0)&o|i&~o)+e[1]-165796510|0,o+=((n=(n<<5|n>>>27)+r|0)&i|r&~i)+e[6]-1069501632|0,i+=((o=(o<<9|o>>>23)+n|0)&r|n&~r)+e[11]+643717713|0,r+=((i=(i<<14|i>>>18)+o|0)&n|o&~n)+e[0]-373897302|0,n+=((r=(r<<20|r>>>12)+i|0)&o|i&~o)+e[5]-701558691|0,o+=((n=(n<<5|n>>>27)+r|0)&i|r&~i)+e[10]+38016083|0,i+=((o=(o<<9|o>>>23)+n|0)&r|n&~r)+e[15]-660478335|0,r+=((i=(i<<14|i>>>18)+o|0)&n|o&~n)+e[4]-405537848|0,n+=((r=(r<<20|r>>>12)+i|0)&o|i&~o)+e[9]+568446438|0,o+=((n=(n<<5|n>>>27)+r|0)&i|r&~i)+e[14]-1019803690|0,i+=((o=(o<<9|o>>>23)+n|0)&r|n&~r)+e[3]-187363961|0,r+=((i=(i<<14|i>>>18)+o|0)&n|o&~n)+e[8]+1163531501|0,n+=((r=(r<<20|r>>>12)+i|0)&o|i&~o)+e[13]-1444681467|0,o+=((n=(n<<5|n>>>27)+r|0)&i|r&~i)+e[2]-51403784|0,i+=((o=(o<<9|o>>>23)+n|0)&r|n&~r)+e[7]+1735328473|0,r+=((i=(i<<14|i>>>18)+o|0)&n|o&~n)+e[12]-1926607734|0,n+=((r=(r<<20|r>>>12)+i|0)^i^o)+e[5]-378558|0,o+=((n=(n<<4|n>>>28)+r|0)^r^i)+e[8]-2022574463|0,i+=((o=(o<<11|o>>>21)+n|0)^n^r)+e[11]+1839030562|0,r+=((i=(i<<16|i>>>16)+o|0)^o^n)+e[14]-35309556|0,n+=((r=(r<<23|r>>>9)+i|0)^i^o)+e[1]-1530992060|0,o+=((n=(n<<4|n>>>28)+r|0)^r^i)+e[4]+1272893353|0,i+=((o=(o<<11|o>>>21)+n|0)^n^r)+e[7]-155497632|0,r+=((i=(i<<16|i>>>16)+o|0)^o^n)+e[10]-1094730640|0,n+=((r=(r<<23|r>>>9)+i|0)^i^o)+e[13]+681279174|0,o+=((n=(n<<4|n>>>28)+r|0)^r^i)+e[0]-358537222|0,i+=((o=(o<<11|o>>>21)+n|0)^n^r)+e[3]-722521979|0,r+=((i=(i<<16|i>>>16)+o|0)^o^n)+e[6]+76029189|0,n+=((r=(r<<23|r>>>9)+i|0)^i^o)+e[9]-640364487|0,o+=((n=(n<<4|n>>>28)+r|0)^r^i)+e[12]-421815835|0,i+=((o=(o<<11|o>>>21)+n|0)^n^r)+e[15]+530742520|0,r+=((i=(i<<16|i>>>16)+o|0)^o^n)+e[2]-995338651|0,r=(r<<23|r>>>9)+i|0,n+=(i^(r|~o))+e[0]-198630844|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+e[7]+1126891415|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+e[14]-1416354905|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+e[5]-57434055|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~o))+e[12]+1700485571|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+e[3]-1894986606|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+e[10]-1051523|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+e[1]-2054922799|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~o))+e[8]+1873313359|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+e[15]-30611744|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+e[6]-1560198380|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+e[13]+1309151649|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~o))+e[4]-145523070|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+e[11]-1120210379|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+e[2]+718787259|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+e[9]-343485551|0,r=(r<<21|r>>>11)+i|0,t[0]=n+t[0]|0,t[1]=r+t[1]|0,t[2]=i+t[2]|0,t[3]=o+t[3]|0}function r(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}function i(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t[e]+(t[e+1]<<8)+(t[e+2]<<16)+(t[e+3]<<24);return n}function o(t){var e,i,o,u,a,s,c=t.length,l=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=c;e+=64)n(l,r(t.substring(e-64,e)));for(i=(t=t.substring(e-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<i;e+=1)o[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(n(l,o),e=0;e<16;e+=1)o[e]=0;return a=parseInt((u=(u=8*c).toString(16).match(/(.*?)(.{0,8})$/))[2],16),s=parseInt(u[1],16)||0,o[14]=a,o[15]=s,n(l,o),l}function u(t){var n;for(n=0;n<t.length;n+=1)t[n]=function(t){var n,r="";for(n=0;n<4;n+=1)r+=e[t>>8*n+4&15]+e[t>>8*n&15];return r}(t[n]);return t.join("")}function a(t){return/[\u0080-\uFFFF]/.test(t)&&(t=unescape(encodeURIComponent(t))),t}function s(t){var e,n=[],r=t.length;for(e=0;e<r-1;e+=2)n.push(parseInt(t.substr(e,2),16));return String.fromCharCode.apply(String,n)}function c(){this.reset()}return u(o("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function e(t,e){return(t=0|t||0)<0?Math.max(t+e,0):Math.min(t,e)}ArrayBuffer.prototype.slice=function(n,r){var i,o,u,a,s=this.byteLength,c=e(n,s),l=s;return(t!==r&&(l=e(r,s)),c>l)?new ArrayBuffer(0):(u=new Uint8Array(o=new ArrayBuffer(i=l-c)),a=new Uint8Array(this,c,i),u.set(a),o)}}(),c.prototype.append=function(t){return this.appendBinary(a(t)),this},c.prototype.appendBinary=function(t){this._buff+=t,this._length+=t.length;var e,i=this._buff.length;for(e=64;e<=i;e+=64)n(this._hash,r(this._buff.substring(e-64,e)));return this._buff=this._buff.substring(e-64),this},c.prototype.end=function(t){var e,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<i;e+=1)o[e>>2]|=r.charCodeAt(e)<<(e%4<<3);return this._finish(o,i),n=u(this._hash),t&&(n=s(n)),this.reset(),n},c.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},c.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},c.prototype.setState=function(t){return this._buff=t.buff,this._length=t.length,this._hash=t.hash,this},c.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},c.prototype._finish=function(t,e){var r,i,o,u=e;if(t[u>>2]|=128<<(u%4<<3),u>55)for(n(this._hash,t),u=0;u<16;u+=1)t[u]=0;i=parseInt((r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/))[2],16),o=parseInt(r[1],16)||0,t[14]=i,t[15]=o,n(this._hash,t)},c.hash=function(t,e){return c.hashBinary(a(t),e)},c.hashBinary=function(t,e){var n=u(o(t));return e?s(n):n},c.ArrayBuffer=function(){this.reset()},c.ArrayBuffer.prototype.append=function(t){var e,r,o,u=((r=new Uint8Array((e=this._buff.buffer).byteLength+t.byteLength)).set(new Uint8Array(e)),r.set(new Uint8Array(t),e.byteLength),r),a=u.length;for(this._length+=t.byteLength,o=64;o<=a;o+=64)n(this._hash,i(u.subarray(o-64,o)));return this._buff=new Uint8Array(o-64<a?u.buffer.slice(o-64):0),this},c.ArrayBuffer.prototype.end=function(t){var e,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<i;e+=1)o[e>>2]|=r[e]<<(e%4<<3);return this._finish(o,i),n=u(this._hash),t&&(n=s(n)),this.reset(),n},c.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},c.ArrayBuffer.prototype.getState=function(){var t,e=c.prototype.getState.call(this);return e.buff=(t=e.buff,String.fromCharCode.apply(null,new Uint8Array(t))),e},c.ArrayBuffer.prototype.setState=function(t){return t.buff=function(t,e){var n,r=t.length,i=new ArrayBuffer(r),o=new Uint8Array(i);for(n=0;n<r;n+=1)o[n]=t.charCodeAt(n);return e?o:i}(t.buff,!0),c.prototype.setState.call(this,t)},c.ArrayBuffer.prototype.destroy=c.prototype.destroy,c.ArrayBuffer.prototype._finish=c.prototype._finish,c.ArrayBuffer.hash=function(t,e){var r=u(function(t){var e,r,o,u,a,s,c=t.length,l=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=c;e+=64)n(l,i(t.subarray(e-64,e)));for(r=(t=e-64<c?t.subarray(e-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<r;e+=1)o[e>>2]|=t[e]<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(n(l,o),e=0;e<16;e+=1)o[e]=0;return a=parseInt((u=(u=8*c).toString(16).match(/(.*?)(.{0,8})$/))[2],16),s=parseInt(u[1],16)||0,o[14]=a,o[15]=s,n(l,o),l}(new Uint8Array(t)));return e?s(r):r},c},t.exports=e()},59226:function(t,e,n){"use strict";let r;n.d(e,{u:function(){return T}});var i=n(2265),o=n(99299),u=n(6584),a=n(26400),s=n(61463),c=n(88703),l=n(33856),f=n(41469),d=n(70777),p=n(5583);function h(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];t&&n.length>0&&t.classList.add(...n)}function v(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];t&&n.length>0&&t.classList.remove(...n)}var y=n(53509),g=n(12585),m=n(3600);function b(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.split(/\s+/).filter(t=>t.length>1)}let w=(0,i.createContext)(null);w.displayName="TransitionContext";var _=((r=_||{}).Visible="visible",r.Hidden="hidden",r);let O=(0,i.createContext)(null);function S(t){return"children"in t?S(t.children):t.current.filter(t=>{let{el:e}=t;return null!==e.current}).filter(t=>{let{state:e}=t;return"visible"===e}).length>0}function x(t,e){let n=(0,c.E)(t),r=(0,i.useRef)([]),s=(0,a.t)(),l=(0,o.G)(),f=(0,u.z)(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.l4.Hidden,i=r.current.findIndex(e=>{let{el:n}=e;return n===t});-1!==i&&((0,p.E)(e,{[m.l4.Unmount](){r.current.splice(i,1)},[m.l4.Hidden](){r.current[i].state="hidden"}}),l.microTask(()=>{var t;!S(r)&&s.current&&(null==(t=n.current)||t.call(n))}))}),d=(0,u.z)(t=>{let e=r.current.find(e=>{let{el:n}=e;return n===t});return e?"visible"!==e.state&&(e.state="visible"):r.current.push({el:t,state:"visible"}),()=>f(t,m.l4.Unmount)}),h=(0,i.useRef)([]),v=(0,i.useRef)(Promise.resolve()),y=(0,i.useRef)({enter:[],leave:[],idle:[]}),g=(0,u.z)((t,n,r)=>{h.current.splice(0),e&&(e.chains.current[n]=e.chains.current[n].filter(e=>{let[n]=e;return n!==t})),null==e||e.chains.current[n].push([t,new Promise(t=>{h.current.push(t)})]),null==e||e.chains.current[n].push([t,new Promise(t=>{Promise.all(y.current[n].map(t=>{let[e,n]=t;return n})).then(()=>t())})]),"enter"===n?v.current=v.current.then(()=>null==e?void 0:e.wait.current).then(()=>r(n)):r(n)}),b=(0,u.z)((t,e,n)=>{Promise.all(y.current[e].splice(0).map(t=>{let[e,n]=t;return n})).then(()=>{var t;null==(t=h.current.shift())||t()}).then(()=>n(e))});return(0,i.useMemo)(()=>({children:r,register:d,unregister:f,onStart:g,onStop:b,wait:v,chains:y}),[d,f,r,g,b,y,v])}function E(){}O.displayName="NestingContext";let k=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function j(t){var e;let n={};for(let r of k)n[r]=null!=(e=t[r])?e:E;return n}let A=m.AN.RenderStrategy,P=(0,m.yV)(function(t,e){let{show:n,appear:r=!1,unmount:o=!0,...a}=t,c=(0,i.useRef)(null),d=(0,f.T)(c,e);(0,l.H)();let p=(0,y.oJ)();if(void 0===n&&null!==p&&(n=(p&y.ZM.Open)===y.ZM.Open),![!0,!1].includes(n))throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[h,v]=(0,i.useState)(n?"visible":"hidden"),g=x(()=>{v("hidden")}),[b,_]=(0,i.useState)(!0),E=(0,i.useRef)([n]);(0,s.e)(()=>{!1!==b&&E.current[E.current.length-1]!==n&&(E.current.push(n),_(!1))},[E,n]);let k=(0,i.useMemo)(()=>({show:n,appear:r,initial:b}),[n,r,b]);(0,i.useEffect)(()=>{if(n)v("visible");else if(S(g)){let t=c.current;if(!t)return;let e=t.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&v("hidden")}else v("hidden")},[n,g]);let j={unmount:o},P=(0,u.z)(()=>{var e;b&&_(!1),null==(e=t.beforeEnter)||e.call(t)}),I=(0,u.z)(()=>{var e;b&&_(!1),null==(e=t.beforeLeave)||e.call(t)});return i.createElement(O.Provider,{value:g},i.createElement(w.Provider,{value:k},(0,m.sY)({ourProps:{...j,as:i.Fragment,children:i.createElement(C,{ref:d,...j,...a,beforeEnter:P,beforeLeave:I})},theirProps:{},defaultTag:i.Fragment,features:A,visible:"visible"===h,name:"Transition"})))}),C=(0,m.yV)(function(t,e){var n,r,_;let E;let{beforeEnter:k,afterEnter:P,beforeLeave:C,afterLeave:I,enter:T,enterFrom:M,enterTo:N,entered:L,leave:F,leaveFrom:D,leaveTo:R,...z}=t,U=(0,i.useRef)(null),G=(0,f.T)(U,e),J=null==(n=z.unmount)||n?m.l4.Unmount:m.l4.Hidden,{show:B,appear:q,initial:V}=function(){let t=(0,i.useContext)(w);if(null===t)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}(),[K,Z]=(0,i.useState)(B?"visible":"hidden"),H=function(){let t=(0,i.useContext)(O);if(null===t)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}(),{register:W,unregister:$}=H;(0,i.useEffect)(()=>W(U),[W,U]),(0,i.useEffect)(()=>{if(J===m.l4.Hidden&&U.current){if(B&&"visible"!==K){Z("visible");return}return(0,p.E)(K,{hidden:()=>$(U),visible:()=>W(U)})}},[K,U,W,$,B,J]);let Y=(0,c.E)({base:b(z.className),enter:b(T),enterFrom:b(M),enterTo:b(N),entered:b(L),leave:b(F),leaveFrom:b(D),leaveTo:b(R)}),Q=(_={beforeEnter:k,afterEnter:P,beforeLeave:C,afterLeave:I},E=(0,i.useRef)(j(_)),(0,i.useEffect)(()=>{E.current=j(_)},[_]),E),X=(0,l.H)();(0,i.useEffect)(()=>{if(X&&"visible"===K&&null===U.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[U,K,X]);let tt=q&&B&&V,te=X&&(!V||q)?B?"enter":"leave":"idle",tn=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[e,n]=(0,i.useState)(t),r=(0,a.t)(),o=(0,i.useCallback)(t=>{r.current&&n(e=>e|t)},[e,r]),u=(0,i.useCallback)(t=>!!(e&t),[e]);return{flags:e,addFlag:o,hasFlag:u,removeFlag:(0,i.useCallback)(t=>{r.current&&n(e=>e&~t)},[n,r]),toggleFlag:(0,i.useCallback)(t=>{r.current&&n(e=>e^t)},[n])}}(0),tr=(0,u.z)(t=>(0,p.E)(t,{enter:()=>{tn.addFlag(y.ZM.Opening),Q.current.beforeEnter()},leave:()=>{tn.addFlag(y.ZM.Closing),Q.current.beforeLeave()},idle:()=>{}})),ti=(0,u.z)(t=>(0,p.E)(t,{enter:()=>{tn.removeFlag(y.ZM.Opening),Q.current.afterEnter()},leave:()=>{tn.removeFlag(y.ZM.Closing),Q.current.afterLeave()},idle:()=>{}})),to=x(()=>{Z("hidden"),$(U)},H),tu=(0,i.useRef)(!1);!function(t){let{immediate:e,container:n,direction:r,classes:i,onStart:u,onStop:l}=t,f=(0,a.t)(),y=(0,o.G)(),g=(0,c.E)(r);(0,s.e)(()=>{e&&(g.current="enter")},[e]),(0,s.e)(()=>{let t=(0,d.k)();y.add(t.dispose);let e=n.current;if(e&&"idle"!==g.current&&f.current){var r,o,a;let n,s,c,f,y,m,b;return t.dispose(),u.current(g.current),t.add((r=i.current,o="enter"===g.current,a=()=>{t.dispose(),l.current(g.current)},s=o?"enter":"leave",c=(0,d.k)(),f=void 0!==a?(n={called:!1},function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!n.called)return n.called=!0,a(...e)}):()=>{},"enter"===s&&(e.removeAttribute("hidden"),e.style.display=""),y=(0,p.E)(s,{enter:()=>r.enter,leave:()=>r.leave}),m=(0,p.E)(s,{enter:()=>r.enterTo,leave:()=>r.leaveTo}),b=(0,p.E)(s,{enter:()=>r.enterFrom,leave:()=>r.leaveFrom}),v(e,...r.base,...r.enter,...r.enterTo,...r.enterFrom,...r.leave,...r.leaveFrom,...r.leaveTo,...r.entered),h(e,...r.base,...y,...b),c.nextFrame(()=>{v(e,...r.base,...y,...b),h(e,...r.base,...y,...m),function(t,e){let n=(0,d.k)();if(!t)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(t),[o,u]=[r,i].map(t=>{let[e=0]=t.split(",").filter(Boolean).map(t=>t.includes("ms")?parseFloat(t):1e3*parseFloat(t)).sort((t,e)=>e-t);return e}),a=o+u;if(0!==a){n.group(n=>{n.setTimeout(()=>{e(),n.dispose()},a),n.addEventListener(t,"transitionrun",t=>{t.target===t.currentTarget&&n.dispose()})});let r=n.addEventListener(t,"transitionend",t=>{t.target===t.currentTarget&&(e(),r())})}else e();n.add(()=>e()),n.dispose}(e,()=>(v(e,...r.base,...y),h(e,...r.base,...r.entered),f()))}),c.dispose)),t.dispose}},[r])}({immediate:tt,container:U,classes:Y,direction:te,onStart:(0,c.E)(t=>{tu.current=!0,to.onStart(U,t,tr)}),onStop:(0,c.E)(t=>{tu.current=!1,to.onStop(U,t,ti),"leave"!==t||S(to)||(Z("hidden"),$(U))})});let ta=z;return tt?ta={...ta,className:(0,g.A)(z.className,...Y.current.enter,...Y.current.enterFrom)}:tu.current&&(ta.className=(0,g.A)(z.className,null==(r=U.current)?void 0:r.className),""===ta.className&&delete ta.className),i.createElement(O.Provider,{value:to},i.createElement(y.up,{value:(0,p.E)(K,{visible:y.ZM.Open,hidden:y.ZM.Closed})|tn.flags},(0,m.sY)({ourProps:{ref:G},theirProps:ta,defaultTag:"div",features:A,visible:"visible"===K,name:"Transition.Child"})))}),I=(0,m.yV)(function(t,e){let n=null!==(0,i.useContext)(w),r=null!==(0,y.oJ)();return i.createElement(i.Fragment,null,!n&&r?i.createElement(P,{ref:e,...t}):i.createElement(C,{ref:e,...t}))}),T=Object.assign(P,{Child:I,Root:P})},99299:function(t,e,n){"use strict";n.d(e,{G:function(){return o}});var r=n(2265),i=n(70777);function o(){let[t]=(0,r.useState)(i.k);return(0,r.useEffect)(()=>()=>t.dispose(),[t]),t}},6584:function(t,e,n){"use strict";n.d(e,{z:function(){return o}});var r=n(2265),i=n(88703);let o=function(t){let e=(0,i.E)(t);return r.useCallback(function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.current(...n)},[e])}},26400:function(t,e,n){"use strict";n.d(e,{t:function(){return o}});var r=n(2265),i=n(61463);function o(){let t=(0,r.useRef)(!1);return(0,i.e)(()=>(t.current=!0,()=>{t.current=!1}),[]),t}},61463:function(t,e,n){"use strict";n.d(e,{e:function(){return o}});var r=n(2265),i=n(54462);let o=(t,e)=>{i.O.isServer?(0,r.useEffect)(t,e):(0,r.useLayoutEffect)(t,e)}},88703:function(t,e,n){"use strict";n.d(e,{E:function(){return o}});var r=n(2265),i=n(61463);function o(t){let e=(0,r.useRef)(t);return(0,i.e)(()=>{e.current=t},[t]),e}},33856:function(t,e,n){"use strict";n.d(e,{H:function(){return u}});var r,i=n(2265),o=n(54462);function u(){let t;let e=(t="undefined"==typeof document,(0,(r||(r=n.t(i,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!t)),[u,a]=i.useState(o.O.isHandoffComplete);return u&&!1===o.O.isHandoffComplete&&a(!1),i.useEffect(()=>{!0!==u&&a(!0)},[u]),i.useEffect(()=>o.O.handoff(),[]),!e&&u}},41469:function(t,e,n){"use strict";n.d(e,{T:function(){return a},h:function(){return u}});var r=n(2265),i=n(6584);let o=Symbol();function u(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(t,{[o]:e})}function a(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];let u=(0,r.useRef)(e);(0,r.useEffect)(()=>{u.current=e},[e]);let a=(0,i.z)(t=>{for(let e of u.current)null!=e&&("function"==typeof e?e(t):e.current=t)});return e.every(t=>null==t||(null==t?void 0:t[o]))?void 0:a}},53509:function(t,e,n){"use strict";let r;n.d(e,{ZM:function(){return u},oJ:function(){return a},up:function(){return s}});var i=n(2265);let o=(0,i.createContext)(null);o.displayName="OpenClosedContext";var u=((r=u||{})[r.Open=1]="Open",r[r.Closed=2]="Closed",r[r.Closing=4]="Closing",r[r.Opening=8]="Opening",r);function a(){return(0,i.useContext)(o)}function s(t){let{value:e,children:n}=t;return i.createElement(o.Provider,{value:e},n)}},12585:function(t,e,n){"use strict";function r(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return Array.from(new Set(e.flatMap(t=>"string"==typeof t?t.split(" "):[]))).filter(Boolean).join(" ")}n.d(e,{A:function(){return r}})},70777:function(t,e,n){"use strict";n.d(e,{k:function(){return function t(){let e=[],n={addEventListener:(t,e,r,i)=>(t.addEventListener(e,r,i),n.add(()=>t.removeEventListener(e,r,i))),requestAnimationFrame(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];let i=requestAnimationFrame(...e);return n.add(()=>cancelAnimationFrame(i))},nextFrame(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return n.requestAnimationFrame(()=>n.requestAnimationFrame(...e))},setTimeout(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];let i=setTimeout(...e);return n.add(()=>clearTimeout(i))},microTask(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];let o={current:!0};return(0,r.Y)(()=>{o.current&&e[0]()}),n.add(()=>{o.current=!1})},style(t,e,n){let r=t.style.getPropertyValue(e);return Object.assign(t.style,{[e]:n}),this.add(()=>{Object.assign(t.style,{[e]:r})})},group(e){let n=t();return e(n),this.add(()=>n.dispose())},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return n}}});var r=n(28043)},54462:function(t,e,n){"use strict";n.d(e,{O:function(){return a}});var r=Object.defineProperty,i=(t,e,n)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,o=(t,e,n)=>(i(t,"symbol"!=typeof e?e+"":e,n),n);class u{set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}constructor(){o(this,"current",this.detect()),o(this,"handoffState","pending"),o(this,"currentId",0)}}let a=new u},5583:function(t,e,n){"use strict";function r(t,e){for(var n=arguments.length,i=Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];if(t in e){let n=e[t];return"function"==typeof n?n(...i):n}let u=Error('Tried to handle "'.concat(t,'" but there is no handler defined. Only defined handlers are: ').concat(Object.keys(e).map(t=>'"'.concat(t,'"')).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(u,r),u}n.d(e,{E:function(){return r}})},28043:function(t,e,n){"use strict";function r(t){"function"==typeof queueMicrotask?queueMicrotask(t):Promise.resolve().then(t).catch(t=>setTimeout(()=>{throw t}))}n.d(e,{Y:function(){return r}})},3600:function(t,e,n){"use strict";let r,i;n.d(e,{AN:function(){return s},Y2:function(){return d},l4:function(){return c},sY:function(){return l},yV:function(){return v}});var o=n(2265),u=n(12585),a=n(5583),s=((r=s||{})[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r),c=((i=c||{})[i.Unmount=0]="Unmount",i[i.Hidden=1]="Hidden",i);function l(t){let{ourProps:e,theirProps:n,slot:r,defaultTag:i,features:o,visible:u=!0,name:s,mergeRefs:c}=t;c=null!=c?c:p;let l=h(n,e);if(u)return f(l,r,i,s,c);let d=null!=o?o:0;if(2&d){let{static:t=!1,...e}=l;if(t)return f(e,r,i,s,c)}if(1&d){let{unmount:t=!0,...e}=l;return(0,a.E)(t?0:1,{0:()=>null,1:()=>f({...e,hidden:!0,style:{display:"none"}},r,i,s,c)})}return f(l,r,i,s,c)}function f(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,{as:a=n,children:s,refName:c="ref",...l}=g(t,["unmount","static"]),f=void 0!==t.ref?{[c]:t.ref}:{},d="function"==typeof s?s(e):s;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(e));let p={};if(e){let t=!1,n=[];for(let[r,i]of Object.entries(e))"boolean"==typeof i&&(t=!0),!0===i&&n.push(r);t&&(p["data-headlessui-state"]=n.join(" "))}if(a===o.Fragment&&Object.keys(y(l)).length>0){if(!(0,o.isValidElement)(d)||Array.isArray(d)&&d.length>1)throw Error(['Passing props on "Fragment"!',"","The current component <".concat(r,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(l).map(t=>"  - ".concat(t)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(t=>"  - ".concat(t)).join("\n")].join("\n"));let t=d.props,e="function"==typeof(null==t?void 0:t.className)?function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0,u.A)(null==t?void 0:t.className(...n),l.className)}:(0,u.A)(null==t?void 0:t.className,l.className);return(0,o.cloneElement)(d,Object.assign({},h(d.props,y(g(l,["ref"]))),p,f,{ref:i(d.ref,f.ref)},e?{className:e}:{}))}return(0,o.createElement)(a,Object.assign({},g(l,["ref"]),a!==o.Fragment&&f,a!==o.Fragment&&p),d)}function d(){let t=(0,o.useRef)([]),e=(0,o.useCallback)(e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)},[]);return function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];if(!r.every(t=>null==t))return t.current=r,e}}function p(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.every(t=>null==t)?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function h(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];if(0===e.length)return{};if(1===e.length)return e[0];let r={},i={};for(let t of e)for(let e in t)e.startsWith("on")&&"function"==typeof t[e]?(null!=i[e]||(i[e]=[]),i[e].push(t[e])):r[e]=t[e];if(r.disabled||r["aria-disabled"])return Object.assign(r,Object.fromEntries(Object.keys(i).map(t=>[t,void 0])));for(let t in i)Object.assign(r,{[t](e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(let n of i[t]){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;n(e,...r)}}});return r}function v(t){var e;return Object.assign((0,o.forwardRef)(t),{displayName:null!=(e=t.displayName)?e:t.name})}function y(t){let e=Object.assign({},t);for(let t in e)void 0===e[t]&&delete e[t];return e}function g(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Object.assign({},t);for(let t of e)t in n&&delete n[t];return n}},49668:function(t,e,n){"use strict";n.d(e,{v4:function(){return u}});for(var r,i=256,o=[];i--;)o[i]=(i+256).toString(16).substring(1);function u(){var t,e=0,n="";if(!r||i+16>256){for(r=Array(e=256);e--;)r[e]=256*Math.random()|0;e=i=0}for(;e<16;e++)t=r[i+e],6==e?n+=o[15&t|64]:8==e?n+=o[63&t|128]:n+=o[t],1&e&&e>1&&e<11&&(n+="-");return i++,n}},91472:function(t,e,n){"use strict";function r(t,e,n){e.split&&(e=e.split("."));for(var r,i,o=0,u=e.length,a=t;o<u&&"__proto__"!=(i=""+e[o++])&&"constructor"!==i&&"prototype"!==i;)a=a[i]=o===u?n:typeof(r=a[i])==typeof e?r:0*e[o]!=0||~(""+e[o]).indexOf(".")?{}:[]}n.d(e,{N:function(){return r}})},11735:function(t,e,n){"use strict";n.d(e,{Jh:function(){return s},ZT:function(){return i},_T:function(){return u},ev:function(){return c},mG:function(){return a},pi:function(){return o}});var r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function u(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function a(t,e,n,r){return new(n||(n=Promise))(function(i,o){function u(t){try{s(r.next(t))}catch(t){o(t)}}function a(t){try{s(r.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(u,a)}s((r=r.apply(t,e||[])).next())})}function s(t,e){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(s){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(6===a[0]&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=e.call(t,u)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function c(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError}}]);
//# sourceMappingURL=4029-c1df91e4f3e6dd47.js.map