PageSourceSearch

https://www.mandarin-bkk.com/wp-content/themes/wcl/assets/plugins/fancybox/js/fancybox.umd.js?ver=1781865217

js mandarin-bkk.com collected 2026-09-28 13:09:23 UTC 100,668 bytes, 10 lines download raw bytes

1!/*! License details at fancyapps.com/license */function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).window=e.window||{})}(this,function(e){"use strict";let t,n,o,i,l=e=>"object"==typeof e&&null!==e&&e.constructor===Object&&"[object Object]"===Object.prototype.toString.call(e),r=e=>"string"==typeof e,a=e=>e&&null!==e&&e instanceof Element&&"nodeType"in e,s=function(e){var t=new DOMParser().parseFromString(e,"text/html").body;if(t.childElementCount>1){for(var n=document.createElement("div");t.firstChild;)n.appendChild(t.firstChild);return n}let o=t.firstChild;if(o&&!(o instanceof HTMLElement)){var n=document.createElement("div");return n.appendChild(o),n}return o},c=function(e){if(!(e&&e instanceof Element&&e.offsetParent))return!1;let t=e.scrollHeight>e.clientHeight,n=window.getComputedStyle(e).overflowY,o=-1!==n.indexOf("hidden"),i=-1!==n.indexOf("visible");return t&&!o&&!i},u=function(e,t){return!e||e===document.body||t&&e===t?null:c(e)?e:u(e.parentElement,t)},d=(e=!0,t="--f-scrollbar-compensate",n="--f-body-margin",o="hide-scrollbar")=>{let i=document,l=i.body,r=i.documentElement;if(e){if(l.classList.contains(o))return;let e=window.innerWidth-r.getBoundingClientRect().width;e<0&&(e=0),r.style.setProperty(t,`${e}px`);let i=parseFloat(window.getComputedStyle(l).marginRight);i&&l.style.setProperty(n,`${i}px`),l.classList.add(o)}else l.classList.remove(o),l.style.setProperty(n,""),i.documentElement.style.setProperty(t,"")},f=(e,...t)=>{let n=t.length;for(let o=0;o<n;o++)Object.entries(t[o]||{}).forEach(([t,n])=>{let o=Array.isArray(n)?[]:{};e[t]||Object.assign(e,{[t]:o}),l(n)?Object.assign(e[t],f(e[t],n)):Array.isArray(n)?Object.assign(e,{[t]:[...n]}):Object.assign(e,{[t]:n})});return e};function g(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}let m=function(e=0,t=0,n=0){return Math.max(Math.min(t,n),e)},p=function(e=0,t=0,n=0,o=0,i=0,l=!1){let r=(e-t)/(n-t)*(i-o)+o;return l?o<i?m(o,r,i):m(i,r,o):r},h=(e,t="")=>{e&&e.classList&&t.split(" ").forEach(t=>{t&&e.classList.add(t)})},y=(e,t="")=>{e&&e.classList&&t.split(" ").forEach(t=>{t&&e.classList.remove(t)})},v=(e,t="",n)=>{e&&e.classList&&t.split(" ").forEach(t=>{t&&e.classList.toggle(t,n||!1)})};function b(e){return l(e)||Array.isArray(e)}function E(e,t){let n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every(n=>{let o=e[n],i=t[n];return"function"==typeof o?`${o}`==`${i}`:b(o)&&b(i)?E(o,i):o===i})}let w=1/60*3e3,x=function(e){for(let t of _)t.getState()===M.Running&&t.tick(H?e-H:0);H=e,$=window.requestAnimationFrame(x)},M=((L={})[L.Initializing=0]="Initializing",L[L.Running=1]="Running",L[L.Paused=2]="Paused",L[L.Completed=3]="Completed",L[L.Destroyed=4]="Destroyed",L);var L,S,T,P,R,C,A,O,z,k,I=((S=I||{})[S.Spring=0]="Spring",S[S.Ease=1]="Ease",S);let F=((T={})[T.Loop=0]="Loop",T[T.Reverse=1]="Reverse",T),_=new Set,$=null,H=0;function D(){let e=M.Initializing,t=I.Ease,n=0,o=0,i=D.Easings.Linear,l=500,r=0,a=0,s=0,c=0,u=1/0,d=.01,f=.01,g=!1,p={},h=null,y={},v={},b={},L=0,S=0,T=F.Loop,P=D.Easings.Linear,R=new Map;function C(e,...t){for(let n of R.get(e)||[])n(...t)}function A(e){return o=0,e?h=setTimeout(()=>{O()},e):O(),k}function O(){e=M.Running,C("start",y,v)}function z(){if(e=M.Completed,b={},C("end",y),e===M.Completed)if(n<L){if(n++,T===F.Reverse){let e={...p};p={...v},v=e}A(S)}else n=0;return k}let k={getState:function(){return e},easing:function(e){return i=e,t=I.Ease,b={},k},duration:function(e){return l=e,k},spring:function(e={}){t=I.Spring;let{velocity:n,mass:o,tension:i,friction:l,restDelta:m,restSpeed:p,maxSpeed:h,clamp:y}={velocity:0,mass:1,tension:170,friction:26,restDelta:.1,restSpeed:.1,maxSpeed:1/0,clamp:!0,...e};return r=n,a=o,s=i,c=l,f=m,d=p,u=h,g=y,b={},k},isRunning:function(){return e===M.Running},isSpring:function(){return t===I.Spring},from:function(e){return y={...e},k},to:function(e){return v=e,k},repeat:function(e,t=0,n=F.Loop,o){return L=e,S=t,T=n,P=o||i,k},on:function(e,t){return R.set(e,[...R.get(e)||[],t]),k},off:function(e,t){return R.has(e)&&R.set(e,R.get(e).filter(e=>e!==t)),k},start:function(t){return E(y,v)||(e=M.Initializing,p={...y},_.add(this),$||($=window.requestAnimationFrame(x)),A(t)),k},pause:function(){return h&&(clearTimeout(h),h=null),e===M.Running&&(e=M.Paused,C("pause",y)),k},end:z,tick:function(n){n>w&&(n=w),o+=n;let h=0,x=!1;if(e!==M.Running)return k;if(t===I.Ease){x=1===(h=m(0,o/l,1));let e=T===F.Reverse?P:i;for(let t in y)y[t]=p[t]+(v[t]-p[t])*e(h)}if(t===I.Spring){let e=.001*n,t=0;for(let n in y){let o=v[n],i=y[n];if(!("number"==typeof o&&!isNaN(o))||!("number"==typeof i&&!isNaN(i))
1)continue;if(Math.abs(o-i)<=f){y[n]=o,b[n]=0;continue}b[n]||("object"==typeof r&&"number"==typeof r[n]?b[n]=r[n]:"number"==typeof r?b[n]=r:b[n]=0);let l=b[n],p=(l=m(-1*Math.abs(u),l,Math.abs(u)))*a*c,h=Math.abs(o-i)*s;l+=((i>o?-1:1)*h-p)/a*e,i+=l*e;let E=y[n]>o?i<o:i>o,w=Math.abs(l)<d&&Math.abs(o-i)<=f;g&&E&&(w=!0),w?(i=o,l=0):t++,y[n]=i,b[n]=l}x=!t}let L={...v};return C("step",y,p,v,h),x&&e===M.Running&&E(v,L)&&(e=M.Completed,z()),k},getStartValues:function(){return p},getCurrentValues:function(){return y},getCurrentVelocities:function(){return b},getEndValues:function(){return v},destroy:function(){e=M.Destroyed,h&&(clearTimeout(h),h=null),p=y=v={},_.delete(this)}};return k}function V(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}function j(e,t){let n=[];for(let o of V(e)?e[t]:e instanceof MouseEvent&&("changedTouches"===t||"mouseup"!==e.type)?[e]:[])n.push({x:o.clientX,y:o.clientY,ts:Date.now()});return n}function N(e){return j(e,"touches")}function q(e){return j(e,"targetTouches")}function B(e){return j(e,"changedTouches")}function W(e){let t=e[0],n=e[1]||t;return{x:(t.x+n.x)/2,y:(t.y+n.y)/2,ts:n.ts}}function Z(e){let t=e[0],n=e[1]||e[0];return t&&n?-1*Math.sqrt((n.x-t.x)*(n.x-t.x)+(n.y-t.y)*(n.y-t.y)):0}D.destroy=()=>{for(let e of _)e.destroy();$&&(cancelAnimationFrame($),$=null)},D.Easings={Linear:function(e){return e},EaseIn:function(e){return 0===e?0:Math.pow(2,10*e-10)},EaseOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},EaseInOut:function(e){return 0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2}};let G=e=>{e.cancelable&&e.preventDefault()},Y={passive:!1},U={panThreshold:5,swipeThreshold:3,ignore:["textarea","input","select","[contenteditable]","[data-selectable]","[data-draggable]"]},X=!1,K=!0,J=(e,t)=>
1{let n,o,i,l={...U,...t},r=[],a=[],s=[],c=!1,u=!1,d=!1,f=!1,g=0,m=0,p=0,h=0,y=0,v=0,b=0,E=0,w=0,x=[],M=0,L=0,S=new Map;function T(e){let t=Z(a),l=Z(s),d=Math.abs(b)>Math.abs(E)?b:E,f={srcEvent:i,isPanRecognized:c,isSwipeRecognized:u,firstTouch:r,previousTouch:s,currentTouch:a,deltaX:p,deltaY:h,offsetX:y,offsetY:v,velocityX:b,velocityY:E,velocity:d,angle:w,axis:o,scale:t&&l?t/l:0,center:n};for(let t of S.get(e)||[])t(f)}function P(e){let t=Date.now();if(x=x.filter(e=>!e.ts||e.ts>t-100),e&&x.push(e),b=0,E=0,x.length>3){let e=x[0],t=x[x.length-1];if(e&&t){let n=t.x-e.x,o=t.y-e.y,i=e.ts&&t.ts?t.ts-e.ts:0;i>0&&(b=Math.abs(n)>3?n/(i/30):0,E=Math.abs(o)>3?o/(i/30):0)}}}function R(e){if("undefined"!=typeof MouseEvent&&e instanceof MouseEvent){if(X)return}else X=!0;let t=e.composedPath()[0],o=l.ignore.join(",");if(t.matches(o)||t.closest(o))return;if("undefined"!=typeof MouseEvent&&e instanceof MouseEvent){if(!e.buttons||0!==e.button)return;G(e)}e instanceof MouseEvent&&(window.addEventListener("mousemove",C),window.addEventListener("mouseup",A)),window.addEventListener("blur",O),i=e,r=[...a=q(e)],s=[],m=a.length,n=W(a),1===m&&(c=!1,u=!1,d=!1),m&&P(W(a));let p=Date.now(),h=p-(g||p);f=h>0&&h<=250&&1===m,g=p,clearTimeout(M),T("start")}function C(e){if(!r.length||e.defaultPrevented)return;i=e,s=[...a],a=N(e);let t=W(s),u=W(N(e));if(P(u),m=a.length,n=u,s.length===a.length?(p=u.x-t.x,h=u.y-t.y):(p=0,h=0),r.length){let e=W(r);y=u.x-e.x,v=u.y-e.y}a.length>1&&Math.abs(Z(a)-Z(s))>=.1&&(d=!0,T("pinch")),!c&&(c=Math.abs(y)>l.panThreshold||Math.abs(v)>l.panThreshold)&&(K=!1,clearTimeout(L),L=0,o=(w=Math.abs(180*Math.atan2(v,y)/Math.PI))>45&&w<135?"y":"x",r=[...a],s=[...a],y=0,v=0,p=0,h=0,window.getSelection()?.removeAllRanges(),T("panstart")),c&&(p||h)&&T("pan"),T("move")}function A(e){if(i=e,!r.length)return;let t=q(e),o=B(e);if(m=t.length,n=W(o),o.length&&P(W(o)),s=[...a],a=[...t],r=[...t],m>0)T("end"),c=!1,u=!1,x=[];else{let e=l.swipeThreshold;(Math.abs(b)>e||Math.abs(E)>e)&&(u=!0),c&&T("panend"),u&&T("swipe"),c||u||d||(T("tap"),f?T("doubleTap"):M=setTimeout(function(){T("singleTap")},250)),T("end"),z()}}function O(){clearTimeout(M),z(),c&&T("panend"),T("end")}function z(){X=!1,c=!1,u=!1,f=!1,m=0,x=[],a=[],s=[],r=[],p=0,h=0,y=0,v=0,b=0,E=0,w=0,o=void 0,window.removeEventListener("mousemove",C),window.removeEventListener("mouseup",A),window.removeEventListener("blur",O),K||L||(L=setTimeout(()=>{K=!0,L=0},100))}function k(e){let t=e.target;X=!1,t&&!e.defaultPrevented&&(K||(G(e),e.stopPropagation()))}let I={init:function(){if(e)return e.addEventListener("click",k,Y),e.addEventListener("mousedown",R,Y),e.addEventListener("touchstart",R,Y),e.addEventListener("touchmove",C,Y),e.addEventListener("touchend",A),e.addEventListener("touchcancel",A),I},on:function(e,t){return S.set(e,[...S.get(e)||[],t]),I},off:function(e,t){return S.has(e)&&S.set(e,S.get(e).filter(e=>e!==t)),I},isPointerDown:()=>m>0,destroy:function(){clearTimeout(M),clearTimeout(L),L=0,e&&(e.removeEventListener("click",k,Y),e.removeEventListener("mousedown",R,Y),e.removeEventListener("touchstart",R,Y),e.removeEventListener("touchmove",C,Y),e.removeEventListener("touchend",A),e.removeEventListener("touchcancel",A)),e=null,z()}};return I};J.isClickAllowed=()=>K;let Q={IMAGE_ERROR:"This image couldn't be loaded. <br /> Please try again later.",MOVE_UP:"Move up",MOVE_DOWN:"Move down",MOVE_LEFT:"Move left",MOVE_RIGHT:"Move right",ZOOM_IN:"Zoom in",ZOOM_OUT:"Zoom out",TOGGLE_FULL:"Toggle zoom level",TOGGLE_1TO1:"Toggle zoom level",ITERATE_ZOOM:"Toggle zoom level",ROTATE_CCW:"Rotate counterclockwise",ROTATE_CW:"Rotate clockwise",FLIP_X:"Flip horizontally",FLIP_Y:"Flip vertically",RESET:"Reset",TOGGLE_FS:"Toggle fullscreen"},ee=1e4,et=e=>{e.cancelable&&e.preventDefault()},en=(e,t=ee)=>Math.round(((e=parseFloat(e+"")||0)+Number.EPSILON)*t)/t,eo=((P={}).Reset="reset",P.Zoom="zoom",P.ZoomIn="zoomIn",P.ZoomOut="zoomOut",P.ZoomTo="zoomTo",P.ToggleCover="toggleCover",P.ToggleFull="toggleFull",P.ToggleMax="toggleMax",P.IterateZoom="iterateZoom",P.Pan="pan",P.Swipe="swipe",P.Move="move",P.MoveLeft="moveLeft",P.MoveRight="moveRight",P.MoveUp="moveUp",P.MoveDown="moveDown",P.RotateCCW="rotateCCW",P.RotateCW="rotateCW",P.FlipX="flipX",P.FlipY="flipY",P.ToggleFS="toggleFS",P),ei=((R={}).Cover="cover",R.Full="full",R.Max="max",R),el={x:0,y:0,scale:1,angle:0,flipX:1,flipY:1},er=((C={})[C.Init=0]="Init",C[C.Loading=1]="Loading",C[C.Error=2]="Error",C[C.Ready=3]="Ready",C[C.Destroyed=4]="Destroyed",C),ea={bounds:!0,classes:{container:"f-panzoom",wrapper:"f-panzoom__wrapper",content:"f-panzoom__content",viewport:"f-panzoom__viewport"},clickAction:eo.ToggleFull,dblClickAction:!1,gestures:{},height:"auto",l10n:Q,maxScale:4,minScale:1,mouseMoveFactor:1,panMode:"drag",protected:!1,singleClickAction:!1,spinnerTpl:'<div class="f-spinner"></div>',wheelAction:eo.Zoom,width:"auto"},es=0,ec=0,eu=0,ed=(e,n={},o={})=>{let i,l,c,d,f,g,p,b,w=er.Init,x={...ea,...n},M={},L={...el},S={...el},T=[];function P(e){let t=x[e];return t&&"function"==typeof t?t(eS):t}function R(){return e&&e.parentElement&&i&&w===er.Ready}let C=new Map;function A(e,...t){let n=[...C.get(e)||[]];for(let o of(x.on&&n.push(x.on[e]),n))o&&o instanceof Function&&o(eS,...t);"*"!==e&&A("*",e,...t)}function O(e){if(!R()||u(e.target))return;let t=Date.now(),n=m(-1,[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce(function(e,t){return Math.abs(t)>Math.abs(e)?t:e}),1);A("wheel",e,n);let o=P("wheelAction");if(!o||e.defaultPrevented)return;let i=S.scale,l=i*(n>0?1.5:.5);if(o===eo.Zoom){let o=100>Math.abs(e.deltaY)&&100>Math.abs(e.deltaX);if(t-ec<(o?200:45))return void et(e);ec=t;let r=Z(),a=X();if(en(l)<en(r)&&en(i)<=en(r)?(eu+=Math.abs(n),l=r):en(l)>en(a)&&en(i)>=en(a)?(eu+=Math.abs(n),l=a):(eu=0,l=m(r,l,a)),eu>7)return}switch(et(e),o){case eo.Pan:ed(o,{srcEvent:e,deltaX:-(2*e.deltaX),deltaY:-(2*e.deltaY)});break;case eo.Zoom:ed(eo.ZoomTo,{srcEvent:e,scale:l,center:{x:e.clientX,y:e.clientY}});break;default:ed(o,{srcEvent:e})}}function z(n){let o=n.composedPath()[0];if(!J.isClickAllowed()||!a(o)||n.defaultPrevented||!e?.contains(o)||o.hasAttribute("disabled")||o.hasAttribute("aria-disabled"))return;let l=o.closest("[data-panzoom-action]"),r=l?.dataset?.panzoomAction,s=l?.dataset?.panzoomValue||"";if(r){switch(et(n),r){case eo.ZoomTo:case eo.ZoomIn:case eo.ZoomOut:ed(r,{scale:parseFloat(s||"")||void 0});break;case eo.MoveLeft:case eo.MoveRight:ed(r,{deltaX:parseFloat(s||"")||void 0});break;case eo.MoveUp:case eo.MoveDown:ed(r,{deltaY:parseFloat(s||"")||void 0});break;case eo.ToggleFS:eM();break;default:ed(r)}return}if(!i?.contains(o))return;let c={srcEvent:n};if(ed(P("clickAction"),c),P("dblClickAction")){let e=Date.now(),n=e-(es||e);es=e,n>0&&n<=250?(t&&(clearTimeout(t),t=void 0),ed(P("dblClickAction"),c)):t=setTimeout(()=>{ed(P("singleClickAction"),c)},250)}}function k(e){if(b=e,!R()||!j()||L.scale<=1||S.scale<=1||(i?.dataset.animationName||"").indexOf("zoom")>-1)return;let t=N(S.scale);if(!t)return;let{x:n,y:o}=t;ed(eo.Pan,{deltaX:n-S.x,deltaY:o-S.y})}function I(){e&&(y(e,"is-loading"),e.querySelector(".f-spinner")?.remove())}function F(){if(!e||!l)return;
1if(I(),l instanceof HTMLImageElement&&!(l.complete&&l.naturalWidth)){w=er.Error,i?.classList.add("has-error"),A("error");return}A("loaded");let{width:t,height:n}=H();l instanceof HTMLImageElement&&(l.setAttribute("width",t+""),l.setAttribute("height",n+"")),i&&(y(i,"has-error"),l instanceof HTMLImageElement&&(i.setAttribute("width",t+""),i.setAttribute("height",n+""),i.style.aspectRatio=`${t/n||""}`)),g=D().on("start",(e,t)=>{void 0!==t.angle&&(t.angle=90*Math.round(t.angle/90)),void 0!==t.flipX&&(t.flipX=t.flipX>0?1:-1),void 0!==t.flipY&&(t.flipY=t.flipY>0?1:-1),S={...el,...t},ei(),A("animationStart")}).on("pause",e=>{S={...el,...e}}).on("step",e=>{if(!R())return void g?.end();if(L={...el,...e},j()||!P("bounds")||eE()||S.scale>L.scale||S.scale<G())return void ef();let t=K(S.scale),n=!1,o=!1,i=!1,l=!1;L.x<t.x[0]&&(n=!0),L.x>t.x[1]&&(o=!0),L.y<t.y[0]&&(l=!0),L.y>t.y[1]&&(i=!0);let r=!1,a=!1,s=!1,c=!1;S.x<t.x[0]&&(r=!0),S.x>t.x[1]&&(a=!0),S.y<t.y[0]&&(c=!0),S.y>t.y[1]&&(s=!0);let u=!1;(o&&a||n&&r)&&(S.x=m(t.x[0],S.x,t.x[1]),u=!0),(i&&s||l&&c)&&(S.y=m(t.y[0],S.y,t.y[1]),u=!0),u&&g&&g.spring({tension:94,friction:17,maxSpeed:555*S.scale,restDelta:.1,restSpeed:.1,velocity:g.getCurrentVelocities()}).from(L).to(S).start(),ef()}).on("end",()=>{f?.isPointerDown()||Q(),g?.isRunning()||(ei(),A("animationEnd"))}),function(){let e=P("gestures");if(!e||!d||!l)return;let t=!1;f=J(d,e).on("start",e=>{if(!P("gestures")||!g||!R()||j())return;let n=e.srcEvent;(L.scale>1||e.currentTouch.length>1)&&(n?.stopPropagation(),g.pause(),t=!0),1===e.currentTouch.length&&A("touchStart")}).on("move",e=>{t&&(1!==S.scale||e.currentTouch.length>1)&&(et(e.srcEvent),e.srcEvent?.stopPropagation())}).on("pan",e=>{if(!t)return;let n=e.srcEvent;(1!==S.scale||e.currentTouch.length>1)&&(et(n),ed(eo.Pan,e))}).on("swipe",e=>{t&&S.scale>1&&ed(eo.Swipe,e)}).on("tap",e=>{A("click",e)}).on("singleTap",e=>{A("singleClick",e)}).on("doubleTap",e=>{A("dblClick",e)}).on("pinch",e=>{t&&(e.scale>G()?ed(eo.ZoomIn,e):e.scale<G()?ed(eo.ZoomOut,e):ed(eo.Pan,e))}).on("end",e=>{t&&(e.currentTouch.length?(e.srcEvent.stopPropagation(),et(e.srcEvent),g?.end()):(t=!1,ei(),Q(),A("touchEnd")))}).init()}(),d&&(d.addEventListener("wheel",O,{passive:!1}),T.push(()=>{d?.removeEventListener("wheel",O,{passive:!1})})),e?.addEventListener("click",z),document?.addEventListener("mousemove",k),T.push(()=>{e?.removeEventListener("click",z),document?.removeEventListener("mousemove",k)});let o=_();L={...o},S={...o},w=er.Ready,ef(),ei(),A("ready"),requestAnimationFrame(()=>{I(),d&&(d.style.visibility="")})}function _(){let e={...P("startPos")||{}},t=e.scale,n=1;n="string"==typeof t?q(t):"number"==typeof t?t:G();let o={...el,...e,scale:n},i=j()?N(n):void 0;if(i){let{x:e,y:t}=i;o.x=e,o.y=t}return o}function $(){let e={top:0,left:0,width:0,height:0};if(i){let t=i.getBoundingClientRect();S.angle%180==90?(e.top=t.top+.5*t.height-.5*t.width,e.left=t.left+.5*t.width-.5*t.height,e.width=t.height,e.height=t.width):(e.top=t.top,e.left=t.left,e.width=t.width,e.height=t.height)}return e}function H(){let e=P("width"),t=P("height");if(l&&"auto"===e){let t=l.getAttribute("width");e=t?parseFloat(t+""):void 0!==l.dataset.width?parseFloat(l.dataset.width+""):d instanceof HTMLImageElement?d.naturalWidth:l instanceof HTMLImageElement?l.naturalWidth:l.getBoundingClientRect().width}else e=r(e)?parseFloat(e):e;if(l&&"auto"===t){let e=l.getAttribute("height");t=e?parseFloat(e+""):void 0!==l.dataset.height?parseFloat(l.dataset.height+""):d instanceof HTMLImageElement?d.naturalHeight:l instanceof HTMLImageElement?l.naturalHeight:l.getBoundingClientRect().height}else t=r(t)?parseFloat(t):t;return{width:e,height:t}}function V(){let e=$();return{width:e.width,height:e.height}}function j(){return"mousemove"===P("panMode")&&matchMedia("(hover: hover)").matches}function N(e){let t=b||P("event"),n=i?.getBoundingClientRect();if(!t||!n||e<=1)return{x:0,y:0};let o=(t.clientX||0)-n.left,l=(t.clientY||0)-n.top,{width:r,height:a}=V(),s=K(e);if(e>1){let t=P("mouseMoveFactor");t>1&&(e*=t)}let c=r*e,u=a*e,d=(c-r)*.5-o/r*100/100*(c-r),f=(u-a)*.5-l/a*100/100*(u-a);return{x:d=m(s.x[0],d,s.x[1]),y:f=m(s.y[0],f,s.y[1])}}function q(t="base"){if(!e)return 1;let n=e.getBoundingClientRect(),o=$(),{width:i,height:l}
1=H(),r=e=>{if("number"==typeof e)return e;switch(e){case"min":case"base":return 1;case"cover":return Math.max(n.height/o.height,n.width/o.width)||1;case"full":case"max":{let e=S.angle%180==90?l:i;return e&&o.width?e/o.width:1}}},a=P("minScale"),s=P("maxScale"),c=Math.min(r("full"),r(a)),u="number"==typeof s?r("full")*s:Math.min(r("full"),r(s));switch(t){case"min":return c;case"base":return m(c,1,u);case"cover":return r("cover");case"full":return Math.min(u,r("full"));case"max":return u}}function Z(){return q("min")}function G(){return q("base")}function Y(){return q("cover")}function U(){return q("full")}function X(){return q("max")}function K(t){let n={x:[0,0],y:[0,0]},o=e?.getBoundingClientRect();if(!o)return n;let i=$(),l=o.width,r=o.height,a=i.width,s=i.height,c=t=void 0===t?S.scale:t,u=t;if(j()&&t>1){let e=P("mouseMoveFactor");e>1&&(a*t>l+.01&&(c*=e),s*t>r+.01&&(u*=e))}return a*=c,s*=u,t>1&&(a>l&&(n.x[0]=(l-a)*.5,n.x[1]=(a-l)*.5),n.x[0]-=(i.left-o.left)*.5,n.x[1]-=(i.left-o.left)*.5,n.x[0]-=(i.left+i.width-o.right)*.5,n.x[1]-=(i.left+i.width-o.right)*.5,s>r&&(n.y[0]=(r-s)*.5,n.y[1]=(s-r)*.5),n.y[0]-=(i.top-o.top)*.5,n.y[1]-=(i.top-o.top)*.5,n.y[0]-=(i.top+i.height-o.bottom)*.5,n.y[1]-=(i.top+i.height-o.bottom)*.5),n}function Q(){if(!R()||!P("bounds")||!g)return;let e=Z(),t=X(),n=m(e,S.scale,t);if(S.scale<e-.01||S.scale>t+.01)return void ed(eo.ZoomTo,{scale:n});if(g.isRunning()||eE())return;let o=K(n);S.x<o.x[0]||S.x>o.x[1]||S.y<o.y[0]||S.y>o.y[1]?(S.x=m(o.x[0],S.x,o.x[1]),S.y=m(o.y[0],S.y,o.y[1]),g.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:g.getCurrentVelocities()}),g.from(L).to(S).start()):ef()}function ei(t){if(!R())return;let n=eb(),o=eE(),l=ew(),r=ex(),a=em(),s=ep();v(i,"is-fullsize",r),v(i,"is-expanded",l),v(i,"is-dragging",o),v(i,"can-drag",n),v(i,"will-zoom-in",a),v(i,"will-zoom-out",s);let c=ey(),u=ev(),d=eh(),f=!R();for(let n of(t||e)?.querySelectorAll("[data-panzoom-action]")||[]){let e=n.dataset.panzoomAction,t=!1;if(f)t=!0;else switch(e){case eo.ZoomIn:c||(t=!0);break;case eo.ZoomOut:d||(t=!0);break;case eo.ToggleFull:{u||d||(t=!0);let e=n.querySelector("g");e&&(e.style.display=r&&!t?"none":"");break}case eo.IterateZoom:{c||d||(t=!0);let e=n.querySelector("g");e&&(e.style.display=c||t?"":"none");break}case eo.ToggleCover:case eo.ToggleMax:c||d||(t=!0)}t?(n.setAttribute("aria-disabled",""),n.setAttribute("tabindex","-1")):(n.removeAttribute("aria-disabled"),n.removeAttribute("tabindex"))}}function ed(t,n){if(!t||!e||!l||!g||!R()||t===eo.Swipe&&Math.abs(g.getCurrentVelocities().scale)>.01)return;let o={...S},i={...S},r=K(j()?o.scale:L.scale),a=g.getCurrentVelocities(),s=$();n=n||{};let c=(n.currentTouch?.length||0)>1,u=n.velocityX||0,d=n.velocityY||0,f=n.center;n.srcEvent&&(f=W(B(n.srcEvent)));let p=n.deltaX||0,h=n.deltaY||0;switch(t){case eo.MoveRight:p=n.deltaX||100;break;case eo.MoveLeft:p=n.deltaX||-100;break;case eo.MoveUp:h=n.deltaY||-100;break;case eo.MoveDown:h=n.deltaY||100}let y=[];switch(t){case eo.Reset:(i={...el}).scale=G();break;case eo.Pan:case eo.Move:case eo.MoveLeft:case eo.MoveRight:case eo.MoveUp:case eo.MoveDown:if(eE()){let e=1,t=1;i.x<=r.x[0]&&u<=0&&(e=.2*Math.max(.01,1-Math.abs(1/s.width*Math.abs(i.x-r.x[0])))),i.x>=r.x[1]&&u>=0&&(e=.2*Math.max(.01,1-Math.abs(1/s.width*Math.abs(i.x-r.x[1])))),i.y<=r.y[0]&&d<=0&&(t=.2*Math.max(.01,1-Math.abs(1/s.height*Math.abs(i.y-r.y[0])))),i.y>=r.y[1]&&d>=0&&(t=.2*Math.max(.01,1-Math.abs(1/s.height*Math.abs(i.y-r.y[1])))),i.x+=p*e,i.y+=h*t}else i.x=m(r.x[0],i.x+p,r.x[1]),i.y=m(r.y[0],i.y+h,r.y[1]);break;case eo.Swipe:let v=(e=0)=>Math.sign(e)*Math.pow(Math.abs(e),1.5);i.x+=m(-1e3,v(u),1e3),i.y+=m(-1e3,v(d),1e3),d&&!u&&(i.x=m(r.x[0],i.x,r.x[1])),!d&&u&&(i.y=m(r.y[0],i.y,r.y[1])),a.x=u,a.y=d;break;case eo.ZoomTo:i.scale=n.scale||1;break;case eo.ZoomIn:i.scale=i.scale*(n.scale||2),c||(i.scale=Math.min(i.scale,X()));break;case eo.ZoomOut:i.scale=i.scale*(n.scale||.5),c||(i.scale=Math.max(i.scale,Z()));break;case eo.ToggleCover:y=[G(),Y()];break;case eo.ToggleFull:y=[G(),U()];break;case eo.ToggleMax:y=[G(),X()];break;case eo.IterateZoom:y=[G(),U(),X()];break;case eo.Zoom:let b=U();i.scale>=b-.05?i.scale=G():i.scale=Math.min(b,i.scale*(n.scale||2));break;case eo.RotateCW:i.angle+=90;break;case eo.RotateCCW:i.angle-=90;break;case eo.FlipX:i.flipX*=-1;break;case eo.FlipY:i.flipY*=-1}if(void 0!==L.angle&&Math.abs(L.angle)>=360&&(i.angle-=360*Math.floor(L.angle/360),L.angle-=360*Math.floor(L.angle/360)),y.length){let e=y.findIndex(e=>e>i.scale+1/ee);i.scale=y[e]||y[0]}if(c&&(i.scale=m(Z()*(c?.8:1),i.scale,X()*(c?1.6:1))),j()){let e=N(i.scale);if(e){let{x:t,y:n}=e;i.x=t,i.y=n}}else if(Math.abs(i.scale-o.scale)>1e-4){let t=0,n=0;if(f)t=f.x,n=f.y;else{let o=e.getBoundingClientRect();t=o.x+.5*o.width,n=o.y+.5*o.height}let l=t-s.left,a=n-s.top;l-=.5*s.width,a-=.5*s.height;let u=(l-o.x)/o.scale,d=(a-o.y)/o.scale;i.x=l-u*i.scale,i.y=a-d*i.scale,!c&&P("bounds")&&(r=K(i.scale),i.x=m(r.x[0],i.x,r.x[1]),i.y=m(r.y[0],i.y,r.y[1]))}if(t===eo.Swipe){let e=500*i.scale;g.spring({tension:94,friction:17,maxSpeed:e,restDelta:.1,restSpeed:.1,velocity:a})}else t===eo.Pan||c?g.spring({tension:900,friction:17,restDelta:.01,restSpeed:.01,maxSpeed:1}):g.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:a});if(0===n.velocity||E(L,i))L={...i},S={...i},g.end(),ef(),ei();else{if(E(S,i))return;g.from(L).to(i).start()}A("action",t)}function ef(){if(!l||!i||!d)return;let{width:t,height:n}=H();Object.assign(i.style,{maxWidth:`min(${t}px, 100%)`,maxHeight:`min(${n}px, 100%)`});let{x:o,y:r,width:a,height:s,scale:c,angle:u,flipX:f,flipY:g}=function(){let{width:t,height:n}=H(),{width:o,height:i}=V();if(!e)return{x:0,y:0,width:0,height:0,scale:0,flipX:0,flipY:0,angle:0,fitWidth:o,fitHeight:i,fullWidth:t,fullHeight:n};let{x:l,y:r,scale:a,angle:s,flipX:c,flipY:u}=L,d=1/U(),f=t,g=n,m=L.scale*d,p=S.scale*d,h=Math.max(o,i),y=Math.min(o,i);t>n?(f=h,g=y):(f=y,g=h),m=t>n?h*a/t||1:h*a/n||1;let v=f?t*p:0,b=g?n*p:0,E=f&&g?t*m/v:0;return{x:l=l+.5*f-.5*v,y:r=r+.5*g-.5*b,width:v,height:b,scale:E,flipX:c,flipY:u,angle:s,fitWidth:o,fitHeight:i,fullWidth:t,fullHeight:n}}(),m=`translate(${en(o)}px, ${en(r)}px)`;1!==f||1!==g?m+=` scaleX(${en(c*f)}) scaleY(${en(c*g)})`:m+=` scale(${en(c)})`,0!==u&&(m+=` rotate(${u}deg)`),d.style.width=`${en(a)}px`,d.style.height=`${en(s)}px`,d.style.transform=`${m}`,A("render")}function eg(){let e=S.scale,t=void 0,n=P("clickAction"),o=G();if(n){let i=[];switch(n){case eo.ZoomIn:o=e*(t||2);break;case eo.ZoomOut:o=e*(t||.5);break;case eo.ToggleCover:i=[G(),Y()];break;case eo.ToggleFull:i=[G(),U()];break;case eo.ToggleMax:i=[G(),X()];break;case eo.IterateZoom:i=[G(),U(),X()];break;case eo.Zoom:let l=U();o=e>=l-.05?G():Math.min(l,e*(t||2))}if(i.length){let t=i.findIndex(t=>t>e+1/ee);o=i[t]||G()}}return m(Z(),o,X())}function em(){return!!(R()&&eg()>S.scale)}function ep(){return!!(R()&&eg()<S.scale)}function eh(){return!!(R()&&S.scale>Z())}function ey(){return!!(R()&&S.scale<X())}function ev(){return!!(R()&&S.scale<U())}function eb(){return!!(R()&&ew()&&f&&!j())}function eE(){return!!(R()&&f?.isPointerDown()&&!j())}function ew(){return!!(R()&&S.scale>G())}function ex(){return!!(R()&&S.scale>=U())}function eM(){let t="in-fullscreen",n="with-panzoom-in-fullscreen";e?.classList.toggle(t);let o=e?.classList.contains(t);o?(document.documentElement.classList.add(n),document.addEventListener("keydown",eL,!0)):(document.documentElement.classList.remove(n),document.removeEventListener("keydown",eL,!0)),ef(),A(o?"enterFS":"exitFS")}function eL(e){"Escape"!==e.key||e.defaultPrevented||eM()}let eS={canDrag:eb,canZoomIn:ey,canZoomOut:eh,canZoomToFull:ev,destroy:function(){for(let e of(A("destroy"),Object.values(M)))e?.destroy(eS);for(let e of T)e();return i&&(i.style.aspectRatio="",i.style.maxWidth="",i.style.maxHeight=""),d&&(d.style.width="",d.style.height="",d.style.transform=""),i=void 0,l=void 0,d=void 0,L={...el},S={...el},g?.destroy(),g=void 0,f?.destroy(),f=void 0,w=er.Destroyed,eS},emit:A,execute:ed,getBoundaries:K,getContainer:function(){return e},getContent:function(){return l},getFullDim:H,getGestures:function(){return f},getMousemovePos:N,getOptions:function(){return x},getPlugins:function(){return M},getScale:q,getStartPosition:_,getState:function(){return w},getTransform:function(e){return!0===e?S:L},getTween:function(){return g},getViewport:function(){return d},getWrapper:function(){return i},init:function(){return w=er.Init,A("init"),function(){for(let[e,t]of Object.entries({...o,...x.plugins||{}}))if(e&&!M[e]&&t instanceof Function){let n=t();n.init(eS),M[e]=n}A("initPlugins")}(),function(){let t={...ea.classes,...P("classes")};
1if(e&&(h(e,t.container),l=e.querySelector("."+t.content))){if(l.setAttribute("draggable","false"),(i=e.querySelector("."+t.wrapper))||(h(i=document.createElement("div"),t.wrapper),l.insertAdjacentElement("beforebegin",i),i.insertAdjacentElement("afterbegin",l)),(d=e.querySelector("."+t.viewport))||(h(d=document.createElement("div"),t.viewport),d.insertAdjacentElement("afterbegin",l),i.insertAdjacentElement("beforeend",d)),(c=l.cloneNode(!0)).removeAttribute("id"),i.insertAdjacentElement("afterbegin",c),l instanceof HTMLPictureElement&&(l=l.querySelector("img")),c instanceof HTMLPictureElement&&(c=c.querySelector("img")),d instanceof HTMLPictureElement&&(d=d.querySelector("img")),d&&(d.style.visibility="hidden",P("protected"))){d.addEventListener("contextmenu",e=>{et(e)});let e=document.createElement("div");h(e,"f-panzoom__protected"),d.appendChild(e)}A("initLayout")}}(),function(){if(e&&i&&!p){let e=null;(p=new ResizeObserver(()=>{R()&&(e=e||requestAnimationFrame(()=>{R()&&(ei(),Q(),A("refresh")),e=null}))})).observe(i),T.push(()=>{p?.disconnect(),p=void 0,e&&(cancelAnimationFrame(e),e=null)})}}(),function(){if(!e||!l)return;if(!(l instanceof HTMLImageElement&&c instanceof HTMLImageElement))return F();let t=()=>{l&&l instanceof HTMLImageElement&&l.decode().then(()=>{F()}).catch(()=>{F()})};if(w=er.Loading,e.classList.add("is-loading"),A("loading"),c.src&&c.complete)return t();(function(){if(!e||e?.querySelector(".f-spinner"))return;let t=s(P("spinnerTpl"));t&&(t.classList.add("f-spinner"),e.classList.add("is-loading"),i?.insertAdjacentElement("afterbegin",t))})(),c.addEventListener("load",t,!1),c.addEventListener("error",t,!1),T.push(()=>{c?.removeEventListener("load",t,!1),c?.removeEventListener("error",t,!1)})}(),eS},isDragging:eE,isExpanded:ew,isFullsize:ex,isMousemoveMode:j,localize:function(e,t=[]){let n=P("l10n")||{};e=String(e).replace(/\{\{(\w+)\}\}/g,(e,t)=>n[t]||e);for(let n=0;n<t.length;n++)e=e.split(t[n][0]).join(t[n][1]);return e.replace(/\{\{(.*?)\}\}/g,(e,t)=>t)},off:function(e,t){for(let n of e instanceof Array?e:[e])C.has(n)&&C.set(n,C.get(n).filter(e=>e!==t));return eS},on:function(e,t){for(let n of e instanceof Array?e:[e])C.set(n,[...C.get(n)||[],t]);return eS},toggleFS:eM,updateControls:ei,version:"6.0.34",willZoomIn:em,willZoomOut:ep};return eS};ed.l10n={en_EN:Q},ed.getDefaults=()=>ea;let ef=(e,t)=>{let n=[];return e.childNodes.forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&(!t||e.matches(t))&&n.push(e)}),n},eg={...Q,ERROR:"Something went wrong. <br /> Please try again later.",NEXT:"Next page",PREV:"Previous page",GOTO:"Go to page #%d",DOWNLOAD:"Download",TOGGLE_FULLSCREEN:"Toggle full-screen mode",TOGGLE_EXPAND:"Toggle full-size mode",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_AUTOPLAY:"Toggle slideshow"},em=e=>{e.cancelable&&e.preventDefault()},ep=((A={})[A.Init=0]="Init",A[A.Ready=1]="Ready",A[A.Destroyed=2]="Destroyed",A),eh=((O={})[O.Loading=0]="Loading",O[O.Loaded=1]="Loaded",O[O.Error=2]="Error",O),ey={adaptiveHeight:!1,center:!0,classes:{container:"f-carousel",isEnabled:"is-enabled",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",hasAdaptiveHeight:"has-adaptive-height",viewport:"f-carousel__viewport",slide:"f-carousel__slide",isSelected:"is-selected"},dragFree:!1,enabled:!0,errorTpl:'<div class="f-html">{{ERROR}}</div>',fill:!1,infinite:!0,initialPage:0,l10n:eg,rtl:!1,slides:[],slidesPerPage:"auto",spinnerTpl:'<div class="f-spinner"></div>',transition:"fade",tween:{clamp:!0,mass:1,tension:160,friction:25,restDelta:1,restSpeed:1,velocity:0},vertical:!1},ev=0,eb=(e,t={},o={})=>{let i,c,d,g,b;ev++;let E=ep.Init,w={...ey},x={...ey},M={},L=null,S=null,T=!1,P=!1,R=!1,C=!1,A="height",O=0,z=!0,k=0,I=0,F=0,_=0,$="*",H=[],j=[],N=new Set,q=[],B=[],W=0,Z=0,G=0;function Y(e,...t){let n=x[e];return n&&n instanceof Function?n(eI,...t):n}function U(e,t=[]){let n=Y("l10n")||{};e=String(e).replace(/\{\{(\w+)\}\}/g,(e,t)=>n[t]||e);for(let n=0;n<t.length;n++)e=e.split(t[n][0]).join(t[n][1]);return e.replace(/\{\{(.*?)\}\}/g,(e,t)=>t)}let X=new Map;function K(e,...t){let n=[...X.get(e)||[]];for(let o of(x.on&&n.push(x.on[e]),n))o&&o instanceof Function&&o(eI,...t);"*"!==e&&K("*",e,...t)}function Q(){let e=f({},ey,w);f(e,ey,w);let t="",n=w.breakpoints||{};if(n)for(let[o,i]of Object.entries(n))window.matchMedia(o).matches&&(t+=o,f(e,i));if(void 0===b||t!==b){if(b=t,E!==ep.Init){let t=B[k]?.slides[0]?.index;for(let n of(void 0===t&&(t=x.initialSlide),e.initialSlide=t,e.slides=[],H))n.isVirtual&&e.slides.push(n)}eO(),!1!==(x=e).enabled&&(E=ep.Init,K("init"),function(){for(let[e,t]of Object.entries({...o,...x.plugins||{}}))if(e&&!M[e]&&t instanceof Function){let n=t();n.init(eI,eb),M[e]=n}K("initPlugins")}(),function(){if(!L)return;let e=Y("classes")||{};h(L,e.container);let t=Y("style");if(t&&l(t))for(let[e,n]of Object.entries(t))L.style.setProperty(e,n);(S=L.querySelector(`.${e.viewport}`))||(h(S=document.createElement("div"),e.viewport),S.append(...ef(L,`.${e.slide}`)),L.insertAdjacentElement("afterbegin",S)),L.carousel=eI,K("initLayout")}(),function(){if(!S)return;let e=Y("classes")||{};for(let t of(H=[],[...ef(S,`.${e.slide}
1`)].forEach(e=>{if(e.parentElement){let t=ed({el:e,isVirtual:!1,...e.dataset||{}});K("createSlide",t),H.push(t)}}),eE(),H))K("addSlide",t);for(let e of(eu(Y("slides")),H)){let t=e.el;t?.parentElement===S&&(h(t,x.classes.slide),h(t,e.class),eR(e),K("attachSlideEl",e))}K("initSlides")}(),ew(),function(){if(L&&S&&(L.addEventListener("click",eS,{passive:!1}),document.addEventListener("mousemove",ee),!d)){let e=null;(d=new ResizeObserver(t=>{e||(e=requestAnimationFrame(()=>{(function(e){if(!S)return;if(E===ep.Init){let t=e[0]?.contentBoxSize[0],n=t?.blockSize||0,o=t?.inlineSize||0;W=n,Z=o,E=ep.Ready,h(L,(Y("classes")||{}).isEnabled),eA(),c=D().on("start",()=>{i&&i.isPointerDown()||(eo(),eA())}).on("step",e=>{let t=O;(O=e.pos)!==t&&(z=!1,eA())}).on("end",e=>{!i?.isPointerDown()&&(O=e.pos,c&&!P&&(O<F||O>_)?c.spring({clamp:!0,mass:1,tension:200,friction:25,velocity:0,restDelta:1,restSpeed:1}).from({pos:O}).to({pos:m(F,O,_)}).start():z||(z=!0,K("settle")))}),et(),ei(),K("ready");return}if(E!==ep.Ready)return;let t=B.length;ew(),et();let n=S.getBoundingClientRect(),o=n.height,l=n.width;if(!(t>1&&(C&&.5>Math.abs(o-W)||!C&&.5>Math.abs(l-Z))))W=o,Z=l,(!C||o)&&(C||l)&&L&&S&&(t===B.length&&i?.isPointerDown()||(Y("dragFree")&&(P||O>F&&O<_)?(eo(),eA()):eC(k,{transition:!1})))})(t),e=null}))})).observe(S)}}())}}function ee(e){n=e}function et(){if(!S)return;let e=Y("gestures");if(!1===e){i&&(i.destroy(),i=void 0);return}i||(i=J(S,e).on("start",e=>{if(!c)return;let{srcEvent:t}=e;C&&V(t)&&!u(t.target)&&em(t),c.pause(),c.getCurrentVelocities().pos=0;let n=B[k]?.slides[0];n&&N.has(n.index)&&n.el&&(O=(n.offset||0)+(function(e){let t=new DOMMatrixReadOnly(window.getComputedStyle(e).transform);return{width:t.m41||0,height:t.m42||0}}(n.el)[A]||0)*(R&&!C?1:-1)),eM(),!P&&(O<F||O>_)&&c.spring({clamp:!0,mass:1,tension:500,friction:25,velocity:c.getCurrentVelocities()?.pos||0,restDelta:1,restSpeed:1}).from({pos:O}).to({pos:m(F,O,_)}).start()}).on("move",e=>{let{srcEvent:t,axis:n}=e,o=t.target;if(n||(em(t),t.stopPropagation(),t.stopImmediatePropagation()),("y"===n&&C||"x"===n&&!C)&&(em(t),t.stopPropagation()),!n)return;let{deltaX:i,deltaY:l}=e;if(!c||V(t)&&t.touches?.length>1||"y"===n&&!C||"x"===n&&C||o&&u(o)&&!("x"===n&&!C))return;let r=R&&!C?1:-1,a=C?l:i,s=c?.isRunning()?c.getEndValues().pos:O,d=1;!P&&(s<=F&&a*r<0?d=.2*Math.max(.01,1-Math.abs(1/ea()*Math.abs(s-F))):s>=_&&a*r>0&&(d=.2*Math.max(.01,1-Math.abs(1/ea()*Math.abs(s-_))))),s+=a*d*r,c.spring({clamp:!0,mass:1,tension:700,friction:25,velocity:c.getCurrentVelocities()?.pos||0,restDelta:1,restSpeed:1}).from({pos:O}).to({pos:s}).start()}).on("panstart",e=>{e?.axis===(C?"y":"x")&&h(S,"is-dragging")}).on("panend",()=>{y(S,"is-dragging")}).on("end",e=>{let{srcEvent:t,axis:n,velocityX:o,velocityY:i,currentTouch:l}=e;if(l.length>0||!c)return;let r=t.target,a=r&&u(r)&&!("x"===n&&!C);C&&V(t)&&!e.axis&&eS(t);let s=B.length,d=Y("dragFree");if(!s)return;let f=Y("vertical")?i:o,g=c?.isRunning()?c.getEndValues().pos:O,p=R&&!C?1:-1;if(a||(g+=f*(d?5:1)*p),!P&&(f*p<=0&&g<F||f*p>=0&&g>_)){let e=0;Math.abs(f)>0&&(e=2*Math.abs(f),e=Math.min(.3*ea(),e)),g=m(F+-1*e,g,_+e),c.spring({clamp:!0,mass:1,tension:380,friction:25,velocity:-1*f,restDelta:1,restSpeed:1}).from({pos:O}).to({pos:g}).start();return}if(d||M.Autoscroll?.isEnabled())return void(Math.abs(f)>10?c.spring({clamp:!0,mass:1,tension:150,friction:25,velocity:-1*f,restDelta:1,restSpeed:1}).from({pos:O}).to({pos:g}).start():c.isRunning()||z||(z=!0,K("settle")));if(!(d||M.Autoscroll?.isEnabled())&&(!(e.offsetX||e.offsetY)||"y"===n&&!C||"x"===n&&C))return void eC(k,{transition:"tween"});let h=er(g);Math.abs(f)>10&&h===k&&(f>0?h+=R&&!C?1:-1:h+=R&&!C?-1:1),eC(h,{transition:"tween",tween:{velocity:-1*f}})}).init())}function en(e="*"){let t=[];for(let n of H)("*"===e||n.class&&n.class.includes(e)||n.el&&n.el?.classList.contains(e))&&t.push(n);g=void 0,$=e,j=[...t]}function eo(){if(!c)return;let e=er(c?.isRunning()?c.getEndValues().pos:O);e!==k&&(g=k,k=e,eR(),ei(),el(),K("change",k,g))}function ei(){if(!L)return;for(let e of(v(S,"is-draggable",!!i&&B.length>0),L.querySelectorAll("[data-carousel-index]")))e.innerHTML=k+"";for(let e of L.querySelectorAll("[data-carousel-page]"))e.innerHTML=k+1+"";for(let e of L.querySelectorAll("[data-carousel-pages]"))e.innerHTML=B.length+"";for(let e of L.querySelectorAll("[data-carousel-go-prev]"))e.toggleAttribute("aria-disabled",!ez()),ez()?e.removeAttribute("tabindex"):e.setAttribute("tabindex","-1");for(let e of L.querySelectorAll("[data-carousel-go-next]"))e.toggleAttribute("aria-disabled",!ek()),ek()?e.removeAttribute("tabindex"):e.setAttribute("tabindex","-1");let e=!1,t=B[k]?.slides[0];for(let n of(t&&(t.downloadSrc||"image"===t.type&&t.src)&&(e=!0),L.querySelectorAll("[data-carousel-download]")))n.toggleAttribute("aria-disabled",!e)}function el(e){e||(e=B[k]?.slides[0]);let t=e.el;
1if(t)for(let n of t.querySelectorAll("[data-slide-index]"))n.innerHTML=e.index+1+""}function er(e){if(!B.length||!c)return 0;let t=es(),n=e;P?n-=Math.floor((e-B[0]?.pos)/t)*t:n=m(B[0]?.pos,e,B[B.length-1]?.pos);let o=new Map,i=0;for(let e of B){let l=Math.abs(e.pos-n),r=Math.min(l,Math.abs(e.pos-n-t),Math.abs(e.pos-n+t));o.set(i,r),i++}return parseInt((o.size>0?[...o.entries()].reduce((e,t)=>t[1]<e[1]?t:e):[k,0])[0])}function ea(){let e=0;return S&&(S.childElementCount||(S.style.display="block"),e=S.getBoundingClientRect()[A]||0,S.style.display=""),e}function es(e=!0){return j.reduce((e,t)=>e+t.dim,0)+(j.length-(P&&e?0:1))*G}function ec(e){let t=es(),n=ea();if(!S)return[];let o=[];if(!t||!n)return[];e=void 0===e?O:e,P&&(e-=Math.floor(e/t)*t);let i=0,l=0;if(T){let e=S.getBoundingClientRect();i=Math.abs(e.left),l=Math.abs(window.innerWidth-e.right)}let r=0;for(let a of j){let s=(t=0)=>{!(o.indexOf(a)>-1)&&(a.pos=r-e+t||0,a.offset+t>e-a.dim-i+.51&&a.offset+t<e+n+l-.51&&o.push(a))};a.offset=r,P&&(s(t),s(-1*t)),s(),r+=a.dim+G}return o}function eu(e,t){let n=[];for(let t of Array.isArray(e)?e:[e]){let e=ed({...t,isVirtual:!0});e.el||(e.el=document.createElement("div")),K("createSlide",e),n.push(e)}for(let e of(H.splice(void 0===t?H.length:t,0,...n),eE(),n))K("addSlide",e),function(e){let t=e.el;if(!e||!t)return;let n=e.html?e.html instanceof HTMLElement?e.html:s(e.html):void 0;n&&(h(n,"f-html"),e.htmlEl=n,h(t,"has-html"),t.append(n),K("contentReady",e))}(e);return en($),n}function ed(e){return(r(e)||e instanceof HTMLElement)&&(e={html:e}),{index:-1,el:void 0,class:"",isVirtual:!0,dim:0,pos:0,offset:0,html:"",src:"",...e}}function eg(e){if(!S||!e)return;let t=e.el;if(t){if(t.setAttribute("index",e.index+""),t.parentElement!==S){let n;for(let o of(h(t,x.classes.slide),h(t,e.class),eR(e),H))if(o.index>e.index){n=o.el;break}S.insertBefore(t,n&&S.contains(n)?n:null),K("attachSlideEl",e)}return el(e),t}}function eh(e){let t=e?.el;t&&(t.remove(),ex(t),K("detachSlideEl",e))}function eE(){for(let e=0;e<H.length;e++){let t=H[e],n=t.el;n&&(t.index!==e&&ex(n),n.setAttribute("index",`${e}`)),t.index=e}}function ew(){if(!L||!S)return;R=Y("rtl"),A=(C=Y("vertical"))?"height":"width";let e=Y("classes");if(v(L,e.isLTR,!R),v(L,e.isRTL,R),v(L,e.isHorizontal,!C),v(L,e.isVertical,C),v(L,e.hasAdaptiveHeight,Y("adaptiveHeight")),!ea())return;let t=window.getComputedStyle(S);T="visible"===t.getPropertyValue("overflow-"+(C?"y":"x")),G=S&&parseFloat(t.getPropertyValue("--f-carousel-gap"))||0;let n=function(){let e=0;if(S){let t=document.createElement("div");t.style.display="block",h(t,x.classes.slide),S.appendChild(t),e=t.getBoundingClientRect()[A],t.remove(),t=void 0}return e}();for(let e of j){let t=e.el,o=0;if(!e.isVirtual&&t&&a(t)){let e=!1;t.parentElement&&t.parentElement===S||(S.appendChild(t),e=!0),o=t.getBoundingClientRect()[A],e&&t.parentElement?.removeChild(t)}else o=n;e.dim=o}if(P=!1,Y("infinite")){P=!0;let e=es(),t=ea();if(T){let e=S.getBoundingClientRect();t+=e.left,t+=e.right-e.width}for(let n=0;n<j.length;n++){let o=j[n]?.dim+G;if(e-o<t&&e-o-t<o){P=!1;break}}}if(!function(){let e;if(!L)return;let t=ea(),n=es(!1),o=Y("slidesPerPage");o="auto"===o?1/0:parseFloat(o+""),B=[];let i=0,l=0;for(let e of j)(!B.length||i+e.dim-t>.05||l>=o)&&(B.push({index:B.length,slides:[],dim:0,offset:0,pos:0}),i=0,l=0),B[B.length-1]?.slides.push(e),i+=e.dim+G,l++;let r=Y("center"),a=Y("fill"),s=0;for(let e of B){for(let t of(e.dim=(e.slides.length-1)*G,e.slides))e.dim+=t.dim;e.offset=s,e.pos=s,!1!==r&&(e.pos-=(t-e.dim)*.5),a&&!P&&n>t&&(e.pos=m(0,e.pos,n-t)),s+=e.dim+G}let c=[];for(let t of B){let n={...t};e&&.1>Math.abs(n.pos-e.pos)?(e.dim+=n.dim,e.slides=[...e.slides,...n.slides]):(e=n,n.index=c.length,c.push(n))}B=c,ei()}(),F=B[0]?.pos||0,_=B[B.length-1]?.pos||0,E===ep.Init){g=void 0,k=Y("initialPage");let e=Y("initialSlide")||void 0;void 0!==e&&(k=eI.getPageIndex(e)||0),k=m(0,k,B.length-1),I=O=B[k]?.pos||0}else{let e=c?.isRunning()?c.getEndValues().pos:O;(e<F||e>_)&&(k=m(0,k,B.length-1),I=B[k||0]?.pos||0)}K("refresh")}function ex(e){if(!e||!a(e))return;let t=parseInt(e.getAttribute("index")||"-1"),n="";for(let t of Array.from(e.classList)){let e=t.match(/^f-(\w+)(Out|In)$/);e&&e[1]&&(n=e[1]+"")}if(!e||!n)return;let o=[`f-${n}Out`,`f-${n}In`,"to-prev","to-next","from-prev","from-next"];e.removeEventListener("animationend",eL),y(e,o.join(" ")),N.delete(t)}function eM(){if(!S)return;let e=N.size>0;for(let e of j)ex(e.el);N.clear(),e&&eA()}function eL(e){"f-"===e.animationName.substring(0,2)&&(ex(e.target),!N.size&&(y(L,"in-transition"),!z&&.5>Math.abs(eI.getPosition(!0)-I)&&(z=!0,K("settle"))),eA())}function eS(e){if(e.defaultPrevented)return;let t=e.composedPath()[0];if(t.closest("[data-carousel-go-prev]")){em(e),eI.prev();return}if(t.closest("[data-carousel-go-next]")){em(e),eI.next();return}let n=t.closest("[data-carousel-go-to]");
1if(n){em(e),eI.goTo(parseFloat(n.dataset.carouselGoTo||"")||0);return}if(t.closest("[data-carousel-download]")){em(e);let t=B[k]?.slides[0];if(t&&(t.downloadSrc||"image"===t.type&&t.src)){let e=t.downloadFilename,n=document.createElement("a"),o=t.downloadSrc||t.src||"";n.href=o,n.target="_blank",n.download=e||o,n.click()}return}K("click",e)}function eT(e){let t=e.el;t&&t.querySelector(".f-spinner")?.remove()}function eP(e){let t=e.el;t&&(t.querySelector(".f-html.is-error")?.remove(),y(t,"has-error"))}function eR(e){e||(e=B[k]?.slides[0]);let t=e?.el;if(!t)return;let n=Y("formatCaption",e);void 0===n&&(n=e.caption),n=n||"";let o=Y("captionEl");if(o&&o instanceof HTMLElement){if(e.index!==k)return;if(r(n)&&(o.innerHTML=U(n+"")),n instanceof HTMLElement){if(n.parentElement===o)return;o.innerHTML="",n.parentElement&&(n=n.cloneNode(!0)),o.append(n)}return}if(!n)return;let i=e.captionEl||t.querySelector(".f-caption");!i&&n instanceof HTMLElement&&n.classList.contains("f-caption")&&(i=n),!i&&(h(i=document.createElement("div"),"f-caption"),r(n)?i.innerHTML=U(n+""):n instanceof HTMLElement&&(n.parentElement&&(n=n.cloneNode(!0)),i.append(n)));let l=`f-caption-${ev}_${e.index}`;i.setAttribute("id",l),i.dataset.selectable="true",h(t,"has-caption"),t.setAttribute("aria-labelledby",l),e.captionEl=i,t.insertAdjacentElement("beforeend",i)}function eC(e,t={}){let{transition:n,tween:o}={...{transition:x.transition,tween:x.tween},...t||{}};if(!L||!c)return;let i=B.length;if(!i||function(e,t){if(!L||!c||!t||!r(t)||"tween"===t||B[k]?.slides.length>1)return!1;let n=B.length,o=e>k?1:-1;e=P?(e%n+n)%n:m(0,e,n-1),R&&(o*=-1);let i=B[k]?.slides[0],l=i?.index,a=B[e]?.slides[0],s=a?.index,u=B[e]?.pos;if(void 0===s||void 0===l||l===s||O===u||Math.abs(ea()-(a?.dim||0))>1)return!1;z=!1,c.pause(),eM(),h(L,"in-transition"),O=I=u;let d=eg(i),f=eg(a);return eo(),d&&(N.add(l),d.style.transform="",d.addEventListener("animationend",eL),y(d,x.classes.isSelected),d.inert=!1,h(d,`f-${t}Out to-${o>0?"next":"prev"}`)),f&&(N.add(s),f.style.transform="",f.addEventListener("animationend",eL),h(f,x.classes.isSelected),f.inert=!1,h(f,`f-${t}In from-${o>0?"prev":"next"}`)),eA(),!0}(e,n))return;e=P?(e%i+i)%i:m(0,e,i-1),I=B[e||0]?.pos||0;let a=c.isRunning()?c.getEndValues().pos:O;if(1>Math.abs(I-a)){O=I,k!==e&&(eR(),ei(),el(),g=k,K("change",k=e,g)),eA(),z||(z=!0,K("settle"));return}if(c.pause(),eM(),P){let e=es(),t=Math.floor((a-B[0]?.pos)/e),n=I+t*e,o=n-e;I=[n+e,n,o].reduce(function(e,t){return Math.abs(t-a)<Math.abs(e-a)?t:e})}if(!1!==n&&l(o))return void c.spring(f({},x.tween,o)).from({pos:O}).to({pos:I}).start();O=I,eo(),eA(),z||(z=!0,K("settle"))}function eA(){let e;if(!L||!S)return;q=ec();let t=new Set,n=[],o=B[k],i=x.setTransform||void 0;for(let i of j){let l=N.has(i.index),r=q.indexOf(i)>-1,a=o?.slides?.indexOf(i)>-1;if(i.isVirtual&&!l&&!r)continue;let s=eg(i);if(s&&(n.push(i),a&&t.add(s),Y("adaptiveHeight")&&a)){let t=(s.firstElementChild||s).getBoundingClientRect().height;e=void 0==e?t:Math.max(e,t)}}S&&e&&(S.style.height=`${e}px`),[...ef(S,`.${x.classes.slide}`)].forEach(e=>{v(e,x.classes.isSelected,t.has(e));let n=H[parseInt(e.getAttribute("index")||"-1")];if(!n){e.remove(),ex(e);return}let o=N.has(n.index),l=q.indexOf(n)>-1;if(n.isVirtual&&!o&&!l)return void eh(n);e.inert=!l;let r=n.pos?Math.round(1e4*n.pos)/1e4:0,a=0,s=0,c=0,u=0;o||(a=C?0:R?-1*r:r,s=C?r:0,c=p(a,0,n.dim,0,100),u=p(s,0,n.dim,0,100)),i instanceof Function&&!o?i(eI,n,{x:a,y:s,xPercent:c,yPercent:u}):e.style.transform=a||s?`translate3d(${c}%, ${u}%,0)`:""}),K("render",n)}function eO(){for(let e of(L?.removeEventListener("click",eS),eM(),document.removeEventListener("mousemove",ee),d?.disconnect(),d=void 0,H))e.el&&a(e.el)&&(e.state=void 0,eT(e),eP(e),eh(e),e.isVirtual?(e.el?.remove(),e.el=void 0):(e.el.style.transform="",S?.appendChild(e.el)));for(let e of Object.values(M))e?.destroy();for(let[e,t]of(M={},i?.destroy(),i=void 0,c?.destroy(),c=void 0,Object.entries(x.classes||{})))"container"!==e&&y(L,t);y(S,"is-draggable")}function ez(){return P||k>0}function ek(){return P||k<B.length-1}let eI={add:function(e,t){let n=O,o=k,i=es(),l=Math.floor(((c?.isRunning()?c.getEndValues().pos:O)-B[0]?.pos)/i);return eu(e,t),en($),ew(),c&&(o===k&&(n-=l*i),n===(I=B[k||0]?.pos||0)?O=I:c.spring({clamp:!0,mass:1,tension:300,friction:25,restDelta:1,restSpeed:1}).from({pos:n}).to({pos:I}).start()),eA(),eI},canGoPrev:ez,canGoNext:ek,destroy:function(){return K("destroy"),window.removeEventListener("resize",Q),eO(),X.clear(),L=null,B=[],H=[],x={...ey},M={},j=[],b="",$="*",E=ep.Destroyed,eI},emit:K,filter:function(e="*"){return en(e),ew(),eA(),K("filter",e),eI},getContainer:function(){return L},getGapDim:function(){return G},getGestures:function(){return i},getLastMouseMove:function(){return n},getOption:function(e){return Y(e)},getOptions:function(){return x},getPage:function(){return B[k]},getPageIndex:function(e){if(void 0!==e){for(let t of B||[])for(let n of t.slides)if(n.index===e)return t.index;return -1}return k},getPageProgress:function(e,t){void 0===e&&(e=k);let n=B[e];if(!n)return e>k?-1:1;let o=es(),i=G,l=n.pos,r=eI.getPosition();if(P&&!0!==t){let e=Math.floor((r-B[0]?.pos)/o);r-=e*o,l=[l+o,l,l-o].reduce(function(e,t){return Math.abs(t-r)<Math.abs(e-r)?t:e})}return(r-l)/(n.dim+i)},getPageVisibility:function(e){void 0===e&&(e=k);let t=B[e];if(!t)return e>k?-1:1;let n=eI.getPosition(),o=ea(),i=t.pos;if(P){let e=eI.getPosition(),t=es(),n=i+Math.floor((e-B[0]?.pos)/t)*t,o=n-t;i=[n+t,n,o].reduce(function(t,n){return Math.abs(n-e)<Math.abs(t-e)?n:t})}return i>n&&i+t.dim<n+o?1:i<n?(i+t.dim-n)/t.dim:i+t.dim>n+o?(n+o-i)/t.dim:0},getPages:function(){return B},getPlugins:function(){return M},getPosition:function(e){let t=O;if(P&&!0!==e){let e=es();t-=Math.floor((O-B[0]?.pos||0)/e)*e}return t},getSlides:function(){return H},getState:function(){return E},getTotalSlideDim:es,getTween:function(){return c},getViewport:function(){return S},getViewportDim:ea,getVisibleSlides:function(e){return void 0===e?q:ec(e)},goTo:eC,hasNavigated:function(){return void 0!==g}
1,hideError:eP,hideLoading:eT,init:function(){if(!e||!a(e))throw Error("No Element found");return E!==ep.Init&&(eO(),E=ep.Init),L=e,w=t,window.removeEventListener("resize",Q),w.breakpoints&&window.addEventListener("resize",Q),Q(),eI},isInfinite:function(){return P},isInTransition:function(){return N.size>0},isRTL:function(){return R},isSettled:function(){return z},isVertical:function(){return C},localize:function(e,t=[]){return U(e,t)},next:function(e={}){return eC(k+1,e),eI},off:function(e,t){for(let n of e instanceof Array?e:[e])X.has(n)&&X.set(n,X.get(n).filter(e=>e!==t));return eI},on:function(e,t){for(let n of e instanceof Array?e:[e])X.set(n,[...X.get(n)||[],t]);return eI},prev:function(e={}){return eC(k-1,e),eI},remove:function(e){void 0===e&&(e=H.length-1);let t=H[e];return t&&(K("removeSlide",t),t.el&&(ex(t.el),t.el.remove(),t.el=void 0),H.splice(e,1),en($),ew(),eA()),eI},setPosition:function(e){O=e,eo(),eA()},showError:function(e,t){eT(e),eP(e);let n=e.el;if(n){let o=document.createElement("div");h(o,"f-html"),h(o,"is-error"),o.innerHTML=U(t||"<p>{{ERROR}}</p>"),e.htmlEl=o,h(n,"has-html"),h(n,"has-error"),n.insertAdjacentElement("afterbegin",o),K("contentReady",e)}return eI},showLoading:function(e){let t=e.el,n=t?.querySelector(".f-spinner");if(!t||n)return eI;let o=s(Y("spinnerTpl"));return o&&(h(o,"f-spinner"),t.insertAdjacentElement("beforeend",o)),eI},version:"6.0.34"};return eI};eb.l10n={en_EN:eg},eb.getDefaults=()=>ey;let eE=function(e="",t="",n=""){return e.split(t).join(n)},ew={tpl:e=>`<img class="f-panzoom__content" 
2    ${e.srcset?'data-lazy-srcset="{{srcset}}"':""} 
3    ${e.sizes?'data-lazy-sizes="{{sizes}}"':""} 
4    data-lazy-src="{{src}}" alt="{{alt}}" />`},ex=()=>{let e;function t(t,n){let o=e?.getOptions().Zoomable,i=(l(o)?{...ew,...o}:ew)[t];return i&&"function"==typeof i&&n?i(n):i}function n(){e&&!1!==e.getOptions().Zoomable&&(e.on("addSlide",a),e.on("removeSlide",s),e.on("attachSlideEl",c),e.on("click",i),e.on("change",o),e.on("ready",o))}function o(){u();let t=e?.getVisibleSlides()||[];if(t.length>1||e?.getOption("transition")==="slide")for(let n of t){let t=n.panzoomRef;t&&0>(e?.getPage().slides||[]).indexOf(n)&&t.execute(eo.ZoomTo,{...t.getStartPosition()})}}function i(e,t){let n=t.target;n&&!t.defaultPrevented&&n.dataset.panzoomAction&&d(n.dataset.panzoomAction)}function a(n,o){let i=o.el;if(!e||!i||o.panzoomRef)return;let l=o.src||o.lazySrc||"",a=o.alt||o.caption||`Image #${o.index}`,s=o.srcset||o.lazySrcset||"",c=o.sizes||o.lazySizes||"";if(l&&r(l)&&!o.html&&(!o.type||"image"===o.type)){o.type="image",o.thumbSrc=o.thumbSrc||l;let e=t("tpl",o);e=eE(e,"{{src}}",l+""),e=eE(e,"{{srcset}}",s+""),e=eE(e,"{{sizes}}",c+""),i.insertAdjacentHTML("afterbegin",e)}let d=i.querySelector(".f-panzoom__content");if(!d)return;d.setAttribute("alt",a+"");let f=ed(i,{width:o.width&&"auto"!==o.width?parseFloat(o.width+""):"auto",height:o.height&&"auto"!==o.height?parseFloat(o.height+""):"auto",classes:{container:"f-zoomable"},event:()=>e?.getLastMouseMove(),spinnerTpl:()=>e?.getOption("spinnerTpl")||"",...t("Panzoom")});f.on("*",(t,n,...i)=>{e&&("loading"===n&&(o.state=0),"loaded"===n&&(o.state=1),"error"===n&&(o.state=2,e?.showError(o,"{{IMAGE_ERROR}}")),e.emit(`panzoom:${n}`,o,...i),"ready"===n&&e.emit("contentReady",o),o.index===e?.getPageIndex()&&u())}),o.panzoomRef=f}function s(e,t){t.panzoomRef&&(t.panzoomRef.destroy(),t.panzoomRef=void 0)}function c(e,t){let n=t.panzoomRef;if(n)switch(n.getState()){case er.Init:n.init();break;case er.Ready:n.execute(eo.ZoomTo,{...n.getStartPosition(),velocity:0})}}function u(){let t=e?.getContainer()||void 0,n=e?.getPage()?.slides[0]?.panzoomRef;if(t)if(n)n.updateControls(t);else for(let e of t.querySelectorAll("[data-panzoom-action]")||[])e.setAttribute("aria-disabled",""),e.setAttribute("tabindex","-1")}function d(t,...n){e?.getPage().slides[0].panzoomRef?.execute(t,...n)}return{init:function(t){(e=t).on("initPlugins",n)},destroy:function(){if(e)for(let t of(e.off("initPlugins",n),e.off("addSlide",a),e.off("removeSlide",s),e.off("attachSlideEl",c),e.off("click",i),e.off("change",o),e.off("ready",o),e.getSlides()))s(e,t);e=void 0},execute:d}},eM={syncOnChange:!1,syncOnClick:!0,syncOnHover:!1},eL=()=>{let e,t;function n(){let t=e?.getOptions().Sync;return l(t)?{...eM,...t}:eM}function o(){let o=n().target;e&&o&&e&&o&&(t=o,e.getOptions().classes={...e.getOptions().classes,isSelected:""},e.getOptions().initialSlide=t.getPage()?.slides[0]?.index||0,n().syncOnChange&&e.on("change",r),n().syncOnClick&&e.on("click",
4s),n().syncOnHover&&e.getViewport()?.addEventListener("mouseover",c),e&&t&&(e.on("ready",i),e.on("refresh",u),t.on("change",a),t.on("filter",d)))}function i(){f()}function r(){if(e&&t){let n=e.getPage()?.slides||[],o=t.getPageIndex(n[0].index||0);o>-1&&t.goTo(o,e.hasNavigated()?void 0:{tween:!1,transition:!1}),f()}}function a(){if(e&&t){let n=e.getPageIndex(t.getPage()?.slides[0].index||0);n>-1&&e.goTo(n,t.hasNavigated()?void 0:{tween:!1,transition:!1}),f()}}function s(n,o){if(!e||!t||e.getTween()?.isRunning())return;let i=e?.getOptions().classes.slide;if(!i)return;let l=i?o.target.closest(`.${i}`):null;if(l){let e=parseInt(l.getAttribute("index")||"")||0,n=t.getPageIndex(e);t.goTo(n)}}function c(t){e&&s(e,t)}function u(){if(e&&t){let n=e.getPageIndex(t.getPage()?.slides[0].index||0);n>-1&&e.goTo(n,{tween:!1,transition:!1}),f()}}function d(n,o){e&&t&&(e.filter(o),a())}function f(){if(!t)return;let n=t.getPage()?.slides[0]?.index||0;for(let t of e?.getSlides()||[])t.el?.classList.toggle("is-selected",t.index===n)}return{init:function(t){(e=t).on("initSlides",o)},destroy:function(){e?.off("ready",i),e?.off("refresh",u),e?.off("change",r),e?.off("click",s),e?.getViewport()?.removeEventListener("mouseover",c),t?.off("change",a),t?.off("filter",d),t=void 0,e?.off("initSlides",o),e=void 0},getTarget:function(){return t}}},eS={showLoading:!0,preload:1},eT="is-lazyloading",eP="is-lazyloaded",eR=()=>{let e;function t(){let t=e?.getOptions().Lazyload;return l(t)?{...eS,...t}:eS}function n(){if(!e)return;let n=[...e.getVisibleSlides()],o=t().preload;if(o>0){let t=e.getPosition(),i=e.getViewportDim();n.push(...e.getVisibleSlides(t+i*o),...e.getVisibleSlides(t-i*o))}for(let o of n)!function(n){let o=n.el;if(!o)return;let i="[data-lazy-src],[data-lazy-srcset],[data-lazy-bg]",l=Array.from(o.querySelectorAll(i));for(let r of(o.matches(i)&&l.push(o),l)){let o=r.dataset.lazySrc,i=r.dataset.lazySrcset,l=r.dataset.lazySizes,a=r.dataset.lazyBg,s=(r instanceof HTMLImageElement||r instanceof HTMLSourceElement)&&(o||i),c=r instanceof HTMLElement&&a;if(!(s||c))continue;let u=o||i||a;if(u){if(s&&u){let a=r.parentElement?.classList.contains("f-panzoom__wrapper");t().showLoading&&e?.showLoading(n),r.addEventListener("load",()=>{e?.hideLoading(n),r instanceof HTMLImageElement?r.decode().then(()=>{r.classList.remove(eT),r.classList.add(eP)}):(r.classList.remove(eT),r.classList.add(eP)),a||e?.emit("lazyLoad:loaded",n,r,u)}),r.addEventListener("error",()=>{e?.hideLoading(n),r.classList.remove(eT),r.classList.add("has-lazyerror"),a||e?.emit("lazyLoad:error",n,r,u)}),r.classList.add("f-lazyload"),r.classList.add(eT),a||e?.emit("lazyLoad:load",n,r,u),o&&(r.src=o),i&&(r.srcset=i),l&&(r.sizes=l)}else c&&(document.body.contains(r)||(document.createElement("img").src=a),r.style.backgroundImage=`url('${a}')`);delete r.dataset.lazySrc,delete r.dataset.lazySrcset,delete r.dataset.lazySizes,delete r.dataset.lazyBg}}}(o)}return{init:function(t){(e=t).on("render",n)},destroy:function(){e?.off("render",n),e=void 0}}},eC={prevTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 3l-9 9 9 9"></path></svg>',nextTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"></path></svg>'},eA=()=>{let e,t,n;function o(){let t=e?.getOptions().Arrows;return l(t)?{...eC,...t}:eC}function i(t){if(!e)return;let n=`<button data-carousel-go-${t} tabindex="0" class="f-button is-arrow is-${t}" title="{{${t.toUpperCase()}}}">`+o()[`${t}Tpl`]+"</button",i=s(e.localize(n))||void 0;return i&&h(i,o()[`${t}Class`]),i}function r(){t?.remove(),t=void 0,n?.remove(),n=void 0,e?.getContainer()?.classList.remove("has-arrows")}function a(){e&&!1!==e.getOptions().Arrows&&e.getPages().length>1?(!function(){if(!e)return;let o=e.getViewport();o&&(!t&&(t=i("prev"))&&o.insertAdjacentElement("beforebegin",t),!n&&(n=i("next"))&&o.insertAdjacentElement("afterend",n),v(e.getContainer(),"has-arrows",!!(t||n)))}(),e&&(t?.toggleAttribute("aria-disabled",!e.canGoPrev()),n?.toggleAttribute("aria-disabled",!e.canGoNext()))):r()}return{init:function(t){e=t.on(["change","refresh"],a)},destroy:function(){r(),e?.off(["change","refresh"],a),e=void 0}}},eO='<circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/>',ez='<g>
4<line x1="11" y1="8" x2="11" y2="14"></line></g>'+eO,ek={};for(let[e,t]of Object.entries({moveLeft:["moveLeft","MOVE_LEFT",'<path d="M5 12h14M5 12l6 6M5 12l6-6"/>'],moveRight:["moveRight","MOVE_RIGHT",'<path d="M5 12h14M13 18l6-6M13 6l6 6"/>'],moveUp:["moveUp","MOVE_UP",'<path d="M12 5v14M18 11l-6-6M6 11l6-6"/>'],moveDown:["moveDown","MOVE_DOWN",'<path d="M12 5v14M18 13l-6 6M6 13l6 6"/>'],zoomOut:["zoomOut","ZOOM_OUT",eO],zoomIn:["zoomIn","ZOOM_IN",ez],toggleFull:["toggleFull","TOGGLE_FULL",ez],iterateZoom:["iterateZoom","ITERATE_ZOOM",ez],toggle1to1:["toggleFull","TOGGLE_FULL",'<path d="M3.51 3.07c5.74.02 11.48-.02 17.22.02 1.37.1 2.34 1.64 2.18 3.13 0 4.08.02 8.16 0 12.23-.1 1.54-1.47 2.64-2.79 2.46-5.61-.01-11.24.02-16.86-.01-1.36-.12-2.33-1.65-2.17-3.14 0-4.07-.02-8.16 0-12.23.1-1.36 1.22-2.48 2.42-2.46Z"/><path d="M5.65 8.54h1.49v6.92m8.94-6.92h1.49v6.92M11.5 9.4v.02m0 5.18v0"/>'],rotateCCW:["rotateCCW","ROTATE_CCW",'<path d="M15 4.55a8 8 0 0 0-6 14.9M9 15v5H4M18.37 7.16v.01M13 19.94v.01M16.84 18.37v.01M19.37 15.1v.01M19.94 11v.01"/>'],rotateCW:["rotateCW","ROTATE_CW",'<path d="M9 4.55a8 8 0 0 1 6 14.9M15 15v5h5M5.63 7.16v.01M4.06 11v.01M4.63 15.1v.01M7.16 18.37v.01M11 19.94v.01"/>'],flipX:["flipX","FLIP_X",'<path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/>'],flipY:["flipY","FLIP_Y",'<path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/>'],reset:["reset","RESET",'<path d="M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/>'],toggleFS:["toggleFS","TOGGLE_FS",'<g><path d="M14.5 9.5 21 3m0 0h-6m6 0v6M3 21l6.5-6.5M3 21v-6m0 6h6"/></g><g><path d="m14 10 7-7m-7 7h6m-6 0V4M3 21l7-7m0 0v6m0-6H4"/></g>']}))ek[e]={tpl:`<button data-panzoom-action="${t[0]}" class="f-button" title="{{${t[1]}}}"><svg>${t[2]}</svg></button>`};let eI=((z={}).Left="left",z.middle="middle",z.right="right",z),eF={counter:{tpl:'<div class="f-counter"><span data-carousel-page></span>/<span data-carousel-pages></span></div>'},download:{tpl:'<button data-carousel-download class="f-button" title="{{DOWNLOAD}}"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></button>'},autoplay:{tpl:'<button data-autoplay-action="toggle" class="f-button" title="{{TOGGLE_AUTOPLAY}}"><svg><g><path d="M5 3.5 19 12 5 20.5Z"/></g><g><path d="M8 4v15M17 4v15"/></g></svg></button>'},thumbs:{tpl:'<button data-thumbs-action="toggle" class="f-button" title="{{TOGGLE_THUMBS}}"><svg><rect width="18" height="14" x="3" y="3" rx="2"/><path d="M4 21h1M9 21h1M14 21h1M19 21h1"/></svg></button>'},...ek},e_={absolute:!1,display:{left:[],middle:["zoomIn","zoomOut","toggle1to1","rotateCCW","rotateCW","flipX","flipY","reset"],right:[]},enabled:"auto",items:{}},e$=()=>{let e,t;function n(t){let n=e?.getOptions().Toolbar,o=(l(n)?{...e_,...n}:e_)[t];return o&&"function"==typeof o&&e?o(e):o}function o(){if(!e?.getOptions().Toolbar||!e||t)return;let o=e.getContainer();if(!o)return;let i=n("enabled");if(!i)return;let a=n("absolute"),c=e.getSlides().length>1,u=!1,d=!1;for(let t of e.getSlides())t.panzoomRef&&(u=!0),(t.downloadSrc||"image"===t.type&&t.src)&&(d=!0);let g=e.getPlugins().Thumbs?.isEnabled()||!1,m=c&&e.getPlugins().Autoplay||!1,p=e.getPlugins().Fullscreen&&(document.fullscreenEnabled||document.webkitFullscreenEnabled);if("auto"===i&&(i=u),!i)return;(t=o.querySelector(".f-carousel__toolbar")||void 0)||(t=document.createElement("div")).classList.add("f-carousel__toolbar");let h=n("display"),y=f({},eF,n("items"));for(let n of["left","middle","right"]){let o=h[n]||[],i=document.createElement("div");for(let t of(i.classList.add("f-carousel__toolbar__column"),i.classList.add(`is-${n}`),o)){let n;if(r(t)){if("counter"===t&&!c||"autoplay"===t&&!m||ek[t]&&!u||"fullscreen"===t&&!p||"thumbs"===t&&!g||"download"===t&&!d)continue;n=y[t]}if(l(t)&&(n=t),n&&n.tpl){let t=e.localize(n.tpl),o=s(t=t.split("<svg>").join('<svg tabindex="-1" width="24" height="24" viewBox="0 0 24 24">'));o&&("function"==typeof n.click&&e&&o.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),"function"==typeof n.click&&e&&n.click(e,t)}),i.append(o))}}t.append(i)}if(t.childElementCount){if(a&&t.classList.add("is-absolute"),!t.parentElement){let o=n("parentEl");o?o.insertAdjacentElement("afterbegin",t):e.getViewport()?.insertAdjacentElement("beforebegin",t)}
4o.contains(t)&&o.classList.add("has-toolbar")}}return{init:function(t){e=t,e?.on("initSlides",o)},destroy:function(){e?.off("initSlides",o),e?.getContainer()?.classList.remove("has-toolbar"),t?.remove(),t=void 0},add:function(e,t){eF[e]=t},isEnabled:function(){return!!t}}},eH={autoStart:!0,pauseOnHover:!0,showProgressbar:!0,timeout:2e3},eD=()=>{let e,t,n=!1,o=!1,i=!1,r=null;function a(t){let n=e?.getOptions().Autoplay,o=(l(n)?{...eH,...n}:eH)[t];return o&&"function"==typeof o&&e?o(e):o}function s(){clearTimeout(t),t=void 0}function c(){!n||i||o||t||!e?.isSettled()||function(){for(let t of e?.getPage()?.slides||[])if(0===t.state)return!0;return!1}()||(function(){if(!e||(f(),!a("showProgressbar")))return;let t=a("progressbarParentEl");if(!t&&e.getPlugins().Toolbar?.isEnabled()&&(t=e.getContainer()),!t&&e.getPlugins().Toolbar?.isEnabled()!==!0){let n=e.getPages()[0]?.slides||[],o=e.getPage()?.slides||[];1===n.length&&1===o.length&&(t=o[0].el)}if(t||(t=e.getViewport()),!t)return;(r=document.createElement("div")).classList.add("f-progressbar"),t.prepend(r);let n=a("timeout")||1e3;r.style.animationDuration=`${n}ms`}(),t=setTimeout(()=>{if(e&&n&&!o){if(!e.isInfinite()&&e.getPageIndex()===e.getPages().length-1)return void e.goTo(0);e.next()}},a("timeout")))}function u(){if(!e||e.getPages().length<2||!1===e.getOptions().Autoplay||n)return;n=!0,e.emit("autoplay:start",a("timeout")),e.getContainer()?.classList.add("has-autoplay"),e.getTween()?.on("start",v);let t=e?.getContainer();t&&a("pauseOnHover")&&matchMedia("(hover: hover)").matches&&(t.addEventListener("mouseenter",b,!1),t.addEventListener("mouseleave",E,!1)),e.on("change",h),e.on("settle",y),e.on("contentReady",m),e.on("panzoom:touchStart",d),e.on("panzoom:wheel",d),e.isSettled()&&c()}function d(){if(s(),f(),n&&e){e.emit("autoplay:end"),e.getContainer()?.classList.remove("has-autoplay"),e.getTween()?.off("start",v);let t=e?.getContainer();t&&(t.removeEventListener("mouseenter",b,!1),t.removeEventListener("mouseleave",E,!1))}e&&(e.off("change",h),e.off("settle",y),e.off("contentReady",m),e.off("panzoom:touchStart",d),e.off("panzoom:wheel",d)),n=!1,o=!1}function f(){r&&(r.remove(),r=null)}function g(){e&&e.getPages().length>1&&a("autoStart")&&u()}function m(){e&&c()}function p(e,t){let n=t.target;n&&!t.defaultPrevented&&"toggle"===n.dataset.autoplayAction&&w.toggle()}function h(){e&&(e?.isInfinite()||e.getPageIndex()!==e.getPages().length-1)?(f(),s()):d()}function y(){c()}function v(){s(),f()}function b(){i=!0,n&&(f(),s())}function E(){i=!1,n&&!o&&e?.isSettled()&&c()}let w={init:function(t){(e=t).on("ready",g),e.on("click",p)},destroy:function(){d(),e?.off("ready",g),e?.off("click",p),e=void 0},isEnabled:()=>n,pause:function(){o=!0,s()},resume:function(){o=!1,n&&!i&&c()},start(){u()},stop(){d()},toggle(){n?d():u()}};return w},eV={Carousel:{Lazyload:{showLoading:!1}},minCount:2,showOnStart:!0,thumbTpl:'<button aria-label="Slide to #{{page}}"><img draggable="false" alt="{{alt}}" data-lazy-src="{{src}}" /></button>',type:"modern"},ej=()=>{let e,t,n,i=0,r=0,a=!0;function s(t){let n=e?.getOptions().Thumbs,o=(l(n)?{...eV,...n}:eV)[t];return o&&"function"==typeof o&&e?o(e):o}function c(){if(!e||e?.getOptions().Thumbs===!1)return!1;let t=0;for(let n of e.getSlides())n.thumbSrc&&t++;return t>=s("minCount")}function u(){return"modern"===s("type")}function d(t=!1){let o=e?.getContainer();if(!e||!o||n||!c())return;let i=s("Carousel")?.classes||{};if(i.container=i.container||"f-thumbs",!n){let e=o.nextElementSibling;e?.classList.contains(i.container)&&(n=e)}if(!n){n=document.createElement("div");let e=s("parentEl");e?e.insertAdjacentElement("beforeend",n):o.insertAdjacentElement("afterend",n)}h(n,i.container),h(n,"f-thumbs"),h(n,`is-${s("type")}`),h(n,"is-syncing"),t&&(n.style.maxHeight="0px")}function g(e){let t=e.thumb?e.thumb instanceof HTMLImageElement?e.thumb.src:e.thumb:e.thumbSrc||void 0,n=void 0===e.thumbAlt?`Thumbnail #${e.index}`:e.thumbAlt+"",o=s("thumbTpl");return o=eE(o,"{{alt}}",n),o=eE(o,"{{src}}",t+""),o=eE(o,"{{index}}",`${e.index}`),{html:o=eE(o,"{{page}}",`${e.index||1}`),class:e.thumbClass}}function p(){if(!o||!e||!n||t)return;let l=[];for(let t of e.getSlides())l.push(g(t));l.length&&((t=o(n,f({},{Sync:{target:e},Lazyload:{preload:1},slides:l,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",slide:"f-thumbs__slide"},center:!0,fill:!u(),infinite:!1,dragFree:!0,rtl:e.getOptions().rtl||!1,slidesPerPage:e=>{let t=0;return(u()&&(function(){if(!u()||!n)return;let e=e=>n&&parseFloat(getComputedStyle(n).getPropertyValue("--f-thumb-"+e))||0;i=e("width"),r=e("clip-width")}(),t=(i-r)*4),e&&e.getTotalSlideDim()<=e.getViewportDim()-t)?1/0:1}},eV.Carousel||{},s("Carousel")||{}),{Sync:eL,Lazyload:eR})).on("ready",()=>{e?.emit("thumbs:ready"),u()&&(e?.on("change",w),e?.on("render",E))}),t.on("destroy",()=>{e?.emit("thumbs:destroy")}),t.init(),t.getGestures()?.on("start",()=>{a=!1}),t.on("click",(e,t)=>{let n=t.target;if(n){let e=n.matches("button")?n:n.firstElementChild;e&&e.matches("button")&&(t.preventDefault(),e.focus({preventScroll:!0}))}}),h(e.getContainer(),"has-thumbs"),L())}function y(){c()&&s("showOnStart")&&(d(),p())}function v(){c()&&(e?.on("addSlide",x),e?.on("click",M),e?.getGestures()?.on("start",b))}function b(){a=!0,document.activeElement?.closest(".f-thumbs")&&document.activeElement?.blur()}function E(){n?.classList.toggle("is-syncing",e?.hasNavigated()===!1||e?.getTween()?.isRunning()),L(),e?.getGestures()?.isPointerDown()&&function(){if(!u()||!e||!t||!a)return;let n=t.getTween(),o=t.getPages(),l=e.getPageIndex()||0,s=e.getPageProgress()||0;if(!e||!o||!o[l]||!n)return;let c=n.isRunning()?n.getCurrentValues().pos:t.getPosition();if(void 0===c)return;let d=o[l].pos+s*(i-r);d=m(o[0].pos,d,o[o.length-1].pos),n.from({pos:c}).to({pos:d}).start()}()}function w(){a=!0}function x(e,n){t?.add(g(n),n.index)}function M(e,o){let i=o.target;i&&!o.defaultPrevented&&"toggle"===i.dataset.thumbsAction&&function(){if(n||(d(!0),p()),!n)return;let e=t?.isVertical()?"maxWidth":"maxHeight";n.style[e]?n.style[e]="":n.style[e]="0px"}()}function L(){if(!u()||!e||!t)return;let n=t?.getSlides()||[],o=-.5*i;for(let t of n){let n=t.el;if(!n)continue;let l=e.getPageProgress(t.index)||0;(l=Math.max(-1,Math.min(1,l)))>-1&&l<1&&(o+=.5*i*(1-Math.abs(l))),l=Math.round(1e4*l)/1e4,o=Math.round(1e4*o)/1e4,n.style.setProperty("--progress",`${Math.abs(l)}`),n.style.setProperty("--shift",`${e?.isRTL()?-1*o:o}px`),l>-1&&l<1&&(o+=.5*i*(1-Math.abs(l)))}}return{init:function(t,n){o=n,(e=t).on("ready",v),e.on("initSlides",y)},destroy:function(){e?.off("ready",v),e?.off("initSlides",y),e?.off("change",w),e?.off("render",E),e?.off("addSlide",x),e?.off("click",M),e?.getGestures()?.off("start",b),e?.getContainer()?.classList.remove("has-thumbs"),e=void 0,t?.destroy(),t=void 0,n?.remove(),n=void 0},getCarousel:function(){return t},getContainer:function(){return n},isEnabled:function(){return c()}}},eN={iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"}},eq=()=>{let e;function t(e,t){let n=t.src;if(!r(n))return;let o=t.type;if(!o){if(!o&&("#"===n.charAt(0)?o="inline":n.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.((a)?png|avif|gif|jp(g|eg)|pjp(eg)?|jfif|svg|webp|bmp|
4ico|tif(f)?)((\?|#).*)?$)/i)?o="image":n.match(/\.(pdf)((\?|#).*)?$/i)?o="pdf":n.match(/\.(html|php)((\?|#).*)?$/i)&&(o="iframe")),!o){let e=n.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i);e&&(n=`https://maps.google.${e[1]}/?ll=${(e[2]?e[2]+"&z="+Math.floor(parseFloat(e[3]))+(e[4]?e[4].replace(/^\//,"&"):""):e[4]+"").replace(/\?/,"&")}&output=${e[4]&&e[4].indexOf("layer=c")>0?"svembed":"embed"}`,o="gmap")}if(!o){let e=n.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i);e&&(n=`https://maps.google.${e[1]}/maps?q=${e[2].replace("query=","q=").replace("api=1","")}&output=embed`,o="gmap")}t.src=n,t.type=o}}function n(t,n){("iframe"===n.type||"pdf"===n.type||"gmap"===n.type)&&function(t){if(!e||!t.el||!t.src)return;let n=document.createElement("iframe");for(let[t,o]of(n.classList.add("f-iframe"),Object.entries(function(){let t=e?.getOptions().Html;return l(t)?{...eN,...t}:eN}().iframeAttr||{})))n.setAttribute(t,o);n.onerror=()=>{e&&1===e.getState()&&e.showError(t,"{{IFRAME_ERROR}}")},n.src=t.src;let o=document.createElement("div");if(o.classList.add("f-html"),o.append(n),t.width){let e=`${t.width}`;e.match(/^\d+$/)&&(e+="px"),o.style.maxWidth=`${e}`}if(t.height){let e=`${t.height}`;e.match(/^\d+$/)&&(e+="px"),o.style.maxHeight=`${e}`}if(t.aspectRatio){let e=t.el.getBoundingClientRect();o.style.aspectRatio=`${t.aspectRatio}`,o.style[e.width>e.height?"width":"height"]="auto",o.style[e.width>e.height?"maxWidth":"maxHeight"]="none"}t.contentEl=n,t.htmlEl=o,t.el.classList.add("has-html"),t.el.classList.add("has-iframe"),t.el.classList.add(`has-${t.type}`),t.el.prepend(o),e.emit("contentReady",t)}(n)}function o(t,n){("iframe"===n.type||"pdf"===n.type||"gmap"===n.type)&&(e?.hideError(n),n.contentEl?.remove(),n.contentEl=void 0,n.htmlEl?.remove(),n.htmlEl=void 0)}return{init:function(i){(e=i).on("addSlide",t),e.on("attachSlideEl",n),e.on("detachSlideEl",o)},destroy:function(){e?.off("addSlide",t),e?.off("attachSlideEl",n),e?.off("detachSlideEl",o),e=void 0}}},eB=(e,t={})=>{let n=new URLSearchParams(new URL(e).search),o=new URLSearchParams;for(let[e,i]of[...n,...Object.entries(t)]){let t=i+"";if("t"===e){let e=t.match(/((\d*)m)?(\d*)s?/);e&&o.set("start",60*parseInt(e[2]||"0")+parseInt(e[3]||"0")+"")}else o.set(e,t)}let i=o+"",l=e.match(/#t=((.*)?\d+s)/);return l&&(i+=`#t=${l[1]}`),i},eW={autoplay:!1,html5videoTpl:`<video class="f-html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">
5    <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn't support embedded videos.</video>`,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto",credentialless:""},vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}},eZ=()=>{let e,t=!1;function n(){let t=e?.getOptions().Video;return l(t)?{...eW,...t}:eW}function o(){return e?.getPage()?.slides[0]}let i=t=>{try{let n=JSON.parse(t.data);if("https://player.vimeo.com"===t.origin){if("ready"===n.event)for(let n of Array.from(e?.getContainer()?.getElementsByClassName("f-iframe")||[]))n instanceof HTMLIFrameElement&&n.contentWindow===t.source&&(n.dataset.ready="true")}else if(t.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&"onReady"===n.event){let e=document.getElementById(n.id);e&&(e.dataset.ready="true")}}catch(e){}};function a(e,t){let o=t.src;if(!r(o))return;let i=t.type;if(!i||"html5video"===i){let e=o.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i);e&&(i="html5video",t.html5videoFormat=t.html5videoFormat||"video/"+("ogv"===e[1]?"ogg":e[1]))}if(!i||"youtube"===i){let e=o.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i);if(e){let l={...n().youtube,...t.youtube||{}},r=`www.youtube${l.nocookie?"-nocookie":""}.com`,a=eB(o,l),s=encodeURIComponent(e[2]);t.videoId=s,t.src=`https://${r}/embed/${s}?${a}`,t.thumb=t.thumb||`https://i.ytimg.com/vi/${s}/mqdefault.jpg`,i="youtube"}}if(!i||"vimeo"===i){let e=o.match(/^.+vimeo.com\/(?:\/)?(video\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/);if(e){let l=eB(o,{...n().vimeo,...t.vimeo||{}}),r=encodeURIComponent(e[2]),a=e[5]||"";t.videoId=r,t.src=`https://player.vimeo.com/video/${r}?${a?`h=${a}${l?"&":""}`:""}${l}`,i="vimeo"}}t.type=i}function c(t,o){"html5video"===o.type&&function(t){if(!e||!t.el||!t.src)return;let{el:o,src:i}=t;if(!o||!i)return;let l=t.html5videoTpl||n().html5videoTpl,a=t.html5videoFormat||n().html5videoFormat;if(!l)return;let c=t.poster||(t.thumb&&r(t.thumb)?t.thumb:""),u=s(l.replace(/\{\{src\}\}/gi,i+"").replace(/\{\{format\}\}/gi,a||"").replace(/\{\{poster\}\}/gi,c+""));if(!u)return;let d=document.createElement("div");d.classList.add("f-html"),d.append(u),t.contentEl=u,t.htmlEl=d,o.classList.add(`has-${t.type}`),o.prepend(d),g(t),e.emit("contentReady",t)}(o),("youtube"===o.type||"vimeo"===o.type)&&function(t){if(!e||!t.el||!t.src)return;let o=document.createElement("iframe");for(let[e,i]of(o.classList.add("f-iframe"),o.setAttribute("id",`f-iframe_${t.videoId}`),Object.entries(n().iframeAttr||{})))o.setAttribute(e,i);o.onload=()=>{e&&1===e.getState()&&"youtube"===t.type&&o.contentWindow?.postMessage(JSON.stringify({event:"listening",id:o.getAttribute("id")}),"*")},o.onerror=()=>{e&&1===e.getState()&&e?.showError(t,"{{IFRAME_ERROR}}")},o.src=t.src;let i=document.createElement("div");i.classList.add("f-html"),i.append(o),t.contentEl=o,t.htmlEl=i,t.el.classList.add("has-html"),t.el.classList.add("has-iframe"),t.el.classList.add(`has-${t.type}`),t.el.prepend(i),g(t),e.emit("contentReady",t)}(o)}function u(e,t){("html5video"===t.type||"youtube"===t.type||"vimeo"===t.type)&&(t.contentEl?.remove(),t.contentEl=void 0,t.htmlEl?.remove(),t.htmlEl=void 0),t.poller&&clearTimeout(t.poller)}function d(){t=!1}function f(){if(t)return;t=!0;let e=o();(e&&void 0!==e.autoplay?e.autoplay:n().autoplay)&&(!function(){let e=o(),t=e?.el;if(t&&e?.type==="html5video")try{let e=t.querySelector("video");if(e){let t=e.play();void 0!==t&&t.then(()=>{}).catch(t=>{e.muted=!0,e.play()})}}catch(e){}let n=e?.htmlEl;n instanceof HTMLIFrameElement&&n.contentWindow?.postMessage('{"event":"command","func":"stopVideo","args":""}',"*")}(),function(){let e=o(),t=e?.type;if(!(e?.el&&("youtube"===t||"vimeo"===t)))return;let n=()=>
5{if(e.contentEl&&e.contentEl instanceof HTMLIFrameElement&&e.contentEl.contentWindow){let t;if("true"===e.contentEl.dataset.ready){(t="youtube"===e.type?{event:"command",func:"playVideo"}:{method:"play",value:"true"})&&e.contentEl.contentWindow.postMessage(JSON.stringify(t),"*"),e.poller=void 0;return}"youtube"===e.type&&(t={event:"listening",id:e.contentEl.getAttribute("id")},e.contentEl.contentWindow.postMessage(JSON.stringify(t),"*"))}e.poller=setTimeout(n,250)};n()}())}function g(e){let t=e?.htmlEl;if(e&&t&&("html5video"===e.type||"youtube"===e.type||"vimeo"===e.type)){if(t.style.aspectRatio="",t.style.width="",t.style.height="",t.style.maxWidth="",t.style.maxHeight="",e.width){let n=`${e.width}`;n.match(/^\d+$/)&&(n+="px"),t.style.maxWidth=`${n}`}if(e.height){let n=`${e.height}`;n.match(/^\d+$/)&&(n+="px"),t.style.maxHeight=`${n}`}if(e.aspectRatio){let n=e.aspectRatio.split("/"),o=parseFloat(n[0].trim()),i=n[1]?parseFloat(n[1].trim()):0;t.offsetHeight;let l=t.getBoundingClientRect(),r=(o&&i?o/i:o)<(l.width||1)/(l.height||1);t.style.aspectRatio=`${e.aspectRatio}`,t.style.width=r?"auto":"",t.style.height=r?"":"auto"}}}function m(){g(o())}return{init:function(t){(e=t).on("addSlide",a),e.on("attachSlideEl",c),e.on("detachSlideEl",u),e.on("ready",f),e.on("change",d),e.on("settle",f),e.on("refresh",m),window.addEventListener("message",i)},destroy:function(){e?.off("addSlide",a),e?.off("attachSlideEl",c),e?.off("detachSlideEl",u),e?.off("ready",f),e?.off("change",d),e?.off("settle",f),e?.off("refresh",m),window.removeEventListener("message",i),e=void 0}}},eG={autoStart:!1,btnTpl:'<button data-fullscreen-action="toggle" class="f-button" title="{{TOGGLE_FULLSCREEN}}"><svg><g><path d="M8 3H5a2 2 0 0 0-2 2v3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M16 21h3a2 2 0 0 0 2-2v-3"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>'},eY="in-fullscreen-mode",eU=()=>{let e;function t(t){let n=e?.getOptions().Fullscreen,o=(l(n)?{...eG,...n}:eG)[t];return o&&"function"==typeof o&&e?o(e):o}function n(){e?.getPlugins().Toolbar?.add("fullscreen",{tpl:t("btnTpl")})}function o(){if(t("autoStart")){let e=r();e&&s(e)}}function i(e,t){let n=t.target;n&&!t.defaultPrevented&&"toggle"===n.dataset.fullscreenAction&&u()}function r(){return t("el")||e?.getContainer()||void 0}function a(){let e=document;return e.fullscreenEnabled?!!e.fullscreenElement:!!e.webkitFullscreenEnabled&&!!e.webkitFullscreenElement}function s(e){let t,n=document;return e||(e=n.documentElement),n.fullscreenEnabled?t=e.requestFullscreen():n.webkitFullscreenEnabled&&(t=e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)),t&&t.then(()=>{e.classList.add(eY)}),t}function c(){let e,t=document;return t.fullscreenEnabled?e=t.fullscreenElement&&t.exitFullscreen():t.webkitFullscreenEnabled&&(e=t.webkitFullscreenElement&&t.webkitExitFullscreen()),e&&e.then(()=>{r()?.classList.remove(eY)}),e}function u(){let e=r();e&&(a()?c():s(e))}return{init:function(t){(e=t).on("initPlugins",n),e.on("ready",o),e.on("click",i)},destroy:function(){e?.off("initPlugins",n),e?.off("ready",o),e?.off("click",i)},exit:c,inFullscreen:a,request:s,toggle:u}},eX=!1,eK=!1,eJ=!1,eQ=!1,e0=()=>{let e=new URL(document.URL).hash,t=e.slice(1).split("-"),n=t[t.length-1],o=n&&/^\+?\d+$/.test(n)&&parseInt(t.pop()||"1",10)||1;return{hash:e,slug:t.join("-"),index:o}},e1=()=>{if(!i||i.getInstance())return;let{slug:e,index:t}=e0();if(!e||!i||i.getInstance())return;let n=document.querySelectorAll(`[data-fancybox="${e}"]`);if(!n.length)return;let o=n[t-1];o&&o.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0}))},e2=()=>{if(!i||eJ)return;let e=i?.getInstance();if(e?.getOptions().Hash===!1)return;let{slug:t,index:n}=e0(),o=e?.getSlide()?.fancybox||void 0;e&&o&&(t===o?e.getCarousel()?.goTo(n-1):(eQ=!0,e.close(),eQ=!1)),e1()},e5=()=>{i&&setTimeout(()=>{eX=!0,e1(),eX=!1,window.addEventListener("hashchange",e2,!1)},300)},e4=()=>{let e,t="auto",n="";function o(){if(!e||!e.isTopMost()||!1===e.getOptions().Hash)return;let o=e.getCarousel();if(!o)return;let{hash:l,slug:r}=e0(),a=e.getSlide();if(!a)return;let s=a.fancybox||"",c=parseInt(a.index+"",10)+1;if(!s)return;let u=`#${s}-${c}`;if(2>(e.getCarousel()?.getPages()?.length||0)&&(u=`#${s}`),l!==u&&(n=l),history.scrollRestoration&&(t=history.scrollRestoration,history.scrollRestoration="manual"),o.on("change",i
5),!eX)if(s===r)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+u)}catch(e){}else try{window.history.pushState({},document.title,window.location.pathname+window.location.search+u),eK=!0}catch(e){}}function i(){if(!e||!e.isTopMost()||!1===e.getOptions().Hash)return;let{slug:t}=e0(),n=e.getSlide();if(!n)return;let o=n.fancybox||"",i=n.index+1,l=`#${o}-${i}`;if(o===t){eJ=!0;try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+l)}catch(e){}eJ=!1}}function l(){if(eQ||!e||!e.isTopMost()||!1===e.getOptions().Hash)return;let t=e.getSlide();if(t&&t.fancybox){eJ=!0;try{eK&&!eX&&!function(){if(window.parent===window)return!1;try{var e=window.frameElement}catch(t){e=null}return null===e?"data:"===location.protocol:e.hasAttribute("sandbox")}()?window.history.back():window.history.replaceState({},document.title,window.location.pathname+window.location.search+n)}catch(e){}eJ=!1}}return{init:function(t){(e=t).on("ready",o),e.on("close",l)},destroy:function(){e?.off("ready",o),e?.off("close",l);let n=e?.getCarousel();n&&n.off("change",i),e=void 0,history.scrollRestoration&&t&&(history.scrollRestoration=t)}}};e4.startFromUrl=e1,e4.setup=function(e){!i&&(i=e,g()&&(/complete|interactive|loaded/.test(document.readyState)?e5():document.addEventListener("DOMContentLoaded",e5)))};let e3={...eg,CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ELEMENT_NOT_FOUND:"HTML Element Not Found",IFRAME_ERROR:"Error Loading Page"},e6='<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg><path d="M19.286 4.714 4.714 19.286M4.714 4.714l14.572 14.572" /></svg></button>';e$().add("close",{tpl:e6});let e7=e=>{e.cancelable&&e.preventDefault()},e9=e=>{e&&e.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:e}))},e8=(e=null,t="",n)=>{if(!e||!e.parentElement||!t){n&&n();return}e9(e);let o=i=>{i.target===e&&e.dataset.animationName&&(e.removeEventListener("animationend",o),delete e.dataset.animationName,n&&n(),e.classList.remove(t))};e.dataset.animationName=t,e.addEventListener("animationend",o),h(e,t)},te=((k={})[k.Init=0]="Init",k[k.Ready=1]="Ready",k[k.Closing=2]="Closing",k[k.Destroyed=3]="Destroyed",k),tt={ajax:null,backdropClick:"close",Carousel:{},closeButton:"auto",closeExisting:!1,delegateEl:void 0,dragToClose:!0,fadeEffect:!0,groupAll:!1,groupAttr:"data-fancybox",hideClass:"f-fadeOut",hideScrollbar:!0,id:void 0,idle:!1,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},l10n:e3,mainClass:"",mainStyle:{},mainTpl:`<dialog class="fancybox__dialog">
6    <div class="fancybox__container" tabindex="0" aria-label="{{MODAL}}">
7      <div class="fancybox__backdrop"></div>
8      <div class="fancybox__carousel"></div>
9    </div>
10  </dialog>`,on:{},parentEl:void 0,placeFocusBack:!0,showClass:"f-zoomInUp",startIndex:0,sync:void 0,theme:"dark",triggerEl:void 0,triggerEvent:void 0,zoomEffect:!0},tn=new Map,to=0,ti="with-fancybox",tl={Plugins:{Hash:e4},version:"6.0.34",openers:new Map,bind:function(e,t,n){if(!g())return;let o=document.body,i="[data-fancybox]",l={};if(r(e)?(o=document.body,i=e,"object"==typeof t&&(l=t||{})):e instanceof Element&&(o=e,r(t)&&(i=t),"object"==typeof n&&(l=n||{})),!(o&&o instanceof Element)||!i)return!1;let a=tl.openers.get(o)||new Map;if(a.set(i,l),tl.openers.set(o,a),1===a.size)for(let e of(o.addEventListener("click",tl.fromEvent),Object.values(tl.Plugins))){let t=e.setup;"function"==typeof t&&t(tl)}return!0},close:function(e=!0,...t){if(e)for(let e of tn.values())e.close(...t);else{let e=tl.getInstance();e&&e.close(...t)}},destroy:function(){let e;for(;e=tl.getInstance();)e.destroy();for(let e of tl.openers.keys())e.removeEventListener("click",tl.fromEvent);tl.openers.clear()},fromEvent:function(e){let t,n;if(e.defaultPrevented||e.button&&0!==e.button||e.ctrlKey||e.metaKey||e.shiftKey)return;let o=e.composedPath()[0];if(o.closest(".fancybox__container.is-hiding")){e7(e),e.stopPropagation();return}let i=o.closest("[data-fancybox-delegate]")||void 0;if(i){let e=i.dataset.fancyboxDelegate||"",t=document.querySelectorAll(`[data-fancybox="${e}"]`);o=t[parseInt(i.dataset.fancyboxIndex||"",10)||0]||t[0]}if(!(o&&o instanceof Element))return;let l={};for(let[e,i]of tl.openers)if(i&&e.contains(o))for(let[r,a]of i){let i=null;try{i=o.closest(r)}catch(e){}i&&(o=i,t=e,n=r,f(l,a||{}))}if(!t||!n)return;e7(e);let r=f({},tt,{triggerEvent:e,triggerEl:o,delegateEl:i},l),a=r.groupAll,s=r.groupAttr,c=s&&o?o.getAttribute(`${s}`):"",u=[],d=o.closest(".f-carousel")?.carousel;if(d){let e=[];for(let t of d?.getSlides()){let o=t.el;o&&(o.matches(n)?e.push(o):e.push(...[].slice.call(o.querySelectorAll(n))))}e.length&&(u=[...e],d.getPlugins().Autoplay?.pause(),d.getPlugins().Autoscroll?.pause(),r.sync=d)}else(!o||c||a)&&(u=[].slice.call(t.querySelectorAll(n)));if(o&&!a&&(u=s&&c?u.filter(e=>e.getAttribute(`${s}`)===c):[o]),!u.length)return;let g=tl.getInstance();if(g){let e=g.getOptions().triggerEl;if(e&&u.indexOf(e)>-1)return}return({...r.Carousel||{}}).rtl&&(u=u.reverse()),o&&(r.startIndex=u.indexOf(o)),tl.fromNodes(u,r)},fromNodes:function(e,t){t=f({},tt,t||{});let n=[],o=e=>e instanceof HTMLImageElement?e:e instanceof HTMLElement?e.querySelector("img:not([aria-hidden])"):void 0;for(let i of e){let l=i.dataset||{},r=t.delegateEl&&e.indexOf(i)===t.startIndex?t.delegateEl:void 0,a=o(r)||o(i)||void 0,s=l.src||i.getAttribute("href")||i.getAttribute("currentSrc")||i.getAttribute("src")||void 0,c=l.thumb||l.thumbSrc||a?.getAttribute("currentSrc")||a?.getAttribute("src")||a?.dataset.lazySrc||void 0,u={src:s,alt:l.alt||a?.getAttribute("alt")||void 0,thumbSrc:c,thumbEl:
10a,triggerEl:i,delegateEl:r};for(let e in l){let t=l[e]+"";t="false"!==t&&("true"===t||t),u[e]=t}n.push(u)}return tl.show(n,t)},fromSelector:function(e,t,n){let o=document.body,i="",l={};if(r(e)?i=e:e instanceof Element&&(o=e,r(t)&&(i=t),"object"==typeof n&&(l=n||{})),!(o&&o instanceof Element)||!i)return;let a=tl.openers.get(o);if(a&&(l=f({},a.get(i)||{},l)))return tl.fromNodes(Array.from(o.querySelectorAll(i)),l)},getCarousel:function(){return tl.getInstance()?.getCarousel()||void 0},getDefaults:function(){return tt},getInstance:function(e){if(e){let t=tn.get(e);return t&&t.getState()!==te.Destroyed?t:void 0}return Array.from(tn.values()).reverse().find(e=>{if(e.getState()!==te.Destroyed)return e})||void 0},getSlide:function(){return tl.getInstance()?.getSlide()||void 0},show:function(e=[],t={}){return(()=>{let e,t,n,o,i,c,g,m=te.Init,b={...tt},E=-1,w={},x=[],M=!1,L=!0,S=0;function T(e,...t){let n=b[e];return n&&"function"==typeof n?n(eu,...t):n}function P(e,t=[]){let n=T("l10n")||{};e=String(e).replace(/\{\{(\w+)\}\}/g,(e,t)=>n[t]||e);for(let n=0;n<t.length;n++)e=e.split(t[n][0]).join(t[n][1]);return e.replace(/\{\{(.*?)\}\}/g,(e,t)=>t)}let R=new Map;function C(e,...t){let n=[...R.get(e)||[]];for(let[t,o]of Object.entries(b.on||{}))(t===e||t.split(" ").indexOf(e)>-1)&&n.push(o);for(let e of n)e&&"function"==typeof e&&e(eu,...t);"*"!==e&&C("*",e,...t)}function A(){y(c,"is-revealing");try{document.activeElement===i&&(c?.querySelector("[autofocus]")||c).focus()}catch(e){}}function O(t,n){Z(n),j(),n.el?.addEventListener("click",k),("inline"===n.type||"clone"===n.type)&&function(t){if(!e||!t||!t.el)return;let n=null;if(r(t.src)){let e=t.src.split("#",2).pop();n=e?document.getElementById(e):null}if(n){if(h(n,"f-html"),"clone"===t.type||n.closest(".fancybox__carousel")){let e=(n=n.cloneNode(!0)).dataset.animationName;e&&(n.classList.remove(e),delete n.dataset.animationName);let o=n.getAttribute("id");o=o?`${o}--clone`:`clone-${E}-${t.index}`,n.setAttribute("id",o)}else if(n.parentNode){let e=document.createElement("div");e.inert=!0,n.parentNode.insertBefore(e,n),t.placeholderEl=e}t.htmlEl=n,h(t.el,"has-html"),t.el.prepend(n),n.classList.remove("hidden"),"none"===n.style.display&&(n.style.display=""),"none"===getComputedStyle(n).getPropertyValue("display")&&(n.style.display=n.dataset.display||"flex"),e?.emit("contentReady",t)}else e?.showError(t,"{{ELEMENT_NOT_FOUND}}")}(n),"ajax"===n.type&&function(t){let n=t.el;if(!n||t.htmlEl||t.xhr)return;e?.showLoading(t),t.state=eh.Loading;let o=new XMLHttpRequest;o.onreadystatechange=function(){if(o.readyState===XMLHttpRequest.DONE&&m===te.Ready)if(e?.hideLoading(t),t.state=eh.Loaded,200===o.status){let i=o.responseText+"",l=null,r=null;if(t.filter){let e=document.createElement("div");e.innerHTML=i,r=e.querySelector(t.filter+"")}r&&r instanceof HTMLElement?l=r:(l=document.createElement("div")).innerHTML=i,l.classList.add("f-html"),t.htmlEl=l,n.classList.add("has-html"),n.classList.add("has-ajax"),n.prepend(l),e?.emit("contentReady",t)}else e?.showError(t)};let i=T("ajax")||null;o.open(i?"POST":"GET",t.src+""),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.send(i),t.xhr=o}(n)}function z(e,t){var n;(n=t).closeButtonEl&&(n.closeButtonEl.remove(),n.closeButtonEl=void 0),t.el?.removeEventListener("click",k),("inline"===t.type||"clone"===t.type)&&function(e){let t=e.htmlEl,n=e.placeholderEl;t&&("none"!==getComputedStyle(t).getPropertyValue("display")&&(t.style.display="none"),t.offsetHeight),n&&(t&&n.parentNode&&n.parentNode.insertBefore(t,n),n.remove()),e.htmlEl=void 0,e.placeholderEl=void 0}(t),t.xhr&&(t.xhr.abort(),t.xhr=void 0)}function k(e){if(!Y())return;if(m!==te.Ready){e7(e),e.stopPropagation();return}if(e.defaultPrevented||!J.isClickAllowed())return;let t=e.composedPath()[0];t.closest(".fancybox__carousel")&&t.classList.contains("fancybox__slide")&&N(e)}function I(){L=!1,c&&e&&c.classList.remove("is-revealing"),j();let t=T("sync");if(e&&t){let n=t.getPageIndex(e.getPageIndex())||0;t.goTo(n,{transition:!1})}}function F(){if(m!==te.Ready)return;G(U()),function(){if(!T("dragToClose")||!e)return;let o=e.getViewport();if(!o||!(t=J(o).init()))return;let i=!1,l=0,r=0,a={},s=1;function d(){n?.spring({clamp:!0,mass:1,tension:0===r?140:800,friction:17,restDelta:.1,restSpeed:.1,maxSpeed:1/0}).from({y:l}).to({y:r}).start();let t=e?.getViewport()?.getBoundingClientRect().height||0,o=U()?.panzoomRef;if(t&&o)if(0===r)o.execute(eo.Reset);else{let e=p(Math.abs(l),0,.33*t,s,.75*s,!1);o.execute(eo.ZoomTo,{scale:e})}}let f=t=>{let n=t.srcEvent,o=n.target;return e&&!(V(n)&&n.touches?.length>1)&&o&&!u(o)};n=D().on("step",e=>
10{if(c&&o&&m===te.Ready){let t=o.getBoundingClientRect().height,n=p(Math.abs(l=Math.min(t,Math.max(-1*t,e.y))),0,.5*t,1,0,!0);c.style.setProperty("--f-drag-opacity",n+""),c.style.setProperty("--f-drag-offset",l+"px")}}),t.on("start",function(){i||(n?.pause(),r=l)}).on("panstart",t=>{if(!i&&f(t)&&"y"===t.axis){e7(t.srcEvent),i=!0,er(),e?.getViewport()?.classList.add("is-dragging");let n=U()?.panzoomRef;if(n){s=n.getTransform().scale||1;let e=n.getOptions();a={...e},e.bounds=!1,e.gestures=!1}}else i=!1}).on("pan",function(e){i&&f(e)&&(e7(e.srcEvent),e.srcEvent.stopPropagation(),"y"===e.axis&&(r+=e.deltaY,d()))}).on("end",t=>{if(e?.getViewport()?.classList.remove("is-dragging"),i){let e=U()?.panzoomRef;if(e){e.getTween()?.end();let t=e.getOptions();t.bounds=a.bounds||!1,t.gestures=a.gestures||!1}f(t)&&"y"===t.axis&&(Math.abs(t.velocityY)>5||Math.abs(l)>50)&&ea(t.srcEvent,"f-throwOut"+(t.velocityY>0?"Down":"Up"))}i=!1,m===te.Ready&&0!==l&&(r=0,d())})}(),document.body.addEventListener("click",W),document.body.addEventListener("keydown",B,{passive:!1,capture:!0}),j(),ee();let o=T("sync");o&&o.getTween()?.start()}function _(){e?.canGoNext()?ee():ei()}function $(e,t){Z(t),G(t)}function H(){let t=e?.getPlugins().Thumbs;v(c,"has-thumbs",t?.isEnabled()||!1),v(c,"has-vertical-thumbs",t?.getCarousel()?.isVertical()||!1)}function j(){if(c){let t=e?.getPages()||[],n=e?.getPageIndex()||0;for(let e of c.querySelectorAll("[data-fancybox-index]"))e.innerHTML=n+"";for(let e of c.querySelectorAll("[data-fancybox-page]"))e.innerHTML=n+1+"";for(let e of c.querySelectorAll("[data-fancybox-pages]"))e.innerHTML=t.length+""}}function N(e){if(e.composedPath()[0].closest("[data-fancybox-close]"))return void ea(e);C("backdropClick",e),!e.defaultPrevented&&T("backdropClick")&&ea(e)}function q(){en()}function B(t){if(!Y()||m!==te.Ready)return;let n=t.key,o=T("keyboard");if(!o||t.ctrlKey||t.altKey||t.shiftKey)return;let i=t.composedPath()[0];if(!a(i)||"Escape"!==n&&(e=>{let t="input,textarea,select,option,video,iframe,[contenteditable],[data-selectable],[data-draggable]";return e.matches(t)||e.closest(t)})(i)||(C("keydown",t),t.defaultPrevented))return;let l=o[n];if(l)switch(l){case"close":ea(t);break;case"next":e7(t),e?.next();break;case"prev":e7(t),e?.prev()}}function W(e){if(!Y()||m!==te.Ready||(en(),e.defaultPrevented))return;let t=e.composedPath()[0],n=!!t.closest("[data-fancybox-close]"),o=t.classList.contains("fancybox__backdrop");(n||o)&&N(e)}function Z(t){let{el:n,htmlEl:o,closeButtonEl:i}=t;if(!n||!o||i)return;let l=T("closeButton");if("auto"===l&&(l=e?.getPlugins().Toolbar?.isEnabled()!==!0),l){let e=s(P(e6));e&&(h(e,"is-close-button"),t.closeButtonEl=o.insertAdjacentElement("afterbegin",e),n.classList.add("has-close-btn"))}}function G(t){if(!(L&&e&&e.getState()===ep.Ready&&t&&t.index===e.getOptions().initialPage&&t.el&&t.el.parentElement)||void 0!==t.state&&t.state!==eh.Loaded)return;L=!1;let n=t.panzoomRef,o=n?.getTween(),i=T("zoomEffect")&&o?K(t):void 0;if(n&&o&&i){let{x:e,y:t,scale:l}=n.getStartPosition();o.spring({tension:215,friction:25,restDelta:.001,restSpeed:.001,maxSpeed:1/0}).from(i).to({x:e,y:t,scale:l}).start();return}let l=n?.getContent()||t.htmlEl;l&&e8(l,T("showClass",t))}function Y(){return tl.getInstance()?.getId()===E}function U(){return e?.getPage()?.slides[0]}function X(){let e=U();return e?e.triggerEl||T("triggerEl"):void 0}function K(e){let t=e.thumbEl;if(!t||!(e=>{let t=e.getBoundingClientRect(),n=e.closest("[style]"),o=n?.parentElement;if(n&&n.style.transform&&o){let e=o.getBoundingClientRect();if(t.left<e.left||t.left>e.left+e.width-t.width||t.top<e.top||t.top>e.top+e.height-t.height)return!1}let i=Math.max(document.documentElement.clientHeight,window.innerHeight),l=Math.max(document.documentElement.clientWidth,window.innerWidth);return!(t.bottom<0)&&!(t.top-i>=0)&&!(t.right<0)&&!(t.left-l>=0)})(t))return;let n=e.panzoomRef?.getWrapper()?.getBoundingClientRect(),o=n?.width,i=n?.height;if(!o||!i)return;let l=t.getBoundingClientRect(),r=l.width,a=l.height,s=l.left,c=l.top;if(!l||!r||!a)return;if(t instanceof HTMLImageElement){let e=window.getComputedStyle(t).getPropertyValue("object-fit");
10if("contain"===e||"scale-down"===e){let{width:n,height:o}=((e,t,n,o,i="contain")=>{if("contain"===i||e>n||t>o){let i=Math.min(n/e,o/t);e*=i,t*=i}return{width:e,height:t}})(t.naturalWidth,t.naturalHeight,r,a,e);s+=(r-n)*.5,c+=(a-o)*.5,r=n,a=o}}if(Math.abs(o/i-r/a)>.1)return;let u=s+.5*r-(n.left+.5*o);return{x:u,y:c+.5*a-(n.top+.5*i),scale:r/o}}function Q(){o&&clearTimeout(o),o=void 0,document.removeEventListener("mousemove",q)}function ee(){if(M||o)return;let e=T("idle");e&&(o=setTimeout(et,e))}function et(){c&&(Q(),h(c,"is-idle"),document.addEventListener("mousemove",q),M=!0)}function en(){M&&(ei(),ee())}function ei(){Q(),c?.classList.remove("is-idle"),M=!1}function er(){if(T("placeFocusBack")){var e;let t=X();t&&!((e=t.getBoundingClientRect()).bottom>0&&e.right>0&&e.left<(window.innerWidth||document.documentElement.clientWidth)&&e.top<(window.innerHeight||document.documentElement.clientHeight))&&t.scrollIntoView({behavior:"instant",block:"center",inline:"center"})}}function ea(o,i){if(m===te.Closing||m===te.Destroyed)return;let l=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(C("shouldClose",l,o),l.defaultPrevented)return;if(Q(),o){if(o.defaultPrevented)return;e7(o),o.stopPropagation(),o.stopImmediatePropagation()}if(m=te.Closing,n?.pause(),t?.destroy(),e)for(let t of(e.getGestures()?.destroy(),e.getTween()?.pause(),e.getSlides())){let e=t.panzoomRef;e&&(f(e.getOptions(),{clickAction:!1,dblClickAction:!1,wheelAction:!1,bounds:!1,minScale:0,maxScale:1/0}),e.getGestures()?.destroy(),e.getTween()?.pause())}let r=e?.getPlugins();r?.Autoplay?.stop();let a=r?.Fullscreen;a&&a.inFullscreen()?Promise.resolve(a.exit()).then(()=>{setTimeout(()=>{es(o,i)},150)}):es(o,i)}function es(t,n){if(m!==te.Closing)return;C("close",t),document.body.removeEventListener("click",W),document.body.removeEventListener("keydown",B,{passive:!1,capture:!0}),er(),T("fadeEffect")&&(c?.classList.remove("is-ready"),c?.classList.add("is-hiding")),c?.classList.add("is-closing");let o=U(),i=o?.panzoomRef,l=o?.panzoomRef?.getTween(),r=n||T("hideClass"),a=!1,s=!1;if(e&&o&&i&&l){let t;T("zoomEffect")&&700>(e.getTween()?.getCurrentVelocities()?.pos||0)&&o.state===eh.Loaded&&(t=K(o)),t&&(a=!0,e.on("refresh",()=>{let e=K(o);e&&l.to({...el,...e})}),l.easing(D.Easings.EaseOut).duration(350).from({...i.getTransform()}).to({...el,...t}).start())}let u=o?.htmlEl||o?.panzoomRef?.getWrapper();u&&e9(u),!a&&r&&u&&(s=!0,e8(u,r,()=>{ec()})),a||s?setTimeout(()=>{ec()},350):ec()}function ec(){if(m===te.Destroyed)return;m=te.Destroyed;let t=X();for(let t of(C("destroy"),T("sync")?.getPlugins().Autoplay?.resume(),T("sync")?.getPlugins().Autoscroll?.resume(),i instanceof HTMLDialogElement&&i.close(),e?.getContainer()?.classList.remove("is-idle"),e?.destroy(),Object.values(w)))t?.destroy();if(w={},i?.remove(),i=void 0,c=void 0,e=void 0,tn.delete(E),!tn.size&&(d(!1),document.documentElement.classList.remove(ti),T("placeFocusBack")))try{t?.focus({preventScroll:!0})}catch(e){}}let eu={close:ea,destroy:ec,getCarousel:function(){return e},getContainer:function(){return c},getId:function(){return E},getOptions:function(){return b},getPlugins:function(){return w},getSlide:function(){return U()},getState:function(){return m},init:function(t=[],n={}){return!function(t=[],n={}){m!==te.Init&&(eu.destroy(),m=te.Init),b=f({},tt,n),E=T("id")||`fancybox-${++to}`;let o=tn.get(E);if(o&&o.destroy(),tn.set(E,eu),C("init"),function(){for(let[e,t]of Object.entries({...tl.Plugins,...b.plugins||{}}))if(e&&!w[e]&&t instanceof Function){let n=t();n.init(eu),w[e]=n}C("initPlugins")}(),function(e=[]){C("initSlides",e),x=[...e]}(t),function(){let t=T("parentEl")||document.body;if(!(t&&t instanceof HTMLElement)||!(i=s(P(T("mainTpl")||""))||void 0)||!((c=i.querySelector(".fancybox__container"))&&c instanceof HTMLElement))return;let n=T("mainClass");n&&h(c,n);let o=T("mainStyle");if(o&&l(o))for(let[e,t]of Object.entries(o))c.style.setProperty(e,t);let r=T("theme"),a="auto"===r?window.matchMedia("(prefers-color-scheme:light)").matches:"light"===r;c.setAttribute("theme",a?"light":"dark"),i.setAttribute("id",`${E}`),i.addEventListener("keydown",e=>{"Escape"===e.key&&e7(e)}),i.addEventListener("wheel",t=>{let n=t.target,o=T("wheel",t);n.closest(".f-thumbs")&&(o="slide");let i="slide"===o,l=Math.max(-1,Math.min(1,[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce(function(e,t){return Math.abs(t)>Math.abs(e)?t:e}))),r=Date.now();if(S&&r-S<300){i&&e7(t);return}S=r,C("wheel",t,l),t.defaultPrevented||("close"===o?ea(t):"slide"===o&&e&&!u(n)&&(e7(t),e[l>0?"prev":"next"]()))},{capture:!0,passive:!1}),i.addEventListener("cancel",e=>{ea(e)}),t.append(i),1===tn.size&&(T("hideScrollbar")&&d(!0),document.documentElement.classList.add(ti)),i instanceof HTMLDialogElement&&i.showModal(),C("initLayout")}(),function(){if(!(g=i?.querySelector(".fancybox__carousel")||void 0))return;g.fancybox=eu;let t=f({},{Autoplay:{autoStart:!1,pauseOnHover:!1,progressbarParentEl:e=>{let t=e.getContainer();return t?.querySelector(".f-carousel__toolbar [data-autoplay-action]")||t}},Fullscreen:{el:c},Toolbar:{absolute:!0,items:{counter:{tpl:'<div class="f-counter"><span data-fancybox-page></span>/<span data-fancybox-pages></span></div>'}},display:{left:["counter"],right:["toggleFull","autoplay","fullscreen","thumbs","close"]}},Video:{autoplay:!0},Thumbs:{minCount:2,Carousel:{classes:{container:"fancybox__thumbs"}}},classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",slide:"fancybox__slide"},spinnerTpl:'<div class="f-spinner" data-fancybox-close></div>',dragFree:!1,slidesPerPage:1,plugins:{Sync:eL,Arrows:eA,Lazyload:eR,Zoomable:ex,Html:eq,Video:eZ,Autoplay:eD,Fullscreen:eU,Thumbs:ej,Toolbar:e$}},T("Carousel")||{},{slides:x,enabled:!0,initialPage:T("startIndex")||0,l10n:T("l10n")});
10C("initCarousel",e=eb(g,t)),e.on("*",(e,t,...n)=>{C(`Carousel.${t}`,e,...n)}),e.on("attachSlideEl",O),e.on("detachSlideEl",z),e.on("contentReady",$),e.on("ready",F),e.on("change",I),e.on("settle",_),e.on("thumbs:ready",H),e.on("thumbs:destroy",H),e.init()}(),i&&c){if(T("closeExisting"))for(let[e,t]of tn.entries())e!==E&&t.close();T("fadeEffect")?(setTimeout(()=>{A()},500),h(c,"is-revealing")):A(),c.classList.add("is-ready"),m=te.Ready,C("ready")}}(t,n),eu},isCurrentSlide:function(e){let t=U();return!!e&&!!t&&t.index===e.index},isTopMost:function(){return Y()},off:function(e,t){return R.has(e)&&R.set(e,R.get(e).filter(e=>e!==t)),eu},on:function(e,t){return R.set(e,[...R.get(e)||[],t]),eu},toggleIdle(e){(M||!0===e)&&et(),M&&!1!==e||ei()}};return eu})().init(e,t)},unbind:function(e,t){let n=document.body,o="";if(r(e)?o=e:e instanceof Element&&(n=e,r(t)&&(o=t)),n){let e=tl.openers.get(n);e&&o&&e.delete(o),e?.size&&o||tl.openers.delete(n),n.removeEventListener("click",tl.fromEvent)}}};e.Arrows=eA,e.Autoplay=eD,e.Carousel=eb,e.CarouselSlideContentState=eh,e.CarouselState=ep,e.Fancybox=tl,e.FancyboxState=te,e.Fullscreen=eU,e.Html=eq,e.Lazyload=eR,e.PANZOOM_DEFAULT_POS=el,e.Panzoom=ed,e.PanzoomAction=eo,e.PanzoomState=er,e.PanzoomZoomLevel=ei,e.Sync=eL,e.Thumbs=ej,e.Toolbar=e$,e.ToolbarColumn=eI,e.Video=eZ,e.Zoomable=ex});

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.