PageSourceSearch

https://www.fundacao-mvg.pt/wp-content/plugins/regallery/assets/js/wp-gallery/wp-gallery.542.9dd435de.chunk.js

js fundacao-mvg.pt collected 2026-10-02 12:51:53 UTC 35,636 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwp_gallery=self.webpackChunkwp_gallery||[]).push([[542],{80045:function(n,e,t){t.d(e,{A:function(){return o}});var r=t(98587);function o(n,e){if(null==n)return{};var t,o,i=(0,r.A)(n,e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);for(o=0;o<u.length;o++)t=u[o],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(i[t]=n[t])}return i}},31542:function(n,e,t){t.d(e,{$7:function(){return wn},$z:function(){return A},Ay:function(){return se},D$:function(){return Z},DB:function(){return z},DK:function(){return Cn},Fi:function(){return B},JZ:function(){return Vn},K0:function(){return fn},LI:function(){return L},LJ:function(){return J},Mz:function(){return an},Nf:function(){return yn},Q5:function(){return vn},QJ:function(){return S},RT:function(){return G},Tz:function(){return k},Vg:function(){return x},Y5:function(){return W},Yc:function(){return In},Yf:function(){return se},Z$:function(){return Dn},as:function(){return Xn},bo:function(){return j},dX:function(){return Nn},eS:function(){return X},f4:function(){return C},fh:function(){return P},gZ:function(){return F},iJ:function(){return En},mp:function(){return en},oF:function(){return w},sM:function(){return An},tP:function(){return N},tx:function(){return R},wt:function(){return dn},x3:function(){return kn},yQ:function(){return Wn}});var r=t(64467),o=t(5544),i=t(89379),u=t(60436),c=t(80045),a=t(51477),l=t(89771),f=t(19252),s=["buttons"],d=["children"],v=["label","className","icon","renderIcon","onClick","style"],p=["style","className"],h=["children"],m=["easing"],g=["easing"],b=["carousel","animation","render","toolbar","controller","noScroll","on","plugins","slides","index"],y=["animation","carousel","render","toolbar","controller","noScroll","on","slides","index","plugins"],E="yarl__";function A(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];
1return[].concat(e).filter(Boolean).join(" ")}function w(n){return"".concat(E).concat(n)}function x(n){return"--".concat(E).concat(n)}function C(n,e){return"".concat(n).concat(e?"_".concat(e):"")}function P(n){return function(e){return C(n,e)}}function M(n,e){var t;return null!==(t=null===n||void 0===n?void 0:n[e])&&void 0!==t?t:e}function N(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return function(){e.forEach((function(n){n()}))}}function k(n,e,t){return function(){var r=a.useContext(t);if(!r)throw new Error("".concat(n," must be used within a ").concat(e,".Provider"));return r}}function I(){return"undefined"!==typeof window}function L(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=Math.pow(10,e);return Math.round((n+Number.EPSILON)*t)/t}function R(n){return void 0===n.type||"image"===n.type}function S(n,e){return n.imageFit===l.e7||n.imageFit!==l.Td&&e===l.e7}function O(n){return"string"===typeof n?Number.parseInt(n,10):n}function T(n){if("number"===typeof n)return{pixel:n};if("string"===typeof n){var e=O(n);return n.endsWith("%")?{percent:e}:{pixel:e}}return{pixel:0}}function D(n,e){var t=T(e),r=void 0!==t.percent?n.width/100*t.percent:t.pixel;return{width:Math.max(n.width-2*r,0),height:Math.max(n.height-2*r,0)}}function W(){return(I()?null===window||void 0===window?void 0:window.devicePixelRatio:void 0)||1}function _(n,e){return e>0?(n%e+e)%e:0}function z(n){return n.length>0}function F(n,e){return n[_(e,n.length)]}function U(n,e){return z(n)?F(n,e):void 0}function j(n,e,t){if(!t)return n;var r=n.buttons,o=(0,c.A)(n,s),l=r.findIndex((function(n){return n===e})),f=a.isValidElement(t)?a.cloneElement(t,{key:e},null):t;if(l>=0){var d=(0,u.A)(r);return d.splice(l,1,f),(0,i.A)({buttons:d},o)}return(0,i.A)({buttons:[f].concat((0,u.A)(r))},o)}function X(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.min(n.preload,Math.max(n.finite?e.length-1:Math.floor(e.length/2),t))}var K={open:!1,close:function(){},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[l.C]},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:l.Td,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 B(n,e){return{name:n,component:e}}function H(n,e){return{module:n,children:e}}function Y(n,e,t){return n.module.name===e?t(n):n.children?[H(n.module,n.children.flatMap((function(n){var r;return null!==(r=Y(n,e,t))&&void 0!==r?r:[]})))]:[n]}function Q(n,e,t){return n.flatMap((function(n){var r;return null!==(r=Y(n,e,t))&&void 0!==r?r:[]}))}var q=a.createContext(null),J=k("useEvents","EventsContext",q);function V(n){var e=n.children,t=a.useState({}),r=(0,o.A)(t,1)[0];a.useEffect((function(){return function(){Object.keys(r).forEach((function(n){return delete r[n]}))}}),[r]);var i=a.useMemo((function(){var n=function(n,e){var t,o;null===(o=r[n])||void 0===o||(t=o).splice.apply(t,[0,r[n].length].concat((0,u.A)(r[n].filter((function(n){return n!==e})))))};return{publish:function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];var o,i=e[0],u=e[1];null===(o=r[i])||void 0===o||o.forEach((function(n){return n(u)}))},subscribe:function(e,t){return r[e]||(r[e]=[]),r[e].push(t),function(){return n(e,t)}},unsubscribe:n}}),[r]);return a.createElement(q.Provider,{value:i},e)}var $=a.createContext(null),Z=k("useLightboxProps","LightboxPropsContext",$);function G(n){var e=n.children,t=(0,c.A)(n,d);return a.createElement($.Provider,{value:t},e)}var nn=a.createContext(null),en=k("useLightboxState","LightboxStateContext",nn),tn=a.createContext(null),rn=k("useLightboxDispatch","LightboxDispatchContext",tn);function on(n,e){switch(e.type){case"swipe":var t=n.slides,r=(null===e||void 0===e?void 0:e.increment)||0,o=n.globalIndex+r,i=_(o,t.length);return{slides:t,currentIndex:i,globalIndex:o,currentSlide:U(t,i),animation:r||e.duration?{increment:r,duration:e.duration,easing:e.easing}:void 0};case"update":return e.slides!==n.slides||e.index!==n.currentIndex?{slides:e.slides,currentIndex:e.index,globalIndex:e.index,currentSlide:U(e.slides,e.index)}:n;default:throw new Error(l.V)}}function un(n){var e=n.slides,t=n.index,r=n.children,u=a.useReducer(on,{slides:e,currentIndex:t,globalIndex:t,currentSlide:U(e,t)}),c=(0,o.A)(u,2),l=c[0],f=c[1];a.useEffect((function(){f({type:"update",slides:e,index:t})}),[e,t]);var s=a.useMemo((function(){return(0,i.A)((0,i.A)({},l),{},{state:l,dispatch:f})}),[l,f]);return a.createElement(tn.Provider,{value:f},a.createElement(nn.Provider,{value:s},r))}var cn=a.createContext(null),an=k("useTimeouts","TimeoutsContext",cn);function ln(n){var e=n.children,t=a.useState([]),r=(0,o.A)(t,1)[0];a.useEffect((function(){return function(){r.forEach((function(n){return window.clearTimeout(n)})),r.splice(0,r.length)}}),[r]);var i=a.useMemo((function(){var n=function(n){r.splice.apply(r,[0,r.length].concat((0,u.A)(r.filter((function(e){return e!==n})))))};return{setTimeout:function(e,t){var o=window.setTimeout((function(){n(o),e()}),t);return r.push(o),o},clearTimeout:function(e){void 0!==e&&(n(e),window.clearTimeout(e))}}}),[r]);return a.createElement(cn.Provider,{value:i},e)}var fn=a.forwardRef((function(n,e){var t=n.label,r=n.className,o=n.icon,u=n.renderIcon,f=n.onClick,s=n.style,d=(0,c.A)(n,v),p=Z(),h=p.styles,m=p.labels;return a.createElement("button",(0,i.A)({ref:e,type:"button","aria-label":M(m,t),className:A(w(l.Uj),r),onClick:f,style:(0,i.A)((0,i.A)({},s),h.button)},d),u?u():a.createElement(o,{className:w(l.jR),style:h.icon}))}));function sn(n,e){var t=function(n){return a.createElement("svg",(0,i.A)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},n),e)};return t.displayName=n,t}function dn(n,e){return sn(n,a.createElement("g",{fill:"currentColor"},a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),e))}function vn(n,e){return sn(n,a.createElement(a.Fragment,null,a.createElement("defs",null,a.createElement("mask",{id:"strike"},a.createElement("path",{d:"M0 0h24v24H0z",fill:"white"}),a.createElement("path",{d:"M0 0L24 24",stroke:"black",strokeWidth:4}))),a.createElement("path",{d:"M0.70707 2.121320L21.878680 23.292883",stroke:"currentColor",strokeWidth:2}),a.createElement("g",{fill:"currentColor",mask:"url(#strike)"},a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),e)))}var pn=dn("Close",a.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),hn=dn("Previous",a.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),mn=dn("Next",a.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}
1)),gn=dn("Loading",a.createElement(a.Fragment,null,Array.from({length:8}).map((function(n,e,t){return a.createElement("line",{key:e,x1:"12",y1:"6.5",x2:"12",y2:"1.8",strokeLinecap:"round",strokeWidth:"2.6",stroke:"currentColor",strokeOpacity:1/t.length*(e+1),transform:"rotate(".concat(360/t.length*e,", 12, 12)")})})))),bn=dn("Error",a.createElement("path",{d:"M21.9,21.9l-8.49-8.49l0,0L3.59,3.59l0,0L2.1,2.1L0.69,3.51L3,5.83V19c0,1.1,0.9,2,2,2h13.17l2.31,2.31L21.9,21.9z M5,18 l3.5-4.5l2.5,3.01L12.17,15l3,3H5z M21,18.17L5.83,3H19c1.1,0,2,0.9,2,2V18.17z"})),yn=I()?a.useLayoutEffect:a.useEffect;function En(){var n=a.useState(!1),e=(0,o.A)(n,2),t=e[0],r=e[1];return a.useEffect((function(){var n,e,t=null===(n=window.matchMedia)||void 0===n?void 0:n.call(window,"(prefers-reduced-motion: reduce)");r(null===t||void 0===t?void 0:t.matches);var o=function(n){return r(n.matches)};return null===(e=null===t||void 0===t?void 0:t.addEventListener)||void 0===e||e.call(t,"change",o),function(){var n;return null===(n=null===t||void 0===t?void 0:t.removeEventListener)||void 0===n?void 0:n.call(t,"change",o)}}),[]),t}function An(n,e){var t=a.useRef(),r=a.useRef(),o=En();return yn((function(){var i,u,c;if(n.current&&void 0!==t.current&&!o){var a=e(t.current,n.current.getBoundingClientRect(),function(n){var e=0,t=0,r=0,o=window.getComputedStyle(n).transform.match(/matrix.*\((.+)\)/);if(o){var i=o[1].split(",").map(O);6===i.length?(e=i[4],t=i[5]):16===i.length&&(e=i[12],t=i[13],r=i[14])}return{x:e,y:t,z:r}}(n.current))||{},l=a.keyframes,f=a.duration,s=a.easing,d=a.onfinish;if(l&&f){null===(i=r.current)||void 0===i||i.cancel(),r.current=void 0;try{r.current=null===(c=(u=n.current).animate)||void 0===c?void 0:c.call(u,l,{duration:f,easing:s})}catch(v){console.error(v)}r.current&&(r.current.onfinish=function(){r.current=void 0,null===d||void 0===d||d()})}}t.current=void 0})),{prepareAnimation:function(n){t.current=n},isAnimationPlaying:function(){var n;return"running"===(null===(n=r.current)||void 0===n?void 0:n.playState)}}}function wn(){var n=a.useRef(null),e=a.useRef(),t=a.useState(),r=(0,o.A)(t,2),i=r[0],u=r[1];return{setContainerRef:a.useCallback((function(t){n.current=t,e.current&&(e.current.disconnect(),e.current=void 0);var r=function(){if(t){var n=window.getComputedStyle(t),e=function(n){return parseFloat(n)||0};u({width:Math.round(t.clientWidth-e(n.paddingLeft)-e(n.paddingRight)),height:Math.round(t.clientHeight-e(n.paddingTop)-e(n.paddingBottom))})}else u(void 0)};r(),t&&"undefined"!==typeof ResizeObserver&&(e.current=new ResizeObserver(r),e.current.observe(t))}),[]),containerRef:n,containerRect:i}}function xn(){var n=a.useRef(),e=an(),t=e.setTimeout,r=e.clearTimeout;return a.useCallback((function(e,o){r(n.current),n.current=t(e,o>0?o:0)}),[t,r])}function Cn(n){var e=a.useRef(n);return yn((function(){e.current=n})),a.useCallback((function(){for(var n,t,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return null===(t=e.current)||void 0===t?void 0:(n=t).call.apply(n,[e].concat(o))}),[])}function Pn(n,e){"function"===typeof n?n(e):n&&(n.current=e)}function Mn(n,e){return a.useMemo((function(){return null==n&&null==e?null:function(t){Pn(n,t),Pn(e,t)}}),[n,e])}function Nn(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=a.useRef();return yn((function(){e&&t.current&&(t.current=!1,n())}),[e,n]),{onFocus:a.useCallback((function(){t.current=!0}),[]),onBlur:a.useCallback((function(){t.current=!1}),[])}}function kn(){var n=a.useState(!1),e=(0,o.A)(n,2),t=e[0],r=e[1];return yn((function(){r("rtl"===window.getComputedStyle(window.document.documentElement).direction)}),[]),t}function In(){var n=a.useState({}),e=(0,o.A)(n,1)[0],t=a.useCallback((function(n,t){var r;null===(r=e[n])||void 0===r||r.forEach((function(n){t.isPropagationStopped()||n(t)}))}),[e]);return{registerSensors:a.useMemo((function(){return{onPointerDown:function(n){return t(l.qq,n)},onPointerMove:function(n){return t(l.RK,n)},onPointerUp:function(n){return t(l.tu,n)},onPointerLeave:function(n){return t(l.tD,n)},onPointerCancel:function(n){return t(l.s,n)},onKeyDown:function(n){return t(l.uF,n)},onKeyUp:function(n){return t(l.t$,n)},onWheel:function(n){return t(l.j7,n)}}}),[t]),subscribeSensors:a.useCallback((function(n,t){return e[n]||(e[n]=[]),e[n].unshift(t),function(){var r=e[n];r&&r.splice.apply(r,[0,r.length].concat((0,u.A)(r.filter((function(n){return n!==t})))))}}),[e])}}function Ln(n,e){var t=a.useRef(0),r=xn(),o=Cn((function(){t.current=Date.now();for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];n(r)}));return a.useCallback((function(){for(var n=arguments.length,i=new Array(n),u=0;u<n;u++)i[u]=arguments[u];r((function(){o(i)}),e-(Date.now()-t.current))}),[e,o,r])}var Rn,Sn,On=P("slide"),Tn=P("slide_image");function Dn(n){var e,t,r,f,s,d,v,h=n.slide,m=n.offset,g=n.render,b=n.rect,y=n.imageFit,E=n.imageProps,x=n.onClick,C=n.onLoad,P=n.style,M=a.useState(l.Qo),N=(0,o.A)(M,2),k=N[0],L=N[1],R=J().publish,O=an().setTimeout,T=a.useRef(null);a.useEffect((function(){0===m&&R((0,l.EC)(k))}),[m,k,R]);var D=Cn((function(n){("decode"in n?n.decode():Promise.resolve()).catch((function(){})).then((function(){n.parentNode&&(L(l.P9),O((function(){null===C||void 0===C||C(n)}),0))}))})),W=a.useCallback((function(n){T.current=n,(null===n||void 0===n?void 0:n.complete)&&D(n)}),[D]),_=a.useCallback((function(n){D(n.currentTarget)}),[D]),z=a.useCallback((function(){L(l.I1)}),[]),F=S(h,y),U=function(n,e){return Number.isFinite(n)?n:e},j=U(Math.max.apply(Math,(0,u.A)((null!==(t=null===(e=h.srcSet)||void 0===e?void 0:e.map((function(n){return n.width}
1)))&&void 0!==t?t:[]).concat(h.width?[h.width]:[]).filter(Boolean))),(null===(r=T.current)||void 0===r?void 0:r.naturalWidth)||0),X=U(Math.max.apply(Math,(0,u.A)((null!==(s=null===(f=h.srcSet)||void 0===f?void 0:f.map((function(n){return n.height})))&&void 0!==s?s:[]).concat(h.height?[h.height]:[]).filter(Boolean))),(null===(d=T.current)||void 0===d?void 0:d.naturalHeight)||0),K=j&&X?{maxWidth:"min(".concat(j,"px, 100%)"),maxHeight:"min(".concat(X,"px, 100%)")}:{maxWidth:"100%",maxHeight:"100%"},B=null===(v=h.srcSet)||void 0===v?void 0:v.sort((function(n,e){return n.width-e.width})).map((function(n){return"".concat(n.src," ").concat(n.width,"w")})).join(", "),H=B&&b&&I()?"".concat(Math.round(Math.min(b&&!F&&h.width&&h.height?b.height/h.height*h.width:Number.MAX_VALUE,b.width)),"px"):void 0,Y=E||{},Q=Y.style,q=Y.className,V=(0,c.A)(Y,p);return a.createElement(a.Fragment,null,a.createElement("img",(0,i.A)((0,i.A)({ref:W,onLoad:_,onError:z,onClick:x,draggable:!1,className:A(w(Tn()),F&&w(Tn("cover")),k!==l.P9&&w(Tn("loading")),q),style:(0,i.A)((0,i.A)((0,i.A)({},K),P),Q)},V),{},{alt:h.alt,sizes:H,srcSet:B,src:h.src})),k!==l.P9&&a.createElement("div",{className:w(On(l.Bv))},k===l.Qo&&((null===g||void 0===g?void 0:g.iconLoading)?g.iconLoading():a.createElement(gn,{className:A(w(l.jR),w(On(l.Qo)))})),k===l.I1&&((null===g||void 0===g?void 0:g.iconError)?g.iconError():a.createElement(bn,{className:A(w(l.jR),w(On(l.I1)))}))))}function Wn(n,e,t,r,o){a.useEffect((function(){return o?function(){}:N(n(l.qq,e),n(l.RK,t),n(l.tu,r),n(l.tD,r),n(l.s,r))}),[n,e,t,r,o])}!function(n){n[n.NONE=0]="NONE",n[n.SWIPE=1]="SWIPE",n[n.PULL=2]="PULL",n[n.ANIMATION=3]="ANIMATION"}(Rn||(Rn={})),function(n){n[n.NONE=0]="NONE",n[n.SWIPE=1]="SWIPE",n[n.PULL=2]="PULL"}(Sn||(Sn={}));var _n=30;function zn(n,e,t,r,o,i,c,l,f,s,d,v,p,h){var m=a.useRef(0),g=a.useRef([]),b=a.useRef(),y=a.useRef(0),E=a.useRef(Sn.NONE),A=a.useCallback((function(n){b.current===n.pointerId&&(b.current=void 0,E.current=Sn.NONE);var e=g.current;e.splice.apply(e,[0,e.length].concat((0,u.A)(e.filter((function(e){return e.pointerId!==n.pointerId})))))}),[]),w=a.useCallback((function(n){A(n),n.persist(),g.current.push(n)}),[A]),x=Cn((function(n){w(n)})),C=function(n,e){return s&&n>e||f&&n<-e},P=Cn((function(n){if(g.current.find((function(e){return e.pointerId===n.pointerId}))&&b.current===n.pointerId){var e=Date.now()-y.current,o=m.current;E.current===Sn.SWIPE?Math.abs(o)>.3*t||Math.abs(o)>5&&e<r?c(o,e):l(o):E.current===Sn.PULL&&(C(o,2*_n)?p(o,e):h(o)),m.current=0,E.current=Sn.NONE}A(n)}));Wn(n,x,Cn((function(n){var t=g.current.find((function(e){return e.pointerId===n.pointerId}));if(t){var r=b.current===n.pointerId;if(0===n.buttons)return void(r&&0!==m.current?P(n):A(t));var u=n.clientX-t.clientX,c=n.clientY-t.clientY;if(void 0===b.current){var a=function(e){w(n),b.current=n.pointerId,y.current=Date.now(),E.current=e};Math.abs(u)>Math.abs(c)&&Math.abs(u)>_n&&e(u)?(a(Sn.SWIPE),o()):Math.abs(c)>Math.abs(u)&&C(c,_n)&&(a(Sn.PULL),d())}else r&&(E.current===Sn.SWIPE?(m.current=u,i(u)):E.current===Sn.PULL&&(m.current=c,v(c)))}})),P)}function Fn(n,e,t,r,o,i,u,c,f){var s=a.useRef(0),d=a.useRef(0),v=a.useRef(),p=a.useRef(),h=a.useRef(0),m=a.useRef(0),g=an(),b=g.setTimeout,y=g.clearTimeout,E=a.useCallback((function(){v.current&&(y(v.current),v.current=void 0)}),[y]),A=a.useCallback((function(){p.current&&(y(p.current),p.current=void 0)}),[y]),w=Cn((function(){n!==Rn.SWIPE&&(s.current=0,m.current=0,E(),A())}));a.useEffect(w,[n,w]);var x=Cn((function(n){p.current=void 0,s.current===n&&f(s.current)})),C=Cn((function(e){if(!e.ctrlKey&&!(Math.abs(e.deltaY)>Math.abs(e.deltaX)))if(n===Rn.NONE){if(Math.abs(e.deltaX)<=1.2*Math.abs(h.current))return void(h.current=e.deltaX);if(!t(-e.deltaX))return;if(d.current+=e.deltaX,E(),Math.abs(d.current)>30)d.current=0,h.current=0,m.current=Date.now(),i();else{var a=d.current;v.current=b((function(){v.current=void 0,a===d.current&&(d.current=0)}),o)}}else if(n===Rn.SWIPE){var l=s.current-e.deltaX;if(l=Math.min(Math.abs(l),r)*Math.sign(l),s.current=l,u(l),A(),Math.abs(l)>.2*r)return h.current=e.deltaX,void c(l,Date.now()-m.current);p.current=b((function(){return x(l)}),2*o)}else h.current=e.deltaX}));a.useEffect((function(){return e(l.j7,C)}),[e,C])}var Un=P("container"),jn=a.createContext(null),Xn=k("useController","ControllerContext",jn);var Kn=B(l.Kv,(function(n){var e,t,u=n.children,f=(0,c.A)(n,h),s=f.carousel,d=f.animation,v=f.controller,p=f.on,m=f.styles,g=f.render,b=v.closeOnPullUp,y=v.closeOnPullDown,E=v.preventDefaultWheelX,C=v.preventDefaultWheelY,P=a.useState(),M=(0,o.A)(P,2),k=M[0],I=M[1],R=en(),S=rn(),O=a.useState(Rn.NONE),W=(0,o.A)(O,2),_=W[0],z=W[1],F=a.useRef(0),U=a.useRef(0),j=a.useRef(1),X=In(),K=X.registerSensors,B=X.subscribeSensors,H=J(),Y=H.subscribe,Q=H.publish,q=xn(),V=xn(),$=xn(),Z=wn(),G=Z.c
1ontainerRef,nn=Z.setContainerRef,tn=Z.containerRect,on=Mn(function(n){var e=n.preventDefaultWheelX,t=n.preventDefaultWheelY,r=a.useRef(null),o=Cn((function(n){var r=Math.abs(n.deltaX)>Math.abs(n.deltaY);(r&&e||!r&&t||n.ctrlKey)&&n.preventDefault()}));return a.useCallback((function(n){var e;n?n.addEventListener("wheel",o,{passive:!1}):null===(e=r.current)||void 0===e||e.removeEventListener("wheel",o),r.current=n}),[o])}({preventDefaultWheelX:E,preventDefaultWheelY:C}),nn),un=a.useRef(null),cn=Mn(un,void 0),an=kn(),ln=function(n){return(an?-1:1)*("number"===typeof n?n:1)},fn=Cn((function(){var n;return null===(n=G.current)||void 0===n?void 0:n.focus()})),sn=Cn((function(){return f})),dn=Cn((function(){return R})),vn=a.useCallback((function(n){return Q(l.zn,n)}),[Q]),pn=a.useCallback((function(n){return Q(l.Nc,n)}),[Q]),hn=a.useCallback((function(){return Q(l.C)}),[Q]),mn=function(n){return!(s.finite&&(ln(n)>0&&0===R.currentIndex||ln(n)<0&&R.currentIndex===R.slides.length-1))},gn=function(n){var e;F.current=n,null===(e=G.current)||void 0===e||e.style.setProperty(x("swipe_offset"),"".concat(Math.round(n),"px"))},bn=function(n){var e,t;U.current=n,j.current=function(){var e=y&&n>0?n:b&&n<0?-n:0;return Math.min(Math.max(L(1-e/60*.5,2),.5),1)}(),null===(e=G.current)||void 0===e||e.style.setProperty(x("pull_offset"),"".concat(Math.round(n),"px")),null===(t=G.current)||void 0===t||t.style.setProperty(x("pull_opacity"),"".concat(j.current))},yn=An(un,(function(n,e,t){if(un.current&&tn)return{keyframes:[{transform:"translate(0, ".concat(n.rect.y-e.y+t.y,"px)"),opacity:n.opacity},{transform:"translate(0, 0)",opacity:1}],duration:n.duration,easing:d.easing.fade}})).prepareAnimation,En=function(n,e){if(b||y){bn(n);var t=0;un.current&&(t=d.fade*(e?2:1),yn({rect:un.current.getBoundingClientRect(),opacity:j.current,duration:t})),$((function(){bn(0),z(Rn.NONE)}),t),z(Rn.ANIMATION),e||hn()}},Pn=An(un,(function(n,e,t){var r;if(un.current&&tn&&(null===(r=R.animation)||void 0===r?void 0:r.duration)){var o=T(s.spacing),i=(o.percent?o.percent*tn.width/100:o.pixel)||0;return{keyframes:[{transform:"translate(".concat(ln(R.globalIndex-n.index)*(tn.width+i)+n.rect.x-e.x+t.x,"px, 0)")},{transform:"translate(0, 0)"}],duration:R.animation.duration,easing:R.animation.easing}}})),Nn=Pn.prepareAnimation,Ln=Pn.isAnimationPlaying,Sn=Cn((function(n){var e,t,r=n.offset||0,o=r?d.swipe:null!==(e=d.navigation)&&void 0!==e?e:d.swipe,i=r||Ln()?d.easing.swipe:d.easing.navigation,u=n.direction,c=null!==(t=n.count)&&void 0!==t?t:1,a=Rn.ANIMATION,f=o*c;if(!u){var s=null===tn||void 0===tn?void 0:tn.width,v=n.duration||0,p=s?o/s*Math.abs(r):o;0!==c?(v<p?f=f/p*Math.max(v,p/5):s&&(f=o/s*(s-Math.abs(r))),u=ln(r)>0?l.zn:l.Nc):f=o/2}var h=0;u===l.zn?mn(ln(1))?h=-c:(a=Rn.NONE,f=o):u===l.Nc&&(mn(ln(-1))?h=c:(a=Rn.NONE,f=o)),f=Math.round(f),V((function(){gn(0),z(Rn.NONE)}),f),un.current&&Nn({rect:un.current.getBoundingClientRect(),index:R.globalIndex}),z(a),Q(l.sI,{type:"swipe",increment:h,duration:f,easing:i})}));a.useEffect((function(){var n,e;(null===(n=R.animation)||void 0===n?void 0:n.increment)&&(null===(e=R.animation)||void 0===e?void 0:e.duration)&&q((function(){return S({type:"swipe",increment:0})}),R.animation.duration)}),[R.animation,S,q]);var On=[B,mn,(null===tn||void 0===tn?void 0:tn.width)||0,d.swipe,function(){return z(Rn.SWIPE)},function(n){return gn(n)},function(n,e){return Sn({offset:n,duration:e,count:1})},function(n){return Sn({offset:n,count:0})}],Tn=[function(){y&&z(Rn.PULL)},function(n){return bn(n)},function(n){return En(n)},function(n){return En(n,!0)}];zn.apply(void 0,On.concat([b,y],Tn)),Fn.apply(void 0,[_].concat(On));var Dn=Cn((function(){v.focus&&document.querySelector(".".concat(w(l.kJ)," .").concat(w(Un())))&&fn()}));a.useEffect(Dn,[Dn]);var Wn=Cn((function(){var n;null===(n=p.view)||void 0===n||n.call(p,{index:R.currentIndex})}));a.useEffect(Wn,[R.globalIndex,Wn]),a.useEffect((function(){return N(Y(l.zn,(function(n){return Sn((0,i.A)({direction:l.zn},n))})),Y(l.Nc,(function(n){return Sn((0,i.A)({direction:l.Nc},n))})),Y(l.sI,(function(n){return S(n)})))}),[Y,Sn,S]);var _n=a.useMemo((function(){return{prev:vn,next:pn,close:hn,focus:fn,slideRect:tn?D(tn,s.padding):{width:0,height:0},containerRect:tn||{width:0,height:0},subscribeSensors:B,containerRef:G,setCarouselRef:cn,toolbarWidth:k,setToolbarWidth:I}}),[vn,pn,hn,fn,B,tn,G,cn,k,I,s.padding]);return a.useImperativeHandle(v.ref,(function(){return{prev:vn,next:pn,close:hn,focus:fn,getLightboxProps:sn,getLightboxState:dn}}),[vn,pn,hn,fn,sn,dn]),a.createElement("div",(0,i.A)((0,i.A)({ref:on,className:A(w(Un()),w(l.tC)),style:(0,i.A)((0,i.A)((0,i.A)((0,i.A)({},_===Rn.SWIPE?(0,r.A)({},x("swipe_offset"),"".concat(Math.round(F.current),"px")):null),_===Rn.PULL?(e={},(0,r.A)(e,x("pull_offset"),"".concat(Math.round(U.current),"px")),(0,r.A)(e,x("pull_opacity"),"".concat(j.current)),e):null),"none"!==v.touchAction?(0,r.A)({},x("controller_touch_action"),v.touchAction):null),m.container)},v.aria?{role:"presentation","aria-live":"polite"}:null),{},{tabIndex:-1},K),tn&&a.createElement(jn.Provider,{value:_n},u,null===(t=g.controls)||void 0===t?void 0:t.call(g)))}));function Bn(n){return C(l.mY,n)}function Hn(n){return C("slide",n)}function Yn(n){var e=n.slide,t=n.offset,r=a.useRef(null),o=en().currentIndex,i=Xn(),u=i.slideRect,c=i.
1close,f=Z(),s=f.render,d=f.carousel,v=d.imageFit,p=d.imageProps,h=f.on.click,m=f.controller.closeOnBackdropClick,g=f.styles.slide;return a.createElement("div",{ref:r,className:A(w(Hn()),0===t&&w(Hn("current")),w(l.tC)),onClick:function(n){var e=r.current,t=n.target instanceof HTMLElement?n.target:void 0;m&&t&&e&&(t===e||Array.from(e.children).find((function(n){return n===t}))&&t.classList.contains(w(l.pc)))&&c()},style:g},function(){var n,r,i,c,l=null===(n=s.slide)||void 0===n?void 0:n.call(s,{slide:e,offset:t,rect:u});return!l&&R(e)&&(l=a.createElement(Dn,{slide:e,offset:t,render:s,rect:u,imageFit:v,imageProps:p,onClick:0===t?function(){return null===h||void 0===h?void 0:h({index:o})}:void 0})),l?a.createElement(a.Fragment,null,null===(r=s.slideHeader)||void 0===r?void 0:r.call(s,{slide:e}),(null!==(i=s.slideContainer)&&void 0!==i?i:function(n){return n.children})({slide:e,children:l}),null===(c=s.slideFooter)||void 0===c?void 0:c.call(s,{slide:e})):null}())}function Qn(){var n=Z().styles.slide;return a.createElement("div",{className:w("slide"),style:n})}var qn=B(l.mY,(function(n){var e,t=n.carousel,o=en(),i=o.slides,u=o.currentIndex,c=o.globalIndex,l=Xn().setCarouselRef,f=T(t.spacing),s=T(t.padding),d=[],v=X(t,i,1);if(z(i)){for(var p=u-v;p<u;p+=1){var h=c+p-u;d.push(!t.finite||p>=0?a.createElement(Yn,{key:h,slide:i[(p+v*i.length)%i.length],offset:p-u}):a.createElement(Qn,{key:h}))}d.push(a.createElement(Yn,{key:c,slide:i[u],offset:0}));for(var m=u+1;m<=u+v;m+=1){var g=c+m-u;d.push(!t.finite||m<=i.length-1?a.createElement(Yn,{key:g,slide:i[m%i.length],offset:m-u}):a.createElement(Qn,{key:g}))}}return a.createElement("div",{ref:l,className:A(w(Bn()),d.length>0&&w(Bn("with_slides"))),style:(e={},(0,r.A)(e,"".concat(x(Bn("slides_count"))),d.length),(0,r.A)(e,"".concat(x(Bn("spacing_px"))),f.pixel||0),(0,r.A)(e,"".concat(x(Bn("spacing_percent"))),f.percent||0),(0,r.A)(e,"".concat(x(Bn("padding_px"))),s.pixel||0),(0,r.A)(e,"".concat(x(Bn("padding_percent"))),s.percent||0),e)},d)}));function Jn(){var n=Z().carousel,e=en(),t=e.slides,r=e.currentIndex;return{prevDisabled:0===t.length||n.finite&&0===r,nextDisabled:0===t.length||n.finite&&r===t.length-1}}function Vn(n){var e,t=kn(),r=J().publish,o=Z().animation,i=Jn(),u=i.prevDisabled,c=i.nextDisabled,f=(null!==(e=o.navigation)&&void 0!==e?e:o.swipe)/2,s=Ln((function(){return r(l.zn)}),f),d=Ln((function(){return r(l.Nc)}),f),v=Cn((function(n){switch(n.key){case l.or:r(l.C);break;case l.A9:(t?c:u)||(t?d:s)();break;case l.jn:(t?u:c)||(t?s:d)()}}));a.useEffect((function(){return n(l.uF,v)}),[n,v])}function $n(n){var e=n.label,t=n.icon,r=n.renderIcon,o=n.action,u=n.onClick,c=n.disabled,l=n.style;return a.createElement(fn,(0,i.A)({label:e,icon:t,renderIcon:r,className:w("navigation_".concat(o)),disabled:c,onClick:u,style:l},Nn(Xn().focus,c)))}var Zn=B(l.Ky,(function(n){var e=n.render,t=e.buttonPrev,r=e.buttonNext,o=e.iconPrev,i=e.iconNext,u=n.styles,c=Xn(),f=c.prev,s=c.next,d=c.subscribeSensors,v=Jn(),p=v.prevDisabled,h=v.nextDisabled;return Vn(d),a.createElement(a.Fragment,null,t?t():a.createElement($n,{label:"Previous",action:l.zn,icon:hn,renderIcon:o,style:u.navigationPrev,disabled:p,onClick:f}),r?r():a.createElement($n,{label:"Next",action:l.Nc,icon:mn,renderIcon:i,style:u.navigationNext,disabled:h,onClick:s}))})),Gn=w(l.HR),ne=w(l.vg);function ee(n){return"style"in n}function te(n,e,t){var r=window.getComputedStyle(n),o=t?"padding-left":"padding-right",i=t?r.paddingLeft:r.paddingRight,u=n.style.getPropertyValue(o);return n.style.setProperty(o,"".concat((O(i)||0)+e,"px")),function(){u?n.style.setProperty(o,u):n.style.removeProperty(o)}}var re=B(l.b6,(function(n){var e=n.noScroll.disabled,t=n.children,r=kn();return yn((function(){if(e)return function(){};var n=[],t=document,o=t.body,i=t.documentElement,u=Math.round(window.innerWidth-i.clientWidth);if(u>0){n.push(te(o,u,r));for(var c=o.getElementsByTagName("*"),a=0;a<c.length;a+=1){var l=c[a];ee(l)&&"fixed"===window.getComputedStyle(l).getPropertyValue("position")&&!l.classList.contains(ne)&&n.push(te(l,u,r))}}return o.classList.add(Gn),function(){o.classList.remove(Gn),n.forEac
1h((function(n){return n()}))}}),[r,e]),a.createElement(a.Fragment,null,t)}));function oe(n){return C(l.kJ,n)}function ie(n,e,t){var r=n.getAttribute(e);return n.setAttribute(e,t),function(){r?n.setAttribute(e,r):n.removeAttribute(e)}}var ue=B(l.kJ,(function(n){var e=n.children,t=n.animation,u=n.styles,c=n.className,s=n.on,d=n.portal,v=n.close,p=a.useState(!1),h=(0,o.A)(p,2),m=h[0],g=h[1],b=a.useState(!1),y=(0,o.A)(b,2),E=y[0],C=y[1],P=a.useRef([]),M=a.useRef(null),N=an().setTimeout,k=J().subscribe,I=En()?0:t.fade;a.useEffect((function(){return g(!0),function(){g(!1),C(!1)}}),[]);var L=Cn((function(){P.current.forEach((function(n){return n()})),P.current=[]})),R=Cn((function(){var n;C(!1),L(),null===(n=s.exiting)||void 0===n||n.call(s),N((function(){var n;null===(n=s.exited)||void 0===n||n.call(s),v()}),I)}));a.useEffect((function(){return k(l.C,R)}),[k,R]);var S=Cn((function(n){var e,t,r;n.scrollTop,C(!0),null===(e=s.entering)||void 0===e||e.call(s);for(var o=null!==(r=null===(t=n.parentNode)||void 0===t?void 0:t.children)&&void 0!==r?r:[],i=0;i<o.length;i+=1){var u=o[i];-1===["TEMPLATE","SCRIPT","STYLE"].indexOf(u.tagName)&&u!==n&&(P.current.push(ie(u,"inert","true")),P.current.push(ie(u,"aria-hidden","true")))}P.current.push((function(){var n,e;null===(e=null===(n=M.current)||void 0===n?void 0:n.focus)||void 0===e||e.call(n)})),N((function(){var n;null===(n=s.entered)||void 0===n||n.call(s)}),I)})),O=a.useCallback((function(n){n?S(n):L()}),[S,L]);return m?(0,f.createPortal)(a.createElement("div",{ref:O,className:A(c,w("root"),w(oe()),w(l.vg),E&&w(oe("open"))),role:"presentation","aria-live":"polite",style:(0,i.A)((0,i.A)((0,i.A)({},t.fade!==K.animation.fade?(0,r.A)({},x("fade_animation_duration"),"".concat(I,"ms")):null),t.easing.fade!==K.animation.easing.fade?(0,r.A)({},x("fade_animation_timing_function"),t.easing.fade):null),u.root),onFocus:function(n){M.current||(M.current=n.relatedTarget)}},e),d.root||document.body):null}));var ce=B(l.OT,(function(n){var e=n.children;return a.createElement(a.Fragment,null,e)}));var ae=B(l.pq,(function(n){var e,t=n.toolbar.buttons,r=n.render,o=r.buttonClose,i=r.iconClose,u=n.styles,c=Xn(),f=c.close,s=c.setToolbarWidth,d=wn(),v=d.setContainerRef,p=d.containerRect;return yn((function(){s(null===p||void 0===p?void 0:p.width)}),[s,null===p||void 0===p?void 0:p.width]),a.createElement("div",{ref:v,style:u.toolbar,className:w(C(l.pq,e))},null===t||void 0===t?void 0:t.map((function(n){return n===l.C?o?o():a.createElement(fn,{key:l.C,label:"Close",icon:pn,renderIcon:i,onClick:f}):n})))}));function le(n,e){var t;return a.createElement(n.module.component,(0,i.A)({key:n.module.name},e),null===(t=n.children)||void 0===t?void 0:t.map((function(n){return le(n,e)})))}function fe(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.easing,r=(0,c.A)(n,m),o=e.easing,u=(0,c.A)(e,g);return(0,i.A)((0,i.A)({easing:(0,i.A)((0,i.A)({},t),o)},r),u)}function se(n){var e=n.carousel,t=n.animation,r=n.render,o=n.toolbar,f=n.controller,s=n.noScroll,d=n.on,v=n.plugins,p=n.slides,h=n.index,m=(0,c.A)(n,b),g=K.animation,E=K.carousel,A=K.render,w=K.toolbar,x=K.controller,C=K.noScroll,P=K.on,M=K.slides,N=K.index,k=K.plugins,I=(0,c.A)(K,y),L=function(n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],t=n,r=function(n){for(var e=(0,u.A)(t);e.length>0;){var r=e.pop();if((null===r||void 0===r?void 0:r.module.name)===n)return!0;(null===r||void 0===r?void 0:r.children)&&e.push.apply(e,(0,u.A)(r.children))}return!1},o=function(n,e){t=""!==n?Q(t,n,(function(n){return[H(e,[n])]})):[H(e,t)]},i=function(n,e){t=Q(t,n,(function(n){return[H(n.module,[H(e,n.children)])]}))},c=function(n,e,r){t=Q(t,n,(function(n){var t;return[H(n.module,[].concat((0,u.A)(r?[H(e)]:[]),(0,u.A)(null!==(t=n.children)&&void 0!==t?t:[]),(0,u.A)(r?[]:[H(e)])))]}))},a=function(n,e,r){t=Q(t,n,(function(n){return[].concat((0,u.A)(r?[H(e)]:[]),[n],(0,u.A)(r?[]:[H(e)]))}))},f=function(n){i(l.Kv,n)},s=function(n,e){t=Q(t,n,(function(n){return[H(e,n.children)]}))},d=function(n){t=Q(t,n,(function(n){return n.children}))},v=function(n){e.push(n)};return(arguments.length>
11&&void 0!==arguments[1]?arguments[1]:[]).forEach((function(n){n({contains:r,addParent:o,append:i,addChild:c,addSibling:a,addModule:f,replace:s,remove:d,augment:v})})),{config:t,augmentation:function(n){return e.reduce((function(n,e){return e(n)}),n)}}}([H(ue,[H(re,[H(Kn,[H(qn),H(ae),H(Zn)])])])],v||k),R=L.config,S=(0,L.augmentation)((0,i.A)((0,i.A)({animation:fe(g,t),carousel:(0,i.A)((0,i.A)({},E),e),render:(0,i.A)((0,i.A)({},A),r),toolbar:(0,i.A)((0,i.A)({},w),o),controller:(0,i.A)((0,i.A)({},x),f),noScroll:(0,i.A)((0,i.A)({},C),s),on:(0,i.A)((0,i.A)({},P),d)},I),m));return S.open?a.createElement(G,(0,i.A)({},S),a.createElement(un,{slides:p||M,index:O(h||N)},a.createElement(ln,null,a.createElement(V,null,le(H(ce,R),S))))):null}},89771:function(n,e,t){t.d(e,{A9:function(){return H},AH:function(){return m},Bv:function(){return A},C:function(){return D},CC:function(){return N},EC:function(){return w},HR:function(){return I},I1:function(){return y},Jy:function(){return f},Kv:function(){return o},Ky:function(){return i},MO:function(){return x},Nc:function(){return O},OT:function(){return a},P9:function(){return E},QC:function(){return v},QQ:function(){return h},Qe:function(){return d},Qo:function(){return g},RK:function(){return _},Td:function(){return J},Uh:function(){return C},Uj:function(){return Q},V:function(){return $},b6:function(){return u},e7:function(){return V},hg:function(){return p},iO:function(){return P},j7:function(){return K},jR:function(){return q},jb:function(){return M},jn:function(){return Y},kJ:function(){return c},mY:function(){return r},or:function(){return B},pE:function(){return b},pc:function(){return R},pq:function(){return l},qq:function(){return W},s:function(){return U},sI:function(){return T},t$:function(){return X},tC:function(){return k},tD:function(){return F},tu:function(){return z},uF:function(){return j},vg:function(){return L},z8:function(){return s},zn:function(){return S}});var r="carousel",o="controller",i="navigation",u="no-scroll",c="portal",a="root",l="toolbar",f="counter",s="download",d="fullscreen",v="inline",p="slideshow",h="thumbnails",m="zoom",g="loading",b="playing",y="error",E="complete",A="placeholder",w=function(n){return"active-slide-".concat(n)},x=w(g),C=w(b),P=w(y),M=w(E),N="fullsize",k="flex_center",I="no_scroll",L="no_scroll_padding",R="slide_wrapper",S="prev",O="next",T="swipe",D="close",W="onPointerDown",_="onPointerMove",z="onPointerUp",F="onPointerLeave",U="onPointerCancel",j="onKeyDown",X="onKeyUp",K="onWheel",B="Escape",H="ArrowLeft",Y="ArrowRight",Q="button",q="icon",J="contain",V="cover",$="Unknown action type"}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.