1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,33525,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},18967,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={DecodeError:function(){return m},MiddlewareNotFoundError:function(){return b},MissingStaticPage:function(){return y},NormalizeError:function(){return g},PageNotFoundError:function(){return v},SP:function(){return h},ST:function(){return w},WEB_VITALS:function(){return o},execOnce:function(){return a},getDisplayName:function(){return d},getLocationOrigin:function(){return l},getURL:function(){return u},isAbsoluteUrl:function(){return s},isResSent:function(){return f},loadGetInitialProps:function(){return _},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return E}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let o=["CLS","FCP","FID","INP","LCP","TTFB"];function a(e){let t,n=!1;return(...r)=>(n||(n=!0,t=e(...r)),t)}let c=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=e=>c.test(e);function l(){let{protocol:e,hostname:t,port:n}=window.location;return`${e}//${t}${n?":"+n:""}`}function u(){let{href:e}=window.location,t=l();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function _(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await _(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&f(n))return r;if(!r)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${r}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return r}let h="u">typeof performance,w=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class m extends Error{}class g extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class y extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function E(e){return JSON.stringify({message:e.message,stack:e.stack})}},98183,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={assign:function(){return s},searchParamsToUrlQuery:function(){return o},urlQueryToSearchParams:function(){return c}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});function o(e){let t={};for(let[n,r]of e.entries()){let e=t[n];void 0===e?t[n]=r:Array.isArray(e)?e.push(r):t[n]=[e,r]}return t}function a(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function c(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,a(e));else t.set(n,a(r));return t}function s(e,...t){for(let n of t){for(let t of n.keys())e.delete(t);for(let[t,r]of n.entries())e.append(t,r)}return e}},75679,e=>{"use strict";var t=e.i(47167);function n(){return"u">typeof window}function r(){return(n()?window.vam:"production")||"production"}function i(){return"production"===r()}function o(e){return"string"==typeof e?e.slice(0,255):e}function a(e){return e.dataset.analyticsSection||e.id||e.getAttribute("aria-label")||e.tagName.toLowerCase()}t.default.env.NEXT_PUBLIC_GA_MEASUREMENT_ID,e.s(["getClickContext",0,function(e){return{click_x_px:Math.round(e.clientX),click_y_px:Math.round(e.clientY),click_x_percent:Math.round(e.clientX/window.innerWidth*100),click_y_percent:Math.round(e.clientY/window.innerHeight*100),viewport_width_px:window.innerWidth,viewport_height_px:window.innerHeight}},"trackEvent",0,function(e,t={}){let c,s,l,u={...(c=document.documentElement,l=Math.min(100,Math.max(0,Math.round((s=Math.max(window.scrollY,c.scrollTop,0))/M
1ath.max(c.scrollHeight-window.innerHeight,1)*100))),{current_section:function(){let e=Array.from(document.querySelectorAll("[data-analytics-section], main section[id], footer"));if(0===e.length)return"unknown";let t=window.innerHeight/2,n=e.find(e=>{let n=e.getBoundingClientRect();return n.top<=t&&n.bottom>=t});if(n)return a(n);let r=e.reduce((e,n)=>e?Math.abs(n.getBoundingClientRect().top+n.offsetHeight/2-t)<Math.abs(e.getBoundingClientRect().top+e.offsetHeight/2-t)?n:e:n,null);return r?a(r):"unknown"}(),page_region:l<=15?"top":l>=85?"bottom":"middle",scroll_percent:l,viewport_top_px:Math.round(s),viewport_height_px:window.innerHeight,page_path:window.location.pathname,page_title:document.title}),...t};(!function(e,t){var o,a;if(!n()){let e="[Vercel Web Analytics] Please import `track` from `@vercel/analytics/server` when using this function in a server environment";if(i())console.warn(e);else throw Error(e);return}if(!t){null==(o=window.va)||o.call(window,"event",{name:e,options:void 0});return}try{let n=function(e,t){if(!e)return;let n=e,r=[];for(let[i,o]of Object.entries(e))"object"==typeof o&&null!==o&&(t.strip?n=function(e,{[e]:t,...n}){return n}(i,n):r.push(i));if(r.length>0&&!t.strip)throw Error(`The following properties are not valid: ${r.join(", ")}. Only strings, numbers, booleans, and null are allowed.`);return n}(t,{strip:i()});null==(a=window.va)||a.call(window,"event",{name:e,data:n,options:void 0})}catch(e){e instanceof Error&&"development"===r()&&console.error(e)}}(e,function(e,t){let n=(...e)=>Object.fromEntries(e.map(e=>[e,o(t[e])]).filter(e=>void 0!==e[1]));switch(e){case"page_top_view":case"page_bottom_reached":return n("page_path");case"section_view":return n("section_id","section_name");case"scroll_depth":return n("scroll_depth_percent","current_section");case"link_click":return n("link_href","click_section");case"internal_nav_click":return n("link_target","click_section");case"buy_modal_open":return n("buy_opener_placement","current_section");case"buy_modal_close":return n("close_method","buy_opener_placement");case"retailer_click":{let e=t.click_placement??"unknown",r=t.buy_opener_placement;return{...n("retailer"),conversion_source:o(r?`${e}:${r}`:e)}}case"newsletter_submit":case"newsletter_error":case"generate_lead":return n("form_name","lead_source");case"no_link_click_session":return n("reason","current_section");case"no_retailer_click_session":return n("link_click_count","current_section");default:return{}}}(e,u)),"function"==typeof window.gtag)?window.gtag("event",e,u):(window.dataLayer=window.dataLayer||[],window.dataLayer.push(["event",e,u]))}],75679)},61316,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function({html:e,height:t=null,width:n=null,children:o,dataNtpc:a=""}){return(0,i.useEffect)(()=>{a&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${a}`}})},[a]),(0,r.jsxs)(r.Fragment,{children:[o,e?(0,r.jsx)("div",{style:{height:null!=t?`${t}px`:"auto",width:null!=n?`${n}px`:"auto"},"data-ntpc":a,dangerouslySetInnerHTML:{__html:e}}):null]})};let r=e.r(43476),i=e.r(71645)},8341,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={cancelIdleCallback:function(){return a},requestIdleCallback:function(){return o}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let o="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},a="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},79520,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return v},handleClientScriptLoad:function(){return w},initScriptLoader:function(){return m}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let o=e.r(55682),a=e.r(90809),c=e.r(43476),s=o._(e.r(74080)),l=a._(e.r(71645)),u=e.r(42732),d=e.r(22737),f=e.r(8341),p=new Map,_=new Set,h=e=>{let{src:t,id:n,onLoad:r=()=>{},onReady:i=null,dangerouslySetInnerHTML:o,children:a="",strategy:c="afterInteractive",onError:l,stylesheets:u}=e,f=n||t;if(f&&_.has(f))return;if(p.has(t)){_.add(f),p.get(t).then(r,l);return}let h=()=>{i&&i(),_.add(f)},w=document.createElement("script"),m=new Promise((e,t)=>
1{w.addEventListener("load",function(t){e(),r&&r.call(this,t),h()}),w.addEventListener("error",function(e){t(e)})}).catch(function(e){l&&l(e)});o?(w.innerHTML=o.__html||"",h()):a?(w.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",h()):t&&(w.src=t,p.set(t,m)),(0,d.setAttributesFromProps)(w,e),"worker"===c&&w.setAttribute("type","text/partytown"),w.setAttribute("data-nscript",c),u&&(e=>{if(s.default.preinit)return e.forEach(e=>{s.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)})}})(u),document.body.appendChild(w)};function w(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>h(e))}):h(e)}function m(e){e.forEach(w),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");_.add(t)})}function g(e){let{id:t,src:n="",onLoad:r=()=>{},onReady:i=null,strategy:o="afterInteractive",onError:a,stylesheets:d,...p}=e,{updateScripts:w,scripts:m,getIsSsr:g,appDir:v,nonce:y}=(0,l.useContext)(u.HeadManagerContext);y=p.nonce||y;let b=(0,l.useRef)(!1);(0,l.useEffect)(()=>{let e=t||n;b.current||(i&&e&&_.has(e)&&i(),b.current=!0)},[i,t,n]);let E=(0,l.useRef)(!1);if((0,l.useEffect)(()=>{if(!E.current){if("afterInteractive"===o)h(e);else"lazyOnload"===o&&("complete"===document.readyState?(0,f.requestIdleCallback)(()=>h(e)):window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>h(e))}));E.current=!0}},[e,o]),("beforeInteractive"===o||"worker"===o)&&(w?(m[o]=(m[o]||[]).concat([{id:t,src:n,onLoad:r,onReady:i,onError:a,...p,nonce:y}]),w(m)):g&&g()?_.add(t||n):g&&!g()&&h({...e,nonce:y})),v){if(d&&d.forEach(e=>{s.default.preinit(e,{as:"style"})}),"beforeInteractive"===o)if(!n)return p.dangerouslySetInnerHTML&&(p.children=p.dangerouslySetInnerHTML.__html,delete p.dangerouslySetInnerHTML),(0,c.jsx)("script",{nonce:y,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([0,{...p,id:t}])})`}});else return s.default.preload(n,p.integrity?{as:"script",integrity:p.integrity,nonce:y,crossOrigin:p.crossOrigin}:{as:"script",nonce:y,crossOrigin:p.crossOrigin}),(0,c.jsx)("script",{nonce:y,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([n,{...p,id:t}])})`}});"afterInteractive"===o&&n&&s.default.preload(n,p.integrity?{as:"script",integrity:p.integrity,nonce:y,crossOrigin:p.crossOrigin}:{as:"script",nonce:y,crossOrigin:p.crossOrigin})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let v=g;("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},3303,(e,t,n)=>{t.exports=e.r(79520)},19598,(e,t,n)=>{"use strict";var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.sendGTMEvent=void 0,n.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:n,dataLayerName:r="dataLayer",auth:s,preview:l,dataLayer:u,nonce:d}=e;c=r;let f=new URL(n||"https://www.googletagmanager.com/gtm.js");return t&&f.searchParams.set("id",t),"dataLayer"!==r&&f.searchParams.set("l",r),s&&f.searchParams.set("gtm_auth",s),l&&(f.searchParams.set("gtm_preview",l),f.searchParams.set("gtm_cookies_win","x")),(0,o.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:` 2 (function(w,l){ 3 w[l]=w[l]||[]; 4 w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'}); 5 ${u?`w[l].push(${JSON.stringify(u)})`:""} 6 })(window,'${r}');`},nonce:d}),(0,i.jsx)(a.default,{id:"_next-gtm","data-ntpc":"GTM",src:f.href,nonce:d})]})};let i=e.r(43476),o=e.r(71645),a=r(e.r(3303)),c="dataLayer";n.sendGTMEvent=(e,t)=>
6{let n=t||c;window[n]=window[n]||[],window[n].push(e)}},54576,(e,t,n)=>{"use strict";let r;var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.GoogleAnalytics=function(e){let{gaId:t,debugMode:n,dataLayerName:i="dataLayer",nonce:s}=e;return void 0===r&&(r=i),(0,a.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:` 7 window['${i}'] = window['${i}'] || []; 8 function gtag(){window['${i}'].push(arguments);} 9 gtag('js', new Date()); 10 11 gtag('config', '${t}' ${n?",{ 'debug_mode': true }":""});`},nonce:s}),(0,o.jsx)(c.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?id=${t}`,nonce:s})]})},n.sendGAEvent=function(){void 0===r?console.warn("@next/third-parties: GA has not been initialized"):window[r]?window[r].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${r} does not exist`)};let o=e.r(43476),a=e.r(71645),c=i(e.r(3303))},18566,(e,t,n)=>{t.exports=e.r(76562)},2355,e=>{"use strict";var t=e.i(47167),n=e.i(71645),r=e.i(18566);function i(){return"u">typeof window}function o(){return"production"}function a(){return"development"===((i()?window.vam:o())||"production")}function c(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function s(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function l(e){return(0,n.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),(0,n.useEffect)(()=>{!function(e={debug:!0},t){var n;if(!i())return;let{beforeSend:r,src:c,dataset:l}=function(e,t){var n,r;let i=e;if(t)try{i={...null==(n=JSON.parse(t))?void 0:n.analytics,...e}}catch{}!function(e="auto"){if("auto"===e){window.vam=o();return}window.vam=e}(i.mode);let c={sdkn:"@vercel/analytics"+(i.framework?`/${i.framework}`:""),sdkv:"2.0.1"};return i.disableAutoTrack&&(c.disableAutoTrack="1"),i.viewEndpoint&&(c.viewEndpoint=s(i.viewEndpoint)),i.eventEndpoint&&(c.eventEndpoint=s(i.eventEndpoint)),i.sessionEndpoint&&(c.sessionEndpoint=s(i.sessionEndpoint)),a()&&!1===i.debug&&(c.debug="false"),i.dsn&&(c.dsn=i.dsn),i.endpoint?c.endpoint=i.endpoint:i.basePath&&(c.endpoint=s(`${i.basePath}/insights`)),{beforeSend:i.beforeSend,src:(r=i).scriptSrc?s(r.scriptSrc):a()?"https://va.vercel-scripts.com/v1/script.debug.js":r.basePath?s(`${r.basePath}/insights/script.js`):"/_vercel/insights/script.js",dataset:c}}(e,t);if(window.va||(window.va=function(...e){window.vaq||(window.vaq=[]),window.vaq.push(e)}),r&&(null==(n=window.va)||n.call(window,"beforeSend",r)),document.head.querySelector(`script[src*="${c}"]`))return;let u=document.createElement("script");for(let[e,t]of(u.src=c,Object.entries(l)))u.dataset[e]=t;u.defer=!0,u.onerror=()=>{let e=a()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${c}. ${e}`)},document.head.appendChild(u)}({framework:e.framework||"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...void 0!==e.route&&{disableAutoTrack:!0},...e},e.configString??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}())},[]),(0,n.useEffect)(()=>{e.route&&e.path&&function({route:e,path:t}){var n;null==(n=window.va)||n.call(window,"pageview",{route:e,path:t})}({route:e.route,path:e.path})},[e.route,e.path]),null}function u(e){let i,o,a,{route:s,path:u}=(i=(0,r.useParams)(),o=(0,r.useSearchParams)(),a=(0,r.usePathname)(),i?{route:function(e,t){if(!e||!t)return e;let n=e;try{let e=Object.entries(t);for(let[t,r]of e)if(!Array.isArray(r)){let e=c(r);e.test(n)&&(n=n.replace(e,`/[${t}]`))}for(let[t,r]of e)if(Array.isArray(r)){let e=c(r.join("/"));e.test(n)&&(n=n.replace(e,`/[...${t}]`))}return n}catch{return e}}(a,Object.keys(i).length?i:Object.fromEntries(o.entries())),path:a}:{route:null,path:a});return n.default.createElement(l,{path:u,route:s,...e,basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}
11(),configString:function(){if(void 0!==t.default&&void 0!==t.default.env)return'{"analytics":{"scriptSrc":"146c5852a873d14b/script.js","viewEndpoint":"146c5852a873d14b/view","eventEndpoint":"146c5852a873d14b/event","sessionEndpoint":"146c5852a873d14b/session"},"speedInsights":{"scriptSrc":"9c252d2e1404d2a4/script.js","endpoint":"9c252d2e1404d2a4/vitals"}}'}(),framework:"next"})}e.s(["Analytics",0,function(e){return n.default.createElement(n.Suspense,{fallback:null},n.default.createElement(u,{...e}))}])},47534,e=>{"use strict";var t=e.i(71645),n=e.i(75679);let r={hero:"Hero",chapter1:"Free Chapter","social-proof":"Social Proof",excerpt:"Inside the Book",features:"Features",contents:"Table of Contents",testimonials:"Testimonials",audience:"Audience",authors:"Authors",faq:"FAQ",retailers:"Retailers",newsletter:"Newsletter",footer:"Footer"};e.s(["AnalyticsTracker",0,function(){let e=(0,t.useRef)(new Set),i=(0,t.useRef)(new Set),o=(0,t.useRef)(!1),a=(0,t.useRef)(0),c=(0,t.useRef)(0),s=(0,t.useRef)(!1),l=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{(0,n.trackEvent)("page_top_view",{scroll_depth_percent:0});let e=()=>{0!==a.current||s.current||(s.current=!0,(0,n.trackEvent)("no_link_click_session",{link_click_count:0,reason:"page_hidden_or_unloaded",transport_type:"beacon"})),0!==c.current||l.current||(l.current=!0,(0,n.trackEvent)("no_retailer_click_session",{retailer_click_count:0,link_click_count:a.current,reason:"page_hidden_or_unloaded",transport_type:"beacon"}))},t=e=>{let t,r,i,o=e.target;if(!(o instanceof Element))return;let s=o.closest("a[href]");if(!s)return;let l=s.getAttribute("href")||"",u=(s.getAttribute("href")||"").startsWith("#")?"internal_anchor":s.hostname&&s.hostname!==window.location.hostname?"outbound":s.pathname!==window.location.pathname?"internal_page":"same_page",d=(t=s.hostname.toLowerCase(),r=s.pathname.toLowerCase(),(s.getAttribute("href")||"").startsWith("#")?"section_nav":t.includes("amazon.")||t.includes("nostarch.com")||t.includes("barnesandnoble.com")||r.includes("1718504764")||r.includes("developers-guide-to-ai")?"retailer":t.includes("focus.dev")||t.includes("jerrymannel.me")||t.includes("dthompsondev.com")?"author":t.includes("nostarch.com")?"publisher":s.hostname&&s.hostname!==window.location.hostname?"external":"internal"),f=s.textContent?.replace(/\s+/g," ").trim().slice(0,80)||"unknown",p=(i=s.closest("[data-analytics-section], main section[id], footer"))?i.dataset.analyticsSection||i.id||i.tagName.toLowerCase():"unknown";if(a.current+=1,"retailer"===d&&(c.current+=1),(0,n.trackEvent)("link_click",{link_text:f,link_url:s.href,link_href:l,link_type:u,link_category:d,click_section:p,link_click_count:a.current,retailer_click_count:c.current,...(0,n.getClickContext)(e)}),"internal_anchor"===u){let t=l.replace("#","")||"top";(0,n.trackEvent)("internal_nav_click",{link_text:f,link_target:t,click_section:p,link_click_count:a.current,...(0,n.getClickContext)(e)})}},r=()=>{"hidden"===document.visibilityState&&e()};return document.addEventListener("click",t,{capture:!0}),document.addEventListener("visibilitychange",r),window.addEventListener("pagehide",e),()=>{document.removeEventListener("click",t,{capture:!0}),document.removeEventListener("visibilitychange",r),window.removeEventListener("pagehide",e)}},[]),(0,t.useEffect)(()=>{let e=Array.from(document.querySelectorAll("[data-analytics-section], main section[id], footer")),t=new IntersectionObserver(e=>{for(let t of e){if(!t.isIntersecting||t.intersectionRatio<.45)continue;let e=t.target,o=e.dataset.analyticsSection||e.id||e.tagName.toLowerCase();i.current.has(o)||(i.current.add(o),(0,n.trackEvent)("section_view",{section_id:o,section_name:r[o]??o,visible_percent:Math.round(100*t.intersectionRatio)}))}},{rootMargin:"-10% 0px -20% 0px",threshold:[.45,.65]});return e.forEach(e=>t.observe(e)),()=>t.disconnect()},[]),(0,t.useEffect)(()=>{let t=[25,50,75,90,100],r=0,i=()=>{r=0;let i=document.documentElement,a=Math.max(i.scrollHeight-window.innerHeight,1),c=Math.min(100,Math.round(window.scrollY/a*100));for(let r of t)c>=r&&!e.current.has(r)&&(e.current.add(r),(0,n.trackEvent)("scroll_depth",{scroll_depth_percent:r}));window.scrollY+window.innerHeight>=i.scrollHeight-8&&!o.current&&(o.current=!0,(0,n.trackEvent)("page_bottom_reached",{scroll_depth_percent:100}))},a=()=>{r||(r=window.requestAnimationFrame(i))};return i(),window.addEventListener("scroll",a,{passive:!0}),()=>{r&&window.cancelAnimationFrame(r),window.removeEventListener("scroll",a)}},[]),null}])}]);
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.