(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,200254,e=>{"use strict";e.s(["LightboxContentCssVars",()=>t,"LightboxDocumentCssVars",()=>n,"LightboxThumbnailStripCssVars",()=>i]);var t=(e=>(e.pullProgress="--lightbox-pull-progress",e.pullSnapDuration="--lightbox-pull-snap-duration",e.pullSnapEasing="--lightbox-pull-snap-easing",e.zoomProgress="--lightbox-zoom-progress",e))(t||{}),r=(e=>(e.pullProgress="--lightbox-pull-progress",e.pullSnapDuration="--lightbox-pull-snap-duration",e.pullSnapEasing="--lightbox-pull-snap-easing",e))(r||{}),n=(e=>(e.morphBorderRadiusFrom="--lightbox-morph-border-radius-from",e.morphBorderRadiusTo="--lightbox-morph-border-radius-to",e.morphOldOpacity="--lightbox-morph-old-opacity",e.morphNewOpacity="--lightbox-morph-new-opacity",e.vtDuration="--lightbox-vt-duration",e.vtEasing="--lightbox-vt-easing",e.vtCrossfadeCloseEasing="--lightbox-vt-crossfade-close-easing",e.vtRootEasing="--lightbox-vt-root-easing",e))(n||{}),i=(e=>(e.travel="--lightbox-thumbnail-strip-travel",e.selectVtDuration="--lightbox-select-vt-duration",e.selectVtEasing="--lightbox-select-vt-easing",e))(i||{})},175377,e=>{"use strict";e.s(["LightboxBackdropDataAttributes",()=>i,"LightboxCloseDataAttributes",()=>a,"LightboxContentDataAttributes",()=>n,"LightboxDocumentDataAttributes",()=>S,"LightboxItemDataAttributes",()=>l,"LightboxMediaDataAttributes",()=>b,"LightboxPortalDataAttributes",()=>r,"LightboxSlideDataAttributes",()=>s,"LightboxSlidesDataAttributes",()=>u,"LightboxTriggerDataAttributes",()=>t,"LightboxZoomDataAttributes",()=>v,"LightboxZoomInDataAttributes",()=>y,"LightboxZoomOutDataAttributes",()=>x]);var t=(e=>(e.trigger="data-ramka-trigger",e.open="data-popup-open",e.active="data-active",e.morphTarget="data-morph-target",e.crossfade="data-crossfade",e))(t||{}),r=(e=>(e.portal="data-ramka-portal",e))(r||{}),n=(e=>(e.content="data-ramka-content",e.open="data-open",e.closed="data-closed",e.pulling="data-pulling",e.pullSnapping="data-pull-snapping",e.pullDismissing="data-pull-dismissing",e.zooming="data-zooming",e.zoomed="data-zoomed",e))(n||{}),i=(e=>(e.backdrop="data-ramka-backdrop",e.open="data-open",e.closed="data-closed",e.pulling="data-pulling",e.pullSnapping="data-pull-snapping",e))(i||{}),a=(e=>(e.close="data-ramka-close",e))(a||{}),o=(e=>(e.stage="data-ramka-stage",e))(o||{}),l=(e=>(e.item="data-ramka-item",e.active="data-active",e.index="data-index",e.skipFade="data-skip-fade",e))(l||{}),u=(e=>(e.slides="data-ramka-slides",e.activeIndex="data-active-index",e.direction="data-direction",e.orientation="data-orientation",e))(u||{}),s=(e=>(e.slide="data-ramka-slide",e))(s||{}),c=(e=>(e.previous="data-ramka-previous",e.disabled="data-disabled",e))(c||{}),d=(e=>(e.next="data-ramka-next",e.disabled="data-disabled",e))(d||{}),f=(e=>(e.counter="data-ramka-counter",e))(f||{}),h=(e=>(e.caption="data-ramka-caption",e.hasCaption="data-has-caption",e))(h||{}),p=(e=>(e.thumbnailGroup="data-ramka-thumbnail-group",e.focusWithin="data-focus-within",e))(p||{}),m=(e=>(e.thumbnail="data-ramka-thumbnail",e.active="data-active",e.index="data-index",e))(m||{}),g=(e=>(e.root="data-ramka-thumbnail-strip",e.track="data-ramka-thumbnail-strip-track",e.scrubbing="data-scrubbing",e))(g||{}),b=(e=>(e.media="data-ramka-media",e.placeholder="data-placeholder",e.width="data-width",e.height="data-height",e))(b||{}),v=(e=>(e.host="data-ramka-zoom",e.zoom="data-zoom",e.dragging="data-dragging",e))(v||{}),y=(e=>(e.zoomIn="data-ramka-zoom-in",e.disabled="data-disabled",e))(y||{}),x=(e=>(e.zoomOut="data-ramka-zoom-out",e.disabled="data-disabled",e))(x||{}),S=(e=>(e.viewTransition="data-ramka-view-transition",e.crossfade="data-ramka-crossfade",e.viewTransitionPreset="data-ramka-vt-preset",e))(S||{})},186803,e=>{"use strict";function t(){return!!("undefined"!=typeof document&&"MozAppearance"in document.documentElement.style||"undefined"!=typeof CSS&&"function"==typeof CSS.supports&&CSS.supports("-moz-appearance","none")||"undefined"!=typeof window&&"mozInnerScreenX"in window)||"undefined"!=typeof navigator&&/Firefox\//.test(navigator.userAgent)}e.s(["isFirefox",()=>t])},929785,e=>{"use strict";function t(e,t){if(!e)return null;let r=(Array.isArray(e)?e:[e]).find(e=>e.type===t);return r?{behavior:r.behavior??"smooth",block:r.block??"nearest",inline:r.inline??"nearest"}:null}function r(e,t={behavior:"smooth",block:"nearest",inline:"nearest"}){e&&e.scrollIntoView({block:t.block,inline:t.inline,behavior:t.behavior})}function n(e,t,r,n){if("origin"===t)return r;if("active"===t||n.has(e))return e;let i=-1,a=1/0;for(let t of n.keys()){let r=Math.abs(t-e);r=0?i:e}e.s(["resolveScrollTriggerOption",()=>t,"resolveTriggerIndex",()=>n,"scrollTriggerEl",()=>r])},248071,e=>{"use strict";e.s(["isAndroidBlinkSnapshotRoot",()=>r]);var t=e.i(186803);function r(){if("undefined"==typeof navigator||"undefined"==typeof window||"GestureEvent"in window||(0,t.isFirefox)())return!1;let e=navigator.userAgentData;return!!("boolean"==typeof e?.mobile?e.mobile:/Android/i.test(navigator.userAgent))&&("chrome"in window||/Chrome\//i.test(navigator.userAgent))}},610555,e=>{"use strict";function t(e,t){return t?.get(e)??e}function r(e,t){return t?.get(e)??e}function n(e,r,n){return n||(e?t(e,r):null)}e.s(["findDestinationMorphTarget",()=>n,"findItemMorphTarget",()=>t,"findTriggerMorphTarget",()=>r])},850671,459546,183103,e=>{"use strict";e.s(["DEFAULT_DECODE_MAX_WAIT",()=>t,"VIEW_TRANSITION_NAME",()=>r,"isLowEndDevice",()=>i,"supportsViewTransitions",()=>n],850671);let t=200,r="lightbox-morph";function n(){return"undefined"!=typeof document&&"startViewTransition"in document&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches}function i(){if("undefined"==typeof navigator)return!1;let e=navigator.deviceMemory;if("number"==typeof e&&e<4)return!0;let t=navigator.hardwareConcurrency;return"number"==typeof t&&!!(t<4)}e.s(["VIEW_TRANSITION_PRESETS",()=>s,"isViewTransitionPreset",()=>c,"morphTiming",()=>f,"resolveViewTransitionTiming",()=>d],459546);var a=e.i(175377);let o="cubic-bezier(0.16, 1, 0.3, 1)",l="cubic-bezier(0.22, 0, 0.35, 1)",u=(e,t,r,n,i)=>{let a=`cubic-bezier(${t}, ${r}, ${n}, ${i})`;return{duration:e,ease:function(e,t,r,n){let i=(e,t,r)=>(1-3*r+3*t)*e*e*e+(3*r-6*t)*e*e+3*t*e;return a=>{if(a<=0)return 0;if(a>=1)return 1;let o=0,l=1,u=a;for(let t=0;t<32;t++){let t=i(u,e,r);if(1e-6>Math.abs(t-a))break;tMath.exp(-9.2*t)*(1+e*t),r=1-t(1);n=e=>(1-t(e))/r}return e=>e<=0?0:e>=1?1:em,"appendStyleElement",()=>g,"insertLibrarySheet",()=>b,"supportsConstructedSheets",()=>p],183103);let h={release(){}};function p(){return"function"==typeof CSSStyleSheet&&"function"==typeof CSSStyleSheet.prototype.replaceSync&&null!=document.adoptedStyleSheets}function m(e){let t=new CSSStyleSheet;return t.replaceSync(e),document.adoptedStyleSheets=[...document.adoptedStyleSheets,t],{release(){document.adoptedStyleSheets=document.adoptedStyleSheets.filter(e=>e!==t)}}}function g(e,t,r){let n=document.createElement("style");return n.setAttribute(t,""),n.textContent=e,r?document.head.insertBefore(n,document.head.firstChild):document.head.appendChild(n),{release(){n.remove()}}}function b(e,t){return"undefined"==typeof document?h:p()?m(e):g(e,t,!1)}},84853,e=>{"use strict";e.s(["LightboxContext",()=>r,"useLightboxContext",()=>n]);var t=e.i(271645);let r=t.createContext(void 0);function n(){let e=t.useContext(r);if(void 0===e)throw Error("Lightbox compound components must be used within a Lightbox.Root");return e}},49799,51415,786760,e=>{"use strict";function t(...e){let r={...e[0]};for(let t=1;t=65&&90>=l.charCodeAt(2)&&("function"==typeof u||void 0===u))?r[e]=function(e,t){return t?e?(...r)=>{let n=t(...r);return e(...r),n}:t:e}(r[e],t):r[e]=t}}return r}e.s(["mergeProps",()=>t],49799),e.s(["useRender",()=>s],786760);var r=e.i(271645);e.s(["getElementRef",()=>o,"inertWhen",()=>a],51415);let n=parseInt(r.version,10),i={inert:"inert"};function a(e){return e?i:{}}function o(e){return r.isValidElement(e)?(n>=19?e.props?.ref:e.ref)??null:null}function l(){return{callback:null,cleanup:null,refs:[]}}let u=Object.freeze({});function s(e){let{render:n,ref:i,state:a,stateAttributesMapping:s,props:c,defaultTagName:d="div"}=e,f={...function(e,t){let r={};if(!e)return r;for(let n in e){let i=e[n];if(t&&Object.prototype.hasOwnProperty.call(t,n)){let e=t[n]?.(i);null!=e&&Object.assign(r,e);continue}!0===i?r[`data-${n.toLowerCase()}`]="":i&&(r[`data-${n.toLowerCase()}`]=String(i))}return r}(a,s),...c};return f.ref=function(e,t,n){let i=function(e){let t=r.useRef(null);return null===t.current&&(t.current=e()),t}(l).current;return(i.refs[0]!==e||i.refs[1]!==t||i.refs[2]!==n)&&function(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null==r)return;let n=t.map(()=>null);t.forEach((e,t)=>{if(null!=e)if("function"==typeof e){let i=e(r);"function"==typeof i&&(n[t]=i)}else e.current=r}),e.cleanup=()=>{t.forEach((e,t)=>{if(null!=e)if("function"==typeof e){let r=n[t];r?r():e(null)}else e.current=null})}}}(i,[e,t,n]),i.callback}(f.ref,o(n),i),function(e,n,i,a){if("function"==typeof n)return n(i,a);if(n){let e=t(i,n.props??void 0);return e.ref=i.ref,r.cloneElement(n,e)}return"button"===e?r.createElement("button",{type:"button",...i}):r.createElement(e,i)}(d,n,f,a??u)}},679936,e=>{"use strict";e.s(["LightboxActiveZoomContext",()=>o,"LightboxZoomPublishContext",()=>i,"ZoomContext",()=>r,"useLightboxZoomPublish",()=>a,"useOptionalActiveZoom",()=>l,"useOptionalZoomContext",()=>n]);var t=e.i(271645);let r=t.createContext(null);function n(){return t.useContext(r)}let i=t.createContext(null);function a(){let e=t.useContext(i);if(!e)throw Error("Lightbox zoom bridge must be used within a Lightbox.Root");return e}let o=t.createContext(null);function l(){return t.useContext(o)}},97260,e=>{"use strict";e.s(["useAccessibleNameWarning",()=>r]);var t=e.i(271645);function r(e,r,n){let{namedByContent:i=!0,hint:a}=n??{},o=t.useRef(null),l=t.useCallback(e=>{o.current=e,"function"==typeof r?r(e):r&&(r.current=e)},[r]);return t.useEffect(()=>{}),l}},495493,553913,856026,e=>{"use strict";function t(e,t){return"rtl"===t?-e.scrollLeft||0:e.scrollLeft}function r(e,t,r){e.scrollLeft="rtl"===t?-r||0:r}function n(e,t,r,n){return"rtl"===n?r-(e+t):e}function i(e,t){switch(e){case"ArrowRight":return"rtl"===t?-1:1;case"ArrowLeft":return"rtl"===t?1:-1;case"ArrowDown":return 1;case"ArrowUp":return -1;default:return 0}}e.s(["SLIDE_SELECTOR",()=>a,"measureSlidesGeometry",()=>o,"slideIndexFromInlinePosition",()=>u,"slideInlinePositionForIndex",()=>l],495493),e.s(["arrowKeyIndexDelta",()=>i,"readInlineScroll",()=>t,"toInlineOffset",()=>n,"writeInlineScroll",()=>r],553913);let a="[data-ramka-slide]";function o(e,t="ltr"){let r=e.querySelectorAll(a),i=r.length,l=e.clientWidth||1;if(0===i)return{offsets:[],base:0,step:l,count:0};let u="rtl"===t?l:0,s=Array.from(r,r=>{let i=r.offsetWidth||l;return n(r.offsetParent===e?r.offsetLeft:r.offsetParent===e.offsetParent?r.offsetLeft-e.offsetLeft:r.getBoundingClientRect().left-e.getBoundingClientRect().left+e.scrollLeft,i,u,t)+i/2-l/2}),c=s[0]??0,d=i>1?s[1]-s[0]:l;return{offsets:s,base:c,step:d>0?d:l,count:i}}function l(e,t){let{offsets:r,count:n,base:i,step:a}=t;if(n<=0)return 0;let o=Math.min(Math.max(0,e),n-1);return r[o]??i+o*a}function u(e,t){let{offsets:r,count:n,base:i,step:a}=t;if(n<=0||1===n||0===r.length)return 0;if(function(e){let{offsets:t,count:r,base:n,step:i}=e;return r<2||t.length!==r||t.every((e,t)=>1>Math.abs(e-(n+t*i)))}(t)&&a>0)return Math.min(n-1,Math.max(0,Math.round((e-i)/a)));let o=0,l=1/0;for(let t=0;tc],856026),e.i(247167);var s=e.i(271645);function c(e,t){s.useEffect(()=>{},[e,t])}},642343,e=>{"use strict";e.s(["LightboxSlides",()=>g,"useSlidesPreload",()=>h]);var t=e.i(843476),r=e.i(271645),n=e.i(175377),i=e.i(84853),a=e.i(495493),o=e.i(553913),l=e.i(186803),u=e.i(856026),s=e.i(679936),c=e.i(49799),d=e.i(786760);let f=r.createContext(1/0);function h(){return r.useContext(f)}let p="x mandatory",m={activeIndex:e=>({"data-active-index":String(e)}),direction:e=>({"data-direction":String(e)})},g=r.forwardRef(function(e,h){let{render:g,preload:b=1,style:v,...y}=e,{activeIndex:x,direction:S,dir:w,setActiveIndex:C,navigationLockedRef:L,itemCount:k,slidesViewportRef:E,slidesGeometryRef:A,notifySlidesViewport:T}=(0,i.useLightboxContext)(),{activeZoomRef:I}=(0,s.useLightboxZoomPublish)(),R=r.useRef(null),M=r.useRef(!1),P=r.useRef(0),D=r.useRef(0),z=r.useRef(0),F=r.useRef(!1),W=r.useRef(0),O=r.useRef(0),N=r.useRef(0),$=r.useRef(!1),j=r.useRef(x);j.current=x;let B=r.useCallback(e=>{let t=R.current;R.current=e,e?E.current=e:E.current===t&&(E.current=null),!e&&t&&(z.current=0,t.style.scrollSnapType=p),T(),"function"==typeof h?h(e):h&&(h.current=e)},[h,E,T]);(0,u.useDirectionMismatchWarning)(R,w);let V=r.useCallback(e=>(0,a.slideIndexFromInlinePosition)((0,o.readInlineScroll)(e,w),A.current),[w]),Z=r.useCallback(e=>{let t=R.current;if(!t)return;let r=t.querySelectorAll(a.SLIDE_SELECTOR)[e];if(!r)return;let n=r.style.visibility;r.style.visibility="hidden",r.offsetWidth,r.style.visibility=n},[]),q=r.useCallback(e=>{var t,r;let n=R.current;if(!n)return;let i=n.scrollWidth-n.clientWidth,l=(t=(0,a.slideInlinePositionForIndex)(e,A.current),r=i>0?i:0,t<0?0:t>r?r:t);if(1>Math.abs((0,o.readInlineScroll)(n,w)-l))return;M.current=!0,P.current=l;let u=D.current+=1;0===z.current&&(n.style.scrollSnapType="none"),z.current+=1,(0,o.writeInlineScroll)(n,w,l),requestAnimationFrame(()=>{let t=R.current;z.current=Math.max(0,z.current-1),t&&0===z.current&&(t.style.scrollSnapType=p),t&&u===D.current&&(Math.abs((0,o.readInlineScroll)(t,w)-l)>=1&&(M.current=!0,P.current=l,(0,o.writeInlineScroll)(t,w,l)),requestAnimationFrame(()=>{u===D.current&&(M.current=!1,window.clearTimeout(O.current),O.current=window.setTimeout(()=>{u===D.current&&Z(e)},120))}))})},[Z,w]);r.useLayoutEffect(()=>{let e=R.current;if(!e)return;A.current=(0,a.measureSlidesGeometry)(e,w),T();let t=new ResizeObserver(()=>{let t=A.current,r=(0,a.measureSlidesGeometry)(e,w);if(A.current=r,t&&r.base===t.base&&r.step===t.step&&r.count===t.count&&r.offsets.length===t.offsets.length&&r.offsets.every((e,r)=>e===t.offsets[r]))return;let n=W.current+=1;F.current=!0,$.current=!1,L.current=!1,window.clearTimeout(N.current),N.current=0,T(),q(j.current),requestAnimationFrame(()=>{requestAnimationFrame(()=>{n===W.current&&(q(j.current),F.current=!1)})})});return t.observe(e),()=>t.disconnect()},[k,q,T,L,w]),r.useLayoutEffect(()=>{let e=R.current;e&&V(e)!==x&&q(x)},[x,V,q]),r.useEffect(()=>{let e=R.current;if(!e)return;let t=!1,r=0,n=()=>{if(0!==r&&(cancelAnimationFrame(r),r=0),window.clearTimeout(N.current),N.current=0,t=!1,$.current=!1,L.current=!1,M.current=!1,F.current)return;let n=V(e);n!==j.current&&C(n,"scroll")},i="onscrollend"in window&&!(0,l.isFirefox)(),a=()=>{window.clearTimeout(N.current),N.current=0,(!i||$.current)&&(N.current=window.setTimeout(n,140))},u=()=>{M.current||(L.current||(t=!1),L.current=!0,a())},s=()=>1>Math.abs((0,o.readInlineScroll)(e,w)-P.current),c=()=>{if(r=0,M.current||F.current||s()){t=!1,$.current=!1,L.current=!1,window.clearTimeout(N.current),N.current=0;return}if(!L.current)return;let n=V(e);n!==j.current&&C(n,"scroll")},d=()=>{M.current||F.current||s()||(u(),t=!0),0===r&&(r=requestAnimationFrame(c))},f=0,h=0,p=!1,m=!1,g=!1,b=()=>(I.current?.getZoom()??1)<=1+1e-6,v=e=>{if(e.touches.length>1){g=!0,p&&m&&b()&&u();return}1===e.touches.length&&(p=!0,m=!1,f=e.touches[0].clientX,h=e.touches[0].clientY)},y=e=>{if(g||1!==e.touches.length||!p||m)return;let t=e.touches[0],r=t.clientX-f,n=t.clientY-h;!(10>Math.hypot(r,n))&&(m=!0,b()&&Math.abs(r)>=Math.abs(n)&&u())},x=e=>{e.touches.length>0||(p=!1,m=!1,g=!1,L.current&&!t&&n())},S=e=>{L.current&&("wheel"!==e.type||e.ctrlKey||e.metaKey)&&($.current=!0,a())};return e.addEventListener("scroll",d,{passive:!0}),e.addEventListener("scrollend",n),e.addEventListener("wheel",S,{passive:!0,capture:!0}),e.addEventListener("gesturestart",S,{capture:!0}),e.addEventListener("gesturechange",S,{capture:!0}),e.addEventListener("touchstart",v,{passive:!0,capture:!0}),e.addEventListener("touchmove",y,{passive:!0,capture:!0}),e.addEventListener("touchend",x,{passive:!0,capture:!0}),e.addEventListener("touchcancel",x,{passive:!0,capture:!0}),()=>{0!==r&&cancelAnimationFrame(r),window.clearTimeout(N.current),window.clearTimeout(O.current),N.current=0,e.removeEventListener("scroll",d),e.removeEventListener("scrollend",n),e.removeEventListener("wheel",S,!0),e.removeEventListener("gesturestart",S,!0),e.removeEventListener("gesturechange",S,!0),e.removeEventListener("touchstart",v,!0),e.removeEventListener("touchmove",y,!0),e.removeEventListener("touchend",x,!0),e.removeEventListener("touchcancel",x,!0)}},[V,C,L,I,w]);let _=r.useMemo(()=>({activeIndex:x,direction:S}),[x,S]);return(0,t.jsx)(f.Provider,{value:b,children:(0,d.useRender)({render:g,ref:B,state:_,stateAttributesMapping:m,props:(0,c.mergeProps)({role:"group",[n.LightboxSlidesDataAttributes.slides]:"","data-orientation":"horizontal",style:{display:"flex",overflowX:"auto",overflowY:"hidden",overscrollBehaviorX:"contain",scrollSnapType:p,scrollBehavior:"auto",scrollbarWidth:"none",overflowAnchor:"none",...v,position:"relative",containerType:"size"}},y),defaultTagName:"div"})})});g.displayName="LightboxSlides"},360565,e=>{"use strict";function t(e){let t,r,{img:n,source:i,fit:a,objectPosition:o,host:l}=e;if(!i)return null;let u=i.naturalWidth,s=i.naturalHeight;if(!(i.complete&&u>0&&s>0)||l===n)return null;let c=n.clientWidth||l.clientWidth,d=n.clientHeight||l.clientHeight;if(!(c>0&&d>0))return null;try{r=(t=document.createElement("canvas")).getContext("2d")}catch{return null}if(!r)return null;let f=Math.min("undefined"!=typeof window&&window.devicePixelRatio||1,3);t.width=Math.max(1,Math.round(c*f)),t.height=Math.max(1,Math.round(d*f)),t.setAttribute("data-ramka-placeholder","");let h=t.style;h.position="absolute",h.top="0",h.insetInlineStart="0",h.width="100%",h.height="100%",h.zIndex="-1",h.pointerEvents="none";let p="cover"===a?Math.max(c/u,d/s):Math.min(c/u,d/s),m=u*p,g=s*p,{x:b,y:v}=function(e,t,r){let n=(e,t)=>{if(!e||"center"===e)return .5;if(e===("x"===t?"left":"top"))return 0;if(e===("x"===t?"right":"bottom"))return 1;if(e.endsWith("%")){let t=Number.parseFloat(e);return Number.isFinite(t)?t/100:.5}return .5},i=(e||"").trim().split(/\s+/);return{x:t*n(i[0],"x"),y:r*n(i[1]??"center","y")}}(o,c-m,d-g);try{r.scale(f,f),r.drawImage(i,b,v,m,g)}catch{return null}let y=l.style.position,x=l.style.isolation;return"static"===getComputedStyle(l).position&&(l.style.position="relative"),l.style.isolation="isolate",l.insertBefore(t,l.firstChild),()=>{t.remove(),l.style.position=y,l.style.isolation=x}}e.s(["tryPaintCanvasPlaceholder",()=>t])},347407,e=>{"use strict";e.s(["LightboxItem",()=>p,"useOptionalLightboxItemContext",()=>f]);var t=e.i(843476),r=e.i(271645),n=e.i(175377),i=e.i(84853),a=e.i(360565),o=e.i(642343),l=e.i(97260),u=e.i(51415),s=e.i(49799),c=e.i(786760);let d=r.createContext(null);function f(){return r.useContext(d)}let h={active:e=>e?{"data-active":""}:null,index:e=>({"data-index":String(e)})},p=r.forwardRef(function(e,f){let{render:p,index:m,caption:g,children:b,style:v,...y}=e,{registerCaption:x,registerItem:S,activeIndex:w,loop:C,itemCount:L,activeItemElementRef:k,itemMorphElementsRef:E,openingTriggerIndexRef:A,openingTriggerElementRef:T,openingTriggerImageRef:I,triggerImageElementsRef:R,triggerElementsRef:M,openTransitionPendingRef:P,subscribeOpenComplete:D,baseId:z,hasTablist:F}=(0,i.useLightboxContext)(),W=(0,o.useSlidesPreload)(),O=m===w,N=Math.abs(m-w),$=(C&&L>0?Math.min(N,L-N):N)<=W,j=r.useRef(null),B=r.useRef(null),V=r.useRef(null),Z=r.useRef(null);r.useRef(!1);let q=r.useCallback(()=>{let e=j.current,t=E.current;if(!e||!t)return;let r=V.current??Z.current??B.current;r?t.set(e,r):t.delete(e)},[E]),_=r.useCallback(e=>{let t=j.current;j.current=e,e?q():t&&E.current?.delete(t),"function"==typeof f?f(e):f&&(f.current=e)},[f,E,q]),G=(0,l.useAccessibleNameWarning)("Lightbox.Item",_,{namedByContent:!1,hint:"A slide is a `group`, so its caption does not name it — pass `aria-label` carrying the position (the APG carousel pattern puts it in the name, e.g. `${i + 1} of ${photos.length}` in your own wording)."}),X=r.useCallback(e=>{B.current=e,q()},[q]),H=r.useCallback(e=>{V.current=e,q()},[q]),K=r.useCallback(e=>{Z.current=e,q()},[q]),U=r.useRef(null),Y=r.useCallback(e=>{U.current=e},[]);r.useLayoutEffect(()=>{let e;if(!$)return;let t=B.current;if(!t||t.complete&&t.naturalWidth>0)return;let r=(A.current===m?I.current:null)??R.current?.get(m)??null,n=r?.currentSrc??"";if(!n)return;let i=getComputedStyle(t),o="contain"===i.objectFit?"contain":"cover",l=V.current??Z.current,u=l&&l!==t?(0,a.tryPaintCanvasPlaceholder)({img:t,source:r,fit:o,objectPosition:i.objectPosition,host:l}):null;if(u){let t=l===Z.current;t&&U.current?.(!0),e=()=>{u(),t&&U.current?.(!1)}}else{let a={image:t.style.backgroundImage,size:t.style.backgroundSize,position:t.style.backgroundPosition,repeat:t.style.backgroundRepeat};e=()=>{t.style.backgroundImage=a.image,t.style.backgroundSize=a.size,t.style.backgroundPosition=a.position,t.style.backgroundRepeat=a.repeat},t.style.backgroundImage=`url("${n}")`;let l=t.clientWidth,u=t.clientHeight,s=r?.naturalWidth??0,c=r?.naturalHeight??0;if(l>0&&u>0&&s>0&&c>0){let e="contain"===o?Math.min(l/s,u/c):Math.max(l/s,u/c);t.style.backgroundSize=`${s*e}px ${c*e}px`}else t.style.backgroundSize=o;t.style.backgroundPosition=i.objectPosition||"center",t.style.backgroundRepeat="no-repeat"}let s=!1,c=0,d=0,f=!1,h=!P.current,p=()=>{!s&&f&&h&&(s=!0,e())},g=()=>{f=!0,p()},b=()=>{s||(c=requestAnimationFrame(()=>{d=requestAnimationFrame(g)}))},v=()=>{s||("function"==typeof t.decode?t.decode().then(b,b):b())};t.addEventListener("load",v);let y=h?null:D(()=>{h=!0,p()});return()=>{t.removeEventListener("load",v),y?.(),c&&cancelAnimationFrame(c),d&&cancelAnimationFrame(d),s||e()}},[$]),r.useLayoutEffect(()=>{O&&j.current&&(k.current=j.current)},[O,k]),r.useEffect(()=>S(m),[m,S]),r.useEffect(()=>{if(void 0!==g)return x(m,g)},[m,g,x]);let J=r.useMemo(()=>$?"function"==typeof b?b({active:O,visible:$,index:m,imageRef:X,morphRef:H}):b:null,[$,O,m,b,X,H]),Q=r.useMemo(()=>({active:O,index:m}),[O,m]),ee=`${z}-panel-${m}`,et=`${z}-tab-${m}`,er=r.useMemo(()=>({index:m,active:O,imageRef:X,morphRef:H,registerMedia:K,registerPlaceholder:Y}),[m,O,X,H,K,Y]),en=(0,c.useRender)({render:p,ref:G,state:Q,stateAttributesMapping:h,props:(0,s.mergeProps)({[n.LightboxItemDataAttributes.item]:"",id:ee,...F?{role:"tabpanel","aria-labelledby":et}:{role:"group"},"aria-hidden":!O,...(0,u.inertWhen)(!O),style:{width:"100%",height:"100%",willChange:O?"transform":void 0,...v}},y,{children:J}),defaultTagName:"div"});return $?(0,t.jsx)(d.Provider,{value:er,children:en}):null});p.displayName="LightboxItem"},116719,e=>{e.v(t=>Promise.all(["static/chunks/4fa2925e3628efd3.js"].map(t=>e.l(t))).then(()=>t(173666)))},717979,e=>{e.v(t=>Promise.all(["static/chunks/8a97425a0de309c3.js","static/chunks/b8317f046e83f435.js"].map(t=>e.l(t))).then(()=>t(613415)))},150571,e=>{e.v(t=>Promise.all(["static/chunks/38765db3b94a98b0.js"].map(t=>e.l(t))).then(()=>t(412790)))}]);