1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8e00ccde-a841-4333-8a91-0c35eb9dd635",e._sentryDebugIdIdentifier="sentry-dbid-8e00ccde-a841-4333-8a91-0c35eb9dd635")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6884],{77804:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/resources/books/[bookSlug]/[chapterSlug]",function(){return l(85930)}])},85925:(e,t,l)=>{"use strict";function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.A=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var l=n(t);if(l&&l.has(e))return l.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,l&&l.set(e,r),r}(l(14232));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,l=new WeakMap;return(n=function(e){return e?l:t})(e)}function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var s in l)Object.prototype.hasOwnProperty.call(l,s)&&(e[s]=l[s])}return e}).apply(this,arguments)}t.A=function(e){return r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",fill:"currentColor"},e),r.createElement("path",{fillRule:"evenodd",d:"M1,9 C1,4.58173126 4.58173139,1 9,1 C13.4182687,1 17,4.58173139 17,9 C17,13.4182684 13.4182687,17 9,17 C4.58173126,17 1,13.4182686 1,9 Z M9,15.5 C12.5898417,15.5 15.5,12.5898414 15.5,9 C15.5,5.41015833 12.5898417,2.5 9,2.5 C5.41015833,2.5 2.5,5.41015833 2.5,9 C2.5,12.5898417 5.41015833,15.5 9,15.5 Z M9.83367114,8.5534875 L9.43863781,4.72335 C9.41183568,4.48172546 9.19423281,4.30757625 8.95260739,4.33438041 C8.74792476,4.35708477 8.58634114,4.51866825 8.56363781,4.72335 C8.55832947,4.77465416 8.12817947,8.946975 8.1226378,8.99784175 C8.09261509,9.29393008 8.25486255,9.57616133 8.5258378,9.69921258 L11.3138794,11.0000459 C11.5268224,11.0966036 11.7777228,11.0022546 11.874279,10.7893118 C11.9509074,10.6203195 11.9085595,10.4211205 11.7698119,10.2979176 L9.83367114,8.5534875 Z",fill:""}))}},85930:(e,t,l)=>{"use strict";l.r(t),l.d(t,{__N_SSG:()=>C,default:()=>k});var s,r=l(37876),n=l(14232),a=l(50665),i=l.n(a),o=l(86504),c=l(99333),u=l(48230),m=l.n(u),d=l(97582),g=l(39655),f=l(34226),h=l(72487),x=l(87245),p=l(62565);let y=e=>{let{current:t,all:l,accentColourClass:s,bookSlug:n}=e;return l.length?(0,r.jsx)("div",{className:"mt-16",children:l.map(e=>{let{chapterIndex:l,slug:a,title:i}=e,o=l===t,u=f.A[l];return o?(0,r.jsxs)("div",{className:"flex items-start justify-start mt-4 text-gray-600",children:[(0,r.jsx)("div",{className:"".concat(s," w-6 mr-3 mt-1"),children:(0,r.jsx)(u,{className:"fill-current"})}),(0,r.jsxs)("div",{className:"w-full pb-6",children:[(0,r.jsxs)("p",{className:"text-2xs font-semibold text-gray-400",children:["Chapter ",l]}),(0,r.jsx)("h4",{className:"my-1 text-sm font-bold",children:i})]})]},l):(0,r.jsxs)(m(),{href:(0,c.Bu)(n,a),className:"hover:scale-105 hover:opacity-100 group flex items-start justify-start mt-4 text-gray-600 transition-transform duration-300 transform opacity-50 cursor-pointer",children:[(0,r.jsx)("div",{className:"text-gray-200 group-hover:".concat(s," w-6 mr-3 mt-1 group-hover:duration-300"),children:(0,r.jsx)(u,{className:"fill-current"})}),(0,r.jsxs)("div",{className:"w-full pb-6",children:[(0,r.jsxs)("p",{className:"text-2xs font-semibold text-gray-400",children:["Chapter ",l]}),(0,r.jsx)("h4",{className:"my-1 text-sm font-semibold",children:i})]})]},l)})}):null};var b=l(85925),v=["title","titleId"];function j(){return(j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var s in l)({}).hasOwnProperty.call(l,s)&&(e[s]=l[s])}return e}).apply(null,arguments)}let w=function(e){var t=e.title,l=e.titleId,r=function(e,t){if(null==e)return{};var l,s,r=function(e,t){if(null==e)return{};var l={};for(var s in e)if(({}).hasOwnProperty.call(e,s)){if(-1!==t.indexOf(s))continue;l[s]=e[s]}return l}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(s=0;s<n.length;s++)l=n[s],-1===t.indexOf(l)&&({}).propertyIsEnumerable.call(e,l)&&(r[l]=e[l])}return r}(e,v);return n.createElement("svg",j({viewBox:"0 0 295 16",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":l},r),void 0===t?n.createElement("title",{id:l},"Path 3"):t?n.createElement("title",{id:l},t):null,s||(s=n.createElement("g",{id:"Page",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},n.createElement("g",{id:"Chapter-View",transform:"translate(-1073.000000, -2887.000000)",fill:"current",fillRule:"nonzero"},n.createElement("g",{id:"Group-4-Copy-2",transform:"translate(0.000000, 78.000000)"},n.createElement("g",{id:"Group",transform:"translate(565.000000, 296.000000)"},n.createElement("g",{id:"Next",transform:"translate(4.000000, 2374.000000)"},n.createElement("path",{id:"Path-3",d:"M785.220269,139.327113 L785.325211,139.378424 L797.325211,146.128424 L798.874679,147 L797.325211,147.871576 L785.325211,154.621576 C784.843853,154.892339 784.234138,154.721619 783.963375,154.240261 C783.711951,153.793286 783.841195,153.235636 784.246343,152.941463 L784.344689,152.878424 L793.016,148 L505,148 C504.447715,148 504,147.552285 504,147 C504,146.487164 504.38604,146.064493 504.883379,146.006728 L505,146 L793.019,146 L784.344689,141.121576 C783.897714,140.870152 783.718584,140.326469 783.912063,139.864681 L783.963375,139.759739 C784.214798,139.312764 784.758481,139.133634 785.220269,139.327113 Z"}
1))))))))};async function N(e){let{bookSlug:t,chapterSlug:l}=e.params,s=await (0,o.aq)(l,t);return(0,c.gR)({...s,bookSlug:t,chapterSlug:l})}var C=!0;let k=e=>{var t,l,s;let[a,o]=(0,n.useState)(e),u=(0,n.useCallback)(()=>{let e={form_name:a.segmentFormName||void 0,form_type:a.segmentFormType||void 0,form_action:a.segmentFormAction||void 0,offer_medium:a.segmentOfferMedium||void 0,offer_subject:a.segmentOfferSubject||void 0,offer_action:a.segmentOfferAction||void 0,sdr_instructions:a.segmentSdrInstructions||void 0,nonInteraction:1};(0,c.sx)("ungated_content_viewed",e)},[a.segmentFormAction,a.segmentFormName,a.segmentFormType,a.segmentOfferAction,a.segmentOfferMedium,a.segmentOfferSubject,a.segmentSdrInstructions]),v=(0,n.useCallback)(()=>{setTimeout(()=>{N({params:{bookSlug:e.bookSlug,chapterSlug:e.slug}}).then(e=>o(e.props))},0)},[e.bookSlug,e.slug]);(0,n.useEffect)(()=>{c.VD?v():(o(e),u())},[v,u,e.bookSlug,e.slug]);let{authors:j,content:C,title:k,description:O,chapterIndex:_,book:S,shareCard:A,slug:E}=a,L=f.A[_],P=f.A[_+1],I=f.A[_+2],M=i()(C),D=null==S||null==(t=S.chapters)?void 0:t[_];return(0,r.jsx)(g.A,{title:k,description:O,authors:j,shareCard:A,path:"/resources/books/".concat(S.slug,"/").concat(E),isArticle:!0,children:(0,r.jsxs)("div",{className:"pt-20",children:[(0,r.jsx)(p.A,{crumbs:[{link:"/resources",copy:"Resources"},{link:"/resources/books",copy:"Books"},{link:(0,c.Bu)(S.slug),copy:S.name},{copy:k}],bottomBorder:!0}),(0,r.jsxs)("div",{className:"main-container md:flex md:mt-20 md:mb-20 w-full mt-12 mb-16",id:"start",children:[(0,r.jsxs)("div",{className:"md:block hidden w-1/4 pr-4",children:[(null==S?void 0:S.bookImage)&&(0,r.jsx)(x.A,{maxHeight:320,image:S.bookImage,classNames:"shadow-2xl rounded-sm"}),(null==S||null==(l=S.chapters)?void 0:l.length)&&(0,r.jsx)(y,{current:_,all:S.chapters,accentColourClass:S.accentColourClass,bookSlug:S.slug})]}),(0,r.jsxs)("div",{className:"md:w-3/4 md:pl-16 w-full",children:[(null==S||null==(s=S.chapters)?void 0:s.length)&&(0,r.jsxs)("div",{className:"flex",children:[L&&(0,r.jsx)(L,{className:"h-24 mr-4 fill-current ".concat(null==S?void 0:S.accentColourClass)}),(0,r.jsxs)("div",{className:"flex flex-col items-start justify-between h-24",children:[P&&(0,r.jsx)(P,{className:"h-full mb-2 text-gray-100 fill-current"}),I&&(0,r.jsx)(I,{className:"h-full text-gray-100 fill-current"})]})]}),(0,r.jsxs)("div",{className:"flex items-center mt-5 mb-4 font-medium",children:[(0,r.jsxs)("p",{className:"font-medium text-gray-600",children:["Chapter ",_]}),(0,r.jsxs)("div",{className:"flex items-center ml-4 text-gray-400",children:[(0,r.jsx)(b.A,{className:"mr-1 fill-current"}),(0,r.jsxs)("p",{children:[Math.round(M.minutes)," minutes"]})]})]}),(0,r.jsx)("h1",{className:"ck-h2-new",children:k}),(null==j?void 0:j.length)?(0,r.jsx)(h.A,{authors:j,large:!0}):null,(0,r.jsx)("div",{className:"mt-8",children:(0,r.jsx)(d.A,{accentColourClass:S.accentColourClass,children:C})}),D&&(0,r.jsx)("div",{className:"md:ml-auto md:mr-0 md:mt-20 max-w-xs mx-auto mt-12",children:(0,r.jsxs)(m(),{href:(0,c.Bu)(S.slug,D.slug),className:"hover:scale-105 hover:opacity-100 group relative flex items-start justify-start duration-300 transform cursor-pointer",children:[(0,r.jsx)("div",{className:"text-gray-200 group-hover:".concat(S.accentColourClass," w-8 mr-3 mt-1 duration-300"),children:(0,r.jsx)(P,{className:"fill-current"})}),(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsxs)("p",{className:"text-sm font-semibold text-gray-400",children:["Chapter ",D.chapterIndex]}),(0,r.jsx)("h4",{className:"mt-1 mb-4 text-lg font-semibold",children:D.title}),(0,r.jsx)(w,{className:"w-full text-gray-900 fill-current"})]})]})})]})]})]})})}},97582:(e,t,l)=>{"use strict";l.d(t,{A:()=>S});var s=l(37876),r=l(14232),n=l(49905),a=l.n(n),i=l(82301),o=l.n(i),c=l(63930
1),u=l.n(c),m=l(92201),d=l.n(m),g=l(25399),f=l.n(g),h=l(49991),x=l.n(h),p=l(19317),y=l.n(p),b=l(6189),v=l.n(b),j=l(12232),w=l.n(j);let N=e=>{let{number:t,percent:l,caption:r,fullwidth:n,accentColourClass:a}=e;return(0,s.jsxs)("div",{className:"".concat(n?"":"md:float-left"," w-full max-w-xs mx-auto my-8 px-4 text-center"),children:[(0,s.jsxs)("span",{className:"".concat(a||""," ").concat(t.length>2?"text-7xl md:text-8xl":"text-9xl"," block font-semibold"),children:[t,l?(0,s.jsx)("span",{className:"text-6xl",children:"%"}):null]}),(0,s.jsx)("span",{className:"md:px-8 block max-w-xs mx-auto mt-4 font-medium leading-relaxed text-gray-500",children:r})]})};var C=l(95770);let k=new Set([...Object.keys(C.A),"bignumber"]),O=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.filter(e=>("text"!==e.type||""!==e.value.trim())&&("element"!==e.type||"br"!==e.tagName));return t.length>0&&t.every(e=>"element"===e.type&&k.has(e.tagName))},_=()=>e=>{let t=e=>{e&&Array.isArray(e.children)&&(e.children=e.children.flatMap(e=>"element"===e.type&&"p"===e.tagName&&O(e.children)?e.children:[e]),e.children.forEach(t))};t(e)},S=e=>{let{children:t,accentColourClass:l="",disableSectionize:n=!1,unstyled:i=!1,additionalClasses:c=""}=e,m=a()().use(o()).use(x()).use(d(),{sanitize:!1,"light-gray":{classes:"light-gray"},"light-gray-li":{classes:"light-gray li"},"light-gray-ol":{classes:"light-gray ol"},"light-gray-dialogue":{classes:"light-gray dialogue"},"light-blue":{classes:"light-blue"},"light-blue-li":{classes:"light-blue li"},"light-blue-ol":{classes:"light-blue ol"},"light-blue-dialogue":{classes:"light-blue dialogue"},"light-green":{classes:"light-green"},"light-green-li":{classes:"light-green li"},"light-green-ol":{classes:"light-green ol"},"light-green-dialogue":{classes:"light-green dialogue"}}).use(u()).use(n?e=>e:f()).use(y(),{allowDangerousHtml:!0}).use(v()).use(_).use(w(),{createElement:r.createElement,Fragment:r.Fragment,passNode:!0,components:{...C.A,bignumber:e=>(0,s.jsx)(N,{...e,accentColourClass:l})}}).processSync(t).contents;return(0,s.jsx)("div",{className:"".concat(i?"":"markdown-content"," ").concat(c),children:m})}}},e=>{e.O(0,[6643,9796,2744,9665,3716,6785,2867,8230,5138,2708,4035,383,2909,242,665,7511,9655,5770,362,558,636,6593,8792],()=>e(e.s=77804)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.