PageSourceSearch

https://www.kazanciholding.com.tr/assets/main-rYxKwbcS.js

js kazanciholding.com.tr collected 2026-10-02 20:55:25 UTC 243,832 bytes, 23 lines download raw bytes

1var Xi=Object.defineProperty;var Ki=(e,t,i)=>t in e?Xi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var ke=(e,t,i)=>Ki(e,typeof t!="symbol"?t+"":t,i);function Ui(e){return!!e&&typeof e.then=="function"}async function Zi(e){if(!e)return null;if(typeof e=="function")return e;if(Ui(e)){const t=await e;return typeof t=="function"?t:null}return null}class Ji{constructor(t){ke(this,"features",[]);ke(this,"cleanups",[]);ke(this,"context");ke(this,"bootstrapped",!1);var n,r;const i=typeof window!="undefined"?window:void 0,s=typeof document!="undefined"?document:void 0;if(!i||!s)throw new Error("App requires a browser environment.");this.context={window:(n=t==null?void 0:t.window)!=null?n:i,document:(r=t==null?void 0:t.document)!=null?r:s}}register(...t){return this.features.push(...t),this}async init(){const t=[...this.features].sort((i,s)=>{var o,c;const n=(o=i.priority)!=null?o:0,r=(c=s.priority)!=null?c:0;return n-r});for(const i of t)try{if(i.when&&!i.when(this.context))continue;const s=await i.init(this.context),n=await Zi(s);n&&this.cleanups.push(n)}catch(s){console.error(`[App] Feature "${i.name}" failed to initialize.`,s)}}async destroy(){for(;this.cleanups.length>0;){const t=this.cleanups.pop();if(t)try{await t()}catch(i){console.error("[App] Feature cleanup failed.",i)}}this.bootstrapped=!1}bootstrap(){if(this.bootstrapped)return;this.bootstrapped=!0;const t=()=>{this.context.document.documentElement.classList.add("dom-loaded"),this.init()};this.context.document.readyState==="loading"?this.context.document.addEventListener("DOMContentLoaded",t,{once:!0}):t()}}function Qi(){return typeof window=="undefined"?!1:window.matchMedia("(pointer: coarse)").matches}function es(e,t){t?(e.classList.add("touchevents"),e.classList.remove("no-touchevents")):(e.classList.add("no-touchevents"),e.classList.remove("touchevents"))}const ts={name:"interaction-mode",priority:1,init:({window:e,document:t})=>{const i=t.body,s=()=>{es(i,Qi())};s();const n=e.matchMedia("(pointer: coarse)"),r=()=>s();return typeof n.addEventListener=="function"?n.addEventListener("change",r):typeof n.addListener=="function"&&n.addListener(r),()=>{typeof n.removeEventListener=="function"?n.removeEventListener("change",r):typeof n.removeListener=="function"&&n.removeListener(r)}}},is={name:"",when:({document:e})=>!!e.getElementById("menu-toggle-button"),init:({window:e,document:t})=>{const i=t.getElementById("menu-toggle-button");return i&&i.addEventListener("click",()=>{t.body.classList.toggle("navigation-opened")}),()=>{}}},ss={name:"Header",when:({document:e})=>!!e.getElementById("header"),init:({window:e,document:t})=>{const i=Array.from(t.querySelectorAll("[data-mega-menu]")),s=Array.from(t.querySelectorAll("[data-mega-menu-back]")),n=Array.from(t.querySelectorAll("[data-close-menu]")),r=t.body,o=new Map,c=t.getElementById("header-primary-menu"),l=t.getElementById("hamburger-button");i.forEach(L=>{const O=L.dataset.megaMenu;if(!O)return;const z=t.getElementById(O);z&&o.set(O,z)});const u=()=>{o.forEach(L=>{L.classList.remove("active")}),i.forEach(L=>{L.classList.remove("active")}),r.classList.remove("mega-menu-active")},h=i.map(L=>{const O=()=>{const z=L.dataset.megaMenu;if(!z)return;const x=o.get(z);if(!x)return;z=="search-toggle"&&(l==null||l.classList.remove("active"),r.classList.remove("mobile-menu-active"));const $=x.classList.contains("active");u(),!$&&(x.classList.add("active"),L.classList.add("active"),r.classList.add("mega-menu-active"))};return L.addEventListener("click",O),{button:L,handler:O}}),f=()=>{u(),c==null||c.classList.remove("active"),l==null||l.classList.remove("active"),r.classList.remove("mobile-menu-active")},p=n.map(L=>{const O=z=>{z.preventDefault(),f()};return L.addEventListener("click",O),{button:L,handler:O}}),m=s.map(L=>{const O=z=>{var x;z.preventDefault(),r.classList.remove("mega-menu-active"),(x=t.querySelector(".full-page-toggle.active"))==null||x.classList.remove("active")};return L.addEventListener("click",O),{button:L,handler:O}}),v=()=>{if(!c)return;if(l==null?void 0:l.classList.contains("active")){f();return}u(),c.classList.add("active"),l==null||l.classList.add("active"),r.classList.add("mobile-menu-active")};l==null||l.addEventListener("click",v);const S=L=>{L.key==="Escape"&&u()};t.addEventListener("keydown",S);let b=0;const C="scroll-up",A="scroll-down",I=30,M=()=>{const L=t.body,O=e.pageYOffset;if(O<=I){L.classList.remove(C),L.classList.remove("scrolling");return}L.classList.add("scrolling");const z=t.querySelector("#header .toggle.active"),x=t.querySelector("#header .toggle .toggle-btn.active");z&&z.classList.remove("active"),x&&x.classList.remove("active"),O>b&&!L.classList.contains(A)?(L.classList.remove(C),L.classList.add(A)):O<b&&L.classList.contains(A)&&(L.classList.remove(A),L.classList.add(C)),b=O};return e.addEventListener("scroll",M),()=>{h.forEach(({button:L,handler:O})=>{L.removeEventListener("click",O)}),p.forEach(({button:L,handler:O})=>{L.removeEventListener("click",O)}),m.forEach(({button:L,handler:O})=>{L.removeEventListener("click",O)}),t.removeEventListener("keydown",S),l==null||l.removeEventListener("click",v),u(),e.removeEventListener("scroll",M)}}};var ns=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};
1function rs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var di={exports:{}};(function(e,t){(function(i,s){e.exports=s()})(ns,function(){function i(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function s(a,d){for(var g=0;g<d.length;g++){var y=d[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(a,r(y.key),y)}}function n(a,d,g){return d&&s(a.prototype,d),Object.defineProperty(a,"prototype",{writable:!1}),a}function r(a){var d=function(g,y){if(typeof g!="object"||!g)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var _=E.call(g,y);if(typeof _!="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(a,"string");return typeof d=="symbol"?d:d+""}function o(a){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(a)}var c=Date.now();function l(){var a={},d=!0,g=0,y=arguments.length;Object.prototype.toString.call(arguments[0])==="[object Boolean]"&&(d=arguments[0],g++);for(var E=function(T){for(var w in T)Object.prototype.hasOwnProperty.call(T,w)&&(d&&Object.prototype.toString.call(T[w])==="[object Object]"?a[w]=l(!0,a[w],T[w]):a[w]=T[w])};g<y;g++){var _=arguments[g];E(_)}return a}function u(a,d){if((H(a)||a===window||a===document)&&(a=[a]),U(a)||te(a)||(a=[a]),Ie(a)!=0){if(U(a)&&!te(a))for(var g=a.length,y=0;y<g&&d.call(a[y],a[y],y,a)!==!1;y++);else if(te(a)){for(var E in a)if(X(a,E)&&d.call(a[E],a[E],E,a)===!1)break}}}function h(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,y=a[c]=a[c]||[],E={all:y,evt:null,found:null};return d&&g&&Ie(y)>0&&u(y,function(_,T){if(_.eventName==d&&_.fn.toString()==g.toString())return E.found=!0,E.evt=T,!1}),E}function f(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=d.onElement,y=d.withCallback,E=d.avoidDuplicate,_=E===void 0||E,T=d.once,w=T!==void 0&&T,B=d.useCapture,D=B!==void 0&&B,F=arguments.length>2?arguments[2]:void 0,R=g||[];function G(j){k(y)&&y.call(F,j,this),w&&G.destroy()}return N(R)&&(R=document.querySelectorAll(R)),G.destroy=function(){u(R,function(j){var W=h(j,a,G);W.found&&W.all.splice(W.evt,1),j.removeEventListener&&j.removeEventListener(a,G,D)})},u(R,function(j){var W=h(j,a,G);(j.addEventListener&&_&&!W.found||!_)&&(j.addEventListener(a,G,D),W.all.push({eventName:a,fn:G}))}),G}function p(a,d){u(d.split(" "),function(g){return a.classList.add(g)})}function m(a,d){u(d.split(" "),function(g){return a.classList.remove(g)})}function v(a,d){return a.classList.contains(d)}function S(a,d){for(;a!==document.body;){if(!(a=a.parentElement))return!1;if(typeof a.matches=="function"?a.matches(d):a.msMatchesSelector(d))return a}}function b(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",g=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(!a||d==="")return!1;if(d==="none")return k(g)&&g(),!1;var y=O(),E=d.split(" ");u(E,function(_){p(a,"g"+_)}),f(y,{onElement:a,avoidDuplicate:!1,once:!0,withCallback:function(_,T){u(E,function(w){m(T,"g"+w)}),k(g)&&g()}})}function C(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(d==="")return a.style.webkitTransform="",a.style.MozTransform="",a.style.msTransform="",a.style.OTransform="",a.style.transform="",!1;a.style.webkitTransform=d,a.style.MozTransform=d,a.style.msTransform=d,a.style.OTransform=d,a.style.transform=d}function A(a){a.style.display="block"}function I(a){a.style.display="none"}function M(a){var d=document.createDocumentFragment(),g=document.createElement("div");for(g.innerHTML=a;g.firstChild;)d.appendChild(g.firstChild);return d}function L(){return{width:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}}function O(){var a,d=document.createElement("fakeelement"),g={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(a in g)if(d.style[a]!==void 0)return g[a]}function z(a,d,g,y){if(a())d();else{var E;g||(g=100);var _=setInterval(function(){a()&&(clearInterval(_),E&&clearTimeout(E),d())},g)}}function x(a,d,g){if(Z(a))console.error("Inject assets error");else if(k(d)&&(g=d,d=!1),N(d)&&d in window)k(g)&&g();else{var y;if(a.indexOf(".css")!==-1){if((y=document.querySelectorAll('link[href="'+a+'"]'))&&y.length>0)return void(k(g)&&g());var E=document.getElementsByTagName("head")[0],_=E.querySelectorAll('link[rel="stylesheet"]'),T=document.createElement("link");return T.rel="stylesheet",T.type="text/css",T.href=a,T.media="all",_?E.insertBefore(T,_[0]):E.appendChild(T),void(k(g)&&g())}if((y=document.querySelectorAll('script[src="'+a+'"]'))&&y.length>0){if(k(g)){if(N(d))return z(function(){return window[d]!==void 0},function(){g()}),!1;g()}}else{var w=document.createElement("script");w.type="text/javascript",w.src=a,w.onload=function(){if(k(g)){if(N(d))return z(function(){return window[d]!==void 0},function(){g()}),!1;g()}},document.body.appendChild(w)}}}function $(){return"navigator"in window&&window.navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i)}function k(a){return typeof a=="function"}
1function N(a){return typeof a=="string"}function H(a){return!(!a||!a.nodeType||a.nodeType!=1)}function de(a){return Array.isArray(a)}function U(a){return a&&a.length&&isFinite(a.length)}function te(a){return o(a)==="object"&&a!=null&&!k(a)&&!de(a)}function Z(a){return a==null}function X(a,d){return a!==null&&hasOwnProperty.call(a,d)}function Ie(a){if(te(a)){if(a.keys)return a.keys().length;var d=0;for(var g in a)X(a,g)&&d++;return d}return a.length}function me(a){return!isNaN(parseFloat(a))&&isFinite(a)}function Ae(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1,d=document.querySelectorAll(".gbtn[data-taborder]:not(.disabled)");if(!d.length)return!1;if(d.length==1)return d[0];typeof a=="string"&&(a=parseInt(a));var g=[];u(d,function(w){g.push(w.getAttribute("data-taborder"))});var y=Math.max.apply(Math,g.map(function(w){return parseInt(w)})),E=a<0?1:a+1;E>y&&(E="1");var _=g.filter(function(w){return w>=parseInt(E)}),T=_.sort()[0];return document.querySelector('.gbtn[data-taborder="'.concat(T,'"]'))}function Be(a){if(a.events.hasOwnProperty("keyboard"))return!1;a.events.keyboard=f("keydown",{onElement:window,withCallback:function(d,g){var y=(d=d||window.event).keyCode;if(y==9){var E=document.querySelector(".gbtn.focused");if(!E){var _=!(!document.activeElement||!document.activeElement.nodeName)&&document.activeElement.nodeName.toLocaleLowerCase();if(_=="input"||_=="textarea"||_=="button")return}d.preventDefault();var T=document.querySelectorAll(".gbtn[data-taborder]");if(!T||T.length<=0)return;if(!E){var w=Ae();return void(w&&(w.focus(),p(w,"focused")))}var B=Ae(E.getAttribute("data-taborder"));m(E,"focused"),B&&(B.focus(),p(B,"focused"))}y==39&&a.nextSlide(),y==37&&a.prevSlide(),y==27&&a.close()}})}var ze=n(function a(d,g){var y=this,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(i(this,a),this.img=d,this.slide=g,this.onclose=E,this.img.setZoomEvents)return!1;this.active=!1,this.zoomedIn=!1,this.dragging=!1,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.img.addEventListener("mousedown",function(_){return y.dragStart(_)},!1),this.img.addEventListener("mouseup",function(_){return y.dragEnd(_)},!1),this.img.addEventListener("mousemove",function(_){return y.drag(_)},!1),this.img.addEventListener("click",function(_){return y.slide.classList.contains("dragging-nav")?(y.zoomOut(),!1):y.zoomedIn?void(y.zoomedIn&&!y.dragging&&y.zoomOut()):y.zoomIn()},!1),this.img.setZoomEvents=!0},[{key:"zoomIn",value:function(){var a=this.widowWidth();if(!(this.zoomedIn||a<=768)){var d=this.img;if(d.setAttribute("data-style",d.getAttribute("style")),d.style.maxWidth=d.naturalWidth+"px",d.style.maxHeight=d.naturalHeight+"px",d.naturalWidth>a){var g=a/2-d.naturalWidth/2;this.setTranslate(this.img.parentNode,g,0)}this.slide.classList.add("zoomed"),this.zoomedIn=!0}}},{key:"zoomOut",value:function(){this.img.parentNode.setAttribute("style",""),this.img.setAttribute("style",this.img.getAttribute("data-style")),this.slide.classList.remove("zoomed"),this.zoomedIn=!1,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.onclose&&typeof this.onclose=="function"&&this.onclose()}},{key:"dragStart",value:function(a){a.preventDefault(),this.zoomedIn?(a.type==="touchstart"?(this.initialX=a.touches[0].clientX-this.xOffset,this.initialY=a.touches[0].clientY-this.yOffset):(this.initialX=a.clientX-this.xOffset,this.initialY=a.clientY-this.yOffset),a.target===this.img&&(this.active=!0,this.img.classList.add("dragging"))):this.active=!1}},{key:"dragEnd",value:function(a){var d=this;a.preventDefault(),this.initialX=this.currentX,this.initialY=this.currentY,this.active=!1,setTimeout(function(){d.dragging=!1,d.img.isDragging=!1,d.img.classList.remove("dragging")},100)}},{key:"drag",value:function(a){this.active&&(a.preventDefault(),a.type==="touchmove"?(this.currentX=a.touches[0].clientX-this.initialX,this.currentY=a.touches[0].clientY-this.initialY):(this.currentX=a.clientX-this.initialX,this.currentY=a.clientY-this.initialY),this.xOffset=this.currentX,this.yOffset=this.currentY,this.img.isDragging=!0,this.dragging=!0,this.setTranslate(this.img,this.currentX,this.currentY))}}
1,{key:"onMove",value:function(a){if(this.zoomedIn){var d=a.clientX-this.img.naturalWidth/2,g=a.clientY-this.img.naturalHeight/2;this.setTranslate(this.img,d,g)}}},{key:"setTranslate",value:function(a,d,g){a.style.transform="translate3d("+d+"px, "+g+"px, 0)"}},{key:"widowWidth",value:function(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}}]),Pt=n(function a(){var d=this,g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i(this,a);var y=g.dragEl,E=g.toleranceX,_=E===void 0?40:E,T=g.toleranceY,w=T===void 0?65:T,B=g.slide,D=B===void 0?null:B,F=g.instance,R=F===void 0?null:F;this.el=y,this.active=!1,this.dragging=!1,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.direction=null,this.lastDirection=null,this.toleranceX=_,this.toleranceY=w,this.toleranceReached=!1,this.dragContainer=this.el,this.slide=D,this.instance=R,this.el.addEventListener("mousedown",function(G){return d.dragStart(G)},!1),this.el.addEventListener("mouseup",function(G){return d.dragEnd(G)},!1),this.el.addEventListener("mousemove",function(G){return d.drag(G)},!1)},[{key:"dragStart",value:function(a){if(this.slide.classList.contains("zoomed"))this.active=!1;else{a.type==="touchstart"?(this.initialX=a.touches[0].clientX-this.xOffset,this.initialY=a.touches[0].clientY-this.yOffset):(this.initialX=a.clientX-this.xOffset,this.initialY=a.clientY-this.yOffset);var d=a.target.nodeName.toLowerCase();a.target.classList.contains("nodrag")||S(a.target,".nodrag")||["input","select","textarea","button","a"].indexOf(d)!==-1?this.active=!1:(a.preventDefault(),(a.target===this.el||d!=="img"&&S(a.target,".gslide-inline"))&&(this.active=!0,this.el.classList.add("dragging"),this.dragContainer=S(a.target,".ginner-container")))}}},{key:"dragEnd",value:function(a){var d=this;a&&a.preventDefault(),this.initialX=0,this.initialY=0,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.active=!1,this.doSlideChange&&(this.instance.preventOutsideClick=!0,this.doSlideChange=="right"&&this.instance.prevSlide(),this.doSlideChange=="left"&&this.instance.nextSlide()),this.doSlideClose&&this.instance.close(),this.toleranceReached||this.setTranslate(this.dragContainer,0,0,!0),setTimeout(function(){d.instance.preventOutsideClick=!1,d.toleranceReached=!1,d.lastDirection=null,d.dragging=!1,d.el.isDragging=!1,d.el.classList.remove("dragging"),d.slide.classList.remove("dragging-nav"),d.dragContainer.style.transform="",d.dragContainer.style.transition=""},100)}},{key:"drag",value:function(a){if(this.active){a.preventDefault(),this.slide.classList.add("dragging-nav"),a.type==="touchmove"?(this.currentX=a.touches[0].clientX-this.initialX,this.currentY=a.touches[0].clientY-this.initialY):(this.currentX=a.clientX-this.initialX,this.currentY=a.clientY-this.initialY),this.xOffset=this.currentX,this.yOffset=this.currentY,this.el.isDragging=!0,this.dragging=!0,this.doSlideChange=!1,this.doSlideClose=!1;var d=Math.abs(this.currentX),g=Math.abs(this.currentY);if(d>0&&d>=Math.abs(this.currentY)&&(!this.lastDirection||this.lastDirection=="x")){this.yOffset=0,this.lastDirection="x",this.setTranslate(this.dragContainer,this.currentX,0);var y=this.shouldChange();if(!this.instance.settings.dragAutoSnap&&y&&(this.doSlideChange=y),this.instance.settings.dragAutoSnap&&y)return this.instance.preventOutsideClick=!0,this.toleranceReached=!0,this.active=!1,this.instance.preventOutsideClick=!0,this.dragEnd(null),y=="right"&&this.instance.prevSlide(),void(y=="left"&&this.instance.nextSlide())}if(this.toleranceY>0&&g>0&&g>=d&&(!this.lastDirection||this.lastDirection=="y")){this.xOffset=0,this.lastDirection="y",this.setTranslate(this.dragContainer,0,this.currentY);var E=this.shouldClose();return!this.instance.settings.dragAutoSnap&&E&&(this.doSlideClose=!0),void(this.instance.settings.dragAutoSnap&&E&&this.instance.close())}}}},{key:"shouldChange",value:function(){var a=!1;if(Math.abs(this.currentX)>=this.toleranceX){var d=this.currentX>0?"right":"left";(d=="left"&&this.slide!==this.slide.parentNode.lastChild||d=="right"&&this.slide!==this.slide.parentNode.firstChild)&&(a=d)}return a}},{key:"shouldClose",value:function(){var a=!1;return Math.abs(this.currentY)>=this.toleranceY&&(a=!0),a}},{key:"setTranslate",value:function(a,d,g){var y=arguments.length>3&&arguments[3]!==void 0&&arguments[3];a.style.transition=y?"all .2s ease":"",a.style.transform="translate3d(".concat(d,"px, ").concat(g,"px, 0)")}}]);function Oi(a,d,g,y){var E=a.querySelector(".gslide-media"),_=new Image,T="gSlideTitle_"+g,w="gSlideDesc_"+g;_.addEventListener("load",function(){k(y)&&y()},!1),_.src=d.href,d.sizes!=""&&d.srcset!=""&&(_.sizes=d.sizes,_.srcset=d.srcset),_.alt="",Z(d.alt)||d.alt===""||(_.alt=d.alt),d.title!==""&&_.setAttribute("aria-labelledby",T),d.description!==""&&_.setAttribute("aria-describedby",w),d.hasOwnProperty("_hasCustomWidth")&&d._hasCustomWidth&&(_.style.width=d.width),d.hasOwnProperty("_hasCustomHeight")&&d._hasCustomHeight&&(_.style.height=d.height),E.insertBefore(_,E.firstChild)}function Pi(a,d,g,y){var E=this,_=a.querySelector(".ginner-container"),T="gvideo"+g,w=a.querySelector(".gslide-media"),B=this.getAllPlayers();p(_,"gvideo-container"),w.insertBefore(M('<div class="gvideo-wrapper"></div>'),w.firstChild);var D=a.querySelector(".gvideo-wrapper");x(this.settings.plyr.css,"Plyr");var F=d.href,R=d==null?void 0:d.videoProvider,G=!1;w.style.maxWidth=d.width,x(this.settings.plyr.js,"Plyr",function(){if(!R&&F.match(/vimeo\.com\/([0-9]*)/)&&(R="vimeo"),!R&&(F.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||F.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/)||F.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/)||F.match(/(youtube\.com|youtube-nocookie\.com)\/shorts\/([a-zA-Z0-9\-_]+)/))&&
1(R="youtube"),R==="local"||!R){R="local";var j='<video id="'+T+'" ';j+='style="background:#000; max-width: '.concat(d.width,';" '),j+='preload="metadata" ',j+='x-webkit-airplay="allow" ',j+="playsinline ",j+="controls ",j+='class="gvideo-local">',j+='<source src="'.concat(F,'">'),G=M(j+="</video>")}var W=G||M('<div id="'.concat(T,'" data-plyr-provider="').concat(R,'" data-plyr-embed-id="').concat(F,'"></div>'));p(D,"".concat(R,"-video gvideo")),D.appendChild(W),D.setAttribute("data-id",T),D.setAttribute("data-index",g);var K=X(E.settings.plyr,"config")?E.settings.plyr.config:{},pe=new Plyr("#"+T,K);pe.on("ready",function(ue){B[T]=ue.detail.plyr,k(y)&&y()}),z(function(){return a.querySelector("iframe")&&a.querySelector("iframe").dataset.ready=="true"},function(){E.resize(a)}),pe.on("enterfullscreen",Dt),pe.on("exitfullscreen",Dt)})}function Dt(a){var d=S(a.target,".gslide-media");a.type==="enterfullscreen"&&p(d,"fullscreen"),a.type==="exitfullscreen"&&m(d,"fullscreen")}function Di(a,d,g,y){var E,_=this,T=a.querySelector(".gslide-media"),w=!(!X(d,"href")||!d.href)&&d.href.split("#").pop().trim(),B=!(!X(d,"content")||!d.content)&&d.content;if(B&&(N(B)&&(E=M('<div class="ginlined-content">'.concat(B,"</div>"))),H(B))){B.style.display=="none"&&(B.style.display="block");var D=document.createElement("div");D.className="ginlined-content",D.appendChild(B),E=D}if(w){var F=document.getElementById(w);if(!F)return!1;var R=F.cloneNode(!0);R.style.height=d.height,R.style.maxWidth=d.width,p(R,"ginlined-content"),E=R}if(!E)return console.error("Unable to append inline slide content",d),!1;T.style.height=d.height,T.style.width=d.width,T.appendChild(E),this.events["inlineclose"+w]=f("click",{onElement:T.querySelectorAll(".gtrigger-close"),withCallback:function(G){G.preventDefault(),_.close()}}),k(y)&&y()}function Ni(a,d,g,y){var E=a.querySelector(".gslide-media"),_=function(T){var w=T.url,B=T.allow,D=T.callback,F=T.appendTo,R=document.createElement("iframe");return R.className="vimeo-video gvideo",R.src=w,R.style.width="100%",R.style.height="100%",B&&R.setAttribute("allow",B),R.onload=function(){R.onload=null,p(R,"node-ready"),k(D)&&D()},F&&F.appendChild(R),R}({url:d.href,callback:y});E.parentNode.style.maxWidth=d.width,E.parentNode.style.height=d.height,E.appendChild(_)}var $i=n(function a(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i(this,a),this.defaults={href:"",sizes:"",srcset:"",title:"",type:"",videoProvider:"",description:"",alt:"",descPosition:"bottom",effect:"",width:"",height:"",content:!1,zoomable:!0,draggable:!0},te(d)&&(this.defaults=l(this.defaults,d))},[{key:"sourceType",value:function(a){var d=a;return(a=a.toLowerCase()).match(/\.(jpeg|jpg|jpe|gif|png|apn|webp|avif|svg)/)!==null?"image":a.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||a.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/)||a.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/)||a.match(/(youtube\.com|youtube-nocookie\.com)\/shorts\/([a-zA-Z0-9\-_]+)/)||a.match(/vimeo\.com\/([0-9]*)/)||a.match(/\.(mp4|ogg|webm|mov)/)!==null?"video":a.match(/\.(mp3|wav|wma|aac|ogg)/)!==null?"audio":a.indexOf("#")>-1&&d.split("#").pop().trim()!==""?"inline":a.indexOf("goajax=true")>-1?"ajax":"external"}},{key:"parseConfig",value:function(a,d){var g=this,y=l({descPosition:d.descPosition},this.defaults);if(te(a)&&!H(a)){X(a,"type")||(X(a,"content")&&a.content?a.type="inline":X(a,"href")&&(a.type=this.sourceType(a.href)));var E=l(y,a);return this.setSize(E,d),E}var _="",T=a.getAttribute("data-glightbox"),w=a.nodeName.toLowerCase();if(w==="a"&&(_=a.href),w==="img"&&(_=a.src,y.alt=a.alt),y.href=_,u(y,function(j,W){X(d,W)&&W!=="width"&&(y[W]=d[W]);var K=a.dataset[W];Z(K)||(y[W]=g.sanitizeValue(K))}),y.content&&(y.type="inline"),!y.type&&_&&(y.type=this.sourceType(_)),Z(T)){if(!y.title&&w=="a"){var B=a.title;Z(B)||B===""||(y.title=B)}if(!y.title&&w=="img"){var D=a.alt;Z(D)||D===""||(y.title=D)}}else{var F=[];u(y,function(j,W){F.push(";\\s?"+W)}),F=F.join("\\s?:|"),T.trim()!==""&&u(y,function(j,W){var K=T,pe=new RegExp("s?"+W+"s?:s?(.*?)("+F+"s?:|$)"),ue=K.match(pe);
1if(ue&&ue.length&&ue[1]){var Se=ue[1].trim().replace(/;\s*$/,"");y[W]=g.sanitizeValue(Se)}})}if(y.description&&y.description.substring(0,1)==="."){var R;try{R=document.querySelector(y.description).innerHTML}catch(j){if(!(j instanceof DOMException))throw j}R&&(y.description=R)}if(!y.description){var G=a.querySelector(".glightbox-desc");G&&(y.description=G.innerHTML)}return this.setSize(y,d,a),this.slideConfig=y,y}},{key:"setSize",value:function(a,d){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,y=a.type=="video"?this.checkSize(d.videosWidth):this.checkSize(d.width),E=this.checkSize(d.height);return a.width=X(a,"width")&&a.width!==""?this.checkSize(a.width):y,a.height=X(a,"height")&&a.height!==""?this.checkSize(a.height):E,g&&a.type=="image"&&(a._hasCustomWidth=!!g.dataset.width,a._hasCustomHeight=!!g.dataset.height),a}},{key:"checkSize",value:function(a){return me(a)?"".concat(a,"px"):a}},{key:"sanitizeValue",value:function(a){return a!=="true"&&a!=="false"?a:a==="true"}}]),Ze=n(function a(d,g,y){i(this,a),this.element=d,this.instance=g,this.index=y},[{key:"setContent",value:function(){var a=this,d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,g=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(v(d,"loaded"))return!1;var y=this.instance.settings,E=this.slideConfig,_=$();k(y.beforeSlideLoad)&&y.beforeSlideLoad({index:this.index,slide:d,player:!1});var T=E.type,w=E.descPosition,B=d.querySelector(".gslide-media"),D=d.querySelector(".gslide-title"),F=d.querySelector(".gslide-desc"),R=d.querySelector(".gdesc-inner"),G=g,j="gSlideTitle_"+this.index,W="gSlideDesc_"+this.index;if(k(y.afterSlideLoad)&&(G=function(){k(g)&&g(),y.afterSlideLoad({index:a.index,slide:d,player:a.instance.getSlidePlayerInstance(a.index)})}),E.title==""&&E.description==""?R&&R.parentNode.parentNode.removeChild(R.parentNode):(D&&E.title!==""?(D.id=j,D.innerHTML=E.title):D.parentNode.removeChild(D),F&&E.description!==""?(F.id=W,_&&y.moreLength>
10?(E.smallDescription=this.slideShortDesc(E.description,y.moreLength,y.moreText),F.innerHTML=E.smallDescription,this.descriptionEvents(F,E)):F.innerHTML=E.description):F.parentNode.removeChild(F),p(B.parentNode,"desc-".concat(w)),p(R.parentNode,"description-".concat(w))),p(B,"gslide-".concat(T)),p(d,"loaded"),T!=="video"){if(T!=="external")return T==="inline"?(Di.apply(this.instance,[d,E,this.index,G]),void(E.draggable&&new Pt({dragEl:d.querySelector(".gslide-inline"),toleranceX:y.dragToleranceX,toleranceY:y.dragToleranceY,slide:d,instance:this.instance}))):void(T!=="image"?k(G)&&G():Oi(d,E,this.index,function(){var K=d.querySelector("img");E.draggable&&new Pt({dragEl:K,toleranceX:y.dragToleranceX,toleranceY:y.dragToleranceY,slide:d,instance:a.instance}),E.zoomable&&K.naturalWidth>K.offsetWidth&&(p(K,"zoomable"),new ze(K,d,function(){a.instance.resize()})),k(G)&&G()}));Ni.apply(this,[d,E,this.index,G])}else Pi.apply(this.instance,[d,E,this.index,G])}},{key:"slideShortDesc",value:function(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:50,g=arguments.length>2&&arguments[2]!==void 0&&arguments[2],y=document.createElement("div");y.innerHTML=a;var E=y.innerText,_=g;if((a=E.trim()).length<=d)return a;var T=a.substr(0,d-1);return _?(y=null,T+'... <a href="#" class="desc-more">'+g+"</a>"):T}},{key:"descriptionEvents",value:function(a,d){var g=this,y=a.querySelector(".desc-more");if(!y)return!1;f("click",{onElement:y,withCallback:function(E,_){E.preventDefault();var T=document.body,w=S(_,".gslide-desc");if(!w)return!1;w.innerHTML=d.description,p(T,"gdesc-open");var B=f("click",{onElement:[T,S(w,".gslide-description")],withCallback:function(D,F){D.target.nodeName.toLowerCase()!=="a"&&(m(T,"gdesc-open"),p(T,"gdesc-closed"),w.innerHTML=d.smallDescription,g.descriptionEvents(w,d),setTimeout(function(){m(T,"gdesc-closed")},400),B.destroy())}})}})}},{key:"create",value:function(){return M(this.instance.settings.slideHTML)}},{key:"getConfig",value:function(){H(this.element)||this.element.hasOwnProperty("draggable")||(this.element.draggable=this.instance.settings.draggable);var a=new $i(this.instance.settings.slideExtraAttributes);return this.slideConfig=a.parseConfig(this.element,this.instance.settings),this.slideConfig}}]);function Je(a){return Math.sqrt(a.x*a.x+a.y*a.y)}function Bi(a,d){var g=function(y,E){var _=Je(y)*Je(E);if(_===0)return 0;var T=function(w,B){return w.x*B.x+w.y*B.y}(y,E)/_;return T>1&&(T=1),Math.acos(T)}(a,d);return function(y,E){return y.x*E.y-E.x*y.y}(a,d)>0&&(g*=-1),180*g/Math.PI}var zi=n(function a(d){i(this,a),this.handlers=[],this.el=d},[{key:"add",value:function(a){this.handlers.push(a)}},{key:"del",value:function(a){a||(this.handlers=[]);for(var d=this.handlers.length;d>=0;d--)this.handlers[d]===a&&this.handlers.splice(d,1)}},{key:"dispatch",value:function(){for(var a=0,d=this.handlers.length;a<d;a++){var g=this.handlers[a];typeof g=="function"&&g.apply(this.el,arguments)}}}]);function ae(a,d){var g=new zi(a);return g.add(d),g}var Fi=n(function a(d,g){i(this,a),this.element=typeof d=="string"?document.querySelector(d):d,this.start=this.start.bind(this),this.move=this.move.bind(this),this.end=this.end.bind(this),this.cancel=this.cancel.bind(this),this.element.addEventListener("touchstart",this.start,!1),this.element.addEventListener("touchmove",this.move,!1),this.element.addEventListener("touchend",this.end,!1),this.element.addEventListener("touchcancel",this.cancel,!1),this.preV={x:null,y:null},this.pinchStartLen=null,this.zoom=1,this.isDoubleTap=!1;var y=function(){};this.rotate=ae(this.element,g.rotate||y),this.touchStart=ae(this.element,g.touchStart||y),this.multipointStart=ae(this.element,g.multipointStart||y),this.multipointEnd=ae(this.element,g.multipointEnd||y),this.pinch=ae(this.element,g.pinch||y),this.swipe=ae(this.element,g.swipe||y),this.tap=ae(this.element,g.tap||y),this.doubleTap=ae(this.element,g.doubleTap||y),this.longTap=ae(this.element,g.longTap||y),this.singleTap=ae(this.element,g.singleTap||y),this.pressMove=ae(this.element,g.pressMove||y),this.twoFingerPressMove=ae(this.element,g.twoFingerPressMove||y),this.touchMove=ae(this.element,g.touchMove||y),this.touchEnd=ae(this.element,g.touchEnd||y),this.touchCancel=ae(this.element,g.touchCancel||y),this.translateContainer=this.element,this._cancelAllHandler=this.cancelAll.bind(this),window.addEventListener("scroll",this._cancelAllHandler),this.delta=null,this.last=null,this.now=null,this.tapTimeout=null,this.singleTapTimeout=null,this.longTapTimeout=null,this.swipeTimeout=null,this.x1=this.x2=this.y1=this.y2=null,this.preTapPosition={x:null,y:null}}
vendor: 7,379 bytes, line 1
1,[{key:"start",value:function(a){if(a.touches)if(a.target&&a.target.nodeName&&["a","button","input"].indexOf(a.target.nodeName.toLowerCase())>=0)console.log("ignore drag for this touched element",a.target.nodeName.toLowerCase());else{this.now=Date.now(),this.x1=a.touches[0].pageX,this.y1=a.touches[0].pageY,this.delta=this.now-(this.last||this.now),this.touchStart.dispatch(a,this.element),this.preTapPosition.x!==null&&(this.isDoubleTap=this.delta>0&&this.delta<=250&&Math.abs(this.preTapPosition.x-this.x1)<30&&Math.abs(this.preTapPosition.y-this.y1)<30,this.isDoubleTap&&clearTimeout(this.singleTapTimeout)),this.preTapPosition.x=this.x1,this.preTapPosition.y=this.y1,this.last=this.now;var d=this.preV;if(a.touches.length>1){this._cancelLongTap(),this._cancelSingleTap();var g={x:a.touches[1].pageX-this.x1,y:a.touches[1].pageY-this.y1};d.x=g.x,d.y=g.y,this.pinchStartLen=Je(d),this.multipointStart.dispatch(a,this.element)}this._preventTap=!1,this.longTapTimeout=setTimeout(function(){this.longTap.dispatch(a,this.element),this._preventTap=!0}.bind(this),750)}}},{key:"move",value:function(a){if(a.touches){var d=this.preV,g=a.touches.length,y=a.touches[0].pageX,E=a.touches[0].pageY;if(this.isDoubleTap=!1,g>1){var _=a.touches[1].pageX,T=a.touches[1].pageY,w={x:a.touches[1].pageX-y,y:a.touches[1].pageY-E};d.x!==null&&(this.pinchStartLen>0&&(a.zoom=Je(w)/this.pinchStartLen,this.pinch.dispatch(a,this.element)),a.angle=Bi(w,d),this.rotate.dispatch(a,this.element)),d.x=w.x,d.y=w.y,this.x2!==null&&this.sx2!==null?(a.deltaX=(y-this.x2+_-this.sx2)/2,a.deltaY=(E-this.y2+T-this.sy2)/2):(a.deltaX=0,a.deltaY=0),this.twoFingerPressMove.dispatch(a,this.element),this.sx2=_,this.sy2=T}else{if(this.x2!==null){a.deltaX=y-this.x2,a.deltaY=E-this.y2;var B=Math.abs(this.x1-this.x2),D=Math.abs(this.y1-this.y2);(B>10||D>10)&&(this._preventTap=!0)}else a.deltaX=0,a.deltaY=0;this.pressMove.dispatch(a,this.element)}this.touchMove.dispatch(a,this.element),this._cancelLongTap(),this.x2=y,this.y2=E,g>1&&a.preventDefault()}}},{key:"end",value:function(a){if(a.changedTouches){this._cancelLongTap();var d=this;a.touches.length<2&&(this.multipointEnd.dispatch(a,this.element),this.sx2=this.sy2=null),this.x2&&Math.abs(this.x1-this.x2)>30||this.y2&&Math.abs(this.y1-this.y2)>30?(a.direction=this._swipeDirection(this.x1,this.x2,this.y1,this.y2),this.swipeTimeout=setTimeout(function(){d.swipe.dispatch(a,d.element)},0)):(this.tapTimeout=setTimeout(function(){d._preventTap||d.tap.dispatch(a,d.element),d.isDoubleTap&&(d.doubleTap.dispatch(a,d.element),d.isDoubleTap=!1)},0),d.isDoubleTap||(d.singleTapTimeout=setTimeout(function(){d.singleTap.dispatch(a,d.element)},250))),this.touchEnd.dispatch(a,this.element),this.preV.x=0,this.preV.y=0,this.zoom=1,this.pinchStartLen=null,this.x1=this.x2=this.y1=this.y2=null}}},{key:"cancelAll",value:function(){this._preventTap=!0,clearTimeout(this.singleTapTimeout),clearTimeout(this.tapTimeout),clearTimeout(this.longTapTimeout),clearTimeout(this.swipeTimeout)}},{key:"cancel",value:function(a){this.cancelAll(),this.touchCancel.dispatch(a,this.element)}},{key:"_cancelLongTap",value:function(){clearTimeout(this.longTapTimeout)}},{key:"_cancelSingleTap",value:function(){clearTimeout(this.singleTapTimeout)}},{key:"_swipeDirection",value:function(a,d,g,y){return Math.abs(a-d)>=Math.abs(g-y)?a-d>0?"Left":"Right":g-y>0?"Up":"Down"}},{key:"on",value:function(a,d){this[a]&&this[a].add(d)}},{key:"off",value:function(a,d){this[a]&&this[a].del(d)}},{key:"destroy",value:function(){return this.singleTapTimeout&&clearTimeout(this.singleTapTimeout),this.tapTimeout&&clearTimeout(this.tapTimeout),this.longTapTimeout&&clearTimeout(this.longTapTimeout),this.swipeTimeout&&clearTimeout(this.swipeTimeout),this.element.removeEventListener("touchstart",this.start),this.element.removeEventListener("touchmove",this.move),this.element.removeEventListener("touchend",this.end),this.element.removeEventListener("touchcancel",this.cancel),this.rotate.del(),this.touchStart.del(),this.multipointStart.del(),this.multipointEnd.del(),this.pinch.del(),this.swipe.del(),this.tap.del(),this.doubleTap.del(),this.longTap.del(),this.singleTap.del(),this.pressMove.del(),this.twoFingerPressMove.del(),this.touchMove.del(),this.touchEnd.del(),this.touchCancel.del(),this.preV=this.pinchStartLen=this.zoom=this.isDoubleTap=this.delta=this.last=this.now=this.tapTimeout=this.singleTapTimeout=this.longTapTimeout=this.swipeTimeout=this.x1=this.x2=this.y1=this.y2=this.preTapPosition=this.rotate=this.touchStart=this.multipointStart=this.multipointEnd=this.pinch=this.swipe=this.tap=this.doubleTap=this.longTap=this.singleTap=this.pressMove=this.touchMove=this.touchEnd=this.touchCancel=this.twoFingerPressMove=null,window.removeEventListener("scroll",this._cancelAllHandler),null}}]);function dt(a){var d=function(){var T,w=document.createElement("fakeelement"),B={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(T in B)if(w.style[T]!==void 0)return B[T]}(),g=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,y=v(a,"gslide-media")?a:a.querySelector(".gslide-media"),E=S(y,".ginner-container"),_=a.querySelector(".gslide-description");g>769&&(y=E),p(y,"greset"),C(y,"translate3d(0, 0, 0)"),f(d,{onElement:y,once:!0,withCallback:function(T,w){m(y,"greset")}}),y.style.opacity="",_&&(_.style.opacity="")}function Hi(a){if(a.events.hasOwnProperty("touch"))return!1;var d,g,y,E=L(),_=E.width,T=E.height,w=!1,B=null,D=null,F=null,R=!1,G=1,j=1,W=!1,K=!1,pe=null,ue=null,Se=null,ne=null,Ce=0,xe=0,je=!1,Fe=!1,ge={},ve={},zt=0,Ft=0,Vi=document.getElementById("glightbox-slider"),Qe=document.querySelector(".goverlay"),Gi=new Fi(Vi,{touchStart:function(Y){if(w=!0,(v(Y.targetTouches[0].target,"ginner-container")||S(Y.targetTouches[0].target,".gslide-desc")||Y.targetTouches[0].target.nodeName.toLowerCase()=="a")&&(w=!1),S(Y.targetTouches[0].target,".gslide-inline")&&!v(Y.targetTouches[0].target.parentNode,"gslide-inline")&&(w=!1),w){if(ve=Y.targetTouches[0],ge.pageX=Y.targetTouches[0].pageX,ge.pageY=Y.targetTouches[0].pageY,zt=Y.targetTouches[0].clientX,Ft=Y.targetTouches[0].clientY,B=a.activeSlide,D=B.querySelector(".gslide-media"),y=B.querySelector(".gslide-inline"),F=null,v(D,"gslide-image")&&(F=D.querySelector("img")),(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)>769&&(D=B.querySelector(".ginner-container")),m(Qe,"greset"),Y.pageX>20&&Y.pageX<window.innerWidth-20)return;Y.preventDefault()}},touchMove:function(Y){if(w&&(ve=Y.targetTouches[0],!W&&!K)){if(y&&y.offsetHeight>T){var oe=ge.pageX-ve.pageX;if(Math.abs(oe)<=13)return!1}R=!0;var Le,et=Y.targetTouches[0].clientX,ji=Y.targetTouches[0].clientY,Wi=zt-et,Yi=Ft-ji;if(Math.abs(Wi)>Math.abs(Yi)?(je=!1,Fe=!0):(Fe=!1,je=!0),d=ve.pageX-ge.pageX,Ce=100*d/_,g=ve.pageY-ge.pageY,xe=100*g/T,je&&F&&(Le=1-Math.abs(g)/T,Qe.style.opacity=Le,a.settings.touchFollowAxis&&(Ce=0)),Fe&&(Le=1-Math.abs(d)/_,D.style.opacity=Le,a.settings.touchFollowAxis&&(xe=0)),!F)return C(D,"translate3d(".concat(Ce,"%, 0, 0)"));C(D,"translate3d(".concat(Ce,"%, ").concat(xe,"%, 0)"))}},touchEnd:function(){if(w){if(R=!1,K||W)return Se=pe,void(ne=ue);var Y=Math.abs(parseInt(xe)),oe=Math.abs(parseInt(Ce));if(!(Y>29&&F))return Y<29&&oe<25?(p(Qe,"greset"),Qe.style.opacity=1,dt(D)):void 0;
1a.close()}},multipointEnd:function(){setTimeout(function(){W=!1},50)},multipointStart:function(){W=!0,G=j||1},pinch:function(Y){if(!F||R)return!1;W=!0,F.scaleX=F.scaleY=G*Y.zoom;var oe=G*Y.zoom;if(K=!0,oe<=1)return K=!1,oe=1,ne=null,Se=null,pe=null,ue=null,void F.setAttribute("style","");oe>4.5&&(oe=4.5),F.style.transform="scale3d(".concat(oe,", ").concat(oe,", 1)"),j=oe},pressMove:function(Y){if(K&&!W){var oe=ve.pageX-ge.pageX,Le=ve.pageY-ge.pageY;Se&&(oe+=Se),ne&&(Le+=ne),pe=oe,ue=Le;var et="translate3d(".concat(oe,"px, ").concat(Le,"px, 0)");j&&(et+=" scale3d(".concat(j,", ").concat(j,", 1)")),C(F,et)}},swipe:function(Y){if(!K)if(W)W=!1;else{if(Y.direction=="Left"){if(a.index==a.elements.length-1)return dt(D);a.nextSlide()}if(Y.direction=="Right"){if(a.index==0)return dt(D);a.prevSlide()}}}});a.events.touch=Gi}var Nt=$(),$t=$()!==null||document.createTouch!==void 0||"ontouchstart"in window||"onmsgesturechange"in window||navigator.msMaxTouchPoints,Bt=document.getElementsByTagName("html")[0],Ri={selector:".glightbox",elements:null,skin:"clean",theme:"clean",closeButton:!0,startAt:null,autoplayVideos:!0,autofocusVideos:!0,descPosition:"bottom",width:"900px",height:"506px",videosWidth:"960px",beforeSlideChange:null,afterSlideChange:null,beforeSlideLoad:null,afterSlideLoad:null,slideInserted:null,slideRemoved:null,slideExtraAttributes:null,onOpen:null,onClose:null,loop:!1,zoomable:!0,draggable:!0,dragAutoSnap:!1,dragToleranceX:40,dragToleranceY:65,preload:!0,oneSlidePerOpen:!1,touchNavigation:!0,touchFollowAxis:!0,keyboardNavigation:!0,closeOnOutsideClick:!0,plugins:!1,plyr:{css:"https://cdn.plyr.io/3.6.12/plyr.css",js:"https://cdn.plyr.io/3.6.12/plyr.js",config:{ratio:"16:9",fullscreen:{enabled:!0,iosNative:!0},youtube:{noCookie:!0,rel:0,showinfo:0,iv_load_policy:3},vimeo:{byline:!1,portrait:!1,title:!1,transparent:!1}}},openEffect:"zoom",closeEffect:"zoom",slideEffect:"slide",moreText:"See more",moreLength:60,cssEfects:{fade:{in:"fadeIn",out:"fadeOut"},zoom:{in:"zoomIn",out:"zoomOut"},slide:{in:"slideInRight",out:"slideOutLeft"},slideBack:{in:"slideInLeft",out:"slideOutRight"},none:{in:"none",out:"none"}},svg:{close:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" xml:space="preserve"><g><g><path d="M505.943,6.058c-8.077-8.077-21.172-8.077-29.249,0L6.058,476.693c-8.077,8.077-8.077,21.172,0,29.249C10.096,509.982,15.39,512,20.683,512c5.293,0,10.586-2.019,14.625-6.059L505.943,35.306C514.019,27.23,514.019,14.135,505.943,6.058z"/></g></g><g><g><path d="M505.942,476.694L35.306,6.059c-8.076-8.077-21.172-8.077-29.248,0c-8.077,8.076-8.077,21.171,0,29.248l470.636,470.636c4.038,4.039,9.332,6.058,14.625,6.058c5.293,0,10.587-2.019,14.624-6.057C514.018,497.866,514.018,484.771,505.942,476.694z"/></g></g></svg>',next:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 477.175 477.175" xml:space="preserve"> <g><path d="M360.731,229.075l-225.1-225.1c-5.3-5.3-13.8-5.3-19.1,0s-5.3,13.8,0,19.1l215.5,215.5l-215.5,215.5c-5.3,5.3-5.3,13.8,0,19.1c2.6,2.6,6.1,4,9.5,4c3.4,0,6.9-1.3,9.5-4l225.1-225.1C365.931,242.875,365.931,234.275,360.731,229.075z"/></g></svg>',prev:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 477.175 477.175" xml:space="preserve"><g><path d="M145.188,238.575l215.5-215.5c5.3-5.3,5.3-13.8,0-19.1s-13.8-5.3-19.1,0l-225.1,225.1c-5.3,5.3-5.3,13.8,0,19.1l225.1,225c2.6,2.6,6.1,4,9.5,4s6.9-1.3,9.5-4c5.3-5.3,5.3-13.8,0-19.1L145.188,238.575z"/></g></svg>'},slideHTML:`<div class="gslide">
2    <div class="gslide-inner-content">
3        <div class="ginner-container">
4            <div class="gslide-media">
5            </div>
6            <div class="gslide-description">
7                <div class="gdesc-inner">
8                    <h4 class="gslide-title"></h4>
9                    <div class="gslide-desc"></div>
10                </div>
11            </div>
12        </div>
13    </div>
14</div>`,lightboxHTML:`<div id="glightbox-body" class="glightbox-container" tabindex="-1" role="dialog" aria-hidden="false">
15    <div class="gloader visible"></div>
16    <div class="goverlay"></div>
17    <div class="gcontainer">
18    <div id="glightbox-slider" class="gslider"></div>
19    <button class="gclose gbtn" aria-label="Close" data-taborder="3">{closeSVG}</button>
20    <button class="gprev gbtn" aria-label="Previous" data-taborder="2">{prevSVG}</button>
21    <button class="gnext gbtn" aria-label="Next" data-taborder="1">{nextSVG}</button>
22</div>
23</div>`},qi=n(function a(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i(this,a),this.customOptions=d,this.settings=l(Ri,d),this.effectsClasses=this.getAnimationClasses(),this.videoPlayers={},this.apiEvents=[],this.fullElementsList=!1},[{key:"init",value:function(){var a=this,d=this.getSelector();d&&(this.baseEvents=f("click",{onElement:d,withCallback:function(g,y){g.preventDefault(),a.open(y)}})),this.elements=this.getElements()}},{key:"open",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.elements.length===0)return!1;this.activeSlide=null,this.prevActiveSlideIndex=null,this.prevActiveSlide=null;var g=me(d)?d:this.settings.startAt;if(H(a)){var y=a.getAttribute("data-gallery");y&&(this.fullElementsList=this.elements,this.elements=this.getGalleryElements(this.elements,y)),Z(g)&&(g=this.getElementIndex(a))<0&&(g=0)}me(g)||(g=0),this.build(),b(this.overlay,this.settings.openEffect==="none"?"none":this.settings.cssEfects.fade.in);var E=document.body,_=window.innerWidth-document.documentElement.clientWidth;if(_>0){var T=document.createElement("style");T.type="text/css",T.className="gcss-styles",T.innerText=".gscrollbar-fixer {margin-right: ".concat(_,"px}"),document.head.appendChild(T),p(E,"gscrollbar-fixer")}p(E,"glightbox-open"),p(Bt,"glightbox-open"),Nt&&(p(document.body,"glightbox-mobile"),this.settings.slideEffect="slide"),this.showSlide(g,!0),this.elements.length===1?(p(this.prevButton,"glightbox-button-hidden"),p(this.nextButton,"glightbox-button-hidden")):(m(this.prevButton,"glightbox-button-hidden"),m(this.nextButton,"glightbox-button-hidden")),this.lightboxOpen=!0,this.trigger("open"),k(this.settings.onOpen)&&this.settings.onOpen(),$t&&this.settings.touchNavigation&&Hi(this),this.settings.keyboardNavigation&&Be(this)}},{key:"openAt",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.open(null,a)}},{key:"showSlide",value:function(){var a=this,d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,g=arguments.length>1&&arguments[1]!==void 0&&arguments[1];A(this.loader),this.index=parseInt(d);var y=this.slidesContainer.querySelector(".current");y&&m(y,"current"),this.slideAnimateOut();var E=this.slidesContainer.querySelectorAll(".gslide")[d];if(v(E,"loaded"))this.slideAnimateIn(E,g),I(this.loader);else{A(this.loader);
23var _=this.elements[d],T={index:this.index,slide:E,slideNode:E,slideConfig:_.slideConfig,slideIndex:this.index,trigger:_.node,player:null};this.trigger("slide_before_load",T),_.instance.setContent(E,function(){I(a.loader),a.resize(),a.slideAnimateIn(E,g),a.trigger("slide_after_load",T)})}this.slideDescription=E.querySelector(".gslide-description"),this.slideDescriptionContained=this.slideDescription&&v(this.slideDescription.parentNode,"gslide-media"),this.settings.preload&&(this.preloadSlide(d+1),this.preloadSlide(d-1)),this.updateNavigationClasses(),this.activeSlide=E}},{key:"preloadSlide",value:function(a){var d=this;if(a<0||a>this.elements.length-1||Z(this.elements[a]))return!1;var g=this.slidesContainer.querySelectorAll(".gslide")[a];if(v(g,"loaded"))return!1;var y=this.elements[a],E=y.type,_={index:a,slide:g,slideNode:g,slideConfig:y.slideConfig,slideIndex:a,trigger:y.node,player:null};this.trigger("slide_before_load",_),E==="video"||E==="external"?setTimeout(function(){y.instance.setContent(g,function(){d.trigger("slide_after_load",_)})},200):y.instance.setContent(g,function(){d.trigger("slide_after_load",_)})}},{key:"prevSlide",value:function(){this.goToSlide(this.index-1)}},{key:"nextSlide",value:function(){this.goToSlide(this.index+1)}},{key:"goToSlide",value:function(){var a=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(this.prevActiveSlide=this.activeSlide,this.prevActiveSlideIndex=this.index,!this.loop()&&(a<0||a>this.elements.length-1))return!1;a<0?a=this.elements.length-1:a>=this.elements.length&&(a=0),this.showSlide(a)}},{key:"insertSlide",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;d<0&&(d=this.elements.length);var g=new Ze(a,this,d),y=g.getConfig(),E=l({},y),_=g.create(),T=this.elements.length-1;E.index=d,E.node=!1,E.instance=g,E.slideConfig=y,this.elements.splice(d,0,E);var w=null,B=null;if(this.slidesContainer){if(d>T)this.slidesContainer.appendChild(_);else{var D=this.slidesContainer.querySelectorAll(".gslide")[d];this.slidesContainer.insertBefore(_,D)}(this.settings.preload&&this.index==0&&d==0||this.index-1==d||this.index+1==d)&&this.preloadSlide(d),this.index===0&&d===0&&(this.index=1),this.updateNavigationClasses(),w=this.slidesContainer.querySelectorAll(".gslide")[d],B=this.getSlidePlayerInstance(d),E.slideNo
23de=w}this.trigger("slide_inserted",{index:d,slide:w,slideNode:w,slideConfig:y,slideIndex:d,trigger:null,player:B}),k(this.settings.slideInserted)&&this.settings.slideInserted({index:d,slide:w,player:B})}},{key:"removeSlide",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;if(a<0||a>this.elements.length-1)return!1;var d=this.slidesContainer&&this.slidesContainer.querySelectorAll(".gslide")[a];d&&(this.getActiveSlideIndex()==a&&(a==this.elements.length-1?this.prevSlide():this.nextSlide()),d.parentNode.removeChild(d)),this.elements.splice(a,1),this.trigger("slide_removed",a),k(this.settings.slideRemoved)&&this.settings.slideRemoved(a)}},{key:"slideAnimateIn",value:function(a,d){var g=this,y=a.querySelector(".gslide-media"),E=a.querySelector(".gslide-description"),_={index:this.prevActiveSlideIndex,slide:this.prevActiveSlide,slideNode:this.prevActiveSlide,slideIndex:this.prevActiveSlide,slideConfig:Z(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].slideConfig,trigger:Z(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].node,player:this.getSlidePlayerInstance(this.prevActiveSlideIndex)},T={index:this.index,slide:this.activeSlide,slideNode:this.activeSlide,slideConfig:this.elements[this.index].slideConfig,slideIndex:this.index,trigger:this.elements[this.index].node,player:this.getSlidePlayerInstance(this.index)};if(y.offsetWidth>0&&E&&(I(E),E.style.display=""),m(a,this.effectsClasses),d)b(a,this.settings.cssEfects[this.settings.openEffect].in,function(){g.settings.autoplayVideos&&g.slidePlayerPlay(a),g.trigger("slide_changed",{prev:_,current:T}),k(g.settings.afterSlideChange)&&g.settings.afterSlideChange.apply(g,[_,T])});else{var w=this.settings.slideEffect,B=w!=="none"?this.settings.cssEfects[w].in:w;this.prevActiveSlideIndex>this.index&&this.settings.slideEffect=="slide"&&(B=this.settings.cssEfects.slideBack.in),b(a,B,function(){g.settings.autoplayVideos&&g.slidePlayerPlay(a),g.trigger("slide_changed",{prev:_,current:T}),k(g.settings.afterSlideChange)&&g.settings.afterSlideChange.apply(g,[_,T])})}setTimeout(function(){g.resize(a)},100),p(a,"current")}},{key:"slideAnimateOut",value:function(){if(!this.prevActiveSlide)return!1;var a=this.prevActiveSlide;m(a,this.effectsClasses),p(a,"prev");var d=this.settings.slideEffect,g=d!=="none"?this.settings.cssEfects[d].out:d;this.slidePlayerPause(a),this.trigger("slide_before_change",{prev:{index:this.prevActiveSlideIndex,slide:this.prevActiveSlide,slideNode:this.prevActiveSlide,slideIndex:this.prevActiveSlideIndex,slideConfig:Z(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].slideConfig,trigger:Z(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].node,player:this.getSlidePlayerInstance(this.prevActiveSlideIndex)},current:{index:this.index,slide:this.activeSlide,slideNode:this.activeSlide,slideIndex:this.index,slideConfig:this.elements[this.index].slideConfig,trigger:this.elements[this.index].node,player:this.getSlidePlayerInstance(this.index)}}),k(this.settings.beforeSlideChange)&&this.settings.beforeSlideChange.apply(this,[{index:this.prevActiveSlideIndex,slide:this.prevActiveSlide,player:this.getSlidePlayerInstance(this.prevActiveSlideIndex)},{index:this.index,slide:this.activeSlide,player:this.getSlidePlayerInstance(this.index)}]),this.prevActiveSlideIndex>this.index&&this.settings.slideEffect=="slide"&&(g=this.settings.cssEfects.slideBack.out),b(a,g,function(){var y=a.querySelector(".ginner-container"),E=a.querySelector(".gslide-media"),_=a.querySelector(".gslide-description");y.style.transform="",E.style.transform="",m(E,"greset"),E.style.opacity="",_&&(_.style.opacity=""),m(a,"prev")})}},{key:"getAllPlayers",value:function(){return this.videoPlayers}},{key:"getSlidePlayerInstance",value:function(a){var d="gvideo"+a,g=this.getAllPlayers();return!(!X(g,d)||!g[d])&&g[d]}},{key:"stopSlideVideo",value:function(a){if(H(a)){var d=a.querySelector(".gvideo-wrapper");d&&(a=d.getAttribute("data-index"))}console.log("stopSlideVideo is deprecated, use slidePlayerPause");var g=this.getSlidePlayerInstance(a);g&&g.playing&&g.pause()}}
23,{key:"slidePlayerPause",value:function(a){if(H(a)){var d=a.querySelector(".gvideo-wrapper");d&&(a=d.getAttribute("data-index"))}var g=this.getSlidePlayerInstance(a);g&&g.playing&&g.pause()}},{key:"playSlideVideo",value:function(a){if(H(a)){var d=a.querySelector(".gvideo-wrapper");d&&(a=d.getAttribute("data-index"))}console.log("playSlideVideo is deprecated, use slidePlayerPlay");var g=this.getSlidePlayerInstance(a);g&&!g.playing&&g.play()}},{key:"slidePlayerPlay",value:function(a){var d;if(!Nt||(d=this.settings.plyr.config)!==null&&d!==void 0&&d.muted){if(H(a)){var g=a.querySelector(".gvideo-wrapper");g&&(a=g.getAttribute("data-index"))}var y=this.getSlidePlayerInstance(a);y&&!y.playing&&(y.play(),this.settings.autofocusVideos&&y.elements.container.focus())}}},{key:"setElements",value:function(a){var d=this;this.settings.elements=!1;var g=[];a&&a.length&&u(a,function(y,E){var _=new Ze(y,d,E),T=_.getConfig(),w=l({},T);w.slideConfig=T,w.instance=_,w.index=E,g.push(w)}),this.elements=g,this.lightboxOpen&&(this.slidesContainer.innerHTML="",this.elements.length&&(u(this.elements,function(){var y=M(d.settings.slideHTML);d.slidesContainer.appendChild(y)}),this.showSlide(0,!0)))}},{key:"getElementIndex",value:function(a){var d=!1;return u(this.elements,function(g,y){if(X(g,"node")&&g.node==a)return d=y,!0}),d}},{key:"getElements",value:function(){var a=this,d=[];this.elements=this.elements?this.elements:[],!Z(this.settings.elements)&&de(this.settings.elements)&&this.settings.elements.length&&u(this.settings.elements,function(y,E){var _=new Ze(y,a,E),T=_.getConfig(),w=l({},T);w.node=!1,w.index=E,w.instance=_,w.slideConfig=T,d.push(w)});var g=!1;return this.getSelector()&&(g=document.querySelectorAll(this.getSelector())),g&&u(g,function(y,E){var _=new Ze(y,a,E),T=_.getConfig(),w=l({},T);w.node=y,w.index=E,w.instance=_,w.slideConfig=T,w.gallery=y.getAttribute("data-gallery"),d.push(w)}),d}},{key:"getGalleryElements",value:function(a,d){return a.filter(function(g){return g.gallery==d})}},{key:"getSelector",value:function(){return!this.settings.elements&&(this.settings.selector&&this.settings.selector.substring(0,5)=="data-"?"*[".concat(this.settings.selector,"]"):this.settings.selector)}},{key:"getActiveSlide",value:function(){return this.slidesContainer.querySelectorAll(".gslide")[this.index]}},{key:"getActiveSlideIndex",value:function(){return this.index}},{key:"getAnimationClasses",value:function(){var a=[];for(var d in this.settings.cssEfects)if(this.settings.cssEfects.hasOwnProperty(d)){var g=this.settings.cssEfects[d];a.push("g".concat(g.in)),a.push("g".concat(g.out))}return a.join(" ")}},{key:"build",value:function(){var a=this;if(this.built)return!1;var d=document.body.childNodes,g=[];u(d,function(D){D.parentNode==document.body&&D.nodeName.charAt(0)!=="#"&&D.hasAttribute&&!D.hasAttribute("aria-hidden")&&(g.push(D),D.setAttribute("aria-hidden","true"))});var y=X(this.settings.svg,"next")?this.settings.svg.next:"",E=X(this.settings.svg,"prev")?this.settings.svg.prev:"",_=X(this.settings.svg,"close")?this.settings.svg.close:"",T=this.settings.lightboxHTML;T=M(T=(T=(T=T.replace(/{nextSVG}/g,y)).replace(/{prevSVG}/g,E)).replace(/{closeSVG}/g,_)),document.body.appendChild(T);var w=document.getElementById("glightbox-body");this.modal=w;var B=w.querySelector(".gclose");this.prevButton=w.querySelector(".gprev"),this.nextButton=w.querySelector(".gnext"),this.overlay=w.querySelector(".goverlay"),this.loader=w.querySelector(".gloader"),this.slidesContainer=document.getElementById("glightbox-slider"),this.bodyHiddenChildElms=g,this.events={},p(this.modal,"glightbox-"+this.settings.skin),this.settings.closeButton&&B&&(this.events.close=f("click",{onElement:B,withCallback:function(D,F){D.preventDefault(),a.close()}})),B&&!this.settings.closeButton&&B.parentNode.removeChild(B),this.nextButton&&(this.events.next=f("click",{onElement:this.nextButton,withCallback:function(D,F){D.preventDefault(),a.nextSlide()}})),this.prevButton&&(this.events.prev=f("click",{onElement:this.prevButton,withCallback:function(D,F){D.preventDefault(),a.prevSlide()}})),this.settings.closeOnOutsideClick&&(this.events.outClose=f("click",{onElement:w,withCallback:function(D,F){a.preventOutsideClick||v(document.body,"glightbox-mobile")||S(D.target,".ginner-container")||S(D.target,".gbtn")||v(D.target,"gnext")||v(D.target,"gprev")||a.close()}})),u(this.elements,function(D,F){a.slidesContainer.appendChild(D.instance.create()),D.slideNo
23de=a.slidesContainer.querySelectorAll(".gslide")[F]}),$t&&p(document.body,"glightbox-touch"),this.events.resize=f("resize",{onElement:window,withCallback:function(){a.resize()}}),this.built=!0}},{key:"resize",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if((a=a||this.activeSlide)&&!v(a,"zoomed")){var d=L(),g=a.querySelector(".gvideo-wrapper"),y=a.querySelector(".gslide-image"),E=this.slideDescription,_=d.width,T=d.height;if(_<=768?p(document.body,"glightbox-mobile"):m(document.body,"glightbox-mobile"),g||y){var w=!1;if(E&&(v(E,"description-bottom")||v(E,"description-top"))&&!v(E,"gabsolute")&&(w=!0),y){if(_<=768)y.querySelector("img");else if(w){var B,D,F=E.offsetHeight,R=y.querySelector("img"),G=(B=this.elements[this.index])===null||B===void 0?void 0:B.node,j="100vh";G&&(j=(D=G.getAttribute("data-height"))!==null&&D!==void 0?D:j),R.setAttribute("style","max-height: calc(".concat(j," - ").concat(F,"px)")),E.setAttribute("style","max-width: ".concat(R.offsetWidth,"px;"))}}if(g){var W=X(this.settings.plyr.config,"ratio")?this.settings.plyr.config.ratio:"";if(!W){var K=g.clientWidth,pe=g.clientHeight,ue=K/pe;W="".concat(K/ue,":").concat(pe/ue)}var Se=W.split(":"),ne=this.settings.videosWidth,Ce=this.settings.videosWidth,xe=(Ce=me(ne)||ne.indexOf("px")!==-1?parseInt(ne):ne.indexOf("vw")!==-1?_*parseInt(ne)/100:ne.indexOf("vh")!==-1?T*parseInt(ne)/100:ne.indexOf("%")!==-1?_*parseInt(ne)/100:parseInt(g.clientWidth))/(parseInt(Se[0])/parseInt(Se[1]));if(xe=Math.floor(xe),w&&(T-=E.offsetHeight),Ce>_||xe>T||T<xe&&_>Ce){var je=g.offsetWidth,Fe=g.offsetHeight,ge=T/Fe,ve={width:je*ge,height:Fe*ge};g.parentNode.setAttribute("style","max-width: ".concat(ve.width,"px")),w&&E.setAttribute("style","max-width: ".concat(ve.width,"px;"))}else g.parentNode.style.maxWidth="".concat(ne),w&&E.setAttribute("style","max-width: ".concat(ne,";"))}}}}},{key:"reload",value:function(){this.init()}},{key:"updateNavigationClasses",value:function(){var a=this.loop();m(this.nextButton,"disabled"),m(this.prevButton,"disabled"),this.index==0&&this.elements.length-1==0?(p(this.prevButton,"disabled"),p(this.nextButton,"disabled")):this.index!==0||a?this.index!==this.elements.length-1||a||p(this.nextButton,"disabled"):p(this.prevButton,"disabled")}},{key:"loop",value:function(){var a=X(this.settings,"loopAtEnd")?this.settings.loopAtEnd:null;return a=X(this.settings,"loop")?this.settings.loop:a,a}},{key:"close",value:function(){var a=this;if(!this.lightboxOpen){if(this.events){for(var d in this.events)this.events.hasOwnProperty(d)&&this.events[d].destroy();this.events=null}return!1}if(this.closing)return!1;this.closing=!0,this.slidePlayerPause(this.activeSlide),this.fullElementsList&&(this.elements=this.fullElementsList),this.bodyHiddenChildElms.length&&u(this.bodyHiddenChildElms,function(g){g.removeAttribute("aria-hidden")}),p(this.modal,"glightbox-closing"),b(this.overlay,this.settings.openEffect=="none"?"none":this.settings.cssEfects.fade.out),b(this.activeSlide,this.settings.cssEfects[this.settings.closeEffect].out,function(){if(a.activeSlide=null,a.prevActiveSlideIndex=null,a.prevActiveSlide=null,a.built=!1,a.events){for(var g in a.events)a.events.hasOwnProperty(g)&&a.events[g].destroy();a.events=null}var y=document.body;m(Bt,"glightbox-open"),m(y,"glightbox-open touching gdesc-open glightbox-touch glightbox-mobile gscrollbar-fixer"),a.modal.parentNode.removeChild(a.modal),a.trigger("close"),k(a.settings.onClose)&&a.settings.onClose();var E=document.querySelector(".gcss-styles");E&&E.parentNode.removeChild(E),a.lightboxOpen=!1,a.closing=null})}},{key:"destroy",value:function(){this.close(),this.clearAllEvents(),this.baseEvents&&this.baseEvents.destroy()}},{key:"on",value:function(a,d){var g=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(!a||!k(d))throw new TypeError("Event name and callback must be defined");this.apiEvents.push({evt:a,once:g,callback:d})}},{key:"once",value:function(a,d){this.on(a,d,!0)}},{key:"trigger",value:function(a){var d=this,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,y=[];u(this.apiEvents,function(E,_){var T=E.evt,w=E.once,B=E.callback;T==a&&(B(g),w&&y.push(_))}),y.length&&u(y,function(E){return d.apiEvents.splice(E,1)})}},{key:"clearAllEvents",value:function(){this.apiEvents.splice(0,this.apiEvents.length)}},{key:"version",value:function(){return"3.3.1"}}]);return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=new qi(a);return d.init(),d}})})(di);var as=di.exports;const At=rs(as),os={name:"gallery",when:()=>!0,init:({window:e,document:t})=>(At({touchNavigation:!0,loop:!0,autoplayVideos:!0}),()=>{})};function Ht(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Lt(e={},t={}){Object.keys(t).forEach(i=>
23{typeof e[i]=="undefined"?e[i]=t[i]:Ht(t[i])&&Ht(e[i])&&Object.keys(t[i]).length>0&&Lt(e[i],t[i])})}const ui={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function se(){const e=typeof document!="undefined"?document:{};return Lt(e,ui),e}const ls={document:ui,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout=="undefined"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout!="undefined"&&clearTimeout(e)}};function ee(){const e=typeof window!="undefined"?window:{};return Lt(e,ls),e}function cs(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get(){return t},set(i){t.__proto__=i}})}class Me extends Array{constructor(t){typeof t=="number"?super(t):(super(...t||[]),cs(this))}}function Ue(e=[]){const t=[];return e.forEach(i=>{Array.isArray(i)?t.push(...Ue(i)):t.push(i)}),t}function hi(e,t){return Array.prototype.filter.call(e,t)}function ds(e){const t=[];for(let i=0;i<e.length;i+=1)t.indexOf(e[i])===-1&&t.push(e[i]);return t}function us(e,t){if(typeof e!="string")return[e];const i=[],s=t.querySelectorAll(e);for(let n=0;n<s.length;n+=1)i.push(s[n]);return i}function P(e,t){const i=ee(),s=se();let n=[];if(!t&&e instanceof Me)return e;if(!e)return new Me(n);if(typeof e=="string"){const r=e.trim();if(r.indexOf("<")>=0&&r.indexOf(">")>=0){let o="div";r.indexOf("<li")===0&&(o="ul"),r.indexOf("<tr")===0&&(o="tbody"),(r.indexOf("<td")===0||r.indexOf("<th")===0)&&(o="tr"),r.indexOf("<tbody")===0&&(o="table"),r.indexOf("<option")===0&&(o="select");const c=s.createElement(o);c.innerHTML=r;for(let l=0;l<c.childNodes.length;l+=1)n.push(c.childNodes[l])}else n=us(e.trim(),t||s)}else if(e.nodeType||e===i||e===s)n.push(e);else if(Array.isArray(e)){if(e instanceof Me)return e;n=e}return new Me(ds(n))}P.fn=Me.prototype;function hs(...e){const t=Ue(e.map(i=>i.split(" ")));return this.forEach(i=>{i.classList.add(...t)}),this}function fs(...e){const t=Ue(e.map(i=>i.split(" ")));return this.forEach(i=>{i.classList.remove(...t)}),this}function ps(...e){const t=Ue(e.map(i=>i.split(" ")));this.forEach(i=>{t.forEach(s=>{i.classList.toggle(s)})})}function ms(...e){const t=Ue(e.map(i=>i.split(" ")));return hi(this,i=>t.filter(s=>i.classList.contains(s)).length>0).length>0}function gs(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getAttribute(e):void 0;for(let i=0;i<this.length;i+=1)if(arguments.length===2)this[i].setAttribute(e,t);else for(const s in e)this[i][s]=e[s],this[i].setAttribute(s,e[s]);return this}function vs(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function ys(e){for(let t=0;t<this.length;t+=1)this[t].style.transform=e;return this}function bs(e){for(let t=0;t<this.length;t+=1)this[t].style.transitionDuration=typeof e!="string"?`${e}ms`:e;return this}function Es(...e){let[t,i,s,n]=e;typeof e[1]=="function"&&([t,s,n]=e,i=void 0),n||(n=!1);function r(u){const h=u.target;if(!h)return;const f=u.target.dom7EventData||[];if(f.indexOf(u)<0&&f.unshift(u),P(h).is(i))s.apply(h,f);else{const p=P(h).parents();for(let m=0;m<p.length;m+=1)P(p[m]).is(i)&&s.apply(p[m],f)}}function o(u){const h=u&&u.target?u.target.dom7EventData||[]:[];h.indexOf(u)<0&&h.unshift(u),s.apply(this,h)}const c=t.split(" ");let l;for(let u=0;u<this.length;u+=1){const h=this[u];if(i)for(l=0;l<c.length;l+=1){const f=c[l];h.dom7LiveListeners||(h.dom7LiveListeners={}),h.dom7LiveListeners[f]||(h.dom7LiveListeners[f]=[]),h.dom7LiveListeners[f].push({listener:s,proxyListener:r}),h.addEventListener(f,r,n)}else for(l=0;l<c.length;l+=1){const f=c[l];h.dom7Listeners||(h.dom7Listeners={}),h.dom7Listeners[f]||(h.dom7Listeners[f]=[]),h.dom7Listeners[f].push({listener:s,proxyListener:o}),h.addEventListener(f,o,n)}}return this}function Ss(...e){let[t,i,s,n]=e;typeof e[1]=="function"&&([t,s,n]=e,i=void 0),n||(n=!1);const r=t.split(" ");for(let o=0;o<r.length;o+=1){const c=r[o];for(let l=0;l<this.length;l+=1){const u=this[l];let h;if(!i&&u.dom7Listeners?h=u.dom7Listeners[c]:i&&u.dom7LiveListeners&&(h=u.dom7LiveListeners[c]),h&&h.length)for(let f=h.length-1;f>=0;f-=1){const p=h[f];s&&p.listener===s||s&&p.listener&&p.listener.dom7proxy&&p.listener.dom7proxy===s?(u.removeEventListener(c,p.proxyListener,n),h.splice(f,1)):s||(u.removeEventListener(c,p.proxyListener,n),h.splice(f,1))}}}return this}function Cs(...e){const t=ee(),i=e[0].split(" "),s=e[1];for(let n=0;n<i.length;n+=1){const r=i[n];for(let o=0;o<this.length;o+=1){const c=this[o];if(t.CustomEvent){const l=new t.CustomEvent(r,{detail:s,bubbles:!0,cancelable:!0});c.dom7EventData=e.filter((u,h)=>h>0),c.dispatchEvent(l),c.dom7EventData=[],delete c.dom7EventData}}}return this}function xs(e){const t=this;function i(s){s.target===this&&(e.call(this,s),t.off("transitionend",i))}return e&&t.on("transitionend",i),this}function Ts(e){if(this.length>0){if(e){const t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+
23parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function _s(e){if(this.length>0){if(e){const t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function ws(){if(this.length>0){const e=ee(),t=se(),i=this[0],s=i.getBoundingClientRect(),n=t.body,r=i.clientTop||n.clientTop||0,o=i.clientLeft||n.clientLeft||0,c=i===e?e.scrollY:i.scrollTop,l=i===e?e.scrollX:i.scrollLeft;return{top:s.top+c-r,left:s.left+l-o}}return null}function Is(){const e=ee();return this[0]?e.getComputedStyle(this[0],null):{}}function As(e,t){const i=ee();let s;if(arguments.length===1)if(typeof e=="string"){if(this[0])return i.getComputedStyle(this[0],null).getPropertyValue(e)}else{for(s=0;s<this.length;s+=1)for(const n in e)this[s].style[n]=e[n];return this}if(arguments.length===2&&typeof e=="string"){for(s=0;s<this.length;s+=1)this[s].style[e]=t;return this}return this}function Ls(e){return e?(this.forEach((t,i)=>{e.apply(t,[t,i])}),this):this}function ks(e){const t=hi(this,e);return P(t)}function Ms(e){if(typeof e=="undefined")return this[0]?this[0].innerHTML:null;for(let t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Os(e){if(typeof e=="undefined")return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=e;return this}function Ps(e){const t=ee(),i=se(),s=this[0];let n,r;if(!s||typeof e=="undefined")return!1;if(typeof e=="string"){if(s.matches)return s.matches(e);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(e);if(s.msMatchesSelector)return s.msMatchesSelector(e);for(n=P(e),r=0;r<n.length;r+=1)if(n[r]===s)return!0;return!1}if(e===i)return s===i;if(e===t)return s===t;if(e.nodeType||e instanceof Me){for(n=e.nodeType?[e]:e,r=0;r<n.length;r+=1)if(n[r]===s)return!0;return!1}return!1}function Ds(){let e=this[0],t;if(e){for(t=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(t+=1);return t}}function Ns(e){if(typeof e=="undefined")return this;const t=this.length;if(e>t-1)return P([]);if(e<0){const i=t+e;return i<0?P([]):P([this[i]])}return P([this[e]])}function $s(...e){let t;const i=se();for(let s=0;s<e.length;s+=1){t=e[s];for(let n=0;n<this.length;n+=1)if(typeof t=="string"){const r=i.createElement("div");for(r.innerHTML=t;r.firstChild;)this[n].appendChild(r.firstChild)}else if(t instanceof Me)for(let r=0;r<t.length;r+=1)this[n].appendChild(t[r]);else this[n].appendChild(t)}return this}function Bs(e){const t=se();let i,s;for(i=0;i<this.length;i+=1)if(typeof e=="string"){const n=t.createElement("div");for(n.innerHTML=e,s=n.childNodes.length-1;s>=0;s-=1)this[i].insertBefore(n.childNodes[s],this[i].childNodes[0])}else if(e instanceof Me)for(s=0;s<e.length;s+=1)this[i].insertBefore(e[s],this[i].childNodes[0]);else this[i].insertBefore(e,this[i].childNodes[0]);return this}function zs(e){return this.length>0?e?this[0].nextElementSibling&&P(this[0].nextElementSibling).is(e)?P([this[0].nextElementSibling]):P([]):this[0].nextElementSibling?P([this[0].nextElementSibling]):P([]):P([])}function Fs(e){const t=[];let i=this[0];if(!i)return P([]);for(;i.nextElementSibling;){const s=i.nextElementSibling;e?P(s).is(e)&&t.push(s):t.push(s),i=s}return P(t)}function Hs(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&P(t.previousElementSibling).is(e)?P([t.previousElementSibling]):P([]):t.previousElementSibling?P([t.previousElementSibling]):P([])}return P([])}function Rs(e){const t=[];let i=this[0];if(!i)return P([]);for(;i.previousElementSibling;){const s=i.previousElementSibling;e?P(s).is(e)&&t.push(s):t.push(s),i=s}return P(t)}function qs(e){const t=[];for(let i=0;i<this.length;i+=1)this[i].parentNode!==null&&(e?P(this[i].parentNode).is(e)&&t.push(this[i].parentNode):t.push(this[i].parentNode));return P(t)}function Vs(e){const t=[];for(let i=0;i<this.length;i+=1){let s=this[i].parentNode;for(;s;)e?P(s).is(e)&&t.push(s):t.push(s),s=s.parentNode}return P(t)}function Gs(e){let t=this;return typeof e=="undefined"?P([]):(t.is(e)||(t=t.parents(e).eq(0)),t)}function js(e){const t=[];for(let i=0;i<this.length;i+=1){const s=this[i].querySelectorAll(e);for(let n=0;n<s.length;n+=1)t.push(s[n])}return P(t)}function Ws(e){const t=[];for(let i=0;i<this.length;i+=1){const s=this[i].children;for(let n=0;n<s.length;n+=1)(!e||P(s[n]).is(e))&&t.push(s[n])}return P(t)}function Ys(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}const Rt={addClass:hs,removeClass:fs,hasClass:ms,toggleClass:ps,attr:gs,removeAttr:vs,transform:ys,transition:bs,on:Es,off:Ss,trigger:Cs,transitionEnd:xs,outerWidth:Ts,outerHeight:_s,styles:Is,offset:ws,css:As,each:Ls,html:Ms,text:Os,is:Ps,index:Ds,eq:Ns,append:$s,prepend:Bs,next:zs,nextAll:Fs,prev:Hs,prevAll:Rs,parent:qs,parents:Vs,closest:Gs,find:js,children:Ws,filter:ks,remove:Ys};
23Object.keys(Rt).forEach(e=>{Object.defineProperty(P.fn,e,{value:Rt[e],writable:!0})});function Xs(e){const t=e;Object.keys(t).forEach(i=>{try{t[i]=null}catch(s){}try{delete t[i]}catch(s){}})}function rt(e,t=0){return setTimeout(e,t)}function Pe(){return Date.now()}function Ks(e){const t=ee();let i;return t.getComputedStyle&&(i=t.getComputedStyle(e,null)),!i&&e.currentStyle&&(i=e.currentStyle),i||(i=e.style),i}function Us(e,t="x"){const i=ee();let s,n,r;const o=Ks(e);return i.WebKitCSSMatrix?(n=o.transform||o.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(c=>c.replace(",",".")).join(", ")),r=new i.WebKitCSSMatrix(n==="none"?"":n)):(r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=r.toString().split(",")),t==="x"&&(i.WebKitCSSMatrix?n=r.m41:s.length===16?n=parseFloat(s[12]):n=parseFloat(s[4])),t==="y"&&(i.WebKitCSSMatrix?n=r.m42:s.length===16?n=parseFloat(s[13]):n=parseFloat(s[5])),n||0}function tt(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function Zs(e){return typeof window!="undefined"&&typeof window.HTMLElement!="undefined"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function he(...e){const t=Object(e[0]),i=["__proto__","constructor","prototype"];for(let s=1;s<e.length;s+=1){const n=e[s];if(n!=null&&!Zs(n)){const r=Object.keys(Object(n)).filter(o=>i.indexOf(o)<0);for(let o=0,c=r.length;o<c;o+=1){const l=r[o],u=Object.getOwnPropertyDescriptor(n,l);u!==void 0&&u.enumerable&&(tt(t[l])&&tt(n[l])?n[l].__swiper__?t[l]=n[l]:he(t[l],n[l]):!tt(t[l])&&tt(n[l])?(t[l]={},n[l].__swiper__?t[l]=n[l]:he(t[l],n[l])):t[l]=n[l])}}}return t}function it(e,t,i){e.style.setProperty(t,i)}function fi({swiper:e,targetPosition:t,side:i}){const s=ee(),n=-e.translate;let r=null,o;const c=e.params.speed;e.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(e.cssModeFrameID);const l=t>n?"next":"prev",u=(f,p)=>l==="next"&&f>=p||l==="prev"&&f<=p,h=()=>{o=new Date().getTime(),r===null&&(r=o);const f=Math.max(Math.min((o-r)/c,1),0),p=.5-Math.cos(f*Math.PI)/2;let m=n+p*(t-n);if(u(m,t)&&(m=t),e.wrapperEl.scrollTo({[i]:m}),u(m,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[i]:m})}),s.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=s.requestAnimationFrame(h)};h()}let ut;function Js(){const e=ee(),t=se();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function(){let s=!1;try{const n=Object.defineProperty({},"passive",{get(){s=!0}});e.addEventListener("testPassiveListener",null,n)}catch(n){}return s}(),gestures:function(){return"ongesturestart"in e}()}}function pi(){return ut||(ut=Js()),ut}let ht;function Qs({userAgent:e}={}){const t=pi(),i=ee(),s=i.navigator.platform,n=e||i.navigator.userAgent,r={ios:!1,android:!1},o=i.screen.width,c=i.screen.height,l=n.match(/(Android);?[\s\/]+([\d.]+)?/);let u=n.match(/(iPad).*OS\s([\d_]+)/);const h=n.match(/(iPod)(.*OS\s([\d_]+))?/),f=!u&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=s==="Win32";let m=s==="MacIntel";const v=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&m&&t.touch&&v.indexOf(`${o}x${c}`)>=0&&(u=n.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),m=!1),l&&!p&&(r.os="android",r.android=!0),(u||f||h)&&(r.os="ios",r.ios=!0),r}function en(e={}){return ht||(ht=Qs(e)),ht}let ft;function tn(){const e=ee();function t(){const i=e.navigator.userAgent.toLowerCase();return i.indexOf("safari")>=0&&i.indexOf("chrome")<0&&i.indexOf("android")<0}return{isSafari:t(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function sn(){return ft||(ft=tn()),ft}function nn({swiper:e,on:t,emit:i}){const s=ee();let n=null;const r=()=>{!e||e.destroyed||!e.initialized||(i("beforeResize"),i("resize"))},o=()=>{!e||e.destroyed||!e.initialized||(n=new ResizeObserver(u=>{const{width:h,height:f}=e;let p=h,m=f;u.forEach(({contentBoxSize:v,contentRect:S,target:b})=>{b&&b!==e.el||(p=S?S.width:(v[0]||v).inlineSize,m=S?S.height:(v[0]||v).blockSize)}),(p!==h||m!==f)&&r()}),n.observe(e.el))},c=()=>{n&&n.unobserve&&e.el&&(n.unobserve(e.el),n=null)},l=()=>{!e||e.destroyed||!e.initialized||i("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof s.ResizeObserver!="undefined"){o();return}s.addEventListener("resize",r),s.addEventListener("orientationchange",l)}),t("destroy",()=>{c(),s.removeEventListener("resize",r),s.removeEventListener("orientationchange",l)})}function rn({swiper:e,extendParams:t,on:i,emit:s}){const n=[],r=ee(),o=(u,h={})=>{const f=r.MutationObserver||r.WebkitMutationObserver,p=new f(m=>{if(m.length===1){s("observerUpdate",m[0]);return}const v=function(){s("observerUpdate",m[0])};r.requestAnimationFrame?r.requestAnimationFrame(v):r.setTimeout(v,0)});p.observe(u,{attributes:typeof h.attributes=="undefined"?!0:h.attributes,childList:typeof h.childList=="undefined"?!0:h.childList,characterData:typeof h.characterData=="undefined"?!0:h.characterData}),n.push(p)},c=()=>
23{if(e.params.observer){if(e.params.observeParents){const u=e.$el.parents();for(let h=0;h<u.length;h+=1)o(u[h])}o(e.$el[0],{childList:e.params.observeSlideChildren}),o(e.$wrapperEl[0],{attributes:!1})}},l=()=>{n.forEach(u=>{u.disconnect()}),n.splice(0,n.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",c),i("destroy",l)}const an={on(e,t,i){const s=this;if(typeof t!="function")return s;const n=i?"unshift":"push";return e.split(" ").forEach(r=>{s.eventsListeners[r]||(s.eventsListeners[r]=[]),s.eventsListeners[r][n](t)}),s},once(e,t,i){const s=this;if(typeof t!="function")return s;function n(...r){s.off(e,n),n.__emitterProxy&&delete n.__emitterProxy,t.apply(s,r)}return n.__emitterProxy=t,s.on(e,n,i)},onAny(e,t){const i=this;if(typeof e!="function")return i;const s=t?"unshift":"push";return i.eventsAnyListeners.indexOf(e)<0&&i.eventsAnyListeners[s](e),i},offAny(e){const t=this;if(!t.eventsAnyListeners)return t;const i=t.eventsAnyListeners.indexOf(e);return i>=0&&t.eventsAnyListeners.splice(i,1),t},off(e,t){const i=this;return i.eventsListeners&&e.split(" ").forEach(s=>{typeof t=="undefined"?i.eventsListeners[s]=[]:i.eventsListeners[s]&&i.eventsListeners[s].forEach((n,r)=>{(n===t||n.__emitterProxy&&n.__emitterProxy===t)&&i.eventsListeners[s].splice(r,1)})}),i},emit(...e){const t=this;if(!t.eventsListeners)return t;let i,s,n;return typeof e[0]=="string"||Array.isArray(e[0])?(i=e[0],s=e.slice(1,e.length),n=t):(i=e[0].events,s=e[0].data,n=e[0].context||t),s.unshift(n),(Array.isArray(i)?i:i.split(" ")).forEach(o=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(n,[o,...s])}),t.eventsListeners&&t.eventsListeners[o]&&t.eventsListeners[o].forEach(c=>{c.apply(n,s)})}),t}};function on(){const e=this;let t,i;const s=e.$el;typeof e.params.width!="undefined"&&e.params.width!==null?t=e.params.width:t=s[0].clientWidth,typeof e.params.height!="undefined"&&e.params.height!==null?i=e.params.height:i=s[0].clientHeight,!(t===0&&e.isHorizontal()||i===0&&e.isVertical())&&(t=t-parseInt(s.css("padding-left")||0,10)-parseInt(s.css("padding-right")||0,10),i=i-parseInt(s.css("padding-top")||0,10)-parseInt(s.css("padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(i)&&(i=0),Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i}))}function ln(){const e=this;function t(k){return e.isHorizontal()?k:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[k]}function i(k,N){return parseFloat(k.getPropertyValue(t(N))||0)}const s=e.params,{$wrapperEl:n,size:r,rtlTranslate:o,wrongRTL:c}=e,l=e.virtual&&s.virtual.enabled,u=l?e.virtual.slides.length:e.slides.length,h=n.children(`.${e.params.slideClass}`),f=l?e.virtual.slides.length:h.length;let p=[];const m=[],v=[];let S=s.slidesOffsetBefore;typeof S=="function"&&(S=s.slidesOffsetBefore.call(e));let b=s.slidesOffsetAfter;typeof b=="function"&&(b=s.slidesOffsetAfter.call(e));const C=e.snapGrid.length,A=e.slidesGrid.length;let I=s.spaceBetween,M=-S,L=0,O=0;if(typeof r=="undefined")return;typeof I=="string"&&I.indexOf("%")>=0&&(I=parseFloat(I.replace("%",""))/100*r),e.virtualSize=-I,o?h.css({marginLeft:"",marginBottom:"",marginTop:""}):h.css({marginRight:"",marginBottom:"",marginTop:""}),s.centeredSlides&&s.cssMode&&(it(e.wrapperEl,"--swiper-centered-offset-before",""),it(e.wrapperEl,"--swiper-centered-offset-after",""));const z=s.grid&&s.grid.rows>1&&e.grid;z&&e.grid.initSlides(f);let x;const $=s.slidesPerView==="auto"&&s.breakpoints&&Object.keys(s.breakpoints).filter(k=>typeof s.breakpoints[k].slidesPerView!="undefined").length>0;for(let k=0;k<f;k+=1){x=0;const N=h.eq(k);if(z&&e.grid.updateSlide(k,N,f,t),N.css("display")!=="none"){if(s.slidesPerView==="auto"){$&&(h[k].style[t("width")]="");const H=getComputedStyle(N[0]),de=N[0].style.transform,U=N[0].style.webkitTransform;if(de&&(N[0].style.transform="none"),U&&(N[0].style.webkitTransform="none"),s.roun
23dLengths)x=e.isHorizontal()?N.outerWidth(!0):N.outerHeight(!0);else{const te=i(H,"width"),Z=i(H,"padding-left"),X=i(H,"padding-right"),Ie=i(H,"margin-left"),me=i(H,"margin-right"),Ae=H.getPropertyValue("box-sizing");if(Ae&&Ae==="border-box")x=te+Ie+me;else{const{clientWidth:Be,offsetWidth:ze}=N[0];x=te+Z+X+Ie+me+(ze-Be)}}de&&(N[0].style.transform=de),U&&(N[0].style.webkitTransform=U),s.roundLengths&&(x=Math.floor(x))}else x=(r-(s.slidesPerView-1)*I)/s.slidesPerView,s.roundLengths&&(x=Math.floor(x)),h[k]&&(h[k].style[t("width")]=`${x}px`);h[k]&&(h[k].swiperSlideSize=x),v.push(x),s.centeredSlides?(M=M+x/2+L/2+I,L===0&&k!==0&&(M=M-r/2-I),k===0&&(M=M-r/2-I),Math.abs(M)<1/1e3&&(M=0),s.roundLengths&&(M=Math.floor(M)),O%s.slidesPerGroup===0&&p.push(M),m.push(M)):(s.roundLengths&&(M=Math.floor(M)),(O-Math.min(e.params.slidesPerGroupSkip,O))%e.params.slidesPerGroup===0&&p.push(M),m.push(M),M=M+x+I),e.virtualSize+=x+I,L=x,O+=1}}if(e.virtualSize=Math.max(e.virtualSize,r)+b,o&&c&&(s.effect==="slide"||s.effect==="coverflow")&&n.css({width:`${e.virtualSize+s.spaceBetween}px`}),s.setWrapperSize&&n.css({[t("width")]:`${e.virtualSize+s.spaceBetween}px`}),z&&e.grid.updateWrapperSize(x,p,t),!s.centeredSlides){const k=[];for(let N=0;N<p.length;N+=1){let H=p[N];s.roundLengths&&(H=Math.floor(H)),p[N]<=e.virtualSize-r&&k.push(H)}p=k,Math.floor(e.virtualSize-r)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-r)}if(p.length===0&&(p=[0]),s.spaceBetween!==0){const k=e.isHorizontal()&&o?"marginLeft":t("marginRight");h.filter((N,H)=>s.cssMode?H!==h.length-1:!0).css({[k]:`${I}px`})}if(s.centeredSlides&&s.centeredSlidesBounds){let k=0;v.forEach(H=>{k+=H+(s.spaceBetween?s.spaceBetween:0)}),k-=s.spaceBetween;const N=k-r;p=p.map(H=>H<0?-S:H>N?N+b:H)}if(s.centerInsufficientSlides){let k=0;if(v.forEach(N=>{k+=N+(s.spaceBetween?s.spaceBetween:0)}),k-=s.spaceBetween,k<r){const N=(r-k)/2;p.forEach((H,de)=>{p[de]=H-N}),m.forEach((H,de)=>{m[de]=H+N})}}if(Object.assign(e,{slides:h,snapGrid:p,slidesGrid:m,slidesSizesGrid:v}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){it(e.wrapperEl,"--swiper-centered-offset-before",`${-p[0]}px`),it(e.wrapperEl,"--swiper-centered-offset-after",`${e.size/2-v[v.length-1]/2}px`);const k=-e.snapGrid[0],N=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(H=>H+k),e.slidesGrid=e.slidesGrid.map(H=>H+N)}f!==u&&e.emit("slidesLengthChange"),p.length!==C&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),m.length!==A&&e.emit("slidesGridLengthChange"),s.watchSlidesProgress&&e.updateSlidesOffset()}function cn(e){const t=this,i=[],s=t.virtual&&t.params.virtual.enabled;let n=0,r;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const o=c=>s?t.slides.filter(l=>parseInt(l.getAttribute("data-swiper-slide-index"),10)===c)[0]:t.slides.eq(c)[0];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)t.visibleSlides.each(c=>{i.push(c)});else for(r=0;r<Math.ceil(t.params.slidesPerView);r+=1){const c=t.activeIndex+r;if(c>t.slides.length&&!s)break;i.push(o(c))}else i.push(o(t.activeIndex));for(r=0;r<i.length;r+=1)if(typeof i[r]!="undefined"){const c=i[r].offsetHeight;n=c>n?c:n}(n||n===0)&&t.$wrapperEl.css("height",`${n}px`)}function dn(){const e=this,t=e.slides;for(let i=0;i<t.length;i+=1)t[i].swiperSlideOffset=e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop}function un(e=this&&this.translate||0){const t=this,i=t.params,{slides:s,rtlTranslate:n,snapGrid:r}=t;if(s.length===0)return;typeof s[0].swiperSlideOffset=="undefined"&&t.updateSlidesOffset();let o=-e;n&&(o=e),s.removeClass(i.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let c=0;c<s.length;c+=1){const l=s[c];let u=l.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(u-=s[0].swiperSlideOffset);const h=(o+(i.centeredSlides?t.minTranslate():0)-u)/(l.swiperSlideSize+i.spaceBetween),f=(o-r[0]+(i.centeredSlides?t.minTranslate():0)-u)/(l.swiperSlideSize+i.spaceBetween),p=-(o-u),m=p+t.slidesSizesGrid[c];(p>=0&&p<t.size-1||m>1&&m<=t.size||p<=0&&m>=t.size)&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(c),s.eq(c).addClass(i.slideVisibleClass)),l.progress=n?-h:h,l.originalProgress=n?-f:f}t.visibleSlides=P(t.visibleSlides)}function hn(e){const t=this;if(typeof e=="undefined"){const u=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*u||0}const i=t.params,s=t.maxTranslate()-t.minTranslate();let{progress:n,isBeginning:r,isEnd:o}=t;const c=r,l=o;s===0?(n=0,r=!0,o=!0):(n=(e-t.minTranslate())/s,r=n<=0,o=n>=1),Object.assign(t,{progress:n,isBeginning:r,isEnd:o}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),r&&!c&&t.emit("reachBeginning toEdge"),o&&!l&&t.emit("reachEnd toEdge"),(c&&!r||l&&!o)&&t.emit("fromEdge"),t.emit("progress",n)}function fn(){const e=this,{slides:t,params:i,$wrapperEl:s,activeIndex:n,realIndex:r}=e,o=e.virtual&&i.virtual.enabled;t.removeClass(`${i.slideActiveClass} ${i.slideNextClass} ${i.slidePrevClass} ${i.slideDuplicateActiveClass} ${i.slideDuplicateNextClass} ${i.slideDuplicatePrevClass}`);let c;o?c=e.$wrapperEl.find(`.${i.slideClass}[data-swiper-slide-index="${n}"]`):c=t.eq(n),c.addClass(i.slideActiveClass),i.loop&&(c.hasClass(i.slideDuplicateClass)?s.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${r}"]`).addClass(i.slideDuplicateActiveClass):s.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${r}"]`).addClass(i.slideDuplicateActiveClass));let l=c.nextAll(`.${i.slideClass}`).eq(0).addClass(i.slideNextClass);
23i.loop&&l.length===0&&(l=t.eq(0),l.addClass(i.slideNextClass));let u=c.prevAll(`.${i.slideClass}`).eq(0).addClass(i.slidePrevClass);i.loop&&u.length===0&&(u=t.eq(-1),u.addClass(i.slidePrevClass)),i.loop&&(l.hasClass(i.slideDuplicateClass)?s.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass):s.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass),u.hasClass(i.slideDuplicateClass)?s.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${u.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass):s.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${u.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass)),e.emitSlidesClasses()}function pn(e){const t=this,i=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:s,snapGrid:n,params:r,activeIndex:o,realIndex:c,snapIndex:l}=t;let u=e,h;if(typeof u=="undefined"){for(let p=0;p<s.length;p+=1)typeof s[p+1]!="undefined"?i>=s[p]&&i<s[p+1]-(s[p+1]-s[p])/2?u=p:i>=s[p]&&i<s[p+1]&&(u=p+1):i>=s[p]&&(u=p);r.normalizeSlideIndex&&(u<0||typeof u=="undefined")&&(u=0)}if(n.indexOf(i)>=0)h=n.indexOf(i);else{const p=Math.min(r.slidesPerGroupSkip,u);h=p+Math.floor((u-p)/r.slidesPerGroup)}if(h>=n.length&&(h=n.length-1),u===o){h!==l&&(t.snapIndex=h,t.emit("snapIndexChange"));return}const f=parseInt(t.slides.eq(u).attr("data-swiper-slide-index")||u,10);Object.assign(t,{snapIndex:h,realIndex:f,previousIndex:o,activeIndex:u}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),c!==f&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function mn(e){const t=this,i=t.params,s=P(e).closest(`.${i.slideClass}`)[0];let n=!1,r;if(s){for(let o=0;o<t.slides.length;o+=1)if(t.slides[o]===s){n=!0,r=o;break}}if(s&&n)t.clickedSlide=s,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(P(s).attr("data-swiper-slide-index"),10):t.clickedIndex=r;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}i.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}const gn={updateSize:on,updateSlides:ln,updateAutoHeight:cn,updateSlidesOffset:dn,updateSlidesProgress:un,updateProgress:hn,updateSlidesClasses:fn,updateActiveIndex:pn,updateClickedSlide:mn};function vn(e=this.isHorizontal()?"x":"y"){const t=this,{params:i,rtlTranslate:s,translate:n,$wrapperEl:r}=t;if(i.virtualTranslate)return s?-n:n;if(i.cssMode)return n;let o=Us(r[0],e);return s&&(o=-o),o||0}function yn(e,t){const i=this,{rtlTranslate:s,params:n,$wrapperEl:r,wrapperEl:o,progress:c}=i;let l=0,u=0;const h=0;i.isHorizontal()?l=s?-e:e:u=e,n.roundLengths&&(l=Math.floor(l),u=Math.floor(u)),n.cssMode?o[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-l:-u:n.virtualTranslate||r.transform(`translate3d(${l}px, ${u}px, ${h}px)`),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?l:u;let f;const p=i.maxTranslate()-i.minTranslate();p===0?f=0:f=(e-i.minTranslate())/p,f!==c&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)}function bn(){return-this.snapGrid[0]}function En(){return-this.snapGrid[this.snapGrid.length-1]}function Sn(e=0,t=this.params.speed,i=!0,s=!0,n){const r=this,{params:o,wrapperEl:c}=r;if(r.animating&&o.preventInteractionOnTransition)return!1;const l=r.minTranslate(),u=r.maxTranslate();let h;if(s&&e>l?h=l:s&&e<u?h=u:h=e,r.updateProgress(h),o.cssMode){const f=r.isHorizontal();if(t===0)c[f?"scrollLeft":"scrollTop"]=-h;else{if(!r.support.smoothScroll)return fi({swiper:r,targetPosition:-h,side:f?"left":"top"}),!0;
23c.scrollTo({[f?"left":"top"]:-h,behavior:"smooth"})}return!0}return t===0?(r.setTransition(0),r.setTranslate(h),i&&(r.emit("beforeTransitionStart",t,n),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(h),i&&(r.emit("beforeTransitionStart",t,n),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(p){!r||r.destroyed||p.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,i&&r.emit("transitionEnd"))}),r.$wrapperEl[0].addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onTranslateToWrapperTransitionEnd))),!0}const Cn={getTranslate:vn,setTranslate:yn,minTranslate:bn,maxTranslate:En,translateTo:Sn};function xn(e,t){const i=this;i.params.cssMode||i.$wrapperEl.transition(e),i.emit("setTransition",e,t)}function mi({swiper:e,runCallbacks:t,direction:i,step:s}){const{activeIndex:n,previousIndex:r}=e;let o=i;if(o||(n>r?o="next":n<r?o="prev":o="reset"),e.emit(`transition${s}`),t&&n!==r){if(o==="reset"){e.emit(`slideResetTransition${s}`);return}e.emit(`slideChangeTransition${s}`),o==="next"?e.emit(`slideNextTransition${s}`):e.emit(`slidePrevTransition${s}`)}}function Tn(e=!0,t){const i=this,{params:s}=i;s.cssMode||(s.autoHeight&&i.updateAutoHeight(),mi({swiper:i,runCallbacks:e,direction:t,step:"Start"}))}function _n(e=!0,t){const i=this,{params:s}=i;i.animating=!1,!s.cssMode&&(i.setTransition(0),mi({swiper:i,runCallbacks:e,direction:t,step:"End"}))}const wn={setTransition:xn,transitionStart:Tn,transitionEnd:_n};function In(e=0,t=this.params.speed,i=!0,s,n){if(typeof e!="number"&&typeof e!="string")throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof e}] given.`);if(typeof e=="string"){const I=parseInt(e,10);if(!isFinite(I))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=I}const r=this;let o=e;o<0&&(o=0);const{params:c,snapGrid:l,slidesGrid:u,previousIndex:h,activeIndex:f,rtlTranslate:p,wrapperEl:m,enabled:v}=r;if(r.animating&&c.preventInteractionOnTransition||!v&&!s&&!n)return!1;const S=Math.min(r.params.slidesPerGroupSkip,o);let b=S+Math.floor((o-S)/r.params.slidesPerGroup);b>=l.length&&(b=l.length-1),(f||c.initialSlide||0)===(h||0)&&i&&r.emit("beforeSlideChangeStart");const C=-l[b];if(r.updateProgress(C),c.normalizeSlideIndex)for(let I=0;I<u.length;I+=1){const M=-Math.floor(C*100),L=Math.floor(u[I]*100),O=Math.floor(u[I+1]*100);typeof u[I+1]!="undefined"?M>=L&&M<O-(O-L)/2?o=I:M>=L&&M<O&&(o=I+1):M>=L&&(o=I)}if(r.initialized&&o!==f&&(!r.allowSlideNext&&C<r.translate&&C<r.minTranslate()||!r.allowSlidePrev&&C>r.translate&&C>r.maxTranslate()&&(f||0)!==o))return!1;let A;if(o>f?A="next":o<f?A="prev":A="reset",p&&-C===r.translate||!p&&C===r.translate)return r.updateActiveIndex(o),c.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),c.effect!=="slide"&&r.setTranslate(C),A!=="reset"&&(r.transitionStart(i,A),r.transitionEnd(i,A)),!1;if(c.cssMode){const I=r.isHorizontal(),M=p?C:-C;if(t===0){const L=r.virtual&&r.params.virtual.enabled;L&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),m[I?"scrollLeft":"scrollTop"]=M,L&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._swiperImmediateVirtual=!1})}else{if(!r.support.smoothScroll)return fi({swiper:r,targetPosition:M,side:I?"left":"top"}),!0;m.scrollTo({[I?"left":"top"]:M,behavior:"smooth"})}return!0}return r.setTransition(t),r.setTranslate(C),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,s),r.transitionStart(i,A),t===0?r.transitionEnd(i,A):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(M){!r||r.destroyed||M.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(i,A))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd)),!0}function An(e=0,t=this.params.speed,i=!0,s){const n=this;let r=e;return n.params.loop&&(r+=n.loopedSlides),n.slideTo(r,t,i,s)}function Ln(e=this.params.speed,t=!0,i){const s=this,{animating:n,enabled:r,params:o}=s;if(!r)return s;let c=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(c=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndex<o.slidesPerGroupSkip?1:c;if(o.loop){if(n&&o.loopPreventsSlide)return!1;s.loopFix(),s._clientLeft=s.$wrapperEl[0].clientLeft}return o.rewind&&s.isEnd?s.slideTo(0,e,t,i):s.slideTo(s.activeIndex+l,e,t,i)}function kn(e=this.params.speed,t=!0,i){const s=this,{params:n,animating:r,snapGrid:o,slidesGrid:c,rtlTranslate:l,enabled:u}=s;if(!u)return s;if(n.loop){if(r&&n.loopPreventsSlide)return!1;s.loopFix(),s._clientLeft=s.$wrapperEl[0].clientLeft}const h=l?s.translate:-s.translate;function f(b){return b<0?-Math.floor(Math.abs(b)):Math.floor(b)}const p=f(h),m=o.map(b=>f(b));let v=o[m.indexOf(p)-1];if(typeof v=="undefined"&&n.cssMode){let b;o.forEach((C,A)=>{p>=C&&(b=A)}
23),typeof b!="undefined"&&(v=o[b>0?b-1:b])}let S=0;return typeof v!="undefined"&&(S=c.indexOf(v),S<0&&(S=s.activeIndex-1),n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(S=S-s.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),n.rewind&&s.isBeginning?s.slideTo(s.slides.length-1,e,t,i):s.slideTo(S,e,t,i)}function Mn(e=this.params.speed,t=!0,i){const s=this;return s.slideTo(s.activeIndex,e,t,i)}function On(e=this.params.speed,t=!0,i,s=.5){const n=this;let r=n.activeIndex;const o=Math.min(n.params.slidesPerGroupSkip,r),c=o+Math.floor((r-o)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[c]){const u=n.snapGrid[c],h=n.snapGrid[c+1];l-u>(h-u)*s&&(r+=n.params.slidesPerGroup)}else{const u=n.snapGrid[c-1],h=n.snapGrid[c];l-u<=(h-u)*s&&(r-=n.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,n.slidesGrid.length-1),n.slideTo(r,e,t,i)}function Pn(){const e=this,{params:t,$wrapperEl:i}=e,s=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let n=e.clickedIndex,r;if(t.loop){if(e.animating)return;r=parseInt(P(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?n<e.loopedSlides-s/2||n>e.slides.length-e.loopedSlides+s/2?(e.loopFix(),n=i.children(`.${t.slideClass}[data-swiper-slide-index="${r}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),rt(()=>{e.slideTo(n)})):e.slideTo(n):n>e.slides.length-s?(e.loopFix(),n=i.children(`.${t.slideClass}[data-swiper-slide-index="${r}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),rt(()=>{e.slideTo(n)})):e.slideTo(n)}else e.slideTo(n)}const Dn={slideTo:In,slideToLoop:An,slideNext:Ln,slidePrev:kn,slideReset:Mn,slideToClosest:On,slideToClickedSlide:Pn};function Nn(){const e=this,t=se(),{params:i,$wrapperEl:s}=e,n=s.children().length>0?P(s.children()[0].parentNode):s;n.children(`.${i.slideClass}.${i.slideDuplicateClass}`).remove();let r=n.children(`.${i.slideClass}`);if(i.loopFillGroupWithBlank){const l=i.slidesPerGroup-r.length%i.slidesPerGroup;if(l!==i.slidesPerGroup){for(let u=0;u<l;u+=1){const h=P(t.createElement("div")).addClass(`${i.slideClass} ${i.slideBlankClass}`);n.append(h)}r=n.children(`.${i.slideClass}`)}}i.slidesPerView==="auto"&&!i.loopedSlides&&(i.loopedSlides=r.length),e.loopedSlides=Math.ceil(parseFloat(i.loopedSlides||i.slidesPerView,10)),e.loopedSlides+=i.loopAdditionalSlides,e.loopedSlides>r.length&&(e.loopedSlides=r.length);const o=[],c=[];r.each((l,u)=>{const h=P(l);u<e.loopedSlides&&c.push(l),u<r.length&&u>=r.length-e.loopedSlides&&o.push(l),h.attr("data-swiper-slide-index",u)});for(let l=0;l<c.length;l+=1)n.append(P(c[l].cloneNode(!0)).addClass(i.slideDuplicateClass));for(let l=o.length-1;l>=0;l-=1)n.prepend(P(o[l].cloneNode(!0)).addClass(i.slideDuplicateClass))}function $n(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:i,loopedSlides:s,allowSlidePrev:n,allowSlideNext:r,snapGrid:o,rtlTranslate:c}=e;let l;e.allowSlidePrev=!0,e.allowSlideNext=!0;const h=-o[t]-e.getTranslate();t<s?(l=i.length-s*3+t,l+=s,e.slideTo(l,0,!1,!0)&&h!==0&&e.setTranslate((c?-e.translate:e.translate)-h)):t>=i.length-s&&(l=-i.length+t+s,l+=s,e.slideTo(l,0,!1,!0)&&h!==0&&e.setTranslate((c?-e.translate:e.translate)-h)),e.allowSlidePrev=n,e.allowSlideNext=r,e.emit("loopFix")}function Bn(){const e=this,{$wrapperEl:t,params:i,slides:s}=e;t.children(`.${i.slideClass}.${i.slideDuplicateClass},.${i.slideClass}.${i.slideBlankClass}`).remove(),s.removeAttr("data-swiper-slide-index")}const zn={loopCreate:Nn,loopFix:$n,loopDestroy:Bn};function Fn(e){const t=this;if(t.support.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const i=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;i.style.cursor="move",i.style.cursor=e?"-webkit-grabbing":"-webkit-grab",i.style.cursor=e?"-moz-grabbin":"-moz-grab",i.style.cursor=e?"grabbing":"grab"}function Hn(){const e=this;e.support.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="")}const Rn={setGrabCursor:Fn,unsetGrabCursor:Hn};function qn(e,t=this){function i(s){return!s||s===se()||s===ee()?null:(s.assignedSlot&&(s=s.assignedSlot),s.closest(e)||i(s.getRootNode().host))}return i(t)}function Vn(e){const t=this,i=se(),s=ee(),n=t.touchEventsData,{params:r,touches:o,enabled:c}=t;if(!c||t.animating&&r.preventInteractionOnTransition)return;!t.animating&&r.cssMode&&r.loop&&t.loopFix();let l=e;l.originalEvent&&(l=l.originalEvent);let u=P(l.target);if(r.touchEventsTarget==="wrapper"&&!u.closest(t.wrapperEl).length||(n.isTouchEvent=l.type==="touchstart",!n.isTouchEvent&&"which"in l&&l.which===3)||!n.isTouchEvent&&"button"in l&&l.button>0||n.isTouched&&n.isMoved)return;!!r.noSwipingClass&&r.noSwipingClass!==""&&l.target&&l.target.shadowRoot&&e.path&&e.path[0]&&(u=P(e.path[0]));const f=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,p=!!(l.target&&l.target.shadowRoot);if(r.noSwiping&&(p?qn(f,l.target):u.closest(f)[0])){t.allowClick=!0;return}if(r.swipeHandler&&!u.closest(r.swipeHandler)[0])return;o.currentX=l.type==="touchstart"?l.targetTouches[0].pageX:l.pageX,o.currentY=l.type==="touchstart"?l.targetTouches[0].pageY:l.pageY;const m=o.currentX,v=o.currentY,S=r.edgeSwipeDetection||r.iOSEdgeSwipeDetection,b=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if(S&&(m<=b||m>=s.innerWidth-b))if(S==="prevent")e.preventDefault();else return;if(Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=m,o.startY=v,n.touchStartTime=Pe(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,r.threshold>0&&(n.allowThresholdMove=!1),l.type!=="touchstart"){let C=!0;u.is(n.focusableElements)&&(C=!1),i.activeElement&&P(i.activeElement).is(n.focusableElements)&&i.activeElement!==u[0]&&i.activeElement.blur();const A=C&&t.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||A)&&!u[0].isContentEditable&&l.preventDefault()}t.emit("touchStart",l)}function Gn(e){const t=se(),i=this,s=i.touchEventsData,{params:n,touches:r,rtlTranslate:o,enabled:c}=i;if(!c)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),!s.isTouched){s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",l);return}if(s.isTouchEvent&&l.type!=="touchmove")return;const u=l.type==="touchmove"&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),h=l.type==="touchmove"?u.pageX:l.pageX,f=l.type==="touchmove"?u.pageY:l.pageY;if(l.preventedByNestedSwiper){r.startX=h,r.startY=f;return}if(!i.allowTouchMove){i.allowClick=!1,s.isTouched&&(Object.assign(r,{startX:h,startY:f,currentX:h,currentY:f}),s.touchStartTime=Pe());return}if(s.isTouchEvent&&n.touchReleaseOnEdges&&!n.loop){if(i.isVertical()){if(f<r.startY&&i.translate<=i.maxTranslate()||f>r.startY&&i.translate>=i.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else if(h<r.startX&&i.translate<=i.maxTranslate()||h>r.startX&&i.translate>=i.minTranslate())return}if(s.isTouchEvent&&t.activeElement&&l.target===t.activeElement&&P(l.target).is(s.focusableElements)){s.isMoved=!0,i.allowClick=!1;return}if(s.allowTouchCallbacks&&i.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;r.currentX=h,r.currentY=f;const p=r.currentX-r.startX,m=r.currentY-r.startY;if(i.params.threshold&&Math.sqrt(p**2+m**2)<i.params.threshold)return;if(typeof s.isScrolling=="undefined"){let C;i.isHorizontal()&&r.currentY===r.startY||i.isVertical()&&r.currentX===r.startX?s.isScrolling=!1:p*p+m*m>=25&&(C=Math.atan2(Math.abs(m),Math.abs(p))*180/Math.PI,s.isScrolling=i.isHorizontal()?C>n.touchAngle:90-C>n.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",l),typeof s.startMoving=="undefined"&&(r.currentX!==r.
23startX||r.currentY!==r.startY)&&(s.startMoving=!0),s.isScrolling){s.isTouched=!1;return}if(!s.startMoving)return;i.allowClick=!1,!n.cssMode&&l.cancelable&&l.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&l.stopPropagation(),s.isMoved||(n.loop&&!n.cssMode&&i.loopFix(),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating&&i.$wrapperEl.trigger("webkitTransitionEnd transitionend"),s.allowMomentumBounce=!1,n.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",l)),i.emit("sliderMove",l),s.isMoved=!0;let v=i.isHorizontal()?p:m;r.diff=v,v*=n.touchRatio,o&&(v=-v),i.swipeDirection=v>0?"prev":"next",s.currentTranslate=v+s.startTranslate;let S=!0,b=n.resistanceRatio;if(n.touchReleaseOnEdges&&(b=0),v>0&&s.currentTranslate>i.minTranslate()?(S=!1,n.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+v)**b)):v<0&&s.currentTranslate<i.maxTranslate()&&(S=!1,n.resistance&&(s.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-s.startTranslate-v)**b)),S&&(l.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&s.currentTranslate<s.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&s.currentTranslate>s.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(s.currentTranslate=s.startTranslate),n.threshold>0)if(Math.abs(v)>n.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,s.currentTranslate=s.startTranslate,r.diff=i.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY;return}}else{s.currentTranslate=s.startTranslate;return}!n.followFinger||n.cssMode||((n.freeMode&&n.freeMode.enabled&&i.freeMode||n.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),i.params.freeMode&&n.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate))}function jn(e){const t=this,i=t.touchEventsData,{params:s,touches:n,rtlTranslate:r,slidesGrid:o,enabled:c}=t;if(!c)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",l),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&s.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}s.grabCursor&&i.isMoved&&i.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const u=Pe(),h=u-i.touchStartTime;if(t.allowClick){const b=l.path||l.composedPath&&l.composedPath();t.updateClickedSlide(b&&b[0]||l.target),t.emit("tap click",l),h<300&&u-i.lastClickTime<300&&t.emit("doubleTap doubleClick",l)}if(i.lastClickTime=Pe(),rt(()=>{t.destroyed||(t.allowClick=!0)}),!i.isTouched||!i.isMoved||!t.swipeDirection||n.diff===0||i.currentTranslate===i.startTranslate){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let f;if(s.followFinger?f=r?t.translate:-t.translate:f=-i.currentTranslate,s.cssMode)return;if(t.params.freeMode&&s.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:f});return}let p=0,m=t.slidesSizesGrid[0];for(let b=0;b<o.length;b+=b<s.slidesPerGroupSkip?1:s.slidesPerGroup){const C=b<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;typeof o[b+C]!="undefined"?f>=o[b]&&f<o[b+C]&&(p=b,m=o[b+C]-o[b]):f>=o[b]&&(p=b,m=o[o.length-1]-o[o.length-2])}const v=(f-o[p])/m,S=p<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(h>s.longSwipesMs){if(!s.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(v>=s.longSwipesRatio?t.slideTo(p+S):t.slideTo(p)),t.swipeDirection==="prev"&&(v>1-s.longSwipesRatio?t.slideTo(p+S):t.slideTo(p))}else{if(!s.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(l.target===t.navigation.nextEl||l.target===t.navigation.prevEl)?l.target===t.navigation.nextEl?t.slideTo(p+S):t.slideTo(p):(t.swipeDirection==="next"&&t.slideTo(p+S),t.swipeDirection==="prev"&&t.slideTo(p))}}function qt(){const e=this,{params:t,el:i}=e;if(i&&i.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:n,snapGrid:r}=e;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=n,e.allowSlideNext=s,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function Wn(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Yn(){const e=this,{wrapperEl:t,rtlTranslate:i,enabled:s}=e;if(!s)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===-0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let n;const r=e.maxTranslate()-e.minTranslate();r===0?n=0:n=(e.translate-e.minTranslate())/r,n!==e.progress&&e.updateProgress(i?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}let Vt=!1;function Xn(){}const gi=(e,t)=>{const i=se(),{params:s,touchEvents:n,el:r,wrapperEl:o,device:c,support:l}=e,u=!!s.nested,h=t==="on"?"addEventListener":"removeEventListener",f=t;if(!l.touch)r[h](n.start,e.onTouchStart,!1),i[h](n.move,e.onTouchMove,u),i[h](n.end,e.onTouchEnd,!1);else{const p=n.start==="touchstart"&&l.passiveListener&&s.passiveListeners?{passive:!0,capture:!1}:!1;r[h](n.start,e.onTouchStart,p),r[h](n.move,e.onTouchMove,l.passiveListener?{passive:!1,capture:u}:u),r[h](n.end,e.onTouchEnd,p),n.cancel&&r[h](n.cancel,e.onTouchEnd,p)}(s.preventClicks||s.preventClicksPropagation)&&r[h]("click",e.onClick,!0),s.cssMode&&o[h]("scroll",e.onScroll),s.updateOnWindowResize?e[f](c.ios||
23c.android?"resize orientationchange observerUpdate":"resize observerUpdate",qt,!0):e[f]("observerUpdate",qt,!0)};function Kn(){const e=this,t=se(),{params:i,support:s}=e;e.onTouchStart=Vn.bind(e),e.onTouchMove=Gn.bind(e),e.onTouchEnd=jn.bind(e),i.cssMode&&(e.onScroll=Yn.bind(e)),e.onClick=Wn.bind(e),s.touch&&!Vt&&(t.addEventListener("touchstart",Xn),Vt=!0),gi(e,"on")}function Un(){gi(this,"off")}const Zn={attachEvents:Kn,detachEvents:Un},Gt=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function Jn(){const e=this,{activeIndex:t,initialized:i,loopedSlides:s=0,params:n,$el:r}=e,o=n.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const c=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!c||e.currentBreakpoint===c)return;const u=(c in o?o[c]:void 0)||e.originalParams,h=Gt(e,n),f=Gt(e,u),p=n.enabled;h&&!f?(r.removeClass(`${n.containerModifierClass}grid ${n.containerModifierClass}grid-column`),e.emitContainerClasses()):!h&&f&&(r.addClass(`${n.containerModifierClass}grid`),(u.grid.fill&&u.grid.fill==="column"||!u.grid.fill&&n.grid.fill==="column")&&r.addClass(`${n.containerModifierClass}grid-column`),e.emitContainerClasses());const m=u.direction&&u.direction!==n.direction,v=n.loop&&(u.slidesPerView!==n.slidesPerView||m);m&&i&&e.changeDirection(),he(e.params,u);const S=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),p&&!S?e.disable():!p&&S&&e.enable(),e.currentBreakpoint=c,e.emit("_beforeBreakpoint",u),v&&i&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-s+e.loopedSlides,0,!1)),e.emit("breakpoint",u)}function Qn(e,t="window",i){if(!e||t==="container"&&!i)return;let s=!1;const n=ee(),r=t==="window"?n.innerHeight:i.clientHeight,o=Object.keys(e).map(c=>{if(typeof c=="string"&&c.indexOf("@")===0){const l=parseFloat(c.substr(1));return{value:r*l,point:c}}return{value:c,point:c}});o.sort((c,l)=>
23parseInt(c.value,10)-parseInt(l.value,10));for(let c=0;c<o.length;c+=1){const{point:l,value:u}=o[c];t==="window"?n.matchMedia(`(min-width: ${u}px)`).matches&&(s=l):u<=i.clientWidth&&(s=l)}return s||"max"}const er={setBreakpoint:Jn,getBreakpoint:Qn};function tr(e,t){const i=[];return e.forEach(s=>{typeof s=="object"?Object.keys(s).forEach(n=>{s[n]&&i.push(t+n)}):typeof s=="string"&&i.push(t+s)}),i}function ir(){const e=this,{classNames:t,params:i,rtl:s,$el:n,device:r,support:o}=e,c=tr(["initialized",i.direction,{"pointer-events":!o.touch},{"free-mode":e.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:s},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:r.android},{ios:r.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides}],i.containerModifierClass);t.push(...c),n.addClass([...t].join(" ")),e.emitContainerClasses()}function sr(){const e=this,{$el:t,classNames:i}=e;t.removeClass(i.join(" ")),e.emitContainerClasses()}const nr={addClasses:ir,removeClasses:sr};function rr(e,t,i,s,n,r){const o=ee();let c;function l(){r&&r()}!P(e).parent("picture")[0]&&(!e.complete||!n)&&t?(c=new o.Image,c.onload=l,c.onerror=l,s&&(c.sizes=s),i&&(c.srcset=i),t&&(c.src=t)):l()}function ar(){const e=this;e.imagesToLoad=e.$el.find("img");function t(){typeof e=="undefined"||e===null||!e||e.destroyed||(e.imagesLoaded!==void 0&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}for(let i=0;i<e.imagesToLoad.length;i+=1){const s=e.imagesToLoad[i];e.loadImage(s,s.currentSrc||s.getAttribute("src"),s.srcset||s.getAttribute("srcset"),s.sizes||s.getAttribute("sizes"),!0,t)}}const or={loadImage:rr,preloadImages:ar};function lr(){const e=this,{isLocked:t,params:i}=e,{slidesOffsetBefore:s}=i;if(s){const n=e.slides.length-1,r=e.slidesGrid[n]+e.slidesSizesGrid[n]+s*2;e.isLocked=e.size>r}else e.isLocked=e.snapGrid.length===1;i.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),i.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}const cr={checkOverflow:lr},jt={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function dr(e,t){return function(s={}){const n=Object.keys(s)[0],r=s[n];if(typeof r!="object"||r===null){he(t,s);return}if(["navigation","pagination","scrollbar"].indexOf(n)>=0&&e[n]===!0&&(e[n]={auto:!0}),!(n in e&&"enabled"in r)){he(t,s);return}e[n]===!0&&(e[n]={enabled:!0}),typeof e[n]=="object"&&!("enabled"in e[n])&&(e[n].enabled=!0),e[n]||(e[n]={enabled:!1}),he(t,s)}}const pt={eventsEmitter:an,update:gn,translate:Cn,transition:wn,slide:Dn,loop:zn,grabCursor:Rn,events:Zn,breakpoints:er,checkOverflow:cr,classes:nr,images:or},mt={};class J{constructor(...t){let i,s;if(t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?s=t[0]:[i,s]=t,s||(s={}),s=he({},s),i&&!s.el&&(s.el=i),s.el&&P(s.el).length>1){const c=[];return P(s.el).each(l=>{const u=he({},s,{el:l});c.push(new J(u))}),c}const n=this;n.__swiper__=!0,n.support=pi(),n.device=en({userAgent:s.userAgent}),n.browser=sn(),n.eventsListeners={},n.eventsAnyListeners=[],n.modules=[...n.__modules__],s.modules&&Array.isArray(s.modules)&&n.modules.push(...s.modules);const r={};
23n.modules.forEach(c=>{c({swiper:n,extendParams:dr(s,r),on:n.on.bind(n),once:n.once.bind(n),off:n.off.bind(n),emit:n.emit.bind(n)})});const o=he({},jt,r);return n.params=he({},o,mt,s),n.originalParams=he({},n.params),n.passedParams=he({},s),n.params&&n.params.on&&Object.keys(n.params.on).forEach(c=>{n.on(c,n.params.on[c])}),n.params&&n.params.onAny&&n.onAny(n.params.onAny),n.$=P,Object.assign(n,{enabled:n.params.enabled,el:i,classNames:[],slides:P(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return n.params.direction==="horizontal"},isVertical(){return n.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev,touchEvents:function(){const l=["touchstart","touchmove","touchend","touchcancel"],u=["pointerdown","pointermove","pointerup"];return n.touchEventsTouch={start:l[0],move:l[1],end:l[2],cancel:l[3]},n.touchEventsDesktop={start:u[0],move:u[1],end:u[2]},n.support.touch||!n.params.simulateTouch?n.touchEventsTouch:n.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:n.params.focusableElements,lastClickTime:Pe(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:n.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),n.emit("_swiper"),n.params.init&&n.init(),n}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,i){const s=this;t=Math.min(Math.max(t,0),1);const n=s.minTranslate(),o=(s.maxTranslate()-n)*t+n;s.translateTo(o,typeof i=="undefined"?0:i),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const i=t.el.className.split(" ").filter(s=>s.indexOf("swiper")===0||s.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",i.join(" "))}getSlideClasses(t){const i=this;return t.className.split(" ").filter(s=>s.indexOf("swiper-slide")===0||s.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const i=[];t.slides.each(s=>{const n=t.getSlideClasses(s);i.push({slideEl:s,classNames:n}),t.emit("_slideClass",s,n)}),t.emit("_slideClasses",i)}slidesPerViewDynamic(t="current",i=!1){const s=this,{params:n,slides:r,slidesGrid:o,slidesSizesGrid:c,size:l,activeIndex:u}=s;let h=1;if(n.centeredSlides){let f=r[u].swiperSlideSize,p;for(let m=u+1;m<r.length;m+=1)r[m]&&!p&&(f+=r[m].swiperSlideSize,h+=1,f>l&&(p=!0));for(let m=u-1;m>=0;m-=1)r[m]&&!p&&(f+=r[m].swiperSlideSize,h+=1,f>l&&(p=!0))}else if(t==="current")for(let f=u+1;f<r.length;f+=1)(i?o[f]+c[f]-o[u]<l:o[f]-o[u]<l)&&(h+=1);else for(let f=u-1;f>=0;f-=1)o[u]-o[f]<l&&(h+=1);return h}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:i,params:s}=t;s.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function n(){const o=t.rtlTranslate?t.translate*-1:t.translate,c=Math.min(Math.max(o,t.maxTranslate()),t.minTranslate());t.setTranslate(c),t.updateActiveIndex(),t.updateSlidesClasses()}let r;t.params.freeMode&&t.params.freeMode.enabled?(n(),t.params.autoHeight&&t.updateAutoHeight()):((t.params.slidesPerView==="auto"||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?r=t.slideTo(t.slides.length-1,0,!1,!0):r=t.slideTo(t.activeIndex,0,!1,!0),r||n()),s.watchOverflow&&i!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,i=!0){const s=this,n=s.params.direction;return t||(t=n==="horizontal"?"vertical":"horizontal"),t===n||t!=="horizontal"&&t!=="vertical"||(s.$el.removeClass(`${s.params.containerModifierClass}${n}`).addClass(`${s.params.containerModifierClass}${t}`),s.emitContainerClasses(),s.params.direction=t,s.slides.each(r=>{t==="vertical"?r.style.width="":r.style.height=""}),s.emit("changeDirection"),i&&s.update()),s}mount(t){const i=this;if(i.mounted)return!0;const s=P(t||i.params.el);if(t=s[0],!t)return!1;t.swiper=i;const n=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=(()=>
23{if(t&&t.shadowRoot&&t.shadowRoot.querySelector){const c=P(t.shadowRoot.querySelector(n()));return c.children=l=>s.children(l),c}return s.children(n())})();if(o.length===0&&i.params.createElements){const l=se().createElement("div");o=P(l),l.className=i.params.wrapperClass,s.append(l),s.children(`.${i.params.slideClass}`).each(u=>{o.append(u)})}return Object.assign(i,{$el:s,el:t,$wrapperEl:o,wrapperEl:o[0],mounted:!0,rtl:t.dir.toLowerCase()==="rtl"||s.css("direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(t.dir.toLowerCase()==="rtl"||s.css("direction")==="rtl"),wrongRTL:o.css("display")==="-webkit-box"}),!0}init(t){const i=this;return i.initialized||i.mount(t)===!1||(i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.params.loop&&i.loopCreate(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.preloadImages&&i.preloadImages(),i.params.loop?i.slideTo(i.params.initialSlide+i.loopedSlides,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.attachEvents(),i.initialized=!0,i.emit("init"),i.emit("afterInit")),i}destroy(t=!0,i=!0){const s=this,{params:n,$el:r,$wrapperEl:o,slides:c}=s;return typeof s.params=="undefined"||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),n.loop&&s.loopDestroy(),i&&(s.removeClasses(),r.removeAttr("style"),o.removeAttr("style"),c&&c.length&&c.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(l=>{s.off(l)}),t!==!1&&(s.$el[0].swiper=null,Xs(s)),s.destroyed=!0),null}static extendDefaults(t){he(mt,t)}static get extendedDefaults(){return mt}static get defaults(){return jt}static installModule(t){J.prototype.__modules__||(J.prototype.__modules__=[]);const i=J.prototype.__modules__;typeof t=="function"&&i.indexOf(t)<0&&i.push(t)}static use(t){return Array.isArray(t)?(t.forEach(i=>J.installModule(i)),J):(J.installModule(t),J)}}Object.keys(pt).forEach(e=>{Object.keys(pt[e]).forEach(t=>{J.prototype[t]=pt[e][t]})});J.use([nn,rn]);function vi(e,t,i,s){const n=se();return e.params.createElements&&Object.keys(s).forEach(r=>{if(!i[r]&&i.auto===!0){let o=e.$el.children(`.${s[r]}`)[0];o||(o=n.createElement("div"),o.className=s[r],e.$el.append(o)),i[r]=o,t[r]=o}}),i}function qe({swiper:e,extendParams:t,on:i,emit:s}){t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}}),e.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null};function n(f){let p;return f&&(p=P(f),e.params.uniqueNavElements&&typeof f=="string"&&p.length>1&&e.$el.find(f).length===1&&(p=e.$el.find(f))),p}function r(f,p){const m=e.params.navigation;f&&f.length>0&&(f[p?"addClass":"removeClass"](m.disabledClass),f[0]&&f[0].tagName==="BUTTON"&&(f[0].disabled=p),e.params.watchOverflow&&e.enabled&&f[e.isLocked?"addClass":"removeClass"](m.lockClass))}function o(){if(e.params.loop)return;const{$nextEl:f,$prevEl:p}=e.navigation;r(p,e.isBeginning&&!e.params.rewind),r(f,e.isEnd&&!e.params.rewind)}function c(f){f.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&e.slidePrev()}function l(f){f.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&e.slideNext()}function u(){const f=e.params.navigation;if(e.params.navigation=vi(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(f.nextEl||f.prevEl))return;const p=n(f.nextEl),m=n(f.prevEl);p&&p.length>0&&p.on("click",l),m&&m.length>0&&m.on("click",c),Object.assign(e.navigation,{$nextEl:p,nextEl:p&&p[0],$prevEl:m,prevEl:m&&m[0]}),e.enabled||(p&&p.addClass(f.lockClass),m&&m.addClass(f.lockClass))}function h(){const{$nextEl:f,$prevEl:p}=e.navigation;f&&f.length&&(f.off("click",l),f.removeClass(e.params.navigation.disabledClass)),p&&p.length&&(p.off("click",c),p.removeClass(e.params.navigation.disabledClass))}i("init",()=>{u(),o()}),i("toEdge fromEdge lock unlock",()=>{o()}),i("destroy",()=>{h()}),i("enable disable",()=>{const{$nextEl:f,$prevEl:p}=e.navigation;f&&f[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass),p&&p[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass)}),i("click",(f,p)=>{const{$nextEl:m,$prevEl:v}=e.navigation,S=p.target;if(e.params.navigation.hideOnClick&&!P(S).is(v)&&!P(S).is(m)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===S||e.pagination.el.contains(S)))return;let b;m?b=m.hasClass(e.params.navigation.hiddenClass):v&&(b=v.hasClass(e.params.navigation.hiddenClass)),s(b===!0?"navigationShow":"navigationHide"),m&&m.toggleClass(e.params.navigation.hiddenClass),v&&v.toggleClass(e.params.navigation.hiddenClass)}}),Object.assign(e.navigation,{update:o,init:u,destroy:h})}function He(e=""){return`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function kt({swiper:e,extendParams:t,on:i,emit:s}){const n="swiper-pagination";t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:m=>m,formatFractionTotal:m=>m,bulletClass:`${n}-bullet`,bulletActiveClass:`${n}-bullet-active`,modifierClass:`${n}-`,currentClass:`${n}-current`,totalClass:`${n}-total`,hiddenClass:`${n}-hidden`,progressbarFillClass:`${n}-progressbar-fill`,progressbarOppositeClass:`${n}-progressbar-opposite`,clickableClass:`${n}-clickable`,lockClass:`${n}-lock`,horizontalClass:`${n}-horizontal`,verticalClass:`${n}-vertical`}}),e.pagination={el:null,$el:null,bullets:[]};let r,o=0;function c(){return!e.params.pagination.el||!e.pagination.el||!e.pagination.$el||e.pagination.$el.length===0}function l(m,v){const{bulletActiveClass:S}=e.params.pagination;m[v]().addClass(`${S}-${v}`)[v]().addClass(`${S}-${v}-${v}`)}function u(){const m=e.rtl,v=e.params.pagination;if(c())return;const S=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,b=e.pagination.$el;let C;
23const A=e.params.loop?Math.ceil((S-e.loopedSlides*2)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(C=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),C>S-1-e.loopedSlides*2&&(C-=S-e.loopedSlides*2),C>A-1&&(C-=A),C<0&&e.params.paginationType!=="bullets"&&(C=A+C)):typeof e.snapIndex!="undefined"?C=e.snapIndex:C=e.activeIndex||0,v.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const I=e.pagination.bullets;let M,L,O;if(v.dynamicBullets&&(r=I.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),b.css(e.isHorizontal()?"width":"height",`${r*(v.dynamicMainBullets+4)}px`),v.dynamicMainBullets>1&&e.previousIndex!==void 0&&(o+=C-(e.previousIndex-e.loopedSlides||0),o>v.dynamicMainBullets-1?o=v.dynamicMainBullets-1:o<0&&(o=0)),M=Math.max(C-o,0),L=M+(Math.min(I.length,v.dynamicMainBullets)-1),O=(L+M)/2),I.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map(z=>`${v.bulletActiveClass}${z}`).join(" ")),b.length>1)I.each(z=>{const x=P(z),$=x.index();$===C&&x.addClass(v.bulletActiveClass),v.dynamicBullets&&($>=M&&$<=L&&x.addClass(`${v.bulletActiveClass}-main`),$===M&&l(x,"prev"),$===L&&l(x,"next"))});else{const z=I.eq(C),x=z.index();if(z.addClass(v.bulletActiveClass),v.dynamicBullets){const $=I.eq(M),k=I.eq(L);for(let N=M;N<=L;N+=1)I.eq(N).addClass(`${v.bulletActiveClass}-main`);if(e.params.loop)if(x>=I.length){for(let N=v.dynamicMainBullets;N>=0;N-=1)I.eq(I.length-N).addClass(`${v.bulletActiveClass}-main`);I.eq(I.length-v.dynamicMainBullets-1).addClass(`${v.bulletActiveClass}-prev`)}else l($,"prev"),l(k,"next");else l($,"prev"),l(k,"next")}}if(v.dynamicBullets){const z=Math.min(I.length,v.dynamicMainBullets+4),x=(r*z-r)/2-O*r,$=m?"right":"left";I.css(e.isHorizontal()?$:"top",`${x}px`)}}if(v.type==="fraction"&&(b.find(He(v.currentClass)).text(v.formatFractionCurrent(C+1)),b.find(He(v.totalClass)).text(v.formatFractionTotal(A))),v.type==="progressbar"){let I;v.progressbarOpposite?I=e.isHorizontal()?"vertical":"horizontal":I=e.isHorizontal()?"horizontal":"vertical";const M=(C+1)/A;let L=1,O=1;I==="horizontal"?L=M:O=M,b.find(He(v.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${L}) scaleY(${O})`).transition(e.params.speed)}v.type==="custom"&&v.renderCustom?(b.html(v.renderCustom(e,C+1,A)),s("paginationRender",b[0])):s("paginationUpdate",b[0]),e.params.watchOverflow&&e.enabled&&b[e.isLocked?"addClass":"removeClass"](v.lockClass)}function h(){const m=e.params.pagination;if(c())return;const v=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,S=e.pagination.$el;let b="";if(m.type==="bullets"){let C=e.params.loop?Math.ceil((v-e.loopedSlides*2)/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&!e.params.loop&&C>v&&(C=v);for(let A=0;A<C;A+=1)m.renderBullet?b+=m.renderBullet.call(e,A,m.bulletClass):b+=`<${m.bulletElement} class="${m.bulletClass}"></${m.bulletElement}>`;S.html(b),e.pagination.bullets=S.find(He(m.bulletClass))}m.type==="fraction"&&(m.renderFraction?b=m.renderFraction.call(e,m.currentClass,m.totalClass):b=`<span class="${m.currentClass}"></span> / <span class="${m.totalClass}"></span>`,S.html(b)),m.type==="progressbar"&&(m.renderProgressbar?b=m.renderProgressbar.call(e,m.progressbarFillClass):b=`<span class="${m.progressbarFillClass}"></span>`,S.html(b)),m.type!=="custom"&&s("paginationRender",e.pagination.$el[0])}function f(){e.params.pagination=vi(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const m=e.params.pagination;if(!m.el)return;let v=P(m.el);v.length!==0&&(e.params.uniqueNavElements&&typeof m.el=="string"&&v.length>1&&(v=e.$el.find(m.el),v.length>1&&(v=v.filter(S=>P(S).parents(".swiper")[0]===e.el))),m.type==="bullets"&&m.clickable&&v.addClass(m.clickableClass),v.addClass(m.modifierClass+m.type),v.addClass(m.modifierClass+e.params.direction),m.type==="bullets"&&m.dynamicBullets&&(v.addClass(`${m.modifierClass}${m.type}-dynamic`),o=0,m.dynamicMainBullets<1&&(m.dynamicMainBullets=1)),m.type==="progressbar"&&m.progressbarOpposite&&v.addClass(m.progressbarOppositeClass),m.clickable&&v.on("click",He(m.bulletClass),function(b){b.preventDefault();let C=P(this).index()*e.params.slidesPerGroup;e.params.loop&&(C+=e.loopedSlides),e.slideTo(C)}),Object.assign(e.pagination,{$el:v,el:v[0]}),e.enabled||v.addClass(m.lockClass))}function p(){const m=e.params.pagination;if(c())return;const v=e.pagination.$el;v.removeClass(m.hiddenClass),v.removeClass(m.modifierClass+m.type),v.removeClass(m.modifierClass+e.params.direction),e.pagination.bullets&&e.pagination.bullets.removeClass&&e.pagination.bullets.removeClass(m.bulletActiveClass),m.clickable&&v.off("click",He(m.bulletClass))}i("init",()=>{f(),h(),u()}),i("activeIndexChange",()=>{(e.params.loop||typeof e.snapIndex=="undefined")&&u()}),i("snapIndexChange",()=>{e.params.loop||u()}),i("slidesLengthChange",()=>{e.params.loop&&(h(),u())}),i("snapGridLengthChange",()=>{e.params.loop||(h(),u())}),i("destroy",()=>{p()}),i("enable disable",()=>{const{$el:m}=e.pagination;m&&m[e.enabled?"removeClass":"addClass"](e.params.pagination.lockClass)}),i("lock unlock",()=>{u()}),i("click",(m,v)=>{const S=v.target,{$el:b}=e.pagination;if(e.params.pagination.el&&e.params.pagination.hideOnClick&&b.length>0&&!P(S).hasClass(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&S===e.navigation.nextEl||e.navigation.prevEl&&S===e.navigation.prevEl))return;const C=b.hasClass(e.params.pagination.hiddenClass);s(C===!0?"paginationShow":"paginationHide"),b.toggleClass(e.params.pagination.hiddenClass)}}),Object.assign(e.pagination,{render:h,update:u,init:f,destroy:p})}function we({swiper:e,extendParams:t,on:i,emit:s}){t({lazy:{checkInView:!1,enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,scrollingElement:"",elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}}),e.lazy={};let n=!1,r=!1;function o(u,h=!0){const f=e.params.lazy;if(typeof u=="undefined"||e.slides.length===0)return;const m=e.virtual&&e.params.virtual.enabled?e.$wrapperEl.children(`.${e.params.slideClass}[data-swiper-slide-index="${u}"]`):e.slides.eq(u),v=m.find(`.${f.elementClass}:not(.${f.loadedClass}):not(.${f.loadingClass})`);m.hasClass(f.elementClass)&&!m.hasClass(f.loadedClass)&&!m.hasClass(f.loadingClass)&&v.push(m[0]),v.length!==0&&v.each(S=>{const b=P(S);b.addClass(f.loadingClass);const C=b.attr("data-background"),A=b.attr("data-src"),I=b.attr("data-srcset"),M=b.attr("data-sizes"),L=b.parent("picture");e.loadImage(b[0],A||C,I,M,!1,()=>{if(!(typeof e=="undefined"||e===null||!e||e&&!e.params||e.destroyed)){if(C?(b.css("background-image",`url("${C}")`),b.removeAttr("data-background")):(I&&(b.attr("srcset",I),b.removeAttr("data-srcset")),M&&(b.attr("sizes",M),b.removeAttr("data-sizes")),L.length&&L.children("source").each(O=>{const z=P(O);z.attr("data-srcset")&&(z.attr("srcset",z.attr("data-srcset")),z.removeAttr("data-srcset"))}),A&&(b.attr("src",A),b.removeAttr("data-src"))),b.addClass(f.loadedClass).removeClass(f.loadingClass),m.find(`.${f.preloaderClass}`).remove(),e.params.loop&&h){const O=m.attr("data-swiper-slide-index");if(m.hasClass(e.params.slideDuplicateClass)){const z=e.$wrapperEl.children(`[data-swiper-slide-index="${O}"]:not(.${e.params.slideDuplicateClass})`);o(z.index(),!1)}else{const z=e.$wrapperEl.children(`.${e.params.slideDuplicateClass}[data-swiper-slide-index="${O}"]`);o(z.index(),!1)}}s("lazyImageReady",m[0],b[0]),e.params.autoHeight&&e.updateAutoHeight()}}),s("lazyImageLoad",m[0],b[0])})}function c(){const{$wrapperEl:u,params:h,slides:f,activeIndex:p}=e,m=e.virtual&&h.virtual.enabled,v=h.lazy;let S=h.slidesPerView;S==="auto"&&(S=0);function b(A){if(m){if(u.children(`.${h.slideClass}[data-swiper-slide-index="${A}"]`).length)return!0}else if(f[A])return!0;return!1}function C(A){return m?P(A).attr("data-swiper-slide-index"):P(A).index()}if(r||(r=!0),e.params.watchSlidesProgress)u.children(`.${h.slideVisibleClass}`).each(A=>{const I=m?P(A).attr("data-swiper-slide-index"):P(A).index();o(I)});else if(S>1)for(let A=p;A<p+S;A+=1)b(A)&&o(A);else o(p);if(v.loadPrevNext)if(S>1||v.loadPrevNextAmount&&v.loadPrevNextAmount>1){const A=v.loadPrevNextAmount,I=S,M=Math.min(p+I+Math.max(A,I),f.length),L=Math.max(p-Math.max(I,A),0);for(let O=p+S;O<M;O+=1)b(O)&&o(O);for(let O=L;O<p;O+=1)b(O)&&o(O)}else{const A=u.children(`.${h.slideNextClass}`);A.length>0&&o(C(A));const I=u.children(`.${h.slidePrevClass}`);I.length>0&&o(C(I))}}function l(){const u=ee();if(!e||e.destroyed)return;const h=e.params.lazy.scrollingElement?P(e.params.lazy.scrollingElement):P(u),f=h[0]===u,p=f?u.innerWidth:h[0].offsetWidth,m=f?u.innerHe
23ight:h[0].offsetHeight,v=e.$el.offset(),{rtlTranslate:S}=e;let b=!1;S&&(v.left-=e.$el[0].scrollLeft);const C=[[v.left,v.top],[v.left+e.width,v.top],[v.left,v.top+e.height],[v.left+e.width,v.top+e.height]];for(let I=0;I<C.length;I+=1){const M=C[I];if(M[0]>=0&&M[0]<=p&&M[1]>=0&&M[1]<=m){if(M[0]===0&&M[1]===0)continue;b=!0}}const A=e.touchEvents.start==="touchstart"&&e.support.passiveListener&&e.params.passiveListeners?{passive:!0,capture:!1}:!1;b?(c(),h.off("scroll",l,A)):n||(n=!0,h.on("scroll",l,A))}i("beforeInit",()=>{e.params.lazy.enabled&&e.params.preloadImages&&(e.params.preloadImages=!1)}),i("init",()=>{e.params.lazy.enabled&&(e.params.lazy.checkInView?l():c())}),i("scroll",()=>{e.params.freeMode&&e.params.freeMode.enabled&&!e.params.freeMode.sticky&&c()}),i("scrollbarDragMove resize _freeModeNoMomentumRelease",()=>{e.params.lazy.enabled&&(e.params.lazy.checkInView?l():c())}),i("transitionStart",()=>{e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!r)&&(e.params.lazy.checkInView?l():c())}),i("transitionEnd",()=>{e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&(e.params.lazy.checkInView?l():c())}),i("slideChange",()=>{const{lazy:u,cssMode:h,watchSlidesProgress:f,touchReleaseOnEdges:p,resistanceRatio:m}=e.params;u.enabled&&(h||f&&(p||m===0))&&c()}),Object.assign(e.lazy,{load:c,loadInSlide:o})}function Ve({swiper:e,extendParams:t,on:i,emit:s}){let n;e.autoplay={running:!1,paused:!1},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});function r(){const S=e.slides.eq(e.activeIndex);let b=e.params.autoplay.delay;S.attr("data-swiper-autoplay")&&(b=S.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(n),n=rt(()=>{let C;e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),C=e.slidePrev(e.params.speed,!0,!0),s("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?c():(C=e.slideTo(e.slides.length-1,e.params.speed,!0,!0),s("autoplay")):(C=e.slidePrev(e.params.speed,!0,!0),s("autoplay")):e.params.loop?(e.loopFix(),C=e.slideNext(e.params.speed,!0,!0),s("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?c():(C=e.slideTo(0,e.params.speed,!0,!0),s("autoplay")):(C=e.slideNext(e.params.speed,!0,!0),s("autoplay")),(e.params.cssMode&&e.autoplay.running||C===!1)&&r()},b)}function o(){return typeof n!="undefined"||e.autoplay.running?!1:(e.autoplay.running=!0,s("autoplayStart"),r(),!0)}function c(){return!e.autoplay.running||typeof n=="undefined"?!1:(n&&(clearTimeout(n),n=void 0),e.autoplay.running=!1,s("autoplayStop"),!0)}function l(S){e.autoplay.running&&(e.autoplay.paused||(n&&clearTimeout(n),e.autoplay.paused=!0,S===0||!e.params.autoplay.waitForTransition?(e.autoplay.paused=!1,r()):["transitionend","webkitTransitionEnd"].forEach(b=>{e.$wrapperEl[0].addEventListener(b,h)})))}function u(){const S=se();S.visibilityState==="hidden"&&e.autoplay.running&&l(),S.visibilityState==="visible"&&e.autoplay.paused&&(r(),e.autoplay.paused=!1)}function h(S){!e||e.destroyed||!e.$wrapperEl||S.target===e.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach(b=>{e.$wrapperEl[0].removeEventListener(b,h)}),e.autoplay.paused=!1,e.autoplay.running?r():c())}function f(){e.params.autoplay.disableOnInteraction?c():l(),["transitionend","webkitTransitionEnd"].forEach(S=>{e.$wrapperEl[0].removeEventListener(S,h)})}function p(){e.params.autoplay.disableOnInteraction||(e.autoplay.paused=!1,r())}function m(){e.params.autoplay.pauseOnMouseEnter&&(e.$el.on("mouseenter",f),e.$el.on("mouseleave",p))}function v(){e.$el.off("mouseenter",f),e.$el.off("mouseleave",p)}i("init",()=>{e.params.autoplay.enabled&&(o(),se().addEventListener("visibilitychange",u),m())}),i("beforeTransitionStart",(S,b,C)=>{e.autoplay.running&&(C||!e.params.autoplay.disableOnInteraction?e.autoplay.pause(b):c())}),i("sliderFirstMove",()=>{e.autoplay.running&&(e.params.autoplay.disableOnInteraction?c():l())}),i("touchEnd",()=>{e.params.cssMode&&e.autoplay.paused&&!e.params.autoplay.disableOnInteraction&&r()}),i("destroy",()=>{v(),e.autoplay.running&&c(),se().removeEventListener("visibilitychange",u)}),Object.assign(e.autoplay,{pause:l,run:r,start:o,stop:c})}function ur({swiper:e,extendParams:t,emit:i,once:s}){t({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function n(){const{touchEventsData:o,touches:c}=e;o.velocities.length===0&&o.velocities.push({position:c[e.isHorizontal()?"startX":"startY"],time:o.touchStartTime}),o.velocities.push({position:c[e.isHorizontal()?"currentX":"currentY"],time:Pe()})}function r({currentPos:o}){const{params:c,$wrapperEl:l,rtlTranslate:u,snapGrid:h,touchEventsData:f}=e,m=Pe()-f.touchStartTime;if(o<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(o>-e.maxTranslate()){e.slides.length<h.length?e.slideTo(h.length-1):e.slideTo(e.slides.length-1);return}if(c.freeMode.momentum){if(f.velocities.length>1){const L=f.velocities.pop(),O=f.velocities.pop(),z=L.position-O.position,x=L.time-O.time;e.velocity=z/x,e.velocity/=2,Math.abs(e.velocity)<c.freeMode.minimumVelocity&&(e.velocity=0),(x>150||Pe()-L.time>300)&&(e.velocity=0)}else e.velocity=0;
23e.velocity*=c.freeMode.momentumVelocityRatio,f.velocities.length=0;let v=1e3*c.freeMode.momentumRatio;const S=e.velocity*v;let b=e.translate+S;u&&(b=-b);let C=!1,A;const I=Math.abs(e.velocity)*20*c.freeMode.momentumBounceRatio;let M;if(b<e.maxTranslate())c.freeMode.momentumBounce?(b+e.maxTranslate()<-I&&(b=e.maxTranslate()-I),A=e.maxTranslate(),C=!0,f.allowMomentumBounce=!0):b=e.maxTranslate(),c.loop&&c.centeredSlides&&(M=!0);else if(b>e.minTranslate())c.freeMode.momentumBounce?(b-e.minTranslate()>I&&(b=e.minTranslate()+I),A=e.minTranslate(),C=!0,f.allowMomentumBounce=!0):b=e.minTranslate(),c.loop&&c.centeredSlides&&(M=!0);else if(c.freeMode.sticky){let L;for(let O=0;O<h.length;O+=1)if(h[O]>-b){L=O;break}Math.abs(h[L]-b)<Math.abs(h[L-1]-b)||e.swipeDirection==="next"?b=h[L]:b=h[L-1],b=-b}if(M&&s("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(u?v=Math.abs((-b-e.translate)/e.velocity):v=Math.abs((b-e.translate)/e.velocity),c.freeMode.sticky){const L=Math.abs((u?-b:b)-e.translate),O=e.slidesSizesGrid[e.activeIndex];L<O?v=c.speed:L<2*O?v=c.speed*1.5:v=c.speed*2.5}}else if(c.freeMode.sticky){e.slideToClosest();return}c.freeMode.momentumBounce&&C?(e.updateProgress(A),e.setTransition(v),e.setTranslate(b),e.transitionStart(!0,e.swipeDirection),e.animating=!0,l.transitionEnd(()=>{!e||e.destroyed||!f.allowMomentumBounce||(i("momentumBounce"),e.setTransition(c.speed),setTimeout(()=>{e.setTranslate(A),l.transitionEnd(()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(i("_freeModeNoMomentumRelease"),e.updateProgress(b),e.setTransition(v),e.setTranslate(b),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,l.transitionEnd(()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(b),e.updateActiveIndex(),e.updateSlidesClasses()}else if(c.freeMode.sticky){e.slideToClosest();return}else c.freeMode&&i("_freeModeNoMomentumRelease");(!c.freeMode.momentum||m>=c.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchMove:n,onTouchEnd:r}})}function hr(e){const{effect:t,swiper:i,on:s,setTranslate:n,setTransition:r,overwriteParams:o,perspective:c}=e;s("beforeInit",()=>{if(i.params.effect!==t)return;i.classNames.push(`${i.params.containerModifierClass}${t}`),c&&c()&&i.classNames.push(`${i.params.containerModifierClass}3d`);const l=o?o():{};Object.assign(i.params,l),Object.assign(i.originalParams,l)}),s("setTranslate",()=>{i.params.effect===t&&n()}),s("setTransition",(l,u)=>{i.params.effect===t&&r(u)})}function fr(e,t){return e.transformEl?t.find(e.transformEl).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):t}function pr({swiper:e,duration:t,transformEl:i,allSlides:s}){const{slides:n,activeIndex:r,$wrapperEl:o}=e;if(e.params.virtualTranslate&&t!==0){let c=!1,l;l=i?n.find(i):n,l.transitionEnd(()=>{if(c||!e||e.destroyed)return;c=!0,e.animating=!1;const u=["webkitTransitionEnd","transitionend"];for(let h=0;h<u.length;h+=1)o.trigger(u[h])})}}function ot({swiper:e,extendParams:t,on:i}){t({fadeEffect:{crossFade:!1,transformEl:null}}),hr({effect:"fade",swiper:e,on:i,setTranslate:()=>{const{slides:r}=e,o=e.params.fadeEffect;for(let c=0;c<r.length;c+=1){const l=e.slides.eq(c);let h=-l[0].swiperSlideOffset;e.params.virtualTranslate||(h-=e.translate);let f=0;e.isHorizontal()||(f=h,h=0);const p=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(l[0].progress),0):1+Math.min(Math.max(l[0].progress,-1),0);fr(o,l).css({opacity:p}).transform(`translate3d(${h}px, ${f}px, 0px)`)}},setTransition:r=>{const{transformEl:o}=e.params.fadeEffect;(o?e.slides.find(o):e.slides).transition(r),pr({swiper:e,duration:r,transformEl:o,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}const mr={name:"heroSlider",when:()=>!0,init:({document:e})=>{const t=e.getElementById("hero-slider");if(!t)return;const i=new J(t,{modules:[Ve,ot,we,kt,qe],loop:!1,slidesPerView:1,spaceBetween:0,autoplay:{delay:8e3,disableOnInteraction:!1},speed:800,effect:"fade",fadeEffect:{crossFade:!0},lazy:{loadPrevNext:!0},pagination:{el:"#hero-slider-pagination",clickable:!0},navigation:{nextEl:"#hero-slider-next",prevEl:"#hero-slider-prev"},allowTouchMove:!1}),s=()=>{var o;const n=i.slides[i.activeIndex];if(!n)return;const r=n.querySelector("video");if(r){i.autoplay.stop(),r.currentTime=0,r.play().catch(()=>{});const c=((o=i.params.autoplay)==null?void 0:o.delay)||0,l=(r.duration||0)*1e3,u=Math.max(l-c,0),h=()=>{i.autoplay.start(),r.removeEventListener("ended",h)};u>0?setTimeout(h,u):r.addEventListener("ended",h)}else i.autoplay.paused&&i.autoplay.start()};return i.on("slideChange",s),s(),()=>{i.off("slideChange",s),i.destroy(!0,!0)}}},gr={name:"Footer",when:({document:e})=>!!e.getElementById("footer"),init:({window:e,document:t})=>(vr(t),()=>{})};
23function vr(e){const t=e.querySelectorAll("#footer .nav-dropdown .icon");t.length&&t.forEach(i=>{i.addEventListener("click",s=>{const r=s.currentTarget.closest(".nav-dropdown");if(!r)return;const o=r.nextElementSibling;if(!o||!o.classList.contains("nav-dropdown-menu"))return;const c=o.querySelector("ul");if(!c)return;if(r.classList.toggle("active")){const u=c.scrollHeight;o.style.height=`${u}px`,o.style.transition="height 0.3s ease"}else o.style.height="0px"})})}const yr={name:"Full Width Slider Block",when:()=>!0,init:({document:e})=>{const t=e.getElementById("full-width-slider-block");if(!t)return;const i=new J(t.querySelector(".swiper"),{modules:[Ve,ot,we,kt,qe],loop:!1,slidesPerView:1,spaceBetween:0,speed:800,effect:"fade",fadeEffect:{crossFade:!0},lazy:{loadPrevNext:!0},allowTouchMove:!1}),n=Array.from(t.querySelectorAll(".btn-elem")).map((r,o)=>{const c=l=>{var f;l instanceof MouseEvent&&l.preventDefault();const u=t.querySelector(".btn-elem.active");u&&u.classList.remove("active"),r.classList.add("active");const h=Math.max(0,Math.min(o,i.slides.length-1));i.activeIndex!==h&&(i.slideTo(h),(f=i.autoplay)==null||f.start())};return r.addEventListener("click",c),i.on("slideChange",()=>{const l=Array.from(t.querySelectorAll(".btn-elem"));l.forEach(h=>h.classList.remove("active"));const u=i.realIndex;l[u]&&l[u].classList.add("active")}),()=>{r.removeEventListener("click",c)}});return()=>{n.forEach(r=>r()),i.destroy(!0,!0)}}},br={name:"Mobil Slider",when:()=>!0,init:({document:e})=>{const t=Array.from(e.querySelectorAll(".mobile-swiper"));if(t.length===0)return;const i=t.map(s=>new J(s,{modules:[Ve,we],loop:!1,slidesPerView:"auto",spaceBetween:0,speed:800,lazy:{loadPrevNext:!1},allowTouchMove:!0}));return()=>{i.forEach(s=>s.destroy(!0,!0))}}},Er={name:"Mobil Slider",when:()=>!0,init:({document:e})=>{const t=Array.from(e.querySelectorAll(".news-section"));if(t.length===0)return;const i=t.map(s=>new J(s.querySelector(".swiper"),{modules:[Ve,we,qe],loop:!1,slidesPerView:"auto",spaceBetween:0,speed:800,lazy:{loadPrevNext:!1},allowTouchMove:!0,navigation:{nextEl:s.querySelector(".btn-slider-nav.next"),prevEl:s.querySelector(".btn-slider-nav.prev")}}));return()=>{i.forEach(s=>s.destroy(!0,!0))}}},Sr={name:"Mobil Slider",when:()=>!0,init:({document:e})=>{const t=Array.from(e.querySelectorAll(".card-list-block"));if(t.length===0)return;const i=t.map(s=>{if(s.querySelector(".swiper"))return new J(s.querySelector(".swiper"),{modules:[we],loop:!1,slidesPerView:"auto",spaceBetween:0,speed:800,lazy:{loadPrevNext:!1},allowTouchMove:!0})});return()=>{i.forEach(s=>s.destroy(!0,!0))}}},Cr={name:"Gallery Block",when:()=>!0,init:({document:e})=>{const t=e.querySelector(".gallery-block");if(!t)return;const i=new J(t.querySelector(".swiper"),{modules:[Ve,we],loop:!1,slidesPerView:"auto",resistance:!1,freeMode:{momentumBounce:!1},autoplay:{delay:4e3,disableOnInteraction:!1},breakpoints:{0:{spaceBetween:15},768:{spaceBetween:30}},speed:800,lazy:{loadPrevNext:!1},allowTouchMove:!0});return()=>{i.destroy(!0,!0)}}},xr={name:"imageBlockSlider",when:()=>!0,init:({document:e})=>{const t=Array.from(e.querySelectorAll(".image-block-slider"));if(t.length===0)return;const i=t.map(s=>{if(s.querySelector(".swiper")){const n=new J(s.querySelector(".swiper"),{modules:[Ve,ot,we,kt,qe],loop:!0,speed:800,lazy:{loadPrevNext:!1},slidesPerView:1,spaceBetween:0,autoplay:{delay:8e3,disableOnInteraction:!1},effect:"fade",fadeEffect:{crossFade:!0},allowTouchMove:!0});e.querySelectorAll(".btn-nav-left").forEach(r=>{r.addEventListener("click",function(){n.slidePrev()})}),e.querySelectorAll(".btn-nav-right").forEach(r=>{r.addEventListener("click",function(){n.slideNext()})})}});return()=>{i.forEach(s=>s.destroy(!0,!0))}}},Tr={name:"GLightbox",when:()=>!0,init:({document:e})=>{if(e.querySelectorAll(".gallery-block").length==0)return;const i=At({touchNavigation:!0,loop:!0,autoplayVideos:!0});return()=>{i.destroy()}}},_r="body-modal-active",gt="modal-active",Wt="[data-modal]",wr=".modal-close-button, .modal-backdrop, [data-modal-close]",Ir={name:"Modal",when:({document:e})=>!!e.querySelector(Wt),init:({document:e})=>{const t=Array.from(e.querySelectorAll(Wt));if(!t.length)return;const i=Array.from(e.querySelectorAll(wr));let s=null;const n=e.body,r=f=>{n&&n.classList.toggle(_r,f)},o=f=>{const p=f.trim();if(!p)return;const m=e.querySelector(p);m&&(s&&s!==m&&s.classList.remove(gt),s=m,r(!0),m.classList.add(gt))},c=()=>{s&&(s.classList.remove(gt),s=null,r(!1))},l=f=>{f.preventDefault();const p=f.currentTarget;if(!p)return;const m=p.getAttribute("data-modal");m&&o(m)},u=f=>{f.key==="Escape"&&c()},h=f=>{f.preventDefault(),c()};return t.forEach(f=>{f.addEventListener("click",l)}
23),i.forEach(f=>{f.addEventListener("click",h)}),e.addEventListener("keydown",u),()=>{t.forEach(f=>{f.removeEventListener("click",l)}),i.forEach(f=>{f.removeEventListener("click",h)}),e.removeEventListener("keydown",u),c()}}};function Ar(e,t,i={}){const{days:s=30,path:n="/",domain:r,secure:o=!1,sameSite:c="Lax"}=i,l=(()=>{if(!s)return"";const p=new Date;return p.setTime(p.getTime()+s*24*60*60*1e3),`; expires=${p.toUTCString()}`})(),u=r?`; domain=${r}`:"",h=o?"; secure":"",f=c?`; samesite=${c}`:"";document.cookie=`${e}=${encodeURIComponent(t)}${l}; path=${n}${u}${f}${h}`}function Lr(e){const t=`${e}=`,i=document.cookie.split(";");for(const s of i){let n=s;for(;n.charAt(0)===" ";)n=n.substring(1);if(n.indexOf(t)===0)return decodeURIComponent(n.substring(t.length))}return null}const kr="glightbox-auto-opened",Mr={name:"AutoOpenModal",when:()=>!0,init:({window:e,document:t})=>{const i=t.querySelector(".glightbox-auto-open");if(!i)return;const s=i.getAttribute("data-cookie")||kr;if(Lr(s)==="1")return;const r=Array.from(t.querySelectorAll(".glightbox")).indexOf(i);if(r<0)return;const o=At({touchNavigation:!1,loop:!1,autoplayVideos:!0});return o.on("close",()=>{Ar(s,"1",{days:365})}),e.setTimeout(()=>o.openAt(r),0),()=>{o.destroy()}}},Or={name:"primaryTab",when:()=>!0,init:({document:e})=>{const t=Array.from(e.querySelectorAll(".primary-tab"));if(t.length===0)return;const i=[];return t.forEach(s=>{const n=Array.from(s.querySelectorAll(".primary-tab-head .btn")),r=Array.from(s.querySelectorAll(".primary-tab-body .primary-tab-pane"));if(n.length===0||r.length===0)return;const o=c=>{!n[c]||!r[c]||(n.forEach(l=>l.classList.remove("active")),r.forEach(l=>l.classList.remove("active")),n[c].classList.add("active"),r[c].classList.add("active"))};n.forEach((c,l)=>{const u=()=>o(l);c.addEventListener("click",u),i.push(()=>c.removeEventListener("click",u))})}),()=>{i.forEach(s=>s())}}},Pr={name:"iq-features",when:({document:e})=>!!e.getElementById("iq-features"),init:({document:e})=>{var b;const t=e.getElementById("iq-features");if(!t)return()=>{};const i=t.querySelector(".dot-circle"),s=i?Array.from(i.querySelectorAll(".item-dot")):[],n=Array.from(t.querySelectorAll(".cir-item"));if(!i||s.length===0||n.length===0)return()=>{};const r=2*Math.PI/s.length,o=()=>{const C=i.clientWidth,A=i.clientHeight;if(C===0||A===0)return;const I=C/2.5;let M=0;s.forEach(L=>{const O=Math.round(C/2+I*Math.cos(M)-L.offsetWidth/2),z=Math.round(A/2+I*Math.sin(M)-L.offsetHeight/2);L.style.left=`${O}px`,L.style.top=`${z}px`,M+=r})},c=36,l="2s",u="1s";let h=Number((b=t.querySelector(".item-dot.active"))==null?void 0:b.dataset.tab)||1;const f=C=>{Number.isFinite(C)&&(h=C>s.length?1:C<1?s.length:C,s.forEach(A=>{const I=Number(A.dataset.tab)===h;A.classList.toggle("active",I),A.style.transform=`rotate(${(h-1)*c}deg)`,A.style.transition=u}),n.forEach(A=>{const I=A.classList.contains(`cir-item${h}`);A.classList.toggle("active",I)}),i.style.transform=`rotate(${360-(h-1)*c}deg)`,i.style.transition=l)},p=C=>{const A=C.currentTarget,I=A?Number(A.dataset.tab):NaN;Number.isFinite(I)&&f(I)};s.forEach(C=>C.addEventListener("click",p)),o(),f(h);const m=window.setInterval(()=>{const C=h>=s.length?1:h+1;f(C)},5e3);let v;const S=()=>{v&&window.clearTimeout(v),v=window.setTimeout(()=>{o(),f(h)},200)};return window.addEventListener("resize",S),()=>{s.forEach(C=>C.removeEventListener("click",p)),window.clearInterval(m),window.removeEventListener("resize",S),v&&window.clearTimeout(v)}}},Dr={name:"ethicalLine",when:({document:e})=>!!e.body.classList.contains("body-ethical-line"),init:({document:e})=>{var c;const t=e.querySelector(".primary-tab-boxes");if(!t)return()=>{};const i=Array.from(t.querySelectorAll(".tab-box")),s=Array.from(e.querySelectorAll(".block-bg-pattern.block-contact-tab"));if(i.length===0||s.length===0)return()=>{};const n=l=>{const u=l.dataset.target;if(!u)return;const h=e.getElementById(u);h&&(i.forEach(f=>
23f.classList.toggle("active",f===l)),s.forEach(f=>f.classList.toggle("active",f===h)))},r=l=>{l.preventDefault();const u=l.currentTarget;!u||u.classList.contains("active")||n(u)};i.forEach(l=>l.addEventListener("click",r));const o=(c=i.find(l=>l.classList.contains("active")))!=null?c:i[0];return o&&n(o),()=>{i.forEach(l=>l.removeEventListener("click",r))}}};class Nr{constructor(){ke(this,"status",!1);ke(this,"loadingPromise",null);ke(this,"widgetMap",new Map)}init(t){return t.querySelector(".g-recaptcha")?this.status&&window.grecaptcha?(this.renderWhenReady(t),Promise.resolve()):window.grecaptcha&&!this.status?(this.status=!0,this.renderWhenReady(t),Promise.resolve()):this.loadingPromise?this.loadingPromise:(this.loadingPromise=new Promise(i=>{var r;const s=t.createElement("script"),n=t.getElementsByTagName("script")[0];s.async=!0,s.defer=!0,s.src=this.getScriptSrc(t),s.onload=()=>{this.status=!0,this.renderWhenReady(t,i)},s.onerror=()=>i(),n!=null&&n.parentNode?n.parentNode.insertBefore(s,n):(r=t.head)==null||r.appendChild(s)}),this.loadingPromise):Promise.resolve()}hasResponse(t){return!!this.getResponse(t||void 0)}getResponse(t){var s;if(!t)return"";const i=this.widgetMap.get(t);return i===void 0?"":((s=window.grecaptcha)==null?void 0:s.getResponse(i))||""}renderWhenReady(t,i){const{grecaptcha:s}=window;if(!s){i==null||i();return}s.ready(()=>{this.renderWidgets(t),i==null||i()})}renderWidgets(t){const{grecaptcha:i}=window;if(!i)return;Array.from(t.querySelectorAll(".g-recaptcha")).forEach(n=>{if(this.widgetMap.has(n))return;const r={sitekey:n.dataset.sitekey||""};if(!r.sitekey)return;[["theme","theme"],["size","size"],["tabindex","tabindex"],["callback","callback"],["expiredCallback","expired-callback"],["errorCallback","error-callback"]].forEach(([l,u])=>{const h=n.dataset[l];h&&(r[u]=h)});const c=i.render(n,r);this.widgetMap.set(n,c),n.dataset.widgetId=String(c)})}getScriptSrc(t){return`https://www.google.com/recaptcha/api.js?hl=${t.documentElement.lang||"en"}&render=explicit`}}const vt=new Nr,$r={name:"gallery",when:()=>!0,postData:async function(e="",t={}){return(await fetch(e,{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json","X-App-Language":"TR"},redirect:"follow",referrerPolicy:"no-referrer",body:JSON.stringify(t)})).json()},init:({})=>()=>{}};/*! choices.js v11.1.0 | © 2025 Josh Johnson | https://github.com/jshjohnson/Choices#readme */var St=function(e,t){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(i[n]=s[n])},St(e,t)};function yi(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");St(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}var ce=function(){return ce=Object.assign||function(t){for(var i,s=1,n=arguments.length;s<n;s++){i=arguments[s];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},ce.apply(this,arguments)};function Br(e,t,i){for(var s=0,n=t.length,r;s<n;s++)(r||!(s in t))&&(r||(r=Array.prototype.slice.call(t,0,s)),r[s]=t[s]);return e.concat(r||Array.prototype.slice.call(t))}var Q={ADD_CHOICE:"ADD_CHOICE",REMOVE_CHOICE:"REMOVE_CHOICE",FILTER_CHOICES:"FILTER_CHOICES",ACTIVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM"},le={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighlightItem"},re={TAB_KEY:9,SHIFT_KEY:16,BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},zr=["fuseOptions","classNames"],Oe={Text:"text",SelectOne:"select-one",SelectMultiple:"select-multiple"},Yt=function(e){return{type:Q.ADD_CHOICE,choice:e}},Fr=function(e){return{type:Q.REMOVE_CHOICE,choice:e}},Hr=function(e){return{type:Q.FILTER_CHOICES,results:e}},Rr=function(e){return{type:Q.ACTIVATE_CHOICES,active:e}},qr=function(e){return{type:Q.ADD_GROUP,group:e}},Xt=function(e){return{type:Q.ADD_ITEM,item:e}},Kt=function(e){return{type:Q.REMOVE_ITEM,item:e}},st=function(e,t){return{type:Q.HIGHLIGHT_ITEM,item:e,highlighted:t}},Vr=function(e,t){return Math.floor(Math.random()*(t-e)+e)},Ut=function(e){return Array.from({length:e},function(){return Vr(0,36).toString(36)}).join("")},Gr=function(e,t){var i=e.id||e.name&&"".concat(e.name,"-").concat(Ut(2))||Ut
vendor: 75,047 bytes, line 23
23(4);return i=i.replace(/(:|\.|\[|\]|,)/g,""),i="".concat(t,"-").concat(i),i},jr=function(e,t,i){i===void 0&&(i=1);for(var s="".concat(i>0?"next":"previous","ElementSibling"),n=e[s];n;){if(n.matches(t))return n;n=n[s]}return null},Wr=function(e,t,i){i===void 0&&(i=1);var s;return i>0?s=t.scrollTop+t.offsetHeight>=e.offsetTop+e.offsetHeight:s=e.offsetTop>=t.scrollTop,s},lt=function(e){if(typeof e!="string"){if(e==null)return"";if(typeof e=="object"){if("raw"in e)return lt(e.raw);if("trusted"in e)return e.trusted}return e}return e.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;")},Yr=function(){var e=document.createElement("div");return function(t){e.innerHTML=t.trim();for(var i=e.children[0];e.firstChild;)e.removeChild(e.firstChild);return i}}(),Ke=function(e,t){return typeof e=="function"?e(lt(t),t):e},Zt=function(e){return typeof e=="function"?e():e},$e=function(e){if(typeof e=="string")return e;if(typeof e=="object"){if("trusted"in e)return e.trusted;if("raw"in e)return e.raw}return""},bi=function(e){if(typeof e=="string")return e;if(typeof e=="object"){if("escaped"in e)return e.escaped;if("trusted"in e)return e.trusted}return""},Mt=function(e,t){return e?bi(t):lt(t)},Te=function(e,t,i){e.innerHTML=Mt(t,i)},Xr=function(e,t){var i=e.value,s=e.label,n=s===void 0?i:s,r=t.value,o=t.label,c=o===void 0?r:o;return $e(n).localeCompare($e(c),[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},Kr=function(e,t){return e.rank-t.rank},Ur=function(e,t,i){i===void 0&&(i=null);var s=new CustomEvent(t,{detail:i,bubbles:!0,cancelable:!0});return e.dispatchEvent(s)},Zr=function(e,t){var i=Object.keys(e).sort(),s=Object.keys(t).sort();return i.filter(function(n){return s.indexOf(n)<0})},ct=function(e){return Array.isArray(e)?e:[e]},We=function(e){return e&&Array.isArray(e)?e.map(function(t){return".".concat(t)}).join(""):".".concat(e)},V=function(e,t){var i;(i=e.classList).add.apply(i,ct(t))},be=function(e,t){var i;(i=e.classList).remove.apply(i,ct(t))},Jr=function(e){if(typeof e!="undefined")try{return JSON.parse(e)}catch(t){return e}return{}},Qr=function(e,t,i){var s=e.itemEl;s&&(be(s,i),V(s,t))},ea=function(){function e(t){var i=t.element,s=t.type,n=t.classNames;this.element=i,this.classNames=n,this.type=s,this.isActive=!1}return e.prototype.show=function(){return V(this.element,this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},e.prototype.hide=function(){return be(this.element,this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},e}(),Jt=function(){function e(t){var i=t.element,s=t.type,n=t.classNames,r=t.position;this.element=i,this.classNames=n,this.type=s,this.position=r,this.isOpen=!1,this.isFlipped=!1,this.isDisabled=!1,this.isLoading=!1}return e.prototype.shouldFlip=function(t,i){var s=!1;return this.position==="auto"?s=this.element.getBoundingClientRect().top-i>=0&&!window.matchMedia("(min-height: ".concat(t+1,"px)")).matches:this.position==="top"&&(s=!0),s},e.prototype.setActiveDescendant=function(t){this.element.setAttribute("aria-activedescendant",t)},e.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},e.prototype.open=function(t,i){V(this.element,this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(t,i)&&(V(this.element,this.classNames.flippedState),this.isFlipped=!0)},e.prototype.close=function(){be(this.element,this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(be(this.element,this.classNames.flippedState),this.isFlipped=!1)},e.prototype.addFocusState=function(){V(this.element,this.classNames.focusState)},e.prototype.removeFocusState=function(){be(this.element,this.classNames.focusState)},e.prototype.enable=function(){be(this.element,this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===Oe.SelectOne&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},e.prototype.disable=function(){V(this.element,this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===Oe.SelectOne&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},e.prototype.wrap=function(t){var i=this.element,s=t.parentNode;s&&(t.nextSibling?s.insertBefore(i,t.nextSibling):s.appendChild(i)),i.appendChild(t)},e.prototype.unwrap=function(t){var i=this.element,s=i.parentNode;s&&(s.insertBefore(t,i),s.removeChild(i))},e.prototype.addLoadingState=function(){V(this.element,this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},e.prototype.removeLoadingState=function(){be(this.element,this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},e}(),ta=function(){function e(t){var i=t.element,s=t.type,n=t.classNames,r=t.preventPaste;this.element=i,this.type=s,this.classNames=n,this.preventPaste=r,this.isFocussed=this.element.isEqualNode(document.activeElement),this.isDisabled=i.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return Object.defineProperty(e.prototype,"placeholder",{set:function(t){this.element.placeholder=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.element.value},set:function(t){this.element.value=t},enumerable:!1,configurable:!0}),e.prototype.addEventListeners=function(){var t=this.element;t.addEventListener("paste",this._onPaste),t.addEventListener("input",this._onInput,{passive:!0}),t.addEventListener("focus",this._onFocus,{passive:!0}),t.addEventListener("blur",this._onBlur,{passive:!0})},e.prototype.removeEventListeners=function(){var t=this.element;t.removeEventListener("input",this._onInput),t.removeEventListener("paste",this._onPaste),t.removeEventListener("focus",this._onFocus),t.removeEventListener("blur",this._onBlur)},e.prototype.enable=function(){var t=this.element;t.removeAttribute("disabled"),this.isDisabled=!1},e.prototype.disable=function(){var t=this.element;t.setAttribute("disabled",""),this.isDisabled=!0},e.prototype.focus=function(){this.isFocussed||this.element.focus()},e.prototype.blur=function(){this.isFocussed&&this.element.blur()},e.prototype.clear=function(t){return t===void 0&&(t=!0),this.element.value="",t&&this.setWidth(),this},e.prototype.setWidth=function(){var t=this.element;t.style.minWidth="".concat(t.placeholder.length+1,"ch"),t.style.width="".concat(t.value.length+1,"ch")},e.prototype.setActiveDescendant=function(t){this.element.setAttribute("aria-activedescendant",t)},e.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},e.prototype._onInput=function(){this.type!==Oe.SelectOne&&this.setWidth()},e.prototype._onPaste=function(t){this.preventPaste&&t.preventDefault()},e.prototype._onFocus=function(){this.isFocussed=!0},e.prototype._onBlur=function(){this.isFocussed=!1},e}(),ia=4,Qt=function(){function e(t){var i=t.element;this.element=i,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}return e.prototype.prepend=function(t){var i=this.element.firstElementChild;i?this.element.insertBefore(t,i):this.element.append(t)},e.prototype.scrollToTop=function(){this.element.scrollTop=0},e.prototype.scrollToChildElement=function(t,i){var s=this;if(t){var n=this.element.offsetHeight,r=this.element.scrollTop+n,o=t.offsetHeight,c=t.offsetTop+o,l=i>0?this.element.scrollTop+c-r:t.offsetTop;requestAnimationFrame(function(){s._animateScroll(l,i)})}},e.prototype._scrollDown=function(t,i,s){var n=(s-t)/i,r=n>1?n:1;this.element.scrollTop=t+r},e.prototype._scrollUp=function(t,i,s){var n=(t-s)/i,r=n>1?n:1;this.element.scrollTop=t-r},e.prototype._animateScroll=function(t,i){var s=this,n=ia,r=this.element.scrollTop,o=!1;i>0?(this._scrollDown(r,n,t),r<t&&(o=!0)):(this._scrollUp(r,n,t),r>t&&(o=!0)),o&&requestAnimationFrame(function(){s._animateScroll(t,i)})},e}(),Ei=function(){function e(t){var i=t.element,s=t.classNames;this.element=i,this.classNames=s,this.isDisabled=!1}return Object.defineProperty(e.prototype,"isActive",{get:function(){return this.element.dataset.choice==="active"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.element.value},set:function(t){this.element.setAttribute("value",t),this.element.value=t},enumerable:!1,configurable:!0}),e.prototype.conceal=function(){var t=this.element;V(t,this.classNames.input),t.hidden=!0,t.tabIndex=-1;var i=t.getAttribute("style");i&&t.setAttribute("data-choice-orig-style",i),t.setAttribute("data-choice","active")},e.prototype.reveal=function(){var t=this.element;be(t,this.classNames.input),t.hidden=!1,t.removeAttribute("tabindex");var i=t.getAttribute("data-choice-orig-style");i?(t.removeAttribute("data-choice-orig-style"),t.setAttribute("style",i)):t.removeAttribute("style"),t.removeAttribute("data-choice")},e.prototype.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},e.prototype.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},e.prototype.triggerEvent=function(t,i){Ur(this.element,t,i||{})},e}(),sa=function(e){yi(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Ei),Xe=function(e,t){return t===void 0&&(t=!0),typeof e=="undefined"?t:!!e},Si=function(e){if(typeof e=="string"&&(e=e.split(" ").filter(function(t){return t.length})),Array.isArray(e)&&e.length)return e},ye=function(e,t,i){if(i===void 0&&(i=!0),typeof e=="string"){var s=lt(e),n=i||s===e?e:{escaped:s,raw:e},r=ye({value:e,label:n,selected:!0},!1);return r}var o=e;if("choices"in o){if(!t)throw new TypeError("optGroup is not allowed");var c=o,l=c.choices.map(function(p){return ye(p,!1)}),u={id:0,label:$e(c.label)||c.value,active:!!l.length,disabled:!!c.disabled,choices:l};return u}var h=o,f={id:0,group:null,score:0,rank:0,value:h.value,label:h.label||h.value,active:Xe(h.active),selected:Xe(h.selected,!1),disabled:Xe(h.disabled,!1),placeholder:Xe(h.placeholder,!1),highlighted:!1,labelClass:Si(h.labelClass),labelDescription:h.labelDescription,customProperties:h.customProperties};return f},na=function(e){return e.tagName==="INPUT"},Ci=function(e){return e.tagName==="SELECT"},ra=function(e){return e.tagName==="OPTION"},aa=function(e){return e.tagName==="OPTGROUP"},oa=function(e){yi(t,e);function t(i){var s=i.element,n=i.classNames,r=i.template,o=i.extractPlaceholder,c=e.call(this,{element:s,classNames:n})||this;return c.template=r,c.extractPlaceholder=o,c}return Object.defineProperty(t.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:!1,configurable:!0}),t.prototype.addOptions=function(i){var s=this,n=document.createDocumentFragment();i.forEach(function(r){var o=r;if(!o.element){var c=s.template(o);n.appendChild(c),o.element=c}}),this.element.appendChild(n)},t.prototype.optionsAsChoices=function(){var i=this,s=[];return this.element.querySelectorAll(":scope > option, :scope > optgroup").forEach(function(n){ra(n)?s.push(i._optionToChoice(n)):aa(n)&&s.push(i._optgroupToChoice(n))}),s},t.prototype._optionToChoice=function(i){return!i.hasAttribute("value")&&i.hasAttribute("placeholder")&&(i.setAttribute("value",""),i.value=""),{id:0,group:null,score:0,rank:0,value:i.value,label:i.label,element:i,active:!0,selected:this.extractPlaceholder?i.selected:i.hasAttribute("selected"),disabled:i.disabled,highlighted:!1,placeholder:this.extractPlaceholder&&(!i.value||i.hasAttribute("placeholder")),labelClass:typeof i.dataset.labelClass!="undefined"?Si(i.dataset.labelClass):void 0,labelDescription:typeof i.dataset.labelDescription!="undefined"?i.dataset.labelDescription:void 0,customProperties:Jr(i.dataset.customProperties)}},t.prototype._optgroupToChoice=function(i){var s=this,n=i.querySelectorAll("option"),r=Array.from(n).map(function(o){return s._optionToChoice(o)});return{id:0,label:i.label||"",element:i,active:!!r.length,disabled:i.disabled,choices:r}},t}(Ei),la={containerOuter:["choices"],containerInner:["choices__inner"],input:["choices__input"],inputCloned:["choices__input--cloned"],list:["choices__list"],listItems:["choices__list--multiple"],listSingle:["choices__list--single"],listDropdown:["choices__list--dropdown"],item:["choices__item"],itemSelectable:["choices__item--selectable"],itemDisabled:["choices__item--disabled"],itemChoice:["choices__item--choice"],description:["choices__description"],placeholder:["choices__placeholder"],group:["choices__group"],groupHeading:["choices__heading"],button:["choices__button"],activeState:["is-active"],focusState:["is-focused"],openState:["is-open"],disabledState:["is-disabled"],highlightedState:["is-highlighted"],selectedState:["is-selected"],flippedState:["is-flipped"],loadingState:["is-loading"],notice:["choices__notice"],addChoice:["choices__item--selectable","add-choice"],noResults:["has-no-results"],noChoices:["has-no-choices"]},ei={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,closeDropdownOnSelect:"auto",singleModeForMultiSelect:!1,addChoices:!1,addItems:!0,addItemFilter:function(e){return!!e&&e!==""},removeItems:!0,removeItemButton:!1,removeItemButtonAlignLeft:!1,editItems:!1,allowHTML:!1,allowHtmlUserInput:!1,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:Xr,shadowRoot:null,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(e){return'Press Enter to add <b>"'.concat(e,'"</b>')},removeItemIconText:function(){return"Remove item"},removeItemLabelText:function(e){return"Remove item: ".concat(e)},maxItemText:function(e){return"Only ".concat(e," values can be added")},valueComparer:function(e,t){return e===t},fuseOptions:{includeScore:!0},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:la,appendGroupInSearch:!1},ti=function(e){var t=e.itemEl;t&&(t.remove(),e.itemEl=void 0)};function ca(e,t,i){var s=e,n=!0;switch(t.type){case Q.ADD_ITEM:{t.item.selected=!0;var r=t.item.element;r&&(r.selected=!0,r.setAttribute("selected","")),s.push(t.item);break}case Q.REMOVE_ITEM:{t.item.selected=!1;var r=t.item.element;if(r){r.selected=!1,r.removeAttribute("selected");var o=r.parentElement;o&&Ci(o)&&o.type===Oe.SelectOne&&(o.value="")}ti(t.item),s=s.filter(function(h){return h.id!==t.item.id});break}case Q.REMOVE_CHOICE:{ti(t.choice),s=s.filter(function(u){return u.id!==t.choice.id});break}case Q.HIGHLIGHT_ITEM:{var c=t.highlighted,l=s.find(function(u){return u.id===t.item.id});l&&l.highlighted!==c&&(l.highlighted=c,i&&Qr(l,c?i.classNames.highlightedState:i.classNames.selectedState,c?i.classNames.selectedState:i.classNames.highlightedState));break}default:{n=!1;break}}return{state:s,update:n}}function da(e,t){var i=e,s=!0;switch(t.type){case Q.ADD_GROUP:{i.push(t.group);break}case Q.CLEAR_CHOICES:{i=[];break}default:{s=!1;break}}return{state:i,update:s}}function ua(e,t,i){var s=e,n=!0;switch(t.type){case Q.ADD_CHOICE:{s.push(t.choice);break}case Q.REMOVE_CHOICE:{t.choice.choiceEl=void 0,t.choice.group&&(t.choice.group.choices=t.choice.group.choices.filter(function(o){return o.id!==t.choice.id})),s=s.filter(function(o){return o.id!==t.choice.id});break}case Q.ADD_ITEM:case Q.REMOVE_ITEM:{t.item.choiceEl=void 0;break}case Q.FILTER_CHOICES:{var r=[];t.results.forEach(function(o){r[o.item.id]=o}),s.forEach(function(o){var c=r[o.id];c!==void 0?(o.score=c.score,o.rank=c.rank,o.active=!0):(o.score=0,o.rank=0,o.active=!1),i&&i.appendGroupInSearch&&(o.choiceEl=void 0)});break}case Q.ACTIVATE_CHOICES:{s.forEach(function(o){o.active=t.active,i&&i.appendGroupInSearch&&(o.choiceEl=void 0)});break}case Q.CLEAR_CHOICES:{s=[];break}default:{n=!1;break}}return{state:s,update:n}}var ii={groups:da,items:ca,choices:ua},ha=function(){function e(t){this._state=this.defaultState,this._listeners=[],this._txn=0,this._context=t}return Object.defineProperty(e.prototype,"defaultState",{get:function(){return{groups:[],items:[],choices:[]}},enumerable:!1,configurable:!0}),e.prototype.changeSet=function(t){return{groups:t,items:t,choices:t}},e.prototype.reset=function(){this._state=this.defaultState;var t=this.changeSet(!0);this._txn?this._changeSet=t:this._listeners.forEach(function(i){return i(t)})},e.prototype.subscribe=function(t){return this._listeners.push(t),this},e.prototype.dispatch=function(t){var i=this,s=this._state,n=!1,r=this._changeSet||this.changeSet(!1);Object.keys(ii).forEach(function(o){var c=ii[o](s[o],t,i._context);c.update&&(n=!0,r[o]=!0,s[o]=c.state)}),n&&(this._txn?this._changeSet=r:this._listeners.forEach(function(o){return o(r)}))},e.prototype.withTxn=function(t){this._txn++;try{t()}finally{if(this._txn=Math.max(0,this._txn-1),!this._txn){var i=this._changeSet;i&&(this._changeSet=void 0,this._listeners.forEach(function(s){return s(i)}))}}},Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highlightedActiveItems",{get:function(){return this.items.filter(function(t){return t.active&&t.highlighted})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"choices",{get:function(){return this.state.choices},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeChoices",{get:function(){return this.choices.filter(function(t){return t.active})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"searchableChoices",{get:function(){return this.choices.filter(function(t){return!t.disabled&&!t.placeholder})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groups",{get:function(){return this.state.groups},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeGroups",{get:function(){var t=this;return this.state.groups.filter(function(i){var s=i.active&&!i.disabled,n=t.state.choices.some(function(r){return r.active&&!r.disabled});return s&&n},[])},enumerable:!1,configurable:!0}),e.prototype.inTxn=function(){return this._txn>0},e.prototype.getChoiceById=function(t){return this.activeChoices.find(function(i){return i.id===t})},e.prototype.getGroupById=function(t){return this.groups.find(function(i){return i.id===t})},e}(),ie={noChoices:"no-choices",noResults:"no-results",addChoice:"add-choice",generic:""};function fa(e,t,i){return(t=ma(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function si(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),i.push.apply(i,s)}return i}function Re(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?si(Object(i),!0).forEach(function(s){fa(e,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):si(Object(i)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(i,s))})}return e}function pa(e,t){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,t);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ma(e){var t=pa(e,"string");return typeof t=="symbol"?t:t+""}function _e(e){return Array.isArray?Array.isArray(e):_i(e)==="[object Array]"}function ga(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function va(e){return e==null?"":ga(e)}function Ee(e){return typeof e=="string"}function xi(e){return typeof e=="number"}function ya(e){return e===!0||e===!1||ba(e)&&_i(e)=="[object Boolean]"}function Ti(e){return typeof e=="object"}function ba(e){return Ti(e)&&e!==null}function fe(e){return e!=null}function yt(e){return!e.trim().length}function _i(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Ea="Incorrect 'index' type",Sa=e=>`Invalid value for key ${e}`,Ca=e=>`Pattern length exceeds max of ${e}.`,xa=e=>`Missing ${e} property in key`,Ta=e=>`Property 'weight' in key '${e}' must be a positive integer`,ni=Object.prototype.hasOwnProperty;class _a{constructor(t){this._keys=[],this._keyMap={};let i=0;t.forEach(s=>{let n=wi(s);this._keys.push(n),this._keyMap[n.id]=n,i+=n.weight}),this._keys.forEach(s=>{s.weight/=i})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function wi(e){let t=null,i=null,s=null,n=1,r=null;if(Ee(e)||_e(e))s=e,t=ri(e),i=Ct(e);else{if(!ni.call(e,"name"))throw new Error(xa("name"));const o=e.name;if(s=o,ni.call(e,"weight")&&(n=e.weight,n<=0))throw new Error(Ta(o));t=ri(o),i=Ct(o),r=e.getFn}return{path:t,id:i,weight:n,src:s,getFn:r}}function ri(e){return _e(e)?e:e.split(".")}function Ct(e){return _e(e)?e.join("."):e}function wa(e,t){let i=[],s=!1;const n=(r,o,c)=>{if(fe(r))if(!o[c])i.push(r);else{let l=o[c];const u=r[l];if(!fe(u))return;if(c===o.length-1&&(Ee(u)||xi(u)||ya(u)))i.push(va(u));else if(_e(u)){s=!0;for(let h=0,f=u.length;h<f;h+=1)n(u[h],o,c+1)}else o.length&&n(u,o,c+1)}};return n(e,Ee(t)?t.split("."):t,0),s?i:i[0]}const Ia={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Aa={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},La={location:0,threshold:.6,distance:100},ka={useExtendedSearch:!1,getFn:wa,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var q=Re(Re(Re(Re({},Aa),Ia),La),ka);const Ma=/[^ ]+/g;function Oa(e=1,t=3){const i=new Map,s=Math.pow(10,t);return{get(n){const r=n.match(Ma).length;if(i.has(r))return i.get(r);const o=1/Math.pow(r,.5*e),c=parseFloat(Math.round(o*s)/s);return i.set(r,c),c},clear(){i.clear()}}}class Ot{constructor({getFn:t=q.getFn,fieldNormWeight:i=q.fieldNormWeight}={}){this.norm=Oa(i,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((i,s)=>{this._keysMap[i.id]=s})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Ee(this.docs[0])?this.docs.forEach((t,i)=>{this._addString(t,i)}):this.docs.forEach((t,i)=>{this._addObject(t,i)}),this.norm.clear())}add(t){const i=this.size();Ee(t)?this._addString(t,i):this._addObject(t,i)}removeAt(t){this.records.splice(t,1);for(let i=t,s=this.size();i<s;i+=1)this.records[i].i-=1}getValueForItemAtKeyId(t,i){return t[this._keysMap[i]]}size(){return this.records.length}_addString(t,i){if(!fe(t)||yt(t))return;let s={v:t,i,n:this.norm.get(t)};this.records.push(s)}_addObject(t,i){let s={i,$:{}};this.keys.forEach((n,r)=>{let o=n.getFn?n.getFn(t):this.getFn(t,n.path);if(fe(o)){if(_e(o)){let c=[];const l=[{nestedArrIndex:-1,value:o}];for(;l.length;){const{nestedArrIndex:u,value:h}=l.pop();if(fe(h))if(Ee(h)&&!yt(h)){let f={v:h,i:u,n:this.norm.get(h)};c.push(f)}else _e(h)&&h.forEach((f,p)=>{l.push({nestedArrIndex:p,value:f})})}s.$[r]=c}else if(Ee(o)&&!yt(o)){let c={v:o,n:this.norm.get(o)};s.$[r]=c}}}),this.records.push(s)}toJSON(){return{keys:this.keys,records:this.records}}}function Ii(e,t,{getFn:i=q.getFn,fieldNormWeight:s=q.fieldNormWeight}={}){const n=new Ot({getFn:i,fieldNormWeight:s});return n.setKeys(e.map(wi)),n.setSources(t),n.create(),n}function Pa(e,{getFn:t=q.getFn,fieldNormWeight:i=q.fieldNormWeight}={}){const{keys:s,records:n}=e,r=new Ot({getFn:t,fieldNormWeight:i});return r.setKeys(s),r.setIndexRecords(n),r}function nt(e,{errors:t=0,currentLocation:i=0,expectedLocation:s=0,distance:n=q.distance,ignoreLocation:r=q.ignoreLocation}={}){const o=t/e.length;if(r)return o;const c=Math.abs(s-i);return n?o+c/n:c?1:o}function Da(e=[],t=q.minMatchCharLength){let i=[],s=-1,n=-1,r=0;for(let o=e.length;r<o;r+=1){let c=e[r];c&&s===-1?s=r:!c&&s!==-1&&(n=r-1,n-s+1>=t&&i.push([s,n]),s=-1)}return e[r-1]&&r-s>=t&&i.push([s,r-1]),i}const Ne=32;function Na(e,t,i,{location:s=q.location,distance:n=q.distance,threshold:r=q.threshold,findAllMatches:o=q.findAllMatches,minMatchCharLength:c=q.minMatchCharLength,includeMatches:l=q.includeMatches,ignoreLocation:u=q.ignoreLocation}={}){if(t.length>Ne)throw new Error(Ca(Ne));const h=t.length,f=e.length,p=Math.max(0,Math.min(s,f));let m=r,v=p;const S=c>1||l,b=S?Array(f):[];let C;for(;(C=e.indexOf(t,v))>-1;){let z=nt(t,{currentLocation:C,expectedLocation:p,distance:n,ignoreLocation:u});if(m=Math.min(z,m),v=C+h,S){let x=0;for(;x<h;)b[C+x]=1,x+=1}}v=-1;let A=[],I=1,M=h+f;const L=1<<h-1;for(let z=0;z<h;z+=1){let x=0,$=M;for(;x<$;)nt(t,{errors:z,currentLocation:p+$,expectedLocation:p,distance:n,ignoreLocation:u})<=m?x=$:M=$,$=Math.floor((M-x)/2+x);M=$;let k=Math.max(1,p-$+1),N=o?f:Math.min(p+$,f)+h,H=Array(N+2);H[N+1]=(1<<z)-1;for(let U=N;U>=k;U-=1){let te=U-1,Z=i[e.charAt(te)];if(S&&(b[te]=+!!Z),H[U]=(H[U+1]<<1|1)&Z,z&&(H[U]|=(A[U+1]|A[U])<<1|1|A[U+1]),H[U]&L&&(I=nt(t,{errors:z,currentLocation:te,expectedLocation:p,distance:n,ignoreLocation:u}),I<=m)){if(m=I,v=te,v<=p)break;k=Math.max(1,2*p-v)}}if(nt(t,{errors:z+1,currentLocation:p,expectedLocation:p,distance:n,ignoreLocation:u})>m)break;A=H}const O={isMatch:v>=0,score:Math.max(.001,I)};if(S){const z=Da(b,c);z.length?l&&(O.indices=z):O.isMatch=!1}return O}function $a(e){let t={};for(let i=0,s=e.length;i<s;i+=1){const n=e.charAt(i);t[n]=(t[n]||0)|1<<s-i-1}return t}class Ai{constructor(t,{location:i=q.location,threshold:s=q.threshold,distance:n=q.distance,includeMatches:r=q.includeMatches,findAllMatches:o=q.findAllMatches,minMatchCharLength:c=q.minMatchCharLength,isCaseSensitive:l=q.isCaseSensitive,ignoreLocation:u=q.ignoreLocation}={}){if(this.options={location:i,threshold:s,distance:n,includeMatches:r,findAllMatches:o,minMatchCharLength:c,isCaseSensitive:l,ignoreLocation:u},this.pattern=l?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const h=(p,m)=>{this.chunks.push({pattern:p,alphabet:$a(p),startIndex:m})},f=this.pattern.length;if(f>Ne){let p=0;const m=f%Ne,v=f-m;for(;p<v;)h(this.pattern.substr(p,Ne),p),p+=Ne;if(m){const S=f-Ne;h(this.pattern.substr(S),S)}}else h(this.pattern,0)}searchIn(t){const{isCaseSensitive:i,includeMatches:s}=this.options;if(i||(t=t.toLowerCase()),this.pattern===t){let v={isMatch:!0,score:0};return s&&(v.indices=[[0,t.length-1]]),v}const{location:n,distance:r,threshold:o,findAllMatches:c,minMatchCharLength:l,ignoreLocation:u}=this.options;let h=[],f=0,p=!1;this.chunks.forEach(({pattern:v,alphabet:S,startIndex:b})=>{const{isMatch:C,score:A,indices:I}=Na(t,v,S,{location:n+b,distance:r,threshold:o,findAllMatches:c,minMatchCharLength:l,includeMatches:s,ignoreLocation:u});C&&(p=!0),f+=A,C&&I&&(h=[...h,...I])});let m={isMatch:p,score:p?f/this.chunks.length:1};return p&&s&&(m.indices=h),m}}class De{constructor(t){this.pattern=t}static isMultiMatch(t){return ai(t,this.multiRegex)}static isSingleMatch(t){return ai(t,this.singleRegex)}search(){}}function ai(e,t){const i=e.match(t);return i?i[1]:null}class Ba extends De{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const i=t===this.pattern;return{isMatch:i,score:i?0:1,indices:[0,this.pattern.length-1]}}}class za extends De{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const s=t.indexOf(this.pattern)===-1;return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class Fa extends De{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const i=t.startsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,this.pattern.length-1]}}}class Ha extends De{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const i=!t.startsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,t.length-1]}}}class Ra extends De{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const i=t.endsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class qa extends De{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const i=!t.endsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,t.length-1]}}}class Li extends De{constructor(t,{location:i=q.location,threshold:s=q.threshold,distance:n=q.distance,includeMatches:r=q.includeMatches,findAllMatches:o=q.findAllMatches,minMatchCharLength:c=q.minMatchCharLength,isCaseSensitive:l=q.isCaseSensitive,ignoreLocation:u=q.ignoreLocation}={}){super(t),this._bitapSearch=new Ai(t,{location:i,threshold:s,distance:n,includeMatches:r,findAllMatches:o,minMatchCharLength:c,isCaseSensitive:l,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class ki extends De{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let i=0,s;const n=[],r=this.pattern.length;for(;(s=t.indexOf(this.pattern,i))>-1;)i=s+r,n.push([s,i-1]);const o=!!n.length;return{isMatch:o,score:o?0:1,indices:n}}}const xt=[Ba,ki,Fa,Ha,qa,Ra,za,Li],oi=xt.length,Va=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Ga="|";function ja(e,t={}){return e.split(Ga).map(i=>{let s=i.trim().split(Va).filter(r=>r&&!!r.trim()),n=[];for(let r=0,o=s.length;r<o;r+=1){const c=s[r];let l=!1,u=-1;for(;!l&&++u<oi;){const h=xt[u];let f=h.isMultiMatch(c);f&&(n.push(new h(f,t)),l=!0)}if(!l)for(u=-1;++u<oi;){const h=xt[u];let f=h.isSingleMatch(c);if(f){n.push(new h(f,t));break}}}return n})}const Wa=new Set([Li.type,ki.type]);class Ya{constructor(t,{isCaseSensitive:i=q.isCaseSensitive,includeMatches:s=q.includeMatches,minMatchCharLength:n=q.minMatchCharLength,ignoreLocation:r=q.ignoreLocation,findAllMatches:o=q.findAllMatches,location:c=q.location,threshold:l=q.threshold,distance:u=q.distance}={}){this.query=null,this.options={isCaseSensitive:i,includeMatches:s,minMatchCharLength:n,findAllMatches:o,ignoreLocation:r,location:c,threshold:l,distance:u},this.pattern=i?t:t.toLowerCase(),this.query=ja(this.pattern,this.options)}static condition(t,i){return i.useExtendedSearch}searchIn(t){const i=this.query;if(!i)return{isMatch:!1,score:1};const{includeMatches:s,isCaseSensitive:n}=this.options;t=n?t:t.toLowerCase();let r=0,o=[],c=0;for(let l=0,u=i.length;l<u;l+=1){const h=i[l];o.length=0,r=0;for(let f=0,p=h.length;f<p;f+=1){const m=h[f],{isMatch:v,indices:S,score:b}=m.search(t);if(v){if(r+=1,c+=b,s){const C=m.constructor.type;Wa.has(C)?o=[...o,...S]:o.push(S)}}else{c=0,r=0,o.length=0;break}}if(r){let f={isMatch:!0,score:c/r};return s&&(f.indices=o),f}}return{isMatch:!1,score:1}}}const Tt=[];function Xa(...e){Tt.push(...e)}function _t(e,t){for(let i=0,s=Tt.length;i<s;i+=1){let n=Tt[i];if(n.condition(e,t))return new n(e,t)}return new Ai(e,t)}const at={AND:"$and",OR:"$or"},wt={PATH:"$path",PATTERN:"$val"},It=e=>!!(e[at.AND]||e[at.OR]),Ka=e=>!!e[wt.PATH],Ua=e=>!_e(e)&&Ti(e)&&!It(e),li=e=>({[at.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Mi(e,t,{auto:i=!0}={}){const s=n=>{let r=Object.keys(n);const o=Ka(n);if(!o&&r.length>1&&!It(n))return s(li(n));if(Ua(n)){const l=o?n[wt.PATH]:r[0],u=o?n[wt.PATTERN]:n[l];if(!Ee(u))throw new Error(Sa(l));const h={keyId:Ct(l),pattern:u};return i&&(h.searcher=_t(u,t)),h}let c={children:[],operator:r[0]};return r.forEach(l=>{const u=n[l];_e(u)&&u.forEach(h=>{c.children.push(s(h))})}),c};return It(e)||(e=li(e)),s(e)}function Za(e,{ignoreFieldNorm:t=q.ignoreFieldNorm}){e.forEach(i=>{let s=1;i.matches.forEach(({key:n,norm:r,score:o})=>{const c=n?n.weight:null;s*=Math.pow(o===0&&c?Number.EPSILON:o,(c||1)*(t?1:r))}),i.score=s})}function Ja(e,t){const i=e.matches;t.matches=[],fe(i)&&i.forEach(s=>{if(!fe(s.indices)||!s.indices.length)return;const{indices:n,value:r}=s;let o={indices:n,value:r};s.key&&(o.key=s.key.src),s.idx>-1&&(o.refIndex=s.idx),t.matches.push(o)})}function Qa(e,t){t.score=e.score}function eo(e,t,{includeMatches:i=q.includeMatches,includeScore:s=q.includeScore}={}){const n=[];return i&&n.push(Ja),s&&n.push(Qa),e.map(r=>{const{idx:o}=r,c={item:t[o],refIndex:o};return n.length&&n.forEach(l=>{l(r,c)}),c})}class Ge{constructor(t,i={},s){this.options=Re(Re({},q),i),this.options.useExtendedSearch,this._keyStore=new _a(this.options.keys),this.setCollection(t,s)}setCollection(t,i){if(this._docs=t,i&&!(i instanceof Ot))throw new Error(Ea);this._myIndex=i||Ii(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){fe(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const i=[];for(let s=0,n=this._docs.length;s<n;s+=1){const r=this._docs[s];t(r,s)&&(this.removeAt(s),s-=1,n-=1,i.push(r))}return i}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:i=-1}={}){const{includeMatches:s,includeScore:n,shouldSort:r,sortFn:o,ignoreFieldNorm:c}=this.options;let l=Ee(t)?Ee(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return Za(l,{ignoreFieldNorm:c}),r&&l.sort(o),xi(i)&&i>-1&&(l=l.slice(0,i)),eo(l,this._docs,{includeMatches:s,includeScore:n})}_searchStringList(t){const i=_t(t,this.options),{records:s}=this._myIndex,n=[];return s.forEach(({v:r,i:o,n:c})=>{if(!fe(r))return;const{isMatch:l,score:u,indices:h}=i.searchIn(r);l&&n.push({item:r,idx:o,matches:[{score:u,value:r,norm:c,indices:h}]})}),n}_searchLogical(t){const i=Mi(t,this.options),s=(c,l,u)=>{if(!c.children){const{keyId:f,searcher:p}=c,m=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(l,f),searcher:p});return m&&m.length?[{idx:u,item:l,matches:m}]:[]}const h=[];for(let f=0,p=c.children.length;f<p;f+=1){const m=c.children[f],v=s(m,l,u);if(v.length)h.push(...v);else if(c.operator===at.AND)return[]}return h},n=this._myIndex.records,r={},o=[];return n.forEach(({$:c,i:l})=>{if(fe(c)){let u=s(i,c,l);u.length&&(r[l]||(r[l]={idx:l,item:c,matches:[]},o.push(r[l])),u.forEach(({matches:h})=>{r[l].matches.push(...h)}))}}),o}_searchObjectList(t){const i=_t(t,this.options),{keys:s,records:n}=this._myIndex,r=[];return n.forEach(({$:o,i:c})=>{if(!fe(o))return;let l=[];s.forEach((u,h)=>{l.push(...this._findMatches({key:u,value:o[h],searcher:i}))}),l.length&&r.push({idx:c,item:o,matches:l})}),r}_findMatches({key:t,value:i,searcher:s}){if(!fe(i))return[];let n=[];if(_e(i))i.forEach(({v:r,i:o,n:c})=>{if(!fe(r))return;const{isMatch:l,score:u,indices:h}=s.searchIn(r);l&&n.push({score:u,key:t,value:r,idx:o,norm:c,indices:h})});else{const{v:r,n:o}=i,{isMatch:c,score:l,indices:u}=s.searchIn(r);c&&n.push({score:l,key:t,value:r,norm:o,indices:u})}return n}}Ge.version="7.0.0";Ge.createIndex=Ii;Ge.parseIndex=Pa;Ge.config=q;Ge.parseQuery=Mi;Xa(Ya);var to=function(){function e(t){this._haystack=[],this._fuseOptions=ce(ce({},t.fuseOptions),{keys:Br([],t.searchFields),includeMatches:!0})}return e.prototype.index=function(t){this._haystack=t,this._fuse&&this._fuse.setCollection(t)},e.prototype.reset=function(){this._haystack=[],this._fuse=void 0},e.prototype.isEmptyIndex=function(){return!this._haystack.length},e.prototype.search=function(t){this._fuse||(this._fuse=new Ge(this._haystack,this._fuseOptions));var i=this._fuse.search(t);return i.map(function(s,n){return{item:s.item,score:s.score||0,rank:n+1}})},e}();function io(e){return new to(e)}var so=function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},bt=function(e,t,i){var s=e.dataset,n=t.customProperties,r=t.labelClass,o=t.labelDescription;r&&(s.labelClass=ct(r).join(" ")),o&&(s.labelDescription=o),i&&n&&(typeof n=="string"?s.customProperties=n:typeof n=="object"&&!so(n)&&(s.customProperties=JSON.stringify(n)))},ci=function(e,t,i){var s=t&&e.querySelector("label[for='".concat(t,"']")),n=s&&s.innerText;n&&i.setAttribute("aria-label",n)},no={containerOuter:function(e,t,i,s,n,r,o){var c=e.classNames.containerOuter,l=document.createElement("div");return V(l,c),l.dataset.type=r,t&&(l.dir=t),s&&(l.tabIndex=0),i&&(l.setAttribute("role",n?"combobox":"listbox"),n?l.setAttribute("aria-autocomplete","list"):o||ci(this._docRoot,this.passedElement.element.id,l),l.setAttribute("aria-haspopup","true"),l.setAttribute("aria-expanded","false")),o&&l.setAttribute("aria-labelledby",o),l},containerInner:function(e){var t=e.classNames.containerInner,i=document.createElement("div");return V(i,t),i},itemList:function(e,t){var i=e.searchEnabled,s=e.classNames,n=s.list,r=s.listSingle,o=s.listItems,c=document.createElement("div");return V(c,n),V(c,t?r:o),this._isSelectElement&&i&&c.setAttribute("role","listbox"),c},placeholder:function(e,t){var i=e.allowHTML,s=e.classNames.placeholder,n=document.createElement("div");return V(n,s),Te(n,i,t),n},item:function(e,t,i){var s=e.allowHTML,n=e.removeItemButtonAlignLeft,r=e.removeItemIconText,o=e.removeItemLabelText,c=e.classNames,l=c.item,u=c.button,h=c.highlightedState,f=c.itemSelectable,p=c.placeholder,m=$e(t.value),v=document.createElement("div");if(V(v,l),t.labelClass){var S=document.createElement("span");Te(S,s,t.label),V(S,t.labelClass),v.appendChild(S)}else Te(v,s,t.label);if(v.dataset.item="",v.dataset.id=t.id,v.dataset.value=m,bt(v,t,!0),(t.disabled||this.containerOuter.isDisabled)&&v.setAttribute("aria-disabled","true"),this._isSelectElement&&(v.setAttribute("aria-selected","true"),v.setAttribute("role","option")),t.placeholder&&(V(v,p),v.dataset.placeholder=""),V(v,t.highlighted?h:f),i){t.disabled&&be(v,f),v.dataset.deletable="";var b=document.createElement("button");b.type="button",V(b,u),Te(b,!0,Ke(r,t.value));var C=Ke(o,t.value);C&&b.setAttribute("aria-label",C),b.dataset.button="",n?v.insertAdjacentElement("afterbegin",b):v.appendChild(b)}return v},choiceList:function(e,t){var i=e.classNames.list,s=document.createElement("div");return V(s,i),t||s.setAttribute("aria-multiselectable","true"),s.setAttribute("role","listbox"),s},choiceGroup:function(e,t){var i=e.allowHTML,s=e.classNames,n=s.group,r=s.groupHeading,o=s.itemDisabled,c=t.id,l=t.label,u=t.disabled,h=$e(l),f=document.createElement("div");V(f,n),u&&V(f,o),f.setAttribute("role","group"),f.dataset.group="",f.dataset.id=c,f.dataset.value=h,u&&f.setAttribute("aria-disabled","true");var p=document.createElement("div");return V(p,r),Te(p,i,l||""),f.appendChild(p),f},choice:function(e,t,i,s){var n=e.allowHTML,r=e.classNames,o=r.item,c=r.itemChoice,l=r.itemSelectable,u=r.selectedState,h=r.itemDisabled,f=r.description,p=r.placeholder,m=t.label,v=$e(t.value),S=document.createElement("div");S.id=t.elementId,V(S,o),V(S,c),s&&typeof m=="string"&&(m=Mt(n,m),m+=" (".concat(s,")"),m={trusted:m});var b=S;if(t.labelClass){var C=document.createElement("span");Te(C,n,m),V(C,t.labelClass),b=C,S.appendChild(C)}else Te(S,n,m);if(t.labelDescription){var A="".concat(t.elementId,"-description");b.setAttribute("aria-describedby",A);var I=document.createElement("span");Te(I,n,t.labelDescription),I.id=A,V(I,f),S.appendChild(I)}return t.selected&&V(S,u),t.placeholder&&V(S,p),S.setAttribute("role",t.group?"treeitem":"option"),S.dataset.choice="",S.dataset.id=t.id,S.dataset.value=v,i&&(S.dataset.selectText=i),t.group&&(S.dataset.groupId="".concat(t.group.id)),bt(S,t,!1),t.disabled?(V(S,h),S.dataset.choiceDisabled="",S.setAttribute("aria-disabled","true")):(V(S,l),S.dataset.choiceSelectable=""),S},input:function(e,t){var i=e.classNames,s=i.input,n=i.inputCloned,r=e.labelId,o=document.createElement("input");return o.type="search",V(o,s),V(o,n),o.autocomplete="off",o.autocapitalize="off",o.spellcheck=!1,o.setAttribute("aria-autocomplete","list"),t?o.setAttribute("aria-label",t):r||ci(this._docRoot,this.passedElement.element.id,o),o},dropdown:function(e){var t=e.classNames,i=t.list,s=t.listDropdown,n=document.createElement("div");return V(n,i),V(n,s),n.setAttribute("aria-expanded","false"),n},notice:function(e,t,i){var s=e.classNames,n=s.item,r=s.itemChoice,o=s.addChoice,c=s.noResults,l=s.noChoices,u=s.notice;i===void 0&&(i=ie.generic);var h=document.createElement("div");switch(Te(h,!0,t),V(h,n),V(h,r),V(h,u),i){case ie.addChoice:V(h,o);break;case ie.noResults:V(h,c);break;case ie.noChoices:V(h,l);break}return i===ie.addChoice&&(h.dataset.choiceSelectable="",h.dataset.choice=""),h},option:function(e){var t=$e(e.label),i=new Option(t,e.value,!1,e.selected);return bt(i,e,!0),i.disabled=e.disabled,e.selected&&i.setAttribute("selected",""),i}},ro="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,ao={},Et=function(e){if(e)return e.dataset.id?parseInt(e.dataset.id,10):void 0},Ye="[data-choice-selectable]",oo=function(){function e(t,i){t===void 0&&(t="[data-choice]"),i===void 0&&(i={});var s=this;this.initialisedOK=void 0,this._hasNonChoicePlaceholder=!1,this._lastAddedChoiceId=0,this._lastAddedGroupId=0;var n=e.defaults;this.config=ce(ce(ce({},n.allOptions),n.options),i),zr.forEach(function(C){s.config[C]=ce(ce(ce({},n.allOptions[C]),n.options[C]),i[C])});var r=this.config;r.silent||this._validateConfig();var o=r.shadowRoot||document.documentElement;this._docRoot=o;var c=typeof t=="string"?o.querySelector(t):t;if(!c||typeof c!="object"||!(na(c)||Ci(c)))throw TypeError(!c&&typeof t=="string"?"Selector ".concat(t," failed to find an element"):"Expected one of the following types text|select-one|select-multiple");var l=c.type,u=l===Oe.Text;(u||r.maxItemCount!==1)&&(r.singleModeForMultiSelect=!1),r.singleModeForMultiSelect&&(l=Oe.SelectMultiple);var h=l===Oe.SelectOne,f=l===Oe.SelectMultiple,p=h||f;if(this._elementType=l,this._isTextElement=u,this._isSelectOneElement=h,this._isSelectMultipleElement=f,this._isSelectElement=h||f,this._canAddUserChoices=u&&r.addItems||p&&r.addChoices,typeof r.renderSelectedChoices!="boolean"&&(r.renderSelectedChoices=r.renderSelectedChoices==="always"||h),r.closeDropdownOnSelect==="auto"?r.closeDropdownOnSelect=u||h||r.singleModeForMultiSelect:r.closeDropdownOnSelect=Xe(r.closeDropdownOnSelect),r.placeholder&&(r.placeholderValue?this._hasNonChoicePlaceholder=!0:c.dataset.placeholder&&(this._hasNonChoicePlaceholder=!0,r.placeholderValue=c.dataset.placeholder)),i.addItemFilter&&typeof i.addItemFilter!="function"){var m=i.addItemFilter instanceof RegExp?i.addItemFilter:new RegExp(i.addItemFilter);r.addItemFilter=m.test.bind(m)}if(this._isTextElement)this.passedElement=new sa({element:c,classNames:r.classNames});else{var v=c;this.passedElement=new oa({element:v,classNames:r.classNames,template:function(C){return s._templates.option(C)},extractPlaceholder:r.placeholder&&!this._hasNonChoicePlaceholder})}if(this.initialised=!1,this._store=new ha(r),this._currentValue="",r.searchEnabled=!u&&r.searchEnabled||f,this._canSearch=r.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=Gr(c,"choices-"),this._direction=c.dir,!this._direction){var S=window.getComputedStyle(c).direction,b=window.getComputedStyle(document.documentElement).direction;S!==b&&(this._direction=S)}if(this._idNames={itemChoice:"item-choice"},this._templates=n.templates,this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onInput=this._onInput.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onSelectKey=this._onSelectKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive){r.silent||console.warn("Trying to initialise Choices on element already initialised",{element:t}),this.initialised=!0,this.initialisedOK=!1;return}this.init(),this._initialItems=this._store.items.map(function(C){return C.value})}return Object.defineProperty(e,"defaults",{get:function(){return Object.preventExtensions({get options(){return ao},get allOptions(){return ei},get templates(){return no}})},enumerable:!1,configurable:!0}),e.prototype.init=function(){if(!(this.initialised||this.initialisedOK!==void 0)){this._searcher=io(this.config),this._loadChoices(),this._createTemplates(),this._createElements(),this._createStructure(),this._isTextElement&&!this.config.addItems||this.passedElement.element.hasAttribute("disabled")||this.passedElement.element.closest("fieldset:disabled")?this.disable():(this.enable(),this._addEventListeners()),this._initStore(),this.initialised=!0,this.initialisedOK=!0;var t=this.config.callbackOnInit;typeof t=="function"&&t.call(this)}},e.prototype.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this._store._listeners=[],this.clearStore(!1),this._stopSearch(),this._templates=e.defaults.templates,this.initialised=!1,this.initialisedOK=void 0)},e.prototype.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},e.prototype.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},e.prototype.highlightItem=function(t,i){if(i===void 0&&(i=!0),!t||!t.id)return this;var s=this._store.items.find(function(n){return n.id===t.id});return!s||s.highlighted?this:(this._store.dispatch(st(s,!0)),i&&this.passedElement.triggerEvent(le.highlightItem,this._getChoiceForOutput(s)),this)},e.prototype.unhighlightItem=function(t,i){if(i===void 0&&(i=!0),!t||!t.id)return this;var s=this._store.items.find(function(n){return n.id===t.id});return!s||!s.highlighted?this:(this._store.dispatch(st(s,!1)),i&&this.passedElement.triggerEvent(le.unhighlightItem,this._getChoiceForOutput(s)),this)},e.prototype.highlightAll=function(){var t=this;return this._store.withTxn(function(){t._store.items.forEach(function(i){i.highlighted||(t._store.dispatch(st(i,!0)),t.passedElement.triggerEvent(le.highlightItem,t._getChoiceForOutput(i)))})}),this},e.prototype.unhighlightAll=function(){var t=this;return this._store.withTxn(function(){t._store.items.forEach(function(i){i.highlighted&&(t._store.dispatch(st(i,!1)),t.passedElement.triggerEvent(le.highlightItem,t._getChoiceForOutput(i)))})}),this},e.prototype.removeActiveItemsByValue=function(t){var i=this;return this._store.withTxn(function(){i._store.items.filter(function(s){return s.value===t}).forEach(function(s){return i._removeItem(s)})}),this},e.prototype.removeActiveItems=function(t){var i=this;return this._store.withTxn(function(){i._store.items.filter(function(s){var n=s.id;return n!==t}).forEach(function(s){return i._removeItem(s)})}),this},e.prototype.removeHighlightedItems=function(t){var i=this;return t===void 0&&(t=!1),this._store.withTxn(function(){i._store.highlightedActiveItems.forEach(function(s){i._removeItem(s),t&&i._triggerChange(s.value)})}),this},e.prototype.showDropdown=function(t){var i=this;return this.dropdown.isActive?this:(t===void 0&&(t=!this._canSearch),requestAnimationFrame(function(){i.dropdown.show();var s=i.dropdown.element.getBoundingClientRect();i.containerOuter.open(s.bottom,s.height),t||i.input.focus(),i.passedElement.triggerEvent(le.showDropdown)}),this)},e.prototype.hideDropdown=function(t){var i=this;return this.dropdown.isActive?(requestAnimationFrame(function(){i.dropdown.hide(),i.containerOuter.close(),!t&&i._canSearch&&(i.input.removeActiveDescendant(),i.input.blur()),i.passedElement.triggerEvent(le.hideDropdown)}),this):this},e.prototype.getValue=function(t){var i=this,s=this._store.items.map(function(n){return t?n.value:i._getChoiceForOutput(n)});return this._isSelectOneElement||this.config.singleModeForMultiSelect?s[0]:s},e.prototype.setValue=function(t){var i=this;return this.initialisedOK?(this._store.withTxn(function(){t.forEach(function(s){s&&i._addChoice(ye(s,!1))})}),this._searcher.reset(),this):(this._warnChoicesInitFailed("setValue"),this)},e.prototype.setChoiceByValue=function(t){var i=this;return this.initialisedOK?this._isTextElement?this:(this._store.withTxn(function(){var s=Array.isArray(t)?t:[t];s.forEach(function(n){return i._findAndSelectChoiceByValue(n)}),i.unhighlightAll()}),this._searcher.reset(),this):(this._warnChoicesInitFailed("setChoiceByValue"),this)},e.prototype.setChoices=function(t,i,s,n,r,o){var c=this;if(t===void 0&&(t=[]),i===void 0&&(i="value"),s===void 0&&(s="label"),n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!1),!this.initialisedOK)return this._warnChoicesInitFailed("setChoices"),this;if(!this._isSelectElement)throw new TypeError("setChoices can't be used with INPUT based Choices");if(typeof i!="string"||!i)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if(typeof t=="function"){var l=t(this);if(typeof Promise=="function"&&l instanceof Promise)return new Promise(function(u){return requestAnimationFrame(u)}).then(function(){return c._handleLoadingState(!0)}).then(function(){return l}).then(function(u){return c.setChoices(u,i,s,n,r,o)}).catch(function(u){c.config.silent||console.error(u)}).then(function(){return c._handleLoadingState(!1)}).then(function(){return c});if(!Array.isArray(l))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof l));return this.setChoices(l,i,s,!1)}if(!Array.isArray(t))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._store.withTxn(function(){r&&(c._isSearching=!1),n&&c.clearChoices(!0,o);var u=i==="value",h=s==="label";t.forEach(function(f){if("choices"in f){var p=f;h||(p=ce(ce({},p),{label:p[s]})),c._addGroup(ye(p,!0))}else{var m=f;(!h||!u)&&(m=ce(ce({},m),{value:m[i],label:m[s]}));var v=ye(m,!1);c._addChoice(v),v.placeholder&&!c._hasNonChoicePlaceholder&&(c._placeholderValue=bi(v.label))}}),c.unhighlightAll()}),this._searcher.reset(),this},e.prototype.refresh=function(t,i,s){var n=this;return t===void 0&&(t=!1),i===void 0&&(i=!1),s===void 0&&(s=!1),this._isSelectElement?(this._store.withTxn(function(){var r=n.passedElement.optionsAsChoices(),o={};s||n._store.items.forEach(function(l){l.id&&l.active&&l.selected&&(o[l.value]=!0)}),n.clearStore(!1);var c=function(l){s?n._store.dispatch(Kt(l)):o[l.value]&&(l.selected=!0)};r.forEach(function(l){if("choices"in l){l.choices.forEach(c);return}c(l)}),n._addPredefinedChoices(r,i,t),n._isSearching&&n._searchChoices(n.input.value)}),this):(this.config.silent||console.warn("refresh method can only be used on choices backed by a <select> element"),this)},e.prototype.removeChoice=function(t){var i=this._store.choices.find(function(s){return s.value===t});return i?(this._clearNotice(),this._store.dispatch(Fr(i)),this._searcher.reset(),i.selected&&this.passedElement.triggerEvent(le.removeItem,this._getChoiceForOutput(i)),this):this},e.prototype.clearChoices=function(t,i){var s=this;return t===void 0&&(t=!0),i===void 0&&(i=!1),t&&(i?this.passedElement.element.replaceChildren(""):this.passedElement.element.querySelectorAll(":not([selected])").forEach(function(n){n.remove()})),this.itemList.element.replaceChildren(""),this.choiceList.element.replaceChildren(""),this._clearNotice(),this._store.withTxn(function(){var n=i?[]:s._store.items;s._store.reset(),n.forEach(function(r){s._store.dispatch(Yt(r)),s._store.dispatch(Xt(r))})}),this._searcher.reset(),this},e.prototype.clearStore=function(t){return t===void 0&&(t=!0),this.clearChoices(t,!0),this._stopSearch(),this._lastAddedChoiceId=0,this._lastAddedGroupId=0,this},e.prototype.clearInput=function(){var t=!this._isSelectOneElement;return this.input.clear(t),this._stopSearch(),this},e.prototype._validateConfig=function(){var t=this.config,i=Zr(t,ei);i.length&&console.warn("Unknown config option(s) passed",i.join(", ")),t.allowHTML&&t.allowHtmlUserInput&&(t.addItems&&console.warn("Warning: allowHTML/allowHtmlUserInput/addItems all being true is strongly not recommended and may lead to XSS attacks"),t.addChoices&&console.warn("Warning: allowHTML/allowHtmlUserInput/addChoices all being true is strongly not recommended and may lead to XSS attacks"))},e.prototype._render=function(t){t===void 0&&(t={choices:!0,groups:!0,items:!0}),!this._store.inTxn()&&(this._isSelectElement&&(t.choices||t.groups)&&this._renderChoices(),t.items&&this._renderItems())},e.prototype._renderChoices=function(){var t=this;if(this._canAddItems()){var i=this,s=i.config,n=i._isSearching,r=this._store,o=r.activeGroups,c=r.activeChoices,l=0;if(n&&s.searchResultLimit>0?l=s.searchResultLimit:s.renderChoiceLimit>0&&(l=s.renderChoiceLimit),this._isSelectElement){var u=c.filter(function(v){return!v.element});u.length&&this.passedElement.addOptions(u)}var h=document.createDocumentFragment(),f=function(v){return v.filter(function(S){return!S.placeholder&&(n?!!S.rank:s.renderSelectedChoices||!S.selected)})},p=!1,m=function(v,S,b){n?v.sort(Kr):s.shouldSort&&v.sort(s.sorter);var C=v.length;C=!S&&l&&C>l?l:C,C--,v.every(function(A,I){var M=A.choiceEl||t._templates.choice(s,A,s.itemSelectText,b);return A.choiceEl=M,h.appendChild(M),(n||!A.selected)&&(p=!0),I<C})};c.length&&(s.resetScrollPosition&&requestAnimationFrame(function(){return t.choiceList.scrollToTop()}),!this._hasNonChoicePlaceholder&&!n&&this._isSelectOneElement&&m(c.filter(function(v){return v.placeholder&&!v.group}),!1,void 0),o.length&&!n?(s.shouldSort&&o.sort(s.sorter),m(c.filter(function(v){return!v.placeholder&&!v.group}),!1,void 0),o.forEach(function(v){var S=f(v.choices);if(S.length){if(v.label){var b=v.groupEl||t._templates.choiceGroup(t.config,v);v.groupEl=b,b.remove(),h.appendChild(b)}m(S,!0,s.appendGroupInSearch&&n?v.label:void 0)}})):m(f(c),!1,void 0)),!p&&(n||!h.children.length||!s.renderSelectedChoices)&&(this._notice||(this._notice={text:Zt(n?s.noResultsText:s.noChoicesText),type:n?ie.noResults:ie.noChoices}),h.replaceChildren("")),this._renderNotice(h),this.choiceList.element.replaceChildren(h),p&&this._highlightChoice()}},e.prototype._renderItems=function(){var t=this,i=this._store.items||[],s=this.itemList.element,n=this.config,r=document.createDocumentFragment(),o=function(f){return s.querySelector('[data-item][data-id="'.concat(f.id,'"]'))},c=function(f){var p=f.itemEl;p&&p.parentElement||(p=o(f)||t._templates.item(n,f,n.removeItemButton),f.itemEl=p,r.appendChild(p))};i.forEach(c);var l=!!r.childNodes.length;if(this._isSelectOneElement){var u=s.children.length;if(l||u>1){var h=s.querySelector(We(n.classNames.placeholder));h&&h.remove()}else!l&&!u&&this._placeholderValue&&(l=!0,c(ye({selected:!0,value:"",label:this._placeholderValue,placeholder:!0},!1)))}l&&(s.append(r),n.shouldSortItems&&!this._isSelectOneElement&&(i.sort(n.sorter),i.forEach(function(f){var p=o(f);p&&(p.remove(),r.append(p))}),s.append(r))),this._isTextElement&&(this.passedElement.value=i.map(function(f){var p=f.value;return p}).join(n.delimiter))},e.prototype._displayNotice=function(t,i,s){s===void 0&&(s=!0);var n=this._notice;if(n&&(n.type===i&&n.text===t||n.type===ie.addChoice&&(i===ie.noResults||i===ie.noChoices))){s&&this.showDropdown(!0);return}this._clearNotice(),this._notice=t?{text:t,type:i}:void 0,this._renderNotice(),s&&t&&this.showDropdown(!0)},e.prototype._clearNotice=function(){if(this._notice){var t=this.choiceList.element.querySelector(We(this.config.classNames.notice));t&&t.remove(),this._notice=void 0}},e.prototype._renderNotice=function(t){var i=this._notice;if(i){var s=this._templates.notice(this.config,i.text,i.type);t?t.append(s):this.choiceList.prepend(s)}},e.prototype._getChoiceForOutput=function(t,i){return{id:t.id,highlighted:t.highlighted,labelClass:t.labelClass,labelDescription:t.labelDescription,customProperties:t.customProperties,disabled:t.disabled,active:t.active,label:t.label,placeholder:t.placeholder,value:t.value,groupValue:t.group?t.group.label:void 0,element:t.element,keyCode:i}},e.prototype._triggerChange=function(t){t!=null&&this.passedElement.triggerEvent(le.change,{value:t})},e.prototype._handleButtonAction=function(t){var i=this,s=this._store.items;if(!(!s.length||!this.config.removeItems||!this.config.removeItemButton)){var n=t&&Et(t.parentElement),r=n&&s.find(function(o){return o.id===n});r&&this._store.withTxn(function(){if(i._removeItem(r),i._triggerChange(r.value),i._isSelectOneElement&&!i._hasNonChoicePlaceholder){var o=(i.config.shouldSort?i._store.choices.reverse():i._store.choices).find(function(c){return c.placeholder});o&&(i._addItem(o),i.unhighlightAll(),o.value&&i._triggerChange(o.value))}})}},e.prototype._handleItemAction=function(t,i){var s=this;i===void 0&&(i=!1);var n=this._store.items;if(!(!n.length||!this.config.removeItems||this._isSelectOneElement)){var r=Et(t);r&&(n.forEach(function(o){o.id===r&&!o.highlighted?s.highlightItem(o):!i&&o.highlighted&&s.unhighlightItem(o)}),this.input.focus())}},e.prototype._handleChoiceAction=function(t){var i=this,s=Et(t),n=s&&this._store.getChoiceById(s);if(!n||n.disabled)return!1;var r=this.dropdown.isActive;if(!n.selected){if(!this._canAddItems())return!0;this._store.withTxn(function(){i._addItem(n,!0,!0),i.clearInput(),i.unhighlightAll()}),this._triggerChange(n.value)}return r&&this.config.closeDropdownOnSelect&&(this.hideDropdown(!0),this.containerOuter.element.focus()),!0},e.prototype._handleBackspace=function(t){var i=this.config;if(!(!i.removeItems||!t.length)){var s=t[t.length-1],n=t.some(function(r){return r.highlighted});i.editItems&&!n&&s?(this.input.value=s.value,this.input.setWidth(),this._removeItem(s),this._triggerChange(s.value)):(n||this.highlightItem(s,!1),this.removeHighlightedItems(!0))}},e.prototype._loadChoices=function(){var t,i=this,s=this.config;if(this._isTextElement){if(this._presetChoices=s.items.map(function(o){return ye(o,!1)}),this.passedElement.value){var n=this.passedElement.value.split(s.delimiter).map(function(o){return ye(o,!1,i.config.allowHtmlUserInput)});this._presetChoices=this._presetChoices.concat(n)}this._presetChoices.forEach(function(o){o.selected=!0})}else if(this._isSelectElement){this._presetChoices=s.choices.map(function(o){return ye(o,!0)});var r=this.passedElement.optionsAsChoices();r&&(t=this._presetChoices).push.apply(t,r)}},e.prototype._handleLoadingState=function(t){t===void 0&&(t=!0);var i=this.itemList.element;t?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?i.replaceChildren(this._templates.placeholder(this.config,this.config.loadingText)):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?(i.replaceChildren(""),this._render()):this.input.placeholder=this._placeholderValue||"")},e.prototype._handleSearch=function(t){if(this.input.isFocussed)if(t!==null&&typeof t!="undefined"&&t.length>=this.config.searchFloor){var i=this.config.searchChoices?this._searchChoices(t):0;i!==null&&this.passedElement.triggerEvent(le.search,{value:t,resultCount:i})}else this._store.choices.some(function(s){return!s.active})&&this._stopSearch()},e.prototype._canAddItems=function(){var t=this.config,i=t.maxItemCount,s=t.maxItemText;return!t.singleModeForMultiSelect&&i>0&&i<=this._store.items.length?(this.choiceList.element.replaceChildren(""),this._notice=void 0,this._displayNotice(typeof s=="function"?s(i):s,ie.addChoice),!1):(this._notice&&this._notice.type===ie.addChoice&&this._clearNotice(),!0)},e.prototype._canCreateItem=function(t){var i=this.config,s=!0,n="";if(s&&typeof i.addItemFilter=="function"&&!i.addItemFilter(t)&&(s=!1,n=Ke(i.customAddItemText,t)),s){var r=this._store.choices.find(function(o){return i.valueComparer(o.value,t)});if(r){if(this._isSelectElement)return this._displayNotice("",ie.addChoice),!1;i.duplicateItemsAllowed||(s=!1,n=Ke(i.uniqueItemText,t))}}return s&&(n=Ke(i.addItemText,t)),n&&this._displayNotice(n,ie.addChoice),s},e.prototype._searchChoices=function(t){var i=t.trim().replace(/\s{2,}/," ");if(!i.length||i===this._currentValue)return null;var s=this._searcher;s.isEmptyIndex()&&s.index(this._store.searchableChoices);var n=s.search(i);this._currentValue=i,this._highlightPosition=0,this._isSearching=!0;var r=this._notice,o=r&&r.type;return o!==ie.addChoice&&(n.length?this._clearNotice():this._displayNotice(Zt(this.config.noResultsText),ie.noResults)),this._store.dispatch(Hr(n)),n.length},e.prototype._stopSearch=function(){this._isSearching&&(this._currentValue="",this._isSearching=!1,this._clearNotice(),this._store.dispatch(Rr(!0)),this.passedElement.triggerEvent(le.search,{value:"",resultCount:0}))},e.prototype._addEventListeners=function(){var t=this._docRoot,i=this.containerOuter.element,s=this.input.element;t.addEventListener("touchend",this._onTouchEnd,!0),i.addEventListener("keydown",this._onKeyDown,!0),i.addEventListener("mousedown",this._onMouseDown,!0),t.addEventListener("click",this._onClick,{passive:!0}),t.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(i.addEventListener("focus",this._onFocus,{passive:!0}),i.addEventListener("blur",this._onBlur,{passive:!0})),s.addEventListener("keyup",this._onKeyUp,{passive:!0}),s.addEventListener("input",this._onInput,{passive:!0}),s.addEventListener("focus",this._onFocus,{passive:!0}),s.addEventListener("blur",this._onBlur,{passive:!0}),s.form&&s.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},e.prototype._removeEventListeners=function(){var t=this._docRoot,i=this.containerOuter.element,s=this.input.element;t.removeEventListener("touchend",this._onTouchEnd,!0),i.removeEventListener("keydown",this._onKeyDown,!0),i.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("click",this._onClick),t.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(i.removeEventListener("focus",this._onFocus),i.removeEventListener("blur",this._onBlur)),s.removeEventListener("keyup",this._onKeyUp),s.removeEventListener("input",this._onInput),s.removeEventListener("focus",this._onFocus),s.removeEventListener("blur",this._onBlur),s.form&&s.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},e.prototype._onKeyDown=function(t){var i=t.keyCode,s=this.dropdown.isActive,n=t.key.length===1||t.key.length===2&&t.key.charCodeAt(0)>=55296||t.key==="Unidentified";switch(!this._isTextElement&&!s&&i!==re.ESC_KEY&&i!==re.TAB_KEY&&i!==re.SHIFT_KEY&&(this.showDropdown(),!this.input.isFocussed&&n&&(this.input.value+=t.key,t.key===" "&&t.preventDefault())),i){case re.A_KEY:return this._onSelectKey(t,this.itemList.element.hasChildNodes());case re.ENTER_KEY:return this._onEnterKey(t,s);case re.ESC_KEY:return this._onEscapeKey(t,s);case re.UP_KEY:case re.PAGE_UP_KEY:case re.DOWN_KEY:case re.PAGE_DOWN_KEY:return this._onDirectionKey(t,s);case re.DELETE_KEY:case re.BACK_KEY:return this._onDeleteKey(t,this._store.items,this.input.isFocussed)}},e.prototype._onKeyUp=function(){this._canSearch=this.config.searchEnabled},e.prototype._onInput=function(){var t=this.input.value;if(!t){this._isTextElement?this.hideDropdown(!0):this._stopSearch();return}this._canAddItems()&&(this._canSearch&&this._handleSearch(t),this._canAddUserChoices&&(this._canCreateItem(t),this._isSelectElement&&(this._highlightPosition=0,this._highlightChoice())))},e.prototype._onSelectKey=function(t,i){if((t.ctrlKey||t.metaKey)&&i){this._canSearch=!1;var s=this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement;s&&this.highlightAll()}},e.prototype._onEnterKey=function(t,i){var s=this,n=this.input.value,r=t.target;if(t.preventDefault(),r&&r.hasAttribute("data-button")){this._handleButtonAction(r);return}if(!i){(this._isSelectElement||this._notice)&&this.showDropdown();return}var o=this.dropdown.element.querySelector(We(this.config.classNames.highlightedState));if(!(o&&this._handleChoiceAction(o))){if(!r||!n){this.hideDropdown(!0);return}if(this._canAddItems()){var c=!1;this._store.withTxn(function(){if(c=s._findAndSelectChoiceByValue(n,!0),!c){if(!s._canAddUserChoices||!s._canCreateItem(n))return;s._addChoice(ye(n,!1,s.config.allowHtmlUserInput),!0,!0),c=!0}s.clearInput(),s.unhighlightAll()}),c&&(this._triggerChange(n),this.config.closeDropdownOnSelect&&this.hideDropdown(!0))}}},e.prototype._onEscapeKey=function(t,i){i&&(t.stopPropagation(),this.hideDropdown(!0),this._stopSearch(),this.containerOuter.element.focus())},e.prototype._onDirectionKey=function(t,i){var s=t.keyCode;if(i||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var n=s===re.DOWN_KEY||s===re.PAGE_DOWN_KEY?1:-1,r=t.metaKey||s===re.PAGE_DOWN_KEY||s===re.PAGE_UP_KEY,o=void 0;if(r)n>0?o=this.dropdown.element.querySelector("".concat(Ye,":last-of-type")):o=this.dropdown.element.querySelector(Ye);else{var c=this.dropdown.element.querySelector(We(this.config.classNames.highlightedState));c?o=jr(c,Ye,n):o=this.dropdown.element.querySelector(Ye)}o&&(Wr(o,this.choiceList.element,n)||this.choiceList.scrollToChildElement(o,n),this._highlightChoice(o)),t.preventDefault()}},e.prototype._onDeleteKey=function(t,i,s){!this._isSelectOneElement&&!t.target.value&&s&&(this._handleBackspace(i),t.preventDefault())},e.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},e.prototype._onTouchEnd=function(t){var i=(t||t.touches[0]).target,s=this._wasTap&&this.containerOuter.element.contains(i);if(s){var n=i===this.containerOuter.element||i===this.containerInner.element;n&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),t.stopPropagation()}this._wasTap=!0},e.prototype._onMouseDown=function(t){var i=t.target;if(i instanceof HTMLElement){if(ro&&this.choiceList.element.contains(i)){var s=this.choiceList.element.firstElementChild;this._isScrollingOnIe=this._direction==="ltr"?t.offsetX>=s.offsetWidth:t.offsetX<s.offsetLeft}if(i!==this.input.element){var n=i.closest("[data-button],[data-item],[data-choice]");n instanceof HTMLElement&&("button"in n.dataset?this._handleButtonAction(n):"item"in n.dataset?this._handleItemAction(n,t.shiftKey):"choice"in n.dataset&&this._handleChoiceAction(n)),t.preventDefault()}}},e.prototype._onMouseOver=function(t){var i=t.target;i instanceof HTMLElement&&"choice"in i.dataset&&this._highlightChoice(i)},e.prototype._onClick=function(t){var i=t.target,s=this.containerOuter,n=s.element.contains(i);n?!this.dropdown.isActive&&!s.isDisabled?this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),s.element.focus()):this._isSelectOneElement&&i!==this.input.element&&!this.dropdown.element.contains(i)&&this.hideDropdown():(s.removeFocusState(),this.hideDropdown(!0),this.unhighlightAll())},e.prototype._onFocus=function(t){var i=t.target,s=this.containerOuter,n=i&&s.element.contains(i);if(n){var r=i===this.input.element;this._isTextElement?r&&s.addFocusState():this._isSelectMultipleElement?r&&(this.showDropdown(!0),s.addFocusState()):(s.addFocusState(),r&&this.showDropdown(!0))}},e.prototype._onBlur=function(t){var i=t.target,s=this.containerOuter,n=i&&s.element.contains(i);n&&!this._isScrollingOnIe?i===this.input.element?(s.removeFocusState(),this.hideDropdown(!0),(this._isTextElement||this._isSelectMultipleElement)&&this.unhighlightAll()):i===this.containerOuter.element&&(s.removeFocusState(),this._canSearch||this.hideDropdown(!0)):(this._isScrollingOnIe=!1,this.input.element.focus())},e.prototype._onFormReset=function(){var t=this;this._store.withTxn(function(){t.clearInput(),t.hideDropdown(),t.refresh(!1,!1,!0),t._initialItems.length&&t.setChoiceByValue(t._initialItems)})},e.prototype._highlightChoice=function(t){t===void 0&&(t=null);var i=Array.from(this.dropdown.element.querySelectorAll(Ye));if(i.length){var s=t,n=this.config.classNames.highlightedState,r=Array.from(this.dropdown.element.querySelectorAll(We(n)));r.forEach(function(o){be(o,n),o.setAttribute("aria-selected","false")}),s?this._highlightPosition=i.indexOf(s):(i.length>this._highlightPosition?s=i[this._highlightPosition]:s=i[i.length-1],s||(s=i[0])),V(s,n),s.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(le.highlightChoice,{el:s}),this.dropdown.isActive&&(this.input.setActiveDescendant(s.id),this.containerOuter.setActiveDescendant(s.id))}},e.prototype._addItem=function(t,i,s){if(i===void 0&&(i=!0),s===void 0&&(s=!1),!t.id)throw new TypeError("item.id must be set before _addItem is called for a choice/item");(this.config.singleModeForMultiSelect||this._isSelectOneElement)&&this.removeActiveItems(t.id),this._store.dispatch(Xt(t)),i&&(this.passedElement.triggerEvent(le.addItem,this._getChoiceForOutput(t)),s&&this.passedElement.triggerEvent(le.choice,this._getChoiceForOutput(t)))},e.prototype._removeItem=function(t){if(t.id){this._store.dispatch(Kt(t));var i=this._notice;i&&i.type===ie.noChoices&&this._clearNotice(),this.passedElement.triggerEvent(le.removeItem,this._getChoiceForOutput(t))}},e.prototype._addChoice=function(t,i,s){if(i===void 0&&(i=!0),s===void 0&&(s=!1),t.id)throw new TypeError("Can not re-add a choice which has already been added");var n=this.config;if(!(!n.duplicateItemsAllowed&&this._store.choices.find(function(c){return n.valueComparer(c.value,t.value)}))){this._lastAddedChoiceId++,t.id=this._lastAddedChoiceId,t.elementId="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(t.id);var r=n.prependValue,o=n.appendValue;r&&(t.value=r+t.value),o&&(t.value+=o.toString()),(r||o)&&t.element&&(t.element.value=t.value),this._clearNotice(),this._store.dispatch(Yt(t)),t.selected&&this._addItem(t,i,s)}},e.prototype._addGroup=function(t,i){var s=this;if(i===void 0&&(i=!0),t.id)throw new TypeError("Can not re-add a group which has already been added");this._store.dispatch(qr(t)),t.choices&&(this._lastAddedGroupId++,t.id=this._lastAddedGroupId,t.choices.forEach(function(n){n.group=t,t.disabled&&(n.disabled=!0),s._addChoice(n,i)}))},e.prototype._createTemplates=function(){var t=this,i=this.config.callbackOnCreateTemplates,s={};typeof i=="function"&&(s=i.call(this,Yr,Mt,ct));var n={};Object.keys(this._templates).forEach(function(r){r in s?n[r]=s[r].bind(t):n[r]=t._templates[r].bind(t)}),this._templates=n},e.prototype._createElements=function(){var t=this._templates,i=this,s=i.config,n=i._isSelectOneElement,r=s.position,o=s.classNames,c=this._elementType;this.containerOuter=new Jt({element:t.containerOuter(s,this._direction,this._isSelectElement,n,s.searchEnabled,c,s.labelId),classNames:o,type:c,position:r}),this.containerInner=new Jt({element:t.containerInner(s),classNames:o,type:c,position:r}),this.input=new ta({element:t.input(s,this._placeholderValue),classNames:o,type:c,preventPaste:!s.paste}),this.choiceList=new Qt({element:t.choiceList(s,n)}),this.itemList=new Qt({element:t.itemList(s,n)}),this.dropdown=new ea({element:t.dropdown(s),classNames:o,type:c})},e.prototype._createStructure=function(){var t=this,i=t.containerInner,s=t.containerOuter,n=t.passedElement,r=this.dropdown.element;n.conceal(),i.wrap(n.element),s.wrap(i.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":(this._placeholderValue&&(this.input.placeholder=this._placeholderValue),this.input.setWidth()),s.element.appendChild(i.element),s.element.appendChild(r),i.element.appendChild(this.itemList.element),r.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&r.insertBefore(this.input.element,r.firstChild):i.element.appendChild(this.input.element),this._highlightPosition=0,this._isSearching=!1},e.prototype._initStore=function(){var t=this;this._store.subscribe(this._render).withTxn(function(){t._addPredefinedChoices(t._presetChoices,t._isSelectOneElement&&!t._hasNonChoicePlaceholder,!1)}),(!this._store.choices.length||this._isSelectOneElement&&this._hasNonChoicePlaceholder)&&this._render()},e.prototype._addPredefinedChoices=function(t,i,s){var n=this;if(i===void 0&&(i=!1),s===void 0&&(s=!0),i){var r=t.findIndex(function(o){return o.selected})===-1;r&&t.some(function(o){return o.disabled||"choices"in o?!1:(o.selected=!0,!0)})}t.forEach(function(o){"choices"in o?n._isSelectElement&&n._addGroup(o,s):n._addChoice(o,s)})},e.prototype._findAndSelectChoiceByValue=function(t,i){var s=this;i===void 0&&(i=!1);var n=this._store.choices.find(function(r){return s.config.valueComparer(r.value,t)});return n&&!n.disabled&&!n.selected?(this._addItem(n,!0,i),!0):!1},e.prototype._generatePlaceholderValue=function(){var t=this.config;if(!t.placeholder)return null;if(this._hasNonChoicePlaceholder)return t.placeholderValue;if(this._isSelectElement){var i=this.passedElement.placeholderOption;return i?i.text:null}return null},e.prototype._warnChoicesInitFailed=function(t){if(!this.config.silent)if(this.initialised){if(!this.initialisedOK)throw new TypeError("".concat(t," called for an element which has multiple instances of Choices initialised on it"))}else throw new TypeError("".concat(t," called on a non-initialised instance of Choices"))}
23,e.version="11.1.0",e}();const lo={name:"ethicalLineForm",when:({document:e})=>!!e.getElementById("ethical-line-form"),init:({document:e})=>{const t=e.getElementById("ethical-line-form"),i=e.getElementById("submit-button");if(!t||!i)return()=>{};e.querySelectorAll("select").forEach(x=>{new oo(x,{searchEnabled:!1,shouldSort:!1,allowHTML:!0,removeItemButton:!1,classNames:{containerOuter:["choices",...x.classList]}}),x.addEventListener("change",function(){const $=new Event("input",{bubbles:!0});x.dispatchEvent($)},!1)});const n=t.querySelector(".alert"),r=n==null?void 0:n.querySelector(".body-20, .body-sm"),o=t.querySelector(".g-recaptcha");vt.init(e);const c=e.getElementById("country");c&&c.addEventListener("change",function(x){const $=e.getElementById("location-group");$&&(x.currentTarget.value=="Türkiye"||x.currentTarget.value=="Turkey"?$.classList.add("city-active"):$.classList.remove("city-active"))});const l=e.getElementById("phone");if(l&&e.documentElement.lang=="tr"){const x=/^\(\d{3}\) \d{3}-\d{4}$/;l.addEventListener("input",function($){const k=$.target.value.replace(/\D/g,"").match(/(\d{0,3})(\d{0,3})(\d{0,4})/);$.target.value=k[2]?"("+k[1]+") "+k[2]+(k[3]?"-"+k[3]:""):k[1],l.parentElement.dataset.invalidAlert=$.target.dataset.invalidAlert,$.target.value==""&&$.target.parentElement.classList.remove("invalid"),x.test($.target.value)?($.target.classList.add("valid"),$.target.parentElement.classList.remove("invalid")):($.target.classList.remove("valid"),$.target.parentElement.classList.add("invalid"))})}else l.addEventListener("input",function(x){const $=x.target.value.replaceAll(/\D/g,"");if(x.target.value=$,$.length===0){x.target.classList.remove("valid"),x.target.parentElement.classList.remove("invalid");return}$.length>=6?(x.target.classList.add("valid"),x.target.parentElement.classList.remove("invalid")):(x.target.classList.remove("valid"),x.target.parentElement.classList.add("invalid"))});const u=e.getElementById("email");u&&u.addEventListener("input",function(x){const $=x.target.value;u.parentElement.dataset.invalidAlert=x.target.dataset.invalidAlert,/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test($)?(x.target.classList.add("valid"),x.target.parentElement.classList.remove("invalid")):(x.target.classList.remove("valid"),x.target.parentElement.classList.add("invalid"))});const h=Array.from(e.querySelectorAll('input[type="radio"][name="storage-data"]')),f=()=>{const x=!!e.querySelector("#storage-data-true:checked");t.classList.toggle("store-data-active",x)};h.forEach(x=>x.addEventListener("change",f));const p=()=>{if(!n)return;const x=n.getBoundingClientRect();x.top>=0&&x.bottom<=window.innerHeight||n.scrollIntoView({behavior:"smooth",block:"center"})},m=x=>{if(!(!n||!r)){if(!x){n.classList.remove("active"),r.textContent="";return}n.classList.add("active"),r.textContent=x,p()}},v=x=>x?x.value!==""&&x.value!=="0"?void 0:x.dataset.alert:void 0,S=x=>{if(x)return x.value.trim()?void 0:x.dataset.alert},b=x=>{if(x)return x.value.trim()?void 0:x.dataset.alert},C=x=>{if(x)return x.classList.contains("valid")?void 0:x.dataset.invalidAlert},A=x=>{var N;const $=Array.from(t.querySelectorAll(`input[name="${x}"]`));return $.length===0||$.find(H=>H.checked)||(N=$[0])==null?void 0:N.dataset.alert},I=x=>{if(x)return x.checked?void 0:x.dataset.alert},M=x=>{if(x)return vt.hasResponse(x)?void 0:x.dataset.alert},L=()=>{const x=t.querySelector("#country"),$=(x==null?void 0:x.value)==="Türkiye"||(x==null?void 0:x.value)==="Turkiye"||(x==null?void 0:x.value)==="Turkey",k=!!t.querySelector("#storage-data-true:checked"),N=t.querySelector("#phone"),H=k&&(b(t.querySelector("#name-surname"))||b(N)||C(N))||void 0;return v(x)||($?v(t.querySelector("#city")):void 0)||v(t.querySelector("#sector"))||S(t.querySelector("#message"))||A("storage-data")||H||I(t.querySelector("#kvkk"))||M(o)||void 0},O=(x,$)=>{const k={url:x,data:$};i.classList.add("btn-loading-pending"),$r.postData(k.url,k.data).then(N=>{e.getElementById("ethical-line-form").classList.add("response-success")})},z=x=>{var te,Z,X,Ie,me,Ae,Be,ze;x.preventDefault();const $=L();if($){m($);return}const k=i.dataset.url;if(!k)return;new FormData(t);const N={};N.Country=((te=e.getElementById("country"))==null?void 0:te.value)||"",N.City=((Z=e.getElementById("city"))==null?void 0:Z.value)||"",N.Sector=((X=e.getElementById("sector"))==null?void 0:X.value)||"",N.Note=((Ie=e.getElementById("message"))==null?void 0:Ie.value)||"",N.Kvkk=((me=e.getElementById("kvkk"))==null?void 0:me.checked)||!1;const H=e.querySelector('input[name="storage-data"]:checked'),de=H?H.value:null;
23N.Language=e.documentElement.lang,de==="true"&&(N.Fullname=((Ae=e.getElementById("name-surname"))==null?void 0:Ae.value)||"",N.Phone=((Be=e.getElementById("phone"))==null?void 0:Be.value)||"",N.Email=((ze=e.getElementById("email"))==null?void 0:ze.value)||"");const U=vt.getResponse(o);U&&(N.ReCaptcha=U),O(k,N)};return i.addEventListener("click",z),()=>{i.removeEventListener("click",z)}}},co={name:"scrollToBottom",when:()=>!0,init:({document:e})=>{const t=e.querySelector("#scroll-down-button");if(t)return t.addEventListener("click",i=>{var l,u;const s=i.currentTarget,n=s.getAttribute("data-target"),r=n?e.getElementById(n):null;if(r){r.scrollIntoView({behavior:"smooth",block:"start"});return}const o=(u=(l=s.parentElement)==null?void 0:l.parentElement)==null?void 0:u.parentElement;if(!o)return;const c=o.getBoundingClientRect().bottom+window.scrollY;window.scrollTo({top:c,behavior:"smooth"})}),()=>{}}},uo={name:"Accordion",when:()=>!0,init:({document:e})=>(Array.from(e.querySelectorAll(".primary-accordion")).forEach(i=>{const s=Array.from(i.querySelectorAll(".primary-accordion-item")),n=c=>{const l=c.querySelector(".primary-accordion-head"),u=c.querySelector(".primary-accordion-body");return!l||!u?null:{closed:l.offsetHeight,open:l.offsetHeight+u.scrollHeight}},r=c=>{const l=n(c);l&&(c.classList.add("is-open"),c.setAttribute("data-open","true"),c.style.height=`${l.open}px`)},o=c=>{const l=n(c);l&&(c.classList.remove("is-open"),c.removeAttribute("data-open"),c.style.height=`${l.closed}px`)};s.forEach(c=>{c.style.overflow="hidden",c.style.transition="height 0.3s ease",c.getAttribute("data-open")==="true"?r(c):o(c)}),s.forEach(c=>{const l=c.querySelector(".primary-accordion-head");l&&l.addEventListener("click",()=>{const u=c.getAttribute("data-open")==="true";s.forEach(h=>{h!==c&&o(h)}),u?o(c):r(c)})})}),()=>{})},ho={name:"heroSlider",when:()=>!0,init:({document:e})=>{const t=e.getElementById("history-secondary-slider");if(!t)return;const i=new J(t,{modules:[we,qe,ot],loop:!1,slidesPerView:1,spaceBetween:0,speed:800,effect:"fade",fadeEffect:{crossFade:!0},lazy:{loadPrevNext:!0},allowTouchMove:!0}),s=e.querySelectorAll("#history-secondary-slider .btn-navigation.prev"),n=e.querySelectorAll("#history-secondary-slider .btn-navigation.next");s.forEach(h=>{h.addEventListener("click",function(){i.slidePrev()})}),n.forEach(h=>{h.addEventListener("click",function(){i.slideNext()})});const r=e.querySelector("#history-year-list .swiper");if(!r)return;const o=new J(r,{modules:[qe,ur],loop:!1,slidesPerView:"auto",slidesPerGroup:1,spaceBetween:0,speed:800,allowTouchMove:!0,preventClicks:!0,preventClicksPropagation:!0,freeMode:!0,watchSlidesProgress:!0}),c=Array.from(e.querySelectorAll("#history-year-list .btn-year")),l=h=>{const f=c[h];f&&(c.forEach(p=>p.classList.remove("active")),f.classList.add("active"))},u=h=>{l(h),o.slideTo(h)};return c.forEach((h,f)=>{h.addEventListener("click",()=>{i.slideTo(f),u(f)})}),i.on("slideChange",()=>{u(i.activeIndex)}),l(i.activeIndex),()=>{i.destroy(!0,!0),o.destroy(!0,!0)}}},fo={name:"Markalar ve İştirakler",when:()=>!0,init:({document:e})=>{const t=e.querySelector("#brands-and-affiliates-section .swiper");if(!t)return()=>{};const i=new J(t,{modules:[we],loop:!1,slidesPerView:"auto",spaceBetween:0,speed:800,lazy:{loadPrevNext:!1},allowTouchMove:!0});return()=>{i.destroy(!0,!0)}}},po=new Ji;po.register(ts,ss,gr,mr,is,os,yr,br,Er,ho,Sr,Cr,Tr,Mr,Ir,xr,Pr,Or,Dr,lo,co,uo,fo).bootstrap();

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.