-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-pages-templates-project-tsx-0f155fa91f86221dfd2e.js
2 lines (2 loc) · 54.4 KB
/
component---src-pages-templates-project-tsx-0f155fa91f86221dfd2e.js
1
2
"use strict";(self.webpackChunkcode_cave=self.webpackChunkcode_cave||[]).push([[147],{5192:function(e,t,n){n.r(t),n.d(t,{Head:function(){return Bn},default:function(){return jn}});var r=n(8032),o=n(1164),l=n(7294),i=n(1312),a=n(7451),c=n(917);const s=e=>{let{selected:t,onClick:n}=e;return(0,c.tZ)("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.tZ)("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.tZ)("svg",{className:"w-2/3 h-2/3",viewBox:"137.718 -1.001 366.563 644"},(0,c.tZ)("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.tZ)("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.tZ)("svg",{className:"w-2/3 h-2/3",viewBox:"0 0 238.003 238.003"},(0,c.tZ)("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",k="complete",M="placeholder",S=e=>`active-slide-${e}`,N=S(E),I=S(y),P=S(C),R=S(k),L="fullsize",Z="flex_center",F="no_scroll_padding",z="slide_wrapper",O="prev",D="next",T="swipe",W="close",_="onPointerDown",$="onPointerMove",A="onPointerUp",H="onPointerLeave",X="onPointerCancel",Y="onKeyDown",U="onKeyUp",V="onWheel",j="Escape",B="ArrowLeft",q="ArrowRight",K="icon",G="contain",J="cover",Q="Unknown action type";var ee=n(3935);const te="yarl__";function ne(...e){return[...e].filter(Boolean).join(" ")}function re(e){return`${te}${e}`}function oe(e){return`--${te}${e}`}function le(e,t){return`${e}${t?`_${t}`:""}`}function ie(e){return t=>le(e,t)}function ae(...e){return()=>{e.forEach((e=>{e()}))}}function ce(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 se(){return"undefined"!=typeof window}function ue(e,t=0){const n=10**t;return Math.round((e+Number.EPSILON)*n)/n}function de(e){return void 0===e.type||"image"===e.type}function me(e,t){return e.imageFit===J||e.imageFit!==G&&t===J}function fe(e){return"string"==typeof e?Number.parseInt(e,10):e}function he(e){if("number"==typeof e)return{pixel:e};if("string"==typeof e){const t=fe(e);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function pe(e,t){const n=he(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 ve(e,t){return t>0?(e%t+t)%t:0}function ge(e){return e.length>0}function be(e,t){return e[ve(t,e.length)]}function xe(e,t){return ge(e)?be(e,t):void 0}function we(e){return de(e)?e.src:void 0}function Ee(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 ye=Number(l.version.split(".")[0])>=19;const Ce={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:G,imageProps:{}},controller:{ref:null,focus:!0,aria:!1,touchAction:"none",closeOnPullUp:!1,closeOnPullDown:!1,closeOnBackdropClick:!1,preventDefaultWheelX:!0,preventDefaultWheelY:!1},portal:{},noScroll:{disabled:!1},on:{},styles:{},className:""};function ke(e,t){return{name:e,component:t}}function Me(e,t){return{module:e,children:t}}function Se(e,t,n){return e.module.name===t?n(e):e.children?[Me(e.module,e.children.flatMap((e=>{var r;return null!==(r=Se(e,t,n))&&void 0!==r?r:[]})))]:[e]}function Ne(e,t,n){return e.flatMap((e=>{var r;return null!==(r=Se(e,t,n))&&void 0!==r?r:[]}))}const Ie=l.createContext(null),Pe=ce("useDocument","DocumentContext",Ie);function Re({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(Ie.Provider,{value:n},t)}const Le=l.createContext(null),Ze=ce("useEvents","EventsContext",Le);function Fe({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(Le.Provider,{value:n},e)}const ze=l.createContext(null),Oe=ce("useLightboxProps","LightboxPropsContext",ze);function De({children:e,...t}){return l.createElement(ze.Provider,{value:t},e)}const Te=l.createContext(null),We=ce("useLightboxState","LightboxStateContext",Te),_e=l.createContext(null),$e=ce("useLightboxDispatch","LightboxDispatchContext",_e);function Ae(e,t){switch(t.type){case"swipe":{const{slides:n}=e,r=(null==t?void 0:t.increment)||0,o=e.globalIndex+r,l=ve(o,n.length);return{slides:n,currentIndex:l,globalIndex:o,currentSlide:xe(n,l),animation:r||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:xe(t.slides,t.index)}:e;default:throw new Error(Q)}}function He({slides:e,index:t,children:n}){const[r,o]=l.useReducer(Ae,{slides:e,currentIndex:t,globalIndex:t,currentSlide:xe(e,t)});l.useEffect((()=>{o({type:"update",slides:e,index:t})}),[e,t]);const i=l.useMemo((()=>({...r,state:r,dispatch:o})),[r,o]);return l.createElement(_e.Provider,{value:o},l.createElement(Te.Provider,{value:i},n))}const Xe=l.createContext(null),Ye=ce("useTimeouts","TimeoutsContext",Xe);function Ue({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(Xe.Provider,{value:n},e)}const Ve=l.forwardRef((function({label:e,className:t,icon:n,renderIcon:r,onClick:o,style:i,...a},c){const{styles:s,labels:u}=Oe(),d=function(e,t){var n;return null!==(n=null==e?void 0:e[t])&&void 0!==n?n:t}(u,e);return l.createElement("button",{ref:c,type:"button",title:d,"aria-label":d,className:ne(re("button"),t),onClick:o,style:{...i,...s.button},...a},r?r():l.createElement(n,{className:re(K),style:s.icon}))}));function je(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 Be(e,t){return je(e,l.createElement("g",{fill:"currentColor"},l.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}const qe=Be("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"})),Ke=Be("Previous",l.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),Ge=Be("Next",l.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),Je=Be("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)`}))))),Qe=Be("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"})),et=se()?l.useLayoutEffect:l.useEffect;function tt(){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 nt(e,t){const n=l.useRef(),r=l.useRef(),o=tt();return et((()=>{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(fe);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 rt(){const e=l.useRef(null),t=l.useRef(),[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 ot(){const e=l.useRef(),{setTimeout:t,clearTimeout:n}=Ye();return l.useCallback(((r,o)=>{n(e.current),e.current=t(r,o>0?o:0)}),[t,n])}function lt(e){const t=l.useRef(e);return et((()=>{t.current=e})),l.useCallback(((...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function it(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function at(e,t){return l.useMemo((()=>null==e&&null==t?null:n=>{it(e,n),it(t,n)}),[e,t])}function ct(e,t=!1){const n=l.useRef();et((()=>{t&&n.current&&(n.current=!1,e())}),[t,e]);return{onFocus:l.useCallback((()=>{n.current=!0}),[]),onBlur:l.useCallback((()=>{n.current=!1}),[])}}function st(){const[e,t]=l.useState(!1);return et((()=>{t("rtl"===window.getComputedStyle(window.document.documentElement).direction)}),[]),e}function ut(e,t){const n=l.useRef(0),r=ot(),o=lt(((...t)=>{n.current=Date.now(),e(t)}));return l.useCallback(((...e)=>{r((()=>{o(e)}),t-(Date.now()-n.current))}),[t,o,r])}const dt=ie("slide"),mt=ie("slide_image");function ft({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;const[b,x]=l.useState(E),{publish:w}=Ze(),{setTimeout:y}=Ye(),N=l.useRef(null);l.useEffect((()=>{0===t&&w(S(b))}),[t,b,w]);const I=lt((e=>{("decode"in e?e.decode():Promise.resolve()).catch((()=>{})).then((()=>{e.parentNode&&(x(k),y((()=>{null==c||c(e)}),0))}))})),P=l.useCallback((e=>{N.current=e,(null==e?void 0:e.complete)&&I(e)}),[I]),R=l.useCallback((e=>{I(e.currentTarget)}),[I]),L=lt((()=>{x(C),null==s||s()})),Z=me(e,o),F=(e,t)=>Number.isFinite(e)?e:t,z=F(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=F(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=z&&O?{maxWidth:`min(${z}px, 100%)`,maxHeight:`min(${O}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},T=null===(g=e.srcSet)||void 0===g?void 0:g.sort(((e,t)=>e.width-t.width)).map((e=>`${e.src} ${e.width}w`)).join(", "),W=T&&r&&se()?`${Math.round(Math.min(r&&!Z&&e.width&&e.height?r.height/e.height*e.width:Number.MAX_VALUE,r.width))}px`:void 0,{style:_,className:$,...A}=i||{};return l.createElement(l.Fragment,null,l.createElement("img",{ref:P,onLoad:R,onError:L,onClick:a,draggable:!1,className:ne(re(mt()),Z&&re(mt("cover")),b!==k&&re(mt("loading")),$),style:{...D,...u,..._},...A,alt:e.alt,sizes:W,srcSet:T,src:e.src}),b!==k&&l.createElement("div",{className:re(dt(M))},b===E&&((null==n?void 0:n.iconLoading)?n.iconLoading():l.createElement(Je,{className:ne(re(K),re(dt(E)))})),b===C&&((null==n?void 0:n.iconError)?n.iconError():l.createElement(Qe,{className:ne(re(K),re(dt(C)))}))))}const ht=l.forwardRef((function({className:e,children:t,...n},r){const o=l.useRef(null);return l.createElement(Re,{nodeRef:o},l.createElement("div",{ref:at(r,o),className:ne(re("root"),e),...n},t))}));var pt,vt;function gt(e,t,n,r,o){l.useEffect((()=>o?()=>{}:ae(e(_,t),e($,n),e(A,r),e(H,r),e(X,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"}(pt||(pt={})),function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL"}(vt||(vt={}));const bt=30;const xt=ie("container"),wt=l.createContext(null),Et=ce("useController","ControllerContext",wt);const yt=ke(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=We(),b=$e(),[x,w]=l.useState(pt.NONE),E=l.useRef(0),y=l.useRef(0),C=l.useRef(1),{registerSensors:k,subscribeSensors:M}=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($,e),onPointerUp:e=>t(A,e),onPointerLeave:e=>t(H,e),onPointerCancel:e=>t(X,e),onKeyDown:e=>t(Y,e),onKeyUp:e=>t(U,e),onWheel:e=>t(V,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(),I=ot(),P=ot(),R=ot(),{containerRef:L,setContainerRef:F,containerRect:z}=rt(),j=at(function({preventDefaultWheelX:e,preventDefaultWheelY:t}){const n=l.useRef(null),r=lt((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}),F),B=l.useRef(null),q=at(B,void 0),{getOwnerDocument:K}=Pe(),G=st(),J=e=>(G?-1:1)*("number"==typeof e?e:1),Q=lt((()=>{var e;return null===(e=L.current)||void 0===e?void 0:e.focus()})),ee=lt((()=>t)),te=lt((()=>g)),le=l.useCallback((e=>N(O,e)),[N]),ie=l.useCallback((e=>N(D,e)),[N]),ce=l.useCallback((()=>N(W)),[N]),se=e=>!(r.finite&&(J(e)>0&&0===g.currentIndex||J(e)<0&&g.currentIndex===g.slides.length-1)),de=e=>{var t;E.current=e,null===(t=L.current)||void 0===t||t.style.setProperty(oe("swipe_offset"),`${Math.round(e)}px`)},me=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(ue(1-t/60*.5,2),.5),1)})(),null===(t=L.current)||void 0===t||t.style.setProperty(oe("pull_offset"),`${Math.round(e)}px`),null===(n=L.current)||void 0===n||n.style.setProperty(oe("pull_opacity"),`${C.current}`)},{prepareAnimation:fe}=nt(B,((e,t,n)=>{if(B.current&&z)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}})),ve=(e,t)=>{if(u||d){me(e);let n=0;B.current&&(n=o.fade*(t?2:1),fe({rect:B.current.getBoundingClientRect(),opacity:C.current,duration:n})),R((()=>{me(0),w(pt.NONE)}),n),w(pt.ANIMATION),t||ce()}},{prepareAnimation:ge,isAnimationPlaying:be}=nt(B,((e,t,n)=>{var o;if(B.current&&z&&(null===(o=g.animation)||void 0===o?void 0:o.duration)){const o=he(r.spacing),l=(o.percent?o.percent*z.width/100:o.pixel)||0;return{keyframes:[{transform:`translate(${J(g.globalIndex-e.index)*(z.width+l)+e.rect.x-t.x+n.x}px, 0)`},{transform:"translate(0, 0)"}],duration:g.animation.duration,easing:g.animation.easing}}})),xe=lt((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||be()?o.easing.swipe:o.easing.navigation;let{direction:a}=e;const c=null!==(n=e.count)&&void 0!==n?n:1;let s=pt.ANIMATION,u=l*c;if(!a){const t=null==z?void 0:z.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=J(r)>0?O:D):u=l/2}let d=0;a===O?se(J(1))?d=-c:(s=pt.NONE,u=l):a===D&&(se(J(-1))?d=c:(s=pt.NONE,u=l)),u=Math.round(u),P((()=>{de(0),w(pt.NONE)}),u),B.current&&ge({rect:B.current.getBoundingClientRect(),index:g.globalIndex}),w(s),N(T,{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)&&I((()=>b({type:"swipe",increment:0})),g.animation.duration)}),[g.animation,b,I]);const we=[M,se,(null==z?void 0:z.width)||0,o.swipe,()=>w(pt.SWIPE),e=>de(e),(e,t)=>xe({offset:e,duration:t,count:1}),e=>xe({offset:e,count:0})],Ee=[()=>{d&&w(pt.PULL)},e=>me(e),e=>ve(e),e=>ve(e,!0)];!function(e,t,n,r,o,i,a,c,s,u,d,m,f,h){const p=l.useRef(0),v=l.useRef([]),g=l.useRef(),b=l.useRef(0),x=l.useRef(vt.NONE),w=l.useCallback((e=>{g.current===e.pointerId&&(g.current=void 0,x.current=vt.NONE);const t=v.current;t.splice(0,t.length,...t.filter((t=>t.pointerId!==e.pointerId)))}),[]),E=l.useCallback((e=>{w(e),e.persist(),v.current.push(e)}),[w]),y=lt((e=>{E(e)})),C=(e,t)=>u&&e>t||s&&e<-t,k=lt((e=>{if(v.current.find((t=>t.pointerId===e.pointerId))&&g.current===e.pointerId){const e=Date.now()-b.current,t=p.current;x.current===vt.SWIPE?Math.abs(t)>.3*n||Math.abs(t)>5&&e<r?a(t,e):c(t):x.current===vt.PULL&&(C(t,2*bt)?f(t,e):h(t)),p.current=0,x.current=vt.NONE}w(e)}));gt(e,y,lt((e=>{const n=v.current.find((t=>t.pointerId===e.pointerId));if(n){const r=g.current===e.pointerId;if(0===e.buttons)return void(r&&0!==p.current?k(e):w(n));const l=e.clientX-n.clientX,a=e.clientY-n.clientY;if(void 0===g.current){const n=t=>{E(e),g.current=e.pointerId,b.current=Date.now(),x.current=t};Math.abs(l)>Math.abs(a)&&Math.abs(l)>bt&&t(l)?(n(vt.SWIPE),o()):Math.abs(a)>Math.abs(l)&&C(a,bt)&&(n(vt.PULL),d())}else r&&(x.current===vt.SWIPE?(p.current=l,i(l)):x.current===vt.PULL&&(p.current=a,m(a)))}})),k)}(...we,u,d,...Ee),function(e,t,n,r,o,i,a,c,s){const u=l.useRef(0),d=l.useRef(0),m=l.useRef(),f=l.useRef(),h=l.useRef(0),p=l.useRef(),v=l.useRef(0),{setTimeout:g,clearTimeout:b}=Ye(),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=lt((()=>{e!==pt.SWIPE&&(u.current=0,v.current=0,x(),w())}));l.useEffect(E,[e,E]);const y=lt((e=>{f.current=void 0,u.current===e&&s(u.current)})),C=lt((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===pt.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===pt.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(V,C)),[t,C])}(x,...we);const ye=lt((()=>{i.focus&&K().querySelector(`.${re(h)} .${re(xt())}`)&&Q()}));l.useEffect(ye,[ye]);const Ce=lt((()=>{var e;null===(e=a.view)||void 0===e||e.call(a,{index:g.currentIndex})}));l.useEffect(Ce,[g.globalIndex,Ce]),l.useEffect((()=>ae(S(O,(e=>xe({direction:O,...e}))),S(D,(e=>xe({direction:D,...e}))),S(T,(e=>b(e))))),[S,xe,b]);const ke=l.useMemo((()=>({prev:le,next:ie,close:ce,focus:Q,slideRect:z?pe(z,r.padding):{width:0,height:0},containerRect:z||{width:0,height:0},subscribeSensors:M,containerRef:L,setCarouselRef:q,toolbarWidth:p,setToolbarWidth:v})),[le,ie,ce,Q,M,z,L,q,p,v,r.padding]);return l.useImperativeHandle(i.ref,(()=>({prev:le,next:ie,close:ce,focus:Q,getLightboxProps:ee,getLightboxState:te})),[le,ie,ce,Q,ee,te]),l.createElement("div",{ref:j,className:ne(re(xt()),re(Z)),style:{...x===pt.SWIPE?{[oe("swipe_offset")]:`${Math.round(E.current)}px`}:null,...x===pt.PULL?{[oe("pull_offset")]:`${Math.round(y.current)}px`,[oe("pull_opacity")]:`${C.current}`}:null,..."none"!==i.touchAction?{[oe("controller_touch_action")]:i.touchAction}:null,...c.container},...i.aria?{role:"presentation","aria-live":"polite"}:null,tabIndex:-1,...k},z&&l.createElement(wt.Provider,{value:ke},e,null===(n=s.controls)||void 0===n?void 0:n.call(s)))}));function Ct(e){return le(m,e)}function kt(e){return le("slide",e)}function Mt({slide:e,offset:t}){const n=l.useRef(null),{currentIndex:r}=We(),{slideRect:o,close:i,focus:a}=Et(),{render:c,carousel:{imageFit:s,imageProps:u},on:{click:d},controller:{closeOnBackdropClick:m},styles:{slide:f}}=Oe(),{getOwnerDocument:h}=Pe(),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:ne(re(kt()),!p&&re(kt("current")),re(Z)),...(v=p,{inert:ye?v:v?"":void 0}),onClick:e=>{const t=n.current,r=e.target instanceof HTMLElement?e.target:void 0;m&&r&&t&&(r===t||Array.from(t.children).find((e=>e===r))&&r.classList.contains(re(z)))&&i()},style:f},(()=>{var n,i,a,m;let f=null===(n=c.slide)||void 0===n?void 0:n.call(c,{slide:e,offset:t,rect:o});return!f&&de(e)&&(f=l.createElement(ft,{slide:e,offset:t,render:c,rect:o,imageFit:s,imageProps:u,onClick:p?void 0:()=>null==d?void 0:d({index:r})})),f?l.createElement(l.Fragment,null,null===(i=c.slideHeader)||void 0===i?void 0:i.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 St(){const e=Oe().styles.slide;return l.createElement("div",{className:re("slide"),style:e})}const Nt=ke(m,(function({carousel:e}){const{slides:t,currentIndex:n,globalIndex:r}=We(),{setCarouselRef:o}=Et(),i=he(e.spacing),a=he(e.padding),c=function(e,t,n=0){return Math.min(e.preload,Math.max(e.finite?t.length-1:Math.floor(t.length/2),n))}(e,t,1),s=[];if(ge(t))for(let l=n-c;l<=n+c;l+=1){const o=be(t,l),i=r-n+l,a=e.finite&&(l<0||l>t.length-1);s.push(a?{key:i}:{key:[`${i}`,we(o)].filter(Boolean).join("|"),offset:l-n,slide:o})}return l.createElement("div",{ref:o,className:ne(re(Ct()),s.length>0&&re(Ct("with_slides"))),style:{[`${oe(Ct("slides_count"))}`]:s.length,[`${oe(Ct("spacing_px"))}`]:i.pixel||0,[`${oe(Ct("spacing_percent"))}`]:i.percent||0,[`${oe(Ct("padding_px"))}`]:a.pixel||0,[`${oe(Ct("padding_percent"))}`]:a.percent||0}},s.map((({key:e,slide:t,offset:n})=>t?l.createElement(Mt,{key:e,slide:t,offset:n}):l.createElement(St,{key:e}))))}));function It(){const{carousel:e}=Oe(),{slides:t,currentIndex:n}=We();return{prevDisabled:0===t.length||e.finite&&0===n,nextDisabled:0===t.length||e.finite&&n===t.length-1}}function Pt({label:e,icon:t,renderIcon:n,action:r,onClick:o,disabled:i,style:a}){return l.createElement(Ve,{label:e,icon:t,renderIcon:n,className:re(`navigation_${r}`),disabled:i,onClick:o,style:a,...ct(Et().focus,i)})}const Rt=ke("navigation",(function({render:{buttonPrev:e,buttonNext:t,iconPrev:n,iconNext:r},styles:o}){const{prev:i,next:a,subscribeSensors:c}=Et(),{prevDisabled:s,nextDisabled:u}=It();return function(e){var t;const n=st(),{publish:r}=Ze(),{animation:o}=Oe(),{prevDisabled:i,nextDisabled:a}=It(),c=(null!==(t=o.navigation)&&void 0!==t?t:o.swipe)/2,s=ut((()=>r(O)),c),u=ut((()=>r(D)),c),d=lt((e=>{switch(e.key){case j:r(W);break;case B:(n?a:i)||(n?u:s)();break;case q:(n?i:a)||(n?s:u)()}}));l.useEffect((()=>e(Y,d)),[e,d])}(c),l.createElement(l.Fragment,null,e?e():l.createElement(Pt,{label:"Previous",action:O,icon:Ke,renderIcon:n,style:o.navigationPrev,disabled:s,onClick:i}),t?t():l.createElement(Pt,{label:"Next",action:D,icon:Ge,renderIcon:r,style:o.navigationNext,disabled:u,onClick:a}))})),Lt=re("no_scroll"),Zt=re(F);function Ft(e){return"style"in e}function zt(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,`${(fe(l)||0)+t}px`),()=>{i?e.style.setProperty(o,i):e.style.removeProperty(o)}}const Ot=ke("no-scroll",(function({noScroll:{disabled:e},children:t}){const n=st(),{getOwnerDocument:r,getOwnerWindow:o}=Pe();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(zt(i,c,n));const e=i.getElementsByTagName("*");for(let r=0;r<e.length;r+=1){const o=e[r];Ft(o)&&"fixed"===l.getComputedStyle(o).getPropertyValue("position")&&!o.classList.contains(Zt)&&t.push(zt(o,c,n))}}return i.classList.add(Lt),()=>{i.classList.remove(Lt),t.forEach((e=>e()))}}),[n,e,r,o]),l.createElement(l.Fragment,null,t)}));function Dt(e){return le(h,e)}function Tt(e,t,n){const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r?e.setAttribute(t,r):e.removeAttribute(t)}}const Wt=ke(h,(function({children:e,animation:t,styles:n,className:r,on:o,portal:i,close:a}){const[c,s]=l.useState(!1),[u,d]=l.useState(!1),m=l.useRef([]),f=l.useRef(null),{setTimeout:h}=Ye(),{subscribe:p}=Ze(),v=tt()?0:t.fade;l.useEffect((()=>(s(!0),()=>{s(!1),d(!1)})),[]);const g=lt((()=>{m.current.forEach((e=>e())),m.current=[]})),b=lt((()=>{var e;d(!1),g(),null===(e=o.exiting)||void 0===e||e.call(o),h((()=>{var e;null===(e=o.exited)||void 0===e||e.call(o),a()}),v)}));l.useEffect((()=>p(W,b)),[p,b]);const x=lt((e=>{var t,n,r;e.scrollTop,d(!0),null===(t=o.entering)||void 0===t||t.call(o);const l=null!==(r=null===(n=e.parentNode)||void 0===n?void 0:n.children)&&void 0!==r?r:[];for(let o=0;o<l.length;o+=1){const t=l[o];-1===["TEMPLATE","SCRIPT","STYLE"].indexOf(t.tagName)&&t!==e&&(m.current.push(Tt(t,"inert","")),m.current.push(Tt(t,"aria-hidden","true")))}m.current.push((()=>{var e,t;null===(t=null===(e=f.current)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)})),h((()=>{var e;null===(e=o.entered)||void 0===e||e.call(o)}),v)})),w=l.useCallback((e=>{e?x(e):g()}),[x,g]);return c?(0,ee.createPortal)(l.createElement(ht,{ref:w,className:ne(r,re(Dt()),re(F),u&&re(Dt("open"))),role:"presentation","aria-live":"polite",style:{...t.fade!==Ce.animation.fade?{[oe("fade_animation_duration")]:`${v}ms`}:null,...t.easing.fade!==Ce.animation.easing.fade?{[oe("fade_animation_timing_function")]:t.easing.fade}:null,...n.root},onFocus:e=>{f.current||(f.current=e.relatedTarget)}},e),i.root||document.body):null}));const _t=ke("root",(function({children:e}){return l.createElement(l.Fragment,null,e)}));const $t=ke(p,(function({toolbar:{buttons:e},render:{buttonClose:t,iconClose:n},styles:r}){const{close:o,setToolbarWidth:i}=Et(),{setContainerRef:a,containerRect:c}=rt();return et((()=>{i(null==c?void 0:c.width)}),[i,null==c?void 0:c.width]),l.createElement("div",{ref:a,style:r.toolbar,className:re(le(p,s))},null==e?void 0:e.map((e=>e===W?t?t():l.createElement(Ve,{key:W,label:"Close",icon:qe,renderIcon:n,onClick:o}):e)));var s}));function At(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=>At(e,t))))}function Ht(e,t={}){const{easing:n,...r}=e,{easing:o,...l}=t;return{easing:{...n,...o},...r,...l}}function Xt({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}=Ce,{config:k,augmentation:M}=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?Ne(r,e,(e=>[Me(t,[e])])):[Me(t,r)]},i=(e,t)=>{r=Ne(r,e,(e=>[Me(e.module,[Me(t,e.children)])]))},a=(e,t,n)=>{r=Ne(r,e,(e=>{var r;return[Me(e.module,[...n?[Me(t)]:[],...null!==(r=e.children)&&void 0!==r?r:[],...n?[]:[Me(t)]])]}))},c=(e,t,n)=>{r=Ne(r,e,(e=>[...n?[Me(t)]:[],e,...n?[]:[Me(t)]]))},s=e=>{i(f,e)},u=(e,t)=>{r=Ne(r,e,(e=>[Me(t,e.children)]))},d=e=>{r=Ne(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)}}([Me(Wt,[Me(Ot,[Me(yt,[Me(Nt),Me($t),Me(Rt)])])])],c||y),S=M({animation:Ht(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(De,{...S},l.createElement(He,{slides:s||w,index:fe(u||E)},l.createElement(Ue,null,l.createElement(Fe,null,At(Me(_t,k),S))))):null}const Yt=e=>re(`slide_${e}`),Ut={descriptionTextAlign:"start",descriptionMaxLines:3,showToggle:!1,hidden:!1},Vt=e=>({...Ut,...e});const jt=l.createContext(null),Bt=ce("useCaptions","CaptionsContext",jt);function qt({captions:e,children:t}){const{ref:n,hidden:r}=Vt(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(jt.Provider,{value:a},t)}function Kt({title:e}){const{toolbarWidth:t}=Et(),{styles:n}=Oe(),{visible:r}=Bt();return r?l.createElement("div",{style:n.captionsTitleContainer,className:ne(Yt("captions_container"),Yt("title_container"))},l.createElement("div",{className:Yt("title"),style:{...t?{[oe("toolbar_width")]:`${t}px`}:null,...n.captionsTitle}},e)):null}function Gt({description:e}){const{descriptionTextAlign:t,descriptionMaxLines:n}=function(){const{captions:e}=Oe();return Vt(e)}(),{styles:r}=Oe(),{visible:o}=Bt();return o?l.createElement("div",{style:r.captionsDescriptionContainer,className:ne(Yt("captions_container"),Yt("description_container"))},l.createElement("div",{className:Yt("description"),style:{...t!==Ut.descriptionTextAlign||n!==Ut.descriptionMaxLines?{[oe("slide_description_text_align")]:t,[oe("slide_description_max_lines")]:n}:null,...r.captionsDescription}},"string"==typeof e?e.split("\n").flatMap(((e,t)=>[...t>0?[l.createElement("br",{key:t})]:[],e])):e)):null}const Jt=()=>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"})),Qt=Be("CaptionsVisible",Jt()),en=(tn="CaptionsVisible",nn=Jt(),je(tn,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"}),nn))));var tn,nn;function rn(){const{visible:e,show:t,hide:n}=Bt(),{render:r}=Oe();return r.buttonCaptions?l.createElement(l.Fragment,null,r.buttonCaptions({visible:e,show:t,hide:n})):l.createElement(Ve,{label:e?"Hide captions":"Show captions",icon:e?Qt:en,renderIcon:e?r.iconCaptionsVisible:r.iconCaptionsHidden,onClick:e?n:t})}function on({augment:e,addModule:t}){e((({captions:e,render:{slideFooter:t,...n},toolbar:r,...o})=>{const i=Vt(e);return{render:{slideFooter:({slide:e})=>l.createElement(l.Fragment,null,null==t?void 0:t({slide:e}),e.title&&l.createElement(Kt,{title:e.title}),e.description&&l.createElement(Gt,{description:e.description})),...n},toolbar:Ee(r,v,i.showToggle?l.createElement(rn,null):null),captions:i,...o}})),t(ke(v,qt))}const ln={auto:!1,ref:null},an=e=>({...ln,...e}),cn=l.createContext(null),sn=ce("useFullscreen","FullscreenContext",cn);function un({fullscreen:e,on:t,children:n}){const{auto:r,ref:o}=an(e),i=l.useRef(null),[a,c]=l.useState(),[s,u]=l.useState(!1),d=l.useRef(!1),{getOwnerDocument:m}=Pe();et((()=>{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 ae(...["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"].map((n=>(e.addEventListener(n,t),()=>e.removeEventListener(n,t)))))}),[f,m]);const v=lt((()=>{var e;return null===(e=t.enterFullscreen)||void 0===e?void 0:e.call(t)})),b=lt((()=>{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=lt((()=>{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:ne(re(g),re(L))},l.createElement(cn.Provider,{value:w},n))}const dn=Be("EnterFullscreen",l.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"})),mn=Be("ExitFullscreen",l.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}));function fn(){var e;const{fullscreen:t,disabled:n,enter:r,exit:o}=sn(),{render:i}=Oe();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(Ve,{disabled:n,label:t?"Exit Fullscreen":"Enter Fullscreen",icon:t?mn:dn,renderIcon:t?i.iconExitFullscreen:i.iconEnterFullscreen,onClick:t?o:r})}function hn({augment:e,contains:t,addParent:n}){e((({fullscreen:e,toolbar:t,...n})=>({toolbar:Ee(t,g,l.createElement(fn,null)),fullscreen:an(e),...n}))),n(t(x)?x:f,ke(g,un))}const pn={autoplay:!1,delay:3e3,ref:null},vn=e=>({...pn,...e}),gn=l.createContext(null),bn=ce("useSlideshow","SlideshowContext",gn);function xn({slideshow:e,carousel:{finite:t},on:n,children:r}){const{autoplay:o,delay:i,ref:a}=vn(e),c=l.useRef(o),[s,u]=l.useState(o),d=l.useRef(),m=l.useRef(),{slides:f,currentIndex:h}=We(),{setTimeout:p,clearTimeout:v}=Ye(),{subscribe:g}=Ze(),{next:b}=Et(),x=0===f.length||t&&h===f.length-1,w=l.useCallback((()=>{s||x||u(!0)}),[s,x]),M=l.useCallback((()=>{s&&u(!1)}),[s]),S=l.useCallback((()=>{v(d.current),d.current=void 0}),[v]),L=lt((()=>{S(),s&&!x&&m.current!==E&&m.current!==y&&(d.current=p((()=>{s&&(m.current=void 0,b())}),i))}));l.useEffect(L,[h,s,L]),l.useEffect((()=>{s&&x&&u(!1)}),[h,s,x]);const Z=lt((()=>{var e;return null===(e=n.slideshowStart)||void 0===e?void 0:e.call(n)})),F=lt((()=>{var e;return null===(e=n.slideshowStop)||void 0===e?void 0:e.call(n)}));l.useEffect((()=>{s?Z():c.current&&F(),c.current=s}),[s,Z,F]),l.useEffect((()=>ae(S,g(N,(()=>{m.current=E,S()})),g(I,(()=>{m.current=y,S()})),g(P,(()=>{m.current=C,L()})),g(R,(()=>{m.current=k,L()})))),[g,S,L]);const z=l.useMemo((()=>({playing:s,disabled:x,play:w,pause:M})),[s,x,w,M]);return l.useImperativeHandle(a,(()=>z),[z]),l.createElement(gn.Provider,{value:z},r)}const wn=Be("Play",l.createElement("path",{d:"M8 5v14l11-7z"})),En=Be("Pause",l.createElement("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"}));function yn(){const{playing:e,disabled:t,play:n,pause:r}=bn(),{render:o}=Oe(),i=ct(Et().focus,t);return o.buttonSlideshow?l.createElement(l.Fragment,null,o.buttonSlideshow({playing:e,disabled:t,play:n,pause:r})):l.createElement(Ve,{label:e?"Pause":"Play",icon:e?En:wn,renderIcon:e?o.iconSlideshowPause:o.iconSlideshowPlay,onClick:e?r:n,disabled:t,...i})}function Cn({augment:e,addModule:t}){e((({slideshow:e,toolbar:t,...n})=>({toolbar:Ee(t,b,l.createElement(yn,null)),slideshow:vn(e),...n}))),t(ke(b,xn))}const kn={maxZoomPixelRatio:1,zoomInMultiplier:2,doubleTapDelay:300,doubleClickDelay:500,doubleClickMaxStops:2,keyboardMoveDistance:50,wheelZoomDistanceFactor:100,pinchZoomDistanceFactor:100,scrollToZoom:!1},Mn=e=>({...kn,...e});function Sn(){const{zoom:e}=Oe();return Mn(e)}function Nn(e,t){return((e.clientX-t.clientX)**2+(e.clientY-t.clientY)**2)**.5}function In(e,t,n=100,r=2){return e*Math.min(1+Math.abs(t/n),r)**Math.sign(t)}function Pn(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(),i=l.useRef(),{zoom:a}=Oe().animation,c=tt(),s=lt((()=>{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 et(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}=We(),{containerRect:f,slideRect:h}=Et(),{zoomInMultiplier:p}=Sn(),v=d&&de(d)?d.src:void 0,g=!v||!(null==n?void 0:n.current);et((()=>{o(1),a(0),s(0)}),[m,v]);const b=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]),x=l.useCallback(((e,n,l,i)=>{const a=ue(Math.min(Math.max(e+.001<t?e:t,1),t),5);a!==r&&(n||u(),b(l?l*(1/r-1/a):0,i?i*(1/r-1/a):0,a),o(a))}),[r,t,b,u]),w=lt((()=>{r>1&&(r>t&&x(t,!0),b())}));et(w,[f.width,f.height,w]);const E=l.useCallback((()=>x(r*p)),[r,p,x]),y=l.useCallback((()=>x(r/p)),[r,p,x]);return{zoom:r,offsetX:i,offsetY:c,disabled:g,changeOffsets:b,changeZoom:x,zoomIn:E,zoomOut:y}}const Rn=l.createContext(null),Ln=ce("useZoom","ZoomControllerContext",Rn);function Zn({children:e}){const[t,n]=l.useState(),{slideRect:r}=Et(),{imageRect:o,maxZoom:i}=function(e,t){var n,r;let o={width:0,height:0},l={width:0,height:0};const{currentSlide:i}=We(),{imageFit:a}=Oe().carousel,{maxZoomPixelRatio:c}=Sn();if(e&&i){const s={...i,...t};if(de(s)){const t=me(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))})}}return{imageRect:o,maxZoom:o.width?Math.max(ue(l.width/o.width,5),1):1}}(r,null==t?void 0:t.imageDimensions),{zoom:a,offsetX:c,offsetY:s,disabled:u,changeZoom:d,changeOffsets:m,zoomIn:f,zoomOut:h}=Pn(o,i,null==t?void 0:t.zoomWrapperRef);!function(e,t){const{on:n}=Oe(),r=lt((()=>{var r;t||null===(r=n.zoom)||void 0===r||r.call(n,{zoom:e})}));l.useEffect(r,[e,r])}(a,u),function(e,t,n,r,o,i){const a=l.useRef([]),c=l.useRef(0),s=l.useRef(),{globalIndex:u}=We(),{getOwnerWindow:d}=Pe(),{containerRef:m,subscribeSensors:f}=Et(),{keyboardMoveDistance:h,zoomInMultiplier:p,wheelZoomDistanceFactor:v,scrollToZoom:g,doubleTapDelay:b,doubleClickDelay:x,doubleClickMaxStops:w,pinchZoomDistanceFactor:E}=Sn(),y=l.useCallback((e=>{if(m.current){const{pageX:t,pageY:n}=e,{scrollX:r,scrollY:o}=d(),{left:l,top:i,width:a,height:c}=m.current.getBoundingClientRect();return[t-l-r-a/2,n-i-o-c/2]}return[]}),[m,d]),C=lt((t=>{const n=()=>{t.preventDefault(),t.stopPropagation()};if(e>1){const e=(e,t)=>{n(),o(e,t)};"ArrowDown"===t.key?e(0,h):"ArrowUp"===t.key?e(0,-h):"ArrowLeft"===t.key?e(-h,0):"ArrowRight"===t.key&&e(h,0)}const l=e=>{n(),r(e)},i=()=>t.getModifierState("Meta");"+"===t.key||"="===t.key&&i()?l(e*p):"-"===t.key||"_"===t.key&&i()?l(e/p):"0"===t.key&&i()&&l(1)})),k=lt((t=>{if((t.ctrlKey||g)&&Math.abs(t.deltaY)>Math.abs(t.deltaX))return t.stopPropagation(),void r(In(e,-t.deltaY,v),!0,...y(t));e>1&&(t.stopPropagation(),g||o(t.deltaX,t.deltaY))})),M=l.useCallback((e=>{const t=a.current;t.splice(0,t.length,...t.filter((t=>t.pointerId!==e.pointerId)))}),[]),S=l.useCallback((e=>{M(e),e.persist(),a.current.push(e)}),[M]),N=lt((n=>{var o;const l=a.current;if("mouse"===n.pointerType&&n.buttons>1||!(null===(o=null==i?void 0:i.current)||void 0===o?void 0:o.contains(n.target)))return;e>1&&n.stopPropagation();const{timeStamp:u}=n;0===l.length&&u-c.current<("touch"===n.pointerType?b:x)?(c.current=0,r(e!==t?e*Math.max(t**(1/w),p):1,!1,...y(n))):c.current=u,S(n),2===l.length&&(s.current=Nn(l[0],l[1]))})),I=lt((t=>{const n=a.current,l=n.find((e=>e.pointerId===t.pointerId));if(2===n.length&&s.current){t.stopPropagation(),S(t);const o=Nn(n[0],n[1]),l=o-s.current;Math.abs(l)>0&&(r(In(e,l,E),!0,...n.map((e=>y(e))).reduce(((e,t)=>t.map(((t,n)=>e[n]+t/2))))),s.current=o)}else e>1&&(t.stopPropagation(),l&&(1===n.length&&o((l.clientX-t.clientX)/e,(l.clientY-t.clientY)/e),S(t)))})),P=l.useCallback((e=>{const t=a.current;2===t.length&&t.find((t=>t.pointerId===e.pointerId))&&(s.current=void 0),M(e)}),[M]),R=l.useCallback((()=>{const e=a.current;e.splice(0,e.length),c.current=0,s.current=void 0}),[]);gt(f,N,I,P,n),l.useEffect(R,[u,R]),l.useEffect((()=>n?()=>{}:ae(R,f(Y,C),f(V,k))),[n,f,R,C,k])}(a,i,u,d,m,null==t?void 0:t.zoomWrapperRef);const p=l.useMemo((()=>({zoom:a,maxZoom:i,offsetX:c,offsetY:s,disabled:u,zoomIn:f,zoomOut:h,changeZoom:d})),[a,i,c,s,u,f,h,d]);l.useImperativeHandle(Sn().ref,(()=>p),[p]);const v=l.useMemo((()=>({...p,setZoomWrapper:n})),[p,n]);return l.createElement(Rn.Provider,{value:v},e)}const Fn=Be("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"}))),zn=Be("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"})),On=l.forwardRef((function({zoomIn:e,onLoseFocus:t},n){const r=l.useRef(!1),o=l.useRef(!1),{zoom:i,maxZoom:a,zoomIn:c,zoomOut:s,disabled:u}=Ln(),{render:d}=Oe(),m=u||(e?i>=a:i<=1);return l.useEffect((()=>{m&&r.current&&o.current&&t(),m||(r.current=!0)}),[m,t]),l.createElement(Ve,{ref:n,disabled:m,label:e?"Zoom in":"Zoom out",icon:e?Fn:zn,renderIcon:e?d.iconZoomIn:d.iconZoomOut,onClick:e?c:s,onFocus:()=>{o.current=!0},onBlur:()=>{o.current=!1}})}));function Dn(){const e=l.useRef(null),t=l.useRef(null),{focus:n}=Et(),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(On,{zoomIn:!0,ref:e,onLoseFocus:i}),l.createElement(On,{ref:t,onLoseFocus:o}))}function Tn(){const{render:e}=Oe(),t=Ln();return e.buttonZoom?l.createElement(l.Fragment,null,e.buttonZoom(t)):l.createElement(Dn,null)}function Wn({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 _n(e){var t,n;const[{current:r,preload:o},i]=l.useReducer(Wn,{}),{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=me(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=(se()?null===window||void 0===window?void 0:window.devicePixelRatio:void 0)||1,x=lt((()=>{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})}));et(x,[c.width,c.height,b,x]);const w=lt((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(ft,{key:"preload",...e,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(ft,{key:"current",...e,slide:{...a,src:r,srcSet:void 0},style:E}))}function $n({render:e,slide:t,offset:n,rect:r}){var o;const[i,a]=l.useState(),c=l.useRef(null),{zoom:s,maxZoom:u,offsetX:d,offsetY:m,setZoomWrapper:f}=Ln(),h=s>1,{carousel:p,on:v}=Oe(),{currentIndex:g}=We();et((()=>0===n?(f({zoomWrapperRef:c,imageDimensions:i}),()=>f(void 0)):()=>{}),[n,i,f]);let b=null===(o=e.slide)||void 0===o?void 0:o.call(e,{slide:t,offset:n,rect:r,zoom:s,maxZoom:u});if(!b&&de(t)){const o={slide:t,offset:n,rect:r,render:e,imageFit:p.imageFit,imageProps:p.imageProps,onClick:0===n?()=>{var e;return null===(e=v.click)||void 0===e?void 0:e.call(v,{index:g})}:void 0};b=function(e){var t;return((null===(t=e.srcSet)||void 0===t?void 0:t.length)||0)>0}(t)?l.createElement(_n,{...o,slide:t,interactive:h,rect:0===n?{width:r.width*s,height:r.height*s}:r}):l.createElement(ft,{onLoad:e=>a({width:e.naturalWidth,height:e.naturalHeight}),...o})}return b?l.createElement("div",{ref:c,className:ne(re(L),re(Z),re(z),h&&re("slide_wrapper_interactive")),style:0===n?{transform:`scale(${s}) translateX(${d}px) translateY(${m}px)`}:void 0},b):null}const An=({augment:e,addModule:t})=>{e((({zoom:e,toolbar:t,render:n,controller:r,...o})=>{const i=Mn(e);return{zoom:i,toolbar:Ee(t,w,l.createElement(Tn,null)),render:{...n,slide:e=>{var t;return de(e.slide)?l.createElement($n,{render:n,...e}):null===(t=n.slide)||void 0===t?void 0:t.call(n,e)}},controller:{...r,preventDefaultWheelY:i.scrollToZoom},...o}})),t(ke(w,Zn))};var Hn=e=>{let{screenshots:t}=e;const[n,o]=(0,i.Z)({loop:!0},[(0,a.Z)({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]),k=(0,l.useCallback)((()=>o&&o.scrollNext()),[o]),M=(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.tZ)(l.Fragment,null,(0,c.tZ)("div",{className:"h-full overflow-hidden relative",ref:n},(0,c.tZ)("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.tZ)("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.tZ)(r.G,{image:o,alt:"logo",className:"object-contain rounded-xl max-h-[424px]"}):null)}))),(0,c.tZ)(u,{onClick:C,enabled:m}),(0,c.tZ)(d,{onClick:k,enabled:h}),(0,c.tZ)("div",{className:"z-10 absolute bottom-1 left-0 right-0 flex justify-center items-center"},b.map(((e,t)=>(0,c.tZ)(s,{key:t,selected:t===v,onClick:()=>M(t)}))))),(0,c.tZ)(Xt,{open:w,close:()=>E(!1),slides:y,zoom:{scrollToZoom:!0,maxZoomPixelRatio:4,zoomInMultiplier:1.5},plugins:[on,hn,Cn,An]}))},Xn=n(9165),Yn=n(7462);var Un=e=>{let{title:t,text:n,className:r,children:o,textAttr:l,...i}=e;return(0,c.tZ)("section",(0,Yn.Z)({},i,{className:"w-full"}),(0,c.tZ)("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.tZ)("div",(0,Yn.Z)({},l,{className:`text-base md:text-lg w-full max-w-[544px] float-right ${r}`})):(0,c.tZ)("p",(0,Yn.Z)({},l,{className:`text-base md:text-lg w-full max-w-[544px] float-right ${r}`}),o||n))};var Vn=e=>{let{text:t,...n}=e;return(0,c.tZ)("span",(0,Yn.Z)({},n,{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"}),t)};var jn=e=>{let{data:{markdownRemark:{frontmatter:t,html:n}},pageContext:{markupData:l,lang:i}}=e;const{title:a,description:s,challenge:u,clientDescription:d,team:m,screenshots:f,stack:h}=t,p=(0,r.c)(t.logo);return(0,c.tZ)("div",{itemScope:!0,itemType:"https://schema.org/CreativeWork",className:"flex bg-main-100"},(0,c.tZ)(o.Z,{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.tZ)("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.tZ)("div",{className:"flex-1 w-full md:max-w-[528px]"},(0,c.tZ)("h1",{itemProp:"name",className:"w-full text-[24px] md:text-4xl font-semibold text-secondary-100 mb-5 uppercase"},a),(0,c.tZ)("p",{itemProp:"description",className:"w-full text-base font-light"},s)),p?(0,c.tZ)("div",{className:"w-28 md:w-48 h-28 md:h-48 flex items-center justify-center"},(0,c.tZ)(r.G,{image:p,imgStyle:{objectFit:"contain"},alt:"logo",itemProp:"image",className:"max-h-full max-w-full"})):null),(0,c.tZ)(Un,{title:l.clientSectionTitle,text:d,itemProp:"sourceOrganization",itemScope:!0,itemType:"https://schema.org/Organization",textAttr:{itemProp:"description"}}),(0,c.tZ)(Un,{title:l.challengeSectionTitle,text:u,textAttr:{itemProp:"about"}}),n?(0,c.tZ)(Un,{title:l.solutionSectionTitle,text:u,className:"project-solution",textAttr:{itemProp:"text",dangerouslySetInnerHTML:{__html:n}}}):null,null!=m&&m.length?(0,c.tZ)(Un,{title:l.teamSectionTitle,className:"flex gap-2.5 flex-wrap pt-2 md:pt-0"},m.map((e=>(0,c.tZ)(Vn,{key:e,id:e,text:e,itemProp:"contributor"})))):null,null!=h&&h.length?(0,c.tZ)(Un,{title:l.techSectionTitle,className:"flex gap-2.5 flex-wrap pt-2 md:pt-0"},h.map((e=>(0,c.tZ)(Vn,{key:e,id:e,text:e,itemProp:"keywords"})))):null,null!=f&&f.length?(0,c.tZ)("section",{className:"w-full mb-8"},(0,c.tZ)("h2",{className:"text-[24px] md:text-4xl text-secondary-100 uppercase w-full max-w-[320px]"},l.resultSectionTitle),(0,c.tZ)(Hn,{screenshots:f})):null,(0,c.tZ)(Xn.Lx,{itemProp:"author",lang:i})))};const Bn=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.tZ)(Xn.Ag,{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})}},7451:function(e,t,n){n.d(t,{Z: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=!1,a=!0,c=!1,s=0;function u(){if(l)return;if(!a)return;i||n.emit("autoplay:play");const{ownerWindow:e}=n.internalEngine();e.clearInterval(s),s=e.setInterval(p,t.delay),i=!0}function d(){if(l)return;i&&n.emit("autoplay:stop");const{ownerWindow:e}=n.internalEngine();e.clearInterval(s),s=0,i=!1}function m(){if(f())return a=i,d();a&&u()}function f(){const{ownerDocument:e}=n.internalEngine();return"hidden"===e.visibilityState}function h(e){void 0!==e&&(c=e),a=!0,u()}function p(){const{index:e}=n.internalEngine(),r=e.clone().add(1).get(),o=n.scrollSnapList().length-1;t.stopOnLastSnap&&r===o&&d(),n.canScrollNext()?n.scrollNext(c):n.scrollTo(0,c)}return{name:"autoplay",options:e,init:function(i,s){n=i;const{mergeOptions:h,optionsAtMedia:p}=s,v=h(r,o.globalOptions),g=h(v,e);if(t=p(g),n.scrollSnapList().length<=1)return;c=t.jump,l=!1;const{eventStore:b,ownerDocument:x}=n.internalEngine(),w=n.rootNode(),E=t.rootNode&&t.rootNode(w)||w,y=n.containerNode();n.on("pointerDown",d),t.stopOnInteraction||n.on("pointerUp",u),t.stopOnMouseEnter&&(b.add(E,"mouseenter",(()=>{a=!1,d()})),t.stopOnInteraction||b.add(E,"mouseleave",(()=>{a=!0,u()}))),t.stopOnFocusIn&&(b.add(y,"focusin",d),t.stopOnInteraction||b.add(y,"focusout",u)),b.add(x,"visibilitychange",m),t.playOnInit&&!f()&&u()},destroy:function(){n.off("pointerDown",d).off("pointerUp",u),d(),l=!0,i=!1},play:h,stop:function(){i&&d()},reset:function(){i&&h()},isPlaying:function(){return i}}}o.globalOptions=void 0}}]);
//# sourceMappingURL=component---src-pages-templates-project-tsx-0f155fa91f86221dfd2e.js.map