1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3109],{5719:(e,t,n)=>{n.d(t,{b:()=>i});var o=n(7949);let i=()=>({name:"Google Analytics",isAvailable:()=>"function"==typeof window.gtag,trackEvent:e=>{if("function"!=typeof window.gtag)return void o.ph.warn("Google Analytics not available");try{let{category:t,action:n,label:i,value:r}=e.properties;window.gtag("event",n,{event_category:t,event_label:i,value:r,user_id:e.userId}),o.ph.log("Event sent to Google Analytics",e.properties)}catch(e){o.ph.error("Failed to send event to Google Analytics",e)}},trackPageView:(e,t)=>{if("function"!=typeof window.gtag)return void o.ph.warn("Google Analytics not available for page view");try{window.gtag("event","page_view",{page_location:window.location.href,page_title:null!=e?e:document.title,page_path:window.location.pathname,...t}),o.ph.log("Page view sent to Google Analytics",{page:null!=e?e:document.title,url:window.location.href})}catch(e){o.ph.error("Failed to send page view to Google Analytics",e)}},identifyUser:(e,t)=>{if("function"!=typeof window.gtag)return void o.ph.warn("Google Analytics not available for user identification");try{window.gtag("set","user_properties",{user_id:e,...t}),o.ph.log("User identified in Google Analytics",{userId:e,traits:t})}catch(e){o.ph.error("Failed to identify user in Google Analytics",e)}},extractUserId:()=>{try{var e,t,n;let i=null==(e=document.cookie.split("; ").find(e=>e.startsWith("_ga=")))?void 0:e.split("=")[1];if(i){let e=i.split(".");if(e.length>=4&&(null==(n=e[0])?void 0:n.startsWith("GA"))){let t="".concat(e[2],".").concat(e[3]);return o.ph.log("Google Analytics client ID extracted:",t),t}if(e.length>=3){let t=e.slice(2).join(".");return o.ph.log("Google Analytics client ID extracted (legacy format):",t),t}}let r=null==(t=document.cookie.split("; ").find(e=>e.startsWith("_ga_")))?void 0:t.split("=")[1];if(r)return o.ph.log("Google Analytics GA4 session cookie extracted"),r}catch(e){o.ph.error("Error extracting Google Analytics user ID",e)}}})},7949:(e,t,n)=>{n.d(t,{Bx:()=>i,gY:()=>s,ph:()=>r,sx:()=>l,u:()=>c});var o=n(37811);let i=()=>({isProduction:!0,isPreview:!1,enableGoogleAnalytics:!0,enableSegment:!0,debug:"true"===o.env.NEXT_PUBLIC_ANALYTICS_DEBUG}),r={log:(e,t)=>{i().debug&&console.log("[Analytics] ".concat(e),t||"")},warn:(e,t)=>{i().debug&&console.warn("[Analytics Warning] ".concat(e),t||"")},error:(e,t)=>{i().debug&&console.error("[Analytics Error] ".concat(e),t||"")},event:e=>{if(i().debug){var t;console.group("[Analytics Event] ".concat(e.eventName)),console.log("Properties:",e.properties),console.log("User ID:",null!=(t=e.userId)?t:"anonymous"),console.log("Timestamp:",e.timestamp.toISOString()),console.groupEnd()}}},a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(()=>{let e={};try{var t;let n=null==(t=document.cookie.split("; ").find(e=>e.startsWith("fusionauth.sso")))?void 0:t.split("=")[1];n&&(e.fusionAuthId=n);let o=localStorage.getItem("elastic_session_id");o&&(e.elasticId=o)}catch(e){console.warn("Error extracting user identifiers:",e)}return e})();return{eventName:"".concat(e.category,"_").concat(e.action),properties:{...e,...t,page_url:window.location.href,page_title:document.title,referrer:document.referrer,user_agent:"undefined"!=typeof navigator?navigator.userAgent:""},timestamp:new Date,userId:n.fusionAuthId,anonymousId:n.elasticId}},l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i(),o=a(e,t);r.event(o),n.isProduction||r.log("Event tracked (connectors will handle in production)",o.properties)},c=e=>e.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" "),s=e=>{let t=e.dataset.evCategory,n=e.dataset.evAction;return t&&n?{category:t,action:n,object:e.dataset.evObject,label:e.dataset.evLabel,value:e.dataset.evValue,context:e.dataset.evContext}:null}},19313:(e,t,n)=>{n.d(t,{U:()=>r});var o=n(7949);function i(){var e;let t=window;return t.dataLayer=null!=(e=t.dataLayer)?e:[],t.dataLayer}let r=()=>({name:"Google Tag Manager",isAvailable:()=>{let e=window,t=Array.isArray(e.dataLayer);return o.ph.log("[GTM Connector] Availability check:",{available:t,hasWindow:!0,hasDataLayer:void 0!==e.dataLayer,isArray:Array.isArray(e.dataLayer)}),t},trackEvent:e=>{try{let t=i(),{category:n,action:r,label:a,value:l,context:c,element_type:s,element_id:d,element_classes:u,click_text:g,target_url:h}=e.properties,p={event:e.eventName,event_category:n,event_action:r,event_label:a,event_value:l,event_c
1ontext:c,element_type:s,element_id:d,element_classes:u,click_text:g,click_url:h,user_id:e.userId,anonymous_id:e.anonymousId,page_url:e.properties.page_url,page_title:e.properties.page_title,page_path:window.location.pathname,timestamp:e.timestamp.toISOString()};t.push(p),o.ph.log("Event pushed to GTM dataLayer",p)}catch(e){o.ph.error("Failed to push event to GTM dataLayer",e)}},trackPageView:(e,t)=>{try{let n=i(),r={event:"page_view",page_location:window.location.href,page_title:null!=e?e:document.title,page_path:window.location.pathname,...t};n.push(r),o.ph.log("Page view pushed to GTM dataLayer",r)}catch(e){o.ph.error("Failed to push page view to GTM dataLayer",e)}},identifyUser:(e,t)=>{try{let n=i(),r={event:"user_identify",user_id:e,...t};n.push(r),o.ph.log("User identification pushed to GTM dataLayer",{userId:e,traits:t})}catch(e){o.ph.error("Failed to push user identification to GTM dataLayer",e)}},extractUserId:()=>{}})},27831:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(14118);n(65702);let i={nav:"text-2xl font-extrabold",footer
1:"text-[24.855px] font-bold tracking-[0.02em]"},r=e=>{let{surface:t,text:n}=e;return(0,o.jsx)("span",{className:"font-primary uppercase leading-none text-light-text-primary dark:text-dark-text-primary ".concat(i[t]),children:n})}},46603:(e,t,n)=>{n.d(t,{tx:()=>o.t}),n(96144),n(83863),n(5719),n(19313);var o=n(71772);n(76062)},48221:(e,t,n)=>{function o(e){let{src:t,width:n,quality:o}=e,i=encodeURI(t.replace("https://".concat("content.elevationchurch.org","/images"),""));if(i.startsWith("http")){let e=new URL(i);return e.searchParams.set("w",n.toString()),o&&e.searchParams.set("q",o.toString()),e.toString()}let r=[];r.push("width=".concat(n.toString()));let a=i.split("?")[1],l="auto";if(a){let e=a.split("&");if(e.length>0){let t=e.find(e=>e.startsWith("format="));if(null==t?void 0:t.includes("format=")){let e=t.split("=")[1];e&&(l=e)}}}r.push("format=".concat(l)),o&&r.push("quality=".concat(o.toString()));let c=r.join("&"),s=i.split("?")[0];return"https://".concat("content.elevationchurch.org","/images").concat(s,"?").concat(c)}n.r(t),n.d(t,{default:()=>o})},48576:(e,t,n)=>{n.r(t),n.d(t,{CONNECTOR_MANAGER_KEY:()=>d,GlobalAnalyticsHandler:()=>u});var o=n(65702),i=n(71772),r=n(69721),a=n(7949),l=n(46603);let c={AD:"ad",EMAIL:"email",ORGANIC:"organic"},s="elevation_geo_tracked",d=Symbol.for("__elevation_connector_manager__");function u(e){let{pathname:t,searchParams:n,enableScrollTracking:u=!0,geolocation:g}=e;(0,o.useEffect)(()=>{window[d]=i.t},[]),(0,o.useEffect)(()=>{g&&function(e,t){if(function(){if("undefined"==typeof sessionStorage)return!1;try{return"true"===sessionStorage.getItem(s)}catch(e){return a.ph.warn("Failed to check geo tracking session:",e),!1}}())return a.ph.log("Geolocation already tracked in this session");if(!e.country&&!e.city&&!e.latitude)return a.ph.log("No geolocation data available");try{var n;if(l.tx.trackEvent({category:r.g.USER,action:r.b.VIEW,label:"Site Entry - Geo Location",context:"session-start"},{geo_country:e.country,geo_city:e.city,geo_region:e.countryRegion,geo_latitude:e.latitude,geo_longitude:e.longitude,geo_source:null!=(n=e.source)?n:"vercel-headers",...t}),"undefined"!=typeof sessionStorage)try{sessionStorage.setItem(s,"true"),sessionStorage.setItem("elevation_geo_session",Date.now().toString())}catch(e){a.ph.warn("Failed to mark geo tracking session:",e)}a.ph.log("Geolocation tracked on entry:",e)}catch(e){a.ph.error("Failed to track geolocation on entry:",e)}}({...g,source:"vercel-headers"},{entry_page:t,has_search_params:!!n})},[]),(0,o.useEffect)(()=>{!function(e){let t=function(e){var t,n,o,i,r,a;let l=null!=(t=e.get("campaign_channel"))?t:"undefined"!=typeof document&&document.referrer?function(e){let t=e.toLowerCase();return t.includes("facebook")||t.includes("instagram")?c.AD:t.includes("mail")?c.EMAIL:t.includes("google")||t.includes("bing")?c.ORGANIC:null}(document.referrer):null,s=null!=(n=e.get("campaign_source"))?n:e.get("utm_source"),d=null!=(o=e.get("campaign_medium"))?o:e.get("utm_medium"),u=null!=(i=e.get("campaign_name"))?i:e.get("utm_campaign"),g=null!=(r=e.get("campaign_content"))?r:e.get("utm_content"),h=null!=(a=e.get("campaign_id"))?a:e.get("utm_id");return l||s||u?{campaign_channel:null!=l?l:void 0,campaign_source:null!=s?s:void 0,campaign_medium:null!=d?d:void 0,campaign_name:null!=u?u:void 0,campaign_content:null!=g?g:void 0,campaign_id:null!=h?h:void 0,landing_page:window.location.pathname,referrer:"undefined"!=typeof document&&document.referrer||void 0,timestamp:new Date().toISOString()}:null}(new URLSearchParams(window.location.search));if(!t)return a.ph.log("No campaign parameters found in URL");try{l.tx.trackEvent({category:r.g.USER,action:"campaign_entry",label:"Campaign Entry",context:"attribution"},{...t,...e}),a.ph.log("Campaign entry tracked:",t)}catch(e){a.ph.error("Failed to track campaign entry:",e)}}({entry_page:t,has_search_params:!!n})},[]),(0,o.useEffect)(()=>{let e=i.t.getAllUserIdentifiers();a.ph.log("User identifiers detected:",e)},[]),(0,o.useEffect)(()=>{let e=n?"".concat(t,"?").concat(n):t;a.ph.log("Route change detected:",e),i.t.trackPageView(e,{pathname:t,search_params:n})},[t,n]);let h=(0,o.useCallback)(e=>{var n,o,l,c;let s,d=e.target,u=d,g=null;for(;u&&!g;)(g=(0,a.gY)(u))||(u=u.parentElement);if(g&&u){let e=(()=>
1{if("A"!==u.tagName)return!1;let e=u.href;if(!e)return!1;try{let t=new URL(e);return"http:"===t.protocol||"https:"===t.protocol}catch(e){return!1}})(),t=null!=(l=null==(o=u.textContent)?void 0:o.trim())?l:"";i.t.trackEvent(g,{element_type:u.tagName.toLowerCase(),element_id:u.id||void 0,element_classes:u.className&&"string"==typeof u.className?u.className:void 0,click_text:t.length>100?"".concat(t.substring(0,100),"..."):t||void 0,is_navigation_link:e,target_url:e?u.href:void 0});return}let h=null;for(let e=d;e;e=e.parentElement){if("true"===e.dataset.evTracked)return;if("A"===e.tagName){h=e;break}}if(!h||!h.getAttribute("href"))return;try{s=new URL(h.href)}catch(e){return}if("http:"!==s.protocol&&"https:"!==s.protocol||s.host===window.location.host)return;let p=null!=(c=null==(n=h.textContent)?void 0:n.trim())?c:"",f=p.length>100?"".concat(p.substring(0,100),"..."):p||s.host;i.t.trackEvent({category:r.g.CTA,action:r.b.CLICK,label:f,context:t},{element_type:"a",element_id:h.id||void 0,outbound:!0,target_url:h.href,target_host:s.host,link_text:p||void 0})},[t]);return(0,o.useEffect)(()=>(document.addEventListener("click",h,!0),()=>{document.removeEventListener("click",h,!0)}),[h]),(0,o.useEffect)(()=>{if(!u)return;let e=0,n=[25,50,75,100],o=new Set,a=null,l=()=>{null===a&&(a=setTimeout(()=>{let l=document.documentElement.scrollHeight-window.innerHeight,c=window.pageYOffset,s=l>0?Math.round(c/l*100):0;s>e&&(e=s,n.forEach(e=>{s>=e&&!o.has(e)&&(o.add(e),i.t.trackEvent({category:"page",action:r.b.SCROLL,label:"".concat(String(e),"% depth"),value:e,context:t}))})),a=null},250))};return window.addEventListener("scroll",l,{passive:!0}),()=>{window.removeEventListener("scroll",l),null!==a&&clearTimeout(a)}},[t,u]),null}},50726:(e,t,n)=>{n.d(t,{GlobalUISettingsProvider:()=>l,O:()=>c});var o=n(65702);let i="prefersReducedMotion",r="reduced-motion",a=(0,o.createContext)(void 0);function l(e){let{children:t}=e,[n,l]=(0,o.useState)(void 0);return(0,o.useEffect)(()=>{let e=localStorage.getItem(i);null!==e?l("true"===e):l(window.matchMedia("(prefers-reduced-motion: reduce)").matches)},[]),(0,o.useEffect)(()=>{"undefined"!=typeof document&&void 0!==n&&(n?(document.documentElement.classList.add(r),localStorage.setItem(i,"true")):(document.documentElement.classList.remove(r),localStorage.setItem(i,"false")))},[n]),(0,o.createElement)(a.Provider,{value:{isReduced:n,setIsReduced:l}},t)}let c=()=>{let e=(0,o.useContext)(a);if(!e)throw Error("useGlobalUISettings must be used within a GlobalUISettingsProvider");return e}},64499:(e,t,n)=>{n.d(t,{j:()=>a});var o=n(7949);let i="ACCEPT",r=()=>{let e=window.Osano;return null==e?void 0:e.cm},a=e=>{if(!(0,o.Bx)().isProduction||(()=>{if(!(0,o.Bx)().isProduction)return!0;let e=r();return!!e&&(e=>{var t;if(e.analytics)return e.analytics;let n=null==(t=e.getConsent)?void 0:t.call(e);return null==n?void 0:n.ANALYTICS})(e)===i})())return void e();let t=r();if(!(null==t?void 0:t.addEventListener)){let t=0,n=setInterval(()=>{t+=250;let i=r();(null==i?void 0:i.addEventListener)?(clearInterval(n),l(i,e)):t>=5e3&&(clearInterval(n),o.ph.warn("Osano never loaded; dropping consent-gated call"))},250);return}l(t,e)},l=(e,t)=>
1{var n;let o=!1,r=n=>{var a;o||n.ANALYTICS===i&&(o=!0,null==(a=e.removeEventListener)||a.call(e,"osano-cm-consent-saved",r),t())};null==(n=e.addEventListener)||n.call(e,"osano-cm-consent-saved",r)}},64883:(e,t,n)=>{n.r(t),n.d(t,{useTrackClick:()=>a});var o=n(65702),i=n(46603),r=n(69721);function a(){let{analytics:e,properties:t,disabled:n=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;return(0,o.useCallback)(o=>{if(!n){let n={category:r.g.CTA,action:r.b.CLICK,...e};i.tx.trackEvent(n,t)}null==a||a(o)},[e,t,n,a])}},69721:(e,t,n)=>{n.d(t,{b:()=>i,g:()=>o});let o={CTA:"cta",NAVIGATION:"navigation",VIDEO:"video",FORM:"form",CAROUSEL:"carousel",CONTENT:"content",USER:"user",DONATION:"donation",GROUPS:"groups",SEARCH:"search"},i={CLICK:"click",VIEW:"view",PLAY:"play",PAUSE:"pause",COMPLETE:"complete",SUBMIT:"submit",SCROLL:"scroll",SIGNUP:"signup",LOGIN:"login",LOGOUT:"logout",SEARCH:"search",CAMPAIGN_ENTRY:"campaign_entry",CAMPAIGN_INTERACTION:"campaign_interaction",CONVERSION:"conversion"}},71772:(e,t,n)=>{n.d(t,{t:()=>d});var o=n(7949),i=n(96144),r=n(83863),a=n(5719),l=n(19313),c=n(76062);class s{initializeConnectors(){this.connectors.googleAnalytics=(0,a.b)(),this.connectors.segment=(0,c.Z)(),this.connectors.gtm=(0,l.U)(),this.connectors.fusionAuth=(0,r.a)(),this.connectors.elastic=(0,i.n)();let e=Object.entries(this.connectors).filter(e=>{var t;let[n,i]=e,r=null!=(t=null==i?void 0:i.isAvailable())&&t;return o.ph.log("[ConnectorManager] Checking ".concat(n,":"),{exists:!!i,available:r}),r}).map(e=>{let[t]=e;return t});o.ph.log("Connectors initialized",{available:e})}getAvailableConnectors(){return Object.values(this.connectors).filter(e=>{var t;return null!=(t=null==e?void 0:e.isAvailable())&&t})}trackEvent(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getAllUserIdentifiers(),r={eventName:e.object?"".concat(e.object,"_").concat(e.action):"".concat(e.category,"_").concat(e.action),properties:{...e,...n,page_url:window.location.href,page_title:document.title,referrer:document.referrer,user_agent:"undefined"!=typeof navigator?navigator.userAgent:""},timestamp:new Date,userId:i.fusionAuthId,anonymousId:i.elasticId};o.ph.event(r);let a=(0,o.Bx)();(this.isProduction||this.isPreview||a.debug)&&(null==(t=this.connectors.segment)?void 0:t.isAvailable())&&this.connectors.segment.trackEvent(r),this.isProduction&&[this.connectors.googleAnalytics,this.connectors.gtm].forEach(e=>{(null==e?void 0:e.isAvailable())&&e.trackEvent(r)})}trackPageView(e,t){var n;o.ph.log("Page view",{page:null!=e?e:window.location.pathname,...t});let i=(0,o.Bx)();(this.isProduction||this.isPreview||i.debug)&&(null==(n=this.connectors.segment)?void 0:n.isAvailable())&&this.connectors.segment.trackPageView(e,t),this.isProduction&&[this.connectors.googleAnalytics,this.connectors.gtm].forEach(n=>{(null==n?void 0:n.isAvailable())&&n.trackPageView(e,t)})}identifyUser(e,t){var n,i,r,a;let l=this.getAllUserIdentifiers(),c=null==(n=this.connectors.googleAnalytics)?void 0:n.extractUserId(),s=null==(i=this.connectors.segment)?void 0:i.extractUserId(),d={...t,ga_client_id:c,segment_anonymous_id:s,elastic_id:l.elasticId};o.ph.log("User identified with unified profile",{userId:e,platform_ids:d});let u=(0,o.Bx)();(this.isProduction||this.isPreview||u.debug)&&(null==(r=this.connectors.segment)?void 0:r.isAvailable())&&this.connectors.segment.identifyUser(e,d),this.isProduction&&(this.getAvailableConnectors().filter(e=>e!==this.connectors.segment).forEach(t=>{t.identifyUser(e,d)}),(null==(a=this.connectors.googleAnalytics)?void 0:a.isAvailable())&&"function"==typeof window.gtag&&window.gtag("set","user_properties",{user_id:e}))}identifyTraits(e){var t;o.ph.log("Soft-identify (traits only)",{traits:e});let n=(0,o.Bx)();(this.isProduction||this.isPreview||n.debug)&&(null==(t=this.connectors.segment)?void 0:t.identifyTraits)&&this.connectors.segment.identifyTraits(e)}trackCustomEvent(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o.ph.log("Custom event",{eventName:e,properties:n});let i=(0,o.Bx)();(this.isProduction||this.isPreview||i.debug)&&(null==(t=this.connectors.segment)?void 0:t.trackCustomEvent)&&this.connectors.segment.trackCustomEvent(e,n)}getAllUserIdentifiers(){let e={};return this.connectors.fusionAuth&&(e.fusionAuthId=this.connectors.fusionAuth.extractUserId()),this.connectors.elastic&&(e.elasticId=this.connectors.elastic.extractUserId()),o.ph.log("Combined user identifiers:",{hasFusionAuth:!!e.fusionAuthId,hasElastic:!!e.elasticId,identifierCount:Object.values(e).filter(
1Boolean).length}),e}getPrimaryUserId(){var e;let t=this.getAllUserIdentifiers();return null!=(e=t.fusionAuthId)?e:t.elasticId}isUserIdentified(){var e;let t=this.getAllUserIdentifiers();return!!(null!=(e=t.fusionAuthId)?e:t.elasticId)}setupIdentificationMonitoring(){let e={},t=null,n=()=>{let t=this.getAllUserIdentifiers();t.fusionAuthId&&!e.fusionAuthId&&(o.ph.log("User login detected via FusionAuth"),this.identifyUser(t.fusionAuthId,{source:"fusionauth",loginTime:new Date().toISOString()})),!t.fusionAuthId&&e.fusionAuthId&&o.ph.log("User logout detected"),e=t},i=()=>{"requestIdleCallback"in window?window.requestIdleCallback(()=>{n()},{timeout:5e3}):n()},r=()=>{null===t&&(t=setInterval(i,3e4))},a=()=>{null!==t&&(clearInterval(t),t=null)},l=()=>{document.hidden?a():(i(),r())};document.addEventListener("visibilitychange",l),n(),document.hidden||r();let c=e=>{var t,o,i,r;(null!=(i=null==(t=e.key)?void 0:t.includes("fusionauth"))&&i||null!=(r=null==(o=e.key)?void 0:o.includes("elastic"))&&r)&&setTimeout(n,100)};window.addEventListener("storage",c);let s=()=>{setTimeout(n,100)};return window.addEventListener("focus",s),()=>{a(),document.removeEventListener("visibilitychange",l),window.removeEventListener("storage",c),window.removeEventListener("focus",s)}}constructor(){this.connectors={};this.isProduction=!0,this.isPreview=!1,this.initializeConnectors()}}let d=new s},76062:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(96934),i=n(7949);let r=()=>({name:"Segment",isAvailable:()=>{let e=(0,o.o3)();return i.ph.log("[Segment Connector] Availability check:",{available:e,isInitialized:(0,o.o3)()}),e},trackEvent:e=>{if(!(0,o.o3)())return void i.ph.warn("Segment not initialized");try{let t=(0,i.u)(e.eventName);o.zS.track(t,e.properties),i.ph.log("Event sent to Segment",{eventName:t,properties:e.properties})}catch(e){i.ph.error("Failed to send event to Segment",e)}},trackPageView:(e,t)=>{if(!(0,o.o3)())return void i.ph.warn("Segment not initialized for page view");try{o.zS.page(e,{url:window.location.href,title:null!=e?e:"undefined"!=typeof document?document.title:"",path:window.location.pathname,...t}),i.ph.log("Page view sent to Segment",{page:e,url:window.location.href})}catch(e){i.ph.error("Failed to send page view to Segment",e)}},identifyUser:(e,t)=>{if(!(0,o.o3)())return void i.ph.warn("Segment not initialized for user identification");try{o.zS.identify(e,t),i.ph.log("User identified in Segment",{userId:e,traits:t})}catch(e){i.ph.error("Failed to identify user in Segment",e)}},identifyTraits:e=>{if(!(0,o.o3)())return void i.ph.warn("Segment not initialized for trait identification");try{o.zS.identify(e),i.ph.log("Traits identified in Segment",{traits:e})}catch(e){i.ph.error("Failed to identify traits in Segment",e)}},trackCustomEvent:(e,t)=>{if(!(0,o.o3)())return void i.ph.warn("Segment not initialized for custom event");try{o.zS.track(e,t),i.ph.log("Custom event sent to Segment",{eventName:e,properties:t})}catch(e){i.ph.error("Failed to send custom event to Segment",e)}},extractUserId:()=>{try{let e=localStorage.getItem("ajs_anonymous_id");if(e){let t=e.replace(/^"|"$/g,"");return i.ph.log("Segment anonymous ID extracted from localStorage:",t),t}let t=localStorage.getItem("ajs_user_id");if(t){let e=t.replace(/^"|"$/g,"");return i.ph.log("Segment user ID extracted from localStorage"),e}}catch(e){i.ph.error("Error extracting Segment user ID",e)}}})},83863:(e,t,n)=>{n.d(t,{a:()=>i});var o=n(7949);let i=()=>({name:"FusionAuth",isAvailable:()=>{let e=document.cookie.includes("__Secure-next-auth.session-token"),t=document.cookie.includes("fusionauth.sso"),n=!!localStorage.getItem("fusionauth_session");return e||t||n},trackEvent:e=>{o.ph.log("FusionAuth connector does not track events",e.eventName)},trackPageView:()=>{o.ph.log("FusionAuth connector does not track page views")},identifyUser:(e,t)=>{o.ph.log("FusionAuth user already identified through SSO",{userId:e,traits:t})},extractUserId:()=>{}})},96144:(e,t,n)=>{n.d(t,{n:()=>i});var o=n(7949);let i=()=>({name:"Elastic",isAvailable:()=>{let e=!!localStorage.getItem("elastic_session_id"),t=document.cookie.includes("_elastic_")||document.cookie.includes("elastic_");return e||t},trackEvent:e=>{o.ph.log("Elastic connector - tracking delegated to search package",e.eventName)},trackPageView:()=>{o.ph.log("Elastic connector does not track page views")},identifyUser:(e,t)=>{o.ph.log("Elastic user session identified",{userId:e,traits:t})},extractUserId:()=>{try{var e;let t=localStorage.getItem("elastic_session_id");if(t)return o.ph.log("Elastic session ID extracted:",t),t;let n=localStorage.getItem("elastic_search_prefs");if(n)try{let e=JSON.parse(n);if(e.userId)return o.ph.log("Elastic user ID extracted from preferences"),e.userId}catch(e){o.ph.warn("Failed to parse Elastic preferences:",e)}
1let i=null==(e=document.cookie.split("; ").find(e=>e.startsWith("_elastic_")||e.startsWith("elastic_")))?void 0:e.split("=")[1];if(i)return o.ph.log("Elastic cookie extracted"),i}catch(e){o.ph.error("Error extracting Elastic user ID",e)}}})},96934:(e,t,n)=>{n.d(t,{zS:()=>c,y2:()=>u,o3:()=>g});var o=n(19589),i=n(64499);let r=e=>{if("undefined"==typeof document)return;let t="".concat(e,"="),n=document.cookie.split("; ").find(e=>e.startsWith(t));if(!n)return;let o=n.slice(t.length);if(o)try{return decodeURIComponent(o)}catch(e){return o}},a=(e,t)=>{if("undefined"==typeof document)return;let n="https:"===window.location.protocol?"; Secure":"";document.cookie="".concat(e,"=").concat(encodeURIComponent(t),"; Max-Age=").concat(7776e3,"; Path=/; SameSite=Lax").concat(n)},l=()=>{if("undefined"==typeof document)return;r("_fbp")||a("_fbp",(()=>{let e=Math.floor(1e10*Math.random()).toString().padStart(10,"0");return"fb.".concat(1,".").concat(Date.now(),".").concat(e)})());let e=(()=>{let e=new URLSearchParams(window.location.search).get("fbclid");return null!=e?e:void 0})();if(e){let t=r("_fbc");t&&t.endsWith(".".concat(e))||a("_fbc","fb.".concat(1,".").concat(Date.now(),".").concat(e))}},c=new o.N,s=!1,d=null,u=async e=>{if(s){let[e]=await c;return e}if(d)return d;let t="localhost"!==window.location.hostname,n=t?"".concat(window.location.origin,"/p"):"https://cdn.segment.com",o=t?"".concat(window.location.host,"/p/seg-api/v1"):"api.segment.io/v1";return(0,i.j)(l),c.addSourceMiddleware(e=>{let{payload:t,next:n}=e,o=(()=>{let e=r("_fbp"),t=r("_fbc");return{...e?{fbp:e}:{},...t?{fbc:t}:{}}})(),i=t.obj;if((o.fbp||o.fbc)&&"identify"!==i.type&&"group"!==i.type){var a;i.properties={...null!=(a=i.properties)?a:{},...o}}n(t)}),d=c.load({writeKey:e,cdnURL:n},{integrations:{"Segment.io":{apiHost:o,deliveryStrategy:{strategy:"standard",config:{keepalive:!0}}}}}).then(e=>{let[t]=e;return s=!0,t}).catch(e=>{throw d=null,e})},g=()=>s}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.