PageSourceSearch

https://css-weekly.com/_next/static/chunks/5642916c36c36982.js?dpl=dpl_3oxqZS3QXRaaAqgVmTkJjjnZ7rFZ

js css-weekly.com collected 2026-10-03 19:28:56 UTC 37,225 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,460661,e=>{"use strict";var t=e.i(843476),n=e.i(271645);class r extends n.default.Component{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error("MDX rendering error:",e,t)}render(){if(this.state.hasError){let e=this.props.fallback||l;return(0,t.jsx)(e,{error:this.state.error})}return this.props.children}}function l({error:e}){return(0,t.jsxs)("div",{className:"border-destructive/50 bg-destructive/10 my-8 rounded-lg border p-6",children:[(0,t.jsx)("h2",{className:"text-destructive mb-2 text-lg font-semibold",children:"Error rendering content"}),(0,t.jsx)("p",{className:"text-muted-foreground mb-4",children:"There was an error rendering this content. Please try refreshing the page."}),e&&!1]})}e.s(["MDXErrorBoundary",()=>r])},917326,e=>{"use strict";var t,n,r,l,i,o=e.i(843476),a=e.i(271645),u=e.i(811337),c=e.i(657688),s=e.i(465863),d=e.i(276362),f=e.i(602847),m=e.i(994138),p=e.i(748140),h=e.i(721759),g=e.i(271368),v=e.i(147720);let E="carousel",x="controller",b="portal",y="toolbar",w="captions",C="loading",M="error",N="complete",L=e=>`active-slide-${e}`;L(C),L("playing"),L(M),L(N);let P="flex_center",k="no_scroll_padding",S="slide",I="prev",A="next",R="swipe",_="close",$="onPointerDown",H="onPointerMove",T="onPointerUp",D="onPointerLeave",O="onPointerCancel",F="onKeyDown",W="onWheel",j="icon",B="contain",U="cover";var X=e.i(174080);let z="yarl__";function V(...e){return[...e].filter(Boolean).join(" ")}function q(e){return`${z}${e}`}function K(e){return`--${z}${e}`}function Y(e,t){return`${e}${t?`_${t}`:""}`}function G(e){return t=>Y(e,t)}function J(e,t){var n;return null!=(n=null==e?void 0:e[t])?n:t}function Q(...e){return()=>{e.forEach(e=>{e()})}}function Z(e,t,n){return()=>{let r=a.useContext(n);if(!r)throw Error(`${e} must be used within a ${t}.Provider`);return r}}function ee(){return"undefined"!=typeof window}function et(e){return void 0===e.type||"image"===e.type}function en(e){return"string"==typeof e?Number.parseInt(e,10):e}function er(e){if("number"==typeof e)return{pixel:e};if("string"==typeof e){let t=en(e);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function el(e,t){return t>0?(e%t+t)%t:0}function ei(e,t){return e[el(t,e.length)]}function eo(e,t){return e.length>0?ei(e,t):void 0}let ea=Number(a.version.split(".")[0])>=19,eu={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[_]},labels:{},animation:{fade:250,swipe:500,easing:{fade:"ease",swipe:"ease-out",navigation:"ease-in-out"}},carousel:{finite:!1,preload:2,padding:"16px",spacing:"30%",imageFit:B,imageProps:{}},controller:{ref:null,focus:!0,aria:!1,touchAction:"none",closeOnPullUp:!1,closeOnPullDown:!1,closeOnBackdropClick:!1,preventDefaultWheelX:!0,preventDefaultWheelY:!1,disableSwipeNavigation:!1},portal:{},noScroll:{disabled:!1},on:{},styles:{},className:""};function ec(e,t){return{name:e,component:t}}function es(e,t){return{module:e,children:t}}function ed(e,t,n){return e.flatMap(e=>{var r;return null!=(r=function e(t,n,r){return t.module.name===n?r(t):t.children?[es(t.module,t.children.flatMap(t=>{var l;return null!=(l=e(t,n,r))?l:[]}))]:[t]}(e,t,n))?r:[]})}let ef=a.createContext(null),em=Z("useA11yContext","A11yContext",ef);function ep({children:e}){let[t,n]=a.useState(!1),[r,l]=a.useState(!1),i=a.useMemo(()=>({focusWithin:t,trackFocusWithin:(e,t)=>{let r=r=>l=>{var i;l.currentTarget.contains(l.relatedTarget)||n(r),null==(i=r?e:t)||i(l)};return{onFocus:r(!0),onBlur:r(!1)}},autoPlaying:r,setAutoPlaying:l}),[t,r]);return a.createElement(ef.Provider,{value:i},e)}let eh=a.createContext(null),eg=Z("useDocument","DocumentContext",eh);function ev({nodeRef:e,children:t}){let n=a.useMemo(()=>{let t=t=>{var n;return(null==(n=t||e.current)?void 0:n.ownerDocument)||document};return{getOwnerDocument:t,getOwnerWindow:e=>{var n;return(null==(n=t(e))?void 0:n.defaultView)||window}}},[e]);return a.createElement(eh.Provider,{value:n},t)}let eE=a.createContext(null),ex=Z("useEvents","EventsContext",eE);function eb({children:e}){let[t]=a.useState({});a.useEffect(()=>()=>
1{Object.keys(t).forEach(e=>delete t[e])},[t]);let n=a.useMemo(()=>{let e=(e,n)=>{var r;null==(r=t[e])||r.splice(0,t[e].length,...t[e].filter(e=>e!==n))};return{publish:(...[e,n])=>{var r;null==(r=t[e])||r.forEach(e=>e(n))},subscribe:(n,r)=>(t[n]||(t[n]=[]),t[n].push(r),()=>e(n,r)),unsubscribe:e}},[t]);return a.createElement(eE.Provider,{value:n},e)}let ey=a.createContext(null),ew=Z("useLightboxProps","LightboxPropsContext",ey);function eC({children:e,...t}){return a.createElement(ey.Provider,{value:t},e)}let eM=a.createContext(null),eN=Z("useLightboxState","LightboxStateContext",eM),eL=a.createContext(null),eP=Z("useLightboxDispatch","LightboxDispatchContext",eL);function ek(e,t){switch(t.type){case"swipe":{let{slides:n}=e,r=(null==t?void 0:t.increment)||0,l=e.globalIndex+r,i=el(l,n.length),o=eo(n,i);return{slides:n,currentIndex:i,globalIndex:l,currentSlide:o,animation:r||void 0!==t.duration?{increment:r,duration:t.duration,easing:t.easing}:void 0}}case"update":if(t.slides!==e.slides||t.index!==e.currentIndex)return{slides:t.slides,currentIndex:t.index,globalIndex:t.index,currentSlide:eo(t.slides,t.index)};return e;default:throw Error("Unknown action type")}}function eS({slides:e,index:t,children:n}){let[r,l]=a.useReducer(ek,{slides:e,currentIndex:t,globalIndex:t,currentSlide:eo(e,t)});a.useEffect(()=>{l({type:"update",slides:e,index:t})},[e,t]);let i=a.useMemo(()=>({...r,state:r,dispatch:l}),[r,l]);return a.createElement(eL.Provider,{value:l},a.createElement(eM.Provider,{value:i},n))}let eI=a.createContext(null),eA=Z("useTimeouts","TimeoutsContext",eI);function eR({children:e}){let[t]=a.useState([]);a.useEffect(()=>()=>{t.forEach(e=>window.clearTimeout(e)),t.splice(0,t.length)},[t]);let n=a.useMemo(()=>{let e=e=>{t.splice(0,t.length,...t.filter(t=>t!==e))};return{setTimeout:(n,r)=>{let l=window.setTimeout(()=>{e(l),n()},r);return t.push(l),l},clearTimeout:t=>{void 0!==t&&(e(t),window.clearTimeout(t))}}},[t]);return a.createElement(eI.Provider,{value:n},e)}let e_=a.forwardRef(function({label:e,className:t,icon:n,renderIcon:r,onClick:l,style:i,...o},u){let{styles:c,labels:s}=ew(),d=J(s,e);return a.createElement("button",{ref:u,type:"button",title:d,"aria-label":d,className:V(q("button"),t),onClick:l,style:{...i,...c.button},...o},r?r():a.createElement(n,{className:q(j),style:c.icon}))});function e$(e,t){let n=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",...e},t);return n.displayName=e,n}function eH(e,t){return e$(e,a.createElement("g",{fill:"currentColor"},a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}let eT=eH("Close",a.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),eD=eH("Previous",a.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),eO=eH("Next",a.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),eF=eH("Loading",a.createElement(a.Fragment,null,Array.from({length:8}).map((e,t,n)=>a.createElement("line",{key:t,x1:"12",y1:"6.5",x2:"12",y2:"1.8",strokeLinecap:"round",strokeWidth:"2.6",stroke:"currentColor",strokeOpacity:1/n.length*(t+1),transform:`rotate(${360/n.length*t}, 12, 12)`})))),eW=eH("Error",a.createElement("path",{d:"M21.9,21.9l-8.49-8.49l0,0L3.59,3.59l0,0L2.1,2.1L0.69,3.51L3,5.83V19c0,1.1,0.9,2,2,2h13.17l2.31,2.31L21.9,21.9z M5,18 l3.5-4.5l2.5,3.01L12.17,15l3,3H5z M21,18.17L5.83,3H19c1.1,0,2,0.9,2,2V18.17z"})),ej=ee()?a.useLayoutEffect:a.useEffect;function eB(){let[e,t]=a.useState(!1);return a.useEffect(()=>{var e,n;let r=null==(e=window.matchMedia)?void 0:e.call(window,"(prefers-reduced-motion: reduce)");t(null==r?void 0:r.matches);let l=e=>t(e.matches);return null==(n=null==r?void 0:r.addEventListener)||n.call(r,"change",l),()=>{var e;return null==(e=null==r?void 0:r.removeEventListener)?void 0:e.call(r,"change",l)}},[]),e}function eU(e,t){let n=a.useRef(void 0),r=a.useRef(void 0),l=eB();return ej(()=>{var i,o,a;if(e.current&&void 0!==n.current&&!l){let{keyframes:l,duration:u,easing:c,onfinish:s}=t(n.current,e.current.getBoundingClientRect(),function(e){let t=0,n=0,r=0,l=window.getComputedStyle(e).transform.match(/matrix.*\((.+)\)/);if(l){let e=l[1].split(",").map(en);6===e.length?(t=e[4],n=e[5]):16===e.length&&(t=e[12],n=e[13],r=e[14])}return{x:t,y:n,z:r}}(e.current))||{};if(l&&u){null==(i=r.current)||i.cancel(),r.current=void 0;try{r.current=null==(a=(o=e.current).animate)?void 0:a.call(o,l,{duration:u,easing:c})}catch(e){console.error(e)}r.current&&(r.current.onfinish=()=>{r.current=void 0,null==s||s()})}}n.current=void 0}),{prepareAnimation:e=>{n.current=e},isAnimationPlaying:()=>{var e;return(null==(e=r.current)?void 0:e.playState)==="running"}}}function eX(){let e=a.useRef(null),t=a.useRef(void 0),[n,r]=a.useState();return{setContainerRef:a.useCallback(n=>{e.current=n,t.current&&(t.current.disconnect(),t.current=void 0);let l=()=>{if(n){let e=window.getComputedStyle(n);r({width:Math.round(n.clientWidth-(parseFloat(e.paddingLeft)||0)-(parseFloat(e.paddingRight)||0)),height:Math.round(n.clientHeight-(parseFloat(e.paddingTop)||0)-(parseFloat(e.paddingBottom)||
10))})}else r(void 0)};l(),n&&"undefined"!=typeof ResizeObserver&&(t.current=new ResizeObserver(l),t.current.observe(n))},[]),containerRef:e,containerRect:n}}function ez(){let e=a.useRef(void 0),{setTimeout:t,clearTimeout:n}=eA();return a.useCallback((r,l)=>{n(e.current),e.current=t(r,l>0?l:0)},[t,n])}function eV(e){let t=a.useRef(e);return ej(()=>{t.current=e}),a.useCallback((...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)},[])}function eq(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function eK(e,t){return a.useMemo(()=>null==e&&null==t?null:n=>{eq(e,n),eq(t,n)},[e,t])}function eY(){let[e,t]=a.useState(!1);return ej(()=>{t("rtl"===window.getComputedStyle(window.document.documentElement).direction)},[]),e}function eG(e,t){let n=a.useRef(0),r=ez(),l=eV((...t)=>{n.current=Date.now(),e(t)});return a.useCallback((...e)=>{r(()=>{l(e)},t-(Date.now()-n.current))},[t,l,r])}let eJ=G("slide"),eQ=G("slide_image");function eZ({slide:e,offset:t,render:n,rect:r,imageFit:l,imageProps:i,onClick:o,onLoad:u,onError:c,style:s}){var d,f,m,p,h,g,v,E;let[x,b]=a.useState(C),{publish:y}=ex(),{setTimeout:w}=eA(),P=a.useRef(null);a.useEffect(()=>{0===t&&y(L(x))},[t,x,y]);let k=eV(e=>{("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{e.parentNode&&(b(N),w(()=>{null==u||u(e)},0))})}),S=a.useCallback(e=>{P.current=e,(null==e?void 0:e.complete)&&k(e)},[k]),I=a.useCallback(e=>{k(e.currentTarget)},[k]),A=eV(()=>{b(M),null==c||c()}),R=e.imageFit===U||e.imageFit!==B&&l===U,_=(e,t)=>Number.isFinite(e)?e:t,$=_(Math.max(...(null!=(f=null==(d=e.srcSet)?void 0:d.map(e=>e.width))?f:[]).concat(e.width?[e.width]:[]).filter(Boolean)),(null==(m=P.current)?void 0:m.naturalWidth)||0),H=_(Math.max(...(null!=(h=null==(p=e.srcSet)?void 0:p.map(e=>e.height))?h:[]).concat(e.height?[e.height]:[]).filter(Boolean)),(null==(g=P.current)?void 0:g.naturalHeight)||0),T=$&&H?{maxWidth:`min(${$}px, 100%)`,maxHeight:`min(${H}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},D=null==(v=e.srcSet)?void 0:v.sort((e,t)=>e.width-t.width).map(e=>`${e.src}
1 ${e.width}w`).join(", "),O=D&&r&&ee()?`${Math.round(Math.min(r&&!R&&e.width&&e.height?r.height/e.height*e.width:Number.MAX_VALUE,r.width))}px`:void 0,{style:F,className:W,...X}=i||{};return a.createElement(a.Fragment,null,a.createElement("img",{ref:S,onLoad:I,onError:A,onClick:o,draggable:!1,className:V(q(eQ()),R&&q(eQ("cover")),x!==N&&q(eQ("loading")),W),style:{...T,...s,...F},...X,alt:null!=(E=e.alt)?E:"",sizes:O,srcSet:D,src:e.src}),x!==N&&a.createElement("div",{className:q(eJ("placeholder"))},x===C&&((null==n?void 0:n.iconLoading)?n.iconLoading():a.createElement(eF,{className:V(q(j),q(eJ(C)))})),x===M&&((null==n?void 0:n.iconError)?n.iconError():a.createElement(eW,{className:V(q(j),q(eJ(M)))}))))}let e0=a.forwardRef(function({className:e,children:t,onFocus:n,onBlur:r,...l},i){let o=a.useRef(null),{trackFocusWithin:u}=em();return a.createElement(ev,{nodeRef:o},a.createElement("div",{ref:eK(i,o),className:V(q("root"),e),...u(n,r),...l},t))});(t=l||(l={}))[t.NONE=0]="NONE",t[t.SWIPE=1]="SWIPE",t[t.PULL=2]="PULL",t[t.ANIMATION=3]="ANIMATION",(n=i||(i={}))[n.NONE=0]="NONE",n[n.SWIPE=1]="SWIPE",n[n.PULL=2]="PULL";let e1=G("container"),e2=a.createContext(null),e5=Z("useController","ControllerContext",e2),e4=ec(x,function({children:e,...t}){var n;let{carousel:r,animation:o,controller:u,on:c,styles:s,render:d}=t,{closeOnPullUp:f,closeOnPullDown:m,preventDefaultWheelX:p,preventDefaultWheelY:h}=u,[g,v]=a.useState(),E=eN(),x=eP(),[y,w]=a.useState(l.NONE),C=a.useRef(0),M=a.useRef(0),N=a.useRef(1),{registerSensors:L,subscribeSensors:k}=function(){let[e]=a.useState({}),t=a.useCallback((t,n)=>{var r;null==(r=e[t])||r.forEach(e=>{n.isPropagationStopped()||e(n)})},[e]);return{registerSensors:a.useMemo(()=>({onPointerDown:e=>t($,e),onPointerMove:e=>t(H,e),onPointerUp:e=>t(T,e),onPointerLeave:e=>t(D,e),onPointerCancel:e=>t(O,e),onKeyDown:e=>t(F,e),onKeyUp:e=>t("onKeyUp",e),onWheel:e=>t(W,e)}),[t]),subscribeSensors:a.useCallback((t,n)=>(e[t]||(e[t]=[]),e[t].unshift(n),()=>{let r=e[t];r&&r.splice(0,r.length,...r.filter(e=>e!==n))}),[e])}}(),{subscribe:j,publish:B}=ex(),U=ez(),X=ez(),z=ez(),{containerRef:Y,setContainerRef:G,containerRect:J}=eX(),Z=eK(function({preventDefaultWheelX:e,preventDefaultWheelY:t}){let n=a.useRef(null),r=eV(n=>{let r=Math.abs(n.deltaX)>Math.abs(n.deltaY);(r&&e||!r&&t||n.ctrlKey)&&n.preventDefault()});return a.useCallback(e=>{var t;e?e.addEventListener("wheel",r,{passive:!1}):null==(t=n.current)||t.removeEventListener("wheel",r),n.current=e},[r])}({preventDefaultWheelX:p,preventDefaultWheelY:h}),G),ee=a.useRef(null),et=eK(ee,void 0),{getOwnerDocument:en}=eg(),el=eY(),ei=e=>(el?-1:1)*("number"==typeof e?e:1),eo=eV(()=>{var e;return null==(e=Y.current)?void 0:e.focus()}),ea=eV(()=>t),eu=eV(()=>E),ec=a.useCallback(e=>B(I,e),[B]),es=a.useCallback(e=>B(A,e),[B]),ed=a.useCallback(()=>B(_),[B]),ef=e=>!(r.finite&&(ei(e)>0&&0===E.currentIndex||0>ei(e)&&E.currentIndex===E.slides.length-1)),em=e=>{var t;C.current=e,null==(t=Y.current)||t.style.setProperty(K("swipe_offset"),`${Math.round(e)}px`)},ep=e=>{var t,n;M.current=e,N.current=Math.min(Math.max(function(e,t=0){let n=10**t;return Math.round((e+Number.EPSILON)*n)/n}(1-(m&&e>0?e:f&&e<0?-e:0)/60*.5,2),.5),1),null==(t=Y.current)||t.style.setProperty(K("pull_offset"),`${Math.round(e)}px`),null==(n=Y.current)||n.style.setProperty(K("pull_opacity"),`${N.current}`)},{prepareAnimation:eh}=eU(ee,(e,t,n)=>{if(ee.current&&J)return{keyframes:[{transform:`translate(0, ${e.rect.y-t.y+n.y}px)`,opacity:e.opacity},{transform:"translate(0, 0)",opacity:1}],duration:e.duration,easing:o.easing.fade}}),ev=(e,t)=>{if(f||m){ep(e);let n=0;ee.current&&(n=o.fade*(t?2:1),eh({rect:ee.current.getBoundingClientRect(),opacity:N.current,duration:n})),z(()=>{ep(0),w(l.NONE)},n),w(l.ANIMATION),t||ed()}},{prepareAnimation:eE,isAnimationPlaying:eb}=eU(ee,(e,t,n)=>{var l;if(ee.current&&J&&(null==(l=E.animation)?void 0:l.duration)){let l=er(r.spacing),i=(l.percent?l.percent*J.width/100:l.pixel)||0;return{keyframes:[{transform:`translate(${ei(E.globalIndex-e.index)*(J.width+i)+e.rect.x-t.x+n.x}px, 0)`},{transform:"translate(0, 0)"}],duration:E.animation.duration,easing:E.animation.easing}}}),ey=eV(e=>{var t,n;let r=e.offset||0,i=r?o.swipe:null!=(t=o.navigation)?t:o.swipe,a=r||eb()?o.easing.swipe:o.easing.navigation,{direction:u}=e,c=null!=(n=e.count)?n:1,s=l.ANIMATION,d=i*c;if(!u){let t=null==J?void 0:J.width,n=e.duration||0,l=t?i/t*Math.abs(r):i;0!==c?(n<l?d=d/l*Math.max(n,l/5):t&&(d=i/t*(t-Math.abs(r))),u=ei(r)>0?I:A):d=i/2}let f=0;u===I?ef(ei(1))?f=-c:(s=l.NONE,d=i):u===A&&(ef(ei(-1))?f=c:(s=l.NONE,d=i)),X(()=>{em(0),w(l.NONE)},d=Math.round(d)),ee.current&&eE({rect:ee.current.getBoundingClientRect(),index:E.globalIndex}),w(s),B(R,{type:"swipe",increment:f,duration:d,easing:a})});a.useEffect(()=>{var e,t;(null==(e=E.animation)?void 0:e.increment)&&(null==(t=E.animation)?void 0:t.duration)&&U(()=>x({type:"swipe",increment:0}),E.animation.duration)},[E.animation,x,U]);let ew=[k,ef,(null==J?void 0:J.width)||0,o.swipe,()=>w(l.SWIPE),e=>em(e),(e,t)=>ey({offset:e,duration:t,count:1}),e=>ey({offset:e,count:0})],eC=[()=>{m&&w(l.PULL)},e=>ep(e),e=>ev(e),e=>ev(e,!0)];!function({disableSwipeNavigation:e,closeOnBackdropClick:t},n,r,l,o,u,c,s,d,f,m,p,h,g,v,E){let x=a.useRef(0),b=a.useRef([]),y=a.useRef(void 0),w=a.useRef(0),C=a.useRef(i.NONE),M=a.useCallback(e=>{y.current===e.pointerId&&(y.current=void 0,C.current=i.NONE);let t=b.current;t.splice(0,t.length,...t.filter(t=>t.pointerId!==e.pointerId))},[]),N=a.useCallback(e=>{M(e),e.persist(),b.current.push(e)},[M]),L=a.useCallback(e=>b.current.find(({pointerId:t})=>e.pointerId===t),[]),P=eV(e=>{N(e)}),k=(e,t)=>m&&e>t||f&&e<-t,I=eV(e=>{let n=L(e);if(n)if(y.current===e.pointerId){let e=Date.now()-w.current,t=x.current;C.current===i.SWIPE?Math.abs(t)>.3*l||Math.abs(t)>5&&e<o?s(t,e):d(t):C.current===i.PULL&&(k(t,60)?g(t,e):v(t)),x.current=0,C.current=i.NONE}else{let{target:r}=e;t&&r instanceof HTMLElement&&r===n.target&&(r.classList.contains(q(S))||r.classList.contains(q("slide_wrapper")))&&E()}M(e)}),A=eV(t=>{let n=L(t);if(n){let l=y.current===t.pointerId;if(0===t.buttons)return void(l&&0!==x.current?I(t):M(n));let o=t.clientX-n.clientX,a=t.clientY-n.clientY;if(void 0===y.current){let n=e=>{N(t),y.current=t.pointerId,w.current=Date.now(),C.current=e};Math.abs(o)>Math.abs(a)&&Math.abs(o)>
130&&r(o)?e||(n(i.SWIPE),u()):Math.abs(a)>Math.abs(o)&&k(a,30)&&(n(i.PULL),p())}else l&&(C.current===i.SWIPE?(x.current=o,c(o)):C.current===i.PULL&&(x.current=a,h(a)))}});a.useEffect(()=>Q(n($,P),n(H,A),n(T,I),n(D,I),n(O,I)),[n,P,A,I,void 0])}(u,...ew,f,m,...eC,ed),function(e,t,n,r,i,o,u,c,s){let d=a.useRef(0),f=a.useRef(0),m=a.useRef(void 0),p=a.useRef(void 0),h=a.useRef(0),g=a.useRef(void 0),v=a.useRef(0),{setTimeout:E,clearTimeout:x}=eA(),b=a.useCallback(()=>{m.current&&(x(m.current),m.current=void 0)},[x]),y=a.useCallback(()=>{p.current&&(x(p.current),p.current=void 0)},[x]),w=eV(()=>{e!==l.SWIPE&&(d.current=0,v.current=0,b(),y())});a.useEffect(w,[e,w]);let C=eV(e=>{p.current=void 0,d.current===e&&s(d.current)}),M=eV(t=>{if(t.ctrlKey||Math.abs(t.deltaY)>Math.abs(t.deltaX))return;let a=e=>{h.current=e,x(g.current),g.current=e>0?E(()=>{h.current=0,g.current=void 0},300):void 0};if(e===l.NONE){if(Math.abs(t.deltaX)<=1.2*Math.abs(h.current))return void a(t.deltaX);if(!n(-t.deltaX))return;if(f.current+=t.deltaX,b(),Math.abs(f.current)>30)f.current=0,a(0),v.current=Date.now(),o();else{let e=f.current;m.current=E(()=>{m.current=void 0,e===f.current&&(f.current=0)},i)}}else if(e===l.SWIPE){let e=d.current-t.deltaX;if(d.current=e=Math.min(Math.abs(e),r)*Math.sign(e),u(e),y(),Math.abs(e)>.2*r){a(t.deltaX),c(e,Date.now()-v.current);return}p.current=E(()=>C(e),2*i)}else a(t.deltaX)});a.useEffect(()=>t(W,M),[t,M])}(y,...ew);let eM=eV(()=>{u.focus&&en().querySelector(`.${q(b)} .${q(e1())}`)&&eo()});a.useEffect(eM,[eM]);let eL=eV(()=>{var e;null==(e=c.view)||e.call(c,{index:E.currentIndex})});a.useEffect(eL,[E.globalIndex,eL]),a.useEffect(()=>Q(j(I,e=>ey({direction:I,...e})),j(A,e=>ey({direction:A,...e})),j(R,e=>x(e))),[j,ey,x]);let ek=a.useMemo(()=>{let e,t;return{prev:ec,next:es,close:ed,focus:eo,slideRect:J?(t=void 0!==(e=er(r.padding)).percent?J.width/100*e.percent:e.pixel,{width:Math.max(J.width-2*t,0),height:Math.max(J.height-2*t,0)}):{width:0,height:0},containerRect:J||{width:0,height:0},subscribeSensors:k,containerRef:Y,setCarouselRef:et,toolbarWidth:g,setToolbarWidth:v}},[ec,es,ed,eo,k,J,Y,et,g,v,r.padding]);return a.useImperativeHandle(u.ref,()=>({prev:ec,next:es,close:ed,focus:eo,getLightboxProps:ea,getLightboxState:eu}),[ec,es,ed,eo,ea,eu]),a.createElement("div",{ref:Z,className:V(q(e1()),q(P)),style:{...y===l.SWIPE?{[K("swipe_offset")]:`${Math.round(C.current)}px`}:null,...y===l.PULL?{[K("pull_offset")]:`${Math.round(M.current)}px`,[K("pull_opacity")]:`${N.current}`}:null,..."none"!==u.touchAction?{[K("controller_touch_action")]:u.touchAction}:null,...s.container},tabIndex:-1,...L},J&&a.createElement(e2.Provider,{value:ek},e,null==(n=d.controls)?void 0:n.call(d)))});function e3({slide:e,offset:t}){var n,r,l,i,o;let u,c=a.useRef(null),{currentIndex:s,slides:d}=eN(),{slideRect:f,focus:m}=e5(),{render:p,carousel:{imageFit:h,imageProps:g},on:{click:v},styles:{slide:E},labels:x}=ew(),{getOwnerDocument:b}=eg(),y=0!==t;return a.useEffect(()=>{var e;y&&(null==(e=c.current)?void 0:e.contains(b().activeElement))&&m()},[y,m,b]),a.createElement("div",{ref:c,className:V(q(Y(S,void 0)),!y&&q(Y(S,"current")),q(P)),...{inert:ea?y:y?"":void 0},style:E,role:"group","aria-roledescription":J(x,"Slide"),"aria-label":(n=s+t,J(x,"{index} of {total}").replace(/\{index}/g,`${el(n,d.length)+1}`).replace(/\{total}/g,`${d.length}`))},(!(u=null==(r=p.slide)?void 0:r.call(p,{slide:e,offset:t,rect:f}))&&et(e)&&(u=a.createElement(eZ,{slide:e,offset:t,render:p,rect:f,imageFit:h,imageProps:g,onClick:y?void 0:()=>null==v?void 0:v({index:s})})),u?a.createElement(a.Fragment,null,null==(l=p.slideHeader)?void 0:l.call(p,{slide:e}),(null!=(i=p.slideContainer)?i:({children:e})=>e)({slide:e,children:u}),null==(o=p.slideFooter)?void 0:o.call(p,{slide:e})):null))}function e6(){let e=ew().styles.slide;return a.createElement("div",{className:q(S),style:e})}let e7=ec(E,function({carousel:e,labels:t}){let{slides:n,currentIndex:r,globalIndex:l}=eN(),{setCarouselRef:i}=e5(),{autoPlaying:o,focusWithin:u}=em(),c=er(e.spacing),s=er(e.padding),d=function(e,t,n=0){return Math.min(e.preload,Math.max(e.finite?t.length-1:Math.floor(t.length/2),n))}(e,n,1),f=[];if(n.length>0)for(let t=r-d;t<=r+d;t+=1){let i=ei(n,t),o=l-r+t,a=e.finite&&(t<0||t>n.length-1);f.push(a?{key:o}:{key:[`${o}
1`,et(i)?i.src:void 0].filter(Boolean).join("|"),offset:t-r,slide:i})}return a.createElement("div",{ref:i,className:V(q(Y(E,void 0)),f.length>0&&q(Y(E,"with_slides"))),style:{[`${K(Y(E,"slides_count"))}`]:f.length,[`${K(Y(E,"spacing_px"))}`]:c.pixel||0,[`${K(Y(E,"spacing_percent"))}`]:c.percent||0,[`${K(Y(E,"padding_px"))}`]:s.pixel||0,[`${K(Y(E,"padding_percent"))}`]:s.percent||0},role:"region","aria-live":o&&!u?"off":"polite","aria-roledescription":J(t,"Carousel"),"aria-label":J(t,"Photo gallery")},f.map(({key:e,slide:t,offset:n})=>t?a.createElement(e3,{key:e,slide:t,offset:n}):a.createElement(e6,{key:e})))});function e8(){let{carousel:e}=ew(),{slides:t,currentIndex:n}=eN();return{prevDisabled:0===t.length||e.finite&&0===n,nextDisabled:0===t.length||e.finite&&n===t.length-1}}function e9({label:e,icon:t,renderIcon:n,action:r,onClick:l,disabled:i,style:o}){return a.createElement(e_,{label:e,icon:t,renderIcon:n,className:q(`navigation_${r}`),disabled:i,onClick:l,style:o,...function(e,t=!1){let n=a.useRef(!1);return ej(()=>{t&&n.current&&(n.current=!1,e())},[t,e]),{onFocus:a.useCallback(()=>{n.current=!0},[]),onBlur:a.useCallback(()=>{n.current=!1},[])}}(e5().focus,i)})}let te=ec("navigation",function({render:{buttonPrev:e,buttonNext:t,iconPrev:n,iconNext:r},styles:l}){let{prev:i,next:o,subscribeSensors:u}=e5(),{prevDisabled:c,nextDisabled:s}=e8();return!function(e){var t;let n=eY(),{publish:r}=ex(),{animation:l}=ew(),{prevDisabled:i,nextDisabled:o}=e8(),u=(null!=(t=l.navigation)?t:l.swipe)/2,c=eG(()=>r(I),u),s=eG(()=>r(A),u),d=eV(e=>{switch(e.key){case"Escape":r(_);break;case"ArrowLeft":(n?o:i)||(n?s:c)();break;case"ArrowRight":(n?i:o)||(n?c:s)()}});a.useEffect(()=>e(F,d),[e,d])}(u),a.createElement(a.Fragment,null,e?e():a.createElement(e9,{label:"Previous",action:I,icon:eD,renderIcon:n,style:l.navigationPrev,disabled:c,onClick:i}),t?t():a.createElement(e9,{label:"Next",action:A,icon:eO,renderIcon:r,style:l.navigationNext,disabled:s,onClick:o}))}),tt=q("no_scroll"),tn=q(k);function tr(e,t,n){let r=window.getComputedStyle(e),l=n?"padding-left":"padding-right",i=n?r.paddingLeft:r.paddingRight,o=e.style.getPropertyValue(l);return e.style.setProperty(l,`${(en(i)||0)+t}px`),()=>{o?e.style.setProperty(l,o):e.style.removeProperty(l)}}let tl=ec("no-scroll",function({noScroll:{disabled:e},children:t}){let n=eY(),{getOwnerDocument:r,getOwnerWindow:l}=eg();return a.useEffect(()=>{if(e)return()=>{};let t=[],i=l(),{body:o,documentElement:a}=r(),u=Math.round(i.innerWidth-a.clientWidth);if(u>0){t.push(tr(o,u,n));let e=o.getElementsByTagName("*");for(let r=0;r<e.length;r+=1){let l=e[r];"style"in l&&"fixed"===i.getComputedStyle(l).getPropertyValue("position")&&!l.classList.contains(tn)&&t.push(tr(l,u,n))}}return o.classList.add(tt),()=>{o.classList.remove(tt),t.forEach(e=>e())}},[n,e,r,l]),a.createElement(a.Fragment,null,t)});function ti(e,t,n){let r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r?e.setAttribute(t,r):e.removeAttribute(t)}}let to=ec(b,function({children:e,animation:t,styles:n,className:r,on:l,portal:i,close:o,labels:u}){let[c,s]=a.useState(!1),[d,f]=a.useState(!1),m=a.useRef([]),p=a.useRef(null),{setTimeout:h}=eA(),{subscribe:g}=ex(),v=eB()?0:t.fade;a.useEffect(()=>(s(!0),()=>{s(!1),f(!1)}),[]);let E=eV(()=>{m.current.forEach(e=>e()),m.current=[]}),x=eV(()=>{var e;f(!1),E(),null==(e=l.exiting)||e.call(l),h(()=>{var e;null==(e=l.exited)||e.call(l),o()},v)});a.useEffect(()=>g(_,x),[g,x]);let y=eV(e=>{var t,n,r;e.scrollTop,f(!0),null==(t=l.entering)||t.call(l);let i=null!=(r=null==(n=e.parentNode)?void 0:n.children)?r:[];for(let t=0;t<i.length;t+=1){let n=i[t];-1===["TEMPLATE","SCRIPT","STYLE"].indexOf(n.tagName)&&n!==e&&(m.current.push(ti(n,"inert","")),m.current.push(ti(n,"aria-hidden","true")))}m.current.push(()=>{var e,t;null==(t=null==(e=p.current)?void 0:e.focus)||t.call(e)}),h(()=>{var e;null==(e=l.entered)||e.call(l)},v)}),w=a.useCallback(e=>{e?y(e):E()},[y,E]);return c?(0,X.createPortal)(a.createElement(e0,{ref:w,className:V(r,q(Y(b,void 0)),q(k),d&&q(Y(b,"open"))),"aria-modal":!0,role:"dialog","aria-label":J(u,"Lightbox"),style:{...t.fade!==eu.animation.fade?{[K("fade_animation_duration")]:`${v}ms`}:null,...t.easing.fade!==eu.animation.easing.fade?{[K("fade_animation_timing_function")]:t.easing.fade}:null,...n.root},onFocus:e=>{p.current||(p.current=e.relatedTarget)}},e),i.root||document.body):null}),ta=ec("root",function({children:e}){return a.createElement(a.Fragment,null,e)}),tu=ec(y,function({toolbar:{buttons:e},render:{buttonClose:t,iconClose:n},styles:r}){let{close:l,setToolbarWidth:i}=e5(),{setContainerRef:o,containerRect:u}=eX();return ej(()=>{i(null==u?void 0:u.width)},[i,null==u?void 0:u.width]),a.createElement("div",{ref:o,style:r.toolbar,className:q(Y(y,void 0))},null==e?void 0:e.map(e=>e===_?t?t():a.createElement(e_,{key:_,label:"Close",icon:eT,renderIcon:n,onClick:l}):e))});function tc({carousel:e,animation:t,render:n,toolbar:r,controller:l,noScroll:i,on:o,plugins:u,slides:c,index:s,...d}){let{animation:f,carousel:m,render:p,toolbar:h,controller:g,noScroll:v,on:E,slides:b,index:y,plugins:w,...C}=eu,{config:M,augmentation:N}=function(e,t=[],n=[]){let r=e,l=e=>{let t=[...r];for(;t.length>0;){let n=t.pop();if((null==n?void 0:n.module.name)===e)return!0;
1(null==n?void 0:n.children)&&t.push(...n.children)}return!1},i=(e,t)=>{if(""===e){r=[es(t,r)];return}r=ed(r,e,e=>[es(t,[e])])},o=(e,t)=>{r=ed(r,e,e=>[es(e.module,[es(t,e.children)])])},a=(e,t,n)=>{r=ed(r,e,e=>{var r;return[es(e.module,[...n?[es(t)]:[],...null!=(r=e.children)?r:[],...n?[]:[es(t)]])]})},u=(e,t,n)=>{r=ed(r,e,e=>[...n?[es(t)]:[],e,...n?[]:[es(t)]])},c=e=>{o(x,e)},s=(e,t)=>{r=ed(r,e,e=>[es(t,e.children)])},d=e=>{r=ed(r,e,e=>e.children)},f=e=>{n.push(e)};return t.forEach(e=>{e({contains:l,addParent:i,append:o,addChild:a,addSibling:u,addModule:c,replace:s,remove:d,augment:f})}),{config:r,augmentation:e=>n.reduce((e,t)=>t(e),e)}}([es(to,[es(tl,[es(e4,[es(e7),es(tu),es(te)])])])],u||w),L=N({animation:function(e,t={}){let{easing:n,...r}=e,{easing:l,...i}=t;return{easing:{...n,...l},...r,...i}}(f,t),carousel:{...m,...e},render:{...p,...n},toolbar:{...h,...r},controller:{...g,...l},noScroll:{...v,...i},on:{...E,...o},...C,...d});return L.open?a.createElement(eC,{...L},a.createElement(eS,{slides:c||b,index:en(s||y)},a.createElement(eR,null,a.createElement(eb,null,a.createElement(ep,null,function e(t,n){var r;return a.createElement(t.module.component,{key:t.module.name,...n},null==(r=t.children)?void 0:r.map(t=>e(t,n)))}(es(ta,M),L)))))):null}let ts=e=>q(`slide_${e}`),td={descriptionTextAlign:"start",descriptionMaxLines:3,showToggle:!1,hidden:!1},tf=e=>({...td,...e}),tm=a.createContext(null),tp=Z("useCaptions","CaptionsContext",tm);function th({captions:e,children:t}){let{ref:n,hidden:r}=tf(e),[l,i]=a.useState(!r),o=a.useMemo(()=>({visible:l,show:()=>i(!0),hide:()=>i(!1)}),[l]);return a.useImperativeHandle(n,()=>o,[o]),a.createElement(tm.Provider,{value:o},t)}function tg({title:e}){let{toolbarWidth:t}=e5(),{styles:n}=ew(),{visible:r}=tp();return r?a.createElement("div",{role:"heading","aria-level":2,style:n.captionsTitleContainer,className:V(ts("captions_container"),ts("title_container"))},a.createElement("div",{className:ts("title"),style:{...t?{[K("toolbar_width")]:`${t}px`}:null,...n.captionsTitle}},e)):null}function tv({description:e}){let{descriptionTextAlign:t,descriptionMaxLines:n}=function(){let{captions:e}=ew();return tf(e)}(),{styles:r,labels:l}=ew(),{visible:i}=tp();return i?a.createElement("div",{style:r.captionsDescriptionContainer,className:V(ts("captions_container"),ts("description_container"))},a.createElement("div",{className:ts("description"),style:{...t!==td.descriptionTextAlign||n!==td.descriptionMaxLines?{[K("slide_description_text_align")]:t,[K("slide_description_max_lines")]:n}:null,...r.captionsDescription},role:"paragraph","aria-roledescription":J(l,"Caption")},"string"==typeof e?e.split("\n").flatMap((e,t)=>[...t>0?[a.createElement("br",{key:t})]:[],e]):e)):null}let tE=()=>a.createElement(a.Fragment,null,a.createElement("path",{strokeWidth:2,stroke:"currentColor",strokeLinejoin:"round",fill:"none",d:"M3 5l18 0l0 14l-18 0l0-14z"}),a.createElement("path",{d:"M7 15h3c.55 0 1-.45 1-1v-1H9.5v.5h-2v-3h2v.5H11v-1c0-.55-.45-1-1-1H7c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1zm7 0h3c.55 0 1-.45 1-1v-1h-1.5v.5h-2v-3h2v.5H18v-1c0-.55-.45-1-1-1h-3c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1z"})),tx=eH("CaptionsVisible",tE()),tb=(r=tE(),e$("CaptionsVisible",a.createElement(a.Fragment,null,a.createElement("defs",null,a.createElement("mask",{id:"strike"},a.createElement("path",{d:"M0 0h24v24H0z",fill:"white"}),a.createElement("path",{d:"M0 0L24 24",stroke:"black",strokeWidth:4}))),a.createElement("path",{d:"M0.70707 2.121320L21.878680 23.292883",stroke:"currentColor",strokeWidth:2}),a.createElement("g",{fill:"currentColor",mask:"url(#strike)"},a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r))));function ty(){let{visible:e,show:t,hide:n}=tp(),{render:r}=ew();return r.buttonCaptions?a.createElement(a.Fragment,null,r.buttonCaptions({visible:e,show:t,hide:n})):a.createElement(e_,{label:e?"Hide captions":"Show captions",icon:e?tx:tb,renderIcon:e?r.iconCaptionsVisible:r.iconCaptionsHidden,onClick:e?n:t})}function tw({augment:e,addModule:t}){e(({captions:e,render:{slideFooter:t,...n},toolbar:r,...l})=>{let i=tf(e);return{render:{slideFooter:({slide:e})=>a.createElement(a.Fragment,null,null==t?void 0:t({slide:e}),e.title&&a.createElement(tg,{title:e.title}),e.description&&a.createElement(tv,{description:e.description})),...n},toolbar:function(e,t,n){if(!n)return e;let{buttons:r,...l}=e,i=r.findIndex(e=>
1e===t),o=a.isValidElement(n)?a.cloneElement(n,{key:t},null):n;if(i>=0){let e=[...r];return e.splice(i,1,o),{buttons:e,...l}}return{buttons:[o,...r],...l}}(r,w,i.showToggle?a.createElement(ty,null):null),captions:i,...l}}),t(ec(w,th))}let tC=(0,a.createContext)(void 0);function tM({children:e}){let[t,n]=(0,a.useState)(!1),[r,l]=(0,a.useState)(0),[i,u]=(0,a.useState)([]),c=(0,a.useCallback)((e,t)=>{l(e),u(t),n(!0)},[]),s=(0,a.useCallback)(()=>{n(!1)},[]);return a.default.useEffect(()=>(window.__lightboxContext={openLightbox:c},()=>{delete window.__lightboxContext}),[c]),(0,o.jsxs)(tC.Provider,{value:{openLightbox:c,closeLightbox:s},children:[e,(0,o.jsx)(tc,{open:t,close:s,index:r,slides:i,plugins:[tw],captions:{descriptionTextAlign:"center"},controller:{closeOnBackdropClick:!0},render:{buttonPrev:i.length<=1?()=>null:void 0,buttonNext:i.length<=1?()=>null:void 0}})]})}var tN=e.i(631268);function tL(e){let t=e.getAttribute("data-lightbox-src");if(t)return t;let n=e.querySelector("img");if(!n)return null;let r=n.getAttribute("src");if(r)return r;let l=n.getAttribute("data-src");if(l)return l;let i=n.getAttribute("srcset");if(i){let e=i.split(",")[0]?.trim().split(" ")[0];if(e)return e}return n.currentSrc||null}function tP(e){let t=e.querySelector("figcaption");if(!t)return{};let n=t.textContent?.trim()||"";return n?{description:n}:{}}function tk({children:e,className:t,...n}){let{openLightbox:r}=function(){let e=(0,a.useContext)(tC);if(!e)throw Error("useLightbox must be used within ImageLightboxProvider");return e}();return a.default.Children.toArray(e).some(e=>!!a.default.isValidElement(e)&&(null!==function(e){let t=e.props;if(t.src&&"string"==typeof t.src)return{src:t.src,alt:t.alt||""};if(e.type===c.default||"function"==typeof e.type&&"Image"===e.type.name){let e="";if("string"==typeof t.src?e=t.src:t.src&&"object"==typeof t.src&&"src"in t.src&&(e=t.src.src),e)return{src:e,alt:t.alt||""}}return null}(e)||e.type===c.default))?(0,o.jsx)("figure",{className:`${t||""}`,onClick:e=>{let t=e.currentTarget;if(0===t.querySelectorAll("img").length)return;let n=[];if(document.querySelectorAll("figure").forEach(e=>{let t=tL(e);if(!t)return;let r=tP(e),l=e.querySelector("img"),i=l?.getAttribute("alt")||"";n.some(e=>e.src===t)||n.push({src:t,alt:i,title:i||void 0,description:r.description})}),n.length>0){let l=tL(t),i=l?n.findIndex(e=>e.src===l):0;(-1!==i||n.length>0)&&(e.preventDefault(),e.stopPropagation(),r(i>=0?i:0,n))}},...n,children:e}):(0,o.jsx)("figure",{className:t,...n,children:e})}function tS({slug:e,serverRenderedContent:t}){let n=(0,a.useMemo)(()=>({Layout:m.Layout,Section:v.Section,Article:h.Article,ArticleList:g.ArticleList,TextSection:s.TextSection,Callout:d.Callout,Embed:p.Embed,figure:tk,span:(0,tN.createHtmlElement)("span"),p:(0,tN.createHtmlElement)("p"),div:(0,tN.createHtmlElement)("div"),small:(0,tN.createHtmlElement)("small"),a:(0,tN.createHtmlElement)("a"),strong:(0,tN.createHtmlElement)("strong"),em:(0,tN.createHtmlElement)("em"),br:(0,tN.createHtmlElement)("br"),h1:(0,tN.createHtmlElement)("h1"),h2:({className:e,style:t,children:n,...r})=>{let l="string"==typeof t?(0,tN.parseStyleString)(t):t||{};return(0,o.jsx)("h2",{className:`text-foreground text-4xl ${e||""}`,style:l,...r,children:n})},h3:(0,tN.createHtmlElement)("h3"),h4:(0,tN.createHtmlElement)("h4"),h5:(0,tN.createHtmlElement)("h5"),h6:(0,tN.createHtmlElement)("h6"),ul:(0,tN.createHtmlElement)("ul"),ol:(0,tN.createHtmlElement)("ol"),li:(0,tN.createHtmlElement)("li"),table:(0,tN.createHtmlElement)("table"),thead:(0,tN.createHtmlElement)("thead"),tbody:(0,tN.createHtmlElement)("tbody"),tr:(0,tN.createHtmlElement)("tr"),td:(0,tN.createHtmlElement)("td"),th:(0,tN.createHtmlElement)("th"),pre:e=>{let{children:t,className:n,...r}=e;return a.default.Children.toArray(t).some(e=>a.default.isValidElement(e)&&(e.type===f.CodeBlock||"function"==typeof e.type&&"CodeBlock"===e.type.name))?(0,o.jsx)(o.Fragment,{children:t}):(0,o.jsx)("pre",{className:`my-6 overflow-x-auto rounded-lg p-4 font-mono text-sm ${n||""}`,...r,children:t})},code:({children:e,className:t,...n})=>t&&t.startsWith("language-")?(0,o.jsx)(f.CodeBlock,{className:t,...n,children:e}):(0,o.jsx)("code",{className:"bg-muted rounded-2xl px-1.5 py-0.5 font-mono text-[0.8em] [corner-shape:squircle]",...n,children:e})}),[]),r=(0,tN.processBlogImagePaths)(t,e),l=Array.isArray(r)?a.default.createElement(a.default.Fragment,null,...r):r;return(0,a.useEffect)(()=>{let e=e=>{let t=e.target,n=t.closest("figure");
1if(!n||"FIGCAPTION"===t.tagName||t.closest("figcaption"))return;let r=t.closest("a");if(r&&r.href&&e.preventDefault(),0===n.querySelectorAll("img").length)return;let l=window.__lightboxContext;if(!l)return;let i=[];if(document.querySelectorAll("figure").forEach(e=>{let t=tL(e);if(!t)return;let n=tP(e),r=e.querySelector("img"),l=r?.getAttribute("alt")||"";i.some(e=>e.src===t)||i.push({src:t,alt:l,title:l||void 0,description:n.description})}),i.length>0){let t=tL(n),r=t?i.findIndex(e=>e.src===t):0;e.preventDefault(),e.stopPropagation(),l.openLightbox(r>=0?r:0,i)}};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[]),(0,o.jsx)(u.MDXProvider,{components:n,children:l})}function tI({slug:e,serverRenderedContent:t}){return(0,o.jsx)(tM,{children:(0,o.jsx)(tS,{slug:e,serverRenderedContent:t})})}e.s(["BlogContentRenderer",()=>tI],917326)}]);

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.