(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[841],{5987:function(e,t,a){"use strict";a.d(t,{J:function(){return r},t:function(){return n}});var i=a(5376),s=a(7206);async function n(e){var t=e;"all_book_reviews"==t&&(t="books"),"my_philanthropy"==t&&(t="philanthropy"),"all_book_reviews"==t&&(t="books"),"all_book_reviews"==t&&(t="books"),"all_book_reviews"==t&&(t="books");let a=(0,s.B)()?i.T2:i.KH,n='query MyQuery {\n  article_All(\n    limit: 1000\n    where: {_pageTaxonomySet: {gnTaxonomy: {containsAny: "'.concat(t,'"}}}\n  ) {\n    totalCount\n  }\n}'),r={method:"GET",headers:{"Content-Type":"application/json",Authorization:"bearer "+i.IF}},o=encodeURIComponent(n),l=await fetch(a+"/?query="+o,r),c=await l.json();return c&&c.data.article_All?c.data.article_All.totalCount:0}async function r(e){let t=((0,s.B)(),i.T2),a="query MyQuery {\n  article_All(limit: 50, offset: ".concat(e,", order: {date: desc}) {\n    items {\n      _system_ {\n        codename\n      }\n    }\n  }\n}"),n={method:"GET",headers:{"Content-Type":"application/json",Authorization:"bearer "+i.IF}},r=encodeURIComponent(a),o=await fetch(t+"/?query="+r,n),l=await o.json();return l&&l||"0"}},4422:function(e,t,a){"use strict";function i(e,t){for(var a=0;a<t.length;a++)if(t[a]==e)return a;return -1}function s(e,t){for(var a=0;a<e.length;a++)if(i(e[a].toLowerCase(),t)>-1)return a;return -1}a.d(t,{O:function(){return s},d:function(){return i}})},3462:function(e,t,a){"use strict";a.d(t,{kY:function(){return n},r1:function(){return r}}),a(957);var i=a(1590),s=a(4901);function n(e,t){let a=e+"_"+t;var n=!1;{let r=document.getElementById(a);if(null===r)return null;let o=new IntersectionObserver(e=>{e.forEach(e=>{if(e.intersectionRatio>.005&&"stack_spacertop"!=e.target.id){let a=(0,s.eW)(t);(0,i.dh)(a,!1),window.scrollY>10&&(n=!0)}})},{root:document.window,rootMargin:"-49% 0px -49% 0px",threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]});return o.observe(r),o}}function r(e,t){let a=e+"_"+t;var n=!1;{let r=document.getElementById(a);if(null===r)return null;let o=new IntersectionObserver(e=>{e.forEach(e=>{if(e.intersectionRatio>1e-4){let a=(0,s.eW)(t),r=document.getElementById("articlesHolder");r.scrollTop>10&&(n=!0),n&&(0,i.dh)(a)}})},{root:document.window,rootMargin:"-49% 0px -49% 0px",threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]});return o.observe(r),o}}},1959:function(e,t,a){"use strict";a.d(t,{C4:function(){return c},CF:function(){return o},UW:function(){return m},fp:function(){return p},hU:function(){return x},li:function(){return n},qR:function(){return v},vs:function(){return h},w:function(){return C}});var i=a(5376);async function s(e){try{let t=await fetch(i.Hw+"/comments/"+e+".json?date="+JSON.stringify(new Date),{method:"GET"});t.ok||console.log("getArticleComments: data error "+t.statusText);let a=await t.json();return a}catch(s){return""}}async function n(e){if(""!=e){let t=await s(e);if(t)return t}return""}async function r(){let e=await fetch(i.Hw+"/settings/master.json?date="+JSON.stringify(new Date),{method:"GET"});e.ok||console.log("getArticleComments Master: data error "+e.statusText);let t=await e.json();return t}async function o(){let e=await r();if(e)return e}async function l(e,t){let a=await fetch(i.Hw+"/updates/"+e+"_"+t+".txt?date="+JSON.stringify(new Date),{method:"GET"});if(!a.ok)return"";let s=await a.json();return s}async function c(e,t){let a=await l(e,t);if(a)return a}async function d(e,t){let a=await fetch(i.Hw+"/previous/"+e+"/"+t+".txt?date="+JSON.stringify(new Date),{method:"GET"});if(!a.ok)return"";let s=await a.json();return s}async function m(e,t){let a=await d(e,t);if(a)return a}async function u(e){let t=await fetch(i.Hw+"/moderate/"+e+".json",{method:"GET"});if(!t.ok)return console.log("getArticleComments getUserOffOrNewAPIRes: data error "+t.statusText),"";let a=await t.json();return a}async function h(e){let t=await u(e);if(t)return t}async function g(e){let t=await fetch(i.Hw+"/users/"+e+".json",{method:"GET"});if(!t.ok)return console.log("getArticleComments getSingleUserAPIRes: data error "+t.statusText),"";let a=await t.json();return a}async function p(e){let t=await g(e);if(t)return t}async function _(e){let t=await fetch(i.cB+'/api/QueryTags?container=moderate&query="state"=\''+e+"'",{method:"GET"});t.ok||console.log("getArticleComments ModerateStateAPIRes: data error "+t.statusText);let a=await t.json();return a.result}async function v(e){let t=await _(e);if(t)return t}async function f(e){var t="";let a=new Headers;a.append("Content-Type","application/json"),a.append("Authorization","Bearer "+localStorage.getItem("accessToken"));let s=await fetch(i.cB+"/api/moderate",{method:"POST",headers:a,body:JSON.stringify(e)});return await s.json(),t}async function x(e){let t=await f(e);if(t)return t}async function b(e){let t=new Headers;t.append("Content-Type","application/json"),t.append("Authorization","Bearer "+localStorage.getItem("accessToken"));let a=await fetch(i.cB+"/api/comment",{method:"POST",headers:t,body:JSON.stringify(e)}),s=await a.json();return s}async function C(e){let t=await b(e);if(t)return t}},9868:function(e,t,a){"use strict";function i(e){let t=function(e,t,a,i,s){return{ratio:e,width:t,height:a,poster:i,publicid:s}};if("[]"==e){let a=t(0,0,0,"","");return a}let i=JSON.parse(e);if(i){let s=i[0];return s.ratio=s.width/s.height,s.poster=s.url.replace("upload/","upload/so_4/").replace("mp4","jpg").replace("mov","jpg"),s}{let n=t(0,0,0,"","");return n}}a.d(t,{Q:function(){return i}})},5004:function(e,t,a){"use strict";var i=a(5893),s=a(7294),n=a(1590),r=a(4901);function o(e){let t=(0,s.useRef)(),[a,o]=(0,s.useState)("");var l=Number(e.width),c=Number(e.height);window.innerWidth;var d=l/c,m=Math.round(l/c*10),u=(0,n.uL)(l,c);m>10?(e.type,l=l>1023?1308:l>600?1024:350):m<10&&(e.type,l=394),c=Math.round(l/d);var h=e.src;let g=h,p="https://videos.gatesnotes.com/video/upload/w_"+l+"/q_auto/g_auto/ar_"+u+"/c_fill/v"+e.version+"/"+g+".mp4";var _="https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/62bd3dfa-ad15-471e-9ace-a0524ad1c75e/Fallback-Image-16.9.jpg?w=1308&fit=clip&fm=jpg&q=75";e.hasVTT&&(_="https://videos.gatesnotes.com/raw/upload/VTT/"+g+".vtt");var v="";v=e.hasPoster?"https://videos.gatesnotes.com/image/upload/c_scale,w_"+l+",ar_"+u+"/q_auto/video/"+g+".jpg":d>1?"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/62bd3dfa-ad15-471e-9ace-a0524ad1c75e/Fallback-Image-16.9.jpg":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/f51c6315-b929-47ee-bcdf-30d613164ea7/Fallback-Image-9.16.jpg";let f=(0,r.ql)(g);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("img",{className:"CldVideoPosterFrame",width:l,height:c,src:v,alt:"CldVideoPosterFrame"}),(0,i.jsxs)("video",{id:f,ref:t,className:"CldVid "+a,onTimeUpdate:e=>(0,n.qB)(e,f),onProgress:e=>(0,n.qB)(e,f),width:e.width,preload:"metadata",crossOrigin:"anonymous",muted:!0,controls:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:p,type:"video/mp4"}),(0,i.jsx)("track",{src:_,kind:"subtitles",srcLang:"en",label:"English",default:!0})]})]})}t.Z=o},3708:function(e,t){"use strict";var a;a=0,function(e){function t(){return!0}function a(){return h||t()&&(h=window.gsap)&&h.registerPlugin&&h}function i(e){return Math.round(1e4*e)/1e4}function s(e){return parseFloat(e)||0}function n(e,t){var a=s(e);return~e.indexOf("%")?a/100*t:a}function r(e,t){return s(e.getAttribute(t))}function o(e,t,a,i,n,r){return I(Math.pow((s(a)-s(e))*n,2)+Math.pow((s(i)-s(t))*r,2))}function l(e){return console.warn(e)}function c(e){return"non-scaling-stroke"===e.getAttribute("vector-effect")}function d(e){if(!(e=g(e)[0]))return 0;var t,a,s,n,d,m,u,h=e.tagName.toLowerCase(),p=e.style,_=1,v=1;c(e)&&(_=I((v=e.getScreenCTM()).a*v.a+v.b*v.b),v=I(v.d*v.d+v.c*v.c));try{a=e.getBBox()}catch(x){l("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}var b=a||{x:0,y:0,width:0,height:0},T=b.x,N=b.y,E=b.width,w=b.height;if(a&&(E||w)||!S[h]||(E=r(e,S[h][0]),w=r(e,S[h][1]),"rect"!==h&&"line"!==h&&(E*=2,w*=2),"line"===h&&(T=r(e,"x1"),N=r(e,"y1"),E=Math.abs(E-T),w=Math.abs(w-N))),"path"===h)n=p.strokeDasharray,p.strokeDasharray="none",t=e.getTotalLength()||0,i(_)!==i(v)&&!f&&(f=1)&&l("Warning: <path> length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),t*=(_+v)/2,p.strokeDasharray=n;else if("rect"===h)t=2*E*_+2*w*v;else if("line"===h)t=o(T,N,T+E,N+w,_,v);else if("polyline"===h||"polygon"===h)for(s=e.getAttribute("points").match(C)||[],"polygon"===h&&s.push(s[0],s[1]),t=0,d=2;d<s.length;d+=2)t+=o(s[d-2],s[d-1],s[d],s[d+1],_,v)||0;else"circle"!==h&&"ellipse"!==h||(t=Math.PI*(3*((m=E/2*_)+(u=w/2*v))-I((3*m+u)*(m+3*u))));return t||0}function m(e,t){if(!(e=g(e)[0]))return[0,0];t=t||d(e)+1;var a=p.getComputedStyle(e),i=a.strokeDasharray||"",n=s(a.strokeDashoffset),r=i.indexOf(",");return r<0&&(r=i.indexOf(" ")),t<(i=r<0?t:s(i.substr(0,r)))&&(i=t),[-n||0,i-n||0]}function u(){t()&&(p=window,v=h=a(),g=h.utils.toArray,x=h.core.getStyleSaver,b=h.core.reverting||function(){},_=-1!==((p.navigator||{}).userAgent||"").indexOf("Edge"))}var h,g,p,_,v,f,x,b,C=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,S={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},I=Math.sqrt,T={version:"3.12.2",name:"drawSVG",register:function(e){h=e,u()},init:function(e,t,a){if(!e.getBBox)return!1;v||u();var r,o,l,h,g,f,b,C,S,I=d(e);return this.styles=x&&x(e,"strokeDashoffset,strokeDasharray,strokeMiterlimit"),this.tween=a,this._style=e.style,this._target=e,t+""=="true"?t="0 100%":t?-1===(t+"").indexOf(" ")&&(t="0 "+t):t="0 0",r=t,o=I,l=(b=m(e,I))[0],g=(f=r.indexOf(" "))<0?(h=void 0!==l?l+"":r,r):(h=r.substr(0,f),r.substr(f+1)),h=n(h,o),C=(g=n(g,o))<h?[g,h]:[h,g],this._length=i(I),this._dash=i(b[1]-b[0]),this._offset=i(-b[0]),this._dashPT=this.add(this,"_dash",this._dash,i(C[1]-C[0]),0,0,0,0,0,1),this._offsetPT=this.add(this,"_offset",this._offset,i(-C[0]),0,0,0,0,0,1),_&&(S=p.getComputedStyle(e)).strokeLinecap!==S.strokeLinejoin&&(C=s(S.strokeMiterlimit),this.add(e.style,"strokeMiterlimit",C,C+.01)),this._live=c(e)||~(t+"").indexOf("live"),this._nowrap=~(t+"").indexOf("nowrap"),this._props.push("drawSVG"),1},render:function(e,t){if(t.tween._time||!b()){var a,i,s,n,r=t._pt,o=t._style;if(r){for(t._live&&(a=d(t._target))!==t._length&&(i=a/t._length,t._length=a,t._offsetPT&&(t._offsetPT.s*=i,t._offsetPT.c*=i),t._dashPT?(t._dashPT.s*=i,t._dashPT.c*=i):t._dash*=i);r;)r.r(e,r.d),r=r._next;s=t._dash||e&&1!==e&&1e-4||0,a=t._length-s+.1,n=t._offset,s&&n&&s+Math.abs(n%t._length)>t._length-.2&&(n+=n<0?.1:-.1)&&(a+=.1),o.strokeDashoffset=s?n:n+.001,o.strokeDasharray=a<.2?"none":s?s+"px,"+(t._nowrap?999999:a)+"px":"0px, 999999px"}}else t.styles.revert()},getLength:d,getPosition:m};a()&&h.registerPlugin(T),e.DrawSVGPlugin=T,e.default=T,"undefined"==typeof window||window!==e?Object.defineProperty(e,"__esModule",{value:!0}):delete e.default}(t)},2941:function(e,t,a){"use strict";var i=a(5893),s=a(7294),n=a(2121),r=a(4422),o=a(5376),l=a(7206);function c(e){function t(e){if(!e||"n"!=e.substring(0,1))return!1;var t=e.substring(1);return/^\d/.test(t.substring(0,1))}var a=e.className;void 0===e.className&&(a="");var c=e.target;void 0===e.target&&(c="");let d=(0,s.useContext)(n.DN);var m=e.href.toLowerCase();e.preserveCase&&(m=e.href);let u=m.split("/");if(u.length>0){t(u[u.length-1].toLowerCase())&&(u[u.length-1]=u[u.length-1].substring(1));let h=(0,r.O)(u,o.zW);h>=0?(m=l.h+"/"+d.state.SC_section+"/"+d.state.SC_topic+"/"+u[h],u.length>h+1&&(m=m+"/"+u[h+1]),u.length>h+2&&(m=m+"/"+u[h+2])):m.includes("http")||(m=l.h+"/"+m)}return e.preserveCase?(0,i.jsx)("a",{href:m,className:a,target:c,rel:"noopener noreferrer",children:e.children}):(0,i.jsx)("a",{href:m.toLowerCase().replaceAll("_","-"),className:a,target:c,rel:"noopener noreferrer",children:e.children})}t.Z=(0,s.memo)(c)},7858:function(e,t,a){"use strict";a.d(t,{Z:function(){return w}});var i=a(5893),s=a(7294),n=a(9734),r=a(2121),o=a(3150),l=a(6115),c=a(3758),d=a(5675),m=a.n(d),u=a(4020),h=a(1590);function g(e){let t=e=>{(0,h.H5)(e,"stack");let t=document.getElementById("ChapterNavigation");t&&(t.classList.contains("ChapterNavigationOn")?t.classList.remove("ChapterNavigationOn"):t.classList.add("ChapterNavigationOn"))};(0,s.useEffect)(()=>{},[]);var a="";1==e.number&&(a="KChapterNavigationButtonActive");let{data:r}=(0,n.ZP)(e.codename);return r&&"article"==r.system.type?(0,i.jsxs)("div",{className:"KChapterNavigationButton "+a,onClick:()=>t("ChapterHolder"+r.system.codename),children:[(0,i.jsx)("div",{className:"KChapterNavigationButtonNum",children:e.number}),(0,i.jsx)("div",{className:"KChapterNavigationButtonTitle",children:r.elements.menuTitle.value})]}):(0,i.jsx)(i.Fragment,{})}var p=(0,s.memo)(g);let _=e=>{let t=document.getElementById("ChapterNavigation");t&&(t.classList.contains("ChapterNavigationOn")?t.classList.remove("ChapterNavigationOn"):t.classList.add("ChapterNavigationOn"))};function v(e){return e.item.elements.specialArticleType.value.length>0?"Article with chapters"!=e.item.elements.specialArticleType.value[0].name?(0,i.jsx)(i.Fragment,{}):(0,i.jsxs)("div",{className:"ChapterNavigationOuter",children:[(0,i.jsx)("div",{className:"ChapterNavigationMobile",onClick:_,children:(0,i.jsx)("div",{className:"ChapterNavigationMobileBase",children:(0,i.jsxs)("div",{className:"ChapterNavigationMobileSubMenu",children:[(0,i.jsxs)("div",{className:"ChapterNavigationMobileSubMenuL",children:[(0,i.jsx)("div",{className:"ChapterNavigationMobileSubMenuLnum",children:"1"}),(0,i.jsx)("div",{className:"ChapterNavigationMobileSubMenuLtitle",children:"Introduction"})]}),(0,i.jsx)("div",{className:"ChapterNavigationMobileSubMenuR",children:(0,i.jsx)("div",{className:"ChapterNavigationMobileSubMenuRArrow",children:(0,i.jsx)(m(),{className:"ChapterNavigationMobileSubMenuRArrowImg",width:24,height:24,src:"/icon_ArrowBack.svg",alt:"icon_Arrow"})})})]})})}),(0,i.jsx)("div",{className:"ChapterNavigation",id:"ChapterNavigation",children:e.item.elements.bodyContent.linkedItemCodenames.map((e,t)=>(0,i.jsx)(p,{codename:e,number:t+1},e))})]}):(0,i.jsx)(i.Fragment,{})}var f=(0,s.memo)(v),x=a(6064),b=a(4901),C=a(2941),S=a(8340),I=a(957),T=a(7301);function N(e){var t=new Date,a=Math.floor(t.getTimezoneOffset()/60);t.setHours(t.getHours()+a);let i=new Date(e);var s=(t.getTime()-i.getTime())/1e3;if(s<0)return"... coming soon";if(s<60){var n=Math.floor(s);return 1==n?n+" second ago":n+" seconds ago"}if(s<3600){var n=Math.floor(s/60);return 1==n?n+" minute ago":n+" minutes ago"}if(s<=86400){var n=Math.floor(s/3600);return 1==n?n+" hour ago":n+" hours ago"}if(s<=691200){var n=Math.floor(s/86400);return 1==n?n+" day ago":n+" days ago"}let r={year:"numeric",month:"short",day:"numeric",weekday:"long"};return"on "+i.toLocaleString("en-US",r)}function E(e){let{data:t}=(0,n.ZP)(e.name);e.section,e.topic,e.name;let a=(0,s.useRef)(null);function d(e){if(e){var t=e.querySelector(".Share-modal");t&&(t.classList.contains("Share-modal-on")?t.classList.remove("Share-modal-on"):t.classList.add("Share-modal-on"));var a=document.querySelector(".overlay-background");a&&(a.classList.contains("overlay-background-on")?a.classList.remove("overlay-background-on"):a.classList.add("overlay-background-on"))}}let g=e=>{let t=e.target;d(t)},p=e=>{(0,S.nd)("share "+e)};var _="",v="";""!=e.section&&(_=e.section.replaceAll("_","-")+"/"),""!=e.topic&&(v=e.topic.replaceAll("_","-")+"/");let E="https://www.gatesnotes.com/"+_+v+e.name.replaceAll("_","-"),w=e=>{e.stopPropagation();let t=e.target,a=document.querySelector(".Share-modal-icons-stroke-sm");t&&(0,h.vQ)(E).then(()=>{(0,S.nd)("share copy link"),null==a||a.classList.add("checkOn"),setTimeout(()=>{null==a||a.classList.remove("checkOn")},3e3)}).catch(e=>{console.error("Failed to copy text: ",e)})},k=e=>{e.stopPropagation();let t=e.target;if(t){let a=t.parentElement.parentElement;d(a)}};(0,s.useEffect)(()=>{(0,h.YB)()});let y=(0,s.useContext)(r.c3);function A(e){null===I.H||void 0===I.H||I.H.trackEvent({name:"comments: open",properties:{artId:e}}),y.setArtGUID(e);let t=document.querySelector(".CommentsHolderContentHeaderTitle");t&&(t.innerHTML=Y)}if(!t)return(0,i.jsx)(x.Z,{pageName:e.name});{let j=t;if("article"!=t.system.type)return(0,i.jsx)(x.Z,{pageName:e.name});var L=!1;t.elements.specialArticleType.value.length>0&&"Article with chapters"==t.elements.specialArticleType.value[0].name&&(L=!0),(0,o.showLocalStorage)();let O=t.elements.bodyContent,B=(0,s.useContext)(r.DN),R={},M={};R.copy="",R.link="/",M.copy="",M.link="/";var D=!0,H=!0;B.state&&""!=B.state.SC_topicCN?(R.copy=(0,b.Z6)(B.state.SC_section),R.link=(0,b.eW)(B.state.SC_section),M.copy=(0,b.Z6)(B.state.SC_topicCN),M.link=(0,b.eW)(B.state.SC_section)+"/"+(0,b.eW)(B.state.SC_topicCN)):t.elements.pageTaxonomySetLocations.value.length>1?(R.copy=t.elements.pageTaxonomySetLocations.value[0],R.link=t.elements.pageTaxonomySetLocations.value[0],M.copy=(0,b.Z6)(t.elements.pageTaxonomySetLocations.value[1]),M.link=(0,b.eW)(t.elements.pageTaxonomySetLocations.value[1])+"/"+(0,b.eW)(t.elements.pageTaxonomySetLocations.value[1])):(D=!1,H=!1,t.elements.pageTaxonomySetLocations.value.length>0&&t.elements.pageTaxonomySetGnTaxonomy.value.length>0&&t.elements.pageTaxonomySetGnTaxonomy.value.forEach(e=>{var a="";"heroes"==e.codename&&(a="Heroes",D=!0,H=!0),"books"==e.codename&&(a="Books",D=!0,H=!0),"meet_bill"==e.codename&&(a="Meet-Bill",D=!0,H=!0),"work"==e.codename&&(a="Work",D=!0,H=!0),""!=a&&(R.copy=a,R.link=a,M.copy=(0,b.Z6)(t.elements.pageTaxonomySetLocations.value[0]),M.link=a+"/"+(0,b.eW)(t.elements.pageTaxonomySetLocations.value[0]))}));var F="",P=!1;t.elements.pageImageSetHeroSet2&&(F=t.elements.pageImageSetHeroSet2.value[0],void 0!=t.elements.pageImageSetHeroSet2.value[0]&&(P=!0));var W="",G=!1;t.elements.pageImageSetHeroSet1&&!P&&void 0!=(W=t.elements.pageImageSetHeroSet1.value[0])&&(G=!0);var U=!1,V="";t.elements.articleHeroTakeover&&void 0!=(V=t.elements.articleHeroTakeover.value[0])&&(U=!0,P=!1,G=!1);var Z=!0,Y=t.elements.articleTitle.value;""==t.elements.articleTitle.value&&(Z=!1),"<p><br></p>"!=j.elements.articleTitleCustom.value&&(Y=t.elements.articleTitleCustom.value);var q=(0,h.O$)()/2,K="Bill Gates",z=!0;""!=j.elements.byline.value&&(K=j.elements.byline.value),"Bill Gates"!=K&&(z=!1);var Q=j.elements.articleTitle.value;""!=j.elements.pageMetaSetTitle.value&&(Q=j.elements.pageMetaSetTitle.value),""!=j.elements.pageSharingSetSharingTitle.value&&(Q=j.elements.pageSharingSetSharingTitle.value);var J=j.elements.articleSubtitle.value;""!=j.elements.pageMetaSetDescription.value&&(J=j.elements.pageMetaSetDescription.value),""!=j.elements.pageSharingSetSharingDescription.value&&(J=j.elements.pageSharingSetSharingDescription.value);var X=Q;""!=j.elements.pageSharingSetTitleTw.value&&(X=j.elements.pageSharingSetTitleTw.value);var $=J;""!=j.elements.pageSharingSetDescriptionTw.value&&(X=j.elements.pageSharingSetDescriptionTw.value);var ee=j.elements.externalId.value;""==ee&&(ee=j.system.id);var et="SUButtonLoggedOff",ea="ComButtonLoggedOff";return(0,h.SN)()&&(et="SUbuttonLoggedIn",ea="ComButtonLoggedIn"),(0,i.jsx)("div",{className:"ReaderShift",id:t.system.codename+"_a",style:{display:Z?"block":"none",left:q+"px"},children:(0,i.jsxs)("div",{className:"articleHolder",children:[(0,i.jsx)("div",{className:"articleNavHolder",style:{display:L?"flex":"none"},children:(0,i.jsx)(f,{item:t})}),(0,i.jsxs)("div",{className:"articleInner",children:[(0,i.jsx)("div",{className:"articleInnerHeroIS",style:{display:P?"flex":"none",minHeight:P?"480px":"0px"},children:(0,i.jsx)(c.Z,{itemCN:F,isCanvas:!1,width:"1400",height:"900"})}),(0,i.jsx)("div",{className:"articleInnerHeroTO",style:{display:U?"flex":"none"},children:(0,i.jsx)(T.Z,{itemCN:V})}),(0,i.jsx)("div",{className:"articleTopSpacer",style:{display:P?"none":"flex"}}),(0,i.jsxs)("div",{className:"ArticleTop",children:[(0,i.jsx)("div",{className:"Arteyebrow",dangerouslySetInnerHTML:{__html:t.elements.eyebrow.value},ref:a,id:"asr/"+e.name}),(0,i.jsx)("h1",{className:"ArtHeadline",dangerouslySetInnerHTML:{__html:Y}}),(0,i.jsx)("div",{className:"ArtDesc GNDescCopy",dangerouslySetInnerHTML:{__html:t.elements.articleSubtitle.value}}),(0,i.jsxs)("div",{className:"ArticleTopLock",children:[(0,i.jsxs)("div",{className:"ArticleTopLockLeft",children:[(0,i.jsx)("img",{className:"ArticleTopLockLeftImageBill",src:"/image160160810.png",alt:"Bill profile picture",style:{display:z?"block":"none"}}),(0,i.jsx)("img",{className:"ArticleTopLockLeftImageOff",src:"/image160160810off.png",alt:"blue dot",style:{display:z?"none":"block"}})]}),(0,i.jsxs)("div",{className:"ArticleTopLockRight",children:[(0,i.jsxs)("div",{className:"ArticleDateAuth",children:[(0,i.jsxs)("span",{className:"ArtAuth",children:["By ",(0,i.jsx)("span",{className:"ArtAuthName",children:K})]}),(0,i.jsxs)("span",{className:"ArtDate",children:[" published ",(0,i.jsx)("span",{className:"ArtDateTime",children:N(t.elements.date.value)})]})]}),(0,i.jsxs)("div",{className:"KBreadCrumbs",children:[(0,i.jsx)("div",{style:{display:D?"block":"none"},children:(0,i.jsx)(u.Z,{item:R})}),(0,i.jsx)("div",{style:{display:H?"block":"none"},children:(0,i.jsx)(u.Z,{item:M})})]})]})]})]}),(0,i.jsx)("div",{className:"ArticleLegacyImage TopicTimelineSpacer",style:{display:G?"flex":"none"},children:(0,i.jsx)("div",{className:"ArticleLegacyImageAsset",children:(0,i.jsx)(c.Z,{itemCN:W,isCanvas:!0})})}),(0,i.jsx)("div",{className:"ArtBody",children:(0,i.jsx)(l.Z,{richTextElement:O,parentItem:t})}),(0,i.jsxs)("div",{className:"articleEnd",children:[(0,i.jsxs)("div",{className:"primaryButton buttonShare",onClick:g,children:[(0,i.jsx)("div",{className:"primaryButtonIcon",children:(0,i.jsx)(m(),{className:"primaryButtonIconImg",width:24,height:24,src:"/icon_Share.svg",alt:"icon_Share"})}),(0,i.jsx)("div",{className:"primaryButtonCopy",children:"Share"}),(0,i.jsxs)("div",{className:"Share-modal",children:[(0,i.jsxs)("div",{className:"Share-modal-SA-title",onClick:k,children:[(0,i.jsx)("div",{className:"Share-modal-SA-copy",children:"Share article"}),(0,i.jsx)("div",{className:"Share-modal-SA-icons",children:(0,i.jsx)("div",{className:"Share-modal-SA-icon",children:(0,i.jsx)("div",{className:"Share-modal-SA-x",children:(0,i.jsx)(m(),{className:"primaryButtonIconImg",width:14,height:14,src:"/icon_Close.svg",alt:"icon_Close"})})})})]}),(0,i.jsxs)("div",{className:"Share-modal-content",children:[(0,i.jsxs)("div",{className:"Share-modal-item",onClick:w,children:[(0,i.jsx)("div",{className:"Share-modal-icons-stroke",children:(0,i.jsx)("div",{className:"Share-modal-icon",children:(0,i.jsx)(m(),{className:"primaryButtonIconImg",width:20,height:20,src:"/icon_Link.svg",alt:"icon_Link"})})}),(0,i.jsx)("div",{className:"Share-modal-title",children:"Copy link"}),(0,i.jsx)("div",{className:"Share-modal-icons-stroke-sm",children:(0,i.jsx)("div",{className:"Share-modal-icon-sm",children:(0,i.jsx)(m(),{className:"primaryButtonIconImg",width:13,height:13,src:"/icon_Checkmark.svg",alt:"icon_Checkmark"})})})]}),(0,i.jsx)(C.Z,{href:"https://www.facebook.com/sharer/sharer.php?u="+E+"?WT.mc_id=00_00_00_share_fb&title="+Q+"&quote="+J,target:"_blank",children:(0,i.jsxs)("div",{className:"Share-modal-item",onClick:()=>p("FB"),children:[(0,i.jsx)("div",{className:"Share-modal-icons-stroke",children:(0,i.jsx)("div",{className:"Share-modal-icon",children:(0,i.jsx)(m(),{className:"primaryButtonIconImg",width:20,height:20,src:"/icon_Facebook.svg",alt:"icon_Facebook"})})}),(0,i.jsx)("div",{className:"Share-modal-title",children:"Facebook"})]})}),(0,i.jsx)(C.Z,{href:"https://twitter.com/intent/tweet?text="+$+"&url="+j.elements.bitlyUrl.value+"?WT.mc_id=00_00_00_share_tw&via=billgates",target:"_blank",children:(0,i.jsxs)("div",{className:"Share-modal-item",onClick:()=>p("TW"),children:[(0,i.jsx)("div",{className:"Share-modal-icons-stroke",children:(0,i.jsx)("div",{className:"Share-modal-icon",children:(0,i.jsx)(m(),{className:"primaryButtonIconImg",width:20,height:20,src:"/icon_Twitter.svg",alt:"icon_Twitter"})})}),(0,i.jsx)("div",{className:"Share-modal-title",children:"X"})]})}),(0,i.jsx)(C.Z,{href:"https://www.linkedin.com/shareArticle?mini=true&source=GatesNotes&url="+E+"?WT.mc_id=00_00_00_share_li&title="+Q,target:"_blank",children:(0,i.jsxs)("div",{className:"Share-modal-item",onClick:()=>p("LI"),children:[(0,i.jsx)("div",{className:"Share-modal-icons-stroke",children:(0,i.jsx)("div",{className:"Share-modal-icon",children:(0,i.jsx)(m(),{className:"primaryButtonIconImg",width:20,height:20,src:"/icon_LinkedIn.svg",alt:"icon_LinkedIn"})})}),(0,i.jsx)("div",{className:"Share-modal-title",children:"LinkedIn"})]})})]})]})]}),(0,i.jsxs)("div",{className:"primaryButton buttonComments "+ea,onClick:()=>A(ee),children:[(0,i.jsx)("div",{className:"primaryButtonIcon",children:(0,i.jsx)(m(),{className:"primaryButtonIconImg",width:24,height:24,src:"/icon_Comments.svg",alt:"icon_Comments"})}),(0,i.jsx)("div",{className:"primaryButtonCopy",children:"Comments"})]}),(0,i.jsx)(C.Z,{className:"primaryButton buttonLogin "+et,href:"signup",children:(0,i.jsx)("div",{className:"primaryButton buttonLogin",children:(0,i.jsx)("div",{className:"primaryButtonCopy",children:"Get my newsletter"})})})]})]}),(0,i.jsx)("div",{className:"ArticleSeperator",children:(0,i.jsx)("div",{className:"ArticleSeperatorTop"})})]})})}}var w=(0,s.memo)(E)},7287:function(e,t,a){"use strict";var i=a(5893),s=a(7294),n=a(5675),r=a.n(n),o=a(521),l=a(1590),c=a(2121),d=a(1163),m=a.n(d);function u(e){let[t,a]=(0,s.useState)({email:"",password:"",user:"",SUFirst:"",SULast:""}),[n,d]=(0,s.useState)(!0),[u,h]=(0,s.useState)(!1),[g,p]=(0,s.useState)(!1),[_,v]=(0,s.useState)(!1),[f,x]=(0,s.useState)(!1),[b,C]=(0,s.useState)(""),S=(0,s.useContext)(c.bW);async function I(){let e=await (0,o.LF)(t.email);"OK"==e&&C(" gnAuthError3")}(0,s.useEffect)(()=>{});let T=e=>{let i=e.target.value;a({...t,[e.target.name]:i}),e.target.name};var N=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;async function E(){var e=t.email;if("Email address"!=e){if(N.test(e)){let i=await (0,o.EC)(e);""!=i?(d(!1),h(!0),C(""),a({...t,user:i})):(d(!1),v(!0),C(""))}else C(" gnAuthError1")}}async function w(){await (0,o.cb)()}async function k(){var e=t.password;if(" "!=e){let a=await (0,o.ZP)(t.user,e);if(""!=a){d(!1),h(!1),C(""),w();let i=document.getElementById("AuthHolder");i&&(i.classList.contains("AuthHolderOn")?i.classList.remove("AuthHolderOn"):i.classList.add("AuthHolderOn")),setTimeout(()=>{S.setAuth(!0);let e=document.querySelector(".KPage_Signup");e&&m().push("/","",{scroll:!1,shallow:!0})},2e3)}else C(" gnAuthError2")}}async function y(){let e=await (0,o.YE)(t.password);if(""!=e){let a=document.getElementById("Auth_SI_Form");a&&a.classList.remove("Hidden");let i=document.getElementById("Auth_ForgotPass");i&&i.classList.remove("Shown"),d(!0),h(!1),v(!1),p(!1),x(!1),C("")}else C(" gnAuthError2")}async function A(){var e=!0,a="";(""==t.SUFirst||""==t.SULast)&&(a+=" gnAuthSUError3",e=!1),t.password.length<7&&(a+=" gnAuthSUError4",e=!1);var i=t.email;if(N.test(i)||(a+=" gnAuthSUError2",e=!1),C(a),e){C("");let s=await (0,o.SX)(t.email,t.SUFirst,t.SULast,t.password);""!=s?(d(!1),h(!1),v(!1),p(!0),x(!1),C(""),w(),setTimeout(()=>{localStorage.setItem("authParamCampaignstatus","newUser"),S.setAuth(!0)},2e3)):C(" gnAuthSUError5")}}return(0,i.jsxs)("div",{className:"AuthHolder",id:"AuthHolder",children:[(0,i.jsx)("div",{className:"AuthHolderImageArea"}),(0,i.jsxs)("div",{className:"AuthHolderFormArea"+b,children:[(0,i.jsxs)("div",{className:"AuthHolderNav",children:[(0,i.jsx)("div",{className:"icon_Holder AuthHolderNavBack",children:(0,i.jsx)(r(),{className:"icon_Img icon_ArrowBackIcon",width:44,height:15,src:"/icon_ArrowBack.svg",alt:"icon_ArrowBack"})}),(0,i.jsx)("div",{className:"AuthHolderNavLogo",children:(0,i.jsx)(r(),{className:"AuthHolderNavLogoImg",width:44,height:15,src:"/Logo.svg",alt:"logo"})}),(0,i.jsx)("div",{className:"icon_Holder AuthHolderNavClose",onClick:l.Ok,children:(0,i.jsx)(r(),{className:"icon_Img icon_CloseIcon",width:44,height:15,src:"/icon_Close.svg",alt:"icon_Close"})})]}),(0,i.jsxs)("div",{className:"AuthHolderForm",id:"Auth_SI_Form",style:{display:n?"flex":"none"},children:[(0,i.jsx)("div",{className:"AuthHolderFormHeadline",children:"Log in or sign up"}),(0,i.jsx)("div",{className:"AuthHolderFormBody",children:"Want good news in your inbox? Become a Gates Notes Insider today to get my newsletter and receive updates on inspiring stories and remarkable heroes from around the world. You'll learn about the incredible progress being made in global health, energy innovation, and more."}),(0,i.jsxs)("div",{className:"AuthHolderFormInput",children:[(0,i.jsx)("div",{className:"AuthHolderFormInputPlaceHolder",children:"Your email"}),(0,i.jsx)("input",{className:"AuthHolderFormInputField",placeholder:"Email Address",name:"email",type:"email",onChange:T,value:t.email}),(0,i.jsx)("div",{className:"AuthHolderFormInputUnderline",children:"Please enter a valid email address"})]}),(0,i.jsx)("div",{className:"AuthHolderFormButton",onClick:()=>E(),children:(0,i.jsx)("div",{className:"AuthHolderFormButtonLabel",children:"Next"})})]}),(0,i.jsxs)("div",{className:"AuthHolderForm",id:"Auth_SI_Form2",style:{display:u?"flex":"none"},children:[(0,i.jsx)("div",{className:"AuthHolderFormHeadline",children:"Welcome back, Insider"}),(0,i.jsxs)("div",{className:"AuthHolderFormBody",children:["Log in with ",(0,i.jsx)("span",{className:"AuthHolderFormEmail",children:t.email})]}),(0,i.jsx)("div",{className:"AuthHolderFormPassword",children:(0,i.jsxs)("div",{className:"AuthHolderFormInput",children:[(0,i.jsx)("div",{className:"AuthHolderFormInputPlaceHolder",children:"password"}),(0,i.jsx)("input",{className:"AuthHolderFormInputField",name:"password",type:"password",onChange:T,value:t.password}),(0,i.jsxs)("div",{className:"AuthHolderFormInputUnderline",children:["I'm sorry that email and password combination are invalid, click ",(0,i.jsx)("span",{className:"AuthHolderFormInputUnderlineLink",onClick:I,children:"here"})," to reset your password."]}),(0,i.jsx)("div",{className:"AuthHolderFormInputUnderline AuthHolderFormInputUnderlineOK",children:"You should receive an email shortly with instructions on how to reset your password."})]})}),(0,i.jsx)("div",{className:"AuthHolderFormButton",onClick:()=>k(),children:(0,i.jsx)("div",{className:"AuthHolderFormButtonLabel",children:"Log in"})})]}),(0,i.jsxs)("div",{className:"AuthHolderForm",id:"Auth_Thanks",style:{display:g?"flex":"none"},children:[(0,i.jsx)("div",{className:"AuthHolderFormHeadline",children:"Thanks for signing up!"}),(0,i.jsx)("div",{className:"AuthHolderFormTermsHolder",children:(0,i.jsx)("div",{className:"AuthHolderFormTerms",children:"Please check your email and click on the link provided to verify your account."})}),(0,i.jsx)("div",{className:"AuthHolderFormResend",children:"Resend verification email"})]}),(0,i.jsxs)("div",{className:"AuthHolderForm",id:"Auth_ForgotPass",style:{display:f?"flex":"none"},children:[(0,i.jsx)("div",{className:"AuthHolderFormHeadline",children:"Reset your password."}),(0,i.jsx)("div",{className:"AuthHolderFormPassword",children:(0,i.jsxs)("div",{className:"AuthHolderFormInput",children:[(0,i.jsx)("div",{className:"AuthHolderFormInputPlaceHolder",children:"New password"}),(0,i.jsx)("input",{className:"AuthHolderFormInputField",name:"password",type:"password",onChange:T,value:t.password}),(0,i.jsx)("div",{className:"AuthHolderFormInputUnderline",children:"Password must be at least 7 characters"})]})}),(0,i.jsx)("div",{className:"AuthHolderFormButton",onClick:()=>y(),children:(0,i.jsx)("div",{className:"AuthHolderFormButtonLabel",children:"Set new password"})}),(0,i.jsx)("div",{className:"AuthHolderFormInputUnderline",id:"SUError6",children:"Sorry something went wrong please try again later."}),(0,i.jsx)("div",{className:"AuthHolderFormInputUnderline AuthHolderFormInputUnderlineOK",id:"SUError7",children:"Your password has been reset."})]}),(0,i.jsxs)("div",{className:"AuthHolderForm",id:"Auth_SU_Form",style:{display:_?"flex":"none"},children:[(0,i.jsx)("div",{className:"AuthHolderFormHeadline",children:"Become a Gates Notes Insider"}),(0,i.jsx)("div",{className:"AuthHolderFormBody",children:"Want good news in your inbox? Become a Gates Notes Insider today to get my newsletter and receive updates on inspiring stories and remarkable heroes from around the world. You'll learn about the incredible progress being made in global health, energy innovation, and more."}),(0,i.jsxs)("div",{className:"AuthHolderFormInput",children:[(0,i.jsx)("div",{className:"AuthHolderFormInputPlaceHolder",children:"Your email"}),(0,i.jsx)("input",{className:"AuthHolderFormInputField",name:"email",type:"email",placeholder:"Email address",id:"SUF_Email",onChange:T,value:t.email}),(0,i.jsx)("div",{className:"AuthHolderFormInputUnderline",id:"SUError1",children:"This email is already registered. Try using another instead."}),(0,i.jsx)("div",{className:"AuthHolderFormInputUnderline",id:"SUError2",children:"Please enter a valid email address"})]}),(0,i.jsxs)("div",{className:"AuthHolderFormInputTwo",children:[(0,i.jsxs)("div",{className:"AuthHolderFormInput",children:[(0,i.jsx)("div",{className:"AuthHolderFormInputPlaceHolder",children:"First name"}),(0,i.jsx)("input",{className:"AuthHolderFormInputField",placeholder:"First",name:"SUFirst",type:"first name",onChange:T,value:t.SUFirst}),(0,i.jsx)("div",{className:"AuthHolderFormInputUnderline",id:"SUError3",children:"Enter a first and last name. For example, “Richard Feynman”."})]}),(0,i.jsxs)("div",{className:"AuthHolderFormInput",children:[(0,i.jsx)("div",{className:"AuthHolderFormInputPlaceHolder",children:"Last name"}),(0,i.jsx)("input",{className:"AuthHolderFormInputField",placeholder:"Last",name:"SULast",type:"last name",onChange:T,value:t.SULast}),(0,i.jsx)("div",{className:"AuthHolderFormInputUnderline"})]})]}),(0,i.jsx)("div",{className:"AuthHolderFormPassword",children:(0,i.jsxs)("div",{className:"AuthHolderFormInput",children:[(0,i.jsx)("div",{className:"AuthHolderFormInputPlaceHolder",children:"password"}),(0,i.jsx)("input",{className:"AuthHolderFormInputField",name:"password",type:"password",onChange:T,value:t.password}),(0,i.jsx)("div",{className:"AuthHolderFormInputUnderline",id:"SUError4",children:"Password must be at least 7 characters"})]})}),(0,i.jsx)("div",{className:"AuthHolderFormTermsHolder",children:(0,i.jsx)("div",{className:"AuthHolderFormTerms",children:'We will never share or spam your email address. For more information see our Sign Up FAQ. By clicking "Sign Up" you agree to the Gates Notes Terms of Use and Privacy Policy.'})}),(0,i.jsx)("div",{className:"AuthHolderFormButton",onClick:()=>A(),children:(0,i.jsx)("div",{className:"AuthHolderFormButtonLabel",children:"Sign up"})}),(0,i.jsx)("div",{className:"AuthHolderFormInputUnderline",id:"SUError5",children:"Sorry something went wrong please try again later."})]})]})]})}t.Z=(0,s.memo)(u)},4020:function(e,t,a){"use strict";var i=a(5893),s=a(7294),n=a(2941);function r(e){var t="Home page topic",a="Work section topic",s="Books home topic",r="Meet Bill home topic",o="Heroes home topic";if(!e.item.copy)return(0,i.jsx)(i.Fragment,{});var l="",c="";return(e.item&&("cure_alzheimer_s"==e.item.copy&&(e.item.copy="Cure Alzheimer's"),"meet_bill"==e.item.copy&&(e.item.copy="Meet Bill"),""==e.item.copy&&(e.item.copy="Home"),l=e.item.copy.replaceAll("-"," ").replaceAll("_"," "),c=e.item.link.replaceAll(" ","-").toLowerCase()),l.toLowerCase()==t.toLowerCase()||l.toLowerCase()==a.toLowerCase()||l.toLowerCase()==s.toLowerCase()||l.toLowerCase()==o.toLowerCase()||l.toLowerCase()==r.toLowerCase())?(0,i.jsx)(i.Fragment,{}):(0,i.jsx)(n.Z,{className:"KBreadCrumbLink",href:c,children:(0,i.jsx)("div",{className:"KBreadCrumb",children:(0,i.jsx)("div",{className:"KBreadCrumbCopy",children:l})})})}t.Z=(0,s.memo)(r)},1221:function(e,t,a){"use strict";a.d(t,{Z:function(){return eT}});var i=a(5893),s=a(7294);let n={card_types:{codename:"card_types",id:"a1feca21-51a2-4e93-ac21-253d3b73403f",externalId:void 0,name:"Card types",terms:{banner_card:{codename:"banner_card",id:"927106c7-c0f2-45e2-8d06-4b661fadcdc6",externalId:void 0,name:"Banner card",terms:{}},book_card:{codename:"book_card",id:"59ce34dc-cec9-4ed3-a160-0ede56b5e008",externalId:void 0,name:"Book card",terms:{}},book_quote_card:{codename:"book_quote_card",id:"497a0b08-55ae-4848-8840-5a8b8dbfabe7",externalId:void 0,name:"Book quote card",terms:{}},campaign_articles_card:{codename:"campaign_articles_card",id:"597d22d5-0f1a-4b4e-bc44-96e893eabf7e",externalId:void 0,name:"Campaign articles or books card",terms:{}},campaign_podcasts_card:{codename:"campaign_podcasts_card",id:"717ca1c5-3705-4c60-8f7e-9181d99bde84",externalId:void 0,name:"Campaign podcasts card",terms:{}},data_card:{codename:"data_card",id:"c996048b-72bf-4069-bde4-f6546e093207",externalId:void 0,name:"Data card",terms:{}},featured_in_card:{codename:"featured_in_card",id:"8b272dee-2a09-4f26-9291-8d2e0630b0b5",externalId:void 0,name:"Featured in card",terms:{}},header_card:{codename:"header_card",id:"d317473d-1adb-47fb-9d6e-2aed5c372e54",externalId:void 0,name:"Header card",terms:{}},hero_card:{codename:"hero_card",id:"a2ec1872-5a87-4475-8390-ac7298e72e1d",externalId:void 0,name:"Hero card",terms:{}},load_more_card:{codename:"load_more_card",id:"a14464de-dfca-410f-bc39-47f8d494f3cc",externalId:void 0,name:"Load more card",terms:{}},long_read_card:{codename:"long_read_card",id:"318bb798-b7b8-4dd7-84a7-c30a4ef89139",externalId:void 0,name:"Long read card",terms:{}},memo_card:{codename:"memo_card",id:"d514dc01-d753-42d0-85af-3c9f800f3a27",externalId:void 0,name:"Memo card",terms:{}},menu_card:{codename:"menu_card",id:"a9ee0cdc-47bf-40db-b668-3d7b91a17731",externalId:void 0,name:"Menu card",terms:{}},podcast_card:{codename:"podcast_card",id:"6258496d-35d5-4bd4-ac37-5a30d6e6f946",externalId:void 0,name:"Podcast card",terms:{}},quote_card:{codename:"quote_card",id:"446da05e-8e79-49b1-a47b-facf20a3e032",externalId:void 0,name:"Quote card",terms:{}},section_card:{codename:"section_card",id:"d24e571a-2071-4e33-a67e-b2db4907312f",externalId:void 0,name:"Section card",terms:{}},sign_up_banner_card:{codename:"sign_up_banner_card",id:"cea617ad-1732-4e79-a8d2-f4b722c52cb6",externalId:void 0,name:"Sign up banner card",terms:{}},sign_up_modal_card:{codename:"sign_up_modal_card",id:"225335bb-4984-4844-b10b-760a8a554c39",externalId:void 0,name:"Sign up modal card",terms:{}},standalone_image_card:{codename:"standalone_image_card",id:"0266dd24-adba-41bf-8bb5-4578ddef2a88",externalId:void 0,name:"Standalone image card",terms:{}},standalone_video_card:{codename:"standalone_video_card",id:"6000f2be-4c1e-4bff-a28c-6cb5b351b663",externalId:void 0,name:"Standalone video card",terms:{}},standard_article_card:{codename:"standard_article_card",id:"4437bde1-7035-4c78-9ff4-c815125dc288",externalId:void 0,name:"Standard article card",terms:{}},topic_card:{codename:"topic_card",id:"bccc2f81-13d7-405d-8c85-12e7c5adc3bc",externalId:void 0,name:"Topic card",terms:{}},trailer_card:{codename:"trailer_card",id:"87253bba-b989-4fec-b46f-52f743dd6d90",externalId:void 0,name:"Trailer card",terms:{}},vertical_list_card:{codename:"vertical_list_card",id:"c713e25b-17b3-4bd9-a131-f645b8e8e6ca",externalId:void 0,name:"Vertical list card",terms:{}},vertical_slider_card:{codename:"vertical_slider_card",id:"59886afa-4abb-4180-bbc0-0845b91e8703",externalId:void 0,name:"Vertical slider card",terms:{}}}},master_taxonomy:{codename:"master_taxonomy",id:"b5f5d4b1-39f9-4c02-ad1a-a6294c2f28fd",externalId:void 0,name:"Master Taxonomy",terms:{books:{codename:"books",id:"335c5498-a1a6-4b2f-8d0a-a6e46d8adccd",externalId:void 0,name:"Books",terms:{books_i_wrote:{codename:"books_i_wrote",id:"e5fac198-da4c-4bbb-9a6f-468b765c590e",externalId:void 0,name:"Books I wrote",terms:{}},economics:{codename:"economics",id:"1b069965-3718-4280-ac02-f776e75ebc15",externalId:void 0,name:"Economics",terms:{}},education:{codename:"education",id:"3e8659ab-883b-40cb-b345-ba10f879d167",externalId:void 0,name:"Education",terms:{}},fiction:{codename:"fiction",id:"97629569-c74c-4247-8c62-617be49238d1",externalId:void 0,name:"Fiction",terms:{}},health:{codename:"health",id:"82921a72-e43e-430f-ba71-21c659c92df6",externalId:void 0,name:"Health",terms:{}},history:{codename:"history",id:"4db59483-ebd2-4576-88d6-7d5b99050599",externalId:void 0,name:"History",terms:{}},movies_and_tv:{codename:"movies_and_tv",id:"91bc03a9-6b3e-4ec2-bc95-8437075f851f",externalId:void 0,name:"Movies and TV",terms:{}},people:{codename:"people",id:"fd12e55a-7278-4c08-b51f-9c2485ed3f67",externalId:void 0,name:"People",terms:{}},reading_lists:{codename:"reading_lists",id:"e8db7aaa-7886-41a8-ad85-0b2273c5aaaf",externalId:void 0,name:"Reading Lists",terms:{}},science:{codename:"science",id:"0b4ecc33-b773-4567-bdc2-f9188666a121",externalId:void 0,name:"Science",terms:{}},science_fiction:{codename:"science_fiction",id:"b4818b25-47d6-47ef-849a-47080abffee9",externalId:void 0,name:"Science fiction",terms:{}},society:{codename:"society",id:"be6d0bad-cefa-43a2-91ce-7487f05ce6a7",externalId:void 0,name:"Society",terms:{}}}},heroes:{codename:"heroes",id:"00fab00d-0db2-428b-b221-46006dd57a3c",externalId:void 0,name:"Heroes",terms:{}},meet_bill:{codename:"meet_bill",id:"511d2241-9e02-47eb-8af5-f3d41a3bf95e",externalId:void 0,name:"Meet Bill",terms:{family_and_friends:{codename:"family_and_friends",id:"b4f1def5-7425-4c1c-9a53-64ecf17fa809",externalId:void 0,name:"Family and friends",terms:{}},games_i_love:{codename:"games_i_love",id:"d6d1973b-dace-4273-901e-9c3cc4f6ad52",externalId:void 0,name:"Games I love",terms:{}},microsoft:{codename:"microsoft",id:"11128a9f-f36a-4c08-b29d-77d689de4e2d",externalId:void 0,name:"Microsoft",terms:{}},my_podcasts:{codename:"my_podcasts",id:"0f01d213-7508-4514-9aac-ce64c15e85fc",externalId:void 0,name:"My podcasts",terms:{}},netflix:{codename:"netflix",id:"e144152a-0b49-4e51-8a12-150aac311d7c",externalId:void 0,name:"Netflix",terms:{}},philanthropy:{codename:"philanthropy",id:"59513239-a20e-49e3-b711-ed2f1377a99c",externalId:void 0,name:"Philanthropy",terms:{}},source_code:{codename:"source_code",id:"c0b9958b-21ac-4fe2-938a-f8f5f32e4592",externalId:void 0,name:"Source Code",terms:{}},tech_thinking:{codename:"tech_thinking",id:"36d0f637-56d4-406f-b229-8047f2850d17",externalId:void 0,name:"Tech thinking",terms:{}}}},work:{codename:"work",id:"d2a7c659-5c4a-4055-b747-d3d81ada4202",externalId:void 0,name:"Work",terms:{accelerate_climate_innovation:{codename:"accelerate_climate_innovation",id:"51c819ea-f8af-469d-9556-c280f6f04fbe",externalId:void 0,name:"Accelerate climate innovation",terms:{}},cure_alzheimer_s:{codename:"cure_alzheimer_s",id:"aaec3187-fb1e-4d51-a299-e9a62b91f7f1",externalId:void 0,name:"Cure Alzheimer’s",terms:{}},provide_quality_education:{codename:"provide_quality_education",id:"e65da71d-cbcc-49a8-8863-97e95ba24a7b",externalId:void 0,name:"Provide quality education",terms:{}},reduce_inequities:{codename:"reduce_inequities",id:"1aaa4764-f0cc-4d87-b22a-745b5b6d7d4b",externalId:void 0,name:"Reduce inequities",terms:{}},save_lives:{codename:"save_lives",id:"3b68b92a-efd3-4b54-be1d-3dfe865e638f",externalId:void 0,name:"Save lives",terms:{}}}}}}};var r=a(381),o=a.n(r),l=a(4390),c=a(6115),d=a(990),m=a(6546),u=a(2941),h=a(5376),g=a(9355);function p(e){let t=e.cdata.card.elements.cardTargetsLightboxTargets.value[0];e.cdata.card.elements.cardTargetsMainTarget.value[0],o().locale("en"),(0,s.useContext)(l.J);let a=e.cdata.cardSource.elements.secondSection;return e.cdata.cardSource.elements.date.value,(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"memoOuterHolder Card","data-bh":e.cdata.cardBackgroundColor,style:{background:e.cdata.cardBackgroundColor},children:(0,i.jsxs)("div",{id:"memoHolder"+e.cdata.card.system.codename,className:"memoHolder",children:[(0,i.jsx)("div",{className:"memoStart"}),(0,i.jsxs)("div",{className:"memoLeftThenTop",children:[(0,i.jsxs)("div",{className:"memoLeftThenTopLockup",children:[(0,i.jsx)("div",{className:"memoPreHeader",children:e.cdata.cardEyebrow}),(0,i.jsx)("div",{className:"memoHeader",dangerouslySetInnerHTML:{__html:e.cdata.cardSource.elements.title.value}})]}),(0,i.jsxs)(u.Z,{href:h.l3+"/"+t,className:"memoBodyLeftThumb GNLink",children:[(0,i.jsxs)("div",{id:"memoBodyLeftThumb"+e.cdata.card.system.codename,className:"memoBodyLeftThumbinner",children:[(0,i.jsx)(g.Z,{codename:e.cdata.cardHeroImageForegroundImageSet,parentItem:e.cdata.card}),(0,i.jsx)("div",{className:"memoBodyLeftThumbIcons",children:(0,i.jsx)("div",{className:"memoBodyLeftThumbIcon",style:{background:e.cdata.cardBackgroundColor},children:(0,i.jsx)("img",{className:"gnIcon",src:"/play_circle.svg",alt:"Play button"})})})]}),(0,i.jsxs)("div",{id:"memoBodyLeftThumbMT"+e.cdata.card.system.codename,className:"memoBodyLeftThumbMT",children:[(0,i.jsx)(g.Z,{codename:e.cdata.cardHeroImageForegroundImageSet,parentItem:e.cdata.card}),(0,i.jsx)("div",{className:"memoBodyLeftThumbIcons",children:(0,i.jsx)("div",{className:"memoBodyLeftThumbIcon",style:{background:e.cdata.cardBackgroundColor},children:(0,i.jsx)("img",{className:"gnIcon",src:"/play_circle.svg",alt:"Play button"})})})]})]})]}),(0,i.jsxs)("div",{className:"memoRightThenBottom",children:[(0,i.jsxs)("div",{className:"memoBody",children:[(0,i.jsx)("div",{className:"memoBodyRight",dangerouslySetInnerHTML:{__html:e.cdata.cardSource.elements.body.value}}),(0,i.jsx)("div",{className:"memoSignature",children:(0,i.jsx)("img",{src:"/bill-gates-signature.svg",alt:"Bill Signature"})})]}),(0,i.jsx)("div",{className:"memoSecondSection TopicTimelineSpacer",children:(0,i.jsx)(c.Z,{richTextElement:a,parentItem:e.cdata.card})}),(0,i.jsx)("div",{className:"memoEnd"})]})]})}),(0,i.jsxs)("div",{className:"ArticleSeperator TopicTimelineSpacer",children:[(0,i.jsx)("div",{className:"ArticleSeperatorTop",style:{background:e.cdata.cardBackgroundColor}}),(0,i.jsx)("div",{className:"ArticleSeperatorBot"})]})]})}d.p8.registerPlugin(m.ScrollTrigger);var _=(0,s.memo)(p);function v(e){(0,s.useEffect)(()=>{setTimeout(()=>{var t=document.getElementById(e.cdata.card.system.codename+"dv");if(t){t.setAttribute("src",e.cdata.cardBackgroundImage);var a=t.querySelector("source");a&&a.setAttribute("src",e.cdata.cardBackgroundImage),t.play()}var i=document.getElementById(e.cdata.card.system.codename+"tv");if(i){i.setAttribute("src",e.cdata.cardBackgroundImageTablet);var s=i.querySelector("source");s&&s.setAttribute("src",e.cdata.cardBackgroundImageTablet),i.play()}var n=document.getElementById(e.cdata.card.system.codename+"mv");if(n){n.setAttribute("src",e.cdata.cardBackgroundImageMobile);var r=n.querySelector("source");r&&r.setAttribute("src",e.cdata.cardBackgroundImageMobile),n.play()}},50)},[e.cdata.card.system.codename,e.cdata.cardBackgroundImage,e.cdata.cardBackgroundImageMobile,e.cdata.cardBackgroundImageTablet]);var t=void 0,a="",n=e.cdata.artLink;e.cdata.card.elements&&(t=e.cdata.card.elements.cardTargetsLightboxTargets.value[0],a=e.cdata.card.elements.cardTargetsMainTarget.value[0]),""==a&&(a=n),""==n&&(n=h.he+"/"+a),(0,s.useContext)(l.J);var r=!0,o="LongRead";"long_read_card"!=e.cdata.cardType&&(r=!1,o="");var c=!0;void 0==t&&(c=!1);var d=!0;""==e.cdata.cardForegroundImage&&(d=!1);var m=!0;("Hide"==e.cdata.cardShowBackgroundImage||""==e.cdata.cardBackgroundImage)&&(m=!1);var g=!1;e.cdata.cardBackgroundImage.includes(".mp4")&&(m=!1,g=!0),"#FFFFFF"==e.cdata.cardBackgroundColor&&(e.cdata.cardBackgroundColor="#F0F1F4");var p="";return e.cdata.card.elements&&e.cdata.card.elements.cardDisplayOptionsVariant.value.length>0&&"Pin top"==e.cdata.card.elements.cardDisplayOptionsVariant.value[0].name&&(p=" articleLeftFBPinTop"),(0,i.jsxs)("div",{className:"articleFB TopicTimelineSpacer Card "+o,"data-cardtype":"StandardArticleCardFBV","data-codename":e.cdata.cardType,style:{background:e.cdata.cardBackgroundColor},children:[(0,i.jsxs)(u.Z,{href:c?h.l3+"/"+t:"",className:c?"articleBackFB GNLink":"articleBackFB GNLinkDisabled",children:[(0,i.jsxs)("div",{className:"articleBackFBinner",style:{background:e.cdata.cardBackgroundColor,display:m?"flex":"none"},children:[(0,i.jsx)("img",{className:"DesktopOnly",src:e.cdata.cardBackgroundImage+"?w=1440&fit=clip&fm=jpg",alt:e.cdata.cardBackgroundImageDesc,style:{cursor:c?"pointer":"auto"}}),(0,i.jsx)("img",{className:"TabletOnly",src:e.cdata.cardBackgroundImageTablet+"?w=960&fit=clip&fm=jpg",alt:e.cdata.cardBackgroundImageDesc,style:{cursor:c?"pointer":"auto"}}),(0,i.jsx)("img",{className:"MobileOnly",src:e.cdata.cardBackgroundImageMobile+"?w=630&fit=clip&fm=jpg",alt:e.cdata.cardBackgroundImageDesc,style:{cursor:c?"pointer":"auto"}})]}),(0,i.jsxs)("div",{className:"articleBackFBvHolder",style:{display:g?"flex":"none"},children:[(0,i.jsxs)("video",{id:e.cdata.card.system.codename+"dv",className:"DesktopOnly articleBackFBv",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:e.cdata.cardBackgroundImage,type:"video/mp4"}),(0,i.jsx)("p",{children:"Your browser doesn't support HTML video."})]}),(0,i.jsxs)("video",{id:e.cdata.card.system.codename+"tv",className:"TabletOnly articleBackFBv",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:e.cdata.cardBackgroundImageTablet,type:"video/mp4"}),(0,i.jsx)("p",{children:"Your browser doesn't support HTML video."})]}),(0,i.jsxs)("video",{id:e.cdata.card.system.codename+"mv",className:"MobileOnly articleBackFBv",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:e.cdata.cardBackgroundImageMobile,type:"video/mp4"}),(0,i.jsx)("p",{children:"Your browser doesn't support HTML video."})]})]})]}),(0,i.jsx)("div",{className:"articleMaskGroupFB",children:(0,i.jsx)("div",{className:"articleMaskFB",style:{background:"linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, "+e.cdata.cardBackgroundColor+" 23.33%)"}})}),(0,i.jsxs)("div",{className:"articleInnerLock",children:[(0,i.jsxs)(u.Z,{href:c?h.l3+"/"+t:"",className:c?"articleRightFB GNLink":"articleRightFB GNLinkDisabled",children:[(0,i.jsx)("div",{className:"articleRightFBi",style:{display:d?"flex":"none",cursor:c?"pointer":"auto",backgroundImage:"url("+e.cdata.cardForegroundImage+"?w=488&h=488&fit=clip&fm=jpg&q=75)"}}),(0,i.jsx)("div",{className:"ImgPlayButton",style:{display:c?"flex":"none"},children:(0,i.jsx)("img",{className:"gnIcon",src:"/play_circle.svg",alt:"Play button"})})]}),(0,i.jsxs)(u.Z,{href:r?a:n,className:"articleLeftFB GNLink"+p,children:[(0,i.jsxs)("div",{className:"articlePreLock",children:[(0,i.jsx)("div",{className:"long-read-label",style:{display:r?"inline-block":"none"},children:"IN DEPTH "}),(0,i.jsx)("div",{className:"articlePre",dangerouslySetInnerHTML:{__html:e.cdata.cardEyebrow}})]}),(0,i.jsx)("div",{className:"articleHeadline",dangerouslySetInnerHTML:{__html:e.cdata.cardTitle}}),(0,i.jsx)("div",{className:"articleDesc GNDescCopy",dangerouslySetInnerHTML:{__html:e.cdata.cardSubtitle}})]})]})]})}var f=(0,s.memo)(v);function x(e){(0,s.useEffect)(()=>{setTimeout(()=>{var t=document.getElementById(e.cdata.card.system.codename+"dv");if(t){t.setAttribute("src",e.cdata.cardBackgroundImage);var a=t.querySelector("source");a&&a.setAttribute("src",e.cdata.cardBackgroundImage),t.play()}var i=document.getElementById(e.cdata.card.system.codename+"tv");if(i){i.setAttribute("src",e.cdata.cardBackgroundImageTablet);var s=i.querySelector("source");s&&s.setAttribute("src",e.cdata.cardBackgroundImageTablet),i.play()}var n=document.getElementById(e.cdata.card.system.codename+"mv");if(n){n.setAttribute("src",e.cdata.cardBackgroundImageMobile);var r=n.querySelector("source");r&&r.setAttribute("src",e.cdata.cardBackgroundImageMobile),n.play()}},50)},[e.cdata.card.system.codename,e.cdata.cardBackgroundImage,e.cdata.cardBackgroundImageMobile,e.cdata.cardBackgroundImageTablet]);var t=void 0,a="",n=e.cdata.artLink;e.cdata.card.elements&&(t=e.cdata.card.elements.cardTargetsLightboxTargets.value[0],a=e.cdata.card.elements.cardTargetsMainTarget.value[0]),""==n&&(n=h.he+"/"+a),(0,s.useContext)(l.J);var r=!0,o="LongRead";"long_read_card"!=e.cdata.cardType&&(r=!1,o="");var c=!0;void 0==t&&(c=!1);var d=!0;""==e.cdata.cardForegroundImage&&(d=!1);var m=!0;"Hide"==e.cdata.cardShowBackgroundImage&&(m=!1);var g=!1;e.cdata.cardBackgroundImage.includes(".mp4")&&(m=!1,g=!0),""==e.cdata.cardBackgroundImage&&(m=!1),"#FFFFFF"==e.cdata.cardBackgroundColor&&(e.cdata.cardBackgroundColor="#F0F1F4");var p="";return e.cdata.card.elements.cardDisplayOptionsVariant.value.length>0&&"Pin top"==e.cdata.card.elements.cardDisplayOptionsVariant.value[0].name&&(p=" articleLeftFWPinTop"),(0,i.jsxs)("div",{className:"articleFW TopicTimelineSpacer Card "+o,"data-cardtype":"StandardArticleCardFW","data-codename":e.cdata.cardType,style:{background:e.cdata.cardBackgroundColor},children:[(0,i.jsx)(u.Z,{href:c?h.l3+"/"+t:"",className:c?"articleBackFW GNLink":"articleBackFW GNLinkDisabled",children:(0,i.jsxs)("div",{className:"articleBackFWinner",style:{background:e.cdata.cardBackgroundColor},children:[(0,i.jsxs)("div",{className:"articleBackGroup",style:{cursor:c?"pointer":"auto",display:m?"flex":"none"},children:[(0,i.jsx)("img",{className:"DesktopOnly articleBackFWi",src:e.cdata.cardBackgroundImage+"?w=1440&h=900&fit=clip&fm=jpg&q=75",alt:e.cdata.cardBackgroundImageDesc}),(0,i.jsx)("img",{className:"TabletOnly articleBackFWi",src:e.cdata.cardBackgroundImageTablet+"?w=891&h=891&fit=clip&fm=jpg&q=75",alt:e.cdata.cardBackgroundImageDesc}),(0,i.jsx)("img",{className:"MobileOnly articleBackFWi",src:e.cdata.cardBackgroundImageMobile+"?w=495&h=495&fit=clip&fm=jpg&q=75",alt:e.cdata.cardBackgroundImageDesc})]}),(0,i.jsxs)("div",{className:"articleBackFWvHolder",style:{display:g?"flex":"none"},children:[(0,i.jsxs)("video",{id:e.cdata.card.system.codename+"dv",className:"DesktopOnly articleBackFWv",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:e.cdata.cardBackgroundImage,type:"video/mp4"}),(0,i.jsx)("p",{children:"Your browser doesn't support HTML video."})]}),(0,i.jsxs)("video",{id:e.cdata.card.system.codename+"tv",className:"TabletOnly articleBackFWv",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:e.cdata.cardBackgroundImageTablet,type:"video/mp4"}),(0,i.jsx)("p",{children:"Your browser doesn't support HTML video."})]}),(0,i.jsxs)("video",{id:e.cdata.card.system.codename+"mv",className:"MobileOnly articleBackFWv",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:e.cdata.cardBackgroundImageMobile,type:"video/mp4"}),(0,i.jsx)("p",{children:"Your browser doesn't support HTML video."})]})]})]})}),(0,i.jsx)("div",{className:"articleMaskGroupFW",children:(0,i.jsx)("div",{className:"articleMaskFW",style:{background:"linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, "+e.cdata.cardBackgroundColor+" 23.33%)"}})}),(0,i.jsxs)("div",{className:"articleInnerLock",children:[(0,i.jsxs)(u.Z,{href:c?h.l3+"/"+t:"",className:c?"articleRightFW GNLink":"articleRightFW GNLinkDisabled",children:[(0,i.jsx)("div",{className:"articleRightFWi",style:{display:d?"flex":"none",cursor:c?"pointer":"auto",backgroundImage:"url("+e.cdata.cardForegroundImage+"?w=488&h=488&fit=clip&fm=jpg&q=75)"}}),(0,i.jsx)("div",{className:"ImgPlayButton",style:{display:c?"flex":"none"},children:(0,i.jsx)("img",{className:"gnIcon",src:"/play_circle.svg",alt:"Play button"})})]}),(0,i.jsxs)(u.Z,{href:r?a:n,className:"articleLeftFW GNLink"+p,children:[(0,i.jsxs)("div",{className:"articlePreLock",children:[(0,i.jsx)("div",{className:"long-read-label",style:{display:r?"inline-block":"none"},children:"IN DEPTH "}),(0,i.jsx)("div",{className:"articlePre",dangerouslySetInnerHTML:{__html:e.cdata.cardEyebrow}})]}),(0,i.jsx)("div",{className:"articleHeadline",dangerouslySetInnerHTML:{__html:e.cdata.cardTitle}}),(0,i.jsx)("div",{className:"articleDesc GNDescCopy",dangerouslySetInnerHTML:{__html:e.cdata.cardSubtitle}})]})]})]})}var b=(0,s.memo)(x);function C(e){(0,s.useEffect)(()=>{setTimeout(()=>{var t=document.getElementById(e.cdata.card.system.codename+"dv");if(t){t.setAttribute("src",e.cdata.cardBackgroundImage);var a=t.querySelector("source");a&&a.setAttribute("src",e.cdata.cardBackgroundImage),t.play()}var i=document.getElementById(e.cdata.card.system.codename+"tv");if(i){i.setAttribute("src",e.cdata.cardBackgroundImageTablet);var s=i.querySelector("source");s&&s.setAttribute("src",e.cdata.cardBackgroundImageTablet),i.play()}var n=document.getElementById(e.cdata.card.system.codename+"mv");if(n){n.setAttribute("src",e.cdata.cardBackgroundImageMobile);var r=n.querySelector("source");r&&r.setAttribute("src",e.cdata.cardBackgroundImageMobile),n.play()}},50)},[e.cdata.card.system.codename,e.cdata.cardBackgroundImage,e.cdata.cardBackgroundImageMobile,e.cdata.cardBackgroundImageTablet]);let t=e.cdata.card.elements.cardTargetsLightboxTargets.value[0],a=e.cdata.card.elements.cardTargetsMainTarget.value[0];(0,s.useContext)(l.J);var n=!0,r="LongRead",o=e.cdata.artLink;""==o&&(o=h.he+"/"+a),"long_read_card"!=e.cdata.cardType&&(n=!1,r="");var c=!0;void 0==t&&(c=!1);var d=!0;""==e.cdata.cardForegroundImage&&(d=!1);var m=!0;"Hide"==e.cdata.cardShowBackgroundImage&&(m=!1);var g=!1;return e.cdata.cardBackgroundImage.includes(".mp4")&&(m=!1,g=!0),""==e.cdata.cardBackgroundImage&&(m=!1),(0,i.jsxs)("div",{className:"article TopicTimelineSpacer Card "+r,"data-cardtype":"StandardArticleCardLV","data-codename":e.cdata.cardType,children:[(0,i.jsxs)(u.Z,{href:n?a:o,className:"articleLeft GNLink",children:[(0,i.jsxs)("div",{className:"articlePreLock",children:[(0,i.jsx)("div",{className:"long-read-label",style:{display:n?"inline-block":"none"},children:"IN DEPTH "}),(0,i.jsx)("div",{className:"articlePre",dangerouslySetInnerHTML:{__html:e.cdata.cardEyebrow}})]}),(0,i.jsx)("div",{className:"articleHeadline",dangerouslySetInnerHTML:{__html:e.cdata.cardTitle}}),(0,i.jsx)("div",{className:"articleDesc GNDescCopy",dangerouslySetInnerHTML:{__html:e.cdata.cardSubtitle}})]}),(0,i.jsx)(u.Z,{href:c?h.l3+"/"+t:"",className:c?"articleRight GNLink":"articleRight GNLinkDisabled",children:(0,i.jsxs)("div",{className:"articleRightinner",style:{background:e.cdata.cardBackgroundColor},children:[(0,i.jsx)("div",{className:"ImgPlayButton",style:{display:c?"flex":"none"},children:(0,i.jsx)("img",{className:"gnIcon",src:"/play_circle.svg",alt:"Play button"})}),(0,i.jsxs)("div",{className:"articleBackGroup",style:{cursor:c?"pointer":"auto",display:m?"flex":"none"},children:[(0,i.jsx)("img",{className:"DesktopOnly articleBackLi",src:e.cdata.cardBackgroundImage+"?w=845&h=507&fit=clip&fm=jpg&q=75",alt:e.cdata.cardBackgroundImageDesc}),(0,i.jsx)("img",{className:"TabletOnly articleBackLi",src:e.cdata.cardBackgroundImage+"?w=704&h=440&fit=clip&fm=jpg&q=75",alt:e.cdata.cardBackgroundImageDesc}),(0,i.jsx)("img",{className:"MobileOnly articleBackLi",src:e.cdata.cardBackgroundImage+"?w=368&h=221&fit=clip&fm=jpg&q=75",alt:e.cdata.cardBackgroundImageDesc})]}),(0,i.jsxs)("div",{className:"articleBackLvHolder",style:{display:g?"flex":"none"},children:[(0,i.jsxs)("video",{id:e.cdata.card.system.codename+"dv",className:"DesktopOnly articleBackLv",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:e.cdata.cardBackgroundImage,type:"video/mp4"}),(0,i.jsx)("p",{children:"Your browser doesn't support HTML video."})]}),(0,i.jsxs)("video",{id:e.cdata.card.system.codename+"tv",className:"TabletOnly articleBackLv",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:e.cdata.cardBackgroundImageTablet,type:"video/mp4"}),(0,i.jsx)("p",{children:"Your browser doesn't support HTML video."})]}),(0,i.jsxs)("video",{id:e.cdata.card.system.codename+"mv",className:"MobileOnly articleBackLv",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:e.cdata.cardBackgroundImageMobile,type:"video/mp4"}),(0,i.jsx)("p",{children:"Your browser doesn't support HTML video."})]})]}),(0,i.jsx)("div",{className:"articleRightLi",style:{display:d?"flex":"none",cursor:c?"pointer":"auto",backgroundImage:"url("+e.cdata.cardForegroundImage+"?w=488&h=488&fit=clip&fm=jpg&q=75)"}})]})})]})}var S=(0,s.memo)(C);function I(e){(0,s.useEffect)(()=>{setTimeout(()=>{var t=document.getElementById(e.cdata.card.system.codename+"dv");if(t){t.setAttribute("src",e.cdata.cardBackgroundImage);var a=t.querySelector("source");a&&a.setAttribute("src",e.cdata.cardBackgroundImage),t.play()}var i=document.getElementById(e.cdata.card.system.codename+"tv");if(i){i.setAttribute("src",e.cdata.cardBackgroundImageTablet);var s=i.querySelector("source");s&&s.setAttribute("src",e.cdata.cardBackgroundImageTablet),i.play()}var n=document.getElementById(e.cdata.card.system.codename+"mv");if(n){n.setAttribute("src",e.cdata.cardBackgroundImageMobile);var r=n.querySelector("source");r&&r.setAttribute("src",e.cdata.cardBackgroundImageMobile),n.play()}},50)},[e.cdata.card.system.codename,e.cdata.cardBackgroundImage,e.cdata.cardBackgroundImageMobile,e.cdata.cardBackgroundImageTablet]);let t=e.cdata.card.elements.cardTargetsLightboxTargets.value[0],a=e.cdata.card.elements.cardTargetsMainTarget.value[0];(0,s.useContext)(l.J),e.cdata.parentItem.system.codename;var n=!0,r="LongRead",o=e.cdata.artLink;""==o&&(o=h.he+"/"+a),"long_read_card"!=e.cdata.cardType&&(n=!1,r="");var c=!0;void 0==t&&(c=!1);var d=!0;""==e.cdata.cardForegroundImage&&(d=!1);var m=!0;("Hide"==e.cdata.cardShowBackgroundImage||""==e.cdata.cardBackgroundImage)&&(m=!1);var g=!1;e.cdata.cardBackgroundImage.includes(".mp4")&&(m=!1,g=!0);var p="?w=190&h=190&fit=clip&fm=jpg&q=75)";return e.cdata.cardForegroundImage.includes(".png")&&(p="?w=190&h=190&fit=clip)"),(0,i.jsxs)("div",{className:"CollectionArticle Card "+r,children:[(0,i.jsxs)(u.Z,{href:n?a:o,className:"CollectionArticleLockupTop GNLink",children:[(0,i.jsx)("div",{className:"CollectionLine"}),(0,i.jsxs)("div",{className:"articlePreLock",children:[(0,i.jsx)("div",{className:"long-read-label",style:{display:n?"inline-block":"none"},children:"IN DEPTH "}),(0,i.jsx)("div",{className:"CollectionarticlePre",dangerouslySetInnerHTML:{__html:e.cdata.cardEyebrow}})]}),(0,i.jsx)("div",{className:"CollectionArticleTitle",dangerouslySetInnerHTML:{__html:e.cdata.cardTitle}}),(0,i.jsx)("div",{className:"CollectionArticleDesc GNDescCopy",dangerouslySetInnerHTML:{__html:e.cdata.cardSubtitle}})]}),(0,i.jsx)("div",{className:"CollectionArticleLockupBottom",style:{background:e.cdata.cardBackgroundColor},children:(0,i.jsxs)(u.Z,{href:c?h.l3+"/"+t:"",className:c?"CollectionArticleImg GNLink":"CollectionArticleImg GNLinkDisabled",children:[(0,i.jsx)("div",{className:"ImgPlayButton",style:{display:c?"flex":"none"},children:(0,i.jsx)("img",{className:"gnIcon",src:"/play_circle.svg",alt:"Play button"})}),(0,i.jsxs)("div",{className:"articleBackMvHolder",style:{display:g?"flex":"none"},children:[(0,i.jsxs)("video",{id:e.cdata.card.system.codename+"dv",className:"DesktopOnly articleBackMv",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:e.cdata.cardBackgroundImage,type:"video/mp4"}),(0,i.jsx)("p",{children:"Your browser doesn't support HTML video."})]}),(0,i.jsxs)("video",{id:e.cdata.card.system.codename+"tv",className:"TabletOnly articleBackMv",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:e.cdata.cardBackgroundImageTablet,type:"video/mp4"}),(0,i.jsx)("p",{children:"Your browser doesn't support HTML video."})]}),(0,i.jsxs)("video",{id:e.cdata.card.system.codename+"mv",className:"MobileOnly articleBackMv",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:e.cdata.cardBackgroundImageMobile,type:"video/mp4"}),(0,i.jsx)("p",{children:"Your browser doesn't support HTML video."})]})]}),(0,i.jsx)("img",{className:"articleBackMi",src:e.cdata.cardBackgroundImage+"?w=381&h=238&fit=clip&fm=jpg&q=75",alt:e.cdata.cardBackgroundImageDesc,style:{cursor:c?"pointer":"auto",display:m?"flex":"none"}}),(0,i.jsx)("div",{className:"articleRightMi",style:{display:d?"flex":"none",cursor:c?"pointer":"auto",backgroundImage:"url("+e.cdata.cardForegroundImage+p}})]})})]})}var T=(0,s.memo)(I),N=a(4020);function E(e){let t=e.cdata.card.elements.cardTargetsLightboxTargets.value[0],a=e.cdata.card.elements.cardTargetsMainTarget.value[0];(0,s.useContext)(l.J);var n=!0,r="LongRead",o=e.cdata.artLink;""==o&&(o=h.he+"/"+a),"long_read_card"!=e.cdata.cardType&&(n=!1,r="");var c=!0;void 0==t&&(c=!1);var d=!0;""==e.cdata.cardForegroundImage&&(d=!1);var m=!0;"Hide"==e.cdata.cardShowBackgroundImage&&(m=!1),e.cdata.cardBackgroundImage.includes(".mp4")&&(m=!1);let g={};return g.copy="placeholder",g.link="/",(0,i.jsxs)("div",{className:"articleS Card "+r,"data-cardtype":"StandardArticleCardSV","data-codename":e.cdata.cardType,children:[(0,i.jsxs)("div",{className:"articleLeftS",children:[(0,i.jsxs)(u.Z,{href:n?a:o,className:"GNLink",children:[(0,i.jsxs)("div",{className:"articlePreLock",children:[(0,i.jsx)("div",{className:"long-read-label",style:{display:n?"inline-block":"none"},children:"IN DEPTH "}),(0,i.jsx)("div",{className:"articlePre",dangerouslySetInnerHTML:{__html:e.cdata.cardEyebrow}})]}),(0,i.jsx)("div",{className:"articleHeadline",dangerouslySetInnerHTML:{__html:e.cdata.cardTitle}}),(0,i.jsx)("div",{className:"articleDesc GNDescCopy",dangerouslySetInnerHTML:{__html:e.cdata.cardSubtitle}})]}),(0,i.jsx)("div",{className:"KBreadCrumbs",children:(0,i.jsx)(N.Z,{item:g})})]}),(0,i.jsx)(u.Z,{href:c?h.l3+"/"+t:"",className:"articleRightS GNLink",children:(0,i.jsxs)("div",{className:"articleRightSinner",style:{background:e.cdata.cardBackgroundColor},children:[(0,i.jsx)("div",{className:"ImgPlayButton",style:{display:c?"flex":"none"},children:(0,i.jsx)("img",{className:"gnIcon",src:"/play_circle.svg",alt:"Play button"})}),(0,i.jsx)("img",{className:"articleBackSi",src:e.cdata.cardBackgroundImage+"?w=381&h=238&fit=clip&fm=jpg&q=75",alt:e.cdata.cardBackgroundImageDesc,style:{cursor:c?"pointer":"auto",display:m?"flex":"none"}}),(0,i.jsx)("div",{className:"articleRightSi",style:{display:d?"flex":"none",cursor:c?"pointer":"auto",backgroundImage:"url("+e.cdata.cardForegroundImage+"?w=160&h=160&fit=clip&fm=jpg&q=75)"}})]})})]})}var w=(0,s.memo)(E),k=a(1590);function y(e){let t=e.cdata.card.elements.cardTargetsLightboxTargets.value[0];(0,s.useContext)(l.J);var a="";return e.cdata.cardSource.elements.posterImage.value.length>0&&(a=(0,k.t6)(e.cdata.cardSource.elements.posterImage.value[0].url)),(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"TrailerHolder Card",style:{background:e.cdata.cardBackgroundColor},children:[(0,i.jsxs)("div",{className:"TrailerContent",children:[(0,i.jsx)("div",{className:"TrailerTitle",dangerouslySetInnerHTML:{__html:e.cdata.cardTitle}}),(0,i.jsx)("div",{className:"TrailerDescription",dangerouslySetInnerHTML:{__html:e.cdata.cardSubtitle}})]}),(0,i.jsxs)(u.Z,{href:h.l3+"/"+t,className:"TrailerAssets GNLink",children:[(0,i.jsx)("div",{className:"TrailerAsset",style:{backgroundImage:"url("+a+")"}}),(0,i.jsx)("div",{className:"TrailerIcons",children:(0,i.jsx)("div",{className:"TrailerIcon",children:(0,i.jsx)("img",{className:"TrailerPlayIcon",src:"/play_circle.svg",alt:"Play button"})})})]})]})})}var A=(0,s.memo)(y),j=a(3758);function L(e){var t="SectionCardLight",a=e.cdata.cardBackgroundColor;return e.cdata.card.elements.cardDisplayOptionsTheme.value.length>0&&"Dark"==e.cdata.card.elements.cardDisplayOptionsTheme.value[0].name&&(t="SectionCardDark","#FFFFFF"==a&&(a="#777777")),"#FFFFFF"==a&&(a="#CCCCCC"),(0,i.jsxs)("div",{className:"SectionCard_FB Card TopicTimelineSpacer "+t,"data-cardtype":"SectionCard_FB","data-codename":e.cdata.cardType,children:[(0,i.jsx)("div",{className:"CardTopEdge"}),(0,i.jsx)("div",{className:"SectionCard_FBBack",style:{background:a},children:(0,i.jsx)(j.Z,{itemCN:e.cdata.card.elements.cardDisplayOptionsHeroItem.value[0],isCanvas:!1})}),(0,i.jsx)(u.Z,{href:e.cdata.cardSource.system.codename,className:"SectionCard_FBInner GNLink",children:(0,i.jsx)("div",{className:"SectionCard_FBInnerLockup",children:(0,i.jsx)("div",{className:"SectionCard_FBTitle",dangerouslySetInnerHTML:{__html:e.cdata.cardTitle}})})}),(0,i.jsx)("div",{className:"CardBottomEdge"})]})}var O=(0,s.memo)(L);function B(e){var t="SectionCardLight",a=e.cdata.cardBackgroundColor;return e.cdata.card.elements.cardDisplayOptionsTheme.value.length>0&&"Dark"==e.cdata.card.elements.cardDisplayOptionsTheme.value[0].name&&(t="SectionCardDark","#FFFFFF"==a&&(a="#777777")),"#FFFFFF"==a&&(a="#CCCCCC"),(0,i.jsxs)("div",{className:"SectionCard_FW TopicTimelineSpacer Card "+t,"data-cardtype":"SectionCard_FW","data-codename":e.cdata.cardType,children:[(0,i.jsx)(u.Z,{href:e.cdata.cardSource.system.codename,children:(0,i.jsxs)("div",{className:"SectionCard_FWLeft",style:{background:a},children:[(0,i.jsx)("div",{className:"SectionCard_FWTitle",dangerouslySetInnerHTML:{__html:e.cdata.cardTitle}}),(0,i.jsx)("div",{className:"SectionCard_FWDesc GNDescCopy",dangerouslySetInnerHTML:{__html:e.cdata.cardSubtitle}}),(0,i.jsx)("div",{className:"SectionCard_FWCTA",children:"Explore"})]})}),(0,i.jsx)("div",{className:"SectionCard_FWRight",children:(0,i.jsx)(j.Z,{itemCN:e.cdata.card.elements.cardDisplayOptionsHeroItem.value[0],isCanvas:!0})})]})}var R=(0,s.memo)(B);function M(e){var t="SectionCardLight",a=e.cdata.cardBackgroundColor;return e.cdata.card.elements.cardDisplayOptionsTheme.value.length>0&&"Dark"==e.cdata.card.elements.cardDisplayOptionsTheme.value[0].name&&(t="SectionCardDark","#FFFFFF"==a&&(a="#777777")),"#FFFFFF"==a&&(a="#CCCCCC"),(0,i.jsxs)("div",{className:"SectionCard_Def Card "+t,"data-cardtype":"SectionCard_Def","data-codename":e.cdata.cardType,children:[(0,i.jsx)("div",{className:"SectionCard_DefBack",style:{background:a},children:(0,i.jsx)(j.Z,{itemCN:e.cdata.card.elements.cardDisplayOptionsHeroItem.value[0],isCanvas:!1})}),(0,i.jsx)(u.Z,{href:e.cdata.cardSource.system.codename,children:(0,i.jsxs)("div",{className:"SectionCard_DefInner",children:[(0,i.jsx)("div",{className:"SectionCard_DefTitle",dangerouslySetInnerHTML:{__html:e.cdata.cardTitle}}),(0,i.jsx)("div",{className:"SectionCard_DefDesc GNDescCopy",dangerouslySetInnerHTML:{__html:e.cdata.cardSubtitle}}),(0,i.jsx)("div",{className:"SectionCard_DefCTA",children:"Explore"})]})})]})}var D=(0,s.memo)(M);let H={};function F(e){var t="Home";return e.cdata.cardSource.elements.mySection.value&&(t=e.cdata.cardSource.elements.mySection.value[0]),H.copy=t,H.link="/"+t,(0,i.jsxs)("div",{className:"TopicCard_Def TopicTimelineSpacer Card","data-cardtype":"TopicCard_Def","data-codename":e.cdata.cardType,children:[(0,i.jsx)("div",{className:"TopicCard_DefBack",children:(0,i.jsx)(j.Z,{itemCN:e.cdata.card.elements.cardDisplayOptionsHeroItem.value[0],isCanvas:!1})}),(0,i.jsxs)("div",{className:"TopicCard_DefInner",children:[(0,i.jsxs)(u.Z,{href:H.link+"/"+e.cdata.cardSource.system.codename,children:[(0,i.jsx)("div",{className:"TopicCard_DefInnerTop",children:(0,i.jsx)("div",{className:"TopicCard_DefTitle",dangerouslySetInnerHTML:{__html:e.cdata.cardTitle}})}),(0,i.jsx)("div",{className:"TopicCard_DefDesc GNDescCopy",dangerouslySetInnerHTML:{__html:e.cdata.cardSubtitle}})]}),(0,i.jsx)(N.Z,{item:H})]})]})}var P=(0,s.memo)(F);function W(e){var t="Home";e.cdata.cardSource.elements.mySection.value&&(t=e.cdata.cardSource.elements.mySection.value[0]);let a={};return a.copy=t,a.link="/"+t,(0,i.jsxs)("div",{className:"TopicCard_FW TopicTimelineSpacer Card","data-cardtype":"TopicCard_FW","data-codename":e.cdata.cardType,children:[(0,i.jsx)(u.Z,{href:a.link+"/"+e.cdata.cardSource.system.codename,children:(0,i.jsxs)("div",{className:"TopicCard_FWLeft",children:[(0,i.jsxs)("div",{className:"TopicCard_FWLeftTop",children:[(0,i.jsx)("div",{className:"TopicCard_FWTitle",dangerouslySetInnerHTML:{__html:e.cdata.cardTitle}}),(0,i.jsx)("div",{className:"TopicCard_FWDesc GNDescCopy",dangerouslySetInnerHTML:{__html:e.cdata.cardSubtitle}})]}),(0,i.jsx)(N.Z,{item:a})]})}),(0,i.jsx)("div",{className:"TopicCard_FWRight",children:(0,i.jsx)(j.Z,{itemCN:e.cdata.card.elements.cardDisplayOptionsHeroItem.value[0],isCanvas:!0})})]})}var G=(0,s.memo)(W);function U(e){(0,s.useEffect)(()=>{setTimeout(()=>{var t=document.getElementById(e.cdata.card.system.codename+"dv");if(t){t.setAttribute("src",e.cdata.cardBackgroundImage);var a=t.querySelector("source");a&&a.setAttribute("src",e.cdata.cardBackgroundImage),t.play()}var i=document.getElementById(e.cdata.card.system.codename+"tv");if(i){i.setAttribute("src",e.cdata.cardBackgroundImageTablet);var s=i.querySelector("source");s&&s.setAttribute("src",e.cdata.cardBackgroundImageTablet),i.play()}var n=document.getElementById(e.cdata.card.system.codename+"mv");if(n){n.setAttribute("src",e.cdata.cardBackgroundImageMobile);var r=n.querySelector("source");r&&r.setAttribute("src",e.cdata.cardBackgroundImageMobile),n.play()}},50)},[e.cdata.card.system.codename,e.cdata.cardBackgroundImage,e.cdata.cardBackgroundImageMobile,e.cdata.cardBackgroundImageTablet]);let t=e.cdata.card.elements.cardTargetsLightboxTargets.value[0],a=e.cdata.card.elements.cardTargetsMainTarget.value[0];(0,s.useContext)(l.J);var n=e.cdata.artLink;""==n&&(n=h.he+"/"+a);var r=!0,o="LongRead";"long_read_card"!=e.cdata.cardType&&(r=!1,o="");var c=!0;void 0==t&&(c=!1);var d=!0;""==e.cdata.cardForegroundImage&&(d=!1);var m=!0;("Hide"==e.cdata.cardShowBackgroundImage||""==e.cdata.cardBackgroundImage)&&(m=!1);var g=!1;e.cdata.cardBackgroundImage.includes(".mp4")&&(m=!1,g=!0),"#FFFFFF"==e.cdata.cardBackgroundColor&&(e.cdata.cardBackgroundColor="#F0F1F4");var p="";return e.cdata.card.elements.cardDisplayOptionsVariant.value.length>0&&"Pin top"==e.cdata.card.elements.cardDisplayOptionsVariant.value[0].name&&(p=" articleLeftFBHPinTop"),(0,i.jsxs)("div",{className:"articleFBH TopicTimelineSpacer Card "+o,"data-cardtype":"StandardArticleCardFBHV","data-codename":e.cdata.cardType,style:{background:e.cdata.cardBackgroundColor},children:[(0,i.jsxs)("div",{className:"articleBackFBH",style:{background:e.cdata.cardBackgroundColor,display:m?"flex":"none"},children:[(0,i.jsx)("img",{className:"DesktopOnly articleBackFBHi",src:e.cdata.cardBackgroundImage+"?w=1440&h=900&fit=clip&fm=jpg&q=75",alt:e.cdata.cardBackgroundImageDesc,style:{cursor:c?"pointer":"auto"}}),(0,i.jsx)("img",{className:"TabletOnly articleBackFBHi",src:e.cdata.cardBackgroundImageTablet+"?w=960&h=960&fit=clip&fm=jpg&q=75",alt:e.cdata.cardBackgroundImageDesc,style:{cursor:c?"pointer":"auto"}}),(0,i.jsx)("img",{className:"MobileOnly articleBackFBHi",src:e.cdata.cardBackgroundImageMobile+"?w=500&h=800&fit=clip&fm=jpg&q=75",alt:e.cdata.cardBackgroundImageDesc,style:{cursor:c?"pointer":"auto"}})]}),(0,i.jsxs)("div",{className:"articleBackFBHvHolder",style:{display:g?"flex":"none"},children:[(0,i.jsxs)("video",{id:e.cdata.card.system.codename+"dv",className:"DesktopOnly articleBackFBHv",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:e.cdata.cardBackgroundImage,type:"video/mp4"}),(0,i.jsx)("p",{children:"Your browser doesn't support HTML video."})]}),(0,i.jsxs)("video",{id:e.cdata.card.system.codename+"tv",className:"TabletOnly articleBackFBHv",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:e.cdata.cardBackgroundImageTablet,type:"video/mp4"}),(0,i.jsx)("p",{children:"Your browser doesn't support HTML video."})]}),(0,i.jsxs)("video",{id:e.cdata.card.system.codename+"mv",className:"MobileOnly articleBackFBHv",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:e.cdata.cardBackgroundImageMobile,type:"video/mp4"}),(0,i.jsx)("p",{children:"Your browser doesn't support HTML video."})]})]}),(0,i.jsx)("div",{className:"articleMaskGroupFBH",children:(0,i.jsx)("div",{className:"articleMaskFBH",style:{background:"linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, "+e.cdata.cardBackgroundColor+" 23.33%)"}})}),(0,i.jsxs)("div",{className:"articleInnerLock",children:[(0,i.jsxs)(u.Z,{href:c?h.l3+"/"+t:"",className:c?"articleRightFBH GNLink":"articleRightFBH GNLinkDisabled",children:[(0,i.jsx)("div",{className:"articleRightFBHi",style:{display:d?"flex":"none",cursor:c?"pointer":"auto",backgroundImage:"url("+e.cdata.cardForegroundImage+"?w=488&h=488&fit=clip&fm=jpg&q=75)"}}),(0,i.jsx)("div",{className:"ImgPlayButton",style:{display:c?"flex":"none"},children:(0,i.jsx)("img",{className:"gnIcon",src:"/play_circle.svg",alt:"Play button"})})]}),(0,i.jsxs)(u.Z,{href:r?a:n,className:"articleLeftFBH GNLink"+p,children:[(0,i.jsxs)("div",{className:"articlePreLock",children:[(0,i.jsx)("div",{className:"long-read-label",style:{display:r?"inline-block":"none"},children:"IN DEPTH "}),(0,i.jsx)("div",{className:"articlePre",dangerouslySetInnerHTML:{__html:e.cdata.cardEyebrow}})]}),(0,i.jsx)("div",{className:"articleHeadline",dangerouslySetInnerHTML:{__html:e.cdata.cardTitle}}),(0,i.jsx)("div",{className:"articleDesc GNDescCopy",dangerouslySetInnerHTML:{__html:e.cdata.cardSubtitle}})]})]})]})}var V=(0,s.memo)(U);function Z(e){var t=!0;""==e.cdata.cardSource.elements.quoteCta.value&&(t=!1),"– Bill Gates"==e.cdata.cardSource.elements.quoteCta.value&&(e.cdata.cardSource.elements.quoteCta.value="Bill Gates");var a=!0,s="QuoteImage";if(""==e.cdata.cardBackgroundImage){a=!1;var s="NoImage";e.cdata.cardBackgroundImage=""}if(e.cdata.card.elements.cardDisplayOptionsTheme.value.length>0&&"No image"==e.cdata.card.elements.cardDisplayOptionsTheme.value[0].name){a=!1;var s="NoImage"}var n="";e.cdata.card.elements.cardDisplayOptionsTheme.value.length>0&&"Dark"==e.cdata.card.elements.cardDisplayOptionsTheme.value[0].name&&(n="QuoteThemeDark");var r="";if(e.cdata.card.elements.cardDisplayOptionsType.value.length>0&&("Large image"==e.cdata.card.elements.cardDisplayOptionsType.value[0].name&&(r="QuoteTypeLarge"),"No image"==e.cdata.card.elements.cardDisplayOptionsType.value[0].name)){r="QuoteTypeNoImage",a=!1;var s="NoImage"}var o="";return e.cdata.card.elements.cardDisplayOptionsVariant.value.length>0&&"Right image"!=e.cdata.card.elements.cardDisplayOptionsVariant.value[0].name&&(o="QuoteTypeLeft"),(0,i.jsxs)("div",{className:"QuoteCard_FW TopicTimelineSpacer Card "+n+" "+s,"data-cardtype":"QuoteCard_FW","data-codename":e.cdata.cardType,children:[(0,i.jsxs)("div",{className:"QuoteCard_Background",children:[(0,i.jsx)("div",{className:"QuoteCard_BackgroundAsset",children:(0,i.jsx)("div",{className:"QuoteCard_BackgroundImg",style:{backgroundImage:"url("+e.cdata.cardBackgroundImage+")"}})}),(0,i.jsx)("div",{className:"QuoteCard_BackgroundBlur"})]}),(0,i.jsx)("div",{className:"CardTopEdge"}),(0,i.jsxs)("div",{className:"QuoteCardInner "+o+" "+r,children:[(0,i.jsx)("div",{className:"QuoteCard_FWLeft",children:(0,i.jsxs)("div",{className:"QuoteCard_FWLeftQuoteHolder",children:[(0,i.jsxs)("div",{className:"QuoteCard_FWLeftQuote",children:[(0,i.jsx)("img",{className:"QuoteCard_FWLeftQuoteImg",src:"/quote.png",alt:""}),(0,i.jsx)("img",{className:"QuoteCard_FWLeftQuoteImgW",src:"/quoteW.png",alt:""})]}),(0,i.jsx)("div",{className:"QuoteCard_FWLeftBody GNDescCopy",dangerouslySetInnerHTML:{__html:e.cdata.cardSource.elements.quoteCopy.value}}),(0,i.jsx)("div",{className:"QuoteCard_FWLeftAttrib",dangerouslySetInnerHTML:{__html:e.cdata.cardSource.elements.quoteCta.value},style:{display:t?"flex":"none"}})]})}),(0,i.jsx)("div",{className:"QuoteCard_FWRight",style:{display:a?"flex":"none"},children:(0,i.jsx)("div",{className:"QuoteCard_FWRightHolder",children:(0,i.jsx)("div",{className:"QuoteCard_FWRightImg",style:{backgroundImage:"url("+e.cdata.cardBackgroundImage+"?w=1018&h=900&fit=clip&fm=jpg&q=75)"}})})})]}),(0,i.jsx)("div",{className:"CardBottomEdge"})]})}var Y=(0,s.memo)(Z);function q(e){(0,s.useEffect)(()=>{setTimeout(()=>{var t=document.getElementById(e.cdata.card.system.codename+"dv");if(t){t.setAttribute("src",e.cdata.cardBackgroundImage);var a=t.querySelector("source");a&&a.setAttribute("src",e.cdata.cardBackgroundImage),t.play()}var i=document.getElementById(e.cdata.card.system.codename+"tv");if(i){i.setAttribute("src",e.cdata.cardBackgroundImageTablet);var s=i.querySelector("source");s&&s.setAttribute("src",e.cdata.cardBackgroundImageTablet),i.play()}var n=document.getElementById(e.cdata.card.system.codename+"mv");if(n){n.setAttribute("src",e.cdata.cardBackgroundImageMobile);var r=n.querySelector("source");r&&r.setAttribute("src",e.cdata.cardBackgroundImageMobile),n.play()}},50)},[e.cdata.card.system.codename,e.cdata.cardBackgroundImage,e.cdata.cardBackgroundImageMobile,e.cdata.cardBackgroundImageTablet]);let t=e.cdata.card.elements.cardTargetsLightboxTargets.value[0],a=e.cdata.card.elements.cardTargetsMainTarget.value[0];(0,s.useContext)(l.J);var n=!0,r="LongRead",o=e.cdata.artLink;""==o&&(o=h.he+"/"+a),"long_read_card"!=e.cdata.cardType&&(n=!1,r="");var c=!0;void 0==t&&(c=!1);var d=!0;""==e.cdata.cardForegroundImage&&(d=!1);var m="?w=488&h=488&fit=clip&fm=jpg&q=75)";e.cdata.cardForegroundImage.includes(".png")&&(m="?w=488&h=488&fit=clip)");var g=!0;"Hide"==e.cdata.cardShowBackgroundImage&&(g=!1);var p=!1;e.cdata.cardBackgroundImage.includes(".mp4")&&(g=!1,p=!0),"#FFFFFF"==e.cdata.cardBackgroundColor&&(e.cdata.cardBackgroundColor="#F0F1F4");var _="";return e.cdata.card.elements.cardDisplayOptionsVariant.value.length>0&&"Pin top"==e.cdata.card.elements.cardDisplayOptionsVariant.value[0].name&&(_=" articleLeftTCPinTop"),0==e.cdata.card.elements.cardDisplayOptionsHeroItem.value.length&&(e.cdata.cardBackgroundImageTablet=e.cdata.cardBackgroundImage,e.cdata.cardBackgroundImageMobile=e.cdata.cardBackgroundImage),(0,i.jsxs)("div",{className:"articleTC Card "+r,"data-cardtype":"StandardArticleCardTCV","data-codename":e.cdata.cardType,style:{background:e.cdata.cardBackgroundColor},children:[(0,i.jsx)(u.Z,{href:c?h.l3+"/"+t:"",className:c?"articleBackTC GNLink":"articleBackTC GNLinkDisabled",children:(0,i.jsxs)("div",{className:"articleBackTCinner",style:{background:e.cdata.cardBackgroundColor},children:[(0,i.jsxs)("div",{className:"articleBackTC_img",style:{cursor:c?"pointer":"auto",display:g?"flex":"none"},children:[(0,i.jsx)("img",{className:"DesktopOnly",src:e.cdata.cardBackgroundImage+"?w=810&h=528&fit=clip&fm=jpg&q=75",alt:e.cdata.cardBackgroundImageDesc}),(0,i.jsx)("img",{className:"TabletOnly",src:e.cdata.cardBackgroundImageTablet+"?w=704&h=440&fit=clip&fm=jpg&q=75",alt:e.cdata.cardBackgroundImageDesc}),(0,i.jsx)("img",{className:"MobileOnly",src:e.cdata.cardBackgroundImageMobile+"?w=350&h=220&fit=clip&fm=jpg&q=75",alt:e.cdata.cardBackgroundImageDesc})]}),(0,i.jsxs)("div",{className:"articleBackTCvHolder",style:{display:p?"flex":"none"},children:[(0,i.jsxs)("video",{id:e.cdata.card.system.codename+"dv",className:"DesktopOnly articleBackTCv",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:e.cdata.cardBackgroundImage,type:"video/mp4"}),(0,i.jsx)("p",{children:"Your browser doesn't support HTML video."})]}),(0,i.jsxs)("video",{id:e.cdata.card.system.codename+"tv",className:"TabletOnly articleBackTCv",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:e.cdata.cardBackgroundImageTablet,type:"video/mp4"}),(0,i.jsx)("p",{children:"Your browser doesn't support HTML video."})]}),(0,i.jsxs)("video",{id:e.cdata.card.system.codename+"mv",className:"MobileOnly articleBackTCv",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:e.cdata.cardBackgroundImageMobile,type:"video/mp4"}),(0,i.jsx)("p",{children:"Your browser doesn't support HTML video."})]})]}),(0,i.jsx)("div",{className:"articleBackTC_maskGroup",children:(0,i.jsx)("div",{className:"articleBackTC_mask",style:{background:"linear-gradient(270deg, rgba(0, 0, 0, 0.00) 0%, "+e.cdata.cardBackgroundColor+" 18.4%)"}})})]})}),(0,i.jsxs)("div",{className:"articleInnerLockTC",children:[(0,i.jsx)("div",{className:"articleRightTCiWrap",style:{pointerEvents:c?"all":"none"},children:(0,i.jsxs)(u.Z,{href:h.l3+"/"+t,className:"articleRightTC GNLink",children:[(0,i.jsx)("div",{className:"articleRightTCi",style:{display:d?"flex":"none",cursor:c?"pointer":"auto",backgroundImage:"url("+e.cdata.cardForegroundImage+m}}),(0,i.jsx)("div",{className:"ImgPlayButton",style:{display:c?"flex":"none"},children:(0,i.jsx)("img",{className:"gnIcon",src:"/play_circle.svg",alt:"Play button"})})]})}),(0,i.jsxs)(u.Z,{href:n?a:o,className:"articleLeftTC GNLink"+_,children:[(0,i.jsxs)("div",{className:"articlePreLock",children:[(0,i.jsx)("div",{className:"long-read-label",style:{display:n?"inline-block":"none"},children:"IN DEPTH "}),(0,i.jsx)("div",{className:"articlePre",dangerouslySetInnerHTML:{__html:e.cdata.cardEyebrow}})]}),(0,i.jsx)("div",{className:"articleHeadline",dangerouslySetInnerHTML:{__html:e.cdata.cardTitle}}),(0,i.jsx)("div",{className:"articleDesc GNDescCopy",dangerouslySetInnerHTML:{__html:e.cdata.cardSubtitle}})]})]})]})}var K=(0,s.memo)(q);function z(e){var t="";return e.cdata.card.elements.cardDisplayOptionsTheme.value.length>0&&"Dark"==e.cdata.card.elements.cardDisplayOptionsTheme.value[0].name&&(t="BannerThemeDark"),(0,i.jsxs)("div",{className:"BannerCard_Std TopicTimelineSpacer Card "+t,"data-cardtype":"BannerCard_Std","data-codename":e.cdata.cardType,style:{background:e.cdata.cardBackgroundColor},children:[(0,i.jsx)("div",{className:"CardTopEdge"}),(0,i.jsxs)("div",{className:"BannerCard_Inner",children:[(0,i.jsxs)("div",{className:"BannerCard_StdLeft",children:[(0,i.jsx)("div",{className:"BannerCard_StdTitle",dangerouslySetInnerHTML:{__html:e.cdata.cardTitle}}),(0,i.jsx)("div",{className:"BannerCard_StdDesc GNDescCopy",dangerouslySetInnerHTML:{__html:e.cdata.cardSubtitle}}),(0,i.jsx)("div",{className:"BannerCard_StdSource",dangerouslySetInnerHTML:{__html:e.cdata.cardEyebrow}})]}),(0,i.jsx)("div",{className:"BannerCard_StdRight",children:(0,i.jsx)(j.Z,{itemCN:e.cdata.cardBackgroundImageSet,isCanvas:!1})})]}),(0,i.jsx)("div",{className:"CardBottomEdge"})]})}var Q=(0,s.memo)(z);function J(e){e.cdata.card.elements.cardTargetsLightboxTargets.value[0],(0,s.useContext)(l.J);let t=e.cdata.card.elements.cardSource.value;t.shift();var a="";return(e.cdata.card.elements.cardDisplayOptionsHideCampaignHeader.value.length>0&&"hide_header"==e.cdata.card.elements.cardDisplayOptionsHideCampaignHeader.value[0].codename&&(a=" CampaignArticlesHolderHideHeader"),"Full bleed hero"==e.cdata.cardSize)?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"CampaignArticlesHolderFBH TopicTimelineSpacer Card"+a,children:[(0,i.jsx)(V,{cdata:e.cdata}),(0,i.jsxs)("div",{className:"CampaignArticles",children:[(0,i.jsx)("div",{className:"CampaignArticlesSpacer"}),(0,i.jsx)("div",{className:"CampaignArticlesList",children:t.map((t,a)=>(0,i.jsxs)("div",{className:"CampaignArticlesRow",children:[(0,i.jsxs)("div",{className:"CampaignArticlesNumber",children:[a+1,"."]}),(0,i.jsx)(g.Z,{codename:t,parentItem:e.cdata.card},a)]},"R"+a))})]})]})}):(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"CampaignArticlesHolder TopicTimelineSpacer Card"+a,children:[(0,i.jsx)(f,{cdata:e.cdata}),(0,i.jsxs)("div",{className:"CampaignArticles",children:[(0,i.jsx)("div",{className:"CampaignArticlesSpacer"}),(0,i.jsx)("div",{className:"CampaignArticlesList",children:t.map((t,a)=>(0,i.jsxs)("div",{className:"CampaignArticlesRow",children:[(0,i.jsxs)("div",{className:"CampaignArticlesNumber",children:[a+1,"."]}),(0,i.jsx)(g.Z,{codename:t,parentItem:e.cdata.card},a)]},"R"+a))})]})]})})}var X=(0,s.memo)(J);function $(e){var t="SectionCardLight",a=e.cdata.cardBackgroundColor;return e.cdata.card.elements.cardDisplayOptionsTheme.value.length>0&&"Dark"==e.cdata.card.elements.cardDisplayOptionsTheme.value[0].name&&(t="SectionCardDark","#FFFFFF"==a&&(a="#777777")),"#FFFFFF"==a&&(a="#CCCCCC"),(0,i.jsxs)("div",{className:"SectionCard_FBH TopicTimelineSpacer Card "+t,"data-cardtype":"SectionCard_FBH","data-codename":e.cdata.cardType,children:[(0,i.jsx)("div",{className:"CardTopEdge"}),(0,i.jsx)("div",{className:"SectionCard_FBHBack",style:{background:a},children:(0,i.jsx)(j.Z,{itemCN:e.cdata.card.elements.cardDisplayOptionsHeroItem.value[0],isCanvas:!1})}),(0,i.jsx)(u.Z,{href:e.cdata.cardSource.system.codename,children:(0,i.jsxs)("div",{className:"SectionCard_FBHInner",children:[(0,i.jsx)("div",{className:"SectionCard_FBHTitle",dangerouslySetInnerHTML:{__html:e.cdata.cardTitle}}),(0,i.jsx)("div",{className:"SectionCard_FBHDesc GNDescCopy",dangerouslySetInnerHTML:{__html:e.cdata.cardSubtitle}}),(0,i.jsx)("div",{className:"SectionCard_FBHCTA",children:"Explore"})]})}),(0,i.jsx)("div",{className:"CardBottomEdge"})]})}var ee=(0,s.memo)($);function et(e){return e.cdata.card.elements.cardTargetsLightboxTargets.value[0],(0,s.useContext)(l.J),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"CampaignPodcastsHolder Card",children:(0,i.jsx)(f,{cdata:e.cdata})})})}var ea=(0,s.memo)(et);function ei(e){return(0,i.jsxs)("div",{className:"HybridHeader Card","data-cardtype":"HybridHeaderCard","data-codename":e.cdata.cardType,children:[(0,i.jsx)("div",{className:"HybridHeaderInner",children:(0,i.jsx)("div",{className:"HybridHeaderTitle",dangerouslySetInnerHTML:{__html:e.cdata.cardTitle}})}),(0,i.jsx)("div",{className:"CardBottomEdge"})]})}var es=(0,s.memo)(ei);function en(e){return(0,i.jsxs)("div",{className:"BannerCard_LG Card","data-cardtype":"BannerCard_LG","data-codename":e.cdata.cardType,style:{background:e.cdata.cardBackgroundColor},children:[(0,i.jsx)("div",{className:"CardTopEdge"}),(0,i.jsxs)("div",{className:"BannerCard_Inner",children:[(0,i.jsxs)("div",{className:"BannerCard_LGLeft",children:[(0,i.jsx)("div",{className:"BannerCard_LGTitle",dangerouslySetInnerHTML:{__html:e.cdata.cardTitle}}),(0,i.jsx)("div",{className:"BannerCard_LGDesc GNDescCopy",dangerouslySetInnerHTML:{__html:e.cdata.cardSubtitle}}),(0,i.jsx)("div",{className:"BannerCard_LGSource",dangerouslySetInnerHTML:{__html:e.cdata.cardEyebrow}})]}),(0,i.jsx)("div",{className:"BannerCard_LGRight",children:(0,i.jsx)(j.Z,{itemCN:e.cdata.cardBackgroundImageSet,isCanvas:!1})})]}),(0,i.jsx)("div",{className:"CardBottomEdge"})]})}var er=(0,s.memo)(en);function eo(e){var t=!1;e.cdata.cardBackgroundImage.includes(".mp4")&&(t=!0);var a=e.cdata.cardSource.system.name.toLowerCase();return(0,i.jsx)("div",{className:"MenuCard Card","data-cardtype":"MenuCard","data-codename":e.cdata.cardType,children:(0,i.jsxs)(u.Z,{href:a,children:[(0,i.jsxs)("div",{className:"MenuCard-text-container ",children:[(0,i.jsxs)("div",{className:"MenuCard-title-container",children:[(0,i.jsxs)("div",{className:"MenuCard-eyebrow-container",children:[(0,i.jsx)("div",{className:"MenuCard-long-read",style:{display:"none"}}),(0,i.jsx)("div",{className:"MenuCard-eyebrow",dangerouslySetInnerHTML:{__html:e.cdata.cardEyebrow}})]}),(0,i.jsx)("div",{className:"MenuCard-article-title",dangerouslySetInnerHTML:{__html:e.cdata.cardTitle}})]}),(0,i.jsx)("div",{className:"MenuCard-subtitle-container",dangerouslySetInnerHTML:{__html:e.cdata.cardSubtitle}})]}),(0,i.jsxs)("div",{className:"MenuCard-image-container",children:[(0,i.jsx)("div",{className:"MenuCard-background-color",style:{background:e.cdata.cardBackgroundColor}}),(0,i.jsxs)("div",{className:"MenuCard-assets",children:[(0,i.jsx)("div",{className:"MenuCard-image DesktopOnly",style:{backgroundImage:"url("+e.cdata.cardBackgroundImage+"?w=341&h=213&fit=clip&fm=jpg&q=75)",display:t?"none":"flex"}}),(0,i.jsx)("div",{className:"MenuCard-video-holder",style:{display:t?"flex":"none"},children:(0,i.jsxs)("video",{loop:!0,autoPlay:!0,muted:!0,playsInline:!0,className:"MenuCard-video",children:[(0,i.jsx)("source",{src:(0,k.t6)(e.cdata.cardBackgroundImage),type:"video/mp4"}),(0,i.jsx)("p",{children:"Your browser doesn't support HTML video."})]})})]}),(0,i.jsx)("div",{className:"MenuCard-book-podcast-container"})]})]})})}var el=(0,s.memo)(eo);function ec(e){(0,s.useEffect)(()=>{setTimeout(()=>{var t=document.getElementById(e.cdata.card.system.codename+"dv");if(t){t.setAttribute("src",e.cdata.cardBackgroundImage);var a=t.querySelector("source");a&&a.setAttribute("src",e.cdata.cardBackgroundImage),t.play()}var i=document.getElementById(e.cdata.card.system.codename+"tv");if(i){i.setAttribute("src",e.cdata.cardBackgroundImageTablet);var s=i.querySelector("source");s&&s.setAttribute("src",e.cdata.cardBackgroundImageTablet),i.play()}var n=document.getElementById(e.cdata.card.system.codename+"mv");if(n){n.setAttribute("src",e.cdata.cardBackgroundImageMobile);var r=n.querySelector("source");r&&r.setAttribute("src",e.cdata.cardBackgroundImageMobile),n.play()}},50)},[e.cdata.card.system.codename,e.cdata.cardBackgroundImage,e.cdata.cardBackgroundImageMobile,e.cdata.cardBackgroundImageTablet]);var t="showTopicHeaderImage";(""==e.cdata.cardBackgroundImage||e.cdata.card.elements.cardDisplayOptionsHideBackgroundItem.value.length>0)&&(t="");var a="topicHeaderThemeDefault";e.cdata.card.elements.cardDisplayOptionsTheme.value.length>0&&(a="topicHeaderTheme"+e.cdata.card.elements.cardDisplayOptionsTheme.value[0].name),""==e.cdata.card.elements.backgroundSnippetHexColor.value&&("topicHeaderThemeDark"==a&&(e.cdata.cardBackgroundColor="#212429"),"topicHeaderThemeLight"==a&&(e.cdata.cardBackgroundColor="#F0F1F4"));var n=!1;return e.cdata.cardBackgroundImage.includes(".mp4")&&(n=!0),(0,i.jsxs)("div",{className:"topicHeader TopicTimelineSpacer Card "+t+" "+a,"data-cardtype":"TopicHeaderCard","data-codename":e.cdata.cardType,style:{background:e.cdata.cardBackgroundColor},children:[(0,i.jsxs)("div",{className:"topicHeaderAssets",style:{display:n?"none":"flex"},children:[(0,i.jsx)("div",{className:"topicHeaderImage DesktopOnly",style:{background:"url("+e.cdata.cardBackgroundImage+"?w=1441&h=810&fit=clip&fm=jpg&q=75) 50% / cover no-repeat"}}),(0,i.jsx)("div",{className:"topicHeaderImage TabletOnly",style:{background:"url("+e.cdata.cardBackgroundImageTablet+"?w=769&h=433&fit=clip&fm=jpg&q=75) 50% / cover no-repeat"}}),(0,i.jsx)("div",{className:"topicHeaderImage MobileOnly",style:{background:"url("+e.cdata.cardBackgroundImageMobile+"?w=390&h=400&fit=clip&fm=jpg&q=75) 50% / cover no-repeat"}})]}),(0,i.jsxs)("div",{className:"topicHeaderVideoLoop",style:{display:n?"flex":"none"},children:[(0,i.jsxs)("video",{id:e.cdata.card.system.codename+"dv",className:"topicHeaderVideoAsset DesktopOnly",height:"266",width:"1440",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:e.cdata.cardBackgroundImage}),"Your browser does not support the video tag..."]}),(0,i.jsxs)("video",{id:e.cdata.card.system.codename+"tv",className:"topicHeaderVideoAsset TabletOnly",height:"312",width:"962",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:e.cdata.cardBackgroundImageTablet}),"Your browser does not support the video tag..."]}),(0,i.jsxs)("video",{id:e.cdata.card.system.codename+"mv",className:"topicHeaderVideoAsset MobileOnly",height:"390",width:"400",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:e.cdata.cardBackgroundImageMobile}),"Your browser does not support the video tag..."]})]}),(0,i.jsx)("div",{className:"topicHeaderInner",children:(0,i.jsx)("div",{className:"topicHeaderTitle",dangerouslySetInnerHTML:{__html:e.cdata.cardTitle}})}),(0,i.jsx)("div",{className:"topicHeaderSeparator"})]})}var ed=(0,s.memo)(ec);function em(e){(0,s.useEffect)(()=>{setTimeout(()=>{var t=document.getElementById(e.cdata.card.system.codename+"dv");if(t){t.setAttribute("src",e.cdata.cardBackgroundImage);var a=t.querySelector("source");a&&a.setAttribute("src",e.cdata.cardBackgroundImage),t.play()}var i=document.getElementById(e.cdata.card.system.codename+"tv");if(i){i.setAttribute("src",e.cdata.cardBackgroundImageTablet);var s=i.querySelector("source");s&&s.setAttribute("src",e.cdata.cardBackgroundImageTablet),i.play()}var n=document.getElementById(e.cdata.card.system.codename+"mv");if(n){n.setAttribute("src",e.cdata.cardBackgroundImageMobile);var r=n.querySelector("source");r&&r.setAttribute("src",e.cdata.cardBackgroundImageMobile),n.play()}},50)},[e.cdata.card.system.codename,e.cdata.cardBackgroundImage,e.cdata.cardBackgroundImageMobile,e.cdata.cardBackgroundImageTablet]);var t="showTopicHeaderImage";(""==e.cdata.cardBackgroundImage||e.cdata.card.elements.cardDisplayOptionsHideBackgroundItem.value.length>0)&&(t="");var a=!1;e.cdata.cardBackgroundImage.includes(".mp4")&&(a=!0);var n="topicHeaderThemeDefault";return e.cdata.card.elements.cardDisplayOptionsTheme.value.length>0&&(n="topicHeaderTheme"+e.cdata.card.elements.cardDisplayOptionsTheme.value[0].name),""==e.cdata.card.elements.backgroundSnippetHexColor.value&&("topicHeaderThemeDark"==n&&(e.cdata.cardBackgroundColor="#212429"),"topicHeaderThemeLight"==n&&(e.cdata.cardBackgroundColor="#F0F1F4")),(0,i.jsxs)("div",{className:"topicHeaderExpanded TopicTimelineSpacer Card "+t+" "+n,"data-cardtype":"TopicHeaderCardExpanded","data-codename":e.cdata.cardType,style:{background:e.cdata.cardBackgroundColor},children:[(0,i.jsxs)("div",{className:"topicHeaderAssetsExpanded",style:{display:a?"none":"flex"},children:[(0,i.jsx)("div",{className:"topicHeaderImageExpanded DesktopOnly",style:{background:"url("+e.cdata.cardBackgroundImage+"?w=1441&h=810&fit=clip&fm=jpg&q=75) 50% / cover no-repeat"}}),(0,i.jsx)("div",{className:"topicHeaderImageExpanded TabletOnly",style:{background:"url("+e.cdata.cardBackgroundImageTablet+"?w=769&h=433&fit=clip&fm=jpg&q=75) 50% / cover no-repeat"}}),(0,i.jsx)("div",{className:"topicHeaderImageExpanded MobileOnly",style:{background:"url("+e.cdata.cardBackgroundImageMobile+"?w=390&h=400&fit=clip&fm=jpg&q=75) 50% / cover no-repeat"}})]}),(0,i.jsxs)("div",{className:"topicHeaderVideoLoop",style:{display:a?"flex":"none"},children:[(0,i.jsxs)("video",{id:e.cdata.card.system.codename+"dv",className:"topicHeaderVideoAsset DesktopOnly",height:"720",width:"1440",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:e.cdata.cardBackgroundImage}),"Your browser does not support the video tag..."]}),(0,i.jsxs)("video",{id:e.cdata.card.system.codename+"tv",className:"topicHeaderVideoAsset TabletOnly",height:"433",width:"769",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:e.cdata.cardBackgroundImageTablet}),"Your browser does not support the video tag..."]}),(0,i.jsxs)("video",{id:e.cdata.card.system.codename+"mv",className:"topicHeaderVideoAsset MobileOnly",height:"272",width:"482",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:e.cdata.cardBackgroundImageMobile}),"Your browser does not support the video tag..."]})]}),(0,i.jsx)("div",{className:"topicHeaderInnerExpanded",children:(0,i.jsx)("div",{className:"topicHeaderTitleExpanded",dangerouslySetInnerHTML:{__html:e.cdata.cardTitle}})}),(0,i.jsx)("div",{className:"topicHeaderSeparator"})]})}var eu=(0,s.memo)(em);function eh(e){var t="topicHeaderThemeDefault";return e.cdata.card.elements.cardDisplayOptionsTheme.value.length>0&&(t="topicHeaderTheme"+e.cdata.card.elements.cardDisplayOptionsTheme.value[0].name),""==e.cdata.card.elements.backgroundSnippetHexColor.value&&("topicHeaderThemeDark"==t&&(e.cdata.cardBackgroundColor="#212429"),"topicHeaderThemeLight"==t&&(e.cdata.cardBackgroundColor="#F0F1F4")),(0,i.jsx)("div",{className:"topicHeaderTextOnly TopicTimelineSpacer Card "+t,"data-cardtype":"TopicHeaderCardTextOnly","data-codename":e.cdata.cardType,style:{background:e.cdata.cardBackgroundColor},children:(0,i.jsx)("div",{className:"topicHeaderInner",children:(0,i.jsx)("div",{className:"topicHeaderTitle",dangerouslySetInnerHTML:{__html:e.cdata.cardTitle}})})})}var eg=(0,s.memo)(eh),ep=a(9868);function e_(e){let t=e.cdata.card.elements.cardTargetsLightboxTargets.value[0];(0,s.useContext)(l.J);var a="SANVThemeLight";e.cdata.card.elements.cardDisplayOptionsTheme.value.length>0&&"Dark"==e.cdata.card.elements.cardDisplayOptionsTheme.value[0].name&&(a="SANVThemeDark");var n="SANV_Whole";e.cdata.card.elements.cardDisplayOptionsVariant.value.length>0&&"Right image"==e.cdata.card.elements.cardDisplayOptionsVariant.value[0].name&&(n="SANV_Split");let r=(0,ep.Q)(e.cdata.cardSource.elements.kloudinary.value);r.ratio;var o=(0,k.uL)(r.width,r.height),c="SANV_Medium";if(e.cdata.card.elements.cardDisplayOptionsSize.value.length>0)switch(e.cdata.card.elements.cardDisplayOptionsSize.value[0].name){case"Full width":var c="SANV_FW TopicTimelineSpacer";break;case"two column card":var c="SANV_TC"}var d="",m="",g="";let p=r.poster.split("/");p.length>1&&(d="https://videos.gatesnotes.com/image/upload/c_scale,w_"+r.width+",ar_"+o+"/q_auto/video/"+p[p.length-1],m="https://videos.gatesnotes.com/image/upload/c_scale,w_"+r.width+",ar_"+o+"/q_auto/video/"+p[p.length-1],g="https://videos.gatesnotes.com/image/upload/c_scale,w_"+r.width+",ar_"+o+"/q_auto/video/"+p[p.length-1]);let _=e.cdata.cardSource;var v="",f="",x="",b="Fallback image",C="Fallback image",S="Fallback image",I="",T="",N="",E="",w="",y="";_.elements.posterImage.value.length>0&&(v=(0,k.t6)(_.elements.posterImage.value[0].url),b=_.elements.posterImage.value[0].description,_.elements.posterImage.value[0].url.includes(".mp4")&&(I="video85",E=(0,k.t6)(_.elements.posterImage.value[0].url),v=(0,k.t6)(_.elements.posterImage.value[1].url),b=_.elements.posterImage.value[1].description)),_.elements.posterImagePortrait.value.length>0&&(f=(0,k.t6)(_.elements.posterImagePortrait.value[0].url),C=_.elements.posterImagePortrait.value[0].description,_.elements.posterImagePortrait.value[0].url.includes(".mp4")&&(T="video58",w=(0,k.t6)(_.elements.posterImagePortrait.value[0].url),f=(0,k.t6)(_.elements.posterImagePortrait.value[1].url),C=_.elements.posterImagePortrait.value[1].description)),_.elements.posterImageSquare.value.length>0&&(x=(0,k.t6)(_.elements.posterImageSquare.value[0].url),S=_.elements.posterImageSquare.value[0].description,_.elements.posterImageSquare.value[0].url.includes(".mp4")&&(N="video11",y=(0,k.t6)(_.elements.posterImageSquare.value[0].url),x=(0,k.t6)(_.elements.posterImageSquare.value[1].url),S=_.elements.posterImageSquare.value[1].description)),""==v&&(v=d),""==f&&(f=m),""==x&&(x=g),v+="?w=868&fit=clip&fm=jpg&q=75",f+="?w=380&fit=clip&fm=jpg&q=75",x+="?w=528&fit=clip&fm=jpg&q=75";var A=!0;return""==e.cdata.cardTitle&&(A=!1),(0,i.jsx)("div",{className:"StandAloneNewVideoCard Card "+c+" "+a+" "+n+" "+I+" "+T+" "+N,children:(0,i.jsxs)(u.Z,{href:h.l3+"/"+t,className:"GNLink",children:[(0,i.jsx)("img",{className:"SAVC_Img SAVC_Img_85",src:v,alt:b}),(0,i.jsxs)("video",{className:"SAVC_Vid_85",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:E,type:"video/mp4"}),(0,i.jsx)("p",{children:"Your browser doesn't support HTML video."})]}),(0,i.jsx)("img",{className:"SAVC_Img SAVC_Img_58",src:f,alt:C}),(0,i.jsx)("img",{className:"SAVC_Img SAVC_Img_58_Mask",src:f,alt:C}),(0,i.jsxs)("video",{className:"SAVC_Vid_58",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:w,type:"video/mp4"}),(0,i.jsx)("p",{children:"Your browser doesn't support HTML video."})]}),(0,i.jsx)("img",{className:"SAVC_Img SAVC_Img_11",src:x,alt:S}),(0,i.jsx)("img",{className:"SAVC_Img SAVC_Img_11_Mask",src:x,alt:S}),(0,i.jsxs)("video",{className:"SAVC_Vid_11",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:y,type:"video/mp4"}),(0,i.jsx)("p",{children:"Your browser doesn't support HTML video."})]}),(0,i.jsx)("div",{style:{display:A?"flex":"none"},className:"StandAloneNewVideoCard_LockupTop",children:(0,i.jsx)("div",{className:"StandAloneNewVideoCard_Title",dangerouslySetInnerHTML:{__html:e.cdata.cardTitle}})}),(0,i.jsx)("div",{className:"StandAloneNewVideoCard_LockupBottom",children:(0,i.jsx)("div",{className:"StandAloneNewVideoCard_ImgP",children:(0,i.jsx)("div",{className:"ImgPlayButton",children:(0,i.jsx)("img",{className:"gnIcon",src:"/play_circle.svg",alt:"Play button"})})})})]})})}var ev=(0,s.memo)(e_),ef=a(9734);function ex(e){var t=e.cdata.cardSource,a="SANIThemeLight";e.cdata.card.elements.cardDisplayOptionsTheme.value.length>0&&"Dark"==e.cdata.card.elements.cardDisplayOptionsTheme.value[0].name&&(a="SANIThemeDark");var s="SANI_Whole";e.cdata.card.elements.cardDisplayOptionsVariant.value.length>0&&"Right image"==e.cdata.card.elements.cardDisplayOptionsVariant.value[0].name&&(s="SANI_Split");var n="SANI_Medium";if(e.cdata.card.elements.cardDisplayOptionsSize.value.length>0)switch(e.cdata.card.elements.cardDisplayOptionsSize.value[0].name){case"Full width":n="SANI_FW TopicTimelineSpacer";break;case"two column card":n="SANI_TC"}var r="";t.elements.itemImageSet.value.length>0&&(r=t.elements.itemImageSet.value[0]);let{data:o}=(0,ef.ZP)(r);if(!o)return(0,i.jsx)(i.Fragment,{});let l=o;var c=(0,k.t6)(l.elements.desktopImage.value[0].url),d=l.elements.desktopImage.value[0].description;l.elements.tabletImage.value.length>0&&(c=(0,k.t6)(l.elements.tabletImage.value[0].url),d=l.elements.tabletImage.value[0].description);var m=(0,k.t6)(l.elements.desktopImage.value[0].url),u=l.elements.desktopImage.value[0].description;l.elements.mobileImage.value.length>0&&(m=(0,k.t6)(l.elements.mobileImage.value[0].url),u=l.elements.mobileImage.value[0].description);var h=!0;return"<p><br></p>"==t.elements.caption.value&&(h=!1),(0,i.jsxs)("div",{className:"StandAloneNewImage Card "+n+" "+a+" "+s,children:[(0,i.jsx)("img",{className:"SANI_Image SANI85",src:(0,k.t6)(l.elements.desktopImage.value[0].url),alt:l.elements.desktopImage.value[0].description}),(0,i.jsx)("img",{className:"SANI_Image SANI58",src:c,alt:d}),(0,i.jsx)("img",{className:"SANI_Image SANI58_Mask",src:c,alt:d}),(0,i.jsx)("img",{className:"SANI_Image SANI11",src:m,alt:u}),(0,i.jsx)("img",{className:"SANI_Image SANI11_Mask",src:m,alt:u}),(0,i.jsx)("div",{style:{display:h?"flex":"none"},className:"StandAloneNewImage_LockupCopy",children:(0,i.jsx)("div",{className:"StandAloneNewImage_Desc GNDescCopy",dangerouslySetInnerHTML:{__html:t.elements.caption.value}})})]})}var eb=(0,s.memo)(ex);function eC(e){let t=e.cdata.card.elements.cardTargetsLightboxTargets.value[0];(0,s.useContext)(l.J);var a="";return e.cdata.cardSource.elements.posterImage.value.length>0&&(a=(0,k.t6)(e.cdata.cardSource.elements.posterImage.value[0].url)),(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"TrailerHolderTC Card",style:{background:e.cdata.cardBackgroundColor},children:[(0,i.jsxs)("div",{className:"TrailerContent",children:[(0,i.jsx)("div",{className:"TrailerTitle",dangerouslySetInnerHTML:{__html:e.cdata.cardTitle}}),(0,i.jsx)("div",{className:"TrailerDescription",dangerouslySetInnerHTML:{__html:e.cdata.cardSubtitle}})]}),(0,i.jsxs)(u.Z,{href:h.l3+"/"+t,className:"TrailerAssets GNLink",children:[(0,i.jsx)("div",{className:"TrailerAsset",style:{backgroundImage:"url("+a+")"}}),(0,i.jsx)("div",{className:"TrailerIcons",children:(0,i.jsx)("div",{className:"TrailerIcon",children:(0,i.jsx)("img",{className:"TrailerPlayIcon",src:"/play_circle.svg",alt:"Play button"})})})]})]})})}var eS=(0,s.memo)(eC);function eI(e){switch(e.cdata.cardType){case n.card_types.terms.memo_card.codename:return(0,i.jsx)(_,{cdata:e.cdata});case n.card_types.terms.header_card.codename:if(e.cdata.cardSource.system){if("hybrid_header"===e.cdata.cardSource.system.type)return(0,i.jsx)(es,{cdata:e.cdata});switch(e.cdata.cardSize){case"Expanded":return(0,i.jsx)(eu,{cdata:e.cdata});case"Text only":return(0,i.jsx)(eg,{cdata:e.cdata});default:return(0,i.jsx)(ed,{cdata:e.cdata})}}else{if(0==e.cdata.card.elements.cardDisplayOptionsType.value.length)return(0,i.jsx)(i.Fragment,{children:"Set Type to Section Topic or Book-topic"});if("Section"==e.cdata.card.elements.cardDisplayOptionsType.value[0].name)switch(e.cdata.cardSize){case"Expanded":return(0,i.jsx)(eu,{cdata:e.cdata});case"Text only":return(0,i.jsx)(eg,{cdata:e.cdata});default:return(0,i.jsx)(ed,{cdata:e.cdata})}else if("Topic"!=e.cdata.card.elements.cardDisplayOptionsType.value[0].name&&"Book-topic"!=e.cdata.card.elements.cardDisplayOptionsType.value[0].name)return(0,i.jsx)(i.Fragment,{children:"Set Type to Section Topic or Book-topic"});else switch(e.cdata.cardSize){case"Expanded":return(0,i.jsx)(eu,{cdata:e.cdata});case"Text only":return(0,i.jsx)(eg,{cdata:e.cdata});default:return(0,i.jsx)(ed,{cdata:e.cdata})}}break;case n.card_types.terms.banner_card.codename:switch(e.cdata.cardSize){case"Full bleed hero":case"Full bleed":case"Full width":case"Medium card":case"Article listing":case"Default":return(0,i.jsx)(Q,{cdata:e.cdata});case"Large card":return(0,i.jsx)(er,{cdata:e.cdata});default:return(0,i.jsx)(i.Fragment,{})}break;case n.card_types.terms.section_card.codename:switch(e.cdata.cardSize){case"Full bleed hero":return(0,i.jsx)(ee,{cdata:e.cdata});case"Full bleed":return(0,i.jsx)(O,{cdata:e.cdata});case"Full width":return(0,i.jsx)(R,{cdata:e.cdata});default:return(0,i.jsx)(D,{cdata:e.cdata})}break;case n.card_types.terms.topic_card.codename:switch(e.cdata.cardSize){case"Full bleed":case"Full width":return(0,i.jsx)(G,{cdata:e.cdata});default:return(0,i.jsx)(P,{cdata:e.cdata})}break;case n.card_types.terms.standalone_video_card.codename:return(0,i.jsx)(ev,{cdata:e.cdata});case n.card_types.terms.standalone_image_card.codename:return(0,i.jsx)(eb,{cdata:e.cdata});case n.card_types.terms.quote_card.codename:return(0,i.jsx)(Y,{cdata:e.cdata});case n.card_types.terms.trailer_card.codename:if("two column card"===e.cdata.cardSize)return(0,i.jsx)(eS,{cdata:e.cdata});return(0,i.jsx)(A,{cdata:e.cdata});case n.card_types.terms.campaign_articles_card.codename:return(0,i.jsx)(X,{cdata:e.cdata});case n.card_types.terms.campaign_podcasts_card.codename:return(0,i.jsx)(ea,{cdata:e.cdata});case n.card_types.terms.menu_card.codename:return(0,i.jsx)(el,{cdata:e.cdata});default:case n.card_types.terms.podcast_card.codename:case n.card_types.terms.book_card.codename:case n.card_types.terms.long_read_card.codename:case n.card_types.terms.standard_article_card.codename:switch(e.cdata.cardSize){case"Full bleed hero":return(0,i.jsx)(V,{cdata:e.cdata});case"Full bleed":return(0,i.jsx)(f,{cdata:e.cdata});case"Full width":case"Default":return(0,i.jsx)(b,{cdata:e.cdata});case"Large card":return(0,i.jsx)(S,{cdata:e.cdata});case"Medium card":return(0,i.jsx)(T,{cdata:e.cdata});case"Article listing":return(0,i.jsx)(w,{cdata:e.cdata});case"two column card":return(0,i.jsx)(K,{cdata:e.cdata});default:return(0,i.jsx)(i.Fragment,{children:e.cdata.cardSize+": size not coded"})}}}var eT=(0,s.memo)(eI)},2199:function(e,t,a){"use strict";a.d(t,{U:function(){return u}});var i=a(5893),s=a(7294),n=a(5675),r=a.n(n),o=a(521),l=a(1590),c=a(1959),d=a(8340),m=a(957);function u(){let e=document.getElementById("CommentsHolder"),t=document.getElementById("post-comment-input-text-area");e&&(e.classList.remove("SubmitComment"),""!=t.value&&e.classList.add("SubmitComment"))}function h(e){if(!e.CommMaster||!e.CommNew||!e.CommOff||!e.CommMaster.depois||0==e.CommNew.length||0==e.CommOff.length)return(0,i.jsx)(i.Fragment,{});let t=document.getElementById("post-comment-feedback");var a,s,n,u="";function g(){let e=document.getElementById("CommentsHolder");document.getElementById("post-comment-input-text-area"),e&&e.classList.contains("SubmitComment")&&(e.classList.remove("SubmitComment"),e.classList.contains("ReplyComment")?et("reply",e.getAttribute("data-postg"),e.getAttribute("data-postg"),!1,e.getAttribute("data-posta")):et())}setInterval(()=>{g()},100);var p="",_=!1;function v(){return(0,l.Gx)(),{c:(0,l.Gx)(),d:(0,l.Gx)(),n:(0,o.me)("FullName"),g:localStorage.getItem("gniUsr"),m:p,t:K("state","new")}}function f(e){null!=e.gui&&null!=e.gui.g&&null!=e.gui.ui&&null!=e.g&&""!=e.gui.g&&""!=e.gui.ui&&""!=e.g&&en(e.g,e.gui.g,e.gui.ui)}function x(t){if(null!=t.ui&&(t.ui.bozc||t.ui.delc)){var a=es(e=>e.g===t.g,e.CommData.posts);a.ui=t.ui,t.a==$||a.r.length}}function b(t){return!!e.CommMaster.depois.includes(t)}function C(t){if(null!=t.b&&null!=t.g&&""!=t.b&&""!=t.g){var a=es(e=>e.g===t.g,e.CommData.posts);a.b=t.b,(b(a.a)||W(a))&&a.a==$&&("deleted"==a.s||"banned"==a.s||a.ui.delc)}}function S(e){var t=0;return e.guil&&e.guil.forEach(e=>{e.ui.interactions&&e.ui.interactions.forEach(e=>{let a=e;a.l&&(t+=1)})}),t}function I(e){0==S(e)||V(e,$,"l")}function T(t){I(es(e=>e.g===t.g,e.CommData.posts))}function N(e){null==e||void 0==e||V(e,$,"f")}function E(t){N(es(e=>e.g===t.g,e.CommData.posts))}function w(e){f(e),x(e),C(e),T(e),E(e)}var k="www.gatesnotes.com";function y(e,t,a){if(window.location.host==k){if(null==e.t);else for(var i=0;i<e.t.length;i++)if("site"==e.t[i].k&&e.t[i].v!=k)return}var s=e.a,n=!0;if(n=!b(s)||s==$||null!=e.r){null==e.guil&&(e.guil=[]),null==e.ui&&(e.ui=[]),null==e.r&&(e.r=[]),s==$&&0==e.guil.length&&e.r.length,Date.parse(e.d.replace("Z","")),b(s)||W(e);for(var r=e.r,o="",i=0;i<r.length;i++)0==i?o+=r[i].g:o+=","+r[i].g;r.some(e=>"active"===e.s),I(e),e.s,E(e);for(var i=0;i<r.length;i++)y(r[i],e.g)}}async function A(a,i,s,n,r){let o=await (0,c.w)(a);o?(null===m.H||void 0===m.H||m.H.trackEvent({name:"comments: return",properties:{postJSON:JSON.stringify(o)}}),ee=!1,null!=o&&(-1==o.error?t&&(t.innerHTML="Something went wrong, please try again later:1"):0==o.error?(r.g=o.guid,s?w(n):(e.CommData.posts.push(r),null==i||""==i?y(r,"",!0):y(r,i,!0)),(0,d.EZ)()):t&&(t.innerHTML="Something went wrong, please try again later:2")),t&&(t.innerHTML="")):(ee=!1,t&&(t.innerHTML="Something went wrong, please try again later:3"))}async function j(e){await (0,c.hU)(e)}async function L(){j(v())}async function O(e){let t=await (0,c.vs)(e);""!=t&&L()}function B(e){var t=new Date,a=Math.floor(t.getTimezoneOffset()/60);t.setHours(t.getHours()+a);var i=(t.getTime()-e)/1e3;if(i<60){var s=Math.floor(i);return 1==s?s+" second ago":s+" seconds ago"}if(i<3600){var s=Math.floor(i/60);return 1==s?s+" minute ago":s+" minutes ago"}if(i<=86400){var s=Math.floor(i/3600);return 1==s?s+" hour ago":s+" hours ago"}if(i<=5184e3){var s=Math.floor(i/86400);return 1==s?s+" day ago":s+" days ago"}if(i<=31536e3){var s=Math.floor(i/2592e3);return 1==s?s+" month ago":s+" months ago"}var s=Math.floor(i/31536e3);return 1==s?s+" year ago":s+" years ago"}var R=(a=e.CommPost.a,s="",e.CommData.users.forEach(e=>{a==e.g&&(s=e.n)}),s),M=B(Date.parse(e.CommPost.d.replace("Z",""))),D=!1;e.CommPost.r&&e.CommPost.r.length>0&&(D=!0);var H="";e.CommPost.ui&&e.CommPost.ui.length>0&&e.CommPost.ui.forEach(e=>{if(e.bozc||e.delc)return H=" bozc",(0,i.jsx)(i.Fragment,{})});var F="";if(P(e.CommPost.a))return F=" authorBanOrBozo",(0,i.jsx)(i.Fragment,{});function P(t){var a=!1;return e.CommMaster.depois&&(e.CommMaster.depois.forEach(e=>{e==t&&(a=!0)}),e.CommMaster.bans.forEach(e=>{e==t&&(a=!0)})),e.CommNew&&e.CommNew.forEach(e=>{e==t&&(a=!0)}),e.CommOff&&e.CommOff.forEach(e=>{e==t&&(a=!0)}),a}function W(e){return"unapproved"==e.s||"deleted"==e.s||"banned"==e.s}if(W(e.CommPost))return(0,i.jsx)(i.Fragment,{});var G=0,U="";function V(e,t,a){var i=!1;return e.guil&&e.guil.forEach(e=>{e.g&&e.g==t&&e.ui.interactions&&e.ui.interactions.forEach(e=>{let t=e;t[a]&&(i=t[a])})}),i}function Z(t){_=!0;var a=t;let i=es(e=>e.g===t,e.CommData.posts);var s=i.a,n=i.p;V(i,$,"l")?et("like",a,n,_,s,{l:!1}):et("like",a,n,_,s,{l:!0})}function Y(t){let a=document.querySelector(".post-comment-leave");if(a){a.classList.add("Replying");let i=es(e=>e.g===t.a,e.CommData.users);i?a.innerHTML="Replying to comment from "+i.n:a.innerHTML="Replying to comment from "+t.a;let s=document.getElementById("CommentsHolder");s&&(s.setAttribute("data-postg",t.g),s.setAttribute("data-postp",t.p),s.setAttribute("data-posta",t.a),s.classList.add("ReplyComment"))}}function q(t){_=!0;var a=t;let i=es(e=>e.g===t,e.CommData.posts);var s=i.a,n=i.p;V(i,$,"f")?et("flag",a,n,_,s,{f:!1}):et("flag",a,n,_,s,{f:!0})}function K(e,t){var a=[];return a.push({k:e,v:t}),a}function z(e){var t="";let a=document.querySelector(".post-comment-input-text-area");return a&&(t=a.value),t}function Q(){return e.CommData.article}function J(e){var t=e.replace(/\s/g,"");return"<p></p>"==t||"<p><br></p>"==t||""==t}function X(t){return void 0!=es(e=>e.b===t,e.CommData)}null===(n=e.CommPost.guil)||void 0===n||n.forEach(e=>{if(e.ui){var t;null===(t=e.ui.interactions)||void 0===t||t.forEach(t=>{t.l&&(G+=1,U="hasLikes",e.g==localStorage.getItem("gniUsr")&&(U="hasUserLikes"))})}});var $=localStorage.getItem("gniUsr"),ee=!1;function et(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"new",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5?arguments[5]:void 0;var l=a;if(!ee){if(ee=!0,e.CommMaster.bans.includes(r)||e.CommMaster.bans.includes($)){t&&(t.innerHTML="Something went wrong, please try again later:4");return}var c=Q(),d=ei($);if((""==d.g||null==d.g||"null"==d.g)&&(d.g=$),""==d.g||null==d.g||"null"==d.g){t&&(t.innerHTML="Something went wrong, please try again later:5");return}var h=ea(a,i,s,n),g=er(a,n,$,i,r,o);if("edit"==a||"flag"==a||"like"==a){if("edit"==a){if(!g.b)return;if(J(g.b)){t&&(t.innerHTML="Please fill in a comment to post");return}l+=":"+g.b}var p=eo(c,null,g,d)}else if("reply"==a){if(J(h.b)){t&&(t.innerHTML="Please fill in a comment to post");return}if(X(h.b)){t&&(t.innerHTML="That looks to be a duplicate post");return}l+=":"+h.b,p=eo(c,h,g,d)}else{if(J(h.b)){t&&(t.innerHTML="Please fill in a comment to post");return}if(X(h.b)){t&&(t.innerHTML="That looks to be a duplicate post");return}l+=":"+h.b,p=eo(c,h,null,d)}t&&(t.innerHTML=""),""!=u&&O(localStorage.getItem("gniUsr")),A(p,s,n,g,h),null===m.H||void 0===m.H||m.H.trackEvent({name:"comments: post",properties:{gncs:JSON.stringify(p)}})}}function ea(e,t,a,i){var s=(0,l.Gx)();null==t&&(t="");var n=s,t=t,a=a,r=K("site",window.location.host),o={d:n,a:localStorage.getItem("gniUsr"),g:t,b:z(e),r:null,p:a,s:null,guil:null,ui:null,t:r};return"reply"==e&&(o.g=""),o}function ei(t){var a=(0,l.Gx)(),i=e.CommData.users.find(e=>(0,l.l4)(e.g)===(0,l.l4)(t));return null==i&&(i={g:t,d:a,u:"GNI "+t,n:(0,o.me)("FullName"),ui:null,t:null}),i}let es=(e,t)=>{if(Object(t)===t){if(!0===e(t))return t;for(let[a,i]of Object.entries(t)){let s=es(e,i);if(void 0!==s)return s}}};function en(t,a,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"transfer";var n=es(e=>e.g===t,e.CommData.posts),r=!1,o=0;for(let l=0;l<n.guil.length;l++)n.guil[l].g==a&&(r=!0,o=l);if(r){if("transfer"==s&&(n.guil[o].ui=i),"like"==s){if(null==n.guil[o].ui.interactions||void 0==n.guil[o].ui.interactions)n.guil[o].ui.interactions=[],n.guil[o].ui.interactions.push(i);else{var c=n.guil[o].ui.interactions.find(e=>!0===e.l||!1===e.l);null==c?n.guil[o].ui.interactions.push(i):c.l=i.l}}if("flag"==s){if(null==n.guil[o].ui.interactions||void 0==n.guil[o].ui.interactions)n.guil[o].ui.interactions=[],n.guil[o].ui.interactions.push(i);else{var c=n.guil[o].ui.interactions.find(e=>!0===e.f||!1===e.f);null==c?n.guil[o].ui.interactions.push(i):c.f=i.f}}}else{let d={g:a,ui:{interactions:[]}};if(void 0==i.interactions||null==i.interactions)d.ui.interactions.push(i);else for(let m=0;m<i.interactions.length;m++)d.ui.interactions.push(i.interactions[m]);n.guil.push(d)}}function er(t,a,i,s,n,r){var o=(0,l.Gx)(),c=null,d=K("site",window.location.host);("flag"==t||"like"==t)&&(en(s,i,r,t),c=es(e=>e.g===s,e.CommData).guil.find(e=>e.g===i));var m={d:o,g:s,a:n,b:z(t),ui:r,gui:c,t:d},u={d:o,g:s,a:n,b:null,ui:null,gui:c,t:d};return("reply"==t&&(m.g=""),"flag"==t||"like"==t)?u:m}function eo(e,t,a,i){return{a:JSON.stringify(e),p:JSON.stringify(t),m:JSON.stringify(a),u:JSON.stringify(i)}}return(0,i.jsxs)("div",{id:e.CommPost.g,className:"posted-comment-holder"+H+F,"data-a":e.CommPost.a,"data-l":G,"data-parent":e.CommPost.p,children:[(0,i.jsxs)("div",{className:"posted-comments",children:[(0,i.jsxs)("div",{className:"posted-comments-user-and-date",children:[(0,i.jsx)("div",{className:"posted-comments-user-name",children:R}),(0,i.jsx)("div",{className:"posted-comments-time",children:M})]}),(0,i.jsx)("div",{className:"posted-comments-body",dangerouslySetInnerHTML:{__html:e.CommPost.b.replaceAll("<p><br></p>","")}}),(0,i.jsxs)("div",{className:"posted-comments-actions",children:[(0,i.jsxs)("div",{className:"posted-comments-like "+U,onClick:()=>Z(e.CommPost.g),children:[(0,i.jsx)(r(),{className:"primaryButtonIconImg posted-comments-like-off",width:24,height:24,src:"/icon_Like.svg",alt:"icon_Like"}),(0,i.jsx)(r(),{className:"primaryButtonIconImg posted-comments-like-on",width:24,height:24,src:"/icon_LikeFull.svg",alt:"icon_LikeFull"}),(0,i.jsx)("span",{className:"postlikesnum",children:G})]}),(0,i.jsx)("div",{className:"posted-comments-reply",onClick:()=>Y(e.CommPost),children:"Reply"}),(0,i.jsx)("div",{className:"posted-comments-flag",onClick:()=>q(e.CommPost.g),children:"Flag"})]})]}),(0,i.jsx)("div",{className:"posted-comments-container",style:{display:D?"flex":"none"},children:e.CommPost.r?e.CommPost.r.map(t=>(0,i.jsx)(h,{CommPost:t,CommData:e.CommData,CommMaster:e.CommMaster,CommNew:e.CommNew,CommOff:e.CommOff},t.g)):(0,i.jsx)(i.Fragment,{})})]})}t.Z=(0,s.memo)(h)},5051:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5893),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(7294),_js_commenting__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1959),_js_analytics__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8340),_KCommentPost__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(2199),_js_gni__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(521),_js_Helpers__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(1590);function KCommentsRender(props){let[comdata,setComData]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)({}),[commaster,setComMaster]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)({}),[commOff,setCommOff]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)([]),[commNew,setCommNew]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)([]),[commSingleUser,setCommSingleUser]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)({});var GNCupdatestries=0,GNCupdatestriesMax=4,GNC_ArticleComments_Version=0,GN_Com_currentReplyLevel=0,GN_Com_UserItemsUpdated=!1,GN_Com_currentUserStatusCheckedLocal="unknown",currentUserStatusChecked="unknown";function Update_GN_Com_UserInfoItems(){if(GN_Com_currentUserStatusCheckedLocal!=(0,_js_Helpers__WEBPACK_IMPORTED_MODULE_5__.Me)()&&comdata.article){GN_Com_currentUserStatusCheckedLocal=(0,_js_Helpers__WEBPACK_IMPORTED_MODULE_5__.Me)();var e=localStorage.getItem("gniUsr");"true"==GN_Com_currentUserStatusCheckedLocal&&e&&console.log(GN_Com_currentUserStatusCheckedLocal)}}async function getSingleUserJSON(e){let t=await (0,_js_commenting__WEBPACK_IMPORTED_MODULE_2__.fp)(e);if(""!=t){var a=comdata.users.find(t=>(0,_js_Helpers__WEBPACK_IMPORTED_MODULE_5__.l4)(t.g)===(0,_js_Helpers__WEBPACK_IMPORTED_MODULE_5__.l4)(e));if(null==a)(a=JSON.parse(t)).n=(0,_js_gni__WEBPACK_IMPORTED_MODULE_4__.me)("FullName"),comdata.users.push(a);else for(var i in comdata.users)if(comdata.users[i].g==e){comdata.users[i].n=(0,_js_gni__WEBPACK_IMPORTED_MODULE_4__.me)("FullName");break}}else{var s=makeGNUser(e);comdata.users.push(s)}}function makeGNUser(e){var t=(0,_js_Helpers__WEBPACK_IMPORTED_MODULE_5__.Gx)(),a=comdata.users.find(t=>(0,_js_Helpers__WEBPACK_IMPORTED_MODULE_5__.l4)(t.g)===(0,_js_Helpers__WEBPACK_IMPORTED_MODULE_5__.l4)(e));return null==a&&(a={g:e,d:t,u:"GNI "+e,n:(0,_js_gni__WEBPACK_IMPORTED_MODULE_4__.me)("FullName"),ui:null,t:null}),a}return(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{let CommentsHolderContent=document.getElementById("CommentsHolderContent");async function getCommentsJSON(e){console.log("artid:"+e);let t=await (0,_js_commenting__WEBPACK_IMPORTED_MODULE_2__.li)(e);if(""!=t)console.log("set full data"),CommentsHolderContent&&CommentsHolderContent.setAttribute("data-artid",props.artid),setComData(t),GetPrevVersions(GNC_ArticleComments_Version=t.article.v),setInterval(Update_GN_Com_UserInfoItems,3e3);else{console.log("set empty data"),setComData(t),GetPrevVersions(GNC_ArticleComments_Version);let a=document.getElementById("CommentsHolderContentHeaderCountNum");a&&(a.innerHTML="0")}}async function getMasterJSON(){let e=await (0,_js_commenting__WEBPACK_IMPORTED_MODULE_2__.CF)();""!=e&&setComMaster(e)}var commOff=[],commNew=[];function addUtoDepoisList(e,t){if("error"!=e){if("off"==t){for(var a=0;a<e.length;a++)commOff.push(e[a].replace(".json",""));setCommOff(commOff)}else{for(var a=0;a<e.length;a++)commNew.push(e[a].replace(".json",""));setCommNew(commNew)}}}async function GetModerateStateOffOrNew(e){let t=await (0,_js_commenting__WEBPACK_IMPORTED_MODULE_2__.qR)(e);""!=t&&addUtoDepoisList(t,e)}var comments=document.querySelector(".CommentsHolder"),overlay=document.querySelector(".overlay-background");if(""!=props.artid){if(CommentsHolderContent){if(CommentsHolderContent.getAttribute("data-artid")!=props.artid)localStorage.getItem("commentArticle")!=props.artid&&(localStorage.setItem("commentArticle",props.artid),console.log("New Comment Article"),getMasterJSON(),GetModerateStateOffOrNew("new"),GetModerateStateOffOrNew("off"),getCommentsJSON(props.artid));else{let dataC=comdata,data=dataC;console.log("RA:"+data);let CommentsHolderContentHeaderCountNum=document.getElementById("CommentsHolderContentHeaderCountNum");CommentsHolderContentHeaderCountNum&&(data.posts?CommentsHolderContentHeaderCountNum.innerHTML=data.posts.length:CommentsHolderContentHeaderCountNum.innerHTML="0")}}comments&&(comments.classList.add("CommentsHolder-on"),(0,_js_analytics__WEBPACK_IMPORTED_MODULE_6__.y3)()),overlay&&overlay.classList.add("overlay-background-on")}else comments&&comments.classList.remove("CommentsHolder-on"),overlay&&overlay.classList.remove("overlay-background-on");var UpdatesJson="",ReadingUpdates=!1,PrevVersionCounter=0,UpdatesFound=!1;async function getPrevVersionsJSON(e){let t=await (0,_js_commenting__WEBPACK_IMPORTED_MODULE_2__.UW)(props.artid,e);t?(AddUpdatesToStores(UpdatesJson=JSON.parse("["+t.substring(0,t.length-1)+"]"),"prev"),UpdatesFound=!0):GetUpdates()}function GetPrevVersions(e){ReadingUpdates=!0,getPrevVersionsJSON(PrevVersionCounter=e+1)}async function GetUpdates(){var e=GNC_ArticleComments_Version;UpdatesFound&&(e=PrevVersionCounter-1);let t=await (0,_js_commenting__WEBPACK_IMPORTED_MODULE_2__.C4)(props.artid,e);t?(GNCupdatestries=0,ReadingUpdates=!1,AddUpdatesToStores(UpdatesJson=JSON.parse("["+t.substring(0,t.length-1)+"]"),"updates")):(ReadingUpdates=!1,GNCupdatestries+=1)}function setPropUI(e,t,a){if(null==e){let i={};i[t]=a}else e[t]=a;return e}function pairInObject(e,t){return -1!=JSON.stringify(e).indexOf(t)}var updatesTotal=0,updatesMetrics=null;function AddUpdatesToStores(data,source){updatesTotal=data.length-1;for(var commentStreamEdits=[],i=0;i<data.length;i++){var json=data[i];json.a=JSON.parse(json.a),json.m=JSON.parse(json.m),json.p=JSON.parse(json.p),json.u=JSON.parse(json.u),null!=json.p&&""!=json.p?pairInObject(comdata.posts,'"g":"'+json.p.g+'"')||comdata.posts.push(json.p):null!=json.m&&""!=json.m&&commentStreamEdits.push(json.m);for(var gfound=!1,j=0;j<comdata.users.length;j++)if(comdata.users[j].g==json.u.g){if(comdata.users[j].n=json.u.n,comdata.users[j].u=json.u.u,comdata.users[j].s=json.u.s,null!=json.u.ui){if(null==comdata.users[j].ui)comdata.users[j].ui=json.u.ui;else for(let[key,value]of Object.entries(json.u.ui))comdata.users[j].ui=eval(setPropUI(comdata.users[j].ui,key,value))}gfound=!0}gfound||comdata.users.push(json.u)}"prev"==source?GetPrevVersions(PrevVersionCounter):(PrevVersionCounter=GNC_ArticleComments_Version,setComData(comdata))}},[props.artid,comdata,commaster,commNew,commOff]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{id:"CommentsHolderContent",className:"CommentsHolderContent","data-artid":"","data-shown":"",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"CommentsHolderContentHeader",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"CommentsHolderContentHeaderTop",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"CommentsHolderContentHeaderTitle"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"CommentsHolderContentHeaderCount",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{id:"CommentsHolderContentHeaderCountNum",className:"CommentsHolderContentHeaderCountNum"})," comments"]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"CommentsHolderContentHeaderWarning",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"CommentsHolderContentHeaderButton",children:["Not seeing your comment? Read our ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:"CommentsHolderContentHeaderButtonLink",children:"Content Moderation Policy"}),"."]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"threaded-comments",id:"threaded-comments",children:comdata.posts?comdata.posts.map(e=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_KCommentPost__WEBPACK_IMPORTED_MODULE_3__.Z,{CommPost:e,CommData:comdata,CommMaster:commaster,CommNew:commNew,CommOff:commOff},e.g)):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment,{})})]})})}__webpack_exports__.Z=(0,react__WEBPACK_IMPORTED_MODULE_1__.memo)(KCommentsRender)},9841:function(e,t,a){"use strict";var i=a(5893),s=a(2121),n=a(9734),r=a(4901),o=a(7294);function l(e){var t=[];let{data:a}=(0,n.ZP)(r.d3);if(!a)return(0,i.jsx)("div",{});0===e.pathArray.length&&e.pathArray.push(r.f9),null==a||a.elements.sections.value.map(e=>t.push(e)),t.push(r.BZ),t.push(r.zd),1===e.pathArray.length&&e.pathArray[0]===r.f9&&e.pathArray.push(r.wI);let o=Date.now();function l(){let e=document.querySelectorAll(".CldVid");e.forEach(e=>{let t=e;if(!t.paused){var a;let i=null===(a=t.parentElement)||void 0===a?void 0:a.querySelector(".lightBoxControls");null==i||i.classList.remove("visible")}})}return setInterval(()=>{l()},3e3),(0,i.jsx)(s.ZP,{pathArray:e.pathArray,sections:t},o)}t.Z=(0,o.memo)(l)},3758:function(e,t,a){"use strict";var i=a(5893),s=a(9734),n=a(7294),r=a(1590);function o(e){let{data:t}=(0,s.ZP)(e.itemCN);if(!t)return(0,i.jsx)(i.Fragment,{});var a=!1;let n=t;var o="";if(e.width&&e.height)o="?w="+e.width+"&h="+e.height+"&fit=clip&fm=jpg&q=75";else if(n.elements.desktopImage.value.length>0){var l=n.elements.desktopImage.value[0].width,c=n.elements.desktopImage.value[0].height;c&&l&&(o=l>1200?"?w="+l/2+"&h="+c/2+"&fit=clip&fm=jpg&q=75":"?w="+l+"&h="+c+"&fit=clip&fm=jpg&q=95")}else o="?fit=clip&fm=jpg&q=75";if(t){var d="",m="",u="";if(!((null==t?void 0:t.elements.desktopImage.value.length)>0))return(0,i.jsx)(i.Fragment,{});if((d=(0,r.t6)(null==t?void 0:t.elements.desktopImage.value[0].url)).includes(".mp4")&&(a=!0),u=(null==t?void 0:t.elements.mobileImage.value.length)>0?(0,r.t6)(null==t?void 0:t.elements.mobileImage.value[0].url):d,m=(null==t?void 0:t.elements.tabletImage.value.length)>0?(0,r.t6)(null==t?void 0:t.elements.tabletImage.value[0].url):d,a)return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("video",{className:"DesktopOnly",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:d,type:"video/mp4"}),(0,i.jsx)("p",{children:"Your browser doesn't support HTML video."})]}),(0,i.jsxs)("video",{className:"TabletOnly",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:m,type:"video/mp4"}),(0,i.jsx)("p",{children:"Your browser doesn't support HTML video."})]}),(0,i.jsxs)("video",{className:"MobileOnly",loop:!0,autoPlay:!0,muted:!0,playsInline:!0,children:[(0,i.jsx)("source",{src:u,type:"video/mp4"}),(0,i.jsx)("p",{children:"Your browser doesn't support HTML video."})]})]});if(!e.isCanvas)return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("img",{className:"imageset_cn DesktopOnly",src:d+o,alt:""}),(0,i.jsx)("img",{className:"imageset_cn TabletOnly",src:m+o,alt:""}),(0,i.jsx)("img",{className:"imageset_cn MobileOnly",src:u+o,alt:""})]});var h={backgroundImage:"url("+d+o+")"},g={backgroundImage:"url("+m+o+")"},p={backgroundImage:"url("+u+o+")"};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("canvas",{className:"imageset_cn_canvas DesktopOnly",style:h}),(0,i.jsx)("canvas",{className:"imageset_cn_canvas TabletOnly",style:g}),(0,i.jsx)("canvas",{className:"imageset_cn_canvas MobileOnly",style:p})]})}return e.isCanvas?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("canvas",{className:"imageset_cn_canvas emptyImageSet","data-url":"","data-src-desktop":"","data-src-tablet":"","data-src-mobile":""})}):(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("img",{className:"imageset_cn emptyImageSet",src:"","data-di":"","data-mi":"","data-ti":"",alt:""})})}t.Z=(0,n.memo)(o)},2740:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return e8}});var i=a(5893),s=a(7294),n=a(1221),r=a(9734),o=a(1590);function l(e){var t="";e.item.elements.cardType.value.map(e=>{t=e.codename});var a="";a="card_collections_and_rails"==e.parentItem.system.type?e.parentItem.elements.cardDisplayOptionsSize.value.length>0?e.parentItem.elements.cardDisplayOptionsSize.value[0].name:e.item.elements.cardDisplayOptionsSize.value.length>0?e.item.elements.cardDisplayOptionsSize.value[0].name:"Medium card":e.item.elements.cardDisplayOptionsSize.value.length>0?e.item.elements.cardDisplayOptionsSize.value[0].name:"Full width";let{data:s}=(0,r.ZP)(e.item.elements.cardSource.value[0]);var l=!1;s&&e.item.elements.cardDisplayOptionsHeroItem.value.length>0&&(l=!0);let{data:c}=(0,r.ZP)(l?e.item.elements.cardDisplayOptionsHeroItem.value[0]:null);var d=!1;s&&e.item.elements.cardDisplayOptionsHeroItemForeground.value.length>0&&(d=!0);let{data:m}=(0,r.ZP)(d?e.item.elements.cardDisplayOptionsHeroItemForeground.value[0]:null),u={};u.card=e.item,u.parentItem=e.parentItem,u.cardType=t,u.cardSize=a,u.cardSource={},u.cardTitle="",u.cardSubtitle="",u.cardBackgroundColor="#FFFFFF",u.cardForegroundImage="",u.cardBackgroundImageSet="",u.cardBackgroundImage="",u.cardBackgroundImageDesc="",u.cardBackgroundImageMobile="",u.cardBackgroundImageTablet="",u.cardHeroImageForegroundImageSet="",u.cardShowBackgroundImage="",u.artLink="","<p><br></p>"!=u.card.elements.cardCopyOverRidesArticleTitle.value&&(u.cardTitle=u.card.elements.cardCopyOverRidesArticleTitle.value),"<p><br></p>"!=u.card.elements.cardCopyOverRidesArticleSubtitle.value&&(u.cardSubtitle=u.card.elements.cardCopyOverRidesArticleSubtitle.value),""!=u.card.elements.backgroundSnippetHexColor.value&&(u.cardBackgroundColor=u.card.elements.backgroundSnippetHexColor.value);var h=!1;if(u.card.elements.cardDisplayOptionsHeroItem.value.length>0&&(u.cardBackgroundImageSet=u.card.elements.cardDisplayOptionsHeroItem.value[0],h=!0),u.card.elements.cardDisplayOptionsHideBackgroundItem.value.length>0&&(u.cardShowBackgroundImage="Hide"),u.card.elements.cardDisplayOptionsHeroItemForeground.value.length>0&&(u.cardHeroImageForegroundImageSet=u.card.elements.cardDisplayOptionsHeroItemForeground.value[0]),h&&c&&c.elements.desktopImage.value.length>0){var g=(0,o.t6)(c.elements.desktopImage.value[0].url);if(u.cardBackgroundImage=g,u.cardBackgroundImageDesc=c.elements.desktopImage.value[0].description,c.elements.mobileImage.value.length>0){var p=(0,o.t6)(c.elements.mobileImage.value[0].url);u.cardBackgroundImageMobile=p,u.cardBackgroundImageTablet=p}else u.cardBackgroundImageMobile=g,u.cardBackgroundImageTablet=g;if(c.elements.tabletImage.value.length>0){var _=(0,o.t6)(c.elements.tabletImage.value[0].url);u.cardBackgroundImageTablet=_}}if(""!=u.cardHeroImageForegroundImageSet&&m&&m.elements.desktopImage.value.length>0){var v=(0,o.t6)(m.elements.desktopImage.value[0].url);if(u.cardForegroundImage=v,m.elements.mobileImage.value.length>0){var f=(0,o.t6)(m.elements.mobileImage.value[0].url);u.cardForegroundImageMobile=f,u.cardForegroundImageTablet=f}else u.cardForegroundImageMobile=v,u.cardForegroundImageTablet=v;if(m.elements.tabletImage.value.length>0){var x=(0,o.t6)(m.elements.tabletImage.value[0].url);u.cardForegroundImageTablet=x}}if(""!=u.card.elements.cardCopyOverRidesEyebrow.value&&(u.cardEyebrow=u.card.elements.cardCopyOverRidesEyebrow.value),(null==u.cardBackgroundImageDesc||void 0==u.cardBackgroundImageDesc||""==u.cardBackgroundImageDesc)&&(u.cardBackgroundImageDesc="Alt description not provided"),s){switch(u.cardSource=s,u.cardSource.system.type){case"memo":u.cardSource.elements.thumbnail.value.length>0&&(u.cardForegroundImage=(0,o.t6)(u.cardSource.elements.thumbnail.value[0].url)),u.cardEyebrow=u.cardSource.elements.eyebrow.value;break;case"inline_video_item":case"topic":case"section":"<p><br></p>"!=u.card.elements.cardCopyOverRidesArticleTitle.value?u.cardTitle=u.card.elements.cardCopyOverRidesArticleTitle.value:u.cardTitle=s.elements.title.value,"<p><br></p>"!=u.card.elements.cardCopyOverRidesArticleSubtitle.value?u.cardSubtitle=u.card.elements.cardCopyOverRidesArticleSubtitle.value:u.cardSubtitle=s.elements.description.value;break;case"article":s.elements.pageImageSetBlogroll.value.length>0&&!h&&(u.cardBackgroundImage=(0,o.t6)(s.elements.pageImageSetBlogroll.value[0].url),u.cardBackgroundImageDesc=s.elements.pageImageSetBlogroll.value[0].description),s.elements.pageImageSetThumbnail.value.length>0&&!h&&(u.cardBackgroundImageMobile=(0,o.t6)(s.elements.pageImageSetThumbnail.value[0].url),u.cardBackgroundImageTablet=(0,o.t6)(s.elements.pageImageSetThumbnail.value[0].url)),""!=u.card.elements.cardCopyOverRidesEyebrow.value?u.cardEyebrow=u.card.elements.cardCopyOverRidesEyebrow.value:u.cardEyebrow=s.elements.eyebrow.value,"<p><br></p>"!=u.card.elements.cardCopyOverRidesArticleTitle.value?u.cardTitle=u.card.elements.cardCopyOverRidesArticleTitle.value:"<p><br></p>"!=s.elements.articleTitleCustom.value?u.cardTitle=s.elements.articleTitleCustom.value:u.cardTitle=s.elements.articleTitle.value,"<p><br></p>"!=u.card.elements.cardCopyOverRidesArticleSubtitle.value?u.cardSubtitle=u.card.elements.cardCopyOverRidesArticleSubtitle.value:u.cardSubtitle=s.elements.articleSubtitle.value,(null==u.cardBackgroundImageDesc||void 0==u.cardBackgroundImageDesc||""==u.cardBackgroundImageDesc)&&(u.cardBackgroundImageDesc="Alt description not provided");break;case"content_lockup_list_slide_or_photo_essay":break;case"podcast_episode":s.elements.thumbnail.value.length>0&&(u.cardForegroundImage=(0,o.t6)(s.elements.thumbnail.value[0].url)),""!=u.card.elements.cardCopyOverRidesEyebrow.value?u.cardEyebrow=u.card.elements.cardCopyOverRidesEyebrow.value:u.cardEyebrow="podcast","<p><br></p>"!=u.card.elements.cardCopyOverRidesArticleTitle.value?u.cardTitle=u.card.elements.cardCopyOverRidesArticleTitle.value:u.cardTitle=s.elements.title.value,"<p><br></p>"!=u.card.elements.cardCopyOverRidesArticleSubtitle.value?u.cardSubtitle=u.card.elements.cardCopyOverRidesArticleSubtitle.value:u.cardSubtitle=s.elements.description.value}return(0,i.jsx)(n.Z,{cdata:u},e.item.system.codename)}switch(t){case"banner_card":return""!=u.card.elements.cardCopyOverRidesEyebrow.value&&(u.cardEyebrow=u.card.elements.cardCopyOverRidesEyebrow.value),"<p><br></p>"!=u.card.elements.cardCopyOverRidesArticleTitle.value&&(u.cardTitle=u.card.elements.cardCopyOverRidesArticleTitle.value),"<p><br></p>"!=u.card.elements.cardCopyOverRidesArticleSubtitle.value&&(u.cardSubtitle=u.card.elements.cardCopyOverRidesArticleSubtitle.value),(0,i.jsx)(n.Z,{cdata:u},e.item.system.codename);case"header_card":return(0,i.jsx)(n.Z,{cdata:u},e.item.system.codename);default:return(0,i.jsx)("div",{})}}var c=(0,s.memo)(l),d=a(9355),m=a(990),u=a(3145),h=a(4715),g=a(5675),p=a.n(g),_=a(4020);function v(e){var t=!0;"<p><br></p>"==e.bodyCopy&&(t=!1);let a={};a.copy=e.BreadCrumbCopy,a.link=e.BreadCrumbLink;var s=!0;return""==e.BreadCrumbCopy&&(s=!1),(0,i.jsx)("div",{className:"NavigationalHeader "+e.NHTheme+" "+e.NHType,children:(0,i.jsxs)("div",{className:"KNavigationalHeaderInner",children:[(0,i.jsx)("div",{className:"NavigationalHeaderDividerHolder",style:{display:e.showDivider?"flex":"none"},children:(0,i.jsx)("div",{className:"NavigationalHeaderDivider"})}),(0,i.jsxs)("div",{className:"KNavigationalHeaderLockup",children:[(0,i.jsx)("div",{className:"KNavigationalHeaderTitle",children:e.title}),(0,i.jsx)("div",{className:"KNavigationalHeaderBreadcrumb",style:{display:s?"flex":"none"},children:(0,i.jsx)(_.Z,{item:a})})]}),(0,i.jsx)("div",{className:"KNavigationalHeaderBody",style:{display:t?"flex":"none"},children:(0,i.jsx)("div",{className:"KNavigationalHeaderBodyCopyHolder",children:(0,i.jsx)("div",{className:"KNavigationalHeaderBodyCopy GNDescCopy",dangerouslySetInnerHTML:{__html:e.bodyCopy}})})})]})})}var f=(0,s.memo)(v);function x(e){let[t,a]=(0,s.useState)(null),[n,r]=(0,s.useState)(null),l=e=>{e.preventDefault();let t=e;t&&a({x:t.touches[0].clientX,y:t.touches[0].clientY})},c=e=>{e.preventDefault();let t=e;t&&r({x:t.touches[0].clientX,y:t.touches[0].clientY})},u=()=>{var e=0;t&&n&&t.x&&n.x&&(e=t.x-n.x),e>30&&k(),e<-30&&w(),a(null),r(null)},g=(0,s.useRef)(null);(0,s.useRef)(null);let[_,v]=(0,s.useState)(0),[x,b]=(0,s.useState)(0),[C,S]=(0,s.useState)(381),[I,T]=(0,s.useState)(0),N=[];for(var E=-1;E<e.col.elements.content.value.length-1;E++)N.push(E);let w=()=>{_>0&&v(_-1)},k=()=>{let e=(0,o.KZ)();var t=3;e.includes("Tablet")&&(t=2),e.includes("Mobile")&&(t=1),_<I-t&&v(_+1)};function y(){let e=m.p8.context(e=>{let t=e.selector(".Card");T(t.length),t.length>0&&S(t[0].offsetWidth+48),m.p8.fromTo(t,{left:function(e){return(e-x)*C}},{left:function(e){return(e-_)*C}})},g);return()=>e.revert()}(0,s.useEffect)(()=>{k(),w()},[]);let A=(0,o.P2)(y,250);window.addEventListener("resize",()=>{A()}),window.addEventListener("scroll",()=>{A()}),(0,h.V)(()=>{setTimeout(()=>{let e=m.p8.context(e=>{let t=e.selector(".Card"),a=e.selector(".Rail_ControlsL_L"),i=e.selector(".Rail_ControlsL_R");if(i.length>0&&a.length>0){i[0].classList.remove("Rail_ControlsIconDisabled"),a[0].classList.remove("Rail_ControlsIconDisabled"),0==_&&a[0].classList.add("Rail_ControlsIconDisabled");var s=window.innerWidth,n="Desktop",r=3;"Tablet"==(n=s>1440?"Desktop":s>1279?"Desktop":s>768?"Tablet":"Mobile")&&(r=2),"Mobile"==n&&(r=1),_==I-r&&i[0].classList.add("Rail_ControlsIconDisabled")}T(t.length),t.length>0&&S(t[0].offsetWidth+48),m.p8.fromTo(t,{left:function(e){return(e-x)*C}},{left:function(e){return(e-_)*C}}),b(_)},g);return()=>e.revert()},100)},[_,C]);let j={};var L=!0;j.copy=e.col.elements.breadcrumbCopy.value,j.link=e.col.elements.breadcrumbLink.value,""==j.copy&&(L=!1);var O=!0;return""==e.col.elements.title.value&&"<p><br></p>"==e.col.elements.subtitle.value&&(O=!1),e.col.elements.subtitle.value,(0,i.jsxs)("div",{id:e.col.system.codename,ref:g,className:"TopicTimelineSpacer "+e.theme,children:[(0,i.jsx)("div",{className:"CardTopEdge"}),(0,i.jsxs)("div",{className:"Rail_Inner",children:[(0,i.jsx)("div",{className:"Rail_Inner_Top",style:{display:O?"flex":"none"},children:(0,i.jsx)(f,{showDivider:!0,NHTheme:e.theme,NHType:"NavigationalHeaderSmall",title:e.col.elements.title.value,bodyCopy:e.col.elements.subtitle.value,BreadCrumbCopy:"",BreadCrumbLink:""})}),(0,i.jsx)("div",{className:"Rail_Content",style:{marginTop:L?"52px":"0px"},onTouchStart:l,onTouchMove:c,onTouchEnd:u,children:e.col.elements.content.value.map((t,a)=>(0,i.jsx)(d.Z,{codename:t,parentItem:e.col},a))}),(0,i.jsxs)("div",{className:"Rail_Controls",children:[(0,i.jsxs)("div",{className:"Rail_ControlsL",children:[(0,i.jsx)("div",{id:"prevButton",onClick:w,children:(0,i.jsx)("div",{className:"Rail_ControlsL_L Rail_ControlsIconDisabled",children:(0,i.jsx)(p(),{className:"primaryButtonIconImg",width:24,height:24,src:"/icon_ArrowBack.svg",alt:"icon_Share"})})}),(0,i.jsx)("div",{className:"Rail_ControlsRM",children:(0,i.jsxs)("span",{className:"Rail_ControlsRMC",children:[x+1," of ",I]})}),(0,i.jsx)("div",{id:"nextButton",onClick:k,children:(0,i.jsx)("div",{className:"Rail_ControlsL_R",children:(0,i.jsx)(p(),{className:"primaryButtonIconImg",width:24,height:24,src:"/icon_ArrowForward.svg",alt:"icon_Share"})})})]}),(0,i.jsx)("div",{className:"Rail_ControlsR",children:(0,i.jsx)("span",{className:"Rail_ControlsRC",children:I})})]})]}),(0,i.jsx)("div",{className:"CardBottomEdge"})]})}m.p8.registerPlugin(u.Draggable);var b=(0,s.memo)(x),C=a(6735);function S(e){let{data:t}=(0,r.ZP)(e.codename);return t||(0,i.jsx)(i.Fragment,{})}var I=(0,s.memo)(S),T=a(3758);function N(e){let{data:t}=(0,r.ZP)(e.codename);if(!t)return(0,i.jsx)(i.Fragment,{});let a=t;return(0,i.jsx)("div",{className:"BookCoverSet","data-number":e.number,id:"BCS_"+e.book,style:{zIndex:2-e.number},children:(0,i.jsx)(T.Z,{itemCN:a.elements.cardDisplayOptionsHeroItemForeground.value[0],isCanvas:!0})})}var E=(0,s.memo)(N),w=a(2941);function k(e){let{data:t}=(0,r.ZP)(e.codename);if(!t)return(0,i.jsx)(i.Fragment,{});let a=t.system.name,s=t;var n=!0;"<p><br></p>"==s.elements.articleSubtitle.value&&(n=!1);let o={};var l=!0;return o.copy="",o.link="/",""==o.copy&&(l=!1),(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"RailBooks_Copy","data-number":e.number,id:"BAC_"+e.book,children:[(0,i.jsx)(w.Z,{href:a,className:"",children:(0,i.jsxs)("div",{className:"RailBooks_Copy1",children:[(0,i.jsx)("div",{className:"RailBooks_Eyebrow",dangerouslySetInnerHTML:{__html:s.elements.eyebrow.value}}),(0,i.jsx)("div",{className:"RailBooks_Title",children:s.elements.articleTitle.value})]})}),(0,i.jsxs)("div",{className:"RailBooks_Copy2",children:[(0,i.jsx)("div",{className:"RailBooks_Subtitle",dangerouslySetInnerHTML:{__html:s.elements.articleSubtitle.value},style:{display:n?"flex":"none"}}),(0,i.jsx)("div",{className:"RailBooks_Topic",style:{display:l?"flex":"none"},children:(0,i.jsx)(_.Z,{item:o})})]})]})})}var y=(0,s.memo)(k);function A(e){let{data:t}=(0,r.ZP)(e.codename);if(!t)return(0,i.jsx)(i.Fragment,{});let a=t;return(0,i.jsx)(y,{codename:a.elements.cardSource.value[0],number:e.number,book:e.book})}var j=(0,s.memo)(A);function L(e){let t=(0,s.useRef)(null),[a,n]=(0,s.useState)(0),[r,l]=(0,s.useState)(0),[c,d]=(0,s.useState)(-12),[u,g]=(0,s.useState)(0),_=[];for(var v=-1;v<e.data.elements.content.value.length-1;v++)_.push(v);let x=()=>{a>0&&n(a-1)},b=()=>{let e=(0,o.KZ)();var t=1;"Desktop"!=e&&(t=1),a<u-t&&n(a+1)};(0,s.useEffect)(()=>{b(),x()},[]),(0,h.V)(()=>{setTimeout(()=>{let e=m.p8.context(e=>{let t=e.selector(".BookCoverSet");if(0!=u){let i=e.selector(".RailBooks_Copy"),s=e.selector(".Rail_ControlsL_L"),n=e.selector(".Rail_ControlsL_R"),o=e.selector(".RailBooks_LabelCopy1");o[0].innerHTML=a+1,n.length>0&&s.length>0&&(0==a?s[0].classList.add("Rail_ControlsIconDisabled"):s[0].classList.remove("Rail_ControlsIconDisabled"),a==u-1?n[0].classList.add("Rail_ControlsIconDisabled"):n[0].classList.remove("Rail_ControlsIconDisabled"));let c=document.querySelector(".RailBooks_BookStack"),d=document.querySelector(".RailBooks_FrameTop");if(a>r){null==c||c.append(t[0]);let m=e.selector(".BookCoverSet");m.forEach((e,t)=>{e.style.zIndex=""+(3-t)}),null==d||d.append(i[0])}else{null==c||c.prepend(t[t.length-1]);let h=e.selector(".BookCoverSet");h.forEach((e,t)=>{e.style.zIndex=""+(3-t)}),null==d||d.prepend(i[i.length-1])}l(a)}else g(t.length)},t);return()=>e.revert()},100)},[a]),e.data.elements.subtitle.value;let C=e.data.elements.content.value;var S=[];return null==C||C.forEach(e=>{S.push((0,i.jsx)(I,{codename:e}))}),S[0],(0,i.jsxs)("div",{className:"RailBooksHolder TopicTimelineSpacer",children:[(0,i.jsx)(f,{showDivider:!0,NHTheme:"",NHType:"NavigationalHeaderSmall",title:e.data.elements.title.value,bodyCopy:e.data.elements.subtitle.value,BreadCrumbCopy:"",BreadCrumbLink:""}),(0,i.jsxs)("div",{className:"RailBooks_Content",ref:t,children:[(0,i.jsxs)("div",{className:"RailBooks_Frame",children:[(0,i.jsx)("div",{className:"RailBooks_FrameTop",children:e.data.elements.content.value.map((e,t)=>(0,i.jsx)(j,{codename:e,number:t,book:C[t]},t))}),(0,i.jsx)("div",{className:"RailBooks_UI",children:(0,i.jsxs)("div",{className:"Rail_ControlsL",children:[(0,i.jsx)("div",{id:"prevButton",onClick:x,children:(0,i.jsx)("div",{className:"Rail_ControlsL_L Rail_ControlsIconDisabled",children:(0,i.jsx)(p(),{className:"primaryButtonIconImg",width:24,height:24,src:"/icon_ArrowBack.svg",alt:"icon_Share"})})}),(0,i.jsx)("div",{id:"nextButton",onClick:b,children:(0,i.jsx)("div",{className:"Rail_ControlsL_R",children:(0,i.jsx)(p(),{className:"primaryButtonIconImg",width:24,height:24,src:"/icon_ArrowForward.svg",alt:"icon_Share"})})})]})})]}),(0,i.jsx)("div",{className:"RailBooks_BookStack",children:e.data.elements.content.value.map((e,t)=>(0,i.jsx)(E,{codename:e,number:t,book:C[t]},t))}),(0,i.jsx)("div",{className:"RailBooks_Numbers",children:(0,i.jsx)("div",{className:"RailBooks_NumbersInner",children:(0,i.jsx)("div",{className:"RailBooks_Label",children:(0,i.jsxs)("div",{className:"RailBooks_LabelCopy",children:[(0,i.jsx)("span",{className:"RailBooks_LabelCopy1",children:"1"}),(0,i.jsx)("span",{className:"RailBooks_LabelCopy2",children:" of "}),(0,i.jsx)("span",{className:"RailBooks_LabelCopy3",children:e.data.elements.content.value.length})]})})})})]})]})}m.p8.registerPlugin(u.Draggable);var O=(0,s.memo)(L);function B(e){var t="",a="",s="",n="";e.data.elements.content.value.length>1&&(s=e.data.elements.content.value[0],n=e.data.elements.content.value[1]);let{data:o}=(0,r.ZP)(s);o&&o.elements.itemImageSet.value.length>0&&(t=o.elements.itemImageSet.value[0]);let{data:l}=(0,r.ZP)(n);return l&&l.elements.itemImageSet.value.length>0&&(a=l.elements.itemImageSet.value[0]),(0,i.jsx)("div",{className:"StandaloneImageGallery TopicTimelineSpacer "+e.size,children:(0,i.jsxs)("div",{className:"StandaloneImageGalleryImage",style:{background:e.data.elements.eyebrow.value},children:[(0,i.jsx)("div",{className:"StandaloneImage_Content",children:(0,i.jsx)("div",{className:"StandaloneImage_Text",children:(0,i.jsx)("div",{className:"StandaloneImage_Copy",dangerouslySetInnerHTML:{__html:e.data.elements.subtitle.value}})})}),(0,i.jsxs)("div",{className:"StandaloneImage_Media",children:[(0,i.jsx)("div",{className:"StandaloneImage_Asset2",children:(0,i.jsx)(T.Z,{itemCN:a,isCanvas:!1})}),(0,i.jsx)("div",{className:"StandaloneImage_Asset1",children:(0,i.jsx)(T.Z,{itemCN:t,isCanvas:!1})}),(0,i.jsx)("div",{className:"StandaloneImage_Icon",children:(0,i.jsx)(p(),{className:"icon_StandaloneImage_Gallery",width:24,height:24,src:"/icon_Gallery.svg",alt:"icon_Gallery"})})]})]})})}var R=(0,s.memo)(B);function M(e){var t="default";e.col.elements.collectionDisplayOptions.value.length>0&&(t=e.col.elements.collectionDisplayOptions.value[0].name);var a="default";switch(e.col.elements.cardDisplayOptionsTheme.value.length>0&&(a=e.col.elements.cardDisplayOptionsTheme.value[0].name),t){case"rail":switch(a){case"Light":return(0,i.jsx)(b,{col:e.col,parentItem:e.parentItem,theme:"KRail_HolderGray"});case"Dark":return(0,i.jsx)(b,{col:e.col,parentItem:e.parentItem,theme:"KRail_HolderBlack"});default:return(0,i.jsx)(b,{col:e.col,parentItem:e.parentItem,theme:"KRail_Holder"})}break;case"rail verticle":case"list items":return(0,i.jsxs)(i.Fragment,{children:["Option not coded yet: ",t]});case"rail books":return(0,i.jsx)(O,{data:e.col,parentItem:e.parentItem});case"standalone image gallery":var s="SIG_large";return"card_collections_and_rails"==e.parentItem.system.type&&(s="SIG_Medium",e.col.elements.cardDisplayOptionsSize.value.length>0&&"two_column_card"==e.col.elements.cardDisplayOptionsSize.value[0].codename&&(s="SIG_TwoCollumn")),(0,i.jsx)(R,{codename:e.col.system.codename,parentItem:e.parentItem,data:e.col,size:s});case"Media Carousel":return(0,i.jsx)(C.Z,{codename:e.col.system.codename,parentItem:e.parentItem,num:0,data:e.col,lbId:"NotInLightbox"});default:return(0,i.jsx)("div",{className:"CollectionHolder TopicTimelineSpacer",children:e.col.elements.content.value.map((t,a)=>(0,i.jsx)(d.Z,{codename:t,parentItem:e.col},a))})}}var D=(0,s.memo)(M);function H(e){let[t,a]=(0,s.useState)(!1);function n(){a(e=>!e)}var r="";e.item.elements.posterFrame.value.length>0&&e.item.elements.posterFrame.value[0]&&(r=(0,o.t6)(e.item.elements.posterFrame.value[0].url));var l="";return e.item.elements.video.value.length>0&&e.item.elements.video.value[0]&&(l=e.item.elements.video.value[0].url),(0,i.jsxs)("div",{className:"videoHolder",children:[(0,i.jsxs)("div",{className:"videoOverlay",children:[(0,i.jsx)("rect",{className:"videoLine"}),(0,i.jsxs)("div",{className:"videoFlex",children:[(0,i.jsxs)("div",{className:"videoOverlayLeft",children:[(0,i.jsx)("div",{className:"videoTitle",children:e.item.elements.title.value}),(0,i.jsx)("div",{className:"videoDesc GNDescCopy",dangerouslySetInnerHTML:{__html:e.item.elements.description.value}})]}),(0,i.jsx)("div",{className:"videoOverlayRight",children:(0,i.jsxs)("div",{onClick:n,className:"videoTimeCode",children:["Play: ",new Date(1e3*e.item.elements.length.value).toISOString().slice(15,19)," ",(0,i.jsx)("img",{className:"gnIcon",src:"/play_circle.svg",alt:"Play button"})]})})]})]}),(0,i.jsxs)("video",{playsInline:!0,poster:r,children:[(0,i.jsx)("source",{src:l,type:"video/mp4"}),(0,i.jsx)("p",{children:"Your browser doesn't support HTML video."})]})]})}var F=(0,s.memo)(H);function P(e){var t=!0,a="";return"<p><br></p>"==e.item.elements.itemTitle.value&&(t=!1,a=" listTwoCol"),(0,i.jsxs)("div",{className:"listItemHolder",children:[(0,i.jsx)("div",{className:"listTitle",id:e.item.system.codename,dangerouslySetInnerHTML:{__html:e.item.elements.itemTitle.value},style:{display:t?"flex":"none"}}),(0,i.jsx)("div",{className:"listBody GNDescCopy"+a,dangerouslySetInnerHTML:{__html:e.item.elements.body.value}})]})}var W=(0,s.memo)(P);function G(e){let t=e.item.elements.title.value.replaceAll(" ","-").replaceAll("’","-");return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(w.Z,{href:e.parentItem.elements.title.value.replaceAll(" ","-").replaceAll("’","-")+"/"+t,children:(0,i.jsx)("p",{children:e.item.elements.title.value})})})}var U=(0,s.memo)(G);function V(e){let{data:t}=(0,r.ZP)(e.codename);return t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"memoTableHeader",dangerouslySetInnerHTML:{__html:t.elements.eyebrow.value}}),(0,i.jsx)("table",{className:"memoTable",children:(0,i.jsx)("tbody",{children:t.elements.content.value.map((e,a)=>(0,i.jsx)(d.Z,{codename:e,parentItem:t},a))})})]}):(0,i.jsx)(i.Fragment,{})}var Z=(0,s.memo)(V),Y=a(9868),q=a(5004),K=a(470),z=a(5376),Q=a(2121);function J(e){let t=e.item,a=(0,s.useRef)(null),n=(0,Y.Q)(e.item.elements.kloudinary.value);var r=n.ratio;let l=(0,s.useContext)(Q.DN);var c=!1;e.item.elements.dbsrtlink.value.includes("dropbox.com")&&(c=!0);var d=!1;e.item.elements.dbposterlink.value.includes("dropbox.com")&&(d=!0),(0,s.useEffect)(()=>{let e={root:null,rootMargin:"0px",threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]},t=new IntersectionObserver(e=>{let t=e[0],a=t.target.querySelector(".CldVid"),i=a;if(t.target.querySelector(".lightBoxPlayPause"),t.isIntersecting)i.paused||(0,o.Vr)(),(0,o.iv)("V_AutoPlayOn");else if(!i.paused&&((0,o.Vr)(),(0,o.iv)("V_AutoPlayOn"))){var s;null===(s=t.target.firstElementChild)||void 0===s||s.classList.add("LI_VideoHolderPIP")}},e);a.current&&t.observe(a.current)},[n]);let m=(0,K.Z)();var u=350,h=0;h=(u=m[0]>1280?1308:m[0]>768?1020:350)/r;let g=Math.round(u),_=Math.round(h);if(!e.item)return(0,i.jsx)(i.Fragment,{});var v=!1;function f(){(0,o.f5)(!1),(0,o.Vr)()}return(t.elements.n360Vr.value.length>0&&(v=!0),void 0==n.public_id||v)?(0,i.jsxs)("div",{className:"gnYoutube_VR_Outer",children:[(0,i.jsxs)("div",{className:"gnYoutube_VR_Span",style:{display:v?"block":"none"},children:[(0,i.jsx)("span",{className:"gnYoutube_VR_SpanT1",children:"Mobile device users: "}),(0,i.jsx)("span",{className:"gnYoutube_VR_SpanT2",children:"To view the virtual reality film below, "}),(0,i.jsx)("a",{href:"https://www.youtube.com/watch?v="+t.elements.youtubeId.value+"&amp;feature=youtu.be",children:(0,i.jsx)("span",{className:"gnYoutube_VR_SpanT3",children:"click here to open YouTube."})})]}),(0,i.jsx)("div",{className:"gnYoutubeHolder videoEmbed",children:(0,i.jsx)("iframe",{width:"810",height:"456",frameBorder:"0",src:"https://www.youtube.com/embed/"+e.item.elements.youtubeId.value+"?rel=0&amp;modestbranding=1&amp;playsinline=1&amp;color=white&amp;showinfo=0"})}),(0,i.jsxs)("div",{className:"gnYoutube_VR_Span",style:{display:v?"block":"none"},children:[(0,i.jsx)("span",{className:"gnYoutube_VR_SpanT1",children:"Note: "}),(0,i.jsx)("span",{className:"gnYoutube_VR_SpanT2",children:"This is a virtual reality film that you can view using a VR headset, or in your browser as a 360* video. "}),(0,i.jsx)("a",{href:"https://www.gatesnotes.com/VR-On-GatesNotes",children:(0,i.jsx)("span",{className:"gnYoutube_VR_SpanT3",children:"Learn more"})})]})]}):(0,i.jsx)("div",{className:"inlineVideoHolder TopicTimelineSpacer",ref:a,id:z.l3+"_"+e.item.system.codename+"_lb",onMouseEnter:()=>navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)?null:(0,o.cy)(e.item.system.codename,!1),onMouseLeave:()=>navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)?null:(0,o.jk)(e.item.system.codename,!1),onTouchStart:()=>(0,o.cy)(e.item.system.codename,!0),onTouchEnd:()=>(0,o.jk)(e.item.system.codename,!0),children:(0,i.jsxs)("div",{className:"LI_VideoHolder",children:[(0,i.jsx)("div",{className:"LI_VideoIcons",children:(0,i.jsx)("div",{className:"LI_VideoIcon",children:(0,i.jsx)(p(),{className:"icon_Img icon_CloseIcon",width:44,height:15,src:"/icon_Close.svg",alt:"icon_Close",onClick:f})})}),(0,i.jsx)(q.Z,{src:n.public_id,width:g.toString(),height:_.toString(),ratio:r,stopped:!0,type:"inline",hasVTT:c,hasPoster:d,version:n.version}),(0,i.jsxs)("div",{className:"lightBoxControls visible",children:[(0,i.jsxs)("div",{className:"lightBoxProgress",onMouseDown:t=>(0,o.Pv)(t,e.item.system.codename),children:[(0,i.jsx)("div",{className:"lightBoxProgressBar","data-perc":"0"}),(0,i.jsx)("div",{className:"lightBoxProgressBack"})]}),(0,i.jsx)("div",{className:"lightBoxCenter",children:(0,i.jsxs)("div",{className:"lightBoxPlayPause",onClick:()=>(0,o.QM)(e.item.system.codename),children:[(0,i.jsx)(p(),{className:"lightBoxPlay",width:56,height:56,src:"/play_circle56.svg",alt:"LI_Play"}),(0,i.jsx)(p(),{className:"lightBoxPause",width:56,height:56,src:"/Pause.svg",alt:"LI_Pause"})]})}),(0,i.jsx)("div",{className:"lightBoxFullscreen",children:(0,i.jsx)(w.Z,{href:l.state.SC_section+"/"+l.state.SC_topic+"/"+z.l3+"/"+e.item.system.codename,className:"lightBoxFullscreenLink GNLink",children:(0,i.jsx)("div",{className:"lightBoxIcon",children:(0,i.jsx)(p(),{className:"lightBoxIconOn",width:24,height:24,src:"/icon_FullScreen.svg",alt:"LI_FS"})})})}),(0,i.jsx)("div",{className:"lightBoxCaptions",children:(0,i.jsxs)("div",{className:"lightBoxIcon",onClick:()=>(0,o.sx)(z.l3+"_"+e.item.system.codename+"_lb"),children:[(0,i.jsx)(p(),{className:"lightBoxIconOn",width:44,height:15,src:"/icon_Captions.svg",alt:"LI_Cap"}),(0,i.jsx)(p(),{className:"lightBoxIconOff",width:44,height:15,src:"/icon_CaptionsOff.svg",alt:"LI_Cap"})]})}),(0,i.jsx)("div",{className:"lightBoxVolume",children:(0,i.jsxs)("div",{className:"lightBoxIcon",onClick:()=>(0,o.Po)(z.l3+"_"+e.item.system.codename+"_lb"),children:[(0,i.jsx)(p(),{className:"lightBoxIconOn",width:44,height:15,src:"/icon_SoundOn.svg",alt:"LI_Volume"}),(0,i.jsx)(p(),{className:"lightBoxIconOff",width:44,height:15,src:"/icon_SoundOff.svg",alt:"LI_Volume"})]})})]})]})})}var X=(0,s.memo)(J);function $(e){let{data:t}=(0,r.ZP)(e.codename);return t?("<p><br></p>"==t.elements.description.value&&(t.elements.description.value=""),(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"PhotoEssayHolder",children:[(0,i.jsx)("div",{className:"PE_title",children:t.elements.title.value}),(0,i.jsx)("div",{className:"PE_description",children:t.elements.description.value}),t.elements.contentItems.value.map((e,a)=>(0,i.jsx)(d.Z,{codename:e,parentItem:t},a))]})})):(0,i.jsx)(i.Fragment,{})}var ee=(0,s.memo)($),et=a(6115);function ea(e){let{data:t}=(0,r.ZP)(e.codename);return t?(0,i.jsx)(et.Z,{richTextElement:t.elements.bodyCopyBlockRt,parentItem:t}):(0,i.jsx)(i.Fragment,{})}var ei=(0,s.memo)(ea);function es(e){let{data:t}=(0,r.ZP)(e.codename);return t?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"ContentComboHolder",children:t.elements.contentItems.value.map((e,a)=>(0,i.jsx)(d.Z,{codename:e,parentItem:t},a))})}):(0,i.jsx)(i.Fragment,{})}var en=(0,s.memo)(es);function er(e){var t="default",a="default",s="showTitle",n="showSubTitle",o="";let{data:l}=(0,r.ZP)(e.codename);if(!l)return(0,i.jsx)(i.Fragment,{});if(""==l.elements.subTitle.value&&(n="hideSubTitle"),""==l.elements.title.value&&(s="hideTitle"),"<p><br></p>"==l.elements.caption.value&&(l.elements.caption.value=""),l.elements.imageStyle.value.length>0&&(t=l.elements.imageStyle.value[0].name),l.elements.inlineImageWidth.value.length>0&&(a=l.elements.inlineImageWidth.value[0].name),"initial___topic_paragraph"==e.parentItem.system.type)return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"TopicParagraphImage",children:l.elements.itemImageSet.value.map((e,t)=>(0,i.jsx)(d.Z,{codename:e,parentItem:l},t))})});if("content_combo"==e.parentItem.system.type)o="small"===t?"ContentLockupListSlideOrPEHolder40 TopicTimelineSpacer":"ContentLockupListSlideOrPEHolder TopicTimelineSpacer";else switch(a){case"Full bleed":o="ContentLockupListSlideOrPEHolderFB TopicTimelineSpacer";break;case"12 column":o="ContentLockupListSlideOrPEHolder12c TopicTimelineSpacer";break;case"10 column":o="right"==t?"ContentLockupListSlideOrPEHolder10cRight TopicTimelineSpacer":"ContentLockupListSlideOrPEHolder10c TopicTimelineSpacer";break;case"8 column":o="ContentLockupListSlideOrPEHolder8c TopicTimelineSpacer";break;case"4 column":o="ContentLockupListSlideOrPEHolder4c TopicTimelineSpacer";break;default:o="ContentLockupListSlideOrPEHolder6c TopicTimelineSpacer"}return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:o,children:[(0,i.jsx)("div",{className:"CL_title "+s,dangerouslySetInnerHTML:{__html:l.elements.title.value}}),(0,i.jsx)("div",{className:"CL_subTitle "+n,children:l.elements.subTitle.value}),l.elements.itemImageSet.value.map((e,t)=>(0,i.jsx)(d.Z,{codename:e,parentItem:l},t)),(0,i.jsx)("div",{className:"CL_caption",children:(0,i.jsx)(et.Z,{richTextElement:l.elements.caption,parentItem:l})})]})})}var eo=(0,s.memo)(er),el=a(4390);function ec(e){let{data:t}=(0,r.ZP)(e.codename),a=t,n=e.codename;(0,s.useContext)(el.J);var o=t.elements.articleTitle.value,l=t.elements.eyebrow.value;if("Books"==e.type&&(o=a.elements.bookTitle.value,l=t.elements.bookAuthor.value),!t)return(0,i.jsx)(i.Fragment,{});{let c={};c.copy="";var d=!1;return t.elements.pageTaxonomySetGnTaxonomy.value.length>0&&(c.copy=t.elements.pageTaxonomySetGnTaxonomy.value[0].name,d=!0),c.link="Books/"+c.copy.replaceAll(" ","_").toLowerCase(),(0,i.jsxs)("div",{className:"ArticleListItem",children:[(0,i.jsxs)("div",{className:"CampaignArticlesTitleHolder",children:[(0,i.jsx)(w.Z,{href:z.he+"/"+n,className:"CampaignArticlesTitle GNLink",children:o}),(0,i.jsx)("div",{className:"CampaignArticlesNameMobile",dangerouslySetInnerHTML:{__html:l}})]}),(0,i.jsxs)("div",{className:"CampaignArticlesLockup",children:[(0,i.jsx)("div",{className:"CampaignArticlesName",dangerouslySetInnerHTML:{__html:l}}),(0,i.jsx)("div",{className:"CampaignArticlesBC",style:{display:d?"flex":"none"},children:(0,i.jsx)(_.Z,{item:c})})]})]})}}var ed=(0,s.memo)(ec);function em(e){(0,s.useEffect)(()=>{setInterval(()=>{let e=document.querySelectorAll(".SignUpBannerHolder");e.forEach(e=>{(0,o.SN)()&&e.classList.add("Hidden")})},2e3)},[]);var t="";let{data:a}=(0,r.ZP)(e.item.elements.imageAsset.value[0]);if(!a||(0,o.SN)())return(0,i.jsx)(i.Fragment,{});t=(0,o.t6)(a.elements.desktopImage.value[0].url);var n="";let l=e.item;return l.elements.signupStyle&&l.elements.signupStyle.value.length>0&&(n="SignUpBannerHolderThin"),(0,i.jsx)("div",{className:"SignUpBannerHolder TopicTimelineSpacer "+n,children:(0,i.jsxs)("div",{className:"SignUpBannerHolderInner",children:[(0,i.jsxs)("div",{className:"SignUpBannerHolderImage",children:[(0,i.jsx)("div",{className:"SignUpBannerHolderAsset",children:(0,i.jsx)("div",{className:"SignUpBannerHolderAssetImg",style:{backgroundImage:"url("+t+"?w=598&h=600&fit=clip&fm=jpg&q=75)"}})}),(0,i.jsx)("div",{className:"SignUpBannerHolderIcon"})]}),(0,i.jsxs)("div",{className:"SignUpBannerHolderContent",children:[(0,i.jsxs)("div",{className:"SignUpBannerHolderText",children:[(0,i.jsx)("div",{className:"SignUpBannerHolderTitle",children:e.item.elements.title.value}),(0,i.jsx)("div",{className:"SignUpBannerHolderBody GNDescCopy",dangerouslySetInnerHTML:{__html:e.item.elements.body.value}})]}),(0,i.jsx)("div",{className:"SignUpBannerHolderButtons",onClick:o.Ok,children:(0,i.jsx)("div",{className:"SignUpBannerHolderLabel",children:e.item.elements.buttonLabel.value})})]})]})})}var eu=(0,s.memo)(em);function eh(e){var t=!0;e.item.elements.divider.value.length>0&&"Off"==e.item.elements.divider.value[0].name&&(t=!1);var a="";e.item.elements.theme.value.length>0&&"Black"==e.item.elements.theme.value[0].name&&(a="NavigationalHeaderBlack");var s="";e.item.elements.type.value.length>0&&"Small"==e.item.elements.type.value[0].name&&(s="NavigationalHeaderSmall");var n=!0;"<p><br></p>"==e.item.elements.bodyCopy.value&&(n=!1);let r={};r.copy="",r.link="/";var o=!1;return""!=e.item.elements.breadcrumbCopy.value&&(o=!0,r.copy=e.item.elements.breadcrumbCopy.value,r.link=e.item.elements.breadcrumbLink.value),(0,i.jsx)("div",{className:"NavigationalHeader "+a+" "+s,children:(0,i.jsxs)("div",{className:"KNavigationalHeaderInner",children:[(0,i.jsx)("div",{className:"NavigationalHeaderDividerHolder",style:{display:t?"flex":"none"},children:(0,i.jsx)("div",{className:"NavigationalHeaderDivider"})}),(0,i.jsxs)("div",{className:"KNavigationalHeaderLockup",children:[(0,i.jsx)("div",{className:"KNavigationalHeaderTitle",children:e.item.elements.title.value}),(0,i.jsx)("div",{className:"KNavigationalHeaderBreadcrumb",style:{display:o?"flex":"none"},children:(0,i.jsx)(_.Z,{item:r})})]}),(0,i.jsx)("div",{className:"KNavigationalHeaderBody",style:{display:n?"flex":"none"},children:(0,i.jsx)("div",{className:"KNavigationalHeaderBodyCopyHolder",children:(0,i.jsx)("div",{className:"KNavigationalHeaderBodyCopy GNDescCopy",dangerouslySetInnerHTML:{__html:e.item.elements.bodyCopy.value}})})})]})})}var eg=(0,s.memo)(eh),ep=a(5987),e_=a(3150);function ev(e){let[t,a]=(0,s.useState)({number:0,count:0}),{data:n}=(0,r.ZP)(e.codename);if((0,s.useEffect)(()=>{i(e.codename);async function i(e){let i=await (0,ep.t)(e);return i!=t.number&&t.count<700&&0!=i&&a({...t,number:i,count:t.count+1}),i}},[e.codename,t]),!n)return(0,i.jsx)(i.Fragment,{});let o=(0,e_.getKNameFromCodename)(e.codename),l=(0,e_.getKNameFromCodename)(e.section).replace(" ","-").toLowerCase(),c=o.replace(" ","-").toLowerCase();return(0,i.jsx)(w.Z,{href:""+l+"/"+c,children:(0,i.jsxs)("div",{className:"TopicGridItem",style:{background:null==n?void 0:n.elements.backgroundSnippetHexColor.value},children:[(0,i.jsx)("div",{className:"TopicGridItemHeading",children:o}),(0,i.jsx)("div",{className:"TopicGridItemLabel",children:(0,i.jsxs)("div",{className:"TopicGridItemLabelCopy",children:[t.number," Articles"]})})]})})}var ef=(0,s.memo)(ev);function ex(e){let t={};t.copy=e.item.elements.section.value[0],t.link="/"+e.item.elements.section.value[0];let{data:a}=(0,r.ZP)(e.item.elements.section.value[0]);if(!a)return(0,i.jsx)(i.Fragment,{});let s=a.elements.topics.value,n=s.filter((e,t)=>t%2==0),o=s.filter((e,t)=>t%2!=0);return(0,i.jsxs)("div",{className:"TopicGrid TopicTimelineSpacer",children:[(0,i.jsxs)("div",{className:"TopicGrid_navHead",children:[(0,i.jsx)("div",{className:"TopicGrid_divider",children:(0,i.jsx)("div",{className:"TopicGrid_dividerInner"})}),(0,i.jsxs)("div",{className:"TopicGrid_heading",children:[(0,i.jsx)("div",{className:"TopicGrid_header",children:e.item.elements.navigationHeading.value}),(0,i.jsx)("div",{className:"TopicGrid_breadCrumb",children:(0,i.jsx)(_.Z,{item:t})})]})]}),(0,i.jsxs)("div",{className:"TopicGrid_catagories",children:[(0,i.jsx)("div",{className:"TopicGrid_left",children:n.map((t,a)=>(0,i.jsx)(ef,{codename:t,section:e.item.elements.section.value[0]},t))}),(0,i.jsx)("div",{className:"TopicGrid_right",children:o.map((t,a)=>(0,i.jsx)(ef,{codename:t,section:e.item.elements.section.value[0]},t))})]}),(0,i.jsxs)("div",{className:"TopicGrid_Topic ",children:[(0,i.jsx)("div",{className:"TopicGrid_heading"}),(0,i.jsx)("div",{className:"TopicGrid_label"})]})]})}var eb=(0,s.memo)(ex);function eC(e){var t="left";let{data:a}=(0,r.ZP)(e.codename);if(!a)return(0,i.jsx)(i.Fragment,{});"<p><br></p>"==a.elements.subTitle.value&&(a.elements.subTitle.value=""),"<p><br></p>"==a.elements.caption.value&&(a.elements.caption.value=""),a.elements.imageStyle.value.length>0&&(t=a.elements.imageStyle.value[0].name.replaceAll(" ","_").toLowerCase()),""==a.elements.subTitle.value&&""==a.elements.caption.value&&(t="FullBleed");var s="";"card_collections_and_rails"==e.parentItem.system.type&&(s=" isInCollection");var n="";return a.elements.inlineImageWidth.value.length>0&&(n=" TIL_imageWidth_"+a.elements.inlineImageWidth.value[0].codename),(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"TextImageLockup TopicTimelineSpacer TIL_imageStyle"+t+s+n,children:[(0,i.jsxs)("div",{className:"TIL_content",children:[(0,i.jsx)("div",{className:"TIL_title",children:(0,i.jsx)("div",{className:"TIL_titleCopy",children:a.elements.title.value})}),(0,i.jsx)("div",{className:"TIL_subTitle",children:(0,i.jsx)("div",{className:"TIL_subTitleCopy",children:a.elements.subTitle.value})})]}),(0,i.jsxs)("div",{className:"TIL_image",children:[a.elements.itemImageSet.value.map((e,t)=>(0,i.jsx)(d.Z,{codename:e,parentItem:a},t)),(0,i.jsx)("div",{className:"TIL_caption GNDescCopy",dangerouslySetInnerHTML:{__html:a.elements.caption.value}})]})]})})}var eS=(0,s.memo)(eC);function eI(e){var t="Small";e.item.elements.typeSize.value.length>0&&(t=e.item.elements.typeSize.value[0].name);var a=!0;return""==e.item.elements.eyebrow.value&&(a=!1),(0,i.jsx)("div",{className:"NoteItem TopicTimelineSpacer Card NoteItem"+e.item.elements.size.value[0].codename+" typeSize"+t,style:{background:e.item.elements.backgroundColor.value},children:(0,i.jsxs)("div",{className:"NoteItemCopy",children:[(0,i.jsx)("div",{className:"NoteItemEyebrow",style:{display:a?"block":"none"},children:e.item.elements.eyebrow.value}),(0,i.jsx)("div",{className:"NoteItemTitle",children:e.item.elements.title.value})]})})}var eT=(0,s.memo)(eI);function eN(e){let{data:t}=(0,r.ZP)(e.codename);return t?(0,i.jsxs)("div",{className:"ListHolder TopicTimelineSpacer",children:[(0,i.jsx)("div",{className:"ListHeader",dangerouslySetInnerHTML:{__html:t.elements.eyebrow.value}}),(0,i.jsx)("div",{className:"listTable",children:t.elements.content.value.map((e,a)=>(0,i.jsx)(d.Z,{codename:e,parentItem:t},a))})]}):(0,i.jsx)(i.Fragment,{})}var eE=(0,s.memo)(eN);function ew(e){var t=!1;return e.item.elements.hideNumbers.value.length>0&&(t=!0),(0,i.jsxs)("div",{className:"InlineListHolder showNum"+t,children:[(0,i.jsx)("div",{className:"InlineListIntro",dangerouslySetInnerHTML:{__html:e.item.elements.introParagraph.value}}),e.item.elements.listItems.value.map((t,a)=>(0,i.jsx)(d.Z,{codename:t,parentItem:e.item},a)),(0,i.jsx)("div",{className:"InlineListConclusion",dangerouslySetInnerHTML:{__html:e.item.elements.conclusionParagraph.value}})]})}var ek=(0,s.memo)(ew);function ey(e){let t=e.item.elements.bodyContent,a=(0,s.useRef)(null);return(0,s.useEffect)(()=>{let e={root:null,rootMargin:"0px 0px -100%",threshold:[0,.5]},t=new IntersectionObserver(e=>{let t=e[0];if(t.isIntersecting){t.target.classList.add("ChapterHolderVis");let a=document.querySelectorAll(".ChapterHolder"),i=document.querySelector(".ChapterNavigationMobileSubMenuLnum"),s=document.querySelector(".ChapterNavigationMobileSubMenuLtitle");var n=1;a.forEach(e=>{if(e.classList.contains("ChapterHolderVis")){if(i&&s){i.innerHTML=n.toString();var t=document.querySelectorAll(".KChapterNavigationButton");t.forEach(e=>{e.classList.remove("KChapterNavigationButtonActive")});var a=t[n-1];if(a){a.classList.add("KChapterNavigationButtonActive");var r=a.querySelector(".KChapterNavigationButtonTitle");r&&(s.innerHTML=r.innerHTML)}}}else n+=1})}else t.target.classList.remove("ChapterHolderVis")},e);a.current&&t.observe(a.current)},[]),(0,i.jsxs)("div",{className:"ChapterHolder",id:"ChapterHolder"+e.item.system.codename,ref:a,children:[(0,i.jsx)("div",{className:"ChapterHeader",children:(0,i.jsxs)("div",{className:"ChapterHeaderContent",children:[(0,i.jsx)("div",{className:"ChapterHeaderNumber",children:e.number}),(0,i.jsx)("div",{className:"ChapterHeaderCopy",children:e.item.elements.articleTitle.value})]})}),(0,i.jsx)("div",{className:"ArtBody",children:(0,i.jsx)(et.Z,{richTextElement:t,parentItem:e.item})})]})}var eA=(0,s.memo)(ey);function ej(e){var t=!0;return""==e.item.elements.quoteCta.value&&(t=!1),e.item.elements.quoteCopy.value=e.item.elements.quoteCopy.value.replaceAll('"',"").replaceAll("“","").replaceAll("”",""),(0,i.jsx)("div",{className:"ArticleQuoteHolder TopicTimelineSpacer",children:(0,i.jsxs)("div",{className:"ArticleQuoteContent",children:[(0,i.jsx)("div",{className:"ArticleQuotePar",children:(0,i.jsx)("img",{className:"QuoteCard_FWLeftQuoteImg",src:"/quote.png",alt:""})}),(0,i.jsx)("div",{className:"ArticleQuoteBody GNDescCopy",dangerouslySetInnerHTML:{__html:e.item.elements.quoteCopy.value}}),(0,i.jsx)("div",{className:"ArticleQuoteAttr",style:{display:t?"flex":"none"},children:e.item.elements.quoteCta.value})]})})}var eL=(0,s.memo)(ej);function eO(e){let[t,a]=(0,s.useState)(!0);return(0,o.SN)()||(e.item.elements.requireLogin.value.length>0?t&&a(!1):t||a(!0)),(0,s.useEffect)(()=>{var e=setInterval(()=>{(0,o.SN)()&&(clearInterval(e),a(!1))},3e3)},[]),(0,i.jsxs)("div",{className:"Downloadholder TopicTimelineSpacer",children:[(0,i.jsxs)("div",{className:"DownloadContent",children:[(0,i.jsxs)("div",{className:"DownloadContentText",children:[(0,i.jsx)("div",{className:"DownloadTitle",dangerouslySetInnerHTML:{__html:e.item.elements.title.value}}),(0,i.jsx)("div",{className:"DownloadSub",dangerouslySetInnerHTML:{__html:e.item.elements.subtitle.value}})]}),(0,i.jsx)("div",{className:"DownloadContentImage",children:(0,i.jsx)("img",{className:"DownloadImage",src:(0,o.t6)(e.item.elements.image.value[0].url),alt:""})})]}),(0,i.jsx)("div",{className:"DownloadButtonOut",style:{display:t?"flex":"none"},children:(0,i.jsx)("div",{className:"DownloadLabel",onClick:o.Ok,children:"Sign up or log in to download"})}),(0,i.jsx)(w.Z,{href:(0,o.t6)(e.item.elements.download.value[0].url),preserveCase:!0,target:"_blank",children:(0,i.jsxs)("div",{className:"DownloadButtonIn",style:{display:t?"none":"flex"},children:[(0,i.jsx)("div",{className:"DownloadType",children:(0,i.jsx)("div",{className:"DownloadCopy",children:"Download"})}),(0,i.jsx)("div",{className:"DownloadIcons",children:(0,i.jsx)("div",{className:"DownloadIcon",children:(0,i.jsx)(p(),{className:"DownloadIconImg",width:24,height:24,src:"/icon_Download.svg",alt:"DownloadIconImg"})})})]})})]})}var eB=(0,s.memo)(eO);function eR(e){var t=!0,a=!0;""==e.appleLink&&(a=!1);var s=!0;""==e.spotifyLink&&(s=!1);var n=!0;""==e.ytLink&&(n=!1);var r=!0;return""==e.googleLink&&(r=!1),a||s||n||r||(t=!1),(0,i.jsxs)("div",{className:"PodcastBottom",style:{display:t?"flex":"none"},children:[(0,i.jsx)("div",{className:"PodcastListen",children:"Listen on:"}),(0,i.jsxs)("a",{href:e.spotifyLink,className:s?"PodcastButton":"PodcastButtonOff",target:"_blank",rel:"noreferrer",children:[(0,i.jsx)("div",{className:"PodcastIcon",children:(0,i.jsx)(p(),{className:"PodcastIconImg",width:20,height:20,src:"/icon_Podcast_Spotify.svg",alt:"PodcastIconImg"})}),(0,i.jsx)("div",{className:"PodcastIconCopy",children:"Spotify"})]}),(0,i.jsxs)("a",{href:e.ytLink,className:n?"PodcastButton":"PodcastButtonOff",target:"_blank",rel:"noreferrer",children:[(0,i.jsx)("div",{className:"PodcastIcon",children:(0,i.jsx)(p(),{className:"PodcastIconImg",width:20,height:20,src:"/icon_Podcast_YT.svg",alt:"PodcastIconImg"})}),(0,i.jsx)("div",{className:"PodcastIconCopy",children:"YouTube"})]}),(0,i.jsxs)("a",{href:e.googleLink,className:r?"PodcastButton":"PodcastButtonOff",target:"_blank",rel:"noreferrer",children:[(0,i.jsx)("div",{className:"PodcastIcon",children:(0,i.jsx)(p(),{className:"PodcastIconImg",width:20,height:20,src:"/icon_Podcast_GooglePod.svg",alt:"PodcastIconImg"})}),(0,i.jsx)("div",{className:"PodcastIconCopy",children:"Google Podcast"})]}),(0,i.jsxs)("a",{href:e.appleLink,className:a?"PodcastButton":"PodcastButtonOff",target:"_blank",rel:"noreferrer",children:[(0,i.jsx)("div",{className:"PodcastIcon",children:(0,i.jsx)(p(),{className:"PodcastIconImg",width:20,height:20,src:"/icon_Podcast_Apple.svg",alt:"PodcastIconImg"})}),(0,i.jsx)("div",{className:"PodcastIconCopy",children:"Apple"})]})]})}var eM=(0,s.memo)(eR);function eD(e){let[t,a]=(0,s.useState)(!1),[n,r]=(0,s.useState)(!1),[l,c]=(0,s.useState)(0),[d,m]=(0,s.useState)("00:00"),u=e.item.elements.audioFile.value,h=(0,s.useRef)(new Audio(u));h.current.preload="none";let g=()=>{a(!0),h.current.play()},p=()=>{a(!1),h.current.pause()},_=()=>{r(!0),h.current.volume=0},v=()=>{r(!1),h.current.volume=1,h.current},f=()=>{let e=h.current.currentTime/h.current.duration*100,t=Math.floor(h.current.duration/3600),a=Math.floor(h.current.duration/60),i=h.current.duration-60*a;t>0?m(t.toFixed(1)+":"+a.toFixed(0)+":"+i.toFixed(0)):m(a.toFixed(0)+":"+i.toFixed(0)),c(e)};h.current.addEventListener("timeupdate",f),h.current.duration.toFixed(2);var x=!0;return""==e.item.elements.transcriptLink.value&&(x=!1),e.item.elements.articleLink.value,(0,i.jsxs)("div",{className:"PodcastHolder TopicTimelineSpacer",children:[(0,i.jsxs)("div",{className:"PodcastTop",children:[(0,i.jsx)("div",{className:"PodcastAsset",children:(0,i.jsx)("img",{className:"PodcastImg",src:(0,o.t6)(e.item.elements.thumbnail.value[0].url),alt:""})}),(0,i.jsxs)("div",{className:"PodcastContent",children:[(0,i.jsxs)("div",{className:"PodcastContentInner",children:[(0,i.jsx)("div",{className:"PodcastEyebrow",children:e.item.elements.podcastSeasonName.value}),(0,i.jsx)("div",{className:"PodcastTitle",children:e.item.elements.title.value}),(0,i.jsx)("div",{className:"PodcastSubTitle",dangerouslySetInnerHTML:{__html:e.item.elements.descriptionRich.value}}),(0,i.jsx)("div",{className:"PodcastButtons",children:(0,i.jsx)("div",{style:{display:x?"flex":"none"},children:(0,i.jsx)(w.Z,{href:e.item.elements.transcriptLink.value,preserveCase:!0,children:(0,i.jsx)("div",{className:"PodcastButtonsTranscript",children:"Episode transcript"})})})})]}),(0,i.jsxs)("div",{className:"PodcastControl",children:[(0,i.jsx)("div",{className:"PodcastControlIconSet",children:(0,i.jsxs)("div",{className:t?"PodcastControl_PlayPause PodcastControl_Icons PodcastControl_Playing":"PodcastControl_PlayPause PodcastControl_Icons PodcastControl_Paused",onClick:t?p:g,children:[(0,i.jsx)("div",{className:"PodcastControl_Play PodcastControl_Icon",children:(0,i.jsx)("img",{className:"gnIcon",src:"/play_circle.svg",alt:"Play button"})}),(0,i.jsx)("div",{className:"PodcastControl_Pause PodcastControl_Icon",children:(0,i.jsx)("img",{className:"gnIcon",src:"/Pause.svg",alt:"Pause button"})})]})}),(0,i.jsx)("div",{className:"PodcastControl_TimeNow",children:l.toFixed(2).padStart(5,"0")}),(0,i.jsxs)("div",{className:"PodcastControl_ScrubBar",children:[(0,i.jsx)("div",{className:"PodcastControl_ScrubBarProg","data-playstatus":"unplayed",style:{width:l+"%"}}),(0,i.jsx)("div",{className:"PodcastControl_ScrubSelect",style:{left:l+"%"}})]}),(0,i.jsx)("div",{className:"PodcastControl_Time",children:d}),(0,i.jsx)("div",{className:"PodcastControlIconSet",children:(0,i.jsxs)("div",{className:n?"PodcastControl_Volume PodcastControl_Icons PodcastControlMuted":"PodcastControl_Volume PodcastControl_Icons PodcastControlPlaying",onClick:n?v:_,children:[(0,i.jsx)("div",{className:"PodcastControl_VolumeOn PodcastControl_Icon",children:(0,i.jsx)("img",{className:"gnIcon",src:"/icon_SoundOn.svg",alt:"Sound On button"})}),(0,i.jsx)("div",{className:"PodcastControl_VolumeOff PodcastControl_Icon",children:(0,i.jsx)("img",{className:"gnIcon",src:"/icon_SoundOff.svg",alt:"Sound Off button"})})]})})]})]})]}),(0,i.jsx)(eM,{appleLink:e.item.elements.appleLink.value,spotifyLink:e.item.elements.spotifyLink.value,ytLink:e.item.elements.ytLink.value,googleLink:e.item.elements.googleLink.value})]})}var eH=(0,s.memo)(eD);function eF(e){return(0,i.jsx)("div",{className:"FeaturedInOuter TopicTimelineSpacer",children:(0,i.jsx)(w.Z,{href:e.item.elements.link.value,children:(0,i.jsxs)("div",{className:"FeaturedIn",children:[(0,i.jsxs)("div",{className:"FeaturedInText",children:[(0,i.jsx)("div",{className:"FeaturedInEyebrow",children:e.item.elements.eyebrow.value}),(0,i.jsx)("div",{className:"FeaturedInTitle",children:e.item.elements.articleTitle.value})]}),(0,i.jsx)("div",{className:"FeaturedInImageHolder",children:(0,i.jsx)("div",{className:"FeaturedInAsset",children:(0,i.jsx)("img",{className:"FeaturedInImg",alt:e.item.elements.articleTitle.value+" image",src:(0,o.t6)(e.item.elements.image.value[0].url)+"?w=420&h=250&fit=clip&fm=jpg&q=75"})})})]})})})}var eP=(0,s.memo)(eF);function eW(e){return(0,i.jsxs)("div",{className:"podcastSeasonHolder",children:[(0,i.jsx)("div",{className:"podcastSeasonHero",children:(0,i.jsx)(d.Z,{codename:e.item.elements.podcastSeasonBanner.value[0],parentItem:e.item},e.item.elements.podcastSeasonBanner.value[0])}),(0,i.jsxs)("div",{className:"ArticleTop",children:[(0,i.jsx)("div",{className:"Arteyebrow",dangerouslySetInnerHTML:{__html:e.item.elements.podcastheroPre.value}}),(0,i.jsx)("h1",{className:"ArtHeadline",dangerouslySetInnerHTML:{__html:e.item.elements.podcastheroTitle.value}}),(0,i.jsx)("div",{className:"ArtDesc GNDescCopy",dangerouslySetInnerHTML:{__html:e.item.elements.podcastheroDesc.value}})]}),(0,i.jsx)("div",{className:"ArtBody",children:e.item.elements.podcastEpisodes.value.map((t,a)=>(0,i.jsx)("div",{className:"PodcastLandingEpisode",children:(0,i.jsx)(d.Z,{codename:t,parentItem:e.item},a)},a))})]})}var eG=(0,s.memo)(eW);function eU(e){let{data:t}=(0,r.ZP)(e.codename);if(!t)return(0,i.jsx)(i.Fragment,{});let a=t;switch(a.elements.containerType.value[0].name){case"<canvas>":return(0,i.jsx)("canvas",{children:(0,i.jsx)(et.Z,{richTextElement:a.elements.bodyCopyAndInlineElements,parentItem:t})});case"<ul>":return(0,i.jsx)("ul",{children:(0,i.jsx)(et.Z,{richTextElement:a.elements.bodyCopyAndInlineElements,parentItem:t})});case"<object>":return(0,i.jsx)("object",{children:(0,i.jsx)(et.Z,{richTextElement:a.elements.bodyCopyAndInlineElements,parentItem:t})});case"<li>":return(0,i.jsx)("li",{children:(0,i.jsx)(et.Z,{richTextElement:a.elements.bodyCopyAndInlineElements,parentItem:t})});case"<p>":return(0,i.jsx)("p",{children:(0,i.jsx)(et.Z,{richTextElement:a.elements.bodyCopyAndInlineElements,parentItem:t})});case"<strong>":return(0,i.jsx)("strong",{children:(0,i.jsx)(et.Z,{richTextElement:a.elements.bodyCopyAndInlineElements,parentItem:t})});case"<sup>":return(0,i.jsx)("sup",{children:(0,i.jsx)(et.Z,{richTextElement:a.elements.bodyCopyAndInlineElements,parentItem:t})});case"<img>":return(0,i.jsx)("img",{alt:"",children:(0,i.jsx)(et.Z,{richTextElement:a.elements.bodyCopyAndInlineElements,parentItem:t})});case"<em>":return(0,i.jsx)("em",{children:(0,i.jsx)(et.Z,{richTextElement:a.elements.bodyCopyAndInlineElements,parentItem:t})});case"<div>":return(0,i.jsx)("div",{children:(0,i.jsx)(et.Z,{richTextElement:a.elements.bodyCopyAndInlineElements,parentItem:t})});case"<iframe>":return(0,i.jsx)("iframe",{children:(0,i.jsx)(et.Z,{richTextElement:a.elements.bodyCopyAndInlineElements,parentItem:t})});case"<hr>":return(0,i.jsx)("hr",{children:(0,i.jsx)(et.Z,{richTextElement:a.elements.bodyCopyAndInlineElements,parentItem:t})});case"<br>":return(0,i.jsx)("br",{children:(0,i.jsx)(et.Z,{richTextElement:a.elements.bodyCopyAndInlineElements,parentItem:t})});case"<a>":return(0,i.jsx)("a",{children:(0,i.jsx)(et.Z,{richTextElement:a.elements.bodyCopyAndInlineElements,parentItem:t})});case"<blockquote>":return(0,i.jsx)("blockquote",{children:(0,i.jsx)(et.Z,{richTextElement:a.elements.bodyCopyAndInlineElements,parentItem:t})});case"<span>":return(0,i.jsx)("span",{children:(0,i.jsx)(et.Z,{richTextElement:a.elements.bodyCopyAndInlineElements,parentItem:t})})}return(0,i.jsx)(i.Fragment,{})}var eV=(0,s.memo)(eU);function eZ(e){let t=e.item.elements.initialTopicParagraph;return(0,i.jsx)("div",{className:"InitialTopicParagraphHolder TopicTimelineSpacer",children:(0,i.jsx)(et.Z,{richTextElement:t,parentItem:e.item})})}var eY=(0,s.memo)(eZ);function eq(e){return(0,i.jsx)("div",{className:"InitialTopicParagraphLinkHolder",children:(0,i.jsx)(w.Z,{href:e.item.elements.initialTopicParagraphLinkUrl.value,className:"InitialTopicParagraphLinkHolderLink",children:e.item.elements.initialTopicParagraphLinkWords.value.map((t,a)=>(0,i.jsx)(d.Z,{codename:t,parentItem:e.item},a))})})}var eK=(0,s.memo)(eq);function ez(e){return(0,i.jsx)("div",{className:"InitialTopicParagraphLinkWordHolder",children:e.item.elements.word.value})}var eQ=(0,s.memo)(ez);function eJ(e){return(0,i.jsx)("div",{className:"SpacerTop TopicTimelineSpacer"})}var eX=(0,s.memo)(eJ);function e$(e){return(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:"PageBreak","data-module-name":"Page-break","data-module-type":"page_break",children:[(0,i.jsx)("span",{className:"PageBreakSpan"}),(0,i.jsx)("span",{className:"PageBreakSpan"}),(0,i.jsx)("span",{className:"PageBreakSpan"})]})})}var e0=(0,s.memo)(e$),e1=a(7301);function e2(e){(0,s.useEffect)(()=>{setInterval(()=>{let e=document.querySelectorAll(".SignupBannerArticleHolder");e.forEach(e=>{(0,o.SN)()&&e.classList.add("Hidden")})},2e3)},[]);var t="",a="",n="";let{data:l}=(0,r.ZP)(e.item.elements.imageAsset.value[0]);return!l||(0,o.SN)()?(0,i.jsx)(i.Fragment,{}):(t=(0,o.t6)(l.elements.desktopImage.value[0].url),a=l.elements.tabletImage.value.length>0?(0,o.t6)(l.elements.tabletImage.value[0].url):(0,o.t6)(l.elements.desktopImage.value[0].url),n=l.elements.mobileImage.value.length>0?(0,o.t6)(l.elements.mobileImage.value[0].url):(0,o.t6)(l.elements.desktopImage.value[0].url),(0,i.jsx)("div",{className:"SignupBannerArticleHolder TopicTimelineSpacer",children:(0,i.jsxs)("div",{className:"SignupBannerArticleHolderInner",children:[(0,i.jsxs)("div",{className:"SignupBannerArticleHolderBack",children:[(0,i.jsx)("img",{className:"DesktopOnly SignupBannerArticleHolderBacki",src:t+"?w=596&h=224&fit=crop&fm=jpg&q=75",alt:"sign up image"}),(0,i.jsx)("img",{className:"TabletOnly SignupBannerArticleHolderBacki",src:a+"?w=522&h=224&fit=crop&fm=jpg&q=75",alt:"sign up image"}),(0,i.jsx)("img",{className:"MobileOnly SignupBannerArticleHolderBacki",src:n+"?w=352&h=454&fit=crop&fm=jpg&q=75",alt:"sign up image"})]}),(0,i.jsxs)("div",{className:"SignupBannerArticleHolderContent",children:[(0,i.jsx)("div",{className:"SignupBannerArticleHolderText",children:(0,i.jsx)("div",{className:"SignupBannerArticleHolderTitle",children:e.item.elements.title.value})}),(0,i.jsx)("div",{className:"SignupBannerArticleHolderButtons",onClick:o.Ok,children:(0,i.jsx)("div",{className:"SignupBannerArticleHolderLabel",children:e.item.elements.buttonLabel.value})})]})]})}))}var e4=(0,s.memo)(e2);let e3=0;function e5(e){let{data:t}=(0,r.ZP)(e.codename);if(!t)return(0,i.jsx)(i.Fragment,{});if(!t)return(0,i.jsx)("div",{children:"KItem undefined"});var a=t.system.type;switch(a){case"card":return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(c,{item:t,parentItem:e.parentItem},t.system.codename)});case"card_collections_and_rails":return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(D,{col:t,parentItem:e.parentItem},t.system.codename)});case"list_item":return(0,i.jsx)(W,{item:t,parentItem:e.parentItem},t.system.codename);case"list":if("card"==e.parentItem.system.type)return(0,i.jsx)(Z,{codename:t.system.codename,parentItem:e.parentItem},t.system.codename);return(0,i.jsx)(eE,{codename:t.system.codename,parentItem:e.parentItem},t.system.codename);case"photo_essay":return(0,i.jsx)(ee,{codename:t.system.codename,parentItem:e.parentItem},t.system.codename);case"page_break":return(0,i.jsx)(e0,{},t.system.codename);case"body_copy_block":if("topic"==e.parentItem.system.type)return(0,i.jsx)("div",{className:"ArtBody",children:(0,i.jsx)(ei,{codename:t.system.codename,parentItem:e.parentItem},t.system.codename)});return(0,i.jsx)(ei,{codename:t.system.codename,parentItem:e.parentItem},t.system.codename);case"body_copy_constrained":if("topic"==e.parentItem.system.type)return(0,i.jsx)("div",{className:"ArtBody",children:(0,i.jsx)(eV,{codename:t.system.codename,parentItem:e.parentItem},t.system.codename)});return(0,i.jsx)(eV,{codename:t.system.codename,parentItem:e.parentItem},t.system.codename);case"content_combo":return(0,i.jsx)(en,{codename:t.system.codename,parentItem:e.parentItem},t.system.codename);case"content_lockup_list_slide_or_photo_essay":if("topic"==e.parentItem.system.type||"card_collections_and_rails"==e.parentItem.system.type)return(0,i.jsx)(eS,{codename:t.system.codename,parentItem:e.parentItem},t.system.codename);return(0,i.jsx)(eo,{codename:t.system.codename,parentItem:e.parentItem},t.system.codename);case"html_block":return(0,i.jsx)("div",{className:"htmlBlockHolder",dangerouslySetInnerHTML:{__html:t.elements.htmlBlockText.value}});case"menu":return(0,i.jsxs)("p",{children:["menu: ",t.system.name]});case"quote":return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(eL,{item:t})});case"article":if("card_collections_and_rails"==e.parentItem.system.type)return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{children:"article not supported directly in collection, must be wrapped in a card"})});if("card"==e.parentItem.system.type){var s="Articles";return e.parentItem.elements.cardDisplayOptionsListItemType.value.length>0&&(s="Books"),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(ed,{codename:t.system.codename,type:s})})}var n="Standard";if(t.elements.specialArticleType.value.length>0&&(n=t.elements.specialArticleType.value[0].name),"Chapter"===n)return e3+=1,(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(eA,{item:t,number:e3})});return(0,i.jsxs)("p",{children:["article: ",t.system.name+" "+e.parentItem.system.type]});case"inline_video_item":return(0,i.jsx)(X,{item:t,parentItem:e.parentItem},t.system.codename);case"sign_up_banner":if("article"==e.parentItem.system.type)return(0,i.jsx)(e4,{item:t,parentItem:e.parentItem},t.system.codename);return(0,i.jsx)(eu,{item:t,parentItem:e.parentItem},t.system.codename);case"video":if("topic"==e.parentItem.system.type)return(0,i.jsx)(i.Fragment,{children:"video"==a?(0,i.jsx)(F,{item:t,parentItem:e.parentItem},t.system.codename):(0,i.jsxs)("div",{children:[" ",t.system.codename," is a ",a]})});if("card_collections_and_rails"==e.parentItem.system.type)return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{children:"video not supported directly in collection, must be wrapped in a card"})});return(0,i.jsx)(i.Fragment,{});case"image_set":if("gallery"==e.parentItem.system.type)return(0,i.jsx)("div",{className:"LI_GalleryItem",children:(0,i.jsx)(T.Z,{itemCN:t.system.codename,isCanvas:!1})});return(0,i.jsx)(T.Z,{itemCN:t.system.codename,isCanvas:!1});case"takeover":return(0,i.jsx)(e1.Z,{itemCN:t.system.codename});case"topic":if("section"==e.parentItem.system.type)return(0,i.jsx)(i.Fragment,{children:"topic"==a?(0,i.jsx)(U,{item:t,parentItem:e.parentItem},t.system.codename):(0,i.jsxs)("div",{children:[" ",t.system.codename," is a ",a]})});return(0,i.jsx)(i.Fragment,{});case"header":return(0,i.jsx)(eg,{item:t,parentItem:e.parentItem},t.system.codename);case"topic_grid":return(0,i.jsx)(eb,{item:t},t.system.codename);case"note":return(0,i.jsx)(eT,{item:t},t.system.codename);case"inline_list":return(0,i.jsx)(ek,{item:t},t.system.codename);case"download":return(0,i.jsx)(eB,{item:t},t.system.codename);case"podcast_episode":return(0,i.jsx)(eH,{item:t},t.system.codename);case"podcasts_config":return(0,i.jsx)(eG,{item:t},t.system.codename);case"featured_in":return(0,i.jsx)(eP,{item:t},t.system.codename);case"initial___topic_paragraph":return(0,i.jsx)(eY,{item:t},t.system.codename);case"initial___topic_paragraph_link":return(0,i.jsx)(eK,{item:t},t.system.codename);case"initial___topic_paragraph_link_word":return(0,i.jsx)(eQ,{item:t},t.system.codename);case"spacertop":return(0,i.jsx)(eX,{},t.system.codename);default:return(0,i.jsx)(i.Fragment,{})}}var e8=(0,s.memo)(e5)},9355:function(e,t,a){"use strict";var i=a(5893),s=a(6319);function n(e){return(0,i.jsx)(s.Z,{codename:e.codename,parentItem:e.parentItem},e.codename)}t.Z=n},6319:function(e,t,a){"use strict";var i=a(5893),s=a(7294),n=a(5152),r=a.n(n),o=a(2740);function l(e){(0,s.useEffect)(()=>{var e=document.querySelectorAll(".ContentComboHolder");e.length>0&&e.forEach(e=>{e.querySelectorAll(".ContentLockupListSlideOrPEHolder").length>1&&e.classList.add("ContentComboPairedEqual")})},[]);let[t,a]=(0,s.useState)(!1),n=(0,s.useRef)(null);return((0,s.useEffect)(()=>{let e={root:null,rootMargin:"200px",threshold:[.1,.2,.3,.4,.5,.6,.7,.8,.9,1]},t=new IntersectionObserver(e=>{let i=e[0];i.isIntersecting&&(setTimeout(()=>{a(!0)},100),t.disconnect())},e);n.current&&t.observe(n.current)},[]),t)?(0,i.jsx)(o.default,{codename:e.codename,parentItem:e.parentItem},e.codename):(0,i.jsx)("div",{id:"ph_"+e.codename,className:"ItemPlaceHolder",ref:n})}r()(()=>Promise.resolve().then(a.bind(a,2740)),{loadableGenerated:{webpack:()=>[2740]},loading:()=>(0,i.jsx)("h1",{})}),t.Z=(0,s.memo)(l)},730:function(e,t,a){"use strict";a.r(t);var i=a(5893),s=a(7294),n=a(9734),r=a(9868),o=a(4390),l=a(5675),c=a.n(l),d=a(470),m=a(5004),u=a(6735),h=a(5376),g=a(2941),p=a(1590),_=a(4901);function v(e){var t=e.getBoundingClientRect(),a=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(t.bottom<0||t.top-a>=0)}function f(e){let t=(0,s.useContext)(o.Iz),a=(0,s.useRef)(-1),{data:l}=(0,n.ZP)(e.codename);var f="";function x(){let t=h.l3+"_"+e.codename+"_lb",a=document.getElementById(t);var i=null;if(a){let s=a.querySelector("video");if(i=a.querySelector(".LI_VideoHolderLB")){var n,r=v(i);let o=a.querySelector(".IntersectionData");if(o&&(o.innerHTML="CV:"+r),r){let l=null===(n=s.parentElement)||void 0===n?void 0:n.querySelector(".lightBoxControls");s.paused?null==l||l.classList.remove("Hidden"):null==l||l.classList.add("Hidden"),(0,p.f5)(!1),setTimeout(()=>{(null==l?void 0:l.matches(":hover"))?(0,p.cy)(s.id,!1):(0,p.jk)(s.id,!1)},300),(0,p.iv)("V_AutoPlayOn")&&(0,p.ZP)(s.id),(0,p.lG)(s.id);let c=(0,_.eW)(s.id);(0,p.dh)(c)}}}}let b=(0,p.P2)(x,1e3);(0,s.useRef)(null),(0,s.useEffect)(()=>{let e=document.getElementById("LightboxHolder");e&&e.addEventListener("scroll",()=>{b()})},[]);let C=(0,d.Z)();if(!l)return(0,i.jsx)(i.Fragment,{});{let S=e.codename;-1==a.current&&(t.lists.scrollerList.push(S),a.current=t.lists.scrollerList.length-1);var I="",T="0.01",N="none",E="LI_BelowRightRead_Hide";if((null==l?void 0:l.system.type)!="inline_video_item")return(0,i.jsx)(u.Z,{codename:e.codename,parentItem:e.parentItem,num:0,data:l,lbId:e.codename+"_lightbox"});{let w=l;var k=!1;w.elements.dbsrtlink.value.includes("dropbox.com")&&(k=!0);var y=!1;w.elements.dbposterlink.value.includes("dropbox.com")&&(y=!0),e.parentItem.system&&"card"==e.parentItem.system.type&&("<p><br></p>"!=e.parentItem.elements.cardCopyOverRidesArticleTitle.value&&(l.elements.title.value=e.parentItem.elements.cardCopyOverRidesArticleTitle.value),"<p><br></p>"!=e.parentItem.elements.cardCopyOverRidesArticleSubtitle.value&&(l.elements.description.value=e.parentItem.elements.cardCopyOverRidesArticleSubtitle.value),e.parentItem.elements.cardTargetsMainTarget.value.length>0&&(I=e.parentItem.elements.cardTargetsMainTarget.value[0],T="1",N="all",E=""));let A=(0,r.Q)(null==l?void 0:l.elements.kloudinary.value);var j=A.ratio,L=0,O=0,B=40,R=122;C[0]>767&&(B=64,R=192),C[0]>1279&&(B=160);var M="LB_VidPortrait";j>1?(M="LB_VidLandscape",(O=C[0]-B)>1360&&(O=1360),(L=O/j)>.9*C[1]-R&&(O=(L=.9*C[1]-R)*j)):O=(L=.9*C[1]-R)*j;let D=e=>e==S,H=t.lists.scrollerList.findIndex(D);if(H!=a.current)return(0,i.jsx)(i.Fragment,{});var F=null==l?void 0:l.elements.title.value,P=null==l?void 0:l.elements.description.value;if(""!=P&&(F=P),F.length>140&&(F=F.substring(0,140)+"..."),void 0==A.public_id)return(0,i.jsx)(i.Fragment,{});f=A.public_id;let W=Math.round(O),G=Math.round(L);var U=(0,p.uL)(W,G);return(0,i.jsx)("div",{className:"lightboxitem "+M,id:h.l3+"_"+e.codename+"_lb",children:(0,i.jsxs)("div",{className:"lightboxitemInner",children:[(0,i.jsx)("div",{className:"LI_Top"}),(0,i.jsxs)("div",{className:"LI_VideoHolderLB",style:{width:"".concat(W,"px"),aspectRatio:"".concat(U)},onMouseEnter:()=>navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)?null:(0,p.cy)(e.codename,!1),onMouseLeave:()=>navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)?null:(0,p.jk)(e.codename,!1),onTouchStart:()=>(0,p.cy)(e.codename,!0),onTouchEnd:()=>(0,p.jk)(e.codename,!0),children:[(0,i.jsx)(m.Z,{src:f,width:W.toString(),height:G.toString(),ratio:j,stopped:!0,type:"lightbox",hasVTT:k,hasPoster:y,version:A.version}),(0,i.jsxs)("div",{className:"lightBoxControls visible",style:{width:W.toString()+"px"},children:[(0,i.jsxs)("div",{className:"lightBoxProgress",onMouseDown:t=>(0,p.Pv)(t,e.codename),children:[(0,i.jsx)("div",{className:"lightBoxProgressBar","data-perc":"0"}),(0,i.jsx)("div",{className:"lightBoxProgressBack"})]}),(0,i.jsx)("div",{className:"lightBoxCenter",children:(0,i.jsxs)("div",{className:"lightBoxPlayPause",onClick:()=>(0,p.QM)(e.codename),children:[(0,i.jsx)(c(),{className:"lightBoxPlay",width:56,height:56,src:"/play_circle56.svg",alt:"LI_Play"}),(0,i.jsx)(c(),{className:"lightBoxPause",width:56,height:56,src:"/Pause.svg",alt:"LI_Pause"})]})}),(0,i.jsx)("div",{className:"lightBoxCaptions",children:(0,i.jsxs)("div",{className:"lightBoxIcon",onClick:()=>(0,p.sx)(h.l3+"_"+e.codename+"_lb"),children:[(0,i.jsx)(c(),{className:"lightBoxIconOn",width:44,height:15,src:"/icon_Captions.svg",alt:"LI_Cap"}),(0,i.jsx)(c(),{className:"lightBoxIconOff",width:44,height:15,src:"/icon_CaptionsOff.svg",alt:"LI_Cap"})]})}),(0,i.jsx)("div",{className:"lightBoxVolume",children:(0,i.jsxs)("div",{className:"lightBoxIcon",onClick:()=>(0,p.Po)(h.l3+"_"+e.codename+"_lb"),children:[(0,i.jsx)(c(),{className:"lightBoxIconOn",width:44,height:15,src:"/icon_SoundOn.svg",alt:"LI_Volume"}),(0,i.jsx)(c(),{className:"lightBoxIconOff",width:44,height:15,src:"/icon_SoundOff.svg",alt:"LI_Volume"})]})})]})]}),(0,i.jsxs)("div",{className:"LI_Below",style:{width:"".concat(W,"px")},children:[(0,i.jsxs)("div",{className:"LI_BelowLeft",children:[(0,i.jsx)("div",{className:"LI_BelowLeftTitle",dangerouslySetInnerHTML:{__html:F}}),(0,i.jsx)("div",{className:"IntersectionData"})]}),(0,i.jsx)(g.Z,{href:h.he+"/"+I,className:"LI_BelowRightRead GNLink "+E,children:(0,i.jsx)("div",{className:"LI_BelowRightReadinner",style:{opacity:T,pointerEvents:N},"data-lcn":I,children:"Read article"})})]})]})})}}}t.default=(0,s.memo)(f)},6735:function(e,t,a){"use strict";var i=a(5893),s=a(7294),n=a(9355),r=a(5675),o=a.n(r);function l(e){let[t,a]=(0,s.useState)(e.data.elements.content.value.length),[r,l]=(0,s.useState)(1);var c="";e.data.elements.cardDisplayOptionsTheme.value.length>0&&("Dark"==e.data.elements.cardDisplayOptionsTheme.value[0].name&&(c="MediaCarouselThemeDark"),"Light"==e.data.elements.cardDisplayOptionsTheme.value[0].name&&(c="MediaCarouselThemeLight"));var d="";"NotInLightbox"!=e.lbId&&(c="MediaCarouselThemeDark",d="lightboxitem"),(0,s.useEffect)(()=>{let t=()=>{let t=document.getElementById(e.codename+e.lbId+e.num),a=Array.from(null==t?void 0:t.querySelectorAll(".MediaCarousel_GalleryItem"));if(null==a?void 0:a.length){let i=a[0].querySelector(".TIL_caption"),s=null==t?void 0:t.querySelector(".MediaCarousel_BelowCaption");s&&(s.innerHTML=null==i?void 0:i.innerHTML)}};if("complete"!==document.readyState)return window.addEventListener("load",t),()=>document.removeEventListener("load",t);t()},[]);let m=a=>{let i=document.getElementById(e.codename+e.lbId+e.num),s=Array.from(null==i?void 0:i.querySelectorAll(".MediaCarousel_GalleryItem")),n=null==i?void 0:i.querySelector(".MediaCarousel_GalleryL"),r=null==i?void 0:i.querySelector(".MediaCarousel_GalleryR"),o=null==i?void 0:i.querySelector(".MediaCarousel_BelowCaption");null==n||n.classList.add("MediaCarousel_GalleryActive"),null==r||r.classList.add("MediaCarousel_GalleryActive"),null==s||s.forEach(e=>{if(e.classList.remove("galleryItemVisible"),e.classList.add("galleryItemHide"),e.getAttribute("id")=="MCI_"+a){e.classList.add("galleryItemVisible"),e.classList.remove("galleryItemHide");let t=e.querySelector(".TIL_caption");o&&(o.innerHTML=null==t?void 0:t.innerHTML)}}),1==a&&(null==n||n.classList.remove("MediaCarousel_GalleryActive")),a==t&&(null==r||r.classList.remove("MediaCarousel_GalleryActive"))},u=()=>{r>1&&(l(r-1),m(r-1))},h=()=>{r<t&&(l(r+1),m(r+1))};return(0,i.jsxs)("div",{className:"MediaCarousel TopicTimelineSpacer "+c+" "+d,"data-lbid":e.lbId,id:e.codename+e.lbId+e.num,children:[(0,i.jsx)("div",{className:"CardTopEdge"}),(0,i.jsxs)("div",{className:"MediaCarousel_GalleryHolder",children:[(0,i.jsxs)("div",{className:"MediaCarousel_Header",children:[(0,i.jsx)("div",{className:"MediaCarousel_Title",children:e.data.elements.title.value}),(0,i.jsx)("div",{className:"MediaCarousel_Subtitle",dangerouslySetInnerHTML:{__html:e.data.elements.subtitle.value}})]}),(0,i.jsx)("div",{className:"MediaCarousel_GalleryItems",children:e.data.elements.content.value.map((t,a)=>(0,i.jsx)("div",{className:"MediaCarousel_GalleryItem",id:"MCI_"+(a+1),children:(0,i.jsx)(n.Z,{codename:t,parentItem:e.data},"MCI_"+a)},"MCI_"+a))}),(0,i.jsxs)("div",{className:"MediaCarousel_Below",children:[(0,i.jsx)("div",{className:"MediaCarousel_BelowCaption"}),(0,i.jsxs)("div",{className:"MediaCarousel_UI",children:[(0,i.jsx)("div",{className:"MediaCarousel_GalleryL",onClick:u,children:(0,i.jsx)(o(),{className:"MediaCarousel_Left",width:44,height:15,src:"/LI_Left.svg",alt:"MediaCarousel_Left"})}),(0,i.jsxs)("div",{className:"MediaCarousel_GalleryNumber",children:[(0,i.jsx)("span",{className:"MediaCarousel_BelowLeftCount1",children:r}),(0,i.jsx)("span",{className:"MediaCarousel_BelowLeftCount2",children:"of"}),(0,i.jsx)("span",{className:"MediaCarousel_BelowLeftCount3",children:t})]}),(0,i.jsx)("div",{className:"MediaCarousel_GalleryR MediaCarousel_GalleryActive",onClick:h,children:(0,i.jsx)(o(),{className:"MediaCarousel_Right",width:44,height:15,src:"/LI_Right.svg",alt:"MediaCarousel_Right"})})]})]})]}),(0,i.jsx)("div",{className:"CardBottomEdge"})]})}t.Z=(0,s.memo)(l)},6064:function(e,t,a){"use strict";a.d(t,{Z:function(){return es}});var i=a(5893),s=a(7294),n=a(145),r=a(957);function o(e){let t=e=>{e.target.value},a=e=>{e.target.value},s=e=>{e.target.value};async function n(){var e=document.querySelector("#ContactFirst"),t=document.querySelector("#ContactLast"),a=document.querySelector("#ContactEmail"),i=document.querySelector("#KPage_ContactUs_commentsField");null===r.H||void 0===r.H||r.H.trackEvent({name:"Contact Us Page Submit",properties:{firstName:e.value,lastName:t.value,email:a.value,comment:i.value}});let s=document.querySelector(".ContactUs_Feedback");s&&s.classList.remove("Hidden");let n=document.querySelector(".ContactUs_Form");n&&n.classList.add("Hidden")}return(0,i.jsx)("div",{className:"KPage_ContactUs",children:(0,i.jsxs)("div",{className:"AccountHolderForm",children:[(0,i.jsxs)("div",{className:"ContactUs_Form",id:"ContactUs_Form",children:[(0,i.jsx)("div",{className:"AuthHolderFormHeadline",children:"Contact Us"}),(0,i.jsxs)("div",{className:"AuthHolderFormPairedInputs",children:[(0,i.jsxs)("div",{className:"AuthHolderFormInput",children:[(0,i.jsx)("div",{className:"AuthHolderFormInputPlaceHolder",children:"First name"}),(0,i.jsx)("input",{className:"AuthHolderFormInputField",placeholder:"First name",name:"firstname",id:"ContactFirst",onChange:t})]}),(0,i.jsxs)("div",{className:"AuthHolderFormInput",children:[(0,i.jsx)("div",{className:"AuthHolderFormInputPlaceHolder",children:"Last name"}),(0,i.jsx)("input",{className:"AuthHolderFormInputField",placeholder:"Last name",name:"lastname",id:"ContactLast",onChange:a})]})]}),(0,i.jsxs)("div",{className:"AuthHolderFormInput",children:[(0,i.jsx)("div",{className:"AuthHolderFormInputPlaceHolder",children:"Your email"}),(0,i.jsx)("input",{className:"AuthHolderFormInputField",placeholder:"Email Address",name:"email",id:"ContactEmail",type:"email",onChange:s}),(0,i.jsx)("div",{id:"AccountEmailError",className:"AuthHolderFormInputUnderline",children:"Please enter a valid email address"})]}),(0,i.jsx)("textarea",{className:"KPage_ContactUs_textArea",rows:5,cols:60,maxLength:1e3,name:"KPage_ContactUs_commentsField",placeholder:"Send us your questions and feedback",id:"KPage_ContactUs_commentsField"}),(0,i.jsx)("div",{className:"AuthHolderFormButton",onClick:()=>n(),children:(0,i.jsx)("div",{className:"AuthHolderFormButtonLabel",children:"Send"})})]}),(0,i.jsx)("div",{className:"ContactUs_Feedback Hidden",children:"Thank You!"})]})})}var l=(0,s.memo)(o),c=a(5675),d=a.n(c);function m(e){return setTimeout(()=>{let e=document.querySelector(".KPage_404");e&&e.classList.add("KPage_404_On")},2e3),(0,i.jsxs)("div",{className:"KPage_404",children:[(0,i.jsx)("div",{className:"KPage_404_Top",children:(0,i.jsx)(d(),{className:"KPage_404_Image",width:400,height:186,src:"/a-404-knockout_400x186.png",alt:"404 image"})}),(0,i.jsx)("div",{className:"AuthHolderFormHeadline",children:"Uh oh."}),(0,i.jsx)("div",{className:"AuthSmall",children:"That page doesn't exist."}),(0,i.jsxs)("div",{className:"KPage_404_Hidden",children:["No Article: ... ",e.pagename]})]})}var u=(0,s.memo)(m),h=a(5376),g=a(9734),p=a(4020);function _(e){let{data:t}=(0,g.ZP)(e.topicCN);if(!t||""==e.topicCN)return(0,i.jsx)(i.Fragment,{});if("topic"==t.system.type){let a=t,s={};s.copy=a.elements.mySection.value[0],s.link=s.copy.toLowerCase();let n={};return n.copy=a.system.name,n.link=s.link+"/"+n.copy.toLowerCase(),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.Z,{item:s}),(0,i.jsx)(p.Z,{item:n})]})}if("section"!=t.system.type)return(0,i.jsx)(i.Fragment,{});{let r=t,o={};return o.copy=r.system.name,o.link=o.copy.toLowerCase(),(0,i.jsx)(p.Z,{item:o})}}var v=(0,s.memo)(_),f=a(2941),x=a(1590);function b(e){var t="";e.data.elements.pageTaxonomySetLocations.value.length>0&&(t=e.data.elements.pageTaxonomySetLocations.value[0]);var a="",s="";return e.data.elements.pageImageSetBlogroll.value.length>0&&(s=(0,x.t6)(e.data.elements.pageImageSetBlogroll.value[0].url),a=e.data.elements.pageImageSetBlogroll.value[0].description),(0,i.jsx)("div",{className:"KSearchResultItem KSearchResultItem_Article","data-date":e.data.elements.date.value,"data-score":e.score,children:(0,i.jsxs)("div",{className:"searchResult Card","data-cardtype":"KSearchResult","data-codename":e.data.system.codename,children:[(0,i.jsxs)("div",{className:"searchResultLeft",children:[(0,i.jsx)("div",{className:"searchResultEyebrow",dangerouslySetInnerHTML:{__html:e.data.elements.eyebrow.value}}),(0,i.jsx)(f.Z,{href:"search_reader?readerfocus="+e.data.system.codename,children:(0,i.jsx)("div",{className:"searchResultHeadlineHolder",children:(0,i.jsx)("div",{className:"searchResultHeadline",dangerouslySetInnerHTML:{__html:e.data.elements.articleTitle.value}})})}),(0,i.jsx)("div",{className:"searchResultDesc GNDescCopy",dangerouslySetInnerHTML:{__html:e.data.elements.articleSubtitle.value}}),(0,i.jsx)("div",{className:"KBreadCrumbs",children:(0,i.jsx)(v,{topicCN:t})})]}),(0,i.jsxs)("div",{className:"searchResultBack",children:[(0,i.jsx)("img",{className:"DesktopOnly",src:s,alt:a}),(0,i.jsx)("img",{className:"TabletOnly",src:s,alt:a}),(0,i.jsx)("img",{className:"MobileOnly",src:s,alt:a})]})]})})}var C=(0,s.memo)(b);function S(e){let t={};t.copy="My podcasts",t.link="meet-bill/my-podcasts";var a="",s="";return e.data.elements.thumbnail&&e.data.elements.thumbnail.value.length>0&&(s=(0,x.t6)(e.data.elements.thumbnail.value[0].url),a=e.data.elements.thumbnail.value[0].description),(0,i.jsx)("div",{className:"KSearchResultItem KSearchResultItem_Podcast","data-date":e.data.elements.podcastAirDate.value,"data-score":20*e.score,children:(0,i.jsxs)("div",{className:"searchResult Card","data-cardtype":"KSearchResult","data-codename":e.data.system.codename,children:[(0,i.jsxs)("div",{className:"searchResultLeft",children:[(0,i.jsx)("div",{className:"searchResultEyebrow",dangerouslySetInnerHTML:{__html:e.data.elements.podcastSeasonName.value}}),(0,i.jsx)("div",{className:"searchResultHeadlineHolder",children:(0,i.jsx)(f.Z,{href:"search_reader?readerfocus="+e.data.elements.articleLink.value,children:(0,i.jsx)("div",{className:"searchResultHeadline",dangerouslySetInnerHTML:{__html:e.data.elements.title.value}})})}),(0,i.jsx)("div",{className:"searchResultDesc GNDescCopy",dangerouslySetInnerHTML:{__html:e.data.elements.description.value}}),(0,i.jsx)("div",{className:"KBreadCrumbs",children:(0,i.jsx)(p.Z,{item:t})})]}),(0,i.jsx)("div",{className:"searchResultBack",style:{background:"#166eb6"},children:(0,i.jsx)("div",{className:"searchResultForei",style:{display:"flex",backgroundImage:"url("+s+"?w=128&h=128&fit=clip&fm=jpg&q=75"}})})]})})}var I=(0,s.memo)(S),T=a(9868);function N(e){let t=(0,T.Q)(e.data.elements.kloudinary.value);t.ratio;var a=(0,x.uL)(t.width,t.height),s="";let n=t.poster.split("/");n.length>1&&(s="https://videos.gatesnotes.com/image/upload/c_scale,w_"+t.width+",ar_"+a+"/q_auto/video/"+n[n.length-1]);var r="",o="";e.data.elements.posterImage.value.length>0?(o=(0,x.t6)(e.data.elements.posterImage.value[0].url)+"?w=160&h=256&fit=clip&fm=jpg&q=75",r=e.data.elements.posterImage.value[0].description):o=s,o.includes(".jpg")||(o="https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/62bd3dfa-ad15-471e-9ace-a0524ad1c75e/Fallback-Image-16.9.jpg");var l=e.data.elements.description.value;return""==e.data.elements.description.value&&(l=e.data.elements.title.value),(0,i.jsx)("div",{className:"KSearchResultItem KSearchResultItem_Video","data-date":e.data.elements.videoDate.value,"data-score":538*e.score,children:(0,i.jsxs)("div",{className:"searchResult Card","data-cardtype":"KSearchResult","data-codename":e.data.system.codename,children:[(0,i.jsxs)("div",{className:"searchResultLeft",children:[(0,i.jsx)("div",{className:"searchResultEyebrow",dangerouslySetInnerHTML:{__html:e.data.elements.articleName.value}}),(0,i.jsx)("div",{className:"searchResultDesc GNDescCopy",dangerouslySetInnerHTML:{__html:l}})]}),(0,i.jsx)("div",{className:"searchResultBack",children:(0,i.jsxs)(f.Z,{href:"search_lightbox?lightboxfocus="+e.data.system.codename,className:"searchResultBackImg GNLink",children:[(0,i.jsx)("div",{className:"ImgPlayButton",style:{display:"flex"},children:(0,i.jsx)("img",{className:"gnIcon",src:"/play_circle.svg",alt:"Play button"})}),(0,i.jsx)("div",{className:"searchResultBacki",style:{display:"flex",cursor:"pointer",backgroundImage:"url("+o+")"}})]})})]})})}var E=(0,s.memo)(N);function w(e){let{data:t}=(0,g.ZP)(e.codename);if(!t)return(0,i.jsx)(i.Fragment,{});switch(t.system.type){case"article":{let a=t;return(0,i.jsx)(C,{data:a,score:e.score})}case"inline_video_item":{let s=t;return(0,i.jsx)(E,{data:s,score:e.score})}case"podcast_episode":{let n=t;return(0,i.jsx)(I,{data:n,score:e.score})}default:return(0,i.jsx)(i.Fragment,{})}}var k=(0,s.memo)(w);function y(e){let{data:t}=(0,g.ZP)(e.codename);if(!t)return(0,i.jsx)(i.Fragment,{});let a=t;var s="",n="",r=!1;a.elements.pageImageSetBlogroll.value.length>0&&(s=(0,x.t6)(a.elements.pageImageSetBlogroll.value[0].url),n=a.elements.pageImageSetBlogroll.value[0].description,r=!0);let o=new Date;return o.setFullYear(o.getFullYear()-1),(0,i.jsx)("div",{className:"SR_SectionCard","data-score":e.score-500,"data-date":o,children:(0,i.jsx)("div",{className:"SR_SectionCardContainer",children:(0,i.jsxs)("div",{className:"SR_SectionCardContent",children:[(0,i.jsx)("div",{className:"SR_SectionCardTextContainer",children:(0,i.jsx)("div",{className:"SR_SectionCardCopy",children:(0,i.jsx)(f.Z,{href:a.system.codename,children:a.elements.title.value})})}),(0,i.jsx)("div",{className:"SR_SectionCardImage",style:{backgroundColor:a.elements.backgroundSnippetHexColor.value},children:(0,i.jsx)("img",{className:"SR_SectionCardImageImg",style:{display:r?"block":"none"},src:s+"?h=213&ar=8/5&fit=clip&fm=jpg&q=75",alt:n})})]})})})}var A=(0,s.memo)(y);function j(e){let{data:t}=(0,g.ZP)(e.codename);if(!t)return(0,i.jsx)(i.Fragment,{});let a=t;var s="";a.elements.mySection.value&&(s=a.elements.mySection.value[0]);var n="",r="",o=!1;a.elements.pageImageSetBlogroll.value.length>0&&(n=(0,x.t6)(a.elements.pageImageSetBlogroll.value[0].url),r=a.elements.pageImageSetBlogroll.value[0].description,o=!0);let l={};l.copy=s.replaceAll("_"," "),l.link=s;let c=new Date;return c.setFullYear(c.getFullYear()-1),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(A,{codename:s,score:e.score}),(0,i.jsx)("div",{className:"SR_TopicCard","data-score":e.score+500,"data-date":c,children:(0,i.jsx)("div",{className:"SR_SectionCardContainer",children:(0,i.jsxs)("div",{className:"SR_SectionCardContent",children:[(0,i.jsxs)("div",{className:"SR_SectionCardTextContainer",children:[(0,i.jsx)("div",{className:"SR_SectionCardCopy",children:(0,i.jsx)(f.Z,{href:a.system.codename,children:a.elements.title.value})}),(0,i.jsx)(p.Z,{item:l})]}),(0,i.jsx)("div",{className:"SR_SectionCardImage",style:{backgroundColor:a.elements.backgroundSnippetHexColor.value},children:(0,i.jsx)("img",{className:"SR_SectionCardImageImg",style:{display:o?"block":"none"},src:n+"?h=213&ar=8/5&fit=clip&fm=jpg&q=75",alt:r})})]})})})]})}var L=(0,s.memo)(j);function O(e){let{data:t}=(0,g.ZP)(e.codename);if(!t)return(0,i.jsx)(i.Fragment,{});let a=t;var s="";return a.elements.pageTaxonomySetLocations.value.length>0&&(s=a.elements.pageTaxonomySetLocations.value[0]),(0,i.jsx)(L,{codename:s,score:e.score})}var B=(0,s.memo)(O),R=a(7206);async function M(e){let t=await fetch(((0,R.B)()?h.lf:h.CN)+"?topic=%22"+e+"%22&nowalk=true",{method:"GET",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),a=await t.json();return a.error?"error":a}function D(e){let t='{"hits":{"articles":[],"memos":[],"podcasts":[],"videos":[]},"sections":{"articles":[],"memos":[],"podcasts":[],"videos":[]},"topics":{"articles":[],"memos":[],"podcasts":[],"videos":[]},"cardsandcolls":{"articles":{"cards":[],"collections":[]},"memos":{"cards":[],"collections":[]},"podcasts":{"cards":[],"collections":[]},"videos":{"cards":[],"collections":[]}}}';var a=JSON.parse(t);let[n,r]=(0,s.useState)(a);async function o(){let e=document.getElementById("SearchInput");if(e&&e.removeEventListener("keyup",h),""!=u.current){let t=await M(u.current);if(u.current="",""!=t&&"error"!=t){r(t);let a=t;var i=a.hits.articles.slice(0,10);localStorage.setItem("searcharticles",JSON.stringify(i));let s=a.hits.videos.slice(0,6);localStorage.setItem("searchvideos",JSON.stringify(s)),l.current=!0}}}let l=(0,s.useRef)(!0);function c(){if(l.current){let e=document.querySelector(".Search_ResultsAreaInner_Articles"),t=Array.from((null==e?void 0:e.children)||[]);t.sort((e,t)=>{let a=e.dataset.date,i=t.dataset.date,s=new Date(a),n=new Date(i);return n.getTime()-s.getTime()}),t.forEach(t=>null==e?void 0:e.appendChild(t)),t.length>4&&(l.current=!1)}}function m(){let e=document.getElementById("SearchInput");u.current=e.value}let u=(0,s.useRef)("Books"),h=e=>{e.preventDefault(),("Enter"==e.code||"Enter"==e.key)&&o()};return(0,s.useEffect)(()=>{let e=document.getElementById("SearchInput");e&&e.addEventListener("keyup",h);var t=(0,x.ak)("search");let a=document.getElementById("SearchInput");a&&t?a.value!=t&&"Books"==u.current&&(a.value=t,u.current=t,o()):""!=u.current&&o(),setInterval(()=>{c()},1e3)}),(0,i.jsxs)("div",{className:"SearchPageHeader",children:[(0,i.jsxs)("div",{className:"SearchField",children:[(0,i.jsx)("input",{className:"SearchInput",placeholder:"Search",name:"Search",id:"SearchInput",autoComplete:"off",onChange:m}),(0,i.jsx)("div",{className:"SearchIcon",onClick:o,children:(0,i.jsx)(d(),{className:"SearchIconImg",width:20,height:18,src:"/Search.svg",alt:"icon_Search"})})]}),(0,i.jsxs)("div",{className:"SearchDetail",children:[(0,i.jsx)("div",{className:"CardBottomEdge"}),(0,i.jsx)("div",{className:"Search_Filter",children:(0,i.jsxs)("div",{className:"Search_Content",children:[(0,i.jsxs)("div",{className:"Search_Buttons",children:[(0,i.jsx)("div",{className:"Search_Icons",children:(0,i.jsx)(d(),{className:"Search_Icon",width:20,height:18,src:"/icon_Filter.svg",alt:"icon_SearchFilter"})}),(0,i.jsxs)("div",{className:"Search_Name",children:[(0,i.jsx)("div",{className:"Search_NameCopy",children:"Filters"}),(0,i.jsx)("div",{className:"Search_NameBadge",children:(0,i.jsx)(d(),{className:"Search_Badge",width:20,height:18,src:"/icon_Badge.svg",alt:"icon_Search_Badge"})})]})]}),(0,i.jsx)("div",{className:"Search_Clear",children:"Clear all filters"})]})}),(0,i.jsx)("div",{className:"Search_Results"}),(0,i.jsx)("div",{className:"Search_TopicLabel",children:(0,i.jsx)("div",{className:"Search_TopicLabelCopy",children:"125 results"})})]}),(0,i.jsx)("div",{className:"Search_ResultsArea",children:(0,i.jsxs)("div",{className:"Search_ResultsAreaInner",children:[(0,i.jsx)("div",{className:"Search_ResultsAreaInner_Articles",children:n.hits.articles.slice(0,10).map((e,t)=>(0,i.jsx)(k,{codename:e.codename,score:e.score},"SR"+e.codename+t))}),(0,i.jsx)("div",{className:"Search_ResultsAreaInner_TopicSection",children:n.hits.articles.slice(0,1).map((e,t)=>(0,i.jsx)(B,{codename:n.hits.articles[0].codename,score:e.score},"SRST"+e.codename+t))}),(0,i.jsx)("div",{className:"Search_ResultsAreaInner_Videos",children:n.hits.videos.slice(0,6).map((e,t)=>(0,i.jsx)(k,{codename:e.codename,score:e.score},"SR"+e.codename+t))}),(0,i.jsx)("div",{className:"Search_ResultsEmpty Search_ResultsEmpty"+n.hits.articles.length+n.hits.videos.length,children:"Sorry, there are no posts that match your query."})]})})]})}var H=(0,s.memo)(D),F=a(7287),P=a(1163),W=a.n(P),G=a(2121),U=a(8340);function V(e){let t=(0,s.useContext)(G.bW);return(0,s.useEffect)(()=>{t.auth?W().push("/","",{scroll:!1,shallow:!0}):(0,U.ET)()}),(0,i.jsx)("div",{className:"KPage_Signup",children:(0,i.jsx)(F.Z,{})})}var Z=(0,s.memo)(V),Y=a(730);function q(e){let[t,a]=(0,s.useState)(!1);function n(){W().back()}let r=localStorage.getItem("searchvideos");r||W().push("/","",{scroll:!1,shallow:!0}),"[]"==r&&W().push("/","",{scroll:!1,shallow:!0});let o=JSON.parse(r),l=(0,s.useRef)(null);return(0,s.useEffect)(()=>{(0,x.VE)();let e={root:null,rootMargin:"200px",threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]},t=new IntersectionObserver(e=>{let a=e[0];a.isIntersecting&&(t.disconnect(),n())},e);setTimeout(()=>{l.current&&t.observe(l.current)},1e4);let i=()=>{W().asPath===window.location.pathname&&a(!0)};W().events.on("routeChangeComplete",i);var s=document.querySelectorAll(".LightboxHolder");s.forEach(e=>{e.classList.remove("lightboxitemSnap")});let r=document.querySelector(".LightboxHolderInner");var o=(0,x.ak)("lightboxfocus");let c=document.getElementById("lightbox_"+o+"_lb");return c&&(null==r||r.prepend(c)),setTimeout(()=>{s.forEach(e=>{e.classList.add("lightboxitemSnap")})},1e3),()=>{W().events.off("routeChangeComplete",i)}}),(0,i.jsxs)("div",{className:"LightboxHolder lightboxitemSnap Page_Search_Lightbox",style:{display:"block"},id:"LightboxHolder",children:[(0,i.jsx)("div",{className:"icon_Holder",id:"LightboxHolderClose",onClick(){n()},children:(0,i.jsx)(d(),{className:"icon_Img icon_CloseIcon",width:44,height:15,src:"/icon_Close.svg",alt:"icon_Close"})}),(0,i.jsxs)("div",{className:"LightboxHolderInner",id:"LightboxHolderInner",children:[o.map(e=>(0,i.jsx)(Y.default,{num:0,codename:e.codename,parentItem:o},e.codename)),(0,i.jsx)("div",{className:"LightboxEndFrame",children:(0,i.jsx)("div",{className:"LightboxEndClose",ref:l})})]})]})}var K=(0,s.memo)(q),z=a(6501);function Q(e){let t=localStorage.getItem("searcharticles");(0,s.useEffect)(()=>{let e=document.querySelector(".FooterHolder"),t=document.querySelector("#articlesHolder");if(e&&t){setTimeout(()=>{t.append(e)},8e3);var a=(0,x.O$)()/2;e.setAttribute("style","left: "+a+"px")}function i(){let e=document.querySelector(".articlesHolder"),t=Array.from((null==e?void 0:e.children)||[]);t.sort((e,t)=>{let a=e.dataset.date,i=t.dataset.date,s=new Date(a),n=new Date(i);return n.getTime()-s.getTime()}),t.forEach(t=>null==e?void 0:e.appendChild(t));var a=(0,x.ak)("readerfocus");let i=document.getElementById("reader_"+a.replaceAll("-","_").toLowerCase());i&&(null==e||e.prepend(i))}setTimeout(()=>{i()},100)}),t||W().push("/","",{scroll:!1,shallow:!0}),"[]"==t&&W().push("/","",{scroll:!1,shallow:!0});var a=0;let n=JSON.parse(t);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"articlesHolder articleAutoPlayOff",style:{display:"block",left:a+"px"},id:"articlesHolder",children:n.map(e=>(0,i.jsx)(z.default,{name:e.codename,topic:"",section:""},e.codename))}),(0,i.jsx)("div",{id:"reparentHolder"})]})}var J=(0,s.memo)(Q),X=a(5987);function $(e){let{data:t}=(0,g.ZP)(e.codename);if(!t)return(0,i.jsx)(i.Fragment,{});let a=t;if(a.elements.specialArticleType.value.length>0&&"Chapter"==a.elements.specialArticleType.value[0].name)return(0,i.jsx)(i.Fragment,{});var s="";a.elements.pageTaxonomySetLocations.value.length>0&&(s=a.elements.pageTaxonomySetLocations.value[0]);var n="",r="";return a.elements.pageImageSetBlogroll.value.length>0&&(r=(0,x.t6)(a.elements.pageImageSetBlogroll.value[0].url),n=a.elements.pageImageSetBlogroll.value[0].description),(0,i.jsx)("div",{className:"KSearchResultItem KSearchResultItem_Article","data-date":a.elements.date.value,children:(0,i.jsxs)("div",{className:"searchResult Card","data-cardtype":"KSearchResult","data-codename":a.system.codename,children:[(0,i.jsxs)("div",{className:"searchResultLeft",children:[(0,i.jsx)("div",{className:"searchResultEyebrow",dangerouslySetInnerHTML:{__html:a.elements.eyebrow.value}}),(0,i.jsx)(f.Z,{href:a.system.codename,children:(0,i.jsx)("div",{className:"searchResultHeadlineHolder",children:(0,i.jsx)("div",{className:"searchResultHeadline",dangerouslySetInnerHTML:{__html:a.elements.articleTitle.value}})})}),(0,i.jsx)("div",{className:"searchResultDesc GNDescCopy",dangerouslySetInnerHTML:{__html:a.elements.articleSubtitle.value}}),(0,i.jsx)("div",{className:"KBreadCrumbs",children:(0,i.jsx)(v,{topicCN:s})})]}),(0,i.jsxs)("div",{className:"searchResultBack",children:[(0,i.jsx)("img",{className:"DesktopOnly",src:r,alt:n}),(0,i.jsx)("img",{className:"TabletOnly",src:r,alt:n}),(0,i.jsx)("img",{className:"MobileOnly",src:r,alt:n})]})]})})}var ee=(0,s.memo)($);function et(e){let[t,a]=(0,s.useState)({data:""}),n=(0,x.ak)("startArticle");var r=0;if(n&&(r=parseInt(n)),(0,s.useEffect)(()=>{""==t.data&&e();async function e(){let e=await (0,X.J)(r);return"0"!=e&&a({...t,data:e}),e}},[t]),!t.data)return(0,i.jsx)(i.Fragment,{children:"no data"});{let o=t.data;return(0,i.jsx)("div",{className:"KPage_AllRecentArticles",children:o.data.article_All.items.map((e,t)=>(0,i.jsx)(ee,{codename:o.data.article_All.items[t]._system_.codename},t))})}}var ea=(0,s.memo)(et);function ei(e){switch(e.pageName){case"search_lightbox":return(0,i.jsx)(K,{});case"search_reader":return(0,i.jsx)(J,{});case"account":return(0,i.jsx)(n.Z,{});case"contact_us":return(0,i.jsx)(l,{});case"search":return(0,i.jsx)(H,{});case"all_recent_articles":return(0,i.jsx)(ea,{});case"signin":case"signup":case"sign-in":case"sign-up":return(0,i.jsx)(Z,{pagename:e.pageName});default:return(0,i.jsx)(u,{pagename:e.pageName})}}var es=(0,s.memo)(ei)},145:function(e,t,a){"use strict";a.d(t,{U:function(){return h}});var i=a(5893),s=a(7294),n=a(5675),r=a.n(n),o=a(521),l=a(2121),c=a(1163),d=a.n(c);function m(){localStorage.removeItem("UserInfo2"),localStorage.removeItem("accessToken"),localStorage.removeItem("gniPwd"),localStorage.removeItem("gniState"),localStorage.removeItem("gniUsr"),d().push("/","",{scroll:!1,shallow:!0})}function u(){(0,o.qt)(localStorage.getItem("gniUsr"))}function h(){(0,o.H6)().then(function(e){})}function g(){var e=(0,o.me)("CurrentEmail");(0,o.oR)(e).then(function(e){if("OK"==e){let t=document.getElementById("AuthHolderFormAccountPasswordError");t&&t.classList.remove("AuthHolderOn");var a=document.getElementById("ChangePasswordExtra");a&&a.classList.remove("ChangePasswordExtraOn")}})}function p(e,t){(0,o.cJ)(e,t).then(function(e){if("OK"==e){let t=document.getElementById("AuthHolderFormAccountPasswordOK");t&&t.classList.add("AuthHolderOn");let a=document.getElementById("AuthHolderFormAccountPasswordError");a&&a.classList.remove("AuthHolderOn");var i=document.getElementById("ChangePasswordExtra");i&&i.classList.remove("ChangePasswordExtraOn")}else{let s=document.getElementById("AuthHolderFormAccountPasswordError");s&&s.classList.add("AuthHolderOn");let n=document.getElementById("AuthHolderFormAccountPasswordOK");n&&n.classList.remove("AuthHolderOn")}})}var _=0;function v(e){let t=(0,s.useContext)(l.bW);var a={FirstName:"",LastName:"",FullName:"",CurrentEmail:"",IsApproved:"",AccountCreatedDate:""};t.auth&&(a=JSON.parse(localStorage.getItem("UserInfo2"))),!t.auth&&(_+=1)>1&&d().push("/","",{scroll:!1,shallow:!0});let n=e=>{let t=e.target.value;a.FirstName=t,a.FullName=t+" "+a.LastName,(0,o.l2)("FirstName",t),(0,o.l2)("FullName",a.FullName),setTimeout(()=>{v()},1e3)},c=e=>{let t=e.target.value;a.LastName=t,a.FullName=a.FirstName+" "+t,(0,o.l2)("LastName",t),(0,o.l2)("FullName",a.FullName),setTimeout(()=>{v()},1e3)};async function v(){let e=await (0,o.nt)();if("OK"==e){let t=document.getElementById("AccountHolderTextName");t&&(t.innerHTML=(0,o.me)("FullName"))}}var f=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;async function x(e){if(f.test(e)){let t=await (0,o.EC)(e);if(""==t){a.CurrentEmail=e,(0,o.l2)("CurrentEmail",e),(0,o.WG)(e);let i=document.getElementById("AccountEmailError");i&&(i.innerHTML="Your email has been updated",i.classList.add("AuthHolderOnGreen"))}else{let s=document.getElementById("AccountEmailError");s&&(s.innerHTML="Sorry we were unable to change your email at this time",s.classList.add("AuthHolderOn"),s.classList.remove("AuthHolderOnGreen"))}}else{let n=document.getElementById("AccountEmailError");n&&(n.innerHTML="Please enter a valid email address",n.classList.add("AuthHolderOn"),n.classList.remove("AuthHolderOnGreen"))}}let b=e=>{let t=e.target.value;x(t)};var C="";let S=e=>{let t=e.target.value;C=t},I=e=>{var t=document.getElementById("ChangePasswordExtra");t&&t.classList.add("ChangePasswordExtraOn")};var T="";let N=e=>{let t=e.target.value;T=t};var E=!0,w="",k="",y="",A="",j=new Date;if(""!=a.FirstName){w=a.FirstName,k=a.LastName,y=a.FullName,A=a.CurrentEmail,a.IsApproved&&""!=a.IsApproved&&"false"!=a.IsApproved&&(E=!1),j=new Date(a.AccountCreatedDate);let L=document.getElementById("AccountFirst");L.value=w;let O=document.getElementById("AccountLast");O.value=k;let B=document.getElementById("AccountEmail");B.value=A}return(0,s.useEffect)(()=>{}),(0,i.jsxs)("div",{className:"AccountHolder",children:[(0,i.jsxs)("div",{className:"AccountHolderHeader",children:[(0,i.jsxs)("div",{className:"AccountHolderText",children:[(0,i.jsx)("div",{className:"AccountHolderTextName",id:"AccountHolderTextName",children:y}),(0,i.jsxs)("div",{className:"AccountHolderTextCopy",children:["Insider since ",(0,i.jsx)("span",{className:"AccountHolderTextCopyYear",children:j.getFullYear()})]})]}),(0,i.jsx)("div",{className:"CardBottomEdge"})]}),(0,i.jsxs)("div",{className:"AccountHolderWarning",style:{display:E?"flex":"none"},children:[(0,i.jsx)("div",{className:"AccountHolderWarningIcons",children:(0,i.jsx)(r(),{className:"AccountHolderWarningIcon",width:20,height:18,src:"/icon_CheckmarkRed.svg",alt:"icon_CheckmarkRed"})}),(0,i.jsxs)("div",{className:"AccountHolderWarningFrame",children:[(0,i.jsx)("div",{className:"AccountHolderWarningCopy1",children:"Please verify your account"}),(0,i.jsx)("div",{className:"AccountHolderWarningCopy2",onClick:()=>h(),children:"Resend verification email"})]})]}),(0,i.jsxs)("div",{className:"AccountHolderForm",children:[(0,i.jsxs)("div",{className:"AuthHolderForm",id:"Auth_PersonalInfo_Form",children:[(0,i.jsx)("div",{className:"AuthHolderFormHeadline",children:"Personal information"}),(0,i.jsxs)("div",{className:"AuthHolderFormPairedInputs",children:[(0,i.jsxs)("div",{className:"AuthHolderFormInput",children:[(0,i.jsx)("div",{className:"AuthHolderFormInputPlaceHolder",children:"First name"}),(0,i.jsx)("input",{className:"AuthHolderFormInputField",placeholder:"First name",name:"firstname",id:"AccountFirst",onChange:n}),(0,i.jsx)("div",{className:"AuthHolderFormInputUnderline",children:"Error copy"})]}),(0,i.jsxs)("div",{className:"AuthHolderFormInput",children:[(0,i.jsx)("div",{className:"AuthHolderFormInputPlaceHolder",children:"Last name"}),(0,i.jsx)("input",{className:"AuthHolderFormInputField",placeholder:"Last name",name:"lastname",id:"AccountLast",onChange:c}),(0,i.jsx)("div",{className:"AuthHolderFormInputUnderline",children:"Error copy"})]})]}),(0,i.jsxs)("div",{className:"AuthHolderFormInput",children:[(0,i.jsx)("div",{className:"AuthHolderFormInputPlaceHolder",children:"Your email"}),(0,i.jsx)("input",{className:"AuthHolderFormInputField",placeholder:"Email Address",name:"email",id:"AccountEmail",type:"email",onChange:b}),(0,i.jsx)("div",{id:"AccountEmailError",className:"AuthHolderFormInputUnderline",children:"Please enter a valid email address"})]}),(0,i.jsx)("div",{className:"AuthHolderFormAccountPassword",children:(0,i.jsxs)("div",{className:"AuthHolderFormInput",children:[(0,i.jsx)("div",{className:"AuthHolderFormInputPlaceHolder",children:"password"}),(0,i.jsx)("input",{className:"AuthHolderFormInputField",type:"password",placeholder:"Old password",name:"password",id:"AccountPassword",onChange:S,onFocus:I}),(0,i.jsxs)("div",{className:"ChangePasswordExtra",id:"ChangePasswordExtra",children:[(0,i.jsx)("input",{className:"AuthHolderFormInputField",type:"password",placeholder:"New password",name:"passwordnew",id:"AccountPasswordNew",onChange:N}),(0,i.jsx)("div",{className:"AuthVSpace"}),(0,i.jsx)("div",{className:"AuthHolderFormButton",onClick:()=>p(C,T),children:(0,i.jsx)("div",{className:"AuthHolderFormButtonLabel",children:"Save new password"})}),(0,i.jsxs)("div",{id:"AuthHolderFormAccountPasswordError",className:"AuthHolderFormInputUnderline",children:["We're unable to change the password, check that the old password is correct and the new one is at least 7 characters, or ",(0,i.jsx)("span",{className:"AuthHolderFormReset",onClick:()=>g(),children:"click here to reset your password"})," via email."]})]}),(0,i.jsx)("div",{id:"AuthHolderFormAccountPasswordOK",className:"AuthHolderFormInputUnderline AuthHolderFormInputUnderlineOK",children:"Your password has been reset."})]})})]}),(0,i.jsxs)("div",{className:"AuthHolderForm",id:"Auth_YourInterests_Form",children:[(0,i.jsx)("div",{className:"AuthVSpace"}),(0,i.jsx)("div",{className:"AuthHolderFormHeadline",children:"Your interests"}),(0,i.jsx)("div",{className:"AuthHolderFormBody",children:"Select topics that interest you to personalize your experience on Gates Notes."}),(0,i.jsx)("div",{className:"AuthTagsGroup",children:(0,i.jsxs)("div",{className:"AuthTags",children:[(0,i.jsx)("div",{className:"AuthTag AuthTagOn",children:(0,i.jsx)("div",{className:"AuthTagTitle",children:"Accelerate climate innovation"})}),(0,i.jsx)("div",{className:"AuthTag",children:(0,i.jsx)("div",{className:"AuthTagTitle",children:"Save Lives"})}),(0,i.jsx)("div",{className:"AuthTag",children:(0,i.jsx)("div",{className:"AuthTagTitle",children:"Cure Alzheimer's"})}),(0,i.jsx)("div",{className:"AuthTag",children:(0,i.jsx)("div",{className:"AuthTagTitle",children:"Provide Quality Education"})})]})})]}),(0,i.jsxs)("div",{className:"AuthHolderForm",id:"Auth_Notifications_Form",style:{display:"none"},children:[(0,i.jsx)("div",{className:"AuthVSpace"}),(0,i.jsx)("div",{className:"AuthHolderFormHeadline",children:"Notifications"}),(0,i.jsxs)("div",{className:"AuthToggle AuthToggleOn",children:[(0,i.jsx)(r(),{className:"AuthToggleIconOn",width:36,height:18,src:"/icon_ToggleOn.svg",alt:"icon_ToggleOn"}),(0,i.jsx)(r(),{className:"AuthToggleIconOff",width:36,height:18,src:"/icon_ToggleOff.svg",alt:"icon_ToggleOff"}),(0,i.jsx)("div",{className:"AuthToggleCopy",children:"Email me comment notifications"})]})]}),(0,i.jsxs)("div",{className:"AuthHolderForm",id:"Auth_CommentHistory_Form",style:{display:"none"},children:[(0,i.jsx)("div",{className:"AuthVSpace"}),(0,i.jsx)("div",{className:"AuthHolderFormHeadline",children:"Comment history"}),(0,i.jsxs)("div",{className:"Auth_CommentHistory",children:[(0,i.jsxs)("div",{className:"Auth_CommentHistoryItem",children:[(0,i.jsx)("span",{className:"Auth_CommentHistoryItemDate",children:"20/10/23"}),": ",(0,i.jsx)("span",{className:"Auth_CommentHistoryItemTitle",children:"Meet the teacher helping deaf students..."}),(0,i.jsx)("span",{className:"Auth_CommentHistoryItemCopy",children:"Congratulations to Professor Dana for the marvellous contribution that she and her team..."})]}),(0,i.jsxs)("div",{className:"Auth_CommentHistoryItem",children:[(0,i.jsx)("span",{className:"Auth_CommentHistoryItemDate",children:"20/10/23"}),": ",(0,i.jsx)("span",{className:"Auth_CommentHistoryItemTitle",children:"Meet the teacher helping deaf students..."}),(0,i.jsx)("span",{className:"Auth_CommentHistoryItemCopy",children:"Congratulations to Professor Dana for the marvellous contribution that she and her team..."})]})]})]}),(0,i.jsxs)("div",{className:"AuthHolderForm",id:"Auth_Logout_Form",children:[(0,i.jsx)("div",{className:"AuthVSpace"}),(0,i.jsx)("div",{className:"AuthHolderFormHeadline",children:"Log out"}),(0,i.jsx)("div",{className:"AuthHolderFormButton",onClick:()=>m(),children:(0,i.jsx)("div",{className:"AuthHolderFormButtonLabel",children:"Log out"})})]}),(0,i.jsxs)("div",{className:"AuthHolderForm",id:"Auth_Deactivate_Form",children:[(0,i.jsx)("div",{className:"AuthVSpace"}),(0,i.jsx)("div",{className:"AuthHolderFormHeadline",children:"Account deactivation"}),(0,i.jsx)("div",{className:"AuthHolderFormButton",onClick:()=>u(),children:(0,i.jsx)("div",{className:"AuthHolderFormButtonLabel",children:"Deactivate account"})}),(0,i.jsxs)("div",{className:"AuthSmall",children:["If you would like to permanently delete your Gates Notes account and remove its content, please ",(0,i.jsx)("span",{className:"AuthSmallLink",children:"send us a request."})]})]})]})]})}t.Z=(0,s.memo)(v)},6501:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return p}});var i=a(5893),s=a(7294),n=a(9734),r=a(7858),o=a(4390),l=a(5376),c=a(3462),d=a(1221),m=a(1590);function u(e){let t={};t.card={},t.card.system={},t.card.system.codename=e.artSId,t.parentItem=e.data,t.cardType="long_read_card",t.cardSize="Full bleed",t.cardSource={},t.cardTitle=e.data.elements.articleTitle.value,t.cardSubtitle=e.data.elements.articleSubtitle.value,t.cardBackgroundColor="#FFFFFF",t.cardForegroundImage="",t.cardBackgroundImageSet="",t.cardBackgroundImage=(0,m.t6)(e.data.elements.pageImageSetBlogroll.value[0].url),t.cardBackgroundImageDesc=e.data.elements.pageImageSetBlogroll.value[0].description,t.cardBackgroundImageMobile=(0,m.t6)(e.data.elements.pageImageSetThumbnail.value[0].url),t.cardBackgroundImageTablet=(0,m.t6)(e.data.elements.pageImageSetThumbnail.value[0].url),t.cardHeroImageForegroundImageSet="",t.cardShowBackgroundImage="",t.artLink=e.data.system.name;var a=(0,m.O$)()/2;return(0,i.jsx)("div",{className:"ReaderShift",id:e.artSId,style:{left:a+"px"},children:(0,i.jsx)(d.Z,{cdata:t})})}var h=(0,s.memo)(u);function g(e){let t=(0,s.useContext)(o.Iz),{data:a}=(0,n.ZP)(e.name),d=(0,s.useRef)(-1),m=l.he,u=(0,s.useRef)(null);if((0,s.useEffect)(()=>{if(a){if(-1==d.current);else if(null==u.current){let e=null==a?void 0:a.system.codename;u.current=(0,c.r1)(m,e)}}}),!a)return(0,i.jsx)(i.Fragment,{});let g=e.name,p=m+"_"+(null==a?void 0:a.system.codename);if("article"!=a.system.type)return(0,i.jsx)(i.Fragment,{});{let _=e=>e==g,v=t.lists.scrollerList.findIndex(_);if(-1!=v&&v!=d.current)return(0,i.jsx)(i.Fragment,{});if(-1==d.current&&(t.lists.scrollerList.push(g),d.current=t.lists.scrollerList.length-1),a.elements.specialArticleType.value.length>0&&"Article with chapters"==a.elements.specialArticleType.value[0].name)return(0,i.jsx)(h,{data:a,artSId:p});let f=a;return(0,i.jsx)("div",{id:p,"data-date":f.elements.date.value,children:(0,i.jsx)(r.Z,{name:e.name,topic:e.topic,section:e.section},e.name)})}}var p=(0,s.memo)(g)},6115:function(e,t,a){"use strict";a.d(t,{Z:function(){return u}});var i=a(5893),s=a(4407),n=a(9355),r=a(7294),o=a(2941),l=a(1590);function c(e){var t="ContentLockupListSlideOrPEHolder4c TopicTimelineSpacer";return e.image.width&&(e.image.width>596&&(t="ContentLockupListSlideOrPEHolder6c TopicTimelineSpacer"),e.image.width>=800&&(t="ContentLockupListSlideOrPEHolder8c TopicTimelineSpacer")),(0,i.jsx)("img",{src:(0,l.t6)(e.image.url),alt:e.image.description?e.image.description:e.image.imageId,width:e.image.width?e.image.width:"596",className:t})}var d=(0,r.memo)(c);function m(e){return(0,i.jsx)(s.RichTextElement,{richTextElement:e.richTextElement,resolvers:{resolveLinkedItem(t,a){let{domElement:r,domToReact:o}=a;var l=r.attribs["data-codename"];if((0,s.isComponent)(r)||(0,s.isLinkedItem)(r))return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(n.Z,{codename:l,parentItem:e.parentItem},l)});throw Error("Unknown type of the linked item's dom node")},resolveImage(e,t){let{domElement:a,domToReact:s}=t;return(0,i.jsx)(d,{image:e,children:s(a.children)})},resolveLink(e,t){let{domElement:a,domToReact:s}=t;return(0,i.jsx)(o.Z,{href:"".concat(e.type,"/").concat(e.urlSlug),children:s(a.children)})}}})}var u=(0,r.memo)(m)},2121:function(e,t,a){"use strict";a.d(t,{DN:function(){return ec},bW:function(){return ep},c3:function(){return ev},ZP:function(){return eb}});var i=a(5893),s=a(7294),n=a(9734),r=a(2941),o=a(1590);function l(e){var t=void 0;return(0,i.jsx)(r.Z,{href:e.item.elements.title.value.replaceAll(" ","-").replaceAll("’","-"),children:(0,i.jsx)("div",{className:"SectionItem SectionItem_"+e.item.elements.title.value.replaceAll(" ","-").replaceAll("’","-"),onMouseEnter(){t=setTimeout(()=>{(0,o.PU)(e.item.elements.title.value)},50)},onMouseLeave(){clearTimeout(t)},children:(0,i.jsx)("div",{className:"section",id:e.item.elements.title.value,children:e.item.elements.title.value})})})}var c=(0,s.memo)(l);function d(e){let{data:t}=(0,n.ZP)(e.codename);return t?(0,i.jsx)(c,{item:t},t.system.codename):(0,i.jsx)(i.Fragment,{})}var m=(0,s.memo)(d),u=a(9355);function h(e){var t,a;return e.includes("rgba")?e:/^#([A-Fa-f0-9]{3}){1,2}$/.test(e)?(3==(t=e.substring(1).split("")).length&&(t=[t[0],t[0],t[1],t[1],t[2],t[2]]),"rgba("+[(a="0x"+t.join(""))>>16&255,a>>8&255,255&a].join(",")+",.9)"):"rgba(232,232,232,.9)"}var g=a(5675),p=a.n(g);function _(e){let t=(0,s.useContext)(ep),a=e.item.elements.backgroundSnippetHexColor.value;var n,l=h(a),c="";"rgba(238, 76, 59, 0.96)"==l&&(c="expandedMenuRedMenu"),n="Hide"!=e.item.elements.ctaCopy.value;var d="";if(t.auth){var m=JSON.parse(localStorage.getItem("UserInfo2"));m&&(d=m.FullName)}var g=e.item.elements.title.value,_=!1;return"Work"==e.item.elements.title.value&&(g="work",_=!0),"Books"==e.item.elements.title.value&&(g="books"),(0,i.jsx)("div",{className:"expandedMenus",children:(0,i.jsxs)("div",{className:"expandedMenu "+c,id:e.item.elements.title.value.replaceAll(" ","")+"menu",style:{background:l},onMouseLeave(){(0,o.PU)("")},children:[(0,i.jsx)("div",{className:"expandedMenuBack",children:(0,i.jsx)("img",{src:"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/a8dfce67-8889-4a88-902d-f11fd6fd3eb7/image-of-bill7.png",alt:"Bill"})}),(0,i.jsxs)("div",{className:"expandedMenuInner",children:[(0,i.jsxs)("div",{className:"expandedMenuInnerLeft",children:[(0,i.jsxs)(r.Z,{href:e.item.elements.title.value.replaceAll(" ","-").replaceAll("’","-"),children:[(0,i.jsx)("div",{className:"expandedMenuExplore",style:{display:n?"block":"none"},children:e.item.elements.ctaCopy.value+" "+g}),(0,i.jsx)("div",{className:"expandedMenuDivider",style:{display:n?"block":"none"}})]}),(0,i.jsxs)("div",{className:"expandedMenuTopicsList",children:[e.item.elements.topics.value.map((t,a)=>(0,i.jsx)(u.Z,{codename:t,parentItem:e.item},a)),(0,i.jsx)("div",{className:"GFL_Holder",style:{display:_?"flex":"none"},children:(0,i.jsx)(r.Z,{href:"https://www.gatesfoundation.org/",target:"_blank",children:(0,i.jsxs)("div",{className:"GFL_Link",children:["Visit the Gates Foundation ",(0,i.jsx)(p(),{className:"icon_Link_Arrow",width:10,height:10,src:"/Link_Arrow.svg",alt:"icon link arrow"})]})})})]}),(0,i.jsx)("div",{className:"SignUpMenuButton",onClick:o.Ok,style:{display:t.auth?"none":"flex"},children:(0,i.jsx)("div",{className:"SignUpMenuButtonLabel",children:"Sign up to get my newsletter"})}),(0,i.jsx)(r.Z,{href:"account",children:(0,i.jsxs)("div",{className:"expandedMenuLogin",style:{display:t.auth?"block":"none"},children:[d," ",(0,i.jsx)("span",{className:"expandedMenuLoginButton",children:"Manage your account"})]})})]}),(0,i.jsx)("div",{className:"expandedMenuInnerRight",children:(0,i.jsx)(u.Z,{codename:e.item.elements.heroCard.value[0],parentItem:e.item})})]})]})})}var v=(0,s.memo)(_);function f(e){let{data:t}=(0,n.ZP)(e.codename);return t&&t.elements.topics.value.length>0?(0,i.jsx)(v,{item:t},t.system.codename+"menu"):(0,i.jsx)(i.Fragment,{})}var x=(0,s.memo)(f),b=a(1163),C=a.n(b);function S(e){e.item.elements.backgroundSnippetHexColor.value;let[t,a]=(0,s.useState)(!1),n=e=>{if(0==e){let i=document.querySelector(".siteHeaderExpandedMobile");i&&i.classList.remove("MenuItemOn"),C().push("/heroes","",{scroll:!1,shallow:!1});return}t?a(!1):a(!0)};e.item.elements.ctaCopy.value,o=!0;var o,l=!1;e.item.elements.topics.value.length>0&&(l=!0);var c=!1;return"Work"==e.item.elements.title.value&&(c=!0),(0,i.jsx)("div",{className:"expandedMenusMobile",children:(0,i.jsxs)("div",{className:"expandedMenuMobile",id:e.item.elements.title.value+"menuMobile",children:[(0,i.jsx)("div",{className:"expandedMenuMobileButton",children:(0,i.jsxs)("div",{className:"expandedMenuMobileButtonInner",onClick(){n(e.item.elements.topics.value.length)},children:[(0,i.jsx)("div",{className:"expandedMenuMobileButtonInnerCopy",children:e.item.elements.title.value}),(0,i.jsx)("div",{className:"expandedMenuMobileButtonInnerIcon "+(t?"expandedMenuMobileButtonInnerIconOn":""),style:{display:l?"block":"none"}})]})}),(0,i.jsxs)("div",{className:"expandedMenuMobileLockup "+(t?"expandedMenuMobileLockupOn":""),children:[(0,i.jsxs)("div",{style:{display:o?"block":"none"},children:[(0,i.jsx)(r.Z,{href:e.item.elements.title.value.replaceAll(" ","-").replaceAll("’","-"),children:(0,i.jsx)("div",{className:"expandedMenuMobileCTA",children:e.item.elements.ctaCopy.value+" "+e.item.elements.title.value})}),(0,i.jsx)("div",{className:"expandedMenuDividerMobile",style:{display:o?"block":"none"}})]}),(0,i.jsxs)("div",{className:"expandedMenuTopicsListMobile",children:[e.item.elements.topics.value.map((t,a)=>(0,i.jsx)(u.Z,{codename:t,parentItem:e.item},a)),(0,i.jsx)("div",{className:"GFL_Holder",style:{display:c?"flex":"none"},children:(0,i.jsx)(r.Z,{href:"https://www.gatesfoundation.org/",target:"_blank",children:(0,i.jsxs)("div",{className:"GFL_Link",children:["Visit the Gates Foundation ",(0,i.jsx)(p(),{className:"icon_Link_Arrow",width:10,height:10,src:"/Link_Arrow.svg",alt:"icon link arrow"})]})})})]})]})]})})}var I=(0,s.memo)(S);function T(e){let{data:t}=(0,n.ZP)(e.codename);return t?(0,i.jsx)(I,{item:t},t.system.codename+"menu"):(0,i.jsx)(i.Fragment,{})}var N=(0,s.memo)(T);function E(e){let t=(0,s.useContext)(ep);t.auth&&localStorage.getItem("gniUser");var a,n,l,c="";if(t.auth){var d=JSON.parse(localStorage.getItem("UserInfo2"));d&&(c=d.FullName)}return(0,i.jsxs)("div",{className:"siteHeader",children:[(0,i.jsxs)("div",{className:"siteHeaderInner",children:[(0,i.jsxs)("div",{className:"siteHeaderLeft",children:[(0,i.jsx)(r.Z,{href:"",children:(0,i.jsx)(p(),{className:"siteHeaderLogoStack",width:44,height:35,src:"/LogoStack.svg",alt:"siteHeaderLogo"})}),(0,i.jsxs)("div",{className:"siteHeaderLeftMobile",onClick(){(0,o.PU)("mobile")},children:[(0,i.jsx)(p(),{className:"siteHeaderHamburger",width:44,height:15,src:"/Hamburger.svg",alt:"siteHeaderMenu"}),(0,i.jsx)(p(),{className:"siteHeaderHamburgerClose Hidden",width:44,height:15,src:"/icon_Close.svg",alt:"siteHeaderMenu"})]})]}),(0,i.jsxs)("div",{className:"siteHeaderCenter",children:[(0,i.jsx)("div",{className:"SiteSections",children:null===(a=e.data)||void 0===a?void 0:a.elements.sections.value.map(e=>(0,i.jsx)(m,{codename:e},e))}),(0,i.jsx)(r.Z,{href:"",children:(0,i.jsx)("div",{className:"siteHeaderCenterMobile",children:(0,i.jsx)(p(),{className:"siteHeaderCenterLogo",width:44,height:15,src:"/Logo.svg",alt:"Logo"})})})]}),(0,i.jsx)(r.Z,{href:"search",children:(0,i.jsx)("div",{className:"siteHeaderRight",children:(0,i.jsx)("div",{className:"siteHeaderRightSearch",children:(0,i.jsx)(p(),{className:"siteHeaderRightIcon",width:24,height:24,src:"/Search.svg",alt:"siteHeaderRight"})})})})]}),(0,i.jsx)("div",{className:"siteHeaderExpandedDesktop",children:null===(n=e.data)||void 0===n?void 0:n.elements.sections.value.map(e=>(0,i.jsx)(x,{codename:e},e))}),(0,i.jsx)("div",{className:"siteHeaderExpandedMobile",children:(0,i.jsxs)("div",{className:"expandedMenusMobileInner",children:[(0,i.jsx)("div",{className:"expandedMenusMobileInnerFlex",children:null===(l=e.data)||void 0===l?void 0:l.elements.sections.value.map(e=>(0,i.jsx)(N,{codename:e},e))}),(0,i.jsx)("div",{className:"SignUpMenuButton",onClick:o.Ok,style:{display:t.auth?"none":"flex"},children:(0,i.jsx)("div",{className:"SignUpMenuButtonLabel",children:"Sign up to get my newsletter"})}),(0,i.jsx)("div",{style:{display:t.auth?"block":"none",width:"100%"},children:(0,i.jsx)(r.Z,{href:"account",children:(0,i.jsxs)("div",{className:"expandedMenuLoginMobile",onClick:o.GP,style:{display:t.auth?"block":"none"},children:[c," ",(0,i.jsx)("span",{className:"expandedMenuLoginButtonMobile",children:"Manage your account"})]})})})]})})]})}var w=(0,s.memo)(E),k=a(7858),y=a(4390);function A(e){return(0,i.jsx)(r.Z,{href:e.item.elements.title.value.replaceAll(" ","-").replaceAll("’","-"),children:(0,i.jsx)("div",{className:"FooterSectionItem",children:(0,i.jsx)("div",{className:"FooterSection",id:"F"+e.item.elements.title.value,children:e.item.elements.title.value})})})}var j=(0,s.memo)(A);function L(e){let{data:t}=(0,n.ZP)(e.codename);return t?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(j,{item:t},t.system.codename)}):(0,i.jsx)(i.Fragment,{})}var O=(0,s.memo)(L);function B(e){var t;let a=new Date,s=a.getFullYear();return(0,i.jsxs)("div",{className:"FooterHolder",children:[(0,i.jsxs)("div",{className:"FooterMain",children:[(0,i.jsx)("div",{className:"CardTopEdge"}),(0,i.jsxs)("div",{className:"FooterMainTop",children:[(0,i.jsx)("div",{className:"FooterMainTopL",children:(0,i.jsx)("div",{className:"FooterSiteSections",children:null===(t=e.data)||void 0===t?void 0:t.elements.sections.value.map(e=>(0,i.jsx)(O,{codename:e},e))})}),(0,i.jsxs)("div",{className:"FooterMainTopR",children:[(0,i.jsx)("a",{href:"https://www.facebook.com/BillGates/",rel:"noopener noreferrer",children:(0,i.jsx)(p(),{className:"FooterMainTopR_socialIcon",width:44,height:15,src:"/fb.svg",alt:"fb"})}),(0,i.jsx)("a",{href:"https://x.com/BillGates",rel:"noopener noreferrer",children:(0,i.jsx)(p(),{className:"FooterMainTopR_socialIcon",width:44,height:15,src:"/tw.svg",alt:"tw"})}),(0,i.jsx)("a",{href:"https://www.youtube.com/user/thegatesnotes",rel:"noopener noreferrer",children:(0,i.jsx)(p(),{className:"FooterMainTopR_socialIcon",width:44,height:15,src:"/yt.svg",alt:"yt"})}),(0,i.jsx)("a",{href:"https://www.instagram.com/thisisbillgates/",rel:"noopener noreferrer",children:(0,i.jsx)(p(),{className:"FooterMainTopR_socialIcon",width:44,height:15,src:"/ig.svg",alt:"ig"})}),(0,i.jsx)("a",{href:"https://www.linkedin.com/in/williamhgates/",rel:"noopener noreferrer",children:(0,i.jsx)(p(),{className:"FooterMainTopR_socialIcon",width:44,height:15,src:"/in.svg",alt:"in"})})]})]}),(0,i.jsxs)("div",{className:"FooterMainBottom",children:[(0,i.jsxs)("div",{className:"FooterMainBottomList",children:[(0,i.jsx)("div",{className:"FooterMainBottomListItem",children:(0,i.jsx)(r.Z,{href:"privacy-policy",children:"Privacy policy"})}),(0,i.jsx)("div",{className:"FooterMainBottomListItem",children:(0,i.jsx)(r.Z,{href:"Terms-of-Use",children:"Terms of use"})}),(0,i.jsx)("div",{className:"FooterMainBottomListItem",children:(0,i.jsx)(r.Z,{href:"Contact-Us",children:"Contact us"})})]}),(0,i.jsxs)("div",{className:"FooterMainBottomCR",children:["\xa9 ",s," The Gates Notes LLC"]})]})]}),(0,i.jsxs)("div",{className:"FooterLower",children:[(0,i.jsx)(p(),{className:"text",width:44,height:15,src:"/text.svg",alt:"text"}),(0,i.jsx)(p(),{className:"quote",width:44,height:15,src:"/quote.svg",alt:"quote"}),(0,i.jsx)(p(),{className:"bill-gates-signature",width:44,height:15,src:"/bill-gates-signature.svg",alt:"bill-gates-signature"})]})]})}var R=(0,s.memo)(B),M=a(5376),D=a(6064);function H(e){let{data:t}=(0,n.ZP)(e.name);return t?(e.name,(0,i.jsx)("div",{children:t.elements.sectionPageTopic.value.map((e,t)=>(0,i.jsx)(y.ZP,{name:e,codename:t,scroller:M.rO,item:"",subItem:""},e))})):(0,i.jsx)(D.Z,{pageName:e.name})}var F=(0,s.memo)(H),P=a(9008),W=a.n(P),G=a(6166),U=a(5868),V=a(2136),Z=a(521),Y=a(4901);function q(e){return(0,i.jsx)("div",{style:{margin:"100px"},children:(0,i.jsxs)(r.Z,{href:"https://www.gatesnotes.com",className:"GNLink",children:[(0,i.jsx)("h1",{children:"DevTest"}),(0,i.jsxs)("p",{children:["Item: ",e.item]}),(0,i.jsxs)("p",{children:["SubItem: ",e.subItem]})]})})}var K=(0,s.memo)(q),z=a(4422),Q=a(5051);function J(e){let t=(0,s.useContext)(ev);return(0,s.useEffect)(()=>{},[]),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(Q.Z,{artid:t.artguid})})}var X=(0,s.memo)(J),$=a(145),ee=a(2199);function et(e){let t=(0,s.useContext)(ev);function a(){t.setArtGUID("")}let n=(0,o.Me)();var r="CommNotAble";"true"==n&&(r="CommAble"),"needsVerify"==n&&(r="CommVerify");var l="",c=document.querySelector(".CommentsHolder"),d=document.querySelector(".overlay-background");return""!=t.artguid?(c&&c.classList.add("CommentsHolder-on"),d&&d.classList.add("overlay-background-on"),l=" CommentsHolder-on"):(c&&c.classList.remove("CommentsHolder-on"),d&&d.classList.remove("overlay-background-on")),(0,i.jsxs)("div",{className:"CommentsHolder "+r+l,id:"CommentsHolder",children:[(0,i.jsx)("div",{className:"CommentsHolderClose",children:(0,i.jsx)("div",{className:"CommentsHolderCloseIcons",onClick:()=>a(),children:(0,i.jsx)("div",{className:"CommentsHolderCloseIcon",children:(0,i.jsx)(p(),{className:"primaryButtonIconImg",width:24,height:24,src:"/icon_Close.svg",alt:"icon_Close"})})})}),(0,i.jsx)(X,{}),(0,i.jsxs)("div",{className:"CommentsHolderBottomContent",children:[(0,i.jsx)("div",{className:"CommentsHolderBottomContentLogIn",children:(0,i.jsx)("div",{className:"CommentsHolderBottomContentLogInButtons",onClick:o.Ok,children:(0,i.jsx)("div",{className:"CommentsHolderBottomContentLogInButton",children:"Log in or sign up to comment"})})}),(0,i.jsxs)("div",{className:"AccountHolderWarning",children:[(0,i.jsx)("div",{className:"AccountHolderWarningIcons",children:(0,i.jsx)(p(),{className:"AccountHolderWarningIcon",width:20,height:18,src:"/icon_CheckmarkRed.svg",alt:"icon_CheckmarkRed"})}),(0,i.jsxs)("div",{className:"AccountHolderWarningFrame",children:[(0,i.jsx)("div",{className:"AccountHolderWarningCopy1",children:"Please verify your account"}),(0,i.jsx)("div",{className:"AccountHolderWarningCopy2",onClick:()=>(0,$.U)(),children:"Resend verification email"})]})]}),(0,i.jsxs)("div",{className:"CommentsHolderBottomContentPost",children:[(0,i.jsxs)("div",{className:"post-comment-top",children:[(0,i.jsx)("div",{className:"post-comment-leave",children:"Leave a comment"}),(0,i.jsx)("span",{id:"post-comment-feedback"})]}),(0,i.jsxs)("div",{className:"post-comment-text-area",children:[(0,i.jsx)("div",{className:"post-comment-input",children:(0,i.jsx)("textarea",{id:"post-comment-input-text-area",className:"post-comment-input-text-area",maxLength:750,placeholder:"Write a comment...",name:"comment"})}),(0,i.jsxs)("div",{className:"post-comment-buttons",children:[(0,i.jsxs)("div",{className:"post-comment-links",children:[(0,i.jsx)("div",{className:"post-comment-bold",children:(0,i.jsx)(p(),{className:"primaryButtonIconImg",width:24,height:24,src:"/icon_Bold.svg",alt:"icon_Bold"})}),(0,i.jsx)("div",{className:"post-comment-italic",children:(0,i.jsx)(p(),{className:"primaryButtonIconImg",width:24,height:24,src:"/icon_Italics.svg",alt:"icon_Italics"})}),(0,i.jsx)("div",{className:"post-comment-link",children:(0,i.jsx)(p(),{className:"primaryButtonIconImg",width:24,height:24,src:"/icon_Link.svg",alt:"icon_Link"})})]}),(0,i.jsx)("div",{className:"post-comment-button",onClick:()=>(0,ee.U)(),children:(0,i.jsx)("div",{className:"post-comment-button-copy",children:"Submit"})})]})]})]})]})]})}var ea=(0,s.memo)(et),ei=a(7287),es=a(4020);function en(e){let t={};t.copy="Microsoft",t.link="/";let a={};return a.copy="Reading lists",a.link="/",(0,i.jsxs)("div",{className:"SearchMenuHolder",id:"SearchMenuHolder",children:[(0,i.jsx)("div",{className:"SearchMenuClose",onClick:o.UY,children:(0,i.jsx)(p(),{className:"icon_Img icon_CloseIcon",width:44,height:15,src:"/icon_Close.svg",alt:"icon_Close"})}),(0,i.jsxs)("div",{className:"SearchMenuLockup",children:[(0,i.jsxs)("div",{className:"SearchMenuBar",children:[(0,i.jsx)("input",{className:"SearchMenuInput",placeholder:"Search Gates Notes..."}),(0,i.jsx)("div",{className:"SearchMenuIcon",children:(0,i.jsx)(p(),{className:"icon_SearchIcon",width:44,height:15,src:"/Search.svg",alt:"icon_Search"})})]}),(0,i.jsxs)("div",{className:"SearchMenuTags",children:[(0,i.jsx)("div",{className:"SearchMenuTagsTitle",children:"POPULAR SEARCHES"}),(0,i.jsx)("div",{className:"SearchMenuTagsGroup",children:(0,i.jsxs)("div",{className:"KBreadCrumbs",children:[(0,i.jsx)(es.Z,{item:t}),(0,i.jsx)(es.Z,{item:a})]})})]})]})]})}var er=(0,s.memo)(en),eo=a(7206);let el={state:{SC_article:"",SC_section:"",SC_topic:"",SC_scroller:"",SC_scrollerItem:"",SC_scrollerSubItem:"",SC_articleCN:"",SC_topicCN:"",SC_scrollerItemCN:"",SC_scrollerSubItemCN:""},setState(e){}},ec=(0,s.createContext)(el),ed=(0,o.ak)("validate"),em=(0,o.ak)("reset"),eu=(0,o.ak)("hash"),eh=(0,o.ak)("WT.mc_id"),eg={auth:!1,setAuth(e){}},ep=(0,s.createContext)(eg),e_={artguid:"",setArtGUID(e){}},ev=(0,s.createContext)(e_);function ef(e,t,a){var i={...a};let s=(0,z.O)(e,M.zW);var n=e.length;s>-1&&(i.SC_scroller=e[s],s<e.length-1&&(i.SC_scrollerItem=e[s+1],i.SC_scrollerItemCN=(0,Y.DK)(e[s+1]),s<e.length-2&&(i.SC_scrollerSubItem=e[s+2],i.SC_scrollerSubItemCN=(0,Y.DK)(e[s+2]))),n=s);let r=(0,Y.DK)(e[0]);1==n&&-1==(0,z.d)(r,t)?i.SC_articleCN=r:("home"==e[0].toLowerCase()&&(i.SC_topic=Y.wI,i.SC_topicCN=Y.j7),i.SC_section=e[0],n>1?(i.SC_topic=e[1],i.SC_topicCN=(0,Y.DK)(e[1])):((r==Y.JH||r==Y.W0)&&(i.SC_topic=Y.VR,i.SC_topicCN=Y.Sv),(r==Y.fw||r==Y.X1)&&(i.SC_topic=Y.S2,i.SC_topicCN=Y.cE),(r==Y.xB||r==Y.cJ)&&(i.SC_topic=Y.PJ,i.SC_topicCN=Y.ij),(r==Y.Hc||r==Y.NO)&&(i.SC_topic=Y.uk,i.SC_topicCN=Y.X3)),""==i.SC_scroller&&(i.SC_scroller=M.rO,eo.h,i.SC_section,""!=i.SC_topic&&i.SC_topic,i.SC_scroller,window.location.href));let o=e.join("/"),l=e.length,c={name:"KSite: Parsed Path"},d={pathSize:l,pathArray:o,article:i.SC_article,articleCN:i.SC_articleCN,section:i.SC_section,topic:i.SC_topic,topicCN:i.SC_topicCN,scroller:i.SC_scroller,scrollerItem:i.SC_scrollerItem,scrollerSubItem:i.SC_scrollerSubItem,scrollerItemCN:i.SC_scrollerItemCN,scrollerSubItemCN:i.SC_scrollerSubItemCN};return V.I.trackEvent(c,d),i}function ex(e){let t=ef(e.pathArray,e.sections,el.state),[a,r]=(0,s.useState)(t),[l,c]=(0,s.useState)(0),[d,m]=(0,s.useState)(!1),[u,h]=(0,s.useState)(""),{data:g}=(0,n.ZP)(Y.d3),p=g;(0,s.useEffect)(()=>{if(em&&eu){localStorage.setItem("authParamReset",em),localStorage.setItem("authParamHash",eu);let e=document.getElementById("AuthHolder");if(e){e.classList.add("AuthHolderOn");let t=document.getElementById("Auth_SI_Form");t&&t.classList.add("Hidden");let i=document.getElementById("Auth_ForgotPass");i&&i.classList.add("Shown")}}if(ed&&eu&&(localStorage.setItem("authParamValidate",ed),localStorage.setItem("authParamHash",eu),(0,Z.mX)()),eh){if(eh!=localStorage.getItem("authParamCampaign")&&(localStorage.setItem("authParamCampaignstatus","newCampaign"),localStorage.setItem("authParamCampaign",eh),null==_||_.trackEvent({name:"Campaign query param: WT.mc_id",properties:{authParamCampaign:eh,user:localStorage.getItem("UserInfo2")}})),"SentToCRM"!=localStorage.getItem("authParamCampaignstatus")&&(0,o.SN)()){var s=localStorage.getItem("authParamCampaignstatus");localStorage.setItem("authParamCampaign",eh),"newUser"==s?(console.log("crm cookie SET:gn_origincampaign "+eh),(0,Z.lE)("gn_origincampaign",eh)):(console.log("crm cookie SET:new_signupcampaign "+eh),(0,Z.lE)("new_signupcampaign",eh)),console.log("crm new_signupcampaign SENT: "+eh),localStorage.setItem("authParamCampaignstatus","SentToCRM")}else console.log("crm cookie blank or already sent or no user logged in: "+localStorage.getItem("authParamCampaign"))}c((0,o.O$)()),m((0,o.SN)()),v({SC_article:a.SC_article,SC_section:a.SC_section,SC_topic:a.SC_topic,SC_scroller:a.SC_scroller,SC_scrollerItem:a.SC_scrollerItem,SC_scrollerSubItem:a.SC_scrollerSubItem,SC_topicCN:a.SC_topicCN,SC_articleCN:a.SC_articleCN,SC_scrollerItemCN:a.SC_scrollerItemCN,SC_scrollerSubItemCN:a.SC_scrollerSubItemCN}),setInterval(()=>{let e=document.querySelectorAll(".CLDVid");e.forEach(e=>{let t=e;if(t){var a;let i=null===(a=t.parentElement)||void 0===a?void 0:a.querySelector(".lightBoxControls");t.paused||null==i||i.classList.add("Hidden")}})},2e3)},[a]);let _=(0,G.u)(),v=(0,U.Z)(_,"KSite: State",a);var f={},x=(0,o.WS)(t);let{data:b}=(0,n.ZP)(t.SC_topicCN),{data:C}=(0,n.ZP)(t.SC_articleCN),{data:S}=(0,n.ZP)(t.SC_scrollerItemCN);var I="";S&&S.elements.cardSource&&S.elements.cardSource.value.length&&(I=S.elements.cardSource.value[0]);let{data:T}=(0,n.ZP)(I);if("topic"==x){if(b&&"topic"==b.system.type){let N=b;f=(0,o.DA)(N,p,e.pathArray)}}else if("article"==x){if(C&&"article"==C.system.type){let E=C;f=(0,o.SW)(E,p,e.pathArray)}}else if(S)switch(S.system.type){case"article":let A=S;f=(0,o.SW)(A,p,e.pathArray);break;case"card":let j=S;f=(0,o.V0)(j,T,p,e.pathArray);break;case"inline_video_item":let L=S;f=(0,o.hP)(L,p,e.pathArray);break;case"header":let O=S;f=(0,o.qI)(O,p,e.pathArray);break;default:let B=S,M=b;f=(0,o.d0)(B,M,p,e.pathArray)}if(f.metaName&&(f.metaName=f.metaName.toLowerCase().replaceAll("_","-")),f.metaUrl){f.metaUrl=f.metaUrl.toLowerCase().replaceAll("_","-");var D=f.metaUrl.split("/");7==D.length&&f.metaUrl.includes("/reader/")&&(f.metaUrl="https://www.gatesnotes.com/"+D[D.length-1])}var H="https://assets.adobedtm.com/ee4236cad46a/017c9210d029/launch-d084cc3ee988-development.min.js";return(0,eo.B)()&&(H="https://assets.adobedtm.com/ee4236cad46a/017c9210d029/launch-d9135d6ecfbf.min.js"),f.metaDesc&&(f.metaDesc=f.metaDesc.replaceAll('"',"'")),f.metaCodename||(console.log("path last: "+e.pathArray[e.pathArray.length-1]),"contact-us"==e.pathArray[e.pathArray.length-1]||"search"==e.pathArray[e.pathArray.length-1]?f.metaResCode="200":f.metaResCode="404"),f.metaTitle&&(f.metaTitle=f.metaTitle.replaceAll("<p>","").replaceAll("</p>",""),f.metaTitle=f.metaTitle.replaceAll('"',"'")),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(W(),{children:[(0,i.jsx)("meta",{httpEquiv:"X-UA-Compatible",content:"IE=edge,chrome=1"}),(0,i.jsx)("meta",{name:"viewport",content:"width=device-width,minimum-scale=1,maximum-scale=1,initial-scale=1,user-scalable=0"}),(0,i.jsx)("meta",{name:"mobile-web-app-capable",content:"yes"}),(0,i.jsx)("meta",{name:"SKYPE_TOOLBAR",content:"SKYPE_TOOLBAR_PARSER_COMPATIBLE"}),(0,i.jsx)("meta",{name:"msapplication-TileColor",content:"#cc6633"}),(0,i.jsx)("title",{children:f.metaTitle}),(0,i.jsx)("a",{rel:"icon",href:"/favicon.png"}),(0,i.jsx)("a",{rel:"stylesheet",href:"https://use.typekit.net/cya0eea.css"}),(0,i.jsx)("script",{src:H,async:!0}),(0,i.jsx)("meta",{name:"google-site-verification",content:"Jnt34x_c-b7O4rgxluRMsvvc52OWWOhpxMxTJOhqaek"}),(0,i.jsx)("meta",{property:"twitter:account_id",content:"50393960"}),(0,i.jsx)("link",{rel:"icon",type:"image/ico",href:"/gatesnotes_badge.ico"}),(0,i.jsx)("link",{rel:"apple-touch-icon",href:"/touch-icon-iphone-v2.png"}),(0,i.jsx)("link",{rel:"apple-touch-icon-precomposed",href:"/touch-icon-iphone-v2.png"}),(0,i.jsx)("link",{rel:"apple-touch-icon-precomposed",sizes:"72x72",href:"/touch-icon-ipad-v2.png"}),(0,i.jsx)("link",{rel:"apple-touch-icon-precomposed",sizes:"114x114",href:"/touch-icon-iphone-retina-v2.png"}),(0,i.jsx)("link",{rel:"apple-touch-icon-precomposed",sizes:"144x144",href:"/touch-icon-ipad-retina-v2.png"}),(0,i.jsx)("meta",{name:"pageName",content:f.metaName}),(0,i.jsx)("meta",{name:"author",content:f.metaAuthor}),(0,i.jsx)("meta",{name:"keywords",content:f.metaKeywords}),(0,i.jsx)("meta",{name:"title",content:f.metaTitle}),(0,i.jsx)("meta",{name:"description",content:f.metaDesc}),(0,i.jsx)("meta",{name:"pageName",content:f.metaName}),(0,i.jsx)("meta",{name:"channel",content:f.metaTax}),(0,i.jsx)("meta",{name:"subTopic",content:f.metaTax}),(0,i.jsx)("meta",{name:"contentType",content:f.metaType}),(0,i.jsx)("meta",{name:"pageCN",content:f.metaCodename}),(0,i.jsx)("meta",{name:"pageID",content:f.metaExtID}),(0,i.jsx)("meta",{name:"pageKID",content:f.metaKonID}),(0,i.jsx)("meta",{name:"prerender-status-code",content:f.metaResCode}),(0,i.jsx)("meta",{name:"pageTCN",content:f.metaType}),(0,i.jsx)("meta",{name:"pageCP",content:f.metaUrl}),(0,i.jsx)("meta",{property:"og:title",content:f.metaTitle}),(0,i.jsx)("meta",{property:"og:description",content:f.metaDesc}),(0,i.jsx)("meta",{property:"og:image",content:f.metaImage}),(0,i.jsx)("meta",{property:"og:type",content:f.metaType}),(0,i.jsx)("meta",{property:"og:url",content:f.metaUrl}),(0,i.jsx)("meta",{property:"og:locale",content:"en_US"}),(0,i.jsx)("meta",{property:"og:site_name",content:"gatesnotes.com"}),(0,i.jsx)("meta",{property:"og:EmailSubject",content:f.metaTitle}),(0,i.jsx)("meta",{property:"og:EmailBody",content:f.metaDesc}),(0,i.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,i.jsx)("meta",{name:"twitter:site",content:"@BillGates"}),(0,i.jsx)("meta",{name:"twitter:title",content:f.metaTitle}),(0,i.jsx)("meta",{name:"twitter:description",content:f.metaDesc}),(0,i.jsx)("meta",{name:"twitter:image",content:f.metaImage}),(0,i.jsx)("link",{rel:"canonical",href:f.metaUrl}),(0,i.jsx)("script",{id:"schemantra",type:"application/ld+json",dangerouslySetInnerHTML:{__html:'\n        {\n  "@context": "https://schema.org",\n  "@type": "WebPage",\n  "@id": "WebPage",\n  "copyrightNotice": "The Gates Notes LLC ",\n  "copyrightYear": "2024",\n  "description": "'+f.metaDesc+'",\n  "headline": "'+f.metaTitle+'",\n  "image": "'+f.metaImage+'",\n  "isAccessibleForFree": true,\n  "keywords": "'+f.metaKeywords+'",\n  "url": "'+f.metaUrl+'"\n        }\n      '}}),(0,i.jsx)("script",{src:"../../../../../../../js/GTM_H_P.js",async:!0})]}),(0,i.jsx)("iframe",{src:"https://www.googletagmanager.com/ns.html?id=GTM-NV84C88",height:"0",width:"0",style:{display:"none",visibility:"hidden"}}),(0,i.jsxs)("div",{id:"kSite",className:"V_AutoPlayOff V_CaptionsOn V_VolumeOn Section_"+t.SC_section,"data-sbw":l,children:[(0,i.jsx)("div",{className:"titleHide Hidden",children:f.metaTitle}),(0,i.jsx)("div",{className:"descHide Hidden",children:f.metaDesc}),(0,i.jsx)("div",{className:"keywordsHide Hidden",children:f.metaKeywords}),(0,i.jsx)("input",{type:"text",className:"Hidden"}),(0,i.jsx)("input",{type:"password",className:"Hidden"}),(0,i.jsx)("div",{id:"scrollWidth",children:(0,i.jsx)("div",{id:"scrollWidthInner"})}),(0,i.jsx)(ev.Provider,{value:{artguid:u,setArtGUID:h},children:(0,i.jsx)(ep.Provider,{value:{auth:d,setAuth:m},children:(0,i.jsx)(ec.Provider,{value:{state:a,setState:r},children:(0,i.jsx)("div",{className:"layout",children:(0,i.jsxs)("main",{children:[(0,i.jsx)("div",{className:"overlay-background",children:(0,i.jsx)("div",{className:"overlay-background-inner"})}),(0,i.jsx)(ea,{}),(0,i.jsx)(w,{data:g}),""!=t.SC_articleCN?(0,i.jsx)(k.Z,{section:t.SC_section,topic:t.SC_topicCN,name:t.SC_articleCN}):""!=t.SC_topic?(0,i.jsx)(y.ZP,{name:t.SC_topic,codename:t.SC_topicCN,scroller:t.SC_scroller,item:t.SC_scrollerItemCN,subItem:t.SC_scrollerSubItemCN},t.SC_topicCN):t.SC_section==Y.zd.toLowerCase()?(0,i.jsx)(K,{item:t.SC_scrollerItemCN,subItem:t.SC_scrollerSubItemCN}):(0,i.jsx)(F,{name:t.SC_section}),(0,i.jsx)(ei.Z,{}),(0,i.jsx)("div",{className:"SearchMenuOuterHolder",id:"SearchMenuOuterHolder",children:(0,i.jsx)(er,{})}),(0,i.jsx)(R,{data:g})]})})})})})]})]})}var eb=(0,s.memo)(ex)},7301:function(e,t,a){"use strict";let i;a.d(t,{Z:function(){return or}});var s=a(5893),n=a(7294),r=a(957);function o(){var e,t,a,i,s,n,o,l,c,d,m,u,h,g,p,_,v,f,x,b,C,S,I,T,N,E,w=(t=[],a=75,i=function(){null==e&&(e=setTimeout(function(){e=null;var a=t.shift();a&&(a[0].apply(null,a[1]),0!=t.length&&i())},a))},{delay:function(e){return function(){t.push([e,arguments]),i()}}}),k={},y=0,A="game:",j="",L="",O="";k.createIterator=function(){var e,t,a,i,s,n=0,r=120,o=1,l=32500,c=16500,d=.001,m=1.8,u=!1,h=!1,g=function(){e=(Math.sqrt(o*o+2*r*d)-o)/d,o+=d*e,n+=e},p=function(){n+=e,t-=e,l-=e*s,r=a,o=i},_=function(){for(;e>=.005;)e=2*r/(o+Math.sqrt(o*o+2*r*(d-m*s/l))),f(),p()},v=function(){for(;;){var t=(1-l*d/(m*s))/2;if(e=l*o/(m*s*(t+Math.sqrt(t*t+o/m)))+.05,f(),a<=0)return _(),"onTheMoon";if(p(),i>=0||o<=0)return"continue"}},f=function(){var t=e*s/l;i=o+d*e+m*(-t-t**2/2-t**3/3-t**4/4-t**5/5),a=r-d*e*e/2-o*e+m*e*(t/2+t**2/6+t**3/12+t**4/20+t**5/30)};return{next:function(d){for(s=d,t=10;u&&!h;){if(l-c-.001<0){var m=n;g(),h=!0;break}if(t-.001<0)break;if(l-c-(e=t)*s<0&&(e=(l-c)/s),f(),a<=0){_(),h=!0;break}if(o>0&&i<0){if("onTheMoon"===v()){h=!0;break}}else p()}return u=!0,{value:{time:n,altitude:r,velocity:o,fuel:l-c,fuelOutAt:m},done:h}}}},s=k,l=function(e,t){var a=Math.pow(10,t),e=Math.round(e*a)/a,i=Math.trunc(e),s=Math.abs(e-i);i=Math.abs(i);var n=e<0?"-":"",r=s.toString().substr(2,t).padEnd(t,"0");return n+i.toString()+"."+r},c=function(){window.innerWidth>768?(n.log("CONTROL YOUR ENGINES BY ENTERING A VALUE FOR K, WHICH IS THE AMOUNT OF FUEL "),n.log("BURNED PER SECOND. K CAN BE ZERO (IN WHICH CASE YOUR ENGINES AREN’T FIRING AT ALL),"),n.log("OR BETWEEN 8 AND 200."),n.log(""),n.log("EACH TIME YOU ENTER A VALUE FOR K, TEN SECONDS WILL TICK OFF AND YOUR FUEL LEVEL "),n.log("WILL BE REDUCED ACCORDINGLY."),n.log(""),n.log("GOOD LUCK!")):(n.log("CONTROL YOUR ENGINES"),n.log("BY ENTERING A VALUE FOR K,"),n.log("WHICH IS THE AMOUNT OF FUEL"),n.log("BURNED PER SECOND."),n.log("K CAN BE ZERO"),n.log("(IN WHICH CASE YOUR ENGINES AREN’T FIRING AT ALL),"),n.log("OR BETWEEN 8 AND 200."),n.log(""),n.log("EACH TIME YOU ENTER A VALUE FOR K,"),n.log("TEN SECONDS WILL TICK OFF AND YOUR FUEL LEVEL"),n.log("WILL BE REDUCED ACCORDINGLY."),n.log(""),n.log("GOOD LUCK!"))},d=function(){n.log()},m=function(){d();var e=s.createIterator(),t=function(a){var i=e.next(a);if(i.done){g(i.value);return}n.prompt(h(i.value),function(e){u(e,t)})};t()},u=function(e,t){console.log("validateInput:"+e);var a=Number.parseInt(e);Number.isFinite(a)&&(0===a||a>=8&&a<=200)?(A+=" "+a+"-",t(a)):n.prompt("NOT POSSIBLE",function(e){u(e,t)})},h=function(e){console.log("getResultLine:"+e.fuel);var t=e.time,a=e.altitude,i=e.velocity,s=e.fuel,n=Math.round(t).toString(),r=Math.floor(a).toString(),o=Math.round(5280*(a-Math.floor(a))).toString(),c=l(3600*i,2),d=l(s,1);return A+=","+e.fuel+"("+c+")","".concat(n,",").concat(r,",").concat(o,",").concat(c,",").concat(d)},g=function(e){if(n.log(""),e.fuelOutAt){var t=l(e.fuelOutAt,2).padStart(8);n.log('FUEL OUT AT <span class="lander-green">'.concat(t," SECS</span>"),"span"),A+=",fuel out "}var a=l(e.time,2).padStart(8);n.log('ON THE MOON AT <span class="lander-green">'.concat(a," SECS</span>"),"span");var i=3600*e.velocity,s=l(i,2).padStart(8);n.log('IMPACT VELOCITY OF <span class="lander-green">'.concat(s," M.P.H.</span>"),"span");var o=l(e.fuel,2).padStart(8);n.log('FUEL LEFT: <span class="lander-green">'.concat(o," LBS</span>"),"span"),A+=",on the moon t:"+a+" w:"+s+" f:"+o,j=o,L=a,O=s;var d="Landed";if(i<1)n.log("PERFECT LANDING !-(LUCKY)");else if(i<10)n.log("GOOD LANDING-(COULD BE BETTER)");else if(i<22)n.log("CONGRATULATIONS ON A POOR LANDING");else if(i<40)n.log("CRAFT DAMAGE. GOOD LUCK");else if(i<60)n.log("CRASH LANDING-YOU'VE 5 HRS OXYGEN");else{d="Crashed",n.log("SORRY,BUT THERE WERE NO SURVIVORS-YOU BLEW IT!");var u=l(.277777*i,2).padStart(8);n.log('IN FACT YOU BLASTED A NEW LUNAR CRATER <span class="lander-green">'.concat(u," FT.</span> DEEP"),"span")}n.log(""),n.log(""),n.log("TRY AGAIN? (Y OR N)");let h=document.getElementById("console-root");console.log("ailogstring:"+A),null===r.H||void 0===r.H||r.H.trackEvent({name:"Lunar Lander Game "+d,properties:{console:A,fuel:j,velocity:O,time:L}}),A="";let g=document.getElementById("lander-yn");g.classList.add("yn-on");var p=document.querySelector(".lander-input-yn");document.querySelector(".yn-input-form").onsubmit=function(e){if(e.preventDefault(),"Y"==p.value.toUpperCase()){p.classList.remove("yn-on"),y=0,h&&(h.innerHTML="");var t=h.getBoundingClientRect().top;let a=document.getElementById("articlesHolder");a&&(offsetPosition=t+a.scrollTop,null==a||a.scrollTo({top:offsetPosition,behavior:"auto"})),c(),m()}else"N"==p.value&&(p.classList.remove("yn-on"),n.log("CONTROL OUT"));return!1}},p=function(){n.prompt(",,,,,",function(e){"YES"===e?(n.log(""),n.log(""),n.log(""),m()):"NO"===e?(n.log("CONTROL OUT"),o()):p()})},_={run:function(e,t){n=e,o=t||function(){},c(),m()}},v=w,x=document.getElementById("console-root"),b=function(){},C=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"input";if(N(),console.log("log:"+e+":"+t),"input"==t){var a=I(e);a.disabled=!0,x.appendChild(a)}else{var i=T(e);x.appendChild(i)}b()},S=function(e,t){if(N(),console.log("prompt:"+y),0==y&&window.innerWidth>768){var a=document.getElementById("lander-desktop-labels").cloneNode(!0);x.appendChild(a),a.classList.add("lander-desktop-labels-on")}y+=1;var i=document.getElementById("lander-response-template").cloneNode(!0);i.id="res"+y,i.classList.add("lander-response-on");var s=e.split(","),n=i.querySelector(".lander-data-1");n&&(n.innerHTML=s[0]);var r=i.querySelector(".lander-data-2");r&&(s[1]?r.innerHTML=s[1]+"/"+s[2]:r.innerHTML="");var o=i.querySelector(".lander-data-3");o&&(s[3]?o.innerHTML=s[3]:o.innerHTML="");var l=i.querySelector(".lander-data-4");l&&(s[4]?l.innerHTML=s[4]:l.innerHTML=""),x.appendChild(i);var c=i.querySelector(".lander-input");c.id="input"+y;var d=i.querySelector(".lander-input-form");c.focus(),d.onsubmit=function(e){return e.preventDefault(),t(document.getElementById("input"+y).value),!1},f=d,b()},I=function(e){console.log("message:"+e);var t=document.createElement("input");return t.className="console-line",e&&(t.value=e),t},T=function(e){var t=document.createElement("div");return t.className="console-line-div console-line",e&&(t.innerHTML=e),t},N=function(){f&&(f.onsubmit=null,f.firstElementChild.disabled=!0,f=null)},(E={log:v.delay(C),prompt:v.delay(S)}).log(),_.run(E,function(){E.log(),window.location.href="home"})}function l(){return(0,n.useEffect)(()=>{o()},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"lander",children:[(0,s.jsx)("div",{className:"lander-header",children:(0,s.jsx)("div",{className:"lander-header-copy",children:"PLAY LUNAR LANDER"})}),(0,s.jsx)("div",{className:"lander-dashes",children:(0,s.jsx)("div",{className:"lander-dashes-copy",children:"-------------------------------------------------------------------------------------------------------"})}),(0,s.jsx)("div",{id:"console-root",className:"lunar"}),(0,s.jsx)("div",{className:"lander-yn-root",children:(0,s.jsx)("form",{className:"yn-input-form",children:(0,s.jsx)("input",{id:"lander-yn",className:"lander-input-yn"})})})]}),(0,s.jsx)("div",{id:"lunar_lander_bottom",children:(0,s.jsx)("img",{src:"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/51e953c7-4655-46e3-b602-f99f33788927/LunarLanderBottomRow.jpg",alt:"Lunar Lander bottom edge"})}),(0,s.jsxs)("div",{id:"lander-desktop-labels",className:"lander-desktop-labels",children:[(0,s.jsxs)("div",{className:"lander-row",children:[(0,s.jsxs)("div",{className:"lander-data-point",children:[(0,s.jsxs)("div",{className:"lander-title",children:["TIME",(0,s.jsx)("br",{}),"SECS"]}),(0,s.jsx)("div",{className:"lander-line",children:"---------------------------------"})]}),(0,s.jsxs)("div",{className:"lander-data-point",children:[(0,s.jsxs)("div",{className:"lander-title",children:["ALTITUDE",(0,s.jsx)("br",{}),"MILES/FEET"]}),(0,s.jsx)("div",{className:"lander-line",children:"---------------------------------"})]})]}),(0,s.jsxs)("div",{className:"lander-row",children:[(0,s.jsxs)("div",{className:"lander-data-point",children:[(0,s.jsxs)("div",{className:"lander-title",children:["VELOCITY",(0,s.jsx)("br",{}),"MPH"]}),(0,s.jsx)("div",{className:"lander-line",children:"---------------------------------"})]}),(0,s.jsxs)("div",{className:"lander-data-point",children:[(0,s.jsxs)("div",{className:"lander-title",children:["FUEL",(0,s.jsx)("br",{}),"LBS"]}),(0,s.jsx)("div",{className:"lander-line",children:"---------------------------------"})]})]}),(0,s.jsxs)("div",{className:"lander-input-holder",children:[(0,s.jsxs)("div",{className:"lander-title",children:["FUEL",(0,s.jsx)("br",{}),"RATE"]}),(0,s.jsx)("div",{className:"lander-line",children:"---------------------------------"})]})]}),(0,s.jsxs)("div",{id:"lander-response-template",className:"lander-response",children:[(0,s.jsxs)("div",{className:"lander-row",children:[(0,s.jsxs)("div",{className:"lander-data-point",children:[(0,s.jsxs)("div",{className:"lander-title",children:["TIME",(0,s.jsx)("br",{}),"SECS"]}),(0,s.jsx)("div",{className:"lander-line",children:"---------------------------------"}),(0,s.jsx)("div",{className:"lander-data lander-data-1",children:"0"})]}),(0,s.jsxs)("div",{className:"lander-data-point",children:[(0,s.jsxs)("div",{className:"lander-title",children:["ALTITUDE",(0,s.jsx)("br",{}),"MILES/FEET"]}),(0,s.jsx)("div",{className:"lander-line",children:"---------------------------------"}),(0,s.jsx)("div",{className:"lander-data lander-data-2",children:"0"})]})]}),(0,s.jsxs)("div",{className:"lander-row",children:[(0,s.jsxs)("div",{className:"lander-data-point",children:[(0,s.jsxs)("div",{className:"lander-title",children:["VELOCITY",(0,s.jsx)("br",{}),"MPH"]}),(0,s.jsx)("div",{className:"lander-line",children:"---------------------------------"}),(0,s.jsx)("div",{className:"lander-data lander-data-3",children:"0"})]}),(0,s.jsxs)("div",{className:"lander-data-point",children:[(0,s.jsxs)("div",{className:"lander-title",children:["FUEL",(0,s.jsx)("br",{}),"LBS"]}),(0,s.jsx)("div",{className:"lander-line",children:"---------------------------------"}),(0,s.jsx)("div",{className:"lander-data lander-data-4",children:"0"})]})]}),(0,s.jsxs)("div",{className:"lander-input-holder",children:[(0,s.jsxs)("div",{className:"lander-title",children:["FUEL",(0,s.jsx)("br",{}),"RATE"]}),(0,s.jsx)("form",{className:"lander-input-form",children:(0,s.jsx)("input",{className:"lander-input"})})]})]})]})}var c=a(9734);let d={mobile:767,tablet:1279};function m(e){return e<=d.mobile?"mobile":e<=d.tablet?"tablet":"desktop"}function u(){let[e,t]=(0,n.useState)(void 0);return(0,n.useEffect)(()=>{function e(){t(m(window.innerWidth))}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}let h={rootMargin:"0px",triggerOnce:!0},g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{rootMargin:t,triggerOnce:a,onChange:i,viewOffsetDelay:s}={...h,...e},r=(0,n.useRef)(),[o,l]=(0,n.useState)(!1),c=(0,n.useRef)(!1),d=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e=new IntersectionObserver(e=>{e.forEach(e=>{if(a&&c.current)return;d.current&&clearTimeout(d.current);let t=e.isIntersecting;if(t){if(c.current=!0,e.isIntersecting){if(s){let n=e.boundingClientRect.top/window.innerHeight*s*1e3;d.current=setTimeout(()=>{l(!0)},n)}else l(!0)}}else l(t);"function"==typeof i&&i(t)})},{rootMargin:t});return e.observe(r.current),()=>{null==e||e.disconnect()}},[s]),(0,n.useEffect)(()=>()=>{d.current&&clearTimeout(d.current)},[]),{inViewRef:r,isInView:o}};var p=a(5309),_=a.n(p),v=function(e){let{image:t,alt:a="",onLoaded:i,layout:r="fluid"}=e,{isInView:o,inViewRef:l}=g({triggerOnce:!0,rootMargin:"50% 0%"}),c=(0,n.useRef)(null),[d,m]=(0,n.useState)(!1),u=o&&d,h=null==t?void 0:t.src,p=(null==t?void 0:t.width)||100,v=(null==t?void 0:t.height)||100;return(0,n.useEffect)(()=>{let e=()=>{"function"==typeof i&&i(),m(!0)},t=c.current;return t.addEventListener("load",e),()=>{t.removeEventListener("load",e)}},[h]),(0,s.jsx)("div",{className:_().ComicImage,"data-layout":r,ref:l,style:{"--aspect-ratio":"".concat(p," / ").concat(v),opacity:u?1:0},children:(0,s.jsx)("img",{ref:c,src:o?null==t?void 0:t.src:void 0,alt:(null==t?void 0:t.alt)||a,width:p,height:v,className:_().img})})},f=function(e){let{image:t,alt:a="",onLoaded:i}=e;return(0,s.jsx)(v,{image:t,alt:a,onLoaded:i})};let x=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,n.useRef)([]),a=(0,n.useRef)(0),i=200;return(0,n.useEffect)(()=>{let s;let n=()=>{var e;let i=(null===(e=t.current)||void 0===e?void 0:e.length)||0;t.current.forEach((e,t)=>{e.style.opacity=t===a.current?1:0}),a.current=(a.current+1)%i};return n(),e&&(s=setInterval(n,i)),()=>{s&&clearInterval(s)}},[e]),t};var b=a(8660),C=a.n(b),S=function(e){let{images:t,alt:a="",onLoaded:i,isPlaying:r}=e,o=(null==t?void 0:t.length)||0,l=(0,n.useRef)(0),c=x(r),d=()=>{l.current=l.current+1,l.current>=o&&"function"==typeof i&&i()};return(0,s.jsx)("div",{className:C().ComicInkSequence,children:null==t?void 0:t.map((e,t)=>(0,s.jsx)("div",{className:C().image,ref:e=>c.current[t]=e,children:(0,s.jsx)(v,{image:e,alt:0===t?a:"",onLoaded:d})},e.id))})},I=a(990),T=a(5317),N=a(4715),E=a(3708),w=a.n(E);let k=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e<t?t:e>a?a:e},y=(e,t,a)=>t+e*(a-t),A=(e,t,a)=>(e-t)/(a-t),j=(e,t,a,i,s,n)=>(e=y(A(e,t,a),i,s),n&&(e=k(e,i,s)),e),L={desktop:{min:26,max:5472},tablet:{min:8,max:6159},mobile:{min:22,max:6333}},O=e=>{let{isReady:t=!0,animation:a=[],onComplete:i}=e,s=(0,n.useRef)(null),r=(0,n.useRef)(),o=(0,n.useRef)(!1),[l,c]=(0,n.useState)(!1),d=u();return(0,N.V)(()=>{var e;I.p8.registerPlugin(w()),!o.current&&t&&(null===(e=r.current)||void 0===e||e.kill(),r.current=I.p8.timeline({onComplete(){o.current=!0,c(!0),"function"==typeof i&&i()}}).set(s.current,{opacity:1}),a.forEach(e=>{let t=I.p8.utils.toArray(e.selector).at(0),a=null==t?void 0:t.getTotalLength(),i=20,s=.5;L[d]&&(i=Math.floor(j(a,L[d].min,L[d].max,3,20,!0)),s=j(a,L[d].min,L[d].max,.25,1,!0)),t?r.current.fromTo(t,{drawSVG:e.reversePath?"0% 100%":"100% 0%"},{drawSVG:e.reversePath?"0% 0%":"100% 100%",ease:T.NB.config(i),duration:e.duration||s,delay:e.delay||0},e.position):console.log('usePathAnimation: Missing Path for "'.concat(e.selector,'"'))}))},{scope:s,dependencies:[t]}),{rootRef:s,isComplete:l}};var B=a(4947),R=a.n(B),M=function(e){let{isReady:t=!0,children:a,animation:i=[],onComplete:n,isSvgHeightBased:r=!1}=e,{rootRef:o,isComplete:l}=O({isReady:t,animation:i,onComplete:n});return(0,s.jsxs)("div",{className:"".concat(R().ComicInkReveal," ").concat(r?R().svgHeightBased:""),ref:o,style:{opacity:l?0:1},children:[(0,s.jsx)("div",{className:R().overlay,style:{opacity:t?0:1}}),a]})},D=function(e){let{image:t,alt:a="",onLoaded:i}=e;return(0,s.jsx)(v,{image:t,alt:a,onLoaded:i,layout:"fill"})},H=a(4085),F=a.n(H),P=function(e){let{isReady:t=!0,children:a,animation:i=[]}=e,{rootRef:n,isComplete:r}=O({isReady:t,animation:i});return(0,s.jsx)("div",{ref:n,className:F().ComicHighlightReveal,style:{opacity:r?0:1},children:a})};function W(){let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=()=>{t(!0),window.removeEventListener("scroll",e,!0)};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}},[]),e}var G=a(8690),U=a.n(G),V=function(e){let{inkImageSequence:t,inkImage:a,highlightImage:i,inkRevealSVG:r,highlightRevealSVG:o,inkRevealAnimation:l,highlightRevealAnimation:c,children:d,spacingBottom:m=0}=e,[u,h]=(0,n.useState)(!a),[p,_]=(0,n.useState)(!i),[v,x]=(0,n.useState)(!1),b=W(),{inViewRef:C,isInView:I}=g({rootMargin:"0px 0px -100px 0px",triggerOnce:!0,viewOffsetDelay:b?.4:4}),{inViewRef:T,isInView:N}=g({triggerOnce:!1}),E=u&&p,w=I&&E,k=I&&E&&v,y=I&&N&&E,A=k&&N,j=()=>h(!0),L=()=>_(!0),O=()=>x(!0);return(0,s.jsx)("div",{className:U().ComicBlock,ref:C,style:{"--spacing-bottom":m},children:(0,s.jsxs)("div",{ref:T,children:[(0,s.jsxs)("div",{className:U().highlight,"data-paused":A?"false":"true",children:[i&&(0,s.jsx)(D,{image:i,onLoaded:L}),o&&(0,s.jsx)(P,{isReady:k,animation:c,children:o})]}),(null==t?void 0:t.length)?(0,s.jsx)(S,{images:t,onLoaded:j,isPlaying:y}):(0,s.jsx)(s.Fragment,{children:a&&(0,s.jsx)(f,{image:a,onLoaded:j})}),(0,s.jsx)(M,{isReady:w,animation:l,onComplete:O,children:r}),d&&(0,s.jsx)("div",{className:U().children,style:{opacity:w?1:0},children:d})]})})},Z=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 1440 460",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_2668_22664)",children:[(0,s.jsx)("path",{id:"border-outline-1",d:"M87 35.7094C87 35.7094 1326.5 21.7093 1331.5 29.2095C1336.5 36.7096 1343.56 439.445 1334.5 448.5C1325.5 457.5 114.5 457 109.5 444C102 436 106 43.7094 106 43.7094",stroke:"white",strokeWidth:"23"}),(0,s.jsx)("path",{id:"text-reveal-1",d:"M143 110.5L738 97L166 153.5L719.5 166.5L134 209.5L701 205",stroke:"white",strokeWidth:"60"}),(0,s.jsx)("path",{id:"text-reveal-2",d:"M146.5 283.5L686 262L150.5 327.5L686 317L139.5 365.5L704.5 374",stroke:"white",strokeWidth:"60"}),(0,s.jsx)("path",{id:"bill-reveal",d:"M1002 39L1200 32L1002 66.5L1224 70.5L995 111.5H1212.5L1007.5 149L1212.5 158.5L1002 182L1217 197.5L1007.5 211L1200 241L1024 254.5L1241.5 300L982 305L1252.5 326L926.5 343L1317.5 337L896 374.5L1317.5 409.5L880.5 406L1085.5 412",stroke:"white",strokeWidth:"60"}),(0,s.jsx)("path",{id:"signature-reveal-1",d:"M1098 417.277C1105.5 404.277 1108 377.277 1138.5 379.277C1142.5 379.54 1135.9 396.577 1117.5 401.777C1115.5 402.577 1121.67 408.111 1125 410.777C1123.5 414.777 1118.1 422.077 1108.5 419.277C1098.9 416.477 1132.5 406.777 1148.5 397.777C1142.17 398.777 1130 406.277 1137.5 414.277C1145 422.277 1188 384.777 1181 378.277C1175.04 372.739 1144.5 415.777 1162 412.277C1179.5 408.777 1202.77 388.238 1197 384.777C1189.5 380.277 1169 405.777 1180 415.277",stroke:"white",strokeWidth:"7"}),(0,s.jsx)("path",{id:"signature-reveal-2",d:"M1209 413.777C1225 411.777 1245.94 373.5 1235 370C1222.58 366.026 1231 405.892 1259 372.777C1254.17 392.611 1237.04 432.33 1227.5 416.277C1218.88 401.777 1243.5 403.777 1255 401.777C1264.5 396.777 1281.98 393.302 1265.5 409.777C1253.5 421.777 1245.5 402.776 1268.5 398.777C1271.5 398.277 1265.5 411.777 1272.5 410.777C1279.67 404.944 1299 378.777 1293 376.777C1290.5 376.277 1270.5 413.577 1284.5 410.777C1293.5 408.944 1311.1 402.977 1309.5 393.777C1307.5 382.277 1286 411.277 1297 410.777C1308 410.277 1323.5 400.277 1326 398.277C1328.5 396.277 1324 415.777 1316.5 412.777C1310.5 410.377 1309.67 406.777 1309.5 405.277",stroke:"white",strokeWidth:"7"}),(0,s.jsx)("path",{id:"signature-reveal-3",d:"M1305 383.777C1297.83 385.611 1282.5 388.777 1278.5 386.777",stroke:"white",strokeWidth:"7"}),(0,s.jsx)("path",{id:"signature-reveal-4",d:"M1150 379L1161 380",stroke:"white",strokeWidth:"12"}),(0,s.jsx)("path",{id:"speech-bubble-reveal",d:"M803.669 157.925C729.169 176.425 682.169 294.925 772.669 323.925C867.648 354.36 938.669 310.425 958.169 263.425C958.169 263.425 1036.84 243.259 1021.67 242.925C1006.5 242.592 969.5 243.5 972.169 225.425C975.748 201.188 961.669 92.9252 792.169 161.425",stroke:"white",strokeWidth:"25"}),(0,s.jsx)("path",{id:"text-bubble-reveal",d:"M749.5 218L935.5 171L752.5 234L935.5 190L731 253L947.5 210.5L737 269L947.5 229.5L749.5 292L943.5 250L752.5 304L947.5 269",stroke:"white",strokeWidth:"18"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_2668_22664",children:(0,s.jsx)("rect",{width:"1440",height:"460",fill:"white"})})})]})},Y=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 1440 460",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"my-first-code-highlight-reveal",d:"M130.5 173C273.667 178.667 590.2 185.4 711 167C565.167 179 243.2 201.6 122 196L700 203L122 216H700",stroke:"white",strokeWidth:"34"}),(0,s.jsx)("path",{id:"bill-highlight-reveal",d:"M1047.52 257C1041.02 273 1022.92 306.4 1002.52 312C977.019 319 889.519 406.5 891.019 426.5C892.219 442.5 995.852 351.5 1047.52 304L938.52 433.5L1074.02 322L966.02 444.5L1082.02 351.5L1011.02 444.5L1096.52 356.5L1055.52 444.5L1102.52 338L1082.02 444.5L1111.02 328.5V444.5L1132.02 322L1143.02 444.5L1154.02 304L1171.52 441L1175.02 295.5L1204.02 442.5L1175.02 268.5L1231.02 441L1205.52 290L1263.02 438L1244.52 306L1299.02 436.5L1282.02 324.5L1322.52 422.5",stroke:"white",strokeWidth:"34"})]})};let q=[{selector:"#border-outline-1"},{selector:"#text-reveal-1",position:.5},{selector:"#text-reveal-2"},{selector:"#bill-reveal",position:.5},{selector:"#text-bubble-reveal",position:.5},{selector:"#speech-bubble-reveal",position:.75,reversePath:!0},{selector:"#signature-reveal-1"},{selector:"#signature-reveal-2"},{selector:"#signature-reveal-3"},{selector:"#signature-reveal-4"}],K=[{selector:"#my-first-code-highlight-reveal"},{selector:"#bill-highlight-reveal"}];var z=function(e){return(0,s.jsx)(V,{...e,inkRevealSVG:(0,s.jsx)(Z,{}),highlightRevealSVG:(0,s.jsx)(Y,{}),inkRevealAnimation:q,highlightRevealAnimation:K,spacingBottom:32})},Q=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 1440 223",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"text-reveal-4",d:"M99 191.5L1376 198",stroke:"white",strokeWidth:"42"}),(0,s.jsx)("path",{id:"text-reveal-3",d:"M97 134.5L1376 148.5",stroke:"white",strokeWidth:"42"}),(0,s.jsx)("path",{id:"text-reveal-2",d:"M93.5 78.5L1373 92",stroke:"white",strokeWidth:"45"}),(0,s.jsx)("path",{id:"text-reveal-1",d:"M98 28L1373 31.5",stroke:"white",strokeWidth:"42"})]})},J=function(e){let t=[{selector:"#text-reveal-1",position:0},{selector:"#text-reveal-2",position:.2},{selector:"#text-reveal-3",position:.4},{selector:"#text-reveal-4",position:.8}];return(0,s.jsx)(V,{...e,inkRevealSVG:(0,s.jsx)(Q,{}),inkRevealAnimation:t,spacingBottom:32})},X=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 1440 205",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"text-reveal-layer",d:"M577 29L834 40.5L118 104L1300 83L129 143L1308 130",stroke:"white",strokeWidth:"48"}),(0,s.jsx)("path",{id:"border-reveal",d:"M831.5 40L1320.5 31V181L112 193.5L117.5 65L577 50",stroke:"white",strokeWidth:"20"})]})},$=function(){return(0,s.jsx)("svg",{viewBox:"0 0 1440 205",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{id:"highlight-reveal",d:"M564.5 16H858.5L561 31L858.5 35.5L95 64.5L1294 35L102 93L1325 47L115.5 112.5L1331 73L115.5 137L1339 101.5L102 160.5L1334.5 131L108.5 186.5L1322 155",stroke:"white",strokeWidth:"30"})})};let ee=[{selector:"#border-reveal"},{selector:"#text-reveal-layer"}],et=[{selector:"#highlight-reveal"}];var ea=function(e){return(0,s.jsx)(V,{...e,inkRevealSVG:(0,s.jsx)(X,{}),highlightRevealSVG:(0,s.jsx)($,{}),inkRevealAnimation:ee,highlightRevealAnimation:et,spacingBottom:32})},ei=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 1440 1025",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"highlight-reveal-1",d:"M197 124L435.5 131",stroke:"white",strokeWidth:"35"}),(0,s.jsx)("path",{id:"highlight-reveal-2",d:"M172.5 268.5C285.5 278 435.5 273 435.5 273",stroke:"white",strokeWidth:"42"}),(0,s.jsx)("path",{id:"highlight-reveal-3",d:"M116 329.555C248.5 317.056 288 329.556 288 329.556",stroke:"white",strokeWidth:"46.8"}),(0,s.jsx)("path",{id:"highlight-reveal-4",d:"M243 566.5C351 575.5 469 564.5 469 564.5",stroke:"white",strokeWidth:"45"}),(0,s.jsx)("path",{id:"highlight-reveal-5",d:"M130 617.5C130 617.5 238.5 622.5 311 617.5",stroke:"white",strokeWidth:"35"}),(0,s.jsx)("path",{id:"highlight-reveal-6",d:"M1049 59L1196.5 63",stroke:"white",strokeWidth:"35"}),(0,s.jsx)("path",{id:"highlight-reveal-7",d:"M1019 453.5C1114 461.5 1238.5 451.5 1238.5 451.5",stroke:"white",strokeWidth:"35"}),(0,s.jsx)("path",{id:"highlight-reveal-8",d:"M972 498C1067 506 1214 502.5 1214 502.5",stroke:"white",strokeWidth:"37"}),(0,s.jsx)("path",{id:"highlight-reveal-9",d:"M905.5 556.5C1019 551.5 1265 551.5 1265 551.5",stroke:"white",strokeWidth:"37"})]})},es=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 1440 1025",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_2050_162193)",children:[(0,s.jsx)("path",{id:"arrow-text-reveal",d:"M164 812C164 861.5 215 940 310.5 933.5C435.5 913.5 502.5 943 537 955.5",stroke:"white",strokeWidth:"42"}),(0,s.jsx)("path",{id:"teletype-ink-reveal",d:"M35 72.5L1341.5 43.5L66.5 197L1315 155.5L131 293H1280L109.5 425L1280 467.5L117 567L1263.5 588.5L131 679L1208 713L487 786L884.5 863",stroke:"white",strokeWidth:"120"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_2050_162193",children:(0,s.jsx)("rect",{width:"1440",height:"1025",fill:"white"})})})]})};let en=[{selector:"#teletype-ink-reveal"},{selector:"#arrow-text-reveal"}];var er=function(e){let t=[{selector:"#highlight-reveal-1",position:0},{selector:"#highlight-reveal-2",position:.2},{selector:"#highlight-reveal-3",position:"<0.2"},{selector:"#highlight-reveal-4",position:.4},{selector:"#highlight-reveal-5",position:"<0.2"},{selector:"#highlight-reveal-6",position:.6},{selector:"#highlight-reveal-7",position:.8},{selector:"#highlight-reveal-8",position:"<0.2"},{selector:"#highlight-reveal-9",position:"<0.4"}];return(0,s.jsx)(V,{...e,inkRevealSVG:(0,s.jsx)(es,{}),inkRevealAnimation:en,highlightRevealSVG:(0,s.jsx)(ei,{}),highlightRevealAnimation:t,spacingBottom:18})},eo=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 1440 544",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"arrow-reveal-1",d:"M716 34.0006C730.5 17.5005 772.5 17.0005 786.5 59.5005",stroke:"white",strokeWidth:"44"}),(0,s.jsx)("path",{id:"arrow-reveal-2",d:"M1004 54.5C1035 25.9999 1096 74.5001 1100 101.1",stroke:"white",strokeWidth:"32"}),(0,s.jsx)("path",{id:"arrow-reveal-3",d:"M1207 262L1207 310",stroke:"white",strokeWidth:"26"}),(0,s.jsx)("path",{id:"arrow-reveal-4",d:"M1137.5 479.5C1137.5 479.5 1101.5 488 1022 485",stroke:"white",strokeWidth:"44.5"}),(0,s.jsx)("path",{id:"arrow-reveal-5",d:"M683.8 426H610",stroke:"white",strokeWidth:"34"}),(0,s.jsx)("path",{id:"arrow-reveal-6",d:"M321.001 409C307.001 409 278.5 404.5 280 330",stroke:"white",strokeWidth:"53"}),(0,s.jsx)("path",{id:"arrow-reveal-7",d:"M424.5 66.5006C405 62.5005 342 38.5009 342 92.5008",stroke:"white",strokeWidth:"54"}),(0,s.jsx)("path",{id:"textbox-reveal-1",d:"M512.5 33.9999C584 32.4999 726.3 18.0997 727.5 64.4997C728.7 110.9 731.501 161 727.5 169.5C721.833 175 704.2 186.2 679 187C653.8 187.8 580.167 185 546.5 183.5C546.5 183.5 478.5 188.167 468.5 183.5C458.5 178.833 435.501 174.5 437 150.5C437.951 135.282 433.5 86.8331 432.5 64.4997C435.5 51 438.751 30.9999 473.5 30.9997C500.5 30.9996 520 30.9999 528.5 30.9999",stroke:"white",strokeWidth:"13"}),(0,s.jsx)("path",{id:"textbox-reveal-2",d:"M872.499 63.9992L793.499 64.9992C783.333 66.3325 763.497 72.9993 765.999 102.499C768.501 131.996 765.667 160.833 766.499 170.999C768.666 178.166 767.999 195.499 797.999 190.999C817.814 188.027 941.166 191.666 1001.5 193.499C1009 194.333 1025.6 190.499 1022 162.499C1018.4 134.499 1020.5 105.499 1022 94.4992C1025 83.8325 1003.5 64.4992 978.999 62.4992C937.537 59.1145 893 67.9995 871.499 64.0119",stroke:"white",strokeWidth:"11"}),(0,s.jsx)("path",{id:"textbox-reveal-3",d:"M1113 107.501C1087.5 106.5 1044.2 101.201 1045 144.001C1045.8 186.801 1046.67 226.167 1047.5 240.501C1046.83 247.667 1054.1 261.201 1084.5 260.001C1114.9 258.801 1242.5 253.001 1302.5 250.001C1315.67 250.667 1337.55 244.965 1336 211.501C1334.5 179.001 1332.67 148.001 1332 137.501C1332 127.334 1323 107.501 1281 108.501C1241.01 109.453 1166.67 107.001 1134 107.001L1112.5 107.011",stroke:"white",strokeWidth:"11"}),(0,s.jsx)("path",{id:"textbox-reveal-4",d:"M1066 340.499C1066 295.5 1133 325 1191.5 315.8C1224.17 315.8 1246.5 318.5 1287 317.5C1326.99 316.512 1331.33 320.5 1334.5 330C1338 340.5 1340 391.5 1330.5 424.5C1326.78 437.415 1316 452 1303 452.5C1230 447.5 1132.32 449.883 1096.5 455C1065 459.5 1062.59 442.5 1060 435C1055 420.5 1066 383.307 1066 340.499Z",stroke:"white",strokeWidth:"10"}),(0,s.jsx)("path",{id:"textbox-reveal-5",d:"M711 340L764.5 342.5C815.667 340.667 920.6 339.8 963 337C1005.4 334.2 1016.33 349.5 1016.5 357.5C1016.17 389.5 1017.5 462 1014 492.5C1010.44 523.56 983.5 526 967 528C902 523.5 794.5 521.5 720 531C698.34 533.762 687 521 683.5 504C686.5 480 694 419 692 378C690.577 348.824 694.5 339.5 711 340Z",stroke:"white",strokeWidth:"12"}),(0,s.jsx)("path",{id:"textbox-reveal-6",d:"M431.001 339.5H580.001C588.667 339.334 605.901 347.1 605.501 379.5C605.101 411.9 600.833 450.96 601 466.46C600 479.627 591.6 505.86 566 505.46C540.4 505.06 421.501 504.934 363.001 506.1C349.834 507.267 324.101 504.701 326.501 475.501C328.901 446.301 329.167 387.334 329 361.501C331 351.5 330.4 337.5 358 339.5C385.6 341.5 422.167 338.334 437 336.5",stroke:"white",strokeWidth:"14"}),(0,s.jsx)("path",{id:"textbox-reveal-7",d:"M259.999 100.5H352.499C363.499 100.167 385.899 107.2 387.499 138C389.099 168.8 390.366 245.5 391.699 280C389.7 293.5 380 317 357.499 317C325.089 317 200.666 324.667 142.499 328C129.666 331.333 103.899 329 103.499 293C103.099 257 103.332 170 103.499 131C101.333 118.5 105.401 94.1997 139.001 97C172.601 99.8004 234 99.5001 260.5 101",stroke:"white",strokeWidth:"14"})]})},el=function(){return(0,s.jsx)("svg",{viewBox:"0 0 1440 544",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{id:"feedback-loop-highlight-reveal",d:"M439 238.5C625.5 240.333 993.9 238.4 1005.5 238C1017.1 237.6 625.667 252.667 424.5 258.5L1003 257.5L423.5 278H992L454.5 294H987.5",stroke:"white",strokeWidth:"20"})})},ec=function(e){let t=[{selector:"#textbox-reveal-1"},{selector:"#arrow-reveal-1",position:"<+=0.3",duration:.3},{selector:"#textbox-reveal-2",reversePath:!0},{selector:"#arrow-reveal-2",position:"<+=0.3",duration:.3},{selector:"#textbox-reveal-3",reversePath:!0},{selector:"#arrow-reveal-3",position:"<+=0.3",duration:.3},{selector:"#textbox-reveal-4",reversePath:!0},{selector:"#arrow-reveal-4",position:"<+=0.3",duration:.3},{selector:"#textbox-reveal-5",reversePath:!0},{selector:"#arrow-reveal-5",position:"<+=0.3",duration:.3},{selector:"#textbox-reveal-6"},{selector:"#arrow-reveal-6",position:"<+=0.3",duration:.3},{selector:"#textbox-reveal-7"},{selector:"#arrow-reveal-7",position:"<+=0.3",duration:.3}],a=[{selector:"#feedback-loop-highlight-reveal",duration:1,delay:0,drawStart:"0% 100%",drawEnd:"0% 0%"}];return(0,s.jsx)(V,{...e,inkRevealSVG:(0,s.jsx)(eo,{}),highlightRevealSVG:(0,s.jsx)(el,{}),inkRevealAnimation:t,highlightRevealAnimation:a,spacingBottom:32})},ed=a(4633),em=a.n(ed),eu=function(e){let{isPlaying:t=!0,videoSources:a=[],className:i}=e,r=(0,n.useRef)(null),[o,l]=(0,n.useState)(!1),{inViewRef:c,isInView:d}=g({triggerOnce:!1,onChange(e){e&&!o&&l(!0)}});return(0,n.useEffect)(()=>{var e,a;d&&t?null===(e=r.current)||void 0===e||e.play():null===(a=r.current)||void 0===a||a.pause()},[d,t]),(0,s.jsx)("div",{className:"".concat(em().ComicVideoLoop," ").concat(i),ref:c,style:{opacity:o?1:0},children:(0,s.jsx)("video",{loop:!0,autoPlay:!0,muted:!0,playsInline:!0,ref:r,children:a.map(e=>(0,s.jsx)("source",{src:e.src,type:e.type},e.src))})})},eh=a(2190),eg=a.n(eh),ep=function(){return(0,s.jsx)("svg",{viewBox:"0 0 1440 304",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{id:"border-reveal",d:"M1134.5 35.5C998.5 26.8333 718.8 14.6 682 25C645.2 35.4 304.666 29.3334 139 25C127.333 22.8334 104 24.7001 104 49.5001C104 74.3001 104 166.167 104 209C102.666 219.667 106.7 240.8 133.5 240C160.3 239.2 367 239.667 467 240H1126.5",stroke:"white",strokeWidth:"34"})})},e_=function(){return(0,s.jsx)("svg",{viewBox:"0 0 1440 304",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{id:"souce-code-highlight-reveal",d:"M667.5 193.501C725.5 177 909.5 182 945.5 193.501",stroke:"white",strokeWidth:"34"})})},ev=function(e){let{inkImage:t,highlightImage:a,videoSources:i}=e,n=[{selector:"#border-reveal"}],r=[{selector:"#souce-code-highlight-reveal"}];return(0,s.jsx)("div",{className:eg().ComicSourceCodeQuoteDesktop,children:(0,s.jsx)(V,{inkImage:t,highlightImage:a,inkRevealAnimation:n,highlightRevealAnimation:r,inkRevealSVG:(0,s.jsx)(ep,{}),highlightRevealSVG:(0,s.jsx)(e_,{}),spacingBottom:0,children:!!(null==i?void 0:i.length)&&(0,s.jsx)(eu,{videoSources:i,isPlaying:!0,className:eg().video})})})},ef=a(3345),ex=a.n(ef),eb=function(e){return(0,s.jsxs)("div",{className:ex().ComicBookDesktop,children:[(0,s.jsx)(z,{...e.header}),(0,s.jsx)(J,{...e.subheading}),(0,s.jsx)(ea,{...e.teletypeBanner}),(0,s.jsx)(er,{...e.teletype}),(0,s.jsx)(ec,{...e.feedbackLoop}),(0,s.jsx)(ev,{...e.sourceCodeQuote})]})},eC=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 960 329",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"signature-reveal-4",d:"M783.237 269.088L791.494 269.838",stroke:"white",strokeWidth:"9.00704"}),(0,s.jsx)("path",{id:"signature-reveal-3",d:"M891.696 272.841C886.317 274.217 874.808 276.594 871.806 275.092",stroke:"white",strokeWidth:"5.2541"}),(0,s.jsx)("path",{id:"signature-reveal-2",d:"M824.52 294.739C838.405 295.358 848.163 262.708 843.284 262.332C832.121 261.473 839.907 288.777 860.548 265.335C864.676 269.463 847.037 304.74 837.498 296.493C831.449 286.322 845.35 287.003 853.417 285.601C860.082 282.093 874.822 279.473 864.301 291.981C857.315 300.284 847.037 290.855 866.26 284.218C868.364 283.867 864.155 293.336 869.066 292.635C874.093 288.543 887.656 270.188 883.447 268.785C881.693 268.435 867.663 294.599 877.484 292.635C883.798 291.349 896.144 287.164 895.022 280.71C893.619 272.643 878.536 292.986 886.253 292.635C893.97 292.284 904.843 285.27 906.597 283.867C908.351 282.464 905.194 296.142 899.933 294.038C895.723 292.354 895.139 289.829 895.022 288.777",stroke:"white",strokeWidth:"6.00469"}),(0,s.jsx)("path",{id:"signature-reveal-1",d:"M744.957 297.301C750.31 288.022 753.213 269.088 773.866 270.177C776.723 270.328 774.228 281.138 761.095 284.85C759.667 285.421 761.85 290.758 764.229 292.662C763.159 295.517 759.304 300.728 752.452 298.729C745.599 296.73 782.486 288.603 780.985 282.223C777.983 276.218 769.726 291.98 774.605 294.983C779.484 297.985 809.198 274.103 804.202 269.464C799.944 265.51 779.753 295.605 792.244 293.106C804.735 290.608 819.254 276.812 815.137 274.342C809.783 271.13 798.624 287.477 803.488 295.874",stroke:"white",strokeWidth:"6.00469"}),(0,s.jsx)("path",{id:"bill-reveal",d:"M672.15 28.1494L820.766 22.8953L672.15 48.7905L838.78 51.7928L666.896 82.5669H830.148L676.278 110.714L830.148 117.844L672.15 135.483L833.526 147.117L699.624 158.627L820.766 179.768L697.624 185.627L879.312 227.805L661.124 215.627L860.172 243.568H631.124L908.96 251.824L600.124 263.127L897.124 279.627C906.062 284.229 722.124 299.427 579.077 283.782",stroke:"white",strokeWidth:"44.04"}),(0,s.jsx)("path",{id:"text-bubble-reveal",d:"M489.382 154.248L628.991 118.97L491.634 166.257L628.991 133.231L475.496 180.518L637.998 148.618L480 192.528L637.998 162.88L489.382 209.791L634.996 178.267L491.634 218.798L637.998 192.528",stroke:"white",strokeWidth:"13.5106"}),(0,s.jsx)("path",{id:"speech-bubble-reveal",d:"M530.041 110.658C474.123 124.544 438.845 213.488 506.773 235.255C578.063 258.099 631.37 225.122 646.007 189.845C646.007 189.845 695.053 174.708 683.669 174.458C672.285 174.207 656.515 171.601 656.515 161.322C656.515 142.933 648.634 61.8696 521.409 113.285",stroke:"white",strokeWidth:"13.5106"}),(0,s.jsx)("path",{id:"text-reveal-2",d:"M60.5953 207.758L426.652 193.17L63.3093 237.613L432.713 230.432L55.8457 263.396L443.222 269.088",stroke:"white",strokeWidth:"40.7106"}),(0,s.jsx)("path",{id:"text-reveal-1",d:"M62.025 83.0951L465.739 73.9352L70.9301 112.215L453.186 121.092L52.916 151.996L440.634 147.214",stroke:"white",strokeWidth:"40.7106"}),(0,s.jsx)("path",{id:"border-outline-1",d:"M15.3867 26.4301C15.3867 26.4301 923.596 20.2682 927.349 25.8977C931.102 31.5272 927.349 298.127 929.601 310.588C927.536 312.653 841.766 319.33 725.625 320.427C457.125 319.927 34.8808 317.938 32.2749 316.375C26.6455 310.37 29.6479 32.4348 29.6479 32.4348",stroke:"white",strokeWidth:"15.3"})]})},eS=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 960 328",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"bill-highlight-reveal",d:"M708.318 183.521C703.886 194.43 691.544 217.204 677.635 221.022C660.247 225.795 600.586 285.457 601.609 299.094C602.427 310.003 673.089 247.955 708.318 215.568L633.997 303.867L726.387 227.841L653.011 312.622L731.842 247.955L680.783 315.624L741.728 251.364L713.773 311.367L745.819 238.75L731.842 311.367L751.615 232.273V311.367L765.934 227.841L773.434 311.367L780.935 215.568L792.867 308.98L795.253 209.772L815.027 310.003L797.874 191.777L833.437 308.98L816.05 206.022L855.256 306.935L842.642 216.931L879.802 305.912L868.211 229.545L897.327 303.99",stroke:"white",strokeWidth:"22.5176"}),(0,s.jsx)("path",{id:"my-first-code-highlight-reveal",d:"M53.6521 129.577C154.543 133.57 377.607 138.315 462.736 125.348C359.966 133.805 133.073 149.731 47.6621 145.785L454.985 148.618L47.6621 162.129L454.985 159.879",stroke:"white",strokeWidth:"21.1413"})]})},eI=function(e){return(0,s.jsx)(V,{...e,inkRevealSVG:(0,s.jsx)(eC,{}),highlightRevealSVG:(0,s.jsx)(eS,{}),inkRevealAnimation:q,highlightRevealAnimation:K,spacingBottom:18})},eT=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 960 262",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"text-reveal-5",d:"M24.0234 234.786L418.9 235.537",stroke:"white",strokeWidth:"36.0344"}),(0,s.jsx)("path",{id:"text-reveal-4",d:"M24.0234 187.679L236.476 187.116L448.929 192.559L877.963 187.679",stroke:"white",strokeWidth:"36.0344"}),(0,s.jsx)("path",{id:"text-reveal-3",d:"M24.0234 134.378L505.233 135.129L941.399 143.387",stroke:"white",strokeWidth:"37.5358"}),(0,s.jsx)("path",{id:"text-reveal-2",d:"M27.0254 84.0802C426.031 70.5673 541.641 91.212 929.762 87.4584",stroke:"white",strokeWidth:"41.2894"}),(0,s.jsx)("path",{id:"text-reveal-1",d:"M29.2773 27.0258C374.231 35.659 568.667 24.3982 917.375 35.659",stroke:"white",strokeWidth:"33.7822"})]})};let eN=[{selector:"#text-reveal-1"},{selector:"#text-reveal-2"},{selector:"#text-reveal-3"},{selector:"#text-reveal-4"},{selector:"#text-reveal-5"}];var eE=function(e){return(0,s.jsx)(V,{...e,inkRevealSVG:(0,s.jsx)(eT,{}),inkRevealAnimation:eN,spacingBottom:18})},ew=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 960 157",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"border-reveal",d:"M563.314 27.7719L930.351 21.0166V133.605L23.2676 142.987L27.3958 46.5365L372.29 35.2777",stroke:"white",strokeWidth:"15.0117"}),(0,s.jsx)("path",{id:"text-reveal-layer",d:"M377.545 27.7715L570.445 36.4032L33.0254 84.0655L920.219 68.3031L41.2818 113.338L926.223 103.581",stroke:"white",strokeWidth:"36.0281"})]})},ek=function(){return(0,s.jsx)("svg",{viewBox:"0 0 960 157",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{id:"highlight-reveal",d:"M363.66 15.7622H584.332L361.033 27.021L584.332 30.3986L11.2598 52.1656L911.213 30.0233L16.5139 73.5574L934.481 39.0304L26.6468 88.1938L938.985 58.5456L26.6468 106.583L944.989 79.9373L16.5139 124.222L941.612 102.08L21.3927 145.238L931.103 124.597",stroke:"white",strokeWidth:"22.5176"})})},ey=function(e){return(0,s.jsx)(V,{...e,inkRevealSVG:(0,s.jsx)(ew,{}),highlightRevealSVG:(0,s.jsx)(ek,{}),inkRevealAnimation:ee,highlightRevealAnimation:et,spacingBottom:0})},eA=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 960 791",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("g",{clipPath:"url(#clip0_2060_370580)",children:(0,s.jsxs)("g",{clipPath:"url(#clip1_2060_370580)",children:[(0,s.jsx)("path",{id:"line-18",d:"M632.745 468.823L1027.18 762.596",stroke:"white",strokeWidth:"24.0188"}),(0,s.jsx)("path",{id:"line-17",d:"M652.259 372.38L1059.08 659.391",stroke:"white",strokeWidth:"24.0188"}),(0,s.jsx)("path",{id:"line-16",d:"M828.648 407.193L1282 642.877",stroke:"white",strokeWidth:"22.5176"}),(0,s.jsx)("path",{id:"line-15",d:"M717.561 292.93L1164.16 433.839",stroke:"white",strokeWidth:"22.5176"}),(0,s.jsx)("path",{id:"line-14",d:"M727.693 256.325L1092.85 205.285",stroke:"white",strokeWidth:"22.5176"}),(0,s.jsx)("path",{id:"line-13",d:"M704.801 206.411L1178.8 -49.5391",stroke:"white",strokeWidth:"22.5176"}),(0,s.jsx)("path",{id:"line-12",d:"M644.754 159.499L935.23 -69.8047",stroke:"white",strokeWidth:"18.7647"}),(0,s.jsx)("path",{id:"line-11",d:"M601.719 109.278L788.866 -98.7021",stroke:"white",strokeWidth:"18.7647"}),(0,s.jsx)("path",{id:"line-10",d:"M528.126 112.281L692.791 -95.3242",stroke:"white",strokeWidth:"18.7647"}),(0,s.jsx)("path",{id:"line-9",d:"M313.37 102.83L115.215 -70.9307",stroke:"white",strokeWidth:"17.2635"}),(0,s.jsx)("path",{id:"line-8",d:"M236.81 145.989L-17.6387 -66.4268",stroke:"white",strokeWidth:"17.2635"}),(0,s.jsx)("path",{id:"line-7",d:"M224.638 193.593L-224.426 20.6416",stroke:"white",strokeWidth:"17.2635"}),(0,s.jsx)("path",{id:"line-6",d:"M105.912 198.93L-311.494 112.963",stroke:"white",strokeWidth:"17.2635"}),(0,s.jsx)("path",{id:"line-5",d:"M219.25 257.792L-254.449 232.682",stroke:"white",strokeWidth:"17.2635"}),(0,s.jsx)("path",{id:"line-4",d:"M120.094 305.864L-305.863 408.319",stroke:"white",strokeWidth:"21.0164"}),(0,s.jsx)("path",{id:"line-3",d:"M260.454 312.994L-273.588 551.306",stroke:"white",strokeWidth:"24.0188"}),(0,s.jsx)("path",{id:"line-2",d:"M251.821 383.611L-151.994 688.663",stroke:"white",strokeWidth:"24.0188"}),(0,s.jsx)("path",{id:"line-1",d:"M264.206 470.243L-19.1407 792.995",stroke:"white",strokeWidth:"24.0188"})]})}),(0,s.jsxs)("defs",{children:[(0,s.jsx)("clipPath",{id:"clip0_2060_370580",children:(0,s.jsx)("rect",{width:"960",height:"790.367",fill:"white"})}),(0,s.jsx)("clipPath",{id:"clip1_2060_370580",children:(0,s.jsx)("rect",{width:"1552.96",height:"957.748",fill:"white",transform:"translate(-295.73 -126.099)"})})]})]})},ej=function(){return(0,s.jsx)("svg",{viewBox:"0 0 960 791",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{id:"teletype-ink-reveal",d:"M281.469 4.50391L553.557 23.6439L303.987 76.9355L523.158 112.964L298.357 161.752L649.632 201.158L250.695 225.927L711.93 257.827L236.059 299.484L711.93 328.757L289.35 364.035L629.366 403.441L281.469 440.595L619.233 481.502L289.35 519.781L612.478 549.054L270.21 603.472L668.772 628.241L281.469 681.533L699.546 689.414L391.055 747.96",stroke:"white",strokeWidth:"75.0586"})})};let eL=[{selector:"#teletype-ink-reveal"}],eO=[{selector:"#line-1",position:0,reversePath:!0},{selector:"#line-2",position:0,reversePath:!0},{selector:"#line-3",position:0,reversePath:!0},{selector:"#line-4",position:0,reversePath:!0},{selector:"#line-5",position:0,reversePath:!0},{selector:"#line-6",position:0,reversePath:!0},{selector:"#line-7",position:0,reversePath:!0},{selector:"#line-8",position:0,reversePath:!0},{selector:"#line-9",position:0,reversePath:!0},{selector:"#line-10",position:0,reversePath:!0},{selector:"#line-11",position:0,reversePath:!0},{selector:"#line-12",position:0,reversePath:!0},{selector:"#line-13",position:0,reversePath:!0},{selector:"#line-14",position:0,reversePath:!0},{selector:"#line-15",position:0,reversePath:!0},{selector:"#line-16",position:0,reversePath:!0},{selector:"#line-17",position:0,reversePath:!0},{selector:"#line-18",position:0,reversePath:!0}];var eB=function(e){return(0,s.jsx)(V,{...e,inkRevealSVG:(0,s.jsx)(ej,{}),inkRevealAnimation:eL,highlightRevealSVG:(0,s.jsx)(eA,{}),highlightRevealAnimation:eO,spacingBottom:0})},eR=a(2008),eM=a.n(eR),eD=function(e){let{isInView:t,inkImage:a,highlightImage:i,inkRevealSVG:r,highlightRevealSVG:o,inkRevealAnimation:l,highlightRevealAnimation:c}=e,[d,m]=(0,n.useState)(!a),[u,h]=(0,n.useState)(!i),g=t&&d&&u,p=()=>m(!0),_=()=>h(!0);return(0,s.jsxs)("div",{className:eM().ComicCarouselSlide,children:[i&&(0,s.jsx)(D,{image:i,onLoaded:_,isBoilPlaying:t}),o&&(0,s.jsx)(P,{isReady:g,animation:c,children:o}),a&&(0,s.jsx)(f,{image:a,onLoaded:p}),r&&(0,s.jsx)(M,{isReady:g,animation:l,children:r})]})},eH=a(4696),eF=a.n(eH),eP=function(e){let{onClick:t,label:a="Arrow",direction:i="right",isAnimating:n}=e;return(0,s.jsx)("button",{onClick:t,"aria-label":a,className:eF().ComicArrowButton,"data-animating":n?"true":"false",children:(0,s.jsx)("svg",{viewBox:"0 0 80 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:eF().svg,children:"left"===i?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("path",{id:"arrow-1",d:"M17.3077 15.6132C19.637 13.3797 28.4493 5.18117 22.994 3.18997C20.3106 1.80239 13.1117 8.40101 11.0033 10.5094C9.50212 12.0106 3.60632 16.4332 3.79751 20.417C3.95352 23.74 8.41175 26.9074 10.4028 27.9228C15.2066 30.9251 19.7581 34.6346 24.2136 36.6296C27.8923 38.2822 31.4051 36.6034 29.1599 32.6181L14.0051 21.6179C31.6784 21.6179 43.7283 22.2185 63.2436 22.2184C63.2436 22.2184 77.0544 22.8189 77.0544 19.2161C77.0544 15.9135 70.149 16.2137 70.149 16.2137C52.4351 16.2138 37.9877 15.6132 18.5087 15.6132H17.3077Z",fill:"black"}),(0,s.jsx)("path",{id:"arrow-2",d:"M16.504 16.0361C18.8333 13.8026 28.4587 6.02687 23.0034 4.03567C20.3199 2.64808 13.1112 8.40125 11.0028 10.5096C9.50162 12.0108 2.81282 16.5524 3.00402 20.5361C3.16002 23.8591 7.51295 27.0208 9.50402 28.0361C14.3078 31.0385 18.0484 34.0411 22.5039 36.0361C26.1825 37.6887 31.4046 36.6036 29.1594 32.6184L13.004 21.5361C30.6773 21.5361 43.9886 22.5362 63.5039 22.5361C63.5039 22.5361 76.5039 22.6389 76.5039 19.0361C76.5039 15.7336 66.5039 15.5361 66.5039 15.5361C48.79 15.5362 39.483 15.0361 20.004 15.0361L16.504 16.0361Z",fill:"black"}),(0,s.jsx)("path",{id:"arrow-3",d:"M17.3061 15.6124C19.6354 13.3789 28.4592 7.02627 23.0039 5.03507C20.3204 3.64749 13.6123 7.42678 11.5039 9.53515C10.0027 11.0363 2.81255 15.2315 3.00374 19.2152C3.15975 22.5382 7.51284 28.0197 9.50391 29.0351C14.3077 32.0374 20.5484 34.5402 25.0039 36.5352C28.6825 38.1877 32.2491 36.0204 30.0039 32.0352L12.5039 21.5351C30.1772 21.535 42.4886 21.5351 62.0039 21.5351C62.0039 21.5351 76.5039 22.138 76.5039 18.5352C76.5039 15.2326 70.0039 15.0352 70.0039 15.0352C51.5039 14.0352 44.9829 15.0351 25.5039 15.0352L17.3061 15.6124Z",fill:"black"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("path",{id:"arrow-1",d:"M62.747 15.9238C60.4177 13.6903 51.6054 5.49172 57.0606 3.50052C59.7441 2.11293 66.943 8.71156 69.0514 10.8199C70.5526 12.3211 76.4484 16.7438 76.2572 20.7275C76.1012 24.0505 71.6429 27.218 69.6519 28.2333C64.8481 31.2357 60.2966 34.9452 55.8411 36.9402C52.1624 38.5927 48.6496 36.9139 50.8948 32.9287L66.0496 21.9285C48.3763 21.9284 36.3264 22.529 16.8111 22.5289C16.8111 22.5289 3.0003 23.1294 3.0003 19.5266C3.0003 16.224 9.90569 16.5243 9.90569 16.5243C27.6196 16.5243 42.067 15.9238 61.546 15.9238H62.747Z",fill:"black"}),(0,s.jsx)("path",{id:"arrow-2",d:"M63.3457 16.6914C61.0164 14.4579 50.3852 6.18257 55.8405 4.19136C58.524 2.80378 66.2376 9.083 68.3459 11.1914C69.8471 12.6925 77.5373 16.7079 77.3461 20.6917C77.1901 24.0146 71.3368 26.6761 69.3457 27.6914C64.542 30.6938 58.8012 35.1964 54.3457 37.1914C50.6671 38.844 47.3457 35.6914 50.3457 32.1914L64.3457 21.6914C46.6724 21.6913 36.861 22.1915 17.3457 22.1914C17.3457 22.1914 3.3457 24.2942 3.3457 20.6914C3.3457 17.3888 13.8457 17.1914 13.8457 17.1914C31.5596 17.1915 41.8667 16.6914 61.3457 16.6914H63.3457Z",fill:"black"}),(0,s.jsx)("path",{id:"arrow-3",d:"M62.747 15.6132C60.4177 13.3797 51.6054 5.18117 57.0606 3.18997C59.7441 1.80239 66.943 8.40101 69.0514 10.5094C70.5526 12.0106 76.4484 16.4332 76.2572 20.417C76.1012 23.74 71.6429 26.9074 69.6519 27.9228C64.8481 30.9251 60.2966 34.6346 55.8411 36.6296C52.1624 38.2822 48.6496 36.6034 50.8948 32.6181L66.0496 21.6179C48.3763 21.6179 36.3264 22.2185 16.8111 22.2184C16.8111 22.2184 3.0003 22.8189 3.0003 19.2161C3.0003 15.9135 9.90569 16.2137 9.90569 16.2137C27.6196 16.2138 42.067 15.6132 61.546 15.6132H62.747Z",fill:"black"})]})})})},eW=a(5767),eG=a.n(eW),eU=function(e){let{onClick:t,isActive:a,isAnimating:i}=e;return(0,s.jsx)("button",{onClick:t,className:eG().ComicDotButton,"data-animating":i?"true":"false",children:(0,s.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:eG().svg,children:[(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{id:"dot-1",d:"M15.6864 7.50297L15.7361 7.54963L15.7878 7.59398C17.5146 9.07461 18.041 10.6049 18.0287 11.9306C18.0156 13.3431 17.3815 14.8505 16.2207 16.1028C13.8839 18.6241 10.23 19.4323 7.17718 16.8844C4.56467 14.5175 4.8066 10.8734 7.15381 8.11443C8.29137 6.7773 9.73182 5.9493 11.1309 5.76266C12.4321 5.58907 14.0045 5.92292 15.6864 7.50297Z",stroke:"black",strokeWidth:"6.00469"}),(0,s.jsx)("path",{id:"dot-2",d:"M6.75249 17.3933C4.32911 14.9572 4.48158 11.0061 6.84248 7.92738C8.008 6.40748 9.53853 5.40161 11.1304 5.10027C12.6297 4.81644 14.499 5.09403 16.6177 6.70872C18.3424 8.21032 18.9408 9.77352 18.9842 11.1387C19.03 12.5801 18.4635 14.1162 17.3228 15.4425C15.1106 18.0147 11.0448 19.4473 6.75249 17.3933Z",stroke:"black",strokeWidth:"6.00469"}),(0,s.jsx)("path",{id:"dot-3",d:"M15.6864 7.50297L15.7361 7.54963L15.7878 7.59398C17.5146 9.07461 18.041 10.6049 18.0287 11.9306C18.0156 13.3431 17.3815 14.8505 16.2207 16.1028C13.8839 18.6241 10.23 19.4323 7.17718 16.8844C4.56467 14.5175 4.8066 10.8734 7.15381 8.11443C8.29137 6.7773 9.73182 5.9493 11.1309 5.76266C12.4321 5.58907 14.0045 5.92292 15.6864 7.50297Z",stroke:"black",strokeWidth:"6.00469"})]}),a&&(0,s.jsx)("circle",{id:"active",cx:"12.0137",cy:"11.8799",r:"7.5",fill:"black"})]})})},eV=a(7471),eZ=a.n(eV),eY=function(e){let{onClickPrev:t,onClickNext:a,onClickDot:i,totalSlides:n=0,currentIndex:r}=e,{inViewRef:o,isInView:l}=g({triggerOnce:!1}),c=u();return(0,s.jsxs)("nav",{className:eZ().ComicCarouselNav,ref:o,"data-size":"mobile"===c?"small":"large",children:[(0,s.jsx)(eP,{onClick:t,label:"Previous",direction:"left",isAnimating:l}),(0,s.jsx)("div",{className:eZ().dots,children:Array.from(Array(n).keys()).map(e=>(0,s.jsx)(eU,{isActive:e===r,onClick:()=>i(e),isAnimating:l},"dot-".concat(e)))}),(0,s.jsx)(eP,{onClick:a,label:"Next",direction:"right",isAnimating:l})]})},eq=a(6122),eK=a.n(eq);let ez="#f7d03c";var eQ=function(){let{inViewRef:e,isInView:t}=g({triggerOnce:!1});return(0,s.jsx)("div",{className:eK().ComicCarouselBg,ref:e,"data-animating":t?"true":"false",children:(0,s.jsxs)("div",{className:eK().inner,children:[(0,s.jsx)("div",{className:eK().top,children:(0,s.jsx)("svg",{viewBox:"0 0 1279 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M81.8036 32.5976C89.804 30.9125 93.9772 26.3956 102.551 24.3717C106.23 23.5031 113.034 23.1991 113.617 22.9906C114.596 22.6431 114.715 19.7159 117.118 18.3955C118.631 17.5617 122.181 17.2576 124.308 16.224C136.155 10.4476 140.318 6.78198 158.02 5.8873C189.834 4.28033 228.174 5.47036 260.73 5.04473C360.937 3.7331 455.874 4.21953 555.864 5.86124C651.108 7.42477 746.47 -2.60789 841.485 0.658156C857.605 1.21408 859.692 4.01975 870.639 5.67883C899.555 10.0741 948.596 4.05449 970.075 17.9525C1070.32 22.8516 1175.31 24.1024 1274.06 34.5781L1279 35.0369V80H0V47.615C3.50172 44.5502 7.25584 41.8488 10.3439 40.311C13.9732 38.5043 19.1453 38.3393 20.8858 37.3577C22.8043 36.2806 22.2802 34.1872 24.7228 32.5194C25.7118 31.8419 47.7944 22.3131 49.6437 21.7745C71.7462 15.3293 73.6746 23.8853 81.8431 32.5889L81.8036 32.5976Z",fill:ez})})}),(0,s.jsx)("div",{className:eK().body,style:{backgroundColor:ez}}),(0,s.jsx)("div",{className:eK().bottom,children:(0,s.jsx)("svg",{viewBox:"0 0 1279 81",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M1269.41 54.1583C1257.18 55.5394 1234.88 55.8521 1221.71 56.1127C1211.33 56.3125 1158.7 55.1397 1154.39 56.8422L1154.28 57.2489C1151.62 66.9075 1148.93 76.6697 1127.06 77.6633C1049.3 76.0651 971.905 72.3908 894.393 71.6003C891.733 71.5743 888.855 70.61 886.373 70.7316C882.081 70.9488 878.956 75.1095 873.418 74.9966C759.108 78.9141 644.353 72.5384 530.261 70.6969C437.381 69.2029 346.845 70.6361 254.282 74.1888C216.584 75.6394 170.53 80.4168 134.019 80.2431C122.953 80.191 87.213 75.6568 75.3261 73.7805C73.724 73.5286 62.5591 70.1583 61.4317 69.6024C54.5883 66.2234 59.0385 61.8282 44.7584 58.3102C33.091 55.4286 14.5485 54.7005 0 52.9319V0H1279V51.5C1276.25 52.8029 1273.06 53.7465 1269.41 54.1583Z",fill:ez})})})]})})},eJ=a(1296),eX=a.n(eJ);let e$=100,e0=.5;var e1=function(e){let{slides:t,slideInkRevealSVGs:a,slideHighlightRevealSVGs:i,slideInkRevealAnimations:r,slideHighlightRevealAnimations:o,carouselInkSVG:l,carouselInkRevealAnimation:c,spacingBottom:d=0}=e,[m,u]=(0,n.useState)(0),h=(0,n.useRef)(null),p=(0,n.useRef)(0),_=(0,n.useRef)(0),v=(0,n.useRef)(!1),f=W(),{inViewRef:x,isInView:b}=g({rootMargin:"0px 0px -100px 0px",triggerOnce:!0,viewOffsetDelay:f?.4:4}),C=(null==t?void 0:t.length)||0,S=a[m],T=i[m],N=t[m],E=()=>{u(e=>I.p8.utils.wrap(0,C,e+1))},w=()=>{u(e=>I.p8.utils.wrap(0,C,e-1))},k=e=>{u(e)},y=e=>{p.current=e.touches[0].clientX,_.current=Date.now(),v.current=!0},A=e=>{if(!v.current)return;let t=e.touches[0].clientX-p.current,a=Date.now()-_.current,i=Math.abs(t/a);(Math.abs(t)>e$||i>e0)&&(t>0?w():E(),v.current=!1)},j=()=>{v.current=!1};return(0,n.useEffect)(()=>{let e=h.current;return e.addEventListener("touchstart",y),e.addEventListener("touchmove",A),e.addEventListener("touchend",j),()=>{e.removeEventListener("touchstart",y),e.removeEventListener("touchmove",A),e.removeEventListener("touchend",j)}},[]),(0,s.jsxs)("div",{className:eX().ComicCarousel,ref:h,style:{"--spacing-bottom":d},children:[(0,s.jsx)("div",{className:eX().reveal,ref:x,children:(0,s.jsx)(M,{isReady:b,animation:c,isSvgHeightBased:!0,children:l})}),(0,s.jsx)("div",{className:eX().carousel,children:(0,s.jsx)("div",{className:eX().slide,children:(0,s.jsx)(eD,{inkImage:null==N?void 0:N.inkImage,highlightImage:null==N?void 0:N.highlightImage,inkRevealSVG:(0,s.jsx)(S,{}),inkRevealAnimation:r[m]||void 0,highlightRevealSVG:(0,s.jsx)(T,{}),highlightRevealAnimation:o[m]||void 0},m)})}),(0,s.jsx)(eY,{onClickPrev:w,onClickNext:E,onClickDot:k,totalSlides:C,currentIndex:m}),(0,s.jsx)(eQ,{})]})},e2=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 480 322",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("g",{clipPath:"url(#clip0_2532_164222)",children:(0,s.jsx)("path",{id:"highlight-reveal-bg",d:"M-0.625977 9.3877H480.626L-0.625977 67.5885L480.626 88.8662L-0.625977 160.209L480.626 182.113L-0.625977 239.062H480.626L-0.625977 307.901L480.626 314.16",stroke:"white",strokeWidth:"93.8722"})}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_2532_164222",children:(0,s.jsx)("rect",{width:"480",height:"322",fill:"white"})})})]})},e4=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 480 322",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"text-1-text-reveal-1",d:"M64 139H416",stroke:"#F7D03C",strokeWidth:"34"}),(0,s.jsx)("path",{id:"text-1-text-reveal-2",d:"M104.001 179.568L354.506 179.568",stroke:"#F7D03C",strokeWidth:"34"})]})},e3=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 480 322",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"text-2-text-reveal-1",d:"M114 102L249 105L384 102",stroke:"#F7D03C",strokeWidth:"34"}),(0,s.jsx)("path",{id:"text-2-text-reveal-2",d:"M24.5 141.001L238 144.501L453 141.001",stroke:"#F7D03C",strokeWidth:"41"}),(0,s.jsx)("path",{id:"text-2-text-reveal-3",d:"M20 184H459.5",stroke:"#F7D03C",strokeWidth:"34"}),(0,s.jsx)("path",{id:"text-2-text-reveal-4",d:"M141.5 220.001H337.5",stroke:"#F7D03C",strokeWidth:"34"})]})},e5=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 480 322",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"text-3-text-reveal-1",d:"M62 120H425",stroke:"#F7D03C",strokeWidth:"34"}),(0,s.jsx)("path",{id:"text-3-text-reveal-2",d:"M62 165.5H425",stroke:"#F7D03C",strokeWidth:"34"}),(0,s.jsx)("path",{id:"text-3-text-reveal-3",d:"M144.5 204.5H343",stroke:"#F7D03C",strokeWidth:"34"})]})},e8=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 480 322",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"text-4-text-reveal-1",d:"M38 81H439",stroke:"#F7D03C",strokeWidth:"34"}),(0,s.jsx)("path",{id:"text-4-text-reveal-2",d:"M56 123H424",stroke:"#F7D03C",strokeWidth:"34"}),(0,s.jsx)("path",{id:"text-4-text-reveal-3",d:"M47 161H439",stroke:"#F7D03C",strokeWidth:"34"}),(0,s.jsx)("path",{id:"text-4-text-reveal-4",d:"M67 198H416",stroke:"#F7D03C",strokeWidth:"34"}),(0,s.jsx)("path",{id:"text-4-text-reveal-5",d:"M128 234H354",stroke:"#F7D03C",strokeWidth:"34"})]})},e6=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 480 322",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"text-5-text-reveal-1",d:"M35 119H436",stroke:"#F7D03C",strokeWidth:"34"}),(0,s.jsx)("path",{id:"text-5-text-reveal-3",d:"M41.5 193H443.5",stroke:"#F7D03C",strokeWidth:"34"}),(0,s.jsx)("path",{id:"text-5-text-reveal-2",d:"M105 157H371",stroke:"#F7D03C",strokeWidth:"34"})]})},e7=function(){return(0,s.jsx)("svg",{viewBox:"0 0 480 322",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{id:"text-1-highlight-reveal-1",d:"M221.5 142.174C352 133.174 420.998 146.174 420.998 146.174",stroke:"#F7D03C",strokeWidth:"38"})})},e9=function(){return(0,s.jsxs)("svg",{width:"480",height:"322",viewBox:"0 0 480 322",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"text-2-highlight-reveal-1",d:"M152 98L324.63 102H394",stroke:"#F7D03C",strokeWidth:"41"}),(0,s.jsx)("path",{id:"text-2-highlight-reveal-2",d:"M41.5 134.5C41.5 134.5 98.2387 144.691 133.347 141.113C183.5 136 218 146 218 146",stroke:"#F7D03C",strokeWidth:"39"})]})},te=function(){return(0,s.jsx)("svg",{width:"480",height:"322",viewBox:"0 0 480 322",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{id:"text-3-highlight-reveal-1",d:"M101 119H423",stroke:"#F7D03C",strokeWidth:"44"})})},tt=function(){return(0,s.jsx)("svg",{width:"480",height:"322",viewBox:"0 0 480 322",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{id:"text-4-highlight-reveal-1",d:"M79 82H202H219.5",stroke:"#F7D03C",strokeWidth:"36"})})},ta=function(){return(0,s.jsx)("svg",{width:"480",height:"322",viewBox:"0 0 480 322",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{id:"text-5-highlight-reveal-1",d:"M57.5 127H431L99 151L376 166",stroke:"#F7D03C",strokeWidth:"46"})})};let ti=[e4,e3,e5,e8,e6],ts=[e7,e9,te,tt,ta],tn={position:">",duration:.25,drawStart:"100% 0%",drawEnd:"100% 100%"},tr=[[{selector:"#text-1-text-reveal-1",...tn},{selector:"#text-1-text-reveal-2",...tn,duration:.6*tn.duration}],[{selector:"#text-2-text-reveal-1",...tn,duration:.8*tn.duration},{selector:"#text-2-text-reveal-2",...tn},{selector:"#text-2-text-reveal-3",...tn},{selector:"#text-2-text-reveal-4",...tn,duration:.5*tn.duration}],[{selector:"#text-3-text-reveal-1",...tn},{selector:"#text-3-text-reveal-2",...tn},{selector:"#text-3-text-reveal-3",...tn,duration:.6*tn.duration}],[{selector:"#text-4-text-reveal-1",...tn},{selector:"#text-4-text-reveal-2",...tn},{selector:"#text-4-text-reveal-3",...tn},{selector:"#text-4-text-reveal-4",...tn},{selector:"#text-4-text-reveal-5",...tn,duration:.8*tn.duration}],[{selector:"#text-5-text-reveal-1",...tn},{selector:"#text-5-text-reveal-2",...tn},{selector:"#text-5-text-reveal-3",...tn}]],to={position:">",duration:.2,drawStart:"100% 0%",drawEnd:"100% 100%"},tl=[[{selector:"#text-1-highlight-reveal-1",...to,delay:tr[0].length*tn.duration}],[{selector:"#text-2-highlight-reveal-1",...to,delay:tr[1].length*tn.duration},{selector:"#text-2-highlight-reveal-2",...to,delay:">".concat(tr[1].length*tn.duration)}],[{selector:"#text-3-highlight-reveal-1",...to,delay:tr[2].length*tn.duration}],[{selector:"#text-4-highlight-reveal-1",...to,delay:tr[3].length*tn.duration}],[{selector:"#text-5-highlight-reveal-1",...to,delay:tr[4].length*tn.duration,duration:2*to.duration}]],tc=[{selector:"#highlight-reveal-bg"}];var td=function(e){let{slides:t}=e;return(0,s.jsx)(e1,{slides:t,slideInkRevealSVGs:ti,slideHighlightRevealSVGs:ts,slideInkRevealAnimations:tr,slideHighlightRevealAnimations:tl,carouselInkSVG:(0,s.jsx)(e2,{}),carouselInkRevealAnimation:tc,spacingBottom:16})},tm=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 960 442",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("g",{clipPath:"url(#clip0_2519_90301)",children:(0,s.jsx)("path",{id:"highlight-reveal-bg",d:"M-4.50391 48.7883L964.128 32.2754L-4.50391 147.49H960L-4.50391 218.796L963.002 270.962L-4.50391 331.384L963.002 401.189L-4.50391 424.457",stroke:"white",strokeWidth:"129.851"})}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_2519_90301",children:(0,s.jsx)("rect",{width:"960",height:"442",fill:"white"})})})]})},tu=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 960 442",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"text-1-text-reveal-1",d:"M243 177.937H708.5",stroke:"#F7D03C",strokeWidth:"60"}),(0,s.jsx)("path",{id:"text-1-text-reveal-2",d:"M315 247.438L640.5 247.436",stroke:"#F7D03C",strokeWidth:"60"})]})},th=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 960 442",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"text-2-text-reveal-1",d:"M241 157L719 162.5",stroke:"#F7D03C",strokeWidth:"48"}),(0,s.jsx)("path",{id:"text-2-text-reveal-2",d:"M202.801 209.401L819.601 215.001",stroke:"#F7D03C",strokeWidth:"48"}),(0,s.jsx)("path",{id:"text-2-text-reveal-3",d:"M224 265.202L767.2 267.609",stroke:"#F7D03C",strokeWidth:"48"})]})},tg=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 960 442",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"text-3-text-reveal-1",d:"M181 165L797.8 170.6",stroke:"#F7D03C",strokeWidth:"48"}),(0,s.jsx)("path",{id:"text-3-text-reveal-2",d:"M305.801 216L673 223",stroke:"#F7D03C",strokeWidth:"48"}),(0,s.jsx)("path",{id:"text-3-text-reveal-3",d:"M369.801 269.4L611 274",stroke:"#F7D03C",strokeWidth:"48"})]})},tp=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 960 553",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"text-4-text-reveal-1",d:"M230 115.536L729.596 115.536",stroke:"#F7D03C",strokeWidth:"48"}),(0,s.jsx)("path",{id:"text-4-text-reveal-2",d:"M230.001 170.472L716.8 170.472",stroke:"#F7D03C",strokeWidth:"48"}),(0,s.jsx)("path",{id:"text-4-text-reveal-3",d:"M235.999 220.756L722 220.756",stroke:"#F7D03C",strokeWidth:"48"}),(0,s.jsx)("path",{id:"text-4-text-reveal-4",d:"M262 275.137L694.802 271.137",stroke:"#F7D03C",strokeWidth:"48"}),(0,s.jsx)("path",{id:"text-4-text-reveal-5",d:"M341.199 328.336L620.4 322.336",stroke:"#F7D03C",strokeWidth:"48"})]})},t_=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 960 442",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"text-5-text-reveal-1",d:"M240.199 151.607L740.586 148.542",stroke:"#F7D03C",strokeWidth:"48"}),(0,s.jsx)("path",{id:"text-5-text-reveal-2",d:"M319.001 201.214L661.799 201.214",stroke:"#F7D03C",strokeWidth:"48"}),(0,s.jsx)("path",{id:"text-5-text-reveal-3",d:"M214.999 259.912L768.201 259.912",stroke:"#F7D03C",strokeWidth:"48"})]})},tv=function(){return(0,s.jsx)("svg",{viewBox:"0 0 960 442",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{id:"text-1-highlight-reveal-1",d:"M455 183H723",stroke:"#F7D03C",strokeWidth:"60"})})},tf=function(){return(0,s.jsx)("svg",{viewBox:"0 0 960 442",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{id:"text-2-highlight-reveal-1",d:"M262 154L754 154",stroke:"#F7D03C",strokeWidth:"80"})})},tx=function(){return(0,s.jsx)("svg",{viewBox:"0 0 960 443",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{id:"text-3-highlight-reveal-1",d:"M290 154H676.5",stroke:"#F7D03C",strokeWidth:"94"})})},tb=function(){return(0,s.jsx)("svg",{viewBox:"0 0 960 442",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{id:"text-4-highlight-reveal-1",d:"M254 110H478.5",stroke:"#F7D03C",strokeWidth:"60"})})},tC=function(){return(0,s.jsx)("svg",{viewBox:"0 0 960 442",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{id:"text-5-highlight-reveal-1",d:"M276 135L729.5 136.5L276 192.5L696 199.5",stroke:"#F7D03C",strokeWidth:"92"})})};let tS=[tu,th,tg,tp,t_],tI=[tv,tf,tx,tb,tC],tT=tr.map(e=>e.map(e=>({...e})));tT[1].splice(3,1);let tN=tl.map(e=>e.map(e=>({...e})));tN[1].splice(1,2);let tE=[{selector:"#highlight-reveal-bg"}];var tw=function(e){let{slides:t}=e;return(0,s.jsx)(e1,{slides:t,slideInkRevealSVGs:tS,slideHighlightRevealSVGs:tI,slideInkRevealAnimations:tT,slideHighlightRevealAnimations:tN,carouselInkSVG:(0,s.jsx)(tm,{}),carouselInkRevealAnimation:tE,spacingBottom:32})},tk=function(){return(0,s.jsx)("svg",{viewBox:"0 0 960 478",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{id:"arrow-text-reveal",d:"M317.574 90.127C337.69 111.344 390.531 145.971 593.79 125.254C687.463 109.642 720.189 136.363 744.208 188.304",stroke:"white",strokeWidth:"47.4371"})})},ty=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 960 478",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"highlight-3-reveal",d:"M46.0723 412.395C102.797 394.805 246.221 354.005 394.224 373.676C290.871 389.289 13.5989 441.433 65.1191 443.619C155.358 427.487 345.077 398.344 382.047 410.834L65.1191 458.607L363 432.691",stroke:"white",strokeWidth:"37.4693"}),(0,s.jsx)("path",{id:"highlight-2-reveal",d:"M30.7734 264.393C111.124 242.952 332.089 192.264 572.516 224.426C419.101 238.372 99.592 280.879 67.6182 301.862C184.814 292.182 447.432 267.203 544.102 277.195C406.299 292.599 118.889 332.649 71.6774 352.133C205.63 337.77 472.598 328.091 534.423 333.399",stroke:"white",strokeWidth:"53.0814"}),(0,s.jsx)("path",{id:"highlight-1-reveal",d:"M33.9004 203.742C87.2941 203.742 175.534 172.143 243.728 169.396",stroke:"white",strokeWidth:"62.4488"})]})};let tA=[{selector:"#arrow-text-reveal"}],tj=[{selector:"#highlight-1-reveal"},{selector:"#highlight-2-reveal"},{selector:"#highlight-3-reveal"}];var tL=function(e){return(0,s.jsx)(V,{...e,inkRevealSVG:(0,s.jsx)(tk,{}),highlightRevealSVG:(0,s.jsx)(ty,{}),inkRevealAnimation:tA,highlightRevealAnimation:tj,spacingBottom:-40})},tO=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 960 889",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_2153_52275)",children:[(0,s.jsx)("path",{id:"textbox-reveal-1",d:"M442.564 56.5727L790.836 53.5703L435.058 84.7947L814.555 99.8064L434.158 101.908L814.555 123.825L435.058 145.442L833.169 149.345L435.058 170.061L702.867 195.881H430.555L702.867 216.297",stroke:"white",strokeWidth:"39.0305"}),(0,s.jsx)("path",{id:"textbox-border-reveal-1",d:"M520.922 15.7422C484.493 11.9392 412.177 17.7237 414.338 71.2855C416.5 124.847 423.846 186.075 427.248 209.994C428.349 217.9 441.719 233.832 486.394 234.313C531.069 234.793 707.967 238.116 790.832 239.717C807.145 241.418 839.23 234.073 837.068 191.079C834.906 148.085 836.167 85.4964 837.068 59.5762C839.17 49.5684 831.784 28.5319 785.428 24.4487C739.072 20.3656 583.77 21.1462 511.914 22.0469",stroke:"white",strokeWidth:"23.4183"}),(0,s.jsx)("path",{id:"textbox-reveal-2",d:"M145.932 276.346H320.369L145.932 304.868L387.621 318.078L148.635 325.584L383.118 338.794L139.928 352.005L353.094 368.818L142.33 380.527L360.3 385.931L145.932 408.449L388.822 406.648L142.33 426.763L377.113 429.766L139.928 456.486L292.747 459.189",stroke:"white",strokeWidth:"39.0305"}),(0,s.jsx)("path",{id:"textbox-border-reveal-2",d:"M233 231.009H369.006C379.314 230.909 401.191 237.314 406.235 263.735C412.54 296.76 412.24 473.599 409.238 472.998C406.235 472.398 416.443 508.726 369.006 504.222C331.057 500.62 210.282 497.317 154.639 496.116C143.63 495.616 121.913 485.668 123.114 449.88C124.315 414.092 126.216 310.871 127.016 263.735C127.016 243.619 150.134 223.203 241.105 234.612",stroke:"white",strokeWidth:"23.4183"}),(0,s.jsx)("path",{id:"textbox-reveal-3",d:"M542.842 335.492L790.535 343.899L553.35 355.308L794.739 365.516L545.844 384.731L817.857 390.435L542.842 404.846L796.54 407.548L538.038 430.667L814.854 432.468L542.842 447.78L809.75 453.184L542.842 477.503L794.739 479.004L542.842 501.522L801.344 511.43L538.038 524.94L814.854 531.545L542.842 565.772H771.02",stroke:"white",strokeWidth:"33.0258"}),(0,s.jsx)("path",{id:"textbox-border-reveal-3",d:"M596.286 307.268H789.336C805.549 304.166 837.674 308.349 836.473 349.902C835.272 391.454 835.973 500.119 836.473 549.257C838.074 559.966 833.711 582.764 803.447 588.288C773.184 593.812 627.51 604.2 558.456 608.704C546.647 609.104 522.788 602.279 521.827 571.775C520.867 541.271 521.427 405.345 521.827 341.195C521.427 330.587 537.379 307.749 604.391 301.264",stroke:"white",strokeWidth:"23.4183"}),(0,s.jsx)("path",{id:"textbox-reveal-4",d:"M319.169 688.867L621.805 700.276L302.956 716.789L607.094 736.304L301.155 750.115L621.805 758.522L309.862 781.94L641.921 785.543L296.051 815.566L651.228 830.878L296.051 842.587",stroke:"white",strokeWidth:"36.0281"}),(0,s.jsx)("path",{id:"textbox-border-reveal-4",d:"M423.949 664.847L668.64 674.455C675.045 673.554 686.474 685.803 680.95 742.007C675.425 798.211 666.038 834.279 662.035 845.288C659.033 851.793 641.799 863.903 596.884 860.3C551.969 856.697 400.431 863.802 330.276 867.806C311.461 869.407 274.432 864.623 276.834 832.678C279.236 800.733 283.04 725.294 284.641 691.568C289.045 679.458 305.658 657.161 336.882 664.847C370.028 667.009 419.747 670.151 440.463 671.452",stroke:"white",strokeWidth:"23.4183"}),(0,s.jsx)("path",{id:"arrow-1-ink-reveal",d:"M407.993 159.295C369.622 167.295 360.421 192.894 361.622 219.795",stroke:"white",strokeWidth:"42.23"}),(0,s.jsx)("path",{id:"arrow-2-ink-reveal",d:"M419.625 387.295C438.44 387.795 493.125 414.795 501.625 449.295",stroke:"white",strokeWidth:"40.03"}),(0,s.jsx)("path",{id:"arrow-3-ink-reveal",d:"M510.119 589.789C493.807 595.994 454.626 623.295 469.626 656.795",stroke:"white",strokeWidth:"30.6239"}),(0,s.jsx)("path",{id:"arrow-4-ink-reveal",d:"M255.851 801.295C245.343 812.003 221.885 861.433 222.125 889.295",stroke:"white",strokeWidth:"38.43"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_2153_52275",children:(0,s.jsx)("rect",{width:"960",height:"887.944",fill:"white",transform:"translate(0 0.941406)"})})})]})};let tB=[{selector:"#textbox-reveal-1",position:0},{selector:"#textbox-border-reveal-1",position:0,reversePath:!0},{selector:"#arrow-1-ink-reveal",position:0},{selector:"#textbox-reveal-2",position:.2},{selector:"#textbox-border-reveal-2",position:.2},{selector:"#arrow-2-ink-reveal",position:.2},{selector:"#textbox-reveal-3",position:.5},{selector:"#textbox-border-reveal-3",position:.5},{selector:"#arrow-3-ink-reveal",position:.5},{selector:"#textbox-reveal-4",position:.7},{selector:"#textbox-border-reveal-4",position:.7},{selector:"#arrow-4-ink-reveal",position:.7}];var tR=function(e){return(0,s.jsx)(V,{...e,inkRevealSVG:(0,s.jsx)(tO,{}),inkRevealAnimation:tB,spacingBottom:0})},tM=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 960 808",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_2153_52276)",children:[(0,s.jsx)("path",{id:"textbox-reveal-5",d:"M167.114 54.0322L412.752 47.0332L167.114 75.3376L414.507 91.8505L167.114 110.465L407.301 131.481L171.617 144.692L442.127 166.394L160.809 176.517L421.112 190.928L160.809 214.032L421.112 217.349L160.809 250.675H386.885L160.809 283.4L450.752 276.032",stroke:"white",strokeWidth:"36.0281"}),(0,s.jsx)("path",{id:"textbox-border-reveal-5",d:"M189.63 16.1927H440.326C453.336 12.69 478.636 14.5114 475.753 49.819C472.871 85.1266 469.148 219.051 467.647 281.6C466.746 292.709 459.12 314.926 435.822 314.926C412.524 314.926 248.376 321.531 169.214 324.834C157.605 321.531 135.408 309.402 139.491 287.304C143.574 265.207 146.997 107.364 148.198 31.2043C148.298 28.8024 155.555 17.1535 199.75 16.1927",stroke:"white",strokeWidth:"23.4183"}),(0,s.jsx)("path",{id:"textbox-border-reveal-6",d:"M637.28 202.037H800.608C816.32 201.637 847.084 209.723 844.442 245.271C841.8 280.819 835.135 350.553 832.132 380.977C832.232 388.583 823.125 402.954 785.896 399.592C748.667 396.229 596.048 401.393 524.392 404.396C515.485 409.5 497.731 407.758 497.971 359.961C498.211 312.164 501.674 252.577 503.375 228.758C497.75 209.031 532.695 202.037 543.25 202.037C561.695 202.037 639.982 205.44 668.204 207.141",stroke:"white",strokeWidth:"23.4183"}),(0,s.jsx)("path",{id:"textbox-reveal-6",d:"M517.487 240.467H799.107L517.487 265.032L814.719 285.202L517.487 295.41L820.123 322.431L515.986 327.835L817.248 362.532L514.484 366.866",stroke:"white",strokeWidth:"36.0281"}),(0,s.jsx)("path",{id:"textbox-border-reveal-7",d:"M355.546 444.123L603.953 445.527C628.873 442.225 687.249 444.123 681.414 495.666C676.005 543.447 688.119 657.793 690.121 708.833C694.824 726.947 693.363 764.256 649.889 768.58C606.415 772.903 401.195 784.392 304.019 789.596C288.407 788.695 257.543 776.746 258.984 736.154C260.425 695.563 259.585 550.709 258.984 483.357C251.249 445.527 284.444 443.365 357.461 445.527",stroke:"white",strokeWidth:"23.4183"}),(0,s.jsx)("path",{id:"textbox-reveal-7",d:"M278.199 484.031H658.75L273.996 510.076L654.093 503.471L284.805 537.398L633.077 540.7L293.812 575.828H616.264L313.327 621.463L579.034 623.865L278.199 665.598L665.802 663.496L275.75 705.031L664.301 707.33L320.532 748.162L591.25 742.031",stroke:"white",strokeWidth:"36.0281"}),(0,s.jsx)("path",{id:"arrow-5-ink-reveal",d:"M495.57 127.88C510.382 125.578 544.48 139.645 556.249 181.438",stroke:"white",strokeWidth:"64.04"}),(0,s.jsx)("path",{id:"arrow-6-ink-reveal",d:"M478.876 338.578C460.25 345.406 437.376 385.078 440.25 430.532",stroke:"white",strokeWidth:"34.03"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_2153_52276",children:(0,s.jsx)("rect",{width:"960",height:"807.631",fill:"white",transform:"translate(0 0.078125)"})})})]})};let tD=[{selector:"#textbox-reveal-5",position:0},{selector:"#textbox-border-reveal-5",position:0},{selector:"#arrow-5-ink-reveal",position:0},{selector:"#textbox-reveal-6",position:.2},{selector:"#textbox-border-reveal-6",position:.2},{selector:"#arrow-6-ink-reveal",position:.2},{selector:"#textbox-reveal-7",position:.5},{selector:"#textbox-border-reveal-7",position:.5}];var tH=function(e){return(0,s.jsx)(V,{...e,inkRevealSVG:(0,s.jsx)(tM,{}),inkRevealAnimation:tD,spacingBottom:0})},tF=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 960 169",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"textbox-border-reveal-1",d:"M381.49 87.3105C349.065 84.9087 284.695 86.5299 286.616 112.23C289.018 144.355 298.733 156.665 338.857 156.665C361.44 156.665 547.62 156.465 637.891 156.665C649.7 157.566 676.623 150.988 675.903 129.851C675.002 103.431 662.51 87.3105 621.378 87.3105C588.472 87.3105 434.932 85.0088 361.975 83.1074",stroke:"white",strokeWidth:"18.7647"}),(0,s.jsx)("path",{id:"text-reveal-1",d:"M301.025 122.439H658.004",stroke:"white",strokeWidth:"30.0235"}),(0,s.jsx)("path",{id:"ellipses-text-reveal-1",d:"M468.559 12.252L492.277 19.7578",stroke:"white",strokeWidth:"23.4183"}),(0,s.jsx)("path",{id:"ellipses-text-reveal-2",d:"M468.859 35.0703L492.578 42.5762",stroke:"white",strokeWidth:"23.4183"}),(0,s.jsx)("path",{id:"ellipses-text-reveal-3",d:"M468.859 56.0859L492.578 63.5918",stroke:"white",strokeWidth:"23.4183"})]})};let tP=[{selector:"#ellipses-text-reveal-1"},{selector:"#ellipses-text-reveal-2"},{selector:"#ellipses-text-reveal-3"},{selector:"#textbox-border-reveal-1",reversePath:!0},{selector:"#text-reveal-1"}];var tW=function(e){return(0,s.jsx)(V,{...e,inkRevealSVG:(0,s.jsx)(tF,{}),inkRevealAnimation:tP,spacingBottom:50})},tG=a(9722),tU=a.n(tG),tV=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 960 760",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"text-reveal-1",d:"M120.844 396.498L856.418 401.002",stroke:"white",strokeWidth:"52.541"}),(0,s.jsx)("path",{id:"text-reveal-2",d:"M120.844 461.799L856.418 466.302",stroke:"white",strokeWidth:"52.541"}),(0,s.jsx)("path",{id:"text-reveal-3",d:"M120.844 522.596L856.418 527.099",stroke:"white",strokeWidth:"52.541"}),(0,s.jsx)("path",{id:"text-reveal-4",d:"M87.0684 582.268L881.939 595.403",stroke:"white",strokeWidth:"52.541"}),(0,s.jsx)("path",{id:"text-reveal-5",d:"M323.127 656.576L648.506 661.08",stroke:"white",strokeWidth:"45.0352"}),(0,s.jsx)("path",{id:"border-reveal",d:"M325.382 306.427L80.689 310.18C63.0481 310.18 31.3776 307.103 33.7795 345.833C36.1814 384.563 29.2736 616.044 26.2715 717.374C27.3944 730.884 28.0758 728.107 74.3119 730.509C120.548 732.911 628.244 738.265 876.312 740.642C891.198 743.894 920.747 742.293 919.846 709.868C918.945 677.442 930.479 442.784 932.606 326.693C935.233 304.176 914.216 304.176 888.697 304.176C863.177 304.176 721.441 306.427 651.136 306.427",stroke:"white",strokeWidth:"22.5176"})]})},tZ=function(){return(0,s.jsx)("svg",{viewBox:"0 0 960 760",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{id:"highlight-reveal",d:"M298.734 663.894C373.293 656.388 551.682 646.331 668.773 666.146",stroke:"white",strokeWidth:"45.0352"})})};let tY=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=[];return Array.from(Array(e).keys()).forEach(e=>{t.push({selector:"#text-reveal-".concat(e+1),position:0})}),t.push({selector:"#border-reveal",position:0,reversePath:!0}),t},tq=tY(5),tK=[{selector:"#highlight-reveal"}];var tz=function(e){let{inkImage:t,highlightImage:a,videoSources:i}=e;return(0,s.jsx)("div",{className:tU().ComicSourceCodeQuoteTablet,children:(0,s.jsx)(V,{inkImage:t,highlightImage:a,inkRevealAnimation:tq,highlightRevealAnimation:tK,inkRevealSVG:(0,s.jsx)(tV,{}),highlightRevealSVG:(0,s.jsx)(tZ,{}),spacingBottom:0,children:!!(null==i?void 0:i.length)&&(0,s.jsx)(eu,{videoSources:i,isPlaying:!0,className:tU().video})})})},tQ=a(5127),tJ=a.n(tQ),tX=function(e){return(0,s.jsxs)("div",{className:tJ().ComicBookTablet,children:[(0,s.jsx)(eI,{...e.header}),(0,s.jsx)(eE,{...e.subheading}),(0,s.jsx)(ey,{...e.teletypeBanner}),(0,s.jsx)(eB,{...e.teletype}),(0,s.jsx)(tw,{slides:e.teletypeCarousel.slides}),(0,s.jsx)(tL,{...e.feedbackLoopHeader}),(0,s.jsx)(tR,{...e.feedbackLoopBody01}),(0,s.jsx)(tH,{...e.feedbackLoopBody02}),(0,s.jsx)(tW,{...e.feedbackLoopFooter}),(0,s.jsx)(tz,{...e.sourceCodeQuote})]})},t$=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 480 497",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_2055_245872)",children:[(0,s.jsx)("path",{id:"text-reveal-1",d:"M49.5717 51.2699L443.704 44.2048L58.2655 79.6988L431.449 88.9905L36.1875 115.5L429.834 113.867",stroke:"white",strokeWidth:"43.807"}),(0,s.jsx)("path",{id:"text-reveal-2",d:"M57.5742 167.803L408.688 153.5L99.5038 189.081L413.098 182.287L60.7033 211.61L421.86 214.517",stroke:"white",strokeWidth:"33.9432"}),(0,s.jsx)("path",{id:"text-bubble-reveal",d:"M59.8212 343.868L194.186 309.916L61.9884 355.426L194.186 323.641L46.458 371L202.854 338.45L46.457 383.084L202.854 352.176L55.374 400.771L199.965 366.985L64.1865 407L133.688 396.5L202.854 379",stroke:"white",strokeWidth:"13"}),(0,s.jsx)("path",{id:"speech-bubble-reveal",d:"M96.874 305.576C32.3734 321.273 15.1856 400 75.374 426.471C118.602 445.483 192.873 417.272 213.373 382.272C213.373 382.272 231.373 378.021 247.373 369.372C263.373 360.724 221.373 371.784 221.373 361.272C221.375 333 218.374 256.271 93.3736 306.549",stroke:"white",strokeWidth:"10.01"}),(0,s.jsx)("path",{id:"border-outline-1",d:"M13.7695 9.07746C13.7695 9.07746 457.181 8.33092 462.188 9.50012C462.188 17.9952 465.088 479.5 459.688 487.5C441.188 482.5 10.876 493.773 16.2728 486.031C14.3062 483.933 19.1673 400.238 21.376 304.273C24.4386 171.205 28.1875 14.0001 28.1875 14.0001",stroke:"white",strokeWidth:"13.599"}),(0,s.jsx)("path",{id:"bill-reveal",d:"M242.191 252.272H366.103L242.191 263.554L381.122 266.057L237.811 291.715H373.925L245.633 315.183L373.925 321.128L242.191 335.835L376.742 345.535L262.875 357.272L366.103 372.758L262.875 378.772L414.916 412.81H217.472L398.958 425.952L188.058 436.278L439.636 432.836L175.875 448.772L431.375 456.304C438.827 460.141 290.16 457.476 164.375 460.772",stroke:"white",strokeWidth:"37.5489"}),(0,s.jsx)("path",{id:"signature-reveal-4",d:"M337.625 440.989L344.509 441.614",stroke:"white",strokeWidth:"7.50978"}),(0,s.jsx)("path",{id:"signature-reveal-3",d:"M425.553 445.369C421.068 446.516 411.472 448.498 408.969 447.247",stroke:"white",strokeWidth:"4.3807"}),(0,s.jsx)("path",{id:"signature-reveal-2",d:"M370.168 462.889C381.325 463.402 389.164 436.293 385.244 435.981C376.275 435.268 382.531 457.938 399.115 438.474C402.432 441.902 388.26 471.192 380.595 464.345C375.736 455.9 386.904 456.465 393.386 455.301C398.74 452.389 410.584 450.213 402.13 460.598C396.518 467.492 388.26 459.663 403.704 454.152C405.395 453.861 402.013 461.724 405.959 461.141C409.998 457.744 420.895 442.504 417.513 441.339C416.104 441.048 404.831 462.772 412.722 461.141C417.795 460.074 427.715 456.598 426.813 451.24C425.686 444.543 413.568 461.432 419.768 461.141C425.968 460.85 434.704 455.026 436.113 453.861C437.522 452.696 434.986 464.053 430.758 462.306C427.377 460.908 426.907 458.812 426.813 457.938",stroke:"white",strokeWidth:"5.00652"}),(0,s.jsx)("path",{id:"signature-reveal-1",d:"M307.586 464.523C311.839 457.184 314.146 442.209 330.553 443.071C332.824 443.19 330.842 451.74 320.407 454.675C319.273 455.127 321.007 459.348 322.898 460.853C322.047 463.112 318.985 467.233 313.54 465.652C308.096 464.071 337.402 457.643 336.21 452.598C333.824 447.849 327.265 460.315 331.141 462.689C335.017 465.064 358.625 446.176 354.655 442.507C351.273 439.38 335.231 463.181 345.155 461.205C355.079 459.229 366.614 448.318 363.343 446.365C359.09 443.824 350.224 456.753 354.088 463.394",stroke:"white",strokeWidth:"5.00652"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_2055_245872",children:(0,s.jsx)("rect",{width:"480",height:"496.271",fill:"white"})})})]})},t0=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 480 497",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"my-first-code-highlight-reveal",d:"M36.9235 97.3142C134.277 100.644 349.205 92.6206 432.126 94.498C332.959 101.548 114.333 116.078 31.917 112.788L424.958 113.899L31.917 128.918L424.958 124.539",stroke:"white",strokeWidth:"17.6269"}),(0,s.jsx)("path",{id:"bill-highlight-reveal",d:"M279.597 375.708C276.042 384.458 266.144 402.723 254.988 405.785C241.043 409.613 193.193 457.463 194.013 468.401C194.67 477.15 251.342 427.386 279.597 401.41L219.989 472.229L294.089 411.254L235.239 479.25L298.463 427.386L257.513 481.658L306.393 430.12L283.972 478.244L309.674 420.004L298.463 478.244L314.322 414.808V478.244L325.806 411.254L331.822 478.244L337.837 401.41L347.407 476.33L349.321 396.762L365.18 477.15L351.423 382.33L379.945 476.33L366 393.754L397.445 474.689L387.328 402.504L417.132 473.869L407.835 412.621L431.187 472.327",stroke:"white",strokeWidth:"18.0597"})]})};let t1=[{selector:"#text-reveal-1"},{selector:"#text-reveal-2"},{selector:"#text-bubble-reveal"},{selector:"#speech-bubble-reveal",reversePath:!0},{selector:"#border-outline-1"},{selector:"#bill-reveal"}],t2=[{selector:"#my-first-code-highlight-reveal"},{selector:"#bill-highlight-reveal"}];var t4=function(e){return(0,s.jsx)(V,{...e,inkRevealSVG:(0,s.jsx)(t$,{}),highlightRevealSVG:(0,s.jsx)(t0,{}),inkRevealAnimation:t1,highlightRevealAnimation:t2,spacingBottom:16})},t3=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 480 425",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"text-reveal-1",d:"M15.6484 20.4873C303.259 27.6854 134.26 29.7312 419.68 25.0368",stroke:"white",strokeWidth:"33.7997"}),(0,s.jsx)("path",{id:"text-reveal-2",d:"M14.3965 71.3549C302.633 62.592 208.432 79.9497 449.411 75.1104",stroke:"white",strokeWidth:"33.7997"}),(0,s.jsx)("path",{id:"text-reveal-3",d:"M14.3965 120.812C302.633 109.849 194.662 122.199 435.641 117.36",stroke:"white",strokeWidth:"33.7997"}),(0,s.jsx)("path",{id:"text-reveal-4",d:"M17.5254 168.057C286.358 164.617 206.553 169.769 447.533 164.93",stroke:"white",strokeWidth:"38.8071"}),(0,s.jsx)("path",{id:"text-reveal-5",d:"M19.4033 213.124C303.258 204.676 333.928 232.529 471.318 213.752",stroke:"white",strokeWidth:"33.7997"}),(0,s.jsx)("path",{id:"text-reveal-6",d:"M13.7705 260.381C282.603 256.94 202.798 266.474 443.778 261.635",stroke:"white",strokeWidth:"38.8071"}),(0,s.jsx)("path",{id:"text-reveal-7",d:"M13.7705 308.094C282.603 304.654 202.798 314.187 443.778 309.348",stroke:"white",strokeWidth:"38.8071"}),(0,s.jsx)("path",{id:"text-reveal-8",d:"M11.2666 354.412C280.099 350.972 202.798 362.383 443.778 357.544",stroke:"white",strokeWidth:"38.8071"}),(0,s.jsx)("path",{id:"text-reveal-9",d:"M11.2666 403.125C280.099 399.684 202.798 405.463 443.778 400.623",stroke:"white",strokeWidth:"38.8071"})]})};let t5=[{selector:"#text-reveal-1"},{selector:"#text-reveal-2"},{selector:"#text-reveal-3"},{selector:"#text-reveal-4"},{selector:"#text-reveal-5"},{selector:"#text-reveal-6"},{selector:"#text-reveal-7"},{selector:"#text-reveal-8"},{selector:"#text-reveal-9"}];var t8=function(e){return(0,s.jsx)(V,{...e,inkRevealSVG:(0,s.jsx)(t3,{}),inkRevealAnimation:t5,spacingBottom:16})},t6=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 480 208",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"border-reveal",d:"M325.111 32.5425H462.164L456.532 197.132L13.4551 193.064L17.8358 37.549L166.154 32.5425",stroke:"white",strokeWidth:"12.5163"}),(0,s.jsx)("path",{id:"text-reveal-layer",d:"M164.902 24.7197L316.037 28.4746L31.291 79.7914L443.077 68.5268L40.6782 109.831L443.077 93.8723L74.7851 138.618L394.264 129.544L66.6496 168.344L403.964 154.576",stroke:"white",strokeWidth:"30.0391"})]})},t7=function(){return(0,s.jsx)("svg",{viewBox:"0 0 480 208",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{id:"highlight-reveal",d:"M154.889 20.0259H338.879L14.0809 34.4196L409.283 31.2905L14.0809 52.5683L469.987 38.4874L14.0809 82.9203L474.681 67.9007L14.0809 112.959L467.797 98.5656L5.94531 134.237L465.919 124.85L15.9584 157.392L474.681 149.257L21.2778 187.431L474.681 180.547",stroke:"white",strokeWidth:"31.2907"})})};let t9=[{selector:"#border-reveal"},{selector:"#text-reveal-layer"}],ae=[{selector:"#highlight-reveal"}];var at=function(e){return(0,s.jsx)(V,{...e,inkRevealSVG:(0,s.jsx)(t6,{}),highlightRevealSVG:(0,s.jsx)(t7,{}),inkRevealAnimation:t9,highlightRevealAnimation:ae,spacingBottom:20})},aa=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 480 587",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_2060_370845)",children:[(0,s.jsx)("path",{id:"line-1",d:"M90.7435 390.418L-189.309 614.275",stroke:"white",strokeWidth:"21.916"}),(0,s.jsx)("path",{id:"line-2",d:"M80.7304 317.782L-244.693 567.625",stroke:"white",strokeWidth:"21.916"}),(0,s.jsx)("path",{id:"line-3",d:"M90.73 263.082L-346.387 460.237",stroke:"white",strokeWidth:"21.916"}),(0,s.jsx)("path",{id:"line-5",d:"M50.2912 221.799L-328.864 204.132",stroke:"white",strokeWidth:"21.916"}),(0,s.jsx)("path",{id:"line-6",d:"M50.8435 175.5L-305.398 33.8125",stroke:"white",strokeWidth:"21.916"}),(0,s.jsx)("path",{id:"line-7",d:"M66.4865 130.526L-186.493 -80.4632",stroke:"white",strokeWidth:"21.916"}),(0,s.jsx)("path",{id:"line-8",d:"M101.221 66.7861L-222.163 -217.908",stroke:"white",strokeWidth:"21.916"}),(0,s.jsx)("path",{id:"line-9",d:"M284.502 78.9524L542.581 -341.891",stroke:"white",strokeWidth:"21.916"}),(0,s.jsx)("path",{id:"line-10",d:"M356.713 107.074L602.346 -167.189",stroke:"white",strokeWidth:"21.916"}),(0,s.jsx)("path",{id:"line-11",d:"M391.757 143.08L761.616 -146.838",stroke:"white",strokeWidth:"21.916"}),(0,s.jsx)("path",{id:"line-12",d:"M440.261 182.843L823.26 -23.168",stroke:"white",strokeWidth:"21.916"}),(0,s.jsx)("path",{id:"line-13",d:"M443.389 217.282L735.332 184.095",stroke:"white",strokeWidth:"21.916"}),(0,s.jsx)("path",{id:"line-14",d:"M427.431 270.819L789.465 379.773",stroke:"white",strokeWidth:"21.916"}),(0,s.jsx)("path",{id:"line-15",d:"M398.331 344.081L732.203 577.018",stroke:"white",strokeWidth:"21.916"}),(0,s.jsx)("path",{id:"line-16",d:"M367.041 409.829L673.377 626.172",stroke:"white",strokeWidth:"21.916"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_2060_370845",children:(0,s.jsx)("rect",{width:"480",height:"587",fill:"white"})})})]})},ai=function(){return(0,s.jsx)("svg",{viewBox:"0 0 480 587",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{id:"teletype-ink-reveal",d:"M93.8725 14.0889L311.343 17.8459L121.909 66.7444L280.202 92.78L111.338 123.043L379.244 140.576L63.5205 162.492L416.54 197.465L63.5205 215.716L416.54 248.723L97.5146 272.072L356.909 302.692L101.695 327.175L349.591 359.103L101.695 379.46L343.26 415.465L97.5146 434.564L379.244 472.76L101.695 489.667L398.331 530.055L121.909 544.77L262.843 572.948",stroke:"white",strokeWidth:"54.2409"})})};let as=[{selector:"#teletype-ink-reveal"}],an=[{selector:"#line-1",position:0,reversePath:!0},{selector:"#line-2",position:0,reversePath:!0},{selector:"#line-3",position:0,reversePath:!0},{selector:"#line-5",position:0,reversePath:!0},{selector:"#line-6",position:0,reversePath:!0},{selector:"#line-7",position:0,reversePath:!0},{selector:"#line-8",position:0,reversePath:!0},{selector:"#line-9",position:0,reversePath:!0},{selector:"#line-10",position:0,reversePath:!0},{selector:"#line-11",position:0,reversePath:!0},{selector:"#line-12",position:0,reversePath:!0},{selector:"#line-13",position:0,reversePath:!0},{selector:"#line-14",position:0,reversePath:!0},{selector:"#line-15",position:0,reversePath:!0},{selector:"#line-16",position:0,reversePath:!0}];var ar=function(e){return(0,s.jsx)(V,{...e,inkRevealSVG:(0,s.jsx)(ai,{}),inkRevealAnimation:as,highlightRevealSVG:(0,s.jsx)(aa,{}),highlightRevealAnimation:an,spacingBottom:16})},ao=function(){return(0,s.jsx)("svg",{viewBox:"0 0 480 325",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{id:"arrow-text-reveal",d:"M64.1465 60.0781C80.4639 77.2885 110.793 94.0925 275.672 77.288C351.658 64.6238 371.964 98.9881 391.448 141.121",stroke:"white",strokeWidth:"38.4799"})})},al=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 480 325",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"highlight-3-reveal",d:"M2.55143 274.939C45.0596 271.382 131.52 246.553 225.12 263.23C158.932 270.255 -1.25051 294.224 13.79 298.468C71.6496 290.743 195.556 276.478 218.723 285.463L13.3684 308.002L208.71 299.857",stroke:"white",strokeWidth:"23.8596"}),(0,s.jsx)("path",{id:"highlight-2-reveal",d:"M9.05797 195.311C60.5061 182.764 201.875 153.528 354.497 177.303C256.636 184.076 52.6436 206.751 32.0001 219.67C106.743 215.117 274.277 202.82 335.683 210.508C247.742 218.423 64.2178 239.975 33.8942 251.731C119.37 244.425 289.463 241.928 328.749 246.156",stroke:"white",strokeWidth:"33.8011"}),(0,s.jsx)("path",{id:"highlight-1-reveal",d:"M13 156.904C47 156.904 88.5755 148.154 132 146.404",stroke:"white",strokeWidth:"39.766"})]})},ac=function(e){return(0,s.jsx)(V,{...e,inkRevealSVG:(0,s.jsx)(ao,{}),highlightRevealSVG:(0,s.jsx)(al,{}),inkRevealAnimation:tA,highlightRevealAnimation:tj,spacingBottom:0})},ad=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 480 650",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_2532_179319)",children:[(0,s.jsx)("path",{id:"arrow-1-ink-reveal",d:"M97 253.999C101.276 271.626 130.463 329.751 158.5 328.5",stroke:"white",strokeWidth:"44.67"}),(0,s.jsx)("path",{id:"arrow-2-ink-reveal",d:"M145.035 577.104C125.578 579.594 85.997 609.884 74.5 643",stroke:"white",strokeWidth:"53.55"}),(0,s.jsx)("path",{id:"textbox-reveal-1",d:"M57.6383 67.3594L405.36 64.3618L50.1443 95.5368L429.041 110.525L49.2451 112.623L429.041 134.506L50.1443 156.088L447.626 159.985L50.1443 180.669L317.53 206.448H45.6479L317.53 226.832",stroke:"white",strokeWidth:"38.9688"}),(0,s.jsx)("path",{id:"textbox-border-reveal-1",d:"M135.875 26.5922C99.5043 22.7953 27.3021 28.5707 29.4604 82.0478C31.6187 135.525 38.9525 196.656 42.3496 220.537C43.4487 228.43 56.798 244.338 101.402 244.817C146.007 245.297 322.625 248.614 405.359 250.213C421.646 251.912 453.68 244.577 451.522 201.652C449.364 158.726 450.623 96.2362 451.522 70.357C453.62 60.365 446.246 39.3618 399.963 35.2851C353.68 31.2083 198.624 31.9877 126.882 32.887",stroke:"white",strokeWidth:"23.3813"}),(0,s.jsx)("path",{id:"textbox-reveal-2",d:"M189.372 359.579H364.131L189.372 388.154L431.508 401.389L192.079 408.909L426.996 422.143L183.356 435.378L396.917 452.222L185.763 463.953L404.136 469.367L189.372 491.926L432.711 490.122L185.763 510.275L420.98 513.282L183.356 540.053L336.458 542.76",stroke:"white",strokeWidth:"39.1026"}),(0,s.jsx)("path",{id:"textbox-border-reveal-2",d:"M275.352 313.534H411.61C421.937 313.434 443.854 319.851 448.908 346.32C455.224 379.407 454.923 556.572 451.915 555.971C448.908 555.369 459.134 591.765 411.61 587.253C373.59 583.643 252.592 580.335 196.846 579.131C185.817 578.63 164.06 568.664 165.263 532.81C166.466 496.956 168.371 393.544 169.173 346.32C169.173 326.168 192.333 305.714 283.473 317.144",stroke:"white",strokeWidth:"23.4616"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_2532_179319",children:(0,s.jsx)("rect",{width:"480",height:"649.596",fill:"white"})})})]})};let am=[{selector:"#textbox-reveal-1"},{selector:"#textbox-border-reveal-1",reversePath:!0},{selector:"#arrow-1-ink-reveal"},{selector:"#textbox-reveal-2"},{selector:"#textbox-border-reveal-2"},{selector:"#arrow-2-ink-reveal"}];var au=function(e){return(0,s.jsx)(V,{...e,inkRevealSVG:(0,s.jsx)(ad,{}),inkRevealAnimation:am,spacingBottom:0})},ah=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 480 1060",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_2153_64169)",children:[(0,s.jsx)("path",{id:"textbox-border-reveal-3",d:"M106.314 13.6803H307.514C324.411 10.4469 357.892 14.8068 356.64 58.1131C355.388 101.42 356.119 214.671 356.64 265.884C358.309 277.044 353.761 300.804 322.22 306.561C290.679 312.319 138.856 323.146 66.8877 327.839C54.58 328.256 29.7143 321.143 28.713 289.352C27.7117 257.56 28.2958 115.897 28.713 49.0387C28.2957 37.9827 39.6885 17.1582 110.768 11.8027",stroke:"white",strokeWidth:"20.0261"}),(0,s.jsx)("path",{id:"textbox-reveal-3",d:"M50.6149 54.9409L308.764 51.8535L61.5667 63.744L313.144 74.3829L53.744 94.4089L337.238 100.354L50.6149 115.374L315.022 118.19L45.6084 142.284L334.109 144.161L50.6149 160.119L328.79 165.752L50.6149 191.097L313.144 192.662L50.6149 216.13L320.028 226.456L45.6084 240.537L334.109 247.421L50.6149 283.092L289.497 279.441",stroke:"white",strokeWidth:"34.4198"}),(0,s.jsx)("path",{id:"arrow-3-ink-reveal",d:"M359.999 297.441C370.951 308.602 410.749 353.404 410.499 382.441",stroke:"white",strokeWidth:"40.0521"}),(0,s.jsx)("path",{id:"textbox-border-reveal-4",d:"M208.502 384.941H310.002L411.002 393.941C458.688 399.658 452.502 410.941 450.079 471.227C447.601 532.892 435.2 578.243 425.002 588.441C417.002 596.441 414.95 598.724 367.502 600.941C318.291 603.241 167.002 595.941 81.0019 607.441C61.1875 607.441 26.4022 599.019 28.9054 565.725C31.4087 532.432 35.373 453.809 37.0422 418.659C41.6316 406.038 58.9458 382.049 91.4881 390.059C126.033 392.312 196.411 386.085 218.002 387.441",stroke:"white",strokeWidth:"11.61"}),(0,s.jsx)("path",{id:"textbox-reveal-4",d:"M73.499 430.941L388.317 427.969L56.0094 445.179L372.985 465.518L54.1319 479.911L388.317 488.673L63.2062 513.08L407.999 508.941L48.8125 548.125L425.499 531.941L51.499 561.442L416.499 557.441",stroke:"white",strokeWidth:"59.55"}),(0,s.jsx)("path",{id:"arrow-4-ink-reveal",d:"M72.1865 614.658C66.1459 636.013 58.5 683.441 91.5 691.941",stroke:"white",strokeWidth:"50.0652"}),(0,s.jsx)("path",{id:"textbox-border-reveal-5",d:"M408.999 670.942L164.499 673.442C106.188 662.658 95.4992 687.941 103.499 692.441C92.4992 780.658 96.7547 940.411 92.4992 963.441C88.2436 986.471 117.005 1002.94 128.5 998.441C218 990.941 382.688 989.658 409.792 993.13C418.719 994.274 448.336 980.554 446.792 951.44C443.292 885.44 448 762.941 451 706.441C452.957 669.573 422.558 667.291 408.999 670.942Z",stroke:"white",strokeWidth:"13.4"}),(0,s.jsx)("path",{id:"textbox-reveal-5",d:"M119.732 706.658L381.949 705.873L126.303 736.225L384.139 753.435L119.732 777.8L375.69 799.703L126.303 808.507L407.65 829.594L119.732 841.675L391.023 856.694L114.413 880.788L391.023 884.23L114.413 917.398L355.351 918.963L109.406 954.634L428.259 953.07",stroke:"white",strokeWidth:"38.55"}),(0,s.jsx)("path",{id:"arrow-5-ink-reveal",d:"M422.688 998.658C439.688 1025.16 439.003 1031.97 439.003 1060.44",stroke:"white",strokeWidth:"54.7"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_2153_64169",children:(0,s.jsx)("rect",{width:"480",height:"1060",fill:"white"})})})]})};let ag=[{selector:"#textbox-reveal-3"},{selector:"#textbox-border-reveal-3"},{selector:"#arrow-3-ink-reveal"},{selector:"#textbox-reveal-4"},{selector:"#textbox-border-reveal-4"},{selector:"#arrow-4-ink-reveal"},{selector:"#textbox-reveal-5"},{selector:"#textbox-border-reveal-5"},{selector:"#arrow-5-ink-reveal"}];var ap=function(e){return(0,s.jsx)(V,{...e,inkRevealSVG:(0,s.jsx)(ah,{}),inkRevealAnimation:ag,spacingBottom:0})},a_=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 480 669",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_2153_64170)",children:[(0,s.jsx)("path",{id:"textbox-border-reveal-6",d:"M150.822 9.78719H382.374C397.188 7.87305 428.684 14.873 428.684 56.4104C428.684 93.5608 425.688 166.873 418.045 198.47C418.149 206.397 391.994 226.652 353.193 223.147C314.393 219.642 154.264 231.651 79.7114 226.276C67.188 225.373 53.1879 202.373 55.6206 176.837C60.345 127.246 59.4798 64.9201 61.2529 40.0961C59.0625 28.31 63.6936 5.48865 99.7405 8.49243C135.787 11.4962 208.274 10.5999 237.687 12.373",stroke:"white",strokeWidth:"24"}),(0,s.jsx)("path",{id:"textbox-reveal-6",d:"M77.918 47.2949L376.119 49.1724L77.918 72.6404L392.39 93.9181L82.6116 104.557L398.022 135.222L81.047 138.351L398.022 177.464L79.4825 179.029",stroke:"white",strokeWidth:"37.5489"}),(0,s.jsx)("path",{id:"arrow-6-ink-reveal",d:"M54.6873 224.875C41.5451 238.539 21.4117 277.842 41.1875 302.875",stroke:"white",strokeWidth:"38.41"}),(0,s.jsx)("path",{id:"textbox-border-reveal-7",d:"M112.687 296.498L371.046 300.553C395.556 297.389 448.561 298.358 450.687 344.376C452.813 390.394 451.718 504.482 453.687 553.376C458.313 570.729 447.687 627.567 418.687 630.376C375.927 634.518 173.687 645.376 76.6845 645.376C52.687 648.376 32.2694 618.762 33.6868 579.876C35.1043 540.991 37.2775 400.898 36.6869 336.376C36.628 329.96 23.6865 298.496 112.706 296",stroke:"white",strokeWidth:"16.06"}),(0,s.jsx)("path",{id:"textbox-reveal-7",d:"M47.1865 336.996L430.186 336.875L46.4443 354.36L435.589 349.294L54.1855 389.875L400.105 384.522L67.8994 428.773H384.562L81.9803 475.145L347.013 474.145L52.2541 521.516L430.858 517.013L47.6855 566.375L435.239 560.528L90.4288 605.253H376.739",stroke:"white",strokeWidth:"32.48"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_2153_64170",children:(0,s.jsx)("rect",{width:"480",height:"669",fill:"white"})})})]})};let av=[{selector:"#textbox-reveal-6"},{selector:"#textbox-border-reveal-6"},{selector:"#arrow-6-ink-reveal"},{selector:"#textbox-reveal-7"},{selector:"#textbox-border-reveal-7"}];var af=function(e){return(0,s.jsx)(V,{...e,inkRevealSVG:(0,s.jsx)(a_,{}),inkRevealAnimation:av,spacingBottom:0})},ax=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 480 148",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"ellipses-text-reveal-1",d:"M232.178 13.7676L253.714 20.5828",stroke:"white",strokeWidth:"11.2647"}),(0,s.jsx)("path",{id:"ellipses-text-reveal-2",d:"M232.178 30.0391L253.714 36.8543",stroke:"white",strokeWidth:"11.2647"}),(0,s.jsx)("path",{id:"ellipses-text-reveal-3",d:"M233.429 46.9355L254.965 53.7508",stroke:"white",strokeWidth:"11.2647"}),(0,s.jsx)("path",{id:"textbox-border-reveal-1",d:"M148.449 67.6491C119.007 65.4682 68.8402 65.7601 68.8398 92.1178C68.8394 123.409 84.1129 131.167 109.738 130.622C130.238 130.186 299.293 130.44 381.258 130.622C391.98 131.44 408.657 129.156 408.657 109.954C408.657 78.6628 403.611 67.6491 366.264 67.6491C336.386 67.6491 196.973 68.0624 130.729 66.3359",stroke:"white",strokeWidth:"20.0261"}),(0,s.jsx)("path",{id:"text-reveal-1",d:"M88.8652 100.756L386.44 100.756",stroke:"white",strokeWidth:"31.2907"})]})},ab=function(e){return(0,s.jsx)(V,{...e,inkRevealSVG:(0,s.jsx)(ax,{}),inkRevealAnimation:tP,spacingBottom:32})},aC=a(5440),aS=a.n(aC),aI=function(){return(0,s.jsxs)("svg",{viewBox:"0 0 480 546",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{id:"text-reveal-1",d:"M61.9561 250.123L429.309 252",stroke:"white",strokeWidth:"43.807"}),(0,s.jsx)("path",{id:"text-reveal-2",d:"M61.9561 298.938L429.309 300.815",stroke:"white",strokeWidth:"43.807"}),(0,s.jsx)("path",{id:"text-reveal-3",d:"M60.7041 346.498L428.057 349.001",stroke:"white",strokeWidth:"43.807"}),(0,s.jsx)("path",{id:"text-reveal-4",d:"M48.501 388.742L441.826 397.817",stroke:"white",strokeWidth:"43.807"}),(0,s.jsx)("path",{id:"text-reveal-5",d:"M56.9492 434.113L420.548 439.433",stroke:"white",strokeWidth:"37.5489"}),(0,s.jsx)("path",{id:"text-reveal-6",d:"M36.2969 481.049H444.954",stroke:"white",strokeWidth:"37.5489"}),(0,s.jsx)("path",{id:"border-reveal",d:"M162.629 190.557L39.8267 193.498C30.9734 193.498 15.0792 191.087 16.2846 221.437C17.49 251.788 14.0232 433.186 12.5166 512.591C13.0802 523.179 13.4221 521.002 36.6263 522.885C59.8305 524.767 314.624 528.963 439.121 530.825C446.592 533.374 461.421 532.119 460.969 506.709C460.517 481.3 466.305 297.412 467.372 206.439C468.691 188.793 458.144 188.793 445.336 188.793C432.528 188.793 361.397 190.557 326.113 190.557",stroke:"white",strokeWidth:"18.7744"})]})},aT=function(){return(0,s.jsx)("svg",{viewBox:"0 0 480 546",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{id:"highlight-reveal",d:"M202.451 482.473C264.615 476.214 348.579 469.026 446.206 485.548",stroke:"white",strokeWidth:"31.2907"})})};let aN=tY(6),aE=[{selector:"#highlight-reveal"}];var aw=function(e){let{inkImage:t,highlightImage:a,videoSources:i}=e;return(0,s.jsx)("div",{className:aS().ComicSourceCodeQuoteMobile,children:(0,s.jsx)(V,{inkImage:t,highlightImage:a,inkRevealSVG:(0,s.jsx)(aI,{}),highlightRevealSVG:(0,s.jsx)(aT,{}),inkRevealAnimation:aN,highlightRevealAnimation:aE,spacingBottom:0,children:!!(null==i?void 0:i.length)&&(0,s.jsx)(eu,{videoSources:i,isPlaying:!0,className:aS().video})})})},ak=a(4172),ay=a.n(ak),aA=function(e){return(0,s.jsxs)("div",{className:ay().ComicBookMobile,children:[(0,s.jsx)(t4,{...e.header}),(0,s.jsx)(t8,{...e.subheading}),(0,s.jsx)(at,{...e.teletypeBanner}),(0,s.jsx)(ar,{...e.teletype}),(0,s.jsx)(td,{slides:e.teletypeCarousel.slides}),(0,s.jsx)(ac,{...e.feedbackLoopHeader}),(0,s.jsx)(au,{...e.feedbackLoopBody01}),(0,s.jsx)(ap,{...e.feedbackLoopBody02}),(0,s.jsx)(af,{...e.feedbackLoopBody03}),(0,s.jsx)(ab,{...e.feedbackLoopFooter}),(0,s.jsx)(aw,{...e.sourceCodeQuote})]})},aj=a(6110),aL=a.n(aj),aO=function(e){let{effectId:t,displacementScale:a=10,displacementFrequency:i=.02,displacementNumOctaves:n=1}=e;return(0,s.jsx)("div",{className:aL().ComicFilterBoilSource,children:(0,s.jsxs)("svg",{width:"0",height:"0",children:[(0,s.jsxs)("filter",{id:"".concat(t,"-frame-1"),children:[(0,s.jsx)("feTurbulence",{type:"turbulence",baseFrequency:i,numOctaves:n,seed:"1",result:"turbulence"}),(0,s.jsx)("feDisplacementMap",{in:"SourceGraphic",in2:"turbulence",scale:a,xChannelSelector:"R",yChannelSelector:"G"})]}),(0,s.jsxs)("filter",{id:"".concat(t,"-frame-2"),children:[(0,s.jsx)("feTurbulence",{type:"turbulence",baseFrequency:i,numOctaves:n,seed:"2",result:"turbulence"}),(0,s.jsx)("feDisplacementMap",{in:"SourceGraphic",in2:"turbulence",scale:a,xChannelSelector:"R",yChannelSelector:"G"})]}),(0,s.jsxs)("filter",{id:"".concat(t,"-frame-3"),children:[(0,s.jsx)("feTurbulence",{type:"turbulence",baseFrequency:i,numOctaves:n,seed:"3",result:"turbulence"}),(0,s.jsx)("feDisplacementMap",{in:"SourceGraphic",in2:"turbulence",scale:a,xChannelSelector:"R",yChannelSelector:"G"})]})]})})},aB=a(9164),aR=a.n(aB),aM=function(e){let{config:t}=e,a=u(),i=void 0!==a,n=6,r=.02;return(0,s.jsxs)("div",{className:aR().ComicBook,style:{display:i?void 0:"none"},children:["desktop"===a&&(0,s.jsx)(eb,{...t.desktop}),"tablet"===a&&(0,s.jsx)(tX,{...t.tablet}),"mobile"===a&&(0,s.jsx)(aA,{...t.mobile}),(0,s.jsx)(aO,{effectId:"filter-highlight-boil",displacementScale:n,displacementFrequency:r})]})};let aD={"carousel-mobile-text-1-highlight.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/a278af98-5e02-477b-b0f5-c7a89dc01590/carousel-mobile-text-1-highlight.webp","carousel-mobile-text-1.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/a503fcc7-1009-4c9a-b0d7-687c6c229a97/carousel-mobile-text-1.webp","carousel-mobile-text-2-highlight.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/ac364e82-f71b-41a5-a202-2517ab2a2130/carousel-mobile-text-2-highlight.webp","carousel-mobile-text-2.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/21cda112-bfa4-4397-99b4-c95f50673c3c/carousel-mobile-text-2.webp","carousel-mobile-text-3-highlight.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/19cae6db-ebd4-4ea5-9312-5ead617cdb8a/carousel-mobile-text-3-highlight.webp","carousel-mobile-text-3.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/7574137c-9aff-485a-a88e-ca8bb9ce8abf/carousel-mobile-text-3.webp","carousel-mobile-text-4-highlight.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/e3c27a6e-e44e-4fec-883f-aa85b28c5003/carousel-mobile-text-4-highlight.webp","carousel-mobile-text-4.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/7c795450-f581-4b43-9b0d-812f5ede4f19/carousel-mobile-text-4.webp","carousel-mobile-text-5-highlight.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/6e2c790c-c9eb-49e6-9118-3376382cdeb6/carousel-mobile-text-5-highlight.webp","carousel-mobile-text-5.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/2379ec46-2c70-4584-9ff1-639a9e334803/carousel-mobile-text-5.webp","carousel-tablet-text-1-highlight.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/20e97fe6-66a1-47cf-a6d9-160ef87140dd/carousel-tablet-text-1-highlight.webp","carousel-tablet-text-1.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/422f88d9-86a4-4007-827c-79d859555fda/carousel-tablet-text-1.webp","carousel-tablet-text-2-highlight.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/2bb84840-209b-4a42-80c7-e81fdcb701f8/carousel-tablet-text-2-highlight.webp","carousel-tablet-text-2.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/45dbf07f-a244-40d1-993e-f1cc94fc1ad6/carousel-tablet-text-2.webp","carousel-tablet-text-3-highlight.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/a244d68c-3cc9-466b-b8e6-831ed56849b9/carousel-tablet-text-3-highlight.webp","carousel-tablet-text-3.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/50d4d5e4-8c9a-46e3-b9b2-8f9beb3d69c7/carousel-tablet-text-3.webp","carousel-tablet-text-4-highlight.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/482730aa-92fd-4ebe-b6fb-6e9e827562b5/carousel-tablet-text-4-highlight.webp","carousel-tablet-text-4.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/52cc619a-5bea-4f10-98df-74cd453127c6/carousel-tablet-text-4.webp","carousel-tablet-text-5-highlight.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/58815217-8897-4c9e-8b68-028ac5f2c89f/carousel-tablet-text-5-highlight.webp","carousel-tablet-text-5.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/d3e84036-698e-47ec-9366-5e5181461d70/carousel-tablet-text-5.webp","comic-header-desktop-highlight.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/351beb4c-e615-4c18-b1c0-8d8eb4764592/comic-header-desktop-highlight.webp","comic-header-desktop-ink-1.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/9a1453b3-b789-4b7a-b0fe-ddd713016de5/comic-header-desktop-ink-1.webp","comic-header-desktop-ink-2.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/04fb108b-8842-44b8-aaab-76a233696f34/comic-header-desktop-ink-2.webp","comic-header-desktop-ink-3.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/dc4c92a3-5540-4c0e-b3fa-7bc049a2da5c/comic-header-desktop-ink-3.webp","comic-header-mobile-highlight.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/7e6c1964-a60d-4da0-bf43-cab663de2271/comic-header-mobile-highlight.webp","comic-header-mobile-ink-1.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/4091ffee-d583-480c-b26e-c8fe7443f28b/comic-header-mobile-ink-1.webp","comic-header-mobile-ink-2.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/1f09c57e-b887-48c0-a0fc-bf3c2c983970/comic-header-mobile-ink-2.webp","comic-header-mobile-ink-3.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/d99dbe8c-648b-4f12-bc7b-6a54522c650e/comic-header-mobile-ink-3.webp","comic-header-tablet-highlight.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/2a474c96-104a-4f73-a9e0-b2eb9a5ab311/comic-header-tablet-highlight.webp","comic-header-tablet-ink-1.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/266c453a-e80e-4aa5-bab0-ea600bb9add6/comic-header-tablet-ink-1.webp","comic-header-tablet-ink-2.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/16029eb2-a09f-4e1f-b4ed-2ad28f8a715f/comic-header-tablet-ink-2.webp","comic-header-tablet-ink-3.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/8252b693-18e3-4beb-9e10-a9e8c718eccc/comic-header-tablet-ink-3.webp","feedback-loop-body-mobile-01-ink-1.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/a7f1fc7f-b804-489d-9cb8-748ff40a06de/feedback-loop-body-mobile-01-ink-1.webp","feedback-loop-body-mobile-01-ink-2.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/2d8eb7a1-6464-48ba-9e47-cb5156246d01/feedback-loop-body-mobile-01-ink-2.webp","feedback-loop-body-mobile-01-ink-3.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/d4acb45e-7628-461c-8895-9c1cc592d9f3/feedback-loop-body-mobile-01-ink-3.webp","feedback-loop-body-mobile-02-ink-1.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/f9326d5f-726f-46c0-9abd-615bccc44cc2/feedback-loop-body-mobile-02-ink-1.webp","feedback-loop-body-mobile-02-ink-2.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/6330c70a-2009-4061-badf-a6a7ee77c232/feedback-loop-body-mobile-02-ink-2.webp","feedback-loop-body-mobile-02-ink-3.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/201b1aec-6208-429e-aef1-a358fd64cc76/feedback-loop-body-mobile-02-ink-3.webp","feedback-loop-body-mobile-03-ink-1.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/e7bd28da-02bf-4806-a5ec-b7af80e13034/feedback-loop-body-mobile-03-ink-1.webp","feedback-loop-body-mobile-03-ink-2.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/224c86db-4295-4088-b18d-0eecf6a38244/feedback-loop-body-mobile-03-ink-2.webp","feedback-loop-body-mobile-03-ink-3.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/16223643-3880-4079-a528-3bc220f158cd/feedback-loop-body-mobile-03-ink-3.webp","feedback-loop-body-tablet-01-ink-1.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/2be86d32-c632-41ac-af45-e8bae7afe437/feedback-loop-body-tablet-01-ink-1.webp","feedback-loop-body-tablet-01-ink-2.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/4d3c9949-6bb3-48cf-9490-b18d611f4c44/feedback-loop-body-tablet-01-ink-2.webp","feedback-loop-body-tablet-01-ink-3.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/83294937-1a74-4a1b-a2bd-4293e8179e2f/feedback-loop-body-tablet-01-ink-3.webp","feedback-loop-body-tablet-02-ink-1.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/3612bc73-25fb-40d3-ba0e-19a685bb5b71/feedback-loop-body-tablet-02-ink-1.webp","feedback-loop-body-tablet-02-ink-2.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/253a8e97-79f4-4179-ae8f-8a78ef6d62d9/feedback-loop-body-tablet-02-ink-2.webp","feedback-loop-body-tablet-02-ink-3.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/d0235463-49bc-4c1c-bea7-5dd972e815a8/feedback-loop-body-tablet-02-ink-3.webp","feedback-loop-button-mobile.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/5c2ee69b-ef58-4404-b26e-4524d563d70e/feedback-loop-button-mobile.webp","feedback-loop-button-tablet.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/b45b3492-9dbe-4131-a3a7-49e55aa878a5/feedback-loop-button-tablet.webp","feedback-loop-desktop-highlight.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/92a30246-1893-4d0b-9e33-9d3e69119654/feedback-loop-desktop-highlight.webp","feedback-loop-desktop-ink-1.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/c55ec84e-13d8-423f-a9f5-dca85b40fec5/feedback-loop-desktop-ink-1.webp","feedback-loop-desktop-ink-2.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/55eecc07-a1f3-49b3-9891-ffac28b97380/feedback-loop-desktop-ink-2.webp","feedback-loop-desktop-ink-3.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/85052684-5b90-42d4-b801-892dec82fcac/feedback-loop-desktop-ink-3.webp","feedback-loop-footer-mobile-ink-1.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/ba46d922-0ae3-43e2-852c-c68f659f8d32/feedback-loop-footer-mobile-ink-1.webp","feedback-loop-footer-mobile-ink-2.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/733246a0-8122-449e-bbda-6fd29807a51b/feedback-loop-footer-mobile-ink-2.webp","feedback-loop-footer-mobile-ink-3.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/81509397-4513-4e5d-88d5-29ee8e0045b4/feedback-loop-footer-mobile-ink-3.webp","feedback-loop-footer-tablet-ink-1.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/cb83fe13-1dd3-417b-b5fb-7d184b102851/feedback-loop-footer-tablet-ink-1.webp","feedback-loop-footer-tablet-ink-2.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/2b137610-4798-45e3-a7e8-1e928edfee95/feedback-loop-footer-tablet-ink-2.webp","feedback-loop-footer-tablet-ink-3.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/e50d8251-deb4-4963-bfc2-49775bd08514/feedback-loop-footer-tablet-ink-3.webp","feedback-loop-header-mobile-highlight.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/80f20911-e8f8-4a8b-bb1c-c5b4699d3e5b/feedback-loop-header-mobile-highlight.webp","feedback-loop-header-mobile-ink-1.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/30a2b99d-1312-4998-a3b9-aec0c5406e40/feedback-loop-header-mobile-ink-1.webp","feedback-loop-header-mobile-ink-2.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/2404a1a3-f465-4750-9f30-3eb8ab970765/feedback-loop-header-mobile-ink-2.webp","feedback-loop-header-mobile-ink-3.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/21a9bcb9-dc23-4746-9648-29eec95d607e/feedback-loop-header-mobile-ink-3.webp","feedback-loop-header-tablet-highlight.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/15849abb-9711-43da-8941-b7323d47e671/feedback-loop-header-tablet-highlight.webp","feedback-loop-header-tablet-ink-1.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/2a509673-a33d-4813-81f3-aaf7129526ef/feedback-loop-header-tablet-ink-1.webp","feedback-loop-header-tablet-ink-2.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/a0e0138c-dd2d-447e-ab4a-6d623df0b9d7/feedback-loop-header-tablet-ink-2.webp","feedback-loop-header-tablet-ink-3.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/daf92866-e45e-4b4f-8fc0-0ef7768e50b2/feedback-loop-header-tablet-ink-3.webp","source-code-quote-desktop-highlight.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/50842a37-71b0-49fd-af1f-cd182367ea55/source-code-quote-desktop-highlight.webp","source-code-quote-desktop-ink.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/e45cd317-1232-4ba2-bd1c-1efbe50152fd/source-code-quote-desktop-ink.webp","source-code-quote-mobile-highlight.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/4ca549c3-4041-466a-9472-10e64d5a9667/source-code-quote-mobile-highlight.webp","source-code-quote-mobile-ink.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/6aa2dd96-a274-4f2e-9adb-2ee041ddb1b5/source-code-quote-mobile-ink.webp","source-code-quote-tablet-highlight.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/203d8b9c-036e-4fd9-bd34-3789a1bf1e82/source-code-quote-tablet-highlight.webp","source-code-quote-tablet-ink.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/e576f739-9fa4-4e40-b125-54df4c1640ce/source-code-quote-tablet-ink.webp","source-code-quote-video-h265-hevc-safari.mp4":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/05c14be2-c730-43bb-a84e-05e9f3a62a50/source-code-quote-video-h265-hevc-safari.mp4","source-code-quote-video-h265-vp9-chrome.webm":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/1d3ba484-60e8-454e-b0e8-fba3fd952735/source-code-quote-video-h265-vp9-chrome.webm","subheading-desktop-ink.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/46f76fbd-47a5-484a-b69d-d4cb336d7a44/subheading-desktop-ink.webp","subheading-mobile-ink.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/474b1c08-ebcb-49e4-8849-e97e0c664947/subheading-mobile-ink.webp","subheading-tablet-ink.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/1b21ba9d-5237-4484-bc3d-5921a81ea974/subheading-tablet-ink.webp","teletype-arrow-mobile.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/46d6d840-c9b1-4f11-b339-fa9bfe4e136e/teletype-arrow-mobile.webp","teletype-arrow-tablet.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/c7fef0ae-25e3-4cad-8f72-c58eadddbd9c/teletype-arrow-tablet.webp","teletype-banner-desktop-highlight.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/2415ee8c-c1e5-4557-ab95-f3a10b694804/teletype-banner-desktop-highlight.webp","teletype-banner-desktop-ink.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/5e77e436-9277-4a1c-9998-06574492a219/teletype-banner-desktop-ink.webp","teletype-banner-mobile-highlight.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/c52140a0-e158-4357-9cac-dfda090d4f66/teletype-banner-mobile-highlight.webp","teletype-banner-mobile-ink.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/a45ba824-bf7f-4b20-945a-ea4f723bd997/teletype-banner-mobile-ink.webp","teletype-banner-tablet-highlight.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/fe8cab8e-4e3e-49af-a635-e46168e90529/teletype-banner-tablet-highlight.webp","teletype-banner-tablet-ink.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/df368e2b-2124-4e58-b6d8-d444dc41abe8/teletype-banner-tablet-ink.webp","teletype-desktop-highlight.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/65b9ffd5-9f40-4fe3-a3e2-26030306c86c/teletype-desktop-highlight.webp","teletype-desktop-ink-1.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/2544767d-d649-4cbc-911f-7eac83e1f998/teletype-desktop-ink-1.webp","teletype-desktop-ink-2.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/96af1501-45a0-4f2e-85ef-22d8bde5b9f0/teletype-desktop-ink-2.webp","teletype-desktop-ink-3.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/e15c94e8-8082-4540-ade1-cda1169eceb9/teletype-desktop-ink-3.webp","teletype-mobile-highlight.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/d2d1761e-6242-4dd0-a17c-42d92bb8e1eb/teletype-mobile-highlight.webp","teletype-mobile-ink.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/84a8106c-85ff-4a59-9a95-f67d850eb1f7/teletype-mobile-ink.webp","teletype-tablet-highlight.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/c483f6eb-5036-4363-bcf2-8020e29a3d36/teletype-tablet-highlight.webp","teletype-tablet-ink.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/b7c9b31d-c1e1-4d7a-a888-1f33dcc7b733/teletype-tablet-ink.webp"};var aH=aD;let aF=aH,aP={header:{inkImageSequence:[{id:"comic-header-desktop-ink-1",src:aF["comic-header-desktop-ink-1.webp"],width:2880,height:920},{id:"comic-header-desktop-ink-2",src:aF["comic-header-desktop-ink-2.webp"],width:2880,height:920},{id:"comic-header-desktop-ink-3",src:aF["comic-header-desktop-ink-3.webp"],width:2880,height:920}],highlightImage:{id:"comic-header-desktop-highlight",src:aF["comic-header-desktop-highlight.webp"]}},subheading:{inkImage:{id:"subheading-desktop-ink",src:aF["subheading-desktop-ink.webp"],width:2880,height:446}},teletypeBanner:{inkImage:{id:"teletype-banner-desktop-ink",src:aF["teletype-banner-desktop-ink.webp"],width:2880,height:410},highlightImage:{id:"teletype-banner-desktop-highlight",src:aF["teletype-banner-desktop-highlight.webp"]}},teletype:{inkImageSequence:[{id:"teletype-desktop-ink-1",src:aF["teletype-desktop-ink-1.webp"],width:2880,height:2050},{id:"teletype-desktop-ink-2",src:aF["teletype-desktop-ink-2.webp"],width:2880,height:2050},{id:"teletype-desktop-ink-3",src:aF["teletype-desktop-ink-3.webp"],width:2880,height:2050}],highlightImage:{id:"teletype-desktop-highlight",src:aF["teletype-desktop-highlight.webp"]}},feedbackLoop:{inkImageSequence:[{id:"feedback-loop-desktop-ink-1",src:aF["feedback-loop-desktop-ink-1.webp"],width:2880,height:1088},{id:"feedback-loop-desktop-ink-2",src:aF["feedback-loop-desktop-ink-2.webp"],width:2880,height:1088},{id:"feedback-loop-desktop-ink-3",src:aF["feedback-loop-desktop-ink-3.webp"],width:2880,height:1088}],highlightImage:{id:"feedback-loop-desktop-highlight",src:aF["feedback-loop-desktop-highlight.webp"]}},sourceCodeQuote:{inkImage:{id:"source-code-quote-desktop-ink",src:aF["source-code-quote-desktop-ink.webp"],width:2880,height:608},highlightImage:{id:"source-code-quote-desktop-highlight",src:aF["source-code-quote-desktop-highlight.webp"]},videoSources:[{src:aF["source-code-quote-video-h265-hevc-safari.mp4"],type:"video/mp4;codecs=hvc1"},{src:aF["source-code-quote-video-h265-vp9-chrome.webm"],type:"video/webm"}]}},aW={header:{inkImageSequence:[{id:"comic-header-tablet-ink-1",src:aF["comic-header-tablet-ink-1.webp"],width:1920,height:657},{id:"comic-header-tablet-ink-2",src:aF["comic-header-tablet-ink-2.webp"],width:1920,height:657},{id:"comic-header-tablet-ink-3",src:aF["comic-header-tablet-ink-3.webp"],width:1920,height:657}],highlightImage:{id:"comic-header-tablet-highlight",src:aF["comic-header-tablet-highlight.webp"]}},subheading:{inkImage:{id:"subheading-tablet-ink",src:aF["subheading-tablet-ink.webp"],width:1920,height:524}},teletypeBanner:{inkImage:{id:"teletype-banner-tablet-ink",src:aF["teletype-banner-tablet-ink.webp"],width:1920,height:314},highlightImage:{id:"teletype-banner-tablet-highlight",src:aF["teletype-banner-tablet-highlight.webp"]}},teletype:{inkImage:{id:"teletype-tablet-ink",src:aF["teletype-tablet-ink.webp"],width:1920,height:1581},highlightImage:{id:"teletype-tablet-highlight",src:aF["teletype-tablet-highlight.webp"]}},teletypeCarousel:{slides:[{id:"carousel-slide-01",inkImage:{id:"carousel-tablet-text-1",src:aF["carousel-tablet-text-1.webp"],width:1920,height:883},highlightImage:{id:"carousel-tablet-text-1-highlight",src:aF["carousel-tablet-text-1-highlight.webp"],width:1920,height:883}},{id:"carousel-slide-02",inkImage:{id:"carousel-tablet-text-2",src:aF["carousel-tablet-text-2.webp"],width:1920,height:883},highlightImage:{id:"carousel-tablet-text-2-highlight",src:aF["carousel-tablet-text-2-highlight.webp"],width:1920,height:883}},{id:"carousel-slide-03",inkImage:{id:"carousel-tablet-text-3",src:aF["carousel-tablet-text-3.webp"],width:1920,height:883},highlightImage:{id:"carousel-tablet-text-1-highlight",src:aF["carousel-tablet-text-3-highlight.webp"],width:1920,height:883}},{id:"carousel-slide-04",inkImage:{id:"carousel-tablet-text-4",src:aF["carousel-tablet-text-4.webp"],width:1920,height:883},highlightImage:{id:"carousel-tablet-text-4-highlight",src:aF["carousel-tablet-text-4-highlight.webp"],width:1920,height:883}},{id:"carousel-slide-05",inkImage:{id:"carousel-tablet-text-5",src:aF["carousel-tablet-text-5.webp"],width:1920,height:883},highlightImage:{id:"carousel-tablet-text-5-highlight",src:aF["carousel-tablet-text-5-highlight.webp"],width:1920,height:883}}],arrow:{id:"teletype-arrow-tablet",src:aF["teletype-arrow-tablet.webp"],width:2559,height:831}},feedbackLoopHeader:{inkImageSequence:[{id:"feedback-loop-header-tablet-ink-1",src:aF["feedback-loop-header-tablet-ink-1.webp"],width:1920,height:955},{id:"feedback-loop-header-tablet-ink-2",src:aF["feedback-loop-header-tablet-ink-2.webp"],width:1920,height:955},{id:"feedback-loop-header-tablet-ink-3",src:aF["feedback-loop-header-tablet-ink-3.webp"],width:1920,height:955}],highlightImage:{id:"feedback-loop-header-tablet-highlight",src:aF["feedback-loop-header-tablet-highlight.webp"]}},feedbackLoopBody01:{inkImageSequence:[{id:"feedback-loop-body-tablet-01-ink-1",src:aF["feedback-loop-body-tablet-01-ink-1.webp"],width:1920,height:1776},{id:"feedback-loop-body-tablet-01-ink-2",src:aF["feedback-loop-body-tablet-01-ink-2.webp"],width:1920,height:1776},{id:"feedback-loop-body-tablet-01-ink-3",src:aF["feedback-loop-body-tablet-01-ink-3.webp"],width:1920,height:1776}]},feedbackLoopBody02:{inkImageSequence:[{id:"feedback-loop-body-tablet-02-ink-1",src:aF["feedback-loop-body-tablet-02-ink-1.webp"],width:1920,height:1617},{id:"feedback-loop-body-tablet-02-ink-2",src:aF["feedback-loop-body-tablet-02-ink-2.webp"],width:1920,height:1617},{id:"feedback-loop-body-tablet-02-ink-3",src:aF["feedback-loop-body-tablet-02-ink-3.webp"],width:1920,height:1617}]},feedbackLoopFooter:{inkImageSequence:[{id:"feedback-loop-footer-tablet-ink-1",src:aF["feedback-loop-footer-tablet-ink-1.webp"],width:1920,height:339},{id:"feedback-loop-footer-tablet-ink-2",src:aF["feedback-loop-footer-tablet-ink-2.webp"],width:1920,height:339},{id:"feedback-loop-footer-tablet-ink-3",src:aF["feedback-loop-footer-tablet-ink-3.webp"],width:1920,height:339}]},sourceCodeQuote:{inkImage:{id:"source-code-quote-tablet-ink",src:aF["source-code-quote-tablet-ink.webp"],width:1920,height:1520},highlightImage:{id:"source-code-quote-tablet-highlight",src:aF["source-code-quote-tablet-highlight.webp"]},videoSources:[{src:aF["source-code-quote-video-h265-hevc-safari.mp4"],type:"video/mp4;codecs=hvc1"},{src:aF["source-code-quote-video-h265-vp9-chrome.webm"],type:"video/webm"}]}},aG={header:{inkImageSequence:[{id:"comic-header-mobile-ink-1",src:aF["comic-header-mobile-ink-1.webp"],width:961,height:993},{id:"comic-header-mobile-ink-2",src:aF["comic-header-mobile-ink-2.webp"],width:961,height:993},{id:"comic-header-mobile-ink-3",src:aF["comic-header-mobile-ink-3.webp"],width:961,height:993}],highlightImage:{id:"comic-header-mobile-highlight",src:aF["comic-header-mobile-highlight.webp"]}},subheading:{inkImage:{id:"subheading-mobile-ink",src:aF["subheading-mobile-ink.webp"],width:960,height:850}},teletypeBanner:{inkImage:{id:"teletype-banner-mobile-ink",src:aF["teletype-banner-mobile-ink.webp"],width:960,height:415},highlightImage:{id:"teletype-banner-mobile-highlight",src:aF["teletype-banner-mobile-highlight.webp"]}},teletype:{inkImage:{id:"teletype-mobile-ink",src:aF["teletype-mobile-ink.webp"],width:960,height:1174},highlightImage:{id:"teletype-mobile-highlight",src:aF["teletype-mobile-highlight.webp"]}},teletypeCarousel:{slides:[{id:"01",inkImage:{id:"carousel-mobile-text-1",src:aF["carousel-mobile-text-1.webp"],width:960,height:643},highlightImage:{id:"carousel-mobile-text-1-highlight",src:aF["carousel-mobile-text-1-highlight.webp"],width:960,height:643}},{id:"02",inkImage:{id:"carousel-mobile-text-2",src:aF["carousel-mobile-text-2.webp"],width:960,height:643},highlightImage:{id:"carousel-mobile-text-2-highlight",src:aF["carousel-mobile-text-2-highlight.webp"],width:960,height:643}},{id:"03",inkImage:{id:"carousel-mobile-text-3",src:aF["carousel-mobile-text-3.webp"],width:960,height:643},highlightImage:{id:"carousel-mobile-text-3-highlight",src:aF["carousel-mobile-text-3-highlight.webp"],width:960,height:643}},{id:"04",inkImage:{id:"carousel-mobile-text-4",src:aF["carousel-mobile-text-4.webp"],width:960,height:643},highlightImage:{id:"carousel-mobile-text-4-highlight",src:aF["carousel-mobile-text-4-highlight.webp"],width:960,height:643}},{id:"05",inkImage:{id:"carousel-mobile-text-5",src:aF["carousel-mobile-text-5.webp"],width:960,height:643},highlightImage:{id:"carousel-mobile-text-5-highlight",src:aF["carousel-mobile-text-5-highlight.webp"],width:960,height:643}}],arrow:{id:"teletype-arrow-mobile",src:aF["teletype-arrow-mobile.webp"],width:1535,height:631}},feedbackLoopHeader:{inkImageSequence:[{id:"feedback-loop-header-mobile-ink-1",src:aF["feedback-loop-header-mobile-ink-1.webp"],width:960,height:650},{id:"feedback-loop-header-mobile-ink-2",src:aF["feedback-loop-header-mobile-ink-2.webp"],width:960,height:650},{id:"feedback-loop-header-mobile-ink-3",src:aF["feedback-loop-header-mobile-ink-3.webp"],width:960,height:650}],highlightImage:{id:"feedback-loop-header-mobile-highlight",src:aF["feedback-loop-header-mobile-highlight.webp"]}},feedbackLoopBody01:{inkImageSequence:[{id:"feedback-loop-body-mobile-01-ink-1",src:aF["feedback-loop-body-mobile-01-ink-1.webp"],width:960,height:1300},{id:"feedback-loop-body-mobile-01-ink-2",src:aF["feedback-loop-body-mobile-01-ink-2.webp"],width:960,height:1300},{id:"feedback-loop-body-mobile-01-ink-3",src:aF["feedback-loop-body-mobile-01-ink-3.webp"],width:960,height:1300}]},feedbackLoopBody02:{inkImageSequence:[{id:"feedback-loop-body-mobile-02-ink-1",src:aF["feedback-loop-body-mobile-02-ink-1.webp"],width:960,height:2120},{id:"feedback-loop-body-mobile-02-ink-2",src:aF["feedback-loop-body-mobile-02-ink-2.webp"],width:960,height:2120},{id:"feedback-loop-body-mobile-02-ink-3",src:aF["feedback-loop-body-mobile-02-ink-3.webp"],width:960,height:2120}]},feedbackLoopBody03:{inkImageSequence:[{id:"feedback-loop-body-mobile-03-ink-1",src:aF["feedback-loop-body-mobile-03-ink-1.webp"],width:960,height:1338},{id:"feedback-loop-body-mobile-03-ink-2",src:aF["feedback-loop-body-mobile-03-ink-2.webp"],width:960,height:1338},{id:"feedback-loop-body-mobile-03-ink-3",src:aF["feedback-loop-body-mobile-03-ink-3.webp"],width:960,height:1338}]},feedbackLoopFooter:{inkImageSequence:[{id:"feedback-loop-footer-mobile-ink-1",src:aF["feedback-loop-footer-mobile-ink-1.webp"],width:960,height:295},{id:"feedback-loop-footer-mobile-ink-2",src:aF["feedback-loop-footer-mobile-ink-2.webp"],width:960,height:295},{id:"feedback-loop-footer-mobile-ink-3",src:aF["feedback-loop-footer-mobile-ink-3.webp"],width:960,height:295}]},sourceCodeQuote:{inkImage:{id:"source-code-quote-mobile-ink",src:aF["source-code-quote-mobile-ink.webp"],width:956,height:1087},highlightImage:{id:"source-code-quote-mobile-highlight",src:aF["source-code-quote-mobile-highlight.webp"]},videoSources:[{src:aF["source-code-quote-video-h265-hevc-safari.mp4"],type:"video/mp4;codecs=hvc1"},{src:aF["source-code-quote-video-h265-vp9-chrome.webm"],type:"video/webm"}]}},aU={desktop:aP,tablet:aW,mobile:aG};var aV=aU,aZ=a(5879),aY=a.n(aZ),aq=a(3120),aK=a.n(aq);let az=()=>{if("undefined"==typeof document)return 0;let e=document.createElement("div");e.style.cssText="overflow:scroll; visibility:hidden; position:absolute;",document.body.appendChild(e);let t=e.offsetWidth-e.clientWidth;return e.remove(),t||0},aQ={desktop:{designWidth:1280,range:[1279,Number.POSITIVE_INFINITY]},tablet:{designWidth:768,range:[767,1279]},mobile:{designWidth:390,range:[0,767]}},aJ=0,aX=e=>{aJ=aJ||az();let t=aQ.mobile.range[1]-aJ,a=aQ.tablet.range[1]-aJ;return e<t?"mobile":e<a?"tablet":"desktop"},a$=e=>{let t=aX(e),{designWidth:a}=aQ[t],i=e/a,s=az();return{breakpoint_name:t,scale:i,scrollbar_width:s}},a0=(0,n.createContext)(),a1=()=>(0,n.useContext)(a0),a2=e=>{let{children:t,containerRef:a,article:i,assetMap:r}=e,[o,l]=(0,n.useState)(1),[c,d]=(0,n.useState)("16px"),[m,u]=(0,n.useState)("desktop");(0,n.useEffect)(()=>{let e=()=>{if(a.current){let e=a.current.offsetWidth,{breakpoint_name:t,scale:i,scrollbar_width:s}=a$(e);l(i),u(t),d("".concat(16*i,"px")),a.current.style.setProperty("--sc-scale",i),a.current.style.setProperty("--sc-scrollbar-width",s+"px")}};e(),window.addEventListener("resize",e);let t=setInterval(e,1e3);return()=>{window.removeEventListener("resize",e),clearInterval(t)}},[a]);let h={columnScale:o,fontSize:c,breakpointName:m,article:i,assetMap:r};return(0,s.jsx)(a0.Provider,{value:h,children:(0,s.jsx)("div",{className:"".concat(aK().SourceCodeContext," sc-").concat(m),style:{fontSize:c},children:t})})},a4=!0,a3=a4?n.useLayoutEffect:n.useEffect;function a5(e){let[t,a]=(0,n.useState)(void 0);return a3(()=>{if(!a4||!(null==e?void 0:e.current))return;let t=()=>{let t=e.current.offsetWidth;a(aX(t))},i=new ResizeObserver(t);return i.observe(e.current),t(),()=>i.disconnect()},[e]),t}var a8=a(9994),a6=a.n(a8),a7=function(e){let{sectionId:t,className:a="",children:i,guideImage:n,guideOpacity:r=.5,guideOffset:o=0}=e,l=0;return a||(l=n?n.height/n.width*100:0),(0,s.jsxs)("div",{"data-id":t,className:"".concat(a6().SectionBlock," ").concat(a),style:a?null:{paddingBottom:showGuide&&n?"".concat(l,"%"):"auto"},children:[(0,s.jsx)("a",{id:t,className:a6().Anchor}),i]})},a9=a(4935),ie=a.n(a9),it=function(e){let{children:t,className:a=""}=e;return(0,s.jsx)("div",{className:"".concat(ie().RowBlock," ").concat(a),children:t})};let ia={HEADER:"\n+=================================================================+\n|                                                                 |\n| :'######:::'#######::'##::::'##:'########:::'######::'########: |\n| '##... ##:'##.... ##: ##:::: ##: ##.... ##:'##... ##: ##.....:: |\n|  ##:::..:: ##:::: ##: ##:::: ##: ##:::: ##: ##:::..:: ##::::::: |\n| . ######:: ##:::: ##: ##:::: ##: ########:: ##::::::: ######::: |\n| :..... ##: ##:::: ##: ##:::: ##: ##.. ##::: ##::::::: ##...:::: |\n| '##::: ##: ##:::: ##: ##:::: ##: ##::. ##:: ##::: ##: ##::::::: |\n| . ######::. #######::. #######:: ##:::. ##:. ######:: ########: |\n| :......::::.......::::.......:::..:::::..:::......:::........:: |\n| :'######:::'#######::'########::'########::::::: '## ::::::..:: |\n| '##... ##:'##.... ##: ##.... ##: ##.....:::::::  ## :::::::..:: |\n|  ##:::..:: ##:::: ##: ##:::: ##: ##:::::::::::  ## ::'##:::..:: |\n|  ##::::::: ##:::: ##: ##:::: ##: ######::::::  ## ::::: ##:..:: |\n|  ##::::::: ##:::: ##: ##:::: ##: ##...::::::  ## ::::::: ##:::  |\n|  ##::: ##: ##:::: ##: ##:::: ##: ##::::::::  ## ::::::: ##:.::  |\n| . ######::. #######:: ########:: ########:  ##.:::::: ## :...:: |\n| :......::::.......:::........:::........::..::.......::........ |\n|                                                                 |\n+=================================================================+",HEADER_DETAIL_LEFT:"\n–>\n–>\n–>\n–>\n–>\n–>\n–>\n–>\n–>\n–>\n–>\n–>\n–>\n–>\n–>\n–>\n–>–>\n–>\n–>\n–>\n–>\n–>\n–>\n–>\n–>\n–>–>\n\n\n*\n\n\n\n\n\n\n\n\n\n\n*\n*",HEADER_DETAIL_RIGHT:"\n–>\n–>\n–>\n–>\n–>\n–>\n–>\n–>\n–>\n–>\n–>\n–>\n–>\n–>\n–>\n–>\n–>–>\n–>\n–>\n–>\n–>\n–>\n–>\n–>\n–>\n–>–>\n\n\n *\n\n\n\n\n\n\n\n\n\n\n *\n *",SECTION_CODE_TITLE:"\n+-+-+-+ +-+-+-+-+-+-+-+  \n|T|H|E| |C|O|O|L|E|S|T|  \n+-+-+-+-+-+-+-+-+-+-+-+  \n|C|O|D|E| |I|'|V|E|      \n+-+-+-+-+ +-+-+-+-+-+-+-+\n|E|V|E|R| |W|R|I|T|T|E|N|\n+-+-+-+-+ +-+-+-+-+-+-+-+",SECTION_BASICS_TITLE:"\n+-+-+-+            \n|T|H|E|            \n+-+-+-+-+-+-+ +-+-+\n|B|A|S|I|C|S| |O|F|\n+-+-+-+-+-+-+ +-+-+\n|B|A|S|I|C|        \n+-+-+-+-+-+",SECTION_GETTING_STARTED_TITLE:"\n+-+-+-+-+-+-+-+ \n|G|E|T|T|I|N|G|\n+-+-+-+-+-+-+-+-+\n  |S|T|A|R|T|E|D|    \n  +-+-+-+-+-+-+-+",SECTION_HOW_IT_WORKS_TITLE:"\n+-+-+-+-+-+-+-+-+-+-+-+\n|T|R|A|N|S|L|A|T|I|N|G|           \n+-+-+-+-+-+-+-+-+-+-+-+\n|B|A|S|I|C|\n+-+-+-+-+-+",SECTION_OBSTACLES_TITLE:"\n+-+-+-+-+-+-+-+-+-+-+           \n|O|V|E|R|C|O|M|I|N|G|       \n+-+-+-+-+-+-+-+-+-+-+-+ \n    |O|B|S|T|A|C|L|E|S|\n    +-+-+-+-+-+-+ +-+-+",SECTION_MICROSOFT_TITLE:"\n+-+-+-+            \n|T|H|E|            \n+-+-+-+-+-+-+-+ +-+-+-+-+\n  |B|I|R|T|H| |O|F|.|.|.|\n  +-+-+-+-+-+-+-+-+-+-+-+",SECTION_MICROSOFT_TITLE_2:"\n+-+-+-+-+-+-+-+-+-+\n|M|I|C|R|O|S|O|F|T|\n+-+-+-+-+-+-+-+-+-+",SECTION_DOWNLOAD_TITLE:"\n+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n|D|O|W|N|L|O|A|D| |T|H|E| |C|O|D|E|\n+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+",PARAGRAPH_INTRO:"–>     ",DIVIDER:"\n--------------------------------------------------------------------------------------------------------",SECTION_CODE_DETAIL_END:"\n-->",SECTION_BASICS_DETAIL_RIGHT:"\nTHE   \n **   \n      \n*     \n      \n      \n*     \n      \n  *   \n      \n      \n *    \nBASICS\n** ** \n      \n  *  *\n *    \n* *  *\n    * \n      \n      \n      \n      \n      \n   *",SECTION_BASICS_LINE:"\n--------------------------------->",SECTION_GETTING_STARTED_DETAIL_LEFT_1:"\n.\n.\n.\n.\n.\n. _start\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.",SECTION_GETTING_STARTED_DETAIL_LEFT_2:"\n// x = 0   \n   *     \\ \n     *    D\n       *   \\\n     *      F\n   *         \\\n   *\n    *\n     *\n         x = 1\n   *",SECTION_HOW_IT_WORKS_DETAIL_LEFT:"\n*\n*\n *\n \n\n*\n *\n  *\n *\n*",SECTION_HOW_IT_WORKS_DETAIL_RIGHT:"\n–>\n–>\n-1\n–>\n–>\n–2\n–>\n–>\n–3\n–>\n–>\n–4>>\n\n\n   *\n",SECTION_HOW_IT_WORKS_DETAIL_LEFT_2:"\n–>\n–>\n-1\n–>\n–>\n–2\n–>\n–>\n–3\n–>\n–>\n–4>>\n\n\n   *\n",SECTION_HOW_IT_WORKS_DETAIL_RIGHT_2:"\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.",SECTION_MICROSOFT_DETAIL_LEFT:"\n(ALTAIR BASIC: =\n*\n *\n \n\n\n         *\n         MICRO-\n         SOFT   \n *  \n*",SECTION_MICROSOFT_DETAIL_RIGHT:"\n**\n *)",SECTION_MICROSOFT_LOGO:"\n                          %%%%%%%%%%%%%%%%%%%%% \n%%   %                %%%%%%%%%%%%%%%%%%%%%%%%%%\n%% %%%  %%  %%% %%%%%%%%%%%%%%###%%#+=++*##%%%%%\n   #% %%%%%%%%%%%%%%%%%%%#*=----=%%#=------*%%%%\n--  --%%% @%%%#%%%%%%%%%#-------=%%#=------*%%%%\n   ---  -- =---*=--=%%%%#-------=%%#=------*%%%%\n -    ----=--------=%%%%+-------=%%#=------*%%%%\n-- --- -  ---------=%%%%#-------=%%#=------*%%%%\n   ---=------------=%%%%#---=+**#%%%%####*+#%%%%\n%%  %%-------------+%%%%#*#%%%%%%%%%%##%%%%%%%%%\n%% %%%  %% +%%#-+#%%%%%%%%%%##**#%%*:.....:*%%%%\n   #% %%%%%%%%%%%%%%%%%%#*++++++*%%*:......+%%%%\n++ +++%%% @%%%*%%%%#%%%%#+++++++*%%*:......+%%%%\n   +++ +++ ++++++++*%%%%#+++++++*%%*:......+%%%%\n+=    +++++++++++++*%%%%*+++++++*%%*:......+%%%%\n+  +++    ++ ==+++++%%%%#+++++++*%%#-:.....+%%%%\n   =+ +++++++++++++*%%%%#+*#%%%%%%%%%%%%%%%%%%%%\n%%  %%+++++++++++++#%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n%  %%% #%% #%%%+#%%%%%%%%%%%%%%%%%    %%%%%%%%%%\n   %  %%%%%%%%%%%%%%%%%%%%%                   %%\n       %% %%%%#%%%%%%%%                         ",SECTION_DOWNLOAD_DETAIL_LEFT:"\n/*\n.\n.\n.\n. \n. \n. \n.  \n|<== span\n.\n.\n.",SECTION_DOWNLOAD_DETAIL_RIGHT:"\n.dl\n*   [s-c]\n *\n   \n   *\n100%",SECTION_BASIC_TICKER:"\n_____/\\\\\\\\\\\\\\\\\\\\\\\\_______/\\\\\\\\\\_____________________________\n____/\\\\\\//////////______/\\\\\\///\\\\\\__________________________\n____/\\\\\\_______________/\\\\\\/__\\///\\\\\\_______________________\n____\\/\\\\\\____/\\\\\\\\\\\\\\__/\\\\\\______\\//\\\\\\______/\\\\\\\\\\\\\\\\\\\\\\___\n_____\\/\\\\\\___\\/////\\\\\\_\\/\\\\\\_______\\/\\\\\\_____\\///////////___\n______\\/\\\\\\_______\\/\\\\\\_\\//\\\\\\______/\\\\\\____________________\n_______\\/\\\\\\_______\\/\\\\\\__\\///\\\\\\__/\\\\\\_____________________\n________\\//\\\\\\\\\\\\\\\\\\\\\\\\/_____\\///\\\\\\\\\\/_____________________\n_________\\////////////_________\\/////_______________________",SECTION_OBSTACLES_SCENE_MOUNTAINS:"\n-------------------------------------  |@@@| -----------------------------------------------------------\n-------------------------------------  |@@@| -----------------------------------------------------------\n-------------------------------------  |     -----------------------------------------------------------\n---------------------------------------/\\---------------------------------------------------------------\n--------------------------------------/  \\--/\\----------------------------------------------------------\n-------------------------------------/    \\/  \\------------------------/\\-------------------------------\n------------------------------------/      \\   \\--/\\------------------/  \\--/\\--------------------------\n-----------------------------------/    /\\      \\/  \\----------------/    \\/  \\-------------------------\n---------------/\\-----------------/    /  \\      \\   \\--------------/      \\   \\/\\--/\\------------------\n--------------/  \\-/\\------------/         \\          \\---/\\-------/              \\/  \\-----------------\n---------- /\\/    \\  \\ ----/\\---/                      \\-/  \\-----/                    \\--/\\------------\n---------_/  \\     \\  \\---/  \\-/    /\\                  \\    \\/\\-/                /\\    \\/  \\--/\\-------\n--------/ /\\  \\     \\  \\-/    /    /  \\/\\    /\\               \\ \\                /  \\        \\/  \\------\n------ /             \\  \\    /         \\ \\/\\/  \\                          /\\         \\            \\-----\n------/          /\\   \\  \\  /                   \\                        /  \\                      \\----\n_--..---..-,--___...,-.,-___.._---_...;._..;---..-,--___...,-.,-___.._---_...;.--_...-.:-....-_..____;_-\n--------------------------------------------------------------------------------------------------------",SECTION_OBSTACLES_SCENE_CLOUDS:"\n---------------------------------------------------------------------_----------------------------------\n-----------------------------------------------------__-------------(‘ ):.------------------------------\n--------------------------------------------------.:(‘ )-----------(       )----------------------------\n---(    )------------_---------------------------(       ):.--------------------------__.. -------------\n--(`    ,  )---------(`).-------------------------(’..      )).----------------------(      ))----------\n-(  .:    .  )------(     )’.-------------------------------------------------------( (       )`.-------\n-----------------(   .:     ).-------------------------------------------------------(`..          ):.--\n--------------------------------------------------------------------------------------------------------\n--------------------------------------------------------------------------------------------------------\n--------------------------------------------------------------------------------------------------------\n--------------------------------------------------------------------------------------------------------\n--------------------------------------------------------------------------------------------------------\n--------------------------------------------------------------------------------------------------------\n--------------------------------------------------------------------------------------------------------\n--------------------------------------------------------------------------------------------------------\n--------------------------------------------------------------------------------------------------------\n--------------------------------------------------------------------------------------------------------\n                     \n                     \n                     \n                     ",SECTION_OBSTACLES_SCENE_FLAG:["\n   |@@|  \n   |@@@| \n   |     ","\n   |@@@| \n   |@@|  \n   |     ","\n   |@@@| \n   |@@@| \n   |     ","\n   |@@@| \n   |@@@| \n   |     "],SECTION_OBSTACLES_SCENE_FLAG_INSTRUCTION:["\n   |@@|  \n   |@@@| \n   |     ","\n   |@@@| \n   |@@|  \n   |     ","\n   |@@@| \n   |@@@| \n   |     ","\n   |@@@| \n   |@@@| \n   |     ","\n   |@@|  \n   |@@@| \n   |     ","\n   |@@@| \n   |@@|  \n   |     ","\n   |@@@| \n   | @@| \n   |     ","\n   | @@| \n   |A @| \n   |     ","\n   |  |  \n   |AS | \n   |     ","\n   | W | \n   |AS|  \n   |     ","\n   | W | \n   |ASD| \n   |     ","\n   | W | \n   |ASD| \n   |     ","\n   | W|  \n   | SD| \n   |     ","\n   | W | \n   |A |  \n   |     ","\n   |   | \n   |ASD| \n   |     ","\n   | W | \n   |AS | \n   |     ","\n   | W|  \n   |ASD| \n   |     ","\n   | W | \n   |ASD|  \n   |     ","\n   | W | \n   | SD| \n   |     ","\n   | W | \n   |  D| \n   |     ","\n   |  |  \n   |@ D| \n   |     ","\n   |@  | \n   |@@|  \n   |     ","\n   |@@ | \n   |@@@| \n   |     ","\n   |@@@| \n   |@@@| \n   |     "],SECTION_OBSTACLES_SCENE_BILL:["\n- O \n-/|\\\n-/ \\","\n-\\O/\n- | \n-/ \\"],SECTION_OBSTACLES_SCENE_JET:["\n+++\n(((\n ) ","\n+++\n)))\n ( "],SECTION_OBSTACLES_SCENE_BILL_PATH:[[3,18],[3,17],[2,16],[1,15],[1,14],[1,13],[2,12],[3,11],[4,10],[6,9],[7,8],[9,7],[10,7],[11,6],[13,5],[15,5],[16,6],[18,6],[20,7],[21,8],[22,9],[23,8],[25,7],[27,7],[28,8],[29,7],[30,6],[31,5],[32,4],[33,3],[34,2],[35,1]],SECTION_DOWNLOAD_FRAME:"\n+==================================================+\n|                                                  |\n|                                                  |                                                 \n|                                                  |\n|                                                  |\n|                                                  |\n|                                                  |\n|                                                  |\n|                                                  |\n|                                                  |\n|                                                  |\n|                                                  |\n|                                                  |\n|                                                  |\n|                                                  |\n|                                                  |\n|                                                  |\n|                                                  |\n+==================================================+",SECTION_DOWNLOAD_INFO_DETAIL:"\n**\n*\n\n *\n*",SECTION_DOWNLOAD_BUTTON_FRAME:"\n##########################################\n#                                        #\n#                                        #\n##########################################",SECTION_DOWNLOAD_BUTTON_FRAME_ROLLOVER:"\n##########################################\n#############                #############\n#############                #############\n##########################################"},ii={rootMargin:"0px",triggerOnce:!0},is=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e={...ii,...e};let{rootMargin:t,triggerOnce:a,onChange:i,viewOffsetDelay:s}=e,{inViewRef:r}=e,o=(0,n.useRef)(),[l,c]=(0,n.useState)(!1),d=(0,n.useRef)(!1),m=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e=new IntersectionObserver(e=>{e.forEach(e=>{if(a&&d.current)return;m.current&&clearTimeout(m.current);let t=e.isIntersecting;if(t){if(d.current=!0,e.isIntersecting){if(s){let n=e.boundingClientRect.top/window.innerHeight*s*1e3;m.current=setTimeout(()=>{c(!0)},n)}else c(!0)}}else c(t);"function"==typeof i&&i(t)})},{rootMargin:t});return e.observe(r?r.current:o.current),()=>{null==e||e.disconnect()}},[s]),(0,n.useEffect)(()=>()=>{m.current&&clearTimeout(m.current)},[]),{inViewRef:r||o,isInView:l}},ir=()=>{var e;let t=!0,a=t&&(null===(e=window.matchMedia("(pointer:fine)"))||void 0===e?void 0:e.matches);return{isUsingMouse:a}};function io(){let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=()=>{t(!0),window.removeEventListener("scroll",e,!0)};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}},[]),e}var il=a(8358),ic=a.n(il);let id={CHAR_CYCLE:"char-cycle",CURSOR_REACTIVE_CYCLE:"cursor-reactive-cycle",CHAR_CASCADE:"char-cascade",CHAR_CYCLE_CASCADE:"char-cycle-cascade",NONE:"none"},im={TYPE_REVEAL_LINE:"type-reveal-line",TYPE_REVEAL_ARTICLE_INFO:"type-reveal-artcile-info",TYPE_REVEAL_ARTICLE_TITLE:"type-reveal-artcile-title",TYPE_REVEAL_ARTICLE_INTRO_COPY:"type-reveal-artcile-intro-copy",TYPE_REVEAL_DETAILS:"type-reveal-details",TYPE_REVEAL:"type-reveal",TYPE_REVEAL_CONTENT:"type-reveal-content",REVEAL_HEADER:"reveal-header"},iu=["-","‐","‒","–","—","―","−"],ih="<>";function ig(e){let{text:t,alt:a,altTag:i="p",className:r="",contentClassName:o=ic().contentArt,paragraphBreakClassName:l="",wrapMaxCols:c=null,formatParagraphs:d=!1,animation:m=null,animationSettings:u=null,maxLines:h=null,ticker:g=!1,tickerSettings:p={},effects:_=[],sprites:v=null,firstIndentPrefix:f=null,enableReactivity:x=!0,reactiveAsciiScale:b,reactiveEffect:C=i_.CURSOR_REACTIVE_CYCLE,onMouseOver:S=null,onMouseOut:I=null,onPointerDown:T=null,onPointerUp:N=null,inViewAppearRootMargin:E="0px 0px -5% 0px",keepUpdating:w=!1,links:k=null,debug:y=!1}=e;if(void 0===t)throw Error("AsciiBlock: text prop is required.",Error().stack);let A=(0,n.useRef)(),j=io(),{isInView:L}=is({triggerOnce:!0,rootMargin:E,viewOffsetDelay:j?.2:1,inViewRef:A}),O=(0,n.useRef)(L);(0,n.useEffect)(()=>{O.current=L,L&&R(!0)},[L]);let[B,R]=(0,n.useState)(!1),{isInView:M}=is({triggerOnce:!1,rootMargin:"0px 0px 0px 0px",inViewRef:A}),D=(0,n.useRef)(M);(0,n.useEffect)(()=>{D.current=M,M&&e_.current!==eh.current&&(!u.renderEmptyAsSpaces||""!==eh.current)&&ep(eh.current)},[M]);let{columnScale:H}=a1(),F=(0,n.useRef)(H);(0,n.useEffect)(()=>{F.current=H},[H]);let P=(0,n.useRef)(h);(0,n.useEffect)(()=>{P.current=h},[h]);let W=(0,n.useRef)(_),G=(0,n.useRef)(_&&_.length),U=(0,n.useRef)(u),V=(0,n.useRef)(!1),Z=(0,n.useRef)(v),Y=(0,n.useRef)([]),q=(0,n.useRef)([]),K=(0,n.useRef)(null),z=(0,n.useRef)("");(0,n.useRef)("");let Q=(0,n.useRef)(null),J=(0,n.useRef)(null),X=(0,n.useRef)(0),$=(0,n.useRef)(0),ee=(0,n.useRef)(0),et=(0,n.useRef)(0),ea=(0,n.useRef)(0),ei=(0,n.useRef)([]),es=(0,n.useRef)([]),en=(0,n.useRef)([]),er=(0,n.useRef)({x:-999,y:-999}),eo=(0,n.useRef)({x:er.current.x,y:er.current.y}),el=(0,n.useRef)({x:0,y:0}),ec=(0,n.useRef)(0),ed=(0,n.useRef)(!1),em=(0,n.useRef)({x:-999,y:-999}),eu=(0,n.useRef)(-99999),eh=(0,n.useRef)(""),[eg,ep]=(0,n.useState)(""),e_=(0,n.useRef)("");(0,n.useEffect)(()=>{e_.current=eg},[eg]);let{isUsingMouse:ev}=ir(),ef="[[br]]",ex={animation:m,frameRate:24,charsPerFrame:0,renderEmptyAsSpaces:!0};switch(m){case im.TYPE_REVEAL_LINE:ex.linesPerFrame=1,ex.animationStyle=ic().animateIn;break;case im.TYPE_REVEAL_DETAILS:case im.TYPE_REVEAL_ARTICLE_INFO:ex.frameRate=12,ex.charsPerFrame={from:1,to:6},ex.animationStyle=ic().animateIn;break;case im.TYPE_REVEAL_ARTICLE_TITLE:ex.frameRate=24,ex.charsPerFrame={from:2,to:5},ex.animationStyle=ic().animateIn;break;case im.TYPE_REVEAL_ARTICLE_INTRO_COPY:ex.frameRate=24,ex.charsPerFrame={from:3,to:8},ex.animationStyle=ic().animateIn;break;case im.TYPE_REVEAL:ex.charsPerFrame={from:20,to:50},ex.animationStyle=ic().animateIn;break;case im.TYPE_REVEAL_CONTENT:ex.delay=.1,ex.charsPerFrame={from:40,to:60},ex.animationStyle=ic().animateIn_content;break;case im.REVEAL_HEADER:ex.delay=.3,ex.charsPerFrame={from:3,to:12},ex.animationStyle=ic().animateIn_content}u?m||(m=!0):u={},u={...ex,...u};let eb=(e,t,a)=>e+a*(t-e),eC=()=>{J.current&&(clearTimeout(J.current),J.current=null),Q.current&&(clearInterval(Q.current),Q.current=null)},eS=(e,t)=>{if("object"!=typeof e)return e;{let{from:a,to:i,biasPower:s}=e,n=Math.random();return(s&&(n=Math.pow(n,s)),n*=i-a,t)?n:a+n}},eI=(e,t)=>{if("object"!=typeof e)return e;{let{from:a,to:i}=e;return t?Math.floor(Math.random()*(i-a+1)):a+Math.floor(Math.random()*(i-a+1))}},eT=(e,t)=>{if("object"!=typeof e)return e;{let{from:a,to:i}=e,s=(9301*t+49297)%233280,n=a+s/233280*(i-a),r=Math.floor(n);return r}},eN=(e,t)=>{let a=!1;return e=e.map(e=>{let i=e.split(t);return i.length>1?(i=i.map((e,a)=>(a<i.length-1&&(e+=t),e)),a=!0,i):e}),a&&(e=e.flat()),e},eE=(e,t)=>{let a=e.split(ef),i=a.map(e=>{let a=e.split("\n"),i=a.map(e=>{let a=e.split(" ");a=a.map(e=>e+" ");let i="",s="";return iu.map(e=>{a=eN(a,e)}),a.forEach(e=>{(s+e).trim().length>t&&(i+=s.trim()+"\n",s=""),s+=e}),i+=s.trim()});return i.join("\n")});return i.join(ef)},ew=e=>(k&&(e=eP(e)),e.split(ef).map((t,a)=>(0,s.jsxs)(n.Fragment,{children:[k&&k.length?t.split(ih).map((e,t)=>{var i;return(0,s.jsx)(n.Fragment,{children:t%2==1?(0,s.jsx)("a",{className:ic().linkText,href:null===(i=k[(t-1)/2])||void 0===i?void 0:i.url,target:"_blank",rel:"noopener noreferrer","data-new-window":"true",children:e}):e},"segment-".concat(a,"-").concat(t))}):t,a<e.split("\n").length-1&&(0,s.jsx)("div",{className:"".concat(ic().paragraphBreak," ").concat(l)})]},"line-".concat(a)))),ek=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{numCols:a}=t,i=ea.current,s="",n=e.split("\n");if(n.length){let r=n[0].length;a||(a=r),n.forEach((e,t)=>{let n="";for(let o=0;o<a;o++){let l=(i+o)%r;l<e.length&&(n+=e[l])}s+=n+"\n"})}return s},ey=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ",i="";t=eF(t);let s=e.split("\n"),n=t.split("\n");return s.forEach((e,t)=>{let s="";for(let r=0;r<e.length;r++){let o=t<n.length&&r<n[t].length?n[t][r]:null,l=e[r];o&&o!==a?s+=o:s+=l}i+=s+"\n"}),i},eA=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=e;return Array.isArray(a)&&(a=a[t%a.length]),a||(a=""),a=eF(a)},ej=e=>{let t=Y.current[e];return t||(t={init:!1},Y.current[e]=t),t},eL=e=>{let t=q.current[e];return t||(t={init:!1},q.current[e]=t),t},eO=(e,t)=>void 0!==e?e:t,eB=(e,t,a)=>{let i=e.split("\n"),s=0,n=0;t.forEach((e,t)=>{let{text:i,visible:r=!0,interval:o,position:l,frame:c,path:d,pathSettings:m={}}=e;if(r){let u=ej(t);if(u.inited||(u.inited=!0,u.position={x:0,y:0},u.currentFrame=0,u.pathFrame=0),l&&(u.position={...l}),void 0===c||o||(u.currentFrame=c),d){u.pathFrame<d.length&&a>m.delay&&eO(m.playing,!0)&&m.interval&&et.current%m.interval==0&&(u.pathFrame=u.pathFrame+1),u.pathFrame>=d.length&&(eO(m.loop,!0)?u.pathFrame=0:!u.completed&&(u.completed=!0,m.onComplete&&m.onComplete()));let h=d[u.pathFrame];h&&(u.position={x:h[0],y:h[1]})}let g=eA(i,u.currentFrame),p=g.split("\n");0===t?(s=u.position.y,n=u.position.y+p.length):(s=Math.min(s,u.position.y),n=Math.max(n,u.position.y+p.length))}});let r="";return i.forEach((e,a)=>{if(a>=s&&a<n){let i=e.split("");t.forEach((e,t)=>{let{text:s,visible:n=!0,maskCharacter:r=null}=e;if(n){let o=ej(t),l=eA(s,o.currentFrame),c=l.split("\n"),d=a-o.position.y;if(d>=0&&d<c.length){let m=c[d];m.split("").forEach((e,t)=>{if(!r||e!==r){let a=o.position.x+t;a<i.length&&(i[a]=e)}})}}}),r+=i.join("")+"\n"}else r+=e+"\n"}),t.forEach((e,t)=>{let{text:a,interval:i,visible:s=!0,resetFrameCountOnLoop:n}=e;if(s){let r=ej(t);if(i&&et.current%i==0&&(r.currentFrame=r.currentFrame+1,Array.isArray(a))){let o=a;r.currentFrame=r.currentFrame%o.length,n&&r.currentFrame>=o.length&&(r.currentFrame=0)}}}),r},eR=(e,t,a)=>{let i=F.current,s=.09/i,n=.045/i;a&&(a.x&&(s*=a.x),a.y&&(n*=a.y));let r=Math.round(e.x*s),o=Math.round(e.y*n),l=t.split("\n"),c=-1,m=0,u=0,h=0;for(let g=0;g<l.length;g++){let p=l[g]+"\n";for(let _=0;_<p.length;_++){if(d&&p[_]===ef[0]){let v=p.slice(_,_+ef.length);v===ef&&(_+=ef.length,m+=ef.length)}if(u===o&&h===r){c=m;break}h++,m++}if(-1!==c)break;u++,h=0}return c};(0,n.useEffect)(()=>{U.current=u},[u]),(0,n.useEffect)(()=>{Z.current=v&&v.length?v.map(e=>({...e})):v},[v]);let eM=e=>{if(!K.current||!O.current)return{x:-999,y:-999};{let t=K.current.getBoundingClientRect(),a=e.clientX-t.left,i=e.clientY-t.top;return{x:a,y:i}}},eD=e=>{er.current=eM(e)},eH=e=>{if(x){ed.current=!0,em.current=eM(e);let t=new Date().getTime()/1e3;eu.current=t}T&&T()};(0,n.useEffect)(()=>{W.current=_.map(e=>({...e}));let e=null;if(x){let t=C.map(e=>({...e}));W.current=W.current.concat(t)}return G.current=W.current&&W.current.length,()=>{e&&e()}},[_,x,C,ev]);let eF=e=>(e.length&&"\n"===e[0]&&(e=e.slice(1)),e),eP=e=>{let t=0;return k.forEach(a=>{let i=e.slice(0,a.startIndex+t)+ih+e.slice(a.startIndex,a.endIndex)+ih+e.slice(a.endIndex+t);e=i,t+=2*ih.length}),e},eW=(e,t,a,i,s,n,r,o,l,c)=>{let{numChars:d,rippleDistMin:m,rippleDist:u,rippleDistPower:h,mobileDuration:g,mobileRippleDistStart:p,mobileRippleDistEnd:_,mobileRippleDistPower:v,mobileRippleDistNumCharsPower:f,minCursorSpeed:x,maxCursorSpeed:C,filterChars:S,outputChars:I,interval:T,duration:N,delay:E,origCharRatio:w}=r;for(let k=0;k<s;k++){let y=Math.random();y=e?Math.pow(y,v):Math.pow(y,h),y*=n;let A=Math.random()*Math.PI*2,j={};j.x=t.current.x+Math.cos(A)*y,j.y=t.current.y+Math.sin(A)*y;let L=eR(j,a,b);if(-1!==L){let O=i[L];if(O&&" "!==O&&(!S||S.includes(O))&&!" \n".includes(O)){let B=es.current.find(e=>e.index===L);if(!B){let R={effect:o,effectIndex:l,outputChars:I,index:L,interval:eS(T),duration:eS(N),delay:eS(E),origCharRatio:w,curChar:null,startTime:c};es.current.push(R)}}}}},eG=(e,t,a,i,s)=>{e.current.length&&(e.current.forEach(e=>{let{effect:n,index:r,duration:o,interval:l,delay:c,outputChars:d,origCharRatio:m,startTime:u,lastIntervalTime:h}=e;if(!s||n.type===s){let g=i-u,p=i-(h||u);if(!c||g>=c){if(!l||p>=(h?l:c)){if(Math.random()<m)e.curChar=t[r];else if(d){let _=Math.floor(Math.random()*d.length);e.curChar=d[_]}else e.curChar=null;e.lastIntervalTime=i}!e.expired&&o&&g>=c+o&&(e.expired=!0),e.curChar&&!e.expired&&r<a.length&&(a[r]=e.curChar)}}}),e.current=e.current.filter(e=>s&&e.effect.type!==s||!e.expired))},eU=(e,t)=>{let a=t.slice(e.length),i=a.split(ef);i.forEach((e,t)=>{i[t]=e.replace(/[^\n]/g," ")});let s=i.join(ef);return e+s};return(0,n.useEffect)(()=>{let e=eF(t);if(d&&(e=e.replace(/\n\n/g,ef)),f&&(e=f+e),c&&(e=eE(e,c)),z.current=e,m){if(!V.current&&u.renderEmptyAsSpaces){let a=eU("",e);ep(a)}}else eh.current=e,ep(e)},[t,d,f,c]),(0,n.useEffect)(()=>{if(B){let{frameRate:e,renderEmptyAsSpaces:t}=U.current;return Q.current=setInterval(()=>{V.current=!0;let e=new Date().getTime()/1e3;O.current&&!X.current&&(X.current=e);let a=e-X.current,i=z.current;if(P.current){let s=i.split("\n");i=s.slice(0,P.current).join("\n")}if((g||v)&&(et.current=et.current+1),g){let{interval:n,staticForegroundText:r,staticMaskCharacter:o}=p;n&&et.current%n!=0||(ea.current=ea.current+1),i=ek(i,p),r&&(i=ey(i,r,o))}Z.current&&(i=eB(i,Z.current,a));let l="";if(m){if(O.current){let{charsPerFrame:c,linesPerFrame:u,delayOffset:h}=U.current,{delay:_}=U.current;if(h&&(_+=h),$.current>=i.length)l=i;else if(!_||a>_){let f=i.split("\n");if(u)ee.current=ee.current+u,l=f.slice(0,ee.current).join("\n");else if(c){let x=eI(c);if(d){let b=i.slice($.current,$.current+x+ef.length+1);for(let C=0;C<b.length;C++)if(b[C]===ef[0]){let S=b.slice(C,C+ef.length);S===ef&&(x=Math.max(x,C+ef.length))}}let I=$.current+x;I=Math.min(I,i.length),$.current=I,l=i.slice(0,$.current)}else l=i}}}else l=i;O.current&&W.current.length&&W.current.forEach((t,a)=>{switch(t.type){case id.CHAR_CYCLE:if(O.current){let{charInterval:s=1,filterChars:n,outputChars:r=" ",interval:o=0,duration:c=0,delay:m=0,origCharRatio:u=.5}=t.settings||{},h=eL(a);h.inited||(h.inited=!0,h.currentCycleCharIndex=0);let g=i.split(""),p=l.split("");for(;h.currentCycleCharIndex<l.length;){let _=0===h.currentCycleCharIndex&&"object"==typeof s;if(_&&(h.currentCycleCharIndex+=eI(s,!0)),d){let v=Math.max(h.currentCycleCharIndex-ef.length,0);for(let f=v;f<v+2*ef.length+1;f++)if(i[f]===ef[0]){let x=i.slice(f,f+ef.length);x===ef&&(h.currentCycleCharIndex=Math.max(h.currentCycleCharIndex,f+ef.length))}}let b=g[h.currentCycleCharIndex];if((!n||n.includes(b))&&!" \n".includes(b)){let C=ei.current.find(e=>e.index===h.currentCycleCharIndex),S=!1;if(C){let I=C.effectIndex<a;I?ei.current=ei.current.filter(e=>e.index!==h.currentCycleCharIndex):S=!0}if(!S){let T={effect:t,effectIndex:a,outputChars:r,index:h.currentCycleCharIndex,interval:eS(o),duration:eS(c),delay:eS(m),origCharRatio:eS(u),curChar:null,startTime:e};ei.current.push(T)}}if(!_){let N=eI(s);h.currentCycleCharIndex+=N}}eG(ei,g,p,e,t.type),(l=p.join("")).length!==i.length||ei.current.length||en.current.length||(t.complete=!0)}break;case id.CURSOR_REACTIVE_CYCLE:if(O.current){el.current={x:er.current.x-eo.current.x,y:er.current.y-eo.current.y},ec.current=Math.sqrt(el.current.x*el.current.x+el.current.y*el.current.y),eo.current={x:er.current.x,y:er.current.y};let E={numChars:{from:15,to:30},rippleDistMin:50,rippleDist:150,rippleDistPower:3,mobileDuration:.75,mobileRippleDistStart:50,mobileRippleDistEnd:400,mobileRippleDistPower:.2,mobileRippleDistNumCharsPower:.2,minCursorSpeed:2,maxCursorSpeed:40,outputChars:" ",interval:0,duration:0,delay:0,origCharRatio:.5},w={...E,...t.settings},{numChars:k,rippleDistMin:y,rippleDist:A,rippleDistPower:j,mobileDuration:L,mobileRippleDistStart:B,mobileRippleDistEnd:R,mobileRippleDistPower:M,mobileRippleDistNumCharsPower:D,minCursorSpeed:H,maxCursorSpeed:F,filterChars:P,outputChars:W,interval:G,duration:U,delay:V,origCharRatio:Z}=w;t.inited||(t.inited=!0);let Y=i.split(""),q=l.split("");if(ev){let K=eI(k),z=0,Q=Math.min(1,Math.max(0,ec.current-H)/F);eW(!1,er,l,q,K*=Q,z=eb(y,A,Q),w,t,a,e)}if(ed.current){let J=eI(k),X=0,$=e-eu.current,ee=Math.min(1,$/L);J*=Math.pow(1-ee,D),ee>=1&&(ed.current=!1),eW(!0,em,l,q,J,X=eb(B,R,ee),w,t,a,e)}eG(es,Y,q,e,t.type),l=q.join("")}break;case id.CHAR_CASCADE:if(O.current){let{filterChars:et,outputChars:ea=" ",speed:eh=10,verticalCharDiagonalOffset:eg=1,charOffset:ep=0,inInitialState:e_=!1,firstIsInitialState:ex=!1,interval:eC=0,delay:eN=0}=t.settings||{},eE=eL(a);if(!eE.inited&&(eE.inited=!0,eE.curOutputChars=ea,eE.cascadeLastIntervalTime=0,eE.curOutputCharSetIndex=0,eC)){let ew=eS(eN);eE.changeTime=e+ew}let ek=l.split("\n"),ey=i.split("\n"),eA=e_;Array.isArray(ea)&&ex&&(eA=0===eE.curOutputCharSetIndex);let ej=!1;if(eE.curOutputChars!==ea)ej=!0;else if(eC&&e>=eE.changeTime){ej=!0;let eO=eS(eC);eE.changeTime=e+eO}if(ej){eE.curOutputChars=ea;let eB=ep.to?ep.to:ep,eR=eS(eh),eM=eS(eg),eD=ek.length,eH=ek.length?ek[0].length:0,eF=(eH+eD*eM+eB)/eR,eP=e+eF,eU=ea,eV=null;if(ea){Array.isArray(ea)&&(eE.curOutputCharSetIndex++,eE.curOutputCharSetIndex>=ea.length&&(eE.curOutputCharSetIndex=0),eU=ea[eE.curOutputCharSetIndex]);let eZ=Math.floor(Math.random()*eU.length);eV=eU[eZ]}let eY={outputChar:eV,startTime:e,endTime:eP,curCascadeSpeed:eR,curVerticalCharDiagonalOffset:eM};en.current.push(eY)}en.current.forEach(t=>{let{outputChar:a,startTime:i,endTime:s,curCascadeSpeed:n,curVerticalCharDiagonalOffset:r}=t,o=e-i,l=0;ek.forEach((e,t)=>{let i=e.split(""),s=ey[t].split("");i.forEach((e,c)=>{let d=s[c];if((!et||et.includes(d))&&!" \n".includes(d)){let m=n*o,u=eT(ep,l-100*o);c+t*r+u<m&&(a?i[c]=a:i[c]=d),l++}}),ek[t]=i.join("")}),!t.expired&&e>s&&(t.expired=!0)}),l=ek.join("\n");let eq=en.current.every(e=>e.expired);en.current.length&&eq&&eA&&(en.current=[])}break;case id.CHAR_CYCLE_CASCADE:if(O.current){let{filterChars:eK,outputChars:ez=" ",speed:eQ=10,verticalCharDiagonalOffset:eJ=1,interval:eX=0,delay:e$=0,charCycleProbability:e0=.25,charCycleInterval:e1={from:.08,to:.2},charCycleDuration:e2={from:.1,to:.8,biasPower:6},charCycleDelay:e4={from:0,to:.3},origCharRatio:e3={from:.2,to:.7}}=t.settings||{},e5=eL(a);if(!e5.inited&&(e5.inited=!0,e5.curOutputChars=ez,e5.cascadeLastIntervalTime=0,e5.curOutputCharSetIndex=0,eX)){let e8=eS(e$);e5.changeTime=e+e8}let e6=!1;if(e5.curOutputChars!==ez)ez&&(e6=!0);else if(eX&&e>=e5.changeTime){e6=!0;let e7=eS(eX);e5.changeTime=e+e7}if(e6){let e9=eS(eQ),te=eS(eJ),tt=ez;Array.isArray(ez)&&(e5.curOutputCharSetIndex++,e5.curOutputCharSetIndex>=ez.length&&(e5.curOutputCharSetIndex=0),tt=ez[e5.curOutputCharSetIndex]);let ta=i.split("\n"),ti=0;ta.forEach((i,s)=>{let n=ta[s].split("");n.forEach((i,r)=>{let o=n[r];if((!eK||eK.includes(o))&&!" \n".includes(o)&&Math.random()<e0){let l=ei.current.find(e=>e.index===ti);if(l){let c=l.effectIndex<a;c&&(ei.current=ei.current.filter(e=>e.index!==ti))}let d=r/e9+s/e9*te,m={effect:t,effectIndex:a,outputChars:tt,index:ti,interval:eS(e1),duration:eS(e2),delay:d+eS(e4),origCharRatio:eS(e3),curChar:null,startTime:e};ei.current.push(m)}ti++}),ti++})}e5.curOutputChars=ez;let ts=i.split(""),tn=l.split("");eG(ei,ts,tn,e,t.type),l=tn.join("")}}});let T=l.length;t&&(l=eU(l,i)),T===i.length&&!w&&!g&&(!G.current||W.current.every(e=>e.complete))&&eC(),eh.current!=l&&(eh.current=l,D.current&&ep(l))},1e3/e),()=>eC()}},[B]),(0,s.jsxs)("div",{ref:K,className:"".concat(ic().AsciiBlock," ").concat(r),onMouseOver:S||null,onMouseOut:I||null,onMouseMove:x&&ev?eD:null,onPointerDown:eH,onPointerUp:N||null,children:[void 0!==a&&(0,s.jsx)(i,{className:ic().altText,"aria-hidden":"false",children:a}),(0,s.jsx)("div",{className:"".concat(m&&u.animationStyle?u.animationStyle:""),"data-inview":L?"true":"false",ref:A,"aria-hidden":"true",children:(0,s.jsx)("div",{className:"".concat(ic().contentBase,"  ").concat(o),children:d?ew(eg):eg})})]})}ig.EFFECT_TYPES=id,ig.REVEAL_ANIMS=im;var ip=ig;let i_={ASCII_DETAIL_ASTERISKS:[{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,outputChars:" ",interval:{from:.1,to:.2},duration:{from:.1,to:1,biasPower:4},delay:{from:.05,to:.1}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,origCharRatio:.85,filterChars:"*",outputChars:" ",interval:{from:.2,to:.5}}}],BASIC_DETAIL:[{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,outputChars:" ",interval:{from:.1,to:.2},duration:{from:.1,to:1,biasPower:4},delay:{from:.05,to:.1}}}],HEADER:[{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:{from:5,to:10},interval:{from:.05,to:.1},duration:{from:.1,to:.5,biasPower:6},delay:{from:.05,to:.1}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:{from:1,to:5},filterChars:"#",outputChars:" #:%",interval:{from:.05,to:.1},duration:{from:.1,to:.9,biasPower:6},delay:{from:.05,to:.1}}}],HEADER_INFO:[{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:{from:5,to:10},interval:{from:.05,to:.1},duration:{from:.1,to:.5,biasPower:6},delay:{from:.05,to:.1}}}],HEADER_DETAILS:[{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:{from:1,to:5},filterChars:"–>",outputChars:" ->*",interval:{from:.1,to:.2},duration:{from:.1,to:1.1,biasPower:8},delay:{from:.05,to:.1}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:{from:1,to:3},filterChars:"–>*",outputChars:" ",origCharRatio:.95,interval:{from:.3,to:.6},delay:{from:1,to:2}}}],SECTION_HEADER:[{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:{from:1,to:3},outputChars:" +=-*",interval:{from:.05,to:.1},duration:{from:.1,to:.5,biasPower:6},delay:{from:.05,to:.1}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{filterChars:"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.",outputChars:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",interval:.05,duration:{from:.1,to:.5,biasPower:4},delay:{from:.1,to:.2}}}],IMAGE_NUMBER:[{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,filterChars:"0123456789",outputChars:" 0123456789",origCharRatio:0,interval:{from:.02,to:.04},duration:{from:.1,to:.4,biasPower:1.6},delay:0}}],BASIC_LINE:[{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:{from:2,to:6},outputChars:" ",interval:{from:.2,to:.4},duration:{from:.1,to:1,biasPower:2},delay:{from:.02,to:.05}}}],SECTION_BASICS_TICKER:[{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:{from:5,to:20},interval:{from:.05,to:.1},duration:{from:.1,to:.5,biasPower:6},delay:{from:.05,to:.1}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:{from:2,to:10},outputChars:" ",interval:{from:.05,to:.1},duration:{from:.1,to:.8,biasPower:8},delay:{from:.05,to:.1}}}],DIVIDER:[{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:{from:3,to:14},outputChars:" ",interval:{from:.2,to:.5},duration:{from:.1,to:.8,biasPower:3},delay:0}}],SECTION_BASICS_DETAIL:[{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,outputChars:" ",interval:{from:.1,to:.2},duration:{from:.1,to:1,biasPower:4},delay:{from:.05,to:.1}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,origCharRatio:.85,filterChars:"*",outputChars:" ",interval:{from:.2,to:.5}}}],TEXT_BLOCK:[{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:{from:1,to:3},filterChars:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",outputChars:"    abcdefghijklmnopqrstuvwxyz",origCharRatio:.8,interval:{from:.05,to:.2},duration:{from:.1,to:.4,biasPower:8},delay:{from:0,to:.1}}}],SECTION_GETTING_STARTED_DETAIL_LEFT:[{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,outputChars:" ",interval:{from:.1,to:.2},duration:{from:.1,to:1,biasPower:4},delay:{from:.05,to:.1}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,origCharRatio:.85,filterChars:"*",outputChars:" ",interval:{from:.2,to:.5}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,origCharRatio:.9,filterChars:".",outputChars:" ",interval:{from:.4,to:1}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,origCharRatio:.8,filterChars:"0DFx1",outputChars:" y1DFX137",interval:{from:.4,to:1}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,origCharRatio:.5,filterChars:"^",outputChars:".",interval:{from:.2,to:1}}}],SECTION_GETTING_STARTED_DETAIL_END:[{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,outputChars:" ",interval:{from:.1,to:.2},duration:{from:.1,to:1,biasPower:4},delay:{from:.05,to:.1}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:{from:1,to:3},filterChars:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",outputChars:"    abcdefghijklmnopqrstuvwxyz",origCharRatio:.8,interval:{from:.05,to:.2},duration:{from:.1,to:.4,biasPower:8},delay:{from:0,to:.1}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,origCharRatio:.85,filterChars:"<=",outputChars:" <>=",duration:{from:.5,to:1.5,biasPower:2},interval:{from:.2,to:.5}}}],SECTION_HOW_IT_WORKS_DETAIL_LEFT:[{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,outputChars:" ",interval:{from:.1,to:.2},duration:{from:.1,to:1,biasPower:4},delay:{from:.05,to:.1}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,origCharRatio:.85,filterChars:"*",outputChars:" ",interval:{from:.2,to:.5}}}],SECTION_HOW_IT_WORKS_DETAIL_RIGHT:[{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,outputChars:" ",interval:{from:.1,to:.2},duration:{from:.1,to:1,biasPower:4},delay:{from:.05,to:.1}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,origCharRatio:.85,filterChars:"*",outputChars:" ",interval:{from:.2,to:.5}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,origCharRatio:.9,filterChars:"->",outputChars:" -",interval:{from:.4,to:1}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,origCharRatio:.9,filterChars:"1234",outputChars:" ",interval:{from:.4,to:1.2}}}],SECTION_MICROSOFT_DETAIL_LEFT:[{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,outputChars:" ",interval:{from:.1,to:.2},duration:{from:.1,to:1,biasPower:4},delay:{from:.05,to:.1}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,origCharRatio:.85,filterChars:"*",outputChars:" ",interval:{from:.2,to:.5}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,origCharRatio:.5,filterChars:"^",outputChars:".",interval:{from:.2,to:1}}}],SECTION_DOWNLOAD_DETAIL_LEFT:[{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,outputChars:" ",interval:{from:.1,to:.2},duration:{from:.1,to:1,biasPower:4},delay:{from:.05,to:.1}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,origCharRatio:.85,filterChars:"*",outputChars:" ",interval:{from:.2,to:.5}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,origCharRatio:.8,filterChars:"<=",outputChars:" =<",interval:{from:.4,to:1}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,origCharRatio:.9,filterChars:".",outputChars:" ",interval:{from:.4,to:1}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,origCharRatio:.5,filterChars:"|",outputChars:".",interval:{from:.2,to:1}}}],SECTION_DOWNLOAD_DETAIL_RIGHT:[{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,outputChars:" ",interval:{from:.1,to:.2},duration:{from:.1,to:1,biasPower:4},delay:{from:.05,to:.1}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,origCharRatio:.85,filterChars:"*",outputChars:" ",interval:{from:.2,to:.5}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,origCharRatio:.8,filterChars:".",outputChars:" ",interval:{from:.4,to:1}}}],SECTION_DOWNLOAD_BUTTON:[{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,outputChars:" ",interval:{from:.1,to:.2},duration:{from:.1,to:1,biasPower:4},delay:{from:.05,to:.1}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,origCharRatio:.7,filterChars:"#",outputChars:"@# ",interval:{from:.2,to:.5},duration:{from:.1,to:1,biasPower:4}}}],SECTION_MICROSOFT_LOGO:[{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,outputChars:"   *#--+=..",interval:{from:.05,to:.2},duration:{from:.1,to:.8,biasPower:6},delay:{from:.05,to:.1}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:{from:1,to:3},origCharRatio:.75,filterChars:"*#+=",outputChars:"   *#--+=..",interval:{from:.2,to:.5}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:{from:1,to:3},origCharRatio:.88,filterChars:"#%-",outputChars:" ##%%",interval:{from:.5,to:2}}}],ASTERISK_FLICKER:[{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,outputChars:" ",interval:{from:.1,to:.2},duration:{from:.1,to:1,biasPower:4},delay:{from:.05,to:.1}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,origCharRatio:.85,filterChars:"*",outputChars:" ",interval:{from:.2,to:.5}}}],DOWNLOAD_FRAME:[{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,outputChars:" ",interval:{from:.1,to:.2},duration:{from:.1,to:1,biasPower:4},delay:{from:.05,to:.1}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:{from:2,to:8},origCharRatio:.95,filterChars:"|",outputChars:"+",interval:{from:.2,to:1}}},{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:{from:2,to:8},origCharRatio:.95,filterChars:"=",outputChars:"+",interval:{from:.2,to:1}}}],CURSOR_REACTIVE_CYCLE:[{type:ip.EFFECT_TYPES.CURSOR_REACTIVE_CYCLE,settings:{origCharRatio:.1,outputChars:"      ******@#$%&*\\/<>",interval:{from:.2,to:.4},duration:{from:.2,to:.8,biasPower:4}}}],SECTION_MICROSOFT_DATE:[{type:ip.EFFECT_TYPES.CHAR_CYCLE,settings:{charInterval:1,filterChars:"0123456789",outputChars:" 123456789",origCharRatio:0,interval:{from:.02,to:.04},duration:{from:.1,to:.4,biasPower:1.6},delay:0}}]},iv={ASCII_DETAIL:{delay:.7,charsPerFrame:{from:1,to:5}},ASCII_DETAIL_ASTERISKS:{delay:.7,charsPerFrame:{from:1,to:2}},IMAGE_NUMBER:{delay:.2,charsPerFrame:1},DIVIDER_DESKTOP:{delay:0,charsPerFrame:{from:3,to:12}},DIVIDER_TABLET:{delay:0,charsPerFrame:{from:2,to:5}},DIVIDER_MOBILE:{delay:0,charsPerFrame:{from:2,to:5}},CAPTION:{delay:0,charsPerFrame:{from:3,to:17}},SECTION_HEADER_DETAIL_LEFT:{delay:.4},SECTION_HEADER_DETAIL_RIGHT:{delay:.5},SECTION_HEADER_IMAGE:{delay:.35,startHidden:!0},SECTION_HEADER_AUTHOR_BY:{delay:.1},SECTION_HEADER_AUTHOR:{delay:.3},SECTION_HEADER_PUBLISHED:{delay:.5},SECTION_HEADER_EYEBROW:{delay:.7},SECTION_BASICS_DETAIL_RIGHT:{delay:.5,charsPerFrame:{from:2,to:14}},SECTION_BASICS_LINE:{delay:.3,charsPerFrame:{from:2,to:3}},SECTION_BASICS_TICKER:{delay:.3,charsPerFrame:{from:10,to:60}},SECTION_GETTING_STARTED_DETAIL_LEFT:{delay:.7,charsPerFrame:{from:2,to:14}},SECTION_GETTING_STARTED_DETAIL_END:{delay:.5,charsPerFrame:{from:1,to:2}},SECTION_HOW_IT_WORKS_DETAIL:{delay:.7,charsPerFrame:{from:1,to:5}},OBSTACLES_SCENE:{delay:.3,charsPerFrame:{from:10,to:60}},SECTION_HEADER_TITLE:{delay:.1},SECTION_HEADER_INTRO_COPY:{delay:.2},SECTION_MICROSOFT_TITLE:{delay:.5},SECTION_MICROSOFT_DETAIL:{delay:.7,charsPerFrame:{from:1,to:8}},SECTION_MICROSOFT_DATE:{delay:1,charsPerFrame:1},SECTION_MICROSOFT_DETAIL_END:{delay:.1},SECTION_MICROSOFT_LOGO:{delay:.3,charsPerFrame:{from:25,to:75}},DOWNLOAD_FRAME:{delay:0,charsPerFrame:{from:30,to:80}},DOWNLOAD_INFO:{delay:.3,charsPerFrame:{from:3,to:17}},DOWNLOAD_BUTTON:{delay:.6,charsPerFrame:{from:10,to:60}},DOWNLOAD_BUTTON_LABEL:{delay:.8,charsPerFrame:{from:2,to:4}}};var ix=a(3551),ib=a.n(ix),iC=function(e){let{className:t}=e;return(0,s.jsx)("div",{className:"".concat(ib().Divider," ").concat(t),children:(0,s.jsx)("div",{className:ib().dividerContainer,children:(0,s.jsx)(ip,{className:ib().dividerBlock,text:ia.DIVIDER,animation:!0,animationSettings:{...iv.DIVIDER_DESKTOP},effects:[...i_.DIVIDER],inViewAppearRootMargin:"0px 0px -10% 0px"})})})},iS=a(9554),iI=a.n(iS),iT=function(e){let{text:t,className:a="",paragraphIndent:i=!0,asciiSettings:r={},animationSettings:o=null,links:l=null,debug:c=!1}=e,d=(0,n.useRef)(null),{breakpointName:m}=a1(),u={text:t,alt:t,className:"".concat(iI().text," ").concat(a),contentClassName:ic().contentBody,paragraphBreakClassName:iI().paragraphBreak,formatParagraphs:!0,wrapMaxCols:50,firstIndentPrefix:i?ia.PARAGRAPH_INTRO:"",animation:ip.REVEAL_ANIMS.TYPE_REVEAL_CONTENT,effects:[...i_.TEXT_BLOCK],inViewAppearRootMargin:"0px 0px -5% 0px",reactiveAsciiScale:{x:1.2,y:"mobile"===m?.85:.75},debug:c};return o&&o.effects&&"hi"===o.effects.length&&console.log("text",t,"asciiSettings",r),r={...u,...r},(0,s.jsx)("div",{ref:d,className:"".concat(iI().TextBlock),children:(0,s.jsx)(ip,{...r,links:l})})},iN=a(3863),iE=a.n(iN),iw=function(e){let{image:t,className:a,alt:i=null,showReveal:r=!0}=e,[o,l]=(0,n.useState)(!1),{inViewRef:c,isInView:d}=is({triggerOnce:!0,rootMargin:"0px 0px -20% 0px"});return(0,n.useEffect)(()=>{d&&l(!0)},[d]),(0,s.jsx)("img",{ref:c,src:t,alt:i,"data-inview":o,className:"".concat(iE().image," ").concat(a," ").concat(r&&iE().animateIn)})},ik=a(2655),iy=a.n(ik),iA=function(e){let{id:t,index:a,image:i,className:r,alt:o="",animationSettings:l={},useAlpha:c=!1}=e,d=(0,n.useRef)(null),[m,u]=(0,n.useState)(!1),[h,g]=(0,n.useState)(!l.startHidden),p=io(),_=(0,n.useRef)(null),v={delay:0,startHidden:!1};l={...v,...l};let{isInView:f}=is({triggerOnce:!0,inViewRef:d,rootMargin:"0px 0px 0px 0px",viewOffsetDelay:p?.2:1}),x=()=>{_.current&&clearTimeout(_.current)};return(0,n.useEffect)(()=>(f&&(l.delay?(x(),_.current=setTimeout(()=>{g(!0),u(!0)},1e3*l.delay)):(g(!0),u(!0))),()=>{x()}),[f]),(0,s.jsx)("div",{className:"".concat(iy().DitherImageBlock," ").concat(r," ditherImageRect"),ref:d,"data-src":i,"data-id":t,"data-index":a,"data-reveal":m,"data-visible":h,"data-use-alpha":c,role:"image","aria-label":o})},ij=a(6433),iL=a.n(ij),iO=function(e){let{image:t,className:a="",alt:i="",id:n="",index:r=0,staticImage:o=!1,animationSettings:l,useAlpha:c=!0}=e;if(void 0===t)throw Error("image is not defined for ImageBlock at id: ".concat(n));return(0,s.jsxs)("div",{className:"".concat(iL().ImageBlock),children:[o&&(0,s.jsx)(iw,{image:t,alt:i,className:"".concat(a),showReveal:!0}),!o&&(0,s.jsx)(iA,{id:n,index:r,useAlpha:c,image:t,alt:i,className:"".concat(a),animationSettings:l})]})};let iB=e=>{let{shineFirstDelay:t=2.5,shineIntervalDuration:a={from:2,to:4},shineTriggerDebounceDuration:i=.6,shineSpeed:s=140,shineCharDiagonalOffset:r=2,shineFilterChars:o="#",shineChars:l="@",shinePasses:c=[{delay:0,duration:.05},{delay:.15,duration:.15},{delay:.15,duration:.075}],charCycleProbability:d=.25,charCycleInterval:m={from:.08,to:.2},charCycleDuration:u={from:.1,to:.8,biasPower:6},charCycleDelay:h={from:0,to:.3},origCharRatio:g={from:.2,to:.7}}=e,[p,_]=(0,n.useState)(!1),v=(0,n.useRef)(!1),f=(0,n.useRef)([]),x=(0,n.useRef)(null),b=(0,n.useRef)(null),C={type:ip.EFFECT_TYPES.CHAR_CYCLE_CASCADE,settings:{filterChars:o,outputChars:p?l:null,inInitialState:!p,speed:s,verticalCharDiagonalOffset:r,charCycleProbability:d,charCycleInterval:m,charCycleDuration:u,charCycleDelay:h,origCharRatio:g}},S=()=>{for(v.current=!1;f.current.length>0;){let e=f.current.pop();e&&clearTimeout(e)}x.current&&(clearTimeout(x.current),x.current=null),b.current&&(clearTimeout(b.current),b.current=null)},I=(e,t)=>{if("object"!=typeof e)return e;{let{from:a,to:i,biasPower:s}=e,n=Math.random();return(s&&(n=Math.pow(n,s)),n*=i-a,t)?n:a+n}},T=()=>{if(!v.current){S(),v.current=!0,x.current=setTimeout(()=>{v.current=!1},1e3*i);let e=0;c.forEach(t=>{let{delay:a,duration:i}=t;e+=a,f.current.push(setTimeout(()=>{_(!0)},1e3*e)),e+=i,f.current.push(setTimeout(()=>{_(!1)},1e3*e))}),b.current=setTimeout(()=>{T()},1e3*I(a))}};return(0,n.useEffect)(()=>(S(),b.current=setTimeout(()=>{T()},1e3*t),()=>S()),[]),{shineEffect:C,triggerShine:T}},iR={SECTION_CODE_TITLE:"\n+-+-+-+ +-+-+-+-+-+-+-+  \n|T|H|E| |C|O|O|L|E|S|T|  \n+-+-+-+-+-+-+-+-+-+-+-+  \n|C|O|D|E| |I|'|V|E|      \n+-+-+-+-+ +-+-+-+-+-+-+-+\n|E|V|E|R| |W|R|I|T|T|E|N|\n+-+-+-+-+ +-+-+-+-+-+-+-+",SECTION_BASICS_TITLE:"\n+-+-+-+            \n|T|H|E|            \n+-+-+-+-+-+-+ +-+-+\n|B|A|S|I|C|S| |O|F|\n+-+-+-+-+-+-+ +-+-+\n|B|A|S|I|C|        \n+-+-+-+-+-+",SECTION_GETTING_STARTED_TITLE:"\n+-+-+-+-+-+-+-+ \n|G|E|T|T|I|N|G|\n+-+-+-+-+-+-+-+-+\n  |S|T|A|R|T|E|D|    \n  +-+-+-+-+-+-+-+\n",SECTION_HOW_IT_WORKS_TITLE:"\n+-+-+-+-+-+-+-+-+-+-+-+\n|T|R|A|N|S|L|A|T|I|N|G|\n+-+-+-+-+-+-+-+-+-+-+-+\n|B|A|S|I|C|\n+-+-+-+-+-+",SECTION_OBSTACLES_TITLE:"\n+-+-+-+-+-+-+-+-+-+-+\n|O|V|E|R|C|O|M|I|N|G| \n+-+-+-+-+-+-+-+-+-+-+-+-+\n      |O|B|S|T|A|C|L|E|S|\n      +-+-+-+-+-+-+ +-+-+",SECTION_MICROSOFT_TITLE:"\n+-+-+-+            \n|T|H|E|            \n+-+-+-+-+-+-+-+ +-+-+-+-+\n  |B|I|R|T|H| |O|F|.|.|.|\n  +-+-+-+-+-+-+-+-+-+-+-+",SECTION_MICROSOFT_TITLE_2:"\n+-+-+-+-+-+-+-+-+-+\n|M|I|C|R|O|S|O|F|T|\n+-+-+-+-+-+-+-+-+-+",SECTION_DOWNLOAD_TITLE:"\n+-+-+-+-+-+-+-+-+-+-+-+-+\n|D|O|W|N|L|O|A|D| |T|H|E|\n+-+-+-+-+-+-+-+-+-+-+-+-+\n|C|O|D|E|\n+-+-+-+-+",HEADER_CONTENT:"\n                                                                                                                               \n\n:':::'######:::'#######::'##:::'##:'########::'#####::'#######:’ :'######:::'#######:: ########::'########.: ::::::'##:..::::::\n: :‘ ##... ##:'##.... ##: ##::: ##: ##... ##:'##.. ##: ##.....:  '##... ##:'##.... ##: ##.... ##: ##.....:: :.:::: ## :::..::::\n: ::.##:::..:: ##:::: ##: ##::: ##: ##::: ##: ##:::.:  ##:::::   .##:::..:: ##:::: ##: ##:::: ##: ##::::::: ::::: ## :'##::::::\n:::.   ######::##:::: ##: ##::: ##: ########: ##:::::: ######::  ;##::::::: ##:::: ##: ##:::: ##: ######:::..::: ## ::: ##:::::\n: ::...... ##: ##:::: ##: ##::: ##: ##.. ##:: ##:::::: ##...:::  .##::::::: ##:::: ##: ##:::: ##: ##...::::..:: ## :::::. ##:::\n: :'.##::: ##: ##:::: ##: ##::: ##: ##:: ##:: ##:: ##: ##::::::  .##::: ##: ##:::: ##: ##:::: ##: ##:::::::..: ##  :::.: ##::::\n:.:.  ######::. #######::. ######:: ##::. ##:. #####:: ########  .:######::. #######:: ########:: ########:.. ##:::::: :## ..::\n:.::......::::.......::::......:::..:::::..:::......:::.....::   :......::::.......:::........:::........::.........::..::....:\n\n                                                                                                                               ",HEADER_FRAME:"\n+========================================+\n\n\n\n\n\n\n\n\n\n\n+========================================+",HEADER_DETAIL_LEFT:"\n–>\n–>\n–>–>\n\n\n*\n\n\n\n\n\n\n\n\n\n\n\n*\n*\n*",HEADER_DETAIL_RIGHT:"\n–>\n–>\n–>\n–>\n–>–>\n\n\n   *\n\n\n\n\n\n\n\n   *\n   *",DIVIDER:"\n---------------------------------------------",SECTION_CODE_DETAIL_END:"\n-->",SECTION_BASICS_LINE:"\n----------------------------->",SECTION_BASICS_DETAIL_LEFT:"\n*       Altair 8800\n*",SECTION_BASICS_DETAIL_RIGHT:"\n THE \n * \n  * \n * \n   \nBASICS\n      \n   *\n    *\n  *",SECTION_BASIC_TICKER:"\n_______________________________________________________\n_______________________________________________________\n_____/\\\\\\\\\\\\\\\\\\\\\\\\_______/\\\\\\\\\\________________________\n____/\\\\\\//////////______/\\\\\\///\\\\\\_____________________\n___/\\\\\\________________/\\\\/\\_\\\\///\\\\___________________\n___\\/\\\\\\_______________/\\\\\\/__\\///\\\\\\__________________\n____\\/\\\\\\____/\\\\\\\\\\\\\\__/\\\\\\______\\//\\\\\\____/\\\\\\\\\\\\\\\\\\\\\\\n_____\\/\\\\\\___\\/////\\\\\\_\\/\\\\\\_______\\/\\\\\\___\\///////////\n______\\/\\\\\\_______\\/\\\\\\_\\//\\\\\\______/\\\\\\_______________\n_______\\/\\\\\\_______\\/\\\\\\__\\///\\\\\\__/\\\\\\________________\n________\\///________\\///\\__\\/\\///__\\///________________\n_________\\//\\\\\\\\\\\\\\\\\\\\\\\\/_____\\///\\\\\\\\/________________\n__________\\////////////_________\\/////_________________\n_______________________________________________________",SECTION_GETTING_STARTED_DETAIL_LEFT_1:"\n.\n.\n.\n.\n.\n^_start\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.",SECTION_GETTING_STARTED_DETAIL_LEFT_2:"\n// x = 0   \n   *     \\ \n     *    D\n       *   \\\n     *      F\n   *         \\\n   *",SECTION_HOW_IT_WORKS_DETAIL_LEFT:"\n*\n*\n *\n",SECTION_HOW_IT_WORKS_DETAIL_RIGHT:"\n–>\n–>\n-1\n–>\n–>\n–2\n–>\n–>\n–3\n–>\n–>\n–4>>\n\n\n   *\n",SECTION_HOW_IT_WORKS_DETAIL_LEFT_2:"\n–>\n–>\n-1\n–>\n–>\n–2\n–>\n–>",SECTION_MICROSOFT_LOGO:"\n                          %%%%%%%%%%%%%%%%%% \n %   %                %%%%%%%%%%%%%%%%%%%%%%\n % %%%  %%  %%%  %%%%%%%%%%%%###%#+=++*##%%%\n   #%  %%%%%%%%%%%%%%%%%#*=----=%#=------*%%\n -  --%%%  @%%%#%%%%%%%#-------=%#=------*%%\n   ---   -- =---*=--=%%#-------=%#=------*%%\n -     ----=--------=%%+-------=%#=------*%%\n - --- -   ---------=%%#-------=%%#=------*%\n   ---=-------------=%%#---=+**#%%%####*+#%%\n %  %%--------------+%%#*#%%%%%%%%%##%%%%%%%\n % %%%  %%  +%%#-+#%%%%%%%%##**#%*:.....:*%%\n   #%  %%%%%%%%%%%%%%%%#*++++++*%*:......+%%\n + +++%%%  @%%%*%%%%#%%#+++++++*%*:......+%%\n   +++ +++  ++++++++*%%#+++++++*%*:......+%%\n =     +++++++++++++*%%*+++++++*%*:......+%%\n   +++     ++ ==+++++%%#+++++++*%#-:.....+%%\n   =+  +++++++++++++*%%#+*#%%%%%%%%%%%%%%%%%\n %   %%+++++++++++++#%%%%%%%%%%%%%%%%%%%%%%%\n   %%%  #%% #%%%+#%%%%%%%%%%%%%%    %%%%%%%%\n   %  %%%%%%%%%%%%%%%%%%%%                  \n       %% %%%%#%%%%%%%                        \n",SECTION_MICROSOFT_DETAIL_LEFT:"\n(ALTAIR BASIC: =\n*\n *\n \n\n\n         *\n         MICRO-\n         SOFT   \n *  \n*",SECTION_MICROSOFT_DETAIL_END:"\n/*\n.\n.  \n|<== span\n.\n.\n.",SECTION_DOWNLOAD_FRAME:"\n+===========================================+\n|                                           |\n|                                           |\n|                                           |\n|                                           |\n|                                           |\n|                                           |\n|                                           |\n|                                           |\n|                                           |\n|                                           |\n|                                           |\n|                                           |\n|                                           |\n|                                           |\n|                                           |\n|                                           |\n|                                           |\n|                                           |\n|                                           |\n|                                           |\n|                                           |\n|                                           | \n+===========================================+",SECTION_DOWNLOAD_INFO_DETAIL:"\n.dl\n*   [s-c]\n *\n   \n   *\n100%",SECTION_DOWNLOAD_BUTTON_FRAME:"\n#################################\n#                               #\n#                               #\n#################################",SECTION_DOWNLOAD_BUTTON_FRAME_ROLLOVER:"\n#################################\n########                 ########\n########                 ########\n#################################",SECTION_OBSTACLES_SCENE_MOUNTAINS:"\n--------------------- |@@@| -----------------\n--------------------- |@@@| -----------------\n--------------------- |     -----------------\n----------------------/\\---------------------\n---------------------/  \\--/\\----------------\n--------------------/    \\/  \\---------------\n-------------------/      \\   \\-/\\-----------\n------------------/    /\\      \\/ \\----------\n-----------------/    /  \\/\\       \\-/\\------\n--/\\------------/    /   /  \\       \\  \\-----\n\\/  \\----------/    /        \\       \\  \\----\n     \\--------/               \\       \\------\n\\     \\--/\\--/                 \\       \\-----\n \\     \\/  \\/    /\\                     \\----\n  \\/\\           /  \\/\\    /\\             \\-/\\\n  /  \\              \\ \\/\\/  \\           /\\/  \n /    \\                      \\         /  \\  \n-,--___...,-.,-___.._---_...;._..;---..-,--_-\n---------------------------------------------",SECTION_OBSTACLES_SCENE_CLOUDS:"\n---------------------------------------------------------------------\n-----------------------------------------------------------(‘ ):.----\n-----------------------------------------.:(‘ )-----------(       )--\n------------_---------------------------(       ):.------------------\n------------(`).-------------------------(’..      )).---------------\n-----------(     )’.-------------------------------------------------\n--------(   .:     ).------------------------------------------------\n---------------------------------------------------------------------\n---------------------------------------------------------------------\n---------------------------------------------------------------------\n---------------------------------------------------------------------\n---------------------------------------------------------------------\n---------------------------------------------------------------------\n---------------------------------------------------------------------\n---------------------------------------------------------------------\n---------------------------------------------------------------------\n---------------------------------------------------------------------\n---------------------------------------------------------------------\n---------------------------------------------------------------------\n                     \n                     \n                     \n                     \n                     ",SECTION_OBSTACLES_SCENE_FLAG:["\n   |@@|  \n   |@@@| \n   |     ","\n   |@@@| \n   |@@|  \n   |     ","\n   |@@@| \n   |@@@| \n   |     "],SECTION_OBSTACLES_SCENE_BILL:["\n- O \n-/|\\\n-/ \\","\n-\\O/\n- | \n-/ \\"],SECTION_OBSTACLES_SCENE_JET:["\n+++\n(((\n ) ","\n+++\n)))\n ( "],SECTION_OBSTACLES_SCENE_BILL_PATH:[[7,20],[6,20],[5,20],[5,19],[5,18],[4,17],[4,16],[4,15],[3,14],[3,13],[3,12],[4,11],[5,10],[6,9],[9,9],[10,9],[11,8],[12,7],[13,6],[14,5],[15,4],[16,3],[17,2],[18,1]]},iM={HEADER:"\n+===================================================================+\n|                                                                   |\n|  :'######:::'#######::'##::::'##:'########:::'######::'########:  |\n|  '##... ##:'##.... ##: ##:::: ##: ##.... ##:'##... ##: ##.....::  |\n|   ##:::..:: ##:::: ##: ##:::: ##: ##:::: ##: ##:::..:: ##:::::::  |\n|  . ######:: ##:::: ##: ##:::: ##: ########:: ##::::::: ######:::  |\n|  :..... ##: ##:::: ##: ##:::: ##: ##.. ##::: ##::::::: ##...::::  |\n|  '##::: ##: ##:::: ##: ##:::: ##: ##::. ##:: ##::: ##: ##:::::::  |\n|  . ######::. #######::. #######:: ##:::. ##:. ######:: ########:  |\n|  :......::::.......::::.......:::..:::::..:::......:::........::  |\n|  :'######:::'#######::'########::'########:::::::: '##::::::..::  |\n|  '##... ##:'##.... ##: ##.... ##: ##.....::::::::: ##:::::::..::  |\n|   ##:::..:: ##:::: ##: ##:::: ##: ##::::::::::::  ##  '##:::..::  |\n|   ##::::::: ##:::: ##: ##:::: ##: ######:::::::  ## :::: ##:..::  |\n|   ##::::::: ##:::: ##: ##:::: ##: ##...:::::::  ## ::::::: ##:::  |\n|   ##::: ##: ##:::: ##: ##:::: ##: ##:::::::::: ##::::::  ##:..::  |\n|  . ######::. #######:: ########:: ########::: ##.::::::## :...::  |\n|  :......::::.......:::........:::........::::::.:::::: :: :...::  |\n|                                                                   |\n+===================================================================+",HEADER_DETAIL_LEFT:"\n–>\n–>\n–>\n–>–>\n\n*\n\n\n\n\n\n\n  \n\n\n*\n*",HEADER_DETAIL_RIGHT:"\n–>\n–>\n–>\n–>\n–>\n–>–>\n–>\n–>\n–>\n–>–>\n\n\n *\n\n *\n *",SECTION_CODE_TITLE:"\n+-+-+-+ +-+-+-+-+-+-+-+  \n|T|H|E| |C|O|O|L|E|S|T|  \n+-+-+-+-+-+-+-+-+-+-+-+  \n|C|O|D|E| |I|'|V|E|      \n+-+-+-+-+ +-+-+-+-+-+-+-+\n|E|V|E|R| |W|R|I|T|T|E|N|\n+-+-+-+-+ +-+-+-+-+-+-+-+",SECTION_BASICS_TITLE:"\n+-+-+-+            \n|T|H|E|            \n+-+-+-+-+-+-+ +-+-+\n|B|A|S|I|C|S| |O|F|\n+-+-+-+-+-+-+ +-+-+\n|B|A|S|I|C|        \n+-+-+-+-+-+",SECTION_GETTING_STARTED_TITLE:"\n+-+-+-+-+-+-+-+ \n|G|E|T|T|I|N|G|\n+-+-+-+-+-+-+-+-+\n  |S|T|A|R|T|E|D|    \n  +-+-+-+-+-+-+-+",SECTION_HOW_IT_WORKS_TITLE:"\n+-+-+-+-+-+-+-+-+-+-+-+\n|T|R|A|N|S|L|A|T|I|N|G|\n+-+-+-+-+-+-+-+-+-+-+-+\n|B|A|S|I|C|\n+-+-+-+-+-+",SECTION_OBSTACLES_TITLE:"\n+-+-+-+-+-+-+-+-+-+-+ \n|O|V|E|R|C|O|M|I|N|G|\n+-+-+-+-+-+-+-+-+-+-+-+-+\n      |O|B|S|T|A|C|L|E|S|\n      +-+-+-+-+-+-+ +-+-+",SECTION_MICROSOFT_TITLE:"\n+-+-+-+            \n|T|H|E|            \n+-+-+-+-+-+-+-+ +-+-+-+-+\n  |B|I|R|T|H| |O|F|.|.|.|\n  +-+-+-+-+-+-+-+-+-+-+-+",SECTION_MICROSOFT_TITLE_2:"\n+-+-+-+-+-+-+-+-+-+\n|M|I|C|R|O|S|O|F|T|\n+-+-+-+-+-+-+-+-+-+",SECTION_DOWNLOAD_TITLE:"\n+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n|D|O|W|N|L|O|A|D| |T|H|E| |C|O|D|E|\n+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+",PARAGRAPH_INTRO:"–>     ",DIVIDER:"---------------------------------------------------------------------",SECTION_CODE_DETAIL_END:"\n-->",SECTION_BASICS_DETAIL_RIGHT:"\n THE   \n *  \n  *   \n * \n   \nBASICS\n        \n   *\n    *\n  *",SECTION_BASICS_LINE:"-------------------------------->",SECTION_GETTING_STARTED_DETAIL_LEFT:"\n.\n.\n.\n^_start\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.",SECTION_GETTING_STARTED_DETAIL_LEFT_2:"\n// x = 0   \n   *     \\ \n     *    D\n       *   \\\n     *      F\n   *         \\\n   *\n     *\n   *",SECTION_HOW_IT_WORKS_ASTERISK:"\n*\n*",SECTION_HOW_IT_WORKS_DETAIL_RIGHT:"\n–>\n-1\n–>\n–2\n–>\n–3\n–>\n–4>>\n\n\n   *\n\n\n\n\n\n\n\n\n   *\n   *",SECTION_HOW_IT_WORKS_DETAIL_LEFT_01:"\n*\n*\n *\n \n\n*\n *\n  *\n *\n*",SECTION_HOW_IT_WORKS_DETAIL_LEFT_02:"\n–>\n–>\n-1\n–>\n–>\n–2\n–>\n–>\n–3\n–>\n–>\n–4>>\n\n\n   *",SECTION_MICROSOFT_DETAIL_LEFT:"\n**\n  *)",SECTION_MICROSOFT_LOGO:"\n                          %%%%%%%%%%%%%%%%%%%%% \n%%   %                %%%%%%%%%%%%%%%%%%%%%%%%%%\n%% %%%  %%  %%% %%%%%%%%%%%%%%###%%#+=++*##%%%%%\n   #% %%%%%%%%%%%%%%%%%%%#*=----=%%#=------*%%%%\n--  --%%% @%%%#%%%%%%%%%#-------=%%#=------*%%%%\n   ---  -- =---*=--=%%%%#-------=%%#=------*%%%%\n -    ----=--------=%%%%+-------=%%#=------*%%%%\n-- --- -  ---------=%%%%#-------=%%#=------*%%%%\n   ---=------------=%%%%#---=+**#%%%%####*+#%%%%\n%%  %%-------------+%%%%#*#%%%%%%%%%%##%%%%%%%%%\n%% %%%  %% +%%#-+#%%%%%%%%%%##**#%%*:.....:*%%%%\n   #% %%%%%%%%%%%%%%%%%%#*++++++*%%*:......+%%%%\n++ +++%%% @%%%*%%%%#%%%%#+++++++*%%*:......+%%%%\n   +++ +++ ++++++++*%%%%#+++++++*%%*:......+%%%%\n+=    +++++++++++++*%%%%*+++++++*%%*:......+%%%%\n+  +++    ++ ==+++++%%%%#+++++++*%%#-:.....+%%%%\n   =+ +++++++++++++*%%%%#+*#%%%%%%%%%%%%%%%%%%%%\n%%  %%+++++++++++++#%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n%  %%% #%% #%%%+#%%%%%%%%%%%%%%%%%    %%%%%%%%%%\n   %  %%%%%%%%%%%%%%%%%%%%%                   %%\n       %% %%%%#%%%%%%%%                         ",SECTION_MICROSOFT_DETAIL_RIGHT:"\n(ALTAIR BASIC: =\n*\n *\n \n\n\n         *\n         MICRO-\n         SOFT   \n *  \n*",SECTION_MICROSOFT_DETAIL_END:"\n/*\n.\n.  \n|<== span\n.\n.\n.",SECTION_DOWNLOAD_DETAIL_RIGHT:"\n.dl\n*   [s-c]\n *\n   \n   *\n100%",SECTION_DOWNLOAD_FRAME:"\n+=================================================+\n|                                                 |\n|                                                 |\n|                                                 |\n|                                                 |\n|                                                 |\n|                                                 |\n|                                                 |\n|                                                 |\n|                                                 |\n|                                                 | \n|                                                 |\n|                                                 | \n|                                                 | \n|                                                 |    \n|                                                 | \n|                                                 |\n+=================================================+",SECTION_DOWNLOAD_BUTTON_FRAME:"\n#################################################\n#                                               #\n#                                               #\n#################################################",SECTION_DOWNLOAD_BUTTON_FRAME_ROLLOVER:"\n#################################################\n############                         ############\n############                         ############\n#################################################",SECTION_BASIC_TICKER:"\n_____/\\\\\\\\\\\\\\\\\\\\\\\\_______/\\\\\\\\\\_____________________________\n____/\\\\\\//////////______/\\\\\\///\\\\\\__________________________\n____/\\\\\\_______________/\\\\\\/__\\///\\\\\\_______________________\n____\\/\\\\\\____/\\\\\\\\\\\\\\__/\\\\\\______\\//\\\\\\______/\\\\\\\\\\\\\\\\\\\\\\___\n_____\\/\\\\\\___\\/////\\\\\\_\\/\\\\\\_______\\/\\\\\\_____\\///////////___\n______\\/\\\\\\_______\\/\\\\\\_\\//\\\\\\______/\\\\\\____________________\n_______\\/\\\\\\_______\\/\\\\\\__\\///\\\\\\__/\\\\\\_____________________\n________\\//\\\\\\\\\\\\\\\\\\\\\\\\/_____\\///\\\\\\\\\\/_____________________\n_________\\////////////_________\\/////_______________________",SECTION_OBSTACLES_SCENE_MOUNTAINS:"\n----------------------------  |@@@| ---------------------------------\n----------------------------  |@@@| ---------------------------------\n----------------------------  |     ---------------------------------\n------------------------------/\\-------------------------------------\n-----------------------------/  \\--/\\--------------------------------\n----------------------------/    \\/  \\------------------------/\\-----\n---------------------------/      \\   \\--/\\------------------/  \\--/\\\n--------------------------/    /\\      \\/  \\----------------/    \\/  \n------/\\-----------------/    /  \\      \\   \\--------------/      \\  \n-----/  \\-/\\------------/         \\          \\---/\\-------/          \n- /\\/    \\  \\ ----/\\---/                      \\-/  \\-----/           \n_/  \\     \\  \\---/  \\-/    /\\                  \\    \\/\\-/            \n /\\  \\     \\  \\-/    /    /  \\/\\    /\\               \\ \\             \n            \\  \\    /         \\ \\/\\/  \\                          /\\  \n        /\\   \\  \\  /                   \\                        /  \\ \n.-,--___...,-.,-___.._---_...;._..;---..-,--___...,-.,-___.._---_...;\n---------------------------------------------------------------------",SECTION_OBSTACLES_SCENE_CLOUDS:"\n---------------------------------------------------------------------\n-----------------------------------------------------------(‘ ):.----\n-----------------------------------------.:(‘ )-----------(       )--\n------------_---------------------------(       ):.------------------\n------------(`).-------------------------(’..      )).---------------\n-----------(     )’.-------------------------------------------------\n--------(   .:     ).------------------------------------------------\n---------------------------------------------------------------------\n---------------------------------------------------------------------\n---------------------------------------------------------------------\n---------------------------------------------------------------------\n---------------------------------------------------------------------\n---------------------------------------------------------------------\n---------------------------------------------------------------------\n---------------------------------------------------------------------\n---------------------------------------------------------------------\n---------------------------------------------------------------------\n                     \n                     \n                     \n                     \n                     ",SECTION_OBSTACLES_SCENE_FLAG:["\n   |@@|  \n   |@@@| \n   |     ","\n   |@@@| \n   |@@|  \n   |     ","\n   |@@@| \n   |@@@| \n   |     "],SECTION_OBSTACLES_SCENE_BILL:["\n- O \n-/|\\\n-/ \\","\n-\\O/\n- | \n-/ \\"],SECTION_OBSTACLES_SCENE_JET:["\n+++\n(((\n ) ","\n+++\n)))\n ( "],SECTION_OBSTACLES_SCENE_BILL_PATH:[[8,19],[7,18],[6,17],[5,16],[4,15],[3,14],[2,13],[1,12],[0,11],[0,10],[0,9],[0,8],[1,7],[2,6],[3,5],[6,5],[7,6],[10,6],[11,7],[12,8],[13,9],[14,8],[15,7],[18,7],[19,8],[20,7],[21,6],[22,5],[23,4],[24,3],[25,2],[26,1]]},iD={SECTION_HEADER_IMAGE_ALT:"Source Code",SECTION_HEADER_TITLE:"Source Code",HEADER_AUTHOR_BY:"By ",HEADER_EYEBROW:"BASIC INSTINCT",HEADER_TITLE:"\nCelebrate 50 years of Microsoft with the company’s original source code",HEADER_BODY:"\nBefore there was Office or Windows 95 or Xbox or AI, there was Altair BASIC.",SECTION_CODE_TITLE:"The Coolest Code I’ve Ever Written",SECTION_CODE_CONTENT_PART1:"\nIn 1975, Paul Allen and I created Microsoft because we believed in our vision of a computer on every desk and in every home.",SECTION_CODE_CONTENT_PART2:"\nFive decades later, Microsoft continues to innovate new ways to make life easier and work more productive. Making it 50 years is a huge accomplishment, and we couldn’t have done it without incredible leaders like Steve Ballmer and Satya Nadella—along with the many people who have worked at Microsoft over the years.",SECTION_CODE_CONTENT_PART3:"\nAlthough I am excited to celebrate the anniversary, reaching this milestone feels bittersweet. I always love reflecting back on Microsoft’s history and dreaming about its future. But it’s also hard to believe that such a significant piece of my life has been around for a half-century!",SECTION_CODE_CONTENT_PART4:"\nIt feels like just yesterday that Paul and I were hunched over the PDP-10 in Harvard’s computer lab, writing the code that would become the first product of our new company.",SECTION_CODE_CONTENT_PART5:"\nThat code remains the coolest code I’ve ever written to this day—and you can see it for yourself at the bottom of this page.",SECTION_CODE_CONTENT_PART6:"\nThe story of how Microsoft came to be begins with, of all things, a magazine. The January 1975 issue of Popular Electronics featured an Altair 8800 on the cover. The Altair 8800, created by a small electronics company called MITS, was a groundbreaking personal computer kit that promised to bring computing power to hobbyists. When Paul and I saw that cover, we knew two things: the PC revolution was imminent, and we wanted to get in on the ground floor.",SECTION_CODE_CONTENT_PART7:"\nAt the time, personal computers were practically non-existent. Paul and I knew that creating software that let people program the Altair could revolutionize the way people interacted with these machines. So, we reached out to Ed Roberts, the founder of MITS, and told him we had a version of the programming language BASIC for the chip that the Altair 8800 ran on.",SECTION_CODE_CONTENT_PART8:"\nThere was just one problem: We didn’t. It was time to get to work.",SECTION_CODE_IMAGE_ALT:"A Popular Electronics magazine cover advertising the Altair 8800.",SECTION_CODE_NUMBER:"0001",SECTION_CODE_CAPTION:"This\xa0magazine cover changed my life.",SECTION_CODE_IMAGE_2_ALT:"A young Bill Gates and Paul Allen work together.",SECTION_CODE_NUMBER_2:"0002",SECTION_CODE_CAPTION_2:"Paul and I fell in love with computers while we were students at Lakeside.",SECTION_CODE_CAPTION_ASTERISK:"\n*\n*",SECTION_BASICS_TITLE:"The Basics of BASIC",SECTION_BASICS_CONTENT:"\nInvented by two Dartmouth College professors in 1964, BASIC was designed to be easy to learn for people with no computer experience. With little study or technical aptitude, a person can write their own software in BASIC—anything from a checkbook-balancing program to a tic-tac-toe game. BASIC was the first language Paul and I learned (and it’s still used today).\xa0\n\nComputer languages like BASIC serve the same purpose as English or any other language. In the same way that you can use English to order a coffee at a caf\xe9, you can use BASIC to tell a computer to run a program, solve a math problem, or perform some other task.",SECTION_BASICS_IMAGE_ALT:"Bitmap illustration of an Altair 8800.",SECTION_BASICS_NUMBER:"0003",SECTION_BASICS_CAPTION:"Altair 8800",SECTION_BASICS_CAPTION_ASTERISK:"\n*\n*",SECTION_HOW_IT_WORKS_TITLE:"Translating Basic",SECTION_HOW_IT_WORKS_CONTENT:"\nThere is a catch, though: Computers don’t speak BASIC. And the language they do speak is so complex and unintuitive that programming in it is incredibly difficult. To bridge the gap, Paul and I set out to create a BASIC interpreter, which would translate code into instructions the computer understood line by line as the program runs.\xa0\n\nWe considered creating a similar tool called a compiler that translates the entire program and then runs it all at once. But we figured the line-by-line approach of an interpreter would be helpful to novice programmers since it would give instant feedback on their code, allowing them to fix any mistakes as they crop up.\xa0",SECTION_HOW_IT_WORKS_ASTERISKS:"\n*\n*",SECTION_GETTING_STARTED_TITLE:"Getting Started",SECTION_GETTING_STARTED_CONTENT:"\nPaul and I decided to divide and conquer. We didn’t have the Intel 8080 chip that the Altair computer ran on, so Paul got to work writing a program that would simulate one on Harvard’s PDP-10 mainframe. This allowed us to test our software without needing an actual Altair. Meanwhile, I focused on writing the main code for the program while another friend, Monte Davidoff, worked on a portion called the math package. We coded day and night for the two months to create the software we had said already existed.",SECTION_GETTING_STARTED_IMAGE_ALT:"Detail of Harvard's mainframe PDP-10.",SECTION_GETTING_STARTED_NUMBER:"0007",SECTION_GETTING_STARTED_CAPTION:"The mainframe of Harvard's PDP-10",SECTION_GETTING_STARTED_CAPTION_ASTERISK:"\n*\n*",SECTION_GETTING_STARTED_END:"<= end =>",SECTION_HOW_IT_WORKS_NUMBER_1:"0004",SECTION_HOW_IT_WORKS_CAPTION_1:"There is no better feeling than when you learn that your approach works.",SECTION_HOW_IT_WORKS_IMAGE_ALT_1:"The team review code printouts from a Teletype Model 33 Terminal.",SECTION_HOW_IT_WORKS_NUMBER_2:"0005",SECTION_HOW_IT_WORKS_CAPTION_2:"I was always a very good math student and found that the logic and problem-solving needed in math helped me learn computer programming.",SECTION_HOW_IT_WORKS_IMAGE_ALT_2:"A young Bill Gates works at a blackboard on a math problem.",SECTION_HOW_IT_WORKS_NUMBER_3:"0006",SECTION_HOW_IT_WORKS_CAPTION_3:"Paul and I went to school with Ric Weiland, who later became Microsoft's second employee.",SECTION_HOW_IT_WORKS_IMAGE_ALT_3:"Bill, Paul and Ric Weiland - Microsoft's first employee - work together.",SECTION_OBSTACLES_TITLE:"Overcoming obstacles",SECTION_OBSTACLES_CONTENT:"\nComputer memory back then was expensive. Extra memory for the Altair could easily cost more than the computer itself, so every byte mattered. We thought that if we could fit our BASIC code into just four kilobytes, Altair owners using BASIC could still have enough memory left to run the programs they wrote (and not have to spend a lot of extra money). \n\nTo meet that constraint, I used various techniques to optimize memory usage, like compact data structures and efficient algorithms. It was a fun challenge, and although Paul and I were stressed about getting Altair BASIC to MITS as quickly as possible, I had a blast figuring out how to make everything fit.",SECTION_OBSTACLES_ASTERISKS:"\n*\n*",SECTION_MICROSOFT_TITLE:"The Birth of Microsoft",SECTION_MICROSOFT_CONTENT:"\nFinally, after lots of sleepless nights, we were ready to show our BASIC interpreter to Ed Roberts, the president of MITS. The demonstration was a success, and MITS agreed to license the software. This was a pivotal moment for Paul and me. Altair BASIC became the first product of our new company, which we decided to call Micro-Soft. (We later dropped the hyphen.)\xa0\n\nYou can read more about the origin of Altair BASIC—including about how Paul had to finish part of the code on a flight to Albuquerque—in my memoir Source Code.\xa0\n\nIt’s amazing to think about how this one piece of code led to a half century of innovation from Microsoft. Before there was Office or Windows 95 or Xbox or AI, there was the original source code—and I still get a kick out of seeing it, even all these years later.",SECTION_MICROSOFT_LINKS:[{url:"https://www.gatesnotes.com/home/home-page-topic/reader/my-first-memoir-source-code",startIndex:516,endIndex:537}],SECTION_MICROSOFT_LINKS_TABLET:[{url:"https://www.gatesnotes.com/home/home-page-topic/reader/my-first-memoir-source-code",startIndex:517,endIndex:538}],SECTION_MICROSOFT_LINKS_MOBILE:[{url:"https://www.gatesnotes.com/home/home-page-topic/reader/my-first-memoir-source-code",startIndex:516,endIndex:537}],SECTION_MICROSOFT_IMAGE_ALT:"Bill Gates & Paul Allen stand together in an early Microsoft office.",SECTION_MICROSOFT_NUMBER:"0008",SECTION_MICROSOFT_DATE:"[1975]",SECTION_DOWNLOAD_TITLE:"Download the Code",SECTION_DOWNLOAD_CONTENT:"Lorem ipsum dolor sit amet consectetur adipiscing elit Ut et massa mi. Aliquam in hendrerit urna.",DOWNLOAD_CODE_ALTTEXT:"Download",SECTION_DOWNLOAD_INFO:"\nLook through the original Microsoft source code for yourself. Computer programming has come a long way over the last fifty years, but I’m still super proud of how it turned out.",SECTION_DOWNLOAD_BUTTON_TEXT:" < Download >",SECTION_DOWNLOAD_BUTTON_ALT:"Download",SECTION_DOWNLOAD_BUTTON_URL:"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/34d561c8-cf5c-4e69-af47-3782ea11482e/Original-Microsoft-Source-Code.pdf"};var iH=a(6527),iF=a.n(iH),iP=function(){let{breakpointName:e}=a1(),t=(0,n.useRef)(null),{shineEffect:a,triggerShine:i}=iB({shineFirstDelay:4,shineIntervalDuration:{from:4,to:8},shineTriggerDebounceDuration:1,shineSpeed:100,shineCharDiagonalOffset:0,shineFilterChars:"#",shineChars:" @*#$%&*\\/<>....:::::'''",charCycleProbability:.8,charCycleInterval:{from:.05,to:.2},charCycleDuration:{from:.1,to:1,biasPower:10},charCycleDelay:{from:0,to:.1},origCharRatio:{from:.1,to:.3},shinePasses:[{delay:0,duration:.2}]}),r=()=>{i()};return(0,s.jsx)("div",{ref:t,className:"".concat(iF().HeaderBlock),children:"mobile"===e&&(0,s.jsx)(ip,{className:iF().headerBlock,contentClassName:iF().headerContent,text:iR.HEADER_CONTENT,alt:iD.SECTION_HEADER_TITLE,altTag:"h1",ticker:!0,tickerSettings:{interval:4,numCols:42,staticForegroundText:iR.HEADER_FRAME},animation:ip.REVEAL_ANIMS.TYPE_REVEAL,animationSettings:{delay:.2},effects:[a,...i_.HEADER],onMouseOver:r},"header-mobile")||"tablet"===e&&(0,s.jsx)(ip,{className:iF().headerBlock,contentClassName:iF().headerContent,text:iM.HEADER,alt:iD.SECTION_HEADER_TITLE,altTag:"h1",animation:ip.REVEAL_ANIMS.TYPE_REVEAL,animationSettings:{delay:.2},effects:[a,...i_.HEADER],onMouseOver:r},"header-tablet")||(0,s.jsx)(ip,{className:iF().headerBlock,contentClassName:iF().headerContent,text:ia.HEADER,alt:iD.SECTION_HEADER_TITLE,altTag:"h1",animation:ip.REVEAL_ANIMS.TYPE_REVEAL,animationSettings:{delay:.2},effects:[a,...i_.HEADER],onMouseOver:r},"header-desktop")})},iW={src:"/_next/static/media/guide_header.a810dccf.png",height:2404,width:2560,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAQAAABuBnYAAAAAXUlEQVR42k3BTQ7BQBgA0Pf1j1CZSSqYrmQkFnZO5Qgu4TCWjqfLvgeh1SxbAe59Ki5mxQbv0CnpanY0gM/uVeRTMuoFfvtvBo1Y1oOnx3QzooVtrlN17gY0rIUQf7AJBfIJN0wvAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},iG=a(3241),iU=a.n(iG);let iV={basics_desktop:"basics_desktop.webp",basics_mobile:"basics_mobile.webp",basics_tablet:"basics_tablet.webp",code_1_desktop:"code_1_desktop.webp",code_1_mobile:"code_1_mobile.webp",code_1_tablet:"code_1_tablet.webp",code_2_desktop:"code_2_desktop.webp",code_2_mobile:"code_2_mobile.webp",code_2_tablet:"code_2_tablet.webp",code_desktop:"code_desktop.webp",code_mobile:"code_mobile.webp",code_tablet:"code_tablet.webp",getting_started_desktop:"getting-started_desktop.webp",getting_started_mobile:"getting-started_mobile.webp",getting_started_tablet:"getting-started_tablet.webp",header_author_desktop:"header_author_desktop.webp",how_it_works_1_desktop:"how-it-works_1_desktop.webp",how_it_works_1_mobile:"how-it-works_1_mobile.webp",how_it_works_1_tablet:"how-it-works_1_tablet.webp",how_it_works_2_desktop:"how-it-works_2_desktop.webp",how_it_works_2_mobile:"how-it-works_2_mobile.webp",how_it_works_2_tablet:"how-it-works_2_tablet.webp",how_it_works_3_desktop:"how-it-works_3_desktop.webp",how_it_works_3_mobile:"how-it-works_3_mobile.webp",how_it_works_3_tablet:"how-it-works_3_tablet.webp",microsoft_desktop:"microsoft_desktop.webp",microsoft_mobile:"microsoft_mobile.webp",microsoft_tablet:"microsoft_tablet.webp",pattern_shadow_desktop:"pattern_shadow_desktop.webp",pattern_shadow_mobile:"pattern_shadow_mobile.webp",pattern_shadow_tablet:"pattern_shadow_tablet.webp"};var iZ=iV,iY=function(){let{assetMap:e,article:t}=a1(),{author:a,published:i}=t;return(0,s.jsx)(a7,{sectionId:"header",className:iU().SectionHeader,guideImage:iW,guideOffset:-64,children:(0,s.jsxs)(it,{className:iU().rowBlock1,children:[(0,s.jsx)(iP,{}),(0,s.jsx)(ip,{className:iU().detailLeft,text:ia.HEADER_DETAIL_LEFT,animation:ip.REVEAL_ANIMS.TYPE_REVEAL_DETAILS,animationSettings:{...iv.SECTION_HEADER_DETAIL_LEFT},effects:[...i_.HEADER_DETAILS]}),(0,s.jsx)(ip,{className:iU().detailRight,text:ia.HEADER_DETAIL_RIGHT,animation:ip.REVEAL_ANIMS.TYPE_REVEAL_DETAILS,animationSettings:{...iv.SECTION_HEADER_DETAIL_RIGHT},effects:[...i_.HEADER_DETAILS]}),(0,s.jsx)(iO,{image:e[iZ.header_author_desktop],alt:iD.SECTION_HEADER_IMAGE_ALT,className:iU().authorImage,id:"desktop_header",index:-1,animationSettings:{...iv.SECTION_HEADER_IMAGE}}),(0,s.jsx)(ip,{className:iU().articleAuthorBy,text:"".concat(iD.HEADER_AUTHOR_BY),alt:void 0,animation:ip.REVEAL_ANIMS.TYPE_REVEAL_ARTICLE_INFO,animationSettings:{...iv.SECTION_HEADER_AUTHOR_BY},effects:[...i_.HEADER_INFO]}),(0,s.jsx)(ip,{className:iU().articleAuthor,contentClassName:ic().contentBodyBold,text:a,alt:"".concat(iD.HEADER_AUTHOR_BY).concat(a),animation:ip.REVEAL_ANIMS.TYPE_REVEAL_ARTICLE_INFO,animationSettings:{...iv.SECTION_HEADER_AUTHOR},effects:[...i_.HEADER_INFO]}),(0,s.jsx)(ip,{className:iU().articlePublished,contentClassName:ic().contentBody,text:i,alt:i,animation:ip.REVEAL_ANIMS.TYPE_REVEAL_ARTICLE_INFO,animationSettings:{...iv.SECTION_HEADER_PUBLISHED},effects:[...i_.HEADER_INFO]}),(0,s.jsx)(ip,{className:iU().eyebrow,contentClassName:iU().eyebrowContent,text:iD.HEADER_EYEBROW,alt:iD.HEADER_EYEBROW,animation:ip.REVEAL_ANIMS.TYPE_REVEAL_ARTICLE_INFO,animationSettings:{...iv.SECTION_HEADER_EYEBROW},enableReactivity:!1}),(0,s.jsx)(ip,{className:iU().title,contentClassName:iU().titleContent,text:iD.HEADER_TITLE,alt:iD.HEADER_TITLE,altTag:"h2",wrapMaxCols:30,animation:ip.REVEAL_ANIMS.TYPE_REVEAL_ARTICLE_TITLE,animationSettings:{...iv.SECTION_HEADER_TITLE},enableReactivity:!1}),(0,s.jsx)(iT,{paragraphIndent:!1,className:iU().body,contentClassName:ic().contentBody,text:iD.HEADER_BODY,alt:iD.HEADER_BODY,asciiSettings:{wrapMaxCols:45,animation:ip.REVEAL_ANIMS.TYPE_REVEAL_ARTICLE_INTRO_COPY,animationSettings:{...iv.SECTION_HEADER_INTRO_COPY},effects:[]}}),(0,s.jsx)(iC,{className:iU().divider})]})})},iq=a(8698),iK=a.n(iq),iz=function(e){let{text:t,textAscii:a,className:i="",asciiSettings:r={}}=e,o=(0,n.useRef)(null),l={text:a,className:"".concat(iK().title," ").concat(i),contentClassName:ic().contentTitle,animation:ip.REVEAL_ANIMS.REVEAL_HEADER,inViewAppearRootMargin:"0px 0px -10% 0px",effects:[...i_.SECTION_HEADER]};return r={...l,...r},(0,s.jsx)("div",{ref:o,className:"".concat(iK().TitleBlock),children:(0,s.jsx)(ip,{...r,alt:t,altTag:"h3"})})},iQ={src:"/_next/static/media/guide_code.64a10420.png",height:3606,width:2560,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAICAQAAABwz0azAAAAc0lEQVR42gFoAJf/APUBuXvAVwAFSg4AAAD/ArX/vrv/AHwZIwQAUwK0Xt8u/wAABwAFAOAA/wR2bbuB9mi/AgDLANUtcP+S/9To/wQAcQBYDSYwoSmAIP8BAG0BABAAA6oAnQD/AAAAAP8AXAJlB3IFqwDaNCP8lwXOxQAAAABJRU5ErkJggg==",blurWidth:6,blurHeight:8},iJ=a(278),iX=a.n(iJ),i$=function(){let{assetMap:e}=a1();return(0,s.jsxs)(a7,{sectionId:"code",className:iX().SectionCode,guideImage:iQ,children:[(0,s.jsxs)(it,{className:iX().rowBlock1,children:[(0,s.jsx)(iz,{text:iD.SECTION_CODE_TITLE,textAscii:ia.SECTION_CODE_TITLE,className:iX().titleBlock}),(0,s.jsx)(iT,{text:iD.SECTION_CODE_CONTENT_PART1+"\n"+iD.SECTION_CODE_CONTENT_PART2+"\n"+iD.SECTION_CODE_CONTENT_PART3+"\n"+iD.SECTION_CODE_CONTENT_PART4,className:iX().textBlock1}),(0,s.jsx)(iO,{image:e[iZ.pattern_shadow_desktop],className:iX().image1shadow,id:"desktop_0_shadow",staticImage:!0}),(0,s.jsx)(iO,{image:e[iZ.code_desktop],alt:iD.SECTION_CODE_IMAGE_ALT,className:iX().image1,useAlpha:!1,id:"desktop_0",index:0}),(0,s.jsx)(ip,{text:iD.SECTION_CODE_NUMBER,className:iX().number,animationSettings:{...iv.IMAGE_NUMBER},effects:[...i_.IMAGE_NUMBER]}),(0,s.jsx)(ip,{text:iD.SECTION_CODE_CAPTION_ASTERISK,className:iX().asterisks,animationSettings:{...iv.ASCII_DETAIL_ASTERISKS,delayOffset:0},effects:[...i_.ASCII_DETAIL_ASTERISKS]}),(0,s.jsx)(iT,{text:iD.SECTION_CODE_CAPTION,paragraphIndent:!1,asciiSettings:{wrapMaxCols:38,className:iX().caption,contentClassName:ic().caption,animationSettings:{...iv.CAPTION,delayOffset:0}}})]}),(0,s.jsxs)(it,{className:iX().rowBlock2,children:[(0,s.jsx)(iO,{image:e[iZ.code_2_desktop],alt:iD.SECTION_CODE_IMAGE_2_ALT,className:iX().image2,id:"desktop_0_2",index:0}),(0,s.jsx)(iT,{text:iD.SECTION_CODE_CAPTION_2,paragraphIndent:!1,asciiSettings:{wrapMaxCols:40,className:iX().caption2,contentClassName:ic().caption,animationSettings:{...iv.CAPTION,delayOffset:0}}}),(0,s.jsx)(iT,{text:iD.SECTION_CODE_CONTENT_PART5+"\n"+iD.SECTION_CODE_CONTENT_PART6+"\n"+iD.SECTION_CODE_CONTENT_PART7,className:iX().textBlock2,paragraphIndent:!1,asciiSettings:{wrapMaxCols:50}}),(0,s.jsx)(ip,{text:iD.SECTION_CODE_NUMBER_2,className:iX().number2,animationSettings:{...iv.IMAGE_NUMBER},effects:[...i_.IMAGE_NUMBER]}),(0,s.jsx)(ip,{text:iD.SECTION_CODE_CAPTION_ASTERISK,className:iX().asterisks2,animationSettings:{...iv.ASCII_DETAIL_ASTERISKS,delayOffset:.1},effects:[...i_.ASCII_DETAIL_ASTERISKS]})]}),(0,s.jsxs)(it,{className:iX().rowBlock3,children:[(0,s.jsx)(iT,{text:iD.SECTION_CODE_CONTENT_PART8,className:iX().textBlock3,paragraphIndent:!1,asciiSettings:{wrapMaxCols:38}}),(0,s.jsx)(ip,{className:iX().detailEnd,text:ia.SECTION_CODE_DETAIL_END,animationSettings:{...iv.IMAGE_NUMBER,delayOffset:0},effects:[...i_.BASIC_DETAIL]}),(0,s.jsx)(iC,{className:iX().divider})]})]})},i0={src:"/_next/static/media/guide_basics.d2963b76.png",height:3152,width:2561,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAQAAACfDS2NAAAAZ0lEQVR42mNgYGDi4WFnQIAAvgzxSv7vzB8YIXxOBhYGMHgCEnhn82XF9+lfl/+yYQCB97kP/1/+f+v/p3wGEPiv97ThevGn+v86DAwMi1gYmBkggLGXlYGBOYWvWaCZp48/np+BDQBWQR4udrbA6QAAAABJRU5ErkJggg==",blurWidth:7,blurHeight:8},i1=a(673),i2=a.n(i1),i4=function(){let{assetMap:e}=a1();return(0,s.jsxs)(a7,{sectionId:"basics",className:i2().SectionBasics,guideImage:i0,children:[(0,s.jsxs)(it,{className:i2().rowBlock1,children:[(0,s.jsx)(iz,{text:iD.SECTION_BASICS_TITLE,textAscii:ia.SECTION_BASICS_TITLE,className:i2().titleBlock}),(0,s.jsx)(iT,{text:iD.SECTION_BASICS_CONTENT,className:i2().textBlock,asciiSettings:{wrapMaxCols:50}}),(0,s.jsx)(iO,{image:e[iZ.basics_desktop],useAlpha:!0,alt:iD.SECTION_BASICS_IMAGE_ALT,className:i2().image1,id:"desktop_1",index:1})]}),(0,s.jsxs)(it,{className:i2().rowBlock2,children:[(0,s.jsx)(ip,{className:i2().detailRight,text:ia.SECTION_BASICS_DETAIL_RIGHT,animation:!0,animationSettings:{...iv.SECTION_BASICS_DETAIL_RIGHT,delayOffset:0},effects:[...i_.SECTION_BASICS_DETAIL]}),(0,s.jsx)(ip,{text:iD.SECTION_BASICS_NUMBER,className:i2().number,animationSettings:{...iv.IMAGE_NUMBER},effects:[...i_.IMAGE_NUMBER]}),(0,s.jsx)(ip,{className:i2().line,text:ia.SECTION_BASICS_LINE,animation:!0,animationSettings:{...iv.SECTION_BASICS_LINE,delayOffset:0},effects:[...i_.BASIC_LINE]}),(0,s.jsx)(ip,{text:iD.SECTION_BASICS_CAPTION_ASTERISK,className:i2().asterisks,animationSettings:{...iv.ASCII_DETAIL_ASTERISKS,delayOffset:0},effects:[...i_.ASCII_DETAIL_ASTERISKS]}),(0,s.jsx)(iT,{text:iD.SECTION_BASICS_CAPTION,paragraphIndent:!1,asciiSettings:{wrapMaxCols:"36",className:i2().caption,contentClassName:ic().contentArt,animationSettings:{...iv.CAPTION,delayOffset:0}}}),(0,s.jsx)(ip,{className:i2().ticker,text:ia.SECTION_BASIC_TICKER,ticker:!0,tickerSettings:{interval:2,numCols:99},animation:!0,animationSettings:{...iv.SECTION_BASICS_TICKER,delayOffset:0},effects:[...i_.SECTION_BASICS_TICKER]})]})]})},i3={src:"/_next/static/media/guide_getting-started.886bae34.png",height:2928,width:2561,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAQAAACfDS2NAAAAY0lEQVR42mNgYGHgY2BkgAFN5gb2Fcz2XG4SOcIpCGGgKhCwU59Z3lqUULy68Ea5ijqDe+TS/9v/r/i/7P/5/2ujGRjCm/5P+N/4v+D/3P8HgVypjKBu/36/GX4zg+qlGVABAIIdIRZRjyqcAAAAAElFTkSuQmCC",blurWidth:7,blurHeight:8},i5=a(2457),i8=a.n(i5),i6=function(){let{assetMap:e}=a1();return(0,s.jsxs)(a7,{sectionId:"getting-started",className:i8().SectionGettingStarted,guideImage:i3,children:[(0,s.jsxs)(it,{className:i8().rowBlock1,children:[(0,s.jsx)(iz,{text:iD.SECTION_GETTING_STARTED_TITLE,textAscii:ia.SECTION_GETTING_STARTED_TITLE,className:i8().titleBlock}),(0,s.jsx)(ip,{className:i8().detailLeft1,text:ia.SECTION_GETTING_STARTED_DETAIL_LEFT_1,animation:!0,animationSettings:{...iv.SECTION_GETTING_STARTED_DETAIL_LEFT},effects:[...i_.SECTION_GETTING_STARTED_DETAIL_LEFT]}),(0,s.jsx)(ip,{className:i8().detailLeft2,text:ia.SECTION_GETTING_STARTED_DETAIL_LEFT_2,animation:!0,animationSettings:{...iv.SECTION_GETTING_STARTED_DETAIL_LEFT,delayOffset:.1},effects:[...i_.SECTION_GETTING_STARTED_DETAIL_LEFT]}),(0,s.jsx)(iT,{text:iD.SECTION_GETTING_STARTED_CONTENT,className:i8().textBlock,asciiSettings:{wrapMaxCols:"44"}})]}),(0,s.jsxs)(it,{className:i8().rowBlock2,children:[(0,s.jsx)(ip,{text:iD.SECTION_GETTING_STARTED_NUMBER,className:i8().number,animationSettings:{...iv.IMAGE_NUMBER},effects:[...i_.IMAGE_NUMBER]}),(0,s.jsx)(iO,{image:e[iZ.getting_started_desktop],alt:iD.SECTION_GETTING_STARTED_IMAGE_ALT,className:i8().image1,id:"desktop_2",index:2}),(0,s.jsx)(ip,{text:iD.SECTION_GETTING_STARTED_CAPTION_ASTERISK,className:i8().asterisks,animationSettings:{...iv.ASCII_DETAIL_ASTERISKS,delayOffset:0},effects:[...i_.ASCII_DETAIL_ASTERISKS]}),(0,s.jsx)(iT,{text:iD.SECTION_GETTING_STARTED_CAPTION,paragraphIndent:!1,asciiSettings:{wrapMaxCols:36,className:i8().caption,contentClassName:ic().caption,animationSettings:{...iv.CAPTION,delayOffset:0}}}),(0,s.jsx)(ip,{text:iD.SECTION_GETTING_STARTED_END,className:i8().end,animationSettings:{...iv.SECTION_GETTING_STARTED_DETAIL_END,delayOffset:0},effects:[...i_.SECTION_GETTING_STARTED_DETAIL_END]})]}),(0,s.jsx)(iC,{className:i8().divider})]})},i7={src:"/_next/static/media/guide_how-it-works.7d57e0e9.png",height:5124,width:2560,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAICAQAAAB0OpaOAAAAUklEQVR42mOQZ2bg+8/wloGBgclXcKL0P34GJYbtDG1ndx1iUFGb6NIY0C7DwLCk53/+khUMDAz8Cbq7/J6LMQgxMBiv/n8on4GBQZHLQN2VDwD41hTxx7Fx9gAAAABJRU5ErkJggg==",blurWidth:4,blurHeight:8},i9=a(425),se=a.n(i9),st=function(){let{assetMap:e}=a1();return(0,s.jsxs)(a7,{sectionId:"how-it-works",className:se().SectionHowItWorks,guideImage:i7,children:[(0,s.jsxs)(it,{className:se().rowBlock1,children:[(0,s.jsx)(iz,{text:iD.SECTION_HOW_IT_WORKS_TITLE,textAscii:ia.SECTION_HOW_IT_WORKS_TITLE,className:se().titleBlock}),(0,s.jsx)(iT,{text:iD.SECTION_HOW_IT_WORKS_CONTENT,className:se().textBlock}),(0,s.jsx)(ip,{className:se().detailLeft,text:ia.SECTION_HOW_IT_WORKS_DETAIL_LEFT,animation:!0,animationSettings:{...iv.SECTION_HOW_IT_WORKS_DETAIL,delayOffset:0},effects:[...i_.SECTION_HOW_IT_WORKS_DETAIL_LEFT]}),(0,s.jsx)(ip,{className:se().detailRight,text:ia.SECTION_HOW_IT_WORKS_DETAIL_RIGHT,animation:!0,animationSettings:{...iv.SECTION_HOW_IT_WORKS_DETAIL,delayOffset:0},effects:[...i_.SECTION_HOW_IT_WORKS_DETAIL_RIGHT]}),(0,s.jsx)(ip,{text:iD.SECTION_HOW_IT_WORKS_ASTERISKS,className:se().asterisks,animationSettings:{...iv.ASCII_DETAIL_ASTERISKS,delayOffset:0},effects:[...i_.ASCII_DETAIL_ASTERISKS]})]}),(0,s.jsxs)(it,{className:se().RowBlock2,children:[(0,s.jsx)(ip,{text:iD.SECTION_HOW_IT_WORKS_NUMBER_1,className:se().number1,animationSettings:{...iv.IMAGE_NUMBER},effects:[...i_.IMAGE_NUMBER]}),(0,s.jsx)(iO,{image:e[iZ.how_it_works_1_desktop],alt:iD.SECTION_HOW_IT_WORKS_IMAGE_ALT_1,className:se().image1,id:"desktop_3",index:3}),(0,s.jsx)(iT,{text:iD.SECTION_HOW_IT_WORKS_CAPTION_1,paragraphIndent:!1,asciiSettings:{wrapMaxCols:40,className:se().caption1,contentClassName:ic().caption,animationSettings:{...iv.CAPTION,delayOffset:0}}}),(0,s.jsx)(ip,{text:iD.SECTION_HOW_IT_WORKS_NUMBER_2,className:se().number2,animationSettings:{...iv.IMAGE_NUMBER},effects:[...i_.IMAGE_NUMBER]}),(0,s.jsx)(ip,{className:se().detailRight2,text:ia.SECTION_HOW_IT_WORKS_DETAIL_RIGHT_2,animation:!0,animationSettings:{...iv.SECTION_HOW_IT_WORKS_DETAIL,delayOffset:0},effects:[...i_.SECTION_HOW_IT_WORKS_DETAIL_RIGHT]}),(0,s.jsx)(iO,{image:e[iZ.how_it_works_2_desktop],alt:iD.SECTION_HOW_IT_WORKS_IMAGE_ALT_2,className:se().image2,id:"desktop_4",index:4}),(0,s.jsx)(iT,{text:iD.SECTION_HOW_IT_WORKS_CAPTION_2,paragraphIndent:!1,asciiSettings:{wrapMaxCols:50,className:se().caption2,contentClassName:ic().caption,animationSettings:{...iv.CAPTION,delayOffset:0}}}),(0,s.jsx)(ip,{text:iD.SECTION_HOW_IT_WORKS_NUMBER_3,className:se().number3,animationSettings:{...iv.IMAGE_NUMBER},effects:[...i_.IMAGE_NUMBER]}),(0,s.jsx)(iO,{image:e[iZ.how_it_works_3_desktop],alt:iD.SECTION_HOW_IT_WORKS_IMAGE_ALT_3,className:se().image3,id:"desktop_5",index:5}),(0,s.jsx)(iT,{text:iD.SECTION_HOW_IT_WORKS_CAPTION_3,paragraphIndent:!1,asciiSettings:{wrapMaxCols:50,className:se().caption3,contentClassName:ic().caption,animationSettings:{...iv.CAPTION,delayOffset:0}}}),(0,s.jsx)(ip,{className:se().detailLeft2,text:ia.SECTION_HOW_IT_WORKS_DETAIL_LEFT_2,animationSettings:{...iv.SECTION_HOW_IT_WORKS_DETAIL,delayOffset:0},effects:[...i_.SECTION_HOW_IT_WORKS_DETAIL_RIGHT]})]}),(0,s.jsx)(iC,{className:se().divider})]})},sa=a(3886),si=a.n(sa),ss=function(e){let{className:t}=e,{breakpointName:a}=a1(),[i,r]=(0,n.useState)({x:0,y:0}),o=(0,n.useRef)(i);(0,n.useEffect)(()=>{o.current=i},[i]);let[l,c]=(0,n.useState)(0),d=(0,n.useRef)(l);(0,n.useEffect)(()=>{d.current=l},[l]);let[m,u]=(0,n.useState)(!1),h=(0,n.useRef)(m);(0,n.useEffect)(()=>{h.current=m},[m]);let[g,p]=(0,n.useState)(!1),_=(0,n.useRef)({left:0,right:0,top:0,bottom:0}),[v,f]=(0,n.useState)(0),[x,b]=(0,n.useState)(null),[C,S]=(0,n.useState)(""),[I,T]=(0,n.useState)(""),[N,E]=(0,n.useState)(null),[w,k]=(0,n.useState)({x:0,y:0});(0,n.useEffect)(()=>{switch(a){case"mobile":T(iR.SECTION_OBSTACLES_SCENE_MOUNTAINS),S(iR.SECTION_OBSTACLES_SCENE_CLOUDS),k({x:19,y:0}),E(iR.SECTION_OBSTACLES_SCENE_BILL_PATH),r({x:18,y:1}),_.current={left:-3,right:43,top:0,bottom:16},f(30),b(45);break;case"tablet":T(iM.SECTION_OBSTACLES_SCENE_MOUNTAINS),S(iM.SECTION_OBSTACLES_SCENE_CLOUDS),k({x:27,y:0}),E(iM.SECTION_OBSTACLES_SCENE_BILL_PATH),r({x:26,y:1}),_.current={left:-3,right:67,top:0,bottom:14},f(17),b(null);break;default:T(ia.SECTION_OBSTACLES_SCENE_MOUNTAINS),S(ia.SECTION_OBSTACLES_SCENE_CLOUDS),k({x:36,y:0}),E(ia.SECTION_OBSTACLES_SCENE_BILL_PATH),r({x:35,y:1}),_.current={left:-3,right:102,top:0,bottom:14},f(17),b(null)}},[a]);let{inViewRef:y,isInView:A}=is({rootMargin:"0px 0px -50% 0px",triggerOnce:!0}),j=(0,n.useRef)({}),L=(0,n.useRef)(null),O=80,B=e=>{if(!h.current)return;let t=!1,a=0;switch(e.key){case"a":j.current.left=!0,t=!0;break;case"d":j.current.right=!0,t=!0;break;case"w":j.current.up=!0,a=1,t=!0;break;case"s":j.current.down=!0,t=!0}d.current!==a&&c(a);let i=Object.values(j.current).some(e=>e);i&&!L.current&&(M(),L.current=setInterval(M,O)),t&&(p(!0),e.preventDefault())},R=e=>{if(!h.current)return;let t=!1;switch(e.key){case"ArrowLeft":case"a":j.current.left=!1,t=!0;break;case"ArrowRight":case"d":j.current.right=!1,t=!0;break;case"ArrowUp":case"w":j.current.up&&c(0),j.current.up=!1,t=!0;break;case"ArrowDown":case"s":j.current.down=!1,t=!0}let a=Object.values(j.current).some(e=>e);a||(clearInterval(L.current),L.current=null),t&&e.preventDefault()},M=()=>{let e={x:o.current.x,y:o.current.y};j.current.left&&(e.x-=1),j.current.right&&(e.x+=1),j.current.up&&(e.y-=1),j.current.down&&(e.y+=1),e.y<_.current.top?e.y=_.current.top:e.y>_.current.bottom&&(e.y=_.current.bottom),e.x<_.current.left?e.x=_.current.right:e.x>_.current.right&&(e.x=_.current.left),r(e)};(0,n.useEffect)(()=>(document.addEventListener("keydown",B),document.addEventListener("keyup",R),()=>{document.removeEventListener("keydown",B),document.removeEventListener("keyup",R)}),[]);let D="desktop"===a&&m&&!g;return(0,s.jsx)("div",{ref:y,className:"".concat(si().ObstaclesScene," ").concat(t),children:(0,s.jsx)(ip,{className:si().ObstaclesScene,contentClassName:si().ObstaclesSceneContent,text:C,ticker:!0,tickerSettings:{interval:16,numCols:x,staticForegroundText:I,staticMaskCharacter:"-"},maxLines:m?v:null,animation:!0,animationSettings:{...iv.OBSTACLES_SCENE},sprites:[{interval:6,text:D?ia.SECTION_OBSTACLES_SCENE_FLAG_INSTRUCTION:ia.SECTION_OBSTACLES_SCENE_FLAG,resetFrameCountOnLoop:!D,position:w},{frame:l,text:ia.SECTION_OBSTACLES_SCENE_BILL,maskCharacter:"-",position:m?{x:i.x,y:i.y}:null,path:N,pathSettings:{playing:A&&!m,delay:3,interval:4,loop:!1,onComplete(){u(!0),c(1)}}},{text:ia.SECTION_OBSTACLES_SCENE_JET,maskCharacter:"-",visible:g,interval:4,position:m?{x:i.x+1,y:i.y+3}:null}],effects:[...i_.SECTION_BASICS_TICKER]},"header-".concat(a))})},sn={src:"/_next/static/media/guide_obstacles.b4f56b6d.png",height:2146,width:2561,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAQAAACfUMTVAAAAQElEQVR42j2I2wrAIAzF4qytr7uw///UBZQlnELDJnmYgHQGyXTlOoRPYSQoZwv1kis0FhevJj8nt3FA2x7a4AND9AEo56AzcAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:7},sr=a(451),so=a.n(sr),sl=function(){let{assetMap:e}=a1();return(0,s.jsxs)(a7,{sectionId:"obstacles",className:so().SectionObstacles,guideImage:sn,children:[(0,s.jsxs)(it,{className:so().rowBlock1,children:[(0,s.jsx)(iz,{text:iD.SECTION_OBSTACLES_TITLE,textAscii:ia.SECTION_OBSTACLES_TITLE,className:so().titleBlock}),(0,s.jsx)(iT,{text:iD.SECTION_OBSTACLES_CONTENT,className:so().textBlock,asciiSettings:{wrapMaxCols:"55"}}),(0,s.jsx)(ip,{text:iD.SECTION_OBSTACLES_ASTERISKS,className:so().asterisks,animationSettings:{...iv.ASCII_DETAIL_ASTERISKS,delayOffset:0},effects:[...i_.ASCII_DETAIL_ASTERISKS]}),(0,s.jsx)(ss,{className:so().obstaclesScene})]}),(0,s.jsx)(iC,{className:so().divider})]})},sc={src:"/_next/static/media/guide_microsoft.fab2eeb9.png",height:3848,width:2560,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAICAQAAACb+P2wAAAAYUlEQVR42mNg4GTgYWBkYGZgZWAQYBBlYGNgYGBisOdw5PbglJdlEGfoYshiEGZg4JMQZCi1SMuUTrFJZuBjaJjc8n/j/97/DKoMRb0z/z/6v+wPgzLDOuNtKXNj+yMZeAE1fRWHkCKwRwAAAABJRU5ErkJggg==",blurWidth:5,blurHeight:8},sd=a(1489),sm=a.n(sd),su=function(){let{assetMap:e}=a1();return(0,s.jsxs)(a7,{sectionId:"microsoft",className:sm().SectionMicrosoft,guideImage:sc,children:[(0,s.jsxs)(it,{className:sm().rowBlock1,children:[(0,s.jsx)(iz,{text:iD.SECTION_MICROSOFT_TITLE,textAscii:ia.SECTION_MICROSOFT_TITLE,className:sm().titleBlock1}),(0,s.jsx)(iz,{textAscii:ia.SECTION_MICROSOFT_TITLE_2,className:sm().titleBlock2,asciiSettings:{animationSettings:{...iv.SECTION_MICROSOFT_TITLE,delayOffset:0}}}),(0,s.jsx)(iT,{text:iD.SECTION_MICROSOFT_CONTENT,links:iD.SECTION_MICROSOFT_LINKS,className:sm().textBlock,asciiSettings:{wrapMaxCols:55}})]}),(0,s.jsxs)(it,{className:sm().rowBlock2,children:[(0,s.jsx)(ip,{className:sm().detailLeft,text:ia.SECTION_MICROSOFT_DETAIL_LEFT,animation:!0,animationSettings:{...iv.SECTION_MICROSOFT_DETAIL,delayOffset:0},effects:[...i_.SECTION_MICROSOFT_DETAIL_LEFT]}),(0,s.jsx)(ip,{className:sm().detailRight,text:ia.SECTION_MICROSOFT_DETAIL_RIGHT,animationSettings:{...iv.IMAGE_NUMBER,delayOffset:0},effects:[...i_.SECTION_MICROSOFT_DETAIL_LEFT]}),(0,s.jsx)(ip,{className:sm().logo,text:ia.SECTION_MICROSOFT_LOGO,animation:!0,animationSettings:{...iv.SECTION_MICROSOFT_LOGO,delayOffset:0},effects:[...i_.SECTION_MICROSOFT_LOGO]})]}),(0,s.jsxs)(it,{className:sm().rowBlock3,children:[(0,s.jsx)(iO,{image:e[iZ.microsoft_desktop],alt:iD.SECTION_MICROSOFT_IMAGE_ALT,className:sm().image1,id:"desktop_6",index:6}),(0,s.jsx)(ip,{className:sm().number,text:iD.SECTION_MICROSOFT_NUMBER,animationSettings:{...iv.IMAGE_NUMBER},effects:[...i_.IMAGE_NUMBER]}),(0,s.jsx)(ip,{className:sm().date,text:iD.SECTION_MICROSOFT_DATE,animationSettings:{...iv.SECTION_MICROSOFT_DATE},effects:[...i_.SECTION_MICROSOFT_DATE]})]}),(0,s.jsx)(iC,{className:sm().divider})]})},sh=a(6914),sg=a.n(sh),sp=function(e){let{frameAscii:t,frameAsciiRollover:a}=e,i=(0,n.useRef)(null),[r,o]=(0,n.useState)(!1),{isUsingMouse:l}=ir();(0,n.useEffect)(()=>{l||o(!0)},[l]);let{shineEffect:c,triggerShine:d}=iB({shineFirstDelay:4,shineIntervalDuration:{from:4,to:6},shineTriggerDebounceDuration:1,shineSpeed:80,shineCharDiagonalOffset:0,shineFilterChars:"#",shineChars:" .:*@#$%&\\/",charCycleProbability:.8,charCycleInterval:{from:.05,to:.2},charCycleDuration:{from:.1,to:1,biasPower:10},charCycleDelay:{from:0,to:.1},origCharRatio:{from:.1,to:.3},shinePasses:[{delay:0,duration:.2}]}),m=()=>{l&&(d(),o(!0))},u=()=>{l&&o(!1)},h=()=>{d()};return(0,s.jsx)("div",{ref:i,className:"".concat(sg().DownloadButton),children:(0,s.jsxs)("a",{href:iD.SECTION_DOWNLOAD_BUTTON_URL,target:"_blank",rel:"noopener noreferrer","data-new-window":"true",className:sg().downloadLink,children:[(0,s.jsx)(ip,{text:iD.SECTION_DOWNLOAD_BUTTON_TEXT,alt:iD.SECTION_DOWNLOAD_BUTTON_ALT,className:sg().label,enableReactivity:!1,contentClassName:sg().labelContent,animationSettings:{...iv.DOWNLOAD_BUTTON_LABEL}}),(0,s.jsx)(ip,{text:r&&a?a:t,keepUpdating:!0,className:sg().frame,contentClassName:sg().frameContent,onMouseOver:m,onMouseOut:u,onPointerDown:h,enableReactivity:!1,animationSettings:{...iv.DOWNLOAD_BUTTON},effects:[c,...i_.SECTION_DOWNLOAD_BUTTON]})]})})},s_={src:"/_next/static/media/guide_download.bf7fc7e7.png",height:1018,width:2560,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAQAAAAEwYbDAAAAN0lEQVR42mO4wvKfKUsgUjxDsI3rP9N/Job/QMjAwsDLwPYfwv7v+t/lq/e7gLeBn33+uv1yBwDQ+RTnn1FGawAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:3},sv=a(1502),sf=a.n(sv),sx=function(){return(0,s.jsx)(a7,{sectionId:"download",className:sf().SectionDownload,guideImage:s_,children:(0,s.jsxs)(it,{className:sf().rowBlock1,children:[(0,s.jsx)(ip,{className:sf().frame,text:ia.SECTION_DOWNLOAD_FRAME,animationSettings:{...iv.DOWNLOAD_FRAME},effects:[...i_.DOWNLOAD_FRAME]}),(0,s.jsx)(iz,{text:iD.SECTION_DOWNLOAD_TITLE,textAscii:ia.SECTION_DOWNLOAD_TITLE,className:sf().titleBlock}),(0,s.jsx)(ip,{className:sf().detailLeft,text:ia.SECTION_DOWNLOAD_DETAIL_LEFT,animationSettings:{...iv.ASCII_DETAIL},effects:[...i_.SECTION_DOWNLOAD_DETAIL_LEFT]}),(0,s.jsx)(ip,{className:sf().detailRight,text:ia.SECTION_DOWNLOAD_DETAIL_RIGHT,animationSettings:{...iv.ASCII_DETAIL,delayOffset:.3},effects:[...i_.SECTION_DOWNLOAD_DETAIL_RIGHT]}),(0,s.jsx)(iT,{paragraphIndent:!1,className:sf().info,text:iD.SECTION_DOWNLOAD_INFO,alt:iD.SECTION_DOWNLOAD_INFO,asciiSettings:{wrapMaxCols:40,animationSettings:{...iv.DOWNLOAD_INFO}}}),(0,s.jsx)(ip,{className:sf().detail,text:ia.SECTION_DOWNLOAD_INFO_DETAIL,animationSettings:{...iv.ASCII_DETAIL,delay:1.2},effects:[...i_.ASTERISK_FLICKER]}),(0,s.jsx)(sp,{frameAscii:ia.SECTION_DOWNLOAD_BUTTON_FRAME,frameAsciiRollover:ia.SECTION_DOWNLOAD_BUTTON_FRAME_ROLLOVER})]})})},sb=a(6359),sC=a.n(sb),sS=function(){return(0,s.jsxs)("div",{className:sC().SourceCodeDesktop,children:[(0,s.jsx)(iY,{}),(0,s.jsx)(i$,{}),(0,s.jsx)(i4,{}),(0,s.jsx)(st,{}),(0,s.jsx)(i6,{}),(0,s.jsx)(sl,{}),(0,s.jsx)(su,{}),(0,s.jsx)(sx,{})]})},sI=a(2150),sT=a.n(sI),sN=function(e){let{className:t}=e;return(0,s.jsx)("div",{className:"".concat(sT().Divider," ").concat(t),children:(0,s.jsx)("div",{className:sT().dividerContainer,children:(0,s.jsx)(ip,{className:sT().dividerBlock,text:iM.DIVIDER,animation:!0,animationSettings:{...iv.DIVIDER_TABLET},effects:[...i_.DIVIDER],inViewAppearRootMargin:"0px 0px -10% 0px"})})})},sE={src:"/_next/static/media/guide_header.50fdb555.png",height:2192,width:1536,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAICAQAAABwz0azAAAAVUlEQVR42iXFQQqCUBRA0ROGfcp6KVGJ0aAohy7MsetxD25QBblcDrnkIElyl2vZqK0LwrN8e6ic9DE0og6FZDqP3xn2Mv6620+rwis+d0V2xA5WthZgcwaAfLpFKwAAAABJRU5ErkJggg==",blurWidth:6,blurHeight:8},sw=a(6916),sk=a.n(sw),sy=function(){let{assetMap:e,article:t}=a1(),{author:a,published:i}=t;return(0,s.jsx)(a7,{sectionId:"header",className:sk().SectionHeader,guideImage:sE,guideOffset:-64,children:(0,s.jsxs)(it,{className:sk().rowBlock1,children:[(0,s.jsx)(iP,{}),(0,s.jsx)(ip,{className:sk().detailLeft,text:iM.HEADER_DETAIL_LEFT,animation:ip.REVEAL_ANIMS.TYPE_REVEAL_DETAILS,animationSettings:{...iv.SECTION_HEADER_DETAIL_LEFT},effects:[...i_.HEADER_DETAILS]}),(0,s.jsx)(ip,{className:sk().detailRight,text:iM.HEADER_DETAIL_RIGHT,animation:ip.REVEAL_ANIMS.TYPE_REVEAL_DETAILS,animationSettings:{...iv.SECTION_HEADER_DETAIL_RIGHT},effects:[...i_.HEADER_DETAILS]}),(0,s.jsx)(iO,{image:e[iZ.header_author_desktop],alt:iD.SECTION_HEADER_IMAGE_ALT,className:sk().authorImage,id:"tablet_header",index:-1,animationSettings:{...iv.SECTION_HEADER_IMAGE}}),(0,s.jsx)(ip,{className:sk().articleAuthorBy,contentClassName:ic().contentBody,text:"".concat(iD.HEADER_AUTHOR_BY),alt:void 0,animation:ip.REVEAL_ANIMS.TYPE_REVEAL_ARTICLE_INFO,animationSettings:{...iv.SECTION_HEADER_AUTHOR_BY},effects:[...i_.HEADER_INFO]}),(0,s.jsx)(ip,{className:sk().articleAuthor,contentClassName:ic().contentBodyBold,text:a,alt:"".concat(iD.HEADER_AUTHOR_BY).concat(a),animation:ip.REVEAL_ANIMS.TYPE_REVEAL_ARTICLE_INFO,animationSettings:{...iv.SECTION_HEADER_AUTHOR},effects:[...i_.HEADER_INFO]}),(0,s.jsx)(ip,{className:sk().articlePublished,contentClassName:ic().contentBody,text:i,alt:i,animation:ip.REVEAL_ANIMS.TYPE_REVEAL_ARTICLE_INFO,animationSettings:{...iv.SECTION_HEADER_PUBLISHED},effects:[...i_.HEADER_INFO]}),(0,s.jsx)(ip,{className:sk().eyebrow,contentClassName:sk().eyebrowContent,text:iD.HEADER_EYEBROW,alt:iD.HEADER_EYEBROW,animation:ip.REVEAL_ANIMS.TYPE_REVEAL_ARTICLE_INFO,animationSettings:{...iv.SECTION_HEADER_EYEBROW},enableReactivity:!1}),(0,s.jsx)(ip,{className:sk().title,contentClassName:sk().titleContent,text:iD.HEADER_TITLE,alt:iD.HEADER_TITLE,altTag:"h2",wrapMaxCols:32,animation:ip.REVEAL_ANIMS.TYPE_REVEAL_ARTICLE_TITLE,animationSettings:{...iv.SECTION_HEADER_TITLE},enableReactivity:!1}),(0,s.jsx)(iT,{paragraphIndent:!1,className:sk().body,contentClassName:ic().contentBody,text:iD.HEADER_BODY,alt:iD.HEADER_BODY,asciiSettings:{wrapMaxCols:40,animation:ip.REVEAL_ANIMS.TYPE_REVEAL_ARTICLE_INTRO_COPY,animationSettings:{...iv.SECTION_HEADER_INTRO_COPY},effects:[]}}),(0,s.jsx)(sN,{className:sk().divider})]})})},sA={src:"/_next/static/media/guide_code.4417c224.png",height:4656,width:1536,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAICAQAAACW5o33AAAAQklEQVR42mNgYH/J8IuBYbPylpYDUgxbvLb/P2/K0MS/RZuBmSGZt0jjiTLDYu3GR6dPMDBwGsooCjLYMzIw/WcAACLeEZzxhvYqAAAAAElFTkSuQmCC",blurWidth:3,blurHeight:8},sj=a(9420),sL=a.n(sj),sO=function(){let{assetMap:e}=a1();return(0,s.jsxs)(a7,{sectionId:"code",className:sL().SectionCode,guideImage:sA,children:[(0,s.jsxs)(it,{className:sL().rowBlock1,children:[(0,s.jsx)(iz,{className:sL().titleBlock,text:iD.SECTION_CODE_TITLE,textAscii:iM.SECTION_CODE_TITLE}),(0,s.jsx)(iT,{className:sL().textBlock1,text:iD.SECTION_CODE_CONTENT_PART1+"\n"+iD.SECTION_CODE_CONTENT_PART2+"\n"+iD.SECTION_CODE_CONTENT_PART3+"\n"+iD.SECTION_CODE_CONTENT_PART4,asciiSettings:{wrapMaxCols:"54"}})]}),(0,s.jsxs)(it,{className:sL().rowBlock2,children:[(0,s.jsx)(iO,{image:e[iZ.pattern_shadow_tablet],className:sL().image1shadow,id:"tablet_0_shadow",staticImage:!0}),(0,s.jsx)(iO,{image:e[iZ.code_tablet],alt:iD.SECTION_CODE_IMAGE_ALT,className:sL().image,useAlpha:!1,id:"tablet_0",index:0}),(0,s.jsx)(iT,{text:iD.SECTION_CODE_CAPTION,paragraphIndent:!1,asciiSettings:{wrapMaxCols:40,className:sL().caption,contentClassName:ic().caption,animationSettings:{...iv.CAPTION,delayOffset:0}}}),(0,s.jsx)(ip,{text:iD.SECTION_CODE_NUMBER,className:sL().number,animationSettings:{...iv.IMAGE_NUMBER},effects:[...i_.IMAGE_NUMBER]}),(0,s.jsx)(ip,{text:iD.SECTION_CODE_CAPTION_ASTERISK,className:sL().asterisks,animationSettings:{...iv.ASCII_DETAIL_ASTERISKS,delayOffset:0},effects:[...i_.ASCII_DETAIL_ASTERISKS]})]}),(0,s.jsx)(it,{className:sL().rowBlock3,children:(0,s.jsx)(iT,{className:sL().textBlock2,text:iD.SECTION_CODE_CONTENT_PART5+"\n"+iD.SECTION_CODE_CONTENT_PART6,asciiSettings:{wrapMaxCols:"54"},paragraphIndent:!1})}),(0,s.jsxs)(it,{className:sL().rowBlock4,children:[(0,s.jsx)(iO,{image:e[iZ.code_2_tablet],alt:iD.SECTION_CODE_IMAGE_2_ALT,className:sL().image2,id:"tablet_0_2",index:0}),(0,s.jsx)(iT,{text:iD.SECTION_CODE_CAPTION_2,paragraphIndent:!1,asciiSettings:{wrapMaxCols:40,className:sL().caption2,contentClassName:ic().caption,animationSettings:{...iv.CAPTION,delayOffset:0}}}),(0,s.jsx)(ip,{text:iD.SECTION_CODE_NUMBER_2,className:sL().number2,animationSettings:{...iv.IMAGE_NUMBER},effects:[...i_.IMAGE_NUMBER]}),(0,s.jsx)(iT,{className:sL().textBlock3,text:iD.SECTION_CODE_CONTENT_PART7,asciiSettings:{wrapMaxCols:"54"},paragraphIndent:!1}),(0,s.jsx)(iT,{className:sL().textBlock4,text:iD.SECTION_CODE_CONTENT_PART8,paragraphIndent:!1,asciiSettings:{wrapMaxCols:38}}),(0,s.jsx)(ip,{className:sL().detailEnd,text:iM.SECTION_CODE_DETAIL_END,animationSettings:{...iv.IMAGE_NUMBER,delayOffset:0},effects:[...i_.BASIC_DETAIL]}),(0,s.jsx)(sN,{className:sL().divider})]})]})},sB={src:"/_next/static/media/guide_basics.676f78ee.png",height:3164,width:1536,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAICAQAAAB0OpaOAAAAUElEQVR42mNgYhPkYGCoY2CQ4Y8RLeD/xsTAwMfA9J/hKgPDXf53895ueT+V4b/oo/dX/j97xPCf+aPwf9H/IgwMbCA1DIwMSlzBvKlc2ZwAHKIXWDkBlygAAAAASUVORK5CYII=",blurWidth:4,blurHeight:8},sR=a(4982),sM=a.n(sR),sD=function(){let{assetMap:e}=a1();return(0,s.jsxs)(a7,{sectionId:"basics",className:sM().SectionBasics,guideImage:sB,children:[(0,s.jsxs)(it,{className:sM().rowBlock1,children:[(0,s.jsx)(iz,{text:iD.SECTION_BASICS_TITLE,textAscii:iM.SECTION_BASICS_TITLE,className:sM().titleBlock}),(0,s.jsx)(iT,{text:iD.SECTION_BASICS_CONTENT,className:sM().textBlock,asciiSettings:{wrapMaxCols:"54"}})]}),(0,s.jsxs)(it,{className:sM().rowBlock2,children:[(0,s.jsx)(iO,{image:e[iZ.basics_tablet],useAlpha:!0,alt:iD.SECTION_BASICS_IMAGE_ALT,className:sM().image,id:"tablet_1",index:1}),(0,s.jsx)(ip,{text:iD.SECTION_BASICS_NUMBER,className:sM().number,animationSettings:{...iv.IMAGE_NUMBER},effects:[...i_.IMAGE_NUMBER]}),(0,s.jsx)(ip,{className:sM().detailRight,text:iM.SECTION_BASICS_DETAIL_RIGHT,animation:!0,animationSettings:{...iv.SECTION_BASICS_DETAIL_RIGHT,delayOffset:0},effects:[...i_.SECTION_BASICS_DETAIL]}),(0,s.jsx)(ip,{className:sM().line,text:iM.SECTION_BASICS_LINE,animation:!0,animationSettings:{...iv.SECTION_BASICS_LINE,delayOffset:0},effects:[...i_.BASIC_LINE]}),(0,s.jsx)(ip,{text:iD.SECTION_BASICS_CAPTION_ASTERISK,className:sM().asterisks,animationSettings:{...iv.ASCII_DETAIL_ASTERISKS,delayOffset:0},effects:[...i_.ASCII_DETAIL_ASTERISKS]}),(0,s.jsx)(iT,{text:iD.SECTION_BASICS_CAPTION,paragraphIndent:!1,asciiSettings:{wrapMaxCols:"36",className:sM().caption,contentClassName:ic().contentArt,animationSettings:{...iv.CAPTION,delayOffset:0}}}),(0,s.jsx)(ip,{className:sM().ticker,text:iM.SECTION_BASIC_TICKER,ticker:!0,tickerSettings:{interval:2,numCols:69},animation:!0,animationSettings:{...iv.SECTION_BASICS_TICKER,delayOffset:0},effects:[...i_.SECTION_BASICS_TICKER]})]})]})},sH={src:"/_next/static/media/guide_getting-started.3623f781.png",height:2576,width:1536,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAICAQAAACb+P2wAAAAXElEQVR42mNg4jXkYGD4z8DAwODPwMDpI8QgxMDLkM8EpCQKxAsFGCwtF7yd+3LNp5MHGRjMWl51Pat9t3w/AwMLAzsD2yVWIO3GyMDQxLCDAQQYA5iymXKZApkAY/IUQeBungoAAAAASUVORK5CYII=",blurWidth:5,blurHeight:8},sF=a(1673),sP=a.n(sF),sW=function(){let{assetMap:e}=a1();return(0,s.jsxs)(a7,{sectionId:"getting-started",className:sP().SectionGettingStarted,guideImage:sH,children:[(0,s.jsxs)(it,{className:sP().rowBlock1,children:[(0,s.jsx)(iz,{text:iD.SECTION_GETTING_STARTED_TITLE,textAscii:iM.SECTION_GETTING_STARTED_TITLE,className:sP().titleBlock}),(0,s.jsx)(iT,{className:sP().textBlock,text:iD.SECTION_GETTING_STARTED_CONTENT,asciiSettings:{wrapMaxCols:"54"}}),(0,s.jsx)(ip,{className:sP().detailLeft,text:iM.SECTION_GETTING_STARTED_DETAIL_LEFT,animation:!0,animationSettings:{...iv.SECTION_GETTING_STARTED_DETAIL_LEFT},effects:[...i_.SECTION_GETTING_STARTED_DETAIL_LEFT]})]}),(0,s.jsxs)(it,{className:sP().rowBlock2,children:[(0,s.jsx)(ip,{text:iD.SECTION_GETTING_STARTED_NUMBER,className:sP().number,animationSettings:{...iv.IMAGE_NUMBER},effects:[...i_.IMAGE_NUMBER]}),(0,s.jsx)(iO,{image:e[iZ.getting_started_tablet],alt:iD.SECTION_GETTING_STARTED_IMAGE_ALT,className:sP().image,id:"tablet_2",index:2}),(0,s.jsx)(iT,{text:iD.SECTION_GETTING_STARTED_CAPTION,paragraphIndent:!1,asciiSettings:{wrapMaxCols:40,className:sP().caption,contentClassName:ic().caption,animationSettings:{...iv.CAPTION,delayOffset:0}}})]}),(0,s.jsxs)(it,{className:sP().rowBlock3,children:[(0,s.jsx)(ip,{className:sP().detailBottom,text:iM.SECTION_GETTING_STARTED_DETAIL_LEFT_2,animationSettings:{...iv.SECTION_GETTING_STARTED_DETAIL_LEFT},effects:[...i_.SECTION_GETTING_STARTED_DETAIL_LEFT]}),(0,s.jsx)(ip,{text:iD.SECTION_GETTING_STARTED_END,className:sP().end,animationSettings:{...iv.SECTION_GETTING_STARTED_DETAIL_END,delayOffset:0},effects:[...i_.SECTION_GETTING_STARTED_DETAIL_END]})]}),(0,s.jsx)(sN,{className:sP().divider})]})},sG={src:"/_next/static/media/guide_how-it-works.843229b4.png",height:4688,width:1536,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAICAYAAAA870V8AAAAb0lEQVR4nGNkYGDgFBIWYvnx/cc3xuDgYM61a9f+a29v/8mYmZmpKSsru9be3v41o5+fn6Cenl60trb2d0YXF5cjAQEBYtu2betl1NXV9UlMTJT4/v37RUagCMP9+/fnAZXqgYxmTE1NtVRWVuYCAK+IJSEGdJInAAAAAElFTkSuQmCC",blurWidth:3,blurHeight:8},sU=a(1094),sV=a.n(sU),sZ=function(){let{assetMap:e}=a1();return(0,s.jsxs)(a7,{sectionId:"how-it-works",className:sV().SectionHowItWorks,guideImage:sG,children:[(0,s.jsxs)(it,{className:sV().rowBlock1,children:[(0,s.jsx)(ip,{className:sV().asterisks,text:iM.SECTION_HOW_IT_WORKS_ASTERISK,animationSettings:{...iv.ASCII_DETAIL_ASTERISKS,delayOffset:0},effects:[...i_.ASCII_DETAIL_ASTERISKS]}),(0,s.jsx)(iz,{className:sV().titleBlock,text:iD.SECTION_HOW_IT_WORKS_TITLE,textAscii:iM.SECTION_HOW_IT_WORKS_TITLE}),(0,s.jsx)(ip,{className:sV().detailRight,text:iM.SECTION_HOW_IT_WORKS_DETAIL_RIGHT,animation:!0,animationSettings:{...iv.SECTION_HOW_IT_WORKS_DETAIL,delayOffset:0},effects:[...i_.SECTION_HOW_IT_WORKS_DETAIL_RIGHT]}),(0,s.jsx)(iT,{className:sV().textBlock,text:iD.SECTION_HOW_IT_WORKS_CONTENT,asciiSettings:{wrapMaxCols:45}})]}),(0,s.jsxs)(it,{className:sV().rowBlock2,children:[(0,s.jsx)(ip,{text:iD.SECTION_HOW_IT_WORKS_NUMBER_1,className:sV().number1,animationSettings:{...iv.IMAGE_NUMBER},effects:[...i_.IMAGE_NUMBER]}),(0,s.jsx)(iO,{className:sV().image1,image:e[iZ.how_it_works_1_tablet],alt:iD.SECTION_HOW_IT_WORKS_IMAGE_ALT_1,id:"tablet_3",index:3}),(0,s.jsx)(iT,{text:iD.SECTION_HOW_IT_WORKS_CAPTION_1,paragraphIndent:!1,asciiSettings:{wrapMaxCols:55,className:sV().caption1,contentClassName:ic().caption,animationSettings:{...iv.CAPTION,delayOffset:0}}}),(0,s.jsx)(ip,{className:sV().detailLeft1,text:iM.SECTION_HOW_IT_WORKS_DETAIL_LEFT_01,animation:!0,animationSettings:{...iv.SECTION_HOW_IT_WORKS_DETAIL,delayOffset:0},effects:[...i_.SECTION_HOW_IT_WORKS_DETAIL_LEFT]})]}),(0,s.jsxs)(it,{className:sV().rowBlock3,children:[(0,s.jsx)(ip,{className:sV().number2,text:iD.SECTION_HOW_IT_WORKS_NUMBER_2,animationSettings:{...iv.IMAGE_NUMBER},effects:[...i_.IMAGE_NUMBER]}),(0,s.jsx)(iO,{className:sV().image2,image:e[iZ.how_it_works_2_tablet],alt:iD.SECTION_HOW_IT_WORKS_IMAGE_ALT_2,id:"tablet_4",index:4}),(0,s.jsx)(iT,{text:iD.SECTION_HOW_IT_WORKS_CAPTION_2,paragraphIndent:!1,asciiSettings:{wrapMaxCols:50,className:sV().caption2,contentClassName:ic().caption,animationSettings:{...iv.CAPTION,delayOffset:0}}})]}),(0,s.jsxs)(it,{className:sV().rowBlock4,children:[(0,s.jsx)(ip,{className:sV().number3,text:iD.SECTION_HOW_IT_WORKS_NUMBER_3,animationSettings:{...iv.IMAGE_NUMBER},effects:[...i_.IMAGE_NUMBER]}),(0,s.jsx)(ip,{className:sV().detailLeft2,text:iM.SECTION_HOW_IT_WORKS_DETAIL_LEFT_02,animationSettings:{...iv.SECTION_HOW_IT_WORKS_DETAIL,delayOffset:0},effects:[...i_.SECTION_HOW_IT_WORKS_DETAIL_RIGHT]}),(0,s.jsx)(iO,{className:sV().image3,image:e[iZ.how_it_works_3_tablet],alt:iD.SECTION_HOW_IT_WORKS_IMAGE_ALT_3,id:"tablet_5",index:5}),(0,s.jsx)(iT,{text:iD.SECTION_HOW_IT_WORKS_CAPTION_3,paragraphIndent:!1,asciiSettings:{wrapMaxCols:55,className:sV().caption3,contentClassName:ic().caption,animationSettings:{...iv.CAPTION,delayOffset:0}}})]}),(0,s.jsx)(sN,{className:sV().divider})]})},sY={src:"/_next/static/media/guide_obstacles.5f5a5d79.png",height:2648,width:1536,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAICAQAAACb+P2wAAAAPElEQVR42iXKSwrAIBAE0WdQ8wGFQBa5/0kdnF4UDVXcpsNe1Vx6MHBqwSpk6gLd8OSdfm+64TN3s+uiLCVfAOTxIpyBAAAAAElFTkSuQmCC",blurWidth:5,blurHeight:8},sq=a(5876),sK=a.n(sq),sz=function(){let{assetMap:e}=a1();return(0,s.jsxs)(a7,{sectionId:"obstacles",className:sK().SectionObstacles,guideImage:sY,children:[(0,s.jsxs)(it,{className:sK().rowBlock1,children:[(0,s.jsx)(iz,{className:sK().titleBlock,text:iD.SECTION_OBSTACLES_TITLE,textAscii:iM.SECTION_OBSTACLES_TITLE}),(0,s.jsx)(ss,{className:sK().obstaclesScene})]}),(0,s.jsxs)(it,{className:sK().rowBlock2,children:[(0,s.jsx)(iT,{className:sK().textBlock,text:iD.SECTION_OBSTACLES_CONTENT,asciiSettings:{wrapMaxCols:"44"}}),(0,s.jsx)(ip,{className:sK().asterisks,text:iD.SECTION_OBSTACLES_ASTERISKS,animationSettings:{...iv.ASCII_DETAIL_ASTERISKS,delayOffset:0},effects:[...i_.ASCII_DETAIL_ASTERISKS]})]}),(0,s.jsx)(sN,{className:sK().divider})]})},sQ={src:"/_next/static/media/guide_microsoft.9532bff5.png",height:3696,width:1536,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAICAQAAACW5o33AAAAO0lEQVR42mNgYANCLgYgEABCIOBj4GVg4GYQZWBmEJCwVGxkZWBgOcCwmYEhS65tcdNkBg/jtf83fAAAausJgS+hI2AAAAAASUVORK5CYII=",blurWidth:3,blurHeight:8},sJ=a(4125),sX=a.n(sJ),s$=function(){let{assetMap:e}=a1();return(0,s.jsxs)(a7,{sectionId:"microsoft",className:sX().SectionMicrosoft,guideImage:sQ,children:[(0,s.jsxs)(it,{className:sX().rowBlock1,children:[(0,s.jsx)(iz,{className:sX().titleBlockLeft,text:iD.SECTION_MICROSOFT_TITLE,textAscii:iM.SECTION_MICROSOFT_TITLE}),(0,s.jsx)(iz,{className:sX().titleBlockRight,textAscii:iM.SECTION_MICROSOFT_TITLE_2,asciiSettings:{animationSettings:{...iv.SECTION_MICROSOFT_TITLE,delayOffset:0}}}),(0,s.jsx)(ip,{className:sX().date,text:iD.SECTION_MICROSOFT_DATE,animationSettings:{...iv.SECTION_MICROSOFT_DATE},effects:[...i_.SECTION_MICROSOFT_DATE]})]}),(0,s.jsxs)(it,{className:sX().rowBlock2,children:[(0,s.jsx)(iT,{className:sX().textBlock,text:iD.SECTION_MICROSOFT_CONTENT,links:iD.SECTION_MICROSOFT_LINKS_TABLET,asciiSettings:{wrapMaxCols:"44"}}),(0,s.jsx)(ip,{className:sX().detailLeft,text:iM.SECTION_MICROSOFT_DETAIL_LEFT,animationSettings:{...iv.IMAGE_NUMBER,delayOffset:0},effects:[...i_.SECTION_MICROSOFT_DETAIL_LEFT]})]}),(0,s.jsxs)(it,{className:sX().rowBlock3,children:[(0,s.jsx)(ip,{className:sX().microsoftLogo,text:iM.SECTION_MICROSOFT_LOGO,animation:!0,animationSettings:{...iv.SECTION_MICROSOFT_LOGO,delayOffset:0},effects:[...i_.SECTION_MICROSOFT_LOGO]}),(0,s.jsx)(ip,{className:sX().detailRight,text:iM.SECTION_MICROSOFT_DETAIL_RIGHT,animationSettings:{...iv.SECTION_MICROSOFT_DETAIL,delayOffset:0},effects:[...i_.SECTION_MICROSOFT_DETAIL_LEFT]})]}),(0,s.jsxs)(it,{className:sX().rowBlock4,children:[(0,s.jsx)(ip,{className:sX().number,text:iD.SECTION_MICROSOFT_NUMBER,animationSettings:{...iv.IMAGE_NUMBER},effects:[...i_.IMAGE_NUMBER]}),(0,s.jsx)(iO,{className:sX().image,image:e[iZ.microsoft_tablet],alt:iD.SECTION_MICROSOFT_IMAGE_ALT,id:"tablet_6",index:6}),(0,s.jsx)(ip,{className:sX().detailBottom,text:iM.SECTION_MICROSOFT_DETAIL_END,animationSettings:{...iv.SECTION_MICROSOFT_DETAIL_END},effects:[...i_.SECTION_DOWNLOAD_DETAIL_LEFT]})]})]})},s0={src:"/_next/static/media/guide_download.f672479f.png",height:1446,width:1536,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAQAAABuBnYAAAAAVklEQVR42mNgYGFgZEABTEAhGGRmAAMuBmEGATBkYQADbqCAEIMoUIIBrF1WQFRKWlBKSFxMmZsBBNwFzWTtRe1FTeXcBRmwgP+T/0/+B8Qg+HvKnykARDQQV1+Rm/AAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},s1=a(7227),s2=a.n(s1),s4=function(){return(0,s.jsx)(a7,{sectionId:"download",className:s2().SectionDownload,guideImage:s0,children:(0,s.jsxs)(it,{className:s2().rowBlock1,children:[(0,s.jsx)(ip,{className:s2().frame,text:iM.SECTION_DOWNLOAD_FRAME,animationSettings:{...iv.DOWNLOAD_FRAME},effects:[...i_.DOWNLOAD_FRAME]}),(0,s.jsx)(iz,{className:s2().titleBlock,text:iD.SECTION_DOWNLOAD_TITLE,textAscii:iM.SECTION_DOWNLOAD_TITLE}),(0,s.jsx)(iT,{paragraphIndent:!1,className:s2().info,text:iD.SECTION_DOWNLOAD_INFO,alt:iD.SECTION_DOWNLOAD_INFO,asciiSettings:{wrapMaxCols:42,animationSettings:{...iv.DOWNLOAD_INFO}}}),(0,s.jsx)(sp,{frameAscii:iM.SECTION_DOWNLOAD_BUTTON_FRAME,frameAsciiRollover:iM.SECTION_DOWNLOAD_BUTTON_FRAME_ROLLOVER}),(0,s.jsx)(it,{className:s2().rowBlock2,children:(0,s.jsx)(ip,{className:s2().detailRight,text:iM.SECTION_DOWNLOAD_DETAIL_RIGHT,animationSettings:{...iv.ASCII_DETAIL,delayOffset:.5},effects:[...i_.SECTION_DOWNLOAD_DETAIL_RIGHT]})})]})})},s3=a(6902),s5=a.n(s3),s8=function(){return(0,s.jsxs)("div",{className:s5().SourceCodeTablet,children:[(0,s.jsx)(sy,{}),(0,s.jsx)(sO,{}),(0,s.jsx)(sD,{}),(0,s.jsx)(sZ,{}),(0,s.jsx)(sW,{}),(0,s.jsx)(sz,{}),(0,s.jsx)(s$,{}),(0,s.jsx)(s4,{})]})},s6=a(9657),s7=a.n(s6),s9=function(e){let{className:t}=e;return(0,s.jsx)("div",{className:"".concat(s7().Divider," ").concat(t),children:(0,s.jsx)("div",{className:s7().dividerContainer,children:(0,s.jsx)(ip,{className:s7().dividerBlock,contentClassName:s7().content,text:iR.DIVIDER,animation:!0,animationSettings:{...iv.DIVIDER_MOBILE},effects:[...i_.DIVIDER],inViewAppearRootMargin:"0px 0px -10% 0px"})})})},ne={src:"/_next/static/media/guide_header.f7d4ccf6.png",height:1538,width:781,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAICAQAAAB0OpaOAAAAS0lEQVR42gWAsQmAMBAA75NPockrqJ0IBoKFIJau4gouY+syDhfIugRUAgzkZmXjsXuiGxO/vTPuEygcttOSznhRgoLSE/EgODxSAeG5BVM2GoMcAAAAAElFTkSuQmCC",blurWidth:4,blurHeight:8},nt=a(7070),na=a.n(nt),ni=function(){let{assetMap:e,article:t}=a1(),{author:a,published:i}=t;return(0,s.jsx)(a7,{sectionId:"header",className:na().SectionHeader,guideImage:ne,guideOffset:-64,children:(0,s.jsxs)(it,{className:na().rowBlock1,children:[(0,s.jsx)(iP,{}),(0,s.jsx)(ip,{className:na().detailLeft,text:iR.HEADER_DETAIL_LEFT,animation:ip.REVEAL_ANIMS.TYPE_REVEAL_DETAILS,animationSettings:{...iv.SECTION_HEADER_DETAIL_LEFT},effects:[...i_.HEADER_DETAILS]}),(0,s.jsx)(ip,{className:na().detailRight,text:iR.HEADER_DETAIL_RIGHT,animation:ip.REVEAL_ANIMS.TYPE_REVEAL_DETAILS,animationSettings:{...iv.SECTION_HEADER_DETAIL_RIGHT},effects:[...i_.HEADER_DETAILS]}),(0,s.jsx)(iO,{image:e[iZ.header_author_desktop],alt:iD.SECTION_HEADER_IMAGE_ALT,className:na().authorImage,id:"mobile_header",index:-1,animationSettings:{...iv.SECTION_HEADER_IMAGE}}),(0,s.jsx)(ip,{className:na().articleAuthorBy,contentClassName:ic().contentBody,text:"".concat(iD.HEADER_AUTHOR_BY),alt:void 0,animation:ip.REVEAL_ANIMS.TYPE_REVEAL_ARTICLE_INFO,animationSettings:{...iv.SECTION_HEADER_AUTHOR_BY},effects:[...i_.HEADER_INFO]}),(0,s.jsx)(ip,{className:na().articleAuthor,contentClassName:ic().contentBodyBold,text:a,alt:"".concat(iD.HEADER_AUTHOR_BY).concat(a),animation:ip.REVEAL_ANIMS.TYPE_REVEAL_ARTICLE_INFO,animationSettings:{...iv.SECTION_HEADER_AUTHOR},effects:[...i_.HEADER_INFO]}),(0,s.jsx)(ip,{className:na().articlePublished,contentClassName:ic().contentBody,text:i,alt:i,animation:ip.REVEAL_ANIMS.TYPE_REVEAL_ARTICLE_INFO,animationSettings:{...iv.SECTION_HEADER_PUBLISHED},effects:[...i_.HEADER_INFO]}),(0,s.jsx)(ip,{className:na().eyebrow,contentClassName:na().eyebrowContent,text:iD.HEADER_EYEBROW,alt:iD.HEADER_EYEBROW,animation:ip.REVEAL_ANIMS.TYPE_REVEAL_ARTICLE_INFO,animationSettings:{...iv.SECTION_HEADER_EYEBROW},enableReactivity:!1}),(0,s.jsx)(ip,{className:na().title,contentClassName:na().titleContent,text:iD.HEADER_TITLE,alt:iD.HEADER_TITLE,altTag:"h2",wrapMaxCols:24,animation:ip.REVEAL_ANIMS.TYPE_REVEAL_ARTICLE_TITLE,animationSettings:{...iv.SECTION_HEADER_TITLE},enableReactivity:!1}),(0,s.jsx)(iT,{paragraphIndent:!1,className:na().body,contentClassName:ic().contentBody,text:iD.HEADER_BODY,alt:iD.HEADER_BODY,asciiSettings:{wrapMaxCols:28,animation:ip.REVEAL_ANIMS.TYPE_REVEAL_ARTICLE_INTRO_COPY,animationSettings:{...iv.SECTION_HEADER_INTRO_COPY},effects:[]}}),(0,s.jsx)(s9,{breakpoint:"mobile",className:na().divider})]})})},ns={src:"/_next/static/media/guide_code.b60b3049.png",height:4602,width:780,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAICAQAAACSE13KAAAAIElEQVR42mP4z8CwOZVh+xYGBjaGOmmGxXkMDLwMrhwAU4kFjd+gykgAAAAASUVORK5CYII=",blurWidth:1,blurHeight:8},nn=a(4231),nr=a.n(nn),no=function(){let{assetMap:e}=a1();return(0,s.jsxs)(a7,{sectionId:"code",className:nr().SectionCode,guideImage:ns,children:[(0,s.jsxs)(it,{className:nr().rowBlock1,children:[(0,s.jsx)(iz,{text:iD.SECTION_CODE_TITLE,textAscii:iR.SECTION_CODE_TITLE,className:nr().titleBlock}),(0,s.jsx)(iT,{text:iD.SECTION_CODE_CONTENT_PART1+"\n"+iD.SECTION_CODE_CONTENT_PART2+"\n"+iD.SECTION_CODE_CONTENT_PART3+"\n"+iD.SECTION_CODE_CONTENT_PART4,className:nr().textBlock1,asciiSettings:{wrapMaxCols:"30"}})]}),(0,s.jsxs)(it,{className:nr().rowBlock2,children:[(0,s.jsx)(iO,{image:e[iZ.pattern_shadow_mobile],className:nr().image1shadow,id:"mobile_shadow",staticImage:!0}),(0,s.jsx)(iO,{image:e[iZ.code_mobile],alt:iD.SECTION_CODE_IMAGE_ALT,className:nr().image1,useAlpha:!1,id:"mobile_0",index:0}),(0,s.jsx)(iT,{text:iD.SECTION_CODE_CAPTION,paragraphIndent:!1,asciiSettings:{wrapMaxCols:29,className:nr().caption,contentClassName:ic().caption,animationSettings:{...iv.CAPTION,delayOffset:0}}}),(0,s.jsx)(iT,{text:iD.SECTION_CODE_CONTENT_PART5+"\n"+iD.SECTION_CODE_CONTENT_PART6,className:nr().textBlock2,paragraphIndent:!1,asciiSettings:{wrapMaxCols:"30"}}),(0,s.jsx)(ip,{text:iD.SECTION_CODE_NUMBER,className:nr().number,animationSettings:{...iv.IMAGE_NUMBER},effects:[...i_.IMAGE_NUMBER]}),(0,s.jsx)(ip,{text:iD.SECTION_CODE_CAPTION_ASTERISK,className:nr().asterisks,animationSettings:{...iv.ASCII_DETAIL_ASTERISKS,delayOffset:0},effects:[...i_.ASCII_DETAIL_ASTERISKS]})]}),(0,s.jsxs)(it,{className:nr().rowBlock3,children:[(0,s.jsx)(iO,{image:e[iZ.code_2_mobile],alt:iD.SECTION_CODE_IMAGE_2_ALT,className:nr().image2,id:"mobile_0_2",index:0}),(0,s.jsx)(iT,{text:iD.SECTION_CODE_CAPTION_2,paragraphIndent:!1,asciiSettings:{wrapMaxCols:30,className:nr().caption2,contentClassName:ic().caption,animationSettings:{...iv.CAPTION,delayOffset:0}}}),(0,s.jsx)(ip,{text:iD.SECTION_CODE_NUMBER_2,className:nr().number2,animationSettings:{...iv.IMAGE_NUMBER},effects:[...i_.IMAGE_NUMBER]}),(0,s.jsx)(ip,{className:nr().detailEnd,text:iR.SECTION_CODE_DETAIL_END,animationSettings:{...iv.IMAGE_NUMBER,delayOffset:0},effects:[...i_.BASIC_DETAIL]}),(0,s.jsx)(iT,{text:iD.SECTION_CODE_CONTENT_PART7,className:nr().textBlock3,paragraphIndent:!1,asciiSettings:{wrapMaxCols:30}}),(0,s.jsx)(iT,{text:iD.SECTION_CODE_CONTENT_PART8,className:nr().textBlock4,paragraphIndent:!1,asciiSettings:{wrapMaxCols:25}}),(0,s.jsx)(s9,{className:nr().divider})]})]})},nl={src:"/_next/static/media/guide_basics.24bfd661.png",height:2864,width:780,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAAICAQAAAB5JObJAAAAMUlEQVR42mNg4GRgYbAS8xZiYBBi4GY4q3hLg+HxogcPGe7zPBFgYGBjYGVw4PHlAQCa4gidgJAs8gAAAABJRU5ErkJggg==",blurWidth:2,blurHeight:8},nc=a(3432),nd=a.n(nc),nm=function(){let{assetMap:e}=a1();return(0,s.jsxs)(a7,{sectionId:"basics",className:nd().SectionBasics,guideImage:nl,children:[(0,s.jsxs)(it,{className:nd().rowBlock1,children:[(0,s.jsx)(iz,{text:iD.SECTION_BASICS_TITLE,textAscii:iR.SECTION_BASICS_TITLE,className:nd().titleBlock}),(0,s.jsx)(iT,{text:iD.SECTION_BASICS_CONTENT,className:nd().textBlock,asciiSettings:{wrapMaxCols:"37"}})]}),(0,s.jsxs)(it,{className:nd().rowBlock2,children:[(0,s.jsx)(iO,{image:e[iZ.basics_mobile],useAlpha:!0,alt:iD.SECTION_BASICS_IMAGE_ALT,className:nd().image1,id:"mobile_1",index:1}),(0,s.jsx)(ip,{text:iD.SECTION_BASICS_NUMBER,className:nd().number,animationSettings:{...iv.IMAGE_NUMBER},effects:[...i_.IMAGE_NUMBER]}),(0,s.jsx)(ip,{className:nd().detailRight,text:iR.SECTION_BASICS_DETAIL_RIGHT,animation:!0,animationSettings:{...iv.SECTION_BASICS_DETAIL_RIGHT,delayOffset:0},effects:[...i_.SECTION_BASICS_DETAIL]}),(0,s.jsx)(ip,{className:nd().line,text:iR.SECTION_BASICS_LINE,animation:!0,animationSettings:{...iv.SECTION_BASICS_LINE,delayOffset:0},effects:[...i_.BASIC_LINE]}),(0,s.jsx)(ip,{className:nd().detailLeft,text:iR.SECTION_BASICS_DETAIL_LEFT,animation:!0,animationSettings:{...iv.SECTION_BASICS_DETAIL_RIGHT,delayOffset:0},effects:[...i_.SECTION_BASICS_DETAIL]}),(0,s.jsx)(ip,{className:nd().ticker,text:iR.SECTION_BASIC_TICKER,contentClassName:nd().tickerAsciiContent,ticker:!0,tickerSettings:{interval:2,numCols:45},animation:!0,animationSettings:{...iv.SECTION_BASICS_TICKER,delayOffset:0},effects:[...i_.SECTION_BASICS_TICKER]})]})]})},nu={src:"/_next/static/media/guide_getting-started.401dedc3.png",height:2630,width:780,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAAICAQAAAB5JObJAAAAKElEQVR42mNg4GAAAi4GfgYGEUZRBjchbyEGMOhbv2I9Q23ehDwwDwBHXwV+ZXMcngAAAABJRU5ErkJggg==",blurWidth:2,blurHeight:8},nh=a(8098),ng=a.n(nh),np=function(){let{assetMap:e}=a1();return(0,s.jsxs)(a7,{sectionId:"getting-started",className:ng().SectionGettingStarted,guideImage:nu,children:[(0,s.jsxs)(it,{className:ng().rowBlock1,children:[(0,s.jsx)(iz,{text:iD.SECTION_GETTING_STARTED_TITLE,textAscii:iR.SECTION_GETTING_STARTED_TITLE,className:ng().titleBlock}),(0,s.jsx)(ip,{className:ng().detailLeft1,text:iR.SECTION_GETTING_STARTED_DETAIL_LEFT_1,animation:!0,animationSettings:{...iv.SECTION_GETTING_STARTED_DETAIL_LEFT},effects:[...i_.SECTION_GETTING_STARTED_DETAIL_LEFT]}),(0,s.jsx)(iT,{text:iD.SECTION_GETTING_STARTED_CONTENT,className:ng().textBlock,asciiSettings:{wrapMaxCols:"30"}})]}),(0,s.jsxs)(it,{className:ng().rowBlock2,children:[(0,s.jsx)(ip,{className:ng().detailLeft2,text:iR.SECTION_GETTING_STARTED_DETAIL_LEFT_2,animation:!0,animationSettings:{...iv.SECTION_GETTING_STARTED_DETAIL_LEFT},effects:[...i_.SECTION_GETTING_STARTED_DETAIL_LEFT]}),(0,s.jsx)(ip,{text:iD.SECTION_GETTING_STARTED_NUMBER,className:ng().number,animationSettings:{...iv.IMAGE_NUMBER},effects:[...i_.IMAGE_NUMBER]}),(0,s.jsx)(iO,{image:e[iZ.getting_started_mobile],alt:iD.SECTION_GETTING_STARTED_IMAGE_ALT,className:ng().image1,id:"mobile_2",index:2}),(0,s.jsx)(iT,{text:iD.SECTION_GETTING_STARTED_CAPTION,className:ng().caption,paragraphIndent:!1,asciiSettings:{className:ng().caption,contentClassName:ic().caption,animationSettings:{...iv.CAPTION,delayOffset:0}}}),(0,s.jsx)(ip,{text:iD.SECTION_GETTING_STARTED_END,className:ng().end,animationSettings:{...iv.SECTION_GETTING_STARTED_DETAIL_END,delayOffset:0},effects:[...i_.SECTION_GETTING_STARTED_DETAIL_END]})]}),(0,s.jsx)(s9,{className:ng().divider})]})},n_={src:"/_next/static/media/guide_how-it-works.b7eca948.png",height:3716,width:780,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAAICAQAAAB5JObJAAAAMElEQVR42mOQ5rPjYmAQZeBiSFJcrcBQnrx2OUNuRXUCQ3Zqly9Dve22xQzuQrlKAK4sCnH0eukjAAAAAElFTkSuQmCC",blurWidth:2,blurHeight:8},nv=a(1483),nf=a.n(nv),nx=function(){let{assetMap:e}=a1();return(0,s.jsxs)(a7,{sectionId:"how-it-works",className:nf().SectionHowItWorks,guideImage:n_,children:[(0,s.jsxs)(it,{className:nf().rowBlock1,children:[(0,s.jsx)(iz,{text:iD.SECTION_HOW_IT_WORKS_TITLE,textAscii:iR.SECTION_HOW_IT_WORKS_TITLE,className:nf().titleBlock}),(0,s.jsx)(ip,{text:iD.SECTION_HOW_IT_WORKS_ASTERISKS,className:nf().asterisks,animationSettings:{...iv.ASCII_DETAIL_ASTERISKS,delayOffset:0},effects:[...i_.ASCII_DETAIL_ASTERISKS]}),(0,s.jsx)(iT,{text:iD.SECTION_HOW_IT_WORKS_CONTENT,className:nf().textBlock,asciiSettings:{wrapMaxCols:32}})]}),(0,s.jsxs)(it,{className:nf().rowBlock2,children:[(0,s.jsx)(ip,{text:iD.SECTION_HOW_IT_WORKS_NUMBER_1,className:nf().number1,animationSettings:{...iv.IMAGE_NUMBER},effects:[...i_.IMAGE_NUMBER]}),(0,s.jsx)(iO,{image:e[iZ.how_it_works_1_mobile],alt:iD.SECTION_HOW_IT_WORKS_IMAGE_ALT_1,className:nf().image1,id:"mobile_3",index:3}),(0,s.jsx)(iT,{text:iD.SECTION_HOW_IT_WORKS_CAPTION_1,paragraphIndent:!1,asciiSettings:{wrapMaxCols:35,className:nf().caption1,contentClassName:ic().caption,animationSettings:{...iv.CAPTION,delayOffset:0}}}),(0,s.jsx)(ip,{className:nf().detailLeft,text:iR.SECTION_HOW_IT_WORKS_DETAIL_LEFT,animation:!0,animationSettings:{...iv.SECTION_HOW_IT_WORKS_DETAIL,delayOffset:0},effects:[...i_.SECTION_HOW_IT_WORKS_DETAIL_LEFT]})]}),(0,s.jsxs)(it,{className:nf().rowBlock3,children:[(0,s.jsx)(ip,{text:iD.SECTION_HOW_IT_WORKS_NUMBER_2,className:nf().number2,animationSettings:{...iv.IMAGE_NUMBER},effects:[...i_.IMAGE_NUMBER]}),(0,s.jsx)(iO,{image:e[iZ.how_it_works_2_mobile],alt:iD.SECTION_HOW_IT_WORKS_IMAGE_ALT_2,className:nf().image2,id:"mobile_4",index:4}),(0,s.jsx)(iT,{text:iD.SECTION_HOW_IT_WORKS_CAPTION_2,paragraphIndent:!1,asciiSettings:{wrapMaxCols:29,className:nf().caption2,contentClassName:ic().caption,animationSettings:{...iv.CAPTION,delayOffset:0}}}),(0,s.jsx)(ip,{className:nf().detailLeft2,text:iR.SECTION_HOW_IT_WORKS_DETAIL_LEFT_2,animationSettings:{...iv.SECTION_HOW_IT_WORKS_DETAIL,delayOffset:0},effects:[...i_.SECTION_HOW_IT_WORKS_DETAIL_RIGHT]})]}),(0,s.jsxs)(it,{className:nf().rowBlock4,children:[(0,s.jsx)(ip,{text:iD.SECTION_HOW_IT_WORKS_NUMBER_3,className:nf().number3,animationSettings:{...iv.IMAGE_NUMBER},effects:[...i_.IMAGE_NUMBER]}),(0,s.jsx)(iO,{image:e[iZ.how_it_works_3_mobile],alt:iD.SECTION_HOW_IT_WORKS_IMAGE_ALT_3,className:nf().image3,id:"mobile_5",index:5}),(0,s.jsx)(iT,{text:iD.SECTION_HOW_IT_WORKS_CAPTION_3,paragraphIndent:!1,asciiSettings:{wrapMaxCols:30,className:nf().caption3,contentClassName:ic().caption,animationSettings:{...iv.CAPTION,delayOffset:0}}})]}),(0,s.jsx)(s9,{className:nf().divider})]})},nb={src:"/_next/static/media/guide_obstacles.18ecff5e.png",height:2562,width:780,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAAICAQAAAB5JObJAAAAJklEQVR42hXGMQoAIAwEsICtiyB08P9flVtCODYdysqa8biGTKkPCqQAoYzsWk4AAAAASUVORK5CYII=",blurWidth:2,blurHeight:8},nC=a(8817),nS=a.n(nC),nI=function(){let{assetMap:e}=a1();return(0,s.jsxs)(a7,{sectionId:"obstacles",className:nS().SectionObstacles,guideImage:nb,children:[(0,s.jsxs)(it,{className:nS().rowBlock1,children:[(0,s.jsx)(iz,{text:iD.SECTION_OBSTACLES_TITLE,textAscii:iR.SECTION_OBSTACLES_TITLE,className:nS().titleBlock}),(0,s.jsx)(ss,{className:nS().obstaclesScene})]}),(0,s.jsxs)(it,{className:nS().RowBlock2,children:[(0,s.jsx)(ip,{text:iD.SECTION_OBSTACLES_ASTERISKS,className:nS().asterisks,animationSettings:{...iv.ASCII_DETAIL_ASTERISKS,delayOffset:0},effects:[...i_.ASCII_DETAIL_ASTERISKS]}),(0,s.jsx)(iT,{text:iD.SECTION_OBSTACLES_CONTENT,className:nS().textBlock,asciiSettings:{wrapMaxCols:"30"}})]}),(0,s.jsx)(s9,{className:nS().divider})]})},nT={src:"/_next/static/media/guide_microsoft.4c881ed9.png",height:3828,width:780,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAAICAQAAAB5JObJAAAALklEQVR42mNg4GBgZ2AQZeAFEVwMDPwM3AyKgmJSDAwsDMwMMQq+cgxznix9AgAhkQTENF/efwAAAABJRU5ErkJggg==",blurWidth:2,blurHeight:8},nN=a(7454),nE=a.n(nN),nw=function(){let{assetMap:e}=a1();return(0,s.jsxs)(a7,{sectionId:"microsoft",className:nE().SectionMicrosoft,guideImage:nT,children:[(0,s.jsxs)(it,{className:nE().rowBlock1,children:[(0,s.jsx)(iz,{text:iD.SECTION_MICROSOFT_TITLE,textAscii:iR.SECTION_MICROSOFT_TITLE,className:nE().titleBlock1}),(0,s.jsx)(ip,{className:nE().date,text:iD.SECTION_MICROSOFT_DATE,animationSettings:{...iv.SECTION_MICROSOFT_DATE},effects:[...i_.SECTION_MICROSOFT_DATE]}),(0,s.jsx)(iz,{textAscii:iR.SECTION_MICROSOFT_TITLE_2,className:nE().titleBlock2,asciiSettings:{animationSettings:{...iv.SECTION_MICROSOFT_TITLE,delayOffset:0}}}),(0,s.jsx)(iT,{text:iD.SECTION_MICROSOFT_CONTENT,links:iD.SECTION_MICROSOFT_LINKS_MOBILE,className:nE().textBlock,asciiSettings:{wrapMaxCols:"32"}})]}),(0,s.jsxs)(it,{className:nE().rowBlock2,children:[(0,s.jsx)(ip,{className:nE().logo,text:iR.SECTION_MICROSOFT_LOGO,animation:!0,animationSettings:{...iv.SECTION_MICROSOFT_LOGO,delayOffset:0},effects:[...i_.SECTION_MICROSOFT_LOGO]}),(0,s.jsx)(ip,{className:nE().detailLeft,text:iR.SECTION_MICROSOFT_DETAIL_LEFT,animation:!0,animationSettings:{...iv.SECTION_MICROSOFT_DETAIL,delayOffset:0},effects:[...i_.SECTION_MICROSOFT_DETAIL_LEFT]}),(0,s.jsx)(ip,{className:nE().number,text:iD.SECTION_MICROSOFT_NUMBER,animationSettings:{...iv.IMAGE_NUMBER},effects:[...i_.IMAGE_NUMBER]}),(0,s.jsx)(iO,{image:e[iZ.microsoft_mobile],alt:iD.SECTION_MICROSOFT_IMAGE_ALT,className:nE().image1,id:"mobile_6",index:6}),(0,s.jsx)(ip,{className:nE().detailRight,text:iR.SECTION_MICROSOFT_DETAIL_END,animation:!0,animationSettings:{...iv.SECTION_MICROSOFT_DETAIL_END},effects:[...i_.SECTION_DOWNLOAD_DETAIL_LEFT]})]})]})},nk={src:"/_next/static/media/guide_download.96b936aa.png",height:1616,width:780,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAICAQAAAB0OpaOAAAAP0lEQVR42g2GsRGAMBDD5OQhBdTMweIswUT0IXH+7JMEIIDKlivkD1rSgTKCHjf+Wz93cVEQQ059vFXzkS1rARfSDe9CF6YgAAAAAElFTkSuQmCC",blurWidth:4,blurHeight:8},ny=a(4678),nA=a.n(ny),nj=function(){return(0,s.jsx)(a7,{sectionId:"download",className:nA().SectionDownload,guideImage:nk,children:(0,s.jsxs)(it,{className:nA().rowBlock1,children:[(0,s.jsx)(ip,{className:nA().frame,text:iR.SECTION_DOWNLOAD_FRAME,animationSettings:{...iv.DOWNLOAD_FRAME},effects:[...i_.DOWNLOAD_FRAME]}),(0,s.jsx)(iz,{text:iD.SECTION_DOWNLOAD_TITLE,textAscii:iR.SECTION_DOWNLOAD_TITLE,className:nA().titleBlock}),(0,s.jsx)(iT,{paragraphIndent:!1,className:nA().info,text:iD.SECTION_DOWNLOAD_INFO,alt:iD.SECTION_DOWNLOAD_INFO,asciiSettings:{wrapMaxCols:30,animationSettings:{...iv.DOWNLOAD_INFO}},effects:[...i_.DOWNLOAD_FRAME]}),(0,s.jsx)(sp,{frameAscii:iR.SECTION_DOWNLOAD_BUTTON_FRAME,frameAsciiRollover:iR.SECTION_DOWNLOAD_BUTTON_FRAME_ROLLOVER}),(0,s.jsx)(ip,{className:nA().detail,text:iR.SECTION_DOWNLOAD_INFO_DETAIL,animationSettings:{...iv.ASCII_DETAIL,delayOffset:.6},effects:[...i_.SECTION_DOWNLOAD_DETAIL_RIGHT]})]})})},nL=a(3500),nO=a.n(nL),nB=function(){return(0,s.jsxs)("div",{className:nO().SourceCodeMobile,children:[(0,s.jsx)(ni,{}),(0,s.jsx)(no,{}),(0,s.jsx)(nm,{}),(0,s.jsx)(nx,{}),(0,s.jsx)(np,{}),(0,s.jsx)(nI,{}),(0,s.jsx)(nw,{}),(0,s.jsx)(nj,{})]})},nR=a(8726),nM=a.n(nR);i=a(9079).Z;var nD=function(e){let{pageContainer:t}=e,a=(0,n.useRef)(null),r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useEffect)(()=>(a.current&&i&&(o.current=new i({element:r.current,pageContainer:t})),()=>{var e;null===(e=o.current)||void 0===e||e.destroy(),o.current=null}),[a]),(0,s.jsx)("div",{className:nM().SourceCodeGLLayer,ref:a,children:(0,s.jsx)("div",{className:nM().canvasParent,ref:r})})},nH=function(e){let{config:t}=e,a=(0,n.useRef)(null),i=a5(a);return(0,s.jsx)(a2,{containerRef:a,article:t.article,assetMap:t.assetMap,children:(0,s.jsxs)("div",{className:"".concat(aY().SourceCode),ref:a,children:["mobile"===i&&(0,s.jsx)(nB,{})||"tablet"===i&&(0,s.jsx)(s8,{})||(0,s.jsx)(sS,{}),void 0!==i&&(0,s.jsx)(nD,{pageContainer:a.current})]})})};let nF={"basics_desktop.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/7c1ce251-6476-49e3-8de4-345d9d958e50/basics_desktop.webp","basics_mobile.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/86b79873-f424-4677-b607-55643921c618/basics_mobile.webp","basics_tablet.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/1855fd27-3fd4-4f96-a990-92a6756f0827/basics_tablet.webp","code_1_desktop.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/cd473f74-1dab-440d-83c5-61668e8f86d6/code_1_desktop.webp","code_1_mobile.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/af08381d-a580-4426-8f73-5baa37475d4c/code_1_mobile.webp","code_1_tablet.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/10ab6716-6f53-41d1-83d8-f453c29fe818/code_1_tablet.webp","code_2_desktop.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/cc141f07-e58d-4bc8-881c-73bddc99ca59/code_2_desktop.webp","code_2_mobile.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/c6f5fb2e-e58e-4263-9cbf-c2cd1f8211e7/code_2_mobile.webp","code_2_tablet.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/5985a667-c194-4de7-b226-b53f19230946/code_2_tablet.webp","code_desktop.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/0f7cf208-5db8-4245-9436-d422e7288af1/code_desktop.webp","code_mobile.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/9c1540ec-4735-4220-9065-fda75aff7717/code_mobile.webp","code_tablet.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/e9668edb-8727-4ce4-8cd6-1e775952ecb2/code_tablet.webp","getting-started_desktop.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/9089c2c6-6fd7-40f9-9d3a-e69f9ecefa58/getting-started_desktop.webp","getting-started_mobile.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/1c926cc7-33a2-478c-b8f7-9ed142e6f066/getting-started_mobile.webp","getting-started_tablet.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/0ec84a61-65d8-4148-ac73-bb3c74b44b15/getting-started_tablet.webp","header_author_desktop.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/ec473112-6582-466e-b7a7-dfa91db5b0c0/header_author_desktop.webp","how-it-works_1_desktop.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/4581e4d7-23f0-441f-a7ee-260900e37d07/how-it-works_1_desktop.webp","how-it-works_1_mobile.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/f48cebff-b8ba-4990-af8c-985dd26bd3da/how-it-works_1_mobile.webp","how-it-works_1_tablet.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/bf428e2f-687f-4518-a2c0-d44a6465dac6/how-it-works_1_tablet.webp","how-it-works_2_desktop.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/8ff0ecab-acc2-46fe-9086-b2bcef8440ec/how-it-works_2_desktop.webp","how-it-works_2_mobile.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/ad4da78b-5d2f-40d7-a263-05d2557cfe49/how-it-works_2_mobile.webp","how-it-works_2_tablet.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/e0c7b953-6846-4ed3-9a5e-4521db481dea/how-it-works_2_tablet.webp","how-it-works_3_desktop.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/be240723-9b50-4560-8878-c73375ad78c9/how-it-works_3_desktop.webp","how-it-works_3_mobile.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/bfde48a3-0cd8-4e3c-8dd1-a3f299e0e049/how-it-works_3_mobile.webp","how-it-works_3_tablet.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/90299994-e31a-4a60-8335-ffbbb4b7be4a/how-it-works_3_tablet.webp","microsoft_desktop.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/408d4ccf-0827-4a72-a7d4-ca2956ca17f6/microsoft_desktop.webp","microsoft_mobile.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/5bddc3c9-abbb-4a4c-9d82-2cc43c094106/microsoft_mobile.webp","microsoft_tablet.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/cead0ba2-65da-4217-a619-8b8d349e383d/microsoft_tablet.webp","pattern_shadow_desktop.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/c2d620a1-4b30-4334-81a6-539d0c204b93/pattern_shadow_desktop.webp","pattern_shadow_mobile.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/972c86a6-aeb1-4f64-873f-8ac4830e99de/pattern_shadow_mobile.webp","pattern_shadow_tablet.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/52aecf0c-f72c-4b5c-831b-b8f1386879df/pattern_shadow_tablet.webp"};var nP=nF;let nW=nP,nG={article:{published:"April 2, 2025",author:"Bill Gates"},assetMap:nW};var nU=nG,nV=a(5842),nZ=a.n(nV),nY=a(9366);let nq={mobile:767,tablet:1279},nK=(e,t)=>e<=nq.mobile?t&&t>1?"desktop":"mobile":!(e<=nq.tablet)||t&&t>1?"desktop":"tablet";function nz(){let[e,t]=(0,n.useState)(()=>nY.ZP.isClient?nY.ZP.breakpoint:"desktop"),a=(0,n.useCallback)(()=>{if(!nY.ZP.isClient||!nY.ZP.isInitialized)return;let a=nY.ZP.windowWidth,i=nY.ZP.canvasWidth,s=nY.ZP.canvasHeight;if(0===a||0===i||0===s){console.log("useBreakpoint: Skipping calculation - dimensions not ready.");return}let n=s>0?i/s:0,r=nK(a,n);r!==nY.ZP.breakpoint?(nY.ZP.setBreakpoint(r),t(r)):e!==nY.ZP.breakpoint&&t(nY.ZP.breakpoint)},[e]);return(0,n.useEffect)(()=>{if(!nY.ZP.isClient)return;let e=setTimeout(a,50),t=nY.ZP.subscribeToResize(a);return()=>{clearTimeout(e),t()}},[a]),e}let nQ=(0,n.createContext)(null);function nJ(e){let{children:t}=e,a=nz(),[i,r]=(0,n.useState)(0);(0,n.useEffect)(()=>{if(!nY.ZP.isClient)return;let e=()=>r(e=>e+1),t=nY.ZP.subscribeToConfig(e);return t},[]);let o=(0,n.useMemo)(()=>({breakpoint:a,currentSectionIndex:nY.ZP.currentSectionIndex,deviceConfig:nY.ZP.deviceConfig,sectionConfig:nY.ZP.sectionConfig,isVisible:nY.ZP.rectIsVisible,isActive:nY.ZP.rectIsActive,breathing:nY.ZP.breathing,debug:nY.ZP.debug,isProd:nY.ZP.isProd,isDev:nY.ZP.isDev,isClient:nY.ZP.isClient,scrollMode:nY.ZP.scrollMode,performanceMode:nY.ZP.performanceMode,windowWidth:nY.ZP.windowWidth,windowHeight:nY.ZP.windowHeight,canvasWidth:nY.ZP.canvasWidth,canvasHeight:nY.ZP.canvasHeight,loadState:nY.ZP.loadState,setBreakpoint:e=>nY.ZP.setBreakpoint(e),setCurrentSectionIndex:e=>nY.ZP.setCurrentSectionIndex(e),setVisibility:(e,t)=>nY.ZP.setVisibility(e,t),setBreathing:e=>nY.ZP.breathing=e,setScrollMode:e=>nY.ZP.scrollMode=e,getConfigGroup:e=>nY.ZP.getConfigGroup(e),setSectionConfig:(e,t)=>nY.ZP.setSectionConfig(e,t),setConfig:(e,t)=>nY.ZP.setConfig(e,t),setPerformanceMode:e=>nY.ZP.setPerformanceMode(e),setDimensions:e=>nY.ZP.setDimensions(e),setViewportProgress:e=>nY.ZP.setViewportProgress(e),setScrollData:e=>nY.ZP.setScrollData(e),subscribe:nY.ZP.subscribe.bind(nY.ZP),subscribeToConfig:nY.ZP.subscribeToConfig.bind(nY.ZP),subscribeToSectionChanges:nY.ZP.subscribeToSectionChanges.bind(nY.ZP),subscribeToVisibility:nY.ZP.subscribeToVisibility.bind(nY.ZP),subscribeToPerformanceMode:nY.ZP.subscribeToPerformanceMode.bind(nY.ZP)}),[a,i]);return(0,s.jsx)(nQ.Provider,{value:o,children:t})}function nX(){let e=(0,n.useContext)(nQ);if(!e)throw Error("useAppStore must be used within an AppProvider");return e}var n$=a(9477),n0=a(2950);function n1(){let e=(0,n.useRef)({running:!1,fns:[],last:0,stats:null}),[t,i]=(0,n.useState)(!1),s=(0,n.useCallback)(t=>{let a=performance.now(),i=(a-e.current.last)/1e3;i>1&&(i=1),e.current.last=a;let s=e.current.fns.length;for(;s--;){let n=e.current.fns[s];n&&n(i)}},[]),r=(0,n.useCallback)(()=>{let t=performance.now(),a=(t-e.current.last)/1e3;a>1&&(a=1),e.current.last=t,e.current.stats.begin();let i=e.current.fns.length;for(;i--;){let s=e.current.fns[i];s&&s(a)}e.current.stats.end()},[]),o=(0,n.useCallback)(()=>{e.current.running||(e.current.running=!0,i(!0),I.p8.ticker.add(s))},[s]),l=(0,n.useCallback)(()=>{I.p8.ticker.remove(r),I.p8.ticker.remove(s),e.current.running=!1,i(!1)},[s,r]),c=(0,n.useCallback)(async()=>{let t=await a.e(466).then(a.t.bind(a,3466,23));e.current.stats=new t.default,e.current.stats.showPanel(0),e.current.stats.dom.id="stats",e.current.stats.dom.style.cssText="position:fixed;bottom:0px;left:0px;","undefined"!=typeof document&&document.querySelector("html").appendChild(e.current.stats.dom),e.current.running||(e.current.running=!0,i(!0),I.p8.ticker.add(r))},[r]),d=(0,n.useCallback)(t=>"function"==typeof t&&!(e.current.fns.indexOf(t)>=0)&&(e.current.fns.push(t),!0),[]),m=(0,n.useCallback)(t=>{let a=e.current.fns.indexOf(t);a>=0&&e.current.fns.splice(a,1)},[]);(0,n.useEffect)(()=>{let t=e.current.stats;return()=>{if(I.p8.ticker.remove(s),I.p8.ticker.remove(r),t&&t.dom&&"undefined"!=typeof document){let e=document.getElementById("stats");e&&e.parentNode.removeChild(e)}}},[s,r]);let u=(0,n.useRef)({get running(){return e.current.running},start:o,stop:l,startWithStats:c,add:d,remove:m});return u.current}let n2=35,n4=5e3,n3=100,n5=2e3,n8=!1,n6=()=>{let{setPerformanceMode:e,performanceMode:t}=nX(),a=(0,n.useRef)(60),[i,s]=(0,n.useState)(!1),[r,o]=(0,n.useState)(!1),l=(0,n.useRef)(0),c=(0,n.useRef)(performance.now()),d=(0,n.useRef)([]),m=(0,n.useRef)(0),u=(0,n.useRef)(!1),h=(0,n.useRef)(!1),g=(0,n.useCallback)(e=>{n8&&console.log("[FpsMonitor] ".concat(e))},[]);(0,n.useEffect)(()=>{u.current=r,g("Stability state updated: ".concat(r))},[r,g]),(0,n.useEffect)(()=>{h.current=i},[i]);let p=(0,n.useCallback)(()=>{if(t===n0.GJ.LOW){g("Already in low performance mode, skipping monitoring reset");return}d.current=[],m.current=performance.now(),l.current=0,c.current=performance.now(),s(!0)},[t,g]),_=(0,n.useCallback)(()=>{h.current&&u.current&&l.current++},[]);return(0,n.useEffect)(()=>{g("Component mounted, waiting for stabilization");let e=setTimeout(()=>{g("Component has stabilized, beginning FPS monitoring"),o(!0),t!==n0.GJ.LOW?p():g("Already in low performance mode, skipping monitoring")},n5);return()=>{clearTimeout(e)}},[t,p,g]),(0,n.useEffect)(()=>{if(!i||t===n0.GJ.LOW)return;g("FPS monitoring active");let n=setInterval(()=>{let t=performance.now(),i=t-c.current;if(i<10){g("Skipped - elapsed time is too small");return}let n=Math.round(l.current/i*1e3);if(n>300||n<.5){c.current=t,l.current=0,g("Skipped - unrealistic values (likely due to tab switching or other anomalies) :: currentFps ".concat(n));return}l.current=0,c.current=t,a.current=n,d.current.push(n),g("Current FPS: ".concat(n));let r=t-m.current;if(r>=n4&&d.current.length>=3){let o=d.current.reduce((e,t)=>e+t,0)/d.current.length;g("FPS monitoring complete - Average FPS: ".concat(o.toFixed(1),", Threshold: ").concat(n2)),g("FPS samples: ".concat(JSON.stringify(d.current))),o<n2?(g("LOW FPS DETECTED - Switching to low performance mode"),e(n0.GJ.LOW)):g("FPS is adequate - Maintaining high performance mode"),s(!1)}},n3);return()=>clearInterval(n)},[i,t,e,g]),(0,n.useMemo)(()=>({fps:a.current,isMonitoring:i,isStable:r,performanceMode:t,countFrame:_,resetMonitoring:p}),[i,r,t,_,p])};function n7(){var e;if("undefined"==typeof navigator)return!1;let t=(null===(e=navigator.userAgent)||void 0===e?void 0:e.toLowerCase())||"",a="ontouchstart"in window||navigator.maxTouchPoints>1,i=Math.min(window.screen.width,window.screen.height)>=700,s=/ipad/.test(t),n=/mac/.test(t)&&navigator.maxTouchPoints>1&&a&&i,r=s||n,o=/android/.test(t)&&a&&i,l=/windows/.test(t)&&/touch/.test(t);return r||o||l}function n9(){if("undefined"==typeof navigator)return!1;let e=navigator.userAgent.toLowerCase();return/android/.test(e)}function re(){let{setPerformanceMode:e,breakpoint:t}=nX(),[a,i]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{n7()&&e("low"),i(n9())},[e,t]),{isAndroidDevice:a}}let rt={duration:1,ease:"expo.inOut"},ra=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e<t?t:e>a?a:e},ri=(e,t,a)=>t+e*(a-t),rs=(e,t,a)=>(e-t)/(a-t),rn=(e,t,a,i,s,n)=>(e=ri(rs(e,t,a),i,s),n&&(e=ra(e,i,s)),e);function rr(e){let{onMove:t,onTouchHoldChange:a,breakpoint:i,resetDelay:s=.5,holdTimeThreshold:r=.3}=e,o=(0,n.useRef)({x:0,y:0}),l=(0,n.useRef)(0),c=(0,n.useRef)(!1),d=(0,n.useRef)(!1),m=(0,n.useRef)(null),u=(0,n.useRef)(!1),h=(0,n.useRef)({clamp:0}),g=(0,n.useRef)({x:0,y:0}),p=(0,n.useRef)({x:0,y:0}),[_,v]=(0,n.useState)(!1),[f,x]=(0,n.useState)(!1),{canvasWidth:b}=nX(),C=(0,n.useCallback)(e=>{u.current!==e&&(u.current=e,v(e),a&&a(e))},[a]);(0,n.useEffect)(()=>{if(c.current)return;let e=.5*window.innerWidth,a=.5*window.innerHeight;I.ZP.killTweensOf(h.current),I.ZP.to(h.current,{clamp:f?1:0,...rt,ease:f?"quad.inOut":"back.out(2)",onUpdate(){let i=rn(h.current.clamp,0,1,e,o.current.x||e),s=rn(h.current.clamp,0,1,a,o.current.y||a);t({clientX:i,clientY:s})}})},[f]),(0,n.useEffect)(()=>{c.current="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0},[]);let S=(0,n.useCallback)(()=>{if(!t||d.current){d.current=!1;return}I.ZP.to(o.current,{x:.5*window.innerWidth,y:.5*window.innerHeight,...rt,ease:"back.out",onUpdate(){t({clientX:o.current.x,clientY:o.current.y})}})},[t]);return(0,n.useEffect)(()=>{let e=e=>{("touch"!==e.pointerType||!c.current)&&(e.clientX>window.innerWidth-30&&b!==window.innerWidth?x(!1):x(!0),f&&(o.current={x:e.clientX,y:e.clientY},t&&t(e),d.current=!0,I.ZP.killTweensOf(S),I.ZP.delayedCall(s,S)))},a=e=>{if(e.touches.length>0){let t=e.touches[0];l.current=Date.now(),g.current={x:t.clientX,y:t.clientY},_||(o.current={x:.5*window.innerWidth,y:.5*window.innerHeight},p.current={x:g.current.x-o.current.x,y:g.current.y-o.current.y}),m.current&&clearTimeout(m.current),d.current=!0,m.current=setTimeout(()=>{d.current&&c.current&&v(!0)},1e3*r)}},i=e=>{if(c.current=!0,e.touches.length>0){let a=e.touches[0],{clientX:i,clientY:n}=a;_?(o.current={x:i-p.current.x,y:n-p.current.y},t&&t({clientX:o.current.x,clientY:o.current.y})):o.current={x:.5*window.innerWidth,y:.5*window.innerHeight},I.ZP.killTweensOf(S),I.ZP.delayedCall(s,S)}},n=()=>{c.current||(d.current=!1,I.ZP.killTweensOf(S),I.ZP.delayedCall(.1,S))},u=()=>{d.current=!1,v(!1),m.current&&clearTimeout(m.current),I.ZP.killTweensOf(S),I.ZP.delayedCall(.05,S)};return window.addEventListener("pointermove",e,{passive:!0}),window.addEventListener("pointerleave",n),window.addEventListener("touchstart",a,{passive:!0}),window.addEventListener("touchmove",i,{passive:!0}),window.addEventListener("touchend",u),()=>{window.removeEventListener("pointermove",e),window.removeEventListener("pointerleave",n),window.removeEventListener("touchstart",a),window.removeEventListener("touchmove",i),window.removeEventListener("touchend",u),m.current&&clearTimeout(m.current)}},[i,t,s,r,S,C,f,_]),{position:o.current,isInteracting:d.current,isTouchDevice:c.current,isTouchHold:_,setIsTouchHold:C}}var ro=a(4924),rl=a(4250);class rc{setDebugMode(e){this.debugMode=e}log(e){this.debugMode&&console.log("[TextureCache] ".concat(e))}generateCacheKey(e,t){return"".concat(e,"-").concat(t)}getTexturePaths(e,t,a){let i=e[a];if(!i)return{imagePath:null,depthMapPath:null};if(void 0!==i.imageIndex&&t&&t.length>0){let s=t[i.imageIndex];return s?{imagePath:s.image||"",depthMapPath:s.depth_map||"",imageIndex:i.imageIndex}:{imagePath:null,depthMapPath:null}}return{imagePath:null,depthMapPath:null}}loadTexture(e){return new Promise((t,a)=>{this.loader.load(e,e=>{e.needsUpdate=!0,e.wrapS=e.wrapT=rl.uWy,e.minFilter=e.magFilter=rl.wem,this.loadedTexturesCount++,this.onLoadingProgress&&"function"==typeof this.onLoadingProgress&&this.onLoadingProgress(this.loadedTexturesCount,this.totalTexturesToLoad),t(e)},void 0,t=>{console.error("Failed to load texture from ".concat(e,":"),t),this.loadedTexturesCount++,this.onLoadingProgress&&"function"==typeof this.onLoadingProgress&&this.onLoadingProgress(this.loadedTexturesCount,this.totalTexturesToLoad),a(t)})})}async preloadTextures(e,t){this.log("Preloading all textures");let a=[];this.isLoading=!0,this.loadedTexturesCount=0,this.totalTexturesToLoad=0;for(let i=0;i<e.length;i++){let{imagePath:s,depthMapPath:n}=this.getTexturePaths(e,t,i);if(!s||!n)continue;let r=this.generateCacheKey(i,"image"),o=this.generateCacheKey(i,"depth");!this.textureCache.has(r)&&this.totalTexturesToLoad++,!this.textureCache.has(o)&&this.totalTexturesToLoad++}if(this.onLoadingStarted&&"function"==typeof this.onLoadingStarted&&this.onLoadingStarted(this.totalTexturesToLoad),0===this.totalTexturesToLoad)return this.isLoading=!1,this.onLoadingComplete&&"function"==typeof this.onLoadingComplete&&this.onLoadingComplete(),!0;for(let l=0;l<e.length;l++){let{imagePath:c,depthMapPath:d}=this.getTexturePaths(e,t,l);if(!c||!d)continue;let m=this.generateCacheKey(l,"image"),u=this.generateCacheKey(l,"depth");if(!this.textureCache.has(m)){let h=this.loadTexture(c).then(e=>{this.textureCache.set(m,e),this.log("Loaded image texture for section ".concat(l))}).catch(()=>{});a.push(h)}if(!this.textureCache.has(u)){let g=this.loadTexture(d).then(e=>{this.textureCache.set(u,e),this.log("Loaded depth texture for section ".concat(l))}).catch(()=>{});a.push(g)}}return await Promise.all(a),this.isLoading=!1,this.log("All textures preloaded successfully"),this.onLoadingComplete&&"function"==typeof this.onLoadingComplete&&this.onLoadingComplete(),!0}getTexturesForSection(e){let t=this.generateCacheKey(e,"image"),a=this.generateCacheKey(e,"depth"),i=this.textureCache.get(t),s=this.textureCache.get(a);return i||this.log("Warning: Image texture for section ".concat(e," not found in cache!")),s||this.log("Warning: Depth texture for section ".concat(e," not found in cache!")),{imageTexture:i,depthMapTexture:s}}areTexturesLoaded(e){let{imageTexture:t,depthMapTexture:a}=this.getTexturesForSection(e);return!!t&&!!a}isLoadingTextures(){return this.isLoading}getLoadingProgress(){let e=this.totalTexturesToLoad>0?this.loadedTexturesCount/this.totalTexturesToLoad*100:100;return{loaded:this.loadedTexturesCount,total:this.totalTexturesToLoad,percentage:Math.floor(e)}}dispose(){this.log("Disposing all textures"),this.textureCache.forEach(e=>{e&&e.dispose&&e.dispose()}),this.textureCache.clear(),this.isLoading=!1,this.totalTexturesToLoad=0,this.loadedTexturesCount=0}constructor(){this.textureCache=new Map,this.loader=new rl.dpR,this.debugMode=!1,this.onLoadingStarted=null,this.onLoadingProgress=null,this.onLoadingComplete=null,this.isLoading=!1,this.totalTexturesToLoad=0,this.loadedTexturesCount=0}}var rd=rc,rm="varying vec2 vUv;\nvarying float vDepthFactor; \nuniform sampler2D tMap; \nuniform sampler2D tPrevMap;  \nuniform vec2 uResolution;\nuniform float uTransitionProgress; // 0 to 1\nuniform float uPrevYOffset; // Offset for previous texture slide\nuniform float uTransitionDirection; // 1 for down scrolling, -1 for up scrolling\nuniform float uAliasAmount; // For antialiasing the transition edge\n\nvoid main() {\n  vec2 uv = vUv;\n  \n  // Calculate y position for the transition line\n  // When scrolling down, we want the line to move from bottom to top (1 to 0)\n  // When scrolling up, we want the line to move from top to bottom (0 to 1)\n  float transitionLine;\n  if (uTransitionDirection > 0.0) { \n    transitionLine = uTransitionProgress;\n  } else { \n    transitionLine = 1.0 - uTransitionProgress;\n  }\n  \n  // Apply slight skew or angle to the transition line based on X position\n  float leftRatio = transitionLine - 0.05;\n  float rightRatio = transitionLine + 0.05;\n  float y = transitionLine;\n  \n  // Calculate UV coordinates for both textures with proper Y offset\n  vec2 currentUv = uv;\n  vec2 prevUv = uv;\n  \n  if (uTransitionDirection > 0.0) {\n    // Scrolling DOWN  \n    currentUv.y += uPrevYOffset * (1.0 - uTransitionProgress);  \n    prevUv.y -= uPrevYOffset * uTransitionProgress; \n  } else {\n    // Scrolling UP  \n    currentUv.y += uPrevYOffset * ( uTransitionProgress);  \n    prevUv.y -= uPrevYOffset * (1.0 - uTransitionProgress);  \n  }\n   \n  vec4 currentColor = texture2D(tMap, currentUv);\n  vec4 prevColor = texture2D(tPrevMap, prevUv);\n  \n  // Calculate antialiasing amount based on pixel size\n  float pixelSize = (1.0 / uResolution.y) * uAliasAmount;\n  \n  // Apply smooth transition at the transition line\n  vec4 color = mix(prevColor, currentColor, smoothstep(uv.y - pixelSize, uv.y + pixelSize, y));\n  gl_FragColor = vec4(color.rgb, vDepthFactor); \n}",ru="uniform sampler2D tDepthMap;\nuniform sampler2D tPrevDepthMap;\nuniform float uDisplacementScale; \nuniform float uTransitionProgress;\nuniform float uTransitionDirection;\nuniform float uPrevYOffset; \nvarying vec2 vUv;\nvarying float vDepthFactor;\nuniform float uAliasAmount;  \nuniform vec2 uResolution;\n\n// Add curvature uniforms\nuniform float uCurvatureAmount;\nuniform float uCurvatureRadius;\nuniform float uCurvatureAxis;\n\nvoid main() {\n  vUv = uv;\n  \n  vec3 transformedPosition = position; \n  vec2 currentUv = vUv;\n  vec2 prevUv = vUv;\n  \n  // Apply curvature effect (if enabled via the parameters)\n  if (uCurvatureAmount > 0.0) {\n    // Convert UV to centered coordinates (-1 to 1 range)\n    vec2 centeredUV = uv * 2.0 - 1.0;\n    \n    // Calculate curvature based on axis setting\n    float horizontalComponent = centeredUV.x * centeredUV.x;\n    float verticalComponent = centeredUV.y * centeredUV.y;\n    float distanceSquared = mix(horizontalComponent, verticalComponent, uCurvatureAxis);\n    \n    // Apply the curvature using both amount and radius params\n    float curvatureFactor = distanceSquared * uCurvatureAmount * uCurvatureRadius;\n    transformedPosition.z -= curvatureFactor;\n  }\n  \n  // Transition logic\n  float transitionLine;\n  if (uTransitionDirection > 0.0) { \n    transitionLine = uTransitionProgress;\n  } else { \n    transitionLine = 1.0 - uTransitionProgress;\n  }\n  \n  // Apply slight skew or angle to the transition line based on X position\n  float leftRatio = transitionLine - 0.05;\n  float rightRatio = transitionLine + 0.05;\n  float y = transitionLine;\n  \n  if (uTransitionDirection > 0.0) {\n    // Scrolling DOWN  \n    currentUv.y += uPrevYOffset * (1.0 - uTransitionProgress);  \n    prevUv.y -= uPrevYOffset * uTransitionProgress; \n  } else {\n    // Scrolling UP  \n    currentUv.y += uPrevYOffset * (uTransitionProgress);  \n    prevUv.y -= uPrevYOffset * (1.0 - uTransitionProgress);  \n  }\n   \n  vec4 currentDepthColor = texture2D(tDepthMap, currentUv);\n  vec4 prevDepthColor = texture2D(tPrevDepthMap, prevUv);\n   \n  float currentDepth = (currentDepthColor.r + currentDepthColor.g + currentDepthColor.b) / 3.0;\n  float prevDepth = (prevDepthColor.r + prevDepthColor.g + prevDepthColor.b) / 3.0;\n  \n  // Mix between previous and current depth based on transition progress\n  float pixelSize = (1.0 / uResolution.y) * uAliasAmount;\n  float depth = mix(prevDepth, currentDepth, smoothstep(uv.y - pixelSize, uv.y + pixelSize, transitionLine));\n   \n  // Apply displacement along the normal if enabled \n  transformedPosition += normal * (depth * uDisplacementScale); \n  \n  // Pass depth factor to fragment shader for blur calculations\n  vDepthFactor = depth; \n  gl_Position = projectionMatrix * modelViewMatrix * vec4(transformedPosition, 1.0);\n}";class rh extends rl.ZAu{async setup(){this.sections=this.deviceConfig.sections||[],this.images=this.deviceConfig.images||[];let{depth:e,plane:t}=this.sectionConfig;this.tweenObj={displacementScale:e.displacementScale,displacementScaleMult:e.displacementScaleMult,curvatureAmount:t.curvatureAmount,curvatureRadius:t.curvatureRadius,curvatureAmountMult:t.curvatureAmountMult,curvatureRadiusMult:t.curvatureRadiusMult},await this.textureCache.preloadTextures(this.sections,this.images),this.fetchTextures()}fetchTextures(){this.currentSectionIndex=nY.ZP.currentSectionIndex,this.debugState.log&&console.log("Fetching textures for section ".concat(this.currentSectionIndex," from cache"));let{imageTexture:e,depthMapTexture:t}=this.textureCache.getTexturesForSection(this.currentSectionIndex);e?(this.imageTexture=e,this.debugState.imageLoaded=!0):this.debugState.imageLoaded=!1,t?(this.depthMapTexture=t,this.debugState.depthMapLoaded=!0):this.debugState.depthMapLoaded=!1,this.checkIfReady()}startTransitionAnimation(){if(!this.isTransitioning||!this.material){console.warn("Cannot start transition - not in transition state or material not ready");return}this.material.uniforms.tMap.value=this.imageTexture,this.material.uniforms.tDepthMap.value=this.depthMapTexture,this.material.uniforms.tPrevMap.value=this.prevImageTexture,this.material.uniforms.tPrevDepthMap.value=this.prevDepthMapTexture;let{transition:e,depth:t,plane:a}=this.sectionConfig,{displacementScale:i,displacementScaleMult:s}=t,{scale:n,positionZ:r,curvatureAmount:o,curvatureAmountMult:l,curvatureRadius:c,curvatureRadiusMult:d}=a,{duration:m,ease:u}=e;this.transitionTimeline=I.ZP.timeline({onComplete:()=>{this.isTransitioning=!1,this.transitionTimeline=null}}),this.transitionTimeline.to(this.material.uniforms.uTransitionProgress,{value:1,duration:m,ease:u},0),this.transitionTimeline.to(this.tweenObj,{displacementScale:i,displacementScaleMult:s,curvatureAmount:o,curvatureAmountMult:l,curvatureRadius:c,curvatureRadiusMult:d,duration:m,ease:u},0),this.transitionTimeline.to(this.position,{z:r,duration:m,ease:u},0),this.transitionTimeline.to(this.scale,{x:n,y:n,z:n,duration:m,ease:u},0)}checkIfReady(){this.imageTexture&&this.depthMapTexture&&(this.ready=!0,this.mesh?this.isTransitioning&&!this.transitionTimeline?this.startTransitionAnimation():this.isTransitioning||this.updateMaterial():this.createMesh())}createMesh(){let{depth:e,plane:t,transition:a}=this.sectionConfig,{width:i,height:s}=this.config.imageInfo;this.planeGeometry=new rl._12(i,s,null==e?void 0:e.subdivisions,null==e?void 0:e.subdivisions),this.prevImageTexture=this.imageTexture,this.prevDepthMapTexture=this.depthMapTexture,this.material=new rl.jyz({uniforms:{tMap:{value:this.imageTexture},tPrevMap:{value:this.prevImageTexture},tDepthMap:{value:this.depthMapTexture},tPrevDepthMap:{value:this.prevDepthMapTexture},uDisplacementScale:{value:null==e?void 0:e.displacementScale},uTransitionProgress:{value:1},uTransitionDirection:{value:1},uResolution:{value:this.resolution},uPrevYOffset:{value:null==a?void 0:a.yOffset},uAliasAmount:{value:null==a?void 0:a.aliasAmount},uCurvatureAmount:{value:null==t?void 0:t.curvatureAmount},uCurvatureRadius:{value:null==t?void 0:t.curvatureRadius},uCurvatureAxis:{value:null==t?void 0:t.curvatureAxis}},vertexShader:ru,fragmentShader:rm,blending:rl.jFi}),this.mesh=new rl.Kj0(this.planeGeometry,this.material),this.add(this.mesh)}getScale(){let{plane:e}=this.sectionConfig;return e.scale}update(){if(!this.material)return;let{breathing:e}=nY.ZP,{displacementScale:t,displacementScaleMult:a,curvatureAmount:i,curvatureRadius:s,curvatureAmountMult:n,curvatureRadiusMult:r}=this.tweenObj;this.material.uniforms.uDisplacementScale.value=rn(e,0,1,t*(1-a),t*(1+a)),this.material.uniforms.uCurvatureAmount.value=rn(e,0,1,i*(1-n),i*(1+n)),this.material.uniforms.uCurvatureRadius.value=rn(e,0,1,s*(1-r),s*(1+r))}updateMaterial(){if(!this.mesh||!this.material)return;this.isTransitioning||(this.material.uniforms.tMap.value=this.imageTexture,this.material.uniforms.tDepthMap.value=this.depthMapTexture,this.material.uniforms.tPrevMap.value=this.prevImageTexture||this.imageTexture,this.material.uniforms.tPrevDepthMap.value=this.prevDepthMapTexture||this.depthMapTexture);let{plane:e,transition:t}=this.sectionConfig;this.material.uniforms.uResolution.value=this.resolution,this.material.uniforms.uPrevYOffset.value=t.yOffset,this.material.uniforms.uAliasAmount.value=t.aliasAmount,this.material.uniforms.uCurvatureAxis.value=e.curvatureAxis,this.material.needsUpdate=!0}resize(e,t){this.width=e,this.height=t;let a=this.getScale();this.scale.set(a,a,a),this.resolution.set(e,t),this.material&&(this.material.uniforms.uResolution.value=this.resolution)}dispose(){this.transitionTimeline&&(this.transitionTimeline.kill(),this.transitionTimeline=null),this.unsubscribes&&this.unsubscribes.forEach(e=>e()),this.textureCache.dispose(),this.planeGeometry&&(this.planeGeometry.dispose(),this.planeGeometry=null),this.material&&(this.material.dispose(),this.material=null),this.children.forEach(e=>this.remove(e)),this.imageTexture=null,this.depthMapTexture=null,this.prevImageTexture=null,this.prevDepthMapTexture=null}constructor({config:e,renderer:t,width:a,height:i}){super(),(0,ro.Z)(this,"onConfigChange",e=>{var t;if(!this.material)return;this.config=e,this.sectionConfig=nY.ZP.sectionConfig;let{depth:a,plane:i}=this.sectionConfig;this.tweenObj.displacementScale=a.displacementScale,this.tweenObj.displacementScaleMult=a.displacementScaleMult,this.tweenObj.curvatureAmount=i.curvatureAmount,this.tweenObj.curvatureRadius=i.curvatureRadius,this.tweenObj.curvatureAmountMult=i.curvatureAmountMult,this.tweenObj.curvatureRadiusMult=i.curvatureRadiusMult;let s=null===(t=this.planeGeometry)||void 0===t?void 0:t.parameters.widthSegments,n=s!==(null==a?void 0:a.subdivisions);if(this.planeGeometry&&this.mesh&&n){this.planeGeometry&&this.planeGeometry.dispose(),this.material&&this.material.dispose(),this.remove(this.mesh),this.createMesh();return}let r=this.getScale();this.scale.set(r,r,r),this.position.z=i.positionZ,this.updateMaterial()}),(0,ro.Z)(this,"onSectionChange",e=>{if(!e||!this.sections)return;this.sectionConfig=e;let{index:t}=this.sectionConfig,a=this.sections[t];if(!a)return;this.isTransitioning&&this.transitionTimeline&&(this.transitionTimeline.kill(),this.transitionTimeline=null);let i=this.sections[this.currentSectionIndex],s=!1;i&&a&&(void 0!==i.imageIndex&&void 0!==a.imageIndex?s=i.imageIndex===a.imageIndex:i.image&&a.image&&(s=i.image===a.image)),this.transitionDirection=t>this.currentSectionIndex?1:-1;let{imageTexture:n,depthMapTexture:r}=this.textureCache.getTexturesForSection(t),{imageTexture:o,depthMapTexture:l}=this.textureCache.getTexturesForSection(this.currentSectionIndex);if(s&&1===Math.abs(t-this.currentSectionIndex)){this.currentSectionIndex=t,this.isTransitioning=!0,this.mesh&&this.material&&(this.material.uniforms.tMap.value=n,this.material.uniforms.tDepthMap.value=r,this.material.uniforms.tPrevMap.value=n,this.material.uniforms.tPrevDepthMap.value=r,this.material.uniforms.uTransitionProgress.value=1),this.updateMaterial();return}this.transitionDirection<0?(this.prevImageTexture=n,this.prevDepthMapTexture=r,this.imageTexture=o,this.depthMapTexture=l):(this.prevImageTexture=o,this.prevDepthMapTexture=l,this.imageTexture=n,this.depthMapTexture=r),this.imageTexture&&this.depthMapTexture||(this.imageTexture=n,this.depthMapTexture=r,this.prevImageTexture=n,this.prevDepthMapTexture=r),this.mesh&&this.material&&(this.material.uniforms.tPrevMap.value=this.prevImageTexture,this.material.uniforms.tPrevDepthMap.value=this.prevDepthMapTexture,this.material.uniforms.tMap.value=this.imageTexture,this.material.uniforms.tDepthMap.value=this.depthMapTexture,this.material.uniforms.uTransitionProgress.value=0,this.material.uniforms.uTransitionDirection.value=this.transitionDirection),this.currentSectionIndex=t,this.isTransitioning=!0,this.ready=!0,this.startTransitionAnimation()}),this.config=e,this.sectionConfig=nY.ZP.sectionConfig,this.deviceConfig=nY.ZP.deviceConfig,this.currentSectionIndex=nY.ZP.currentSectionIndex,this.renderer=t,this.mesh=null,this.material=null,this.planeGeometry=null,this.imageTexture=null,this.depthMapTexture=null,this.prevImageTexture=null,this.prevDepthMapTexture=null,this.resolution=new rl.FM8(a,i),this.isTransitioning=!1,this.transitionProgress=0,this.transitionTimeline=null,this.transitionDirection=1,this.ready=!1,this.recreateMesh=!1,this.debugState={log:!1,imageLoaded:!1,depthMapLoaded:!1},this.textureCache=new rd,this.textureCache.onLoadingStarted=e=>{nY.ZP.loadState=n0.pi.LOADING},this.textureCache.onLoadingProgress=(e,t)=>{},this.textureCache.onLoadingComplete=()=>{nY.ZP.loadState=n0.pi.LOADED},this.unsubscribes=[nY.ZP.subscribeToConfig(this.onConfigChange),nY.ZP.subscribeToSectionChanges(this.onSectionChange)],this.setup()}}var rg=rh,rp=a(7777);class r_{setTarget(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.target=e,t?(this.value=e,this.velocity=0,this.isAtRest=!0):this.isAtRest=!1,this}setValue(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return this.value=e,t&&(this.velocity=0),this.isAtRest=Math.abs(this.value-this.target)<this.precision&&Math.abs(this.velocity)<this.precision,this}configure(){let{tension:e,friction:t,precision:a,maxVelocity:i,useDirectMode:s,smoothingFactor:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return void 0!==e&&(this.tension=Math.max(.01,Math.min(e,1))),void 0!==t&&(this.friction=Math.max(.1,Math.min(t,1))),void 0!==a&&(this.precision=a),void 0!==i&&(this.maxVelocity=i),void 0!==s&&(this.useDirectMode=s),void 0!==n&&(this.smoothingFactor=n),this}onRest(e){return this.onRestCallback=e,this}atRest(){return this.isAtRest}update(e){if(this.isAtRest&&Math.abs(this.value-this.target)<this.precision)return this.value;let t=performance.now(),a=void 0!==e?e:t-this.lastTime;this.lastTime=t;let i=Math.min(a/1e3,.064);if(this.previousValue=this.value,this.useDirectMode){let s=1-Math.exp(-this.smoothingFactor*this.tension*i);this.value+=(this.target-this.value)*s,this.velocity=(this.value-this.previousValue)/i}else{let n=this.target-this.value,r=n*this.tension,o=-this.velocity*this.friction,l=r+o;this.velocity+=l*i,this.value+=this.velocity*i}this.maxVelocity<1/0&&(this.velocity=Math.max(-this.maxVelocity,Math.min(this.velocity,this.maxVelocity)));let c=this.isAtRest;return this.isAtRest=Math.abs(this.target-this.value)<this.precision&&Math.abs(this.velocity)<this.precision,this.isAtRest&&!c&&this.onRestCallback&&this.onRestCallback(this.value),this.value}getVelocity(){return this.velocity}getValue(){return this.value}getTarget(){return this.target}constructor({initialValue:e=0,targetValue:t=0,tension:a=.3,friction:i=.7,precision:s=.001,maxVelocity:n=1/0,useDirectMode:r=!1,smoothingFactor:o=5}={}){this.tension=Math.max(.01,Math.min(a,1)),this.friction=Math.max(.1,Math.min(i,1)),this.precision=s,this.maxVelocity=n,this.useDirectMode=r,this.smoothingFactor=o,this.value=e,this.target=t,this.velocity=0,this.previousValue=e,this.lastTime=performance.now(),this.onRestCallback=null,this.isAtRest=!0}}var rv=r_;function rf(e){let t,a,{width:i,height:s,sizeX:n=.9,sizeY:r=.9,maxWidth:o=null,maxHeight:l=null,aspectRatioEnabled:c=!0,aspectRatio:d=16/9}=e;if(o&&l)t=o/2,a=l/2;else if(t=i*n*.5,a=s*r*.5,c&&d){let m=t/a;m>d?t=a*d:m<d&&(a=t/d)}return{clip:{width:2*t,height:2*a,halfWidth:t,halfHeight:a},width:t,height:a,normalizedSize:new rl.FM8(2*t/i,2*a/s)}}function rx(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,{clip:i}=e;return[t-.5*i.halfWidth,a-.5*i.halfHeight,t+.5*i.halfWidth,a+.5*i.halfHeight]}function rb(e,t,a){let{maxWidth:i,maxHeight:s,sizeX:n=.9,sizeY:r=.9,aspectRatio:o}=e||{};return rf({width:t,height:a,sizeX:n,sizeY:r,maxWidth:i,maxHeight:s,aspectRatioEnabled:!!o,aspectRatio:o})}class rC extends rl.ZAu{setup(){this.preloadFont().then(()=>{var e;(null===(e=this.deviceConfig)||void 0===e?void 0:e.sections)&&this.createTextElements()}).catch(e=>{console.error("Error loading font:",e)}),this.unsubscribe=nY.ZP.subscribeToConfig(this.onConfigChange)}getPanelDimensions(){return rb(this.deviceConfig.border,this.width,this.height)}updateClipRects(e,t){let a=this.getPanelDimensions();(!this.clipping||a)&&(e.clipRect=rx(a,0,t))}calculateSectionHeight(){return this.height*this.travelDistanceReduction}updateElementProperties(){this.positionTextElements()}preloadFont(){return new Promise((e,t)=>{let a=new rp.xv;a.font=this.fontOptions.font,a.text=" ",a.fontSize=this.fontOptions.fontSize,a.addEventListener("synccomplete",()=>{this.fontLoaded=!0,a.parent&&a.parent.remove(a),a.dispose(),e()}),a.addEventListener("error",e=>{console.error("Font loading error:",e),t(e)}),this.add(a),a.sync()})}createTextElements(){this.removeAllElements();let{sections:e}=this.deviceConfig;e.forEach((e,t)=>{let{copy:a}=e;if(a){let i=this.createTextElement(e.copy);this.add(i)}}),this.positionTextElements()}createTextElement(e){let t=new rp.xv;Object.keys(this.fontOptions).forEach(e=>{t[e]=this.fontOptions[e]}),t.text=e,t.anchorX="center",t.anchorY="middle",t.letterSpacing=this.fontOptions.letterSpacing,t.lineHeight=this.fontOptions.lineHeight;let a=this.getPanelDimensions();return t.maxWidth=1.6*a.width,t.textAlign="center",t.material.depthTest=!1,t.material.transparent=!0,t.sync(),t}removeAllElements(){for(this.textElements.forEach(e=>{e.dispose&&e.dispose()}),this.textElements=[];this.children.length>0;){let e=this.children[0];this.remove(e)}}resize(e,t){this.width=e,this.height=t,this.positionTextElements()}positionTextElements(){let e=this.height*this.travelDistanceReduction,t=this.calculateSectionHeight(),a=e/2;for(let i=0;i<this.children.length;i++){let s=this.children[i],n=-this.currentScrollTop*this.travelDistanceReduction,r=i*t*this.deviceConfig.scroll.sectionHeightMultiplier,o=t/2,l=n-r+o;s.position.y=l-a,this.updateClipRects(s,-s.position.y)}}hide(){this.children.forEach(e=>{I.p8.killTweensOf(e),I.p8.to(e.material,{opacity:0,...rt})})}show(){this.children.forEach(e=>{I.p8.killTweensOf(e),I.p8.to(e.material,{opacity:1,...rt})})}dispose(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null),this.removeAllElements()}constructor(e,t){super(),(0,ro.Z)(this,"onConfigChange",()=>{this.deviceConfig=nY.ZP.deviceConfig,this.sectionConfig=nY.ZP.sectionConfig;let{tension:e,smoothingFactor:t}=this.deviceConfig.scroll;this.scrollSpring.configure({tension:e,smoothingFactor:t}),this.updateElementProperties()}),(0,ro.Z)(this,"update",e=>{let{scrollTopRemapped:t}=nY.ZP.scrollData;Math.abs(t-this.scrollSpring.getTarget())>.01&&this.scrollSpring.setTarget(t);let a=1e3*e;this.currentScrollTop=this.scrollSpring.update(a),this.scrollSpring.atRest()||this.positionTextElements()}),this.width=e,this.height=t,this.sectionConfig=nY.ZP.sectionConfig,this.deviceConfig=nY.ZP.deviceConfig,this.textElements=[],this.currentScrollTop=0,this.unsubscribe=null,this.fontLoaded=!1,this.clipping=!0;let a=0,{breakpoint:i}=this.deviceConfig;switch(i){case"mobile":a=.4;break;case"tablet":case"desktop":a=.3}this.travelDistanceReduction=this.deviceConfig.border.maxHeight/this.height*a;let{initialValue:s,tension:n,smoothingFactor:r,maxVelocity:o}=this.deviceConfig.scroll;this.scrollSpring=new rv({initialValue:s,tension:n,useDirectMode:!0,smoothingFactor:r,precision:.001,maxVelocity:o});let{fontSize:l,fontWeight:c,letterSpacing:d,lineHeight:m,path:u}=this.deviceConfig.font;this.fontOptions={fontSize:l,fontWeight:c,letterSpacing:d,lineHeight:m,color:new rl.Ilk(16777215),sdfGlyphSize:32,font:u},this.setup()}}var rS=rC,rI="varying vec2 vUv;\nuniform vec2 uResolution; \nuniform vec3 uColor;\nuniform vec2 uBorderPosition;\nuniform vec2 uBorderSize;\nuniform float uBorderRadius;\nuniform float uBorderOpacity;\nuniform float uBorderLineWidth;\nuniform float uBorderLineFeather;\nuniform float uBorderLineEdgeMix;\n\nfloat sdRoundBox(vec2 samplePosition, vec2 halfSize, float radius, float edgeMix) {\n  vec2 componentWiseEdgeDistance = abs(samplePosition) - halfSize + vec2(radius);\n  float outsideDistance = length(max(componentWiseEdgeDistance, 0.0)) - radius;\n  float insideDistance = min(max(componentWiseEdgeDistance.x, componentWiseEdgeDistance.y), 0.0);\n  float roundEdge = outsideDistance + insideDistance; \n  float hardEdge = max(componentWiseEdgeDistance.x, componentWiseEdgeDistance.y); \n  return mix(roundEdge, hardEdge, edgeMix);\n}\n\nvoid main() {\n\n  vec2 uv = vUv;\n \n  // Center the UV coordinates\n  vec2 centered = uv * 2.0 - 1.0;\n  \n  // Scale the position based on resolution to maintain aspect ratio\n  vec2 aspectCorrected = centered * uResolution;\n  \n  // Calculate the border size in pixel space\n  vec2 borderHalfSize = uBorderSize * uResolution * 0.5;\n  \n  // Calculate signed distance to border\n  float borderDist = sdRoundBox(aspectCorrected, borderHalfSize, uBorderRadius, uBorderLineEdgeMix);\n  \n  // Calculate feather value that varies from 0 to max across the X axis\n  // Make the ramp more dramatic by using a power function\n  float featherValue = uBorderLineFeather;  \n  \n  // Create smooth border effect with variable feathering\n  float mixAmount = 1.0 - smoothstep(0.0, featherValue, abs(borderDist) - uBorderLineWidth);\n  \n  // Final color with opacity\n  gl_FragColor = vec4(uColor, uBorderOpacity * mixAmount); \n  //  gl_FragColor = vec4(vec3(depthColor.a), 1.); \n}",rT="varying vec2 vUv; \nvoid main() {\n  vUv = uv;\n  gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n}";let rN={LINE:{WIDTH:1,FEATHER:3,EDGE_MIX:.5},COLOR:{UINT:16777215}};class rE extends rl.ZAu{updateBorderProperties(){if(this.material&&this.material.uniforms){let{lineWidth:e,feather:t,edgeMix:a,opacity:i,radius:s,sizeX:n,sizeY:r,maxWidth:o,maxHeight:l,aspectRatio:c}=this.deviceConfig.border||{};this.plane.scale.set(this.width,this.height,1),this.material.uniforms.uBorderLineWidth.value=e,this.material.uniforms.uBorderLineFeather.value=t,this.material.uniforms.uBorderLineEdgeMix.value=a,this.material.uniforms.uBorderOpacity.value=i,this.material.uniforms.uBorderRadius.value=s,this.material.uniforms.uResolution.value=new rl.FM8(this.width,this.height);let d=rb(this.deviceConfig.border,this.width,this.height);this.material.uniforms.uBorderSize.value=d.normalizedSize}}setup(){let{lineWidth:e,feather:t,edgeMix:a,opacity:i,radius:s}=this.deviceConfig.border;this.material=new rl.jyz({vertexShader:rT,fragmentShader:rI,uniforms:{uResolution:{value:new rl.FM8(this.width,this.height)},uColor:{value:new rl.Ilk(rN.COLOR.UINT)},uBorderPosition:{value:new rl.FM8(0)},uBorderSize:{value:new rl.FM8(.9,.9)},uBorderLineWidth:{value:e},uBorderLineFeather:{value:t},uBorderLineEdgeMix:{value:a},uBorderRadius:{value:s},uBorderOpacity:{value:void 0!==i?i:1}},transparent:!0}),this.material.needsUpdate=!0;let n=new rl._12(1,1,1);this.plane=new rl.Kj0(n,this.material),this.add(this.plane),this.resize(this.width,this.height)}resize(e,t){this.width=e,this.height=t,this.material.needsUpdate=!0}show(){I.p8.killTweensOf(this.material.uniforms.uBorderOpacity),I.p8.to(this.material.uniforms.uBorderOpacity,{value:1,...rt})}hide(){I.p8.killTweensOf(this.material.uniforms.uBorderOpacity),I.p8.to(this.material.uniforms.uBorderOpacity,{value:0,...rt})}dispose(){for(this.plane&&(this.plane.geometry&&this.plane.geometry.dispose(),this.plane.material&&this.plane.material.dispose(),this.remove(this.plane),this.plane=null),this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null);this.children.length>0;){let e=this.children[0];this.remove(e)}}constructor(e,t){super(),(0,ro.Z)(this,"onConfigChange",()=>{this.deviceConfig=nY.ZP.deviceConfig}),this.width=e,this.height=t,this.deviceConfig=nY.ZP.deviceConfig,this.setup(),this.unsubscribe=nY.ZP.subscribeToConfig(this.onConfigChange),this.updateBorderProperties()}}var rw=rE;let rk={UI:500,GRID:-120,TEXT:.1,BORDER:.2},ry={UI:0};class rA extends rl.ZAu{setup(e,t){this.setupTextGroup(e,t),this.setupBorder(),this.setupUIPlane()}updateDimensions(){if(!this.uiGrid)return;let e=rb(this.deviceConfig.border,this.width,this.height),{halfWidth:t,halfHeight:a}=e.clip;this.uiGrid.scale.set(t,a,1)}setupTextGroup(e,t){this.textGroup=new rS(e,t),this.textGroup.position.z=rk.TEXT,this.add(this.textGroup)}setupBorder(){this.border=new rw(this.width,this.height),this.border.position.z=rk.BORDER,this.add(this.border)}setupUIPlane(){let e=new rl._12(1,1,1,1),t=new rl.dpR,a=t.load(this.deviceConfig.frame,()=>{a.wrapS=rl.rpg,a.wrapT=rl.rpg,a.repeat.set(1,1)},e=>{},e=>{console.error("Error loading UI texture:",e)}),i=new rl.vBJ({map:a,opacity:.5,transparent:!0});this.uiGrid=new rl.Kj0(e,i),this.uiGrid.position.z=rk.GRID,this.uiGrid.visible=!0,this.add(this.uiGrid),this.updateDimensions()}update(e){var t,a,i;let s=(null===(t=nY.ZP.scrollData)||void 0===t?void 0:t.scrollTopRemapped)||0,{exit:n,entry:r}=nY.ZP.viewportProgress,o=s*this.scrollSpeed+-((n+r)*1),l=rn(r,0,1,-(.2*nY.ZP.windowHeight),0);this.gridSpring.setTarget(o),!this.gridSpring.atRest()&&(null===(a=this.uiGrid)||void 0===a?void 0:null===(i=a.material)||void 0===i?void 0:i.map)&&(this.uiGrid.material.map.offset.y=this.gridSpring.update(1e3*e)),this.position.y=l,this.textGroup&&this.textGroup.update(e)}hide(){var e;(null===(e=this.uiGrid)||void 0===e?void 0:e.material)&&(I.p8.killTweensOf([this.textGroup,this.border,this.uiGrid.material]),I.p8.to(this.uiGrid.material,{opacity:0,...rt}),I.p8.to(this.border.position,{z:rk.BORDER+10,...rt}),I.p8.to(this.textGroup.position,{z:rk.TEXT+10,...rt}),this.textGroup.hide(),this.border.hide())}show(){var e;(null===(e=this.uiGrid)||void 0===e?void 0:e.material)&&(I.p8.killTweensOf([this.textGroup,this.border,this.uiGrid.material]),I.p8.to(this.uiGrid.material,{opacity:.5,...rt}),I.p8.to(this.border.position,{z:rk.BORDER,...rt}),I.p8.to(this.textGroup.position,{z:rk.TEXT,...rt}),this.textGroup.show(),this.border.show())}resize(e,t){this.width=e,this.height=t,this.updateDimensions(),this.textGroup&&this.textGroup.resize(e,t),this.border&&this.border.resize(e,t)}dispose(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null),this.textGroup&&(this.textGroup.dispose(),this.textGroup=null),this.border&&(this.border.dispose(),this.border=null),this.uiGrid&&(this.uiGrid.geometry&&this.uiGrid.geometry.dispose(),this.uiGrid.material&&(this.uiGrid.material.map&&this.uiGrid.material.map.dispose(),this.uiGrid.material.dispose())),this.uiGrid=null}constructor(e,t){super(),(0,ro.Z)(this,"onConfigChange",()=>{this.deviceConfig=nY.ZP.deviceConfig,this.updateDimensions()}),this.sectionConfig=nY.ZP.sectionConfig,this.deviceConfig=nY.ZP.deviceConfig,this.scrollSpeed=45e-5,this.offsetY=0,this.width=e,this.height=t,this.position.z=rk.UI,this.position.y=ry.UI;let{initialValue:a,tension:i,smoothingFactor:s,maxVelocity:n}=this.deviceConfig.scroll,r={initialValue:a,tension:i,useDirectMode:!0,smoothingFactor:s,precision:.001,maxVelocity:n};this.gridSpring=new rv(r),this.uiSpring=new rv(r),this.setup(e,t),this.unsubscribe=nY.ZP.subscribeToConfig(this.onConfigChange)}}var rj=rA,rL=a(9542);class rO extends rl.xsS{setup(e,t){this.setupCamera(e,t),this.setupTiltGroup(),this.setupBackground(e,t),this.uiGroup=new rj(e,t),this.tiltGroup.add(this.uiGroup)}setupCamera(e,t){let{camera:a}=this.deviceConfig,{fov:i,near:s,far:n,positionZ:r}=a;this.camera=new rl.cPb(i,e/t,s,n),this.camera.position.z=r,this.camera.updateProjectionMatrix()}setupTiltGroup(){let e={initialValue:0,tension:1,useDirectMode:!0,smoothingFactor:20,precision:1e-4};this.tiltSpringX=new rv(e),this.tiltSpringY=new rv(e),this.tiltGroup=new rl.ZAu,this.add(this.tiltGroup)}setupBackground(e,t){this.depthBackground=new rg({renderer:this.renderer,config:this.sectionConfig,width:e,height:t}),this.tiltGroup.add(this.depthBackground)}mousemove(e){let{windowWidth:t,windowHeight:a}=nY.ZP;this.mouse.x=e.clientX/t*2-1,this.mouse.y=-(2*(e.clientY/a))+1}animateTilt(e){if(!this.tiltGroup)return;let{tilt:t}=this.sectionConfig,a=-this.mouse.y*t.intensityY*Math.PI,i=this.mouse.x*t.intensityX*Math.PI,{entry:s}=nY.ZP.viewportProgress;a*=Math.pow(s,2),i*=Math.pow(s,2),this.tiltSpringX.setTarget(a),this.tiltSpringY.setTarget(i);let n=1e3*e,r=this.tiltSpringX.update(n),o=this.tiltSpringY.update(n);this.tiltGroup.rotation.x=r,this.tiltGroup.rotation.y=o}getEntryExitProgress(e){let{positionZ:t}=this.deviceConfig.camera,{entry:a}=nY.ZP.viewportProgress,i=this.backOutEase(a),s=rn(i,0,1,-10,0),n=rn(i,0,1,.8*t,t),r=rn(a,0,1,.2,0);return{rotX:r,posY:s,posZ:n}}getWiggle(e){let{rotZ:t,posZ:a,posX:i,posY:s}=this.deviceConfig.wiggle,{entry:n}=nY.ZP.viewportProgress,r=this.backOutEase(n);this.cameraWiggle.time+=e*this.cameraWiggle.speed;let o=Math.sin(1.1*this.cameraWiggle.time)*Math.cos(.5*this.cameraWiggle.time)*this.cameraWiggle.intensity*r*i,l=Math.sin(.8*this.cameraWiggle.time)*Math.cos(1.3*this.cameraWiggle.time)*this.cameraWiggle.intensity*r*s,c=Math.sin(.7*this.cameraWiggle.time)*Math.cos(.9*this.cameraWiggle.time)*this.cameraWiggle.intensity*.5*r*a,d=Math.sin(.2*this.cameraWiggle.time)*Math.cos(.7*this.cameraWiggle.time)*this.cameraWiggle.intensity*.001*r*t;return{xOffset:o,yOffset:l,zOffset:c,rotOffset:d}}updateCamera(e){let{rotX:t,posY:a,posZ:i}=this.getEntryExitProgress(e),{xOffset:s,yOffset:n,zOffset:r,rotOffset:o}=this.getWiggle(e);this.cameraWiggle.originalPosition.z=i,this.cameraWiggle.originalPosition.y=a,this.camera.rotation.z=o,this.camera.rotation.x=t,this.camera.position.x=s,this.camera.position.y=this.cameraWiggle.originalPosition.y+n,this.camera.position.z=this.cameraWiggle.originalPosition.z+r}update(e){this.animateTilt(e),this.updateCamera(e),this.depthBackground&&this.depthBackground.update(e),this.uiGroup&&this.uiGroup.update(e),this.renderer.setRenderTarget(this.renderTexture),this.renderer.clear(),this.renderer.render(this,this.camera)}updateTiltScale(){let e,t;let a=this.width/this.height,{breakpoint:i}=this.deviceConfig;switch(i){case"mobile":e=rn(t=(0,rL.uZ)(a,.5,.9),.5,.9,.96,1.4);break;case"tablet":e=rn(t=(0,rL.uZ)(a,.75,1.25),.75,1.25,.95,1.1);break;case"desktop":e=rn(t=(0,rL.uZ)(a,1.1,1.9),1.1,1.9,.85,1.1)}this.tiltGroup.scale.set(e,e,e)}hideUi(e){this.uiGroup&&(e?this.uiGroup.show():this.uiGroup.hide())}resize(e,t){this.width=e,this.height=t,this.depthBackground&&this.depthBackground.resize(e,t),this.camera&&(this.camera.aspect=e/t,this.camera.updateProjectionMatrix()),this.uiGroup&&this.uiGroup.resize(e,t),this.updateTiltScale()}dispose(){this.uiGroup&&(this.uiGroup.dispose(),this.uiGroup=null),this.transitionTimeline&&(this.transitionTimeline.kill(),this.transitionTimeline=null),this.unsubscribe&&this.unsubscribe.forEach(e=>e()),this.depthBackground&&("function"==typeof this.depthBackground.dispose&&this.depthBackground.dispose(),this.depthBackground=null),this.tiltGroup&&this.tiltGroup.children.forEach(e=>this.remove(e)),this.renderTexture=null,this.depthRenderTexture=null,this.renderer=null}constructor(e={},t,a){super(),(0,ro.Z)(this,"onSectionChange",e=>{this.sectionConfig=e}),(0,ro.Z)(this,"onConfigChange",e=>{this.deviceConfig=e;let{intensity:t,speed:a}=this.deviceConfig.wiggle;this.cameraWiggle.intensity=t,this.cameraWiggle.speed=a}),this.renderer=e.renderer,this.camera=e.camera,this.renderTexture=e.renderTexture,this.tiltGroup=null,this.mouse=new rl.FM8(0,0),this.isTransitioning=!1,this.transitionTimeline=null,this.width=t,this.height=a,this.cameraWiggle={intensity:10,speed:1,time:0,originalPosition:new rl.Pa4,offsetPosition:new rl.Pa4},this.backOutEase=I.p8.parseEase("quad.inOut"),this.unsubscribe=[nY.ZP.subscribeToSectionChanges(this.onSectionChange),nY.ZP.subscribeToConfig(this.onConfigChange)],this.sectionConfig=nY.ZP.sectionConfig,this.deviceConfig=nY.ZP.deviceConfig,this.setup(t,a)}}var rB=rO,rR="varying vec2 vUv; \nvoid main() {\n  vUv = uv;\n  gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n}",rM="uniform sampler2D tBuffer; \nuniform sampler2D tOriginal;\nuniform vec2 uDirection;\nuniform vec2 uResolution;\nuniform vec2 uMousePosition;\nuniform float uTime;\nuniform float uFocusRange;\nuniform float uBlurStrength;\nuniform float uBrightnessFactor;\nuniform float uContrastFactor;\nuniform float uAberrationStrength; \nuniform float uFocalDistance;\nuniform float uDepthPower; \n\nuniform float uVignetteSize;\nuniform float uVignetteFeather;\nuniform float uVignetteAlpha; \nuniform float uVignetteDepthMask;\nuniform float uVignetteAspectRatio;  \n\nuniform float uNoiseAlpha;\nuniform float uNoiseScale;\nuniform float uNoiseSpeed; \n \nvarying vec2 vUv;\n \nvec4 blurWithOffset(sampler2D tex, vec2 uv, vec2 direction, vec2 resolution, vec2 offset) {\n  \n  vec2 pixelSize = 1.0 / resolution;\n  vec2 off1 = 1.3333333333333333 * direction * pixelSize;\n  \n  // Use fewer texture reads (3 instead of many)\n  vec4 center = texture2D(tex, uv + offset);\n  vec4 sample1 = texture2D(tex, uv + off1 + offset);\n  vec4 sample2 = texture2D(tex, uv - off1 + offset);\n  \n  // Weighted average\n  return vec4(\n    (center.rgb * 0.3 + sample1.rgb * 0.35 + sample2.rgb * 0.35),\n    center.a\n  );\n}\n\nvoid main() {\n   \n  vec2 uv = vUv; \n \n  // scale uv by the aspect ratio to make the vignette circular\n  float aspectRatio = uResolution.x / uResolution.y;\n  vec2 aspectCorrectedUV = vUv;\n  aspectCorrectedUV.x = (vUv.x - 0.5) * aspectRatio + 0.5; \n\n  // mix between original uv and aspect-ratio \n  vec2 blendedUV = mix(vUv, aspectCorrectedUV, uVignetteAspectRatio);\n\n  vec2 mouseOffset = blendedUV - uMousePosition;\n  float distanceToMouseSq = dot(mouseOffset, mouseOffset);\n  float distanceToMouse = sqrt(distanceToMouseSq);\n   \n  vec4 originalTexture = texture2D(tOriginal, uv);\n  float depth = originalTexture.a;\n   \n  // Remap depth based on focal distance\n  float remappedDepth = abs(depth - uFocalDistance); \n  float depthFactor = pow(remappedDepth * 2.0, uDepthPower);  \n  \n  // Calculate blur factors\n  float distanceBlur = (distanceToMouse - uFocusRange) * uBlurStrength; \n  \n  // Use depthFactor directly to control blur amount \n  float blurFactor =  mix(depthFactor * distanceBlur, distanceBlur, 0.25);\n  blurFactor = clamp(blurFactor, 0.0, 1.0);\n  \n  \n  // Apply blur based on the calculated factor\n  vec2 dir = uDirection *  blurFactor;\n  \n  // Calculate radial factor for chromatic aberration once\n  vec2 centerOffset = uv - vec2(0.5);\n  float distanceToCenterSq = dot(centerOffset, centerOffset) * 4.0;  \n  float distanceToCenter = distanceToCenterSq; \n  \n  // Combine factors for aberration  \n  float aberrationFactor = (blurFactor * distanceToCenter * uAberrationStrength);\n  \n  // Calculate color channels with different offsets\n  vec2 redOffset = vec2(aberrationFactor, 0.0);\n  vec2 blueOffset = vec2(-aberrationFactor, 0.0);\n  \n  // Get individual channels - blur is now based on the original depth\n  vec4 redChannel = blurWithOffset(tBuffer, uv, dir, uResolution, redOffset);\n  vec4 greenChannel = blurWithOffset(tBuffer, uv, dir, uResolution, vec2(0.0));\n  vec4 blueChannel = blurWithOffset(tBuffer, uv, dir, uResolution, blueOffset);\n  \n  // Create final color with blurred RGB\n  vec4 color = vec4(redChannel.r, greenChannel.g, blueChannel.b, 1.0);\n\n  // Calculate both distances for vignette\n  vec2 center = vec2(0.5, 0.5);\n  float distUncorrected = 1.0 - distance(vUv, center);\n  float distCorrected = 1.0 - distance(aspectCorrectedUV, center);\n  \n  // Blend between the two distances\n  float dist = mix(distUncorrected, distCorrected, uVignetteAspectRatio);\n\n  float vignette = smoothstep(uVignetteSize, uVignetteSize + uVignetteFeather, dist); \n  float vignetteAlpha = mix(uVignetteAlpha, uVignetteAlpha * depth, uVignetteDepthMask); \n  color.rgb = mix(color.rgb, color.rgb * vignette, vignetteAlpha); \n  \n  // Final output with depth effects but opaque rendering\n  gl_FragColor = vec4(color.rgb, 1.0);\n  \n  // For debugging only - comment out when not needed\n  //  gl_FragColor = vec4(vec3(depth), 1.0);  // Show depth\n  // gl_FragColor = vec4(vec3(blurFactor), 1.0);  // Show blur factor\n}";let rD=new rl._12(2,2);new rl.FM8;class rH extends rl.xsS{setup(){this.camera.position.z=1;let e=this.renderer.domElement.width,t=this.renderer.domElement.height;this.tweenObj={blurStrength:this.sectionConfig.blur.strength,vignetteAlpha:this.sectionConfig.vignette.alpha,vignetteFeather:this.sectionConfig.vignette.feather,vignetteSize:this.sectionConfig.vignette.size,aberrationStrength:this.sectionConfig.aberration.strength,blurStrengthMult:this.sectionConfig.blur.strengthMult,vignetteAlphaMult:this.sectionConfig.vignette.alphaMult,vignetteFeatherMult:this.sectionConfig.vignette.featherMult,vignetteSizeMult:this.sectionConfig.vignette.sizeMult,aberrationStrengthMult:this.sectionConfig.aberration.strengthMult,intro:{vignetteAlphaMix:0,vignetteFeatherMix:0,vignetteSizeMix:0}},this.setupUniforms(e,t),this.setupMaterial(),this.setupMesh(),this.setupRenderTargets(e,t)}setupUniforms(e,t){var a,i,s,n,r,o,l,c,d,m,u,h,g;this.uniforms={tBuffer:{value:this.tInput},tOriginal:{value:this.tInput},uTime:{value:0},uResolution:{value:new rl.FM8(e,t)},uDirection:{value:new rl.FM8(0,0)},uMousePosition:{value:new rl.FM8(.5,.5)},uFocusRange:{value:null===(a=this.config.blur)||void 0===a?void 0:a.focusRange},uBlurStrength:{value:null===(i=this.config.blur)||void 0===i?void 0:i.strength},uAberrationStrength:{value:null===(s=this.config.aberration)||void 0===s?void 0:s.strength},uFocalDistance:{value:null===(n=this.config.depth)||void 0===n?void 0:n.focalDistance},uDepthPower:{value:null===(r=this.config.depth)||void 0===r?void 0:r.depthPower},uVignetteSize:{value:null===(o=this.config.vignette)||void 0===o?void 0:o.size},uVignetteFeather:{value:null===(l=this.config.vignette)||void 0===l?void 0:l.feather},uVignetteAlpha:{value:null===(c=this.config.vignette)||void 0===c?void 0:c.alpha},uVignetteDepthMask:{value:null===(d=this.config.vignette)||void 0===d?void 0:d.depthMask},uVignetteAspectRatio:{value:null===(m=this.config.vignette)||void 0===m?void 0:m.aspectRatio},uNoiseAlpha:{value:null===(u=this.config.noise)||void 0===u?void 0:u.alpha},uNoiseScale:{value:null===(h=this.config.noise)||void 0===h?void 0:h.scale},uNoiseSpeed:{value:null===(g=this.config.noise)||void 0===g?void 0:g.speed}}}setupMaterial(){this.material=new rl.jyz({uniforms:this.uniforms,vertexShader:rR,fragmentShader:rM,depthTest:!1,depthWrite:!1,blending:rl.jFi,transparent:!1})}setupMesh(){this.mesh=new rl.Kj0(rD,this.material),this.add(this.mesh)}setupRenderTargets(e,t){this.fboConfig={minFilter:rl.wem,magFilter:rl.wem,format:rl.wk1,stencilBuffer:!1,depthBuffer:!1,type:rl.cLu,premultiplyAlpha:!1},this.fboA=new rl.dd2(e,t,this.fboConfig),this.fboB=new rl.dd2(e,t,this.fboConfig)}resize(e,t){this.fboA.setSize(e,t),this.fboB.setSize(e,t),this.uniforms.uResolution.value.set(e,t)}update(e){this.updateUniforms(e),this.updateBlur()}updateUniforms(e){if(this.uniforms){let{breathing:t}=nY.ZP;this.uniforms.uFocusRange.value=this.config.blur.focusRange,this.uniforms.uDepthPower.value=this.config.depth.depthPower,this.uniforms.uFocalDistance.value=this.config.depth.focalDistance,this.uniforms.uVignetteDepthMask.value=this.config.vignette.depthMask,this.uniforms.uVignetteAspectRatio.value=this.deviceConfig.vignette.aspectRatio,this.uniforms.uNoiseAlpha.value=this.config.noise.alpha,this.uniforms.uNoiseScale.value=this.config.noise.scale,this.uniforms.uNoiseSpeed.value=this.config.noise.speed;let{vignetteAlphaMix:a,vignetteFeatherMix:i,vignetteSizeMix:s}=this.tweenObj.intro,{blurStrength:n,vignetteAlpha:r,vignetteFeather:o,vignetteSize:l,aberrationStrength:c,blurStrengthMult:d,vignetteAlphaMult:m,vignetteFeatherMult:u,vignetteSizeMult:h,aberrationStrengthMult:g}=this.tweenObj;this.uniforms.uAberrationStrength.value=rn(t,0,1,c*(1-g),c*(1+g));let p=rn(t,0,1,l*(1-h),l*(1+h));this.uniforms.uVignetteSize.value=ri(s,1,p);let _=rn(t,0,1,o*(1-u),o*(1+u));this.uniforms.uVignetteFeather.value=ri(i,1,_),this.uniforms.uVignetteAlpha.value=ri(a,1,this.config.vignette.alpha),this.uniforms.uBlurStrength.value=rn(t,0,1,n*(1-d),n*(1+d)),e&&(this.uniforms.uTime.value+=e)}}updateBlur(){let{iterations:e,amount:t}=this.config.blur;this.uniforms.tOriginal.value=this.tInput;let a=this.fboA,i=this.fboB;for(let s=0;s<e;s++){let n=(e-s-1)*t;0===s?this.uniforms.tBuffer.value=this.tInput:this.uniforms.tBuffer.value=i.texture,this.uniforms.tOriginal.value=this.tInput;let r=s%2==0;this.uniforms.uDirection.value.set(r?n:0,r?0:n),this.renderer.setRenderTarget(a),this.renderer.render(this,this.camera);let o=a;a=i,i=o}this.uniforms.tBuffer.value=i.texture,this.uniforms.tOriginal.value=this.tInput,this.uniforms.uDirection.value.set(0,0)}updateMousePosition(e,t){this.uniforms.uMousePosition.value.set(e,t)}dispose(){this.unsubscribe&&this.unsubscribe.forEach(e=>e()),this.fboA.dispose(),this.fboB.dispose(),this.material.dispose()}constructor({renderer:e,config:t,tInput:a}){super(),(0,ro.Z)(this,"onLoadChange",e=>{I.ZP.to(this.tweenObj.intro,{duration:1.5,delay:.5,ease:"back.out(0.5)",vignetteSizeMix:1,vignetteAlphaMix:1,vignetteFeatherMix:1})}),(0,ro.Z)(this,"onConfigChange",e=>{this.uniforms&&(this.deviceConfig=nY.ZP.deviceConfig,this.sectionConfig=nY.ZP.sectionConfig,this.tweenObj.blurStrength=this.sectionConfig.blur.strength,this.tweenObj.vignetteAlpha=this.sectionConfig.vignette.alpha,this.tweenObj.vignetteFeather=this.sectionConfig.vignette.feather,this.tweenObj.vignetteSize=this.sectionConfig.vignette.size,this.tweenObj.aberrationStrength=this.sectionConfig.aberration.strength,this.tweenObj.blurStrengthMult=this.sectionConfig.blur.strengthMult,this.tweenObj.vignetteAlphaMult=this.sectionConfig.vignette.alphaMult,this.tweenObj.vignetteFeatherMult=this.sectionConfig.vignette.featherMult,this.tweenObj.vignetteSizeMult=this.sectionConfig.vignette.sizeMult,this.tweenObj.aberrationStrengthMult=this.sectionConfig.aberration.strengthMult,this.renderer&&this.update())}),(0,ro.Z)(this,"onSectionChange",e=>{let{transition:t}=this.config,{duration:a,ease:i}=t;this.sectionConfig=e;let{blur:s,vignette:n,aberration:r}=this.sectionConfig,{strength:o,strengthMult:l}=s,{alpha:c,feather:d,size:m,alphaMult:u,featherMult:h,sizeMult:g}=n,{strength:p,strengthMult:_}=r;I.ZP.to(this.tweenObj,{blurStrength:o,vignetteAlpha:c,vignetteFeather:d,vignetteSize:m,aberrationStrength:p,blurStrengthMult:l,vignetteAlphaMult:u,vignetteFeatherMult:h,vignetteSizeMult:g,aberrationStrengthMult:_,duration:a,ease:i})}),this.name="PostprocessingScene",this.camera=new rl.iKG(-1,1,1,-1,.1,1e3),this.renderer=e,this.config=t||{},this.tInput=a,this.config=t,this.sectionConfig=nY.ZP.sectionConfig,this.setup(),this.unsubscribe=[nY.ZP.subscribeToLoad(this.onLoadChange),nY.ZP.subscribeToConfig(this.onConfigChange),nY.ZP.subscribeToSectionChanges(this.onSectionChange)]}}var rF=rH,rP=" \nvarying vec2 vUv;\nuniform vec2 uResolution;\nuniform float uTime;\nuniform float uAlpha;\n \nfloat random(vec2 st) {\n  return fract(sin(dot(st.xy, vec2(12.9898, 78.233))) * 43758.5453123);\n}\n\nvoid main() { \n  vec3 noise = vec3(random(vUv * (1.0 + uTime))); \n  gl_FragColor = vec4(vec3(noise), uAlpha);\n}",rW="varying vec2 vUv; \nvoid main() {\n  vUv = uv;\n  gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n}";class rG extends rl.ZAu{setup(){this.lastUpdateTime=0,this.updateRate=1/30,this.createPlane()}createPlane(){let{noise:e}=nY.ZP.deviceConfig,t=this.uniforms={uResolution:{value:new rl.FM8(this.width,this.height)},uTime:{value:0},uAlpha:{value:e.alpha}};this.material=new rl.jyz({vertexShader:rW,fragmentShader:rP,uniforms:t,blending:rl.WMw,transparent:!0,depthWrite:!1,depthTest:!1}),this.plane=new rl.Kj0(new rl._12(1,1),this.material),this.add(this.plane)}resize(e,t){var a;this.uniforms.uResolution.value.set(e,t),null===(a=this.plane)||void 0===a||a.scale.set(e,t,1)}dispose(){this.material&&this.material.dispose(),this.parent&&this.parent.remove(this)}constructor(e,t){super(),(0,ro.Z)(this,"update",e=>{this.lastUpdateTime+=e,this.lastUpdateTime>=this.updateRate&&(this.uniforms.uTime.value+=this.lastUpdateTime,this.lastUpdateTime=0)}),this.width=e,this.height=t,this.setup()}}var rU=rG;class rV{setup(){this.breathingConfig={intensity:1,inhaleEase:"none",exhaleEase:"none",inhaleDuration:1,exhaleDuration:1},this.deviceConfig=nY.ZP.deviceConfig,this.breathingConfig=this.deviceConfig.breathing,this.breathingValue=0,this.tweenObj={progress:0},this.createTimeline()}createTimeline(){this.timeline&&this.timeline.kill(),this.timeline=I.p8.timeline({repeat:-1,onUpdate:this.onTimelineUpdate.bind(this)}),I.p8.set(this.tweenObj,{progress:0}),this.timeline.to(this.tweenObj,{progress:1,duration:this.breathingConfig.inhaleDuration,ease:this.breathingConfig.inhaleEase}),this.timeline.to(this.tweenObj,{progress:0,duration:this.breathingConfig.exhaleDuration,ease:this.breathingConfig.exhaleEase}),this.timeline.time(0),this.timeline.timeScale(this.breathingConfig.intensity)}onTimelineUpdate(){var e,t;let a=(null===(e=nY.ZP.viewportProgress)||void 0===e?void 0:e.entry)||0;null===(t=nY.ZP.viewportProgress)||void 0===t||t.exit,a>0&&(nY.ZP.breathing=this.tweenObj.progress*Math.pow(a,2))}update(e){}dispose(){this.timeline&&(this.timeline.kill(),this.timeline=null),this.unsubscribe&&this.unsubscribe()}constructor(){(0,ro.Z)(this,"onConfigChange",()=>{this.deviceConfig=nY.ZP.deviceConfig,this.breathingConfig=this.deviceConfig.breathing,this.createTimeline()}),this.setup(),this.unsubscribe=nY.ZP.subscribeToConfig(this.onConfigChange)}}var rZ=rV;class rY{calcProgress(){let{viewport:e,container:t}=nY.ZP.scrollData;if(!e||!t)return;let{top:a,bottom:i,height:s}=e,{top:n,bottom:r,height:o}=t,l=0,c=s;l=i<=n?0:i>=n+c?1:(i-n)/c;let d=0;d=i<=r-s?0:i>=r?1:(i-(r-s))/s,this.rawEntry=l,this.rawExit=d}update(e){this.calcProgress(),this.entrySpring.setTarget(this.rawEntry),this.exitSpring.setTarget(this.rawExit);let t=1e3*e,a=this.entrySpring.update(t),i=this.exitSpring.update(t);nY.ZP.viewportProgress={entry:a,exit:i}}dispose(){}constructor(){this.deviceConfig=nY.ZP.deviceConfig;let{tension:e,smoothingFactor:t}=this.deviceConfig.scroll,a={initialValue:0,tension:e,useDirectMode:!0,smoothingFactor:t,precision:1e-4};this.entrySpring=new rv(a),this.exitSpring=new rv(a),this.rawEntry=0,this.rawExit=0}}var rq=rY;let rK="\nvarying vec2 vUv;\n\nvoid main() {\n  vUv = uv;\n  gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n}\n",rz="\nuniform sampler2D tTexture;\nuniform float uBrightness;\nuniform float uContrast;\nvarying vec2 vUv;\n\nvoid main() {\n  vec4 color = texture2D(tTexture, vUv);  \n\n  // disregard the alpha channel which has the depth map in it\n  gl_FragColor = vec4(color.rgb, 1.);\n}\n";class rQ extends rl.xsS{setup(e,t){this.setupRTs(e,t),this.setupCamera(e,t),this.perspectiveScene=new rB({renderer:this.renderer,renderTexture:this.renderTarget},e,t),this.setupDisplayPlane(e,t),this.setupLowPerformanceMaterial(),this.applyPerformanceMode()}setupLowPerformanceMaterial(){var e,t;this.lowPerformanceMaterial=new rl.jyz({uniforms:{tTexture:{value:this.renderTarget.texture},uBrightness:{value:(null===(e=this.config.image)||void 0===e?void 0:e.brightness)||1},uContrast:{value:(null===(t=this.config.image)||void 0===t?void 0:t.contrast)||1}},vertexShader:rK,fragmentShader:rz,depthTest:!1,depthWrite:!1,blending:rl.jFi,transparent:!1})}setupRTs(e,t){this.renderTarget=new rl.dd2(e,t,{minFilter:rl.wem,magFilter:rl.wem,format:rl.wk1,type:rl.cLu})}setupCamera(e,t){this.orthoCamera=new rl.iKG(-(e/2),e/2,t/2,-(t/2),.01,1e3),this.orthoCamera.position.z=1}setupDisplayPlane(e,t){let a=new rl._12(1,1);this.displayPlane=new rl.Kj0(a,new rl.vBJ),this.displayPlane.position.z=-1,this.add(this.displayPlane),this.postProcessingScene=new rF({tInput:this.renderTarget.texture,renderer:this.renderer,config:this.config}),this.postProcessingScene.resize(e,t),this.postProcessingScene.update(0),this.displayPlane.material=this.postProcessingScene.material,this.displayPlane.material.needsUpdate=!0,this.noiseOverlay=new rU(e,t),this.add(this.noiseOverlay)}applyPerformanceMode(){this.displayPlane&&(this.performanceMode===n0.GJ.LOW?(this.lowPerformanceMaterial.uniforms.tTexture.value=this.renderTarget.texture,this.displayPlane.material=this.lowPerformanceMaterial):this.displayPlane.material=this.postProcessingScene.material,this.displayPlane.material.needsUpdate=!0)}setPerformanceMode(e){this.performanceMode!==e&&(this.performanceMode=e,this.applyPerformanceMode())}mousemove(e){if(this.perspectiveScene&&this.perspectiveScene.mousemove(e),this.performanceMode===n0.GJ.HIGH&&this.postProcessingScene){let t=e.clientX/window.innerWidth,a=1-e.clientY/window.innerHeight;this.postProcessingScene.updateMousePosition(t,a)}}setSection(e){this.perspectiveScene&&this.config.sections[e]&&this.perspectiveScene.setSection(e)}update(e){this.viewportProgressService.update(e),this.breathingService.update(e),this.perspectiveScene.update(e),this.performanceMode===n0.GJ.HIGH&&this.postProcessingScene&&this.postProcessingScene.update(e),this.renderer.setRenderTarget(null),this.renderer.render(this,this.orthoCamera),this.noiseOverlay.update(e)}resize(e,t){let a=1;this.orthoCamera&&(this.orthoCamera.left=-(e/2),this.orthoCamera.right=e/2,this.orthoCamera.top=t/2,this.orthoCamera.bottom=-(t/2),this.orthoCamera.updateProjectionMatrix()),this.renderTarget&&this.renderTarget.setSize(e*a,t*a),this.perspectiveScene&&this.perspectiveScene.resize(e,t),this.displayPlane&&this.displayPlane.scale.set(e,t,1),this.performanceMode===n0.GJ.HIGH&&this.postProcessingScene&&this.postProcessingScene.resize(e*a,t*a),this.noiseOverlay&&this.noiseOverlay.resize(e,t)}hideUi(e){this.perspectiveScene&&this.perspectiveScene.hideUi(e)}dispose(){this.noiseOverlay&&(this.noiseOverlay.dispose(),this.noiseOverlay=null),this.unsubscribe&&this.unsubscribe.forEach(e=>e()),this.renderer&&this.renderer.setRenderTarget(null),this.postProcessingScene&&(this.postProcessingScene.dispose(),this.postProcessingScene=null),this.renderTarget&&(this.renderTarget.dispose(),this.renderTarget=null),this.perspectiveScene&&(this.perspectiveScene.dispose(),this.perspectiveScene=null),this.displayPlane&&(this.displayPlane.geometry&&this.displayPlane.geometry.dispose(),this.displayPlane.material&&this.displayPlane.material.dispose(),this.displayPlane=null),this.lowPerformanceMaterial&&(this.lowPerformanceMaterial.dispose(),this.lowPerformanceMaterial=null),this.breathingService&&(this.breathingService.dispose(),this.breathingService=null)}constructor(e={},t,a,i,s,n=n0.GJ.HIGH){super(),(0,ro.Z)(this,"onConfigChange",e=>{this.deviceConfig=nY.ZP.deviceConfig}),(0,ro.Z)(this,"onPerformanceModeChange",e=>{this.setPerformanceMode(e)}),this.config=e,this.renderer=t,this.orthoCamera=null,this.displayPlane=null,this.postProcessingScene=null,this.lowPerformanceMaterial=null,this.pixelRatio=s,this.performanceMode=n,this.unsubscribe=[nY.ZP.subscribeToConfig(this.onConfigChange),nY.ZP.subscribeToPerformanceMode(this.onPerformanceModeChange)],this.sectionConfig=nY.ZP.sectionConfig,this.deviceConfig=nY.ZP.deviceConfig,this.setup(a,i),this.breathingService=new rZ,this.viewportProgressService=new rq}}var rJ=rQ,rX=a(165),r$=a.n(rX);function r0(e){let{config:t}=e,{scrollMode:a,subscribeToVisibility:i,debug:r,breakpoint:o,performanceMode:l,setDimensions:c}=nX(),{isAndroidDevice:d}=re(),{countFrame:m,resetMonitoring:u}=n6(),[h,g]=(0,n.useState)(!1),p=(0,n.useRef)(null),_=(0,n.useRef)(null),v=(0,n.useRef)(null),f=(0,n.useRef)(!1),x=(0,n.useRef)(0),b=(0,n.useRef)(null),C=(0,n.useRef)(null),S=n1(),{isTouchHold:I}=rr({onMove(e){v.current&&v.current.mousemove(e)},breakpoint:o});(0,n.useEffect)(()=>{v.current&&v.current.hideUi(!I)},[I]);let T=(0,n.useCallback)(e=>{f.current&&_.current&&(m(),v.current&&v.current.update(e))},[m]);(0,n.useEffect)(()=>(x.current+=1,g(!0),()=>{g(!1)}),[]),(0,n.useEffect)(()=>{let e=e=>{let{isVisible:t}=e;t?(r?S.startWithStats():S.start(),h&&(u(),p.current&&_.current&&N())):S.stop()},t=i(e);return()=>{t()}},[r,h,S,u,i]),(0,n.useEffect)(()=>{v.current&&v.current.setPerformanceMode(l)},[l]);let N=(0,n.useCallback)(()=>{if(!p.current||!_.current)return;let e=p.current.clientWidth,t=p.current.clientHeight;if(_.current.setSize(e,t),v.current){let a=_.current.domElement.clientWidth,i=_.current.domElement.clientHeight;v.current.resize(a,i),c({windowWidth:window.innerWidth,windowHeight:window.innerHeight,canvasWidth:a,canvasHeight:i,containerWidth:e,containerHeight:t})}},[c]),E=(0,n.useCallback)(()=>{C.current&&clearTimeout(C.current),C.current=setTimeout(()=>{N()},100)},[N]);return(0,n.useEffect)(()=>{if(!p.current||f.current)return;let e=()=>{console.log("WebGL :: setup"),_.current=new n$.CP7({antialias:!1,alpha:!1,depth:!1,stencil:!1,powerPreference:"high-performance"});let e=Math.min(window.devicePixelRatio,1.5);_.current.setPixelRatio(e),_.current.autoClear=!1;let a=p.current.clientWidth,i=p.current.clientHeight,s=a,n=i;_.current.setSize(a,i),v.current=new rJ(t,_.current,s,n,e,l),p.current.appendChild(_.current.domElement)};return e(),N(),S.add(T),b.current=new ResizeObserver(e=>{e.length>0&&E()}),p.current&&b.current.observe(p.current),window.addEventListener("resize",E),n0.qh.forEach(e=>{setTimeout(()=>{p.current&&_.current&&N()},e)}),f.current=!0,()=>{console.log("WebGL :: dispose"),window.removeEventListener("resize",E),b.current&&(p.current&&b.current.unobserve(p.current),b.current.disconnect(),b.current=null),C.current&&(clearTimeout(C.current),C.current=null),S.remove(T),S.stop(),_.current&&(_.current.setRenderTarget(null),_.current.clear()),v.current&&(v.current.dispose(),v.current=null),_.current&&p.current&&(p.current.removeChild(_.current.domElement),_.current.dispose(),_.current=null),f.current=!1}},[]),(0,s.jsx)("div",{ref:p,className:"".concat(r$().WebGL)})}var r1=n.memo(r0),r2=a(3378),r4=a.n(r2),r3=a(3935),r5=a(9090),r8=a.n(r5),r6=function(e){let{isEnabled:t,scrollTopRef:a,currentSection:i,progressRef:r,settings:o,sections:l=[],viewportHeight:c,scrollHeight:d,containerOffset:m,isReparented:u,isBottomAligned:h,scrollDirection:g,rectIsVisible:p,rectIsActive:_,isWindowScroll:v}=e,[f,x]=(0,n.useState)(0),[b,C]=(0,n.useState)(null),[S,I]=(0,n.useState)(null),[T,N]=(0,n.useState)(!1),[E,w]=(0,n.useState)(r?r.current:0),[k,y]=(0,n.useState)(a||0),A=(0,n.useRef)(null);(0,n.useEffect)(()=>{"undefined"!=typeof document&&(I(document.body),console.log("ScrollDebugger: Portal container set to document.body"))},[]),(0,n.useEffect)(()=>{console.log("ScrollDebugger: isEnabled prop changed to",t),t&&N(!0)},[t]),(0,n.useEffect)(()=>{let e=nY.ZP.subscribe(()=>{x(e=>e+1)});return()=>e()},[]),(0,n.useEffect)(()=>{if(!t||!r)return;let e=()=>{w(r.current),y(nY.ZP.scrollTop),A.current=requestAnimationFrame(e)};return A.current=requestAnimationFrame(e),()=>{A.current&&cancelAnimationFrame(A.current)}},[t,r]),(0,n.useEffect)(()=>{if(t){let e=document.querySelector("#articlesHolder");C({windowScroll:window.scrollY,documentHeight:document.documentElement.scrollHeight,windowHeight:window.innerHeight,containerScroll:e?e.scrollTop:0,containerHeight:e?e.scrollHeight:0,containerClientHeight:e?e.clientHeight:0,containerMaxScroll:e?e.scrollHeight-e.clientHeight:0,containerScrollPercent:e?e.scrollTop/(e.scrollHeight-e.clientHeight)*100:0})}},[E,t]);let j={transform:"translateY(".concat(k,"px)")},L=()=>{if(!o||!o.sectionHeightMultiplier)return console.warn("ScrollDebugger: Missing settings or sectionHeightMultiplier"),null;let e=c*o.sectionHeightMultiplier;return l.map((t,a)=>{var n,r;let l=void 0!==t.scroll,c=l&&(null===(n=t.scroll)||void 0===n?void 0:n.easeInType)!==void 0?t.scroll.easeInType:o.easeInType,d=l&&(null===(r=t.scroll)||void 0===r?void 0:r.easeOutType)!==void 0?t.scroll.easeOutType:o.easeOutType,m=a===i;return(0,s.jsxs)("div",{className:"".concat(a%2==0?r8().sectionEven:r8().sectionOdd," ").concat(m?r8().currentSection:""),style:{height:"".concat(e,"px")},children:[(0,s.jsxs)("div",{children:["Section ",a]}),(0,s.jsxs)("div",{className:r8().sectionInfo,children:["In: ",c,(0,s.jsx)("br",{}),"Out: ",d]})]},"section-".concat(a))})};if(!t||!S)return console.log("ScrollDebugger not rendering:",{isEnabled:t,hasPortalContainer:!!S}),null;let O=(0,s.jsxs)("div",{className:r8().debuggerWrapper,"data-testid":"scroll-debugger",children:[(0,s.jsxs)("div",{className:r8().infoPanel,children:[(0,s.jsxs)("div",{children:["Scroll Mode:"," ",(0,s.jsx)("span",{className:v?r8().statusInfo:r8().statusWarning,children:v?"Window":"Container"})]}),(0,s.jsxs)("div",{children:["ScrollTop: ",Math.round(Math.abs(k||0)),"px"]}),(0,s.jsxs)("div",{children:["Section: ",i]}),(0,s.jsxs)("div",{children:["Progress: ",(100*(E||0)).toFixed(1),"%"]}),(0,s.jsx)("div",{className:r8().separator,children:"Container Status"}),(0,s.jsxs)("div",{children:["Visible:"," ",(0,s.jsx)("span",{className:p?r8().statusTrue:r8().statusFalse,children:p?"Yes":"No"})]}),(0,s.jsxs)("div",{children:["Active:"," ",(0,s.jsx)("span",{className:_?r8().statusTrue:r8().statusFalse,children:_?"Yes":"No"})]}),!v&&(0,s.jsxs)("div",{children:["Reparented:"," ",(0,s.jsx)("span",{className:u?r8().statusTrue:r8().statusFalse,children:u?"Yes":"No"})]}),(0,s.jsxs)("div",{children:["Bottom Aligned:"," ",(0,s.jsx)("span",{className:h?r8().statusTrue:r8().statusFalse,children:h?"Yes":"No"})]}),(0,s.jsxs)("div",{children:["Direction: ",g]}),o.debugFixedContainer&&b&&(0,s.jsxs)("div",{className:r8().scrollDetails,children:[(0,s.jsx)("div",{className:r8().separator,children:"Scroll Data"}),v?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{children:["Window Scroll: ",Math.round(b.windowScroll||0),"px"]}),(0,s.jsxs)("div",{children:["Document Height: ",Math.round(b.documentHeight||0),"px"]}),(0,s.jsxs)("div",{children:["Window Height: ",Math.round(b.windowHeight||0),"px"]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{children:["Container Scroll: ",Math.round(b.containerScroll||0),"px"]}),(0,s.jsxs)("div",{children:["Container Height: ",Math.round(b.containerHeight||0),"px"]}),(0,s.jsxs)("div",{children:["Container Client: ",Math.round(b.containerClientHeight||0),"px"]}),(0,s.jsxs)("div",{children:["Max Scroll: ",Math.round(b.containerMaxScroll||0),"px"]}),(0,s.jsxs)("div",{children:["Scroll %: ",(b.containerScrollPercent||0).toFixed(1),"%"]})]}),(0,s.jsxs)("div",{children:["Timeline Position: ",(E||0).toFixed(3)]}),m&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:r8().separator,children:"Container Position"}),(0,s.jsxs)("div",{children:["Offset Top: ",Math.round(m.top||0),"px"]}),(0,s.jsxs)("div",{children:["Relative Pos:"," ",Math.round(m.top-(v?b.windowScroll||0:b.containerScroll||0)),"px"]})]})]})]}),(0,s.jsx)("div",{className:r8().viewportIndicator,children:(0,s.jsx)("div",{className:r8().viewportLabel,children:"Viewport"})}),(0,s.jsx)("div",{className:r8().debugContainer,style:{height:d?"".concat(d+c,"px"):"100vh"},children:(0,s.jsx)("div",{className:r8().debugContent,style:j,children:L()})})]});return(0,r3.createPortal)(O,S)};function r7(){let{elRef:e=null,scrollContainerRef:t=null,activeMargin:a=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[i,s]=(0,n.useState)(!1),[r,o]=(0,n.useState)(!1),[l,c]=(0,n.useState)("down"),d=(0,n.useRef)(null),m=(0,n.useRef)(0),u=(0,n.useRef)([]),h=(0,n.useRef)(null),g=(0,n.useRef)(null),p=(0,n.useRef)(null),_=(0,n.useRef)(null),{scrollMode:v,isClient:f}=nX(),x=(0,n.useRef)({scrollY:0,viewportHeight:1080,viewportWidth:1080,scrollDirection:"down",rect:{scrollContent:{y:1,height:1,get baseY(){return this.y+this.height}},viewport:{y:1,height:1,get baseY(){return this.y+this.height}},viewportUnit:{y:1,height:1,get baseY(){return this.y+this.height}}},rectIsVisible:!1,rectIsActive:!1}),b=(0,n.useCallback)(()=>{var e;return f?v===n0.jq.WINDOW?window.scrollY||document.documentElement.scrollTop||0:(null==t?void 0:null===(e=t.current)||void 0===e?void 0:e.scrollTop)||0:0},[t,v,f]),C=(0,n.useCallback)(()=>f?window.innerHeight:1080,[f]),S=(0,n.useCallback)(e=>{let t=e>m.current?"down":"up";return t!==x.current.scrollDirection&&(x.current.scrollDirection=t,c(t)),m.current=e,t},[]),I=(0,n.useCallback)(()=>{if(!f||!(null==e?void 0:e.current))return;console.log("LD : useScrollRects - calcLayout");let t=C(),i=b(),n=x.current;S(i),n.scrollY=i,n.viewportHeight=t,n.viewportWidth=window.innerWidth;let r=e.current.getBoundingClientRect();n.rect.scrollContent.y=r.top+i,n.rect.scrollContent.height=r.height,n.rect.viewport.y=r.top,n.rect.viewport.height=r.height,n.rect.viewportUnit.y=r.top/t,n.rect.viewportUnit.height=r.height/t;let{y:l,baseY:c}=n.rect.viewportUnit,d=a;n.rectIsVisible=c>0&&l<1,n.rectIsActive=c+d>0&&l-d<1,s(n.rectIsVisible),o(n.rectIsActive)},[f,e,C,b,S,a]),T=(0,n.useCallback)(()=>{if(!f||!(null==e?void 0:e.current))return;let t=x.current,i=t.viewportHeight,n=b();S(n),t.scrollY=n,t.rect.viewport.y=t.rect.scrollContent.y-n,t.rect.viewportUnit.y=t.rect.viewport.y/i;let{y:r,baseY:l}=t.rect.viewportUnit,c=a;t.rectIsVisible=l>0&&r<1,t.rectIsActive=l+c>0&&r-c<1,s(t.rectIsVisible),o(t.rectIsActive)},[f,e,a,b,S]);return(0,n.useEffect)(()=>{if(!f)return;let t=()=>{d.current&&clearTimeout(d.current),d.current=setTimeout(I,100)},a=()=>{I(),u.current.forEach(clearTimeout),u.current=[],n0.qh.forEach(t=>{let a=setTimeout(()=>{e.current&&I()},t);u.current.push(a)})};return a(),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t),d.current&&clearTimeout(d.current),u.current.forEach(clearTimeout),u.current=[]}},[f,v,I,e]),(0,n.useEffect)(()=>{if(!f)return;let e=()=>{},a=null==t?void 0:t.current,i=()=>T();return v===n0.jq.WINDOW?(window.addEventListener("scroll",i,{passive:!0}),e=()=>window.removeEventListener("scroll",i)):a&&(a.addEventListener("scroll",i,{passive:!0}),e=()=>{a&&a.removeEventListener("scroll",i)}),i(),e},[f,v,t,T]),(0,n.useEffect)(()=>{if(!f||"undefined"==typeof document||!window.ResizeObserver)return;let t=()=>{g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{e.current&&I()},150)},a=e=>{e.length>0&&t()};return h.current=new ResizeObserver(a),h.current.observe(document.body),()=>{h.current&&(h.current.disconnect(),h.current=null),g.current&&clearTimeout(g.current)}},[f,I,e]),(0,n.useEffect)(()=>{if(!f||v!==n0.jq.CONTAINER||!(null==t?void 0:t.current)||!window.ResizeObserver){p.current&&(p.current.disconnect(),p.current=null),_.current&&clearTimeout(_.current);return}let a=t.current,i=()=>{_.current&&clearTimeout(_.current),_.current=setTimeout(()=>{e.current&&I()},150)},s=e=>{e.length>0&&i()};return p.current=new ResizeObserver(s),p.current.observe(a),()=>{p.current&&(p.current.disconnect(),p.current=null),_.current&&clearTimeout(_.current)}},[f,v,t,I,e]),{elRef:e,scrollData:x.current,scrollDirection:l,rectIsVisible:i,rectIsActive:r}}let r9=null,oe=()=>{if("undefined"==typeof document)return 10;if(r9)return r9;let e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);let t=document.createElement("div");return e.appendChild(t),r9=e.offsetWidth-t.offsetWidth,document.body.removeChild(e),r9};var ot=function(e){let{children:t,config:a}=e,i=(0,n.useMemo)(()=>(null==a?void 0:a.sections)||[],[a]),r=(0,n.useMemo)(()=>i.length,[i]),{setVisibility:o,setScrollData:l,setCurrentSectionIndex:c,scrollMode:d,setScrollMode:m,isClient:u,breakpoint:h,windowWidth:g,loadState:p}=nX(),_=(0,n.useRef)(null),v=(0,n.useRef)(null),f=(0,n.useRef)(null),x=(0,n.useRef)(null),b=(0,n.useRef)({progress:0,isBottomAligned:!1}),C=(0,n.useRef)(null),S=(0,n.useRef)(0),T=(0,n.useRef)(null),E=(0,n.useRef)(0),w=(0,n.useRef)(null),k=(0,n.useRef)(null),[y,A]=(0,n.useState)("black"),[j,L]=(0,n.useState)(0),[O,B]=(0,n.useState)(0),[R,M]=(0,n.useState)(0),[D,H]=(0,n.useState)(0),[F,P]=(0,n.useState)(0),[W,G]=(0,n.useState)(0),[U,V]=(0,n.useState)(!1),[Z,Y]=(0,n.useState)(null),[q,K]=(0,n.useState)(!1),[z,Q]=(0,n.useState)(!1),J=(0,n.useMemo)(()=>(null==a?void 0:a.scroll)||{sectionHeightMultiplier:1,scrollContainerSelector:"#articlesHolder",easeInType:"expo.in",easeOutType:"expo.out",debug:!1},[a]);(0,n.useEffect)(()=>{if(u&&"undefined"!=typeof document){let e=J.scrollContainerSelector||"#articlesHolder",t=document.querySelector(e);t?(w.current=t,m(n0.jq.CONTAINER)):(w.current=window,m(n0.jq.WINDOW))}},[u,J,m]);let{scrollData:X,rectIsVisible:$,rectIsActive:ee,scrollDirection:et}=r7({elRef:_,scrollContainerRef:w}),ea=(0,n.useRef)(X);(0,n.useEffect)(()=>{ea.current=X},[X]),(0,n.useEffect)(()=>{if(!u||!_.current)return;let e=()=>{var e;let t=null===(e=_.current)||void 0===e?void 0:e.getBoundingClientRect();P(t.left)};_.current&&(H(_.current.offsetWidth),e()),window.addEventListener("resize",e);let t=new ResizeObserver(e=>{for(let t of e)if(t.target===_.current){let a=t.contentRect.width;H(a)}});return t.observe(_.current),k.current=t,()=>{k.current&&k.current.disconnect(),window.removeEventListener("resize",e)}},[u,_.current]),(0,n.useEffect)(()=>{u&&f.current&&0!==D&&(f.current.style.position=z?"absolute":"unset",f.current.style.left=z?"".concat(F,"px"):"unset",f.current.style.width="".concat(D,"px"))},[u,D,F,z,f.current]);let ei=()=>{try{if(f.current&&x.current&&f.current.parentNode!==x.current)return x.current.appendChild(f.current),Q(!1),!0;return!1}catch(e){return!1}};(0,n.useEffect)(()=>{G(e=>e+1)},[a]),(0,n.useEffect)(()=>{u&&o($,ee)},[$,ee,o,u]),(0,n.useEffect)(()=>{if(u){let e=()=>{if(f.current){let e=f.current.offsetHeight;M(e>0?e:window.innerHeight)}else M(window.innerHeight)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}},[u]);let es=(0,n.useMemo)(()=>R*((null==J?void 0:J.sectionHeightMultiplier)||1),[R,J]);return(0,n.useEffect)(()=>{var e;if(!u)return;let t=(null==a?void 0:null===(e=a.sections)||void 0===e?void 0:e.length)||0;if(t>0){let i=t*es-R;L(Math.max(0,i))}else L(0)},[a,es,R,u]),(0,n.useEffect)(()=>{B(j+R)},[j,R]),(0,n.useEffect)(()=>{if(u&&"undefined"!=typeof document){let e=document.querySelector("#reparentHolder");e&&(e.style.display="block",e.style.position="fixed",e.style.left="0px",e.style.top="0px",e.style.width="100vw",Y(e))}},[u]),(0,n.useEffect)(()=>{u&&f.current&&!x.current&&(x.current=f.current.parentNode,K(!0))},[u]),(0,n.useEffect)(()=>{let e=nY.ZP.subscribeToLoad(()=>{nY.ZP.loadState===n0.pi.LOADED&&A("unset")});return()=>null==e?void 0:e()}),(0,n.useEffect)(()=>{if(!u||!q||!f.current)return;!x.current&&f.current.parentNode&&(x.current=f.current.parentNode);let e=()=>{try{if(d===n0.jq.CONTAINER){let e=oe();if(U&&Z&&f.current){if(f.current.parentNode!==Z){let{innerWidth:t}=window;f.current.firstElementChild,_.current&&f.current&&(f.current.style.width="".concat(D,"px")),Z.appendChild(f.current),Q(!0),f.current.clientWidth}}else if(!U&&x.current&&f.current&&f.current.parentNode!==x.current){let a=f.current.firstElementChild;x.current.appendChild(f.current),Q(!1),a&&I.p8.set(a,{clearProps:"transform"})}}}catch(i){console.error("Error during reparenting:",i)}};e()},[U,Z,q,d,u,J.scrollContainerSelector,D]),(0,n.useEffect)(()=>{if(!u||!_.current||!q)return;let e=()=>{let t=ea.current;if(!t){T.current=requestAnimationFrame(e);return}let a=t.scrollY,i=t.rect.scrollContent.y,s=t.rect.scrollContent.height,n=i+s,o=a,d=t.viewportHeight,m=o+d;if(l({viewport:{top:o,bottom:m,height:d},container:{top:i,bottom:n,height:s}}),C.current&&j){let u=i-o;if(u<=0){let h=Math.abs(u),g=Math.min(h/j,1);E.current=g,C.current.progress(g);let p=-b.current.progress*j,_=g*j;if(l(e=>({...e,scrollTopRemapped:p,scrollTop:_})),r>1){let v=Math.abs(p)/j,f=Math.min(Math.floor(v*r),r-1);S.current=f,c(S.current)}}}let x=i+s-d<a;x?b.current.isBottomAligned||(b.current.isBottomAligned=!0):b.current.isBottomAligned&&(b.current.isBottomAligned=!1);let I=o>=i,N=m<=n,w=I&&N;w!==U&&V(w),T.current=requestAnimationFrame(e)};return T.current=requestAnimationFrame(e),()=>{T.current&&cancelAnimationFrame(T.current)}},[j,Z,q,U,d,c,u,r]),(0,n.useEffect)(()=>{if(u)return()=>{T.current&&(cancelAnimationFrame(T.current),T.current=null),C.current&&(C.current.kill(),C.current=null),ei(),k.current&&(k.current.disconnect(),k.current=null),setTimeout(()=>{let e=document.querySelector("#reparentHolder");if(e&&e.children.length>0)for(;e.firstChild;)e.removeChild(e.firstChild)},0)}},[u]),(0,N.V)(()=>{if(!u||!j||!_.current||!(null==a?void 0:a.sections))return;C.current&&C.current.kill();let e=I.p8.timeline({paused:!0});C.current=e;for(let t=0;t<r;t++)if(t!==r-1){var i,s,n,o;let l=t,c=t+1,d=(c-l)*.5,m=l+d,h=a.sections[t],g=a.sections[t+1],p=null!==(n=null===(i=h.scroll)||void 0===i?void 0:i.easeInType)&&void 0!==n?n:J.easeInType,v=null!==(o=null===(s=g.scroll)||void 0===s?void 0:s.easeOutType)&&void 0!==o?o:J.easeOutType,f=l*es/j,x=m*es/j,S=c*es/j;e.fromTo(b.current,{progress:f},{progress:x,ease:p,duration:d},l),e.fromTo(b.current,{progress:x},{progress:S,ease:v,duration:d},m)}return b.current.progress=0,()=>{C.current&&C.current.kill()}},{dependencies:[j,J.scrubAmount,J.easeInType,J.easeOutType,J.sectionHeightMultiplier,es,W],revertOnUpdate:!1}),(0,s.jsx)("div",{ref:_,className:r4().scrollContainer,style:{height:"".concat(O+.5*R,"px"),background:y},children:(0,s.jsxs)("div",{ref:v,className:"".concat(r4().pinContainer," \n              ").concat(b.current.isBottomAligned?r4().pinContainerBottom:""," \n              ").concat(d===n0.jq.WINDOW&&U?r4().windowScrollMode:""),style:{height:"".concat(R,"px")},children:[(0,s.jsx)("div",{ref:f,style:{width:D>0?"".concat(D,"px"):"100%"},children:t}),J.debug&&$&&(0,s.jsx)(r6,{isEnabled:J.debug,currentSection:S.current,progressRef:E,settings:J,sections:i,viewportHeight:R,scrollHeight:j,containerOffset:{top:null==X?void 0:X.rect.scrollContent.y,left:0},isReparented:U,isBottomAligned:b.current.isBottomAligned,scrollDirection:et,rectIsVisible:$,rectIsActive:ee,isWindowScroll:d===n0.jq.WINDOW})]})})};function oa(){let{breakpoint:e,deviceConfig:t,debug:a,isClient:i}=nX(),[r,o]=(0,n.useState)(null);return(0,n.useEffect)(()=>{},[e,a,i]),(0,s.jsx)(ot,{config:t,children:(0,s.jsx)("div",{className:nZ().LifeAndDeath,children:(0,s.jsx)(r1,{config:t})})},"scroll-".concat(e))}var oi=function(e){let{config:t}=e;return(0,s.jsx)(nJ,{children:(0,s.jsx)(oa,{})})},os=a(929);function on(e){let{data:t}=(0,c.ZP)(e.itemCN);if(!t)return(0,s.jsx)(s.Fragment,{});let a=t,i=a.elements.componentName.value;return""===i?(0,s.jsx)(s.Fragment,{}):(console.log("KTakeOver "+i),"Lunar"===i)?(0,s.jsx)(l,{}):"ComicBook"===i?(0,s.jsx)(aM,{config:aV}):"SourceCode"===i?(0,s.jsx)(nH,{config:nU}):"Lifeanddeath"===i?(0,s.jsx)(oi,{config:os.Z}):(0,s.jsx)(s.Fragment,{})}var or=(0,n.memo)(on)},4390:function(e,t,a){"use strict";a.d(t,{J:function(){return Z},Iz:function(){return Y},ZP:function(){return K}});var i=a(5893),s=a(7294),n=a(9734),r=a(3462),o=a(6319);function l(e){let t=(0,s.useRef)(null);(0,s.useEffect)(()=>{t.current=(0,r.kY)(e.scroller,e.codename)});let a=e.scroller+"_"+e.codename;return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"CardOuterHolder",id:a,children:(0,i.jsx)(o.Z,{codename:e.codename,parentItem:e.parentItem},e.codename)})})}var c=(0,s.memo)(l),d=a(6064);function m(e){let{data:t}=(0,n.ZP)(e.name);return((0,s.useEffect)(()=>{}),t&&"topic"==t.system.type)?(0,i.jsx)("div",{className:"TopicTimelineHolder",id:"TopicTimelineHolder",children:null==t?void 0:t.elements.content.value.map((a,s)=>(0,i.jsx)(c,{codename:a,parentItem:t,scroller:e.scroller},a))}):(0,i.jsx)(d.Z,{pageName:e.name})}var u=(0,s.memo)(m),h=a(5376),g=a(5152),p=a.n(g),_=a(730);function v(e){let[t,a]=(0,s.useState)(!1),n=(0,s.useRef)(null);return((0,s.useEffect)(()=>{let e={root:null,rootMargin:"200px",threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]},t=new IntersectionObserver(e=>{let i=e[0];i.isIntersecting&&(setTimeout(()=>{a(!0)},100),t.disconnect())},e);n.current&&t.observe(n.current)},[]),t)?(0,i.jsx)("div",{className:"KLB_Outer",id:h.l3+"_"+e.codename,children:(0,i.jsx)(_.default,{num:e.num,codename:e.codename,parentItem:e.parentItem},e.codename)}):(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"KLB_Outer",id:h.l3+"_"+e.codename,children:(0,i.jsx)(_.default,{num:e.num,codename:e.codename,parentItem:e.parentItem},e.codename)})})}p()(()=>Promise.resolve().then(a.bind(a,730)),{loadableGenerated:{webpack:()=>[730]},loading:()=>(0,i.jsx)("h1",{})});var f=(0,s.memo)(v);function x(e){let{data:t}=(0,n.ZP)(e.codename);return(null==t?void 0:t.elements.cardTargetsMainTarget)?(null==t||t.system.codename,(0,i.jsx)(i.Fragment,{children:null==t?void 0:t.elements.cardTargetsLightboxTargets.value.map((a,s)=>(0,i.jsx)(f,{num:e.num,codename:a,parentItem:t},Math.random()))})):(0,i.jsxs)(i.Fragment,{children:[" "," "]})}var b=(0,s.memo)(x);function C(e){let{data:t}=(0,n.ZP)(e.codename);if(!t)return(0,i.jsx)(i.Fragment,{});switch(t.system.type){case"card":if(!t.elements.cardTargetsLightboxTargets)return(0,i.jsx)(i.Fragment,{});return t.system.codename,(0,i.jsx)(i.Fragment,{children:t.elements.cardTargetsLightboxTargets.value.map((e,a)=>(0,i.jsx)(f,{num:a,codename:e,parentItem:t},a))});case"card_collections_and_rails":return(0,i.jsx)(i.Fragment,{children:t.elements.content.value.map((e,t)=>(0,i.jsx)(b,{num:t,codename:e},t))});default:return(0,i.jsx)(i.Fragment,{})}}var S=(0,s.memo)(C),I=a(5675),T=a.n(I),N=a(1163),E=a(1590),w=a(2121);function k(e){(0,s.useContext)(w.DN);let t=(0,N.useRouter)(),[a,r]=(0,s.useState)(!1),{asPath:o}=(0,N.useRouter)();function l(e){if(null==e)return"";let t=e.lastIndexOf("/");return -1===t?e:e.substring(0,t)}function c(){var e=l(o),a=l(e);t.push(a)}let m=(0,s.useRef)(null),{data:u}=(0,n.ZP)(e.name);return((0,s.useRef)(0),(0,s.useEffect)(()=>{(0,E.VE)();let e={root:null,rootMargin:"200px",threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]},a=new IntersectionObserver(e=>{let t=e[0];t.isIntersecting&&(a.disconnect(),c())},e);setTimeout(()=>{m.current&&a.observe(m.current)},1e4);let i=()=>{t.asPath===window.location.pathname&&r(!0)};return t.events.on("routeChangeComplete",i),()=>{t.events.off("routeChangeComplete",i)}}),u)?(0,i.jsxs)("div",{className:"LightboxHolder lightboxitemSnap",style:{display:"block"},id:"LightboxHolder",children:[(0,i.jsx)("div",{className:"icon_Holder",id:"LightboxHolderClose",onClick(){c()},children:(0,i.jsx)(T(),{className:"icon_Img icon_CloseIcon",width:44,height:15,src:"/icon_Close.svg",alt:"icon_Close"})}),(0,i.jsxs)("div",{className:"LightboxHolderInner",id:"LightboxHolderInner",children:[(0,i.jsx)("div",{className:"KLB_Outer",id:h.l3+"_"+e.item,children:(0,i.jsx)(_.default,{num:0,codename:e.item,parentItem:u},e.item)}),u.elements.content.value.map((e,t)=>(0,i.jsx)(S,{codename:e,parentItem:u},e)),(0,i.jsx)("div",{className:"LightboxEndFrame",children:(0,i.jsx)("div",{className:"LightboxEndClose",ref:m})})]})]}):(0,i.jsx)(d.Z,{pageName:e.name})}var y=(0,s.memo)(k),A=a(6501);function j(e){let{data:t}=(0,n.ZP)(e.codename);return(null==t?void 0:t.elements.cardTargetsMainTarget)?(0,i.jsx)(i.Fragment,{children:null==t?void 0:t.elements.cardTargetsMainTarget.value.map((e,t)=>(0,i.jsx)(A.default,{name:e,topic:"",section:""},e))}):(0,i.jsxs)(i.Fragment,{children:[" "," "]})}var L=(0,s.memo)(j);function O(e){let[t,a]=(0,s.useState)(!1),n=(0,s.useRef)(null);return((0,s.useEffect)(()=>{let e={root:null,rootMargin:"200px",threshold:[.1,.2,.3,.4,.5,.6,.7,.8,.9,1]},t=new IntersectionObserver(e=>{let i=e[0];i.isIntersecting&&(setTimeout(()=>{a(!0)},100),t.disconnect())},e);n.current&&t.observe(n.current)},[]),t)?(0,i.jsx)(A.default,{name:e.name,topic:"",section:""},e.name):(0,i.jsx)("div",{id:"ph_"+e.name,className:"ItemPlaceHolder",ref:n})}p()(()=>Promise.resolve().then(a.bind(a,6501)),{loadableGenerated:{webpack:()=>[6501]},loading:()=>(0,i.jsx)("h1",{})});var B=(0,s.memo)(O);function R(e){let{data:t}=(0,n.ZP)(e.codename);if(!t)return(0,i.jsx)(i.Fragment,{});switch(null==t?void 0:t.system.type){case"card":if("campaign_articles_card"==t.elements.cardType.value[0].codename)return(0,i.jsx)(i.Fragment,{children:t.elements.cardSource.value.map(e=>(0,i.jsx)(B,{name:e,topic:"",section:""},e))});if(!t.elements.cardTargetsMainTarget)return(0,i.jsxs)(i.Fragment,{children:[" "," "]});return(0,i.jsx)(i.Fragment,{children:t.elements.cardTargetsMainTarget.value.map(e=>(0,i.jsx)(A.default,{name:e,topic:"",section:""},e))});case"card_collections_and_rails":return(0,i.jsx)(i.Fragment,{children:t.elements.content.value.map((e,t)=>(0,i.jsx)(L,{codename:e},e))});default:return(0,i.jsx)(i.Fragment,{})}}var M=(0,s.memo)(R),D=a(4901),H=a(7858);function F(e){let t=(0,s.useContext)(Y),{data:a}=(0,n.ZP)(e.name);if((0,s.useRef)(0),(0,s.useEffect)(()=>{let e=document.querySelector(".FooterHolder"),t=document.querySelector("#articlesHolder");if(e&&t){setTimeout(()=>{t.append(e)},8e3);var a=(0,E.O$)()/2;e.setAttribute("style","left: "+a+"px")}}),!a)return(0,i.jsx)(d.Z,{pageName:e.name});var r=0;(0,E.p4)("V_AutoPlayOn",!1);var o=(0,D.ql)(e.item);return t.lists.scrollerList.push(o),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"articlesHolder articleAutoPlayOff",style:{display:"block",left:r+"px"},id:"articlesHolder",children:[(0,i.jsx)(H.Z,{name:o,topic:"",section:""},o),a.elements.content.value.map((e,t)=>(0,i.jsx)(M,{codename:e,parentItem:a},e))]}),(0,i.jsx)("div",{id:"reparentHolder"})]})}var P=(0,s.memo)(F),W=a(3150),G=a(7206);let U={state:{articles:""},setState(e){}},V={lists:{scrollerList:[]},setLists(e){}},Z=(0,s.createContext)(U),Y=(0,s.createContext)(V);function q(e){let t=(0,s.useContext)(w.DN),[a,n]=(0,s.useState)(U.state),[r,o]=(0,s.useState)(V.lists);function l(t,a){e.scroller.toLowerCase()==h.rO.toLowerCase()&&(t.scrollIntoView(),setTimeout(()=>{(0,E.H5)(a,"stack")},500))}return(0,s.useEffect)(()=>{setTimeout(()=>{if(""!=e.item){var t="ph_"+(0,W.getKCodenameFromName)(e.item);let a=document.getElementById(t);var i=e.scroller+"_"+(0,W.getKCodenameFromName)(e.item);let s=document.getElementById(i);s?l(s,i):a&&l(a,t),setTimeout(()=>{e.scroller,(0,W.getKCodenameFromName)(e.item);let t=document.getElementById(i);t&&l(t,i)},3e3)}},10)}),G.h,t.state.SC_section,e.name,e.scroller,(0,i.jsx)(Z.Provider,{value:{state:a,setState:n},children:(0,i.jsx)(Y.Provider,{value:{lists:r,setLists:o},children:e.scroller.toLowerCase()===h.l3.toLowerCase()?(0,i.jsx)(y,{name:e.codename,item:e.item,subItem:e.subItem,scroller:e.scroller}):e.scroller.toLowerCase()===h.he.toLowerCase()?(0,i.jsx)(P,{name:e.codename,item:e.item,subItem:e.subItem,scroller:e.scroller}):(0,i.jsx)(u,{name:e.codename,item:e.item,subItem:e.subItem,scroller:e.scroller})})})}var K=(0,s.memo)(q)},929:function(e,t,a){"use strict";a.d(t,{Z:function(){return v}});let i={"01-desktop-image.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/a148a645-dd32-4808-9c3f-b523288b5c99/01-desktop-image.webp","01-desktop-image_depth.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/7b324a01-4f9e-401f-a953-95f60e504da0/01-desktop-image_depth.webp","01-mobile-image.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/f7d47354-5aae-48f8-b32b-f9568f59d205/01-mobile-image.webp","01-mobile-image_depth.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/b8fa2929-2dbe-4dc1-a666-4b519fdc8e13/01-mobile-image_depth.webp","01-tablet-image.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/deb0abac-f0f8-44d8-b354-9d255c01aac1/01-tablet-image.webp","01-tablet-image_depth.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/4a2b879d-aa41-4331-a49c-da6b45e2c5c9/01-tablet-image_depth.webp","02-desktop-image.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/8829c861-b5dc-4ce7-b1ca-92e758024807/02-desktop-image.webp","02-desktop-image_depth.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/5c7fd75f-f388-4c50-b953-c2e6454e3e69/02-desktop-image_depth.webp","02-mobile-image.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/a76c2769-c2a8-4c92-b0f4-0d93defe0186/02-mobile-image.webp","02-mobile-image_depth.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/a492478e-0274-4766-bd00-e47f38b3efbf/02-mobile-image_depth.webp","02-tablet-image.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/98b4e95d-6d2b-4a3d-898c-658cc30ccb39/02-tablet-image.webp","02-tablet-image_depth.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/bc8d2478-6a0c-44f6-a0a2-d0f7c7571c24/02-tablet-image_depth.webp","03-desktop-image.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/2a28be72-a9a2-4f33-b298-04159aee0131/03-desktop-image.webp","03-desktop-image_depth.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/b12968c6-3dbe-41d5-941e-dbedda530fd8/03-desktop-image_depth.webp","03-mobile-image.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/71945f2c-07eb-4d4f-bf4b-c9af5987aed7/03-mobile-image.webp","03-mobile-image_depth.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/3445e23a-7c54-4acd-a327-b44552bbd828/03-mobile-image_depth.webp","03-tablet-image.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/32415d12-c871-4f78-9962-4076914db5bf/03-tablet-image.webp","03-tablet-image_depth.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/2dab01ca-5359-4fbc-a1b2-94e6ee54c268/03-tablet-image_depth.webp","04-desktop-image.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/cdd08248-05db-4cde-8444-ceac1e6684a4/04-desktop-image.webp","04-desktop-image_depth.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/7072f90b-438c-4564-9532-675f4557ec4d/04-desktop-image_depth.webp","04-mobile-image.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/a206503a-1266-4c6f-a14e-6d6688028cb7/04-mobile-image.webp","04-mobile-image_depth.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/49208bf3-47e5-4f0d-8e2e-0f3375dd88d6/04-mobile-image_depth.webp","04-tablet-image.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/7ada0539-2334-4668-bff2-f4e7c83ece96/04-tablet-image.webp","04-tablet-image_depth.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/f8ef378b-f191-446b-b0f1-9a41fc7aa51a/04-tablet-image_depth.webp","desktop-grid.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/54238b57-6e19-42d7-b782-15675d5f6009/desktop-grid.webp","mobile-grid.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/57a35d10-ccb1-436c-8f60-bbf7d23ad70f/mobile-grid.webp","tablet-grid.webp":"https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/c30d1f6c-fe96-4380-9019-77d27ff99c9e/tablet-grid.webp"};var s=i;let n={_01_desktop_image:"01-desktop-image.webp",_01_desktop_image_depth:"01-desktop-image_depth.webp",_01_mobile_image:"01-mobile-image.webp",_01_mobile_image_depth:"01-mobile-image_depth.webp",_01_tablet_image:"01-tablet-image.webp",_01_tablet_image_depth:"01-tablet-image_depth.webp",_02_desktop_image:"02-desktop-image.webp",_02_desktop_image_depth:"02-desktop-image_depth.webp",_02_mobile_image:"02-mobile-image.webp",_02_mobile_image_depth:"02-mobile-image_depth.webp",_02_tablet_image:"02-tablet-image.webp",_02_tablet_image_depth:"02-tablet-image_depth.webp",_03_desktop_image:"03-desktop-image.webp",_03_desktop_image_depth:"03-desktop-image_depth.webp",_03_mobile_image:"03-mobile-image.webp",_03_mobile_image_depth:"03-mobile-image_depth.webp",_03_tablet_image:"03-tablet-image.webp",_03_tablet_image_depth:"03-tablet-image_depth.webp",_04_desktop_image:"04-desktop-image.webp",_04_desktop_image_depth:"04-desktop-image_depth.webp",_04_mobile_image:"04-mobile-image.webp",_04_mobile_image_depth:"04-mobile-image_depth.webp",_04_tablet_image:"04-tablet-image.webp",_04_tablet_image_depth:"04-tablet-image_depth.webp",desktop_grid:"desktop-grid.webp",mobile_grid:"mobile-grid.webp",tablet_grid:"tablet-grid.webp"};var r=n;let o={scroll:{initialValue:0,tension:.3,smoothingFactor:8,maxVelocity:30,easeInType:"expo.in",easeOutType:"expo.out",sectionHeightMultiplier:2,debug:!1,debugFixedContainer:!1},camera:{positionZ:1e3,fov:50,near:.1,far:2e3},plane:{positionZ:0,scale:1,curvatureAmount:10,curvatureRadius:-25,curvatureAxis:.5,curvatureAmountMult:.05,curvatureRadiusMult:.05},text:{positionZ:500,positionX:0,positionY:0},font:{fontSize:14,fontWeight:"normal",letterSpacing:-.04,lineHeight:1.2,path:"/fonts/UntitledSans/UntitledSans-Medium.otf"},border:{opacity:.5,lineWidth:0,feather:2,edgeMix:0,radius:16,maxWidth:200,maxHeight:580},blur:{iterations:6,amount:1,focusRange:.25,strength:2,strengthMult:.4},aberration:{strength:.0012,strengthMult:.4},vignette:{size:.15,feather:.4,alpha:.2,depthMask:.5,aspectRatio:0,sizeMult:.2,featherMult:.2,alphaMult:.2},noise:{alpha:.07,scale:1,speed:.01},depth:{displacementScale:200,depthPower:1.5,enableDisplacement:!0,subdivisions:200,focalDistance:.47,displacementScaleMult:.1},material:{emissiveIntensity:1},image:{brightness:1,contrast:1.02},tilt:{enable:!0,intensityX:.02,intensityY:.02},transition:{duration:1.5,ease:"quad.inOut",aliasAmount:60,yOffset:.85},breathing:{intensity:.5,inhaleEase:"power2.inOut",exhaleEase:"power1.inOut",inhaleDuration:1.2,exhaleDuration:1},wiggle:{intensity:10,speed:1,posX:0,posY:0,posZ:0,rotZ:0}};var l=o;let c={desktop:["When babies are born too soon\ntheir lungs aren’t ready","They need special care\nand expensive equipment","A low-cost innovation will\nhelp babies survive","Even in the world’s poorest countries"],tablet:["When babies are born too soon\ntheir lungs aren’t ready","They need special care\nand expensive equipment","A low-cost innovation will\nhelp babies survive","Even in the world’s\npoorest countries"],mobile:["When babies are\nborn too soon their\nlungs aren’t ready","They need special\ncare and expensive\nequipment","A low-cost innovation\nwill help babies survive","Even in the world’s\npoorest countries"]};var d=c;let m=s,u={...l,breakpoint:"desktop",frame:m[r.desktop_grid],font:{...l.font,fontSize:19.5},blur:{...l.blur,iterations:8,amount:1,focusRange:.25},border:{...l.border,maxWidth:830,maxHeight:518,aspectRatio:830/518},imageInfo:{width:1440,height:1038},images:[{image:m[r._01_desktop_image],depth_map:m[r._01_desktop_image_depth]},{image:m[r._02_desktop_image],depth_map:m[r._02_desktop_image_depth]},{image:m[r._03_desktop_image],depth_map:m[r._03_desktop_image_depth]},{image:m[r._04_desktop_image],depth_map:m[r._04_desktop_image_depth]}],sections:[{copy:"",imageIndex:0,plane:{positionZ:30,scale:1,curvatureAmount:13,curvatureRadius:-25,curvatureAxis:.5,curvatureAmountMult:.1,curvatureRadiusMult:.05},depth:{...l.depth,displacementScale:200,displacementScaleMult:.1}},{copy:"",imageIndex:1,plane:{positionZ:30,scale:1,curvatureAmount:13,curvatureRadius:-25,curvatureAxis:.5,curvatureAmountMult:.1,curvatureRadiusMult:.05},depth:{...l.depth,displacementScale:200,displacementScaleMult:.12}},{copy:"",imageIndex:2,plane:{positionZ:-50,scale:1,curvatureAmount:13,curvatureRadius:-25,curvatureAxis:.5,curvatureAmountMult:.1,curvatureRadiusMult:.05},depth:{...l.depth,displacementScale:200,displacementScaleMult:.12}},{copy:"",imageIndex:3,depth:{...l.depth,displacementScale:220,displacementScaleMult:.15},plane:{positionZ:0,scale:1,curvatureAmount:12,curvatureRadius:-25,curvatureAxis:.5,curvatureAmountMult:.1,curvatureRadiusMult:.05}}]},h={...l,breakpoint:"tablet",frame:m[r.tablet_grid],font:{...l.font,fontSize:18},scroll:{...l.scroll,sectionHeightMultiplier:1.5,easeInType:"quad.in",easeOutType:"quad.out"},depth:{...l.depth,displacementScale:220,displacementScaleMult:.17},border:{...l.border,maxWidth:704,maxHeight:532,aspectRatio:704/532},imageInfo:{width:768,height:1016},images:[{image:m[r._01_tablet_image],depth_map:m[r._01_tablet_image_depth]},{image:m[r._02_tablet_image],depth_map:m[r._02_tablet_image_depth]},{image:m[r._03_tablet_image],depth_map:m[r._03_tablet_image_depth]},{image:m[r._04_tablet_image],depth_map:m[r._04_tablet_image_depth]}],sections:[{copy:"",imageIndex:0},{copy:"",imageIndex:1},{copy:"",imageIndex:2},{copy:"",imageIndex:3}]},g={...l,breakpoint:"mobile",frame:m[r.mobile_grid],scroll:{...l.scroll,tension:1,smoothingFactor:5,sectionHeightMultiplier:1.3,easeInType:"quad.in",easeOutType:"quad.out"},font:{...l.font,fontSize:16},transition:{duration:1.2,ease:"sine.inOut",aliasAmount:70,yOffset:.85},border:{...l.border,maxWidth:400,maxHeight:500,aspectRatio:350/410},vignette:{...l.vignette,size:.25,alpha:.1,aspectRatio:.2,featherMult:.25,sizeMult:.4,alphaMult:.3},noise:{alpha:.05,scale:1,speed:.01},breathing:{intensity:.5,inhaleEase:"power2.inOut",exhaleEase:"power1.inOut",inhaleDuration:1.2,exhaleDuration:1},imageInfo:{width:600,height:818},images:[{image:m[r._01_mobile_image],depth_map:m[r._01_mobile_image_depth]},{image:m[r._02_mobile_image],depth_map:m[r._02_mobile_image_depth]},{image:m[r._03_mobile_image],depth_map:m[r._03_mobile_image_depth]},{image:m[r._04_mobile_image],depth_map:m[r._04_mobile_image_depth]}],sections:[{copy:"",imageIndex:0,depth:{...l.depth,displacementScale:250,displacementScaleMult:.17}},{copy:"",imageIndex:1,depth:{...l.depth,displacementScale:250,displacementScaleMult:.17}},{copy:"",imageIndex:2,depth:{...l.depth,displacementScale:250,displacementScaleMult:.17},plane:{...l.plane,positionZ:-50}},{copy:"",imageIndex:3,depth:{...l.depth,displacementScale:250,displacementScaleMult:.17},plane:{...l.plane,positionZ:-50}}]},p={desktop:u,tablet:h,mobile:g};for(let _ in p)p[_].sections.forEach((e,t)=>{e.copy=d[_][t]});var v=p},2950:function(e,t,a){"use strict";a.d(t,{GJ:function(){return s},Vi:function(){return n},jq:function(){return i},pi:function(){return r},qh:function(){return o}});let i={CONTAINER:"SCROLL_MODE:CONTAINER",WINDOW:"SCROLL_MODE:WINDOW"},s={HIGH:"high",LOW:"low"},n={PRODUCTION:"production",DEVELOPMENT:"development"},r={UNSET:"LOAD_STATE:UNSET",LOADING:"LOAD_STATE:LOADING",LOADED:"LOAD_STATE:LOADED"},o=[100,250,500,1e3,2e3]},9366:function(e,t,a){"use strict";a.d(t,{ZP:function(){return u}});var i=a(4924),s=a(929),n=a(2950);function r(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());if(Array.isArray(e))return e.map(e=>r(e));let t={};return Object.keys(e).forEach(a=>{t[a]=r(e[a])}),t}function o(e){let t=new URLSearchParams(window.location.search);return t.has(e)}function l(e,t){for(let a in t)t.hasOwnProperty(a)&&(t[a]instanceof Object&&a in e&&!(t[a]instanceof Array)?l(e[a],t[a]):e[a]=t[a])}function c(e,t,a){let i=t.split("."),s=e;for(let n=0;n<i.length-1;n++)s[i[n]]||(s[i[n]]={}),s=s[i[n]];s[i[i.length-1]]=a}class d{setup(){this._windowWidth=window.innerWidth,this._windowHeight=window.innerHeight,this._isClient=!0,this._isInitialized=!0,this.updateConfigs()}updateConfigs(){if(this._isInitialized){if(this._deviceConfig={...r(this._config[this._breakpoint]),index:this._currentSectionIndex},this._deviceConfig.sections&&this._deviceConfig.sections[this._currentSectionIndex]){let e=r(this._deviceConfig.sections[this._currentSectionIndex]),t=r(this._deviceConfig);delete t.sections,this._sectionConfig=r(t),l(this._sectionConfig,e)}else this._sectionConfig=r(this._deviceConfig),delete this._sectionConfig.sections,delete this._sectionConfig.frame,delete this._sectionConfig.breakpoint}}get isInitialized(){return this._isInitialized}get isClient(){return this._isClient}get breakpoint(){return this._breakpoint}get currentSectionIndex(){return this._currentSectionIndex}get scrollMode(){return this._scrollMode}get deviceConfig(){return r(this._deviceConfig)}get sectionConfig(){return r(this._sectionConfig)}get rectIsVisible(){return this._rectIsVisible}get rectIsActive(){return this._rectIsActive}get breathing(){return this._breathing}get performanceMode(){return this._performanceMode}get canvasHeight(){return this._canvasHeight}get canvasWidth(){return this._canvasWidth}get windowHeight(){return this._windowHeight}get windowWidth(){return this._windowWidth}get containerHeight(){return this._containerHeight}get containerWidth(){return this._containerWidth}get scrollData(){return{...this._scrollData}}get loadState(){return this._loadState}set scrollData(e){this._scrollData=e}set loadState(e){this._loadState=e,this.notifyLoadObservers()}set breakpoint(e){this._config[e]?(this._breakpoint=e,this.updateConfigs(),this.notifyConfigObservers()):console.warn("Invalid breakpoint: ".concat(e))}set currentSectionIndex(e){e!==this._currentSectionIndex&&(this._currentSectionIndex=e,this.updateConfigs(),this.notifySectionObservers())}set scrollMode(e){this._scrollMode!==e&&(this._scrollMode=e)}set rectIsVisible(e){e!==this._rectIsVisible&&(this._rectIsVisible=e,this.notifyVisibilityObservers())}set rectIsActive(e){e!==this._rectIsActive&&(this._rectIsActive=e,this.notifyVisibilityObservers())}set breathing(e){this._breathing=e}set performanceMode(e){if(e===n.GJ.HIGH||e===n.GJ.LOW){let t=this._performanceMode!==e;this._performanceMode=e,t&&(this.notifyPerformanceObservers(),this.notifyConfigObservers())}}setDimensions(e){let{canvasWidth:t,canvasHeight:a,windowWidth:i,windowHeight:s,containerWidth:n,containerHeight:r}=e,o=this._canvasWidth!==t||this._canvasHeight!==a||this._windowWidth!==i||this._windowHeight!==s||this._containerWidth!==n||this._containerHeight!==r;o&&(this._canvasWidth=null!=t?t:this._canvasWidth,this._canvasHeight=null!=a?a:this._canvasHeight,this._windowWidth=null!=i?i:this._windowWidth,this._windowHeight=null!=s?s:this._windowHeight,this._containerWidth=null!=n?n:this._containerWidth,this._containerHeight=null!=r?r:this._containerHeight,this.notifyResizeObservers())}setViewportProgress(e,t){this._viewportProgress={entry:e,exit:t}}setBreakpoint(e){this.breakpoint!==e&&(this.breakpoint=e,console.log("AppStore: Breakpoint set to ".concat(e)))}setPerformanceMode(e){let{HIGH:t,LOW:a}=n.GJ;(e===a||e===t&&this._performanceMode!==a)&&(this.performanceMode=e,console.log("AppStore: Performance mode set to ".concat(e)))}setCurrentSectionIndex(e){this.currentSectionIndex=e}setVisibility(e,t){let a=this._rectIsVisible!==e||this._rectIsActive!==t;this._rectIsVisible=e,this._rectIsActive=t,a&&this.notifyVisibilityObservers()}getConfigGroup(e){let t=r(this._deviceConfig[e]||{});return this._sectionConfig&&this._sectionConfig[e]?{...t,...r(this._sectionConfig[e])}:t}setSectionConfig(e,t){let a=!e.startsWith("sections."),i=a?"sections.".concat(this._currentSectionIndex,".").concat(e):e;c(this._config[this._breakpoint],i,t),this.updateConfigs(),this.notifyConfigObservers()}setConfig(e,t){c(this._config[this._breakpoint],e,t),this.updateConfigs(),this.notifyConfigObservers()}subscribe(e){return e(this.deviceConfig),this.observers.push(e),()=>{this.observers=this.observers.filter(t=>t!==e)}}subscribeToPerformanceMode(e){return e(this._performanceMode),this.performanceObservers.push(e),()=>{this.performanceObservers=this.performanceObservers.filter(t=>t!==e)}}subscribeToConfig(e){return e(this.deviceConfig),this.configObservers.push(e),()=>{this.configObservers=this.configObservers.filter(t=>t!==e)}}subscribeToSectionChanges(e){return e(this.sectionConfig),this.sectionObservers.push(e),()=>{this.sectionObservers=this.sectionObservers.filter(t=>t!==e)}}subscribeToVisibility(e){return e({isVisible:this._rectIsVisible,isActive:this._rectIsActive}),this.visibilityObservers.push(e),()=>{this.visibilityObservers=this.visibilityObservers.filter(t=>t!==e)}}subscribeToLoad(e){return this.loadObservers.push(e),()=>{this.loadObservers=this.loadObservers.filter(t=>t!==e)}}subscribeToResize(e){return this.resizeObservers.push(e),()=>{this.resizeObservers=this.resizeObservers.filter(t=>t!==e)}}notifyObservers(){let e=this.deviceConfig;this.observers.forEach(t=>t(e))}notifyConfigObservers(){let e=this.deviceConfig;this.configObservers.forEach(t=>t(e))}notifySectionObservers(){let e=this.sectionConfig;this.sectionObservers.forEach(t=>t(e))}notifyVisibilityObservers(){let e={isVisible:this._rectIsVisible,isActive:this._rectIsActive};this.visibilityObservers.forEach(t=>t(e))}notifyPerformanceObservers(){let e=this._performanceMode;this.performanceObservers.forEach(t=>t(e))}notifyLoadObservers(){let e=this._loadState;this.loadObservers.forEach(t=>t(e))}notifyResizeObservers(){let e={windowWidth:this._windowWidth,windowHeight:this._windowHeight,canvasWidth:this._canvasWidth,canvasHeight:this._canvasHeight,containerWidth:this._containerWidth,containerHeight:this._containerHeight};this.resizeObservers.forEach(t=>t(e))}constructor(){(0,i.Z)(this,"setScrollData",e=>{if("function"==typeof e){let t=m.scrollData,a=e(t);this.scrollData=a}else this.scrollData=e}),this.observers=[],this.configObservers=[],this.sectionObservers=[],this.visibilityObservers=[],this.performanceObservers=[],this.resizeObservers=[],this.loadObservers=[],this.env="production",this.isProd=this.env===n.Vi.PRODUCTION,this.isDev=this.env===n.Vi.DEVELOPMENT,this.debug=this.isDev||o("debug"),this._isClient=!1,this._breathing=0,this._isInitialized=!1,this._performanceMode=n.GJ.HIGH,this._loadState=n.pi.UNSET,this._config=r(s.Z),this._deviceConfig={},this._sectionConfig={},this._currentSectionIndex=0,this._scrollMode=n.jq.WINDOW,this._rectIsVisible=!1,this._rectIsActive=!1,this._viewportProgress={entry:0,exit:0},this._scrollData={viewport:{top:0,bottom:0,height:0},container:{top:0,bottom:0,height:0},scrollTop:0,scrollTopRemapped:0},this._breakpoint="desktop",this._canvasWidth=0,this._canvasHeight=0,this._windowWidth=0,this._windowHeight=0,this._containerWidth=0,this._containerHeight=0,this.setup()}}let m=window.__APP_STORE_INSTANCE__||(window.__APP_STORE_INSTANCE__=new d);m.debug,m.isProd,m.isDev,m.isClient;var u=m},9079:function(e,t,a){"use strict";a.d(t,{Z:function(){return u}});var i=a(4924),s=a(8460);let n=()=>"\n  attribute vec4 position;\n  attribute vec2 texcoord;\n  \n  uniform mat4 u_viewProjection;\n  uniform vec3 u_translation;\n  uniform vec3 u_scale;  \n  \n  varying vec2 v_uv;\n     \n  void main() {\n    vec3 scaledPosition = position.xyz * u_scale; // Scale the quad\n    vec4 worldPosition = vec4(scaledPosition + u_translation, 1.0);\n    gl_Position = u_viewProjection * worldPosition;\n    \n    v_uv = texcoord;\n  }\n",r=()=>"\n#ifdef GL_ES\nprecision mediump float;\n#endif\n\nvarying vec2 v_uv;\n\nuniform vec2 u_res;\nuniform sampler2D u_texture;\nuniform float u_pixelation;\nuniform float u_pixel;\nuniform float u_fade;\nuniform float u_useAlpha;\n\nconst float FADE_DITHER_SCALE = 4.0;\nconst float FADE_DITHER_SCALE_2 = 16.0;\nconst float FADE_DITHER_SCALE_3 = 64.0;\nconst float FADE_DITHER_SCALE_MIX_2 = 0.25;\nconst float FADE_DITHER_SCALE_MIX_3 = 0.25;\n\nfloat linearstep(float edge0, float edge1, float x){\n    return  clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);\n}\n\nbool getOrderedDither(float brightness, vec2 pos) {\n    \n    // do the simple math first\n    if (brightness > 16.0/17.0) return false;\n    if (brightness < 01.0/17.0) return true;\n    \n    vec2 pixel = floor(mod((pos.xy)/u_pixel, 4.0));\n    int x = int(pixel.x);\n    int y = int(pixel.y);\n    bool result = false;\n    \n    // compute the 16 values by hand, store when it's a match\n    if (x == 0 && y == 0) result = brightness < 16.0/17.0;\n   else if (x == 2 && y == 2) result = brightness < 15.0/17.0;\n   else if (x == 2 && y == 0) result = brightness < 14.0/17.0;\n   else if (x == 0 && y == 2) result = brightness < 13.0/17.0;\n   else if (x == 1 && y == 1) result = brightness < 12.0/17.0;\n   else if (x == 3 && y == 3) result = brightness < 11.0/17.0;\n   else if (x == 3 && y == 1) result = brightness < 10.0/17.0;\n   else if (x == 1 && y == 3) result = brightness < 09.0/17.0;\n   else if (x == 1 && y == 0) result = brightness < 08.0/17.0;\n   else if (x == 3 && y == 2) result = brightness < 07.0/17.0;\n   else if (x == 3 && y == 0) result = brightness < 06.0/17.0;\n    else if (x == 0 && y == 1) result =brightness < 05.0/17.0;\n   else if (x == 1 && y == 2) result = brightness < 04.0/17.0;\n   else if (x == 2 && y == 3) result = brightness < 03.0/17.0;\n   else if (x == 2 && y == 1) result = brightness < 02.0/17.0;\n   else if (x == 0 && y == 3) result = brightness < 01.0/17.0;\n        \n   return result;\n}\n\nvoid main() {\n    float ratio = u_res.x / u_res.y;\n\n    // derive fragcoord pixels\n    vec2 fragCoord = vec2(v_uv * u_res);\n    //vec2 fragCoord = vec2(gl_FragCoord.xy );\n\n    // todo add ratio\n    vec2 pixilate = u_res / u_pixelation;\n    vec2 ratioUV = vec2(v_uv.x,  v_uv.y);\n   \n    // center cell sample in grid\n    vec2 quantizeUV = (floor(ratioUV*pixilate)+ 0.5) / pixilate;\n    vec4 color = texture2D(u_texture, quantizeUV);\n    \n    float toneInput = max(color.r, max(color.g, color.b));\n    toneInput = mix(toneInput,length(color.rgb), 0.1);\n    \n    // rough gamma\n    float toneInputGamma = toneInput * mix(1.0, toneInput, 0.5);\n    \n    float tone = getOrderedDither(toneInputGamma, fragCoord.xy) ? 0.0 : 1.0;\n    \n    float ditherFadeValue = getOrderedDither(u_fade, floor(fragCoord.xy / FADE_DITHER_SCALE)) ? 0.0 : 1.0;\n    float ditherFadeValue2 = getOrderedDither(u_fade, floor(fragCoord.xy / FADE_DITHER_SCALE_2)) ? 0.0 : 1.0;\n    ditherFadeValue = mix(ditherFadeValue, ditherFadeValue2, FADE_DITHER_SCALE_MIX_2);\n    float ditherFadeValue3 = getOrderedDither(u_fade, floor(fragCoord.xy / FADE_DITHER_SCALE_3)) ? 0.0 : 1.0;\n    ditherFadeValue = mix(ditherFadeValue, ditherFadeValue3, FADE_DITHER_SCALE_MIX_3);\n\n    // fade into final image using dither\n    tone = mix(tone, toneInput, ditherFadeValue);\n\n    if (u_useAlpha > 0.01) {\n      gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0 - tone);\n    } else {\n      gl_FragColor = vec4(tone, tone, tone, 1.0);\n    }\n}\n",o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e<t?t:a<e?a:e},l=(e,t,a)=>{let i=Math.max(Math.min((a-e)/(t-e),1),0);return i},c=(e,t,a)=>e+a*(t-e);class d{getPixelationStep(e,t,a){let i=Math.log2(e),s=Math.log2(t),n=c(i,s-1,a);n=Math.max(n,s);let r=Math.ceil(n),o=Math.pow(2,r);return o}get visible(){return this._visible}set visible(e){e&&(this._visible=!0)}get reveal(){return this._reveal}set reveal(e){e&&(this._reveal=!0,this.revealing=!0,this.revealStart=Date.now())}destroy(){this.texture=null,this.element=null}constructor({id:e,index:t,src:a,texture:s,element:n}={}){(0,i.Z)(this,"id",""),(0,i.Z)(this,"index",0),(0,i.Z)(this,"src",""),(0,i.Z)(this,"texture",null),(0,i.Z)(this,"element",null),(0,i.Z)(this,"position",[0,0,0]),(0,i.Z)(this,"size",[1e3,500,1]),(0,i.Z)(this,"startPixelationAmount",128),(0,i.Z)(this,"pixelationBiasPower",.6),(0,i.Z)(this,"revealDurationSeconds",2),(0,i.Z)(this,"pixelationFadeStartProgress",.6),(0,i.Z)(this,"pixelationFadeBiasPower",.5),(0,i.Z)(this,"shaderState",{u_pixelation:this.startPixelationAmount,u_pixel:1,u_fade:0,u_useAlpha:0}),(0,i.Z)(this,"_visible",!1),(0,i.Z)(this,"_reveal",!1),(0,i.Z)(this,"revealing",!1),(0,i.Z)(this,"revealProgress",0),(0,i.Z)(this,"revealStart",0),(0,i.Z)(this,"revealUpdate",()=>{if(this.checkVisible(),this.visible&&(this.checkReveal(),this.revealing)){let e=(Date.now()-this.revealStart)/1e3;this.revealProgress=o(e/this.revealDurationSeconds);let t=this.revealProgress,a=this.shaderState,i=t;i=Math.pow(i,this.pixelationBiasPower);let s=this.getPixelationStep(this.startPixelationAmount,1,i);a.u_pixelation=s,a.u_fade=Math.pow(l(this.pixelationFadeStartProgress,1,t),this.pixelationFadeBiasPower),1===this.revealProgress&&(this.revealing=!1)}}),(0,i.Z)(this,"checkVisible",()=>{this.visible?"false"===this.element.dataset.visible&&(this.visible=!1):"true"===this.element.dataset.visible&&(this.visible=!0)}),(0,i.Z)(this,"checkReveal",()=>{this.reveal||"true"!==this.element.dataset.reveal||(this.reveal=!0)}),(0,i.Z)(this,"layoutUpdate",e=>{let t=this.element.getBoundingClientRect(),a=Math.round(t.left-e.left),i=Math.round(t.top-e.top),s=Math.round(t.width),n=Math.round(t.height);this.position=[a,i,0],this.size=[s,n,1]}),this.id=e,this.index=parseInt(t),this.src=a,this.texture=s,this.element=n,this.shaderState.u_useAlpha="true"==n.dataset.useAlpha?1:0}}class m{setupCanvas(){this.canvas=document.createElement("canvas"),this.canvas.style.cssText="\n      position: absolute;\n      top:0px;\n      left:0px;\n      width: 100%;\n      height: 100%;\n      ",this.canvas.setAttribute("aria-hidden","true"),this.element.appendChild(this.canvas),this.resizeObserver=new ResizeObserver(e=>{this.onResize()}),this.resizeObserver.observe(this.pageContainer),window.addEventListener("resize",this.onResize)}getTexture(e){let t=this.canvas.getContext("webgl");if(!this.textures[e]){let a=new Image;a.crossOrigin="",this.textures[e]={img:a,texture:null};let i={src:a};a.onload=()=>{this.textures[e].texture=s.cU(t,i)},a.src=e}return this.textures[e]}create(){this.setupCanvas(),this.resizeCanvas();let e=this.canvas.getContext("webgl");this.programInfo=s.EK(e,[n(),r()]),this.quadBufferInfo=s.qX(e,{position:{numComponents:3,data:[0,1,0,1,1,0,0,0,0,1,0,0]},texcoord:{numComponents:2,data:[0,1,1,1,0,0,1,0]},indices:[0,1,2,2,1,3]})}updateLayerOffset(){let e=this.element.getBoundingClientRect();this.elementY=e.top+this.viewportMargin,this.canvas.style.top="".concat(0-this.elementY,"px")}getQuadObject(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t){let{src:a,reveal:i,index:s}=t.dataset,n=this.getTexture(a);this.quadObjects[e]=this.quadObjects[e]||new d({id:e,index:s,src:a,texture:n,element:t}),this.quadObjects[e].element=t}return this.quadObjects[e]}updateQuadReveals(){for(let e of this.quadRenderList)e.revealUpdate()}updateLayerRects(){let e=e=>Array.from(document.querySelectorAll(e)),t=e(".ditherImageRect"),a=this.element.getBoundingClientRect();this.quadRenderList=[],t.forEach(e=>{let t=e.dataset.id,i=this.getQuadObject(t,e);i.layoutUpdate(a),this.quadRenderList.push(i)})}destroy(){if(!this.destroyed){var e,t,a,i;this.destroyed=!0,cancelAnimationFrame(this.rafID),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),window.removeEventListener("resize",this.onResize);let s=null===(t=this.canvas)||void 0===t?void 0:t.getContext("webgl");for(let n in this.quadRenderList=[],this.quadObjects)this.quadObjects[n].destroy(),delete this.quadObjects[n];for(let r in this.quadObjects={},this.textures)this.textures[r].img.src="",s.deleteTexture(this.textures[r].texture),delete this.textures[r];if(this.textures={},this.quadBufferInfo){for(let o in this.quadBufferInfo.attribs){let l=this.quadBufferInfo.attribs[o].buffer;s.deleteBuffer(l)}s.deleteBuffer(this.quadBufferInfo.indices),this.quadBufferInfo=null}this.programInfo.program&&s.deleteProgram(this.programInfo.program),this.programInfo=null,null===(a=null==s?void 0:s.getExtension("WEBGL_lose_context"))||void 0===a||a.loseContext(),null===(i=this.canvas)||void 0===i||i.remove(),this.canvas=null}}constructor({element:e,pageContainer:t}={}){(0,i.Z)(this,"rafID",0),(0,i.Z)(this,"programInfo",null),(0,i.Z)(this,"quadBufferInfo",null),(0,i.Z)(this,"canvas",null),(0,i.Z)(this,"element",null),(0,i.Z)(this,"container",null),(0,i.Z)(this,"resizeObserver",null),(0,i.Z)(this,"devicePixelRatio",1),(0,i.Z)(this,"maxDevicePixelRatio",1),(0,i.Z)(this,"elementY",0),(0,i.Z)(this,"viewportMargin",100),(0,i.Z)(this,"quadObjects",{}),(0,i.Z)(this,"quadRenderList",[]),(0,i.Z)(this,"textures",{}),(0,i.Z)(this,"destroyed",!1),(0,i.Z)(this,"onResize",()=>{this.resizeCanvas(),setTimeout(this.resizeCanvas,20)}),(0,i.Z)(this,"resizeCanvas",()=>{let e=this.element.getBoundingClientRect(),t=Math.min(this.maxDevicePixelRatio,window.devicePixelRatio||1),a=e.width*t,i=e.height*t;this.devicePixelRatio=t,this.canvas.width=a,this.canvas.height=i,this.updateLayerRects(),this.viewportMargin=.1*window.innerHeight}),(0,i.Z)(this,"onRaf",()=>{this.updateLayerOffset(),this.updateQuadReveals(),this.render(),this.rafID=requestAnimationFrame(this.onRaf)}),(0,i.Z)(this,"getProjectionMatrix",()=>{let e=0,t=this.canvas.width,a=this.canvas.height,i=0,n=-100,r=100;return s.m4.ortho(e,t,a,i,n,r)}),(0,i.Z)(this,"render",()=>{let e=this.canvas.getContext("webgl"),t=this.getProjectionMatrix();e.enable(e.BLEND),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);let{width:a,height:i}=e.canvas;e.viewport(0,0,a,i),e.clear(e.COLOR_BUFFER_BIT),this.quadRenderList.forEach((a,n)=>{var r;let o=null===(r=a.texture)||void 0===r?void 0:r.texture;if(!o)return;let l=[a.position[0]*this.devicePixelRatio,(a.position[1]+this.elementY)*this.devicePixelRatio,a.position[2]*this.devicePixelRatio];if(!a.visible)return;let c=l[1]<i&&l[1]+a.size[1]*this.devicePixelRatio>0;if(!c)return;let{u_pixelation:d,u_pixel:m,u_fade:u,u_useAlpha:h}=a.shaderState,g={u_viewProjection:t,u_translation:l,u_scale:[a.size[0]*this.devicePixelRatio,a.size[1]*this.devicePixelRatio,a.size[2]],u_res:[a.size[0],a.size[1]],u_texture:o,u_pixelation:d*m,u_useAlpha:h,u_pixel:m,u_fade:u};e.useProgram(this.programInfo.program),s.o8(e,this.programInfo,this.quadBufferInfo),s.N9(this.programInfo,g),s.y0(e,this.quadBufferInfo)})}),this.element=e,this.pageContainer=t,this.create(),this.onRaf()}}var u=m},470:function(e,t,a){"use strict";var i=a(7294),s=a(1590);let n=()=>{let[e,t]=(0,i.useState)([window.innerWidth,window.innerHeight]);return(0,i.useEffect)(()=>{let e=()=>{t([window.innerWidth,window.innerHeight])},a=(0,s.P2)(e,250);window.addEventListener("resize",()=>{a()})},[]),e};t.Z=n},9164:function(e){e.exports={ComicBook:"ComicBook_ComicBook___o3Rt"}},2190:function(e){e.exports={ComicSourceCodeQuoteDesktop:"ComicSourceCodeQuoteDesktop_ComicSourceCodeQuoteDesktop__kLtV3",video:"ComicSourceCodeQuoteDesktop_video__VraCb"}},5440:function(e){e.exports={ComicSourceCodeQuoteMobile:"ComicSourceCodeQuoteMobile_ComicSourceCodeQuoteMobile__ma9nO",video:"ComicSourceCodeQuoteMobile_video__ynh4G"}},9722:function(e){e.exports={ComicSourceCodeQuoteTablet:"ComicSourceCodeQuoteTablet_ComicSourceCodeQuoteTablet__wDAnH",video:"ComicSourceCodeQuoteTablet_video__KVnTL"}},4696:function(e){e.exports={ComicArrowButton:"ComicArrowButton_ComicArrowButton__Nr_DC",svg:"ComicArrowButton_svg__oRCqS","arrow-animation-loop":"ComicArrowButton_arrow-animation-loop__XyOX3"}},8690:function(e){e.exports={ComicBlock:"ComicBlock_ComicBlock__YgXed",highlight:"ComicBlock_highlight__Su5xe","ani-filter-highlight-boil":"ComicBlock_ani-filter-highlight-boil__jFyYJ",children:"ComicBlock_children__H3EJw"}},3345:function(e){e.exports={ComicBookDesktop:"ComicBookDesktop_ComicBookDesktop__RAlpF"}},4172:function(e){e.exports={ComicBookMobile:"ComicBookMobile_ComicBookMobile__o_y9v"}},5127:function(e){e.exports={ComicBookTablet:"ComicBookTablet_ComicBookTablet__is4rb"}},1296:function(e){e.exports={ComicCarousel:"ComicCarousel_ComicCarousel__nG_eW",carousel:"ComicCarousel_carousel__VTtHe",reveal:"ComicCarousel_reveal__MNAxC",slide:"ComicCarousel_slide__c2YES"}},6122:function(e){e.exports={ComicCarouselBg:"ComicCarouselBg_ComicCarouselBg__dgMG_",inner:"ComicCarouselBg_inner__7zZEy","ani-filter-highlight-boil":"ComicCarouselBg_ani-filter-highlight-boil__E8g3_",body:"ComicCarouselBg_body__yvqtT",top:"ComicCarouselBg_top___KZ0B",bottom:"ComicCarouselBg_bottom__TWjG1"}},7471:function(e){e.exports={ComicCarouselNav:"ComicCarouselNav_ComicCarouselNav__LfRu8",dots:"ComicCarouselNav_dots__2Jfj_"}},2008:function(e){e.exports={ComicCarouselSlide:"ComicCarouselSlide_ComicCarouselSlide__ufhEK"}},5767:function(e){e.exports={ComicDotButton:"ComicDotButton_ComicDotButton__Aiy0H",svg:"ComicDotButton_svg__3qBr0","dot-animation-loop":"ComicDotButton_dot-animation-loop__vTYM0"}},6110:function(e){e.exports={ComicFilterBoilSource:"ComicFilterBoilSource_ComicFilterBoilSource__NesB2"}},4085:function(e){e.exports={ComicHighlightReveal:"ComicHighlightReveal_ComicHighlightReveal__SmnWT"}},5309:function(e){e.exports={ComicImage:"ComicImage_ComicImage__ZJlkG",img:"ComicImage_img__EGMiR"}},4947:function(e){e.exports={ComicInkReveal:"ComicInkReveal_ComicInkReveal__eAxZ6",overlay:"ComicInkReveal_overlay__O_RwC",svgHeightBased:"ComicInkReveal_svgHeightBased__JwKxO"}},8660:function(e){e.exports={ComicInkSequence:"ComicInkSequence_ComicInkSequence__xHyBC",image:"ComicInkSequence_image__I9h3s"}},4633:function(e){e.exports={ComicVideoLoop:"ComicVideoLoop_ComicVideoLoop__edNme"}},5842:function(e){e.exports={LifeAndDeath:"LifeAndDeath_LifeAndDeath__cHrEn"}},3378:function(e){e.exports={scrollContainer:"ScrollContainer_scrollContainer__PRweQ",pinContainer:"ScrollContainer_pinContainer__o_G3z",pinContainerBottom:"ScrollContainer_pinContainerBottom__cWLmE",windowScrollMode:"ScrollContainer_windowScrollMode__OF5ho"}},9090:function(e){e.exports={debuggerWrapper:"ScrollDebugger_debuggerWrapper__taU44",statusTrue:"ScrollDebugger_statusTrue__mwrwa",statusFalse:"ScrollDebugger_statusFalse__fEDH1",separator:"ScrollDebugger_separator__yOZ1e",infoPanel:"ScrollDebugger_infoPanel__Rew8G",scrollDetails:"ScrollDebugger_scrollDetails__4qtS3",debugContainer:"ScrollDebugger_debugContainer__24Ul_",debugContent:"ScrollDebugger_debugContent__JLD53",sectionEven:"ScrollDebugger_sectionEven__ARU7E",sectionOdd:"ScrollDebugger_sectionOdd__ONrmJ",sectionInfo:"ScrollDebugger_sectionInfo__XCSUx",currentSection:"ScrollDebugger_currentSection__CgvMj",viewportIndicator:"ScrollDebugger_viewportIndicator__Mg93e",viewportLabel:"ScrollDebugger_viewportLabel__3xKoc",progressBar:"ScrollDebugger_progressBar__RiSE4",progressFill:"ScrollDebugger_progressFill__9zOhP"}},165:function(e){e.exports={WebGL:"WebGL_WebGL__soXmA"}},5879:function(e){e.exports={SourceCode:"SourceCode_SourceCode__QP6B9"}},6359:function(e){e.exports={SourceCodeDesktop:"SourceCodeDesktop_SourceCodeDesktop__17Qh_"}},3500:function(e){e.exports={SourceCodeMobile:"SourceCodeMobile_SourceCodeMobile__vWza4"}},6902:function(e){e.exports={SourceCodeTablet:"SourceCodeTablet_SourceCodeTablet__AF4hG"}},3120:function(e){e.exports={SourceCodeContext:"SourceCodeContext_SourceCodeContext__nxMXL"}},673:function(e){e.exports={SectionBasics:"SectionBasicsDesktop_SectionBasics__Cmf1c",rowBlock1:"SectionBasicsDesktop_rowBlock1__8uOOP",rowBlock2:"SectionBasicsDesktop_rowBlock2__sRlU4",titleBlock:"SectionBasicsDesktop_titleBlock__EdBxn",textBlock:"SectionBasicsDesktop_textBlock__Wbyp4",detailRight:"SectionBasicsDesktop_detailRight__C9lUu",line:"SectionBasicsDesktop_line__H6QvK",ticker:"SectionBasicsDesktop_ticker___G0uQ",image1:"SectionBasicsDesktop_image1__Iv3Qg",number:"SectionBasicsDesktop_number__1L7gt",asterisks:"SectionBasicsDesktop_asterisks__Q_eWQ",caption:"SectionBasicsDesktop_caption__gkZo_"}},3432:function(e){e.exports={SectionBasics:"SectionBasicsMobile_SectionBasics__fvzOu",rowBlock1:"SectionBasicsMobile_rowBlock1__C1dCo",rowBlock2:"SectionBasicsMobile_rowBlock2__DZDKE",titleBlock:"SectionBasicsMobile_titleBlock__CdFRm",textBlock:"SectionBasicsMobile_textBlock__4xZVZ",detailRight:"SectionBasicsMobile_detailRight__Qyapj",detailLeft:"SectionBasicsMobile_detailLeft__i1YFl",line:"SectionBasicsMobile_line__maToU",ticker:"SectionBasicsMobile_ticker__0SwaC",tickerAsciiContent:"SectionBasicsMobile_tickerAsciiContent__Ttiov",image1:"SectionBasicsMobile_image1__85HMU",number:"SectionBasicsMobile_number__pS_rk"}},4982:function(e){e.exports={SectionBasics:"SectionBasicsTablet_SectionBasics__6rgLJ",rowBlock1:"SectionBasicsTablet_rowBlock1__lPT6g",titleBlock:"SectionBasicsTablet_titleBlock__JjdNU",textBlock:"SectionBasicsTablet_textBlock__DXDH0",rowBlock2:"SectionBasicsTablet_rowBlock2__5OuCM",image:"SectionBasicsTablet_image__96uLi",number:"SectionBasicsTablet_number__8Wlnd",detailRight:"SectionBasicsTablet_detailRight__Tp6wp",line:"SectionBasicsTablet_line__oBNiz",asterisks:"SectionBasicsTablet_asterisks__RAJB8",caption:"SectionBasicsTablet_caption__w_NR8",ticker:"SectionBasicsTablet_ticker__5CWm5"}},278:function(e){e.exports={SectionCode:"SectionCodeDesktop_SectionCode__PEZfZ",rowBlock1:"SectionCodeDesktop_rowBlock1__LR2C9",rowBlock2:"SectionCodeDesktop_rowBlock2__gmkOk",rowBlock3:"SectionCodeDesktop_rowBlock3__ZulTA",titleBlock:"SectionCodeDesktop_titleBlock__2IUWu",textBlock1:"SectionCodeDesktop_textBlock1__6btAs",textBlock2:"SectionCodeDesktop_textBlock2__s7ui0",textBlock3:"SectionCodeDesktop_textBlock3__k7XdL",divider:"SectionCodeDesktop_divider__eZgzO",image1:"SectionCodeDesktop_image1__UGM8j",image1shadow:"SectionCodeDesktop_image1shadow__L2X3b",number:"SectionCodeDesktop_number___G2Zj",asterisks:"SectionCodeDesktop_asterisks__XUO9H",caption:"SectionCodeDesktop_caption__Y8aHM",image2:"SectionCodeDesktop_image2__A8Mg5",number2:"SectionCodeDesktop_number2__RyGGu",asterisks2:"SectionCodeDesktop_asterisks2__WRacs",caption2:"SectionCodeDesktop_caption2__JXjn4",detailEnd:"SectionCodeDesktop_detailEnd__f9Sjp"}},4231:function(e){e.exports={SectionCode:"SectionCodeMobile_SectionCode__edRlz",rowBlock1:"SectionCodeMobile_rowBlock1__XYctf",rowBlock2:"SectionCodeMobile_rowBlock2__xhy0E",rowBlock3:"SectionCodeMobile_rowBlock3__2nZeM",rowBlock4:"SectionCodeMobile_rowBlock4__P4KaS",divider:"SectionCodeMobile_divider__0Izgc",titleBlock:"SectionCodeMobile_titleBlock__CYEjt",textBlock1:"SectionCodeMobile_textBlock1__8nJ__",textBlock2:"SectionCodeMobile_textBlock2__3Dj97",textBlock3:"SectionCodeMobile_textBlock3__eYhqu",textBlock4:"SectionCodeMobile_textBlock4__6uTrv",image1:"SectionCodeMobile_image1__2DpoV",image1shadow:"SectionCodeMobile_image1shadow__aGcg2",number:"SectionCodeMobile_number__wYy5X",asterisks:"SectionCodeMobile_asterisks__iF31_",caption:"SectionCodeMobile_caption__V2e_c",image2:"SectionCodeMobile_image2__GpA5M",number2:"SectionCodeMobile_number2__VfL04",caption2:"SectionCodeMobile_caption2__gneU4",detailEnd:"SectionCodeMobile_detailEnd__qN6Bk"}},9420:function(e){e.exports={SectionCode:"SectionCodeTablet_SectionCode__dHbVP",rowBlock1:"SectionCodeTablet_rowBlock1__8D6sK",rowBlock2:"SectionCodeTablet_rowBlock2__s0VK2",rowBlock3:"SectionCodeTablet_rowBlock3__wRBQW",rowBlock4:"SectionCodeTablet_rowBlock4__1z2A7",titleBlock:"SectionCodeTablet_titleBlock__iEdqy",textBlock1:"SectionCodeTablet_textBlock1__5BV3N",textBlock2:"SectionCodeTablet_textBlock2__MPdSm",textBlock3:"SectionCodeTablet_textBlock3__MYetW",textBlock4:"SectionCodeTablet_textBlock4__tZST5",image:"SectionCodeTablet_image__nsRRt",image1shadow:"SectionCodeTablet_image1shadow__MR57d",number:"SectionCodeTablet_number__teH_j",asterisks:"SectionCodeTablet_asterisks__r3Skn",caption:"SectionCodeTablet_caption__rf_wm",image2:"SectionCodeTablet_image2__SIP7X",number2:"SectionCodeTablet_number2__rijPU",caption2:"SectionCodeTablet_caption2__gai0R",detailEnd:"SectionCodeTablet_detailEnd__SQMOU",divider:"SectionCodeTablet_divider__dbi4d"}},1502:function(e){e.exports={SectionDownload:"SectionDownloadDesktop_SectionDownload__PxL4_",rowBlock1:"SectionDownloadDesktop_rowBlock1__bcvUG",titleBlock:"SectionDownloadDesktop_titleBlock__Xw3Y6",detailLeft:"SectionDownloadDesktop_detailLeft__Aw6hi",detailRight:"SectionDownloadDesktop_detailRight__o1XYS",frame:"SectionDownloadDesktop_frame__fE_i_",info:"SectionDownloadDesktop_info__zKgdD",detail:"SectionDownloadDesktop_detail__Q9gRm"}},4678:function(e){e.exports={SectionDownload:"SectionDownloadMobile_SectionDownload__E2DxA",rowBlock1:"SectionDownloadMobile_rowBlock1__qHT7X",titleBlock:"SectionDownloadMobile_titleBlock__3Y40_",detailLeft:"SectionDownloadMobile_detailLeft__hXV6m",detailRight:"SectionDownloadMobile_detailRight__IZBDg",frame:"SectionDownloadMobile_frame__dDx19",info:"SectionDownloadMobile_info__wJaTg",detail:"SectionDownloadMobile_detail__hjUim"}},7227:function(e){e.exports={SectionDownload:"SectionDownloadTablet_SectionDownload__dpHYu",rowBlock1:"SectionDownloadTablet_rowBlock1__FaXbw",titleBlock:"SectionDownloadTablet_titleBlock__WDFiu",info:"SectionDownloadTablet_info___h792",frame:"SectionDownloadTablet_frame__HkLcH",rowBlock2:"SectionDownloadTablet_rowBlock2__xNKfL",detailRight:"SectionDownloadTablet_detailRight__shFh_"}},2457:function(e){e.exports={SectionGettingStarted:"SectionGettingStartedDesktop_SectionGettingStarted__6rS3P",rowBlock1:"SectionGettingStartedDesktop_rowBlock1__dx2Wx",rowBlock2:"SectionGettingStartedDesktop_rowBlock2__MOD_k",divider:"SectionGettingStartedDesktop_divider__pwK9V",titleBlock:"SectionGettingStartedDesktop_titleBlock___P8Tq",textBlock:"SectionGettingStartedDesktop_textBlock__S79GK",detailLeft1:"SectionGettingStartedDesktop_detailLeft1__OipAE",detailLeft2:"SectionGettingStartedDesktop_detailLeft2__e2jaM",image1:"SectionGettingStartedDesktop_image1__VPWwe",number:"SectionGettingStartedDesktop_number__TDZ6y",asterisks:"SectionGettingStartedDesktop_asterisks__uiw15",caption:"SectionGettingStartedDesktop_caption__fTtfB",end:"SectionGettingStartedDesktop_end__dLW3U"}},8098:function(e){e.exports={SectionGettingStarted:"SectionGettingStartedMobile_SectionGettingStarted__Bvyox",rowBlock1:"SectionGettingStartedMobile_rowBlock1__BMVu3",rowBlock2:"SectionGettingStartedMobile_rowBlock2__nEAcq",divider:"SectionGettingStartedMobile_divider__S5UnT",titleBlock:"SectionGettingStartedMobile_titleBlock__ROPLC",textBlock:"SectionGettingStartedMobile_textBlock__WENdE",image1:"SectionGettingStartedMobile_image1__g_hEV",detailLeft1:"SectionGettingStartedMobile_detailLeft1__Z63rF",detailLeft2:"SectionGettingStartedMobile_detailLeft2__2XJL6",number:"SectionGettingStartedMobile_number__0T4MF",caption:"SectionGettingStartedMobile_caption__iG9iq",end:"SectionGettingStartedMobile_end__NXP14"}},1673:function(e){e.exports={SectionGettingStarted:"SectionGettingStartedTablet_SectionGettingStarted__JUMQ_",rowBlock1:"SectionGettingStartedTablet_rowBlock1__ahONq",titleBlock:"SectionGettingStartedTablet_titleBlock__RCLj1",textBlock:"SectionGettingStartedTablet_textBlock__ct68x",detailLeft:"SectionGettingStartedTablet_detailLeft__zMyWy",rowBlock2:"SectionGettingStartedTablet_rowBlock2__FNL6H",number:"SectionGettingStartedTablet_number__CEMeU",caption:"SectionGettingStartedTablet_caption__1DVAp",image:"SectionGettingStartedTablet_image__48NCc",rowBlock3:"SectionGettingStartedTablet_rowBlock3__eDySd",detailBottom:"SectionGettingStartedTablet_detailBottom__WJiti",end:"SectionGettingStartedTablet_end__K3Yx_",divider:"SectionGettingStartedTablet_divider__5G5Z6"}},3241:function(e){e.exports={SectionHeader:"SectionHeaderDesktop_SectionHeader__maSQ9",rowBlock1:"SectionHeaderDesktop_rowBlock1__SyZEc",divider:"SectionHeaderDesktop_divider__IyW3j",detailLeft:"SectionHeaderDesktop_detailLeft__HNimD",detailRight:"SectionHeaderDesktop_detailRight__IUF81",authorImage:"SectionHeaderDesktop_authorImage__EDXA_",articleAuthorBy:"SectionHeaderDesktop_articleAuthorBy__JmbCq",articleAuthor:"SectionHeaderDesktop_articleAuthor__WIqNl",articlePublished:"SectionHeaderDesktop_articlePublished__c9bj8",eyebrow:"SectionHeaderDesktop_eyebrow__oSzgb",title:"SectionHeaderDesktop_title___RRqt",body:"SectionHeaderDesktop_body__LtQtD",titleContent:"SectionHeaderDesktop_titleContent__QBwxi",eyebrowContent:"SectionHeaderDesktop_eyebrowContent__19oHY"}},7070:function(e){e.exports={SectionHeader:"SectionHeaderMobile_SectionHeader__SmAp_",rowBlock1:"SectionHeaderMobile_rowBlock1__crCua",divider:"SectionHeaderMobile_divider__muTQq",detailLeft:"SectionHeaderMobile_detailLeft__kpViz",detailRight:"SectionHeaderMobile_detailRight__ZOUQo",authorImage:"SectionHeaderMobile_authorImage__Km3cR",articleAuthorBy:"SectionHeaderMobile_articleAuthorBy__k9cIo",articleAuthor:"SectionHeaderMobile_articleAuthor__Sbwp0",articlePublished:"SectionHeaderMobile_articlePublished__gUs0X",eyebrow:"SectionHeaderMobile_eyebrow__Vub5e",title:"SectionHeaderMobile_title__e5tGO",body:"SectionHeaderMobile_body__2JdOi",titleContent:"SectionHeaderMobile_titleContent__Q_vLj",eyebrowContent:"SectionHeaderMobile_eyebrowContent__7aTrh"}},6916:function(e){e.exports={SectionHeader:"SectionHeaderTablet_SectionHeader__0tSmV",rowBlock1:"SectionHeaderTablet_rowBlock1__PST9t",divider:"SectionHeaderTablet_divider__374mM",detailLeft:"SectionHeaderTablet_detailLeft__HBgEo",detailRight:"SectionHeaderTablet_detailRight__vWeY0",authorImage:"SectionHeaderTablet_authorImage__MjHmO",articleAuthorBy:"SectionHeaderTablet_articleAuthorBy__BTpk_",articleAuthor:"SectionHeaderTablet_articleAuthor__hjxGE",articlePublished:"SectionHeaderTablet_articlePublished__ceHPo",eyebrow:"SectionHeaderTablet_eyebrow__vRGeg",title:"SectionHeaderTablet_title__PnvMY",body:"SectionHeaderTablet_body__S6ODb",titleContent:"SectionHeaderTablet_titleContent__2y9gh",eyebrowContent:"SectionHeaderTablet_eyebrowContent__5kaWx"}},425:function(e){e.exports={SectionHowItWorks:"SectionHowItWorksDesktop_SectionHowItWorks__pIqw6",rowBlock1:"SectionHowItWorksDesktop_rowBlock1__N_5yb",rowBlock2:"SectionHowItWorksDesktop_rowBlock2__gUIqL",divider:"SectionHowItWorksDesktop_divider__ljTPR",titleBlock:"SectionHowItWorksDesktop_titleBlock__GmaD4",textBlock:"SectionHowItWorksDesktop_textBlock__tP_Uo",detailLeft:"SectionHowItWorksDesktop_detailLeft__H2jbx",detailLeft2:"SectionHowItWorksDesktop_detailLeft2__t33Nm",detailRight:"SectionHowItWorksDesktop_detailRight__GYu8l",detailRight2:"SectionHowItWorksDesktop_detailRight2__hF2tv",image1:"SectionHowItWorksDesktop_image1__QLiwB",image2:"SectionHowItWorksDesktop_image2__tJ14L",image3:"SectionHowItWorksDesktop_image3___HVFV",asterisks:"SectionHowItWorksDesktop_asterisks__Y3cRJ",number1:"SectionHowItWorksDesktop_number1__SPNQC",number2:"SectionHowItWorksDesktop_number2__8splD",number3:"SectionHowItWorksDesktop_number3__816g2",caption1:"SectionHowItWorksDesktop_caption1__9G8sA",caption2:"SectionHowItWorksDesktop_caption2__RUtvH",caption3:"SectionHowItWorksDesktop_caption3__McxSL"}},1483:function(e){e.exports={SectionHowItWorks:"SectionHowItWorksMobile_SectionHowItWorks__DSavP",rowBlock1:"SectionHowItWorksMobile_rowBlock1__2V9pj",rowBlock2:"SectionHowItWorksMobile_rowBlock2__MPLhm",rowBlock3:"SectionHowItWorksMobile_rowBlock3__pEWmk",rowBlock4:"SectionHowItWorksMobile_rowBlock4__djtQq",divider:"SectionHowItWorksMobile_divider__YdouD",titleBlock:"SectionHowItWorksMobile_titleBlock__lHdwP",textBlock:"SectionHowItWorksMobile_textBlock__6HCb3",detailLeft:"SectionHowItWorksMobile_detailLeft__8tjN_",detailLeft2:"SectionHowItWorksMobile_detailLeft2__Pk9lg",image1:"SectionHowItWorksMobile_image1__oB6Nh",image2:"SectionHowItWorksMobile_image2__qVwRl",image3:"SectionHowItWorksMobile_image3__2padQ",asterisks:"SectionHowItWorksMobile_asterisks__Nkbn0",number1:"SectionHowItWorksMobile_number1__aNRjV",number2:"SectionHowItWorksMobile_number2__dI3Sn",number3:"SectionHowItWorksMobile_number3___zI6I",caption1:"SectionHowItWorksMobile_caption1__dclps",caption2:"SectionHowItWorksMobile_caption2__PZrjH",caption3:"SectionHowItWorksMobile_caption3__Wp1rr"}},1094:function(e){e.exports={SectionHowItWorks:"SectionHowItWorksTablet_SectionHowItWorks__oZoEI",rowBlock1:"SectionHowItWorksTablet_rowBlock1__Dc7ba",asterisks:"SectionHowItWorksTablet_asterisks__Ofzif",titleBlock:"SectionHowItWorksTablet_titleBlock__AKS_f",detailRight:"SectionHowItWorksTablet_detailRight__dny3a",textBlock:"SectionHowItWorksTablet_textBlock__hiFfq",rowBlock2:"SectionHowItWorksTablet_rowBlock2__2xVPN",number1:"SectionHowItWorksTablet_number1__uuKBT",image1:"SectionHowItWorksTablet_image1__TSRld",caption1:"SectionHowItWorksTablet_caption1__WAFa6",detailLeft1:"SectionHowItWorksTablet_detailLeft1__jMMo_",rowBlock3:"SectionHowItWorksTablet_rowBlock3__dQ6eL",number2:"SectionHowItWorksTablet_number2__e_5cq",image2:"SectionHowItWorksTablet_image2__CscWS",caption2:"SectionHowItWorksTablet_caption2__TmbCT",rowBlock4:"SectionHowItWorksTablet_rowBlock4__PUtTv",number3:"SectionHowItWorksTablet_number3__FmhrC",detailLeft2:"SectionHowItWorksTablet_detailLeft2__3rKUV",image3:"SectionHowItWorksTablet_image3__ZWRg1",caption3:"SectionHowItWorksTablet_caption3__RDK0L",divider:"SectionHowItWorksTablet_divider__ZsiSr"}},1489:function(e){e.exports={SectionMicrosoft:"SectionMicrosoftDesktop_SectionMicrosoft__KxYHH",rowBlock1:"SectionMicrosoftDesktop_rowBlock1__n41W7",rowBlock2:"SectionMicrosoftDesktop_rowBlock2__4X1Ag",divider:"SectionMicrosoftDesktop_divider__iV0Jv",titleBlock1:"SectionMicrosoftDesktop_titleBlock1__Zkzgw",titleBlock2:"SectionMicrosoftDesktop_titleBlock2__DYFIa",textBlock:"SectionMicrosoftDesktop_textBlock__8iXpI",detailLeft:"SectionMicrosoftDesktop_detailLeft__r6o7L",detailRight:"SectionMicrosoftDesktop_detailRight__DKxi7",logo:"SectionMicrosoftDesktop_logo__1Ilxk",image1:"SectionMicrosoftDesktop_image1__kQ0UM",number:"SectionMicrosoftDesktop_number__BXrjQ",date:"SectionMicrosoftDesktop_date__4vpVO"}},7454:function(e){e.exports={SectionMicrosoft:"SectionMicrosoftMobile_SectionMicrosoft__h5knf",rowBlock1:"SectionMicrosoftMobile_rowBlock1__7wVQR",rowBlock2:"SectionMicrosoftMobile_rowBlock2__FtZuL",divider:"SectionMicrosoftMobile_divider__y6HQo",titleBlock1:"SectionMicrosoftMobile_titleBlock1__norGy",titleBlock2:"SectionMicrosoftMobile_titleBlock2__cKk0v",textBlock:"SectionMicrosoftMobile_textBlock__lPsny",detailLeft:"SectionMicrosoftMobile_detailLeft__P6YWW",detailRight:"SectionMicrosoftMobile_detailRight__FFSfb",logo:"SectionMicrosoftMobile_logo__zEBO2",image1:"SectionMicrosoftMobile_image1__wj9w1",number:"SectionMicrosoftMobile_number__FGtGJ",date:"SectionMicrosoftMobile_date__EpfXl"}},4125:function(e){e.exports={SectionMicrosoft:"SectionMicrosoftTablet_SectionMicrosoft__hDOsz",rowBlock1:"SectionMicrosoftTablet_rowBlock1__oHZnf",titleBlockLeft:"SectionMicrosoftTablet_titleBlockLeft__bUytt",titleBlockRight:"SectionMicrosoftTablet_titleBlockRight__We4P2",date:"SectionMicrosoftTablet_date__QmXtC",rowBlock2:"SectionMicrosoftTablet_rowBlock2__B_h3Q",textBlock:"SectionMicrosoftTablet_textBlock__uv970",detailLeft:"SectionMicrosoftTablet_detailLeft__DzrKC",rowBlock3:"SectionMicrosoftTablet_rowBlock3__xhe_Y",microsoftLogo:"SectionMicrosoftTablet_microsoftLogo__tQrOB",detailRight:"SectionMicrosoftTablet_detailRight__DwlU9",rowBlock4:"SectionMicrosoftTablet_rowBlock4__BIV0h",number:"SectionMicrosoftTablet_number__i8ChT",image:"SectionMicrosoftTablet_image__TRF9p",detailBottom:"SectionMicrosoftTablet_detailBottom__OV9_0"}},451:function(e){e.exports={SectionObstacles:"SectionObstaclesDesktop_SectionObstacles__6GNmO",rowBlock1:"SectionObstaclesDesktop_rowBlock1__oXJxn",divider:"SectionObstaclesDesktop_divider__0hyc6",titleBlock:"SectionObstaclesDesktop_titleBlock__4V10C",textBlock:"SectionObstaclesDesktop_textBlock__xA5QO",obstaclesScene:"SectionObstaclesDesktop_obstaclesScene__pRNc0",asterisks:"SectionObstaclesDesktop_asterisks__3n2I_"}},8817:function(e){e.exports={SectionObstacles:"SectionObstaclesMobile_SectionObstacles__80hhR",rowBlock1:"SectionObstaclesMobile_rowBlock1__QO0Ic",rowBlock2:"SectionObstaclesMobile_rowBlock2__v5GlO",divider:"SectionObstaclesMobile_divider__FUMYw",titleBlock:"SectionObstaclesMobile_titleBlock__yaGb4",textBlock:"SectionObstaclesMobile_textBlock__OkAtz",obstaclesScene:"SectionObstaclesMobile_obstaclesScene__R_QUU",asterisks:"SectionObstaclesMobile_asterisks__Asf0i"}},5876:function(e){e.exports={SectionObstacles:"SectionObstaclesTablet_SectionObstacles__zKj5M",rowBlock1:"SectionObstaclesTablet_rowBlock1__lUUmv",titleBlock:"SectionObstaclesTablet_titleBlock__4e1hg",obstaclesScene:"SectionObstaclesTablet_obstaclesScene__ZAf9l",rowBlock2:"SectionObstaclesTablet_rowBlock2__BlrSI",textBlock:"SectionObstaclesTablet_textBlock__wf43c",asterisks:"SectionObstaclesTablet_asterisks__1iRnu",divider:"SectionObstaclesTablet_divider__WVghh"}},8358:function(e){e.exports={AsciiBlock:"AsciiBlock_AsciiBlock__crYoG",contentBase:"AsciiBlock_contentBase__mqXOj",contentTitle:"AsciiBlock_contentTitle__3WubH",contentBody:"AsciiBlock_contentBody__07pIO",contentBodyBold:"AsciiBlock_contentBodyBold__DBosz",contentBodyRegular:"AsciiBlock_contentBodyRegular__jgT_i",contentArt:"AsciiBlock_contentArt__7ahju",caption:"AsciiBlock_caption__ESTUO",paragraphBreak:"AsciiBlock_paragraphBreak__9Z_Zx",animateIn:"AsciiBlock_animateIn__AWZSp",animateIn_content:"AsciiBlock_animateIn_content__fm2xA",altText:"AsciiBlock_altText__jpaeV",linkText:"AsciiBlock_linkText__VGebK"}},2655:function(e){e.exports={DitherImageBlock:"DitherImageBlock_DitherImageBlock__0GqiT",hidden:"DitherImageBlock_hidden__egYzR"}},3551:function(e){e.exports={Divider:"DividerDesktop_Divider__25TH5",dividerContainer:"DividerDesktop_dividerContainer__Eyyzu",dividerBlock:"DividerDesktop_dividerBlock__GPp_Q"}},9657:function(e){e.exports={Divider:"DividerMobile_Divider__XfDQT",dividerContainer:"DividerMobile_dividerContainer__hWOcC",dividerBlock:"DividerMobile_dividerBlock__QDUln",content:"DividerMobile_content__K8fw1"}},2150:function(e){e.exports={Divider:"DividerTablet_Divider__CwDI1",dividerContainer:"DividerTablet_dividerContainer__cA19A",dividerBlock:"DividerTablet_dividerBlock__18nam"}},6914:function(e){e.exports={DownloadButton:"DownloadButton_DownloadButton__fE_sI",frame:"DownloadButton_frame__43UJw",frameContent:"DownloadButton_frameContent__r63Wn",label:"DownloadButton_label__qrY5n",labelContent:"DownloadButton_labelContent__2U19f",downloadLink:"DownloadButton_downloadLink__vqUKq"}},6527:function(e){e.exports={HeaderBlock:"HeaderBlock_HeaderBlock__mtCYz",headerContent:"HeaderBlock_headerContent__Ae7Zy"}},6433:function(e){e.exports={ImageBlock:"ImageBlock_ImageBlock___8TZ7",image:"ImageBlock_image__w3ZLr",animateIn:"ImageBlock_animateIn__t5c2R"}},3886:function(e){e.exports={ObstaclesScene:"ObstaclesScene_ObstaclesScene__Bxnx9",ObstaclesSceneContent:"ObstaclesScene_ObstaclesSceneContent__w9rDw"}},4935:function(e){e.exports={RowBlockContainer:"RowBlock_RowBlockContainer__Tko17",RowBlock:"RowBlock_RowBlock__UWqmX"}},9994:function(e){e.exports={SectionBlock:"SectionBlock_SectionBlock____3mS",BackgroundGuideWrap:"SectionBlock_BackgroundGuideWrap__WEZrF",BackgroundGuide:"SectionBlock_BackgroundGuide__ym4vi",Anchor:"SectionBlock_Anchor___kseY"}},8726:function(e){e.exports={SourceCodeGLLayer:"SourceCodeGLLayer_SourceCodeGLLayer__pKT9G",background:"SourceCodeGLLayer_background__wOilE",canvasParent:"SourceCodeGLLayer_canvasParent__fK4gs"}},3863:function(e){e.exports={StaticImageBlock:"StaticImageBlock_StaticImageBlock__hSHWg",image:"StaticImageBlock_image__iPeFv",animateIn:"StaticImageBlock_animateIn__trPpe"}},9554:function(e){e.exports={TextBlock:"TextBlock_TextBlock__LW9LC",text:"TextBlock_text__m7fsI",paragraphBreak:"TextBlock_paragraphBreak__06TwM"}},8698:function(e){e.exports={TitleBlock:"TitleBlock_TitleBlock__biohr",title:"TitleBlock_title__v97Cv"}}}]);