PageSourceSearch

https://dreadxp.com/wp-content/plugins/lightbox-block-pro/build/view.js?ver=3ebc9e0d53348856c30b

js dreadxp.com collected 2026-10-02 05:42:14 UTC 232,271 bytes, 2 lines download raw bytes

1/*! For license information please see view.js.LICENSE.txt */
2(()=>{"use strict";var t,e,n={},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var s=i[t]={exports:{}};return n[t](s,s.exports,o),s.exports}o.m=n,o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.f={},o.e=t=>Promise.all(Object.keys(o.f).reduce((e,n)=>(o.f[n](t,e),e),[])),o.u=t=>(103===t?"lbb-pdf-viewer":t)+".js",o.miniCssF=t=>{},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t={},e="lightbox-block:",o.l=(n,i,s,a)=>{if(t[n])t[n].push(i);else{var r,l;if(void 0!==s)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var h=c[d];if(h.getAttribute("src")==n||h.getAttribute("data-webpack")==e+s){r=h;break}}r||(l=!0,(r=document.createElement("script")).charset="utf-8",r.timeout=120,o.nc&&r.setAttribute("nonce",o.nc),r.setAttribute("data-webpack",e+s),r.src=n),t[n]=[i];var u=(e,i)=>{r.onerror=r.onload=null,clearTimeout(m);var o=t[n];if(delete t[n],r.parentNode&&r.parentNode.removeChild(r),o&&o.forEach(t=>t(i)),e)return e(i)},m=setTimeout(u.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=u.bind(null,r.onerror),r.onload=u.bind(null,r.onload),l&&document.head.appendChild(r)}},o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;o.g.importScripts&&(t=o.g.location+"");var e=o.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var i=n.length-1;i>-1&&(!t||!/^http(s?):/.test(t));)t=n[i--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=t})(),(()=>{var t={552:0};o.f.j=(e,n)=>{var i=o.o(t,e)?t[e]:void 0;if(0!==i)if(i)n.push(i[2]);else{var s=new Promise((n,o)=>i=t[e]=[n,o]);n.push(i[2]=s);var a=o.p+o.u(e),r=new Error;o.l(a,n=>{if(o.o(t,e)&&(0!==(i=t[e])&&(t[e]=void 0),i)){var s=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;r.message="Loading chunk "+e+" failed.\n("+s+": "+a+")",r.name="ChunkLoadError",r.type=s,r.request=a,i[1](r)}},"chunk-"+e,e)}};var e=(e,n)=>{var i,s,[a,r,l]=n,c=0;if(a.some(e=>0!==t[e])){for(i in r)o.o(r,i)&&(o.m[i]=r[i]);l&&l(o)}for(e&&e(n);c<a.length;c++)s=a[c],o.o(t,s)&&t[s]&&t[s][0](),t[s]=0},n=globalThis.webpackChunklightbox_block=globalThis.webpackChunklightbox_block||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})();const s=window.React;var a=o.n(s);const r=window.ReactDOM,l=(t,e=1e4)=>(t=parseFloat(t+"")||0,Math.round((t+Number.EPSILON)*e)/e),c=function(t){if(!(t&&t instanceof Element&&t.offsetParent))return!1;const e=t.scrollHeight>t.clientHeight,n=window.getComputedStyle(t).overflowY,i=-1!==n.indexOf("hidden"),o=-1!==n.indexOf("visible");return e&&!i&&!o},d=function(t,e=void 0){return!(!t||t===document.body||e&&t===e)&&(c(t)?t:d(t.parentElement,e))},h=function(t){var e=(new DOMParser).parseFromString(t,"text/html").body;if(e.childElementCount>1){for(var n=document.createElement("div");e.firstChild;)n.appendChild(e.firstChild);return n}return e.firstChild},u=t=>`${t||""}`.split(" ").filter(t=>!!t),m=(t,e,n)=>{t&&u(e).forEach(e=>{t.classList.toggle(e,n||!1)})};class p{constructor(t){Object.defineProperty(this,"pageX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pageY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"time",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nativePointer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.nativePointer=t,this.pageX=t.pageX,this.pageY=t.pageY,this.clientX=t.clientX,this.clientY=t.clientY,this.id=self.Touch&&t instanceof Touch?t.identifier:-1,this.time=Date.now()}}const g={passive:!1};class f{constructor(t,{start:e=()=>!0,move:n=()=>{},end:i=()=>{}}){Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"startCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"moveCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"endCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"startPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.element=t,this.startCallback=e,this.moveCallback=n,this.endCallback=i;for(const t of["onPointerStart","onTouchStart","onMove","onTouchEnd","onPointerEnd","onWindowBlur"])this[t]=this[t].bind(this);this.element.addEventListener("mousedown",this.onPointerStart,g),this.element.addEventListener("touchstart",this.onTouchStart,g),this.element.addEventListener("touchmove",this.onMove,g),this.element.addEventListener("touchend",this.onTouchEnd),this.element.addEventListener("touchcancel",this.onTouchEnd)}onPointerStart(t){if(!t.buttons||0!==t.button)return;const e=new p(t);this.currentPointers.some(t=>t.id===e.id)||this.triggerPointerStart(e,t)&&(window.addEventListener("mousemove",this.onMove),window.addEventListener("mouseup",this.onPointerEnd),window.addEventListener("blur",this.onWindowBlur))}onTouchStart(t){for(const e of Array.from(t.changedTouches||[]))this.triggerPointerStart(new p(e),t);window.addEventListener("blur",this.onWindowBlur)}onMove(t){const e=this.currentPointers.slice(),n="changedTouches"in t?Array.from(t.changedTouches||[]).map(t=>new p(t)):[new p(t)],i=[];for(const t of n){const e=this.currentPointers.findIndex(e=>e.id===t.id);e<0||(i.push(t),this.currentPointers[e]=t)}i.length&&this.moveCallback(t,this.currentPointers.slice(),e)}onPointerEnd(t){t.buttons>0&&0!==t.button||(this.triggerPointerEnd(t,new p(t)),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur))}onTouchEnd(t){for(const e of Array.from(t.changedTouches||[]))this.triggerPointerEnd(t,new p(e))}triggerPointerStart(t,e){return!!this.startCallback(e,t,this.currentPointers.slice())&&(this.currentPointers.push(t),this.startPointers.push(t),!0)}triggerPointerEnd(t,e){const n=this.currentPointers.findIndex(t=>t.id===e.id);n<0||(this.currentPointers.splice(n,1),this.startPointers.splice(n,1),this.endCallback(t,e,this.currentPointers.slice()))}onWindowBlur(){this.clear()}clear(){for(;this.currentPointers.length;){const t=this.currentPointers[this.currentPointers.length-1];this.currentPointers.splice(this.currentPointers.length-1,1),this.startPointers.splice(this.currentPointers.length-1,1),this.endCallback(new Event("touchend",{bubbles:!0,cancelable:!0,clientX:t.clientX,clientY:t.clientY}),t,this.currentPointers.slice())}}stop(){this.element.removeEventListener("mousedown",this.onPointerStart,g),this.element.removeEventListener("touchstart",this.onTouchStart,g),this.element.removeEventListener("touchmove",this.onMove,g),this.element.removeEventListener("touchend",this.onTouchEnd),this.element.removeEventListener("touchcancel",this.onTouchEnd),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur)}}function b(t,e){return e?Math.sqrt(Math.pow(e.clientX-t.clientX,2)+Math.pow(e.clientY-t.clientY,2)):0}function v(t,e){return e?{clientX:(t.clientX+e.clientX)/2,clientY:(t.clientY+e.clientY)/2}:t}const y=t=>"object"==typeof t&&null!==t&&t.constructor===Object&&"[object Object]"===Object.prototype.toString.call(t),w=(t,...e)=>{const n=e.length;for(let i=0;i<n;i++){const n=e[i]||{};
vendor: 24,607 bytes, line 2
2Object.entries(n).forEach(([e,n])=>{const i=Array.isArray(n)?[]:{};t[e]||Object.assign(t,{[e]:i}),y(n)?Object.assign(t[e],w(i,n)):Array.isArray(n)?Object.assign(t,{[e]:[...n]}):Object.assign(t,{[e]:n})})}return t},x=function(t,e){return t.split(".").reduce((t,e)=>"object"==typeof t?t[e]:void 0,e)};class E{constructor(t={}){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.setOptions(t);for(const t of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))t.startsWith("on")&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}setOptions(t){this.options=t?w({},this.constructor.defaults,t):{};for(const[t,e]of Object.entries(this.option("on")||{}))this.on(t,e)}option(t,...e){let n=x(t,this.options);return n&&"function"==typeof n&&(n=n.call(this,this,...e)),n}optionFor(t,e,n,...i){let o=x(e,t);var s;"string"!=typeof(s=o)||isNaN(s)||isNaN(parseFloat(s))||(o=parseFloat(o)),"true"===o&&(o=!0),"false"===o&&(o=!1),o&&"function"==typeof o&&(o=o.call(this,this,t,...i));let a=x(e,this.options);return a&&"function"==typeof a?o=a.call(this,this,t,...i,o):void 0===o&&(o=a),void 0===o?n:o}cn(t){const e=this.options.classes;return e&&e[t]||""}localize(t,e=[]){t=String(t).replace(/\{\{(\w+).?(\w+)?\}\}/g,(t,e,n)=>{let i="";return n?i=this.option(`${e[0]+e.toLowerCase().substring(1)}.l10n.${n}`):e&&(i=this.option(`l10n.${e}`)),i||(i=t),i});for(let n=0;n<e.length;n++)t=t.split(e[n][0]).join(e[n][1]);return t.replace(/\{\{(.*?)\}\}/g,(t,e)=>e)}on(t,e){let n=[];"string"==typeof t?n=t.split(" "):Array.isArray(t)&&(n=t),this.events||(this.events=new Map),n.forEach(t=>{let n=this.events.get(t);n||(this.events.set(t,[]),n=[]),n.includes(e)||n.push(e),this.events.set(t,n)})}off(t,e){let n=[];"string"==typeof t?n=t.split(" "):Array.isArray(t)&&(n=t),n.forEach(t=>{const n=this.events.get(t);if(Array.isArray(n)){const t=n.indexOf(e);t>-1&&n.splice(t,1)}})}emit(t,...e){[...this.events.get(t)||[]].forEach(t=>t(this,...e)),"*"!==t&&this.emit("*",t,...e)}}Object.defineProperty(E,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(E,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});class C extends E{constructor(t={}){super(t),Object.defineProperty(this,"plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}})}attachPlugins(t={}){const e=new Map;for(const[n,i]of Object.entries(t)){const t=this.option(n),o=this.plugins[n];o||!1===t?o&&!1===t&&(o.detach(),delete this.plugins[n]):e.set(n,new i(this,t||{}))}for(const[t,n]of e)this.plugins[t]=n,n.attach()}detachPlugins(t){t=t||Object.keys(this.plugins);for(const e of t){const t=this.plugins[e];t&&t.detach(),delete this.plugins[e]}return this.emit("detachPlugins"),this}}var M;!function(t){t[t.Init=0]="Init",t[t.Error=1]="Error",t[t.Ready=2]="Ready",t[t.Panning=3]="Panning",t[t.Mousemove=4]="Mousemove",t[t.Destroy=5]="Destroy"}(M||(M={}));const P=["a","b","c","d","e","f"],S={PANUP:"Move up",PANDOWN:"Move down",PANLEFT:"Move left",PANRIGHT:"Move right",ZOOMIN:"Zoom in",ZOOMOUT:"Zoom out",TOGGLEZOOM:"Toggle zoom level",TOGGLE1TO1:"Toggle zoom level",ITERATEZOOM:"Toggle zoom level",ROTATECCW:"Rotate counterclockwise",ROTATECW:"Rotate clockwise",FLIPX:"Flip horizontally",FLIPY:"Flip vertically",FITX:"Fit horizontally",FITY:"Fit vertically",RESET:"Reset",TOGGLEFS:"Toggle fullscreen"},T={content:null,width:"auto",height:"auto",panMode:"drag",touch:!0,dragMinThreshold:3,lockAxis:!1,mouseMoveFactor:1,mouseMoveFriction:.12,zoom:!0,pinchToZoom:!0,panOnlyZoomed:"auto",minScale:1,maxScale:2,friction:.25,dragFriction:.35,decelFriction:.05,click:"toggleZoom",dblClick:!1,wheel:"zoom",wheelLimit:7,spinner:!0,bounds:"auto",infinite:!1,rubberband:!0,bounce:!0,maxVelocity:75,transformParent:!1,classes:{content:"f-panzoom__content",isLoading:"is-loading",canZoomIn:"can-zoom_in",canZoomOut:"can-zoom_out",isDraggable:"is-draggable",isDragging:"is-dragging",inFullscreen:"in-fullscreen",htmlHasFullscreen:"with-panzoom-in-fullscreen"},l10n:S},A='<circle cx="25" cy="25" r="20"></circle>',L='<div class="f-spinner"><svg viewBox="0 0 50 50">'+A+A+"</svg></div>",k=t=>t&&null!==t&&t instanceof Element&&"nodeType"in t,O=(t,e)=>{t&&u(e).forEach(e=>{t.classList.remove(e)})},I=(t,e)=>{t&&u(e).forEach(e=>{t.classList.add(e)})},z={a:1,b:0,c:0,d:1,e:0,f:0},$=1e4,R="mousemove",_="drag",D="content",N="auto";let B=null,H=null;class j extends C{get fits(){return this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1}get isTouchDevice(){return null===H&&(H=window.matchMedia("(hover: none)").matches),H}get isMobile(){return null===B&&(B=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)),B}get panMode(){return this.options.panMode!==R||this.isTouchDevice?_:R}get panOnlyZoomed(){const t=this.options.panOnlyZoomed;return t===N?this.isTouchDevice:t}get isInfinite(){return this.option("infinite")}get angle(){return 180*Math.atan2(this.current.b,this.current.a)/Math.PI||0}get targetAngle(){return 180*Math.atan2(this.target.b,this.target.a)/Math.PI||0}get scale(){const{a:t,b:e}=this.current;return Math.sqrt(t*t+e*e)||1}get targetScale(){const{a:t,b:e}=this.target;return Math.sqrt(t*t+e*e)||1}get minScale(){return this.option("minScale")||1}get fullScale(){const{contentRect:t}=this;return t.fullWidth/t.fitWidth||1}get maxScale(){return this.fullScale*(this.option("maxScale")||1)||1}get coverScale(){const{containerRect:t,contentRect:e}=this,n=Math.max(t.height/e.fitHeight,t.width/e.fitWidth)||1;return Math.min(this.fullScale,n)}get isScaling(){return Math.abs(this.targetScale-this.scale)>1e-5&&!this.isResting}get isContentLoading(){const t=this.content;return!!(t&&t instanceof HTMLImageElement)&&!t.complete}get isResting(){if(this.isBouncingX||this.isBouncingY)return!1;for(const t of P){const e="e"==t||"f"===t?1e-4:1e-5;if(Math.abs(this.target[t]-this.current[t])>e)return!1}return!(!this.ignoreBounds&&!this.checkBounds().inBounds)}constructor(t,e={},n={}){var i;if(super(e),Object.defineProperty(this,"pointerTracker",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"resizeObserver",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"updateTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"rAF",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isTicking",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"ignoreBounds",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingX",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingY",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"clicks",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"trackingPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"cwd",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"pmme",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"friction",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:M.Init}),Object.defineProperty(this,"isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"spinner",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"containerRect",{enumerable:!0,configurable:!0,writable:!0,value:{width:0,height:0,innerWidth:0,innerHeight:0}}),Object.defineProperty(this,"contentRect",{enumerable:!0,configurable:!0,writable:!0,value:{top:0,right:0,bottom:0,left:0,fullWidth:0,fullHeight:0,fitWidth:0,fitHeight:0,width:0,height:0}}),Object.defineProperty(this,"dragStart",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,top:0,left:0,time:0}}),Object.defineProperty(this,"dragOffset",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,time:0}}),Object.defineProperty(this,"current",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},z)}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},z)}),Object.defineProperty(this,"velocity",{enumerable:!0,configurable:!0,writable:!0,value:{a:0,b:0,c:0,d:0,e:0,f:0}}),Object.defineProperty(this,"lockedAxis",{enumerable:!0,configurable:!0,writable:!0,value:!1}),!t)throw new Error("Container Element Not Found");this.container=t,this.initContent(),this.attachPlugins(Object.assign(Object.assign({},j.Plugins),n)),this.emit("attachPlugins"),this.emit("init");const o=this.content;if(o.addEventListener("load",this.onLoad),o.addEventListener("error",this.onError),this.isContentLoading){if(this.option("spinner")){t.classList.add(this.cn("isLoading"));const e=h(L);!t.contains(o)||o.parentElement instanceof HTMLPictureElement?this.spinner=t.appendChild(e):this.spinner=(null===(i=o.parentElement)||void 0===i?void 0:i.insertBefore(e,o))||null}this.emit("beforeLoad")}else queueMicrotask(()=>{this.enable()})}initContent(){const{container:t}=this,e=this.cn(D);let n=this.option(D)||t.querySelector(`.${e}`);if(n||(n=t.querySelector("img,picture")||t.firstElementChild,n&&I(n,e)),n instanceof HTMLPictureElement&&(n=n.querySelector("img")),!n)throw new Error("No content found");this.content=n}onLoad(){const{spinner:t,container:e,state:n}=this;t&&(t.remove(),this.spinner=null),this.option("spinner")&&e.classList.remove(this.cn("isLoading")),this.emit("afterLoad"),n===M.Init?this.enable():this.updateMetrics()}onError(){this.state!==M.Destroy&&(this.spinner&&(this.spinner.remove(),this.spinner=null),this.stop(),this.detachEvents(),this.state=M.Error,this.emit("error"))}getNextScale(t){const{fullScale:e,targetScale:n,coverScale:i,maxScale:o,minScale:s}=this;let a=s;switch(t){case"toggleMax":a=n-s<.5*(o-s)?o:s;break;case"toggleCover":a=n-s<.5*(i-s)?i:s;break;case"toggleZoom":a=n-s<.5*(e-s)?e:s;break;case"iterateZoom":let t=[1,e,o].sort((t,e)=>t-e),r=t.findIndex(t=>t>n+1e-5);a=t[r]||1}return a}attachObserver(){var t;const e=()=>{const{container:t,containerRect:e}=this;return Math.abs(e.width-t.getBoundingClientRect().width)>.1||Math.abs(e.height-t.getBoundingClientRect().height)>.1};this.resizeObserver||void 0===window.ResizeObserver||(this.resizeObserver=new ResizeObserver(()=>{this.updateTimer||(e()?(this.onResize(),this.isMobile&&(this.updateTimer=setTimeout(()=>{e()&&this.onResize(),this.updateTimer=null},500))):this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null))})),null===(t=this.resizeObserver)||void 0===t||t.observe(this.container)}detachObserver(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect()}attachEvents(){const{container:t}=this;t.addEventListener("click",this.onClick,{passive:!1,capture:!1}),t.addEventListener("wheel",this.onWheel,{passive:!1}),this.pointerTracker=new f(t,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener(R,this.onMouseMove)}detachEvents(){var t;const{container:e}=this;e.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),e.removeEventListener("wheel",this.onWheel,{passive:!1}),null===(t=this.pointerTracker)||void 0===t||t.stop(),this.pointerTracker=null,document.removeEventListener(R,this.onMouseMove),document.removeEventListener("keydown",this.onKeydown,!0),this.clickTimer&&(clearTimeout(this.clickTimer),this.clickTimer=null),this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null)}animate(){this.setTargetForce();const t=this.friction,e=this.option("maxVelocity");for(const n of P)t?(this.velocity[n]*=1-t,e&&!this.isScaling&&(this.velocity[n]=Math.max(Math.min(this.velocity[n],e),-1*e)),this.current[n]+=this.velocity[n]):this.current[n]=this.target[n];this.setTransform(),this.setEdgeForce(),!this.isResting||this.isDragging?this.rAF=requestAnimationFrame(()=>this.animate()):this.stop("current")}setTargetForce(){for(const t of P)"e"===t&&this.isBouncingX||"f"===t&&this.isBouncingY||(this.velocity[t]=(1/(1-this.friction)-1)*(this.target[t]-this.current[t]))}checkBounds(t=0,e=0){const{current:n}=this,i=n.e+t,o=n.f+e,s=this.getBounds(),{x:a,y:r}=s,l=a.min,c=a.max,d=r.min,h=r.max;let u=0,m=0;return l!==1/0&&i<l?u=l-i:c!==1/0&&i>c&&(u=c-i),d!==1/0&&o<d?m=d-o:h!==1/0&&o>h&&(m=h-o),Math.abs(u)<1e-4&&(u=0),Math.abs(m)<1e-4&&(m=0),Object.assign(Object.assign({},s),{xDiff:u,yDiff:m,inBounds:!u&&!m})}clampTargetBounds(){const{target:t}=this,{x:e,y:n}=this.getBounds();e.min!==1/0&&(t.e=Math.max(t.e,e.min)),e.max!==1/0&&(t.e=Math.min(t.e,e.max)),n.min!==1/0&&(t.f=Math.max(t.f,n.min)),n.max!==1/0&&(t.f=Math.min(t.f,n.max))}calculateContentDim(t=this.current){const{content:e,contentRect:n}=this,{fitWidth:i,fitHeight:o,fullWidth:s,fullHeight:a}=n;let r=s,l=a;if(this.option("zoom")||0!==this.angle){const n=!(e instanceof HTMLImageElement||"none"!==window.getComputedStyle(e).maxWidth&&"none"!==window.getComputedStyle(e).maxHeight),c=n?s:i,d=n?a:o,h=this.getMatrix(t),u=new DOMPoint(0,0).matrixTransform(h),m=new DOMPoint(0+c,0).matrixTransform(h),p=new DOMPoint(0+c,0+d).matrixTransform(h),g=new DOMPoint(0,0+d).matrixTransform(h),f=Math.abs(p.x-u.x),b=Math.abs(p.y-u.y),v=Math.abs(g.x-m.x),y=Math.abs(g.y-m.y);r=Math.max(f,v),l=Math.max(b,y)}return{contentWidth:r,contentHeight:l}}setEdgeForce(){if(this.ignoreBounds||this.isDragging||this.panMode===R||this.targetScale<this.scale)return this.isBouncingX=!1,void(this.isBouncingY=!1);const{target:t}=this,{x:e,y:n,xDiff:i,yDiff:o}=this.checkBounds(),s=this.option("maxVelocity");let a=this.velocity.e,r=this.velocity.f;0!==i?(this.isBouncingX=!0,i*a<=0?a+=.14*i:(a=.14*i,e.min!==1/0&&(this.target.e=Math.max(t.e,e.min)),e.max!==1/0&&(this.target.e=Math.min(t.e,e.max))),s&&(a=Math.max(Math.min(a,s),-1*s))):this.isBouncingX=!1,0!==o?(this.isBouncingY=!0,o*r<=0?r+=.14*o:(r=.14*o,n.min!==1/0&&(this.target.f=Math.max(t.f,n.min)),n.max!==1/0&&(this.target.f=Math.min(t.f,n.max))),s&&(r=Math.max(Math.min(r,s),-1*s))):this.isBouncingY=!1,this.isBouncingX&&(this.velocity.e=a),this.isBouncingY&&(this.velocity.f=r)}enable(){const{content:t}=this,e=new DOMMatrixReadOnly(window.getComputedStyle(t).transform);for(const t of P)this.current[t]=this.target[t]=e[t];this.updateMetrics(),this.attachObserver(),this.attachEvents(),this.state=M.Ready,this.emit("ready")}onClick(t){var e;"click"===t.type&&0===t.detail&&(this.dragOffset.x=0,this.dragOffset.y=0),this.isDragging&&(null===(e=this.pointerTracker)||void 0===e||e.clear(),this.trackingPoints=[],this.startDecelAnim());const n=t.target;if(!n||t.defaultPrevented)return;if(n.hasAttribute("disabled"))return t.preventDefault(),void t.stopPropagation();if((()=>{const t=window.getSelection();return t&&"Range"===t.type})()&&!n.closest("button"))return;const i=n.closest("[data-panzoom-action]"),o=n.closest("[data-panzoom-change]"),s=i||o,a=s&&k(s)?s.dataset:null;if(a){const e=a.panzoomChange,n=a.panzoomAction;if((e||n)&&t.preventDefault(),e){let n={};try{n=JSON.parse(e)}catch(t){console&&console.warn("The given data was not valid JSON")}return void this.applyChange(n)}if(n)return void(this[n]&&this[n]())}if(Math.abs(this.dragOffset.x)>3||Math.abs(this.dragOffset.y)>3)return t.preventDefault(),void t.stopPropagation();if(n.closest("[data-fancybox]"))return;const r=this.content.getBoundingClientRect(),l=this.dragStart;if(l.time&&!this.canZoomOut()&&(Math.abs(r.x-l.x)>2||Math.abs(r.y-l.y)>2))return;this.dragStart.time=0;const c=e=>{this.option("zoom",t)&&e&&"string"==typeof e&&/(iterateZoom)|(toggle(Zoom|Full|Cover|Max)|(zoomTo(Fit|Cover|Max)))/.test(e)&&"function"==typeof this[e]&&(t.preventDefault(),this[e]({event:t}))},d=this.option("click",t),h=this.option("dblClick",t);h?(this.clicks++,1==this.clicks&&(this.clickTimer=setTimeout(()=>{1===this.clicks?(this.emit("click",t),!t.defaultPrevented&&d&&c(d)):(this.emit("dblClick",t),t.defaultPrevented||c(h)),this.clicks=0,this.clickTimer=null},350))):(this.emit("click",t),!t.defaultPrevented&&d&&c(d))}addTrackingPoint(t){const e=this.trackingPoints.filter(t=>t.time>Date.now()-100);e.push(t),this.trackingPoints=e}onPointerDown(t,e,n){var i;if(!1===this.option("touch",t))return!1;this.pwt=0,this.dragOffset={x:0,y:0,time:0},this.trackingPoints=[];const o=this.content.getBoundingClientRect();if(this.dragStart={x:o.x,y:o.y,top:o.top,left:o.left,time:Date.now()},this.clickTimer)return!1;if(this.panMode===R&&this.targetScale>1)return t.preventDefault(),t.stopPropagation(),!1;const s=t.composedPath()[0];if(!n.length){if(["TEXTAREA","OPTION","INPUT","SELECT","VIDEO","IFRAME"].includes(s.nodeName)||s.closest("[contenteditable],[data-selectable],[data-draggable],[data-clickable],[data-panzoom-change],[data-panzoom-action]"))return!1;null===(i=window.getSelection())||void 0===i||i.removeAllRanges()}if("mousedown"===t.type)["A","BUTTON"].includes(s.nodeName)||t.preventDefault();else if(Math.abs(this.velocity.a)>.3)return!1;return this.target.e=this.current.e,this.target.f=this.current.f,this.stop(),this.isDragging||(this.isDragging=!0,this.addTrackingPoint(e),this.emit("touchStart",t)),!0}onPointerMove(t,e,n){if(!1===this.option("touch",t))return;if(!this.isDragging)return;if(e.length<2&&this.panOnlyZoomed&&l(this.targetScale)<=l(this.minScale))return;if(this.emit("touchMove",t),t.defaultPrevented)return;this.addTrackingPoint(e[0]);const{content:i}=this,o=v(n[0],n[1]),s=v(e[0],e[1]);let a=0,r=0;if(e.length>1){const t=i.getBoundingClientRect();a=o.clientX-t.left-.5*t.width,r=o.clientY-t.top-.5*t.height}const c=b(n[0],n[1]),h=b(e[0],e[1]);let u=c?h/c:1,m=s.clientX-o.clientX,p=s.clientY-o.clientY;this.dragOffset.x+=m,this.dragOffset.y+=p,this.dragOffset.time=Date.now()-this.dragStart.time;let g=l(this.targetScale)===l(this.minScale)&&this.option("lockAxis");if(g&&!this.lockedAxis)if("xy"===g||"y"===g||"touchmove"===t.type){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void t.preventDefault();const e=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockedAxis=e>45&&e<135?"y":"x",this.dragOffset.x=0,this.dragOffset.y=0,m=0,p=0}else this.lockedAxis=g;if(d(t.target,this.content)&&(g="x",this.dragOffset.y=0),g&&"xy"!==g&&this.lockedAxis!==g&&l(this.targetScale)===l(this.minScale))return;t.cancelable&&t.preventDefault(),this.container.classList.add(this.cn("isDragging"));const f=this.checkBounds(m,p);this.option("rubberband")?("x"!==this.isInfinite&&(f.xDiff>0&&m<0||f.xDiff<0&&m>0)&&(m*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*f.xDiff))),"y"!==this.isInfinite&&(f.yDiff>0&&p<0||f.yDiff<0&&p>0)&&(p*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*f.yDiff)))):(f.xDiff&&(m=0),f.yDiff&&(p=0));const y=this.targetScale,w=this.minScale,x=this.maxScale;y<.5*w&&(u=Math.max(u,w)),y>1.5*x&&(u=Math.min(u,x)),"y"===this.lockedAxis&&l(y)===l(w)&&(m=0),"x"===this.lockedAxis&&l(y)===l(w)&&(p=0),this.applyChange({originX:a,originY:r,panX:m,panY:p,scale:u,friction:this.option("dragFriction"),ignoreBounds:!0})}onPointerUp(t,e,n){if(n.length)return this.dragOffset.x=0,this.dragOffset.y=0,void(this.trackingPoints=[]);this.container.classList.remove(this.cn("isDragging")),this.isDragging&&(this.addTrackingPoint(e),this.panOnlyZoomed&&this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1&&(this.trackingPoints=[]),d(t.target,this.content)&&"y"===this.lockedAxis&&(this.trackingPoints=[]),this.emit("touchEnd",t),this.isDragging=!1,this.lockedAxis=!1,this.state!==M.Destroy&&(t.defaultPrevented||this.startDecelAnim()))}startDecelAnim(){var t;const e=this.isScaling;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const t of P)this.velocity[t]=0;this.target.e=this.current.e,this.target.f=this.current.f,O(this.container,"is-scaling"),O(this.container,"is-animating"),this.isTicking=!1;const{trackingPoints:n}=this,i=n[0],o=n[n.length-1];let s=0,a=0,r=0;o&&i&&(s=o.clientX-i.clientX,a=o.clientY-i.clientY,r=o.time-i.time);const c=(null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1;1!==c&&(s*=c,a*=c);let d=0,h=0,u=0,m=0,p=this.option("decelFriction");const g=this.targetScale;if(r>0){u=Math.abs(s)>3?s/(r/30):0,m=Math.abs(a)>3?a/(r/30):0;const t=this.option("maxVelocity");t&&(u=Math.max(Math.min(u,t),-1*t),m=Math.max(Math.min(m,t),-1*t))}u&&(d=u/(1/(1-p)-1)),m&&(h=m/(1/(1-p)-1)),("y"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"y"===this.lockedAxis&&l(g)===this.minScale)&&(d=u=0),("x"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"x"===this.lockedAxis&&l(g)===this.minScale)&&(h=m=0);const f=this.dragOffset.x,b=this.dragOffset.y,v=this.option("dragMinThreshold")||0;Math.abs(f)<v&&Math.abs(b)<v&&(d=h=0,u=m=0),(this.option("zoom")&&(g<this.minScale-1e-5||g>this.maxScale+1e-5)||e&&!d&&!h)&&(p=.35),this.applyChange({panX:d,panY:h,friction:p}),this.emit("decel",u,m,f,b)}onWheel(t){var e=[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce(function(t,e){return Math.abs(e)>Math.abs(t)?e:t});const n=Math.max(-1,Math.min(1,e));if(this.emit("wheel",t,n),this.panMode===R)return;if(t.defaultPrevented)return;const i=this.option("wheel");"pan"===i?(t.preventDefault(),this.panOnlyZoomed&&!this.canZoomOut()||this.applyChange({panX:2*-t.deltaX,panY:2*-t.deltaY,bounce:!1})):"zoom"===i&&!1!==this.option("zoom")&&this.zoomWithWheel(t)}onMouseMove(t){this.panWithMouse(t)}onKeydown(t){"Escape"===t.key&&this.toggleFS()}onResize(){this.updateMetrics(),this.checkBounds().inBounds||this.requestTick()}setTransform(){this.emit("beforeTransform");const{current:t,target:e,content:n,contentRect:i}=this,o=Object.assign({},z);for(const n of P){const i="e"==n||"f"===n?$:1e5;o[n]=l(t[n],i),Math.abs(e[n]-t[n])<("e"==n||"f"===n?.51:.001)&&(t[n]=e[n])}let{a:s,b:a,c:r,d:c,e:d,f:h}=o,u=`matrix(${s}, ${a}, ${r}, ${c}, ${d}, ${h})`,m=n.parentElement instanceof HTMLPictureElement?n.parentElement:n;if(this.option("transformParent")&&(m=m.parentElement||m),m.style.transform===u)return;m.style.transform=u;const{contentWidth:p,contentHeight:g}=this.calculateContentDim();i.width=p,i.height=g,this.emit("afterTransform")}updateMetrics(t=!1){var e;if(!this||this.state===M.Destroy)return;if(this.isContentLoading)return;const n=Math.max(1,(null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1),{container:i,content:o}=this,s=o instanceof HTMLImageElement,a=i.getBoundingClientRect(),r=getComputedStyle(this.container);let c=a.width*n,d=a.height*n;const h=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),u=c-(parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)),m=d-h;this.containerRect={width:c,height:d,innerWidth:u,innerHeight:m};const p=parseFloat(o.dataset.width||"")||(t=>{let e=0;return e=t instanceof HTMLImageElement?t.naturalWidth:t instanceof SVGElement?t.width.baseVal.value:Math.max(t.offsetWidth,t.scrollWidth),e||0})(o),g=parseFloat(o.dataset.height||"")||(t=>{let e=0;return e=t instanceof HTMLImageElement?t.naturalHeight:t instanceof SVGElement?t.height.baseVal.value:Math.max(t.offsetHeight,t.scrollHeight),e||0})(o);let f=this.option("width",p)||N,b=this.option("height",g)||N;const v=f===N,y=b===N;"number"!=typeof f&&(f=p),"number"!=typeof b&&(b=g),v&&(f=p*(b/g)),y&&(b=g/(p/f));let w=o.parentElement instanceof HTMLPictureElement?o.parentElement:o;this.option("transformParent")&&(w=w.parentElement||w);const x=w.getAttribute("style")||"";w.style.setProperty("transform","none","important"),s&&(w.style.width="",w.style.height=""),w.offsetHeight;const E=o.getBoundingClientRect();let C=E.width*n,P=E.height*n,S=C,T=P;C=Math.min(C,f),P=Math.min(P,b),s?({width:C,height:P}=((t,e,n,i)=>{const o=n/t,s=i/e,a=Math.min(o,s);return{width:t*=a,height:e*=a}})(f,b,C,P)):(C=Math.min(C,f),P=Math.min(P,b));let A=.5*(T-P),L=.5*(S-C);this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:E.top-a.top+A,bottom:a.bottom-E.bottom+A,left:E.left-a.left+L,right:a.right-E.right+L,fitWidth:C,fitHeight:P,width:C,height:P,fullWidth:f,fullHeight:b}),w.style.cssText=x,s&&(w.style.width=`${C}px`,w.style.height=`${P}
2px`),this.setTransform(),!0!==t&&this.emit("refresh"),this.ignoreBounds||(l(this.targetScale)<l(this.minScale)?this.zoomTo(this.minScale,{friction:0}):this.targetScale>this.maxScale?this.zoomTo(this.maxScale,{friction:0}):this.state===M.Init||this.checkBounds().inBounds||this.requestTick()),this.updateControls()}calculateBounds(){const{contentWidth:t,contentHeight:e}=this.calculateContentDim(this.target),{targetScale:n,lockedAxis:i}=this,{fitWidth:o,fitHeight:s}=this.contentRect;let a=0,r=0,c=0,d=0;const h=this.option("infinite");if(!0===h||i&&h===i)a=-1/0,c=1/0,r=-1/0,d=1/0;else{let{containerRect:i,contentRect:h}=this,u=l(o*n,$),m=l(s*n,$),{innerWidth:p,innerHeight:g}=i;if(i.width===u&&(p=i.width),i.width===m&&(g=i.height),t>p){c=.5*(t-p),a=-1*c;let e=.5*(h.right-h.left);a+=e,c+=e}if(o>p&&t<p&&(a-=.5*(o-p),c-=.5*(o-p)),e>g){d=.5*(e-g),r=-1*d;let t=.5*(h.bottom-h.top);r+=t,d+=t}s>g&&e<g&&(a-=.5*(s-g),c-=.5*(s-g))}return{x:{min:a,max:c},y:{min:r,max:d}}}getBounds(){const t=this.option("bounds");return t!==N?t:this.calculateBounds()}updateControls(){const t=this,e=t.container,{panMode:n,contentRect:i,targetScale:o,minScale:s}=t;let a=s,r=t.option("click")||!1;r&&(a=t.getNextScale(r));let c=t.canZoomIn(),d=t.canZoomOut(),h=n===_&&!!this.option("touch"),u=d&&h;if(h&&(l(o)<l(s)&&!this.panOnlyZoomed&&(u=!0),(l(i.width,1)>l(i.fitWidth,1)||l(i.height,1)>l(i.fitHeight,1))&&(u=!0)),l(i.width*o,1)<l(i.fitWidth,1)&&(u=!1),n===R&&(u=!1),m(e,this.cn("isDraggable"),u),!this.option("zoom"))return;let p=c&&l(a)>l(o),g=!p&&!u&&d&&l(a)<l(o);m(e,this.cn("canZoomIn"),p),m(e,this.cn("canZoomOut"),g);for(const t of e.querySelectorAll("[data-panzoom-action]")){let e=!1,n=!1;switch(t.dataset.panzoomAction){case"zoomIn":c?e=!0:n=!0;break;case"zoomOut":d?e=!0:n=!0;break;case"toggleZoom":case"iterateZoom":c||d?e=!0:n=!0;const i=t.querySelector("g");i&&(i.style.display=c?"":"none")}e?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):n&&(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"))}}panTo({x:t=this.target.e,y:e=this.target.f,scale:n=this.targetScale,friction:i=this.option("friction"),angle:o=0,originX:s=0,originY:a=0,flipX:r=!1,flipY:l=!1,ignoreBounds:c=!1}){this.state!==M.Destroy&&this.applyChange({panX:t-this.target.e,panY:e-this.target.f,scale:n/this.targetScale,angle:o,originX:s,originY:a,friction:i,flipX:r,flipY:l,ignoreBounds:c})}applyChange({panX:t=0,panY:e=0,scale:n=1,angle:i=0,originX:o=-this.current.e,originY:s=-this.current.f,friction:a=this.option("friction"),flipX:r=!1,flipY:c=!1,ignoreBounds:d=!1,bounce:h=this.option("bounce")}){const u=this.state;if(u===M.Destroy)return;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.friction=a||0,this.ignoreBounds=d;const{current:m}=this,p=m.e,g=m.f,f=this.getMatrix(this.target);let b=(new DOMMatrix).translate(p,g).translate(o,s).translate(t,e);if(this.option("zoom")){if(!d){const t=this.targetScale,e=this.minScale,i=this.maxScale;t*n<e&&(n=e/t),t*n>i&&(n=i/t)}b=b.scale(n)}b=b.translate(-o,-s).translate(-p,-g).multiply(f),i&&(b=b.rotate(i)),r&&(b=b.scale(-1,1)),c&&(b=b.scale(1,-1));for(const t of P)"e"!==t&&"f"!==t&&(b[t]>this.minScale+1e-5||b[t]<this.minScale-1e-5)?this.target[t]=b[t]:this.target[t]=l(b[t],$);(this.targetScale<this.scale||Math.abs(n-1)>.1||this.panMode===R||!1===h)&&!d&&this.clampTargetBounds(),u===M.Init?this.animate():this.isResting||(this.state=M.Panning,this.requestTick())}stop(t=!1){if(this.state===M.Init||this.state===M.Destroy)return;const e=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const e of P)this.velocity[e]=0,"current"===t?this.current[e]=this.target[e]:"target"===t&&(this.target[e]=this.current[e]);this.setTransform(),O(this.container,"is-scaling"),O(this.container,"is-animating"),this.isTicking=!1,this.state=M.Ready,e&&(this.emit
vendor: 10,432 bytes, line 2
2("endAnimation"),this.updateControls())}requestTick(){this.isTicking||(this.emit("startAnimation"),this.updateControls(),I(this.container,"is-animating"),this.isScaling&&I(this.container,"is-scaling")),this.isTicking=!0,this.rAF||(this.rAF=requestAnimationFrame(()=>this.animate()))}panWithMouse(t,e=this.option("mouseMoveFriction")){if(this.pmme=t,this.panMode!==R||!t)return;if(l(this.targetScale)<=l(this.minScale))return;this.emit("mouseMove",t);const{container:n,containerRect:i,contentRect:o}=this,s=i.width,a=i.height,r=n.getBoundingClientRect(),c=(t.clientX||0)-r.left,d=(t.clientY||0)-r.top;let{contentWidth:h,contentHeight:u}=this.calculateContentDim(this.target);const m=this.option("mouseMoveFactor");m>1&&(h!==s&&(h*=m),u!==a&&(u*=m));let p=.5*(h-s)-c/s*100/100*(h-s);p+=.5*(o.right-o.left);let g=.5*(u-a)-d/a*100/100*(u-a);g+=.5*(o.bottom-o.top),this.applyChange({panX:p-this.target.e,panY:g-this.target.f,friction:e})}zoomWithWheel(t){if(this.state===M.Destroy||this.state===M.Init)return;const e=Date.now();if(e-this.pwt<45)return void t.preventDefault();this.pwt=e;var n=[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce(function(t,e){return Math.abs(e)>Math.abs(t)?e:t});const i=Math.max(-1,Math.min(1,n)),{targetScale:o,maxScale:s,minScale:a}=this;let r=o*(100+45*i)/100;l(r)<l(a)&&l(o)<=l(a)?(this.cwd+=Math.abs(i),r=a):l(r)>l(s)&&l(o)>=l(s)?(this.cwd+=Math.abs(i),r=s):(this.cwd=0,r=Math.max(Math.min(r,s),a)),this.cwd>this.option("wheelLimit")||(t.preventDefault(),l(r)!==l(o)&&this.zoomTo(r,{event:t}))}canZoomIn(){return this.option("zoom")&&(l(this.contentRect.width,1)<l(this.contentRect.fitWidth,1)||l(this.targetScale)<l(this.maxScale))}canZoomOut(){return this.option("zoom")&&l(this.targetScale)>l(this.minScale)}zoomIn(t=1.25,e){this.zoomTo(this.targetScale*t,e)}zoomOut(t=.8,e){this.zoomTo(this.targetScale*t,e)}zoomToFit(t){this.zoomTo("fit",t)}zoomToCover(t){this.zoomTo("cover",t)}zoomToFull(t){this.zoomTo("full",t)}zoomToMax(t){this.zoomTo("max",t)}toggleZoom(t){this.zoomTo(this.getNextScale("toggleZoom"),t)}toggleMax(t){this.zoomTo(this.getNextScale("toggleMax"),t)}toggleCover(t){this.zoomTo(this.getNextScale("toggleCover"),t)}iterateZoom(t){this.zoomTo("next",t)}zoomTo(t=1,{friction:e=N,originX:n=N,originY:i=N,event:o}={}){if(this.isContentLoading||this.state===M.Destroy)return;const{targetScale:s,fullScale:a,maxScale:r,coverScale:l}=this;if(this.stop(),this.panMode===R&&(o=this.pmme||o),o||n===N||i===N){const t=this.content.getBoundingClientRect(),e=this.container.getBoundingClientRect(),s=o?o.clientX:e.left+.5*e.width,a=o?o.clientY:e.top+.5*e.height;n=s-t.left-.5*t.width,i=a-t.top-.5*t.height}let c=1;"number"==typeof t?c=t:"full"===t?c=a:"cover"===t?c=l:"max"===t?c=r:"fit"===t?c=1:"next"===t&&(c=this.getNextScale("iterateZoom")),c=c/s||1,e=e===N?c>1?.15:.25:e,this.applyChange({scale:c,originX:n,originY:i,friction:e}),o&&this.panMode===R&&this.panWithMouse(o,e)}rotateCCW(){this.applyChange({angle:-90})}rotateCW(){this.applyChange({angle:90})}flipX(){this.applyChange({flipX:!0})}flipY(){this.applyChange({flipY:!0})}fitX(){this.stop("target");const{containerRect:t,contentRect:e,target:n}=this;this.applyChange({panX:.5*t.width-(e.left+.5*e.fitWidth)-n.e,panY:.5*t.height-(e.top+.5*e.fitHeight)-n.f,scale:t.width/e.fitWidth/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}fitY(){this.stop("target");const{containerRect:t,contentRect:e,target:n}=this;this.applyChange({panX:.5*t.width-(e.left+.5*e.fitWidth)-n.e,panY:.5*t.innerHeight-(e.top+.5*e.fitHeight)-n.f,scale:t.height/e.fitHeight/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}toggleFS(){const{container:t}=this,e=this.cn("inFullscreen"),n=this.cn("htmlHasFullscreen");t.classList.toggle(e);const i=t.classList.contains(e);i?(document.documentElement.classList.add(n),document.addEventListener("keydown",this.onKeydown,!0)):(document.documentElement.classList.remove(n),document.removeEventListener("keydown",this.onKeydown,!0)),this.updateMetrics(),this.emit(i?"enterFS":"exitFS")}getMatrix(t=this.current){const{a:e,b:n,c:i,d:o,e:s,f:a}=t;return new DOMMatrix([e,n,i,o,s,a])}reset(t){if(this.state!==M.Init&&this.state!==M.Destroy){this.stop("current");for(const t of P)this.target[t]=z[t];this.target.a=this.minScale,this.target.d=this.minScale,this.clampTargetBounds(),this.isResting||(this.friction=void 0===t?this.option("friction"):t,this.state=M.Panning,this.requestTick())}}destroy(){this.stop(),this.state=M.Destroy,this.detachEvents(),this.detachObserver();const{container:t,content:e}=this,n=this.option("classes")||{};for(const e of Object.values(n))t.classList.remove(e+"");e&&(e.removeEventListener("load",this.onLoad),e.removeEventListener("error",this.onError)),this.detachPlugins()}}Object.defineProperty(j,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:T}),Object.defineProperty(j,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}});const F=function(t,e){let n=!0;return(...i)=>{n&&(n=!1,t(...i),setTimeout(()=>{n=!0},e))}},V=(t,e)=>{let n=[];return t.childNodes.forEach(t=>{t.nodeType!==Node.ELEMENT_NODE||e&&!t.matches(e)||n.push(t)}),n};var W;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Destroy=2]="Destroy"}(W||(W={}));const q=t=>{if("string"==typeof t||t instanceof HTMLElement)t={html:t};else{const e=t.thumb;void 0!==e&&("string"==typeof e&&(t.thumbSrc=e),e instanceof HTMLImageElement&&(t.thumbEl=e,t.thumbElSrc=e.src,t.thumbSrc=e.src),delete t.thumb)}return Object.assign({html:"",el:null,isDom:!1,class:"",customClass:"",index:-1,dim:0,gap:0,pos:0,transition:!1},t)},Z=(t={})=>Object.assign({index:-1,slides:[],dim:0,pos:-1},t);class X extends E{constructor(t,e){super(e),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:t})}attach(){}detach(){}}class Y extends X{constructor(){super(...arguments),Object.defineProperty(this,"isDynamic",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:null})}onRefresh(){this.refresh()}build(){let t=this.list;if(!t){t=document.createElement("ul"),I(t,this.cn("list")),t.setAttribute("role","tablist");const e=this.instance.container;e.appendChild(t),I(e,this.cn("hasDots")),this.list=t}return t}refresh(){var t;const e=this.instance.pages.length,n=Math.min(2,this.option("minCount")),i=Math.max(2e3,this.option("maxCount")),o=this.option("dynamicFrom");if(e<n||e>i)return void this.cleanup();const s="number"==typeof o&&e>5&&e>=o,a=!this.list||this.isDynamic!==s||this.list.children.length!==e;a&&this.cleanup();const r=this.build();if(m(r,this.cn("isDynamic"),!!s),a)for(let t=0;t<e;t++)r.append(this.createItem(t));let l,c=0;for(const e of[...r.children]){const n=c===this.instance.page;n&&(l=e),m(e,this.cn("isCurrent"),n),null===(t=e.children[0])||void 0===t||t.setAttribute("aria-selected",n?"true":"false");for(const t of["isBeforePrev","isPrev","isNext","isAfterNext"])O(e,this.cn(t));c++}if(l=l||r.firstChild,s&&l){const t=l.previousElementSibling,e=t&&t.previousElementSibling;I(t,this.cn("isPrev")),I(e,this.cn("isBeforePrev"));const n=l.nextElementSibling,i=n&&n.nextElementSibling;I(n,this.cn("isNext")),I(i,this.cn("isAfterNext"))}this.isDynamic=s}createItem(t=0){var e;const n=document.createElement("li");n.setAttribute("role","presentation");const i=h(this.instance.localize(this.option("dotTpl"),[["%d",t+1]]).replace(/\%i/g,t+""));return n.appendChild(i),null===(e=n.children[0])||void 0===e||e.setAttribute("role","tab"),n}cleanup(){this.list&&(this.list.remove(),this.list=null),this.isDynamic=!1,O(this.instance.container,this.cn("hasDots"))}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(Y,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{list:"f-carousel__dots",isDynamic:"is-dynamic",hasDots:"has-dots",dot:"f-carousel__dot",isBeforePrev:"is-before-prev",isPrev:"is-prev",isCurrent:"is-current",isNext:"is-next",isAfterNext:"is-after-next"},dotTpl:'<button type="button" data-carousel-page="%i" aria-label="{{GOTO}}"><span class="f-carousel__dot" aria-hidden="true"></span></button>',dynamicFrom:11,maxCount:1/0,minCount:2}});const G="disabled",U="next",J="prev";class K extends X{constructor(){super(...arguments),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prev",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"next",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isDom",{enumerable:!0,configurable:!0,writable:!0,value:!1})}onRefresh(){const t=this.instance,e=t.pages.length,n=t.page;if(e<2)return void this.cleanup();this.build();let i=this.prev,o=this.next;i&&o&&(i.removeAttribute(G),o.removeAttribute(G),t.isInfinite||(n<=0&&i.setAttribute(G,""),n>=e-1&&o.setAttribute(G,"")))}addBtn(t){var e;const n=this.instance,i=document.createElement("button");i.setAttribute("tabindex","0"),i.setAttribute("title",n.localize(`{{${t.toUpperCase()}}}`)),I(i,this.cn("button")+" "+this.cn(t===U?"isNext":"isPrev"));const o=n.isRTL?t===U?J:U:t;var s;return i.innerHTML=n.localize(this.option(`${o}Tpl`)),i.dataset[`carousel${s=t,s?s.match("^[a-z]")?s.charAt(0).toUpperCase()+s.substring(1):s:""}`]="true",null===(e=this.container)||void 0===e||e.appendChild(i),i}build(){const t=this.instance.container,e=this.cn("container");let{container:n,prev:i,next:o}=this;n||(n=t.querySelector("."+e),this.isDom=!!n),n||(n=document.createElement("div"),I(n,e),t.appendChild(n)),this.container=n,o||(o=n.querySelector("[data-carousel-next]")),o||(o=this.addBtn(U)),this.next=o,i||(i=n.querySelector("[data-carousel-prev]")),i||(i=this.addBtn(J)),this.prev=i}cleanup(){this.isDom||(this.prev&&this.prev.remove(),this.next&&this.next.remove(),this.container&&this.container.remove()),this.prev=null,this.next=null,this.container=null,this.isDom=!1}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(K,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{container:"f-carousel__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"},nextTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"/></svg>
2',prevTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 3l-9 9 9 9"/></svg>'}});class Q extends X{constructor(){super(...arguments),Object.defineProperty(this,"selectedIndex",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"nav",{enumerable:!0,configurable:!0,writable:!0,value:null})}addAsTargetFor(t){this.target=this.instance,this.nav=t,this.attachEvents()}addAsNavFor(t){this.nav=this.instance,this.target=t,this.attachEvents()}attachEvents(){const{nav:t,target:e}=this;t&&e&&(t.options.initialSlide=e.options.initialPage,t.state===W.Ready?this.onNavReady(t):t.on("ready",this.onNavReady),e.state===W.Ready?this.onTargetReady(e):e.on("ready",this.onTargetReady))}onNavReady(t){t.on("createSlide",this.onNavCreateSlide),t.on("Panzoom.click",this.onNavClick),t.on("Panzoom.touchEnd",this.onNavTouch),this.onTargetChange()}onTargetReady(t){t.on("change",this.onTargetChange),t.on("Panzoom.refresh",this.onTargetChange),this.onTargetChange()}onNavClick(t,e,n){this.onNavTouch(t,t.panzoom,n)}onNavTouch(t,e,n){var i,o;if(Math.abs(e.dragOffset.x)>3||Math.abs(e.dragOffset.y)>3)return;const s=n.target,{nav:a,target:r}=this;if(!a||!r||!s)return;const l=s.closest("[data-index]");if(n.stopPropagation(),n.preventDefault(),!l)return;const c=parseInt(l.dataset.index||"",10)||0,d=r.getPageForSlide(c),h=a.getPageForSlide(c);a.slideTo(h),r.slideTo(d,{friction:(null===(o=null===(i=this.nav)||void 0===i?void 0:i.plugins)||void 0===o?void 0:o.Sync.option("friction"))||0}),this.markSelectedSlide(c)}onNavCreateSlide(t,e){e.index===this.selectedIndex&&this.markSelectedSlide(e.index)}onTargetChange(){var t,e;const{target:n,nav:i}=this;if(!n||!i)return;if(i.state!==W.Ready||n.state!==W.Ready)return;const o=null===(e=null===(t=n.pages[n.page])||void 0===t?void 0:t.slides[0])||void 0===e?void 0:e.index,s=i.getPageForSlide(o);this.markSelectedSlide(o),i.slideTo(s,null===i.prevPage&&null===n.prevPage?{friction:0}:void 0)}markSelectedSlide(t){const e=this.nav;e&&e.state===W.Ready&&(this.selectedIndex=t,[...e.slides].map(e=>{e.el&&e.el.classList[e.index===t?"add":"remove"]("is-nav-selected")}))}attach(){const t=this;let e=t.options.target,n=t.options.nav;e?t.addAsNavFor(e):n&&t.addAsTargetFor(n)}detach(){const t=this,e=t.nav,n=t.target;e&&(e.off("ready",t.onNavReady),e.off("createSlide",t.onNavCreateSlide),e.off("Panzoom.click",t.onNavClick),e.off("Panzoom.touchEnd",t.onNavTouch)),t.nav=null,n&&(n.off("ready",t.onTargetReady),n.off("refresh",t.onTargetChange),n.off("change",t.onTargetChange)),t.target=null}}Object.defineProperty(Q,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});const tt={Navigation:K,Dots:Y,Sync:Q},et="animationend",nt="isSelected",it="slide";class ot extends C{get axis(){return this.isHorizontal?"e":"f"}get isEnabled(){return this.state===W.Ready}get isInfinite(){let t=!1;const{contentDim:e,viewportDim:n,pages:i,slides:o}=this,s=o[0];return i.length>=2&&s&&e+s.dim>=n&&(t=this.option("infinite")),t}get isRTL(){return"rtl"===this.option("direction")}get isHorizontal(){return"x"===this.option("axis")}constructor(t,e={},n={}){if(super(),Object.defineProperty(this,"bp",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"lp",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"userOptions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:W.Init}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"prevPage",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"viewport",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"slides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pages",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"panzoom",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"inTransition",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"contentDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"viewportDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),"string"==typeof t&&(t=document.querySelector(t)),!t||!k(t))throw new Error("No Element found");this.container=t,this.slideNext=F(this.slideNext.bind(this),150),this.slidePrev=F(this.slidePrev.bind(this),150),this.userOptions=e,this.userPlugins=n,queueMicrotask(()=>{this.processOptions()})}processOptions(){var t,e;const n=w({},ot.defaults,this.userOptions);let i="";const o=n.breakpoints;if(o&&y(o))for(const[t,e]of Object.entries(o))window.matchMedia(t).matches&&y(e)&&(i+=t,w(n,e));i===this.bp&&this.state!==W.Init||(this.bp=i,this.state===W.Ready&&(n.initialSlide=(null===(e=null===(t=this.pages[this.page])||void 0===t?void 0:t.slides[0])||void 0===e?void 0:e.index)||0),this.state!==W.Init&&this.destroy(),super.setOptions(n),!1===this.option("enabled")?this.attachEvents():setTimeout(()=>{this.init()},0))}
vendor: 20,486 bytes, line 2
2init(){this.state=W.Init,this.emit("init"),this.attachPlugins(Object.assign(Object.assign({},ot.Plugins),this.userPlugins)),this.emit("attachPlugins"),this.initLayout(),this.initSlides(),this.updateMetrics(),this.setInitialPosition(),this.initPanzoom(),this.attachEvents(),this.state=W.Ready,this.emit("ready")}initLayout(){const{container:t}=this,e=this.option("classes");I(t,this.cn("container")),m(t,e.isLTR,!this.isRTL),m(t,e.isRTL,this.isRTL),m(t,e.isVertical,!this.isHorizontal),m(t,e.isHorizontal,this.isHorizontal);let n=this.option("viewport")||t.querySelector(`.${e.viewport}`);n||(n=document.createElement("div"),I(n,e.viewport),n.append(...V(t,`.${e.slide}`)),t.prepend(n)),n.addEventListener("scroll",this.onScroll);let i=this.option("track")||t.querySelector(`.${e.track}`);i||(i=document.createElement("div"),I(i,e.track),i.append(...Array.from(n.childNodes))),i.setAttribute("aria-live","polite"),n.contains(i)||n.prepend(i),this.viewport=n,this.track=i,this.emit("initLayout")}initSlides(){const{track:t}=this;if(!t)return;const e=[...this.slides],n=[];[...V(t,`.${this.cn(it)}`)].forEach(t=>{if(k(t)){const e=q({el:t,isDom:!0,index:this.slides.length});n.push(e)}});for(let t of[...this.option("slides",[])||[],...e])n.push(q(t));this.slides=n;for(let t=0;t<this.slides.length;t++)this.slides[t].index=t;for(const t of n)this.emit("beforeInitSlide",t,t.index),this.emit("initSlide",t,t.index);this.emit("initSlides")}setInitialPage(){const t=this.option("initialSlide");this.page="number"==typeof t?this.getPageForSlide(t):parseInt(this.option("initialPage",0)+"",10)||0}setInitialPosition(){const{track:t,pages:e,isHorizontal:n}=this;if(!t||!e.length)return;let i=this.page;e[i]||(this.page=i=0);const o=(e[i].pos||0)*(this.isRTL&&n?1:-1),s=n?`${o}px`:"0",a=n?"0":`${o}px`;t.style.transform=`translate3d(${s}, ${a}, 0) scale(1)`,this.option("adaptiveHeight")&&this.setViewportHeight()}initPanzoom(){this.panzoom&&(this.panzoom.destroy(),this.panzoom=null);const t=this.option("Panzoom")||{};this.panzoom=new j(this.viewport,w({},{content:this.track,zoom:!1,panOnlyZoomed:!1,lockAxis:this.isHorizontal?"x":"y",infinite:this.isInfinite,click:!1,dblClick:!1,touch:t=>!(this.pages.length<2&&!t.options.infinite),bounds:()=>this.getBounds(),maxVelocity:t=>Math.abs(t.target[this.axis]-t.current[this.axis])<2*this.viewportDim?100:0},t)),this.panzoom.on("*",(t,e,...n)=>{this.emit(`Panzoom.${e}`,t,...n)}),this.panzoom.on("decel",this.onDecel),this.panzoom.on("refresh",this.onRefresh),this.panzoom.on("beforeTransform",this.onBeforeTransform),this.panzoom.on("endAnimation",this.onEndAnimation)}attachEvents(){const t=this.container;t&&(t.addEventListener("click",this.onClick,{passive:!1,capture:!1}),t.addEventListener("slideTo",this.onSlideTo)),window.addEventListener("resize",this.onResize)}createPages(){let t=[];const{contentDim:e,viewportDim:n}=this;let i=this.option("slidesPerPage");i=("auto"===i||e<=n)&&!1!==this.option("fill")?1/0:parseFloat(i+"");let o=0,s=0,a=0;for(const e of this.slides)(!t.length||s+e.dim-n>.05||a>=i)&&(t.push(Z()),o=t.length-1,s=0,a=0),t[o].slides.push(e),s+=e.dim+e.gap,a++;return t}processPages(){const t=this.pages,{contentDim:e,viewportDim:n,isInfinite:i}=this,o=this.option("center"),s=this.option("fill"),a=s&&o&&e>n&&!i;if(t.forEach((t,i)=>{var s;t.index=i,t.pos=(null===(s=t.slides[0])||void 0===s?void 0:s.pos)||0,t.dim=0;for(const[e,n]of t.slides.entries())t.dim+=n.dim,e<t.slides.length-1&&(t.dim+=n.gap);a&&t.pos+.5*t.dim<.5*n?t.pos=0:a&&t.pos+.5*t.dim>=e-.5*n?t.pos=e-n:o&&(t.pos+=-.5*(n-t.dim))}),t.forEach(t=>{s&&!i&&e>n&&(t.pos=Math.max(t.pos,0),t.pos=Math.min(t.pos,e-n)),t.pos=l(t.pos,1e3),t.dim=l(t.dim,1e3),Math.abs(t.pos)<=.1&&(t.pos=0)}),i)return t;const r=[];let c;return t.forEach(t=>{const e=Object.assign({},t);c&&e.pos===c.pos?(c.dim+=e.dim,c.slides=[...c.slides,...e.slides]):(e.index=r.length,c=e,r.push(e))}),r}getPageFromIndex(t=0){const e=this.pages.length;let n;return t=parseInt((t||0).toString())||0,n=this.isInfinite?(t%e+e)%e:Math.max(Math.min(t,e-1),0),n}getSlideMetrics(t){var e,n;const i=this.isHorizontal?"width":"height";let o=0,s=0,a=t.el;const r=!(!a||a.parentNode);if(a?o=parseFloat(a.dataset[i]||"")||0:(a=document.createElement("div"),a.style.visibility="hidden",(this.track||document.body).prepend(a)),I(a,this.cn(it)+" "+t.class+" "+t.customClass),o)a.style[i]=`${o}px`,a.style["width"===i?"height":"width"]="";else{r&&(this.track||document.body).prepend(a),o=a.getBoundingClientRect()[i]*Math.max(1,(null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1);let t=a[this.isHorizontal?"offsetWidth":"offsetHeight"];t-1>o&&(o=t)}const c=getComputedStyle(a);return"content-box"===c.boxSizing&&(this.isHorizontal?(o+=parseFloat(c.paddingLeft)||0,o+=parseFloat(c.paddingRight)||0):(o+=parseFloat(c.paddingTop)||0,o+=parseFloat(c.paddingBottom)||0)),s=parseFloat(c[this.isHorizontal?"marginRight":"marginBottom"])||0,r?null===(n=a.parentElement)||void 0===n||n.removeChild(a):t.el||a.remove(),{dim:l(o,1e3),gap:l(s,1e3)}}getBounds(){const{isInfinite:t,isRTL:e,isHorizontal:n,pages:i}=this;let o={min:0,max:0};if(t)o={min:-1/0,max:1/0};else if(i.length){const t=i[0].pos,s=i[i.length-1].pos;o=e&&n?{min:t,max:s}:{min:-1*s,max:-1*t}}return{x:n?o:{min:0,max:0},y:n?{min:0,max:0}:o}}repositionSlides(){let t,{isHorizontal:e,isRTL:n,isInfinite:i,viewport:o,viewportDim:s,contentDim:a,page:r,pages:c,slides:d,panzoom:h}=this,u=0,m=0,p=0,g=0;h?g=-1*h.current[this.axis]:c[r]&&(g=c[r].pos||0),t=e?n?"right":"left":"top",n&&e&&(g*=-1);for(const e of d){const n=e.el;n?("top"===t?(n.style.right="",n.style.left=""):n.style.top="",e.index!==u?n.style[t]=0===m?"":`${l(m,1e3)}px`:n.style[t]="",p+=e.dim+e.gap,u++):m+=e.dim+e.gap}if(i&&p&&o){let n=getComputedStyle(o),i="padding",r=e?"Right":"Bottom",c=parseFloat(n[i+(e?"Left":"Top")]);g-=c,s+=c,s+=parseFloat(n[i+r]);for(const e of d)e.el&&(l(e.pos)<l(s)&&l(e.pos+e.dim+e.gap)<l(g)&&l(g)>l(a-s)&&(e.el.style[t]=`${l(m+p,1e3)}px`),l(e.pos+e.gap)>=l(a-s)&&l(e.pos)>l(g+s)&&l(g)<l(s)&&(e.el.style[t]=`-${l(p,1e3)}px`))}let f,b,v=[...this.inTransition];if(v.length>1&&(f=c[v[0]],b=c[v[1]]),f&&b){let e=0;for(const n of d)n.el?this.inTransition.has(n.index)&&f.slides.indexOf(n)<0&&(n.el.style[t]=`${l(e+(f.pos-b.pos),1e3)}px`):e+=n.dim+n.gap}}createSlideEl(t){const{track:e,slides:n}=this;if(!e||!t)return;if(t.el&&t.el.parentNode)return;const i=t.el||document.createElement("div");I(i,this.cn(it)),I(i,t.class),I(i,t.customClass);const o=t.html;o&&(o instanceof HTMLElement?i.appendChild(o):i.innerHTML=t.html+"");const s=[];n.forEach((t,e)=>{t.el&&s.push(e)});const a=t.index;let r=null;s.length&&(r=n[s.reduce((t,e)=>Math.abs(e-a)<Math.abs(t-a)?e:t)]);const l=r&&r.el&&r.el.parentNode?r.index<t.index?r.el.nextSibling:r.el:null;e.insertBefore(i,e.contains(l)?l:null),t.el=i,this.emit("createSlide",t)}removeSlideEl(t,e=!1){const n=null==t?void 0:t.el;if(!n||!n.parentNode)return;const i=this.cn(nt);if(n.classList.contains(i)&&(O(n,i),this.emit("unselectSlide",t)),t.isDom&&!e)return n.removeAttribute("aria-hidden"),n.removeAttribute("data-index"),void(n.style.left="");this.emit("removeSlide",t);const o=new CustomEvent(et);n.dispatchEvent(o),t.el&&(t.el.remove(),t.el=null)}transitionTo(t=0,e=this.option("transition")){var n,i,o,s;if(!e)return!1;const a=this.page,{pages:r,panzoom:l}=this;t=parseInt((t||0).toString())||0;const c=this.getPageFromIndex(t);if(!l||!r[c]||r.length<2||Math.abs(((null===(i=null===(n=r[a])||void 0===n?void 0:n.slides[0])||void 0===i?void 0:i.dim)||0)-this.viewportDim)>1)return!1;let d=t>a?1:-1;this.isInfinite&&(0===a&&t===r.length-1&&(d=-1),a===r.length-1&&0===t&&(d=1));const h=r[c].pos*(this.isRTL?1:-1);if(a===c&&Math.abs(h-l.target[this.axis])<1)return!1;this.clearTransitions();const u=l.isResting;I(this.container,this.cn("inTransition"));const m=(null===(o=r[a])||void 0===o?void 0:o.slides[0])||null,p=(null===(s=r[c])||void 0===s?void 0:s.slides[0])||null;this.inTransition.add(p.index),this.createSlideEl(p);let g=m.el,f=p.el;u||e===it||(e="fadeFast",g=null);const b=this.isRTL?"next":"prev",v=this.isRTL?"prev":"next";return g&&(this.inTransition.add(m.index),m.transition=e,g.addEventListener(et,this.onAnimationEnd),g.classList.add(`f-${e}Out`,`to-${d>0?v:b}`)),f&&(p.transition=e,f.addEventListener(et,this.onAnimationEnd),f.classList.add(`f-${e}In`,`from-${d>0?b:v}`)),l.current[this.axis]=h,l.target[this.axis]=h,l.requestTick(),this.onChange(c),!0}manageSlideVisiblity(){const t=new Set,e=new Set,n=this.getVisibleSlides(parseFloat(this.option("preload",0)+"")||0);for(const i of this.slides)n.has(i)?t.add(i):e.add(i);for(const e of this.inTransition)t.add(this.slides[e]);for(const e of t)this.createSlideEl(e),this.lazyLoadSlide(e);for(const n of e)t.has(n)||this.removeSlideEl(n);this.markSelectedSlides(),this.repositionSlides()}markSelectedSlides(){if(!this.pages[this.page]||!this.pages[this.page].slides)return;const t="aria-hidden";let e=this.cn(nt);if(e)for(const n of this.slides){const i=n.el;i&&(i.dataset.index=`${n.index}`,i.classList.contains("f-thumbs__slide")?this.getVisibleSlides(0).has(n)?i.removeAttribute(t):i.setAttribute(t,"true"):this.pages[this.page].slides.includes(n)?(i.classList.contains(e)||(I(i,e),this.emit("selectSlide",n)),i.removeAttribute(t)):(i.classList.contains(e)&&(O(i,e),this.emit("unselectSlide",n)),i.setAttribute(t,"true")))}}flipInfiniteTrack(){const{axis:t,isHorizontal:e,isInfinite:n,isRTL:i,viewportDim:o,contentDim:s}=this,a=this.panzoom;if(!a||!n)return;let r=a.current[t],l=a.target[t]-r,c=0,d=.5*o;i&&e?(r<-d&&(c=-1,r+=s),r>s-d&&(c=1,r-=s)):(r>d&&(c=1,r-=s),r<-s+d&&(c=-1,r+=s)),c&&(a.current[t]=r,a.target[t]=r+l)}lazyLoadImg(t,e){const n=this,i="f-fadeIn",o="is-preloading";let s=!1,a=null;const r=()=>{s||(s=!0,a&&(a.remove(),a=null),O(e,o),e.complete&&(I(e,i),setTimeout(()=>{O(e,i)},350)),this.option("adaptiveHeight")&&t.el&&this.pages[this.page].slides.indexOf(t)>-1&&(n.updateMetrics(),n.setViewportHeight()),this.emit("load",t))};I(e,o),e.src=e.dataset.lazySrcset||e.dataset.lazySrc||"",delete e.dataset.lazySrc,delete e.dataset.lazySrcset,e.addEventListener("error",()=>{r()}),e.addEventListener("load",()=>{r()}),setTimeout(()=>{const n=e.parentNode;n&&t.el&&(e.complete?r():s||(a=h(L),n.insertBefore(a,e)))},300)}lazyLoadSlide(t){const e=t&&t.el;if(!e)return;const n=new Set;let i=Array.from(e.querySelectorAll("[data-lazy-src],[data-lazy-srcset]"));e.dataset.lazySrc&&i.push(e),i.map(t=>{t instanceof HTMLImageElement?n.add(t):t instanceof HTMLElement&&t.dataset.lazySrc&&(t.style.backgroundImage=`url('${t.dataset.lazySrc}')`,delete t.dataset.lazySrc)});for(const e of n)this.lazyLoadImg(t,e)}onAnimationEnd(t){var e;const n=t.target,i=n?parseInt(n.dataset.index||"",10)||0:-1,o=this.slides[i],s=t.animationName;if(!n||!o||!s)return;const a=!!this.inTransition.has(i)&&o.transition;a&&s.substring(0,a.length+2)===`f-${a}`&&this.inTransition.delete(i),this.inTransition.size||this.clearTransitions(),i===this.page&&(null===(e=this.panzoom)||void 0===e?void 0:e.isResting)&&this.emit("settle")}onDecel(t,e=0,n=0,i=0,o=0){if(this.option("dragFree"))return void this.setPageFromPosition();const{isRTL:s,isHorizontal:a,axis:r,pages:l}=this,c=l.length,d=Math.abs(Math.atan2(n,e)/(Math.PI/180));let h=0;if(h=d>45&&d<135?a?0:n:a?e:0,!c)return;let u=this.page,m=s&&a?1:-1;const p=t.current[r]*m;let{pageIndex:g}=this.getPageFromPosition(p);Math.abs(h)>5?(l[u].dim<document.documentElement["client"+(this.isHorizontal?"Width":"Height")]-1&&(u=g),u=s&&a?h<0?u-1:u+1:h<0?u+1:u-1):u=0===i&&0===o?u:g,this.slideTo(u,{transition:!1,friction:t.option("decelFriction")})}onClick(t){const e=t.target,n=e&&k(e)?e.dataset:null;let i,o;n&&(void 0!==n.carouselPage?(o="slideTo",i=n.carouselPage):void 0!==n.carouselNext?o="slideNext":void 0!==n.carouselPrev&&(o="slidePrev")),o?(t.preventDefault(),t.stopPropagation(),e&&!e.hasAttribute("disabled")&&this[o](i)):this.emit("click",t)}onSlideTo(t){const e=t.detail||0;this.slideTo(this.getPageForSlide(e),{friction:0})}onChange(t,e=0){const n=this.page;this.prevPage=n,this.page=t,this.option("adaptiveHeight")&&this.setViewportHeight(),t!==n&&(this.markSelectedSlides(),this.emit("change",t,n,e))}onRefresh(){let t=this.contentDim,e=this.viewportDim;this.updateMetrics(),this.contentDim===t&&this.viewportDim===e||this.slideTo(this.page,{friction:0,transition:!1})}onScroll(){var t;null===(t=this.viewport)||void 0===t||t.scroll(0,0)}onResize(){this.option("breakpoints")&&this.processOptions()}onBeforeTransform(t){this.lp!==t.current[this.axis]&&(this.flipInfiniteTrack(),this.manageSlideVisiblity()),this.lp=t.current.e}onEndAnimation(){this.inTransition.size||this.emit("settle")}reInit(t=null,e=null){this.destroy(),this.state=W.Init,this.prevPage=null,this.userOptions=t||this.userOptions,this.userPlugins=e||this.userPlugins,this.processOptions()}slideTo(t=0,{friction:e=this.option("friction"),transition:n=this.option("transition")}={}){if(this.state===W.Destroy)return;t=parseInt((t||0).toString())||0;const i=this.getPageFromIndex(t),{axis:o,isHorizontal:s,isRTL:a,pages:r,panzoom:l}=this,c=r.length,d=a&&s?1:-1;if(!l||!c)return;if(this.page!==i){const e=new Event("beforeChange",{bubbles:!0,cancelable:!0});if(this.emit("beforeChange",e,t),e.defaultPrevented)return}if(this.transitionTo(t,n))return;let h=r[i].pos;if(this.isInfinite){const e=this.contentDim,n=l.target[o]*d;2===c?h+=e*Math.floor(parseFloat(t+"")/2):h=[h,h-e,h+e].reduce(function(t,e){return Math.abs(e-n)<Math.abs(t-n)?e:t})}h*=d,Math.abs(l.target[o]-h)<1||(l.panTo({x:s?h:0,y:s?0:h,friction:e}),this.onChange(i))}slideToClosest(t){if(this.panzoom){const{pageIndex:e}=this.getPageFromPosition();this.slideTo(e,t)}}slideNext(){this.slideTo(this.page+1)}slidePrev(){this.slideTo(this.page-1)}clearTransitions(){this.inTransition.clear(),O(this.container,this.cn("inTransition"));const t=["to-prev","to-next","from-prev","from-next"];for(const e of this.slides){const n=e.el;if(n){n.removeEventListener(et,this.onAnimationEnd),n.classList.remove(...t);const i=e.transition;i&&n.classList.remove(`f-${i}Out`,`f-${i}In`)}}this.manageSlideVisiblity()}addSlide(t,e){var n,i,o,s;const a=this.panzoom,r=(null===(n=this.pages[this.page])||void 0===n?void 0:n.pos)||0,l=(null===(i=this.pages[this.page])||void 0===i?void 0:i.dim)||0,c=this.contentDim<this.viewportDim;let d=Array.isArray(e)?e:[e];const h=[];for(const t of d)h.push(q(t));this.slides.splice(t,0,...h);for(let t=0;t<this.slides.length;t++)this.slides[t].index=t;for(const t of h)this.emit("beforeInitSlide",t,t.index);if(this.page>=t&&(this.page+=h.length),this.updateMetrics(),a){const e=(null===(o=this.pages[this.page])||void 0===o?void 0:o.pos)||0,n=(null===(s=this.pages[this.page])||void 0===s?void 0:s.dim)||0,i=this.pages.length||1,d=this.isRTL?l-n:n-l,h=this.isRTL?r-e:e-r;c&&1===i?(t<=this.page&&(a.current[this.axis]-=d,a.target[this.axis]-=d),a.panTo({[this.isHorizontal?"x":"y"]:-1*e})):h&&t<=this.page&&(a.target[this.axis]-=h,a.current[this.axis]-=h,a.requestTick())}for(const t of h)this.emit("initSlide",t,t.index)}prependSlide(t){this.addSlide(0,t)}appendSlide(t){this.addSlide(this.slides.length,t)}removeSlide(t){const e=this.slides.length;t=(t%e+e)%e;const n=this.slides[t];if(n){this.removeSlideEl(n,!0),this.slides.splice(t,1);for(let t=0;t<this.slides.length;t++)this.slides[t].index=t;this.updateMetrics(),this.slideTo(this.page,{friction:0,transition:!1}),this.emit("destroySlide",n)}}updateMetrics(){const{panzoom:t,viewport:e,track:n,slides:i,isHorizontal:o,isInfinite:s}=this;if(!n)return;const a=o?"width":"height",r=o?"offsetWidth":"offsetHeight";if(e){let t=Math.max(e[r],l(e.getBoundingClientRect()[a],1e3)),n=getComputedStyle(e),i="padding",s=o?"Right":"Bottom";t-=parseFloat(n[i+(o?"Left":"Top")])+parseFloat(n[i+s]),this.viewportDim=t}let c,d=0;for(const[t,e]of i.entries()){let n=0,o=0;!e.el&&c?(n=c.dim,o=c.gap):(({dim:n,gap:o}=this.getSlideMetrics(e)),c=e),n=l(n,1e3),o=l(o,1e3),e.dim=n,e.gap=o,e.pos=d,d+=n,(s||t<i.length-1)&&(d+=o)}d=l(d,1e3),this.contentDim=d,t&&(t.contentRect[a]=d,t.contentRect[o?"fullWidth":"fullHeight"]=d),this.pages=this.createPages(),this.pages=this.processPages(),this.state===W.Init&&this.setInitialPage(),this.page=Math.max(0,Math.min(this.page,this.pages.length-1)),this.manageSlideVisiblity(),this.emit("refresh")}getProgress(t,e=!1,n=!1){void 0===t&&(t=this.page);const i=this,o=i.panzoom,s=i.contentDim,a=i.pages[t]||0;if(!a||!o)return t>this.page?-1:1;let r=-1*o.current.e,c=l((r-a.pos)/(1*a.dim),1e3),d=c,h=c;this.isInfinite&&!0!==n&&(d=l((r-a.pos+s)/(1*a.dim),1e3),h=l((r-a.pos-s)/(1*a.dim),1e3));let u=[c,d,h].reduce(function(t,e){return Math.abs(e)<Math.abs(t)?e:t});return e?u:u>1?1:u<-1?-1:u}setViewportHeight(){const{page:t,pages:e,viewport:n,isHorizontal:i}=this;if(!n||!e[t])return;let o=0;i&&this.track&&(this.track.style.height="auto",e[t].slides.forEach(t=>{t.el&&(o=Math.max(o,t.el.offsetHeight))})),n.style.height=o?`${o}px`:""}getPageForSlide(t){for(const e of this.pages)for(const n of e.slides)if(n.index===t)return e.index;return-1}getVisibleSlides(t=0){var e;const n=new Set;let{panzoom:i,contentDim:o,viewportDim:s,pages:a,page:r}=this;if(s){o=o+(null===(e=this.slides[this.slides.length-1])||void 0===e?void 0:e.gap)||0;let l=0;l=i&&i.state!==M.Init&&i.state!==M.Destroy?-1*i.current[this.axis]:a[r]&&a[r].pos||0,this.isInfinite&&(l-=Math.floor(l/o)*o),this.isRTL&&this.isHorizontal&&(l*=-1);const c=l-s*t,d=l+s*(t+1),h=this.isInfinite?[-1,0,1]:[0];for(const t of this.slides)for(const e of h){const i=t.pos+e*o,s=i+t.dim+t.gap;i<d&&s>c&&n.add(t)}}return n}getPageFromPosition(t){const{viewportDim:e,contentDim:n,slides:i,pages:o,panzoom:s}=this,a=o.length,r=i.length,l=i[0],c=i[r-1],d=this.option("center");let h=0,u=0,m=0,p=void 0===t?-1*((null==s?void 0:s.target[this.axis])||0):t;d&&(p+=.5*e),this.isInfinite?(p<l.pos-.5*c.gap&&(p-=n,m=-1),p>c.pos+c.dim+.5*c.gap&&(p-=n,m=1)):p=Math.max(l.pos||0,Math.min(p,c.pos));let g=c,f=i.find(t=>{const e=t.pos-.5*g.gap,n=t.pos+t.dim+.5*t.gap;return g=t,p>=e&&p<n});return f||(f=c),u=this.getPageForSlide(f.index),h=u+m*a,{page:h,pageIndex:u}}setPageFromPosition(){const{pageIndex:t}=this.getPageFromPosition();this.onChange(t)}destroy(){if([W.Destroy].includes(this.state))return;this.state=W.Destroy;const{container:t,viewport:e,track:n,slides:i,panzoom:o}=this,s=this.option("classes");t.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),t.removeEventListener("slideTo",this.onSlideTo),window.removeEventListener("resize",this.onResize),o&&(o.destroy(),this.panzoom=null),i&&i.forEach(t=>{this.removeSlideEl(t)}),this.detachPlugins(),e&&(e.removeEventListener("scroll",this.onScroll),e.offsetParent&&n&&n.offsetParent&&e.replaceWith(...n.childNodes));for(const[e,n]of Object.entries(s))"container"!==e&&n&&t.classList.remove(n);this.track=null,this.viewport=null,this.page=0,this.slides=[];const a=this.events.get("ready");this.events=new Map,a&&this.events.set("ready",a)}}Object.defineProperty(ot,"Panzoom",{enumerable:!0,configurable:!0,writable:!0,value:j}),Object.defineProperty(ot,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{viewport:null,track:null,enabled:!0,slides:[],axis:"x",transition:"fade",preload:1,slidesPerPage:"auto",initialPage:0,friction:.12,Panzoom:{decelFriction:.12},center:!0,infinite:!0,fill:!0,dragFree:!1,adaptiveHeight:!1,direction:"ltr",classes:{container:"f-carousel",viewport:"f-carousel__viewport",track:"f-carousel__track",slide:"f-carousel__slide",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",inTransition:"in-transition",isSelected:"is-selected"},l10n:{NEXT:"Next slide",PREV:"Previous slide",GOTO:"Go to slide #%d"}}}),Object.defineProperty(ot,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:tt});const st=function(t){if(!k(t))return 0;const e=window.scrollY,n=window.innerHeight,i=e+n,o=t.getBoundingClientRect(),s=o.y+e,a=o.height,r=s+a;if(e>r||i<s)return 0;if(e<s&&i>r)return 100;if(s<e&&r>i)return 100;let l=a;s<e&&(l-=e-s),r>i&&(l-=r-i);const c=l/n*100;return Math.round(c)},at=!("undefined"==typeof window||!window.document||!window.document.createElement);let rt;const lt=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden]):not(.fancybox-focus-guard)","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not
2([tabindex^="-"]):not([disabled]):not([aria-hidden])'].join(","),ct=t=>{if(t&&at){void 0===rt&&document.createElement("div").focus({get preventScroll(){return rt=!0,!1}});try{if(rt)t.focus({preventScroll:!0});else{const e=window.scrollY||document.body.scrollTop,n=window.scrollX||document.body.scrollLeft;t.focus(),document.body.scrollTo({top:e,left:n,behavior:"auto"})}}catch(t){}}},dt=()=>{const t=document;let e,n="",i="",o="";return t.fullscreenEnabled?(n="requestFullscreen",i="exitFullscreen",o="fullscreenElement"):t.webkitFullscreenEnabled&&(n="webkitRequestFullscreen",i="webkitExitFullscreen",o="webkitFullscreenElement"),n&&(e={request:function(e=t.documentElement){return"webkitRequestFullscreen"===n?e[n](Element.ALLOW_KEYBOARD_INPUT):e[n]()},exit:function(){return t[o]&&t[i]()},isFullscreen:function(){return t[o]}}),e},ht={animated:!0,autoFocus:!0,backdropClick:"close",Carousel:{classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",track:"fancybox__track",slide:"fancybox__slide"}},closeButton:"auto",closeExisting:!1,commonCaption:!1,compact:()=>window.matchMedia("(max-width: 578px), (max-height: 578px)").matches,contentClick:"toggleZoom",contentDblClick:!1,defaultType:"image",defaultDisplay:"flex",dragToClose:!0,Fullscreen:{autoStart:!1},groupAll:!1,groupAttr:"data-fancybox",hideClass:"f-fadeOut",hideScrollbar:!0,idle:3500,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},l10n:Object.assign(Object.assign({},S),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ERROR:"Something Went Wrong, Please Try Again Later",IMAGE_ERROR:"Image Not Found",ELEMENT_NOT_FOUND:"HTML Element Not Found",AJAX_NOT_FOUND:"Error Loading AJAX : Not Found",AJAX_FORBIDDEN:"Error Loading AJAX : Forbidden",IFRAME_ERROR:"Error Loading Page",TOGGLE_ZOOM:"Toggle zoom level",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_SLIDESHOW:"Toggle slideshow",TOGGLE_FULLSCREEN:"Toggle full-screen mode",DOWNLOAD:"Download"}),parentEl:null,placeFocusBack:!0,showClass:"f-zoomInUp",startIndex:0,tpl:{closeButton:'<button data-fancybox-close class="f-button is-close-btn" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M20 20L4 4m16 0L4 20"/></svg></button>',main:'<div class="fancybox__container" role="dialog" aria-modal="true" aria-label="{{MODAL}}" tabindex="-1">\n    <div class="fancybox__backdrop"></div>\n    <div class="fancybox__carousel"></div>\n    <div class="fancybox__footer"></div>\n  </div>'},trapFocus:!0,wheel:"zoom"};var ut,mt;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Closing=2]="Closing",t[t.CustomClosing=3]="CustomClosing",t[t.Destroy=4]="Destroy"}(ut||(ut={})),function(t){t[t.Loading=0]="Loading",t[t.Opening=1]="Opening",t[t.Ready=2]="Ready",t[t.Closing=3]="Closing"}(mt||(mt={}));let pt="",gt=!1,ft=!1,bt=null;const vt=()=>{let t="",e="";const n=Oe.getInstance();if(n){const i=n.carousel,o=n.getSlide();if(i&&o){let s=o.slug||void 0,a=o.triggerEl||void 0;e=s||n.option("slug")||"",!e&&a&&a.dataset&&(e=a.dataset.fancybox||""),e&&"true"!==e&&(t="#"+e+(!s&&i.slides.length>1?"-"+(o.index+1):""))}}return{hash:t,slug:e,index:1}},yt=()=>{const t=new URL(document.URL).hash,e=t.slice(1).split("-"),n=e[e.length-1],i=n&&/^\+?\d+$/.test(n)&&parseInt(e.pop()||"1",10)||1;return{hash:t,slug:e.join("-"),index:i}},wt=()=>{const{slug:t,index:e}=yt();if(!t)return;let n=document.querySelector(`[data-slug="${t}"]`);if(n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),Oe.getInstance())return;const i=document.querySelectorAll(`[data-fancybox="${t}"]`);i.length&&(n=i[e-1],n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))},xt=()=>{if(!1===Oe.defaults.Hash)return;const t=Oe.getInstance();if(!1===(null==t?void 0:t.options.Hash))return;const{slug:e,index:n}=yt(),{slug:i}=vt();t&&(e===i?t.jumpTo(n-1):(gt=!0,t.close())),wt()},Et=()=>{bt&&clearTimeout(bt),queueMicrotask(()=>{xt()})},Ct=()=>{window.addEventListener("hashchange",Et,!1),setTimeout(()=>{xt()},500)};at&&(/complete|interactive|loaded/.test(document.readyState)?Ct():document.addEventListener("DOMContentLoaded",Ct));const Mt="is-zooming-in";class Pt extends X{onCreateSlide(t,e,n){const i=this.instance.optionFor(n,"src")||"";n.el&&"image"===n.type&&"string"==typeof i&&this.setImage(n,i)}onRemoveSlide(t,e,n){n.panzoom&&n.panzoom.destroy(),n.panzoom=void 0,n.imageEl=void 0}onChange(t,e,n,i){O(this.instance.container,Mt);for(const t of e.slides){const e=t.panzoom;e&&t.index!==n&&e.reset(.35)}}onClose(){var t;const e=this.instance,n=e.container,i=e.getSlide();if(!n||!n.parentElement||!i)return;const{el:o,contentEl:s,panzoom:a,thumbElSrc:r}=i;if(!o||!r||!s||!a||a.isContentLoading||a.state===M.Init||a.state===M.Destroy)return;a.updateMetrics();let l=this.getZoomInfo(i);if(!l)return;this.instance.state=ut.CustomClosing,n.classList.remove(Mt),n.classList.add("is-zooming-out"),s.style.backgroundImage=`url('${r}')`;const c=n.getBoundingClientRect();
vendor: 40,287 bytes, line 2
21===((null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1)&&Object.assign(n.style,{position:"absolute",top:`${n.offsetTop+window.scrollY}px`,left:`${n.offsetLeft+window.scrollX}px`,bottom:"auto",right:"auto",width:`${c.width}px`,height:`${c.height}px`,overflow:"hidden"});const{x:d,y:h,scale:u,opacity:m}=l;if(m){const t=((t,e)=>{const n=e-t;return e=>1+((e-t)/n*-1||0)})(a.scale,u);a.on("afterTransform",()=>{s.style.opacity=t(a.scale)+""})}a.on("endAnimation",()=>{e.destroy()}),a.target.a=u,a.target.b=0,a.target.c=0,a.target.d=u,a.panTo({x:d,y:h,scale:u,friction:m?.2:.33,ignoreBounds:!0}),a.isResting&&e.destroy()}setImage(t,e){const n=this.instance;t.src=e,this.process(t,e).then(e=>{const{contentEl:i,imageEl:o,thumbElSrc:s,el:a}=t;if(n.isClosing()||!i||!o)return;i.offsetHeight;const r=!!n.isOpeningSlide(t)&&this.getZoomInfo(t);if(this.option("protected")&&a){a.addEventListener("contextmenu",t=>{t.preventDefault()});const t=document.createElement("div");I(t,"fancybox-protected"),i.appendChild(t)}if(s&&r){const o=e.contentRect,a=Math.max(o.fullWidth,o.fullHeight);let c=null;!r.opacity&&a>1200&&(c=document.createElement("img"),I(c,"fancybox-ghost"),c.src=s,i.appendChild(c));const d=()=>{c&&(I(c,"f-fadeFastOut"),setTimeout(()=>{c&&(c.remove(),c=null)},200))};(l=s,new Promise((t,e)=>{const n=new Image;n.onload=t,n.onerror=e,n.src=l})).then(()=>{n.hideLoading(t),t.state=mt.Opening,this.instance.emit("reveal",t),this.zoomIn(t).then(()=>{d(),this.instance.done(t)},()=>{}),c&&setTimeout(()=>{d()},a>2500?800:200)},()=>{n.hideLoading(t),n.revealContent(t)})}else{const i=this.optionFor(t,"initialSize"),o=this.optionFor(t,"zoom"),s={event:n.prevMouseMoveEvent||n.options.event,friction:o?.12:0};let a=n.optionFor(t,"showClass")||void 0,r=!0;n.isOpeningSlide(t)&&("full"===i?e.zoomToFull(s):"cover"===i?e.zoomToCover(s):"max"===i?e.zoomToMax(s):r=!1,e.stop("current")),r&&a&&(a=e.isDragging?"f-fadeIn":""),n.hideLoading(t),n.revealContent(t,a)}var l},()=>{n.setError(t,"{{IMAGE_ERROR}}")})}process(t,e){return new Promise((n,i)=>{var o;const s=this.instance,a=t.el;s.clearContent(t),s.showLoading(t);let r=this.optionFor(t,"content");if("string"==typeof r&&(r=h(r)),!r||!k(r)){if(r=document.createElement("img"),r instanceof HTMLImageElement){let n="",i=t.caption;n="string"==typeof i&&i?i.replace(/<[^>]+>/gi,"").substring(0,1e3):`Image ${t.index+1} of ${(null===(o=s.carousel)||void 0===o?void 0:o.pages.length)||1}`,r.src=e||"",r.alt=n,r.draggable=!1,t.srcset&&r.setAttribute("srcset",t.srcset),this.instance.isOpeningSlide(t)&&(r.fetchPriority="high")}t.sizes&&r.setAttribute("sizes",t.sizes)}I(r,"fancybox-image"),t.imageEl=r,s.setContent(t,r,!1),t.panzoom=new j(a,w({transformParent:!0},this.option("Panzoom")||{},{content:r,width:(e,n)=>s.optionFor(t,"width","auto",n)||"auto",height:(e,n)=>s.optionFor(t,"height","auto",n)||"auto",wheel:()=>{const t=s.option("wheel");return("zoom"===t||"pan"==t)&&t},click:(e,n)=>{var i,o;if(s.isCompact||s.isClosing())return!1;if(t.index!==(null===(i=s.getSlide())||void 0===i?void 0:i.index))return!1;if(n){const t=n.composedPath()[0];if(["A","BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].includes(t.nodeName))return!1}let a=!n||n.target&&(null===(o=t.contentEl)||void 0===o?void 0:o.contains(n.target));return s.option(a?"contentClick":"backdropClick")||!1},dblClick:()=>s.isCompact?"toggleZoom":s.option("contentDblClick")||!1,spinner:!1,panOnlyZoomed:!0,wheelLimit:1/0,on:{ready:t=>{n(t)},error:()=>{i()},destroy:()=>{i()}}}))})}zoomIn(t){return new Promise((e,n)=>{const i=this.instance,o=i.container,{panzoom:s,contentEl:a,el:r}=t;s&&s.updateMetrics();const l=this.getZoomInfo(t);if(!(l&&r&&a&&s&&o))return void n();const{x:c,y:d,scale:h,opacity:u}=l,m=()=>{t.state!==mt.Closing&&(u&&(a.style.opacity=Math.max(Math.min(1,1-(1-s.scale)/(1-h)),0)+""),s.scale>=1&&s.scale>s.targetScale-.1&&e(s))},p=t=>{(t.scale<.99||t.scale>1.01)&&!t.isDragging||(O(o,Mt),a.style.opacity="",t.off("endAnimation",p),t.off("touchStart",p),t.off("afterTransform",m),e(t))};s.on("endAnimation",p),s.on("touchStart",p),s.on("afterTransform",m),s.on(["error","destroy"],()=>{n()}),s.panTo({x:c,y:d,scale:h,friction:0,ignoreBounds:!0}),s.stop("current");const g={event:"mousemove"===s.panMode?i.prevMouseMoveEvent||i.options.event:void 0},f=this.optionFor(t,"initialSize");I(o,Mt),i.hideLoading(t),"full"===f?s.zoomToFull(g):"cover"===f?s.zoomToCover(g):"max"===f?s.zoomToMax(g):s.reset(.172)})}getZoomInfo(t){const{el:e,imageEl:n,thumbEl:i,panzoom:o}=t,s=this.instance,a=s.container;if(!e||!n||!i||!o||st(i)<3||!this.optionFor(t,"zoom")||!a||s.state===ut.Destroy)return!1;if("0"===getComputedStyle(a).getPropertyValue("--f-images-zoom"))return!1;const r=window.visualViewport||null;if(1!==(r?r.scale:1))return!1;let{top:l,left:c,width:d,height:h}=i.getBoundingClientRect(),{top:u,left:m,fitWidth:p,fitHeight:g}=o.contentRect;if(!(d&&h&&p&&g))return!1;const f=o.container.getBoundingClientRect();m+=f.left,u+=f.top;const b=-1*(m+.5*p-(c+.5*d)),v=-1*(u+.5*g-(l+.5*h)),y=d/p;let w=this.option("zoomOpacity")||!1;return"auto"===w&&(w=Math.abs(d/h-p/g)>.1),{x:b,y:v,scale:y,opacity:w}}attach(){const t=this,e=t.instance;e.on("Carousel.change",t.onChange),e.on("Carousel.createSlide",t.onCreateSlide),e.on("Carousel.removeSlide",t.onRemoveSlide),e.on("close",t.onClose)}detach(){const t=this,e=t.instance;e.off("Carousel.change",t.onChange),e.off("Carousel.createSlide",t.onCreateSlide),e.off("Carousel.removeSlide",t.onRemoveSlide),e.off("close",t.onClose)}}Object.defineProperty(Pt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{initialSize:"fit",Panzoom:{maxScale:1},protected:!1,zoom:!0,zoomOpacity:"auto"}}),"function"==typeof SuppressedError&&SuppressedError;const St="html",Tt="image",At="map",Lt="youtube",kt="vimeo",Ot="html5video",It=(t,e={})=>{const n=new URL(t),i=new URLSearchParams(n.search),o=new URLSearchParams;for(const[t,n]of[...i,...Object.entries(e)]){let e=n+"";if("t"===t){let t=e.match(/((\d*)m)?(\d*)s?/);t&&o.set("start",60*parseInt(t[2]||"0")+parseInt(t[3]||"0")+"")}else o.set(t,e)}let s=o+"",a=t.match(/#t=((.*)?\d+s)/);return a&&(s+=`#t=${a[1]}`),s},zt=["image","html","ajax","inline","clone","iframe","map","pdf","html5video","youtube","vimeo"];class $t extends X{onBeforeInitSlide(t,e,n){this.processType(n)}onCreateSlide(t,e,n){this.setContent(n)}onClearContent(t,e){e.xhr&&(e.xhr.abort(),e.xhr=null);const n=e.iframeEl;n&&(n.onload=n.onerror=null,n.src="//about:blank",e.iframeEl=null);const i=e.contentEl,o=e.placeholderEl;if("inline"===e.type&&i&&o)i.classList.remove("fancybox__content"),"none"!==getComputedStyle(i).getPropertyValue("display")&&(i.style.display="none"),setTimeout(()=>{o&&(i&&o.parentNode&&o.parentNode.insertBefore(i,o),o.remove())},0),e.contentEl=void 0,e.placeholderEl=void 0;else for(;e.el&&e.el.firstChild;)e.el.removeChild(e.el.firstChild)}onSelectSlide(t,e,n){n.state===mt.Ready&&this.playVideo()}onUnselectSlide(t,e,n){var i,o;if(n.type===Ot){try{null===(o=null===(i=n.el)||void 0===i?void 0:i.querySelector("video"))||void 0===o||o.pause()}catch(t){}return}let s;n.type===kt?s={method:"pause",value:"true"}:n.type===Lt&&(s={event:"command",func:"pauseVideo"}),s&&n.iframeEl&&n.iframeEl.contentWindow&&n.iframeEl.contentWindow.postMessage(JSON.stringify(s),"*"),n.poller&&clearTimeout(n.poller)}onDone(t,e){t.isCurrentSlide(e)&&!t.isClosing()&&this.playVideo()}onRefresh(t,e){e.slides.forEach(t=>{t.el&&(this.resizeIframe(t),this.setAspectRatio(t))})}onMessage(t){try{let e=JSON.parse(t.data);if("https://player.vimeo.com"===t.origin){if("ready"===e.event)for(let e of Array.from(document.getElementsByClassName("fancybox__iframe")))e instanceof HTMLIFrameElement&&e.contentWindow===t.source&&(e.dataset.ready="true")}else if(t.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&"onReady"===e.event){const t=document.getElementById(e.id);t&&(t.dataset.ready="true")}}catch(t){}}loadAjaxContent(t){const e=this.instance.optionFor(t,"src")||"";this.instance.showLoading(t);const n=this.instance,i=new XMLHttpRequest;n.showLoading(t),i.onreadystatechange=function(){i.readyState===XMLHttpRequest.DONE&&n.state===ut.Ready&&(n.hideLoading(t),200===i.status?n.setContent(t,i.responseText):n.setError(t,404===i.status?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))};const o=t.ajax||null;i.open(o?"POST":"GET",e+""),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.send(o),t.xhr=i}setInlineContent(t){let e=null;if(k(t.src))e=t.src;else if("string"==typeof t.src){const n=t.src.split("#",2).pop();e=n?document.getElementById(n):null}if(e){if("clone"===t.type||e.closest(".fancybox__slide")){e=e.cloneNode(!0);const n=e.dataset.animationName;n&&(e.classList.remove(n),delete e.dataset.animationName);let i=e.getAttribute("id");i=i?`${i}--clone`:`clone-${this.instance.id}-${t.index}`,e.setAttribute("id",i)}else if(e.parentNode){const n=document.createElement("div");n.classList.add("fancybox-placeholder"),e.parentNode.insertBefore(n,e),t.placeholderEl=n}this.instance.setContent(t,e)}else this.instance.setError(t,"{{ELEMENT_NOT_FOUND}}")}setIframeContent(t){const{src:e,el:n}=t;if(!e||"string"!=typeof e||!n)return;n.classList.add("is-loading");const i=this.instance,o=document.createElement("iframe");o.className="fancybox__iframe",o.setAttribute("id",`fancybox__iframe_${i.id}_${t.index}`);for(const[e,n]of Object.entries(this.optionFor(t,"iframeAttr")||{}))o.setAttribute(e,n);o.onerror=()=>{i.setError(t,"{{IFRAME_ERROR}}")},t.iframeEl=o;const s=this.optionFor(t,"preload");if("iframe"!==t.type||!1===s)return o.setAttribute("src",t.src+""),i.setContent(t,o,!1),this.resizeIframe(t),void i.revealContent(t);i.showLoading(t),o.onload=()=>{if(!o.src.length)return;const e="true"!==o.dataset.ready;o.dataset.ready="true",this.resizeIframe(t),e?i.revealContent(t):i.hideLoading(t)},o.setAttribute("src",e),i.setContent(t,o,!1)}resizeIframe(t){const{type:e,iframeEl:n}=t;if(e===Lt||e===kt)return;const i=null==n?void 0:n.parentElement;if(!n||!i)return;let o=t.autoSize;void 0===o&&(o=this.optionFor(t,"autoSize"));let s=t.width||0,a=t.height||0;s&&a&&(o=!1);const r=i&&i.style;if(!1!==t.preload&&!1!==o&&r)try{const t=window.getComputedStyle(i),e=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),o=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),l=n.contentWindow;if(l){const t=l.document,n=t.getElementsByTagName(St)[0],i=t.body;r.width="",i.style.overflow="hidden",s=s||n.scrollWidth+e,r.width=`${s}px`,i.style.overflow="",r.flex="0 0 auto",r.height=`${i.scrollHeight}px`,a=n.scrollHeight+o}}catch(t){}if(s||a){const t={flex:"0 1 auto",width:"",height:""};s&&"auto"!==s&&(t.width=`${s}px`),a&&"auto"!==a&&(t.height=`${a}px`),Object.assign(r,t)}}playVideo(){const t=this.instance.getSlide();if(!t)return;const{el:e}=t;if(!e||!e.offsetParent)return;if(!this.optionFor(t,"videoAutoplay"))return;if(t.type===Ot)try{const t=e.querySelector("video");if(t){const e=t.play();void 0!==e&&e.then(()=>{}).catch(e=>{t.muted=!0,t.play()})}}catch(t){}if(t.type!==Lt&&t.type!==kt)return;const n=()=>{if(t.iframeEl&&t.iframeEl.contentWindow){let e;if("true"===t.iframeEl.dataset.ready)return e=t.type===Lt?{event:"command",func:"playVideo"}:{method:"play",value:"true"},e&&t.iframeEl.contentWindow.postMessage(JSON.stringify(e),"*"),void(t.poller=void 0);t.type===Lt&&(e={event:"listening",id:t.iframeEl.getAttribute("id")},t.iframeEl.contentWindow.postMessage(JSON.stringify(e),"*"))}t.poller=setTimeout(n,250)};n()}processType(t){if(t.html)return t.type=St,t.src=t.html,void(t.html="");const e=this.instance.optionFor(t,"src","");if(!e||"string"!=typeof e)return;let n=t.type,i=null;if(i=e.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){const o=this.optionFor(t,Lt),{nocookie:s}=o,a=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(n[i[o]]=t[i[o]])}return n}(o,["nocookie"]),r=`www.youtube${s?"-nocookie":""}.com`,l=It(e,a),c=encodeURIComponent(i[2]);t.videoId=c,t.src=`https://${r}/embed/${c}?${l}`,t.thumbSrc=t.thumbSrc||`https://i.ytimg.com/vi/${c}/mqdefault.jpg`,n=Lt}else if(i=e.match(/^.+vimeo.com\/(?:\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/)){const o=It(e,this.optionFor(t,kt)),s=encodeURIComponent(i[1]),a=i[4]||"";t.videoId=s,t.src=`https://player.vimeo.com/video/${s}?${a?`h=${a}${o?"&":""}`:""}${o}`,n=kt}if(!n&&t.triggerEl){const e=t.triggerEl.dataset.type;zt.includes(e)&&(n=e)}n||"string"==typeof e&&("#"===e.charAt(0)?n="inline":(i=e.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(n=Ot,t.videoFormat=t.videoFormat||"video/"+("ogv"===i[1]?"ogg":i[1])):e.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?n=Tt:e.match(/\.(pdf)((\?|#).*)?$/i)&&(n="pdf")),(i=e.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i))?(t.src=`https://maps.google.${i[1]}/?ll=${(i[2]?i[2]+"&z="+Math.floor(parseFloat(i[3]))+(i[4]?i[4].replace(/^\//,"&"):""):i[4]+"").replace(/\?/,"&")}&output=${i[4]&&i[4].indexOf("layer=c")>0?"svembed":"embed"}`,n=At):(i=e.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(t.src=`https://maps.google.${i[1]}/maps?q=${i[2].replace("query=","q=").replace("api=1","")}&output=embed`,n=At),n=n||this.instance.option("defaultType"),t.type=n,n===Tt&&(t.thumbSrc=t.thumbSrc||t.src)}setContent(t){const e=this.instance.optionFor(t,"src")||"";if(t&&t.type&&e){switch(t.type){case St:this.instance.setContent(t,e);break;case Ot:const n=this.option("videoTpl");n&&this.instance.setContent(t,n.replace(/\{\{src\}\}/gi,e+"").replace(/\{\{format\}\}/gi,this.optionFor(t,"videoFormat")||"").replace(/\{\{poster\}\}/gi,t.poster||t.thumbSrc||""));break;case"inline":case"clone":this.setInlineContent(t);break;case"ajax":this.loadAjaxContent(t);break;case"pdf":case At:case Lt:case kt:t.preload=!1;case"iframe":this.setIframeContent(t)}this.setAspectRatio(t)}}setAspectRatio(t){const e=t.contentEl;if(!(t.el&&e&&t.type&&[Lt,kt,Ot].includes(t.type)))return;let n,i=t.width||"auto",o=t.height||"auto";if("auto"===i||"auto"===o){n=this.optionFor(t,"videoRatio");const e=(n+"").match(/(\d+)\s*\/\s?(\d+)/);n=e&&e.length>2?parseFloat(e[1])/parseFloat(e[2]):parseFloat(n+"")}else i&&o&&(n=i/o);if(!n)return;e.style.aspectRatio="",e.style.width="",e.style.height="",e.offsetHeight;const s=e.getBoundingClientRect(),a=s.width||1,r=s.height||1;e.style.aspectRatio=n+"",n<a/r?(o="auto"===o?r:Math.min(r,o),e.style.width="auto",e.style.height=`${o}px`):(i="auto"===i?a:Math.min(a,i),e.style.width=`${i}px`,e.style.height="auto")}attach(){const t=this,e=t.instance;e.on("Carousel.beforeInitSlide",t.onBeforeInitSlide),e.on("Carousel.createSlide",t.onCreateSlide),e.on("Carousel.selectSlide",t.onSelectSlide),e.on("Carousel.unselectSlide",t.onUnselectSlide),e.on("Carousel.Panzoom.refresh",t.onRefresh),e.on("done",t.onDone),e.on("clearContent",t.onClearContent),window.addEventListener("message",t.onMessage)}detach(){const t=this,e=t.instance;e.off("Carousel.beforeInitSlide",t.onBeforeInitSlide),e.off("Carousel.createSlide",t.onCreateSlide),e.off("Carousel.selectSlide",t.onSelectSlide),e.off("Carousel.unselectSlide",t.onUnselectSlide),e.off("Carousel.Panzoom.refresh",t.onRefresh),e.off("done",t.onDone),e.off("clearContent",t.onClearContent),window.removeEventListener("message",t.onMessage)}}Object.defineProperty($t,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{ajax:null,autoSize:!0,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"},preload:!0,videoAutoplay:!0,videoRatio:16/9,videoTpl:'<video class="fancybox__html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">\n  <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos.</video>',videoFormat:"",vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}}});const Rt="play",_t="pause",Dt="ready";class Nt extends X{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Dt}),Object.defineProperty(this,"inHover",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"timer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"progressBar",{enumerable:!0,configurable:!0,writable:!0,value:null})}get isActive(){return this.state!==Dt}onReady(t){this.option("autoStart")&&(t.isInfinite||t.page<t.pages.length-1)&&this.start()}onChange(){this.removeProgressBar(),this.pause()}onSettle(){this.resume()}onVisibilityChange(){"visible"===document.visibilityState?this.resume():this.pause()}onMouseEnter(){this.inHover=!0,this.pause()}onMouseLeave(){var t;this.inHover=!1,(null===(t=this.instance.panzoom)||void 0===t?void 0:t.isResting)&&this.resume()}onTimerEnd(){const t=this.instance;"play"===this.state&&(t.isInfinite||t.page!==t.pages.length-1?t.slideNext():t.slideTo(0))}removeProgressBar(){this.progressBar&&(this.progressBar.remove(),this.progressBar=null)}createProgressBar(){var t;if(!this.option("showProgress"))return null;this.removeProgressBar();const e=this.instance,n=(null===(t=e.pages[e.page])||void 0===t?void 0:t.slides)||[];let i=this.option("progressParentEl");if(i||(i=(1===n.length?n[0].el:null)||e.viewport),!i)return null;const o=document.createElement("div");return I(o,"f-progress"),i.prepend(o),this.progressBar=o,o.offsetHeight,o}set(){const t=this,e=t.instance;if(e.pages.length<2)return;if(t.timer)return;const n=t.option("timeout");t.state=Rt,I(e.container,"has-autoplay");let i=t.createProgressBar();i&&(i.style.transitionDuration=`${n}ms`,i.style.transform="scaleX(1)"),t.timer=setTimeout(()=>{t.timer=null,t.inHover||t.onTimerEnd()},n),t.emit("set")}clear(){const t=this;t.timer&&(clearTimeout(t.timer),t.timer=null),t.removeProgressBar()}start(){const t=this;if(t.set(),t.state!==Dt){if(t.option("pauseOnHover")){const e=t.instance.container;e.addEventListener("mouseenter",t.onMouseEnter,!1),e.addEventListener("mouseleave",t.onMouseLeave,!1)}document.addEventListener("visibilitychange",t.onVisibilityChange,!1),t.emit("start")}}stop(){const t=this,e=t.state,n=t.instance.container;t.clear(),t.state=Dt,n.removeEventListener("mouseenter",t.onMouseEnter,!1),n.removeEventListener("mouseleave",t.onMouseLeave,!1),document.removeEventListener("visibilitychange",t.onVisibilityChange,!1),O(n,"has-autoplay"),e!==Dt&&t.emit("stop")}pause(){const t=this;t.state===Rt&&(t.state=_t,t.clear(),t.emit(_t))}resume(){const t=this,e=t.instance;if(e.isInfinite||e.page!==e.pages.length-1)if(t.state!==Rt){if(t.state===_t&&!t.inHover){const e=new Event("resume",{bubbles:!0,cancelable:!0});t.emit("resume",e),e.defaultPrevented||t.set()}}else t.set();else t.stop()}toggle(){this.state===Rt||this.state===_t?this.stop():this.start()}attach(){const t=this,e=t.instance;e.on("ready",t.onReady),e.on("Panzoom.startAnimation",t.onChange),e.on("Panzoom.endAnimation",t.onSettle),e.on("Panzoom.touchMove",t.onChange)}detach(){const t=this,e=t.instance;e.off("ready",t.onReady),e.off("Panzoom.startAnimation",t.onChange),e.off("Panzoom.endAnimation",t.onSettle),e.off("Panzoom.touchMove",t.onChange),t.stop()}}Object.defineProperty(Nt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{autoStart:!0,pauseOnHover:!0,progressParentEl:null,showProgress:!0,timeout:3e3}});class Bt extends X{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null})}onPrepare(t){const e=t.carousel;if(!e)return;const n=t.container;n&&(e.options.Autoplay=w({autoStart:!1},this.option("Autoplay")||{},{pauseOnHover:!1,timeout:this.option("timeout"),progressParentEl:()=>this.option("progressParentEl")||null,on:{start:()=>{t.emit("startSlideshow")},set:e=>{var i;n.classList.add("has-slideshow"),(null===(i=t.getSlide())||void 0===i?void 0:i.state)!==mt.Ready&&e.pause()},stop:()=>{n.classList.remove("has-slideshow"),t.isCompact||t.endIdle(),t.emit("endSlideshow")},resume:(e,n)=>{var i,o,s;!n||!n.cancelable||(null===(i=t.getSlide())||void 0===i?void 0:i.state)===mt.Ready&&(null===(s=null===(o=t.carousel)||void 0===o?void 0:o.panzoom)||void 0===s?void 0:s.isResting)||n.preventDefault()}}}),e.attachPlugins({Autoplay:Nt}),this.ref=e.plugins.Autoplay)}onReady(t){const e=t.carousel,n=this.ref;n&&e&&this.option("playOnStart")&&(e.isInfinite||e.page<e.pages.length-1)&&n.start()}onDone(t,e){const n=this.ref,i=t.carousel;if(!n||!i)return;const o=e.panzoom;o&&o.on("startAnimation",()=>{t.isCurrentSlide(e)&&n.stop()}),t.isCurrentSlide(e)&&n.resume()}onKeydown(t,e){var n;const i=this.ref;i&&e===this.option("key")&&"BUTTON"!==(null===(n=document.activeElement)||void 0===n?void 0:n.nodeName)&&i.toggle()}attach(){const t=this,e=t.instance;e.on("Carousel.init",t.onPrepare),e.on("Carousel.ready",t.onReady),e.on("done",t.onDone),e.on("keydown",t.onKeydown)}detach(){const t=this,e=t.instance;e.off("Carousel.init",t.onPrepare),e.off("Carousel.ready",t.onReady),e.off("done",t.onDone),e.off("keydown",t.onKeydown)}}Object.defineProperty(Bt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{key:" ",playOnStart:!1,progressParentEl:t=>{var e;return(null===(e=t.instance.container)||void 0===e?void 0:e.querySelector(".fancybox__toolbar [data-fancybox-toggle-slideshow]"))||t.instance.container},timeout:3e3}});const Ht={classes:{container:"f-thumbs f-carousel__thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide",isResting:"is-resting",isSelected:"is-selected",isLoading:"is-loading",hasThumbs:"has-thumbs"},minCount:2,parentEl:null,thumbTpl:'<button class="f-thumbs__slide__button" tabindex="0" type="button" aria-label="{{GOTO}}" data-carousel-index="%i"><img class="f-thumbs__slide__img" data-lazy-src="{{%s}}" alt="" /></button>',type:"modern"};var jt;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Hidden=2]="Hidden"}(jt||(jt={}));const Ft="isResting",Vt="thumbWidth",Wt="thumbHeight",qt="thumbClipWidth";let Zt=class extends X{constructor(){super(...arguments),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:"modern"}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"thumbWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbClipWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbExtraGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:jt.Init})}get isModern(){return"modern"===this.type}onInitSlide(t,e){const n=e.el?e.el.dataset:void 0;n&&(e.thumbSrc=n.thumbSrc||e.thumbSrc||"",e[qt]=parseFloat(n[qt]||"")||e[qt]||0,e[Wt]=parseFloat(n.thumbHeight||"")||e[Wt]||0),this.addSlide(e)}onInitSlides(){this.build()}onChange(){var t;if(!this.isModern)return;const e=this.container,n=this.instance,i=n.panzoom,o=this.carousel,s=o?o.panzoom:null,a=n.page;if(i&&o&&s){if(i.isDragging){O(e,this.cn(Ft));let i=(null===(t=o.pages[a])||void 0===t?void 0:t.pos)||0;i+=n.getProgress(a)*(this[qt]+this.thumbGap);let r=s.getBounds();-1*i>r.x.min&&-1*i<r.x.max&&s.panTo({x:-1*i,friction:.12})}else m(e,this.cn(Ft),i.isResting);this.shiftModern()}}onRefresh(){this.updateProps();for(const t of this.instance.slides||[])this.resizeModernSlide(t);this.shiftModern()}isDisabled(){const t=this.option("minCount")||0;if(t){const e=this.instance;let n=0;for(const t of e.slides||[])t.thumbSrc&&n++;if(n<t)return!0}const e=this.option("type");return["modern","classic"].indexOf(e)<0}getThumb(t){const e=this.option("thumbTpl")||"";return{html:this.instance.localize(e,[["%i",t.index],["%d",t.index+1],["%s",t.thumbSrc||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"]])}}addSlide(t){const e=this.carousel;e&&e.addSlide(t.index,this.getThumb(t))}getSlides(){const t=[];for(const e of this.instance.slides||[])t.push(this.getThumb(e));return t}resizeModernSlide(t){this.isModern&&(t[Vt]=t[qt]&&t[Wt]?Math.round(this[Wt]*(t[qt]/t[Wt])):this[Vt])}updateProps(){const t=this.container;if(!t)return;const e=e=>parseFloat(getComputedStyle(t).getPropertyValue("--f-thumb-"+e))||0;this.thumbGap=e("gap"),this.thumbExtraGap=e("extra-gap"),this[Vt]=e("width")||40,this[qt]=e("clip-width")||40,this[Wt]=e("height")||40}build(){const t=this;if(t.state!==jt.Init)return;if(t.isDisabled())return void t.emit("disabled");const e=t.instance,n=e.container,i=t.getSlides(),o=t.option("type");t.type=o;const s=t.option("parentEl"),a=t.cn("container"),r=t.cn("track");let l=null==s?void 0:s.querySelector("."+a);l||(l=document.createElement("div"),I(l,a),s?s.appendChild(l):n.after(l)),I(l,`is-${o}`),I(n,t.cn("hasThumbs")),t.container=l,t.updateProps();let c=l.querySelector("."+r);c||(c=document.createElement("div"),I(c,t.cn("track")),l.appendChild(c)),t.track=c;const d=w({},{track:c,infinite:!1,center:!0,fill:"classic"===o,dragFree:!0,slidesPerPage:1,transition:!1,preload:.25,friction:.12,Panzoom:{maxVelocity:0},Dots:!1,Navigation:!1,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide"}},t.option("Carousel")||{},{Sync:{target:e},slides:i}),h=new e.constructor(l,d);h.on("createSlide",(e,n)=>{t.setProps(n.index),t.emit("createSlide",n,n.el)}),h.on("ready",()=>{t.shiftModern(),t.emit("ready")}),h.on("refresh",()=>{t.shiftModern()}),h.on("Panzoom.click",(e,n,i)=>{t.onClick(i)}),t.carousel=h,t.state=jt.Ready}onClick(t){t.preventDefault(),t.stopPropagation();const e=this.instance,{pages:n,page:i}=e,o=t=>{if(t){const e=t.closest("[data-carousel-index]");if(e)return[parseInt(e.dataset.carouselIndex||"",10)||0,e]}return[-1,void 0]},s=(t,e)=>{const n=document.elementFromPoint(t,e);return n?o(n):[-1,void 0]};let[a,r]=o(t.target);if(a>-1)return;const l=this[qt],c=t.clientX,d=t.clientY;let[h,u]=s(c-l,d),[m,p]=s(c+l,d);u&&p?(a=Math.abs(c-u.getBoundingClientRect().right)<Math.abs(c-p.getBoundingClientRect().left)?h:m,a===i&&(a=a===h?m:h)):u?a=h:p&&(a=m),a>-1&&n[a]&&e.slideTo(a)}getShift(t){var e;const n=this,{instance:i}=n,o=n.carousel;if(!i||!o)return 0;const s=n[Vt],a=n[qt],r=n.thumbGap,l=n.thumbExtraGap;if(!(null===(e=o.slides[t])||void 0===e?void 0:e.el))return 0;const c=.5*(s-a),d=i.pages.length-1;let h=i.getProgress(0),u=i.getProgress(d),m=i.getProgress(t,!1,!0),p=0,g=c+l+r;const f=h<0&&h>-1,b=u>0&&u<1;return 0===t?(p=g*Math.abs(h),b&&1===h&&(p-=g*Math.abs(u))):t===d?(p=g*Math.abs(u)*-1,f&&-1===u&&(p+=g*Math.abs(h))):f||b?(p=-1*g,p+=g*Math.abs(h),p+=g*(1-Math.abs(u))):p=g*m,p}setProps(t){var e;const n=this;if(!n.isModern)return;const{instance:i}=n,o=n.carousel;if(i&&o){const s=null===(e=o.slides[t])||void 0===e?void 0:e.el;if(s&&s.childNodes.length){let e=l(1-Math.abs(i.getProgress(t))),o=l(n.getShift(t));s.style.setProperty("--progress",e?e+"":""),s.style.setProperty("--shift",o+"")}}}shiftModern(){const t=this;if(!t.isModern)return;const{instance:e,track:n}=t,i=e.panzoom,o=t.carousel;if(!(e&&n&&i&&o))return;if(i.state===M.Init||i.state===M.Destroy)return;for(const n of e.slides)t.setProps(n.index);let s=(t[qt]+t.thumbGap)*(o.slides.length||0);n.style.setProperty("--width",s+"")}cleanup(){const t=this;t.carousel&&t.carousel.destroy(),t.carousel=null,t.container&&t.container.remove(),t.container=null,t.track&&t.track.remove(),t.track=null,t.state=jt.Init,O(t.instance.container,t.cn("hasThumbs"))}attach(){const t=this,e=t.instance;e.on("initSlide",t.onInitSlide),e.state===W.Init?e.on("initSlides",t.onInitSlides):t.onInitSlides(),e.on(["change","Panzoom.afterTransform"],t.onChange),e.on("Panzoom.refresh",t.onRefresh)}detach(){const t=this,e=t.instance;e.off("initSlide",t.onInitSlide),e.off("initSlides",t.onInitSlides),e.off(["change","Panzoom.afterTransform"],t.onChange),e.off("Panzoom.refresh",t.onRefresh),t.cleanup()}};Object.defineProperty(Zt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Ht});const Xt=Object.assign(Object.assign({},Ht),{key:"t",showOnStart:!0,parentEl:null}),Yt="is-masked",Gt="aria-hidden";class Ut extends X{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"hidden",{enumerable:!0,configurable:!0,writable:!0,value:!1})}get isEnabled(){const t=this.ref;return t&&!t.isDisabled()}get isHidden(){return this.hidden}onClick(t,e){e.stopPropagation()}onCreateSlide(t,e){var n,i,o;const s=(null===(o=null===(i=null===(n=this.instance)||void 0===n?void 0:n.carousel)||void 0===i?void 0:i.slides[e.index])||void 0===o?void 0:o.type)||"",a=e.el;if(a&&s){let t=`for-${s}`;["video","youtube","vimeo","html5video"].includes(s)&&(t+=" for-video"),I(a,t)}}onInit(){var t;const e=this,n=e.instance,i=n.carousel;if(e.ref||!i)return;const o=e.option("parentEl")||n.footer||n.container;if(!o)return;const s=w({},e.options,{parentEl:o,classes:{container:"f-thumbs fancybox__thumbs"},Carousel:{Sync:{friction:n.option("Carousel.friction")||0}},on:{ready:t=>{const n=t.container;n&&this.hidden&&(e.refresh(),n.style.transition="none",e.hide(),n.offsetHeight,queueMicrotask(()=>{n.style.transition="",e.show()}))}}});s.Carousel=s.Carousel||{},s.Carousel.on=w((null===(t=e.options.Carousel)||void 0===t?void 0:t.on)||{},{click:this.onClick,createSlide:this.onCreateSlide}),i.options.Thumbs=s,i.attachPlugins({Thumbs:Zt}),e.ref=i.plugins.Thumbs,e.option("showOnStart")||(e.ref.state=jt.Hidden,e.hidden=!0)}onResize(){var t;const e=null===(t=this.ref)||void 0===t?void 0:t.container;e&&(e.style.maxHeight="")}onKeydown(t,e){const n=this.option("key");n&&n===e&&this.toggle()}toggle(){const t=this.ref;if(t&&!t.isDisabled())return t.state===jt.Hidden?(t.state=jt.Init,void t.build()):void(this.hidden?this.show():this.hide())}show(){const t=this.ref;if(!t||t.isDisabled())return;const e=t.container;e&&(this.refresh(),e.offsetHeight,e.removeAttribute(Gt),e.classList.remove(Yt),this.hidden=!1)}hide(){const t=this.ref,e=t&&t.container;e&&(this.refresh(),e.offsetHeight,e.classList.add(Yt),e.setAttribute(Gt,"true")),this.hidden=!0}refresh(){const t=this.ref;if(!t||!t.state)return;const e=t.container,n=(null==e?void 0:e.firstChild)||null;e&&n&&n.childNodes.length&&(e.style.maxHeight=`${n.getBoundingClientRect().height}px`)}attach(){const t=this,e=t.instance;e.state===ut.Init?e.on("Carousel.init",t.onInit):t.onInit(),e.on("resize",t.onResize),e.on("keydown",t.onKeydown)}detach(){var t;const e=this,n=e.instance;n.off("Carousel.init",e.onInit),n.off("resize",e.onResize),n.off("keydown",e.onKeydown),null===(t=n.carousel)||void 0===t||t.detachPlugins(["Thumbs"]),e.ref=null}}Object.defineProperty(Ut,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Xt});const Jt={panLeft:{icon:'<svg><path d="M5 12h14M5 12l6 6M5 12l6-6"/></svg>',change:{panX:-100}},panRight:{icon:'<svg><path d="M5 12h14M13 18l6-6M13 6l6 6"/></svg>',change:{panX:100}},panUp:{icon:'<svg><path d="M12 5v14M18 11l-6-6M6 11l6-6"/></svg>',change:{panY:-100}},panDown:{icon:'<svg><path d="M12 5v14M18 13l-6 6M6 13l6 6"/></svg>',change:{panY:100}},zoomIn:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M11 8v6M8 11h6"/></svg>',action:"zoomIn"},zoomOut:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"zoomOut"},toggle1to1:{icon:'<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>',action:"toggleZoom"},toggleZoom:{icon:'<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>',action:"toggleZoom"},iterateZoom:{icon:'<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>',action:"iterateZoom"},rotateCCW:{icon:'<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>',action:"rotateCCW"},rotateCW:{icon:'<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>',action:"rotateCW"},flipX:{icon:'<svg style="stroke-width: 1.3"><path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/></svg>',action:"flipX"},flipY:{icon:'<svg style="stroke-width: 1.3"><path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/></svg>',action:"flipY"},fitX:{icon:'<svg><path d="M4 12V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v6M10 18H3M21 18h-7M6 15l-3 3 3 3M18 15l3 3-3 3"/></svg>',action:"fitX"},fitY:{icon:'<svg><path d="M12 20H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h6M18 14v7M18 3v7M15 18l3 3 3-3M15 6l3-3 3 3"/></svg>',action:"fitY"},reset:{icon:'<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>',action:"reset"},toggleFS:{icon:'<svg><g><path d="M14.5 9.5 21 3m0 0h-6m6 0v6M3 21l6.5-6.5M3 21v-6m0 6h6"/></g><g><path d="m14 10 7-7m-7 7h6m-6 0V4M3 21l7-7m0 0v6m0-6H4"/></g></svg>',action:"toggleFS"}};var Kt;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Disabled=2]="Disabled"}(Kt||(Kt={}));const Qt={tabindex:"-1",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},te="has-toolbar",ee="fancybox__toolbar";class ne extends X{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Kt.Init}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null})}onReady(t){var e;if(!t.carousel)return;let n=this.option("display"),i=this.option("absolute"),o=this.option("enabled");if("auto"===o){const t=this.instance.carousel;let e=0;if(t)for(const n of t.slides)(n.panzoom||"image"===n.type)&&e++;e||(o=!1)}o||(n=void 0);let s=0;const a={left:[],middle:[],right:[]};if(n)for(const t of["left","middle","right"])for(const i of n[t]){const n=this.createEl(i);n&&(null===(e=a[t])||void 0===e||e.push(n),s++)}let r=null;if(s&&(r=this.createContainer()),r){for(const[t,e]of Object.entries(a)){const n=document.createElement("div");I(n,ee+"__column is-"+t);for(const t of e)n.appendChild(t);"auto"!==i||"middle"!==t||e.length||(i=!0),r.appendChild(n)}!0===i&&I(r,"is-absolute"),this.state=Kt.Ready,this.onRefresh()}else this.state=Kt.Disabled}onClick(t){var e,n;const i=this.instance,o=i.getSlide(),s=null==o?void 0:o.panzoom,a=t.target,r=a&&k(a)?a.dataset:null;if(!r)return;if(void 0!==r.fancyboxToggleThumbs)return t.preventDefault(),t.stopPropagation(),void(null===(e=i.plugins.Thumbs)||void 0===e||e.toggle());if(void 0!==r.fancyboxToggleFullscreen)return t.preventDefault(),t.stopPropagation(),void this.instance.toggleFullscreen();if(void 0!==r.fancyboxToggleSlideshow){t.preventDefault(),t.stopPropagation();const e=null===(n=i.carousel)||void 0===n?void 0:n.plugins.Autoplay;let o=e.isActive;return s&&"mousemove"===s.panMode&&!o&&s.reset(),void(o?e.stop():e.start())}const l=r.panzoomAction,c=r.panzoomChange;if((c||l)&&(t.preventDefault(),t.stopPropagation()),c){let e={};try{e=JSON.parse(c)}catch(t){}s&&s.applyChange(e)}else l&&s&&s[l]&&s[l]()}onChange(){this.onRefresh()}onRefresh(){if(this.instance.isClosing())return;const t=this.container;if(!t)return;const e=this.instance.getSlide();if(!e||e.state!==mt.Ready)return;const n=e&&!e.error&&e.panzoom;for(const e of t.querySelectorAll("[data-panzoom-action]"))n?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));let i=n&&n.canZoomIn(),o=n&&n.canZoomOut();for(const e of t.querySelectorAll('[data-panzoom-action="zoomIn"]'))i?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));for(const e of t.querySelectorAll('[data-panzoom-action="zoomOut"]'))o?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));for(const e of t.querySelectorAll('[data-panzoom-action="toggleZoom"],[data-panzoom-action="iterateZoom"]')){o||i?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));const t=e.querySelector("g");t&&(t.style.display=i?"":"none")}}onDone(t,e){var n;null===(n=e.panzoom)||void 0===n||n.on("afterTransform",()=>{this.instance.isCurrentSlide(e)&&this.onRefresh()}),this.instance.isCurrentSlide(e)&&this.onRefresh()}createContainer(){const t=this.instance.container;if(!t)return null;const e=this.option("parentEl")||t;let n=e.querySelector("."+ee);return n||(n=document.createElement("div"),I(n,ee),e.prepend(n)),n.addEventListener("click",this.onClick,{passive:!1,capture:!0}),t&&I(t,te),this.container=n,n}createEl(t){const e=this.instance,n=e.carousel;if(!n)return null;if("toggleFS"===t)return null;if("fullscreen"===t&&!dt())return null;let i=null;const o=n.slides.length||0;let s=0,a=0;for(const t of n.slides)(t.panzoom||"image"===t.type)&&s++,("image"===t.type||t.downloadSrc)&&a++;if(o<2&&["infobar","prev","next"].includes(t))return i;if(void 0!==Jt[t]&&!s)return null;if("download"===t&&!a)return null;if("thumbs"===t){const t=e.plugins.Thumbs;if(!t||!t.isEnabled)return null}if("slideshow"===t&&(!n.plugins.Autoplay||o<2))return null;if(void 0!==Jt[t]){const e=Jt[t];i=document.createElement("button"),i.setAttribute("title",this.instance.localize(`{{${t.toUpperCase()}}}`)),I(i,"f-button"),e.action&&(i.dataset.panzoomAction=e.action),e.change&&(i.dataset.panzoomChange=JSON.stringify(e.change)),i.appendChild(h(this.instance.localize(e.icon)))}else{const e=(this.option("items")||[])[t];e&&(i=h(this.instance.localize(e.tpl)),"function"==typeof e.click&&i.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),"function"==typeof e.click&&e.click.call(this,this,t)}))}const r=null==i?void 0:i.querySelector("svg");if(r)for(const[t,e]of Object.entries(Qt))r.getAttribute(t)||r.setAttribute(t,String(e));return i}removeContainer(){const t=this.container;t&&t.remove(),this.container=null,this.state=Kt.Disabled;const e=this.instance.container;e&&O(e,te)}attach(){const t=this,e=t.instance;e.on("Carousel.initSlides",t.onReady),e.on("done",t.onDone),e.on(["reveal","Carousel.change"],t.onChange),t.onReady(t.instance)}detach(){const t=this,e=t.instance;e.off("Carousel.initSlides",t.onReady),e.off("done",t.onDone),e.off(["reveal","Carousel.change"],t.onChange),t.removeContainer()}}Object.defineProperty(ne,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{absolute:"auto",display:{left:["infobar"],middle:[],right:["iterateZoom","slideshow","fullscreen","thumbs","close"]},enabled:"auto",items:{infobar:{tpl:'<div class="fancybox__infobar" tabindex="-1"><span data-fancybox-current-index></span>/<span data-fancybox-count></span></div>'},download:{tpl:'<a class="f-button" title="{{DOWNLOAD}}" data-fancybox-download href="javasript:;"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></a>'},prev:{tpl:'<button class="f-button" title="{{PREV}}" data-fancybox-prev><svg><path d="m15 6-6 6 6 6"/></svg></button>'},next:{tpl:'<button class="f-button" title="{{NEXT}}" data-fancybox-next><svg><path d="m9 6 6 6-6 6"/></svg></button>'},slideshow:{tpl:'<button class="f-button" title="{{TOGGLE_SLIDESHOW}}" data-fancybox-toggle-slideshow><svg><g><path d="M8 4v16l13 -8z"></path></g><g>
2<path d="M8 4v15M17 4v15"/></g></svg></button>'},fullscreen:{tpl:'<button class="f-button" title="{{TOGGLE_FULLSCREEN}}" data-fancybox-toggle-fullscreen><svg><g><path d="M4 8V6a2 2 0 0 1 2-2h2M4 16v2a2 2 0 0 0 2 2h2M16 4h2a2 2 0 0 1 2 2v2M16 20h2a2 2 0 0 0 2-2v-2"/></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>'},thumbs:{tpl:'<button class="f-button" title="{{TOGGLE_THUMBS}}" data-fancybox-toggle-thumbs><svg><circle cx="5.5" cy="5.5" r="1"/><circle cx="12" cy="5.5" r="1"/><circle cx="18.5" cy="5.5" r="1"/><circle cx="5.5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="18.5" cy="12" r="1"/><circle cx="5.5" cy="18.5" r="1"/><circle cx="12" cy="18.5" r="1"/><circle cx="18.5" cy="18.5" r="1"/></svg></button>'},close:{tpl:'<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg><path d="m19.5 4.5-15 15M4.5 4.5l15 15"/></svg></button>'}},parentEl:null}});const ie={Hash:class extends X{onReady(){gt=!1}onChange(t){bt&&clearTimeout(bt);const{hash:e}=vt(),{hash:n}=yt(),i=t.isOpeningSlide(t.getSlide());i&&(pt=n===e?"":n),e&&e!==n&&(bt=setTimeout(()=>{try{if(t.state===ut.Ready){let t="replaceState";i&&!ft&&(t="pushState",ft=!0),window.history[t]({},document.title,window.location.pathname+window.location.search+e)}}catch(t){}},300))}onClose(t){if(bt&&clearTimeout(bt),!gt&&ft)return ft=!1,gt=!1,void window.history.back();if(!gt)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+(pt||""))}catch(t){}}attach(){const t=this.instance;t.on("ready",this.onReady),t.on(["Carousel.ready","Carousel.change"],this.onChange),t.on("close",this.onClose)}detach(){const t=this.instance;t.off("ready",this.onReady),t.off(["Carousel.ready","Carousel.change"],this.onChange),t.off("close",this.onClose)}static parseURL(){return yt()}static startFromUrl(){wt()}static destroy(){window.removeEventListener("hashchange",Et,!1)}},Html:$t,Images:Pt,Slideshow:Bt,Thumbs:Ut,Toolbar:ne},oe="with-fancybox",se="hide-scrollbar",ae="--fancybox-scrollbar-compensate",re="--fancybox-body-margin",le="aria-hidden",ce="is-using-tab",de="is-animated",he="is-compact",ue="is-loading",me="is-opening",pe="has-caption",ge="disabled",fe="tabindex",be="download",ve="href",ye="src",we=t=>"string"==typeof t,xe=function(){var t=window.getSelection();return!!t&&"Range"===t.type};let Ee,Ce=null,Me=null,Pe=0,Se=0,Te=0,Ae=0;const Le=new Map;let ke=0;class Oe extends C{get isIdle(){return this.idle}get isCompact(){return this.option("compact")}constructor(t=[],e={},n={}){super(e),Object.defineProperty(this,"userSlides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"idle",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"idleTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"ignoreFocusChange",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"startedFs",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:ut.Init}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"footer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"lastFocus",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prevMouseMoveEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Ee||(Ee=dt()),this.id=e.id||++ke,Le.set(this.id,this),this.userSlides=t,this.userPlugins=n,queueMicrotask(()=>{this.init()})}init(){if(this.state===ut.Destroy)return;this.state=ut.Init,this.attachPlugins(Object.assign(Object.assign({}
vendor: 19,551 bytes, line 2
2,Oe.Plugins),this.userPlugins)),this.emit("init"),this.emit("attachPlugins"),!0===this.option("hideScrollbar")&&(()=>{if(!at)return;const t=document,e=t.body,n=t.documentElement;if(e.classList.contains(se))return;let i=window.innerWidth-n.getBoundingClientRect().width;const o=parseFloat(window.getComputedStyle(e).marginRight);i<0&&(i=0),n.style.setProperty(ae,`${i}px`),o&&e.style.setProperty(re,`${o}px`),e.classList.add(se)})(),this.initLayout(),this.scale();const t=()=>{this.initCarousel(this.userSlides),this.state=ut.Ready,this.attachEvents(),this.emit("ready"),setTimeout(()=>{this.container&&this.container.setAttribute(le,"false")},16)};this.option("Fullscreen.autoStart")&&Ee&&!Ee.isFullscreen()?Ee.request().then(()=>{this.startedFs=!0,t()}).catch(()=>t()):t()}initLayout(){var t,e;const n=this.option("parentEl")||document.body,i=h(this.localize(this.option("tpl.main")||""));if(i){if(i.setAttribute("id",`fancybox-${this.id}`),i.setAttribute("aria-label",this.localize("{{MODAL}}")),i.classList.toggle(he,this.isCompact),I(i,this.option("mainClass")||""),I(i,me),this.container=i,this.footer=i.querySelector(".fancybox__footer"),n.appendChild(i),I(document.documentElement,oe),Ce&&Me||(Ce=document.createElement("span"),I(Ce,"fancybox-focus-guard"),Ce.setAttribute(fe,"0"),Ce.setAttribute(le,"true"),Ce.setAttribute("aria-label","Focus guard"),Me=Ce.cloneNode(),null===(t=i.parentElement)||void 0===t||t.insertBefore(Ce,i),null===(e=i.parentElement)||void 0===e||e.append(Me)),i.addEventListener("mousedown",t=>{Pe=t.pageX,Se=t.pageY,O(i,ce)}),this.option("closeExisting"))for(const t of Le.values())t.id!==this.id&&t.close();else this.option("animated")&&(I(i,de),setTimeout(()=>{this.isClosing()||O(i,de)},350));this.emit("initLayout")}}initCarousel(t){const e=this.container;if(!e)return;const n=e.querySelector(".fancybox__carousel");if(!n)return;const i=this.carousel=new ot(n,w({},{slides:t,transition:"fade",Panzoom:{lockAxis:this.option("dragToClose")?"xy":"x",infinite:!!this.option("dragToClose")&&"y"},Dots:!1,Navigation:{classes:{container:"fancybox__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"}},initialPage:this.option("startIndex"),l10n:this.option("l10n")},this.option("Carousel")||{}));i.on("*",(t,e,...n)=>{this.emit(`Carousel.${e}`,t,...n)}),i.on(["ready","change"],()=>{this.manageCaption()}),this.on("Carousel.removeSlide",(t,e,n)=>{this.clearContent(n),n.state=void 0}),i.on("Panzoom.touchStart",()=>{var t,e;this.isCompact||this.endIdle(),(null===(t=document.activeElement)||void 0===t?void 0:t.closest(".f-thumbs"))&&(null===(e=this.container)||void 0===e||e.focus())}),i.on("settle",()=>{this.idleTimer||this.isCompact||!this.option("idle")||this.setIdle(),this.option("autoFocus")&&!this.isClosing&&this.checkFocus()}),this.option("dragToClose")&&(i.on("Panzoom.afterTransform",(t,e)=>{const n=this.getSlide();if(n&&c(n.el))return;const i=this.container;if(i){const t=Math.abs(e.current.f),n=t<1?"":Math.max(.5,Math.min(1,1-t/e.contentRect.fitHeight*1.5));i.style.setProperty("--fancybox-ts",n?"0s":""),i.style.setProperty("--fancybox-opacity",n+"")}}),i.on("Panzoom.touchEnd",(t,e,n)=>{var i;const o=this.getSlide();if(o&&c(o.el))return;if(e.isMobile&&document.activeElement&&-1!==["TEXTAREA","INPUT"].indexOf(null===(i=document.activeElement)||void 0===i?void 0:i.nodeName))return;const s=Math.abs(e.dragOffset.y);"y"===e.lockedAxis&&(s>=200||s>=50&&e.dragOffset.time<300)&&(n&&n.cancelable&&n.preventDefault(),this.close(n,"f-throwOut"+(e.current.f<0?"Up":"Down")))})),i.on("change",t=>{var e;let n=null===(e=this.getSlide())||void 0===e?void 0:e.triggerEl;if(n){const e=new CustomEvent("slideTo",{bubbles:!0,cancelable:!0,detail:t.page});n.dispatchEvent(e)}}),i.on(["refresh","change"],t=>{const e=this.container;if(!e)return;for(const n of e.querySelectorAll("[data-fancybox-current-index]"))n.innerHTML=t.page+1;for(const n of e.querySelectorAll("[data-fancybox-count]"))n.innerHTML=t.pages.length;if(!t.isInfinite){for(const n of e.querySelectorAll("[data-fancybox-next]"))t.page<t.pages.length-1?(n.removeAttribute(ge),n.removeAttribute(fe)):(n.setAttribute(ge,""),n.setAttribute(fe,"-1"));for(const n of e.querySelectorAll("[data-fancybox-prev]"))t.page>0?(n.removeAttribute(ge),n.removeAttribute(fe)):(n.setAttribute(ge,""),n.setAttribute(fe,"-1"))}const n=this.getSlide();if(!n)return;let i=n.downloadSrc||"";i||"image"!==n.type||n.error||!we(n[ye])||(i=n[ye]);for(const t of e.querySelectorAll("[data-fancybox-download]")){const e=n.downloadFilename;i?(t.removeAttribute(ge),t.removeAttribute(fe),t.setAttribute(ve,i),t.setAttribute(be,e||i),t.setAttribute("target","_blank")):(t.setAttribute(ge,""),t.setAttribute(fe,"-1"),t.removeAttribute(ve),t.removeAttribute(be))}}),this.emit("initCarousel")}attachEvents(){const t=this,e=t.container;if(!e)return;e.addEventListener("click",t.onClick,{passive:!1,capture:!1}),e.addEventListener("wheel",t.onWheel,{passive:!1,capture:!1}),document.addEventListener("keydown",t.onKeydown,{passive:!1,capture:!0}),document.addEventListener("visibilitychange",t.onVisibilityChange,!1),document.addEventListener("mousemove",t.onMousemove),t.option("trapFocus")&&document.addEventListener("focus",t.onFocus,!0),window.addEventListener("resize",t.onResize);const n=window.visualViewport;n&&(n.addEventListener("scroll",t.onResize),n.addEventListener("resize",t.onResize))}detachEvents(){const t=this,e=t.container;if(!e)return;document.removeEventListener("keydown",t.onKeydown,{passive:!1,capture:!0}),e.removeEventListener("wheel",t.onWheel,{passive:!1,capture:!1}),e.removeEventListener("click",t.onClick,{passive:!1,capture:!1}),document.removeEventListener("mousemove",t.onMousemove),window.removeEventListener("resize",t.onResize);const n=window.visualViewport;n&&(n.removeEventListener("resize",t.onResize),n.removeEventListener("scroll",t.onResize)),document.removeEventListener("visibilitychange",t.onVisibilityChange,!1),document.removeEventListener("focus",t.onFocus,!0)}scale(){const t=this.container;if(!t)return;const e=window.visualViewport,n=Math.max(1,(null==e?void 0:e.scale)||1);let i="",o="",s="";if(e&&n>1){let t=`${e.offsetLeft}px`,a=`${e.offsetTop}px`;i=e.width*n+"px",o=e.height*n+"px",s=`translate3d(${t}, ${a}, 0) scale(${1/n})`}t.style.transform=s,t.style.width=i,t.style.height=o}onClick(t){var e;const{container:n,isCompact:i}=this;if(!n||this.isClosing())return;!i&&this.option("idle")&&this.resetIdle();const o=t.composedPath()[0];if(o.closest(".fancybox-spinner")||o.closest("[data-fancybox-close]"))return t.preventDefault(),void this.close(t);if(o.closest("[data-fancybox-prev]"))return t.preventDefault(),void this.prev();if(o.closest("[data-fancybox-next]"))return t.preventDefault(),void this.next();if("click"===t.type&&0===t.detail)return;if(Math.abs(t.pageX-Pe)>30||Math.abs(t.pageY-Se)>30)return;const s=document.activeElement;if(xe()&&s&&n.contains(s))return;if(i&&"image"===(null===(e=this.getSlide())||void 0===e?void 0:e.type))return void(this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null):this.clickTimer=setTimeout(()=>{this.toggleIdle(),this.clickTimer=null},350));if(this.emit("click",t),t.defaultPrevented)return;let a=!1;if(o.closest(".fancybox__content")){if(s){if(s.closest("[contenteditable]"))return;o.matches(lt)||s.blur()}if(xe())return;a=this.option("contentClick")}else o.closest(".fancybox__carousel")&&!o.matches(lt)&&(a=this.option("backdropClick"));"close"===a?(t.preventDefault(),this.close(t)):"next"===a?(t.preventDefault(),this.next()):"prev"===a&&(t.preventDefault(),this.prev())}onWheel(t){const e=t.target;let n=this.option("wheel",t);e.closest(".fancybox__thumbs")&&(n="slide");const i="slide"===n,o=[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce(function(t,e){return Math.abs(e)>Math.abs(t)?e:t}),s=Math.max(-1,Math.min(1,o)),a=Date.now();this.pwt&&a-this.pwt<300?i&&t.preventDefault():(this.pwt=a,this.emit("wheel",t,s),t.defaultPrevented||("close"===n?(t.preventDefault(),this.close(t)):"slide"===n&&(d(e)||(t.preventDefault(),this[s>0?"prev":"next"]()))))}onScroll(){window.scrollTo(Te,Ae)}onKeydown(t){if(!this.isTopmost())return;this.isCompact||!this.option("idle")||this.isClosing()||this.resetIdle();const e=t.key,n=this.option("keyboard");if(!n)return;const i=t.composedPath()[0],o=document.activeElement&&document.activeElement.classList,s=o&&o.contains("f-button")||i.dataset.carouselPage||i.dataset.carouselIndex;if("Escape"!==e&&!s&&k(i)&&(i.isContentEditable||-1!==["TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(i.nodeName)))return;if("Tab"===t.key?I(this.container,ce):O(this.container,ce),t.ctrlKey||t.altKey||t.shiftKey)return;this.emit("keydown",e,t);const a=n[e];a&&"function"==typeof this[a]&&(t.preventDefault(),this[a]())}onResize(){const t=this.container;if(!t)return;const e=this.isCompact;t.classList.toggle(he,e),this.manageCaption(this.getSlide()),this.isCompact?this.clearIdle():this.endIdle(),this.scale(),this.emit("resize")}onFocus(t){this.isTopmost()&&this.checkFocus(t)}onMousemove(t){this.prevMouseMoveEvent=t,!this.isCompact&&this.option("idle")&&this.resetIdle()}onVisibilityChange(){"visible"===document.visibilityState?this.checkFocus():this.endIdle()}manageCloseBtn(t){const e=this.optionFor(t,"closeButton")||!1;if("auto"===e){const t=this.plugins.Toolbar;if(t&&t.state===Kt.Ready)return}if(!e)return;if(!t.contentEl||t.closeBtnEl)return;const n=this.option("tpl.closeButton");if(n){const e=h(this.localize(n));t.closeBtnEl=t.contentEl.appendChild(e),t.el&&I(t.el,"has-close-btn")}}manageCaption(t=void 0){var e,n;const i="fancybox__caption",o=this.container;if(!o)return;O(o,pe);const s=this.isCompact||this.option("commonCaption"),a=!s;if(this.caption&&this.stop(this.caption),a&&this.caption&&(this.caption.remove(),this.caption=null),s&&!this.caption)for(const t of(null===(e=this.carousel)||void 0===e?void 0:e.slides)||[])t.captionEl&&(t.captionEl.remove(),t.captionEl=void 0,O(t.el,pe),null===(n=t.el)||void 0===n||n.removeAttribute("aria-labelledby"));if(t||(t=this.getSlide()),!t||s&&!this.isCurrentSlide(t))return;const r=t.el;let l=this.optionFor(t,"caption","");if(!l)return void(s&&this.caption&&this.animate(this.caption,"f-fadeOut",()=>{this.caption&&(this.caption.innerHTML="")}));let c=null;if(a){if(c=t.captionEl||null,r&&!c){const e=i+`_${this.id}_${t.index}`;c=document.createElement("div"),I(c,i),c.setAttribute("id",e),t.captionEl=r.appendChild(c),I(r,pe),r.setAttribute("aria-labelledby",e)}}else c=this.caption,c||(c=o.querySelector("."+i)),c||(c=document.createElement("div"),c.dataset.fancyboxCaption="",I(c,i),(this.footer||o).prepend(c)),I(o,pe),this.caption=c;c&&(c.innerHTML="",we(l)||"number"==typeof l?c.innerHTML=l+"":l instanceof HTMLElement&&c.appendChild(l))}checkFocus(t){this.focus(t)}focus(t){var e;if(this.ignoreFocusChange)return;const n=document.activeElement||null,i=(null==t?void 0:t.target)||null,o=this.container,s=null===(e=this.carousel)||void 0===e?void 0:e.viewport;if(!o||!s)return;if(!t&&n&&o.contains(n))return;const a=this.getSlide(),r=a&&a.state===mt.Ready?a.el:null;if(!r||r.contains(n)||o===n)return;t&&t.cancelable&&t.preventDefault(),this.ignoreFocusChange=!0;const l=Array.from(o.querySelectorAll(lt));let c=[],d=null;for(let t of l){const e=!t.offsetParent||!!t.closest('[aria-hidden="true"]'),n=r&&r.contains(t),i=!s.contains(t);if(t===o||(n||i)&&!e){c.push(t);const e=t.dataset.origTabindex;void 0!==e&&e&&(t.tabIndex=parseFloat(e)),t.removeAttribute("data-orig-tabindex"),!t.hasAttribute("autoFocus")&&d||(d=t)}else{const e=void 0===t.dataset.origTabindex?t.getAttribute("tabindex")||"":t.dataset.origTabindex;e&&(t.dataset.origTabindex=e),t.tabIndex=-1}}let h=null;t?(!i||c.indexOf(i)<0)&&(h=d||o,c.length&&(n===Me?h=c[0]:this.lastFocus!==o&&n!==Ce||(h=c[c.length-1]))):h=a&&"image"===a.type?o:d||o,h&&ct(h),this.lastFocus=document.activeElement,this.ignoreFocusChange=!1}next(){const t=this.carousel;t&&t.pages.length>1&&t.slideNext()}prev(){const t=this.carousel;t&&t.pages.length>1&&t.slidePrev()}jumpTo(...t){this.carousel&&this.carousel.slideTo(...t)}isTopmost(){var t;return(null===(t=Oe.getInstance())||void 0===t?void 0:t.id)==this.id}animate(t=null,e="",n){if(!t||!e)return void(n&&n());this.stop(t);const i=o=>{o.target===t&&t.dataset.animationName&&(t.removeEventListener("animationend",i),delete t.dataset.animationName,n&&n(),O(t,e))};t.dataset.animationName=e,t.addEventListener("animationend",i),I(t,e)}stop(t){t&&t.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:t}))}setContent(t,e="",n=!0){if(this.isClosing())return;const i=t.el;if(!i)return;let o=null;if(k(e)?o=e:(o=h(e+""),k(o)||(o=document.createElement("div"),o.innerHTML=e+"")),["img","picture","iframe","video","audio"].includes(o.nodeName.toLowerCase())){const t=document.createElement("div");t.appendChild(o),o=t}k(o)&&t.filter&&!t.error&&(o=o.querySelector(t.filter)),o&&k(o)?(I(o,"fancybox__content"),t.id&&o.setAttribute("id",t.id),i.classList.add(`has-${t.error?"error":t.type||"unknown"}`),i.prepend(o),"none"===o.style.display&&(o.style.display=""),"none"===getComputedStyle(o).getPropertyValue("display")&&(o.style.display=t.display||this.option("defaultDisplay")||"flex"),t.contentEl=o,n&&this.revealContent(t),this.manageCloseBtn(t),this.manageCaption(t)):this.setError(t,"{{ELEMENT_NOT_FOUND}}")}revealContent(t,e){const n=t.el,i=t.contentEl;n&&i&&(this.emit("reveal",t),this.hideLoading(t),t.state=mt.Opening,(e=this.isOpeningSlide(t)?void 0===e?this.optionFor(t,"showClass"):e:"f-fadeIn")?this.animate(i,e,()=>{this.done(t)}):this.done(t))}done(t){this.isClosing()||(t.state=mt.Ready,this.emit("done",t),I(t.el,"is-done"),this.isCurrentSlide(t)&&this.option("autoFocus")&&queueMicrotask(()=>{var e;null===(e=t.panzoom)||void 0===e||e.updateControls(),this.option("autoFocus")&&this.focus()}),this.isOpeningSlide(t)&&(O(this.container,me),!this.isCompact&&this.option("idle")&&this.setIdle()))}isCurrentSlide(t){const e=this.getSlide();return!(!t||!e)&&e.index===t.index}isOpeningSlide(t){var e,n;return null===(null===(e=this.carousel)||void 0===e?void 0:e.prevPage)&&t&&t.index===(null===(n=this.getSlide())||void 0===n?void 0:n.index)}showLoading(t){t.state=mt.Loading;const e=t.el;e&&(I(e,ue),this.emit("loading",t),t.spinnerEl||setTimeout(()=>{if(!this.isClosing()&&!t.spinnerEl&&t.state===mt.Loading){let n=h(L);I(n,"fancybox-spinner"),t.spinnerEl=n,e.prepend(n),this.animate(n,"f-fadeIn")}},250))}hideLoading(t){const e=t.el;if(!e)return;const n=t.spinnerEl;this.isClosing()?null==n||n.remove():(O(e,ue),n&&this.animate(n,"f-fadeOut",()=>{n.remove()}),t.state===mt.Loading&&(this.emit("loaded",t),t.state=mt.Ready))}setError(t,e){if(this.isClosing())return;const n=new Event("error",{bubbles:!0,cancelable:!0});if(this.emit("error",n,t),n.defaultPrevented)return;t.error=e,this.hideLoading(t),this.clearContent(t);const i=document.createElement("div");i.classList.add("fancybox-error"),i.innerHTML=this.localize(e||"<p>{{ERROR}}</p>"),this.setContent(t,i)}clearContent(t){if(void 0===t.state)return;this.emit("clearContent",t),t.contentEl&&(t.contentEl.remove(),t.contentEl=void 0);const e=t.el;e&&(O(e,"has-error"),O(e,"has-unknown"),O(e,`has-${t.type||"unknown"}`)),t.closeBtnEl&&t.closeBtnEl.remove(),t.closeBtnEl=void 0,t.captionEl&&t.captionEl.remove(),t.captionEl=void 0,t.spinnerEl&&t.spinnerEl.remove(),t.spinnerEl=void 0}getSlide(){var t;const e=this.carousel;return(null===(t=null==e?void 0:e.pages[null==e?void 0:e.page])||void 0===t?void 0:t.slides[0])||void 0}close(t,e){if(this.isClosing())return;const n=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(this.emit("shouldClose",n,t),n.defaultPrevented)return;t&&t.cancelable&&(t.preventDefault(),t.stopPropagation());const i=()=>{this.proceedClose(t,e)};this.startedFs&&Ee&&Ee.isFullscreen()?Promise.resolve(Ee.exit()).then(()=>i()):i()}clearIdle(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null}setIdle(t=!1){const e=()=>{this.clearIdle(),this.idle=!0,I(this.container,"is-idle"),this.emit("setIdle")};if(this.clearIdle(),!this.isClosing())if(t)e();else{const t=this.option("idle");t&&(this.idleTimer=setTimeout(e,t))}}endIdle(){this.clearIdle(),this.idle&&!this.isClosing()&&(this.idle=!1,O(this.container,"is-idle"),this.emit("endIdle"))}resetIdle(){this.endIdle(),this.setIdle()}toggleIdle(){this.idle?this.endIdle():this.setIdle(!0)}toggleFullscreen(){Ee&&(Ee.isFullscreen()?Ee.exit():Ee.request().then(()=>{this.startedFs=!0}))}isClosing(){return[ut.Closing,ut.CustomClosing,ut.Destroy].includes(this.state)}proceedClose(t,e){var n,i;this.state=ut.Closing,this.clearIdle(),this.detachEvents();const o=this.container,s=this.carousel,a=this.getSlide(),r=a&&this.option("placeFocusBack")?a.triggerEl||this.option("triggerEl"):null;if(r&&(st(r)?ct(r):r.focus()),o&&(O(o,me),I(o,"is-closing"),o.setAttribute(le,"true"),this.option("animated")&&I(o,de),o.style.pointerEvents="none"),s){s.clearTransitions(),null===(n=s.panzoom)||void 0===n||n.destroy(),null===(i=s.plugins.Navigation)||void 0===i||i.detach();for(const t of s.slides){t.state=mt.Closing,this.hideLoading(t);const e=t.contentEl;e&&this.stop(e);const n=null==t?void 0:t.panzoom;n&&(n.stop(),n.detachEvents(),n.detachObserver()),this.isCurrentSlide(t)||s.emit("removeSlide",t)}}Te=window.scrollX,Ae=window.scrollY,window.addEventListener("scroll",this.onScroll),this.emit("close",t),this.state!==ut.CustomClosing?(void 0===e&&a&&(e=this.optionFor(a,"hideClass")),e&&a?(this.animate(a.contentEl,e,()=>{s&&s.emit("removeSlide",a)}),setTimeout(()=>{this.destroy()},500)):this.destroy()):setTimeout(()=>{this.destroy()},500)}destroy(){var t;if(this.state===ut.Destroy)return;window.removeEventListener("scroll",this.onScroll),this.state=ut.Destroy,null===(t=this.carousel)||void 0===t||t.destroy();const e=this.container;e&&e.remove(),Le.delete(this.id);const n=Oe.getInstance();n?n.focus():(Ce&&(Ce.remove(),Ce=null),Me&&(Me.remove(),Me=null),O(document.documentElement,oe),(()=>{if(!at)return;const t=document,e=t.body;e.classList.remove(se),e.style.setProperty(re,""),t.documentElement.style.setProperty(ae,"")})(),this.emit("destroy"))}static bind(t,e,n){if(!at)return;let i,o="",s={};if(void 0===t?i=document.body:we(t)?(i=document.body,o=t,"object"==typeof e&&(s=e||{})):(i=t,we(e)&&(o=e),"object"==typeof n&&(s=n||{})),!i||!k(i))return;o=o||"[data-fancybox]";const a=Oe.openers.get(i)||new Map;a.set(o,s),Oe.openers.set(i,a),1===a.size&&i.addEventListener("click",Oe.fromEvent)}static unbind(t,e){let n,i="";if(we(t)?(n=document.body,i=t):(n=t,we(e)&&(i=e)),!n)return;const o=Oe.openers.get(n);o&&i&&o.delete(i),i&&o||(Oe.openers.delete(n),n.removeEventListener("click",Oe.fromEvent))}static destroy(){let t;for(;t=Oe.getInstance();)t.destroy();for(const t of Oe.openers.keys())t.removeEventListener("click",Oe.fromEvent);Oe.openers=new Map}static fromEvent(t){if(t.defaultPrevented)return;if(t.button&&0!==t.button)return;if(t.ctrlKey||t.metaKey||t.shiftKey)return;let e=t.composedPath()[0];const n=e.closest("[data-fancybox-trigger]");if(n){const t=n.dataset.fancyboxTrigger||"",i=document.querySelectorAll(`[data-fancybox="${t}"]`),o=parseInt(n.dataset.fancyboxIndex||"",10)||0;e=i[o]||e}if(!(e&&e instanceof Element))return;let i,o,s,a;if([...Oe.openers].reverse().find(([t,n])=>!(!t.contains(e)||![...n].reverse().find(([n,r])=>{let l=e.closest(n);return!!l&&(i=t,o=n,s=l,a=r,!0)}))),!i||!o||!s)return;a=a||{},t.preventDefault(),e=s;let r=[],l=w({},ht,a);l.event=t,l.triggerEl=e,l.delegate=n;const c=l.groupAll,d=l.groupAttr,h=d&&e?e.getAttribute(`${d}`):"";
2if((!e||h||c)&&(r=[].slice.call(i.querySelectorAll(o))),e&&!c&&(r=h?r.filter(t=>t.getAttribute(`${d}`)===h):[e]),!r.length)return;const u=Oe.getInstance();return u&&u.options.triggerEl&&r.indexOf(u.options.triggerEl)>-1?void 0:(e&&(l.startIndex=r.indexOf(e)),Oe.fromNodes(r,l))}static fromSelector(t,e,n){let i=null,o="",s={};if(we(t)?(i=document.body,o=t,"object"==typeof e&&(s=e||{})):t instanceof HTMLElement&&we(e)&&(i=t,o=e,"object"==typeof n&&(s=n||{})),!i||!o)return!1;const a=Oe.openers.get(i);return!!a&&(s=w({},a.get(o)||{},s),!!s&&Oe.fromNodes(Array.from(i.querySelectorAll(o)),s))}static fromNodes(t,e){e=w({},ht,e||{});const n=[];for(const i of t){const t=i.dataset||{},o=t[ye]||i.getAttribute(ve)||i.getAttribute("currentSrc")||i.getAttribute(ye)||void 0;let s;const a=e.delegate;let r;a&&n.length===e.startIndex&&(s=a instanceof HTMLImageElement?a:a.querySelector("img:not([aria-hidden])")),s||(s=i instanceof HTMLImageElement?i:i.querySelector("img:not([aria-hidden])")),s&&(r=s.currentSrc||s[ye]||void 0,!r&&s.dataset&&(r=s.dataset.lazySrc||s.dataset[ye]||void 0));const l={src:o,triggerEl:i,thumbEl:s,thumbElSrc:r,thumbSrc:r};for(const e in t){let n=t[e]+"";n="false"!==n&&("true"===n||n),l[e]=n}n.push(l)}return new Oe(n,e)}static getInstance(t){return t?Le.get(t):Array.from(Le.values()).reverse().find(t=>!t.isClosing()&&t)||null}static getSlide(){var t;return(null===(t=Oe.getInstance())||void 0===t?void 0:t.getSlide())||null}static show(t=[],e={}){return new Oe(t,e)}static next(){const t=Oe.getInstance();t&&t.next()}static prev(){const t=Oe.getInstance();t&&t.prev()}static close(t=!0,...e){if(t)for(const t of Le.values())t.close(...e);else{const t=Oe.getInstance();t&&t.close(...e)}}}Object.defineProperty(Oe,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(Oe,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:ht}),Object.defineProperty(Oe,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:ie}),Object.defineProperty(Oe,"openers",{enumerable:!0,configurable:!0,writable:!0,value:new Map});const Ie=(t,e,n)=>t===n||["button","gallery"].includes(t)&&n===e,ze=t=>Object.values(t).join(" "),$e=t=>{window?.innerWidth<992&&(t.on("enterfullscreen",()=>{screen?.orientation?.lock("landscape")}),t.on("exitfullscreen",()=>{screen?.orientation?.lock("portrait")})),t.elements.container.classList.add("fancybox__content")};let Re=null;const _e=()=>(Re||(Re=Promise.all([o.e(100),o.e(103)]).then(o.bind(o,945))),Re),De=(t,e,n)=>{let i=!1,o=null;return _e().then(({renderPdf:s})=>{i||(o=s(t,e,n))}).catch(()=>{i||(t.textContent="Could not load the PDF viewer.")}),()=>{i=!0,o&&(o(),o=null)}};Oe.defaults.Hash=!1;const Ne=(t,e,n={},i={},o={},s={},a={},r={},l={},c={},d={})=>{const h=Object.keys(n).filter(t=>n[t]),u=Object.keys(i).filter(t=>i[t]),m=Object.keys(o).filter(t=>o[t]),p=Object.keys(l).filter(t=>l[t]),g=Object.keys(l).filter(t=>l[t]),f={tpl:'<button class="f-button"><svg><path stroke="none" d="M0 0h24v24H0z"/><path d="M22 4.01c-1 .49-1.98.689-3 .99-1.121-1.265-2.783-1.335-4.38-.737S11.977 6.323 12 8v1c-3.245.083-6.135-1.395-8-4 0 0-4.182 7.433 4 11-1.872 1.247-3.739 2.088-6 2 3.308 1.803 6.913 2.423 10.034 1.517 3.58-1.04 6.522-3.723 7.651-7.742a13.84 13.84 0 0 0 .497-3.753c0-.249 1.51-2.772 1.818-4.013z"/></svg></button>',click:()=>{window.open("http://twitter.com/share?url="+encodeURIComponent(window.location.href)+"&text="+encodeURIComponent(document.title),"","left=0,top=0,width=600,height=300,menubar=no,toolbar=no,resizable=yes,scrollbars=yes")}},b={tpl:'<button class="f-button"><svg><path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"/></svg></button>',click:()=>{window.open("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(window.location.href)+"&t="+encodeURIComponent(document.title),"","left=0,top=0,width=600,height=300,menubar=no,toolbar=no,resizable=yes,scrollbars=yes")}},v={Hash:!1,wheel:r?.wheel,autoFocus:!1,backdropClick:"close",closeButton:"auto",commonCaption:!1,contentClick:"toggleZoom",contentDblClick:"toggleCover",Carousel:{transition:r?.transition},Toolbar:{items:{facebook:b,twitter:f},display:{left:h,middle:u,right:m}}
2,Thumbs:{type:s?.type,showOnStart:s?.showOnStart,minCount:2},Slideshow:{playOnStart:a?.playOnStart,timeout:a?.timeout},on:{init:t=>{setTimeout(()=>{t.container&&(t.container.classList.add(`${e}-lbb_modal_area`),t.container.classList.add("lbb_modal_area"))},50)}}};if("audio-gallery"===t)return{...v,touch:!1,Carousel:{transition:r?.transition,on:{beforeChange:()=>{document.querySelectorAll(".lbb-audio-player").forEach(t=>{t?.plyr?.pause&&t.plyr.pause()})},change:(t,e)=>{setTimeout(()=>{const n=t.slides[e],i=n?.el?.querySelector(".lbb-audio-player");i&&(Plyr.setup(i,{controls:p}),i?.plyr?.play&&i.plyr.play().catch(()=>{}))},100)}}},on:{done:t=>{const e=document.querySelectorAll(".lbb-audio-player");Plyr.setup(e,{controls:g});const n=t.getSlide(),i=n?.el?.querySelector(".lbb-audio-player");i?.plyr?.play&&i.plyr.play().catch(()=>{})},init:t=>{setTimeout(()=>{t.container&&(t.container.classList.add(`${e}-lbb_modal_area`),t.container.classList.add("lbb_modal_area"))},50)},close:()=>{document.querySelectorAll(".lbb-audio-player").forEach(t=>{const e=t.plyr;e?.pause&&e.pause()})}}};if("video-gallery"===t)return{...v,defaultDisplay:"flex",on:{done:()=>{const t=document.querySelectorAll(".fancybox__html5video"),e=document.querySelectorAll(".has-youtube .fancybox__content"),n=document.querySelectorAll(".has-vimeo .fancybox__content"),i=Plyr.setup(t,{controls:p,fullscreen:{enabled:!0,fallback:!0,iosNative:!0,container:null}}),o=Plyr.setup(e),s=Plyr.setup(n);i?.forEach(t=>$e(t)),o?.forEach(t=>$e(t)),s?.forEach(t=>$e(t))},init:t=>{setTimeout(()=>{t.container&&(t.container.classList.add(`${e}-lbb_modal_area`),t.container.classList.add("lbb_modal_area"))},50)}}};if("allDataGallery"===t){const t=new Map;return{...v,defaultDisplay:"flex",on:{"Carousel.selectSlide":(e,n,i)=>{const o=i?.triggerEl?.dataset?.pdfSrc;o&&requestAnimationFrame(()=>{const e=i?.el?.querySelector(".lbbPdfHost");if(!e)return;const n=t.get(i);n&&n(),t.set(i,De(e,o,{...c,size:d?.size,color:d?.color}))})},"Carousel.unselectSlide":(e,n,i)=>{const o=t.get(i);o&&(o(),t.delete(i))},destroy:()=>{t.forEach(t=>t()),t.clear()},done:t=>{const e=document.querySelectorAll(".has-html5video video"),n=document.querySelectorAll(".has-youtube .fancybox__content"),i=document.querySelectorAll(".has-vimeo .fancybox__content");Plyr.setup(e,{controls:p});const o=Plyr.setup(n),s=Plyr.setup(i);o?.forEach(t=>t.elements.container.classList.add("fancybox__content")),s?.forEach(t=>t.elements.container.classList.add("fancybox__content"))},init:t=>{setTimeout(()=>{t.container&&(t.container.classList.add(`${e}-lbb_modal_area`),t.container.classList.add("lbb_modal_area"))},50)}}}}if("pdf-gallery"===t){const t=new Map,n=e=>{const n=t.get(e);n&&(n(),t.delete(e))},i=e=>{const i=e?.triggerEl?.dataset?.pdfSrc;i&&requestAnimationFrame(()=>{const o=e?.el?.querySelector(".lbbPdfHost");o&&(n(e),t.set(e,De(o,i,{...c,size:d?.size,color:d?.color})))})};return{...v,Thumbs:!1,on:{init:t=>{setTimeout(()=>{t.container&&(t.container.classList.add(`${e}-lbb_modal_area`),t.container.classList.add("lbb_modal_area"),t.container.classList.add("lbb_type_pdf"))},50)},"Carousel.selectSlide":(t,e,n)=>{i(n)},"Carousel.unselectSlide":(t,e,i)=>{n(i)},destroy:()=>{t.forEach(t=>t()),t.clear()}}}}return"iframe-gallery"===t?{...v,on:{init:t=>{setTimeout(()=>{t.container&&(t.container.classList.add(`${e}-lbb_modal_area`),t.container.classList.add("lbb_modal_area"),t.container.classList.add("lbb_type_iframe_overlaping"))},50)}}}:"html-gallery"===t?{...v,on:{init:t=>{setTimeout(()=>{t.container&&(t.container.classList.add(`${e}-lbb_modal_area`),t.container.classList.add("lbb_modal_area"),t.container.classList.add("lbb_type_html_overlaping"))},50)}}}:v},Be=(t,e,n,i,o,s,a,r,l=null,c={},d={})=>{Oe.defaults.Hash=!1;const h=l&&l.ownerDocument?l.ownerDocument:"undefined"!=typeof document?document:null,u=(t,e)=>{if(Oe.bind(t,e),h&&h.body&&h.body!==document.body)try{Oe.bind(h.body,t,e)}catch(t){}};if(h&&!h.lbbPdfPrefetchBound){h.lbbPdfPrefetchBound=!0;const t=new Set,e=e=>{const n=e.target.closest?.("[data-pdf-src]"),i=n?.dataset?.pdfSrc;i&&!t.has(i)&&(t.add(i),(t=>{_e().then(({getPdfFetchUrl:e})=>{const n=e(t);n&&fetch(n,{mode:"no-cors",credentials:"omit"}).catch(()=>{})}).catch(()=>{})})(i))};h.addEventListener("pointerover",e,{passive:!0}),h.addEventListener("touchstart",e,{passive:!0})}const m=Ne("gallery",t,e,n,i,o,s,a,r,c,d);u(`[data-fancybox='${t}-gallery']`,m),u(`[data-fancybox="${t}-gallery"]`,m);const p=Ne("audio-gallery",t,e,n,i,o,s,a,r,c,d);u(`[data-fancybox='${t}-audio-gallery']`,p),u(`[data-fancybox="${t}-audio-gallery"]`,p);const g=Ne("video-gallery",t,e,n,i,o,s,a,r,c,d);u(`[data-fancybox='${t}-video-gallery']`,g),u(`[data-fancybox="${t}-video-gallery"]`,g);const f=Ne("allDataGallery",t,e,n,i,o,s,a,r,c,d);u(`[data-fancybox='${t}-allDataGallery']`,f),u(`[data-fancybox="${t}-allDataGallery"]`,f);const b=Ne("pdf-gallery",t,e,n,i,o,s,a,r,c,d);u(`[data-fancybox='${t}-pdf-gallery']`,b),u(`[data-fancybox="${t}-pdf-gallery"]`,b);const v=Ne("iframe-gallery",t,e,n,i,o,s,a,r,c,d);u(`[data-fancybox='${t}-iframe-gallery']`,v),u(`[data-fancybox="${t}-iframe-gallery"]`,v);const y=Ne("html-gallery",t,e,n,i,o,s,a,r,c,d);u(`[data-fancybox='${t}-html-gallery']`,y),u(`[data-fancybox="${t}-html-gallery"]`,y)},He="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MDAiIGhlaWdodD0iMTUwIiB2aWV3Qm94PSIwIDAgNjAwIDE1MCI+CiAgPHRleHQgeD0iMjAiIHk9Ijk1IiBjbGFzcz0idGV4dCIgZm9udC1zaXplPSI3MHB4IiBmaWxsPSIjZmZmIiBmb250LWZhbWlseT0ic2VyaWYiPlBsZWFzZSBJbnNlcnQgQXVkaW88L3RleHQ+Cjwvc3ZnPg==",je="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MDAiIGhlaWdodD0iMTUwIiB2aWV3Qm94PSIwIDAgNjAwIDE1MCI+CiAgPHRleHQgeD0iMjAiIHk9Ijk1IiBjbGFzcz0idGV4dCIgZm9udC1zaXplPSI3MHB4IiBmaWxsPSIjZmZmIiBmb250LWZhbWlseT0ic2VyaWYiPlBsZWFzZSBJbnNlcnQgUERGPC90ZXh0Pgo8L3N2Zz4=",Fe="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MDAiIGhlaWdodD0iMTUwIiB2aWV3Qm94PSIwIDAgNjAwIDE1MCI+CiAgPHRleHQgeD0iMjAiIHk9Ijk1IiBjbGFzcz0idGV4dCIgZm9udC1zaXplPSI3MHB4IiBmaWxsPSIjZmZmIj5QbGVhc2UgSW5zZXJ0IFZpZGVvPC90ZXh0Pgo8L3N2Zz4=",Ve=t=>{const e=(new DOMParser).parseFromString(t,"text/html"),n=["b","strong","i","em","span","a","br"],i=["style","href","target","rel","class"];return e.body.querySelectorAll("*").forEach(t=>
2{n.includes(t.tagName.toLowerCase())?[...t.attributes].forEach(e=>{if(i.includes(e.name)||t.removeAttribute(e.name),"href"===e.name){const n=(t=>{try{const e=new URL(t);return["http:","https:"].includes(e.protocol)?e.toString():null}catch(e){return"string"==typeof t&&t.startsWith("/")&&!t.startsWith("//")?t:null}})(e.value);n?t.setAttribute("href",n):t.removeAttribute("href")}}):t.remove()}),e.body.innerHTML},We=({showContent:t,caption:e,captionPosition:n})=>t.caption&&e&&(0,s.createElement)("div",{className:`caption ${n?.position}`},(0,s.createElement)("p",null,Ve(e))),qe=window.wp.element,Ze="https://bblockswp.com/wp-content/demo/img/green-hill.jpg",Xe=({img:t,thumbnail:e,altText:n})=>{const[i,o]=(0,qe.useState)(!1);return(0,s.createElement)("div",{className:`img ${t?.animation}${i?" portrait":""}`},(0,s.createElement)("img",{className:"rounded",src:e||Ze,alt:n,onLoad:t=>{const{naturalWidth:e,naturalHeight:n}=t.target;o(n>e)}}))},Ye="#4527a4",Ge=((0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#fff",width:"20px",height:"20px",viewBox:"0 0 24 24"},(0,s.createElement)("path",{d:"M8.71,7.71,11,5.41V15a1,1,0,0,0,2,0V5.41l2.29,2.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42l-4-4a1,1,0,0,0-.33-.21,1,1,0,0,0-.76,0,1,1,0,0,0-.33.21l-4,4A1,1,0,1,0,8.71,7.71ZM21,12a1,1,0,0,0-1,1v6a1,1,0,0,1-1,1H5a1,1,0,0,1-1-1V13a1,1,0,0,0-2,0v6a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3V13A1,1,0,0,0,21,12Z"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17px",height:"17px",fill:"#000",viewBox:"0 0 640 512"},(0,s.createElement)("path",{d:"M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"}))),Ue=(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17px",height:"17px",fill:"#000",viewBox:"0 0 512 512"},(0,s.createElement)("path",{d:"M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 144-208 0c-35.3 0-64 28.7-64 64l0 144-48 0c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM176 352l32 0c30.9 0 56 25.1 56 56s-25.1 56-56 56l-16 0 0 32c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-48 0-80c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0 0 48 16 0zm96-80l32 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-32 0c-8.8 0-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16l0-64c0-8.8-7.2-16-16-16l-16 0 0 96 16 0zm80-112c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 32 32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 48c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-64 0-64z"})),Je=(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17px",height:"17px",fill:"#000",viewBox:"0 0 512 512"},(0,s.createElement)("path",{d:"M96 96c0-35.3 28.7-64 64-64H448c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H80c-44.2 0-80-35.8-80-80V128c0-17.7 14.3-32 32-32s32 14.3 32 32V400c0 8.8 7.2 16 16 16s16-7.2 16-16V96zm64 24v80c0 13.3 10.7 24 24 24H296c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24H184c-13.3 0-24 10.7-24 24zm208-8c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16s-7.2-16-16-16H384c-8.8 0-16 7.2-16 16zm0 96c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16s-7.2-16-16-16H384c-8.8 0-16 7.2-16 16zM160 304c0 8.8 7.2 16 16 16H432c8.8 0 16-7.2 16-16s-7.2-16-16-16H176c-8.8 0-16 7.2-16 16zm0 96c0 8.8 7.2 16 16 16H432c8.8 0 16-7.2 16-16s-7.2-16-16-16H176c-8.8 0-16 7.2-16 16z"})),Ke=(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17px",height:"17px",fill:"#000",viewBox:"0 0 384 512"},(0,s.createElement)("path",{d:"M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80V432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"})),Qe=(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17px",height:"17px",fill:"#000",viewBox:"0 0 512 512"},(0,s.createElement)("path",{d:"M499.1 6.3c8.1 6 12.9 15.6 12.9 25.7v72V368c0 44.2-43 80-96 80s-96-35.8-96-80s43-80 96-80c11.2 0 22 1.6 32 4.6V147L192 223.8V432c0 44.2-43 80-96 80s-96-35.8-96-80s43-80 96-80c11.2 0 22 1.6 32 4.6V200 128c0-14.1 9.3-26.6 22.8-30.7l320-96c9.7-2.9 20.2-1.1 28.3 5z"})),tn=((0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#000000",width:"17px",height:"17px",viewBox:"0 0 24 24"},(0,s.createElement)("path",{d:"M19,4H5A3,3,0,0,0,2,7V17a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3V7A3,3,0,0,0,19,4ZM5,18a1,1,0,0,1-1-1V14.58l3.3-3.29a1,1,0,0,1,1.4,0L15.41,18Zm15-1a1,1,0,0,1-1,1h-.77l-3.81-3.83.88-.88a1,1,0,0,1,1.4,0L20,16.58Zm0-3.24-1.88-1.87a3.06,3.06,0,0,0-4.24,0l-.88.88L10.12,9.89a3.06,3.06,0,0,0-4.24,0L4,11.76V7A1,1,0,0,1,5,6H19a1,1,0,0,1,1,1Z"})),(0,s.createElement)("svg",{fill:"#000000",width:"17px",height:"17px",viewBox:"0 -2 20 20",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)("path",{d:"M12.7361611,0.063952038 C13.2551391,0.263360331 13.5227261,0.869148905 13.3338336,1.41701869 L8.54555162,15.3051026 C8.35665911,15.8529724 7.78281676,16.1354563 7.26383885,15.936048 C6.74486095,15.7366397 6.47727387,15.1308511 6.66616638,14.5829813 L11.4544484,0.694897379 C11.6433409,0.147027596 12.2171832,-0.135456255 12.7361611,0.063952038 Z M2.41421356,8.25614867 L5.94974747,11.9885083 C6.34027176,12.4007734 6.34027176,13.0691871 5.94974747,13.4814522 C5.55922318,13.8937173 4.9260582,13.8937173 4.53553391,13.4814522 L0.292893219,9.0026206 C-0.0976310729,8.59035554 -0.0976310729,7.9219418 0.292893219,7.50967674 L4.53553391,3.03084515 C4.9260582,2.61858008 5.55922318,2.61858008 5.94974747,3.03084515 C6.34027176,3.44311021 6.34027176,4.11152395 5.94974747,4.52378901 L2.41421356,8.25614867 Z M17.5857864,8.25614867 L14.0502525,4.52378901 C13.6597282,4.11152395 13.6597282,3.44311021 14.0502525,3.03084515 C14.4407768,2.61858008 15.0739418,2.61858008 15.4644661,3.03084515 L19.7071068,7.50967674 C20.0976311,7.9219418 20.0976311,8.59035554 19.7071068,9.0026206 L15.4644661,13.4814522 C15.0739418,13.8937173 14.4407768,13.8937173 14.0502525,13.4814522 C13.6597282,13.0691871 13.6597282,12.4007734 14.0502525,11.9885083 L17.5857864,8.25614867 Z"}))),en=(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#000000",width:"17px",height:"17px",viewBox:"0 0 24 24"},(0,s.createElement)("path",{fillRule:"evenodd",d:"M23,11.9972 C23,15.0688707 22.7080514,16.95
271365 22.0247481,18.1281724 C21.3347709,19.3777602 20.5269977,19.7708297 18.8782989,19.8862992 C17.7148693,19.9542414 14.794638,20 12.0026667,20 C9.2044172,20 6.28275714,19.9542562 5.10860514,19.8855427 C3.47493151,19.7708031 2.66701263,19.37838 1.97791182,18.142374 C1.29279472,16.9480084 1,15.052042 1,12.0084 C1,8.94737365 1.29138368,7.06090428 1.97193166,5.86259947 C2.67010997,4.61046509 3.49111627,4.21325835 5.11100471,4.1184917 C6.23144506,4.04250638 8.99660854,4 12.0026667,4 C15.002263,4 17.766208,4.04252223 18.8782989,4.11790083 C20.5073007,4.21303163 21.3281267,4.60936303 22.020213,5.8580297 C22.7108012,7.06048454 23,8.93778123 23,11.9972 Z M20.283329,6.84963647 C19.9603324,6.26505017 19.7713697,6.17346202 18.752413,6.11391338 C17.6926261,6.04212137 14.954737,6 12.0026667,6 C9.04424331,6 6.3050775,6.04210674 5.2370951,6.1144916 C4.22844212,6.17352647 4.03674592,6.26627 3.71489655,6.84342165 C3.2475376,7.66638709 3,9.26898917 3,11.9972 C3,14.7270394 3.24886149,16.33852 3.71873501,17.1577995 C4.03565111,17.7261665 4.22600958,17.8186276 5.23703026,17.8897046 C6.34874254,17.9546989 9.24212825,18 12.0026667,18 C14.7569983,18 17.6489264,17.9546849 18.7500936,17.8904464 C19.7737637,17.8187098 19.961409,17.7274 20.2855157,17.1409953 C20.752236,16.3407623 21,14.7382734 21,12.0084 C21,9.25771396 20.7535449,7.66399511 20.283329,6.84963647 Z M10,9 L15,12 L10,15 L10,9 Z"})),nn=((0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#000000",width:"30px",height:"30px",viewBox:"-6 -6 24 24",preserveAspectRatio:"xMinYMin",className:"jam jam-close"},(0,s.createElement)("path",{d:"M7.314 5.9l3.535-3.536A1 1 0 1 0 9.435.95L5.899 4.485 2.364.95A1 1 0 1 0 .95 2.364l3.535 3.535L.95 9.435a1 1 0 1 0 1.414 1.414l3.535-3.535 3.536 3.535a1 1 0 1 0 1.414-1.414L7.314 5.899z"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32px",height:"32px",viewBox:"0 0 32 32"},(0,s.createElement)("path",{d:"M28,4H10A2.0059,2.0059,0,0,0,8,6V20a2.0059,2.0059,0,0,0,2,2H28a2.0059,2.0059,0,0,0,2-2V6A2.0059,2.0059,0,0,0,28,4Zm0,16H10V6H28Z"}),(0,s.createElement)("path",{d:"M18,26H4V16H6V14H4a2.0059,2.0059,0,0,0-2,2V26a2.0059,2.0059,0,0,0,2,2H18a2.0059,2.0059,0,0,0,2-2V24H18Z"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 20 20",fill:Ye},(0,s.createElement)("path",{fill:Ye,fillRule:"evenodd",d:"M9.938 4.016a.146.146 0 00-.054.057L3.027 15.74a.176.176 0 00-.002.183c.016.03.037.05.054.06.015.01.034.017.066.017h13.713a.12.12 0 00.066-.017.163.163 0 00.055-.06.176.176 0 00-.003-.183L10.12 4.073a.146.146 0 00-.054-.057.13.13 0 00-.063-.016.13.13 0 00-.064.016zm1.043-.45a1.13 1.13 0 00-1.96 0L2.166 15.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L10.982 3.566z"}),(0,s.createElement)("rect",{fill:Ye,width:"2",height:"2",x:"9.002",y:"13",rx:"1"}),(0,s.createElement)("path",{fill:Ye,d:"M9.1 7.995a.905.905 0 111.8 0l-.35 3.507a.553.553 0 01-1.1 0L9.1 7.995z"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 430.848 430.848"},(0,s.createElement)("path",{d:"M286.244,249.537l10.992-45.639c0.035-0.143,0.071-0.285,0.109-0.428c2.909-10.867,11.469-19.426,22.339-22.338   l33.347-8.936c-5.472-6.525-13.678-10.682-22.839-10.682h-9.837c-2.511-7.895-5.7-15.59-9.515-22.957l6.96-6.959   c11.622-11.623,11.622-30.535,0-42.156L296.76,68.4c-5.631-5.629-13.117-8.73-21.079-8.73c-7.961,0-15.447,3.102-21.078,8.732   l-6.96,6.959c-7.369-3.814-15.064-7.004-22.956-9.516V56.01c0-16.436-13.372-29.807-29.808-29.807h-29.758   c-16.436,0-29.808,13.371-29.808,29.807v9.836c-7.893,2.512-15.588,5.701-22.957,9.516l-6.96-6.961   c-5.631-5.629-13.117-8.73-21.078-8.73c-7.961,0-15.447,3.102-21.079,8.732L42.2,89.443c-11.622,11.621-11.622,30.533,0,42.156   l6.959,6.959c-3.815,7.367-7.004,15.063-9.515,22.957h-9.837C13.372,161.516,0,174.887,0,191.324v29.758   c0,16.436,13.372,29.807,29.808,29.807h9.837c2.511,7.895,5.7,15.588,9.515,22.957l-6.96,6.959   c-11.623,11.623-11.623,30.533,0,42.158l21.041,21.039c5.632,5.631,13.118,8.732,21.079,8.732s15.447-3.102,21.077-8.732   l6.96-6.959c7.366,3.815,15.061,7.002,22.957,9.514v9.838c0,16.436,13.372,29.809,29.808,29.809h25.809   c-2.388-5.691-3.644-11.852-3.645-18.209c-0.002-12.572,4.892-24.391,13.781-33.279L286.244,249.537z M180,286.201   c-44.112,0-80-35.887-80-79.998c0-44.113,35.888-80.002,80-80.002s80,35.889,80,80.002C260,250.314,224.112,286.201,180,286.201z"}),(0,s.createElement)("path",{d:"M425.267,218.734l-0.319-0.32c-0.939-0.941-2.189-1.428-3.541-1.469c-1.326,0-2.598,0.525-3.536,1.465l-21.596,21.596   c-3.304,3.305-7.699,5.125-12.375,5.125c-4.676,0-9.072-1.82-12.379-5.129c-3.307-3.305-5.128-7.701-5.128-12.377   c0.001-4.676,1.821-9.072,5.126-12.377l21.596-21.596c0.939-0.939,1.465-2.213,1.464-3.539c-0.001-1.328-0.53-2.6-1.47-3.537   l-0.314-0.313c-3.605-3.605-8.399-5.592-13.499-5.592c-1.665,0-3.325,0.219-4.936,0.65l-44.348,11.885   c-6.568,1.76-11.741,6.932-13.498,13.496c-0.011,0.041-0.021,0.08-0.031,0.121l-11.817,49.063l-87.667,87.666   c-6.528,6.527-10.122,15.207-10.121,24.44c0.002,9.232,3.598,17.91,10.126,24.439l2.088,2.088   c6.528,6.529,15.209,10.
2125,24.443,10.125h0c9.231,0,17.909-3.594,24.437-10.121l87.667-87.666l49.061-11.816   c0.041-0.01,0.082-0.022,0.122-0.031c6.563-1.758,11.735-6.928,13.497-13.496l11.883-44.352   C431.959,230.598,430.066,223.535,425.267,218.734z M257.26,368.406c-1.888,1.889-4.399,2.93-7.071,2.93   c-2.671,0-5.183-1.041-7.072-2.932c-1.887-1.885-2.928-4.397-2.928-7.068c-0.001-2.672,1.041-5.185,2.931-7.072   c1.886-1.887,4.398-2.928,7.069-2.928c2.672,0,5.184,1.041,7.072,2.93c1.887,1.885,2.928,4.396,2.928,7.068   C260.189,364.006,259.148,366.518,257.26,368.406z M316.194,305.935L274.82,347.31c-1.416,1.416-3.3,2.197-5.303,2.197   c-2.003,0-3.887-0.781-5.303-2.197c-1.417-1.416-2.197-3.299-2.197-5.303s0.78-3.887,2.197-5.303l41.374-41.375   c1.417-1.418,3.3-2.197,5.303-2.197s3.887,0.779,5.303,2.197c1.417,1.416,2.197,3.299,2.197,5.303S317.611,304.519,316.194,305.935   z"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 14.707 14.707"},(0,s.createElement)("rect",{x:"6.275",y:"0",width:"2.158",height:"14.707"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 357 357"},(0,s.createElement)("path",{d:"M357,204H0v-51h357V204z"})),({galleryIcon:t,type:e,lightboxType:n})=>{let i="",o="",a="";switch(a=Ie(n,e,"audio")?"audio":Ie(n,e,"video")?"video":Ie(n,e,"youtube")?"youtube":Ie(n,e,"content")?"content":Ie(n,e,"pdf")?"pdf":Ie(n,e,"html")?"html":"default",a){case"audio":i="music_icon audio_icon",o=Qe;break;case"video":i="music_icon video_icon",o=Ke;break;case"youtube":i="music_icon youtube_icon",o=en;break;case"content":i="contnet-svgImage",o=Je;break;case"pdf":i="music_icon pdf_icon",o=Ue;break;case"html":i="music_icon html_icon",o=tn;break;default:i="music_icon iframe_icon",o=Ge}return t&&(0,s.createElement)("div",{className:i},o)}),on=t=>{const e=(t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,e,n)=>n?n.toUpperCase():e.toLowerCase()))(t);return e.charAt(0).toUpperCase()+e.slice(1)},sn=(...t)=>t.filter((t,e,n)=>Boolean(t)&&""!==t.trim()&&n.indexOf(t)===e).join(" ").trim(),an=t=>{for(const e in t)if(e.startsWith("aria-")||"role"===e||"title"===e)return!0};var rn={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const ln=(0,s.forwardRef)(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:o="",children:a,iconNode:r,...l},c)=>(0,s.createElement)("svg",{ref:c,...rn,width:e,height:e,stroke:t,strokeWidth:i?24*Number(n)/Number(e):n,className:sn("lucide",o),...!a&&!an(l)&&{"aria-hidden":"true"},...l},[...r.map(([t,e])=>(0,s.createElement)(t,e)),...Array.isArray(a)?a:[a]])),cn=(t,e)=>{const n=(0,s.forwardRef)(({className:n,...i},o)=>{return(0,s.createElement)(ln,{ref:o,iconNode:e,className:sn(`lucide-${a=on(t),a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${t}`,n),...i});var a});return n.displayName=on(t),n},dn=cn("rewind",[["path",{d:"M12 6a2 2 0 0 0-3.414-1.414l-6 6a2 2 0 0 0 0 2.828l6 6A2 2 0 0 0 12 18z",key:"2a1g8i"}],["path",{d:"M22 6a2 2 0 0 0-3.414-1.414l-6 6a2 2 0 0 0 0 2.828l6 6A2 2 0 0 0 22 18z",key:"rg3s36"}]]),hn=cn("fast-forward",[["path",{d:"M12 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 12 18z",key:"b19h5q"}],["path",{d:"M2 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 2 18z",key:"h7h5ge"}]]),un=cn("volume-x",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]),mn=cn("volume-2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]),pn=(t="",e=5)=>
2{const[n,i]=(0,s.useState)(!1),[o,a]=(0,s.useState)(0),[r,l]=(0,s.useState)(0),[c,d]=(0,s.useState)(.7),[h,u]=(0,s.useState)(!1),[m,p]=(0,s.useState)(1),g=(0,s.useRef)(null),f=(0,s.useRef)(null),b=(0,s.useRef)(null);(0,s.useEffect)(()=>{g.current=new Audio(t);const e=g.current;e.volume=c;const n=()=>a(Math.floor(e.currentTime)),o=()=>l(Math.floor(e.duration)),s=()=>i(!1);return e.addEventListener("timeupdate",n),e.addEventListener("durationchange",o),e.addEventListener("ended",s),()=>{e.removeEventListener("timeupdate",n),e.removeEventListener("durationchange",o),e.removeEventListener("ended",s),e.pause()}},[t]),(0,s.useEffect)(()=>{g.current&&(n?g.current.play().catch(t=>{console.error("Error playing audio:",t),i(!1)}):g.current.pause())},[n]),(0,s.useEffect)(()=>{g.current&&(g.current.muted=h)},[h]);const v=t=>{g.current&&(g.current.currentTime=t,a(t))},y=t=>{const e=Math.min(Math.max(t,0),1);d(e),g.current&&(g.current.volume=e,g.current.muted&&(g.current.muted=!1,u(!1)))};return{isPlaying:n,currentTime:o,duration:r,volume:c,togglePlay:()=>{i(!n)},seek:v,adjustVolume:y,formatTime:t=>{const e=Math.floor(t/60),n=Math.floor(t%60);return`${e}:${n<10?"0":""}${n}`},toggleMute:()=>u(!h),isMuted:h,volBarRef:f,handleVolumeChange:t=>{const e=f.current;if(!e)return;const n=e.getBoundingClientRect(),i=(t.clientX-n.left)/n.width;y(i)},skipBackward:()=>{const t=Math.max(o-e,0);v(t)},skipForward:()=>{const t=Math.min(o+e,r);v(t)},changePlaybackRate:t=>{p(t),g.current&&(g.current.playbackRate=t)},playbackRate:m,progressRef:b,handleProgressClick:t=>{if(!b.current||!g.current||!r)return;const e=b.current.getBoundingClientRect(),n=(t.clientX-e.left)/e.width*r;v(n)},restart:()=>{g.current&&(g.current.currentTime=0,g.current.play(),i(!0))}}},gn=cn("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]),fn=cn("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]),bn=({isPlaying:t,togglePlay:e})=>(0,s.createElement)("button",{className:"play",onClick:e},t?(0,s.createElement)(gn,{className:"forbackIcn"}):(0,s.createElement)(fn,{className:"forbackIcn"}));function vn({caption:t,content:e,attributes:n,customIsPlay:i}){const{controls:o}=n||{},{rewind:a,volume:r,"current-time":l,duration:c,skipTime:d}=o,{isPlaying:h,togglePlay:u,currentTime:m,duration:p,formatTime:g,toggleMute:f,isMuted:b,skipBackward:v,skipForward:y,progressRef:w,handleProgressClick:x}=pn(e,d);return(0,s.useEffect)(()=>{i&&u()},[]),(0,s.createElement)("div",{className:"player1 audioPlayer"},(0,s.createElement)(bn,{size:18,isPlaying:h,togglePlay:u}),(0,s.createElement)("div",{className:"info"},(0,s.createElement)("div",{className:"top"},(0,s.createElement)("h3",{className:"title"},t),(0,s.createElement)("span",{className:"time"},l&&g(m),l&&c&&"/",c&&g(p))),(0,s.createElement)("div",{ref:w,onClick:x,className:"bar-bg"},(0,s.createElement)("div",{className:"bar-fill",style:{width:m/p*100+"%"}},(0,s.createElement)("div",{className:"thumb",style:{left:m/p*100+"%",top:"50%"}})))),(0,s.createElement)("div",{className:"controls"},a&&(0,s.createElement)("button",{onClick:v,className:"btn"},(0,s.createElement)(dn,{className:"forbackIcn"})),a&&(0,s.createElement)("button",{onClick:y,className:"btn"},(0,s.createElement)(hn,{className:"forbackIcn"})),r&&(0,s.createElement)("button",{className:"btn",onClick:f},b?(0,s.createElement)(un,{className:"volumeIcn"}):(0,s.createElement)(mn,{className:"volumeIcn"}))))}const yn=cn("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]);function wn({caption:t,content:e,artist:n,attributes:i,customIsPlay:o}){const{controls:a}=i||{},{volume:r,"current-time":l,duration:c,isHeart:d,isPlaybackSpeed:h}=a,{isPlaying:u,togglePlay:m,currentTime:p,duration:g,formatTime:f,toggleMute:b,isMuted:v,playbackRate:y,changePlaybackRate:w,progressRef:x,handleProgressClick:E}=pn(e);return(0,s.useEffect)(()=>{o&&m()},[]),(0,s.createElement)("div",{className:"player2 audioPlayer"},(0,s.createElement)("div",{className:"info6"},(0,s.createElement)("div",{className:"top"},(0,s.createElement)("div",null,(0,s.createElement)("h3",{className:"title"},t),(0,s.createElement)("p",{className:"artist"},n)),d&&(0,s.createElement)("button",{className:"heart"},(0,s.createElement)(yn,{size:18}))),(0,s.createElement)("div",{className:"progress"}
2,(0,s.createElement)("div",{ref:x,onClick:E,className:"bar-bg"},(0,s.createElement)("div",{className:"bar-fill",style:{width:p/g*100+"%"}}),(0,s.createElement)("div",{className:"thumb",style:{left:p/g*100+"%",top:"50%"}})),(0,s.createElement)("div",{className:"time"},l?(0,s.createElement)("span",null,f(p)):(0,s.createElement)("span",null),c?(0,s.createElement)("span",null,"-",f(g-p)):(0,s.createElement)("span",null))),(0,s.createElement)("div",{className:"controls"},r?(0,s.createElement)("div",{className:"vol",onClick:b},v?(0,s.createElement)(un,{className:"volumeIcn"}):(0,s.createElement)(mn,{className:"volumeIcn"})):(0,s.createElement)("div",null),(0,s.createElement)(bn,{isPlaying:u,togglePlay:m}),h?(0,s.createElement)("div",{className:"speed-dropdown"},(0,s.createElement)("button",{className:"speed-button"},y.toFixed(1),"x"),(0,s.createElement)("div",{className:"speed-options"},[.5,.75,1,1.25,1.5,2].map(t=>(0,s.createElement)("div",{key:t,onClick:()=>w(t),className:"speed-option"},t,"x")))):(0,s.createElement)("div",null))))}function xn({caption:t,content:e,artist:n,attributes:i,customIsPlay:o}){const{controls:a}=i||{},{volume:r,"current-time":l,duration:c}=a,{isPlaying:d,togglePlay:h,currentTime:u,duration:m,formatTime:p,toggleMute:g,isMuted:f,progressRef:b,handleProgressClick:v}=pn(e);return(0,s.useEffect)(()=>{o&&h()},[]),(0,s.createElement)("div",{className:"player3 audioPlayer"},(0,s.createElement)("div",{className:"top"},(0,s.createElement)(bn,{isPlaying:d,togglePlay:h}),(0,s.createElement)("div",null,(0,s.createElement)("h3",{className:"title"},t),(0,s.createElement)("p",{className:"artist"},n))),(0,s.createElement)("div",{className:"progress"},l?(0,s.createElement)("span",{className:"time"},p(u)):(0,s.createElement)("span",null),(0,s.createElement)("div",{className:"bar-bg"},(0,s.createElement)("div",{ref:b,onClick:v,className:"bar-fill",style:{width:u/m*100+"%"}})),c?(0,s.createElement)("span",{className:"time"},p(m)):(0,s.createElement)("span",null)),(0,s.createElement)("div",{className:"bottom"},(0,s.createElement)("div",{className:"bars"},[1,2,3,4,5].map(t=>(0,s.createElement)("div",{key:t,className:"bar-line",style:{height:10+10*Math.random()}}))),r?(0,s.createElement)("button",{className:"mute",onClick:g},f?(0,s.createElement)(un,{className:"volumeIcn"}):(0,s.createElement)(mn,{className:"volumeIcn"})):(0,s.createElement)("span",null)))}const En="#146EF5",Cn="linear-gradient(135deg, #0040E3, #18D4FD)",Mn=((0,s.createElement)("svg",{xmlns:"https://www.w3.org/2000/svg",width:15,height:15,viewBox:"0 0 548.172 548.172"},(0,s.createElement)("path",{fill:En,d:"M534.75 49.965c-8.945-8.945-19.694-13.422-32.261-13.422H45.681c-12.562 0-23.313 4.477-32.264 13.422C4.471 58.913 0 69.663 0 82.226v310.633c0 12.566 4.471 23.315 13.417 32.265 8.951 8.945 19.702 13.414 32.264 13.414h155.318c0 7.231-1.524 14.661-4.57 22.269-3.044 7.614-6.09 14.273-9.136 19.981-3.042 5.715-4.565 9.897-4.565 12.56 0 4.948 1.807 9.24 5.424 12.847 3.615 3.621 7.898 5.435 12.847 5.435h146.179c4.949 0 9.233-1.813 12.848-5.435 3.62-3.606 5.427-7.898 5.427-12.847 0-2.468-1.526-6.611-4.571-12.415-3.046-5.801-6.092-12.566-9.134-20.267-3.046-7.71-4.569-15.085-4.569-22.128h155.318c12.56 0 23.309-4.469 32.254-13.414 8.949-8.949 13.422-19.698 13.422-32.265V82.226c.003-12.563-4.474-23.313-13.423-32.261zm-23.123 269.803c0 2.475-.903 4.613-2.711 6.424-1.81 1.804-3.952 2.707-6.427 2.707H45.681c-2.473 0-4.615-.903-6.423-2.707-1.807-1.817-2.712-3.949-2.712-6.424V82.226c0-2.475.902-4.615 2.712-6.423 1.809-1.805 3.951-2.712 6.423-2.712h456.815c2.471 0 4.617.904 6.42 2.712 1.808 1.809 2.711 3.949 2.711 6.423v237.542z"})),(0,s.createElement)("svg",{xmlns:"https://www.w3.org/2000/svg",width:15,height:15,viewBox:"0 0 512 512"},(0,s.createElement)("path",{fill:En,d:"M394.667 0H117.333C87.936 0 64 23.936 64 53.333v405.333C64 488.064 87.936 512 117.333 512h277.333C424.064 512 448 488.064 448 458.667V53.333C448 23.936 424.064 0 394.667 0zM256 480c-11.755 0-21.333-9.579-21.333-21.333s9.579-21.333 21.333-21.333 21.333 9.579 21.333 21.333S267.755 480 256 480zm149.333-64c0 5.888-4.779 10.667-10.667 10.667H117.333c-5.888 0-10.667-4.779-10.667-10.667V53.333c0-5.888 4.779-10.667 10.667-10.667h277.333c5.888 0 10.667 4.779 10.667 10.667V416z"})),(0,s.createElement)("svg",{xmlns:"https://www.w3.org/2000/svg",width:15,height:15,viewBox:"0 0 503.604 503.604"},(0,s.createElement)("path",{fill:En,d:"M337.324 0H167.192c-28.924 0-53.5 23.584-53.5 52.5v398.664c0 28.916 24.056 52.44 52.98 52.44l170.412-.184c28.92 0 52.58-23.528 52.58-52.448l.248-398.5C389.908 23.452 366.364 0 337.324 0zM227.68 31.476h49.36c4.336 0 7.868 3.52 7.868 7.868 0 4.348-3.532 7.868-7.868 7.868h-49.36a7.865 7.865 0 01-7.868-7.868 7.865 7.865 0 017.868-7.868zm-29.66 2.504c2.916-2.912 8.224-2.952 11.136 0a7.973 7.973 0 012.324 5.588c0 2.048-.864 4.088-2.324 5.548-1.452 1.46-3.504 2.32-5.548 2.32-2.084 0-4.088-.86-5.588-2.32-1.452-1.456-2.28-3.5-2.28-5.548-.004-2.088.828-4.132 2.28-5.588zm52.752 454.028c-12.984 0-23.544-10.568-23.544-23.548 0-12.984 10.56-23.548 23.544-23.548s23.544 10.564 23.544 23.548c0 12.98-10.564 23.548-23.544 23.548zm114.716-63.1H141.232V74.756h224.256v350.152z"})),(0,s.createElement)("svg",{xmlns:"https://www.w3.org/2000/svg",width:14,height:14,viewBox:"0 0 330 330"},(0,s.createElement)("path",{d:"M100.606 229.393c-5.857-5.857-15.355-5.857-21.213 0-5.858 5.857-5.858 15.355 0 21.213l75 75A14.954 14.954 0 00165 330a14.95 14.95 0 0010.606-4.394l75-75c5.858-5.857 5.858-15.355 0-21.213-5.857-5.857-15.355-5.857-21.213 0L180 278.787V51.212l49.394 49.394A14.95 14.95 0 00240 105a14.95 14.95 0 0010.606-4.394c5.858-5.857 5.858-15.355 0-21.213l-75-75c-5.857-5.858-15.355-5.858-21.213 0l-75 75c-5.858 5.857-5.858 15.355 0 21.213 5.857 5.857 15.355 5.857 21.213 0L150 51.212v227.574l-49.394-49.393z"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 430.848 430.848"},(0,s.createElement)("path",{d:"M286.244,249.537l10.992-45.639c0.035-0.143,0.071-0.285,0.109-0.428c2.909-10.867,11.469-19.426,22.339-22.338 l33.347-8.936c-5.472-6.525-13.678-10.682-22.839-10.
2682h-9.837c-2.511-7.895-5.7-15.59-9.515-22.957l6.96-6.959 c11.622-11.623,11.622-30.535,0-42.156L296.76,68.4c-5.631-5.629-13.117-8.73-21.079-8.73c-7.961,0-15.447,3.102-21.078,8.732 l-6.96,6.959c-7.369-3.814-15.064-7.004-22.956-9.516V56.01c0-16.436-13.372-29.807-29.808-29.807h-29.758 c-16.436,0-29.808,13.371-29.808,29.807v9.836c-7.893,2.512-15.588,5.701-22.957,9.516l-6.96-6.961 c-5.631-5.629-13.117-8.73-21.078-8.73c-7.961,0-15.447,3.102-21.079,8.732L42.2,89.443c-11.622,11.621-11.622,30.533,0,42.156 l6.959,6.959c-3.815,7.367-7.004,15.063-9.515,22.957h-9.837C13.372,161.516,0,174.887,0,191.324v29.758 c0,16.436,13.372,29.807,29.808,29.807h9.837c2.511,7.895,5.7,15.588,9.515,22.957l-6.96,6.959 c-11.623,11.623-11.623,30.533,0,42.158l21.041,21.039c5.632,5.631,13.118,8.732,21.079,8.732s15.447-3.102,21.077-8.732 l6.96-6.959c7.366,3.815,15.061,7.002,22.957,9.514v9.838c0,16.436,13.372,29.809,29.808,29.809h25.809 c-2.388-5.691-3.644-11.852-3.645-18.209c-0.002-12.572,4.892-24.391,13.781-33.279L286.244,249.537z M180,286.201 c-44.112,0-80-35.887-80-79.998c0-44.113,35.888-80.002,80-80.002s80,35.889,80,80.002C260,250.314,224.112,286.201,180,286.201z"}),(0,s.createElement)("path",{d:"M425.267,218.734l-0.319-0.32c-0.939-0.941-2.189-1.428-3.541-1.469c-1.326,0-2.598,0.525-3.536,1.465l-21.596,21.596 c-3.304,3.305-7.699,5.125-12.375,5.125c-4.676,0-9.072-1.82-12.379-5.129c-3.307-3.305-5.128-7.701-5.128-12.377 c0.001-4.676,1.821-9.072,5.126-12.377l21.596-21.596c0.939-0.939,1.465-2.213,1.464-3.539c-0.001-1.328-0.53-2.6-1.47-3.537 l-0.314-0.313c-3.605-3.605-8.399-5.592-13.499-5.592c-1.665,0-3.325,0.219-4.936,0.65l-44.348,11.885 c-6.568,1.76-11.741,6.932-13.498,13.496c-0.011,0.041-0.021,0.08-0.031,0.121l-11.817,49.063l-87.667,87.666 c-6.528,6.527-10.122,15.207-10.121,24.44c0.002,9.232,3.598,17.91,10.126,24.439l2.088,2.088 c6.528,6.529,15.209,10.125,24.443,10.125h0c9.231,0,17.909-3.594,24.437-10.121l87.667-87.666l49.061-11.816 c0.041-0.01,0.082-0.022,0.122-0.031c6.563-1.758,11.735-6.928,13.497-13.496l11.883-44.352 C431.959,230.598,430.066,223.535,425.267,218.734z M257.26,368.406c-1.888,1.889-4.399,2.93-7.071,2.93 c-2.671,0-5.183-1.041-7.072-2.932c-1.887-1.885-2.928-4.397-2.928-7.068c-0.001-2.672,1.041-5.185,2.931-7.072 c1.886-1.887,4.398-2.928,7.069-2.928c2.672,0,5.184,1.041,7.072,2.93c1.887,1.885,2.928,4.396,2.928,7.068 C260.189,364.006,259.148,366.518,257.26,368.406z M316.194,305.935L274.82,347.31c-1.416,1.416-3.3,2.197-5.303,2.197 c-2.003,0-3.887-0.781-5.303-2.197c-1.417-1.416-2.197-3.299-2.197-5.303s0.78-3.887,2.197-5.303l41.374-41.375 c1.417-1.418,3.3-2.197,5.303-2.197s3.887,0.779,5.303,2.197c1.417,1.416,2.197,3.299,2.197,5.303S317.611,304.519,316.194,305.935 z"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:30,height:30,viewBox:"0 0 448 512"},(0,s.createElement)("path",{d:"M96 0C43 0 0 43 0 96V416c0 53 43 96 96 96H384h32c17.7 0 32-14.3 32-32s-14.3-32-32-32V384c17.7 0 32-14.3 32-32V32c0-17.7-14.3-32-32-32H384 96zm0 384H352v64H96c-17.7 0-32-14.3-32-32s14.3-32 32-32zm32-240c0-8.8 7.2-16 16-16H336c8.8 0 16 7.2 16 16s-7.2 16-16 16H144c-8.8 0-16-7.2-16-16zm16 48H336c8.8 0 16 7.2 16 16s-7.2 16-16 16H144c-8.8 0-16-7.2-16-16s7.2-16 16-16z"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:30,height:30,viewBox:"0 0 512 512"},(0,s.createElement)("path",{d:"M256 48C141.1 48 48 141.1 48 256v40c0 13.3-10.7 24-24 24s-24-10.7-24-24V256C0 114.6 114.6 0 256 0S512 114.6 512 256V400.1c0 48.6-39.4 88-88.1 88L313.6 488c-8.3 14.3-23.8 24-41.6 24H240c-26.5 0-48-21.5-48-48s21.5-48 48-48h32c17.8 0 33.3 9.7 41.6 24l110.4 .1c22.1 0 40-17.9 40-40V256c0-114.9-93.1-208-208-208zM144 208h16c17.7 0 32 14.3 32 32V352c0 17.7-14.3 32-32 32H144c-35.3 0-64-28.7-64-64V272c0-35.3 28.7-64 64-64zm224 0c35.3 0 64 28.7 64 64v48c0 35.3-28.7 64-64 64H352c-17.7 0-32-14.3-32-32V240c0-17.7 14.3-32 32-32h16z"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:30,height:30,viewBox:"0 0 576 512"},(0,s.createElement)("path",{d:"M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:30,height:30,viewB
2ox:"0 0 448 512"},(0,s.createElement)("path",{d:"M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 448 512"},(0,s.createElement)("path",{d:"M384 336H192c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16l140.1 0L400 115.9V320c0 8.8-7.2 16-16 16zM192 384H384c35.3 0 64-28.7 64-64V115.9c0-12.7-5.1-24.9-14.1-33.9L366.1 14.1c-9-9-21.2-14.1-33.9-14.1H192c-35.3 0-64 28.7-64 64V320c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H256c35.3 0 64-28.7 64-64V416H272v32c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V192c0-8.8 7.2-16 16-16H96V128H64z"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960"},(0,s.createElement)("path",{d:"M480-424 284-228q-11 11-28 11t-28-11q-11-11-11-28t11-28l196-196-196-196q-11-11-11-28t11-28q11-11 28-11t28 11l196 196 196-196q11-11 28-11t28 11q11 11 11 28t-11 28L536-480l196 196q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-424Z"}))),Pn=((0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 320 512",width:16,height:16},(0,s.createElement)("path",{d:"M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z"})),(0,s.createElement)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)("path",{d:"M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},(0,s.createElement)("path",{d:"M96 320C96 302.3 110.3 288 128 288L512 288C529.7 288 544 302.3 544 320C544 337.7 529.7 352 512 352L128 352C110.3 352 96 337.7 96 320z"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},(0,s.createElement)("path",{d:"M352 128C352 110.3 337.7 96 320 96C302.3 96 288 110.3 288 128L288 288L128 288C110.3 288 96 302.3 96 320C96 337.7 110.3 352 128 352L288 352L288 512C288 529.7 302.3 544 320 544C337.7 544 352 529.7 352 512L352 352L512 352C529.7 352 544 337.7 544 320C544 302.3 529.7 288 512 288L352 288L352 128z"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},(0,s.createElement)("path",{d:"M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},(0,s.createElement)("path",{d:"M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z"})),(0,s.createElement)("svg",{className:"check",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960"},(0,s.createElement)("path",{d:"m382-354 339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},(0,s.createElement)("path",{d:"M320 576C178.6 576 64 461.4 64 320C64 178.6 178.6 64 320 64
2C461.4 64 576 178.6 576 320C576 461.4 461.4 576 320 576zM438 209.7C427.3 201.9 412.3 204.3 404.5 215L285.1 379.2L233 327.1C223.6 317.7 208.4 317.7 199.1 327.1C189.8 336.5 189.7 351.7 199.1 361L271.1 433C276.1 438 282.9 440.5 289.9 440C296.9 439.5 303.3 435.9 307.4 430.2L443.3 243.2C451.1 232.5 448.7 217.5 438 209.7z"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18px",height:"18px"},(0,s.createElement)("path",{d:"M10 2a8 8 0 105.29 13.71l5 5a1 1 0 001.42-1.42l-5-5A8 8 0 0010 2zm0 2a6 6 0 110 12 6 6 0 010-12z"})),(0,s.createElement)("svg",{width:25,height:25,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)("path",{d:"M4.66667 12.25H11.9C11.9928 12.25 12.0818 12.2131 12.1475 12.1475C12.2131 12.0818 12.25 11.9928 12.25 11.9V2.1C12.25 2.00717 12.2131 1.91815 12.1475 1.85251C12.0818 1.78687 11.9928 1.75 11.9 1.75H2.1C2.00717 1.75 1.91815 1.78687 1.85251 1.85251C1.78687 1.91815 1.75 2.00717 1.75 2.1V9.33333M5.83333 3.5H10.5M3.5 3.5H4.08333M2.04167 11.9583L7 7M7 7V9.33333M7 7H4.66667",stroke:"#6A72A5",strokeLinecap:"round",strokeLinejoin:"round"})),(0,s.createElement)("svg",{width:25,height:25,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)("path",{d:"M11.6667 6.99999V3.35357C11.6667 3.30753 11.6577 3.26193 11.6401 3.21939C11.6225 3.17684 11.5966 3.1382 11.564 3.10566L9.72771 1.26932C9.66213 1.20367 9.57317 1.16674 9.48037 1.16666H2.68337C2.59055 1.16666 2.50152 1.20353 2.43589 1.26917C2.37025 1.33481 2.33337 1.42383 2.33337 1.51666V12.4833C2.33337 12.5761 2.37025 12.6652 2.43589 12.7308C2.50152 12.7964 2.59055 12.8333 2.68337 12.8333H6.41671M4.66671 5.83332H9.33337M4.66671 3.49999H7.00004M4.66671 8.16666H6.41671",stroke:"#6A72A5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.createElement)("path",{d:"M9.33337 3.14999V1.37315C9.33345 1.33237 9.3456 1.29251 9.36829 1.25862C9.39099 1.22473 9.42321 1.19832 9.4609 1.18272C9.49859 1.16712 9.54005 1.16303 9.58006 1.17097C9.62007 1.17891 9.65683 1.19852 9.68571 1.22732L11.606 3.14765C11.6351 3.17642 11.655 3.21321 11.6631 3.25331C11.6712 3.29341 11.6672 3.33502 11.6515 3.37283C11.6359 3.41063 11.6093 3.44291 11.5752 3.46556C11.5412 3.48821 11.5011 3.5002 11.4602 3.49999H9.68337C9.59055 3.49999 9.50152 3.46311 9.43589 3.39748C9.37025 3.33184 9.33337 3.24281 9.33337 3.14999V3.14999Z",fill:"#6A72A5",stroke:"#6A72A5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.createElement)("path",{d:"M10.4731 9.88165L11.0565 9.29832C11.1172 9.23754 11.1893 9.18932 11.2687 9.15643C11.3481 9.12353 11.4331 9.1066 11.5191 9.1066C11.605 9.1066 11.6901 9.12353 11.7694 9.15643C11.8488 9.18932 11.9209 9.23754 11.9816 9.29832C12.1042 9.42095 12.1731 9.58723 12.1731 9.76061C12.1731 9.93399 12.1042 10.1003 11.9816 10.2229L11.3983 10.8062M10.4731 9.88107L8.7284 11.6258C8.64116 11.7133 8.58397 11.8263 8.56506 11.9484L8.42273 12.8567L9.33098 12.7149C9.45309 12.696 9.56605 12.6388 9.65356 12.5516L11.3977 10.8062M10.4731 9.88107L11.3983 10.8062",stroke:"#6A72A5",strokeLinecap:"round",strokeLinejoin:"round"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},(0,s.createElement)("path",{d:"M187.2 100.9C174.8 94.1 159.8 94.4 147.6 101.6C135.4 108.8 128 121.9 128 136L128 504C128 518.1 135.5 531.2 147.6 538.4C159.7 545.6 174.8 545.9 187.2 539.1L523.2 355.1C536 348.1 544 334.6 544 320C544 305.4 536 291.9 523.2 284.9L187.2 100.9z"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},(0,s.createElement)("path",{d:"M320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320C64 461.4 178.6 576 320 576zM320 240C302.3 240 288 254.3 288 272C288 285.3 277.3 296 264 296C250.7 296 240 285.3 240 272C240 227.8 275.8 192 320 192C364.2 192 400 227.8 400 272C400 319.2 364 339.2 344 346.5L344 350.3C344 363.6 333.3 374.3 320 374.3C306.7 374.3 296 363.6 296 350.3L296 342.2C296 321.7 310.8 307 326.1 302C332.5 299.9 339.3 296.5 344.3 291.7C348.6 287.5 352 281.7 352 272.1C352 254.4 337.7 240.1 320 240.1zM288 432C288 414.3 302.3 400 320 400C337.7 400 352 414.3 352 432C352 449.7 337.7 464 320 464C302.3 464 288 449.7 288 432z"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},(0,s.createElement)("path",{d:"M224 32C241.7 32 256 46.3 256 64L256 160L384 160L384 64C384 46.3 398.3 32 416 32C433.7 32 448 46.3 448 64L448 160L512 160C529.7 160 544 174.3 544 192C544 209.7 529.7 224 512 224L512 288C512 383.1 442.8 462.1 352 477.3L352 544C352 561.7 337.7 576 320 576C302.3 576 288 561.7 288 544L288 477.3C197.2 462.1 128 383.1 128 288L128 224C110.3 224 96 209.7 96 192C96 174.3 110.3 160 128 160L192 160L192 64C192 46.3 206.3 32 224 32z"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},(0,s.createElement)("path",{d:"M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3
2C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 544 432"},(0,s.createElement)("path",{d:"m297 71.2c9.2-7.3 15-18.6 15-31.2 0-22.1-17.9-40-40-40-22.1 0-40 17.9-40 40 0 12.6 5.9 23.9 15 31.2l-68.4 107.6c-10 15.7-31.3 19.6-46.2 8.4l-59.5-44.5c4.5-6.4 7.1-14.3 7.1-22.7 0-22.1-17.9-40-40-40-22.1 0-40 17.9-40 40 0 21.8 17.5 39.6 39.2 40l32.6 217.5c4.7 31.3 31.6 54.5 63.3 54.5h273.8c31.7 0 58.6-23.2 63.3-54.5l32.6-217.5c21.7-0.4 39.2-18.2 39.2-40 0-22.1-17.9-40-40-40-22.1 0-40 17.9-40 40 0 8.4 2.6 16.3 7.1 22.7l-59.4 44.6c-14.9 11.2-36.2 7.3-46.2-8.4z"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,s.createElement)("path",{d:"m290.4 19.8c5-12 16.7-19.8 29.6-19.8h160c17.7 0 32 14.3 32 32v160c0 12.9-7.8 24.6-19.8 29.6-12 5-25.7 2.2-34.9-6.9l-57.3-57.4-153.4 153.3c-12.5 12.5-32.8 12.5-45.3 0-12.5-12.5-12.5-32.8 0-45.3l153.4-153.3-57.3-57.4c-9.2-9.2-11.9-22.9-6.9-34.9zm-290.4 156.2c0-44.2 35.8-80 80-80h80c17.7 0 32 14.3 32 32 0 17.7-14.3 32-32 32h-80c-8.8 0-16 7.2-16 16v256c0 8.8 7.2 16 16 16h256c8.8 0 16-7.2 16-16v-80c0-17.7 14.3-32 32-32 17.7 0 32 14.3 32 32v80c0 44.2-35.8 80-80 80h-256c-44.2 0-80-35.8-80-80z"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 448"},(0,s.createElement)("path",{d:"m271 55.1c25-34.6 65.2-55.1 107.9-55.1 73.5 0 133.1 59.6 133.1 133.1 0 68.6-42.9 128.9-79.1 172.8-44.1 53.6-97.3 100.1-133.8 127.9-12.3 9.4-27.5 14.1-43.1 14.1-15.6 0-30.8-4.7-43.1-14.1-36.5-27.8-89.7-74.3-133.8-127.8-36.2-43.9-79.1-104.3-79.1-172.9 0-73.5 59.6-133.1 133.1-133.1 42.7 0 82.9 20.5 107.9 55.1l15 20.7zm107.9-7.1c-27.3 0-53 13.1-69 35.2l-34.4 47.6c-4.5 6.2-11.7 9.9-19.4 9.9-7.7 0-14.9-3.7-19.4-9.9l-34.4-47.6c-16-22.1-41.7-35.2-69-35.2-47 0-85.1 38.1-85.1 85.1 0 49.9 32 98.4 68.1 142.3 41.1 50 91.4 94 125.9 120.3 3.2 2.4 7.9 4.2 14 4.2 6.1 0 10.8-1.8 14-4.2 34.5-26.3 84.8-70.4 125.9-120.3 36.2-43.9 68.1-92.4 68.1-142.3 0-47-38.1-85.1-85.1-85.1z"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 448"},(0,s.createElement)("path",{d:"m241 55.1l15 20.7 15-20.7c25-34.6 65.2-55.1 107.9-55.1 73.5 0 133.1 59.6 133.1 133.1v2.6c0 112.2-139.9 242.5-212.9 298.2-12.4 9.4-27.6 14.1-43.1 14.1-15.5 0-30.8-4.6-43.1-14.1-73-55.7-212.9-186-212.9-298.2v-2.6c0-73.5 59.6-133.1 133.1-133.1 42.7 0 82.9 20.5 107.9 55.1z"})),(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor"},(0,s.createElement)("path",{d:"M3.9 54.9C10.5 40.9 24.5 32 40 32l432 0c15.5 0 29.5 8.9 36.1 22.9s4.6 30.5-5.2 42.5L320 320.9 320 448c0 12.1-6.8 23.2-17.7 28.6s-23.8 4.3-33.5-3l-64-48c-8.1-6-12.8-15.5-12.8-25.6l0-79.1L9 97.3C-.7 85.4-2.8 68.8 3.9 54.9z"})),({isOpen:t,onClose:e,children:n,id:i})=>((0,s.useEffect)(()=>(document.body.style.overflow=t?"hidden":"auto",()=>{document.body.style.overflow="auto"}),[t]),t?(0,r.createPortal)((0,s.createElement)("div",{className:"llb-custom-modal-overlay",id:`lbb_audio_modal-${i}`,onClick:e},(0,s.createElement)("div",{className:"llb-custom-modal-content",onClick:t=>t.stopPropagation()},(0,s.createElement)("button",{className:"llb-custom-modal-close",onClick:e},Mn),n)),document.body):null)),Sn=({isAudioThumbnails:t,thumbnail:e,altText:n,content:i,attributes:o})=>{const a=t,r=(0,s.useRef)(null),l=(0,s.useRef)(null),{controls:c}=o,d=(0,s.useMemo)(()=>Object.keys(c).filter(t=>c[t]&&"skipTime"!==t&&"isHeart"!==t&&"isPlaybackSpeed"!==t),[c]),h=JSON.stringify(d);return(0,s.useEffect)(()=>{const t=r.current;if(!t)return;l.current&&(l.current.destroy(),l.current=null),t.innerHTML="";const e=document.createElement("audio");e.id="player",e.className="lbb-audio-player";const n=document.createElement("source");
2n.src=i,n.type="audio/mp3";const o=document.createElement("source");return o.src=i,o.type="audio/ogg",e.appendChild(n),e.appendChild(o),t.appendChild(e),"undefined"!=typeof Plyr&&(l.current=new Plyr(e,{controls:d})),()=>{l.current&&(l.current.destroy(),l.current=null),t&&(t.innerHTML="")}},[h,i]),(0,s.createElement)("div",{className:"modal_imag_main_section"},a?(0,s.createElement)("div",{className:"modal_imag_area"},(0,s.createElement)("img",{className:"rounded",src:e||Ze,alt:n})):(0,s.createElement)("div",null),(0,s.createElement)("div",{ref:r}))},Tn=({id:t,player:e,commonAudioProps:n})=>{const{index:i,isOpen:o,activeIndex:a,setOpen:r}=n;switch(e){case"player1":return(0,s.createElement)(Pn,{id:t,isOpen:o&&a===i,onClose:()=>r(!1)},(0,s.createElement)(vn,{...n}));case"player2":return(0,s.createElement)(Pn,{id:t,isOpen:o&&a===i,onClose:()=>r(!1)},(0,s.createElement)(wn,{...n}));case"player3":return(0,s.createElement)(Pn,{id:t,isOpen:o&&a===i,onClose:()=>r(!1)},(0,s.createElement)(xn,{...n}));default:return(0,s.createElement)(An,{id:t,index:i,player:e,commonAudioProps:n})}},An=({id:t,index:e,player:n,commonAudioProps:i})=>(0,s.createElement)("div",{id:`llb-dialog-audio-${t}-${e}`,className:"llb-dialog-audio"},(0,s.createElement)(Sn,{...i})),Ln=({attributes:t,type:e,mixAllData:n,id:i,index:o,caption:a,content:r,lightboxType:l,img:c,thumbnail:d,captionPosition:h,galleryIcon:u,ButtonContent:m,altText:p,isAudioThumbnails:g,artist:f})=>{const[b,v]=(0,s.useState)(!1),[y,w]=(0,s.useState)(null),[x,E]=(0,s.useState)(!1),{content:C,audio:M}=t,{player:P}=M,S={id:i,index:o,isAudioThumbnails:g,thumbnail:d,altText:p,content:r,artist:f,attributes:t,caption:a,setOpen:v,setActiveIndex:w,isOpen:b,activeIndex:y,customIsPlay:x};return Ie(l,e,"audio")&&(0,s.createElement)(s.Fragment,null,"player1"===P||"player2"===P||"player3"===P?(0,s.createElement)("a",{className:"lbbmodalbtn"},"button"===l?(0,s.createElement)("button",{className:"lbbBtnDesign",onClick:()=>{v(!0),w(o)}},(0,s.createElement)(m,null)):(0,s.createElement)("div",{id:"lbb_lightbox_thumb",className:`contentArea ${C?.overlyColor&&"overlyColor"}`,onClick:()=>{v(!0),w(o),E(!0)}},(0,s.createElement)(Xe,{altText:p,img:c,thumbnail:d}),(0,s.createElement)(We,{showContent:C,caption:a,captionPosition:h}),(0,s.createElement)(nn,{galleryIcon:u,type:e,lightboxType:l}))):(0,s.createElement)("a",{"data-fancybox":n?`${i}-allDataGallery`:`${i}-audio-gallery`,"data-caption":Ve(a),className:"lbbmodalbtn",href:`${""===r?He:r}`,"data-src":`#llb-dialog-audio-${i}-${o}`},"button"===l?(0,s.createElement)("button",{className:"lbbBtnDesign"},(0,s.createElement)(m,null)):(0,s.createElement)("div",{className:`contentArea ${C?.overlyColor&&"overlyColor"}`},(0,s.createElement)(Xe,{altText:p,img:c,thumbnail:d}),(0,s.createElement)(We,{showContent:C,caption:a,captionPosition:h}),(0,s.createElement)(nn,{galleryIcon:u,type:e,lightboxType:l}))),(0,s.createElement)(Tn,{id:i,player:P,commonAudioProps:S}))},kn=window.wp.i18n,On=({attributes:t,type:e,lightboxType:n,img:i,thumbnail:o,setOpen:a,setActiveIndex:r,index:l,galleryIcon:c,ButtonContent:d,isOpen:h,activeIndex:u,Modal:m,id:p,ContentArea:g,item:f,custom:b,altText:v})=>{const{content:y}=t,w=t=>{t&&(t.preventDefault(),t.stopPropagation()),a&&a(!0),r&&r(l)};return Ie(n,e,"content")&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"lbbmodalbtn-container",onClick:w,style:{cursor:"pointer",width:"100%",height:"100%"}},(0,s.createElement)("a",{className:"lbbmodalbtn",onClick:w,role:"button",tabIndex:0,style:{cursor:"pointer",display:"block",width:"100%",height:"100%"}},"button"===n?(0,s.createElement)("button",{className:"lbbBtnDesign",onClick:w,type:"button"},(0,s.createElement)(d,null)):(0,s.createElement)("div",{className:`content-thumbnail contentArea ${y?.overlyColor&&"overlyColor"}`,onClick:w,style:{cursor:"pointer"}},(0,s.createElement)("div",{className:`img ${i?.animation}`},(0,s.createElement)("img",{src:o||Ze,alt:v})),(0,s.createElement)(nn,{type:e,galleryIcon:c,lightboxType:n})))),h&&u===l&&m&&(0,s.createElement)(m,{id:p,title:(0,kn.__)("Edit Content","lightbox"),activeIndex:u,onRequestClose:()=>a&&a(!1),className:"lbbLightBoxModal",overlayClassName:"lbbLightBoxModalOverlay",shouldCloseOnClickOutside:!1},(0,s.createElement)(g,{item:f,index:u,custom:b})))},In=({attributes:t,type:e,mixAllData:n,id:i,index:o,content:a,EAudio:r,lightboxType:l,img:c,thumbnail:d,caption:h,captionPosition:u,galleryIcon:m,ButtonContent:p,altText:g})=>{const{content:f}=t,b=`llb-dialog-html-${i}-${o}`;return Ie(l,e,"html")&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{id:b,style:{display:"none"}},(0,s.createElement)("div",{dangerouslySetInnerHTML:{__html:a}})),(0,s.createElement)("a",{"data-fancybox":n?`${i}-allDataGallery`:`${i}-html-gallery`,className:"lbbmodalbtn","data-src":`#${b}`},"button"===l?(0,s.createElement)("button",{className:"lbbBtnDesign"},(0,s.createElement)(p,null)):(0,s.createElement)("div",{className:`contentArea ${f?.overlyColor&&"overlyColor"}`},(0,s.createElement)(Xe,{altText:g,img:c,thumbnail:d}),(0,s.createElement)(We,{showContent:f,caption:h,captionPosition:u}),(0,s.createElement)(nn,{type:e,galleryIcon:m,lightboxType:l}))))},zn=({attributes:t,type:e,mixAllData:n,id:i,content:o,EAudio:a,lightboxType:r,img:l,thumbnail:c,caption:d,captionPosition:h,galleryIcon:u,ButtonContent:m,altText:p})=>{const{content:g}=t;return Ie(r,e,"iframe")&&(0,s.createElement)("a",{"data-fancybox":n?`${i}-allDataGallery`:`${i}-iframe-gallery`,className:"lbbmodalbtn","data-src":`${""===o?"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MDAiIGhlaWdodD0iMTUwIiB2aWV3Qm94PSIwIDAgNjAwIDE1MCI+CiAgPHRleHQgeD0iMjAiIHk9Ijk1IiBjbGFzcz0idGV4dCIgZm9udC1zaXplPSI3MHB4IiBmaWxsPSIjZmZmIiBmb250LWZhbWlseT0ic2VyaWYiPkluc2VydCBhbiBpZnJhbWUgaGVyZS48L3RleHQ+Cjwvc3ZnPg==":o}`,"data-type":""===o?"":"iframe","data-options":'{ "iframe" : { "preload" : false, "css" : { "width" : "600px" } } }',href:"javascript:;"},"button"===r?(0,s.createElement)("button",{className:"lbbBtnDesign"},(0,s.createElement)(m,null)):(0,s.createElement)("div",{className:`contentArea ${g?.overlyColor&&"overlyColor"}`},(0,s.createElement)(Xe,{altText:p,img:l,thumbnail:c}),(0,s.createElement)(We,{showContent:g,caption:d,captionPosition:h}),(0,s.createElement)(nn,{type:e,galleryIcon:u,lightboxType:r})))},$n=({attributes:t,type:e,mixAllData:n,id:i,caption:o,content:a,EImage:r,lightboxType:l,img:c,captionPosition:d,ButtonContent:h,altText:u,thumbnail:m})=>{const{content:p}=t;return Ie(l,e,"image")&&(0,s.createElement)("a",{"data-fancybox":n?`${i}-allDataGallery`:`${i}-gallery`,"data-caption":Ve(o||""),className:"lbbmodalbtn fancybox",href:"image"===e?a&&""!==a?a:m&&""!==m?m:r:a&&""!==a?a:r},"button"===l?(0,s.createElement)("button",{className:"lbbBtnDesign"},(0,s.createElement)(h,null)):(0,s.createElement)("div",{className:`contentArea ${p?.overlyColor&&"overlyColor"}`},(0,s.createElement)(Xe,{altText:u,img:c,thumbnail:a,contentNullThumbs:m}),(0,s.createElement)(We,{showContent:p,caption:o,captionPosition:d})))},Rn=({attributes:t,type:e,mixAllData:n,id:i,caption:o,lightboxType:a,img:r,thumbnail:l,captionPosition:c,galleryIcon:d,ButtonContent:h,content:u,altText:m})=>{const{content:p}=t,g=""===u?je:(t=>"string"!=typeof t||""===t?"":t)(u);return Ie(a,e,"pdf")&&(0,s.createElement)("a",{"data-fancybox":n?`${i}-allDataGallery`:`${i}-pdf-gallery`,"data-caption":Ve(o),className:"lbbmodalbtn",href:"#","data-pdf-src":""===u?"":g,"data-src":'<div class="lbbPdfHost"></div>',"data-type":"html"},"button"===a?(0,s.createElement)("button",{className:"lbbBtnDesign"},(0,s.createElement)(h,null)):(0,s.createElement)("div",{className:`contentArea ${p?.overlyColor&&"overlyColor"}`},(0,s.createElement)(Xe,{altText:m,img:r,thumbnail:l}),(0,s.createElement)(We,{showContent:p,caption:o,captionPosition:c}),(0,s.createElement)(nn,{type:e,galleryIcon:d,lightboxType:a})))},_n=({type:t,attributes:e,id:n,index:i,content:o,mixAllData:a,caption:r,lightboxType:l,img:c,thumbnail:d,captionPosition:h,galleryIcon:u,ButtonContent:m,altText:p})=>{const{content:g}=e;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{id:`${n}-dialog-content${i}`,className:"iframeHidden"},(0,s.createElement)("div",{className:"feedPopUpArea"},(0,s.createElement)("div",{className:"feedPopUp"},(0,s.createElement)("iframe",{src:o,className:"iframe"})))),(0,s.createElement)("a",{"data-fancybox":a?`${n}-allDataGallery`:`${n}-video-gallery`,"data-src":`#${n}-dialog-content${i}`,"data-caption":Ve(r),className:"feedItem"},"button"===l?(0,s.createElement)("button",{className:"lbbBtnDesign"},(0,s.createElement)(m,null)):(0,s.createElement)("div",{className:`contentArea ${g?.overlyColor&&"overlyColor"}`},(0,s.createElement)("div",{className:`img ${c?.animation}`},(0,s.createElement)("img",{className:"rounded",src:d||Ze})),(0,s.createElement)(Xe,{altText:p,img:c,thumbnail:d}),(0,s.createElement)(We,{showContent:g,caption:r,captionPosition:h}),(0,s.createElement)(nn,{type:t,galleryIcon:u,lightboxType:l}))))},Dn=({attributes:t,type:e,mixAllData:n,id:i,caption:o,content:a,lightboxType:r,img:l,thumbnail:c,captionPosition:d,galleryIcon:h,ButtonContent:u,altText:m})=>{const{content:p}=t;return(0,s.createElement)("a",{"data-fancybox":n?`${i}-allDataGallery`:`${i}-video-gallery`,"data-caption":Ve(o),className:"lbbmodalbtn",href:`${""===a?Fe:a}`,"data-type":""===a?"":"html5video"},"button"===r?(0,s.createElement)("button",{className:"lbbBtnDesign"},(0,s.createElement)(u,null)):(0,s.createElement)("div",{className:`contentArea ${p?.overlyColor&&"overlyColor"}`},(0,s.createElement)(Xe,{altText:m,img:l,thumbnail:c}),(0,s.createElement)(We,{showContent:p,caption:o,captionPosition:d}),(0,s.createElement)(nn,{type:e,galleryIcon:h,lightboxType:r})))},Nn=({attributes:t,type:e,content:n,mixAllData:i,id:o,caption:a,EVideo:r,lightboxType:l,img:c,thumbnail:d,captionPosition:h,galleryIcon:u,ButtonContent:m,index:p,altText:g})=>{const f={type:e,mixAllData:i,id:o,caption:a,content:n,lightboxType:l,img:c,thumbnail:d,captionPosition:h,galleryIcon:u,ButtonContent:m,attributes:t,altText:g};return(0,s.createElement)(s.Fragment,null,(Ie(l,e,"video")||Ie(l,e,"youtube"))&&"cloudflarestream"!==n.split(".")[1]?(0,s.createElement)(Dn,{...f,EVideo:r}):(Ie(l,e,"video")||Ie(l,e,"youtube"))&&"cloudflarestream"===n.split(".")[1]&&(0,s.createElement)(_n,{...f,index:p}))},Bn=({commonProps:t,imageTypeNotSupport:e,activeIndex:n,EAudio:i,EVideo:o,setActiveIndex:a,setOpen:r,index:l,item:c,isOpen:d,Modal:h,ContentArea:u,custom:m,mixAllData:p,content:g,EImage:f,EPdf:b,attributes:v})=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)($n,{...t,...e,mixAllData:p,content:g,EImage:f,attributes:v}),(0,s.createElement)(Ln,{...t,...e,mixAllData:p,content:g,EAudio:i,attributes:v}),(0,s.createElement)(Nn,{...t,...e,mixAllData:p,content:g,EVideo:o,index:l,attributes:v}),(0,s.createElement)(On,{...t,...e,setOpen:r,setActiveIndex:a,index:l,isOpen:d,activeIndex:n,Modal:h,ContentArea:u,item:c,custom:m,attributes:v}),(0,s.createElement)(Rn,{...t,...e,mixAllData:p,index:l,attributes:v,content:g,EPdf:b}),(0,s.createElement)(zn,{...t,...e,mixAllData:p,content:g,EAudio:i,attributes:v}),(0,s.createElement)(In,{...t,...e,mixAllData:p,content:g,EAudio:i,attributes:v})),Hn=({attributes:t,filteredItems:e,mixAllData:n,id:i,EImage:o,ButtonContent:a,EAudio:r,EVideo:l,EPdf:c,galleryIcon:d,setOpen:h,setActiveIndex:u,isOpen:m,custom:p,activeIndex:g,ContentArea:f,Modal:b})=>{const{lightboxType:v,img:y,caption:w}=t;return e?.map((e,x)=>{const{type:E,thumbnail:C,thumbCaption:M,content:P,contentCaption:S,caption:T,importCaption:A,altText:L,isAudioThumbnails:k,artist:O}=e||{},I={type:E,id:i,caption:A?"image"==E?S:M:T,importCaption:A,lightboxType:v,img:y,captionPosition:w,ButtonContent:a,altText:L,isAudioThumbnails:k,index:x,artist:O},z={thumbnail:C,galleryIcon:d};return(0,s.createElement)("div",{key:x,className:"flex flex-wrap gap-5 justify-center max-w-5xl mx-auto px-6 lbbContent_area"},(0,s.createElement)(Bn,{commonProps:I,imageTypeNotSupport:z,activeIndex:g,EAudio:r,EVideo:l,setActiveIndex:u,setOpen:h,index:x,item:e,isOpen:m,Modal:b,ContentArea:f,custom:p,mixAllData:n,content:P,EImage:o,attributes:t,EPdf:c}))})};function jn(){return jn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},jn.apply(this,arguments)}
2function Fn(t,e){return Fn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Fn(t,e)}var Vn=function(t){var e,n;function i(){var e;return(e=t.call(this)||this).state={columns:[],childRefs:[],hasDistributed:!1},e}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,Fn(e,n);var o=i.prototype;return o.componentDidUpdate=function(){this.state.hasDistributed||this.props.sequential||this.distributeChildren()},i.getDerivedStateFromProps=function(t,e){var n=t.children,o=t.columnsCount,s=o!==e.columns.length;return e&&n===e.children&&!s?null:jn({},i.getEqualCountColumns(n,o),{children:n,hasDistributed:!1})},o.shouldComponentUpdate=function(t){return t.children!==this.state.children||t.columnsCount!==this.props.columnsCount},o.distributeChildren=function(){var t=this,e=this.props,n=e.children,i=e.columnsCount,o=Array(i).fill(0);if(this.state.childRefs.every(function(t){return t.current.getBoundingClientRect().height})){var s=Array.from({length:i},function(){return[]}),r=0;a().Children.forEach(n,function(e){if(e&&a().isValidElement(e)){var n=t.state.childRefs[r].current.getBoundingClientRect().height,i=o.indexOf(Math.min.apply(Math,o));o[i]+=n,s[i].push(e),r++}}),this.setState(function(t){return jn({},t,{columns:s,hasDistributed:!0})})}},i.getEqualCountColumns=function(t,e){var n=Array.from({length:e},function(){return[]}),i=0,o=[];return a().Children.forEach(t,function(t){if(t&&a().isValidElement(t)){var s=a().createRef();o.push(s),n[i%e].push(a().createElement("div",{style:{display:"flex",justifyContent:"stretch"},key:i,ref:s},t)),i++}}),{columns:n,childRefs:o}},o.renderColumns=function(){var t=this.props,e=t.gutter,n=t.itemTag,i=t.itemStyle;return this.state.columns.map(function(t,o){return a().createElement(n,{key:o,style:jn({display:"flex",flexDirection:"column",justifyContent:"flex-start",alignContent:"stretch",flex:1,width:0,gap:e},i)},t.map(function(t){return t}))})},o.render=function(){var t=this.props,e=t.gutter,n=t.className,i=t.style,o=t.containerTag;return a().createElement(o,{style:jn({display:"flex",flexDirection:"row",justifyContent:"center",alignContent:"stretch",boxSizing:"border-box",width:"100%",gap:e},i),className:n},this.renderColumns())},i}(a().Component);Vn.propTypes={},Vn.defaultProps={columnsCount:3,gutter:"0",className:null,style:{},containerTag:"div",itemTag:"div",itemStyle:{},sequential:!1};const Wn=Vn;var qn="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,Zn=function(t){var e,n,i,o,r,l=t.columnsCountBreakPoints,c=void 0===l?{350:1,750:2,900:3}:l,d=t.gutterBreakPoints,h=void 0===d?{}:d,u=t.children,m=t.className,p=void 0===m?null:m,g=t.style,f=void 0===g?null:g,b=(e=function(){var t=(0,s.useState)(!1),e=t[0],n=t[1];return qn(function(){n(!0)},[]),e}(),n=(0,s.useState)("undefined"!=typeof window?window.innerWidth:0),i=n[0],o=n[1],r=(0,s.useCallback)(function(){e&&o(window.innerWidth)},[e]),qn(function(){if(e)return window.addEventListener("resize",r),r(),function(){return window.removeEventListener("resize",r)}},[e,r]),i),v=(0,s.useCallback)(function(t,e){var n=Object.keys(t).sort(function(t,e){return t-e}),i=n.length>0?t[n[0]]:e;return n.forEach(function(e){e<b&&(i=t[e])}),i},[b]),y=(0,s.useMemo)(function(){return v(c,1)},[v,c]),w=(0,s.useMemo)(function(){return v(h,"10px")},[v,h]);return a().createElement("div",{className:p,style:f},a().Children.map(u,function(t,e){return a().cloneElement(t,{key:e,columnsCount:y,gutter:w})}))};Zn.propTypes={};const Xn=Zn,Yn=Wn,Gn=({attributes:t,filteredItems:e,mixAllData:n,id:i,EImage:o,ButtonContent:a,EAudio:r,EVideo:l,galleryIcon:c,setOpen:d,setActiveIndex:h,isOpen:u,custom:m,activeIndex:p,ContentArea:g,Modal:f})=>{const{lightboxType:b,columnGap:v,rowGap:y,img:w,caption:x,columns:E}=t,{desktop:C,tablet:M,mobile:P}=E;return(0,s.createElement)(Xn,{columnsCountBreakPoints:{0:P,576:M,768:C},gutterBreakPoints:{0:v}},(0,s.createElement)(Yn,{itemStyle:{gap:y}},e?.map((e,v)=>{const{type:y,thumbnail:E,thumbCaption:C,content:M,contentCaption:P,caption:S,importCaption:T,altText:A,isAudioThumbnails:L,artist:k}=e||{},O={type:y,id:i,caption:T?"image"==y?P:C:S,lightboxType:b,img:w,captionPosition:x,ButtonContent:a,altText:A,isAudioThumbnails:L,artist:k,index:v},I={thumbnail:E,galleryIcon:c};return(0,s.createElement)("div",{key:v,className:" lbbContent_area"},(0,s.createElement)(Bn,{commonProps:O,imageTypeNotSupport:I,activeIndex:p,EAudio:r,EVideo:l,setActiveIndex:h,setOpen:d,index:v,item:e,isOpen:u,Modal:f,ContentArea:g,custom:m,mixAllData:n,content:M,EImage:o,attributes:t}))})))},Un=({attributes:t,filteredItems:e,mixAllData:n,id:i,EImage:o,ButtonContent:a,EAudio:r,EVideo:l,EPdf:c,galleryIcon:d,setOpen:h,setActiveIndex:u,isOpen:m,custom:p,activeIndex:g,ContentArea:f,Modal:b})=>{const{lightboxType:v,img:y,caption:w,layout:x,slider:E}=t,C=(0,s.useRef)(null),M=(0,s.useRef)(null);return(0,s.useEffect)(()=>{const t=C.current||("undefined"!=typeof document?document.getElementById(`lbbCarousel-${i}`):null);if(!t)return;if(M.current){try{M.current.destroy()}catch(t){M.current=null}M.current=null}if(!e||0===e.length)return;const n="undefined"!=typeof Carousel?Carousel:"undefined"!=typeof window?window.Carousel:null;if(!n)return;const o="undefined"!=typeof Thumbs?Thumbs:"undefined"!=typeof window?window.Thumbs:null,
2s=o?{Thumbs:o}:{};try{const e=new n(t,{Dots:!1,Thumbs:{type:E?.thumbs||"classic"}},s);M.current=e}catch(t){M.current=null}return()=>{if(M.current){try{M.current.destroy()}catch(t){M.current=null}M.current=null}}},[e,x,E?.thumbs]),(0,s.createElement)("div",{ref:C,className:"f-carousel",id:`lbbCarousel-${i}`},e?.map((e,x)=>{const{type:E,thumbnail:C,thumbCaption:M,content:P,contentCaption:S,caption:T,importCaption:A,altText:L,isAudioThumbnails:k,artist:O}=e||{},I={type:E,id:i,caption:A?"image"==E?S:M:T,lightboxType:v,img:y,captionPosition:w,ButtonContent:a,altText:L,isAudioThumbnails:k,artist:O,index:x},z={thumbnail:C,galleryIcon:d},$="image"===("gallery"===v?E:v)?P||Ze:C||Ze;return(0,s.createElement)("div",{key:x,className:"f-carousel__slide flex flex-wrap gap-5 justify-center max-w-5xl mx-auto px-6 lbbContent_area","data-thumb-src":$},(0,s.createElement)(Bn,{commonProps:I,imageTypeNotSupport:z,activeIndex:g,EAudio:r,EVideo:l,setActiveIndex:u,setOpen:h,index:x,item:e,isOpen:m,Modal:b,ContentArea:f,custom:p,mixAllData:n,content:P,EImage:o,attributes:t,EPdf:c}))}))},Jn=({ContentArea:t,attributes:e,isBackend:n=!1,custom:i,id:o,Modal:a,index:r=0,isOpen:l,setOpen:c,activeIndex:d,setActiveIndex:h})=>{const{lightboxType:u,items:m,layout:p,columns:g,button:f,galleryIcon:b,popupOptions:v,popupIconLeft:y,popupIconMiddle:w,popupIconRight:x,thumb:E,slideShow:C,options:M,controls:P,audio:S,pdfOptions:T,popupTheme:A}=e,{mixAllData:L}=v,[k,O]=(0,s.useState)(!1),[I,z]=(0,s.useState)(0),$=void 0!==l?l:k,R=void 0!==c?c:O,_=void 0!==d?d:I,D=void 0!==h?h:z,N=(0,s.useRef)();(0,s.useEffect)(()=>(Be(o,y,w,x,E,C,M,P,N.current,T,A),()=>{Oe.destroy()}),[o,y,w,x,E,C,M,P,S,T,A]),(0,s.useEffect)(()=>{const t=N.current;if(!t)return;const e=e=>{if(!n)return;const i=e.target.closest("a[data-fancybox], button[data-fancybox], [data-fancybox]");if(!i)return;e.preventDefault();const s=i.getAttribute("data-fancybox");if(!s)return;if(Oe.getInstance())return;const a=t.ownerDocument||document,r=`[data-fancybox="${s}"], [data-fancybox='${s}']`,l=Array.from(a.querySelectorAll(r));if(!l.length)return;const c=l.indexOf(i);let d="gallery";s.includes("audio-gallery")?d="audio-gallery":s.includes("video-gallery")?d="video-gallery":s.includes("allDataGallery")?d="allDataGallery":s.includes("pdf-gallery")?d="pdf-gallery":s.includes("iframe-gallery")?d="iframe-gallery":s.includes("html-gallery")&&(d="html-gallery");const h=Ne(d,o,y,w,x,E,C,M,P,T,A),u=[];l.forEach(t=>{const e=t.getAttribute("data-src");if(!e||!e.startsWith("#"))return;const n=a.querySelector(e);if(!n)return;const i=n.cloneNode(!0);let o;i.querySelectorAll(".plyr").forEach(t=>{const e=t.querySelector("audio, video");e?(e.removeAttribute("class"),e.className="lbb-audio-player",t.replaceWith(e)):t.remove()}),i.classList.contains("llb-dialog-audio")?(i.removeAttribute("id"),o=i.outerHTML):o=i.innerHTML,u.push([t,e,t.getAttribute("data-type"),t.getAttribute("href")]),t.setAttribute("data-src",o),t.setAttribute("data-type","html"),t.removeAttribute("href")}),Oe.fromNodes(l,{...h,startIndex:c>=0?c:0}),u.forEach(([t,e,n,i])=>{t.setAttribute("data-src",e),null===n?t.removeAttribute("data-type"):t.setAttribute("data-type",n),null!==i&&t.setAttribute("href",i)})};return t.addEventListener("click",e,!0),()=>{t.removeEventListener("click",e,!0)}},[o,p,m,n,y,w,x,E,C,M,P,T,A]);const B="button"===u?[m[0]]:m;if(!u)return!1;(0,s.useEffect)(()=>{if("default"===p){const t=document.querySelector(`#${o} .lbbLightBox`);t&&t?.style.setProperty("height","auto")}},[p,o]),(0,s.useEffect)(()=>{if("default"===p||"masonry"===p){const t=document.querySelector(`#${o} .f-thumbs`);t&&(t.style.display="none")}},[p]);const H={attributes:e,filteredItems:B,mixAllData:L,id:o,EImage:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MDAiIGhlaWdodD0iMTUwIiB2aWV3Qm94PSIwIDAgNjAwIDE1MCI+CiAgPHRleHQgeD0iMjAiIHk9Ijk1IiBjbGFzcz0idGV4dCIgZm9udC1zaXplPSI3MHB4IiBmaWxsPSIjZmZmIj5QbGVhc2UgSW5zZXJ0IEltYWdlPC90ZXh0Pgo8L3N2Zz4=",ButtonContent:()=>(0,s.createElement)(s.Fragment,null,f.icon?.class&&(0,s.createElement)("i",{className:`icon ${f.icon?.class} `}),(0,s.createElement)("span",null,f.text)),EAudio:He,EVideo:Fe,EPdf:je,galleryIcon:b,setActiveIndex:D,isOpen:$,custom:i,isBackend:n,activeIndex:_,ContentArea:t,Modal:a,setOpen:R},j={...H,containerRef:N};return(0,s.createElement)("div",{ref:N,className:" "+("button"!==u?`lbbLightBox ${p} columns-${g.desktop} columns-tablet-${g.tablet} columns-mobile-${g.mobile}`:"lbbLightBox llbButton"),id:`lightbox-${r}`},"masonry"===p?(0,s.createElement)(Gn,{...j}):"slider"===p?(0,s.createElement)(Un,{...H}):(0,s.createElement)(Hn,{...H}))},Kn=(t,e)=>{return null==(n=e)||""===n||Array.isArray(n)&&0===n.length||"object"==typeof n&&0===Object.keys(n).length||"string"==typeof n&&""===n.trim()||"number"==typeof n&&0===n?"":`${t}: ${e};`;var n},Qn=t=>{const{color:e="",bgType:n="solid",bg:i="",gradient:o=Cn}=t||{};return`\n\t\t${Kn("color",e)}\n\t\t${o||i?Kn("background","gradient"===n?o:i):""}\n\t`},ti=(t,e,n=!0)=>{const{fontFamily:i="Default",fontCategory:o="sans-serif",fontVariant:s=400,fontWeight:a,isUploadFont:r=!0,fontSize:l={de
2sktop:null,tablet:null,mobile:null},fontStyle:c,textTransform:d,textDecoration:h,lineHeight:u,letterSpace:m}=e||{},p=!n||!i||"Default"===i,g=l?.desktop||l,f=l?.tablet||g,b=l?.mobile||f,v=t=>{const e=String(t);return["px","em","rem","%","vh","vw"].some(t=>e.endsWith(t))?e:"number"==typeof t?`${e}px`:""},y=`\n\t\t${p?"":`font-family: '${i}', ${o};`}\n\t\t${Kn("font-weight",a)}\n\t\t${Kn("font-size",v(g))}\n\t\t${Kn("font-style",c)}\n\t\t${Kn("text-transform",d)}\n\t\t${Kn("text-decoration",h)}\n\t\t${Kn("line-height",u)}\n\t\t${Kn("letter-spacing",m)}\n\t`,w=s&&400!==s?"400i"===s?":ital@1":s?.includes("00i")?`: ital, wght@1, ${s?.replace("00i","00")} `:`: wght@${s} `:"",x=p?"":`https://fonts.googleapis.com/css2?family=${i?.split(" ").join("+")}${w.replace(/ /g,"")}&display=swap`;return{googleFontLink:!r||p?"":`@import url(${x});`,styles:`${t}{\n\t\t\t${y}\n\t\t}\n\t\t@media only screen and (max-width: 1024px) {\n\t\t\t${t}{\n\t\t\t\t${Kn("font-size",v(f))}\n\t\t\t}\n\t\t}\n\t\t@media only screen and (max-width: 640px) {\n\t\t\t${t}{\n\t\t\t\t${Kn("font-size",v(b))}\n\t\t\t}\n\t\t}`.replace(/\s+/g," ").trim()}},ei=({attributes:t,id:e,index:n=0})=>{const{columnGap:i,rowGap:o,img:a,image:r,imgBorder:l,playerColor:c,overlyColor:d,captionTypo:h,captionColors:u,btnTypo:m,btnWidth:p,btnHeight:g,btnAlign:f,btnColors:b,btnHovColors:v,btnPadding:y,btnBorder:w,btnRadius:x,btnSpaceBetween:E,sliderHeight:C,popupTheme:M,audio:P,slider:S,content:T}=t,{closeIconSize:A}=M,{lightboxCaption:L}=T,{typo:k}=P,O=`#${e}`,I=`${O} #lightbox-${n}`,z=`#lbb_audio_modal-${e}`,$=`\n\t${ti("",m)?.googleFontLink}\n\t${ti("",k)?.googleFontLink}\n\t${ti("",h)?.googleFontLink}\n\t${ti(`${I} button`,m)?.styles}\n\t${ti(`${I} .contentArea .caption p`,h)?.styles}\n\t${ti(`${z} .audioPlayer .top .title`,k)?.styles}\n\n\t${I} .f-carousel__nav button {\n\t\t${Qn(S?.arrowColors)};\n\t}\n\n\t${I}{\n\t\tgrid-gap: ${o} ${i};\n\t\tjustify-content:${f}; \n\t}\n\n\t${I} a{\n\t\twidth:${p};\n\t\theight:${g};\n\t}\n\n\t${I} .contentArea .caption p {\n\t\t${Qn(u)};\n\t}\n\t\n\t${O} .default .contentArea .img, ${I} .f-carousel .contentArea .img {\n\t\t \n\t\tpadding-top: ${((t="9:16")=>{const[e,n]=t.split(":");return parseInt(n)/parseInt(e)*100})(r?.ratio)}%;\n\t}\n\n\t.${e}-lbb_modal_area .fancybox__caption {\n\t\tdisplay: ${L?"block":"none"};\n\t}\n\n\t${I} .lbbContent_area {\n\t\tborder-radius:${a?.borderRadius}px;\n\t\tborder:${ze(l)};\n\t}\n\n\t${I} .lbbContent_area .contentArea::after {\n\t\tbackground:${d};\n\t\tborder-radius:${a?.borderRadius}px;\n\t}\n\t\n\t${I}.llbButton .flex{\n\t\tjustify-content: ${f};\n\t}\n\n\t${I} .lbbBtnDesign {\n\t\t${Qn(b)};\n\t\tpadding:${ze(y)};\n\t\tborder:${ze(w)};\n\t\tcolumn-gap:${E};\n\t\tborder-radius:${ze(x)};\n\t\twidth:100%;\n\t\theight:100%;\n\t}\n\t\n\t${I} .lbbBtnDesign:hover{\n\t\t${Qn(v)};\n\t}\n\n\t.plyr {\n\t\t--plyr-color-main: ${c};\n\t}\n\n\t${O} .slider a {\n\t\twidth:100%;\n\t\theight:100%;\n\t}\n\n\t \n\n\t#ghbModal-${e}, #lbb_audio_modal-${e} {\n\t\tbackground: ${M?.color};\n\t}\n\n\t/* The audio popup's own panel is white by default, and it fills the\n\t   overlay, so the popup colour never showed through in the editor. Feed it\n\t   the same colour the other popup types read from --fancybox-bg. */\n\t#lbb_audio_modal-${e} .llb-custom-modal-content {\n\t\tbackground-color: ${M?.color};\n\t}\n\n\t/* Fancybox declares --fancybox-bg on .fancybox__container itself, which is\n\t   the same element and the same specificity as our class, so in the editor\n\t   whichever stylesheet came last won. Add the id of the block's wrapper to\n\t   outrank it regardless of load order. */\n\t.${e}-lbb_modal_area,\n\t.fancybox__container.${e}-lbb_modal_area {\n\t\t--fancybox-bg:${M?.color};\n\t\tz-index: 99999;\n\t}\n\n\t@media (min-width: 1025px) {\n\n\t\t.${e}-lbb_modal_area .fancybox__slide .fancybox__content,\n\t\t#lbb_audio_modal-${e} .llb-custom-modal-content,\n\t\t[id^="llb-dialog-html-${e}"],\n\t\t#ghbModal-${e} .ghbChildSection {\n\t\t\twidth: ${M?.size?.desktop}%!important;\n\t\t} \n\t\t\n\t\t.${e}-lbb_modal_area .fancybox__slide .fancybox__content .f-button.is-close-btn {\n\t\t\twidth: ${A?.desktop}px;\n\t\t\theight: ${A?.desktop}px;\n\t\t}\n\n\t\t.${e}-lbb_modal_area .fancybox__slide .fancybox__content .f-button.is-close-btn svg {\n\t\t\twidth: ${A?.desktop-10}px;\n\t\t\theight: ${A?.desktop-10}px;\n\t\t}\n\n\t\t${z} .llb-custom-modal-content .llb-custom-modal-close{\n\t\t\twidth: ${A?.desktop}px;\n\t\t\theight: ${A?.desktop}px;\n\t\t}\n\t\t${z} .llb-custom-modal-content .llb-custom-modal-close svg {\n\t\t\twidth: ${A?.desktop-10}px;\n\t\t\theight: ${A?.desktop-10}px;\n\t\t}\n\t}\n\n\t@media (max-width: 1024px) {\n\n\t\t.${e}-lbb_modal_area .fancybox__slide .fancybox__content,\n\t\t #lbb_audio_modal-${e} .llb-custom-modal-content,\n\t\t [id^="llb-dialog-html-${e}"],\n\t\t #ghbModal-${e} .ghbChildSection {\n\t\t\twidth: ${M?.size?.tablet}%!important;\n\t\t}\n\n\t\t${I} .f-carousel { \n\t\t\t \n\t\t}\t\n\n\t\t.${e}-lbb_modal_area .fancybox__slide .fancybox__content .f-button.is-close-btn {\n\t\t\twidth: ${A?.tablet}px;\n\t\t\theight: ${A?.tablet}px;\n\t\t}\n\n\t\t.${e}-lbb_modal_area .fancybox__slide .fancybox__content .f-button.is-close-btn svg {\n\t\t\twidth: ${A?.tablet-10}px;\n\t\t\theight: ${A?.tablet-10}px;\n\t\t}\n\n\t\t${z} .llb-custom-modal-content .llb-custom-modal-close{\n\t\t\twidth: ${A?.tablet}px;\n\t\t\theight: ${A?.tablet}px;\n\t\t}\n\t\t\n\t\t${z} .llb-custom-modal-content .llb-custom-modal-close svg {\n\t\t\twidth: ${A?.tablet-10}px;\n\t\t\theight: ${A?.tablet-10}px;\n\t\t}\n\t}\n\n\t@media (max-width: 640px) {\n\n\t\t.${e}-lbb_modal_area .fancybox__slide .fancybox__content,\n\t\t#lbb_audio_modal-${e} .llb-custom-modal-content,\n\t\t[id^="llb-dialog-html-${e}"], \n\t\t#ghbModal-${e} .ghbChildSection {\n\t\t\twidth: ${M?.size?.mobile}%!important;\n\t\t}\n\n\t\t${I} .f-carousel {\n\t\t\t \n\t\t}\n\n\t\t.${e}-lbb_modal_area .fancybox__slide .fancybox__content .f-button.is-close-btn {\n\t\t\twidth: ${A?.mobile}px;\n\t\t\theight: ${A?.mobile}px;\n\t\t}\n\n\t\t.${e}-lbb_modal_area .fancybox__slide .fancybox__content .f-button.is-close-btn svg {\n\t\t\twidth: ${A?.mobile-10}px;\n\t\t\theight: ${A?.mobile-10}px;\n\t\t}\n\n\t\t${z} .llb-custom-modal-content .llb-custom-modal-close{\n\t\t\twidth: ${A?.mobile}px;\n\t\t\theight: ${A?.mobile}px;\n\t\t}\n\n\t\t${z} .llb-custom-modal-content .llb-custom-modal-close svg {\n\t\t\twidth: ${A?.mobile-10}px;\n\t\t\theight: ${A?.mobile-10}px;\t\n\t\t}\t\n\t}\n\t.${e}-lbb_modal_area .fancybox__slide .fancybox__content .f-button.is-close-btn{\n\t\tbackground: ${M?.closeIconColors?.bg};\t \n\t}\t\n\t\n\t.${e}-lbb_modal_area .fancybox__slide .fancybox__content .f-button.is-close-btn:hover{\n\t\tbackground: ${M?.closeIconHColor?.bg};\n\t}\n\n\t.${e}-lbb_modal_area .fancybox__slide .fancybox__content .f-button.is-close-btn svg {\n\t\tfill:${M?.closeIconColors?.color};\n\t\tstroke:${M?.closeIconColors?.color};\n\t}\n\t\n\t.${e}-lbb_modal_area .fancybox__slide .fancybox__content .f-button.is-close-btn:hover svg {\n\t\tfill:${M?.closeIconHColor?.color};\n\t\tstroke:${M?.closeIconHColor?.color};\n\t}\n\t\n\t${z} .llb-custom-modal-content .llb-custom-modal-close {\n\t\tbackground: ${M?.closeIconColors?.bg};\n\t}\n\n\t${z}
2 .llb-custom-modal-content .llb-custom-modal-close:hover {\n\t\tbackground: ${M?.closeIconHColor?.bg};\n\t}\n\n\t${z} .llb-custom-modal-content .llb-custom-modal-close svg {\n\t\tfill:${M?.closeIconColors?.color};\n\t\tstroke:${M?.closeIconColors?.color};\n\t}\n\n\t${z} .llb-custom-modal-content .llb-custom-modal-close:hover svg{\n\t\tfill:${M?.closeIconHColor?.color};\n\t\tstroke:${M?.closeIconHColor?.color};\n\t}\n\n\t${O} .slider .f-thumbs{\n\t\t--f-thumb-gap: ${i};\n\t}\n\n\t${r?.fitPortrait?"":`\n\t${I} .lbbContent_area .contentArea .img.portrait {\n\t\tbackground: transparent;\n\t}\n\t${I} .lbbContent_area .contentArea .img.portrait img {\n\t\tobject-fit: cover;\n\t}\n\t`}\n\n`,R=((t,e)=>{const n=(0,s.useRef)(null),i=(0,s.useRef)(null);return(0,s.useEffect)(()=>{const o=n.current?.ownerDocument;if(!o)return;const s=o===document?o.defaultView?.parent?.document:document;if(!s||s===o)return;let a=i.current;return a&&a.isConnected||(a=s.createElement("style"),a.setAttribute("data-lbb-popup-style",e),s.head.appendChild(a),i.current=a),a.textContent=t,()=>{a.remove(),i.current=null}},[t,e]),n})($,e);return(0,s.createElement)("style",{ref:R,dangerouslySetInnerHTML:{__html:$}})};document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".wp-block-lbb-lightbox").forEach((t,e)=>{const n=JSON.parse(t.dataset.nonce),i=JSON.parse(t.dataset.attributes),{popupIconLeft:o,popupIconMiddle:a,popupIconRight:l,thumb:c,slideShow:d,options:h,controls:u,pdfOptions:m,popupTheme:p}=i;Be(t.id,o,a,l,c,d,h,u,null,m,p),(0,r.createRoot)(t).render((0,s.createElement)(s.Fragment,null,(0,s.createElement)(ei,{attributes:i,id:t.id,index:e}),(0,s.createElement)(ni,{nonce:n,attributes:i,id:t.id,index:e}))),t?.removeAttribute("data-attributes")})});const ni=({nonce:t,attributes:e,id:n,contentBlock:i,index:o})=>(0,s.createElement)(Jn,{ContentArea:({id:t,item:e,index:n,isBackend:i,custom:o,setOpen:a})=>(0,s.createElement)(s.Fragment,null),Modal:({onRequestClose:t,activeIndex:e,id:i,children:o})=>{const a=document.querySelector("#"+n+"-content-"+e);return a?((0,s.useEffect)(()=>{const e=document.createElement("div");e.classList.add("ghbModalMainSection"),e.setAttribute("id",`ghbModal-${i}`);const n=document.createElement("div");n.classList.add("ghbChildSection");const o=document.createElement("div");o.classList.add("closeBtn"),o.innerHTML="<svg xmlns='http://www.w3.org/2000/svg' fill='#000000' width='30px' height='30px' viewBox='-6 -6 24 24' preserveAspectRatio='xMinYMin' class='jam jam-close'><path d='M7.314 5.9l3.535-3.536A1 1 0 1 0 9.435.95L5.899 4.485 2.364.95A1 1 0 1 0 .95 2.364l3.535 3.535L.95 9.435a1 1 0 1 0 1.414 1.414l3.535-3.535 3.536 3.535a1 1 0 1 0 1.414-1.414L7.314 5.899z' /></svg>",e.appendChild(n);const s=a.querySelectorAll("[data-fancybox]");let r=a.getAttribute("fancy-id");const l=a.cloneNode(!0);r?l.querySelectorAll("a").forEach(t=>t.setAttribute("data-fancybox",r)):(s.forEach(t=>r=t.getAttribute("data-fancybox")),a.setAttribute("fancy-id",r),s.forEach(t=>t.removeAttribute("data-fancybox"))),n.innerHTML=l.innerHTML,n.append(o),document.body.appendChild(e),o.addEventListener("click",()=>{document.body.removeChild(e),t()}),e.addEventListener("click",function(n){n.target.classList.contains("ghbModalMainSection")&&(document.body.removeChild(e),t())})},[]),(0,s.createElement)(s.Fragment,null)):(0,s.createElement)(s.Fragment,null)},attributes:e,id:n,isSelected:!0,isBackend:!1,custom:{updateItem:(t,e,n,i=!1)=>{}},index:o})})();

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.