PageSourceSearch

https://academicearth.org/_next/static/chunks/app/%5Btenant%5D/layout-2ecc552bf083a6b2.js

js academicearth.org collected 2026-09-24 08:54:35 UTC 30,209 bytes, 39 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[68700],{1976:(e,t,n)=>{"use strict";n.d(t,{HenSiteEventingProvider:()=>h});var r=n(95155),o=n(12115),i=n(73321),a=n(54928),l=n(33108),s=n(33949);let c=new Map([[s.Vg.Link,{componentId:s.Vg.Link,eventKey:"hen.link.clicked"}],[s.Vg.Button,{componentId:s.Vg.Button,eventKey:"hen.button.clicked"}]]),d=new Map([[s.Vg.Navbar,{componentId:s.Vg.Navbar,eventKey:"hen.navbar.viewed"}],[s.Vg.Hero,{componentId:s.Vg.Hero,eventKey:"hen.hero.viewed"}],[s.Vg.ArticleCard,{componentId:s.Vg.ArticleCard,eventKey:"hen.card.viewed"}],[s.Vg.EmailBanner,{componentId:s.Vg.EmailBanner,eventKey:"hen.emailBanner.viewed"}]]),u=e=>e?.trim()||void 0,f=(e,t)=>{l.a.noticeError?.(e instanceof Error?e:Error("PaidSocialAdapterFailed",{cause:e}),(e=>{if(e)return Object.fromEntries(Object.entries(e))})(t))};function h({children:e,tenantId:t,pixelId:n,partnerId:l}){let s=(0,i.usePathname)(),h=(0,o.useMemo)(()=>{let e=[(0,a.g$)()],t=u(n),r=u(l);return t&&e.push(new a.JB({pixelId:t,onError:f})),r&&e.push(new a.aZ({partnerId:r,onError:f})),1===e.length?e[0]:new a.Pj(e,{onError:f})},[l,n]),m=(0,o.useMemo)(()=>({tenantId:t,pageUrl:s?`${window.location.origin}${s}`:s}),[t,s]);return(0,r.jsx)(a.KY,{adapter:h,interactionRegistry:c,viewRegistry:d,context:m,registryPolicy:{unknownComponent:"ignore"},children:e})}},3037:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});let r={placedTopAsset:null,placedHeroAsset:null,placedBottomAsset:null,topOfPageRule:{content:{rendered:""}},bottomOfPageRule:{content:{rendered:""}},heroRule:{content:{rendered:""}},joQDF:{data:{PersonalizedAssetType:"default",PersonalizedAssetData:{}}},internationalTrafficBrands:"",vipExperience:!1,monetizationDisabled:!1,isMonarchLoading:!0,defaultJoSvgColor:"",embeddedVoyager:!1,stickyQdfEditable:{},voyagerVsStudymatch:{monetizationExperience:"",excludedDcs:[]}}},11132:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,98500,23)),Promise.resolve().then(n.t.bind(n,42593,23)),Promise.resolve().then(n.bind(n,53840)),Promise.resolve().then(n.bind(n,87045)),Promise.resolve().then(n.bind(n,1976)),Promise.resolve().then(n.bind(n,95663)),Promise.resolve().then(n.bind(n,36975)),Promise.resolve().then(n.bind(n,19309)),Promise.resolve().then(n.bind(n,64935)),Promise.resolve().then(n.bind(n,13663)),Promise.resolve().then(n.bind(n,65520))},13663:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Snippet:()=>l});var r=n(95155),o=n(42593),i=n.n(o),a=n(65520);let l=({cohesionConfig:e})=>{(0,a.isCohesionConfigValid)(e)||(0,a.reportInvalidCohesionConfig)(e);let t=e?`
2!function(co,h,e,s,i,o,n){var d='documentElement';var a='className';h[d][a]+=' preampjs fusejs';
3    n.k=e;co._Cohesion=n;co._Preamp={k:s,start:new Date};co._Fuse={k:i};co._Tagular={k:o};
4    [e,s,i,o].map(function(x){co[x]=co[x]||function(){(co[x].q=co[x].q||[]).push([].slice.call(arguments))}});
5    h.addEventListener('DOMContentLoaded',function(){co.setTimeout(function(){
6    var u=h[d][a];h[d][a]=u.replace(/ ?preampjs| ?fusejs/g,'')},3e3);
7    co._Preamp.docReady=co._Fuse.docReady=!0});var z=h.createElement('script');
8    z.async=1;z.src='https://content.cmn.com/cohesion/cohesion-latest.min.js?cDomain=${e?.tagular.cookieDomain}';h.head.appendChild(z);}
9    (window,document,'cohesion','preamp','fuse','tagular',{
10    tagular:{
11        apiHost: '${e?.tagular.apiHost}',
12        apiKey:'${e?.tagular.apiKey}',
13        cookieSameSite: 'Lax',
14        sourceKey:'${e?.tagular.sourceKey}',
15        writeKey:'${e?.tagular.writeKey}',
16        cookieDomain:'${e?.tagular.cookieDomain}',
17        domainWhitelist: ${JSON.stringify(e?.tagular.domainWhitelist,null,2)},
18        apiVersion:'v2/t',
19        useBeacon: true,
20        multiparty: ${e?.tagular?.multiparty},
21    },
22    monarch: {
23        sourceId: '${e?.monarch.sourceId}',
24        token: '${e?.monarch.token}',
25        autoRequest: {
26          enabled: true,
27          suppressPlacements: true,
28          timeout: 15000,
29        }
30    },
31    consent: {
32        onetrust: {
33          enabled: ${e?.consent.onetrust.enabled},
34          optIn: ${e?.consent.onetrust.optIn},
35        },
36        required: ${e?.consent.required},
37    },
38})`:"";return(0,r.jsx)(i(),{id:"script-cohesion",dangerouslySetInnerHTML:{__html:`${t}`},strategy:"beforeInteractive"})}},19309:(e,t,n)=>{"use strict";n.d(t,{usePaidSocialEmitter:()=>a});
38var r=n(12115),o=n(54928),i=n(47150);let a=()=>{let e=(0,o.aU)();return(0,r.useMemo)(()=>e?{trackPageView:t=>{"granted"===(0,i.$)()&&e.trackPageView(t)},trackConversion:t=>{"granted"===(0,i.$)()&&e.trackConversion(t)}}:null,[e])}},25434:(e,t,n)=>{"use strict";n.d(t,{E:()=>c,v:()=>s});var r=n(95155),o=n(12115),i=n(3037);let a={err:null,result:{},isLoading:!0,rules:{},slots:{},preampPlacements:{},preampAssets:[]};i.X;let l=(0,o.createContext)(void 0),s=()=>{let e=(0,o.useContext)(l);if(!e)throw Error("useGlobalProps must be used within a GlobalContextProvider");return e},c=({globalProps:e,monarchBase:t,monarchTrafficFlow:n,children:s})=>{let[c,d]=(0,o.useState)({...e}),u=(0,o.useMemo)(()=>{let e=n?.result?.source?.trafficFlow;return e?.returnDetails},[n]),f=(0,o.useCallback)(e=>{d(t=>({...t,...e}))},[]);return(0,r.jsx)(l.Provider,{value:{...c,monarchTrafficFlow:n||a,monarch:t||i.X,monarchExperience:u??null,updateGlobalProps:f},children:s})}},36975:(e,t,n)=>{"use strict";n.d(t,{PaidSocialBootstrap:()=>g});var r=n(12115),o=n(73321),i=n(33108),a=n(47150);let l=()=>{if("function"==typeof window.fbq)return;let e=function(...t){"function"==typeof e.callMethod?e.callMethod(...t):e.queue.push(t)};e.push=e,e.loaded=!0,e.version="2.0",e.queue=[],window.fbq=e,window._fbq=e};var s=n(49065);let c=/^[A-Za-z0-9_-]{1,64}$/,d=e=>{i.a.noticeError?.(Error("PaidSocialVendorIdInvalid"),{kind:e})},u=(e,t)=>{if("undefined"==typeof document||document.getElementById(e))return;let n=document.createElement("script");n.id=e,n.src=t,n.async=!0,document.head.appendChild(n)},f=e=>{if("string"!=typeof e)return!1;let t=e.trim();return!(t!==e||0===t.length||!t.startsWith("/")||t.includes("?")||t.includes("#"))};var h=n(39382),m=n(19309);let p=e=>e?.trim()||void 0,g=({pixelId:e,partnerId:t,emitter:n})=>{let g=(0,o.usePathname)(),w=(0,m.usePaidSocialEmitter)(),y=void 0!==n?n:w;(0,r.useEffect)(()=>{if(y)return(0,h.JdN)(e=>{if(null!==e&&"object"==typeof e&&"Lead"===e.name&&"string"==typeof e.pageUrl&&e.pageUrl.length>0)try{y.trackConversion(e)}catch(e){i.a.noticeError?.(Error("PaidSocialConversionFailed",{cause:e}))}})},[y]);let v=p(e),b=p(t),E=!!v||!!b,[C,k]=(0,r.useState)("unknown"),I=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(l(),E)return(0,a.x)(k,{onPollTimeout:()=>{i.a.noticeError?.(Error("MarketingConsentUnresolved"),{hasPixelId:!!v,hasPartnerId:!!b})}})},[E,b,v]),(0,r.useEffect)(()=>{"granted"!==C&&(I.current=null)},[C]),(0,r.useEffect)(()=>{"granted"===C&&(v&&(c.test(v)?document.getElementById(s.lm)||(l(),window.fbq?.("init",v),u(s.lm,s.Dt)):d("pixelId")),b&&(c.test(b)?document.getElementById(s.Y0)||(window._linkedin_partner_id=b,window._linkedin_data_partner_ids=window._linkedin_data_partner_ids??[],window._linkedin_data_partner_ids.includes(b)||window._linkedin_data_partner_ids.push(b),u(s.Y0,s._8)):d("partnerId")))},[C,b,v]),(0,r.useEffect)(()=>{if("granted"!==C||!E||!y||!g)return;let e=`${window.location.origin}${g}`;if(I.current!==e)try{y.trackPageView(e),((e,t=[])=>{try{if(!t||0===t.length)return!1;for(let n of t)if(f(n)&&n===e)return!0;return!1}catch{return!1}})(g)&&y.trackConversion({name:"ViewContent",pageUrl:e}),I.current=e}catch(e){i.a.noticeError?.(Error("PaidSocialEmitFailed",{cause:e}))}},[y,C,E,g]),null}},47150:(e,t,n)=>{"use strict";n.d(t,{$:()=>i,x:()=>a});var r=n(12741),o=n(49065);let i=()=>{var e;return"string"!=typeof window.OnetrustActiveGroups?"not-granted":"string"!=typeof(e=window.OnetrustActiveGroups)?"not-granted":e.split(",").map(e=>e.trim()).filter(e=>e.length>0).includes(o.tJ.ADVERTISING)?"granted":"not-granted"},a=(e,t)=>{let n,a=!1,l=0,s=t=>{a||e(t)},c=()=>{s(i())};window.addEventListener(o.lH,c);let d=()=>{if(!a){if("string"==typeof window.OnetrustActiveGroups)return void s(i());if(l>=o.GD){r.v.warn("Marketing consent signal did not appear before poll timeout"),t?.onPollTimeout?.(),s("not-granted");return}l+=1,n=setTimeout(d,o.N1)}};return d(),()=>{a=!0,void 0!==n&&clearTimeout(n),window.removeEventListener(o.lH,c)}}},49065:(e,t,n)=>{"use strict";n.d(t,{Dt:()=>r,GD:()=>d,N1:()=>c,Y0:()=>a,_8:()=>
38o,lH:()=>s,lm:()=>i,tJ:()=>l});let r="https://connect.facebook.net/en_US/fbevents.js",o="https://snap.licdn.com/li.lms-analytics/insight.min.js",i="paid-social-meta-pixel",a="paid-social-linkedin-insight",l={NECESSARY:"C0001",PERFORMANCE:"C0002",ADVERTISING:"C0004"},s="OneTrustGroupsUpdated",c=100,d=50},53840:(e,t,n)=>{"use strict";n.d(t,{TenantClientReady:()=>l});var r=n(12115),o=n(73321),i=n(33108),a=n(12741);let l=()=>{let e=(0,o.useParams)(),t=e?.tenant;return(0,r.useEffect)(()=>{if(t){let e=0,n=()=>{window.newrelic?(a.v.info({tenantId:t},"Setting tenantId in New Relic browser agent"),i.a.setCustomAttribute("tenantId",t)):e<50?(e++,setTimeout(n,100)):a.v.warn("TenantClientReady - New Relic not available after 5 seconds, giving up")};n()}},[t]),null}},54928:(e,t,n)=>{"use strict";n.d(t,{KY:()=>W,Pj:()=>r,aZ:()=>s,JB:()=>l,g$:()=>w,aU:()=>q});class r{constructor(e,t={}){this.name="fan-out",this.adapters=e,this.onError=t.onError}handleInteraction(e,t){this.dispatch("handleInteraction",e,t)}handleView(e,t){this.dispatch("handleView",e,t)}handlePageView(e,t){this.dispatch("handlePageView",e,t)}handleConversion(e,t){this.dispatch("handleConversion",e,t)}
38dispatch(e,t,n){for(let r of this.adapters)try{let o=r[e];o?.call(r,t,n)}catch(t){this.onError?.(t,{adapterName:r.name,method:e})}}}let o=e=>{if("undefined"==typeof document)return;let t=`${e}=`,n=document.cookie.split(";").map(e=>e.trim()).find(e=>e.startsWith(t));if(n)try{return decodeURIComponent(n.slice(t.length))}catch{return}};class i{constructor({pixelId:e,endpoint:t="/api/hen/v1/meta/capi",fetchFn:n=(e,t)=>fetch(e,t),onError:r}){this.pixelId=e,this.endpoint=t,this.fetchFn=n,this.onError=r}send(e,t){let n=t.tenantId.trim();if(!n)return void this.onError?.(Error("MetaCapiTenantIdMissing"));let r=o("_fbc")??((e,t)=>{try{let n=new URL(e).searchParams.get("fbclid")?.trim();return n?`fb.1.${Math.floor(t/1e3)}.${n}`:void 0}catch{return}})(e.pageUrl,e.timestamp),i=o("_fbp"),a={pixel_id:this.pixelId,event_name:e.name,event_id:e.eventId,event_time:Math.floor(e.timestamp/1e3),event_source_url:e.pageUrl,tenantId:n,consent:"granted",...r?{fbc:r}:{},...i?{fbp:i}:{}};try{this.fetchFn(this.endpoint,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(a),keepalive:!0}).then(e=>{e.ok||this.onError?.(Error("MetaCapiRequestFailed"))}).catch(e=>this.onError?.(e))}catch(e){this.onError?.(e)}}}let a=new Set(["Lead","ViewContent"]);class l{constructor({pixelId:e,onError:t,capiClient:n=new i({pixelId:e,onError:t})}){this.name="meta-pixel",this.capiClient=n,this.onError=t}handleInteraction(e,t){}handleView(e,t){}handlePageView(e,t){try{window.fbq?.("track","PageView")}catch(e){this.onError?.(e)}}handleConversion(e,t){try{let t=a.has(e.name)?"track":"trackCustom";window.fbq?.(t,e.name,{},{eventID:e.eventId})}catch(e){this.onError?.(e)}try{this.capiClient.send(e,{tenantId:t.tenantId??""})}catch(e){this.onError?.(e)}}}class s{constructor({partnerId:e,onError:t}){this.name="linkedin",this.partnerId=e,this.onError=t}handleInteraction(e,t){}handleView(e,t){}handleConversion(e,t){try{window.lintrk?.("track",{conversion_id:this.partnerId})}catch(e){this.onError?.(e)}}}function c(){if(void 0!==globalThis.window)return globalThis.window}function d(e,t,n){let r=e?.[t];return"string"==typeof r?r:"number"==typeof r||"boolean"==typeof r?String(r):n}function u(e,t,n){var r;let o,i,a={"@type":n,webElement:{elementType:d(o=e.metadata,"elementType",((r=e.componentId).startsWith("hen.")?r.slice(4):r)||r),name:d(o,"name",e.componentId),location:d(o,"location",""),text:d(o,"text",""),position:d(o,"position",""),htmlId:d(o,"htmlId",e.componentId)}};t.correlationId&&(a.correlationId=t.correlationId);let l=(i=c()?._Cohesion?.webContext)||(t.pageUrl?{page:{url:t.pageUrl}}:void 0);l&&(a.webContext=l);let s={};if(t.tenantId&&(s.tenantId=t.tenantId),e.metadata)for(let[t,n]of Object.entries(e.metadata))"elementType"!==t&&"name"!==t&&"location"!==t&&"text"!==t&&"position"!==t&&"htmlId"!==t&&(s[t]=n);return Object.keys(s).length>0&&(a.customDimensions=Object.entries(s).filter(([,e])=>null!=e).map(([e,t])=>({key:e,value:"string"==typeof t?t:"object"==typeof t?JSON.stringify(t):String(t)}))),a}let f="redventures.usertracking.v3.ElementClicked",h="redventures.usertracking.v3.ElementViewed";function m(e,t){return`${t}\u0000${e}`}let p=new Map([[m("hen.button.clicked","interaction"),{tagularWireName:"ElementClicked",schemaType:f,buildPayload:(e,t)=>u(e,t,f)}],[m("hen.navbar.clicked","interaction"),{tagularWireName:"ElementClicked",schemaType:f,buildPayload:(e,t)=>u(e,t,f)}],[m("hen.link.clicked","interaction"),{tagularWireName:"ElementClicked",schemaType:f,buildPayload:(e,t)=>u(e,t,f)}],[m("hen.navbar.viewed","view"),{tagularWireName:"ElementViewed",schemaType:h,buildPayload:(e,t)=>u(e,t,h)}],[m("hen.hero.viewed","view"),{tagularWireName:"ElementViewed",schemaType:h,buildPayload:(e,t)=>u(e,t,h)}],[m("hen.card.viewed","view"),{tagularWireName:"ElementViewed",schemaType:h,buildPayload:(e,t)=>u(e,t,h)}],[m("hen.emailBanner.viewed","view"),{tagularWireName:"ElementViewed",schemaType:h,buildPayload:(e,t)=>u(e,t,h)}]]);class g{constructor(e={}){this.name="tagular",this.client=e.client??{isAvailable(){let e=c();if(!e||"function"!=typeof e.tagular)return!1;let t=e._Cohesion?.tagular;return!!t?.sourceKey&&!!t?.writeKey},beam(e,t){this.isAvailable()&&c()?.tagular?.("beam",t)}},this.onError=e.onError??((e,t)=>{console.warn(`[eventing:tagular] Failed to dispatch ${t.kind}
38 "${t.eventKey}":`,e)}),this.onUnknownEventKey=e.onUnknownEventKey}handleInteraction(e,t){this.dispatch(e,t,"interaction")}handleView(e,t){this.dispatch(e,t,"view")}dispatch(e,t,n){try{var r;let o=(r=e.eventKey,p.get(m(r,n)));if(!o)return void this.onUnknownEventKey?.(e.eventKey,n);if(!this.client.isAvailable())return;let i=o.buildPayload(e,t);this.client.beam(o.tagularWireName,i)}catch(t){this.onError(t,{eventKey:e.eventKey,kind:n})}}}function w(e){return new g(e)}var y=n(95155),v=n(12115);let b='a[href], button, [role="button"], input, select, textarea, label',E=new Set(["hen.card","hen.articleCard","hen.imageCard","hen.infoCard","hen.brandCard","hen.degreeCardDetailed","hen.degreeCardSimple","hen.degreeCardTiny"]);function C(e){return e.length<=200?e:e.slice(0,200)}function k(e){return e.replace(/\s+/g," ").trim()}function I(e){let t=e.getAttribute("aria-label");if(t){let e=k(t);if(e)return C(e)}let n=function(e){let t=e.getAttribute("aria-labelledby");if(t){let n=e.ownerDocument;if(n){let e=k(t.split(/\s+/).map(e=>{let t=n.getElementById(e);return t?.innerText||t?.textContent||""}).join(" "));if(e)return e}}if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement){let t=e.id;if(t&&e.ownerDocument){let n=e.ownerDocument,r="undefined"!=typeof CSS&&"function"==typeof CSS.escape?n.querySelector(`label[for="${CSS.escape(t)}"]`):Array.from(n.getElementsByTagName("label")).find(e=>e.htmlFor===t),o=r?.innerText||r?.textContent;if(o){let e=k(o);if(e)return e}}}}(e);if(n)return C(n);if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){let t=e.getAttribute("placeholder");if(t){let e=k(t);if(e)return C(e)}return}let r=e.innerText||e.textContent;if(r){let e=k(r);if(e)return C(e)}}let x=["location","name"];function P(e,t){let n={},r=function(e,t){let n=e.getAttribute("data-hen-id");if(n&&E.has(n)&&!function(e,t){if(t===e)return!1;let n=t.closest(b);return!!(n&&n!==e&&e.contains(n)&&(n===t||n.contains(t)))}(e,t)){let t=function(e){let t=e.querySelector("h1, h2, h3, h4, h5, h6");if(t)return I(t)}(e);if(t)return t}return I(t)}(e,t);r&&(n.text=r);let o=t.id?.trim()||e.id?.trim();for(let r of(o&&(n.htmlId=o),x)){let o=function(e,t,n){let r=`data-hen-${n}`,o=e.getAttribute(r)?.trim();if(o)return C(o);let i=t.getAttribute(r)?.trim();return i?C(i):void 0}(t,e,r);o&&(n[r]=o)}return Object.keys(n).length>0?n:void 0}let S="[data-hen-id]";function A(e){return e instanceof Element?e.closest(S):null}function T(e){let t=A(e);if(!t)return null;let n=t.getAttribute("data-hen-id");return n&&0!==n.length?{host:t,componentId:n}:null}function _(e){let t=Array.from(e.querySelectorAll(S));return e instanceof Element&&e.matches(S)?[e,...t]:t}function j(e,t){"ignore"!==t.policy.unknownComponent&&t.onUnknownComponentId?.(e)}n(40459);let V=new Set(["hen.input","hen.select","hen.checkbox","hen.checkboxButton","hen.radio","hen.switch"]),M=["click","change","focusin","focusout"],$=["data-state","hidden","aria-hidden"],D=[...$],N=[...$,"style","class"];function R(e){let t=Number.parseFloat(e.opacity);return Number.isFinite(t)&&0===t}function L(e){if(function(e){let t=e;for(;t;){if(t.hasAttribute("hidden")||"true"===t.getAttribute("aria-hidden")||"inactive"===t.getAttribute("data-state"))return!0;t=t.parentElement}return!1}(e))return!1;if("function"==typeof e.checkVisibility)return e.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0});{let t=window.getComputedStyle(e);if("none"===t.display||"hidden"===t.visibility||R(t))return!1}return!function(e){let t=e.parentElement;for(;t;){{let e=window.getComputedStyle(t);if("none"===e.display||"hidden"===e.visibility||R(e))return!0}t=t.parentElement}return!1}(e)}let F={unknownComponent:"ignore"},K={},O=(0,v.createContext)(null);function U(e){return e||("undefined"!=typeof document?document:null)}function W({children:e,adapter:t,interactionRegistry:n,viewRegistry:r,context:o,registryPolicy:i=F,root:a,viewRoot:l,onUnknownComponentId:s}){let c=o??K,d=(0,v.useMemo)(()=>U(a),[a]),u=(0,v.useMemo)(()=>U(l??a),[l,a]),f=(0,v.useCallback)(e=>{t.handlePageView?.({pageUrl:e,timestamp:Date.now()},c)},[t,c]),h=(0,v.useCallback)(e=>{t.handleConversion?.({...e,eventId:globalThis.crypto.randomUUID(),timestamp:Date.now()},c)},[t,c]),m=(0,v.useMemo)(()=>({trackPageView:f,trackConversion:h}),[h,f]);return(0,v.useEffect)(()=>
38{if(!d||!u)return;let e=function(e){let t={policy:e.registryPolicy,onUnknownComponentId:e.onUnknownComponentId},n=n=>{var r,o,i,a,l;let s,c,d=n.type;if(!M.includes(d))return;let u=T(n.target);if(!u||(r=u.componentId,!("click"===d||"change"===d||("focusin"===d||"focusout"===d)&&V.has(r)))||"click"===d&&function(e,t){if(!(e instanceof Element))return!1;let n=A(e);if(!n||n.getAttribute("data-hen-id")!==t||e===n)return!1;let r=e.closest('a, button, input, select, textarea, [role="button"], [role="link"]');return!!r&&!!n.contains(r)&&r!==n&&!r.matches(S)}(n.target,u.componentId))return;let f=(s=function(e,t){if(!(t instanceof Element)||!e.contains(t))return e;let n=t.closest(b);return n&&e.contains(n)?n:t}(o=u.host,n.target),P(o,s)),h=(i=u.componentId,a=e.interactionRegistry,l={metadata:f},(c=a.get(i))?function(e,t,n=Date.now(),r){return{kind:"interaction",componentId:e,eventKey:t,timestamp:n,...r?{metadata:r}:{}}}(c.componentId,c.eventKey,Date.now(),l?.metadata):(j(i,t),null));h&&e.onInteraction(h)},{root:r}=e;for(let e of M)r.addEventListener(e,n,!0);return()=>{for(let e of M)r.removeEventListener(e,n,!0)}}({root:d,interactionRegistry:n,registryPolicy:i,onUnknownComponentId:s,onInteraction:e=>{t.handleInteraction(e,c)}}),o=function(e){var t,n;let r;if("undefined"==typeof IntersectionObserver)return()=>{};let o=new WeakSet,i=new WeakSet,a=new AbortController,l=new WeakMap,s=new Set,c=(t={includeClassAndStyleMutations:e.includeClassAndStyleVisibilityMutations,attributeFilter:e.visibilityMutationAttributeFilter},t?.attributeFilter?[...t.attributeFilter]:t?.includeClassAndStyleMutations?[...N]:[...D]),d={policy:e.registryPolicy,onUnknownComponentId:e.onUnknownComponentId},u=t=>{var n,r;let i;if(a.signal.aborted||o.has(t)||!L(t))return;let l=t.getAttribute("data-hen-id")??T(t)?.componentId??null;if(!l)return;let s=P(t,t),c=(n=e.viewRegistry,r={metadata:s},(i=n.get(l))?function(e,t,n=Date.now(),r){return{kind:"view",componentId:e,eventKey:t,timestamp:n,...r?{metadata:r}:{}}}(i.componentId,i.eventKey,Date.now(),r?.metadata):(j(l,d),null));c&&(o.add(t),e.onView(c),h.unobserve(t))},f=e=>{for(let t of e)t.isIntersecting&&u(t.target)},h=new IntersectionObserver(e=>{f(e)},{root:e.root instanceof Document?null:e.root,threshold:e.threshold??.5,rootMargin:e.rootMargin??"0px"}),m=e=>{i.has(e)||(i.add(e),h.observe(e))},p=e=>{for(let t of _(e))m(t)},g=e=>{!i.has(e)||o.has(e)||(h.unobserve(e),h.observe(e),f(h.takeRecords()))},w=e=>{if(a.signal.aborted)return;let t=[];for(let n of _(e))!(!i.has(n)||o.has(n))&&L(n)&&t.push(n);if(0===t.length)return;let n=()=>{if(!a.signal.aborted)for(let e of t)g(e)};n(),"function"==typeof requestAnimationFrame&&requestAnimationFrame(()=>{requestAnimationFrame(n)})},y=e=>{if(a.signal.aborted)return;w(e);let t=l.get(e);t&&(t.abort(),s.delete(t),l.delete(e));let n=new AbortController;l.set(e,n),s.add(n),e.addEventListener("transitionend",t=>{a.signal.aborted||n.signal.aborted||t.target===e&&("undefined"!=typeof TransitionEvent&&t instanceof TransitionEvent?"opacity"===t.propertyName:"transitionend"===t.type)&&(n.abort(),s.delete(n),l.delete(e),w(e))},{signal:n.signal})};for(let t of _(e.root))m(t);return"undefined"!=typeof MutationObserver&&(r=new MutationObserver(e=>{for(let t of e){if("childList"===t.type){for(let e of Array.from(t.addedNodes))e instanceof Element&&p(e);continue}"attributes"===t.type&&t.target instanceof Element&&y(t.target)}})).observe((n=e.root)instanceof Document?n.documentElement:n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:c}),()=>{for(let e of(a.abort(),Array.from(s)))e.abort();s.clear(),r?.disconnect(),h.disconnect()}}({root:u,viewRegistry:r,registryPolicy:i,onUnknownComponentId:s,onView:e=>{t.handleView(e,c)}});return()=>{e(),o()}},[t,c,n,d,s,i,u,r]),(0,y.jsx)(O.Provider,{value:m,children:e})}function q(){return(0,v.useContext)(O)}},64935:(e,t,n)=>{"use strict";n.d(t,{ThemeWrapper:()=>o});var r=n(95155);function o({children:e}){return(0,r.jsx)(r.Fragment,{children:e})}},65520:(e,t,n)=>{"use strict";n.r(t),n.d(t,{isCohesionConfigValid:()=>o,reportInvalidCohesionConfig:()=>i});var r=n(33108);let o=e=>{let t=e?.tagular?.sourceKey,n=e?.tagular?.writeKey;return!!(t&&n)},i=e=>{let t=e?.tagular?.sourceKey,n=e?.tagular?.writeKey;r.a.noticeError?.(Error("CohesionConfigInvalid"),{hasSourceKey:!!t,hasWriteKey:!!n})}},87045:(e,t,n)=>{"use strict";n.d(t,{HenAdminToolbar:()=>h});var r=n(95155),o=n(12115),i=n(30837),a=n(25434);function l(e){if(!e)return e;try{let t=new URL(e),n=t.hostname.toLowerCase();return n.endsWith(".wpengine.com")&&(t.hostname=`${n.slice(0,-13)}.wpenginepowered.com`),t.toString().replace(/\/$/,"")}catch{return e}}let s=o.useLayoutEffect,c="wp_preview_logged_in",d="--hen-admin-toolbar-height",u="flex w-fit items-center justify-center gap-2 p-2 text-l1 text-white hover:bg-neutral-500",f=new Set(["wpengine.com","wpenginepowered.com"]);function h({cmsUrl:e,domainLabelWithExtension:t,postTypeGql:n="page"}){let h,{id:m}=(0,a.v)(),[p,g]=(0,o.useState)(!1),[w,y]=(0,o.useState)("idle"),v=(0,o.useRef)(null),b=(0,o.useRef)(void 0),E=(h="string"==typeof m?m.trim():"",/^\d+$/.test(h)&&Number(h)>0?h:void 0),C=t.trim()?t:"WordPress Admin",k=(0,o.useMemo)(()=>(function(e,t,n){try{let r=new URL(l(e));if(!["http:","https:"].includes(r.protocol))return;let o=new URL("/wp-admin/",r),i=new URL("post-new.php",o);i.searchParams.set("post_type",t.toLowerCase());
38let a=n?new URL("post.php",o):void 0;return a&&n&&(a.searchParams.set("post",n),a.searchParams.set("action","edit")),{admin:o.toString(),create:i.toString(),edit:a?.toString()}}catch{return}})(e,n,E),[e,E,n]);if((0,o.useEffect)(()=>{g(document.cookie.split(";").some(e=>{let t=e.indexOf("=");return(-1===t?e.trim():e.slice(0,t).trim())===c}))},[]),s(()=>{if(!p||!v.current)return void document.documentElement.style.removeProperty(d);let e=v.current,t=()=>{document.documentElement.style.setProperty(d,`${e.getBoundingClientRect().height}px`)};t();let n="undefined"==typeof ResizeObserver?void 0:new ResizeObserver(t);return n?.observe(e),()=>{n?.disconnect(),document.documentElement.style.removeProperty(d)}},[p]),(0,o.useEffect)(()=>()=>{b.current&&clearTimeout(b.current)},[]),!p||!k)return null;let I=()=>{b.current&&clearTimeout(b.current),b.current=setTimeout(()=>y("idle"),2e3)},x=async()=>{if(!E||!navigator.clipboard){y("failed"),I();return}try{await navigator.clipboard.writeText(E),y("copied")}catch{y("failed")}I()};return(0,r.jsxs)("aside",{ref:v,"data-testid":"hen-admin-toolbar","aria-label":"WordPress editing tools",className:"not-prose sticky top-0 z-[60] flex justify-between bg-neutral-700 text-b5 text-white",children:[(0,r.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,r.jsxs)("a",{className:u,href:k.admin,target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(i.Icon,{icon:"external-link",size:"sm","aria-hidden":!0}),C]}),(0,r.jsxs)("a",{className:u,href:k.create,target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(i.Icon,{icon:"plus",size:"sm","aria-hidden":!0}),"Create Page"]}),k.edit&&(0,r.jsxs)("a",{className:u,href:k.edit,target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(i.Icon,{icon:"pencil",size:"sm","aria-hidden":!0}),"Edit"]}),E&&(0,r.jsxs)("button",{type:"button",className:u,onClick:x,children:["Post ID:",(0,r.jsx)("span",{"aria-live":"polite",children:"copied"===w?"Copied!":"failed"===w?"Copy failed":(0,r.jsx)("span",{className:"underline",children:E})})]})]}),(0,r.jsx)("button",{type:"button",className:"bg-neutral-900 px-4 py-2 text-l1 text-white",onClick:()=>{let t,n,r;for(let o of(t="Max-Age=0; Path=/; SameSite=Lax",n=[`${c}=; ${t}`],(r=function(e){try{let t=new URL(l(e)).hostname.toLowerCase().replace(/\.$/,"");if("localhost"===t||"[::1]"===t||/^\d{1,3}(?:\.\d{1,3}){3}$/.test(t)||!t.includes("."))return;let n=t.split("."),r=n.length>=3?n.slice(1).join("."):t;if(f.has(t)||f.has(r))return;return r}catch{return}}(e))&&n.push(`${c}=; ${t}; Domain=${r}`),n))document.cookie=o;document.documentElement.style.removeProperty(d),g(!1)},children:"Close Toolbar"})]})}},95663:(e,t,n)=>{"use strict";n.d(t,{MonarchProviderWrapper:()=>f});var r=n(95155),o=n(12115);let i=(e,...t)=>{if("undefined"!=typeof window&&"function"==typeof window.cohesion)return window.cohesion(e,...t);console.error("[cohesion-utils] window.cohesion is not defined")};function a(e){if(!e)return null;let t={message:"Unknown error"};return"object"==typeof e.error&&(t.message=e.error.error,e.error.traceId&&(t.traceId=e.error.traceId)),"string"==typeof e.error&&(t.message=e.error,"meta"in e&&(t.timeout=e.meta?.timeout)),t}let l=(0,o.createContext)(void 0);function s({children:e,components:t={},persistSlots:n=!1}){let s=(0,o.useRef)(!1),c=(0,o.useRef)(!1),d=(0,o.useRef)(!1),[u,f]=(0,o.useState)(!0),[h,m]=(0,o.useState)(null),[p,g]=(0,o.useState)(null),[w,y]=(0,o.useState)({}),[v,b]=(0,o.useState)({});return(0,o.useEffect)(()=>{if(!s.current){if(s.current=!0,!window.cohesion){c.current=!0,console.error("[cohesion-utils-react] Cohesion not found"),m({message:"Cohesion not found"}),g(null),f(!1);return}i("monarch:done",(e,t)=>{let r={},o={},i=a(e);if(i&&(c.current=!0,console.error("[cohesion-utils-react] Monarch Error",i)),t&&(r=function(e){if(!e)return null;let t=[];for(let[n,r]of Object.entries(e))"_Monarch"!==n&&t.push(r);let n={};for(let e of t)for(let[t,r]of Object.entries(e))n[t]=r;return n}(t)||{}),r.trafficFlow?.returnType==="experience")for(let e of r.trafficFlow.value.experienceValues||[])o[e.slot.customId]=e;m(i),g(t),f(!1),y(e=>({...e,...r})),!0===n?b(e=>({...e,...o}
38)):b(o)}),i("error",()=>{c.current=!0,console.error("[cohesion-utils-react] Cohesion failed to load"),m({message:"Cohesion failed to load"}),g(null),f(!1)}),i("tagular:contextCreated",({autoDecision:e})=>{d.current?e&&!c.current&&f(!0):d.current=!0})}},[]),(0,r.jsx)(l.Provider,{value:{err:h,result:p,isLoading:u,rules:w,slots:v,components:t},children:e})}var c=n(3037),d=n(25434);function u({children:e,initialGlobalProps:t}){let n=(()=>{let e,t,{isLoading:n,value:r}=function(e,t,n={}){if(!(0,o.useContext)(l))throw Error("useMonarchRequest cannot be used outside of CohesionProvider");let r=(0,o.useRef)(!1),[s,c]=(0,o.useState)(null),[d,u]=(0,o.useState)(null),[f,h]=(0,o.useState)(!0);(0,o.useEffect)(()=>{n.skip||((...e)=>{i("monarch:ready",()=>{"undefined"!=typeof window&&"function"==typeof window.monarch?window.monarch(...e):console.error("[cohesion-utils] window.monarch is not defined")})})(e,t,n.payload??{},n.params??{},(e,t)=>{c(a(e)),u(t),h(!1)})},[n.skip]),(0,o.useEffect)(()=>{r.current||(r.current=!0,i("error",()=>{c({message:"Cohesion failed to load"}),u(null),h(!1)}))},[]);let m=(0,o.useMemo)(()=>"rule"===e&&null!=d?.[t]?d?.[t]:"ruleset"===e&&Object.keys(d??{}).length>0?d:n.default instanceof Function?n.default({err:s,isLoading:f})??null:n.default??null,[d,t,n,s,f]);return{err:s,result:d,isLoading:f,value:m}}("ruleset","globalRuleSet",{default:c.X,payload:{},skip:!1});return r?.joQDF?.data?(e=r.joQDF.data.PersonalizedAssetType,t=r.joQDF.data.PersonalizedAssetData):(e=r?.joQDF?.PersonalizedAssetType,t=r?.joQDF?.PersonalizedAssetData),{...r||c.X,isMonarchLoading:n,joQDF:{data:{PersonalizedAssetType:e??"default",PersonalizedAssetData:t??{}}},editorialListing:r?.editorialListing?r.editorialListing:void 0}})(),s=function(){let e=(0,o.useContext)(l);if(!e)throw Error("useMonarch cannot be used outside of CohesionProvider");return{err:e.err,result:e.result,isLoading:e.isLoading,rules:e.rules,slots:e.slots}}(),u={...s,preampPlacements:s.preampPlacements??{},preampAssets:s.preampAssets??[]};return(0,r.jsx)(d.E,{globalProps:t,monarchBase:n,monarchTrafficFlow:u,children:e})}function f({children:e,initialGlobalProps:t}){return(0,r.jsx)(s,{children:(0,r.jsx)(u,{initialGlobalProps:t,children:e})})}}},e=>{e.O(0,[82540,78348,92924,48657,22286,80791,76439,24325,24770,52369,19627,98443,36150,30837,6605,28441,93794,77358],()=>e(e.s=11132)),_N_E=e.O()}]);
39//# sourceMappingURL=layout-2ecc552bf083a6b2.js.map

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.