try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b87e8353-a1b4-44ed-8544-ae6a3b889cd0",e._sentryDebugIdIdentifier="sentry-dbid-b87e8353-a1b4-44ed-8544-ae6a3b889cd0")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5858],{13080:(e,t,r)=>{"use strict";function s(e){let{reason:t,children:r}=e;return r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return s}}),r(93871)},16517:(e,t,r)=>{"use strict";function s(e){let{moduleIds:t}=e;return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return s}}),r(65183),r(1174),r(38078),r(16627)},17666:(e,t,r)=>{"use strict";r.d(t,{ErrorBoundary:()=>l});var s=r(24375);let a=(0,s.createContext)(null),n={didCatch:!1,error:null};class l extends s.Component{static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){let{error:e}=this.state;if(null!==e){for(var t,r,s=arguments.length,a=Array(s),l=0;l0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,r)=>!Object.is(e,t[r]))}(e.resetKeys,s)){var a,l;null==(a=(l=this.props).onReset)||a.call(l,{next:s,prev:e.resetKeys,reason:"keys"}),this.setState(n)}}render(){let{children:e,fallbackRender:t,FallbackComponent:r,fallback:n}=this.props,{didCatch:l,error:o}=this.state,i=e;if(l){let e={error:o,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)i=t(e);else if(r)i=(0,s.createElement)(r,e);else if(void 0!==n)i=n;else throw o}return(0,s.createElement)(a.Provider,{value:{didCatch:l,error:o,resetErrorBoundary:this.resetErrorBoundary}},i)}constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=n}}},19170:(e,t,r)=>{"use strict";function s(e){if(!(null==e?void 0:e.trim()))throw Error("Non-empty string is required for slugify");return e.trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}r.d(t,{Y:()=>s})},22920:(e,t,r)=>{"use strict";r.d(t,{j:()=>f});var s=r(65183),a=r(71307),n=r(24375),l=r(41648),o=r(32812);let i=(0,n.memo)(function(e){let{title:t}=e,r={width:200,height:40,alt:"Decorative laurel image",className:"mx-auto",sizes:"(max-width: 768px) 200px, 200px",quality:85};return(0,s.jsxs)("div",{className:"max-w-[200px] mx-2",children:[(0,s.jsx)(o.default,{src:"/top-laurel.png",...r,alt:"Top decorative laurel image"}),(0,s.jsx)("p",{className:"text-center text-balance text-xs mb-0",children:t}),(0,s.jsx)(o.default,{src:"/bottom-laurel.png",...r,alt:"Bottom decorative laurel image"})]})});var c=r(82212),d=r.n(c),m=r(10142),u=r(49275);let x=(0,n.memo)(function(e){let{book:t,priority:r=!1}=e;return(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsx)(d(),{href:"/books/".concat(t.slug),children:(0,s.jsx)(o.default,{src:t.coverSrc,alt:"Cover of ".concat(t.title),width:200,height:300,priority:r,className:"rounded-lg shadow-lg hover:shadow-xl transition-shadow duration-300 border border-gray-500"})})})}),h=(0,n.memo)(function(e){let{book:t}=e;return(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row space-y-2 space-x-4 justify-center items-center",children:[(0,s.jsx)(l.BuyBookButton,{book:t}),(0,s.jsx)("span",{className:"text-xs text-gray-500 italic",children:"or"}),(0,s.jsx)(d(),{href:"/books/".concat(t.slug),className:"text-primary hover:underline text-sm",children:"Learn More →"})]})}),p=(0,n.memo)(function(e){var t;let{book:r,hasReviews:a,hasLaurels:n,bookReviews:l}=e;return(0,s.jsxs)("div",{className:"w-full flex flex-col items-center justify-center overflow-hidden",children:[a&&(0,s.jsx)("div",{className:"w-full flex justify-center",children:(0,s.jsx)("div",{className:"w-full max-w-[260px] sm:max-w-[360px] md:max-w-[400px]",children:(0,s.jsx)(m.ReviewsCarousel,{reviews:l,showRatings:!0,width:"sm",height:"sm"})})}),!a&&n&&(0,s.jsx)("div",{className:"flex items-center justify-center",role:"list","aria-label":"Book laurels",children:null==(t=r.laurels)?void 0:t.map((e,t)=>(0,s.jsx)(i,{title:e},"".concat(r.slug,"-laurel-").concat(t)))}),(0,s.jsx)(h,{book:r})]})}),f=(0,n.memo)(e=>{let{book:t,priority:r=!1,borderStyle:l="strong"}=e,{bookReviews:o,hasReviews:i,hasLaurels:c}=(0,n.useMemo)(()=>{var e;let r=u.Y.filter(e=>{var r;return null==(r=e.object)?void 0:r.some(e=>null==e?void 0:e.toLowerCase().includes(t.title.toLowerCase()))});return{bookReviews:r,hasReviews:r.length>0,hasLaurels:!!(null==(e=t.laurels)?void 0:e.length)}},[t.title,t.laurels]);return(0,s.jsx)("div",{className:"w-full max-w-3xl mx-auto flex flex-col space-y-2 overflow-hidden",children:(0,s.jsx)(a.Zp,{variant:"strong"===l?"elevated":"bordered",padding:"none",className:"w-full !py-3 sm:!py-4 md:!py-6 border-gray-500",children:(0,s.jsxs)(a.bw,{padding:"none",children:[(0,s.jsx)("h3",{className:"text-center",children:t.title}),(0,s.jsx)("p",{className:"text-sm text-center text-balance mx-4 max-w-2xl",children:t.shortDescription}),(0,s.jsxs)("div",{className:"w-full flex flex-col md:flex-row space-y-2 md:space-y-0 md:space-x-8 items-center mt-4",children:[(0,s.jsx)("div",{className:"flex justify-center md:w-1/2",children:(0,s.jsx)(x,{book:t,priority:r})}),(0,s.jsx)("div",{className:"md:w-1/2",children:(0,s.jsx)(p,{book:t,hasReviews:i,hasLaurels:c,bookReviews:o})})]})]})})})});x.displayName="BookCover",h.displayName="BookActions",p.displayName="BookContent",f.displayName="BookShowcase"},32694:(e,t,r)=>{"use strict";r.d(t,{BlogLinksList:()=>i});var s=r(65183),a=r(66009),n=r(89289),l=r(82212),o=r.n(l);function i(e){let{posts:t,showFooter:r=!1}=e;return t&&0!==t.length?(0,s.jsxs)("div",{className:"flex flex-col gap-4 mx-1 sm:mx-2 md:mx-4 justify-center",children:[(0,s.jsx)("ul",{className:"list-none mx-0 my-4 p-0 flex flex-col gap-2",children:t.map(e=>(0,s.jsxs)("li",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-1 md:gap-2 mx-0",children:[(0,s.jsxs)("div",{className:"flex flex-row items-center min-w-0",children:[(0,s.jsx)("span",{className:"w-4 h-4 mr-2 inline-flex items-center justify-center flex-shrink-0",children:e.stars>1&&(0,s.jsx)(a.A,{className:"w-4 h-4 text-yellow-500 fill-yellow-500","aria-hidden":!0})}),(0,s.jsxs)(o(),{href:"/posts/".concat(e.slug),className:"text-gray-700 hover:text-gray-900 no-underline min-w-0 flex flex-col md:flex-row md:items-center",children:[(0,s.jsx)("span",{className:"line-clamp-2 md:line-clamp-1 md:truncate break-words",children:e.title}),(0,s.jsx)(n.A,{className:"hidden md:inline-flex w-4 h-4 ml-2 text-muted flex-shrink-0","aria-hidden":!0}),(0,s.jsxs)("span",{className:"mt-0.5 flex flex-row items-center gap-2 md:hidden",children:[(0,s.jsx)(n.A,{className:"w-4 h-4 text-muted flex-shrink-0","aria-hidden":!0}),(0,s.jsx)("span",{className:"text-xs text-gray-500 flex-shrink-0",children:e.date})]})]})]}),(0,s.jsx)("span",{className:"hidden md:inline text-xs text-gray-500 flex-shrink-0",children:e.date})]},e.slug))}),r&&(0,s.jsxs)("footer",{className:"flex flex-col gap-2",children:[(0,s.jsxs)("p",{className:"text-xs text-muted text-center text-balance !my-0",children:["I will add more posts soon (subscribe to"," ",(0,s.jsx)(o(),{href:"/newsletter",children:"my newsletter"})," to be notified)."]}),(0,s.jsxs)("p",{className:"text-xs text-muted text-center text-balance !my-0",children:["Click ",(0,s.jsx)(o(),{href:"/blog",children:"here"})," to view all of my posts."]})]})]}):null}},35184:(e,t,r)=>{"use strict";r.d(t,{ClientConvertkitForm:()=>o});var s=r(65183),a=r(62742),n=r(24375);let l=(0,a.default)(()=>Promise.all([r.e(7150),r.e(9396)]).then(r.bind(r,66295)),{loadableGenerated:{webpack:()=>[66295]},ssr:!1,loading:()=>(0,s.jsx)("div",{className:"min-h-[200px] animate-pulse bg-gray-100 rounded-lg"})}),o=(0,n.memo)(e=>{let{size:t}=e;return(0,s.jsx)(l,{size:t})});o.displayName="ClientConvertkitForm"},38078:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return s.workAsyncStorageInstance}});let s=r(47024)},42457:(e,t,r)=>{"use strict";r.d(t,{default:()=>c});var s=r(65183),a=r(9613),n=r(45592),l=r(24375),o=r(17666);let i=(0,l.memo)(function(e){let{error:t,resetErrorBoundary:r,componentName:l}=e,o=(0,n.Qk)(t);return(0,n.A)(t)&&t.isUserFriendly||a.Cp(t,{extra:{componentName:l||"unknown",errorType:t.name,errorMessage:t.message,errorStack:t.stack},tags:{location:l||"unknown",errorType:t.name}}),(0,s.jsxs)("div",{role:"alert",className:"p-4 border border-error rounded-lg bg-error-light max-w-xl mx-auto my-8",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold text-red-800 mb-2",children:"Oops! Something went wrong"}),(0,s.jsx)("p",{className:"text-red-700 mb-4",children:o}),!1,(0,s.jsx)("button",{onClick:r,className:"px-4 py-2 bg-error text-white rounded-sm hover:bg-error-hover transition-colors",children:"Try again"})]})}),c=(0,l.memo)(function(e){let{children:t,componentName:r,fallback:a=i,onError:n}=e,c=(0,l.useCallback)(e=>(0,s.jsx)(a,{...e,componentName:r}),[a,r]);return(0,s.jsx)(o.ErrorBoundary,{FallbackComponent:c,onError:(e,t)=>{n&&n(e,t),console.error("Error in ".concat(r||"component",":"),e,t)},children:t})})},47024:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return s}});let s=(0,r(80706).createAsyncLocalStorage)()},47295:(e,t,r)=>{"use strict";r.d(t,{default:()=>c});var s=r(65183),a=r(50849);let n=(0,r(14371).A)("twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);var l=r(24375),o=r(28681);let i=(0,l.memo)(e=>{let{title:t="Principle",text:r}=e,l=(0,o.usePathname)(),i=encodeURIComponent("".concat("https://Luca-Dellanna.com").concat(l)),c=((e,t)=>{let r=t?"".concat(t,": ").concat(e):e,s=r.length>200?"".concat(r.slice(0,200),"..."):r;return encodeURIComponent('"'.concat(s,'" by @DellannaLuca\n'))})(r,t);return(0,s.jsxs)("div",{className:"blog-frame text-center text-balance",children:[(0,s.jsx)("h4",{className:"font-bold mt-0 mb-4",children:t}),(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:r})}),(0,s.jsxs)(a.$,{onClick:()=>{window.open("https://twitter.com/intent/tweet?text=".concat(c,"&url=").concat(i),"_blank","noopener,noreferrer")},variant:"primary",size:"sm",className:"mt-4 bg-twitter text-white hover:bg-twitter-hover",children:[(0,s.jsx)(n,{size:16,className:"text-white fill-current"}),"Share on Twitter"]})]})});i.displayName="Principle";let c=i},52960:(e,t,r)=>{"use strict";r.d(t,{default:()=>C});var s=r(65183),a=r(56822),n=r(9613),l=r(24375),o=r(22920),i=r(35184);let c=(0,l.memo)(e=>{let{content:t}=e,[r,a]=(0,l.useState)([]),[n,o]=(0,l.useState)(!1);if((0,l.useEffect)(()=>{let e=setTimeout(()=>{let e=Array.from(document.querySelectorAll("h2, h3")).map(e=>({id:e.id,text:e.textContent||"",level:parseInt(e.tagName[1]||"2")}));e.length>4&&a(e)},100);return()=>clearTimeout(e)},[]),r.length<=4)return null;let i=()=>o(!1);return(0,s.jsxs)("div",{children:[(0,s.jsx)("button",{onClick:()=>o(e=>!e),className:"fixed bottom-4 right-4 bg-primary text-white p-2 px-4 rounded-full shadow-lg z-50","aria-expanded":n,"aria-controls":"outline-sidebar",children:n?"Close":"Outline"}),n&&(0,s.jsxs)("nav",{id:"outline-sidebar",className:"fixed top-12 bottom-0 items-center align-middle right-0 h-full w-64 bg-white shadow-xl p-4 overflow-y-auto","aria-label":"Table of contents",children:[(0,s.jsx)("h3",{className:"text-xl font-bold mb-4",children:"Outline"}),(0,s.jsx)("ul",{children:r.map((e,t)=>(0,s.jsx)("li",{className:"text-sm mb-2 ".concat(3===e.level?"ml-4":""),children:(0,s.jsx)("a",{href:"#".concat(e.id),className:"text-focus hover:underline",onClick:i,children:e.text})},e.id||"heading-".concat(t)))})]})]})});c.displayName="Outline";var d=r(57244),m=r(32694);function u(e){let{posts:t,className:r}=e;return 0===t.length?null:(0,s.jsxs)("section",{className:"max-w-3xl mx-auto my-8 p-4 border border-gray-400 rounded-lg shadow-lg ".concat(r||""),children:[(0,s.jsx)("h4",{className:"mb-4",children:"Similar posts you might like"}),(0,s.jsx)(m.BlogLinksList,{posts:t,showFooter:!0})]})}var x=r(42457),h=r(82212),p=r.n(h),f=r(28681);function g(e){let{tag:t,isActive:r}=e;return(0,s.jsxs)(p(),{href:"/blog?tag=".concat(t),className:"mx-1 ".concat(r?"font-bold":""),children:["#",t]})}function b(e){let{tags:t}=e,r=(0,f.useSearchParams)(),a=null==r?void 0:r.get("tag");return(0,s.jsx)("p",{className:"text-center text-xs italic mb-12",children:t.map(e=>(0,s.jsx)(g,{tag:e,isActive:a===e},e))})}function y(e){return(0,s.jsx)(l.Suspense,{fallback:(0,s.jsx)("div",{children:"Loading..."}),children:(0,s.jsx)(b,{...e})})}var j=r(59529),v=r(92378),w=r(19170);let N=["Object Not Found Matching Id","unhandledrejection"].map(e=>{let t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return RegExp("\\b".concat(t,"\\b"),"i")}),k=(e,t)=>{if(N.some(t=>t.test(e.message||"")))return void console.debug("Suppressed non-critical error:",e);a.v4(r=>{r.setTag("location","BlogPostContent"),r.setExtra("componentStack",t.componentStack||""),n.Cp(e)}),console.error("Error in BlogPostContent:",e)};function C(e){var t;let{post:r,compiledContent:a,similarPosts:n}=e,m=(0,l.useMemo)(()=>(function(e){if(!Array.isArray(e))throw TypeError("Tags parameter must be an array");return Array.from(new Set(function(e){let t={management:["best practices for operational excellence"],"best practices for operational excellence":["management"]},r=[...e];return e.forEach(e=>{t[e]&&r.push(...t[e])}),r}(e.map(e=>e.toLowerCase())))).map(e=>v.b.find(t=>t.slug===(0,w.Y)(e))).filter(e=>void 0!==e)})(r.tags),[r.tags]),h=(0,l.useMemo)(()=>({"@context":"https://schema.org","@type":"BlogPosting",headline:r.title,datePublished:r.date,author:{"@type":"Person",name:"Luca Dellanna"},keywords:r.tags.join(","),url:"https://luca-dellanna.com/posts/".concat(r.slug),description:r.description}),[r]);return(0,s.jsxs)(l.Fragment,{children:[(0,s.jsx)(d.default,{id:"json-ld",type:"application/ld+json",children:JSON.stringify(h)}),(0,s.jsxs)("article",{className:"max-w-3xl mx-auto my-8",children:[(0,s.jsxs)("header",{className:"mb-6",children:[(0,s.jsx)("h1",{className:"mb-2 text-balance",children:r.title}),(0,s.jsx)("h4",{className:"text-balance text-gray-500 mt-4 mb-6",children:r.description}),(0,s.jsxs)("p",{className:"text-center text-xs italic mb-1",children:[r.date," by Luca Dellanna"]}),(0,s.jsx)(l.Suspense,{fallback:(0,s.jsx)("p",{className:"text-gray-500","aria-label":"Loading tags",children:"Loading tags..."}),children:(0,s.jsx)(y,{tags:r.tags})})]}),(0,s.jsx)(x.default,{componentName:"BlogPostContent",onError:k,children:(0,s.jsx)("div",{className:"prose prose-lg",children:a})})]}),(0,s.jsx)(c,{content:a}),(null==(t=r.tags)?void 0:t.some(e=>(null==e?void 0:e.toLowerCase().trim())==="management"))&&(0,s.jsx)(j.WorkWithLuca,{}),m.length>0&&(0,s.jsx)("section",{className:"my-8","aria-label":"Related books",children:m.map(e=>(0,s.jsx)(o.j,{book:e,borderStyle:"normal"},e.slug))}),(0,s.jsx)(u,{posts:n,className:"mt-16"}),(0,s.jsx)(i.ClientConvertkitForm,{})]})}},59529:(e,t,r)=>{"use strict";r.d(t,{WorkWithLuca:()=>d});var s=r(65183),a=r(71307),n=r(50849),l=r(32812),o=r(82212),i=r.n(o);function c(e){let{quote:t,author:r,imageSrc:a}=e;return(0,s.jsxs)("blockquote",{className:"text-center space-y-3",children:[(0,s.jsxs)("p",{className:"text-sm font-medium text-muted leading-relaxed",children:['"',t,'"']}),(0,s.jsxs)("footer",{className:"flex items-center justify-center gap-2",children:[(0,s.jsxs)("cite",{className:"text-xs italic text-muted",children:["– ",r]}),(0,s.jsx)(l.default,{src:a,alt:r,width:20,height:20,className:"rounded-full"})]})]})}function d(){return(0,s.jsx)(a.Zp,{variant:"bordered",className:"max-w-4xl mx-auto my-12 overflow-hidden hover:shadow-lg transition-shadow duration-300",children:(0,s.jsx)(a.bw,{className:"p-6 md:p-8",children:(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 lg:gap-8 items-start",children:[(0,s.jsxs)("div",{className:"col-span-1 lg:col-span-2 space-y-6",children:[(0,s.jsx)(c,{quote:"Working with Luca was fantastic! He was straightforward and well-prepared, pinpointing numerous opportunities I had overlooked in my business plan. I wholeheartedly recommend him.",author:"Christopher Samiullah",imageSrc:"/christopher-samiullah.jpg"}),(0,s.jsxs)("div",{className:"text-center space-y-4",children:[(0,s.jsx)("p",{className:"text-sm text-muted leading-relaxed max-w-2xl mx-auto",children:"I have helped dozens of business leaders change their organization's operational culture. If you're interested in working with me, send me an email."}),(0,s.jsx)(i(),{href:"/contact",children:(0,s.jsx)(n.$,{variant:"primary",size:"md",className:"mx-auto",children:"Email Luca"})})]})]}),(0,s.jsx)("div",{className:"flex justify-center lg:justify-end",children:(0,s.jsx)("div",{className:"relative",children:(0,s.jsx)(l.default,{src:"/luca-no-bg.png",alt:"Luca Dellanna",width:140,height:210,className:"w-auto h-auto max-w-[140px] max-h-[210px]"})})})]})})})}},61241:(e,t,r)=>{"use strict";r.d(t,{QuoteClient:()=>n});var s=r(65183),a=r(32812);let n=(0,r(24375).memo)(e=>{let{quote:t,author:r,authorDescription:n,portraitSrc:l}=e;return(0,s.jsxs)("div",{className:"blog-frame text-center text-balance",children:[(0,s.jsxs)("p",{className:"mb-8 text-balance",children:["“",t,"”"]}),(0,s.jsxs)("div",{className:"flex flex-col items-center gap-3",children:[(0,s.jsx)("div",{className:"w-12 h-12 rounded-full overflow-hidden bg-gray-200 flex items-center justify-center",children:l?(0,s.jsx)(a.default,{src:l,alt:"Portrait of ".concat(r),width:48,height:48,className:"w-full h-full object-cover"}):(0,s.jsx)("span",{className:"text-muted text-sm font-semibold",children:r.split(" ").map(e=>e[0]).join("").toUpperCase().slice(0,2)})}),(0,s.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,s.jsx)("div",{className:"text-sm font-medium text-gray-900",children:r}),n&&(0,s.jsx)("div",{className:"text-xs text-muted",children:n})]})]})]})});n.displayName="QuoteClient"},62742:(e,t,r)=>{"use strict";r.d(t,{default:()=>a.a});var s=r(64827),a=r.n(s)},64827:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let s=r(40031)._(r(95771));function a(e,t){var r;let a={};"function"==typeof e&&(a.loader=e);let n={...a,...t};return(0,s.default)({...n,modules:null==(r=n.loadableGenerated)?void 0:r.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},67943:(e,t,r)=>{"use strict";r.d(t,{ExercisesClient:()=>p});var s=r(65183),a=r(14371);let n=(0,a.A)("check-check",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]),l=(0,a.A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);var o=r(89289),i=r(84491),c=r(24375);function d(e){let{onClick:t,isPressed:r}=e;return(0,s.jsxs)("button",{type:"button",onClick:t,className:"inline-flex items-center gap-1.5 text-xs font-medium rounded-lg px-3 py-1.5 shadow-sm transition-all duration-300 ease-out ".concat(r?"bg-success-light border border-success-border text-green-700 shadow-md scale-95":"text-muted hover:text-gray-900 bg-white/90 backdrop-blur-sm border border-gray-200/80 hover:border-gray-300 hover:shadow-md hover:bg-white active:scale-95"),"aria-label":"Copy exercises",title:"Copy exercises",children:[r?(0,s.jsx)(n,{size:12}):(0,s.jsx)(l,{size:12}),(0,s.jsx)("span",{className:"hidden xs:inline sm:inline",children:r?"Copied!":"Copy"})]})}function m(e){let{onClick:t,isPressed:r}=e;return(0,s.jsxs)("button",{type:"button",onClick:t,className:"inline-flex items-center gap-1.5 text-xs font-medium rounded-lg px-3 py-1.5 shadow-sm transition-all duration-300 ease-out ".concat(r?"bg-success-light border border-success-border text-green-700 shadow-md scale-95":"text-muted hover:text-gray-900 bg-white/90 backdrop-blur-sm border border-gray-200/80 hover:border-gray-300 hover:shadow-md hover:bg-white active:scale-95"),"aria-label":"Copy link",title:"Copy link",children:[r?(0,s.jsx)(n,{size:12}):(0,s.jsx)(o.A,{size:12}),(0,s.jsx)("span",{className:"hidden xs:inline sm:inline",children:r?"Copied!":"Link"})]})}function u(e){let{checked:t,onChange:r,index:a}=e;return(0,s.jsxs)("div",{className:"relative flex-shrink-0 w-5 h-5 checkbox-align",children:[(0,s.jsx)("input",{type:"checkbox",checked:t,onChange:r,className:"sr-only","aria-label":"Mark exercise ".concat(a+1," as completed")}),(0,s.jsxs)("div",{className:"relative w-5 h-5 bg-white border-2 rounded-md cursor-pointer transition-all duration-300 ease-out ".concat(t?"border-primary shadow-md scale-105":"border-gray-300 hover:border-gray-400 hover:shadow-sm"),children:[(0,s.jsx)(i.A,{size:16,className:"absolute inset-0 m-auto transition-all duration-300 ease-out ".concat(t?"text-primary opacity-100 scale-110":"text-gray-800 opacity-0"),strokeWidth:4}),(0,s.jsx)("div",{className:"absolute inset-0 rounded-md bg-gradient-to-br from-white/20 to-transparent transition-opacity duration-300 ".concat(t?"opacity-100":"opacity-0")})]})]})}function x(e){let{item:t,index:r,checked:a,onToggle:n}=e;return(0,s.jsx)("li",{className:"exercise-item flex items-start gap-3 sm:gap-4 group",children:(0,s.jsxs)("label",{className:"flex items-start gap-3 sm:gap-4 cursor-pointer select-none w-full py-1",children:[(0,s.jsx)(u,{checked:a,onChange:n,index:r}),(0,s.jsx)("div",{className:"flex-1 transition-all duration-300 ease-out ".concat(a?"text-gray-400 line-through decoration-gray-300 decoration-2":"text-gray-700 group-hover:text-gray-900"),children:t})]})})}function h(e){let{onCopyAll:t,onCopyLink:r,copyPressed:a,linkPressed:n}=e;return(0,s.jsxs)("div",{className:"print:hidden absolute right-4 top-4 sm:right-6 sm:top-6 flex items-center gap-2 sm:gap-3",children:[(0,s.jsx)(d,{onClick:t,isPressed:a}),(0,s.jsx)(m,{onClick:r,isPressed:n})]})}function p(e){let{items:t,anchorId:r="exercises"}=e,[a,n]=(0,c.useState)({}),[l,o]=(0,c.useState)(!1),[i,d]=(0,c.useState)(!1),m=(0,c.useRef)(null),u=(0,c.useMemo)(()=>"exercises:".concat(window.location.pathname,":").concat(r),[r]);async function p(){try{var e,r;o(!0);let s=null!=(r=null==(e=m.current)?void 0:e.innerText)?r:t.map((e,t)=>"".concat(t+1,". ").concat(String(e))).join("\n");await navigator.clipboard.writeText(s),setTimeout(()=>o(!1),2e3)}catch(e){o(!1)}}async function f(){try{d(!0);let e="".concat(window.location.origin).concat(window.location.pathname,"#").concat(r);await navigator.clipboard.writeText(e),setTimeout(()=>d(!1),2e3)}catch(e){d(!1)}}(0,c.useEffect)(()=>{try{let e=window.localStorage.getItem(u);e&&n(JSON.parse(e))}catch(e){}},[u]),(0,c.useEffect)(()=>{try{window.localStorage.setItem(u,JSON.stringify(a))}catch(e){}},[a,u]);let g=t.length>1?"Exercises":"Exercise";return(0,s.jsxs)("div",{className:"blog-frame relative bg-gradient-to-br from-gray-50/50 to-white/80 border border-gray-200/60 rounded-xl p-6 sm:p-8 shadow-sm",children:[(0,s.jsx)("h4",{id:r,className:"mt-0 mb-6 sm:mb-8 pr-16 sm:pr-0 text-gray-900 font-semibold",children:g}),(0,s.jsx)(h,{onCopyAll:p,onCopyLink:f,copyPressed:l,linkPressed:i}),(0,s.jsx)("ol",{ref:m,className:"exercises-list list-decimal list-inside space-y-5",children:t.map((e,t)=>{let r="string"==typeof e?e:"object"==typeof e&&null!==e&&"props"in e?JSON.stringify(e.props):String(e),l=r.length>50?r.substring(0,50).replace(/[^a-zA-Z0-9]/g,""):r.replace(/[^a-zA-Z0-9]/g,""),o="exercise-".concat(l,"-").concat(t);return(0,s.jsx)(x,{item:e,index:t,checked:!!a[t],onToggle:()=>{n(e=>({...e,[t]:!e[t]}))}},o)})})]})}},80706:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{bindSnapshot:function(){return l},createAsyncLocalStorage:function(){return n},createSnapshot:function(){return o}});let r=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class s{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}static bind(e){return e}}let a="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function n(){return a?new a:new s}function l(e){return a?a.bind(e):s.bind(e)}function o(){return a?a.snapshot():function(e,...t){return e(...t)}}},84491:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(14371).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},89289:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(14371).A)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]])},93983:(e,t,r)=>{Promise.resolve().then(r.bind(r,35184)),Promise.resolve().then(r.bind(r,67943)),Promise.resolve().then(r.bind(r,47295)),Promise.resolve().then(r.bind(r,61241)),Promise.resolve().then(r.bind(r,98557)),Promise.resolve().then(r.bind(r,52960))},95771:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let s=r(65183),a=r(24375),n=r(13080);function l(e){return{default:e&&"default"in e?e.default:e}}r(16517);let o={loader:()=>Promise.resolve(l(()=>null)),loading:null,ssr:!0},i=function(e){let t={...o,...e},r=(0,a.lazy)(()=>t.loader().then(l)),i=t.loading;function c(e){let l=i?(0,s.jsx)(i,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,c=o?a.Suspense:a.Fragment,d=t.ssr?(0,s.jsxs)(s.Fragment,{children:[null,(0,s.jsx)(r,{...e})]}):(0,s.jsx)(n.BailoutToCSR,{reason:"next/dynamic",children:(0,s.jsx)(r,{...e})});return(0,s.jsx)(c,{...o?{fallback:l}:{},children:d})}return c.displayName="LoadableComponent",c}},98557:(e,t,r)=>{"use strict";r.d(t,{Video:()=>n});var s=r(65183),a=r(23177);let n=(0,r(24375).memo)(e=>{let{youtubeId:t,showControls:r=!1}=e,n=new URLSearchParams({controls:r?"1":"0",rel:"0",modestbranding:"1",playsinline:"1"}).toString();return(0,s.jsx)("div",{className:"h-full md:mx-4 my-8",children:(0,s.jsx)("div",{className:"w-[95%] h-full mx-auto border border-black rounded-xl overflow-hidden",children:(0,s.jsx)(a.YouTubeEmbed,{videoid:t,params:n})})})});n.displayName="Video"}},e=>{e.O(0,[2382,1045,3998,8305,4241,9493,4661,2985,9275,2378,435,3675,7358],()=>e(e.s=93983)),_N_E=e.O()}]);