try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="035f5852-2ba6-4cba-9e6a-cb664a08cdfe",e._sentryDebugIdIdentifier="sentry-dbid-035f5852-2ba6-4cba-9e6a-cb664a08cdfe")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4899],{10347:(e,r,t)=>{Promise.resolve().then(t.t.bind(t,46668,23)),Promise.resolve().then(t.t.bind(t,70957,23)),Promise.resolve().then(t.bind(t,20891)),Promise.resolve().then(t.bind(t,8140)),Promise.resolve().then(t.bind(t,40957)),Promise.resolve().then(t.bind(t,18893))},10502:(e,r,t)=>{"use strict";t.d(r,{ErrorBoundary:()=>l});var o=t(25031);let n=(0,o.createContext)(null),s={didCatch:!1,error:null};class l extends o.Component{static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){let{error:e}=this.state;if(null!==e){for(var r,t,o=arguments.length,n=Array(o),l=0;l0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==r.length||e.some((e,t)=>!Object.is(e,r[t]))}(e.resetKeys,o)){var n,l;null==(n=(l=this.props).onReset)||n.call(l,{next:o,prev:e.resetKeys,reason:"keys"}),this.setState(s)}}render(){let{children:e,fallbackRender:r,FallbackComponent:t,fallback:s}=this.props,{didCatch:l,error:a}=this.state,i=e;if(l){let e={error:a,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof r)i=r(e);else if(t)i=(0,o.createElement)(t,e);else if(void 0!==s)i=s;else throw a}return(0,o.createElement)(n.Provider,{value:{didCatch:l,error:a,resetErrorBoundary:this.resetErrorBoundary}},i)}constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=s}}},18893:(e,r,t)=>{"use strict";t.d(r,{default:()=>d});var o=t(20367),n=t(52744),s=t(26700),l=t(25031),a=t(10502);let i=(0,l.memo)(function(e){let{error:r,resetErrorBoundary:t,componentName:l}=e,a=(0,s.Qk)(r);return(0,s.A)(r)&&r.isUserFriendly||n.Cp(r,{extra:{componentName:l||"unknown",errorType:r.name,errorMessage:r.message,errorStack:r.stack},tags:{location:l||"unknown",errorType:r.name}}),(0,o.jsxs)("div",{role:"alert",className:"p-4 border border-error rounded-lg bg-error-light max-w-xl mx-auto my-8",children:[(0,o.jsx)("h2",{className:"text-lg font-semibold text-red-800 mb-2",children:"Oops! Something went wrong"}),(0,o.jsx)("p",{className:"text-red-700 mb-4",children:a}),!1,(0,o.jsx)("button",{onClick:t,className:"px-4 py-2 bg-error text-white rounded-sm hover:bg-error-hover transition-colors",children:"Try again"})]})}),d=(0,l.memo)(function(e){let{children:r,componentName:t,fallback:n=i,onError:s}=e,d=(0,l.useCallback)(e=>(0,o.jsx)(n,{...e,componentName:t}),[n,t]);return(0,o.jsx)(a.ErrorBoundary,{FallbackComponent:d,onError:(e,r)=>{s&&s(e,r),console.error("Error in ".concat(t||"component",":"),e,r)},children:r})})},20891:(e,r,t)=>{"use strict";t.d(r,{BooksGrid:()=>c});var o=t(20367),n=t(25031),s=t(87236),l=t(46668),a=t.n(l),i=t(34672);let d=(0,n.memo)(function(e){let{book:r,isPriority:t}=e,l=(0,n.useCallback)(e=>{e.preventDefault();let t=document.getElementById(r.slug);t&&t.scrollIntoView({behavior:"smooth"})},[r.slug]);return(0,o.jsx)(a(),{href:"#".concat(r.slug),onClick:l,className:"inline-block","aria-label":"View ".concat(r.title),children:(0,o.jsx)(s.default,{src:r.coverSrc,alt:r.title,width:100,height:150,sizes:"(max-width: 768px) 100px, 100px",quality:85,className:"border border-black rounded-xs shadow-md transition-transform hover:scale-105",priority:t,loading:t?"eager":"lazy"})})}),c=(0,n.memo)(function(){let e=i.b.slice(0,10);return(0,o.jsx)("div",{className:"mx-auto max-w-2xl flex flex-wrap gap-4 md:gap-8 justify-center",children:e.map((e,r)=>(0,o.jsx)(d,{book:e,isPriority:r<3},e.slug))})})}},e=>{e.O(0,[4450,957,3009,8962,9699,4999,6978,4672,8605,7724,7358],()=>e(e.s=10347)),_N_E=e.O()}]);