PageSourceSearch

https://www.killstar.com/cdn/shop/t/1592/assets/fancybox-C3l7gAV7.js

js killstar.com collected 2026-09-25 05:28:29 UTC 107,962 bytes, 11 lines download raw bytes

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