1/*! For license information please see 450.6216c788.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunknativesutra_react=self.webpackChunknativesutra_react||[]).push([[450],{2450(e,t,n){n.d(t,{Fancybox:()=>vt});const o=e=>"string"==typeof e,i=e=>e&&null!==e&&e instanceof Element&&"nodeType"in e,l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return!e||e===document.body||t&&e===t?null:function(e){if(!(e&&e instanceof Element&&e.offsetParent))return!1;let t=!1,n=!1;if(e.scrollWidth>e.clientWidth){const n=window.getComputedStyle(e).overflowX,o=-1!==n.indexOf("hidden"),i=-1!==n.indexOf("clip"),l=-1!==n.indexOf("visible");t=!o&&!i&&!l}if(e.scrollHeight>e.clientHeight){const t=window.getComputedStyle(e).overflowY,o=-1!==t.indexOf("hidden"),i=-1!==t.indexOf("clip"),l=-1!==t.indexOf("visible");n=!o&&!i&&!l}return t||n}(e)?e:l(e.parentElement,t)},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;return!o||o instanceof HTMLElement?o:((n=document.createElement("div")).appendChild(o),n)},r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.max(Math.min(t,n),e)},a=e=>"object"==typeof e&&null!==e&&e.constructor===Object&&"[object Object]"===Object.prototype.toString.call(e);function c(e){return a(e)||Array.isArray(e)}function u(e,t){const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every(n=>{const o=e[n],i=t[n];return"function"==typeof o?"".concat(o)=="".concat(i):c(o)&&c(i)?u(o,i):o===i})}const d=function(e){for(const t of h)t.getState()===f.Running&&t.tick(m?e-m:0);m=e,p=window.requestAnimationFrame(d)};var f,g,v;!function(e){e[e.Initializing=0]="Initializing",e[e.Running=1]="Running",e[e.Paused=2]="Paused",e[e.Completed=3]="Completed",e[e.Destroyed=4]="Destroyed"}(f||(f={})),function(e){e[e.Spring=0]="Spring",e[e.Ease=1]="Ease"}(g||(g={})),function(e){e[e.Loop=0]="Loop",e[e.Reverse=1]="Reverse"}(v||(v={}));const h=new Set;let p=null,m=0;function y(){let e=f.Initializing,t=g.Ease,n=0,o=0,i=y.Easings.Linear,l=500,s=0,a=0,c=0,m=0,b=1/0,E=.01,w=.01,x=!1,M={},S=null,O={},L={},T={},A=0,P=0,R=v.Loop,C=y.Easings.Linear;const j=new Map;function z(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];for(const i of j.get(e)||[])i(...n)}function k(e){return o=0,e?S=setTimeout(()=>{I()},e):I(),_}function I(){e=f.Running,z("start",O,L)}function F(){if(e=f.Completed,T={},z("end",O),e===f.Completed)if(n<A){if(n++,R===v.Reverse){const e=Object.assign({},M);M=Object.assign({},L),L=e}k(P)}else n=0;return _}const _={getState:function(){return e},easing:function(e){return i=e,t=g.Ease,T={},_},duration:function(e){return l=e,_},spring:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t=g.Spring;const{velocity:n,mass:o,tension:i,friction:l,restDelta:r,restSpeed:u,maxSpeed:d,clamp:f}=Object.assign(Object.assign({},{velocity:0,mass:1,tension:170,friction:26,restDelta:.1,restSpeed:.1,maxSpeed:1/0,clamp:!0}),e);return s=n,a=o,c=i,m=l,w=r,E=u,b=d,x=f,T={},_},isRunning:function(){return e===f.Running},isSpring:function(){return t===g.Spring},from:function(e){return O=Object.assign({},e),_},to:function(e){return L=e,_},repeat:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.Loop;return A=e,P=t,R=n,C=(arguments.length>3?arguments[3]:void 0)||i,_},on:function(e,t){var n,o;return n=e,o=t,j.set(n,[...j.get(n)||[],o]),_},off:function(e,t){var n,o;return n=e,o=t,j.has(n)&&j.set(n,j.get(n).filter(e=>e!==o)),_},start:function(t){return u(O,L)||(e=f.Initializing,M=Object.assign({},O),h.add(this),p||(p=window.requestAnimationFrame(d)),k(t)),_},pause:function(){return S&&(clearTimeout(S),S=null),e===f.Running&&(e=f.Paused,z("pause",O)),_},end:F,tick:function(n){n>50&&(n=50),o+=n;let d=0,h=!1;if(e!==f.Running)return _;if(t===g.Ease){d=r(0,o/l,1),h=1===d;const e=R===v.Reverse?C:i;for(const t in O)O[t]=M[t]+(L[t]-M[t])*e(d)}if(t===g.Spring){const e=.001*n;let t=0;for(const n in O){const o=L[n];let i=O[n];if("number"!=typeof o||isNaN(o)||"number"!=typeof i||isNaN(i))continue;if(Math.abs(o-i)<=w){O[n]=o,T[n]=0;continue}T[n]||("object"==typeof s&&"number"==typeof s[n]?T[n]=s[n]:T[n]="number"==typeof s?s:0);let l=T[n];l=r(-1*Math.abs(b),l,Math.abs(b));const u=l*a*m;l+=((i>o?-1:1)*(Math.abs(o-i)*c)-u)/a*e,i+=l*e;const d=O[n]>o?i<o:i>o;let f=Math.abs(l)<E&&Math.abs(o-i)<=w;x&&d&&(f=!0),f?(i=o,l=0):t++,O[n]=i,T[n]=l}h=!t}const p=Object.assign({},L);return z("step",O,M,L,d),h&&e===f.Running&&u(L,p)&&(e=f.Completed,F()),_},getStartValues:function(){return M},getCurrentValues:function(){return O},getCurrentVelocities:function(){return T},getEndValues:function(){return L},destroy:function(){e=f.Destroyed,S&&(clearTimeout(S),S=null),M=O=L={},h.delete(this)}};return _}function b(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}function E(e,t){const n=[],o=b(e)?e[t]:e instanceof MouseEvent&&("changedTouches"===t||"mouseup"!==e.type)?[e]:[];for(const i of o)n.push({x:i.clientX,y:i.clientY,ts:Date.now()});return n}function w(e){return E(e,"touches")}function x(e){return E(e,"targetTouches")}function M(e){return E(e,"changedTouches")}function S(e){const t=e[0],n=e[1]||t;return{x:(t.x+n.x)/2,y:(t.y+n.y)/2,ts:n.ts}}function O(e){const 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}y.destroy=()=>{for(const e of h)e.destroy();p&&(cancelAnimationFrame(p),p=null)},y.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}};const L=e=>{e.cancelable&&e.preventDefault()},T={passive:!1},A={panThreshold:5,swipeThreshold:3,ignore:["textarea","input","select","[contenteditable]","[data-selectable]","[data-draggable]"]};let P=!1,R=!0;const C=(e,t)=>{let n,o,i,l,s,r=Object.assign(Object.assign({},A),t),a=[],c=[],u=[],d=!1,f=!1,g=!1,v=!1,h=0,p=0,m=0,y=0,b=0,E=0,C=0,j=0,z=0,k=[];const I=new Map;function F(e){const t=O(c),l=O(u),s=t&&l?t/l:0,r=Math.abs(C)>Math.abs(j)?C:j,g={srcEvent:n,isPanRecognized:d,isSwipeRecognized:f,firstTouch:a,previousTouch:u,currentTouch:c,deltaX:m,deltaY:y,offsetX:b,offsetY:E,velocityX:C,velocityY:j,velocity:r,angle:z,axis:i,scale:s,center:o};for(const n of I.get(e)||[])n(g)}function _(e){const t=e.target,n=e.composedPath()[0],o=r.ignore.join(","),i=e=>e&&e instanceof HTMLElement&&(e.matches(o)||e.closest(o));if(i(t)||i(n))return!1}function H(e){const t=Date.now();if(k=k.filter(e=>!e.ts||e.ts>t-100),e&&k.push(e),C=0,j=0,k.length>3){const e=k[0],t=k[k.length-1];if(e&&t){const n=t.x-e.x,o=t.y-e.y,i=e.ts&&t.ts?t.ts-e.ts:0;i>0&&(C=Math.abs(n)>3?n/(i/30):0,j=Math.abs(o)>3?o/(i/30):0)}}}function D(e){if(!1===_(e))return;if("undefined"!=typeof MouseEvent&&e instanceof MouseEvent){if(P)return}else P=!0;if("undefined"!=typeof MouseEvent&&e instanceof MouseEvent){if(!e.buttons||0!==e.button)return;L(e)}e instanceof MouseEvent&&(window.addEventListener("mousemove",V),window.addEventListener("mouseup",q)),window.addEventListener("blur",N),n=e,c=x(e),a=[...c],u=[],p=c.length,o=S(c),1===p&&(d=!1,f=!1,g=!1),p&&H(S(c));const t=Date.now(),i=t-(h||t);v=i>0&&i<=250&&1===p,h=t,clearTimeout(l),F("start")}function V(e){var t;if(!a.length)return;if(e.defaultPrevented)return;if(!1===_(e))return;n=e,u=[...c],c=w(e);const l=S(u),f=S(w(e));if(H(f),p=c.length,o=f,u.length===c.length?(m=f.x-l.x,y=f.y-l.y):(m=0,y=0),a.length){const e=S(a);b=f.x-e.x,E=f.y-e.y}if(c.length>1){const e=O(c),t=O(u);Math.abs(e-t)>=.1&&(g=!0,F("pinch"))}d||(d=Math.abs(b)>=r.panThreshold||Math.abs(E)>=r.panThreshold,d&&(R=!1,clearTimeout(s),s=void 0,z=Math.abs(180*Math.atan2(E,b)/Math.PI),i=z>45&&z<135?"y":"x",a=[...c],u=[...c],b=0,E=0,m=0,y=0,null===(t=window.getSelection())||void 0===t||t.removeAllRanges(),F("panstart"))),d&&(m||y)&&F("pan"),F("move")}function q(e){if(n=e,!a.length)return;const t=x(e),i=M(e);if(p=t.length,o=S(i),i.length&&H(S(i)),u=[...c],c=[...t],a=[...t],p>0)F("end"),d=!1,f=!1,k=[];else{const e=r.swipeThreshold;(Math.abs(C)>e||Math.abs(j)>e)&&(f=!0),d&&F("panend"),f&&F("swipe"),d||f||g||(F("tap"),v?F("doubleTap"):l=setTimeout(function(){F("singleTap")},250)),F("end"),B()}}function N(){clearTimeout(l),B(),d&&F("panend"),F("end")}function B(){P=!1,d=!1,f=!1,v=!1,p=0,k=[],c=[],u=[],a=[],m=0,y=0,b=0,E=0,C=0,j=0,z=0,i=void 0,window.removeEventListener("mousemove",V),window.removeEventListener("mouseup",q),window.removeEventListener("blur",N),R||s||(s=setTimeout(()=>{R=!0,s=void 0},100))}function W(e){const t=e.target;P=!1,t&&!e.defaultPrevented&&(R||(L(e),e.stopPropagation()))}const Z={init:function(){return e&&(e.addEventListener("click",W,T),e.addEventListener("mousedown",D,T),e.addEventListener("touchstart",D,T),e.addEventListener("touchmove",V,T),e.addEventListener("touchend",q),e.addEventListener("touchcancel",q)),Z},on:function(e,t){return function(e,t){I.set(e,[...I.get(e)||[],t])}(e,t),Z},off:function(e,t){return I.has(e)&&I.set(e,I.get(e).filter(e=>e!==t)),Z},isPointerDown:()=>p>0,destroy:function(){clearTimeout(l),clearTimeout(s),s=void 0,e&&(e.removeEventListener("click",W,T),e.removeEventListener("mousedown",D,T),e.removeEventListener("touchstart",D,T),e.removeEventListener("touchmove",V,T),e.removeEventListener("touchend",q),e.removeEventListener("touchcancel",q)),e=null,B()}};return Z};
2C.isClickAllowed=()=>R;const j={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"},z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e&&e.classList&&t.split(" ").forEach(t=>{t&&e.classList.add(t)})},k=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e&&e.classList&&t.split(" ").forEach(t=>{t&&e.classList.remove(t)})},I=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;e&&e.classList&&t.split(" ").forEach(t=>{t&&e.classList.toggle(t,n||!1)})},F=e=>{e.cancelable&&e.preventDefault()},_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e4;return e=parseFloat(e+"")||0,Math.round((e+Number.EPSILON)*t)/t},H=e=>e instanceof HTMLImageElement;var D,V;!function(e){e.Reset="reset",e.Zoom="zoom",e.ZoomIn="zoomIn",e.ZoomOut="zoomOut",e.ZoomTo="zoomTo",e.ToggleCover="toggleCover",e.ToggleFull="toggleFull",e.ToggleMax="toggleMax",e.IterateZoom="iterateZoom",e.Pan="pan",e.Swipe="swipe",e.Move="move",e.MoveLeft="moveLeft",e.MoveRight="moveRight",e.MoveUp="moveUp",e.MoveDown="moveDown",e.RotateCCW="rotateCCW",e.RotateCW="rotateCW",e.FlipX="flipX",e.FlipY="flipY",e.ToggleFS="toggleFS"}(D||(D={})),function(e){e.Cover="cover",e.Full="full",e.Max="max"}(V||(V={}));const q={x:0,y:0,scale:1,angle:0,flipX:1,flipY:1},N={bounds:!0,classes:{container:"f-panzoom",wrapper:"f-panzoom__wrapper",content:"f-panzoom__content",viewport:"f-panzoom__viewport"},clickAction:D.ToggleFull,dblClickAction:!1,gestures:{},height:"auto",l10n:j,maxScale:4,minScale:1,mouseMoveFactor:1,panMode:"drag",protected:!1,singleClickAction:!1,spinnerTpl:'<div class="f-spinner"></div>',wheelAction:D.Zoom,width:"auto"};let B,W=0,Z=0,G=0;const X=function(e){let t,n,a,c,d,f,g,v,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},m=0,b=Object.assign(Object.assign({},N),h),E={},w=Object.assign({},q),x=Object.assign({},q);const O=[];function L(e){let t=b[e];return t&&"function"==typeof t?t(Me):t}function T(){return e&&e.parentElement&&t&&3===m}const A=new Map;function P(e){const t=[...A.get(e)||[]];b.on&&t.push(b.on[e]);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];for(const l of t)l&&l instanceof Function&&l(Me,...o);"*"!==e&&P("*",e,...o)}function R(e){if(!T())return;const t=e.target;if(l(t))return;const n=Date.now(),o=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce(function(e,t){return Math.abs(t)>Math.abs(e)?t:e}),i=r(-1,o,1);P("wheel",e,i);const s=L("wheelAction");if(!s)return;if(e.defaultPrevented)return;const a=x.scale;let c=a*(i>0?1.5:.5);if(s===D.Zoom){const t=Math.abs(e.deltaY)<100&&Math.abs(e.deltaX)<100;if(n-Z<(t?200:45))return void F(e);Z=n;const o=ne(),l=le();if(_(c)<_(o)&&_(a)<=_(o)?(G+=Math.abs(i),c=o):_(c)>_(l)&&_(a)>=_(l)?(G+=Math.abs(i),c=l):(G=0,c=r(o,c,l)),G>7)return}switch(F(e),s){case D.Pan:ce(s,{srcEvent:e,deltaX:2*-e.deltaX,deltaY:2*-e.deltaY});break;case D.Zoom:ce(D.ZoomTo,{srcEvent:e,scale:c,center:{x:e.clientX,y:e.clientY}});break;default:ce(s,{srcEvent:e})}}function j(n){var o,l;const s=n.composedPath()[0];if(!C.isClickAllowed())return;if(!i(s)||n.defaultPrevented)return;if(!(null==e?void 0:e.contains(s)))return;if(s.hasAttribute("disabled")||s.hasAttribute("aria-disabled")||s.hasAttribute("data-carousel-go-prev")||s.hasAttribute("data-carousel-go-next"))return;const r=s.closest("[data-panzoom-action]"),a=null===(o=null==r?void 0:r.dataset)||void 0===o?void 0:o.panzoomAction,c=(null===(l=null==r?void 0:r.dataset)||void 0===l?void 0:l.panzoomValue)||"";if(a){switch(F(n),a){case D.ZoomTo:case D.ZoomIn:case D.ZoomOut:ce(a,{scale:parseFloat(c||"")||void 0});break;case D.MoveLeft:case D.MoveRight:ce(a,{deltaX:parseFloat(c||"")||void 0});break;case D.MoveUp:case D.MoveDown:ce(a,{deltaY:parseFloat(c||"")||void 0});break;case D.ToggleFS:we();break;default:ce(a)}return}if(!(null==t?void 0:t.contains(s)))return;const u={srcEvent:n};if(ce(L("clickAction"),u),L("dblClickAction")){const e=Date.now(),t=e-(W||e);W=e,t>
20&&t<=250?(B&&(clearTimeout(B),B=void 0),ce(L("dblClickAction"),u)):B=setTimeout(()=>{ce(L("singleClickAction"),u)},250)}}function V(e){if(v=e,!T()||!Q())return;if(w.scale<=1||x.scale<=1)return;if(((null==t?void 0:t.dataset.animationName)||"").indexOf("zoom")>-1)return;const n=ee(x.scale);if(!n)return;const{x:o,y:i}=n;ce(D.Pan,{deltaX:o-x.x,deltaY:i-x.y})}function X(){var t;e&&(k(e,"is-loading"),null===(t=e.querySelector(".f-spinner"))||void 0===t||t.remove())}function Y(){if(!e||!n)return;if(X(),H(n)&&(!n.complete||!n.naturalWidth))return m=2,null==t||t.classList.add("has-error"),void P("error");P("loaded");const{width:o,height:i}=K();H(n)&&(n.setAttribute("width",o+""),n.setAttribute("height",i+"")),t&&(k(t,"has-error"),H(n)&&(t.setAttribute("width",o+""),t.setAttribute("height",i+""),t.style.aspectRatio="".concat(o/i||""))),f=y().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),x=Object.assign(Object.assign({},q),t),ae(),P("animationStart")}).on("pause",e=>{x=Object.assign(Object.assign({},q),e)}).on("step",e=>{if(!T())return void(null==f||f.end());if(w=Object.assign(Object.assign({},q),e),Q()||!L("bounds")||ye()||x.scale>w.scale||x.scale<oe())return void ue();const t=se(x.scale);let n=!1,o=!1,i=!1,l=!1;w.x<t.x[0]&&(n=!0),w.x>t.x[1]&&(o=!0),w.y<t.y[0]&&(l=!0),w.y>t.y[1]&&(i=!0);let s=!1,a=!1,c=!1,u=!1;x.x<t.x[0]&&(s=!0),x.x>t.x[1]&&(a=!0),x.y<t.y[0]&&(u=!0),x.y>t.y[1]&&(c=!0);let d=!1;(o&&a||n&&s)&&(x.x=r(t.x[0],x.x,t.x[1]),d=!0),(i&&c||l&&u)&&(x.y=r(t.y[0],x.y,t.y[1]),d=!0),d&&f&&f.spring({tension:94,friction:17,maxSpeed:555*x.scale,restDelta:.1,restSpeed:.1,velocity:f.getCurrentVelocities()}).from(w).to(x).start(),ue()}).on("end",()=>{(null==d?void 0:d.isPointerDown())||re(),(null==f?void 0:f.isRunning())||(ae(),P("animationEnd"))}),function(){const e=L("gestures");if(!e)return;if(!c||!n)return;let t=!1;d=C(c,e).on("start",e=>{if(!L("gestures"))return;if(!f)return;if(!T()||Q())return;const n=e.srcEvent;(w.scale>1||e.currentTouch.length>1)&&(null==n||n.stopPropagation(),f.pause(),t=!0),1===e.currentTouch.length&&P("touchStart")}).on("move",e=>{var n;t&&(1!==x.scale||e.currentTouch.length>1)&&(F(e.srcEvent),null===(n=e.srcEvent)||void 0===n||n.stopPropagation())}).on("pan",e=>{if(!t)return;const n=e.srcEvent;(1!==x.scale||e.currentTouch.length>1)&&(F(n),ce(D.Pan,e))}).on("swipe",e=>{t&&x.scale>1&&ce(D.Swipe,e)}).on("tap",e=>{P("click",e)}).on("singleTap",e=>{P("singleClick",e)}).on("doubleTap",e=>{P("dblClick",e)}).on("pinch",e=>{t&&(e.scale>oe()?ce(D.ZoomIn,e):e.scale<oe()?ce(D.ZoomOut,e):ce(D.Pan,e))}).on("end",e=>{t&&(e.currentTouch.length?(e.srcEvent.stopPropagation(),F(e.srcEvent),null==f||f.end()):(t=!1,ae(),re(),P("touchEnd")))}).init()}(),c&&(c.addEventListener("wheel",R,{passive:!1}),O.push(()=>{null==c||c.removeEventListener("wheel",R,{passive:!1})})),null==e||e.addEventListener("click",j),null===document||void 0===document||document.addEventListener("mousemove",V),O.push(()=>{null==e||e.removeEventListener("click",j),null===document||void 0===document||document.removeEventListener("mousemove",V)});const l=U();w=Object.assign({},l),x=Object.assign({},l),m=3,ue(),ae(),P("ready"),requestAnimationFrame(()=>{3===m&&(X(),c&&(c.style.visibility=""))})}function U(){const e=Object.assign({},L("startPos")||{});let t=e.scale,n=1;n="string"==typeof t?te(t):"number"==typeof t?t:oe();const o=Object.assign(Object.assign(Object.assign({},q),e),{scale:n}),i=Q()?ee(n):void 0;if(i){const{x:e,y:t}=i;o.x=e,o.y=t}return o}function $(){const e={top:0,left:0,width:0,height:0};if(t){const n=t.getBoundingClientRect();x.angle%180==90?(e.top=n.top+.5*n.height-.5*n.width,e.left=n.left+.5*n.width-.5*n.height,e.width=n.height,e.height=n.width):(e.top=n.top,e.left=n.left,e.width=n.width,e.height=n.height)}return e}function K(){let e=L("width"),i=L("height");if(n&&"auto"===e){const o=n.getAttribute("width");e=o?parseFloat(o+""):void 0!==n.dataset.width?parseFloat(n.dataset.width+""):H(c)?c.naturalWidth:H(n)?n.naturalWidth:(null==t?void 0:t.getBoundingClientRect().width)||0}else e=o(e)?parseFloat(e):e;if(n&&"auto"===i){const e=n.getAttribute("height");i=e?parseFloat(e+""):void 0!==n.dataset.height?parseFloat(n.dataset.height+""):H(c)?c.naturalHeight:H(n)?n.naturalHeight:(null==t?void 0:t.getBoundingClientRect().height)||0}else i=o(i)?parseFloat(i):i;return{width:e,height:i}}function J(){const e=$();return{width:e.width,height:e.height}}function Q(){return"mousemove"===L("panMode")&&matchMedia("(hover: hover)").matches}function ee(e){const n=v||L("event"),o=null==t?void 0:t.getBoundingClientRect();if(!n||!o||e<=1)return{x:0,y:0};const i=(n.clientX||0)-o.left,l=(n.clientY||0)-o.top,{width:s,height:a}=J(),c=se(e);if(e>1){const t=L("mouseMoveFactor");t>1&&(e*=t)}let u=s*e,d=a*e,f=.5*(u-s)-i/s*100/100*(u-s),g=.5*(d-a)-l/a*100/100*(d-a);return f=r(c.x[0],f,c.x[1]),g=r(c.y[0],g,c.y[1]),{x:f,y:g}}function te(t){if(!t)return x.scale;if(!e)return 1;const n=e.getBoundingClientRect(),o=$(),{width:i,height:l}=K(),s=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":{const e=x.angle%180==90?l:i;return e&&o.width?e/o.width:1}}},a=L("minScale"),c=L("maxScale"),u=Math.min(s("full"),s(a)),d="number"==typeof c?s("full")*c:Math.min(s("full"),s(c));switch(t){case"min":return u;case"base":return r(u,1,d);case"cover":return s("cover");case"full":return Math.min(d,s("full"));case"max":return d}}function ne(){return te("min")}function oe(){return te("base")}function ie(){return te("full")}function le(){return te("max")}function se(t){const n={x:[0,0],y:[0,0]},o=null==e?void 0:e.getBoundingClientRect();if(!o)return n;const i=$(),l=o.width,s=o.height;let r=i.width,a=i.height,c=t=void 0===t?x.scale:t,u=t;if(Q()&&t>1){const e=L("mouseMoveFactor");e>1&&(r*t>l+.01&&(c*=e),a*t>s+.01&&(u*=e))}return r*=c,a*=u,t>1&&(r>l&&(n.x[0]=.5*(l-r),n.x[1]=.5*(r-l)),n.x[0]-=.5*(i.left-o.left),n.x[1]-=.5*(i.left-o.left),n.x[0]-=.5*(i.left+i.width-o.right),n.x[1]-=.5*(i.left+i.width-o.right),a>s&&(n.y[0]=.5*(s-a),n.y[1]=.5*(a-s)),n.y[0]-=.5*(i.top-o.top),n.y[1]-=.5*(i.top-o.top),n.y[0]-=.5*(i.top+i.height-o.bottom),n.y[1]-=.5*(i.top+i.height-o.bottom)),n}function re(){if(!T())return;if(!L("bounds"))return;if(!f)return;const e=ne(),t=le(),n=r(e,x.scale,t);if(x.scale<e-.01||x.scale>t+.01)return void ce(D.ZoomTo,{scale:n});if(f.isRunning())return;if(ye())return;const o=se(n);x.x<o.x[0]||x.x>o.x[1]||x.y<o.y[0]||x.y>o.y[1]?(x.x=r(o.x[0],x.x,o.x[1]),x.y=r(o.y[0],x.y,o.y[1]),f.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:f.getCurrentVelocities()}),f.from(w).to(x).start()):ue()}function ae(n){var o;if(!T())return;const i=me(),l=ye(),s=be(),r=Ee(),a=fe(),c=ge();I(t,"is-fullsize",r),I(t,"is-expanded",s),I(t,"is-dragging",l),I(t,"can-drag",i),I(t,"will-zoom-in",a),I(t,"will-zoom-out",c);const u=he(),d=pe(),f=ve(),g=!T();for(const t of(null===(o=n||e)||void 0===o?void 0:o.querySelectorAll("[data-panzoom-action]"))||[]){const e=t.dataset.panzoomAction;let n=!1;if(g)n=!0;else switch(e){case D.ZoomIn:u||(n=!0);break;case D.ZoomOut:f||(n=!0);break;case D.ToggleFull:{d||f||(n=!0);const e=t.querySelector("g");e&&(e.style.display=r&&!n?"none":"");break}case D.IterateZoom:{u||f||(n=!0);const e=t.querySelector("g");e&&(e.style.display=u||n?"":"none");break}case D.ToggleCover:case D.ToggleMax:u||f||(n=!0)}n?(t.setAttribute("aria-disabled",""),t.setAttribute("tabindex","-1")):(t.removeAttribute("aria-disabled"),t.removeAttribute("tabindex"))}}function ce(t,o){var i;if(!(t&&e&&n&&f&&T()))return;if(t===D.Swipe&&Math.abs(f.getCurrentVelocities().scale)>.01)return;const l=Object.assign({},x);let s=Object.assign({},x),a=se(Q()?l.scale:w.scale);const c=f.getCurrentVelocities(),d=$(),g=((null===(i=(o=o||{}).currentTouch)||void 0===i?void 0:i.length)||0)>1,v=o.velocityX||0,h=o.velocityY||0;let p=o.center;o.srcEvent&&(p=S(M(o.srcEvent)));let m=o.deltaX||0,y=o.deltaY||0;switch(t){case D.MoveRight:m=o.deltaX||100;break;case D.MoveLeft:m=o.deltaX||-100;break;case D.MoveUp:y=o.deltaY||-100;break;case D.MoveDown:y=o.deltaY||100}let b=[];if("number"==typeof t)s.scale=t;else switch(t){case D.Reset:s=Object.assign({},q),s.scale=oe();break;case D.ZoomTo:case D.ZoomIn:case D.ZoomOut:case D.ToggleCover:case D.ToggleFull:case D.ToggleMax:case D.IterateZoom:case D.Zoom:s.scale=de(t,o);break;case D.Pan:case D.Move:case D.MoveLeft:case D.MoveRight:case D.MoveUp:case D.MoveDown:if(ye()){let e=1,t=1;s.x<=a.x[0]&&v<=0&&(e=Math.max(.01,1-Math.abs(1/d.width*Math.abs(s.x-a.x[0]))),e*=.2),s.x>=a.x[1]&&v>=0&&(e=Math.max(.01,1-Math.abs(1/d.width*Math.abs(s.x-a.x[1]))),e*=.2),s.y<=a.y[0]&&h<=0&&(t=Math.max(.01,1-Math.abs(1/d.height*Math.abs(s.y-a.y[0]))),t*=.2),s.y>=a.y[1]&&h>=0&&(t=Math.max(.01,1-Math.abs(1/d.height*Math.abs(s.y-a.y[1]))),t*=.2),s.x+=m*e,s.y+=y*t}else s.x=r(a.x[0],s.x+m,a.x[1]),s.y=r(a.y[0],s.y+y,a.y[1]);break;case D.Swipe:const e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Math.sign(e)*Math.pow(Math.abs(e),1.5)};s.x+=r(-1e3,e(v),1e3),s.y+=r(-1e3,e(h),1e3),h&&!v&&(s.x=r(a.x[0],s.x,a.x[1])),!h&&v&&(s.y=r(a.y[0],s.y,a.y[1])),c.x=v,c.y=h;break;case D.RotateCW:s.angle+=90;break;case D.RotateCCW:s.angle-=90;break;case D.FlipX:s.flipX*=-1;break;case D.FlipY:s.flipY*=-1}if(void 0!==w.angle&&Math.abs(w.angle)>=360&&(s.angle-=360*Math.floor(w.angle/360),w.angle-=360*Math.floor(w.angle/360)),b.length){const e=b.findIndex(e=>e>s.scale+1e-4);s.scale=b[e]||b[0]}if(g&&(s.scale=r(ne()*(g?.8:1),s.scale,le()*(g?1.6:1))),Q()){const e=ee(s.scale);if(e){const{x:t,y:n}=e;s.x=t,s.y=n}}else if(Math.abs(s.scale-l.scale)>1e-4){let t=0,n=0;if(p)t=p.x,n=p.y;else{const o=e.getBoundingClientRect();t=o.x+.5*o.width,n=o.y+.5*o.height}let o=t-d.left,i=n-d.top;o-=.5*d.width,i-=.5*d.height;
2const c=(o-l.x)/l.scale,u=(i-l.y)/l.scale;s.x=o-c*s.scale,s.y=i-u*s.scale,!g&&L("bounds")&&(a=se(s.scale),s.x=r(a.x[0],s.x,a.x[1]),s.y=r(a.y[0],s.y,a.y[1]))}if(t===D.Swipe){let e=94,t=17,n=500*s.scale,o=c;f.spring({tension:e,friction:t,maxSpeed:n,restDelta:.1,restSpeed:.1,velocity:o})}else t===D.Pan||g?f.spring({tension:900,friction:17,restDelta:.01,restSpeed:.01,maxSpeed:1}):f.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:c});if(0===o.velocity||u(w,s))w=Object.assign({},s),x=Object.assign({},s),f.end(),ue(),ae();else{if(u(x,s))return;f.from(w).to(s).start()}P("action",t)}function ue(){if(!n||!t||!c)return;const{width:o,height:i}=K();Object.assign(t.style,{maxWidth:"min(".concat(o,"px, 100%)"),maxHeight:"min(".concat(i,"px, 100%)")});const l=function(){const{width:t,height:n}=K(),{width:o,height:i}=J();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:s,scale:r,angle:a,flipX:c,flipY:u}=w,d=1/ie(),f=t,g=n,v=w.scale*d,h=x.scale*d;const p=Math.max(o,i),m=Math.min(o,i);t>n?(f=p,g=m):(f=m,g=p),v=t>n?p*r/t||1:p*r/n||1;let y=f?t*h:0,b=g?n*h:0;return l=l+.5*f-.5*y,s=s+.5*g-.5*b,{x:l,y:s,width:y,height:b,scale:f&&g?t*v/y:0,flipX:c,flipY:u,angle:a,fitWidth:o,fitHeight:i,fullWidth:t,fullHeight:n}}(),{x:s,y:r,width:a,height:u,scale:d,angle:f,flipX:g,flipY:v}=l;let h="translate(".concat(_(s),"px, ").concat(_(r),"px)");h+=1!==g||1!==v?" scaleX(".concat(_(d*g),") scaleY(").concat(_(d*v),")"):" scale(".concat(_(d),")"),0!==f&&(h+=" rotate(".concat(f,"deg)")),c.style.width="".concat(_(a),"px"),c.style.height="".concat(_(u),"px"),c.style.transform="".concat(h),P("render")}function de(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L("clickAction"),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=x.scale,o=oe(),i=[];if("number"==typeof e)o=e;else if(e){switch(e){case D.ZoomTo:o=t.scale||1;break;case D.ZoomIn:o=n*(t.scale||2);break;case D.ZoomOut:o=n*(t.scale||.5);break;case D.ToggleCover:i=[oe(),te("cover")];break;case D.ToggleFull:i=[oe(),ie()];break;case D.ToggleMax:i=[oe(),le()];break;case D.IterateZoom:i=[oe(),ie(),le()];break;case D.Zoom:const e=ie();o=n>=e-.05?oe():Math.min(e,n*(t.scale||2))}if(i.length){const e=i.findIndex(e=>e>n+1e-4);o=i[e]||oe()}}return e!==D.ZoomTo&&(o=r(ne(),o,le())),o}function fe(){return!!(T()&&de()>x.scale)}function ge(){return!!(T()&&de()<x.scale)}function ve(){return!!(T()&&x.scale>ne())}function he(){return!!(T()&&x.scale<le())}function pe(){return!!(T()&&x.scale<ie())}function me(){return!(!(T()&&be()&&d)||Q())}function ye(){return!(!T()||!(null==d?void 0:d.isPointerDown())||Q())}function be(){return!!(T()&&x.scale>oe())}function Ee(){return!!(T()&&x.scale>=ie())}function we(){const t="in-fullscreen",n="with-panzoom-in-fullscreen";null==e||e.classList.toggle(t);const o=null==e?void 0:e.classList.contains(t);o?(document.documentElement.classList.add(n),document.addEventListener("keydown",xe,!0)):(document.documentElement.classList.remove(n),document.removeEventListener("keydown",xe,!0)),ue(),P(o?"enterFS":"exitFS")}function xe(e){"Escape"!==e.key||e.defaultPrevented||we()}const Me={canDrag:me,canZoomIn:he,canZoomOut:ve,canZoomToFull:pe,destroy:function(){P("destroy");for(const e of Object.values(E))null==e||e.destroy(Me);for(const e of O)e();return t&&(t.style.aspectRatio="",t.style.maxWidth="",t.style.maxHeight=""),c&&(c.style.width="",c.style.height="",c.style.transform=""),t=void 0,n=void 0,c=void 0,w=Object.assign({},q),x=Object.assign({},q),null==f||f.destroy(),f=void 0,null==d||d.destroy(),d=void 0,m=4,Me},emit:P,execute:ce,getBoundaries:se,getContainer:function(){return e},getContent:function(){return n},getFullDim:K,getGestures:function(){return d},getMousemovePos:ee,getOptions:function(){return b},getPlugins:function(){return E},getScale:te,getStartPosition:U,getState:function(){return m},getTransform:function(e){return!0===e?x:w},getTween:function(){return f},getViewport:function(){return c},getWrapper:function(){return t},init:function(){return m=0,P("init"),function(){for(const[e,t]of Object.entries(Object.assign(Object.assign({},p),b.plugins||{})))if(e&&!E[e]&&t instanceof Function){const n=t();n.init(Me),E[e]=n}P("initPlugins")}(),function(){var o,i,l;const s=Object.assign(Object.assign({},N.classes),L("classes")),r=null===(o=s.content)||void 0===o?void 0:o.split(" ").shift(),u=null===(i=s.wrapper)||void 0===i?void 0:i.split(" ").shift(),d=null===(l=s.viewport)||void 0===l?void 0:l.split(" ").shift();if(r&&u&&d&&e&&(z(e,s.container),n=e.querySelector(".".concat(r,":not(.is-clone)")),n)){if(n.setAttribute("draggable","false"),t=e.querySelector(".".concat(u)),t||(t=document.createElement("div"),z(t,s.wrapper),n.insertAdjacentElement("beforebegin",t),t.insertAdjacentElement("afterbegin",n)),c=e.querySelector(".".concat(d)),c||(c=document.createElement("div"),z(c,s.viewport),t.insertAdjacentElement("beforeend",c)),c.contains(n)||c.insertAdjacentElement("afterbegin",n),a=e.querySelector(".".concat(r,".is-clone")),a||(a=n.cloneNode(!0),a.removeAttribute("id"),z(a,"is-clone"),t.insertAdjacentElement("afterbegin",a)),n instanceof HTMLPictureElement&&(n=n.querySelector("img")),a instanceof HTMLPictureElement&&(a=a.querySelector("img")),c instanceof HTMLPictureElement&&(c=c.querySelector("img")),c&&(c.style.visibility="hidden",L("protected"))){c.addEventListener("contextmenu",e=>{F(e)});const e=document.createElement("div");z(e,"f-panzoom__protected"),c.appendChild(e)}P("initLayout")}}(),function(){if(e&&t&&!g){let e=null;g=new ResizeObserver(()=>{T()&&(e=e||requestAnimationFrame(()=>{T()&&(ae(),re(),P("refresh")),e=null}))}),g.observe(t),O.push(()=>{null==g||g.disconnect(),g=void 0,e&&(cancelAnimationFrame(e),e=null)})}}(),function(){if(!e||!n)return;if(!H(n)||!H(a))return void Y();const o=()=>{n&&H(n)&&n.decode().then(()=>{Y()}).catch(()=>{Y()})};m=1,e.classList.add("is-loading"),P("loading"),a.src&&a.complete?o():(function(){if(!e)return;if(null==e?void 0:e.querySelector(".f-spinner"))return;const n=L("spinnerTpl"),o=s(n);o&&(o.classList.add("f-spinner"),e.classList.add("is-loading"),null==t||t.insertAdjacentElement("afterbegin",o))}(),a.addEventListener("load",o,!1),a.addEventListener("error",o,!1),O.push(()=>{null==a||a.removeEventListener("load",o,!1),null==a||a.removeEventListener("error",o,!1)}))}(),Me},isDragging:ye,isExpanded:be,isFullsize:Ee,isMousemoveMode:Q,localize:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=L("l10n")||{};e=String(e).replace(/\{\{(\w+)\}\}/g,(e,t)=>n[t]||e);for(let o=0;o<t.length;o++)e=e.split(t[o][0]).join(t[o][1]);return e.replace(/\{\{(.*?)\}\}/g,(e,t)=>t)},off:function(e,t){for(const n of e instanceof Array?e:[e])A.has(n)&&A.set(n,A.get(n).filter(e=>e!==t));return Me},on:function(e,t){for(const n of e instanceof Array?e:[e])A.set(n,[...A.get(n)||[],t]);return Me},toggleFS:we,updateControls:ae,version:"6.1.13",willZoomIn:fe,willZoomOut:ge};return Me};X.l10n={en_EN:j},X.getDefaults=()=>N;const Y=(e,t)=>
2{let n=[];return e.childNodes.forEach(e=>{e.nodeType!==Node.ELEMENT_NODE||t&&!e.matches(t)||n.push(e)}),n},U=function(e){const t=arguments.length<=1?0:arguments.length-1;for(let n=0;n<t;n++){const t=(n+1<1||arguments.length<=n+1?void 0:arguments[n+1])||{};Object.entries(t).forEach(t=>{let[n,o]=t;const i=Array.isArray(o)?[]:{};e[n]||Object.assign(e,{[n]:i}),a(o)?Object.assign(e[n],U(e[n],o)):Array.isArray(o)?Object.assign(e,{[n]:[...o]}):Object.assign(e,{[n]:o})})}return e},$=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const o=((arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)-e)/((arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)-e)*(n-t)+t;return arguments.length>5&&void 0!==arguments[5]&&arguments[5]?t<n?r(t,o,n):r(n,o,t):o},K=Object.assign(Object.assign({},j),{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"}),J=e=>{e.cancelable&&e.preventDefault()},Q={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:K,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};let ee,te=0;const ne=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};te++;let c,u,d,f,g,v=0,h=Object.assign({},Q),p=Object.assign({},Q),m={},E=null,w=null,x=0,M=0,S=0,O=!1,L=!1,T=!1,A="height",P=0,R=!0,j=0,F=0,_=0,H=0,D="*",V=[],q=[];const N=new Set;let B=[],W=[],Z=0,G=0,X=0;function K(e){let t=p[e];for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return t&&t instanceof Function?t(He,...o):t}function oe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=K("l10n")||{};e=String(e).replace(/\{\{(\w+)\}\}/g,(e,t)=>n[t]||e);for(let o=0;o<t.length;o++)e=e.split(t[o][0]).join(t[o][1]);return e.replace(/\{\{(.*?)\}\}/g,(e,t)=>t)}const ie=new Map;function le(e){const t=[...ie.get(e)||[]];p.on&&t.push(p.on[e]);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];for(const l of t)l&&l instanceof Function&&l(He,...o);"*"!==e&&le("*",e,...o)}function se(){var e,t;const o=U({},Q,h);U(o,Q,h);let i="";const l=h.breakpoints||{};if(l)for(const[n,s]of Object.entries(l))window.matchMedia(n).matches&&(i+=n,U(o,s));if(void 0===g||i!==g){if(g=i,0!==v){let n=null===(t=null===(e=W[j])||void 0===e?void 0:e.slides[0])||void 0===t?void 0:t.index;void 0===n&&(n=p.initialSlide),o.initialSlide=n,o.slides=[];for(const e of V)e.isVirtual&&o.slides.push(e)}Ie(),p=o,!1!==K("enabled")&&(v=0,le("init"),function(){for(const[e,t]of Object.entries(Object.assign(Object.assign({},n),p.plugins||{})))if(e&&!m[e]&&t instanceof Function){const n=t();n.init(He,ne),m[e]=n}le("initPlugins")}(),function(){if(!E)return;const e=K("classes")||{};z(E,e.container);const t=K("style");if(t&&a(t))for(const[n,o]of Object.entries(t))E.style.setProperty(n,o);w=E.querySelector(".".concat(e.viewport)),w||(w=document.createElement("div"),z(w,e.viewport),w.append(...Y(E,".".concat(e.slide))),E.insertAdjacentElement("afterbegin",w)),E.carousel=He,le("initLayout")}(),function(){if(!w)return;const e=K("classes")||{};V=[],[...Y(w,".".concat(e.slide))].forEach(e=>{if(e.parentElement){const t=be(Object.assign({el:e,isVirtual:!1},e.dataset||{}));le("createSlide",t),V.push(t)}}),Me();for(const t of V)le("addSlide",t);ye(K("slides"));for(const t of V){const e=t.el;(null==e?void 0:e.parentElement)===w&&(z(e,p.classes.slide),z(e,t.class),Ce(t),le("attachSlideEl",t))}le("initSlides")}(),Se(),v=1,z(E,(K("classes")||{}).isEnabled||""),ke(),de(),u=y().on("start",()=>{c&&c.isPointerDown()||(ue(),ke())}).on("step",e=>{const t=P;P=e.pos,P!==t&&(R=!1,ke())}).on("end",e=>
2{(null==c?void 0:c.isPointerDown())||(P=e.pos,u&&!O&&(P<_||P>H)?u.spring({clamp:!0,mass:1,tension:200,friction:25,velocity:0,restDelta:1,restSpeed:1}).from({pos:P}).to({pos:r(_,P,H)}).start():R||(R=!0,le("settle")))}),ae(),function(){if(!E||!w)return;E.addEventListener("click",Ae),document.addEventListener("mousemove",re);const e=w.getBoundingClientRect();if(Z=e.height,G=e.width,!d){let e=null;d=new ResizeObserver(()=>{e||(e=requestAnimationFrame(()=>{!function(){if(1!==v||!w)return;const e=W.length,t=w.getBoundingClientRect(),n=t.height,o=t.width;e>1&&(T&&Math.abs(n-Z)<.5||!T&&Math.abs(o-G)<.5)||(Se(),ae(),Z=n,G=o,T&&!Z||!T&&!G||E&&w&&(e===W.length&&(null==c?void 0:c.isPointerDown())||(K("dragFree")&&(O||P>_&&P<H)?(ue(),ke()):je(j,{transition:!1}))))}(),e=null}))}),d.observe(w)}}(),le("ready"))}}function re(e){ee=e}function ae(){!1===K("gestures")?c&&(c.destroy(),c=void 0):c||function(){const e=K("gestures");!c&&!1!==e&&w&&(c=C(w,e).on("start",e=>{var t,n;if(!u)return;if(!1===K("gestures",e))return;const{srcEvent:o}=e;T&&b(o)&&!l(o.target)&&J(o),u.pause(),u.getCurrentVelocities().pos=0;const i=null===(t=W[j])||void 0===t?void 0:t.slides[0],s=null==i?void 0:i.el;i&&N.has(i.index)&&s&&(P=i.offset||0,P+=(function(e){const t=window.getComputedStyle(e),n=new DOMMatrixReadOnly(t.transform);return{width:n.m41||0,height:n.m42||0}}(s)[A]||0)*(L&&!T?1:-1)),Le(),O||(P<_||P>H)&&u.spring({clamp:!0,mass:1,tension:500,friction:25,velocity:(null===(n=u.getCurrentVelocities())||void 0===n?void 0:n.pos)||0,restDelta:1,restSpeed:1}).from({pos:P}).to({pos:r(_,P,H)}).start()}).on("move",e=>{var t,n;if(!1===K("gestures",e))return;const{srcEvent:o,axis:i,deltaX:s,deltaY:r}=e;if(b(o)&&(null===(t=o.touches)||void 0===t?void 0:t.length)>1)return;const a=o.target,c=l(a),d=c?c.scrollHeight>c.clientHeight?"y":"x":void 0;if(c&&c!==w&&(!i||i===d))return;if(!i)return J(o),o.stopPropagation(),void o.stopImmediatePropagation();if("y"===i&&!T||"x"===i&&T)return;if(J(o),o.stopPropagation(),!u)return;const f=L&&!T?1:-1,g=T?r:s;let v=(null==u?void 0:u.isRunning())?u.getEndValues().pos:P,h=1;O||(v<=_&&g*f<0?(h=Math.max(.01,1-(Math.abs(1/he()*Math.abs(v-_))||0)),h*=.2):v>=H&&g*f>0&&(h=Math.max(.01,1-(Math.abs(1/he()*Math.abs(v-H))||0)),h*=.2)),v+=g*h*f,u.spring({clamp:!0,mass:1,tension:700,friction:25,velocity:(null===(n=u.getCurrentVelocities())||void 0===n?void 0:n.pos)||0,restDelta:1,restSpeed:1}).from({pos:P}).to({pos:v}).start()}).on("panstart",e=>{!1!==K("gestures",e)&&(null==e?void 0:e.axis)===(T?"y":"x")&&z(w,"is-dragging")}).on("panend",e=>{!1!==K("gestures",e)&&k(w,"is-dragging")}).on("end",e=>{var t,n;if(!1===K("gestures",e))return;const{srcEvent:o,axis:i,velocityX:s,velocityY:a,currentTouch:c}=e;if(c.length>0||!u)return;const d=o.target,f=l(d),g=f?f.scrollHeight>f.clientHeight?"y":"x":void 0,v=f&&(!i||i===g);T&&b(o)&&!i&&Ae(o);const h=W.length,p=K("dragFree");if(!h)return;let y=v?0:K("vertical")?a:s;i!==(T?"y":"x")&&(y=0);let E=(null==u?void 0:u.isRunning())?u.getEndValues().pos:P;const w=L&&!T?1:-1;if(v||(E+=y*(p?5:1)*w),!O&&(y*w<=0&&E<_||y*w>=0&&E>H)){let e=0;return Math.abs(y)>0&&(e=2*Math.abs(y),e=Math.min(.3*he(),e)),E=r(_+-1*e,E,H+e),void u.spring({clamp:!0,mass:1,tension:380,friction:25,velocity:-1*y,restDelta:1,restSpeed:1}).from({pos:P}).to({pos:E}).start()}if(p||(null===(t=m.Autoscroll)||void 0===t?void 0:t.isEnabled()))return void(Math.abs(y)>10?u.spring({clamp:!0,mass:1,tension:150,friction:25,velocity:-1*y,restDelta:1,restSpeed:1}).from({pos:P}).to({pos:E}).start():u.isRunning()||R||(R=!0,le("settle")));if(!p&&!(null===(n=m.Autoscroll)||void 0===n?void 0:n.isEnabled())&&(!e.offsetX&&!e.offsetY||"y"===i&&!T||"x"===i&&T))return void je(j,{transition:"tween"});let x=ge(E);Math.abs(y)>10&&x===j&&(x+=y>0?L&&!T?1:-1:L&&!T?-1:1),je(x,{transition:"tween",tween:{velocity:-1*y}})}).init())}(),I(w,"is-draggable",!!c&&W.length>0)}function ce(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*";var t;const n=[];for(const o of V)("*"===e||o.class&&o.class.includes(e)||o.el&&(null===(t=o.el)||void 0===t?void 0:t.classList.contains(e)))&&n.push(o);f=void 0,D=e,q=[...n]}function ue(){if(!u)return;const e=ge((null==u?void 0:u.isRunning())?u.getEndValues().pos:P);e!==j&&(f=j,j=e,Ce(),de(),fe(),le("change",j,f))}function de(){var e,t;if(!E)return;for(const i of E.querySelectorAll("[data-carousel-index]"))i.innerHTML=j+"";for(const i of E.querySelectorAll("[data-carousel-page]"))i.innerHTML=j+1+"";for(const i of E.querySelectorAll("[data-carousel-pages]"))i.innerHTML=W.length+"";for(const i of E.querySelectorAll("[data-carousel-go-to]"))parseInt((null===(e=i.dataset)||void 0===e?void 0:e.carouselGoTo)||"-1",10)===j?i.setAttribute("aria-current","true"):i.removeAttribute("aria-current");for(const i of E.querySelectorAll("[data-carousel-go-prev]"))i.toggleAttribute("aria-disabled",!Fe()),Fe()?i.removeAttribute("tabindex"):i.setAttribute("tabindex","-1");for(const i of E.querySelectorAll("[data-carousel-go-next]"))i.toggleAttribute("aria-disabled",!_e()),_e()?i.removeAttribute("tabindex"):i.setAttribute("tabindex","-1");let n=!1;const o=null===(t=W[j])||void 0===t?void 0:t.slides[0];o&&(o.downloadSrc||"image"===o.type&&o.src)&&(n=!0);for(const i of E.querySelectorAll("[data-carousel-download]"))i.toggleAttribute("aria-disabled",!n)}function fe(e){var t;e||(e=null===(t=W[j])||void 0===t?void 0:t.slides[0]);const n=null==e?void 0:e.el;
2if(n)for(const o of n.querySelectorAll("[data-slide-index]"))o.innerHTML=e.index+1+""}function ge(e){var t,n,o;if(!W.length)return 0;const i=pe();let l=e;O?l-=Math.floor((e-(null===(t=W[0])||void 0===t?void 0:t.pos))/i)*i||0:l=r(null===(n=W[0])||void 0===n?void 0:n.pos,e,null===(o=W[W.length-1])||void 0===o?void 0:o.pos);const s=new Map;let a=0;for(const r of W){const e=Math.abs(r.pos-l),t=Math.abs(r.pos-l-i),n=Math.abs(r.pos-l+i),o=Math.min(e,t,n);s.set(a,o),a++}const c=s.size>0?[...s.entries()].reduce((e,t)=>t[1]<e[1]?t:e):[j,0];return parseInt(c[0])}function ve(){return X}function he(){return x}function pe(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return q.length?q.reduce((e,t)=>e+t.dim,0)+(q.length-(O&&e?0:1))*X:0}function me(e){const t=pe(),n=he();if(!t||!w||!n)return[];const o=[];e=void 0===e?P:e,O&&(e-=Math.floor(e/t)*t||0);let i=0;for(let l of q){const s=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;o.indexOf(l)>-1||(l.pos=i-e+t||0,l.offset+t>e-l.dim-M+.51&&l.offset+t<e+n+S-.51&&o.push(l))};l.offset=i,O&&(s(t),s(-1*t)),s(),i+=l.dim+X}return o}function ye(e,t){const n=[];for(const o of Array.isArray(e)?e:[e]){const e=be(Object.assign(Object.assign({},o),{isVirtual:!0}));e.el||(e.el=document.createElement("div")),le("createSlide",e),n.push(e)}V.splice(void 0===t?V.length:t,0,...n),Me();for(const o of n)le("addSlide",o),Ee(o);return ce(D),n}function be(e){return(o(e)||e instanceof HTMLElement)&&(e={html:e}),Object.assign({index:-1,el:void 0,class:"",isVirtual:!0,dim:0,pos:0,offset:0,html:"",src:""},e)}function Ee(e){let t=e.el;if(!e||!t)return;const n=e.html?e.html instanceof HTMLElement?e.html:s(e.html):void 0;n&&(z(n,"f-html"),e.htmlEl=n,z(t,"has-html"),t.append(n),le("contentReady",e))}function we(e){if(!w||!e)return;let t=e.el;if(t){if(t.setAttribute("index",e.index+""),t.parentElement!==w){let n;z(t,p.classes.slide),z(t,e.class),Ce(e);for(const t of V)if(t.index>e.index){n=t.el;break}w.insertBefore(t,n&&w.contains(n)?n:null),le("attachSlideEl",e)}return fe(e),t}}function xe(e){const t=null==e?void 0:e.el;t&&(t.remove(),Oe(t),le("detachSlideEl",e))}function Me(){for(let e=0;e<V.length;e++){const t=V[e],n=t.el;n&&(t.index!==e&&Oe(n),n.setAttribute("index","".concat(e))),t.index=e}}function Se(){var e,t,n,o,l;if(!E||!w)return;L=K("rtl"),T=K("vertical"),A=T?"height":"width";const s=K("classes");if(I(E,s.isLTR,!L),I(E,s.isRTL,L),I(E,s.isHorizontal,!T),I(E,s.isVertical,T),I(E,s.hasAdaptiveHeight,K("adaptiveHeight")),x=0,M=0,S=0,X=0,w){w.childElementCount||(w.style.display="grid");const e=w.getBoundingClientRect();x=w.getBoundingClientRect()[A]||0;const t=window.getComputedStyle(w);X=parseFloat(t.getPropertyValue("--f-carousel-gap"))||0,"visible"===t.getPropertyValue("overflow-"+(T?"y":"x"))&&(M=Math.abs(e[T?"top":"left"]),S=Math.abs(window[T?"innerHeight":"innerWidth"]-e[T?"bottom":"right"])),w.style.display=""}if(!x)return;const a=function(){let e=0;if(w){let t=document.createElement("div");t.style.display="block",z(t,p.classes.slide),w.appendChild(t),e=t.getBoundingClientRect()[A],t.remove(),t=void 0}return e}();for(const r of q){const t=r.el;let n=0;if(!r.isVirtual&&t&&i(t)){let o=!1;t.parentElement&&t.parentElement===w||(w.appendChild(t),o=!0),n=t.getBoundingClientRect()[A],o&&(null===(e=t.parentElement)||void 0===e||e.removeChild(t))}else n=a;r.dim=n}if(O=!1,K("infinite")){O=!0;const e=pe();let n=x+M+S;for(let o=0;o<q.length;o++){const i=(null===(t=q[o])||void 0===t?void 0:t.dim)+X;if(e-i<n&&e-i-n<i){O=!1;break}}}!function(){var e;if(!E)return;const t=he(),n=pe(!1);let o=K("slidesPerPage");o="auto"===o?1/0:parseFloat(o+""),W=[];let i=0,l=0;for(const r of q)(!W.length||i+r.dim-t>.05||l>=o)&&(W.push({index:W.length,slides:[],dim:0,offset:0,pos:0}),i=0,l=0),null===(e=W[W.length-1])||void 0===e||e.slides.push(r),i+=r.dim+X,l++;const s=K("center"),a=K("fill");let c=0;for(const f of W){f.dim=(f.slides.length-1)*X;for(const e of f.slides)f.dim+=e.dim;f.offset=c,f.pos=c,!1!==s&&(f.pos-=.5*(t-f.dim)),a&&!O&&n>t&&(f.pos=r(0,f.pos,n-t)),c+=f.dim+X}const u=[];let d;for(const r of W){const e=Object.assign({},r);d&&Math.abs(e.pos-d.pos)<.1?(d.dim+=e.dim,d.slides=[...d.slides,...e.slides]):(d=e,e.index=u.length,u.push(e))}W=u,j=r(0,j,W.length-1)}(),_=(null===(n=W[0])||void 0===n?void 0:n.pos)||0,H=(null===(o=W[W.length-1])||void 0===o?void 0:o.pos)||0,0===v?function(){var e;f=void 0,j=K("initialPage");const t=K("initialSlide")||void 0;void 0!==t&&(j=He.getPageIndex(t)||0),j=r(0,j,W.length-1),P=(null===(e=W[j])||void 0===e?void 0:e.pos)||0,F=P}():F=(null===(l=W[j||0])||void 0===l?void 0:l.pos)||0,le("refresh"),de()}function Oe(e){if(!e||!i(e))return;const t=parseInt(e.getAttribute("index")||"-1");let n="";for(const i of Array.from(e.classList)){const e=i.match(/^f-(\w+)(Out|In)$/);e&&e[1]&&(n=e[1]+"")}if(!e||!n)return;const o=["f-".concat(n,"Out"),"f-".concat(n,"In"),"to-prev","to-next","from-prev","from-next"];e.removeEventListener("animationend",Te),k(e,o.join(" ")),N.delete(t)}function Le(){if(!w)return;const e=N.size>0;for(const t of q)Oe(t.el);N.clear(),e&&ke()}function Te(e){var t;"f-"===(null===(t=e.animationName)||void 0===t?void 0:t.substring(0,2))&&(Oe(e.target),N.size||(k(E,"in-transition"),!R&&Math.abs(He.getPosition(!0)-F)<.5&&(R=!0,le("settle"))),ke())}function Ae(e){var t;if(e.defaultPrevented)return;const n=e.composedPath()[0];if(n.closest("[data-carousel-go-prev]"))return J(e),void He.prev();if(n.closest("[data-carousel-go-next]"))return J(e),void He.next();const o=n.closest("[data-carousel-go-to]");if(o)return J(e),void He.goTo(parseFloat(o.dataset.carouselGoTo||"")||
20);if(n.closest("[data-carousel-download]")){J(e);const n=null===(t=W[j])||void 0===t?void 0:t.slides[0];if(n&&(n.downloadSrc||"image"===n.type&&n.src)){const e=n.downloadFilename,t=document.createElement("a"),o=n.downloadSrc||n.src||"";t.href=o,t.target="_blank",t.download=e||o,t.click()}return}le("click",e)}function Pe(e){var t;const n=e.el;n&&(null===(t=n.querySelector(".f-spinner"))||void 0===t||t.remove())}function Re(e){var t;const n=e.el;n&&(null===(t=n.querySelector(".f-html.is-error"))||void 0===t||t.remove(),k(n,"has-error"))}function Ce(e){var t;e||(e=null===(t=W[j])||void 0===t?void 0:t.slides[0]);const n=null==e?void 0:e.el;if(!n)return;let i=K("formatCaption",e);void 0===i&&(i=e.caption),i=i||"";const l=K("captionEl");if(l&&l instanceof HTMLElement){if(e.index!==j)return;if(o(i)&&(l.innerHTML=oe(i+"")),i instanceof HTMLElement){if(i.parentElement===l)return;l.innerHTML="",i.parentElement&&(i=i.cloneNode(!0)),l.append(i)}return}if(!i)return;let s=e.captionEl||n.querySelector(".f-caption");!s&&i instanceof HTMLElement&&i.classList.contains("f-caption")&&(s=i),s||(s=document.createElement("div"),z(s,"f-caption"),o(i)?s.innerHTML=oe(i+""):i instanceof HTMLElement&&(i.parentElement&&(i=i.cloneNode(!0)),s.append(i)));const r="f-caption-".concat(te,"_").concat(e.index);s.setAttribute("id",r),s.dataset.selectable="true",z(n,"has-caption"),n.setAttribute("aria-labelledby",r),e.captionEl=s,n.insertAdjacentElement("beforeend",s)}function je(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,i;let{transition:l,tween:s}=Object.assign({transition:p.transition,tween:p.tween},t||{});if(!E||!u)return;const c=W.length;if(!c)return;if(function(e,t){var n,i,l;if(!(E&&x&&u&&t&&o(t)&&"tween"!==t))return!1;for(const o of B)if(x-o.dim>.5)return!1;if(M>.5||S>.5)return;const s=W.length;let a=e>j?1:-1;e=O?(e%s+s)%s:r(0,e,s-1),L&&(a*=-1);const c=null===(n=W[j])||void 0===n?void 0:n.slides[0],d=null==c?void 0:c.index,f=null===(i=W[e])||void 0===i?void 0:i.slides[0],g=null==f?void 0:f.index,v=null===(l=W[e])||void 0===l?void 0:l.pos;if(void 0===g||void 0===d||d===g||P===v||Math.abs(x-((null==f?void 0:f.dim)||0))>1)return!1;R=!1,u.pause(),Le(),z(E,"in-transition"),P=F=v;const h=we(c),m=we(f);return ue(),h&&(N.add(d),h.style.transform="",h.addEventListener("animationend",Te),k(h,p.classes.isSelected),h.inert=!1,z(h,"f-".concat(t,"Out to-").concat(a>0?"next":"prev"))),m&&(N.add(g),m.style.transform="",m.addEventListener("animationend",Te),z(m,p.classes.isSelected),m.inert=!1,z(m,"f-".concat(t,"In from-").concat(a>0?"prev":"next"))),ke(),!0}(e,l))return;e=O?(e%c+c)%c:r(0,e,c-1);const d=(null===(n=W[e||0])||void 0===n?void 0:n.pos)||0;F=d;const g=u.isRunning()?u.getEndValues().pos:P;if(Math.abs(F-g)<1)return P=F,j!==e&&(Ce(),f=j,j=e,de(),fe(),le("change",j,f)),ke(),void(R||(R=!0,le("settle")));if(u.pause(),Le(),O){const e=pe(),t=Math.floor((g-(null===(i=W[0])||void 0===i?void 0:i.pos))/e)||0,n=F+t*e;F=[n+e,n,n-e].reduce(function(e,t){return Math.abs(t-g)<Math.abs(e-g)?t:e})}!1!==l&&a(s)?u.spring(U({},p.tween,s)).from({pos:P}).to({pos:F}).start():(P=F,ue(),ke(),R||(R=!0,le("settle")))}function ze(e){var t;let n=P;if(O&&!0!==e){const e=pe();n-=(Math.floor((P-(null===(t=W[0])||void 0===t?void 0:t.pos)||0)/e)||0)*e}return n}function ke(){var e;if(!E||!w)return;B=me();const t=new Set,n=[],o=W[j],i=p.setTransform;let l;for(const s of q){const i=N.has(s.index),r=B.indexOf(s)>-1,a=(null===(e=null==o?void 0:o.slides)||void 0===e?void 0:e.indexOf(s))>-1;if(s.isVirtual&&!i&&!r)continue;let c=we(s);if(c&&(n.push(s),a&&t.add(c),K("adaptiveHeight")&&a)){const e=(c.lastElementChild||c).getBoundingClientRect().height;l=null==l?e:Math.max(l,e)}}w&&l&&(w.style.height="".concat(l,"px")),[...Y(w,".".concat(p.classes.slide))].forEach(e=>{I(e,p.classes.isSelected,t.has(e));const n=V[parseInt(e.getAttribute("index")||"-1")];if(!n)return e.remove(),void Oe(e);const o=N.has(n.index),l=B.indexOf(n)>-1;if(n.isVirtual&&!o&&!l)return void xe(n);if(e.inert=!l,!1===i)return;let s=n.pos?Math.round(1e4*n.pos)/1e4:0,r=0,a=0,c=0,u=0;o||(r=T?0:L?-1*s:s,a=T?s:0,c=$(r,0,n.dim,0,100),u=$(a,0,n.dim,0,100)),i instanceof Function&&!o?i(He,n,{x:r,y:a,xPercent:c,yPercent:u}):e.style.transform=r||a?"translate3d(".concat(c,"%, ").concat(u,"%,0)"):""}),le("render",n)}function Ie(){null==E||E.removeEventListener("click",Ae),document.removeEventListener("mousemove",re),N.clear(),null==d||d.disconnect(),d=void 0;for(const e of V){let t=e.el;t&&i(t)&&(e.state=void 0,Pe(e),Re(e),e.isVirtual?(xe(e),e.el=void 0):(Oe(t),t.style.transform="",w&&!w.contains(t)&&w.appendChild(t)))}for(const e of Object.values(m))null==e||e.destroy();m={},null==c||c.destroy(),c=void 0,null==u||u.destroy(),u=void 0;for(const[e,t]of Object.entries(p.classes||{}))"container"!==e&&k(E,t);k(w,"is-draggable")}function Fe(){return O||j>0}function _e(){return O||j<W.length-1}const He={add:function(e,t){var n;let o=P;const i=j,l=pe(),s=(null==u?void 0:u.isRunning())?u.getEndValues().pos:P,r=l&&Math.floor((s-((null===(n=W[0])||void 0===n?void 0:n.pos)||0))/l)||0;return ye(e,t),ce(D),Se(),u&&l&&(i===j&&(o-=r*l),o===F?P=F:u.spring({clamp:!0,mass:1,tension:300,friction:25,restDelta:1,restSpeed:1}).from({pos:o}).to({pos:F}).start()),ke(),He},canGoPrev:Fe,canGoNext:_e,destroy:function(){return le("destroy"),window.removeEventListener("resize",se),Ie(),ie.clear(),E=null,W=[],V=[],p=Object.assign({},Q),m={},q=[],g=void 0,D="*",v=2,He},emit:le,filter:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*";return ce(e),Se(),P=r(_,P,H),ke(),le("filter",e),He},getContainer:function(){return E},getGapDim:ve,getGestures:function(){return c},getLastMouseMove:function(){return ee},getOption:function(e){return K(e)},getOptions:function(){return p},getPage:function(){return W[j]},getPageIndex:function(e){if(void 0!==e){for(const t of W||[])for(const n of t.slides)if(n.index===e)return t.index;return-1}return j},getPageIndexFromPosition:ge,getPageProgress:function(e,t){var n;void 0===e&&(e=j);const o=W[e];if(!o)return e>j?-1:1;const i=pe(),l=ve();let s=o.pos,r=ze();if(O&&!0!==t){const e=Math.floor((r-(null===(n=W[0])||void 0===n?void 0:n.pos))/i)||0;r-=e*i,s=[s+i,s,s-i].reduce(function(e,t){return Math.abs(t-r)<Math.abs(e-r)?t:e})}return(r-s)/(o.dim+l)||0},getPageVisibility:function(e){var t;void 0===e&&(e=j);const n=W[e];if(!n)return e>j?-1:1;const o=ze(),i=he();let l=n.pos;if(O){const e=pe(),n=l+(Math.floor((o-(null===(t=W[0])||void 0===t?void 0:t.pos))/e)||0)*e;l=[n+e,n,n-e].reduce(function(e,t){return Math.abs(t-o)<Math.abs(e-o)?t:e})}return l>o&&l+n.dim<o+i?1:l<o?(l+n.dim-o)/n.dim||0:l+n.dim>o+i&&(o+i-l)/n.dim||0},getPages:function(){return W},getPlugins:function(){return m},getPosition:ze,getSlides:function(){return V},getState:function(){return v},getTotalSlideDim:pe,getTween:function(){return u},getViewport:function(){return w},getViewportDim:he,getVisibleSlides:function(e){return void 0===e?B:me(e)},goTo:je,hasNavigated:function(){return void 0!==f},hideError:Re,hideLoading:Pe,init:function(){if(!e||!i(e))throw new Error("No Element found");return 0!==v&&(Ie(),v=0),E=e,h=t,window.removeEventListener("resize",se),h.breakpoints&&window.addEventListener("resize",se),se(),He},isInfinite:function(){return O},isInTransition:function(){return N.size>0},isRTL:function(){return L},isSettled:function(){return R},isVertical:function(){return T},localize:oe,next:function(){return je(j+1,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),He},off:function(e,t){for(const n of e instanceof Array?e:[e])ie.has(n)&&ie.set(n,ie.get(n).filter(e=>e!==t));return He},on:function(e,t){for(const n of e instanceof Array?e:[e])ie.set(n,[...ie.get(n)||[],t]);return He},prev:function(){return je(j-1,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),He},reInit:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return Ie(),v=0,g=void 0,D="*",t=e,h=e,a(o)&&(n=o),se(),He},remove:function(e){void 0===e&&(e=V.length-1);const t=V[e];return t&&(le("removeSlide",t),t.el&&(Oe(t.el),t.el.remove(),t.el=void 0),V.splice(e,1),ce(D),Se(),P=r(_,P,H),ke()),He},setPosition:function(e){P=e,ue(),ke()},showError:function(e,t){if(1===v){Pe(e),Re(e);const n=e.el;if(n){const o=document.createElement("div");z(o,"f-html"),z(o,"is-error"),o.innerHTML=oe(t||"<p>{{ERROR}}</p>"),e.htmlEl=o,z(n,"has-html has-error"),n.insertAdjacentElement("afterbegin",o),le("contentReady",e)}}return He},showLoading:function(e){const t=e.el,n=null==t?void 0:t.querySelector(".f-spinner");if(!t||n)return He;const o=K("spinnerTpl"),i=s(o);return i&&(z(i,"f-spinner"),t.insertAdjacentElement("beforeend",i)),He},version:"6.1.13"};return He};ne.l10n={en_EN:K},ne.getDefaults=()=>Q;const oe=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"--f-scrollbar-compensate",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"--f-body-margin",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hide-scrollbar";
2const i=document,l=i.body,s=i.documentElement;if(e){if(l.classList.contains(o))return;let e=window.innerWidth-s.getBoundingClientRect().width;e<0&&(e=0),s.style.setProperty(t,"".concat(e,"px"));const i=parseFloat(window.getComputedStyle(l).marginRight);i&&l.style.setProperty(n,"".concat(i,"px")),l.classList.add(o)}else l.classList.remove(o),l.style.setProperty(n,""),i.documentElement.style.setProperty(t,"")};function ie(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}const le=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(e).join(t)},se={tpl:e=>'<img class="f-panzoom__content" \n '.concat(e.srcset?'data-lazy-srcset="{{srcset}}"':""," \n ").concat(e.sizes?'data-lazy-sizes="{{sizes}}"':"",' \n data-lazy-src="{{src}}" alt="{{alt}}" />')},re=()=>{let e;function t(t,n){const o=null==e?void 0:e.getOptions().Zoomable;let i=(a(o)?Object.assign(Object.assign({},se),o):se)[t];return i&&"function"==typeof i&&n?i(n):i}function n(){e&&!1!==e.getOptions().Zoomable&&(e.on("addSlide",s),e.on("removeSlide",r),e.on("attachSlideEl",c),e.on("click",l),e.on("change",i),e.on("ready",i))}function i(){u();const t=(null==e?void 0:e.getVisibleSlides())||[];if(t.length>1||"slide"===(null==e?void 0:e.getOption("transition")))for(const n of t){const t=n.panzoomRef;t&&((null==e?void 0:e.getPage().slides)||[]).indexOf(n)<0&&t.execute(D.ZoomTo,Object.assign({},t.getStartPosition()))}}function l(e,t){const n=t.target;n&&!t.defaultPrevented&&n.dataset.panzoomAction&&d(n.dataset.panzoomAction)}function s(n,i){const l=i.el;if(!e||!l||i.panzoomRef)return;const s=i.src||i.lazySrc||"",r=i.alt||i.caption||"Image #".concat(i.index),a=i.srcset||i.lazySrcset||"",c=i.sizes||i.lazySizes||"";if(s&&o(s)&&!i.html&&(!i.type||"image"===i.type)){i.type="image",i.thumbSrc=i.thumbSrc||s;let e=t("tpl",i);e=le(e,"{{src}}",s+""),e=le(e,"{{srcset}}",a+""),e=le(e,"{{sizes}}",c+""),l.insertAdjacentHTML("afterbegin",e)}const d=l.querySelector(".f-panzoom__content");if(!d)return;d.setAttribute("alt",r+"");const f=i.width&&"auto"!==i.width?parseFloat(i.width+""):"auto",g=i.height&&"auto"!==i.height?parseFloat(i.height+""):"auto",v=X(l,Object.assign({width:f,height:g,classes:{container:"f-zoomable"},event:()=>null==e?void 0:e.getLastMouseMove(),spinnerTpl:()=>(null==e?void 0:e.getOption("spinnerTpl"))||""},t("Panzoom")));v.on("*",function(t,n){for(var o=arguments.length,l=new Array(o>2?o-2:0),s=2;s<o;s++)l[s-2]=arguments[s];e&&("loading"===n&&(i.state=0),"loaded"===n&&(i.state=1),"error"===n&&(i.state=2,null==e||e.showError(i,"{{IMAGE_ERROR}}")),e.emit("panzoom:".concat(n),i,...l),"loading"===n&&e.emit("contentLoading",i),"ready"===n&&e.emit("contentReady",i),i.index===(null==e?void 0:e.getPageIndex())&&u())}),i.panzoomRef=v}function r(e,t){t.panzoomRef&&(t.panzoomRef.destroy(),t.panzoomRef=void 0)}function c(e,t){const n=t.panzoomRef;if(n)switch(n.getState()){case 0:n.init();break;case 3:n.execute(D.ZoomTo,Object.assign(Object.assign({},n.getStartPosition()),{velocity:0}))}}function u(){var t,n;const o=(null==e?void 0:e.getContainer())||void 0,i=null===(n=null===(t=null==e?void 0:e.getPage())||void 0===t?void 0:t.slides[0])||void 0===n?void 0:n.panzoomRef;if(o)if(i)i.updateControls(o);else for(const e of o.querySelectorAll("[data-panzoom-action]")||[])e.setAttribute("aria-disabled",""),e.setAttribute("tabindex","-1")}function d(t){for(var n,o=arguments.length,i=new Array(o>1?o-1:0),l=1;l<o;l++)i[l-1]=arguments[l];null===(n=null==e?void 0:e.getPage().slides[0].panzoomRef)||void 0===n||n.execute(t,...i)}return{init:function(t){e=t,e.on("initPlugins",n)},destroy:function(){if(e){e.off("initPlugins",n),e.off("addSlide",s),e.off("removeSlide",r),e.off("attachSlideEl",c),e.off("click",l),e.off("change",i),e.off("ready",i);for(const t of e.getSlides())r(0,t)}e=void 0},execute:d}},ae={syncOnChange:!1,syncOnClick:!0,syncOnHover:!1},ce=()=>{let e,t;function n(){const t=null==e?void 0:e.getOptions().Sync;return a(t)?Object.assign(Object.assign({},ae),t):ae}function o(){const o=n().target;e&&o&&function(o){var a,f,g;e&&o&&(t=o,e.getOptions().classes=Object.assign(Object.assign({},e.getOptions().classes),{isSelected:""}),e.getOptions().initialSlide=(null===(f=null===(a=t.getPage())||void 0===a?void 0:a.slides[0])||void 0===f?void 0:f.index)||0,n().syncOnChange&&e.on("change",l),n().syncOnClick&&e.on("click",r),n().syncOnHover&&(null===(g=e.getViewport())||void 0===g||g.addEventListener("mouseover",c)),e&&t&&(e.on("ready",i),e.on("refresh",u),t.on("change",s),t.on("filter",d)))}(o)}function i(){f()}function l(){var n;if(e&&t){const o=(null===(n=e.getPage())||void 0===n?void 0:n.slides)||[],i=t.getPageIndex(o[0].index||0);i>-1&&t.goTo(i,e.hasNavigated()?void 0:{tween:!1,transition:!1}),f()}}function s(){var n;if(e&&t){const o=e.getPageIndex((null===(n=t.getPage())||void 0===n?void 0:n.slides[0].index)||0);o>-1&&e.goTo(o,t.hasNavigated()?void 0:{tween:!1,transition:!1}),f()}}function r(n,o){var i;if(!e||!t)return;if(null===(i=e.getTween())||void 0===i?void 0:i.isRunning())return;const l=null==e?void 0:e.getOptions().classes.slide;if(!l)return;const s=l?o.target.closest(".".concat(l)):null;
2if(s){const e=parseInt(s.getAttribute("index")||"")||0,n=t.getPageIndex(e);t.goTo(n)}}function c(t){e&&r(0,t)}function u(){var n;if(e&&t){const o=e.getPageIndex((null===(n=t.getPage())||void 0===n?void 0:n.slides[0].index)||0);o>-1&&e.goTo(o,{tween:!1,transition:!1}),f()}}function d(n,o){e&&t&&(e.filter(o),s())}function f(){var n,o,i;if(!t)return;const l=(null===(o=null===(n=t.getPage())||void 0===n?void 0:n.slides[0])||void 0===o?void 0:o.index)||0;for(const t of(null==e?void 0:e.getSlides())||[])null===(i=t.el)||void 0===i||i.classList.toggle("is-selected",t.index===l)}return{init:function(t){e=t,e.on("initSlides",o)},destroy:function(){var n;null==e||e.off("ready",i),null==e||e.off("refresh",u),null==e||e.off("change",l),null==e||e.off("click",r),null===(n=null==e?void 0:e.getViewport())||void 0===n||n.removeEventListener("mouseover",c),null==t||t.off("change",s),null==t||t.off("filter",d),t=void 0,null==e||e.off("initSlides",o),e=void 0},getTarget:function(){return t}}},ue={showLoading:!0,preload:1},de="is-lazyloading",fe="is-lazyloaded",ge="has-lazyerror",ve=()=>{let e;function t(){const t=null==e?void 0:e.getOptions().Lazyload;return a(t)?Object.assign(Object.assign({},ue),t):ue}function n(n){var o;const i=n.el;if(!i)return;const l="[data-lazy-src],[data-lazy-srcset],[data-lazy-bg]",s=Array.from(i.querySelectorAll(l));i.matches(l)&&s.push(i);for(const r of s){const i=r.dataset.lazySrc,l=r.dataset.lazySrcset,s=r.dataset.lazySizes,a=r.dataset.lazyBg,c=(r instanceof HTMLImageElement||r instanceof HTMLSourceElement)&&(i||l),u=r instanceof HTMLElement&&a;if(!c&&!u)continue;const d=i||l||a;if(d){if(c&&d){const a=null===(o=r.parentElement)||void 0===o?void 0:o.classList.contains("f-panzoom__wrapper");t().showLoading&&(null==e||e.showLoading(n)),r.addEventListener("load",()=>{null==e||e.hideLoading(n),k(r,ge),r instanceof HTMLImageElement?r.decode().then(()=>{k(r,de),z(r,fe)}).catch(()=>{k(r,de),z(r,fe)}):(k(r,de),z(r,fe)),a||null==e||e.emit("lazyLoad:loaded",n,r,d)}),r.addEventListener("error",()=>{null==e||e.hideLoading(n),k(r,de),z(r,ge),a||null==e||e.emit("lazyLoad:error",n,r,d)}),r.classList.add("f-lazyload"),r.classList.add(de),a||null==e||e.emit("lazyLoad:load",n,r,d),i&&(r.src=i),l&&(r.srcset=l),s&&(r.sizes=s)}else u&&(document.body.contains(r)||(document.createElement("img").src=a),r.style.backgroundImage="url('".concat(a,"')"));delete r.dataset.lazySrc,delete r.dataset.lazySrcset,delete r.dataset.lazySizes,delete r.dataset.lazyBg}}}function o(){if(!e)return;const o=[...e.getVisibleSlides()],i=t().preload;if(i>0){const t=e.getPosition(),n=e.getViewportDim();o.push(...e.getVisibleSlides(t+n*i),...e.getVisibleSlides(t-n*i))}for(const e of o)n(e)}return{init:function(t){e=t,e.on("render",o)},destroy:function(){null==e||e.off("render",o),e=void 0}}},he='<svg width="24" height="24" viewBox="0 0 24 24" tabindex="-1">',pe="</svg>",me={prevTpl:he+'<path d="M15 3l-9 9 9 9"></path>'+pe,nextTpl:he+'<path d="M9 3l9 9-9 9"></path>'+pe},ye=()=>{let e,t,n;function o(){const t=null==e?void 0:e.getOptions().Arrows;return a(t)?Object.assign(Object.assign({},me),t):me}function i(t){if(!e)return;const n="<button data-carousel-go-".concat(t,' tabindex="0" class="f-button is-arrow is-').concat(t,'" title="{{').concat(t.toUpperCase(),'}}">')+o()["".concat(t,"Tpl")]+"</button",i=s(e.localize(n))||void 0;return i&&z(i,o()["".concat(t,"Class")]),i}function l(){var o;null==t||t.remove(),t=void 0,null==n||n.remove(),n=void 0,null===(o=null==e?void 0:e.getContainer())||void 0===o||o.classList.remove("has-arrows")}function r(){e&&!1!==e.getOptions().Arrows&&e.getPages().length>1?(function(){if(!e)return;const o=e.getViewport();o&&(t||(t=i("prev"),t&&o.insertAdjacentElement("beforebegin",t)),n||(n=i("next"),n&&o.insertAdjacentElement("afterend",n)),I(e.getContainer(),"has-arrows",!(!t&&!n)))}(),e&&(null==t||t.toggleAttribute("aria-disabled",!e.canGoPrev()),null==n||n.toggleAttribute("aria-disabled",!e.canGoNext()))):l()}return{init:function(t){e=t.on(["change","refresh"],r)},destroy:function(){l(),null==e||e.off(["change","refresh"],r),e=void 0}}},be='<circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/>',Ee='<g>
2<line x1="11" y1="8" x2="11" y2="14"></line></g>'+be,we={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",be],zoomIn:["zoomIn","ZOOM_IN",Ee],toggleFull:["toggleFull","TOGGLE_FULL",Ee],iterateZoom:["iterateZoom","ITERATE_ZOOM",Ee],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>']},xe={};for(const[ht,pt]of Object.entries(we))xe[ht]={tpl:'<button data-panzoom-action="'.concat(pt[0],'" class="f-button" title="{{').concat(pt[1],'}}"><svg>').concat(pt[2],"</svg></button>")};var Me;!function(e){e.Left="left",e.middle="middle",e.right="right"}(Me||(Me={}));const Se=Object.assign({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>'}},xe),Oe={absolute:!1,display:{left:[],middle:["zoomIn","zoomOut","toggle1to1","rotateCCW","rotateCW","flipX","flipY","reset"],right:[]},enabled:"auto",items:{}},Le=()=>{let e,t;function n(t){const n=null==e?void 0:e.getOptions().Toolbar;let o=(a(n)?Object.assign(Object.assign({},Oe),n):Oe)[t];return o&&"function"==typeof o&&e?o(e):o}function i(){var i;if(!(null==e?void 0:e.getOptions().Toolbar))return;if(!e||t)return;const l=e.getContainer();if(!l)return;let r=n("enabled");if(!r)return;const c=n("absolute"),u=e.getSlides().length>1;let d=!1,f=!1;for(const t of e.getSlides())t.panzoomRef&&(d=!0),(t.downloadSrc||"image"===t.type&&t.src)&&(f=!0);const g=(null===(i=e.getPlugins().Thumbs)||void 0===i?void 0:i.isEnabled())||!1,v=u&&e.getPlugins().Autoplay||!1,h=e.getPlugins().Fullscreen&&(document.fullscreenEnabled||document.webkitFullscreenEnabled);if("auto"===r&&(r=d),!r)return;t=l.querySelector(".f-carousel__toolbar")||void 0,t||(t=document.createElement("div"),z(t,"f-carousel__toolbar"));const p=n("display"),m=U({},Se,n("items"));for(const n of["left","middle","right"]){const i=p[n]||[],l=document.createElement("div");z(l,"f-carousel__toolbar__column is-".concat(n));for(const t of i){let n;if(o(t)){if("counter"===t&&!u)continue;if("autoplay"===t&&!v)continue;if(xe[t]&&!d)continue;if("fullscreen"===t&&!h)continue;if("thumbs"===t&&!g)continue;if("download"===t&&!f)continue;n=m[t]}if(a(t)&&(n=t),n&&n.tpl){let t=e.localize(n.tpl);t=t.split("<svg>").join('<svg tabindex="-1" width="24" height="24" viewBox="0 0 24 24">');const o=s(t);o&&("function"==typeof n.click&&e&&o.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),"function"==typeof n.click&&e&&n.click(e,t)}),l.append(o))}}t.append(l)}if(t.childElementCount){if(c&&z(t,"is-absolute"),!t.parentElement){const e=n("parentEl");
2e?e.insertAdjacentElement("afterbegin",t):l.insertAdjacentElement("afterbegin",t)}l.contains(t)&&(z(l,"has-toolbar"),c&&z(l,"has-absolute-toolbar"))}}return{init:function(t){e=t,null==e||e.on("initSlides",i)},destroy:function(){null==e||e.off("initSlides",i),k(null==e?void 0:e.getContainer(),"has-toolbar has-absolute-toolbar"),null==t||t.remove(),t=void 0},add:function(e,t){Se[e]=t},isEnabled:function(){return!!t}}},Te={autoStart:!0,pauseOnHover:!0,showProgressbar:!0,timeout:2e3},Ae=()=>{let e,t,n=!1,o=!1,i=!1,l=null;function s(t){const n=null==e?void 0:e.getOptions().Autoplay;let o=(a(n)?Object.assign(Object.assign({},Te),n):Te)[t];return o&&"function"==typeof o&&e?o(e):o}function r(){clearTimeout(t),t=void 0}function c(){if(!e||!n||i||o||t||!e.isSettled()||function(){var t;const n=(null===(t=null==e?void 0:e.getPage())||void 0===t?void 0:t.slides)||[];for(const e of n)if(0===e.state)return!0;return!1}())return;!function(){var t,n,o,i;if(!e)return;if(f(),!s("showProgressbar"))return;let r=s("progressbarParentEl");if(!r&&(null===(t=e.getPlugins().Toolbar)||void 0===t?void 0:t.isEnabled())&&(r=e.getContainer()),!r&&!0!==(null===(n=e.getPlugins().Toolbar)||void 0===n?void 0:n.isEnabled())){const t=(null===(o=e.getPages()[0])||void 0===o?void 0:o.slides)||[],n=(null===(i=e.getPage())||void 0===i?void 0:i.slides)||[];1===t.length&&1===n.length&&(r=n[0].el)}if(r||(r=e.getViewport()),!r)return;l=document.createElement("div"),z(l,"f-progressbar"),r.prepend(l);const a=s("timeout")||1e3;l.style.animationDuration="".concat(a,"ms")}();const r=s("timeout");t=setTimeout(()=>{e&&n&&!o&&(e.isInfinite()||e.getPageIndex()!==e.getPages().length-1?e.next():e.goTo(0))},r)}function u(){var t;if(!e||e.getPages().length<2||!1===e.getOptions().Autoplay)return;if(n)return;n=!0,e.emit("autoplay:start",s("timeout")),z(e.getContainer(),"has-autoplay"),null===(t=e.getTween())||void 0===t||t.on("start",y);const o=null==e?void 0:e.getContainer();o&&s("pauseOnHover")&&matchMedia("(hover: hover)").matches&&(o.addEventListener("mouseenter",b,!1),o.addEventListener("mouseleave",E,!1)),e.on("change",p),e.on("settle",m),e.on("contentReady",v),e.on("panzoom:touchStart",d),e.on("panzoom:wheel",d),e.isSettled()&&c()}function d(){var t;if(r(),f(),e){if(n){e.emit("autoplay:end"),null===(t=e.getTween())||void 0===t||t.off("start",y);const n=e.getContainer();n&&(n.classList.remove("has-autoplay"),n.removeEventListener("mouseenter",b,!1),n.removeEventListener("mouseleave",E,!1))}e.off("change",p),e.off("settle",m),e.off("contentReady",v),e.off("panzoom:touchStart",d),e.off("panzoom:wheel",d)}n=!1,o=!1}function f(){l&&(l.remove(),l=null)}function g(){e&&e.getPages().length>1&&s("autoStart")&&u()}function v(){c()}function h(e,t){const n=t.target;n&&!t.defaultPrevented&&"toggle"===n.dataset.autoplayAction&&w.toggle()}function p(){!e||!(null==e?void 0:e.isInfinite())&&e.getPageIndex()===e.getPages().length-1?d():(f(),r())}function m(){c()}function y(){r(),f()}function b(){i=!0,n&&(f(),r())}function E(){i=!1,n&&!o&&(null==e?void 0:e.isSettled())&&c()}const w={init:function(t){e=t,e.on("ready",g),e.on("click",h)},destroy:function(){d(),null==e||e.off("ready",g),null==e||e.off("click",h),e=void 0},isEnabled:()=>n,pause:function(){o=!0,r()},resume:function(){o=!1,n&&!i&&c()},start(){u()},stop(){d()},toggle(){n?d():u()}};return w},Pe={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"};let Re;const Ce=()=>{let e,t,n,o,i,l=0,c=0,u=!0;function d(t){const n=null==e?void 0:e.getOptions().Thumbs;let o=(a(n)?Object.assign(Object.assign({},Pe),n):Pe)[t];return o&&"function"==typeof o&&e?o(e):o}function f(){if(!e)return!1;if(!1===(null==e?void 0:e.getOptions().Thumbs))return!1;let t=0;for(const n of e.getSlides())n.thumbSrc&&t++;return t>=d("minCount")}function g(){return"modern"===d("type")}function v(){return"scrollable"===d("type")}function h(){const t=[],n=(null==e?void 0:e.getSlides())||[];for(const e of n)t.push({index:e.index,class:e.thumbClass,html:p(e)});return t}function p(e){const t=e.thumb?e.thumb instanceof HTMLImageElement?e.thumb.src:e.thumb:e.thumbSrc||void 0,n=void 0===e.thumbAlt?"Thumbnail #".concat((e.index||0)+1):e.thumbAlt+"";let o=d("thumbTpl");return o=le(o,"{{alt}}",n),o=le(o,"{{src}}",t+""),o=le(o,"{{index}}","".concat(e.index||0)),o=le(o,"{{page}}","".concat((e.index||0)+1)),o}function m(e){return'<div index="'.concat(e.index||0,'" class="f-thumbs__slide ').concat(e.class||"",'">').concat(e.html||"","</div>")}function y(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var o;const i=null==e?void 0:e.getContainer();if(!e||!i||n||!f())return;const l=(null===(o=d("Carousel"))||void 0===o?void 0:o.classes)||{};if(l.container=l.container||"f-thumbs",!n){const e=i.nextElementSibling;(null==e?void 0:e.classList.contains(l.container))&&(n=e)}if(!n){n=document.createElement("div");const e=d("parentEl");
2e?e.insertAdjacentElement("beforeend",n):i.insertAdjacentElement("afterend",n)}z(n,l.container),z(n,"f-thumbs"),z(n,"is-".concat(d("type"))),t&&z(n,"is-hidden")}function b(){if(!n||!v())return;o=document.createElement("div"),z(o,"f-thumbs__viewport");let t="";for(const e of h())"string"==typeof(e.html||"")&&(t+=m(e));o.innerHTML=t,n.append(o),n.addEventListener("click",t=>{t.preventDefault();const n=t.target.closest("[index]"),o=parseInt((null==n?void 0:n.getAttribute("index"))||"-1");e&&o>-1&&e.goTo(o)}),i=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&e.target instanceof HTMLImageElement&&(e.target.src=e.target.getAttribute("data-lazy-src")+"",e.target.removeAttribute("data-lazy-src"),null==i||i.unobserve(e.target))})},{root:o,rootMargin:"100px"}),n.querySelectorAll("[data-lazy-src]").forEach(e=>{null==i||i.observe(e)}),null==e||e.emit("thumbs:ready")}function E(){var o;if(!Re||!e||!n||v()||t)return;const i=h();if(!i.length)return;const s=U({},{Sync:{target:e},Lazyload:{preload:1},slides:i,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",slide:"f-thumbs__slide"},center:!0,fill:!g(),infinite:!1,dragFree:!0,rtl:e.getOptions().rtl||!1,slidesPerPage:e=>{let t=0;return g()&&(function(){if(!g())return;if(!n)return;const e=e=>n&&parseFloat(getComputedStyle(n).getPropertyValue("--f-thumb-"+e))||0;l=e("width"),c=e("clip-width")}(),t=4*(l-c)),e&&e.getTotalSlideDim()<=e.getViewportDim()-t?1/0:1}},Pe.Carousel||{},d("Carousel")||{});t=Re(n,s,{Sync:ce,Lazyload:ve}),t.on("ready",()=>{z(n,"is-syncing"),null==e||e.emit("thumbs:ready"),g()&&(null==e||e.on("render",S))}),t.on("destroy",()=>{null==e||e.emit("thumbs:destroy")}),t.init(),null===(o=t.getGestures())||void 0===o||o.on("start",()=>{u=!1}),t.on("click",(e,t)=>{const n=t.target;if(n){const e=n.matches("button")?n:n.firstElementChild;e&&e.matches("button")&&(t.preventDefault(),e.focus({preventScroll:!0}))}}),z(e.getContainer(),"has-thumbs"),C()}function w(){f()&&d("showOnStart")&&(y(),b())}function x(){var t;f()&&(E(),null==e||e.on("addSlide",L),null==e||e.on("removeSlide",T),null==e||e.on("click",A),null==e||e.on("refresh",P),null===(t=null==e?void 0:e.getGestures())||void 0===t||t.on("start",M),R(!0))}function M(){var e,t;u=!0,(null===(e=document.activeElement)||void 0===e?void 0:e.closest(".f-thumbs"))&&(null===(t=document.activeElement)||void 0===t||t.blur())}function S(){var o,i;null==n||n.classList.toggle("is-syncing",!1===(null==e?void 0:e.hasNavigated())||(null===(o=null==e?void 0:e.getTween())||void 0===o?void 0:o.isRunning())),C(),(null===(i=null==e?void 0:e.getGestures())||void 0===i?void 0:i.isPointerDown())&&function(){if(!g())return;if(!e||!t)return;if(!u)return;const n=t.getTween(),o=t.getPages(),i=e.getPageIndex()||0,s=e.getPageProgress()||0;if(!(e&&o&&o[i]&&n))return;const a=n.isRunning()?n.getCurrentValues().pos:t.getPosition();if(void 0===a)return;let d=o[i].pos+s*(l-c);d=r(o[0].pos,d,o[o.length-1].pos),n.from({pos:a}).to({pos:d}).start()}()}function O(){u=!0,R()}function L(e,n){const l={html:p(n)};if(t)t.add(l,n.index);else if(o){const e=s(m(l));if(e){o.append(e);const t=e.querySelector("img");t&&(null==i||i.observe(t))}}}function T(e,n){var i;t?t.remove(n.index):o&&(null===(i=o.querySelector('[index="'.concat(n.index,'"]')))||void 0===i||i.remove())}function A(e,t){var o;const i=t.target;t.defaultPrevented||"toggle"!==(null===(o=null==i?void 0:i.dataset)||void 0===o?void 0:o.thumbsAction)||(n||(y(!0),b(),E()),n&&n.classList.toggle("is-hidden"))}function P(){R()}function R(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!e||!o||!v())return;const n=e.getPageIndex();o.querySelectorAll(".is-selected").forEach(e=>{e.classList.remove("is-selected")});const i=o.querySelector('[index="'.concat(n,'"]'));if(i){i.classList.add("is-selected");const e=o.getBoundingClientRect(),n=i.getBoundingClientRect(),l=i.offsetTop-o.offsetTop-.5*e.height+.5*n.height,s=i.scrollLeft-o.scrollLeft-.5*e.width+.5*n.width;o.scrollTo({top:l,left:s,behavior:t?"instant":"smooth"})}}function C(){if(!g())return;if(!e||!t)return;const n=(null==t?void 0:t.getSlides())||[];let o=-.5*l;for(const t of n){const n=t.el;if(!n)continue;let i=e.getPageProgress(t.index)||0;i=Math.max(-1,Math.min(1,i)),i>-1&&i<1&&(o+=.5*l*(1-Math.abs(i))),i=Math.round(1e4*i)/1e4,o=Math.round(1e4*o)/1e4,n.style.setProperty("--progress","".concat(Math.abs(i))),n.style.setProperty("--shift","".concat((null==e?void 0:e.isRTL())?-1*o:o,"px")),i>-1&&i<1&&(o+=.5*l*(1-Math.abs(i)))}}return{init:function(t,n){Re=n,e=t,e.on("ready",x),e.on("initSlides",w),e.on("change",O)},destroy:function(){var o,i;v()&&(null==e||e.emit("thumbs:destroy")),null==e||e.off("ready",x),null==e||e.off("initSlides",w),null==e||e.off("change",O),null==e||e.off("render",S),null==e||e.off("addSlide",L),null==e||e.off("click",A),null==e||e.off("refresh",P),null===(o=null==e?void 0:e.getGestures())||void 0===o||o.off("start",M),null===(i=null==e?void 0:e.getContainer())||void 0===i||i.classList.remove("has-thumbs"),e=void 0,null==t||t.destroy(),t=void 0,null==n||n.remove(),n=void 0},getCarousel:function(){return t},getContainer:function(){return n},getType:function(){return d("type")},isEnabled:f}},je={autosize:!1,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"},preload:!1},ze=()=>{let e;function t(){const t=null==e?void 0:e.getOptions().Html;return a(t)?Object.assign(Object.assign({},je),t):je}function n(e,n){let o=e[n];return void 0===o&&(o=t()[n]),"true"===o||"false"!==o&&o}function i(e,t){let n=t.type,i=t.src;if(!n&&o(i)){if("#"===i.charAt(0)?n="inline":i.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.((a)?png|avif|gif|jp(g|eg)|pjp(eg)?|jfif|svg|webp|bmp|
2ico|tif(f)?)((\?|#).*)?$)/i)?n="image":i.match(/\.(pdf)((\?|#).*)?$/i)?n="pdf":i.match(/\.(html|php)((\?|#).*)?$/i)&&(n="iframe"),!n){const e=i.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i);e&&(i="https://maps.google.".concat(e[1],"/?ll=").concat((e[2]?e[2]+"&z="+Math.floor(parseFloat(e[3]))+(e[4]?e[4].replace(/^\//,"&"):""):e[4]+"").replace(/\?/,"&"),"&output=").concat(e[4]&&e[4].indexOf("layer=c")>0?"svembed":"embed"),n="gmap")}if(!n){const e=i.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i);e&&(i="https://maps.google.".concat(e[1],"/maps?q=").concat(e[2].replace("query=","q=").replace("api=1",""),"&output=embed"),n="gmap")}n&&(t.src=i,t.type=n)}}function l(o,i){"iframe"!==i.type&&"pdf"!==i.type&&"gmap"!==i.type||function(o){const i=o.el,l=o.src;if(!e||!i||!l)return;const s=document.createElement("iframe");z(s,"f-iframe");for(const[e,n]of Object.entries(t().iframeAttr||{}))s.setAttribute(e,n);s.onerror=()=>{o.state=2,null==e||e.showError(o,"{{IFRAME_ERROR}}")};const r=document.createElement("div");if(z(r,"f-html"),r.append(s),o.width){let e="".concat(o.width);e.match(/^\d+$/)&&(e+="px"),r.style.maxWidth="".concat(e)}if(o.height){let e="".concat(o.height);e.match(/^\d+$/)&&(e+="px"),r.style.maxHeight="".concat(e)}if(o.aspectRatio){const e=i.getBoundingClientRect();r.style.aspectRatio="".concat(o.aspectRatio),r.style[e.width>e.height?"width":"height"]="auto",r.style[e.width>e.height?"maxWidth":"maxHeight"]="none"}o.htmlEl=r,o.contentEl=s,z(i,"has-html has-iframe has-".concat(o.type)),i.prepend(r);const a=n(o,"preload"),c=n(o,"autosize");"iframe"===o.type&&(a||c)?(o.state=0,e.showLoading(o),z(i,"is-loading"),s.onload=()=>{if(!e||1!==e.getState()||!s.src.length)return;o.state=1;const t="true"!==s.dataset.ready;s.dataset.ready="true",function(e){const t=e.contentEl,o=null==t?void 0:t.parentElement,i=null==o?void 0:o.style;let l=n(e,"autosize"),s=e.width||0,r=e.height||0;if(s&&r&&(l=!1),t&&o&&i&&l){try{const e=window.getComputedStyle(o),n=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),l=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),a=t.contentWindow;if(a){const e=a.document,t=e.getElementsByTagName("html")[0],o=e.body;i.width="";const c=window.getComputedStyle(o),u=parseFloat(c.marginLeft)+parseFloat(c.marginRight),d=o.style.overflow||"";o.style.overflow="hidden",s=s||o.scrollWidth+u+n,i.flex="0 0 auto",i.width="".concat(s,"px"),i.height="".concat(o.scrollHeight,"px"),o.style.overflow=d,r=Math.max(t.scrollHeight,Math.ceil(t.getBoundingClientRect().height))+l}}catch(e){}if(s||r){const e={flex:"0 1 auto",width:"",height:""};s&&"auto"!==s&&(e.width="".concat(s,"px")),r&&"auto"!==r&&(e.height="".concat(r,"px")),Object.assign(i,e)}}}(o),e.hideLoading(o),t&&e.emit("contentReady",o),k(i,"is-loading")},s.src="".concat(l)):(s.src="".concat(l),e.emit("contentReady",o))}(i)}function s(t,n){var o,i;"iframe"!==n.type&&"pdf"!==n.type&&"gmap"!==n.type||(null==e||e.hideError(n),null===(o=n.contentEl)||void 0===o||o.remove(),n.contentEl=void 0,null===(i=n.htmlEl)||void 0===i||i.remove(),n.htmlEl=void 0)}return{init:function(t){e=t,e.on("addSlide",i),e.on("attachSlideEl",l),e.on("detachSlideEl",s)},destroy:function(){null==e||e.off("addSlide",i),null==e||e.off("attachSlideEl",l),null==e||e.off("detachSlideEl",s),e=void 0}}},ke=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new URL(e),o=new URLSearchParams(n.search),i=new URLSearchParams;for(const[r,a]of[...o,...Object.entries(t)]){let e=a+"";if("t"===r){let t=e.match(/((\d*)m)?(\d*)s?/);t&&i.set("start",60*parseInt(t[2]||"0")+parseInt(t[3]||"0")+"")}else i.set(r,e)}let l=i+"",s=e.match(/#t=((.*)?\d+s)/);return s&&(l+="#t=".concat(s[1])),l},Ie={autoplay:!1,html5videoTpl:'<video class="f-html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">\n <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos.</video>',iframeAttr:{allow:"autoplay;
2 fullscreen",scrolling:"no",referrerPolicy:"strict-origin-when-cross-origin",credentialless:""},vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}},Fe=()=>{let e,t=!1;function n(){const t=null==e?void 0:e.getOptions().Video;return a(t)?Object.assign(Object.assign({},Ie),t):Ie}function i(){var t;return null===(t=null==e?void 0:e.getPage())||void 0===t?void 0:t.slides[0]}const l=t=>{var n;try{let o=JSON.parse(t.data);if("https://player.vimeo.com"===t.origin){if("ready"===o.event)for(let i of Array.from((null===(n=null==e?void 0:e.getContainer())||void 0===n?void 0:n.getElementsByClassName("f-iframe"))||[]))i instanceof HTMLIFrameElement&&i.contentWindow===t.source&&(i.dataset.ready="true")}else if(t.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&"onReady"===o.event){const e=document.getElementById(o.id);e&&(e.dataset.ready="true")}}catch(t){}};function r(e,t){const i=t.src;if(!o(i))return;let l=t.type;if(!l||"html5video"===l){const e=i.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i);e&&(l="html5video",t.html5videoFormat=t.html5videoFormat||"video/"+("ogv"===e[1]?"ogg":e[1]))}if(!l||"youtube"===l){const e=i.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i);if(e){const o=Object.assign(Object.assign({},n().youtube),t.youtube||{}),s="www.youtube".concat(o.nocookie?"-nocookie":"",".com"),r=ke(i,o),a=encodeURIComponent(e[2]);t.videoId=a,t.src="https://".concat(s,"/embed/").concat(a,"?").concat(r),t.thumb=t.thumb||"https://i.ytimg.com/vi/".concat(a,"/mqdefault.jpg"),l="youtube"}}if(!l||"vimeo"===l){const e=i.match(/^.+vimeo.com\/(?:\/)?(video\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/);if(e){const o=Object.assign(Object.assign({},n().vimeo),t.vimeo||{}),s=ke(i,o),r=encodeURIComponent(e[2]),a=e[5]||"";t.videoId=r,t.src="https://player.vimeo.com/video/".concat(r,"?").concat(a?"h=".concat(a).concat(s?"&":""):"").concat(s),l="vimeo"}}t.type=l}function c(t,i){"html5video"===i.type&&function(t){const i=t.el,l=t.src;if(!e||!i||!l)return;const r=t.html5videoTpl||n().html5videoTpl,a=t.html5videoFormat||n().html5videoFormat;if(!r)return;const c=t.poster||(t.thumb&&o(t.thumb)?t.thumb:""),u=s(r.replace(/\{\{src\}\}/gi,l+"").replace(/\{\{format\}\}/gi,a||"").replace(/\{\{poster\}\}/gi,c+""));if(!u)return;const d=document.createElement("div");z(d,"f-html"),d.append(u),t.contentEl=u,t.htmlEl=d,z(i,"has-".concat(t.type)),i.prepend(d),g(t),e.emit("contentReady",t)}(i),"youtube"!==i.type&&"vimeo"!==i.type||function(t){const o=t.el,i=t.src;if(!e||!o||!i)return;const l=document.createElement("iframe");z(l,"f-iframe"),l.setAttribute("id","f-iframe_".concat(t.videoId));for(const[e,r]of Object.entries(n().iframeAttr||{}))l.setAttribute(e,r);"youtube"===t.type&&(l.onload=()=>{var t;1===(null==e?void 0:e.getState())&&(null===(t=l.contentWindow)||void 0===t||t.postMessage(JSON.stringify({event:"listening",id:l.getAttribute("id")}),"*"))}),l.onerror=()=>{null==e||e.showError(t,"{{IFRAME_ERROR}}")};const s=document.createElement("div");z(s,"f-html"),s.append(l),t.contentEl=l,t.htmlEl=s,z(o,"has-html has-iframe has-".concat(t.type)),l.src="".concat(t.src),o.prepend(s),g(t),e.emit("contentReady",t)}(i)}function u(e,t){var n,o;"html5video"!==t.type&&"youtube"!==t.type&&"vimeo"!==t.type||(null===(n=t.contentEl)||void 0===n||n.remove(),t.contentEl=void 0,null===(o=t.htmlEl)||void 0===o||o.remove(),t.htmlEl=void 0),t.poller&&clearTimeout(t.poller)}function d(){t=!1}function f(){if(t)return;t=!0;const e=i();(e&&void 0!==e.autoplay?e.autoplay:n().autoplay)&&(function(){var e;const t=i(),n=null==t?void 0:t.el;if(n&&"html5video"===(null==t?void 0:t.type))try{const e=n.querySelector("video");if(e){const t=e.play();void 0!==t&&t.then(()=>{}).catch(t=>{e.muted=!0,e.play()})}}catch(e){}const o=null==t?void 0:t.htmlEl;o instanceof HTMLIFrameElement&&(null===(e=o.contentWindow)||void 0===e||e.postMessage('{"event":"command","func":"stopVideo","args":""}',"*"))}(),function(){const e=i(),t=null==e?void 0:e.type;if(!(null==e?void 0:e.el)||"youtube"!==t&&"vimeo"!==t)return;const n=()=>
2{if(e.contentEl&&e.contentEl instanceof HTMLIFrameElement&&e.contentEl.contentWindow){let t;if("true"===e.contentEl.dataset.ready)return t="youtube"===e.type?{event:"command",func:"playVideo"}:{method:"play",value:"true"},t&&e.contentEl.contentWindow.postMessage(JSON.stringify(t),"*"),void(e.poller=void 0);"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){const t=null==e?void 0: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="".concat(e.width);n.match(/^\d+$/)&&(n+="px"),t.style.maxWidth="".concat(n)}if(e.height){let n="".concat(e.height);n.match(/^\d+$/)&&(n+="px"),t.style.maxHeight="".concat(n)}if(e.aspectRatio){const n=e.aspectRatio.split("/"),o=parseFloat(n[0].trim()),i=n[1]?parseFloat(n[1].trim()):0,l=o&&i?o/i:o;t.offsetHeight;const s=t.getBoundingClientRect(),r=l<(s.width||1)/(s.height||1);t.style.aspectRatio="".concat(e.aspectRatio),t.style.width=r?"auto":"",t.style.height=r?"":"auto"}}}function v(){g(i())}return{init:function(t){e=t,e.on("addSlide",r),e.on("attachSlideEl",c),e.on("detachSlideEl",u),e.on("ready",f),e.on("change",d),e.on("settle",f),e.on("refresh",v),window.addEventListener("message",l)},destroy:function(){null==e||e.off("addSlide",r),null==e||e.off("attachSlideEl",c),null==e||e.off("detachSlideEl",u),null==e||e.off("ready",f),null==e||e.off("change",d),null==e||e.off("settle",f),null==e||e.off("refresh",v),window.removeEventListener("message",l),e=void 0}}},_e={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>'},He="in-fullscreen-mode",De=()=>{let e;function t(t){const n=null==e?void 0:e.getOptions().Fullscreen;let o=(a(n)?Object.assign(Object.assign({},_e),n):_e)[t];return o&&"function"==typeof o&&e?o(e):o}function n(){var n;null===(n=null==e?void 0:e.getPlugins().Toolbar)||void 0===n||n.add("fullscreen",{tpl:t("btnTpl")})}function o(){if(t("autoStart")){const e=l();e&&r(e)}}function i(e,t){const n=t.target;n&&!t.defaultPrevented&&"toggle"===n.dataset.fullscreenAction&&u()}function l(){return t("el")||(null==e?void 0:e.getContainer())||void 0}function s(){const e=document;return e.fullscreenEnabled?!!e.fullscreenElement:!!e.webkitFullscreenEnabled&&!!e.webkitFullscreenElement}function r(e){const t=document;let n;return e||(e=t.documentElement),t.fullscreenEnabled?n=e.requestFullscreen():t.webkitFullscreenEnabled&&(n=e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)),n&&n.then(()=>{e.classList.add(He)}),n}function c(){const e=document;let t;return e.fullscreenEnabled?t=e.fullscreenElement&&e.exitFullscreen():e.webkitFullscreenEnabled&&(t=e.webkitFullscreenElement&&e.webkitExitFullscreen()),t&&t.then(()=>{var e;null===(e=l())||void 0===e||e.classList.remove(He)}),t}function u(){if(s())c();else{const e=l();e&&r(e)}}return{init:function(t){e=t,e.on("initPlugins",n),e.on("ready",o),e.on("click",i)},destroy:function(){null==e||e.off("initPlugins",n),null==e||e.off("ready",o),null==e||e.off("click",i)},exit:c,inFullscreen:s,request:r,toggle:u}};let Ve,qe,Ne=!1,Be=!1,We=!1,Ze=!1;const Ge=()=>{const 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{urlHash:e,urlSlug:t.join("-"),urlIndex:o}},Xe=()=>{const e=null==Ve?void 0:Ve.getInstance(),t=null==e?void 0:e.getState();return!(!e||0!==t&&1!==t)},Ye=()=>{if(!Ve)return;if(Xe())return;const{urlSlug:e,urlIndex:t}=Ge();if(!e)return;let n=document.querySelector('[data-slug="'.concat(e,'"]'));n&&Ve.fromTriggerEl(n),Xe()||(n=document.querySelectorAll('[data-fancybox="'.concat(e,'"]'))[t-1],n&&Ve.fromTriggerEl(n,{startIndex:t-1})),Xe()&&n&&!n.closest("[inert]")&&n.scrollIntoView({behavior:"instant",block:"center",inline:"center"})},Ue=e=>{const t=e.getOptions().Hash,n=e.getSlide();return n&&(n.slug||n.fancybox||(a(t)?t.slug:""))||""},$e=e=>{var t,n;const o=Ue(e),i=e.getSlide();if(!i||!o)return"";let l=parseInt(i.index+"",10)+1,s=i.slug?"#".concat(i.slug):"#".concat(o,"-").concat(l);return((null===(n=null===(t=e.getCarousel())||void 0===t?void 0:t.getPages())||void 0===n?void 0:n.length)||0)<2&&(s="#".concat(o)),s},Ke=()=>{if(!Ve)return;if(We)return;const e=null==Ve?void 0:Ve.getInstance(),t=null==e?void 0:e.getCarousel(),{urlSlug:n,urlIndex:o}=Ge(),i=null==e?void 0:e.getOptions().Hash;if(!1!==i){if(e&&1===e.getState()&&t){const l=t.getSlides();for(const e of l||[])if(e.slug===n||(e.fancybox===n||a(i)&&i.slug===n)&&e.index===o-1)return Be=!1,void t.goTo(e.index);Ze=!0,e.close(),Ze=!1}Ye()}},Je=()=>{Ve&&(qe=setTimeout(()=>{Ne=!0,Ye(),Ne=!1},300),window.addEventListener("hashchange",Ke,!1))};let Qe;function et(){history.scrollRestoration&&Qe&&(history.scrollRestoration=Qe,Qe=void 0)}const tt=()=>{let e,t="";function n(){var n;if(!e||!e.isTopMost()||!1===e.getOptions().Hash)return;if(Ne){const t=e.getOptions().sync;t&&t.goTo((null===(n=null==e?void 0:e.getCarousel())||void 0===n?void 0:n.getPageIndex())||0,{transition:!1,tween:!1})}const i=e.getCarousel();if(!i)return;if(!e.getSlide())return;const l=Ue(e);if(!l)return;const{urlHash:s,urlSlug:r}=Ge(),a=$e(e);s!==a&&(t=s),history.scrollRestoration&&!Qe&&(Qe=history.scrollRestoration,history.scrollRestoration="manual",window.addEventListener("beforeunload",et)),i.on("change",o);const c=l!==r;try{window.history[c?"pushState":"replaceState"]({},document.title,window.location.pathname+window.location.search+a),c&&(Be=!0)}catch(e){}}function o(){if(!e||!e.isTopMost()||!1===e.getOptions().Hash)return;if(!e.getSlide())return;if(!Ue(e))return;const t=$e(e);We=!0;try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+t)}catch(e){}We=!1}function i(){var n;if(e&&e.isTopMost()&&!1!==e.getOptions().Hash&&!Ze&&Ue(e)){We=!0;try{Be&&!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")}()&&"IFRAME"!==(null===(n=document.activeElement)||void 0===n?void 0:n.nodeName)?window.history.back():window.history.replaceState({},document.title,window.location.pathname+window.location.search+t)}catch(e){}We=!1}}return{init:function(t){clearTimeout(qe),e=t,e.on("ready",n),e.on("close",i)},destroy:function(){null==e||e.off("ready",n),null==e||e.off("close",i);const t=null==e?void 0:e.getCarousel();t&&t.off("change",o),e=void 0,(null==Ve?void 0:Ve.getInstance())||(et(),window.removeEventListener("beforeunload",et))}}};tt.getInfoFromURL=Ge,tt.startFromUrl=Ye,tt.setup=function(e){Ve||(Ve=e,ie()&&(/complete|interactive|loaded/.test(document.readyState)?Je():document.addEventListener("DOMContentLoaded",Je)))};const nt=Object.assign(Object.assign({},K),{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",NO_CAPTION:"No Caption",TOGGLE_SIDEBAR:"Toggle sidebar"}),ot='<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg tabindex="-1" width="24" height="24" viewBox="0 0 24 24">
2<path d="M19.286 4.714 4.714 19.286M4.714 4.714l14.572 14.572" /></svg></button>';Le().add("close",{tpl:ot});const it=e=>{e.cancelable&&e.preventDefault()},lt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;if(!e||!e.parentElement||!t)return void(n&&n());st(e);const 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),z(e,t)},st=e=>{e&&e.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:e}))};var rt;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Closing=2]="Closing",e[e.Destroyed=3]="Destroyed"}(rt||(rt={}));const at={ajax:null,backdropClick:"close",Carousel:{},closeButton:"auto",closeButtonTpl:ot,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:nt,mainClass:"",mainStyle:{},mainTpl:'<dialog class="fancybox__dialog">\n <div class="fancybox__container" tabindex="0" aria-label="{{MODAL}}">\n <div class="fancybox__backdrop"></div>\n <div class="fancybox__carousel"></div>\n </div>\n </dialog>',modal:!0,on:{},parentEl:void 0,placeFocusBack:!0,showClass:"f-zoomInUp",startIndex:0,sync:void 0,theme:"dark",triggerEl:void 0,triggerEvent:void 0,zoomEffect:!0},ct=new Map;let ut=0;const dt="with-fancybox";function ft(){for(const e of Object.values(vt.Plugins)){const t=e.setup;"function"==typeof t&&t(vt)}}function gt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,o,i;if(!(e&&e instanceof Element))return;let l,s,r,a,c={};for(const[p,m]of vt.openers)if(p.contains(e))for(const[t,n]of m){let o;if(t){for(const n of p.querySelectorAll(t))if(n.contains(e)){o=n;break}if(!o)continue}for(const[t,i]of n){let n=null;try{n=e.closest(t)}catch(e){}n&&(s=p,r=o,l=n,a=t,U(c,i||{}))}}if(!s||!a||!l)return;const u=U({},at,t,c,{triggerEl:l});let d=[].slice.call((r||s).querySelectorAll(a));const f=l.closest(".f-carousel"),g=null==f?void 0:f.carousel;if(g&&(!r||!f.contains(r))){const e=[];for(const t of null==g?void 0:g.getSlides()){const n=t.el;n&&(n.matches(a)?e.push(n):e.push(...[].slice.call(n.querySelectorAll(a))))}e.length&&(d=[...e],null===(n=g.getPlugins().Autoplay)||void 0===n||n.pause(),null===(o=g.getPlugins().Autoscroll)||void 0===o||o.pause(),u.sync=g)}if(!1===u.groupAll){const e=u.groupAttr,t=e&&l?l.getAttribute("".concat(e)):"";d=e&&t?d.filter(n=>n.getAttribute("".concat(e))===t):[l]}if(!d.length)return;null===(i=u.triggerEvent)||void 0===i||i.preventDefault();const v=vt.getInstance(),h=null==v?void 0:v.getState();if(v&&(h===rt.Init||h===rt.Ready)){const e=v.getOptions().triggerEl;if(e&&d.indexOf(e)>-1)return}return Object.assign({},u.Carousel||{}).rtl&&(d=d.reverse()),l&&void 0===t.startIndex&&(u.startIndex=d.indexOf(l)),vt.fromNodes(d,u)}const vt={Plugins:{Hash:tt},version:"6.1.13",openers:new Map,bind:function(e,t,n,i){if(!ie())return;let l=document.body,s=null,r="[data-fancybox]",a={};e instanceof Element&&(l=e),o(e)&&o(t)?(s=e,r=t):o(t)&&o(n)?(s=t,r=n):o(t)?r=t:o(e)&&(r=e),"object"==typeof t&&(a=t||{}),"object"==typeof n&&(a=n||{}),"object"==typeof i&&(a=i||{}),function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!(e&&e instanceof Element&&n))return;const i=vt.openers.get(e)||new Map,l=i.get(t)||new Map;l.set(n,o),i.set(t,l),vt.openers.set(e,i),1===i.size&&e.addEventListener("click",vt.fromEvent),ft()}(l,s,r,a)},close:function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if(e)for(const i of ct.values())i.close(...n);else{const e=vt.getInstance();e&&e.close(...n)}},destroy:function(){let e;for(;e=vt.getInstance();)e.destroy();for(const t of vt.openers.keys())t.removeEventListener("click",vt.fromEvent);vt.openers.clear()},fromEvent:function(e){if(e.defaultPrevented)return;if(e.button&&0!==e.button)return;if(e.ctrlKey||e.metaKey||e.shiftKey)return;let t=e.composedPath()[0];const n={triggerEvent:e};if(t.closest(".fancybox__container.is-hiding"))return it(e),void e.stopPropagation();const o=t.closest("[data-fancybox-delegate]")||void 0;if(o){const e=o.dataset.fancyboxDelegate||"",i=document.querySelectorAll('[data-fancybox="'.concat(e,'"]')),l=parseInt(o.dataset.fancyboxIndex||"",10)||0;t=i[l]||i[0],U(n,{delegateEl:o,startIndex:l})}return gt(t,n)},fromNodes:function(e,t){t=U({},at,t||{});const n=[],o=e=>e instanceof HTMLImageElement?e:e instanceof HTMLElement?e.querySelector("img:not([aria-hidden])"):void 0;for(const i of e){const l=i.dataset||{},s=t.delegateEl&&e.indexOf(i)===t.startIndex?t.delegateEl:void 0,r=o(s)||o(i)||void 0,a=l.src||i.getAttribute("href")||i.getAttribute("currentSrc")||i.getAttribute("src")||void 0,c=l.thumb||l.thumbSrc||(null==r?void 0:r.getAttribute("currentSrc"))||(null==r?void 0:r.getAttribute("src"))||(null==r?void 0:r.dataset.lazySrc)||void 0,u={src:a,alt:l.alt||(null==r?void 0:r.getAttribute("alt"))||void 0,thumbSrc:c,thumbEl:r,triggerEl:i,delegateEl:s};for(const e in l){let t=l[e]+"";t="false"!==t&&("true"===t||t),u[e]=t}n.push(u)}return vt.show(n,t)},fromSelector:function(e,t,n,i){if(!ie())return;
2let l=document.body,s=null,r="[data-fancybox]",a={};e instanceof Element&&(l=e),o(e)&&o(t)?(s=e,r=t):o(t)&&o(n)?(s=t,r=n):o(t)?r=t:o(e)&&(r=e),"object"==typeof t&&(a=t||{}),"object"==typeof n&&(a=n||{}),"object"==typeof i&&(a=i||{});for(const[o,c]of vt.openers)for(const[e,t]of c)for(const[n,i]of t)if(o===l&&e===s){const t=l.querySelector((e?"".concat(e," "):"")+r);if(t&&t.matches(n))return vt.fromTriggerEl(t,a)}},fromTriggerEl:gt,getCarousel:function(){var e;return(null===(e=vt.getInstance())||void 0===e?void 0:e.getCarousel())||void 0},getDefaults:function(){return at},getInstance:function(e){if(e){const t=ct.get(e);return t&&t.getState()!==rt.Destroyed?t:void 0}return Array.from(ct.values()).reverse().find(e=>{if(e.getState()!==rt.Destroyed)return e})||void 0},getSlide:function(){var e;return(null===(e=vt.getInstance())||void 0===e?void 0:e.getSlide())||void 0},show:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ft(),(()=>{let t,n,r,c,u,d,f,g=rt.Init,v=Object.assign({},at),h=-1,p={},m=[],E=!1,w=!0,x=0;function M(e){let t=v[e];for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return t&&"function"==typeof t?t(me,...o):t}function S(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=M("l10n")||{};e=String(e).replace(/\{\{(\w+)\}\}/g,(e,t)=>n[t]||e);for(let o=0;o<t.length;o++)e=e.split(t[o][0]).join(t[o][1]);return e.replace(/\{\{(.*?)\}\}/g,(e,t)=>t)}const O=new Map;function L(e){const t=[...O.get(e)||[]];for(const[l,s]of Object.entries(v.on||{}))(l===e||l.split(" ").indexOf(e)>-1)&&t.push(s);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];for(const l of t)l&&"function"==typeof l&&l(me,...o);"*"!==e&&L("*",e,...o)}function T(){k(n,"is-revealing");try{document.activeElement===t&&((null==n?void 0:n.querySelector("[autofocus]"))||n).focus()}catch(e){}}function A(e,t){var n;Y(t),B(),null===(n=t.el)||void 0===n||n.addEventListener("click",R),"inline"!==t.type&&"clone"!==t.type||function(e){if(!c||!e||!e.el)return;let t=null;if(o(e.src)){const n=e.src.split("#",2).pop();t=n?document.getElementById(n):null}if(t){if(z(t,"f-html"),"clone"===e.type||t.closest(".fancybox__carousel")){t=t.cloneNode(!0);const n=t.dataset.animationName;n&&(t.classList.remove(n),delete t.dataset.animationName);let o=t.getAttribute("id");o=o?"".concat(o,"--clone"):"clone-".concat(h,"-").concat(e.index),t.setAttribute("id",o)}else if(t.parentNode){const n=document.createElement("div");n.inert=!0,t.parentNode.insertBefore(n,t),e.placeholderEl=n}e.htmlEl=t,z(e.el,"has-html"),e.el.prepend(t),t.classList.remove("hidden"),"none"===t.style.display&&(t.style.display=""),"none"===getComputedStyle(t).getPropertyValue("display")&&(t.style.display=t.dataset.display||"flex"),null==c||c.emit("contentReady",e)}else null==c||c.showError(e,"{{ELEMENT_NOT_FOUND}}")}(t),"ajax"===t.type&&function(e){const t=e.el;if(!t)return;if(e.htmlEl||e.xhr)return;null==c||c.showLoading(e),e.state=0;const n=new XMLHttpRequest;n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE&&g===rt.Ready)if(null==c||c.hideLoading(e),e.state=1,200===n.status){let o=n.responseText+"",i=null,l=null;if(e.filter){const t=document.createElement("div");t.innerHTML=o,l=t.querySelector(e.filter+"")}l&&l instanceof HTMLElement?i=l:(i=document.createElement("div"),i.innerHTML=o),i.classList.add("f-html"),e.htmlEl=i,t.classList.add("has-html"),t.classList.add("has-ajax"),t.prepend(i),null==c||c.emit("contentReady",e)}else null==c||c.showError(e)};const o=M("ajax")||null;n.open(o?"POST":"GET",e.src+""),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.send(o),e.xhr=n}(t)}function P(e,t){var n;K(t),null===(n=t.el)||void 0===n||n.removeEventListener("click",R),"inline"!==t.type&&"clone"!==t.type||function(e){const 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 R(e){if(!Q())return;if(g!==rt.Ready)return it(e),void e.stopPropagation();if(e.defaultPrevented)return;if(!C.isClickAllowed())return;const t=e.composedPath()[0];t.closest(".fancybox__carousel")&&t.classList.contains("fancybox__slide")&&W(e)}function j(){w=!1,n&&c&&n.classList.remove("is-revealing"),B();const e=M("sync");if(c&&e){const t=e.getPageIndex(c.getPageIndex())||0;e.goTo(t,{transition:!1,tween:!1})}}function F(){var e;!function(){const e=null==c?void 0:c.getViewport();if(!M("dragToClose")||!c||!e)return;if(u=C(e).init(),!u)return;let t=!1,o=0,i=0,s={},r=1;function a(){var e,t;null==d||d.spring({clamp:!0,mass:1,tension:0===i?140:960,friction:17,restDelta:.1,restSpeed:.1,maxSpeed:1/0}).from({y:o}).to({y:i}).start();const n=(null===(e=null==c?void 0:c.getViewport())||void 0===e?void 0:e.getBoundingClientRect().height)||0,l=null===(t=ee())||void 0===t?void 0:t.panzoomRef;if(n&&l)if(0===i)l.execute(D.Reset);else{const e=$(Math.abs(o),0,.33*n,r,.77*r,!1);l.execute(D.ZoomTo,{scale:e})}}const f=e=>{var t;const n=e.srcEvent,o=n.target;return c&&!(b(n)&&(null===(t=n.touches)||void 0===t?void 0:t.length)>1)&&o&&!l(o)};d=y().on("step",t=>{if(n&&e&&g===rt.Ready){const i=e.getBoundingClientRect().height;o=Math.min(i,Math.max(-1*i,t.y));const l=$(Math.abs(o),0,.65*i,1,.2,!0);n.style.setProperty("--f-drag-opacity",l+""),n.style.setProperty("--f-drag-offset",o+"px")}}),u.on("start",function(){t||(null==d||d.pause(),i=o)}).on("panstart",e=>{var n,o;if(!t&&f(e)&&"y"===e.axis){it(e.srcEvent),t=!0,fe(),null===(n=null==c?void 0:c.getViewport())||void 0===n||n.classList.add("is-dragging");const i=null===(o=ee())||void 0===o?void 0:o.panzoomRef;if(i){r=i.getTransform().scale||1;const e=i.getOptions();s=Object.assign({},e),e.bounds=!1,e.gestures=!1}}else t=!1}).on("pan",function(e){t&&f(e)&&(it(e.srcEvent),e.srcEvent.stopPropagation(),"y"===e.axis&&(i+=e.deltaY,a()))}).on("end",e=>{var n,l,r;if(null===(n=null==c?void 0:c.getViewport())||void 0===n||n.classList.remove("is-dragging"),t){const t=null===(l=ee())||void 0===l?void 0:l.panzoomRef;if(t){null===(r=t.getTween())||void 0===r||r.end();const e=t.getOptions();
2e.bounds=s.bounds||!1,e.gestures=s.gestures||!1}f(e)&&"y"===e.axis&&(Math.abs(e.velocityY)>5||Math.abs(o)>50)&&ge(e.srcEvent,"f-throwOut"+(e.velocityY>0?"Down":"Up"))}t=!1,g===rt.Ready&&0!==o&&(i=0,a())})}(),document.body.addEventListener("click",X),document.body.addEventListener("keydown",G,{passive:!1,capture:!0}),B(),se();const t=M("sync");c&&t&&(null===(e=t.getTween())||void 0===e||e.start()),J(ee())}function _(){(null==c?void 0:c.canGoNext())?se():de()}function H(e,t){Y(t)}function V(e,t){Y(t),J(t)}function N(){var e;const t=null==c?void 0:c.getPlugins().Thumbs;I(n,"has-thumbs",(null==t?void 0:t.isEnabled())||!1),I(n,"has-vertical-thumbs",!!t&&("scrollable"===t.getType()||!0===(null===(e=t.getCarousel())||void 0===e?void 0:e.isVertical())))}function B(){if(n){const e=(null==c?void 0:c.getPages())||[],t=(null==c?void 0:c.getPageIndex())||0;for(const o of n.querySelectorAll("[data-fancybox-index]"))o.innerHTML=t+"";for(const o of n.querySelectorAll("[data-fancybox-page]"))o.innerHTML=t+1+"";for(const o of n.querySelectorAll("[data-fancybox-pages]"))o.innerHTML=e.length+""}}function W(e){e.composedPath()[0].closest("[data-fancybox-close]")?ge(e):(L("backdropClick",e),e.defaultPrevented||M("backdropClick")&&ge(e))}function Z(){ue()}function G(e){if(!Q())return;if(g!==rt.Ready)return;const t=e.key,n=M("keyboard");if(!n)return;if(e.ctrlKey||e.altKey||e.shiftKey)return;const o=e.composedPath()[0];if(!i(o))return;if("Escape"!==t&&(e=>{const t=["input","textarea","select","option","video","iframe","[contenteditable]","[data-selectable]","[data-draggable]"].join(",");return e.matches(t)||e.closest(t)})(o))return;if(L("keydown",e),e.defaultPrevented)return;const l=n[t];if(l)switch(l){case"close":ge(e);break;case"next":it(e),null==c||c.next();break;case"prev":it(e),null==c||c.prev()}}function X(e){if(!Q())return;if(g!==rt.Ready)return;if(ue(),e.defaultPrevented)return;const t=e.composedPath()[0],n=!!t.closest("[data-fancybox-close]"),o=t.classList.contains("fancybox__backdrop");(n||o)&&W(e)}function Y(e){var t;const{el:n,htmlEl:o,panzoomRef:i,closeButtonEl:l}=e,r=i?i.getWrapper():o;if(!n||!n.parentElement||!r)return;let a=M("closeButton");if("auto"===a&&(a=!0!==(null===(t=null==c?void 0:c.getPlugins().Toolbar)||void 0===t?void 0:t.isEnabled())),a){if(!l){const t=s(S(M("closeButtonTpl")));t&&(z(t,"is-close-button"),e.closeButtonEl=r.insertAdjacentElement("afterbegin",t),z(n,"has-close-btn"))}}else K(e)}function K(e){e.closeButtonEl&&(e.closeButtonEl.remove(),e.closeButtonEl=void 0),k(e.el,"has-close-btn")}function J(e){if(!(w&&c&&1===c.getState()&&e&&e.index===c.getOptions().initialPage&&e.el&&e.el.parentElement))return;if(void 0!==e.state&&1!==e.state)return;w=!1;const t=e.panzoomRef,n=null==t?void 0:t.getTween(),o=M("zoomEffect")&&n?ie(e):void 0;if(t&&n&&o){const{x:e,y:i,scale:l}=t.getStartPosition();return void n.spring({tension:215,friction:25,restDelta:.001,restSpeed:.001,maxSpeed:1/0}).from(o).to({x:e,y:i,scale:l}).start()}const i=(null==t?void 0:t.getContent())||e.htmlEl;i&<(i,M("showClass",e))}function Q(){var e;return(null===(e=vt.getInstance())||void 0===e?void 0:e.getId())===h}function ee(){var e;return null===(e=null==c?void 0:c.getPage())||void 0===e?void 0:e.slides[0]}function te(){const e=ee();return e?e.triggerEl||M("triggerEl"):void 0}function ie(e){var t,n;const o=e.thumbEl;if(!o||!(e=>{const t=e.getBoundingClientRect(),n=e.closest("[style]"),o=null==n?void 0:n.parentElement;if(n&&n.style.transform&&o){const e=o.getBoundingClientRect();if(t.left<e.left||t.left>e.left+e.width-t.width)return!1;if(t.top<e.top||t.top>e.top+e.height-t.height)return!1}const 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)})(o))return;const i=null===(n=null===(t=e.panzoomRef)||void 0===t?void 0:t.getWrapper())||void 0===n?void 0:n.getBoundingClientRect(),l=null==i?void 0:i.width,s=null==i?void 0:i.height;if(!l||!s)return;const r=o.getBoundingClientRect();let a=r.width,c=r.height,u=r.left,d=r.top;if(r&&a&&c){if(o instanceof HTMLImageElement){const e=window.getComputedStyle(o).getPropertyValue("object-fit");
2if("contain"===e||"scale-down"===e){const{width:t,height:n}=function(e,t,n,o){if("contain"===(arguments.length>4&&void 0!==arguments[4]?arguments[4]:"contain")||e>n||t>o){const i=n/e,l=o/t,s=Math.min(i,l);e*=s,t*=s}return{width:e,height:t}}(o.naturalWidth,o.naturalHeight,a,c,e);u+=.5*(a-t),d+=.5*(c-n),a=t,c=n}}if(!(Math.abs(l/s-a/c)>.1))return{x:u+.5*a-(i.left+.5*l),y:d+.5*c-(i.top+.5*s),scale:a/l}}}function le(){f&&clearTimeout(f),f=void 0,document.removeEventListener("mousemove",Z)}function se(){if(E)return;if(f)return;const e=M("idle");e&&(f=setTimeout(ae,e))}function ae(){n&&(le(),z(n,"is-idle"),document.addEventListener("mousemove",Z),E=!0)}function ue(){E&&(de(),se())}function de(){le(),null==n||n.classList.remove("is-idle"),E=!1}function fe(){const e=te();var t;!e||(t=e.getBoundingClientRect()).bottom>0&&t.right>0&&t.left<(window.innerWidth||document.documentElement.clientWidth)&&t.top<(window.innerHeight||document.documentElement.clientHeight)||e.closest("[inert]")||e.scrollIntoView({behavior:"instant",block:"center",inline:"center"})}function ge(e,t){var n,o,i,l,s;if(g===rt.Closing||g===rt.Destroyed)return;const r=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(L("shouldClose",r,e),r.defaultPrevented)return;if(le(),e){if(e.defaultPrevented)return;it(e),e.stopPropagation(),e.stopImmediatePropagation()}if(g=rt.Closing,null==d||d.pause(),null==u||u.destroy(),c){null===(n=c.getGestures())||void 0===n||n.destroy(),null===(o=c.getTween())||void 0===o||o.pause();for(const e of c.getSlides()){const t=e.panzoomRef;t&&(U(t.getOptions(),{clickAction:!1,dblClickAction:!1,wheelAction:!1,bounds:!1,minScale:0,maxScale:1/0}),null===(i=t.getGestures())||void 0===i||i.destroy(),null===(l=t.getTween())||void 0===l||l.pause())}}const a=null==c?void 0:c.getPlugins();null===(s=null==a?void 0:a.Autoplay)||void 0===s||s.stop();const f=null==a?void 0:a.Fullscreen;f&&f.inFullscreen()?Promise.resolve(f.exit()).then(()=>{setTimeout(()=>{he(e,t)},150)}):he(e,t)}function he(e,o){var i,l;if(g!==rt.Closing)return;L("close",e),w=!1,document.body.removeEventListener("click",X),document.body.removeEventListener("keydown",G,{passive:!1,capture:!0}),M("placeFocusBack")&&fe();const s=document.activeElement;s&&(null==t?void 0:t.contains(s))&&s.blur(),M("fadeEffect")&&(null==n||n.classList.remove("is-ready"),null==n||n.classList.add("is-hiding")),null==n||n.classList.add("is-closing");const r=ee(),a=null==r?void 0:r.el,u=null==r?void 0:r.panzoomRef,d=null===(i=null==r?void 0:r.panzoomRef)||void 0===i?void 0:i.getTween(),f=o||M("hideClass");let v=!1,h=!1;if(c&&r&&a&&u&&d){let e;if(M("zoomEffect")&&1===r.state&&(e=ie(r)),e){v=!0;const t=()=>{e=ie(r),e?d.to(Object.assign(Object.assign({},q),e)):pe()};u.on("refresh",()=>{t()}),d.easing(y.Easings.EaseOut).duration(350).from(Object.assign({},u.getTransform())).to(Object.assign(Object.assign({},q),e)).start(),(null==a?void 0:a.getAnimations())&&(a.style.animationPlayState="paused",requestAnimationFrame(()=>{t()}))}}const p=(null==r?void 0:r.htmlEl)||(null===(l=null==r?void 0:r.panzoomRef)||void 0===l?void 0:l.getWrapper());p&&st(p),!v&&f&&p&&(h=!0,lt(p,f,()=>{pe()})),v||h?setTimeout(()=>{pe()},350):pe()}function pe(){var e,o,i,l,s;if(g===rt.Destroyed)return;g=rt.Destroyed;const r=te();L("destroy"),null===(o=null===(e=M("sync"))||void 0===e?void 0:e.getPlugins().Autoplay)||void 0===o||o.resume(),null===(l=null===(i=M("sync"))||void 0===i?void 0:i.getPlugins().Autoscroll)||void 0===l||l.resume(),t instanceof HTMLDialogElement&&t.close(),null===(s=null==c?void 0:c.getContainer())||void 0===s||s.classList.remove("is-idle"),null==c||c.destroy();for(const t of Object.values(p))null==t||t.destroy();if(p={},null==t||t.remove(),t=void 0,n=void 0,c=void 0,ct.delete(h),!ct.size&&(oe(!1),document.documentElement.classList.remove(dt),M("placeFocusBack")&&r&&!r.closest("[inert]")))try{null==r||r.focus({preventScroll:!0})}catch(e){}}const me={close:ge,destroy:pe,getCarousel:function(){return c},getContainer:function(){return n},getId:function(){return h},getOptions:function(){return v},getPlugins:function(){return p},getSlide:function(){return ee()},getState:function(){return g},init:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};
2g!==rt.Init&&(me.destroy(),g=rt.Init),v=U({},at,o),h=M("id")||"fancybox-"+ ++ut;const i=ct.get(h);if(i&&i.destroy(),ct.set(h,me),L("init"),function(){for(const[e,t]of Object.entries(Object.assign(Object.assign({},vt.Plugins),v.plugins||{})))if(e&&!p[e]&&t instanceof Function){const n=t();n.init(me),p[e]=n}L("initPlugins")}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];L("initSlides",e),m=[...e]}(e),function(){const e=M("parentEl")||document.body;if(!(e&&e instanceof HTMLElement))return;const o=S(M("mainTpl")||"");if(t=s(o)||void 0,!t)return;if(n=t.querySelector(".fancybox__container"),!(n&&n instanceof HTMLElement))return;const i=M("mainClass");i&&z(n,i);const r=M("mainStyle");if(r&&a(r))for(const[t,l]of Object.entries(r))n.style.setProperty(t,l);const u=M("theme"),d="auto"===u?window.matchMedia("(prefers-color-scheme:light)").matches:"light"===u;n.setAttribute("theme",d?"light":"dark"),t.setAttribute("id","".concat(h)),t.addEventListener("keydown",e=>{"Escape"===e.key&&it(e)}),t.addEventListener("wheel",e=>{const t=e.target;let n=M("wheel",e);t.closest(".f-thumbs")&&(n="slide");const o="slide"===n,i=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce(function(e,t){return Math.abs(t)>Math.abs(e)?t:e}),s=Math.max(-1,Math.min(1,i)),r=Date.now();x&&r-x<300?o&&it(e):(x=r,L("wheel",e,s),e.defaultPrevented||("close"===n?ge(e):"slide"===n&&c&&!l(t)&&(it(e),c[s>0?"prev":"next"]())))},{capture:!0,passive:!1}),t.addEventListener("cancel",e=>{ge(e)}),e.append(t),1===ct.size&&(M("hideScrollbar")&&oe(!0),document.documentElement.classList.add(dt)),L("initLayout"),t instanceof HTMLDialogElement&&(M("modal")?t.showModal():t.show())}(),function(){if(r=(null==t?void 0:t.querySelector(".fancybox__carousel"))||void 0,!r)return;r.fancybox=me;const e=U({},{Autoplay:{autoStart:!1,pauseOnHover:!1,progressbarParentEl:e=>{const t=e.getContainer();return(null==t?void 0:t.querySelector(".f-carousel__toolbar [data-autoplay-action]"))||t}},Fullscreen:{el:n},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:ce,Arrows:ye,Lazyload:ve,Zoomable:re,Html:ze,Video:Fe,Autoplay:Ae,Fullscreen:De,Thumbs:Ce,Toolbar:Le}},M("Carousel")||{},{slides:m,enabled:!0,initialPage:M("startIndex")||0,l10n:M("l10n")});c=ne(r,e),L("initCarousel",c),c.on("*",function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];L("Carousel.".concat(t),e,...o)}),c.on("attachSlideEl",A),c.on("detachSlideEl",P),c.on("contentLoading",H),c.on("contentReady",V),c.on("ready",F),c.on("change",j),c.on("settle",_),c.on("thumbs:ready",N),c.on("thumbs:destroy",N),c.init()}(),t&&n){if(M("closeExisting"))for(const[e,t]of ct.entries())e!==h&&t.close();M("fadeEffect")?(setTimeout(()=>{T()},500),z(n,"is-revealing")):T(),n.classList.add("is-ready"),g=rt.Ready,L("ready")}},isCurrentSlide:function(e){const t=ee();return!(!e||!t)&&t.index===e.index},isTopMost:function(){return Q()},localize:S,off:function(e,t){return O.has(e)&&O.set(e,O.get(e).filter(e=>e!==t)),me},on:function(e,t){return O.set(e,[...O.get(e)||[],t]),me},toggleIdle(e){(E||!0===e)&&ae(),E&&!1!==e||de()}};return me})().init(e,t)},unbind:function(e,t,n){if(!ie())return;let i=document.body,l=null,s="[data-fancybox]";e instanceof Element&&(i=e),o(e)&&o(t)?(l=e,s=t):o(t)&&o(n)?(l=t,s=n):o(t)?s=t:o(e)&&(s=e),function(e,t,n){if(!(e&&e instanceof Element&&n))return;const o=vt.openers.get(e)||new Map,i=o.get(t)||new Map;i&&n&&i.delete(n),i.size&&n||o.delete(t),o.size||(vt.openers.delete(e),e.removeEventListener("click",vt.fromEvent))}(i,l,s)}}}}]); 3//# sourceMappingURL=450.6216c788.chunk.js.map
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.