-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomponent---src-pages-templates-project-tsx-416c00a125683aa576b2.js
More file actions
2 lines (2 loc) · 57.2 KB
/
component---src-pages-templates-project-tsx-416c00a125683aa576b2.js
File metadata and controls
2 lines (2 loc) · 57.2 KB
1
2
"use strict";(self.webpackChunkcode_cave=self.webpackChunkcode_cave||[]).push([[12],{5276:function(e,t,n){n.r(t),n.d(t,{Head:function(){return Qn},default:function(){return Jn}});var r=n(5588),o=n(5471),l=n(6540),i=n(6674),a=n(5317),c=n(7437);const s=e=>{let{selected:t,onClick:n}=e;return(0,c.Y)("button",{"aria-label":"view image",className:"bg-transparent touch-manipulation inline-flex w-12 h-12 after:rounded-sm flex items-center mx-1.5 md:mx-3 after:bg-main-10 after:w-full after:h-1.5 after:content-['']".concat(t?" after:bg-secondary-100":""),type:"button",onClick:n})},u=e=>{let{enabled:t,onClick:n}=e;return(0,c.Y)("button",{"aria-label":"previous image",className:"bg-transparent touch-manipulation flex z-10 text-main-70 absolute flex items-center justify-center top-1/2 -translate-y-1/2 w-10 md:w-16 h-10 md:h-16 left-0 disabled:opacity-30",onClick:n,disabled:!t},(0,c.Y)("svg",{className:"w-2/3 h-2/3",viewBox:"137.718 -1.001 366.563 644"},(0,c.Y)("path",{fill:"#f9f9f9",d:"M428.36 12.5c16.67-16.67 43.76-16.67 60.42 0 16.67 16.67 16.67 43.76 0 60.42L241.7 320c148.25 148.24 230.61 230.6 247.08 247.08 16.67 16.66 16.67 43.75 0 60.42-16.67 16.66-43.76 16.67-60.42 0-27.72-27.71-249.45-249.37-277.16-277.08a42.308 42.308 0 0 1-12.48-30.34c0-11.1 4.1-22.05 12.48-30.42C206.63 234.23 400.64 40.21 428.36 12.5z"})))},d=e=>{let{enabled:t,onClick:n}=e;return(0,c.Y)("button",{"aria-label":"next image",className:"bg-transparent touch-manipulation flex z-10 text-main-70 absolute flex items-center justify-center top-1/2 -translate-y-1/2 w-10 md:w-16 h-10 md:h-16 right-0 disabled:opacity-30",onClick:n,disabled:!t},(0,c.Y)("svg",{className:"w-2/3 h-2/3",viewBox:"0 0 238.003 238.003"},(0,c.Y)("path",{fill:"#f9f9f9",d:"M181.776 107.719L78.705 4.648c-6.198-6.198-16.273-6.198-22.47 0s-6.198 16.273 0 22.47l91.883 91.883-91.883 91.883c-6.198 6.198-6.198 16.273 0 22.47s16.273 6.198 22.47 0l103.071-103.039a15.741 15.741 0 0 0 4.64-11.283c0-4.13-1.526-8.199-4.64-11.313z"})))},m="carousel",f="controller",h="portal",p="toolbar",v="captions",g="fullscreen",b="slideshow",x="thumbnails",w="zoom",E="loading",y="playing",C="error",M="complete",k=e=>`active-slide-${e}`,S=k(E),N=k(y),P=k(C),R=k(M),I="fullsize",L="flex_center",F="no_scroll_padding",z="slide",T="slide_wrapper",O="prev",D="next",Y="swipe",W="close",$="onPointerDown",A="onPointerMove",_="onPointerUp",Z="onPointerLeave",H="onPointerCancel",X="onKeyDown",U="onWheel",V="icon",B="contain",j="cover",q="Unknown action type";var K=n(961);const G="yarl__";function J(...e){return e.filter(Boolean).join(" ")}function Q(e){return`${G}${e}`}function ee(e){return`--${G}${e}`}function te(e,t){return`${e}${t?`_${t}`:""}`}function ne(e){return t=>te(e,t)}function re(e,t){var n;return null!==(n=null==e?void 0:e[t])&&void 0!==n?n:t}function oe(e,t,n){return re(e,"{index} of {total}").replace(/\{index}/g,`${he(n,t.length)+1}`).replace(/\{total}/g,`${t.length}`)}function le(...e){return()=>{e.forEach(e=>{e()})}}function ie(e,t,n){return()=>{const r=l.useContext(n);if(!r)throw new Error(`${e} must be used within a ${t}.Provider`);return r}}function ae(){return"undefined"!=typeof window}function ce(e,t=0){const n=10**t;return Math.round((e+Number.EPSILON)*n)/n}function se(e){return void 0===e.type||"image"===e.type}function ue(e,t){return e.imageFit===j||e.imageFit!==B&&t===j}function de(e){return"string"==typeof e?Number.parseInt(e,10):e}function me(e){if("number"==typeof e)return{pixel:e};if("string"==typeof e){const t=de(e);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function fe(e,t){const n=me(t),r=void 0!==n.percent?e.width/100*n.percent:n.pixel;return{width:Math.max(e.width-2*r,0),height:Math.max(e.height-2*r,0)}}function he(e,t){return t>0?(e%t+t)%t:0}function pe(e){return e.length>0}function ve(e,t){return e[he(t,e.length)]}function ge(e,t){return pe(e)?ve(e,t):void 0}function be(e){return se(e)?e.src:void 0}function xe(e,t,n){if(!n)return e;const{buttons:r,...o}=e,i=r.findIndex(e=>e===t),a=l.isValidElement(n)?l.cloneElement(n,{key:t},null):n;if(i>=0){const e=[...r];return e.splice(i,1,a),{buttons:e,...o}}return{buttons:[a,...r],...o}}const we=Number(l.version.split(".")[0])>=19;const Ee={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[W]},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 ye(e,t){return{name:e,component:t}}function Ce(e,t){return{module:e,children:t}}function Me(e,t,n){return e.module.name===t?n(e):e.children?[Ce(e.module,e.children.flatMap(e=>{var r;return null!==(r=Me(e,t,n))&&void 0!==r?r:[]}))]:[e]}function ke(e,t,n){return e.flatMap(e=>{var r;return null!==(r=Me(e,t,n))&&void 0!==r?r:[]})}const Se=l.createContext(null),Ne=ie("useA11yContext","A11yContext",Se);function Pe({children:e}){const[t,n]=l.useState(!1),[r,o]=l.useState(!1),i=l.useMemo(()=>({focusWithin:t,trackFocusWithin:(e,t)=>{const r=r=>o=>{var l;o.currentTarget.contains(o.relatedTarget)||n(r),null===(l=r?e:t)||void 0===l||l(o)};return{onFocus:r(!0),onBlur:r(!1)}},autoPlaying:r,setAutoPlaying:o}),[t,r]);return l.createElement(Se.Provider,{value:i},e)}const Re=l.createContext(null),Ie=ie("useDocument","DocumentContext",Re);function Le({nodeRef:e,children:t}){const n=l.useMemo(()=>{const t=t=>{var n;return(null===(n=t||e.current)||void 0===n?void 0:n.ownerDocument)||document};return{getOwnerDocument:t,getOwnerWindow:e=>{var n;return(null===(n=t(e))||void 0===n?void 0:n.defaultView)||window}}},[e]);return l.createElement(Re.Provider,{value:n},t)}const Fe=l.createContext(null),ze=ie("useEvents","EventsContext",Fe);function Te({children:e}){const[t]=l.useState({});l.useEffect(()=>()=>{Object.keys(t).forEach(e=>delete t[e])},[t]);const n=l.useMemo(()=>{const e=(e,n)=>{var r;null===(r=t[e])||void 0===r||r.splice(0,t[e].length,...t[e].filter(e=>e!==n))};return{publish:(...[e,n])=>{var r;null===(r=t[e])||void 0===r||r.forEach(e=>e(n))},subscribe:(n,r)=>(t[n]||(t[n]=[]),t[n].push(r),()=>e(n,r)),unsubscribe:e}},[t]);return l.createElement(Fe.Provider,{value:n},e)}const Oe=l.createContext(null),De=ie("useLightboxProps","LightboxPropsContext",Oe);function Ye({children:e,...t}){return l.createElement(Oe.Provider,{value:t},e)}const We=l.createContext(null),$e=ie("useLightboxState","LightboxStateContext",We),Ae=l.createContext(null),_e=ie("useLightboxDispatch","LightboxDispatchContext",Ae);function Ze(e,t){switch(t.type){case"swipe":{const{slides:n}=e,r=(null==t?void 0:t.increment)||0,o=e.globalIndex+r,l=he(o,n.length);return{slides:n,currentIndex:l,globalIndex:o,currentSlide:ge(n,l),animation:r||void 0!==t.duration?{increment:r,duration:t.duration,easing:t.easing}:void 0}}case"update":return t.slides!==e.slides||t.index!==e.currentIndex?{slides:t.slides,currentIndex:t.index,globalIndex:t.index,currentSlide:ge(t.slides,t.index)}:e;default:throw new Error(q)}}function He({slides:e,index:t,children:n}){const[r,o]=l.useReducer(Ze,{slides:e,currentIndex:t,globalIndex:t,currentSlide:ge(e,t)}),[i,a]=l.useState(e),[c,s]=l.useState(t);e===i&&t===c||(a(e),s(t),o({type:"update",slides:e,index:t}));const u=l.useMemo(()=>({...r,state:r,dispatch:o}),[r,o]);return l.createElement(Ae.Provider,{value:o},l.createElement(We.Provider,{value:u},n))}const Xe=l.createContext(null),Ue=ie("useRTLContext","RTLContext",Xe);function Ve({isRTL:e,children:t}){const n=l.useMemo(()=>({isRTL:e}),[e]);return l.createElement(Xe.Provider,{value:n},t)}const Be=l.createContext(null),je=ie("useTimeouts","TimeoutsContext",Be);function qe({children:e}){const[t]=l.useState([]);l.useEffect(()=>()=>{t.forEach(e=>window.clearTimeout(e)),t.splice(0,t.length)},[t]);const n=l.useMemo(()=>{const e=e=>{t.splice(0,t.length,...t.filter(t=>t!==e))};return{setTimeout:(n,r)=>{const o=window.setTimeout(()=>{e(o),n()},r);return t.push(o),o},clearTimeout:t=>{void 0!==t&&(e(t),window.clearTimeout(t))}}},[t]);return l.createElement(Be.Provider,{value:n},e)}const Ke=l.forwardRef(function({label:e,className:t,icon:n,renderIcon:r,onClick:o,style:i,...a},c){const{styles:s,labels:u}=De(),d=re(u,e);return l.createElement("button",{ref:c,type:"button",title:d,"aria-label":d,className:J(Q("button"),t),onClick:o,style:{...i,...s.button},...a},r?r():l.createElement(n,{className:Q(V),style:s.icon}))});function Ge(e,t){const n=e=>l.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 Je(e,t){return Ge(e,l.createElement("g",{fill:"currentColor"},l.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}const Qe=Je("Close",l.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"})),et=Je("Previous",l.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),tt=Je("Next",l.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),nt=Je("Loading",l.createElement(l.Fragment,null,Array.from({length:8}).map((e,t,n)=>l.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)`})))),rt=Je("Error",l.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"})),ot=ae()?l.useLayoutEffect:l.useEffect;function lt(){const[e,t]=l.useState(!1);return l.useEffect(()=>{var e,n;const r=null===(e=window.matchMedia)||void 0===e?void 0:e.call(window,"(prefers-reduced-motion: reduce)");t(null==r?void 0:r.matches);const o=e=>t(e.matches);return null===(n=null==r?void 0:r.addEventListener)||void 0===n||n.call(r,"change",o),()=>{var e;return null===(e=null==r?void 0:r.removeEventListener)||void 0===e?void 0:e.call(r,"change",o)}},[]),e}function it(e,t){const n=l.useRef(void 0),r=l.useRef(void 0),o=lt();return ot(()=>{var l,i,a;if(e.current&&void 0!==n.current&&!o){const{keyframes:o,duration:s,easing:u,onfinish:d}=t(n.current,e.current.getBoundingClientRect(),function(e){let t=0,n=0,r=0;const o=window.getComputedStyle(e).transform.match(/matrix.*\((.+)\)/);if(o){const e=o[1].split(",").map(de);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(o&&s){null===(l=r.current)||void 0===l||l.cancel(),r.current=void 0;try{r.current=null===(a=(i=e.current).animate)||void 0===a?void 0:a.call(i,o,{duration:s,easing:u})}catch(c){console.error(c)}r.current&&(r.current.onfinish=()=>{r.current=void 0,null==d||d()})}}n.current=void 0}),{prepareAnimation:e=>{n.current=e},isAnimationPlaying:()=>{var e;return"running"===(null===(e=r.current)||void 0===e?void 0:e.playState)}}}function at(){const e=l.useRef(null),t=l.useRef(void 0),[n,r]=l.useState();return{setContainerRef:l.useCallback(n=>{e.current=n,t.current&&(t.current.disconnect(),t.current=void 0);const o=()=>{if(n){const e=window.getComputedStyle(n),t=e=>parseFloat(e)||0;r({width:Math.round(n.clientWidth-t(e.paddingLeft)-t(e.paddingRight)),height:Math.round(n.clientHeight-t(e.paddingTop)-t(e.paddingBottom))})}else r(void 0)};o(),n&&"undefined"!=typeof ResizeObserver&&(t.current=new ResizeObserver(o),t.current.observe(n))},[]),containerRef:e,containerRect:n}}function ct(){const e=l.useRef(void 0),{setTimeout:t,clearTimeout:n}=je();return l.useCallback((r,o)=>{n(e.current),e.current=t(r,o>0?o:0)},[t,n])}function st(e){const t=l.useRef(e);return ot(()=>{t.current=e}),l.useCallback((...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}function ut(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function dt(e,t){return l.useMemo(()=>null==e&&null==t?null:n=>{ut(e,n),ut(t,n)},[e,t])}function mt(e,t=!1){const n=l.useRef(!1);ot(()=>{t&&n.current&&(n.current=!1,e())},[t,e]);return{onFocus:l.useCallback(()=>{n.current=!0},[]),onBlur:l.useCallback(()=>{n.current=!1},[])}}function ft(){return Ue().isRTL}function ht(e,t){const n=l.useRef(0),r=ct(),o=st((...t)=>{n.current=Date.now(),e(t)});return l.useCallback((...e)=>{r(()=>{o(e)},t-(Date.now()-n.current))},[t,o,r])}const pt=ne("slide"),vt=ne("slide_image");function gt({slide:e,offset:t,render:n,rect:r,imageFit:o,imageProps:i,onClick:a,onLoad:c,onError:s,style:u}){var d,m,f,h,p,v,g,b;const[x,w]=l.useState(E),{publish:y}=ze(),{setTimeout:S}=je(),N=l.useRef(null);l.useEffect(()=>{0===t&&y(k(x))},[t,x,y]);const P=st(e=>{("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{e.parentNode&&(w(M),S(()=>{null==c||c(e)},0))})}),R=l.useCallback(e=>{N.current=e,(null==e?void 0:e.complete)&&P(e)},[P]),I=l.useCallback(e=>{P(e.currentTarget)},[P]),L=st(()=>{w(C),null==s||s()}),F=ue(e,o),z=(e,t)=>Number.isFinite(e)?e:t,T=z(Math.max(...(null!==(m=null===(d=e.srcSet)||void 0===d?void 0:d.map(e=>e.width))&&void 0!==m?m:[]).concat(e.width?[e.width]:[]).filter(Boolean)),(null===(f=N.current)||void 0===f?void 0:f.naturalWidth)||0),O=z(Math.max(...(null!==(p=null===(h=e.srcSet)||void 0===h?void 0:h.map(e=>e.height))&&void 0!==p?p:[]).concat(e.height?[e.height]:[]).filter(Boolean)),(null===(v=N.current)||void 0===v?void 0:v.naturalHeight)||0),D=T&&O?{maxWidth:`min(${T}px, 100%)`,maxHeight:`min(${O}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},Y=null===(g=e.srcSet)||void 0===g?void 0:g.slice().sort((e,t)=>e.width-t.width).map(e=>`${e.src} ${e.width}w`).join(", "),W=Y&&r&&ae()?`${Math.round(Math.min(r&&!F&&e.width&&e.height?r.height/e.height*e.width:Number.MAX_VALUE,r.width))}px`:void 0,{style:$,className:A,..._}=("function"==typeof i?i(e):i)||{};return l.createElement(l.Fragment,null,l.createElement("img",{ref:R,onLoad:I,onError:L,onClick:a,draggable:!1,className:J(Q(vt()),F&&Q(vt("cover")),x!==M&&Q(vt("loading")),A),style:{...D,...u,...$},..._,alt:null!==(b=e.alt)&&void 0!==b?b:"",sizes:W,srcSet:Y,src:e.src}),x!==M&&l.createElement("div",{className:Q(pt("placeholder"))},x===E&&((null==n?void 0:n.iconLoading)?n.iconLoading():l.createElement(nt,{className:J(Q(V),Q(pt(E)))})),x===C&&((null==n?void 0:n.iconError)?n.iconError():l.createElement(rt,{className:J(Q(V),Q(pt(C)))}))))}const bt=l.forwardRef(function({className:e,children:t,onFocus:n,onBlur:r,...o},i){const a=l.useRef(null),[c,s]=l.useState(!1),{trackFocusWithin:u}=Ne(),d=st(()=>{if(a.current){const e="rtl"===window.getComputedStyle(a.current).direction;e!==c&&s(e)}});return l.useEffect(d),l.createElement(Le,{nodeRef:a},l.createElement(Ve,{isRTL:c},l.createElement("div",{ref:dt(i,a),className:J(Q("root"),e),...u(n,r),...o},t)))});var xt,wt;function Et(e,t,n,r,o){l.useEffect(()=>o?()=>{}:le(e($,t),e(A,n),e(_,r),e(Z,r),e(H,r)),[e,t,n,r,o])}!function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL",e[e.ANIMATION=3]="ANIMATION"}(xt||(xt={})),function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL"}(wt||(wt={}));const yt=ne("container"),Ct=l.createContext(null),Mt=ie("useController","ControllerContext",Ct);const kt=ye(f,function({children:e,...t}){var n;const{carousel:r,animation:o,controller:i,on:a,styles:c,render:s}=t,{closeOnPullUp:u,closeOnPullDown:d,preventDefaultWheelX:m,preventDefaultWheelY:f}=i,[p,v]=l.useState(),g=$e(),b=_e(),[x,w]=l.useState(xt.NONE),E=l.useRef(0),y=l.useRef(0),C=l.useRef(1),{registerSensors:M,subscribeSensors:k}=function(){const[e]=l.useState({}),t=l.useCallback((t,n)=>{var r;null===(r=e[t])||void 0===r||r.forEach(e=>{n.isPropagationStopped()||e(n)})},[e]);return{registerSensors:l.useMemo(()=>({onPointerDown:e=>t($,e),onPointerMove:e=>t(A,e),onPointerUp:e=>t(_,e),onPointerLeave:e=>t(Z,e),onPointerCancel:e=>t(H,e),onKeyDown:e=>t(X,e),onKeyUp:e=>t("onKeyUp",e),onWheel:e=>t(U,e)}),[t]),subscribeSensors:l.useCallback((t,n)=>(e[t]||(e[t]=[]),e[t].unshift(n),()=>{const r=e[t];r&&r.splice(0,r.length,...r.filter(e=>e!==n))}),[e])}}(),{subscribe:S,publish:N}=ze(),P=ct(),R=ct(),I=ct(),{containerRef:F,setContainerRef:V,containerRect:B}=at(),j=dt(function({preventDefaultWheelX:e,preventDefaultWheelY:t}){const n=l.useRef(null),r=st(n=>{const r=Math.abs(n.deltaX)>Math.abs(n.deltaY);(r&&e||!r&&t||n.ctrlKey)&&n.preventDefault()});return l.useCallback(e=>{var t;e?e.addEventListener("wheel",r,{passive:!1}):null===(t=n.current)||void 0===t||t.removeEventListener("wheel",r),n.current=e},[r])}({preventDefaultWheelX:m,preventDefaultWheelY:f}),V),q=l.useRef(null),K=dt(q,void 0),{getOwnerDocument:G}=Ie(),te=ft(),ne=e=>(te?-1:1)*("number"==typeof e?e:1),re=st(()=>{var e;return null===(e=F.current)||void 0===e?void 0:e.focus()}),oe=st(()=>t),ie=st(()=>g),ae=l.useCallback(e=>N(O,e),[N]),se=l.useCallback(e=>N(D,e),[N]),ue=l.useCallback(()=>N(W),[N]),de=e=>!(r.finite&&(ne(e)>0&&0===g.currentIndex||ne(e)<0&&g.currentIndex===g.slides.length-1)),he=e=>{var t;E.current=e,null===(t=F.current)||void 0===t||t.style.setProperty(ee("swipe_offset"),`${Math.round(e)}px`)},pe=e=>{var t,n;y.current=e,C.current=(()=>{const t=d&&e>0?e:u&&e<0?-e:0;return Math.min(Math.max(ce(1-t/60*.5,2),.5),1)})(),null===(t=F.current)||void 0===t||t.style.setProperty(ee("pull_offset"),`${Math.round(e)}px`),null===(n=F.current)||void 0===n||n.style.setProperty(ee("pull_opacity"),`${C.current}`)},{prepareAnimation:ve}=it(q,(e,t,n)=>{if(q.current&&B)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}}),ge=(e,t)=>{if(u||d){pe(e);let n=0;q.current&&(n=o.fade*(t?2:1),ve({rect:q.current.getBoundingClientRect(),opacity:C.current,duration:n})),I(()=>{pe(0),w(xt.NONE)},n),w(xt.ANIMATION),t||ue()}},{prepareAnimation:be,isAnimationPlaying:xe}=it(q,(e,t,n)=>{var o;if(q.current&&B&&(null===(o=g.animation)||void 0===o?void 0:o.duration)){const o=me(r.spacing),l=(o.percent?o.percent*B.width/100:o.pixel)||0;return{keyframes:[{transform:`translate(${ne(g.globalIndex-e.index)*(B.width+l)+e.rect.x-t.x+n.x}px, 0)`},{transform:"translate(0, 0)"}],duration:g.animation.duration,easing:g.animation.easing}}}),we=st(e=>{var t,n;const r=e.offset||0,l=r?o.swipe:null!==(t=o.navigation)&&void 0!==t?t:o.swipe,i=r||xe()?o.easing.swipe:o.easing.navigation;let{direction:a}=e;const c=null!==(n=e.count)&&void 0!==n?n:1;let s=xt.ANIMATION,u=l*c;if(!a){const t=null==B?void 0:B.width,n=e.duration||0,o=t?l/t*Math.abs(r):l;0!==c?(n<o?u=u/o*Math.max(n,o/5):t&&(u=l/t*(t-Math.abs(r))),a=ne(r)>0?O:D):u=l/2}let d=0;a===O?de(ne(1))?d=-c:(s=xt.NONE,u=l):a===D&&(de(ne(-1))?d=c:(s=xt.NONE,u=l)),u=Math.round(u),R(()=>{he(0),w(xt.NONE)},u),q.current&&be({rect:q.current.getBoundingClientRect(),index:g.globalIndex}),w(s),N(Y,{type:"swipe",increment:d,duration:u,easing:i})});l.useEffect(()=>{var e,t;(null===(e=g.animation)||void 0===e?void 0:e.increment)&&(null===(t=g.animation)||void 0===t?void 0:t.duration)&&P(()=>b({type:"swipe",increment:0}),g.animation.duration)},[g.animation,b,P]);const Ee=[k,de,(null==B?void 0:B.width)||0,o.swipe,()=>w(xt.SWIPE),e=>he(e),(e,t)=>we({offset:e,duration:t,count:1}),e=>we({offset:e,count:0})],ye=[()=>{d&&w(xt.PULL)},e=>pe(e),e=>ge(e),e=>ge(e,!0)];!function({disableSwipeNavigation:e,closeOnBackdropClick:t},n,r,o,i,a,c,s,u,d,m,f,h,p,v,g){const b=l.useRef(0),x=l.useRef([]),w=l.useRef(void 0),E=l.useRef(0),y=l.useRef(wt.NONE),C=l.useCallback(e=>{w.current===e.pointerId&&(w.current=void 0,y.current=wt.NONE);const t=x.current;t.splice(0,t.length,...t.filter(t=>t.pointerId!==e.pointerId))},[]),M=l.useCallback(e=>{C(e),e.persist(),x.current.push(e)},[C]),k=l.useCallback(e=>x.current.find(({pointerId:t})=>e.pointerId===t),[]),S=st(e=>{M(e)}),N=(e,t)=>m&&e>t||d&&e<-t,P=st(e=>{const n=k(e);if(n)if(w.current===e.pointerId){const e=Date.now()-E.current,t=b.current;y.current===wt.SWIPE?Math.abs(t)>.3*o||Math.abs(t)>5&&e<i?s(t,e):u(t):y.current===wt.PULL&&(N(t,60)?p(t,e):v(t)),b.current=0,y.current=wt.NONE}else{const{target:r}=e;t&&r instanceof HTMLElement&&r===n.target&&(r.classList.contains(Q(z))||r.classList.contains(Q(T)))&&g()}C(e)});Et(n,S,st(t=>{const n=k(t);if(n){const o=w.current===t.pointerId;if(0===t.buttons)return void(o&&0!==b.current?P(t):C(n));const l=t.clientX-n.clientX,i=t.clientY-n.clientY;if(void 0===w.current){const n=e=>{M(t),w.current=t.pointerId,E.current=Date.now(),y.current=e};Math.abs(l)>Math.abs(i)&&Math.abs(l)>30&&r(l)?e||(n(wt.SWIPE),a()):Math.abs(i)>Math.abs(l)&&N(i,30)&&(n(wt.PULL),f())}else o&&(y.current===wt.SWIPE?(b.current=l,c(l)):y.current===wt.PULL&&(b.current=i,h(i)))}}),P)}(i,...Ee,u,d,...ye,ue),function(e,t,n,r,o,i,a,c,s){const u=l.useRef(0),d=l.useRef(0),m=l.useRef(void 0),f=l.useRef(void 0),h=l.useRef(0),p=l.useRef(void 0),v=l.useRef(0),{setTimeout:g,clearTimeout:b}=je(),x=l.useCallback(()=>{m.current&&(b(m.current),m.current=void 0)},[b]),w=l.useCallback(()=>{f.current&&(b(f.current),f.current=void 0)},[b]),E=st(()=>{e!==xt.SWIPE&&(u.current=0,v.current=0,x(),w())});l.useEffect(E,[e,E]);const y=st(e=>{f.current=void 0,u.current===e&&s(u.current)}),C=st(t=>{if(t.ctrlKey)return;if(Math.abs(t.deltaY)>Math.abs(t.deltaX))return;const l=e=>{h.current=e,b(p.current),p.current=e>0?g(()=>{h.current=0,p.current=void 0},300):void 0};if(e===xt.NONE){if(Math.abs(t.deltaX)<=1.2*Math.abs(h.current))return void l(t.deltaX);if(!n(-t.deltaX))return;if(d.current+=t.deltaX,x(),Math.abs(d.current)>30)d.current=0,l(0),v.current=Date.now(),i();else{const e=d.current;m.current=g(()=>{m.current=void 0,e===d.current&&(d.current=0)},o)}}else if(e===xt.SWIPE){let e=u.current-t.deltaX;if(e=Math.min(Math.abs(e),r)*Math.sign(e),u.current=e,a(e),w(),Math.abs(e)>.2*r)return l(t.deltaX),void c(e,Date.now()-v.current);f.current=g(()=>y(e),2*o)}else l(t.deltaX)});l.useEffect(()=>t(U,C),[t,C])}(x,...Ee);const Ce=st(()=>{i.focus&&G().querySelector(`.${Q(h)} .${Q(yt())}`)&&re()});l.useEffect(Ce,[Ce]);const Me=st(()=>{var e;null===(e=a.view)||void 0===e||e.call(a,{index:g.currentIndex})});l.useEffect(Me,[g.globalIndex,Me]),l.useEffect(()=>le(S(O,e=>we({direction:O,...e})),S(D,e=>we({direction:D,...e})),S(Y,e=>b(e))),[S,we,b]);const ke=l.useMemo(()=>({prev:ae,next:se,close:ue,focus:re,slideRect:B?fe(B,r.padding):{width:0,height:0},containerRect:B||{width:0,height:0},subscribeSensors:k,containerRef:F,setCarouselRef:K,toolbarWidth:p,setToolbarWidth:v}),[ae,se,ue,re,k,B,F,K,p,v,r.padding]);return l.useImperativeHandle(i.ref,()=>({prev:ae,next:se,close:ue,focus:re,getLightboxProps:oe,getLightboxState:ie}),[ae,se,ue,re,oe,ie]),l.createElement("div",{ref:j,className:J(Q(yt()),Q(L)),style:{...x===xt.SWIPE?{[ee("swipe_offset")]:`${Math.round(E.current)}px`}:null,...x===xt.PULL?{[ee("pull_offset")]:`${Math.round(y.current)}px`,[ee("pull_opacity")]:`${C.current}`}:null,..."none"!==i.touchAction?{[ee("controller_touch_action")]:i.touchAction}:null,...c.container},tabIndex:-1,...M},B&&l.createElement(Ct.Provider,{value:ke},e,null===(n=s.controls)||void 0===n?void 0:n.call(s)))});function St(e){return te(m,e)}function Nt(e){return te(z,e)}function Pt({slide:e,offset:t}){const n=l.useRef(null),{currentIndex:r,slides:o}=$e(),{slideRect:i,focus:a}=Mt(),{render:c,carousel:{imageFit:s,imageProps:u},on:{click:d},styles:{slide:m},labels:f}=De(),{getOwnerDocument:h}=Ie(),p=0!==t;l.useEffect(()=>{var e;p&&(null===(e=n.current)||void 0===e?void 0:e.contains(h().activeElement))&&a()},[p,a,h]);return l.createElement("div",{ref:n,className:J(Q(Nt()),!p&&Q(Nt("current")),Q(L)),...(v=p,{inert:we?v:v?"":void 0}),style:m,role:"group","aria-roledescription":re(f,"Slide"),"aria-label":oe(f,o,r+t)},(()=>{var n,o,a,m;let f=null===(n=c.slide)||void 0===n?void 0:n.call(c,{slide:e,offset:t,rect:i});return!f&&se(e)&&(f=l.createElement(gt,{slide:e,offset:t,render:c,rect:i,imageFit:s,imageProps:u,onClick:p?void 0:()=>null==d?void 0:d({index:r})})),f?l.createElement(l.Fragment,null,null===(o=c.slideHeader)||void 0===o?void 0:o.call(c,{slide:e}),(null!==(a=c.slideContainer)&&void 0!==a?a:({children:e})=>e)({slide:e,children:f}),null===(m=c.slideFooter)||void 0===m?void 0:m.call(c,{slide:e})):null})());var v}function Rt(){const e=De().styles.slide;return l.createElement("div",{className:Q(z),style:e})}const It=ye(m,function({carousel:e,labels:t}){const{slides:n,currentIndex:r,globalIndex:o}=$e(),{setCarouselRef:i}=Mt(),{autoPlaying:a,focusWithin:c}=Ne(),s=me(e.spacing),u=me(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),m=[];if(pe(n))for(let l=r-d;l<=r+d;l+=1){const t=ve(n,l),i=o-r+l,a=e.finite&&(l<0||l>n.length-1);m.push(a?{key:i}:{key:[`${i}`,be(t)].filter(Boolean).join("|"),offset:l-r,slide:t})}return l.createElement("div",{ref:i,className:J(Q(St()),m.length>0&&Q(St("with_slides"))),style:{[`${ee(St("slides_count"))}`]:m.length,[`${ee(St("spacing_px"))}`]:s.pixel||0,[`${ee(St("spacing_percent"))}`]:s.percent||0,[`${ee(St("padding_px"))}`]:u.pixel||0,[`${ee(St("padding_percent"))}`]:u.percent||0},role:"region","aria-live":a&&!c?"off":"polite","aria-roledescription":re(t,"Carousel"),"aria-label":re(t,"Photo gallery")},m.map(({key:e,slide:t,offset:n})=>t?l.createElement(Pt,{key:e,slide:t,offset:n}):l.createElement(Rt,{key:e})))});function Lt(){const{carousel:e}=De(),{slides:t,currentIndex:n}=$e();return{prevDisabled:0===t.length||e.finite&&0===n,nextDisabled:0===t.length||e.finite&&n===t.length-1}}function Ft({label:e,icon:t,renderIcon:n,action:r,onClick:o,disabled:i,style:a}){return l.createElement(Ke,{label:e,icon:t,renderIcon:n,className:Q(`navigation_${r}`),disabled:i,onClick:o,style:a,...mt(Mt().focus,i)})}const zt=ye("navigation",function({render:{buttonPrev:e,buttonNext:t,iconPrev:n,iconNext:r},styles:o}){const{prev:i,next:a,subscribeSensors:c}=Mt(),{prevDisabled:s,nextDisabled:u}=Lt();return function(e){var t;const n=ft(),{publish:r}=ze(),{animation:o}=De(),{prevDisabled:i,nextDisabled:a}=Lt(),c=(null!==(t=o.navigation)&&void 0!==t?t:o.swipe)/2,s=ht(()=>r(O),c),u=ht(()=>r(D),c),d=st(e=>{switch(e.key){case"Escape":r(W);break;case"ArrowLeft":(n?a:i)||(n?u:s)();break;case"ArrowRight":(n?i:a)||(n?s:u)()}});l.useEffect(()=>e(X,d),[e,d])}(c),l.createElement(l.Fragment,null,e?e():l.createElement(Ft,{label:"Previous",action:O,icon:et,renderIcon:n,style:o.navigationPrev,disabled:s,onClick:i}),t?t():l.createElement(Ft,{label:"Next",action:D,icon:tt,renderIcon:r,style:o.navigationNext,disabled:u,onClick:a}))}),Tt=Q("no_scroll"),Ot=Q(F);function Dt(e){return"style"in e}function Yt(e,t,n){const r=window.getComputedStyle(e),o=n?"padding-left":"padding-right",l=n?r.paddingLeft:r.paddingRight,i=e.style.getPropertyValue(o);return e.style.setProperty(o,`${(de(l)||0)+t}px`),()=>{i?e.style.setProperty(o,i):e.style.removeProperty(o)}}const Wt=ye("no-scroll",function({noScroll:{disabled:e},children:t}){const n=ft(),{getOwnerDocument:r,getOwnerWindow:o}=Ie();return l.useEffect(()=>{if(e)return()=>{};const t=[],l=o(),{body:i,documentElement:a}=r(),c=Math.round(l.innerWidth-a.clientWidth);if(c>0){t.push(Yt(i,c,n));const e=i.getElementsByTagName("*");for(let r=0;r<e.length;r+=1){const o=e[r];Dt(o)&&"fixed"===l.getComputedStyle(o).getPropertyValue("position")&&!o.classList.contains(Ot)&&t.push(Yt(o,c,n))}}return i.classList.add(Tt),()=>{i.classList.remove(Tt),t.forEach(e=>e())}},[n,e,r,o]),l.createElement(l.Fragment,null,t)});function $t(e){return te(h,e)}function At(e,t,n){const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r?e.setAttribute(t,r):e.removeAttribute(t)}}const _t=ye(h,function({portal:{root:e,container:{className:t,style:n,...r}={}},animation:o,styles:i,className:a,on:c,close:s,labels:u,children:d}){const[m,f]=l.useState(!1),[h,p]=l.useState(!1),v=l.useRef([]),g=l.useRef(null),{setTimeout:b}=je(),{subscribe:x}=ze(),w=lt()?0:o.fade;l.useEffect(()=>(f(!0),()=>{f(!1),p(!1)}),[]);const E=st(()=>{v.current.forEach(e=>e()),v.current=[]}),y=st(()=>{var e;p(!1),E(),null===(e=c.exiting)||void 0===e||e.call(c),b(()=>{var e;null===(e=c.exited)||void 0===e||e.call(c),s()},w)});l.useEffect(()=>x(W,y),[x,y]);const C=st(e=>{var t,n,r;!function(e){e.scrollTop}(e),p(!0),null===(t=c.entering)||void 0===t||t.call(c);const o=null!==(r=null===(n=e.parentNode)||void 0===n?void 0:n.children)&&void 0!==r?r:[];for(let l=0;l<o.length;l+=1){const t=o[l];-1===["TEMPLATE","SCRIPT","STYLE"].indexOf(t.tagName)&&t!==e&&(v.current.push(At(t,"inert","")),v.current.push(At(t,"aria-hidden","true")))}v.current.push(()=>{var e,t;null===(t=null===(e=g.current)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)}),b(()=>{var e;null===(e=c.entered)||void 0===e||e.call(c)},w)}),M=l.useCallback(e=>{e?C(e):E()},[C,E]);return m?(0,K.createPortal)(l.createElement(bt,{ref:M,className:J(a,t,Q($t()),Q(F),h&&Q($t("open"))),"aria-modal":!0,role:"dialog","aria-label":re(u,"Lightbox"),style:{...o.fade!==Ee.animation.fade?{[ee("fade_animation_duration")]:`${w}ms`}:null,...o.easing.fade!==Ee.animation.easing.fade?{[ee("fade_animation_timing_function")]:o.easing.fade}:null,...i.root,...n},onFocus:e=>{g.current||(g.current=e.relatedTarget)},...r},d),e||document.body):null});const Zt=ye("root",function({children:e}){return l.createElement(l.Fragment,null,e)});const Ht=ye(p,function({toolbar:{buttons:e},render:{buttonClose:t,iconClose:n},styles:r}){const{close:o,setToolbarWidth:i}=Mt(),{setContainerRef:a,containerRect:c}=at();return ot(()=>{i(null==c?void 0:c.width)},[i,null==c?void 0:c.width]),l.createElement("div",{ref:a,style:r.toolbar,className:Q(te(p,s))},null==e?void 0:e.map(e=>e===W?t?t():l.createElement(Ke,{key:W,label:"Close",icon:Qe,renderIcon:n,onClick:o}):e));var s});function Xt(e,t){var n;return l.createElement(e.module.component,{key:e.module.name,...t},null===(n=e.children)||void 0===n?void 0:n.map(e=>Xt(e,t)))}function Ut(e,t={}){const{easing:n,...r}=e,{easing:o,...l}=t;return{easing:{...n,...o},...r,...l}}function Vt({carousel:e,animation:t,render:n,toolbar:r,controller:o,noScroll:i,on:a,plugins:c,slides:s,index:u,...d}){const{animation:m,carousel:h,render:p,toolbar:v,controller:g,noScroll:b,on:x,slides:w,index:E,plugins:y,...C}=Ee,{config:M,augmentation:k}=function(e,t=[],n=[]){let r=e;const o=e=>{const t=[...r];for(;t.length>0;){const n=t.pop();if((null==n?void 0:n.module.name)===e)return!0;(null==n?void 0:n.children)&&t.push(...n.children)}return!1},l=(e,t)=>{r=""!==e?ke(r,e,e=>[Ce(t,[e])]):[Ce(t,r)]},i=(e,t)=>{r=ke(r,e,e=>[Ce(e.module,[Ce(t,e.children)])])},a=(e,t,n)=>{r=ke(r,e,e=>{var r;return[Ce(e.module,[...n?[Ce(t)]:[],...null!==(r=e.children)&&void 0!==r?r:[],...n?[]:[Ce(t)]])]})},c=(e,t,n)=>{r=ke(r,e,e=>[...n?[Ce(t)]:[],e,...n?[]:[Ce(t)]])},s=e=>{i(f,e)},u=(e,t)=>{r=ke(r,e,e=>[Ce(t,e.children)])},d=e=>{r=ke(r,e,e=>e.children)},m=e=>{n.push(e)};return t.forEach(e=>{e({contains:o,addParent:l,append:i,addChild:a,addSibling:c,addModule:s,replace:u,remove:d,augment:m})}),{config:r,augmentation:e=>n.reduce((e,t)=>t(e),e)}}([Ce(_t,[Ce(Wt,[Ce(kt,[Ce(It),Ce(Ht),Ce(zt)])])])],c||y),S=k({animation:Ut(m,t),carousel:{...h,...e},render:{...p,...n},toolbar:{...v,...r},controller:{...g,...o},noScroll:{...b,...i},on:{...x,...a},...C,...d});return S.open?l.createElement(Ye,{...S},l.createElement(He,{slides:s||w,index:de(u||E)},l.createElement(qe,null,l.createElement(Te,null,l.createElement(Pe,null,Xt(Ce(Zt,M),S)))))):null}const Bt=e=>Q(`slide_${e}`),jt={descriptionTextAlign:"start",descriptionMaxLines:3,showToggle:!1,hidden:!1},qt=e=>({...jt,...e});const Kt=l.createContext(null),Gt=ie("useCaptions","CaptionsContext",Kt);function Jt({captions:e,children:t}){const{ref:n,hidden:r}=qt(e),[o,i]=l.useState(!r),a=l.useMemo(()=>({visible:o,show:()=>i(!0),hide:()=>i(!1)}),[o]);return l.useImperativeHandle(n,()=>a,[a]),l.createElement(Kt.Provider,{value:a},t)}function Qt({title:e}){const{toolbarWidth:t}=Mt(),{styles:n}=De(),{visible:r}=Gt();return r?l.createElement("div",{role:"heading","aria-level":2,style:n.captionsTitleContainer,className:J(Bt("captions_container"),Bt("title_container"))},l.createElement("div",{className:Bt("title"),style:{...t?{[ee("toolbar_width")]:`${t}px`}:null,...n.captionsTitle}},e)):null}function en({description:e}){const{descriptionTextAlign:t,descriptionMaxLines:n}=function(){const{captions:e}=De();return qt(e)}(),{styles:r,labels:o}=De(),{visible:i}=Gt();return i?l.createElement("div",{style:r.captionsDescriptionContainer,className:J(Bt("captions_container"),Bt("description_container"))},l.createElement("div",{className:Bt("description"),style:{...t!==jt.descriptionTextAlign||n!==jt.descriptionMaxLines?{[ee("slide_description_text_align")]:t,[ee("slide_description_max_lines")]:n}:null,...r.captionsDescription},role:"paragraph","aria-roledescription":re(o,"Caption")},"string"==typeof e?e.split("\n").flatMap((e,t)=>[...t>0?[l.createElement("br",{key:t})]:[],e]):e)):null}const tn=()=>l.createElement(l.Fragment,null,l.createElement("path",{strokeWidth:2,stroke:"currentColor",strokeLinejoin:"round",fill:"none",d:"M3 5l18 0l0 14l-18 0l0-14z"}),l.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"})),nn=Je("CaptionsVisible",tn()),rn=(on="CaptionsVisible",ln=tn(),Ge(on,l.createElement(l.Fragment,null,l.createElement("defs",null,l.createElement("mask",{id:"strike"},l.createElement("path",{d:"M0 0h24v24H0z",fill:"white"}),l.createElement("path",{d:"M0 0L24 24",stroke:"black",strokeWidth:4}))),l.createElement("path",{d:"M0.70707 2.121320L21.878680 23.292883",stroke:"currentColor",strokeWidth:2}),l.createElement("g",{fill:"currentColor",mask:"url(#strike)"},l.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),ln))));var on,ln;function an(){const{visible:e,show:t,hide:n}=Gt(),{render:r}=De();return r.buttonCaptions?l.createElement(l.Fragment,null,r.buttonCaptions({visible:e,show:t,hide:n})):l.createElement(Ke,{label:e?"Hide captions":"Show captions",icon:e?nn:rn,renderIcon:e?r.iconCaptionsVisible:r.iconCaptionsHidden,onClick:e?n:t})}function cn({augment:e,addModule:t}){e(({captions:e,render:{slideFooter:t,...n},toolbar:r,...o})=>{const i=qt(e);return{render:{slideFooter:({slide:e})=>l.createElement(l.Fragment,null,null==t?void 0:t({slide:e}),e.title&&l.createElement(Qt,{title:e.title}),e.description&&l.createElement(en,{description:e.description})),...n},toolbar:xe(r,v,i.showToggle?l.createElement(an,null):null),captions:i,...o}}),t(ye(v,Jt))}const sn={auto:!1,ref:null},un=e=>({...sn,...e}),dn=l.createContext(null),mn=ie("useFullscreen","FullscreenContext",dn);function fn({fullscreen:e,on:t,children:n}){const{auto:r,ref:o}=un(e),i=l.useRef(null),[a,c]=l.useState(),[s,u]=l.useState(!1),d=l.useRef(!1),{getOwnerDocument:m}=Ie();ot(()=>{var e,t,n,r;const o=m();c(!(null!==(r=null!==(n=null!==(t=null!==(e=o.fullscreenEnabled)&&void 0!==e?e:o.webkitFullscreenEnabled)&&void 0!==t?t:o.mozFullScreenEnabled)&&void 0!==n?n:o.msFullscreenEnabled)&&void 0!==r&&r))},[m]);const f=l.useCallback(()=>{var e;const t=m(),n=t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement;return(null===(e=null==n?void 0:n.shadowRoot)||void 0===e?void 0:e.fullscreenElement)||n},[m]),h=l.useCallback(()=>{const e=i.current;try{e.requestFullscreen?e.requestFullscreen().catch(()=>{}):e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()}catch(t){}},[]),p=l.useCallback(()=>{if(!f())return;const e=m();try{e.exitFullscreen?e.exitFullscreen().catch(()=>{}):e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen()}catch(t){}},[f,m]);l.useEffect(()=>{const e=m(),t=()=>{u(f()===i.current)};return le(...["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"].map(n=>(e.addEventListener(n,t),()=>e.removeEventListener(n,t))))},[f,m]);const v=st(()=>{var e;return null===(e=t.enterFullscreen)||void 0===e?void 0:e.call(t)}),b=st(()=>{var e;return null===(e=t.exitFullscreen)||void 0===e?void 0:e.call(t)});l.useEffect(()=>{s&&(d.current=!0),d.current&&(s?v:b)()},[s,v,b]);const x=st(()=>{var e;return null===(e=r?h:null)||void 0===e||e(),p});l.useEffect(x,[x]);const w=l.useMemo(()=>({fullscreen:s,disabled:a,enter:h,exit:p}),[s,a,h,p]);return l.useImperativeHandle(o,()=>w,[w]),l.createElement("div",{ref:i,className:J(Q(g),Q(I))},l.createElement(dn.Provider,{value:w},n))}const hn=Je("EnterFullscreen",l.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"})),pn=Je("ExitFullscreen",l.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}));function vn(){var e;const{fullscreen:t,disabled:n,enter:r,exit:o}=mn(),{render:i}=De();return n?null:i.buttonFullscreen?l.createElement(l.Fragment,null,null===(e=i.buttonFullscreen)||void 0===e?void 0:e.call(i,{fullscreen:t,disabled:n,enter:r,exit:o})):l.createElement(Ke,{disabled:n,label:t?"Exit Fullscreen":"Enter Fullscreen",icon:t?pn:hn,renderIcon:t?i.iconExitFullscreen:i.iconEnterFullscreen,onClick:t?o:r})}function gn({augment:e,contains:t,addParent:n}){e(({fullscreen:e,toolbar:t,...n})=>({toolbar:xe(t,g,l.createElement(vn,null)),fullscreen:un(e),...n})),n(t(x)?x:f,ye(g,fn))}const bn={autoplay:!1,delay:3e3,ref:null},xn=e=>({...bn,...e}),wn=l.createContext(null),En=ie("useSlideshow","SlideshowContext",wn);function yn({slideshow:e,carousel:{finite:t},on:n,children:r}){const{autoplay:o,delay:i,ref:a}=xn(e),c=l.useRef(o),[s,u]=l.useState(o),d=l.useRef(void 0),m=l.useRef(void 0),{slides:f,currentIndex:h}=$e(),{setTimeout:p,clearTimeout:v}=je(),{subscribe:g}=ze(),{next:b}=Mt(),{setAutoPlaying:x}=Ne();l.useEffect(()=>x(s),[s,x]);const w=0===f.length||t&&h===f.length-1,k=l.useCallback(()=>{s||w||u(!0)},[s,w]),I=l.useCallback(()=>{s&&u(!1)},[s]),L=l.useCallback(()=>{v(d.current),d.current=void 0},[v]),F=st(()=>{L(),s&&!w&&m.current!==E&&m.current!==y&&(d.current=p(()=>{s&&(m.current=void 0,b())},i))});l.useEffect(F,[h,s,F]),l.useEffect(()=>{s&&w&&u(!1)},[h,s,w]);const z=st(()=>{var e;return null===(e=n.slideshowStart)||void 0===e?void 0:e.call(n)}),T=st(()=>{var e;return null===(e=n.slideshowStop)||void 0===e?void 0:e.call(n)});l.useEffect(()=>{s?z():c.current&&T(),c.current=s},[s,z,T]),l.useEffect(()=>le(L,g(S,()=>{m.current=E,L()}),g(N,()=>{m.current=y,L()}),g(P,()=>{m.current=C,F()}),g(R,()=>{m.current=M,F()})),[g,L,F]);const O=l.useMemo(()=>({playing:s,disabled:w,play:k,pause:I}),[s,w,k,I]);return l.useImperativeHandle(a,()=>O,[O]),l.createElement(wn.Provider,{value:O},r)}const Cn=Je("Play",l.createElement("path",{d:"M8 5v14l11-7z"})),Mn=Je("Pause",l.createElement("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"}));function kn(){const{playing:e,disabled:t,play:n,pause:r}=En(),{render:o}=De(),i=mt(Mt().focus,t);return o.buttonSlideshow?l.createElement(l.Fragment,null,o.buttonSlideshow({playing:e,disabled:t,play:n,pause:r})):l.createElement(Ke,{label:e?"Pause":"Play",icon:e?Mn:Cn,renderIcon:e?o.iconSlideshowPause:o.iconSlideshowPlay,onClick:e?r:n,disabled:t,...i})}function Sn({augment:e,addModule:t}){e(({slideshow:e,toolbar:t,...n})=>({toolbar:xe(t,b,l.createElement(kn,null)),slideshow:xn(e),...n})),t(ye(b,yn))}const Nn={minZoom:1,maxZoomPixelRatio:1,zoomInMultiplier:2,doubleTapDelay:300,doubleClickDelay:500,doubleClickMaxStops:2,keyboardMoveDistance:50,wheelZoomDistanceFactor:100,pinchZoomDistanceFactor:100,pinchZoomV4:!1,scrollToZoom:!1,maxZoom:8};function Pn(e){return Math.min(Math.max(e,Number.EPSILON),1)}function Rn(e){const{minZoom:t,...n}={...Nn,...e};return{minZoom:Pn(t),...n}}function In(){const{zoom:e}=De();return Rn(e)}function Ln(e,t){var n,r;let o={width:0,height:0},l={width:0,height:0};const{currentSlide:i}=$e(),{imageFit:a}=De().carousel,{maxZoomPixelRatio:c,maxZoom:s}=In();if(e&&i){const s={...i,...t};if(se(s)){const t=ue(s,a),i=Math.max(...((null===(n=s.srcSet)||void 0===n?void 0:n.map(e=>e.width))||[]).concat(s.width?[s.width]:[])),u=Math.max(...((null===(r=s.srcSet)||void 0===r?void 0:r.map(e=>e.height))||[]).concat(s.height?[s.height]:[]));i>0&&u>0&&e.width>0&&e.height>0&&(l=t?{width:Math.round(Math.min(i,e.width/e.height*u)),height:Math.round(Math.min(u,e.height/e.width*i))}:{width:i,height:u},l={width:l.width*c,height:l.height*c},o=t?{width:Math.min(e.width,l.width,i),height:Math.min(e.height,l.height,u)}:{width:Math.round(Math.min(e.width,e.height/u*i,i)),height:Math.round(Math.min(e.height,e.width/i*u,u))})}else e.width>0&&e.height>0&&(o=t&&t.width>0&&t.height>0?{width:Math.min(e.width,t.width),height:Math.min(e.height,t.height)}:{width:e.width,height:e.height})}const u=i&&o.width?se(i)?Math.max(ce(l.width/o.width,5),1):function(e,t){var n;const r="function"==typeof e?null!==(n=e(t))&&void 0!==n?n:Nn.maxZoom:e;return Math.max(r,1)}(s,i):1;return{imageRect:o,maxZoom:u}}function Fn(e,t){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)}function zn(e,t,n=100,r=2){return e*Math.min(1+Math.abs(t/n),r)**Math.sign(t)}function Tn(e,t,n){const[r,o]=l.useState(1),[i,a]=l.useState(0),[c,s]=l.useState(0),u=function(e,t,n,r){const o=l.useRef(void 0),i=l.useRef(void 0),{zoom:a}=De().animation,c=lt(),s=st(()=>{var l,s,u;if(null===(l=o.current)||void 0===l||l.cancel(),o.current=void 0,i.current&&(null==r?void 0:r.current)){try{o.current=null===(u=(s=r.current).animate)||void 0===u?void 0:u.call(s,[{transform:i.current},{transform:`scale(${e}) translateX(${t}px) translateY(${n}px)`}],{duration:c?0:null!=a?a:500,easing:o.current?"ease-out":"ease-in-out"})}catch(d){console.error(d)}i.current=void 0,o.current&&(o.current.onfinish=()=>{o.current=void 0})}});return ot(s,[e,t,n,s]),l.useCallback(()=>{i.current=(null==r?void 0:r.current)?window.getComputedStyle(r.current).transform:void 0},[r])}(r,i,c,n),{currentSlide:d,globalIndex:m}=$e(),{containerRect:f,slideRect:h}=Mt(),{minZoom:p,zoomInMultiplier:v}=In(),g=d&&se(d)?d.src:void 0,b=!(null==n?void 0:n.current);ot(()=>{o(1),a(0),s(0)},[m,g]);const x=l.useCallback((t,n,o)=>{const l=o||r,u=i-(t||0),d=c-(n||0),m=(e.width*l-h.width)/2/l,f=(e.height*l-h.height)/2/l;a(Math.min(Math.abs(u),Math.max(m,0))*Math.sign(u)),s(Math.min(Math.abs(d),Math.max(f,0))*Math.sign(d))},[r,i,c,h,e.width,e.height]),w=l.useCallback((e,n,l,i)=>{const a=ce(e+.01<t?e-.01>p?e:p:t,5);n||u(),x(l?l*(1/r-1/a):0,i?i*(1/r-1/a):0,a),o(a)},[r,p,t,x,u]),E=st(()=>{r>1&&(r>t&&w(t,!0),x())});ot(E,[f.width,f.height,E]);const y=l.useCallback(()=>{const e=r*v;w(r<1&&e>1?1:e)},[r,v,w]),C=l.useCallback(()=>{const e=r/v;w(r>1&&e<1?1:e)},[r,v,w]);return{zoom:r,offsetX:i,offsetY:c,disabled:b,changeOffsets:x,changeZoom:w,zoomIn:y,zoomOut:C}}const On=l.createContext(null),Dn=ie("useZoom","ZoomControllerContext",On);function Yn({children:e}){const[t,n]=l.useState(),{slideRect:r}=Mt(),{ref:o,minZoom:i}=In(),{imageRect:a,maxZoom:c}=Ln(r,null==t?void 0:t.imageDimensions),{zoom:s,offsetX:u,offsetY:d,disabled:m,changeZoom:f,changeOffsets:h,zoomIn:p,zoomOut:v}=Tn(a,c,null==t?void 0:t.zoomWrapperRef);!function(e,t){const{on:n}=De(),r=st(()=>{var r;t||null===(r=n.zoom)||void 0===r||r.call(n,{zoom:e})});l.useEffect(r,[e,r])}(s,m),function(e,t,n,r,o,i,a,c,s){const u=l.useRef([]),d=l.useRef(0),m=l.useRef(void 0),{globalIndex:f}=$e(),{getOwnerWindow:h}=Ie(),{containerRef:p,subscribeSensors:v}=Mt(),{keyboardMoveDistance:g,zoomInMultiplier:b,wheelZoomDistanceFactor:x,scrollToZoom:w,doubleTapDelay:E,doubleClickDelay:y,doubleClickMaxStops:C,pinchZoomDistanceFactor:M,pinchZoomV4:k}=In(),S=l.useCallback(e=>{if(p.current){const{pageX:t,pageY:n}=e,{scrollX:r,scrollY:o}=h(),{left:l,top:i,width:a,height:c}=p.current.getBoundingClientRect();return[t-l-r-a/2,n-i-o-c/2]}return[]},[p,h]),N=st(t=>{const{key:n,metaKey:r,ctrlKey:l}=t,s=r||l,u=()=>{t.preventDefault(),t.stopPropagation()};if(e>1){const e=(e,t)=>{u(),c(e,t)};"ArrowDown"===n?e(0,g):"ArrowUp"===n?e(0,-g):"ArrowLeft"===n?e(-g,0):"ArrowRight"===n&&e(g,0)}"+"===n||s&&"="===n?(u(),o()):"-"===n||s&&"_"===n?(u(),i()):s&&"0"===n&&(u(),a(1))}),P=st(t=>{if((t.ctrlKey||w)&&Math.abs(t.deltaY)>Math.abs(t.deltaX))return t.stopPropagation(),void a(zn(e,-t.deltaY,x),!0,...S(t));e>1&&(t.stopPropagation(),w||c(t.deltaX,t.deltaY))}),R=l.useCallback(e=>{const t=u.current;t.splice(0,t.length,...t.filter(t=>t.pointerId!==e.pointerId))},[]),I=l.useCallback(e=>{R(e),e.persist(),u.current.push(e)},[R]),L=st(r=>{var o;const l=u.current;if("mouse"===r.pointerType&&r.buttons>1||!(null===(o=null==s?void 0:s.current)||void 0===o?void 0:o.contains(r.target)))return;e>1&&r.stopPropagation();const{timeStamp:i}=r;if(0===l.length&&i-d.current<("touch"===r.pointerType?E:y)){d.current=0;const o=e>=1?e!==n?e*Math.max(n**(1/C),b):1:e!==t?e/Math.max(t**(-1/C),b):1;a(o,!1,...S(r))}else d.current=i;if(I(r),2===l.length){const t=Fn(l[0],l[1]);m.current={previousDistance:t,initialDistance:Math.max(t,1),initialZoom:e}}}),F=st(t=>{const n=u.current,r=n.find(e=>e.pointerId===t.pointerId);if(2===n.length&&m.current){t.stopPropagation(),I(t);const r=Fn(n[0],n[1]),o=k?m.current.initialZoom/m.current.initialDistance*r:zn(e,r-m.current.previousDistance,M);return a(o,!0,...n.map(e=>S(e)).reduce((e,t)=>t.map((t,n)=>e[n]+t/2))),void(m.current.previousDistance=r)}e>1&&(t.stopPropagation(),r&&(1===n.length&&c((r.clientX-t.clientX)/e,(r.clientY-t.clientY)/e),I(t)))}),z=l.useCallback(e=>{const t=u.current;2===t.length&&t.find(t=>t.pointerId===e.pointerId)&&(m.current=void 0),R(e)},[R]),T=l.useCallback(()=>{const e=u.current;e.splice(0,e.length),d.current=0,m.current=void 0},[]);Et(v,L,F,z,r),l.useEffect(T,[f,T]),l.useEffect(()=>r?()=>{}:le(T,v(X,N),v(U,P)),[r,v,T,N,P])}(s,i,c,m,p,v,f,h,null==t?void 0:t.zoomWrapperRef);const g=l.useMemo(()=>({zoom:s,minZoom:i,maxZoom:c,offsetX:u,offsetY:d,disabled:m,zoomIn:p,zoomOut:v,changeZoom:f}),[s,i,c,u,d,m,p,v,f]);l.useImperativeHandle(o,()=>g,[g]);const b=l.useMemo(()=>({...g,setZoomWrapper:n}),[g,n]);return l.createElement(On.Provider,{value:b},e)}const Wn=Je("ZoomIn",l.createElement(l.Fragment,null,l.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),l.createElement("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"}))),$n=Je("ZoomOut",l.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"})),An=l.forwardRef(function({zoomIn:e,onLoseFocus:t},n){const r=l.useRef(!1),o=l.useRef(!1),{zoom:i,minZoom:a,maxZoom:c,zoomIn:s,zoomOut:u,disabled:d}=Dn(),{render:m}=De(),f=d||(e?i>=c:i<=a);return l.useEffect(()=>{f&&r.current&&o.current&&t(),f||(r.current=!0)},[f,t]),l.createElement(Ke,{ref:n,disabled:f,label:e?"Zoom in":"Zoom out",icon:e?Wn:$n,renderIcon:e?m.iconZoomIn:m.iconZoomOut,onClick:e?s:u,onFocus:()=>{o.current=!0},onBlur:()=>{o.current=!1}})});function _n(){const e=l.useRef(null),t=l.useRef(null),{focus:n}=Mt(),r=l.useCallback(e=>{var t,r;(null===(t=e.current)||void 0===t?void 0:t.disabled)?n():null===(r=e.current)||void 0===r||r.focus()},[n]),o=l.useCallback(()=>r(e),[r]),i=l.useCallback(()=>r(t),[r]);return l.createElement(l.Fragment,null,l.createElement(An,{zoomIn:!0,ref:e,onLoseFocus:i}),l.createElement(An,{ref:t,onLoseFocus:o}))}function Zn(){const{render:e}=De(),t=Dn();return e.buttonZoom?l.createElement(l.Fragment,null,e.buttonZoom(t)):l.createElement(_n,null)}function Hn({current:e,preload:t},{type:n,source:r}){switch(n){case"fetch":return e?{current:e,preload:r}:{current:r};case"done":return r===t?{current:r}:{current:e,preload:t};default:throw new Error(q)}}function Xn(e){var t,n;const[{current:r,preload:o},i]=l.useReducer(Hn,{}),{slide:a,rect:c,imageFit:s,render:u,interactive:d}=e,m=a.srcSet.sort((e,t)=>e.width-t.width),f=null!==(t=a.width)&&void 0!==t?t:m[m.length-1].width,h=null!==(n=a.height)&&void 0!==n?n:m[m.length-1].height,p=ue(a,s),v=Math.max(...m.map(e=>e.width)),g=Math.min((p?Math.max:Math.min)(c.width,f*(c.height/h)),v),b=(ae()?null===window||void 0===window?void 0:window.devicePixelRatio:void 0)||1,x=st(()=>{var e;const t=null!==(e=m.find(e=>e.width>=g*b))&&void 0!==e?e:m[m.length-1];(!r||m.findIndex(e=>e.src===r)<m.findIndex(e=>e===t))&&i({type:"fetch",source:t.src})});ot(x,[c.width,c.height,b,x]);const w=st(e=>i({type:"done",source:e})),E={WebkitTransform:d?"initial":"translateZ(0)"};return p||Object.assign(E,c.width/c.height<f/h?{width:"100%",height:"auto"}:{width:"auto",height:"100%"}),l.createElement(l.Fragment,null,o&&o!==r&&l.createElement(gt,{key:"preload",...e,offset:void 0,slide:{...a,src:o,srcSet:void 0},style:{position:"absolute",visibility:"hidden",...E},onLoad:()=>w(o),render:{...u,iconLoading:()=>null,iconError:()=>null}}),r&&l.createElement(gt,{key:"current",...e,slide:{...a,src:r,srcSet:void 0},style:E}))}function Un({render:e,slide:t,offset:n,rect:r}){var o;const[i,a]=l.useState(),c=l.useRef(null),s=se(t),{zoom:u,maxZoom:d,offsetX:m,offsetY:f,setZoomWrapper:h}=Dn(),p=u>1,{carousel:v,on:g}=De(),{currentIndex:b}=$e();ot(()=>{if(0!==n||s||!c.current)return()=>{};const e=()=>{const e=c.current;if(!e)return;let t=0,n=0;for(const r of e.children)r instanceof HTMLElement&&(t=Math.max(t,r.offsetWidth),n=Math.max(n,r.offsetHeight));a(e=>e&&e.width===t&&e.height===n?e:{width:t,height:n})};if(e(),"undefined"==typeof ResizeObserver)return()=>{};const t=new ResizeObserver(e);for(const n of c.current.children)t.observe(n);return()=>t.disconnect()},[n,s,r]),ot(()=>0===n?(h({zoomWrapperRef:c,imageDimensions:i}),()=>h(void 0)):()=>{},[n,i,h]);let x=null===(o=e.slide)||void 0===o?void 0:o.call(e,{slide:t,offset:n,rect:r,zoom:u,maxZoom:d});if(!x&&s){const o={slide:t,offset:n,rect:r,render:e,imageFit:v.imageFit,imageProps:v.imageProps,onClick:0===n?()=>{var e;return null===(e=g.click)||void 0===e?void 0:e.call(g,{index:b})}:void 0};x=function(e){var t;return((null===(t=e.srcSet)||void 0===t?void 0:t.length)||0)>0}(t)?l.createElement(Xn,{...o,slide:t,interactive:p,rect:0===n?{width:r.width*u,height:r.height*u}:r}):l.createElement(gt,{onLoad:e=>a({width:e.naturalWidth,height:e.naturalHeight}),...o})}return x?l.createElement("div",{ref:c,className:J(Q(I),Q(L),Q(T),p&&Q("slide_wrapper_interactive")),style:0===n?{transform:`scale(${u}) translateX(${m}px) translateY(${f}px)`}:void 0},x):null}const Vn=({augment:e,addModule:t})=>{e(({zoom:e,toolbar:t,render:n,controller:r,...o})=>{const i=Rn(e);return{zoom:i,toolbar:xe(t,w,l.createElement(Zn,null)),render:{...n,slide:e=>{var t,r;return se(e.slide)||null!=e.slide.type&&(null===(t=i.supports)||void 0===t?void 0:t.includes(e.slide.type))?l.createElement(Un,{render:n,...e}):null===(r=n.slide)||void 0===r?void 0:r.call(n,e)}},controller:{...r,preventDefaultWheelY:i.scrollToZoom},...o}}),t(ye(w,Yn))};var Bn=e=>{let{screenshots:t}=e;const[n,o]=(0,i.A)({loop:!0},[(0,a.A)({stopOnInteraction:!1,stopOnMouseEnter:!0})]),{0:m,1:f}=(0,l.useState)(!1),{0:h,1:p}=(0,l.useState)(!1),{0:v,1:g}=(0,l.useState)(0),{0:b,1:x}=(0,l.useState)([]),{0:w,1:E}=(0,l.useState)(!1),y=(0,l.useMemo)(()=>t.map(e=>{const t=(0,r.c)(e.childImageSharp);return{src:e.publicURL,width:null==t?void 0:t.width,height:null==t?void 0:t.height}}),[t]),C=(0,l.useCallback)(()=>o&&o.scrollPrev(),[o]),M=(0,l.useCallback)(()=>o&&o.scrollNext(),[o]),k=(0,l.useCallback)(e=>o&&o.scrollTo(e),[o]),S=(0,l.useCallback)(e=>{x(e.scrollSnapList())},[]),N=(0,l.useCallback)(e=>{g(e.selectedScrollSnap()),f(e.canScrollPrev()),p(e.canScrollNext())},[]);return(0,l.useEffect)(()=>{o&&(S(o),N(o),o.on("reInit",S),o.on("reInit",N),o.on("select",N))},[o,S,N]),(0,c.Y)(l.Fragment,null,(0,c.Y)("div",{className:"h-full overflow-hidden relative",ref:n},(0,c.Y)("div",{className:"h-full flex items-center "},t.map(e=>{let{id:t,childImageSharp:n}=e;const o=(0,r.c)(n);return(0,c.Y)("div",{key:t,onClick:()=>E(!0),className:"h-full shrink-0 min-w-0 basis-full px-12 md:px-20 pt-2.5 pb-8 md:py-8 cursor-pointer flex items-center justify-center"},o?(0,c.Y)(r.G,{image:o,alt:"logo",className:"object-contain rounded-xl max-h-[424px]"}):null)})),(0,c.Y)(u,{onClick:C,enabled:m}),(0,c.Y)(d,{onClick:M,enabled:h}),(0,c.Y)("div",{className:"z-10 absolute bottom-1 left-0 right-0 flex justify-center items-center"},b.map((e,t)=>(0,c.Y)(s,{key:t,selected:t===v,onClick:()=>k(t)})))),(0,c.Y)(Vt,{open:w,close:()=>E(!1),slides:y,zoom:{scrollToZoom:!0,maxZoomPixelRatio:4,zoomInMultiplier:1.5},plugins:[cn,gn,Sn,Vn]}))},jn=n(6696),qn=n(8168);var Kn=e=>{let{title:t,text:n,className:r,children:o,textAttr:l,...i}=e;return(0,c.Y)("section",(0,qn.A)({},i,{className:"w-full"}),(0,c.Y)("h2",{className:"text-[24px] md:text-4xl text-secondary-100 uppercase w-full max-w-[320px] mb-2"},t),null!=l&&l.dangerouslySetInnerHTML?(0,c.Y)("div",(0,qn.A)({},l,{className:`text-secondary-100 text-base md:text-lg w-full max-w-[544px] float-right ${r}`})):(0,c.Y)("p",(0,qn.A)({},l,{className:`text-secondary-100 text-base md:text-lg w-full max-w-[544px] float-right ${r}`}),o||n))};var Gn=e=>{let{text:t,className:n,...r}=e;return(0,c.Y)("span",(0,qn.A)({},r,{className:`bg-main-70 px-5 h-10 md:h-16 whitespace-nowrap text-sm md:text-lg font-medium rounded-lg flex items-center ${n}`}),t)};var Jn=e=>{let{data:{markdownRemark:{frontmatter:{title:t,logo:n,description:l,challenge:i,clientDescription:a,team:s,screenshots:u,stack:d},html:m}},pageContext:{markupData:f,lang:h}}=e;const p=(0,r.c)(n);return(0,c.Y)("div",{itemScope:!0,itemType:"https://schema.org/CreativeWork",className:"flex"},(0,c.Y)(o.A,{maxWidthClass:"max-w-4.5xl",className:"flex-col text-secondary-70 py-6 md:py-16 lg:!px-0 gap-7 sm:gap-5 md:gap-8"},(0,c.Y)("div",{className:"flex flex-col flex-col-reverse items-center md:items-start md:flex-row justify-between gap-x-16 gap-y-2.5 pb-10 gradient-border border-b border-solid"},(0,c.Y)("div",{className:"flex-1 w-full md:max-w-[528px]"},(0,c.Y)("h1",{itemProp:"name",className:"w-full text-[24px] md:text-4xl font-semibold text-secondary-100 mb-5 uppercase"},t),(0,c.Y)("p",{itemProp:"description",className:"w-full text-base font-light text-secondary-100"},l)),p?(0,c.Y)("div",{className:"w-28 md:w-48 h-28 md:h-48 flex items-center justify-center"},(0,c.Y)(r.G,{image:p,imgStyle:{objectFit:"contain"},alt:"logo",itemProp:"image",className:"max-h-full max-w-full"})):null),(0,c.Y)(Kn,{title:f.clientSectionTitle,text:a,itemProp:"sourceOrganization",itemScope:!0,itemType:"https://schema.org/Organization",textAttr:{itemProp:"description"}}),(0,c.Y)(Kn,{title:f.challengeSectionTitle,text:i,textAttr:{itemProp:"about"}}),m?(0,c.Y)(Kn,{title:f.solutionSectionTitle,text:i,className:"project-solution",textAttr:{itemProp:"text",dangerouslySetInnerHTML:{__html:m}}}):null,null!=s&&s.length?(0,c.Y)(Kn,{title:f.teamSectionTitle,className:"flex gap-2.5 flex-wrap pt-2 md:pt-0"},s.map(e=>(0,c.Y)(Gn,{className:"text-secondary-70",key:e,id:e,text:e,itemProp:"contributor"}))):null,null!=d&&d.length?(0,c.Y)(Kn,{title:f.techSectionTitle,className:"flex gap-2.5 flex-wrap pt-2 md:pt-0"},d.map(e=>(0,c.Y)(Gn,{className:"text-secondary-70",key:e,id:e,text:e,itemProp:"keywords"}))):null,null!=u&&u.length?(0,c.Y)("section",{className:"w-full mb-8"},(0,c.Y)("h2",{className:"text-[24px] md:text-4xl text-secondary-100 uppercase w-full max-w-[320px]"},f.resultSectionTitle),(0,c.Y)(Bn,{screenshots:u})):null))};const Qn=e=>{var t;let{data:{markdownRemark:{frontmatter:{title:n,description:o,cover:l}}},pageContext:{markupData:i,site:a,lang:s},location:u}=e;const d=(0,r.c)(l);return(0,c.Y)(jn.c,{title:`${i.head} | ${n.toUpperCase()}`,siteUrl:a.siteUrl,description:`${o.split(" ").slice(0,22).join(" ")}...`,path:u.pathname,img:null==d||null===(t=d.images.fallback)||void 0===t?void 0:t.src,lang:s})}},5317:function(e,t,n){n.d(t,{A:function(){return o}});const r={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function o(e={}){let t,n,l,i,a=null,c=0,s=!1,u=!1,d=!1,m=!1;function f(){l||(v()?d=!0:(s||n.emit("autoplay:play"),function(){const{ownerWindow:e}=n.internalEngine();e.clearTimeout(c),c=e.setTimeout(E,i[n.selectedScrollSnap()]),a=(new Date).getTime(),n.emit("autoplay:timerset")}(),s=!0))}function h(){l||(s&&n.emit("autoplay:stop"),function(){const{ownerWindow:e}=n.internalEngine();e.clearTimeout(c),c=0,a=null,n.emit("autoplay:timerstopped")}(),s=!1)}function p(){if(v())return d=s,h();d&&f()}function v(){const{ownerDocument:e}=n.internalEngine();return"hidden"===e.visibilityState}function g(){u||h()}function b(){u||f()}function x(){u=!0,h()}function w(){u=!1,f()}function E(){const{index:e}=n.internalEngine(),r=e.clone().add(1).get(),o=n.scrollSnapList().length-1,l=t.stopOnLastSnap&&r===o;if(n.canScrollNext()?n.scrollNext(m):n.scrollTo(0,m),n.emit("autoplay:select"),l)return h();f()}return{name:"autoplay",options:e,init:function(a,c){n=a;const{mergeOptions:s,optionsAtMedia:u}=c,d=s(r,o.globalOptions),v=s(d,e);if(t=u(v),n.scrollSnapList().length<=1)return;m=t.jump,l=!1,i=function(e,t){const n=e.scrollSnapList();return"number"==typeof t?n.map(()=>t):t(n,e)}(n,t.delay);const{eventStore:E,ownerDocument:y}=n.internalEngine(),C=!!n.internalEngine().options.watchDrag,M=function(e,t){const n=e.rootNode();return t&&t(n)||n}(n,t.rootNode);E.add(y,"visibilitychange",p),C&&n.on("pointerDown",g),C&&!t.stopOnInteraction&&n.on("pointerUp",b),t.stopOnMouseEnter&&E.add(M,"mouseenter",x),t.stopOnMouseEnter&&!t.stopOnInteraction&&E.add(M,"mouseleave",w),t.stopOnFocusIn&&n.on("slideFocusStart",h),t.stopOnFocusIn&&!t.stopOnInteraction&&E.add(n.containerNode(),"focusout",f),t.playOnInit&&f()},destroy:function(){n.off("pointerDown",g).off("pointerUp",b).off("slideFocusStart",h),h(),l=!0,s=!1},play:function(e){void 0!==e&&(m=e),f()},stop:function(){s&&h()},reset:function(){s&&f()},isPlaying:function(){return s},timeUntilNext:function(){return a?i[n.selectedScrollSnap()]-((new Date).getTime()-a):null}}}o.globalOptions=void 0}}]);
//# sourceMappingURL=component---src-pages-templates-project-tsx-416c00a125683aa576b2.js.map