PageSourceSearch

https://redcross.ru/bitrix/cache/js/s1/aspro-allcorp3/template_d84…ce0f76cc4fcad0548e89_v1.js?1789457958957765

js redcross.ru collected 2026-09-24 18:59:40 UTC 957,765 bytes, 7,069 lines download raw bytes

1
2; /* Start:"a:4:{s:4:"full";s:72:"/local/templates/aspro-allcorp3/libs/cppay_widget/main.js?17853387899094";s:6:"source";s:57:"/local/templates/aspro-allcorp3/libs/cppay_widget/main.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
3CPPayWidget = function (block) {
4    this.block = block
5}
6CPPayWidget.prototype.init = function() {
7    this.fillParams()
8    this.draw()
9}
10
11CPPayWidget.prototype.fillParams = function() {
12    this.publicId = this.block.attr('data-publicId')
13    this.description = this.block.attr('data-description') || 'Благотворительная помощь'
14
15    this.amounts = []
16    let amounts = this.block.attr('data-amount')
17    if (amounts) {
18        amounts = amounts.replace(' ', '').split(',')
19        if (amounts && amounts.length > 0) {
20            this.amounts = amounts.map(amount => parseInt(amount)).filter(amount => amount > 0)
21        }
22    }
23
24    this.hasRecurrent = this.block.attr('data-recurrent').toUpperCase() === 'Y'
25
26    this.terms = this.block.attr('data-terms')
27}
28
29CPPayWidget.prototype.draw = function() {
30    if (!this.publicId) {
31        return
32    }
33
34    let wrapper = document.createElement( "div")
35    wrapper.classList.add('cppay_wrapper')
36
37    // AMOUNT
38    let amountText = document.createElement( "div")
39    amountText.classList.add('cppay_amount_text')
40    amountText.innerText = 'Сумма пожертвования'
41    wrapper.append(amountText)
42
43    let firstAmount = true
44    let amountBlock = document.createElement( "div")
45    amountBlock.classList.add('cppay_amounts')
46    for (let i in this.amounts) {
47        let amount = parseInt(this.amounts[i])
48        let amountChild = document.createElement( "div")
49        amountChild.classList.add('cppay_amount')
50        amountChild.setAttribute('data-amount', amount)
51        amountChild.innerText = amount + ' ₽'
52        amountChild.onclick = () => this.selectAmount(amountChild)
53
54        if (firstAmount) {
55            amountChild.classList.add('active')
56            firstAmount = false
57        }
58
59        amountBlock.append(amountChild)
60    }
61
62    let amountChildCustom = document.createElement( "div")
63    amountChildCustom.classList.add('cppay_amount')
64    amountChildCustom.classList.add('cppay_amount_custom')
65    amountChildCustom.setAttribute('data-amount', 'custom')
66    amountChildCustom.onclick = () => this.selectAmount(amountChildCustom)
67
68    let amountChildCustomInput = document.createElement( "input")
69    amountChildCustomInput.placeholder = 'Другая сумма'
70    amountChildCustomInput.onchange = () => this.selectAmount(amountChildCustom)
71    amountChildCustom.append(amountChildCustomInput)
72
73    if (firstAmount) {
74        amountChildCustom.classList.add('active')
75    }
76    amountBlock.append(amountChildCustom)
77
78    wrapper.append(amountBlock)
79
80
81    // RECURRENT
82    if (this.hasRecurrent) {
83        let recBlock = document.createElement( "div")
84        recBlock.classList.add('cppay_recs')
85
86        let recNo = document.createElement( "div")
87        recNo.classList.add('cppay_rec')
88        recNo.classList.add('active')
89        recNo.setAttribute('data-rec', 'N')
90        recNo.innerText = 'Помочь разово'
91        recNo.onclick = () => this.selectRec(recNo)
92        recBlock.append(recNo)
93
94        let recYes = document.createElement( "div")
95        recYes.classList.add('cppay_rec')
96        recYes.setAttribute('data-rec', 'Y')
97        recYes.innerText = 'Помогать ежемесячно'
98        recYes.onclick = () => this.selectRec(recYes)
99        recBlock.append(recYes)
100
101        wrapper.append(recBlock)
102    }
103
104    // EMAIL
105    let email = document.createElement( "div")
106    email.classList.add('cppay_email')
107    let emailInput = document.createElement( "input")
108    emailInput.placeholder = 'Ваш email'
109    emailInput.name = 'email'
110    emailInput.onfocus = () => $(emailInput).removeClass('error')
111    emailInput.onblur = () => this.checkEmail()
112    email.append(emailInput)
113    wrapper.append(email)
114
115
116    // ERROR
117    let error = document.createElement( "div")
118    error.classList.add('cppay_error')
119    wrapper.append(error)
120
121
122    // BTN
123    let btn = document.createElement( "button")
124    btn.classList.add('cppay_btn')
125    btn.innerText = 'Помочь'
126    btn.onclick = () => this.pay()
127    wrapper.append(btn)
128
129    // TERMS
130    if (this.terms) {
131        let terms = document.createElement( "div")
132        terms.classList.add('cppay_terms')
133
134        let termsChb = document.createElement( "input")
135        termsChb.type = 'checkbox'
136        termsChb.checked = true
137        termsChb.onclick = () => this.toggleTerms(termsChb)
138        terms.append(termsChb)
139
140        let termsText = document.createElement( "span")
141        termsText.innerHTML = 'Я согласен с условиями <a href="'+ this.terms +'" target="_blank">оферты</a>'
142        terms.append(termsText)
143
144        wrapper.append(terms)
145    }
146
147
148    this.block.append(wrapper)
149}
150
151CPPayWidget.prototype.selectAmount = function (amountChild) {
152    this.hideError()
153    this.block.find('.cppay_amount.active').removeClass('active')
154    amountChild.classList.add('active')
155}
156
157CPPayWidget.prototype.selectRec = function (rec) {
158    this.hideError()
159    this.block.find('.cppay_rec.active').removeClass('active')
160    rec.classList.add('active')
161
162    let auto = rec.getAttribute('data-rec') === 'Y'
163    let email = this.block.find('[name=email]')
164    if (auto) {
165        email.attr('placeholder', 'Ваш email*')
166    } else {
167        email.attr('placeholder', 'Ваш email')
168    }
169}
170
171CPPayWidget.prototype.toggleTerms = function (termsChb) {
172    let btn = this.block.find('.cppay_btn')
173    if ($(termsChb).is(':checked')) {
174        btn.attr('disabled', false)
175    } else {
176        btn.attr('disabled', true)
177    }
178}
179
180CPPayWidget.prototype.validateEmail = (email) => {
181    return String(email)
182        .toLowerCase()
183        .match(
184            /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|.(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
185        );
186};
187
188CPPayWidget.prototype.checkEmail = function () {
189    this.hideError()
190    let emailInput = this.block.find('[name=email]')
191    let email = emailInput.val().trim()
192    let auto = this.block.find('.cppay_rec.active').attr('data-rec') === 'Y'
193    if (email) {
194        if (this.validateEmail(email)) {
195            emailInput.removeClass('error')
196            return true
197        } else {
198            emailInput.addClass('error')
199            return false
200        }
201    } else if (this.hasRecurrent && auto) {
202        emailInput.addClass('error')
203        return false
204    } else {
205        emailInput.removeClass('error')
206        return true
207    }
208}
209
210CPPayWidget.prototype.showError = function (text) {
211    this.block.find('.cppay_error').text(text || 'Произошла ошибка, попробуйте повторить позже.').show();
212}
213
214CPPayWidget.prototype.hideError = function () {
215    this.block.find('.cppay_error').hide();
216
217}
218
219CPPayWidget.prototype.pay = function() {
220
221    let widget = new cp.CloudPayments({
222        language: "ru-RU",
223        email: "",
224        applePaySupport: true,
225        googlePaySupport: true,
226        yandexPaySupport: true,
227        tinkoffInstallmentSupport: true,
228    });
229
230    let data = {}
231    let auto = this.hasRecurrent && this.block.find('.cppay_rec.active').attr('data-rec') === 'Y'
232
233    if (auto) {
234        data.CloudPayments = {
235            recurrent: { interval: 'Month', period: 1 } // один раз в месяц начиная со следующего месяца
236        }
237    }
238
239    let amountBlock = this.block.find('.cppay_amount.active')
240    let amount = amountBlock.attr('data-amount')
241    if (amount === 'custom') {
242        amount = amountBlock.find('input').val()
243    }
244    amount = parseFloat(amount)
245    if (!amount || amount < 1) {
246        this.showError('Некорректная сумма')
247        return
248    }
249
250    let email = this.block.find('[name=email]').val().trim()
251
252    if (!this.checkEmail()) {
253        if (email) {
254            this.showError('Некорректный email')
255            return
256        } else {
257            this.showError('Введите email')
258            return
259        }
260    }
261
262    let self = this
263    widget.pay("charge", {
264        publicId: this.publicId,
265        description: this.description,
266        amount: amount,
267        currency: 'RUB',
268        accountId: email, // идентификатор плательщика (обязательно для создания подписки)
269        email: email,
270        data: data
271    }).then(function(widgetResult) {
272        if (widgetResult.status === "success") {
273            self.block.html('<div class="cppay_success">Ваш платёж отправлен, спасибо за помощь!</div>');
274        } else if (
275            widgetResult.status === "fail" ||
276            widgetResult.status === "error" ||
277            widgetResult.status === "reject"
278        ) {
279            self.showError('Ошибка оплаты')
280        }
281    }).catch(function(error) {
282        console.error(error);
283        self.showError(error)
284    });
285}
286
287
288
289$(document).ready(function() {
290    $('.cppay').each((i, block) => {
291        let cppay = new CPPayWidget($(block))
292         cppay.init($(block))
293    });
294});
295
296/* End */
297;
298; /* Start:"a:4:{s:4:"full";s:72:"/local/templates/aspro-allcorp3/js/swiper-bundle.min.js?1786447464155147";s:6:"source";s:55:"/local/templates/aspro-allcorp3/js/swiper-bundle.min.js";s:3:"min";s:55:"/local/templates/aspro-allcorp3/js/swiper-bundle.min.js";s:3:"map";s:59:"/local/templates/aspro-allcorp3/js/swiper-bundle.min.js.map";}"*/
299/**
300 * Swiper 12.1.4
301 * Most modern mobile touch slider and framework with hardware accelerated transitions
302 * https://swiperjs.com
303 *
304 * Copyright 2014-2026 Vladimir Kharlampidi
305 *
306 * Released under the MIT License
307 *
308 * Released on: April 29, 2026
309 */
310
311var Swiper=function(){"use strict";function e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function t(s={},a={}){const i=["__proto__","constructor","prototype"];Object.keys(a).filter(e=>
vendor: 42,640 bytes, line 311
311i.indexOf(e)<0).forEach(i=>{void 0===s[i]?s[i]=a[i]:e(a[i])&&e(s[i])&&Object.keys(a[i]).length>0&&t(s[i],a[i])})}const s={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){const e="undefined"!=typeof document?document:{};return t(e,s),e}const i={document:s,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function r(){const e="undefined"!=typeof window?window:{};return t(e,i),e}function n(e=""){return e.trim().split(" ").filter(e=>!!e.trim())}function l(e,t=0){return setTimeout(e,t)}function o(){return Date.now()}function d(e,t="x"){const s=r();let a,i,n;const l=function(e){const t=r();let s;return t.getComputedStyle&&(s=t.getComputedStyle(e,null)),!s&&e.currentStyle&&(s=e.currentStyle),s||(s=e.style),s}(e);return s.WebKitCSSMatrix?(i=l.transform||l.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(e=>e.replace(",",".")).join(", ")),n=new s.WebKitCSSMatrix("none"===i?"":i)):(n=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),a=n.toString().split(",")),"x"===t&&(i=s.WebKitCSSMatrix?n.m41:16===a.length?parseFloat(a[12]):parseFloat(a[4])),"y"===t&&(i=s.WebKitCSSMatrix?n.m42:16===a.length?parseFloat(a[13]):parseFloat(a[5])),i||0}function c(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function p(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function u(...e){const t=Object(e[0]);for(let s=1;s<e.length;s+=1){const a=e[s];if(null!=a&&!p(a)){const e=Object.keys(Object(a)).filter(e=>"__proto__"!==e&&"constructor"!==e&&"prototype"!==e);for(let s=0,i=e.length;s<i;s+=1){const i=e[s],r=Object.getOwnPropertyDescriptor(a,i);void 0!==r&&r.enumerable&&(c(t[i])&&c(a[i])?a[i].__swiper__?t[i]=a[i]:u(t[i],a[i]):!c(t[i])&&c(a[i])?(t[i]={},a[i].__swiper__?t[i]=a[i]:u(t[i],a[i])):t[i]=a[i])}}}return t}function m(e,t,s){e.style.setProperty(t,s)}function h({swiper:e,targetPosition:t,side:s}){const a=r(),i=-e.translate;let n,l=null;const o=e.params.speed;e.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(e.cssModeFrameID);const d=t>i?"next":"prev",c=(e,t)=>"next"===d&&e>=t||"prev"===d&&e<=t,p=()=>{n=(new Date).getTime(),null===l&&(l=n);const r=Math.max(Math.min((n-l)/o,1),0),d=.5-Math.cos(r*Math.PI)/2;let u=i+d*(t-i);if(c(u,t)&&(u=t),e.wrapperEl.scrollTo({[s]:u}),c(u,t))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[s]:u})}),void a.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=a.requestAnimationFrame(p)};p()}function f(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function g(e,t=""){const s=r(),a=[...e.children];return s.HTMLSlotElement&&e instanceof HTMLSlotElement&&a.push(...e.assignedElements()),t?a.filter(e=>e.matches(t)):a}function v(e){try{return void console.warn(e)}catch(e){}}function w(e,t=[]){const s=document.createElement(e);return s.classList.add(...Array.isArray(t)?t:n(t)),s}function b(e){const t=r(),s=a(),i=e.getBoundingClientRect(),n=s.body,l=e.clientTop||n.clientTop||0,o=e.clientLeft||n.clientLeft||0,d=e===t?t.scrollY:e.scrollTop,c=e===t?t.scrollX:e.scrollLeft;return{top:i.top+d-l,left:i.left+c-o}}function y(e,t){return r().getComputedStyle(e,null).getPropertyValue(t)}function E(e){let t,s=e;if(s){for(t=0;null!==(s=s.previousSibling);)1===s.nodeType&&(t+=1);return t}}function x(e,t){const s=[];let a=e.parentElement;for(;a;)t?a.matches(t)&&s.push(a):s.push(a),a=a.parentElement;return s}function S(e,t){t&&e.addEventListener("transitionend",function s(a){a.target===e&&(t.call(e,a),e.removeEventListener("transitionend",s))})}function T(e,t,s){const a=r();return s?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(a.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(a.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function M(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function C(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90==0?t+.001:t}function P(e,t=""){"undefined"!=typeof trustedTypes?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:e=>e}).createHTML(t):e.innerHTML=t}let L,I,z;function A(){return L||(L=function(){const e=r(),t=a();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),L}function $(e={}){return I||(I=function({userAgent:e}={}){const t=A(),s=r(),a=s.navigator.platform,i=e||s.navigator.userAgent,n={ios:!1,android:!1},l=s.screen.width,o=s.screen.height,d=i.match(/(Android);?[\s\/]+([\d.]+)?/);let c=i.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const p=i.match(/(iPod)(.*OS\s([\d_]+))?/),u=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m="Win32"===a;let h="MacIntel"===a;return!c&&h&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${l}x${o}`)>=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),h=!1),d&&!m&&(n.os="android",n.android=!0),(c||u||p)&&(n.os="ios",n.ios=!0),n}(e)),I}function k(){return z||(z=function(){const e=r(),t=$();let s=!1;function a(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(a()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,a]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));s=e<16||16===e&&a<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),n=a();return{isSafari:s||n,needPerspectiveFix:s,need3dFix:n||i&&t.ios,isWebView:i}}()),z}var O={on(e,t,s){const a=this;if(!a.eventsListeners||a.destroyed)return a;if("function"!=typeof t)return a;const i=s?"unshift":"push";return e.split(" ").forEach(e=>{a.eventsListeners[e]||(a.eventsListeners[e]=[]),a.eventsListeners[e][i](t)}),a},once(e,t,s){const a=this;if(!a.eventsListeners||a.destroyed)return a;if("function"!=typeof t)return a;function i(...s){a.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(a,s)}return i.__emitterProxy=t,a.on(e,i,s)},onAny(e,t){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof e)return s;const a=t?"unshift":"push";return s.eventsAnyListeners.indexOf(e)<0&&s.eventsAnyListeners[a](e),s},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const s=t.eventsAnyListeners.indexOf(e);return s>=0&&t.eventsAnyListeners.splice(s,1),t},off(e,t){const s=this;return!s.eventsListeners||s.destroyed?s:s.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?s.eventsListeners[e]=[]:s.eventsListeners[e]&&s.eventsListeners[e].forEach((a,i)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&s.eventsListeners[e].splice(i,1)})}),s):s},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let s,a,i;"string"==typeof e[0]||Array.isArray(e[0])?(s=e[0],a=e.slice(1,e.length),i=t):(s=e[0].events,a=e[0].data,i=e[0].context||t),a.unshift(i);return(Array.isArray(s)?s:s.split(" ")).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(i,[e,...a])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(e=>{e.apply(i,a)})}),t}};const D=(e,t,s)=>{t&&!e.classList.contains(s)?e.classList.add(s):!t&&e.classList.contains(s)&&e.classList.remove(s)};const G=(e,t,s)=>{t&&!e.classList.contains(s)?e.classList.add(s):!t&&e.classList.contains(s)&&e.classList.remove(s)};const X=(e,t)=>{if(!e||e.destroyed||!e.params)return;const s=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(s){let t=s.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(s.shadowRoot?t=s.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{s.shadowRoot&&(t=s.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&!t.lazyPreloaderManaged&&t.remove())})),t&&!t.lazyPreloaderManaged&&t.remove()}},B=(e,t)=>{if(!e.slides[t])return;const s=e.slides[t].querySelector('[loading="lazy"]');s&&s.removeAttribute("loading")},Y=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const s=e.slides.length;if(!s||!t||t<0)return;t=Math.min(t,s);const a="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const s=i,r=[s-t];return r.push(...Array.from({length:t}).map((e,t)=>s+a+t)),void e.slides.forEach((t,s)=>{r.includes(t.column)&&B(e,s)})}const r=i+a-1;if(e.params.rewind||e.params.loop)for(let a=i-t;a<=r+t;a+=1){const t=(a%s+s)%s;(t<i||t>r)&&B(e,t)}else for(let a=Math.max(i-t,0);a<=Math.min(r+t,s-1);a+=1)a!==i&&(a>r||a<i)&&B(e,a)};var H={updateSize:function(){const e=this;let t,s;const a=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:a.clientWidth,s=void 0!==e.params.height&&null!==e.params.height?e.params.height:a.clientHeight,0===t&&e.isHorizontal()||0===s&&e.isVertical()||(t=t-parseInt(y(a,"padding-left")||0,10)-parseInt(y(a,"padding-right")||0,10),s=s-parseInt(y(a,"padding-top")||0,10)-parseInt(y(a,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(s)&&(s=0),Object.assign(e,{width:t,height:s,size:e.isHorizontal()?t:s}))},updateSlides:function(){const e=this;function t(t,s){return parseFloat(t.getPropertyValue(e.getDirectionLabel(s))||0)}const s=e.params,{wrapperEl:a,slidesEl:i,rtlTranslate:r,wrongRTL:n}=e,l=e.virtual&&s.virtual.enabled,o=l?e.virtual.slides.length:e.slides.length,d=g(i,`.${e.params.slideClass}, swiper-slide`),c=l?e.virtual.slides.length:d.length;let p=[];const u=[],h=[];let f=s.slidesOffsetBefore;"function"==typeof f&&(f=s.slidesOffsetBefore.call(e));let v=s.slidesOffsetAfter;"function"==typeof v&&(v=s.slidesOffsetAfter.call(e));const w=e.snapGrid.length,b=e.slidesGrid.length,E=e.size-f-v;let x=s.spaceBetween,S=-f,M=0,C=0;if(void 0===E)return;"string"==typeof x&&x.indexOf("%")>=0?x=parseFloat(x.replace("%",""))/100*E:"string"==typeof x&&(x=parseFloat(x)),e.virtualSize=-x-f-v,d.forEach(e=>{r?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),s.centeredSlides&&s.cssMode&&(m(a,"--swiper-centered-offset-before",""),m(a,"--swiper-centered-offset-after","")),s.cssMode&&(m(a,"--swiper-slides-offset-before",`${f}px`),m(a,"--swiper-slides-offset-after",`${v}px`));const P=s.grid&&s.grid.rows>1&&e.grid;let L;P?e.grid.initSlides(d):e.grid&&e.grid.unsetSlides();const I="auto"===s.slidesPerView&&s.breakpoints&&Object.keys(s.breakpoints).filter(e=>void 0!==s.breakpoints[e].slidesPerView).length>0;for(let a=0;a<c;a+=1){L=0;const i=d[a];if(!i||(P&&e.grid.updateSlide(a,i,d),"none"!==y(i,"display"))){if(l&&"auto"===s.slidesPerView)s.virtual.slidesPerViewAutoSlideSize&&(L=s.virtual.slidesPerViewAutoSlideSize),L&&i&&(s.roundLengths&&(L=Math.floor(L)),i.style[e.getDirectionLabel("width")]=`${L}px`);else if("auto"===s.slidesPerView){I&&(i.style[e.getDirectionLabel("width")]="");const a=getComputedStyle(i),r=i.style.transform,n=i.style.webkitTransform;if(r&&(i.style.transform="none"),n&&(i.style.webkitTransform="none"),s.roundLengths)L=e.isHorizontal()?T(i,"width",!0):T(i,"height",!0);else{const e=t(a,"width"),s=t(a,"padding-left"),r=t(a,"padding-right"),n=t(a,"margin-left"),l=t(a,"margin-right"),o=a.getPropertyValue("box-sizing");if(o&&"border-box"===o)L=e+n+l;else{const{clientWidth:t,offsetWidth:a}=i;L=e+s+r+n+l+(a-t)}}r&&(i.style.transform=r),n&&(i.style.webkitTransform=n),s.roundLengths&&(L=Math.floor(L))}else L=(E-(s.slidesPerView-1)*x)/s.slidesPerView,s.roundLengths&&(L=Math.floor(L)),i&&(i.style[e.getDirectionLabel("width")]=`${L}px`);i&&(i.swiperSlideSize=L),h.push(L),s.centeredSlides?(S=S+L/2+M/2+x,0===M&&0!==a&&(S=S-E/2-x),0===a&&(S=S-E/2-x),Math.abs(S)<.001&&(S=0),s.roundLengths&&(S=Math.floor(S)),C%s.slidesPerGroup===0&&p.push(S),u.push(S)):(s.roundLengths&&(S=Math.floor(S)),(C-Math.min(e.params.slidesPerGroupSkip,C))%e.params.slidesPerGroup===0&&p.push(S),u.push(S),S=S+L+x),e.virtualSize+=L+x,M=L,C+=1}}if(e.virtualSize=Math.max(e.virtualSize,E)+v,r&&n&&("slide"===s.effect||"coverflow"===s.effect)&&(a.style.width=`${e.virtualSize+x}px`),s.setWrapperSize&&(a.style[e.getDirectionLabel("width")]=`${e.virtualSize+x}px`),P&&e.grid.updateWrapperSize(L,p),!s.centeredSlides){const t="auto"!==s.slidesPerView&&s.slidesPerView%1!=0,a=s.snapToSlideEdge&&!s.loop&&("auto"===s.slidesPerView||t);let i=p.length;if(a){let e;if("auto"===s.slidesPerView){e=1;let t=0;for(let s=h.length-1;s>=0&&(t+=h[s]+(s<h.length-1?x:0),t<=E);s-=1)e=h.length-s}else e=Math.floor(s.slidesPerView);i=Math.max(c-e,0)}const r=[];for(let t=0;t<p.length;t+=1){let n=p[t];s.roundLengths&&(n=Math.floor(n)),a?t<=i&&r.push(n):p[t]<=e.virtualSize-E&&r.push(n)}p=r,Math.floor(e.virtualSize-E)-Math.floor(p[p.length-1])>1&&(a||p.push(e.virtualSize-E))}if(l&&s.loop){const t=h[0]+x;if(s.slidesPerGroup>1){const a=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/s.slidesPerGroup),i=t*s.slidesPerGroup;for(let e=0;e<a;e+=1)p.push(p[p.length-1]+i)}for(let a=0;a<e.virtual.slidesBefore+e.virtual.slidesAfter;a+=1)1===s.slidesPerGroup&&p.push(p[p.length-1]+t),u.push(u[u.length-1]+t),e.virtualSize+=t}if(0===p.length&&(p=[0]),0!==x){const t=e.isHorizontal()&&r?"marginLeft":e.getDirectionLabel("marginRight");d.filter((e,t)=>!(s.cssMode&&!s.loop)||t!==d.length-1).forEach(e=>{e.style[t]=`${x}px`})}if(s.centeredSlides&&s.centeredSlidesBounds){let e=0;h.forEach(t=>{e+=t+(x||0)}),e-=x;const t=e>E?e-E:0;p=p.map(e=>e<=0?-f:e>t?t+v:e)}if(s.centerInsufficientSlides){let e=0;if(h.forEach(t=>{e+=t+(x||0)}),e-=x,e<E){const t=(E-e)/2;p.forEach((e,s)=>{p[s]=e-t}),u.forEach((e,s)=>{u[s]=e+t})}}if(Object.assign(e,{slides:d,snapGrid:p,slidesGrid:u,slidesSizesGrid:h}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){m(a,"--swiper-centered-offset-before",-p[0]+"px"),m(a,"--swiper-centered-offset-after",e.size/2-h[h.length-1]/2+"px");const t=-e.snapGrid[0],s=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+s)}if(c!==o&&e.emit("slidesLengthChange"),p.length!==w&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),u.length!==b&&e.emit("slidesGridLengthChange"),s.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(l||s.cssMode||"slide"!==s.effect&&"fade"!==s.effect)){const t=`${s.containerModifierClass}backface-hidden`,a=e.el.classList.contains(t);c<=s.maxBackfaceHiddenSlides?a||e.el.classList.add(t):a&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,s=[],a=t.virtual&&t.params.virtual.enabled;let i,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const n=e=>a?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{s.push(e)});else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const e=t.activeIndex+i;if(e>t.slides.length&&!a)break;s.push(n(e))}else s.push(n(t.activeIndex));for(i=0;i<s.length;i+=1)if(void 0!==s[i]){const e=s[i].offsetHeight;r=e>r?e:r}(r||0===r)&&(t.wrapperEl.style.height=`${r}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,s=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let a=0;a<t.length;a+=1)t[a].swiperSlideOffset=(e.isHorizontal()?t[a].offsetLeft:t[a].offsetTop)-s-e.cssOverflowAdjustment()},updateSlidesProgress:function(e=this&&this.translate||0){const t=this,s=t.params,{slides:a,rtlTranslate:i,snapGrid:r}=t;if(0===a.length)return;void 0===a[0].swiperSlideOffset&&t.updateSlidesOffset();let n=-e;i&&(n=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let l=s.spaceBetween;"string"==typeof l&&l.indexOf("%")>=0?l=parseFloat(l.replace("%",""))/100*t.size:"string"==typeof l&&(l=parseFloat(l));for(let e=0;e<a.length;e+=1){const o=a[e];let d=o.swiperSlideOffset;s.cssMode&&s.centeredSlides&&(d-=a[0].swiperSlideOffset);const c=(n+(s.centeredSlides?t.minTranslate():0)-d)/(o.swiperSlideSize+l),p=(n-r[0]+(s.centeredSlides?t.minTranslate():0)-d)/(o.swiperSlideSize+l),u=-(n-d),m=u+t.slidesSizesGrid[e],h=u>=0&&u<=t.size-t.slidesSizesGrid[e],f=u>=0&&u<t.size-1||m>1&&m<=t.size||u<=0&&m>=t.size;f&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(e)),D(o,f,s.slideVisibleClass),D(o,h,s.slideFullyVisibleClass),o.progress=i?-c:c,o.originalProgress=i?-p:p}},updateProgress:function(e){const t=this;if(void 0===e){const s=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*s||0}const s=t.params,a=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:r,isEnd:n,progressLoop:l}=t;const o=r,d=n;if(0===a)i=0,r=!0,n=!0;else{i=(e-t.minTranslate())/a;const s=Math.abs(e-t.minTranslate())<1,l=Math.abs(e-t.maxTranslate())<1;r=s||i<=0,n=l||i>=1,s&&(i=0),l&&(i=1)}if(s.loop){const s=t.getSlideIndexByData(0),a=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[s],r=t.slidesGrid[a],n=t.slidesGrid[t.slidesGrid.length-1],o=Math.abs(e);l=o>=i?(o-i)/n:(o+n-r)/n,l>1&&(l-=1)}Object.assign(t,{progress:i,progressLoop:l,isBeginning:r,isEnd:n}),(s.watchSlidesProgress||s.centeredSlides&&s.autoHeight)&&t.updateSlidesProgress(e),r&&!o&&t.emit("reachBeginning toEdge"),n&&!d&&t.emit("reachEnd toEdge"),(o&&!r||d&&!n)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this,{slides:t,params:s,slidesEl:a,activeIndex:i}=e,r=e.virtual&&s.virtual.enabled,n=e.grid&&s.grid&&s.grid.rows>1,l=e=>g(a,`.${s.slideClass}${e}, swiper-slide${e}`)[0];let o,d,c;if(r)if(s.loop){let t=i-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),o=l(`[data-swiper-slide-index="${t}"]`)}else o=l(`[data-swiper-slide-index="${i}"]`);else n?(o=t.find(e=>e.column===i),c=t.find(e=>e.column===i+1),d=t.find(e=>e.column===i-1)):o=t[i];o&&(n||(c=function(e,t){const s=[];for(;e.nextElementSibling;){const a=e.nextElementSibling;t?a.matches(t)&&s.push(a):s.push(a),e=a}return s}(o,`.${s.slideClass}, swiper-slide`)[0],s.loop&&!c&&(c=t[0]),d=function(e,t){const s=[];for(;e.previousElementSibling;){const a=e.previousElementSibling;t?a.matches(t)&&s.push(a):s.push(a),e=a}return s}(o,`.${s.slideClass}, swiper-slide`)[0],s.loop&&0===!d&&(d=t[t.length-1]))),t.forEach(e=>{G(e,e===o,s.slideActiveClass),G(e,e===c,s.slideNextClass),G(e,e===d,s.slidePrevClass)}),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,s=t.rtlTranslate?t.translate:-t.translate,{snapGrid:a,params:i,activeIndex:r,realIndex:n,snapIndex:l}=t;let o,d=e;const c=e=>{let s=e-t.virtual.slidesBefore;return s<0&&(s=t.virtual.slides.length+s),s>=t.virtual.slides.length&&(s-=t.virtual.slides.length),s};if(void 0===d&&(d=function(e){const{slidesGrid:t,params:s}=e,a=e.rtlTranslate?e.translate:-e.translate;let i;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?a>=t[e]&&a<t[e+1]-(t[e+1]-t[e])/2?i=e:a>=t[e]&&a<t[e+1]&&(i=e+1):a>=t[e]&&(i=e);return s.normalizeSlideIndex&&(i<0||void 0===i)&&(i=0),i}(t)),a.indexOf(s)>=0)o=a.indexOf(s);else{const e=Math.min(i.slidesPerGroupSkip,d);o=e+Math.floor((d-e)/i.slidesPerGroup)}if(o>=a.length&&(o=a.length-1),d===r&&!t.params.loop)return void(o!==l&&(t.snapIndex=o,t.emit("snapIndexChange")));if(d===r&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=c(d));const p=t.grid&&i.grid&&i.grid.rows>1;let u;if(t.virtual&&i.virtual.enabled)u=i.loop?c(d):d;else if(p){const e=t.slides.find(e=>e.column===d);let s=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(s)&&(s=Math.max(t.slides.indexOf(e),0)),u=Math.floor(s/i.grid.rows)}else if(t.slides[d]){const e=t.slides[d].getAttribute("data-swiper-slide-index");u=e?parseInt(e,10):d}else u=d;Object.assign(t,{previousSnapIndex:l,snapIndex:o,previousRealIndex:n,realIndex:u,previousIndex:r,activeIndex:d}),t.initialized&&Y(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(n!==u&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const s=this,a=s.params;let i=e.closest(`.${a.slideClass}, swiper-slide`);!i&&s.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!i&&e.matches&&e.matches(`.${a.slideClass}, swiper-slide`)&&(i=e)});let r,n=!1;if(i)for(let e=0;e<s.slides.length;e+=1)if(s.slides[e]===i){n=!0,r=e;break}if(!i||!n)return s.clickedSlide=void 0,void(s.clickedIndex=void 0);s.clickedSlide=i,s.virtual&&s.params.virtual.enabled?s.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):s.clickedIndex=r,a.slideToClickedSlide&&void 0!==s.clickedIndex&&s.clickedIndex!==s.activeIndex&&s.slideToClickedSlide()}};var N={getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:s,translate:a,wrapperEl:i}=this;if(t.virtualTranslate)return s?-a:a;if(t.cssMode)return a;let r=d(i,e);return r+=this.cssOverflowAdjustment(),s&&(r=-r),r||0},setTranslate:function(e,t){const s=this,{rtlTranslate:a,params:i,wrapperEl:r,progress:n}=s;let l,o=0,d=0;s.isHorizontal()?o=a?-e:e:d=e,i.roundLengths&&(o=Math.floor(o),d=Math.floor(d)),s.previousTranslate=s.translate,s.translate=s.isHorizontal()?o:d,i.cssMode?r[s.isHorizontal()?"scrollLeft":"scrollTop"]=s.isHorizontal()?-o:-d:i.virtualTranslate||(s.isHorizontal()?o-=s.cssOverflowAdjustment():d-=s.cssOverflowAdjustment(),r.style.transform=`translate3d(${o}px, ${d}px, 0px)`);const c=s.maxTranslate()-s.minTranslate();l=0===c?0:(e-s.minTranslate())/c,l!==n&&s.updateProgress(e),s.emit("setTranslate",s.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,s=!0,a=!0,i){const r=this,{params:n,wrapperEl:l}=r;if(r.animating&&n.preventInteractionOnTransition)return!1;const o=r.minTranslate(),d=r.maxTranslate();let c;if(c=a&&e>o?o:a&&e<d?d:e,r.updateProgress(c),n.cssMode){const e=r.isHorizontal();if(0===t)l[e?"scrollLeft":"scrollTop"]=-c;else{if(!r.support.smoothScroll)return h({swiper:r,targetPosition:-c,side:e?"left":"top"}),!0;l.scrollTo({[e?"left":"top"]:-c,behavior:"smooth"})}return!0}return 0===t?(r.setTransition(0),r.setTranslate(c),s&&(r.emit("beforeTransitionStart",t,i),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(c),s&&(r.emit("beforeTransitionStart",t,i),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,r.animating=!1,s&&r.emit("transitionEnd"))}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd))),!0}};function R({swiper:e,runCallbacks:t,direction:s,step:a}){const{activeIndex:i,previousIndex:r}=e;let n=s;n||(n=i>r?"next":i<r?"prev":"reset"),e.emit(`transition${a}`),t&&"reset"===n?e.emit(`slideResetTransition${a}`):t&&i!==r&&(e.emit(`slideChangeTransition${a}`),"next"===n?e.emit(`slideNextTransition${a}`):e.emit(`slidePrevTransition${a}`))}var V={slideTo:function(e=0,t,s=!0,a,i){"string"==typeof e&&(e=parseInt(e,10));const r=this;let n=e;n<0&&(n=0);const{params:l,snapGrid:o,slidesGrid:d,previousIndex:c,activeIndex:p,rtlTranslate:u,wrapperEl:m,enabled:f}=r;if(!f&&!a&&!i||r.destroyed||r.animating&&l.preventInteractionOnTransition)return!1;void 0===t&&(t=r.params.speed);const g=Math.min(r.params.slidesPerGroupSkip,n);let v=g+Math.floor((n-g)/r.params.slidesPerGroup);v>=o.length&&(v=o.length-1);const w=-o[v];if(l.normalizeSlideIndex)for(let e=0;e<d.length;e+=1){const t=-Math.floor(100*w),s=Math.floor(100*d[e]),a=Math.floor(100*d[e+1]);void 0!==d[e+1]?t>=s&&t<a-(a-s)/2?n=e:t>=s&&t<a&&(n=e+1):t>=s&&(n=e)}if(r.initialized&&n!==p){if(!r.allowSlideNext&&(u?w>r.translate&&w>r.minTranslate():w<r.translate&&w<r.minTranslate()))return!1;if(!r.allowSlidePrev&&w>r.translate&&w>r.maxTranslate()&&(p||0)!==n)return!1}let b;n!==(c||0)&&s&&r.emit("beforeSlideChangeStart"),r.updateProgress(w),b=n>p?"next":n<p?"prev":"reset";const y=r.virtual&&r.params.virtual.enabled;if(!(y&&i)&&(u&&-w===r.translate||!u&&w===r.translate))return r.updateActiveIndex(n),l.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==l.effect&&r.setTranslate(w),"reset"!==b&&(r.transitionStart(s,b),r.transitionEnd(s,b)),!1;if(l.cssMode){const e=r.isHorizontal(),s=u?w:-w;if(0===t)y&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),y&&!r._cssModeVirtualInitialSet&&r.params.initialSlide>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[e?"scrollLeft":"scrollTop"]=s})):m[e?"scrollLeft":"scrollTop"]=s,y&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1});else{if(!r.support.smoothScroll)return h({swiper:r,targetPosition:s,side:e?"left":"top"}),!0;m.scrollTo({[e?"left":"top"]:s,behavior:"smooth"})}return!0}const E=k().isSafari;return y&&!i&&E&&r.isElement&&r.virtual.update(!1,!1,n),r.setTransition(t),r.setTranslate(w),r.updateActiveIndex(n),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,a),r.transitionStart(s,b),0===t?r.transitionEnd(s,b):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(s,b))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t,s=!0,a){if("string"==typeof e){e=parseInt(e,10)}const i=this;if(i.destroyed)return;void 0===t&&(t=i.params.speed);const r=i.grid&&i.params.grid&&i.params.grid.rows>1;let n=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)n+=i.virtual.slidesBefore;else{let e;if(r){const t=n*i.params.grid.rows;e=i.slides.find(e=>1*e.getAttribute("data-swiper-slide-index")===t).column}else e=i.getSlideIndexByData(n);const t=r?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:s,slidesOffsetBefore:l,slidesOffsetAfter:o}=i.params,d=s||!!l||!!o;let c=i.params.slidesPerView;"auto"===c?c=i.slidesPerViewDynamic():(c=Math.ceil(parseFloat(i.params.slidesPerView,10)),d&&c%2==0&&(c+=1));let p=t-e<c;if(d&&(p=p||e<Math.ceil(c/2)),a&&d&&"auto"!==i.params.slidesPerView&&!r&&(p=!1),p){const s=d?e<i.activeIndex?"prev":"next":e-i.activeIndex-1<i.params.slidesPerView?"next":"prev";i.loopFix({direction:s,slideTo:!0,activeSlideIndex:"next"===s?e+1:e-t+1,slideRealIndex:"next"===s?i.realIndex:void 0})}if(r){const e=n*i.params.grid.rows;n=i.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e).column}else n=i.getSlideIndexByData(n)}return requestAnimationFrame(()=>{i.slideTo(n,t,s,a)}),i},slideNext:function(e,t=!0,s){const a=this,{enabled:i,params:r,animating:n}=a;if(!i||a.destroyed)return a;void 0===e&&(e=a.params.speed);let l=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(l=Math.max(a.slidesPerViewDynamic("current",!0),1));const o=a.activeIndex<r.slidesPerGroupSkip?1:l,d=a.virtual&&r.virtual.enabled;if(r.loop){if(n&&!d&&r.loopPreventsSliding)return!1;if(a.loopFix({direction:"next"}),a._clientLeft=a.wrapperEl.clientLeft,a.activeIndex===a.slides.length-1&&r.cssMode)return requestAnimationFrame(()=>{a.slideTo(a.activeIndex+o,e,t,s)}),!0}return r.rewind&&a.isEnd?a.slideTo(0,e,t,s):a.slideTo(a.activeIndex+o,e,t,s)},slidePrev:function(e,t=!0,s){const a=this,{params:i,snapGrid:r,slidesGrid:n,rtlTranslate:l,enabled:o,animating:d}=a;if(!o||a.destroyed)return a;void 0===e&&(e=a.params.speed);const c=a.virtual&&i.virtual.enabled;if(i.loop){if(d&&!c&&i.loopPreventsSliding)return!1;a.loopFix({direction:"prev"}),a._clientLeft=a.wrapperEl.clientLeft}function p(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const u=p(l?a.translate:-a.translate),m=r.map(e=>p(e)),h=i.freeMode&&i.freeMode.enabled;let f=r[m.indexOf(u)-1];if(void 0===f&&(i.cssMode||h)){let e;r.forEach((t,s)=>{u>=t&&(e=s)}),void 0!==e&&(f=h?r[e]:r[e>0?e-1:e])}let g=0;if(void 0!==f&&(g=n.indexOf(f),g<0&&(g=a.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(g=g-a.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),i.rewind&&a.isBeginning){const i=a.params.virtual&&a.params.virtual.enabled&&a.virtual?a.virtual.slides.length-1:a.slides.length-1;return a.slideTo(i,e,t,s)}return i.loop&&0===a.activeIndex&&i.cssMode?(requestAnimationFrame(()=>{a.slideTo(g,e,t,s)}),!0):a.slideTo(g,e,t,s)},slideReset:function(e,t=!0,s){const a=this;if(!a.destroyed)return void 0===e&&(e=a.params.speed),a.slideTo(a.activeIndex,e,t,s)},slideToClosest:function(e,t=!0,s,a=.5){const i=this;if(i.destroyed)return;void 0===e&&(e=i.params.speed);let r=i.activeIndex;const n=Math.min(i.params.slidesPerGroupSkip,r),l=n+Math.floor((r-n)/i.params.slidesPerGroup),o=i.rtlTranslate?i.translate:-i.translate;if(o>=i.snapGrid[l]){const e=i.snapGrid[l];o-e>(i.snapGrid[l+1]-e)*a&&(r+=i.params.slidesPerGroup)}else{const e=i.snapGrid[l-1];o-e<=(i.snapGrid[l]-e)*a&&(r-=i.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,i.slidesGrid.length-1),i.slideTo(r,e,t,s)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:s}=e,a="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i,r=e.getSlideIndexWhenGrid(e.clickedIndex);const n=e.isElement?"swiper-slide":`.${t.slideClass}`,o=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(i):r>(o?(e.slides.length-a)/2-(e.params.grid.rows-1):e.slides.length-a)?(e.loopFix(),r=e.getSlideIndex(g(s,`${n}[data-swiper-slide-index="${i}"]`)[0]),l(()=>{e.slideTo(r)})):e.slideTo(r)}else e.slideTo(r)}};var q={loopCreate:function(e,t){const s=this,{params:a,slidesEl:i}=s;if(!a.loop||s.virtual&&s.params.virtual.enabled)return;const r=()=>{g(i,`.${a.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})},n=s.grid&&a.grid&&a.grid.rows>1;a.loopAddBlankSlides&&(a.slidesPerGroup>1||n)&&(()=>{const e=g(i,`.${a.slideBlankClass}`);e.forEach(e=>{e.remove()}),e.length>0&&(s.recalcSlides(),s.updateSlides())})();const l=a.slidesPerGroup*(n?a.grid.rows:1),o=s.slides.length%l!==0,d=n&&s.slides.length%a.grid.rows!==0,c=e=>{for(let t=0;t<e;t+=1){const e=s.isElement?w("swiper-slide",[a.slideBlankClass]):w("div",[a.slideClass,a.slideBlankClass]);s.slidesEl.append(e)}};if(o){if(a.loopAddBlankSlides){c(l-s.slides.length%l),s.recalcSlides(),s.updateSlides()}else v("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else if(d){if(a.loopAddBlankSlides){c(a.grid.rows-s.slides.length%a.grid.rows),s.recalcSlides(),s.updateSlides()}else v("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else r();const p=a.centeredSlides||!!a.slidesOffsetBefore||!!a.slidesOffsetAfter;s.loopFix({slideRealIndex:e,direction:p?void 0:"next",initial:t})},loopFix:function({slideRealIndex:e,slideTo:t=!0,direction:s,setTranslate:a,activeSlideIndex:i,initial:r,byController:n,byMousewheel:l}={}){const o=this;if(!o.params.loop)return;o.emit("beforeLoopFix");const{slides:d,allowSlidePrev:c,allowSlideNext:p,slidesEl:u,params:m}=o,{centeredSlides:h,slidesOffsetBefore:f,slidesOffsetAfter:g,initialSlide:w}=m,b=h||!!f||!!g;if(o.allowSlidePrev=!0,o.allowSlideNext=!0,o.virtual&&m.virtual.enabled)return t&&(b||0!==o.snapIndex?b&&o.snapIndex<m.slidesPerView?o.slideTo(o.virtual.slides.length+o.snapIndex,0,!1,!0):o.snapIndex===o.snapGrid.length-1&&o.slideTo(o.virtual.slidesBefore,0,!1,!0):o.slideTo(o.virtual.slides.length,0,!1,!0)),o.allowSlidePrev=c,o.allowSlideNext=p,void o.emit("loopFix");let y=m.slidesPerView;"auto"===y?y=o.slidesPerViewDynamic():(y=Math.ceil(parseFloat(m.slidesPerView,10)),b&&y%2==0&&(y+=1));const E=m.slidesPerGroupAuto?y:m.slidesPerGroup;let x=b?Math.max(E,Math.ceil(y/2)):E;x%E!==0&&(x+=E-x%E),x+=m.loopAdditionalSlides,o.loopedSlides=x;const S=o.grid&&m.grid&&m.grid.rows>1;d.length<y+x||"cards"===o.params.effect&&d.length<y+2*x?v("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):S&&"row"===m.grid.fill&&v("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const T=[],M=[],C=S?Math.ceil(d.length/m.grid.rows):d.length,P=r&&C-w<y&&!b;let L=P?w:o.activeIndex;void 0===i?i=o.getSlideIndex(d.find(e=>e.classList.contains(m.slideActiveClass))):L=i;const I="next"===s||!s,z="prev"===s||!s;let A=0,$=0;const k=(S?d[i].column:i)+(b&&void 0===a?-y/2+.5:0);if(k<x){A=Math.max(x-k,E);for(let e=0;e<x-k;e+=1){const t=e-Math.floor(e/C)*C;if(S){const e=C-t-1;for(let t=d.length-1;t>=0;t-=1)d[t].column===e&&T.push(t)}else T.push(C-t-1)}}else if(k+y>C-x){$=Math.max(k-(C-2*x),E),P&&($=Math.max($,y-C+w+1));for(let e=0;e<$;e+=1){const t=e-Math.floor(e/C)*C;S?d.forEach((e,s)=>{e.column===t&&M.push(s)}):M.push(t)}}if(o.__preventObserver__=!0,requestAnimationFrame(()=>{o.__preventObserver__=!1}),"cards"===o.params.effect&&d.length<y+2*x&&(M.includes(i)&&M.splice(M.indexOf(i),1),T.includes(i)&&T.splice(T.indexOf(i),1)),z&&T.forEach(e=>{d[e].swiperLoopMoveDOM=!0,u.prepend(d[e]),d[e].swiperLoopMoveDOM=!1}),I&&M.forEach(e=>{d[e].swiperLoopMoveDOM=!0,u.append(d[e]),d[e].swiperLoopMoveDOM=!1}),o.recalcSlides(),"auto"===m.slidesPerView?o.updateSlides():S&&(T.length>0&&z||M.length>0&&I)&&o.slides.forEach((e,t)=>{o.grid.updateSlide(t,e,o.slides)}),m.watchSlidesProgress&&o.updateSlidesOffset(),t)if(T.length>0&&z){if(void 0===e){const e=o.slidesGrid[L],t=o.slidesGrid[L+A]-e;l?o.setTranslate(o.translate-t):(o.slideTo(L+Math.ceil(A),0,!1,!0),a&&(o.touchEventsData.startTranslate=o.touchEventsData.startTranslate-t,o.touchEventsData.currentTranslate=o.touchEventsData.currentTranslate-t))}else if(a){const e=S?T.length/m.grid.rows:T.length;o.slideTo(o.activeIndex+e,0,!1,!0),o.touchEventsData.currentTranslate=o.translate}}else if(M.length>0&&I)if(void 0===e){const e=o.slidesGrid[L],t=o.slidesGrid[L-$]-e;l?o.setTranslate(o.translate-t):(o.slideTo(L-$,0,!1,!0),a&&(o.touchEventsData.startTranslate=o.touchEventsData.startTranslate-t,o.touchEventsData.currentTranslate=o.touchEventsData.currentTranslate-t))}else{const e=S?M.length/m.grid.rows:M.length;o.slideTo(o.activeIndex-e,0,!1,!0)}if(o.allowSlidePrev=c,o.allowSlideNext=p,o.controller&&o.controller.control&&!n){const r={slideRealIndex:e,direction:s,setTranslate:a,activeSlideIndex:i,byController:!0};Array.isArray(o.controller.control)?o.controller.control.forEach(e=>{!e.destroyed&&e.params.loop&&e.loopFix({...r,slideTo:e.params.slidesPerView===m.slidesPerView&&t})}):o.controller.control instanceof o.constructor&&o.controller.control.params.loop&&o.controller.control.loopFix({...r,slideTo:o.controller.control.params.slidesPerView===m.slidesPerView&&t})}o.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:s}=e;if(!t.loop||!s||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const a=[];e.slides.forEach(e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;a[t]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),a.forEach(e=>{s.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function _(e,t,s){const a=r(),{params:i}=e,n=i.edgeSwipeDetection,l=i.edgeSwipeThreshold;return!n||!(s<=l||s>=a.innerWidth-l)||"prevent"===n&&(t.preventDefault(),!0)}function F(e){const t=this,s=a();let i=e;i.originalEvent&&(i=i.originalEvent);const n=t.touchEventsData;if("pointerdown"===i.type){if(null!==n.pointerId&&n.pointerId!==i.pointerId)return;n.pointerId=i.pointerId}else"touchstart"===i.type&&1===i.targetTouches.length&&(n.touchId=i.targetTouches[0].identifier);if("touchstart"===i.type)return void _(t,i,i.targetTouches[0].pageX);const{params:l,touches:d,enabled:c}=t;if(!c)return;if(!l.simulateTouch&&"mouse"===i.pointerType)return;if(t.animating&&l.preventInteractionOnTransition)return;!t.animating&&l.cssMode&&l.loop&&t.loopFix();let p=i.target;if("wrapper"===l.touchEventsTarget&&!function(e,t){const s=r();let a=t.contains(e);!a&&s.HTMLSlotElement&&t instanceof HTMLSlotElement&&(a=[...t.assignedElements()].includes(e),a||(a=function(e,t){const s=[t];for(;s.length>0;){const t=s.shift();if(e===t)return!0;s.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}(e,t)));return a}(p,t.wrapperEl))return;if("which"in i&&3===i.which)return;if("button"in i&&i.button>0)return;if(n.isTouched&&n.isMoved)return;const u=!!l.noSwipingClass&&""!==l.noSwipingClass,m=i.composedPath?i.composedPath():i.path;u&&i.target&&i.target.shadowRoot&&m&&(p=m[0]);const h=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,f=!(!i.target||!i.target.shadowRoot);if(l.noSwiping&&(f?function(e,t=this){return function t(s){if(!s||s===a()||s===r())return null;s.assignedSlot&&(s=s.assignedSlot);const i=s.closest(e);return i||s.getRootNode?i||t(s.getRootNode().host):null}(t)}(h,p):p.closest(h)))return void(t.allowClick=!0);if(l.swipeHandler&&!p.closest(l.swipeHandler))return;d.currentX=i.pageX,d.currentY=i.pageY;const g=d.currentX,v=d.currentY;if(!_(t,i,g))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),d.startX=g,d.startY=v,n.touchStartTime=o(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,l.threshold>0&&(n.allowThresholdMove=!1);let w=!0;p.matches(n.focusableElements)&&(w=!1,"SELECT"===p.nodeName&&(n.isTouched=!1)),s.activeElement&&s.activeElement.matches(n.focusableElements)&&s.activeElement!==p&&("mouse"===i.pointerType||"mouse"!==i.pointerType&&!p.matches(n.focusableElements))&&s.activeElement.blur();const b=w&&t.allowTouchMove&&l.touchStartPreventDefault;!l.touchStartForcePreventDefault&&!b||p.isContentEditable||i.preventDefault(),l.freeMode&&l.freeMode.enabled&&t.freeMode&&t.animating&&!l.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",i)}function W(e){const t=a(),s=this,i=s.touchEventsData,{params:r,touches:n,rtlTranslate:l,enabled:d}=s;if(!d)return;if(!r.simulateTouch&&"mouse"===e.pointerType)return;let c,p=e;if(p.originalEvent&&(p=p.originalEvent),"pointermove"===p.type){if(null!==i.touchId)return;if(p.pointerId!==i.pointerId)return}if("touchmove"===p.type){if(c=[...p.changedTouches].find(e=>e.identifier===i.touchId),!c||c.identifier!==i.touchId)return}else c=p;if(!i.isTouched)return void(i.startMoving&&i.isScrolling&&s.emit("touchMoveOpposite",p));const u=c.pageX,m=c.pageY;if(p.preventedByNestedSwiper)return n.startX=u,void(n.startY=m);if(!s.allowTouchMove)return p.target.matches(i.focusableElements)||(s.allowClick=!1),void(i.isTouched&&(Object.assign(n,{startX:u,startY:m,currentX:u,currentY:m}),i.touchStartTime=o()));if(r.touchReleaseOnEdges&&!r.loop)if(s.isVertical()){if(m<n.startY&&s.translate<=s.maxTranslate()||m>n.startY&&s.translate>=s.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else{if(l&&(u>n.startX&&-s.translate<=s.maxTranslate()||u<n.startX&&-s.translate>=s.minTranslate()))return;if(!l&&(u<n.startX&&s.translate<=s.maxTranslate()||u>n.startX&&s.translate>=s.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(i.focusableElements)&&t.activeElement!==p.target&&"mouse"!==p.pointerType&&t.activeElement.blur(),t.activeElement&&p.target===t.activeElement&&p.target.matches(i.focusableElements))return i.isMoved=!0,void(s.allowClick=!1);i.allowTouchCallbacks&&s.emit("touchMove",p),n.previousX=n.currentX,n.previousY=n.currentY,n.currentX=u,n.currentY=m;const h=n.currentX-n.startX,f=n.currentY-n.startY;if(s.params.threshold&&Math.sqrt(h**2+f**2)<s.params.threshold)return;if(void 0===i.isScrolling){let e;s.isHorizontal()&&n.currentY===n.startY||s.isVertical()&&n.currentX===n.startX?i.isScrolling=!1:h*h+f*f>=25&&(e=180*Math.atan2(Math.abs(f),Math.abs(h))/Math.PI,i.isScrolling=s.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(i.isScrolling&&s.emit("touchMoveOpposite",p),void 0===i.startMoving&&(n.currentX===n.startX&&n.currentY===n.startY||(i.startMoving=!0)),i.isScrolling||"touchmove"===p.type&&i.preventTouchMoveFromPointerMove)return void(i.isTouched=!1);if(!i.startMoving)return;s.allowClick=!1,!r.cssMode&&p.cancelable&&p.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&p.stopPropagation();let g=s.isHorizontal()?h:f,v=s.isHorizontal()?n.currentX-n.previousX:n.currentY-n.previousY;r.oneWayMovement&&(g=Math.abs(g)*(l?1:-1),v=Math.abs(v)*(l?1:-1)),n.diff=g,g*=r.touchRatio,l&&(g=-g,v=-v);const w=s.touchesDirection;s.swipeDirection=g>0?"prev":"next",s.touchesDirection=v>0?"prev":"next";const b=s.params.loop&&!r.cssMode,y="next"===s.touchesDirection&&s.allowSlideNext||"prev"===s.touchesDirection&&s.allowSlidePrev;if(!i.isMoved){if(b&&y&&s.loopFix({direction:s.swipeDirection}),i.startTranslate=s.getTranslate(),s.setTransition(0),s.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});
vendor: 2,162 bytes, line 311
311s.wrapperEl.dispatchEvent(e)}i.allowMomentumBounce=!1,!r.grabCursor||!0!==s.allowSlideNext&&!0!==s.allowSlidePrev||s.setGrabCursor(!0),s.emit("sliderFirstMove",p)}if((new Date).getTime(),!1!==r._loopSwapReset&&i.isMoved&&i.allowThresholdMove&&w!==s.touchesDirection&&b&&y&&Math.abs(g)>=1)return Object.assign(n,{startX:u,startY:m,currentX:u,currentY:m,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,void(i.startTranslate=i.currentTranslate);s.emit("sliderMove",p),i.isMoved=!0,i.currentTranslate=g+i.startTranslate;let E=!0,x=r.resistanceRatio;if(r.touchReleaseOnEdges&&(x=0),g>0?(b&&y&&i.allowThresholdMove&&i.currentTranslate>(r.centeredSlides?s.minTranslate()-s.slidesSizesGrid[s.activeIndex+1]-("auto"!==r.slidesPerView&&s.slides.length-r.slidesPerView>=2?s.slidesSizesGrid[s.activeIndex+1]+s.params.spaceBetween:0)-s.params.spaceBetween:s.minTranslate())&&s.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>s.minTranslate()&&(E=!1,r.resistance&&(i.currentTranslate=s.minTranslate()-1+(-s.minTranslate()+i.startTranslate+g)**x))):g<0&&(b&&y&&i.allowThresholdMove&&i.currentTranslate<(r.centeredSlides?s.maxTranslate()+s.slidesSizesGrid[s.slidesSizesGrid.length-1]+s.params.spaceBetween+("auto"!==r.slidesPerView&&s.slides.length-r.slidesPerView>=2?s.slidesSizesGrid[s.slidesSizesGrid.length-1]+s.params.spaceBetween:0):s.maxTranslate())&&s.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:s.slides.length-("auto"===r.slidesPerView?s.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),i.currentTranslate<s.maxTranslate()&&(E=!1,r.resistance&&(i.currentTranslate=s.maxTranslate()+1-(s.maxTranslate()-i.startTranslate-g)**x))),E&&(p.preventedByNestedSwiper=!0),!s.allowSlideNext&&"next"===s.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!s.allowSlidePrev&&"prev"===s.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),s.allowSlidePrev||s.allowSlideNext||(i.currentTranslate=i.startTranslate),r.threshold>0){if(!(Math.abs(g)>r.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);
vendor: 26,974 bytes, line 311
311if(!i.allowThresholdMove)return i.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,i.currentTranslate=i.startTranslate,void(n.diff=s.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&s.freeMode||r.watchSlidesProgress)&&(s.updateActiveIndex(),s.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&s.freeMode&&s.freeMode.onTouchMove(),s.updateProgress(i.currentTranslate),s.setTranslate(i.currentTranslate))}function j(e){const t=this,s=t.touchEventsData;let a,i=e;i.originalEvent&&(i=i.originalEvent);if("touchend"===i.type||"touchcancel"===i.type){if(a=[...i.changedTouches].find(e=>e.identifier===s.touchId),!a||a.identifier!==s.touchId)return}else{if(null!==s.touchId)return;if(i.pointerId!==s.pointerId)return;a=i}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)){if(!(["pointercancel","contextmenu"].includes(i.type)&&(t.browser.isSafari||t.browser.isWebView)))return}s.pointerId=null,s.touchId=null;const{params:r,touches:n,rtlTranslate:d,slidesGrid:c,enabled:p}=t;if(!p)return;if(!r.simulateTouch&&"mouse"===i.pointerType)return;if(s.allowTouchCallbacks&&t.emit("touchEnd",i),s.allowTouchCallbacks=!1,!s.isTouched)return s.isMoved&&r.grabCursor&&t.setGrabCursor(!1),s.isMoved=!1,void(s.startMoving=!1);r.grabCursor&&s.isMoved&&s.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const u=o(),m=u-s.touchStartTime;if(t.allowClick){const e=i.path||i.composedPath&&i.composedPath();t.updateClickedSlide(e&&e[0]||i.target,e),t.emit("tap click",i),m<300&&u-s.lastClickTime<300&&t.emit("doubleTap doubleClick",i)}if(s.lastClickTime=o(),l(()=>{t.destroyed||(t.allowClick=!0)}),!s.isTouched||!s.isMoved||!t.swipeDirection||0===n.diff&&!s.loopSwapReset||s.currentTranslate===s.startTranslate&&!s.loopSwapReset)return s.isTouched=!1,s.isMoved=!1,void(s.startMoving=!1);let h;if(s.isTouched=!1,s.isMoved=!1,s.startMoving=!1,h=r.followFinger?d?t.translate:-t.translate:-s.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:h});const f=h>=-t.maxTranslate()&&!t.params.loop;let g=0,v=t.slidesSizesGrid[0];for(let e=0;e<c.length;e+=e<r.slidesPerGroupSkip?1:r.slidesPerGroup){const t=e<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;void 0!==c[e+t]?(f||h>=c[e]&&h<c[e+t])&&(g=e,v=c[e+t]-c[e]):(f||h>=c[e])&&(g=e,v=c[c.length-1]-c[c.length-2])}let w=null,b=null;r.rewind&&(t.isBeginning?b=r.virtual&&r.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(w=0));const y=(h-c[g])/v,E=g<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(m>r.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(y>=r.longSwipesRatio?t.slideTo(r.rewind&&t.isEnd?w:g+E):t.slideTo(g)),"prev"===t.swipeDirection&&(y>1-r.longSwipesRatio?t.slideTo(g+E):null!==b&&y<0&&Math.abs(y)>r.longSwipesRatio?t.slideTo(b):t.slideTo(g))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(i.target===t.navigation.nextEl||i.target===t.navigation.prevEl)?i.target===t.navigation.nextEl?t.slideTo(g+E):t.slideTo(g):("next"===t.swipeDirection&&t.slideTo(null!==w?w:g+E),"prev"===t.swipeDirection&&t.slideTo(null!==b?b:g))}}function U(){const e=this,{params:t,el:s}=e;if(s&&0===s.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:a,allowSlidePrev:i,snapGrid:r}=e,n=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const l=n&&t.loop;if(!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||l)e.params.loop&&!n?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);else{const t=n?e.virtual.slides:e.slides;e.slideTo(t.length-1,0,!1,!0)}e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=a,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function K(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Z(){const e=this,{wrapperEl:t,rtlTranslate:s,enabled:a}=e;if(!a)return;let i;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const r=e.maxTranslate()-e.minTranslate();i=0===r?0:(e.translate-e.minTranslate())/r,i!==e.progress&&e.updateProgress(s?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function Q(e){const t=this;X(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}function J(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const ee=(e,t)=>{const s=a(),{params:i,el:r,wrapperEl:n,device:l}=e,o=!!i.nested,d="on"===t?"addEventListener":"removeEventListener",c=t;r&&"string"!=typeof r&&(s[d]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),r[d]("touchstart",e.onTouchStart,{passive:!1}),r[d]("pointerdown",e.onTouchStart,{passive:!1}),s[d]("touchmove",e.onTouchMove,{passive:!1,capture:o}),s[d]("pointermove",e.onTouchMove,{passive:!1,capture:o}),s[d]("touchend",e.onTouchEnd,{passive:!0}),s[d]("pointerup",e.onTouchEnd,{passive:!0}),s[d]("pointercancel",e.onTouchEnd,{passive:!0}),s[d]("touchcancel",e.onTouchEnd,{passive:!0}),s[d]("pointerout",e.onTouchEnd,{passive:!0}),s[d]("pointerleave",e.onTouchEnd,{passive:!0}),s[d]("contextmenu",e.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&r[d]("click",e.onClick,!0),i.cssMode&&n[d]("scroll",e.onScroll),i.updateOnWindowResize?e[c](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",U,!0):e[c]("observerUpdate",U,!0),r[d]("load",e.onLoad,{capture:!0}))};const te=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var se={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",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,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function ae(e,t){return function(s={}){const a=Object.keys(s)[0],i=s[a];"object"==typeof i&&null!==i?(!0===e[a]&&(e[a]={enabled:!0}),"navigation"===a&&e[a]&&e[a].enabled&&!e[a].prevEl&&!e[a].nextEl&&(e[a].auto=!0),["pagination","scrollbar"].indexOf(a)>=0&&e[a]&&e[a].enabled&&!e[a].el&&(e[a].auto=!0),a in e&&"enabled"in i?("object"!=typeof e[a]||"enabled"in e[a]||(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),u(t,s)):u(t,s)):u(t,s)}}const ie={eventsEmitter:O,update:H,translate:N,transition:{setTransition:function(e,t){const s=this;s.params.cssMode||(s.wrapperEl.style.transitionDuration=`${e}ms`,s.wrapperEl.style.transitionDelay=0===e?"0ms":""),s.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const s=this,{params:a}=s;a.cssMode||(a.autoHeight&&s.updateAutoHeight(),R({swiper:s,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){const s=this,{params:a}=s;s.animating=!1,a.cssMode||(s.setTransition(0),R({swiper:s,runCallbacks:e,direction:t,step:"End"}))}},slide:V,loop:q,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const s="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),s.style.cursor="move",s.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=F.bind(e),e.onTouchMove=W.bind(e),e.onTouchEnd=j.bind(e),e.onDocumentTouchStart=J.bind(e),t.cssMode&&(e.onScroll=Z.bind(e)),e.onClick=K.bind(e),e.onLoad=Q.bind(e),ee(e,"on")},detachEvents:function(){ee(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{realIndex:t,initialized:s,params:i,el:r}=e,n=i.breakpoints;if(!n||n&&0===Object.keys(n).length)return;const l=a(),o="window"!==i.breakpointsBase&&i.breakpointsBase?"container":i.breakpointsBase,d=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?e.el:l.querySelector(i.breakpointsBase),c=e.getBreakpoint(n,o,d);if(!c||e.currentBreakpoint===c)return;const p=(c in n?n[c]:void 0)||e.originalParams,m=te(e,i),h=te(e,p),f=e.params.grabCursor,g=p.grabCursor,v=i.enabled;m&&!h?(r.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!m&&h&&(r.classList.add(`${i.containerModifierClass}grid`),(p.grid.fill&&"column"===p.grid.fill||!p.grid.fill&&"column"===i.grid.fill)&&r.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),f&&!g?e.unsetGrabCursor():!f&&g&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===p[t])return;const s=i[t]&&i[t].enabled,a=p[t]&&p[t].enabled;s&&!a&&e[t].disable(),!s&&a&&e[t].enable()});const w=p.direction&&p.direction!==i.direction,b=i.loop&&(p.slidesPerView!==i.slidesPerView||w),y=i.loop;w&&s&&e.changeDirection(),u(e.params,p);const E=e.params.enabled,x=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),v&&!E?e.disable():!v&&E&&e.enable(),e.currentBreakpoint=c,e.emit("_beforeBreakpoint",p),s&&(b?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!y&&x?(e.loopCreate(t),e.updateSlides()):y&&!x&&e.loopDestroy()),e.emit("breakpoint",p)},getBreakpoint:function(e,t="window",s){if(!e||"container"===t&&!s)return;let a=!1;const i=r(),n="window"===t?i.innerHeight:s.clientHeight,l=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:n*t,point:e}}return{value:e,point:e}});l.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<l.length;e+=1){const{point:r,value:n}=l[e];"window"===t?i.matchMedia(`(min-width: ${n}px)`).matches&&(a=r):n<=s.clientWidth&&(a=r)}return a||"max"}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:s}=e,{slidesOffsetBefore:a}=s;if(a){const t=e.slides.length-1,s=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*a;e.isLocked=e.size>s}else e.isLocked=1===e.snapGrid.length;!0===s.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===s.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:s,rtl:a,el:i,device:r}=e,n=function(e,t){const s=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(a=>{e[a]&&s.push(t+a)}):"string"==typeof e&&s.push(t+e)}),s}(["initialized",s.direction,{"free-mode":e.params.freeMode&&s.freeMode.enabled},{autoheight:s.autoHeight},{rtl:a},{grid:s.grid&&s.grid.rows>1},{"grid-column":s.grid&&s.grid.rows>1&&"column"===s.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":s.cssMode},{centered:s.cssMode&&s.centeredSlides},{"watch-progress":s.watchSlidesProgress}],s.containerModifierClass);t.push(...n),i.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}}},re={};class ne{constructor(...e){let t,s;1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?s=e[0]:[t,s]=e,s||(s={}),s=u({},s),t&&!s.el&&(s.el=t);const i=a();if(s.el&&"string"==typeof s.el&&i.querySelectorAll(s.el).length>1){const e=[];return i.querySelectorAll(s.el).forEach(t=>{const a=u({},s,{el:t});e.push(new ne(a))}),e}const r=this;r.__swiper__=!0,r.support=A(),r.device=$({userAgent:s.userAgent}),r.browser=k(),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],s.modules&&Array.isArray(s.modules)&&s.modules.forEach(e=>{"function"==typeof e&&r.modules.indexOf(e)<0&&r.modules.push(e)});const n={};r.modules.forEach(e=>{e({params:s,swiper:r,extendParams:ae(s,n),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})});const l=u({},se,n);return r.params=u({},l,re,s),r.originalParams=u({},r.params),r.passedParams=u({},s),r.params&&r.params.on&&Object.keys(r.params.on).forEach(e=>{r.on(e,r.params.on[e])}),r.params&&r.params.onAny&&r.onAny(r.params.onAny),Object.assign(r,{enabled:r.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===r.params.direction,isVertical:()=>"vertical"===r.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,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:r.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.emit("_swiper"),r.params.init&&r.init(),r}getDirectionLabel(e){return this.isHorizontal()?e:{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"}[e]}getSlideIndex(e){const{slidesEl:t,params:s}=this,a=E(g(t,`.${s.slideClass}, swiper-slide`)[0]);return E(e)-a}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?e=Math.floor(e/this.params.grid.rows):"row"===this.params.grid.fill&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=g(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const s=this;e=Math.min(Math.max(e,0),1);const a=s.minTranslate(),i=(s.maxTranslate()-a)*e+a;s.translateTo(i,void 0===t?0:t),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach(s=>{const a=e.getSlideClasses(s);t.push({slideEl:s,classNames:a}),e.emit("_slideClass",s,a)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){const{params:s,slides:a,slidesGrid:i,slidesSizesGrid:r,size:n,activeIndex:l}=this;let o=1;if("number"==typeof s.slidesPerView)return s.slidesPerView;if(s.centeredSlides){let e,t=a[l]?Math.ceil(a[l].swiperSlideSize):0;for(let s=l+1;s<a.length;s+=1)a[s]&&!e&&(t+=Math.ceil(a[s].swiperSlideSize),o+=1,t>n&&(e=!0));for(let s=l-1;s>=0;s-=1)a[s]&&!e&&(t+=a[s].swiperSlideSize,o+=1,t>n&&(e=!0))}else if("current"===e)for(let e=l+1;e<a.length;e+=1){(t?i[e]+r[e]-i[l]<n:i[e]-i[l]<n)&&(o+=1)}else for(let e=l-1;e>=0;e-=1){i[l]-i[e]<n&&(o+=1)}return o}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:s}=e;function a(){const t=e.rtlTranslate?-1*e.translate:e.translate,s=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(s),e.updateActiveIndex(),e.updateSlidesClasses()}let i;if(s.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(t=>{t.complete&&X(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),s.freeMode&&s.freeMode.enabled&&!s.cssMode)a(),s.autoHeight&&e.updateAutoHeight();else{if(("auto"===s.slidesPerView||s.slidesPerView>1)&&e.isEnd&&!s.centeredSlides){const t=e.virtual&&s.virtual.enabled?e.virtual.slides:e.slides;i=e.slideTo(t.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||a()}s.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const s=this,a=s.params.direction;return e||(e="horizontal"===a?"vertical":"horizontal"),e===a||"horizontal"!==e&&"vertical"!==e||(s.el.classList.remove(`${s.params.containerModifierClass}${a}`),s.el.classList.add(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),s.emit("changeDirection"),t&&s.update()),s}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let s=e||t.params.el;if("string"==typeof s&&(s=document.querySelector(s)),!s)return!1;s.swiper=t,s.parentNode&&s.parentNode.host&&s.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const a=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=(()=>{if(s&&s.shadowRoot&&s.shadowRoot.querySelector){return s.shadowRoot.querySelector(a())}return g(s,a())[0]})();return!i&&t.params.createElements&&(i=w("div",t.params.wrapperClass),s.append(i),g(s,`.${t.params.slideClass}`).forEach(e=>{i.append(e)})),Object.assign(t,{el:s,wrapperEl:i,slidesEl:t.isElement&&!s.parentNode.host.slideSlots?s.parentNode.host:i,hostEl:t.isElement?s.parentNode.host:s,mounted:!0,rtl:"rtl"===s.dir.toLowerCase()||"rtl"===y(s,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===s.dir.toLowerCase()||"rtl"===y(s,"direction")),wrongRTL:"-webkit-box"===y(i,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();const s=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&s.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),s.forEach(e=>{e.complete?X(t,e):e.addEventListener("load",e=>{X(t,e.target)})}),Y(t),t.initialized=!0,Y(t),t.emit("init"),t.emit("afterInit"),t}destroy(e=!0,t=!0){const s=this,{params:a,el:i,wrapperEl:r,slides:n}=s;return void 0===s.params||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),a.loop&&s.loopDestroy(),t&&(s.removeClasses(),i&&"string"!=typeof i&&i.removeAttribute("style"),r&&r.removeAttribute("style"),n&&n.length&&n.forEach(e=>{e.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(e=>{s.off(e)}),!1!==e&&(s.el&&"string"!=typeof s.el&&(s.el.swiper=null),function(e){const t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}(s)),s.destroyed=!0),null}static extendDefaults(e){u(re,e)}static get extendedDefaults(){return re}static get defaults(){return se}static installModule(e){ne.prototype.__modules__||(ne.prototype.__modules__=[]);const t=ne.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>ne.installModule(e)),ne):(ne.installModule(e),ne)}}function le(e,t,s,a){return e.params.createElements&&Object.keys(a).forEach(i=>{if(!s[i]&&!0===s.auto){let r=g(e.el,`.${a[i]}`)[0];r||(r=w("div",a[i]),r.className=a[i],e.el.append(r)),s[i]=r,t[i]=r}}),s}Object.keys(ie).forEach(e=>{Object.keys(ie[e]).forEach(t=>{ne.prototype[t]=ie[e][t]})}),ne.use([function({swiper:e,on:t,emit:s}){const a=r();let i=null,n=null;const l=()=>{e&&!e.destroyed&&e.initialized&&(s("beforeResize"),s("resize"))},o=()=>{e&&!e.destroyed&&e.initialized&&s("orientationchange")};t("init",()=>{e.params.resizeObserver&&void 0!==a.ResizeObserver?e&&!e.destroyed&&e.initialized&&(i=new ResizeObserver(t=>{n=a.requestAnimationFrame(()=>{const{width:s,height:a}=e;let i=s,r=a;t.forEach(({contentBoxSize:t,contentRect:s,target:a})=>{a&&a!==e.el||(i=s?s.width:(t[0]||t).inlineSize,r=s?s.height:(t[0]||t).blockSize)}),i===s&&r===a||l()})}),i.observe(e.el)):(a.addEventListener("resize",l),a.addEventListener("orientationchange",o))}),t("destroy",()=>{n&&a.cancelAnimationFrame(n),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null),a.removeEventListener("resize",l),a.removeEventListener("orientationchange",o)})},function({swiper:e,extendParams:t,on:s,emit:a}){const i=[],n=r(),l=(t,s={})=>{const r=new(n.MutationObserver||n.WebkitMutationObserver)(t=>{if(e.__preventObserver__)return;if(1===t.length)return void a("observerUpdate",t[0]);const s=function(){a("observerUpdate",t[0])};n.requestAnimationFrame?n.requestAnimationFrame(s):n.setTimeout(s,0)});r.observe(t,{attributes:void 0===s.attributes||s.attributes,childList:e.isElement||(void 0===s.childList||s).childList,characterData:void 0===s.characterData||s.characterData}),i.push(r)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",()=>{if(e.params.observer){if(e.params.observeParents){const t=x(e.hostEl);for(let e=0;e<t.length;e+=1)l(t[e])}l(e.hostEl,{childList:e.params.observeSlideChildren}),l(e.wrapperEl,{attributes:!1})}}),s("destroy",()=>{i.forEach(e=>{e.disconnect()}),i.splice(0,i.length)})}]);const oe='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function de(e=""){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}function ce(e){const t=this,{params:s,slidesEl:a}=t;s.loop&&t.loopDestroy();const i=e=>{if("string"==typeof e){const t=document.createElement("div");P(t,e),a.append(t.children[0]),P(t,"")}else a.append(e)};if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&i(e[t]);else i(e);t.recalcSlides(),s.loop&&t.loopCreate(),s.observer&&!t.isElement||t.update()}function pe(e){const t=this,{params:s,activeIndex:a,slidesEl:i}=t;s.loop&&t.loopDestroy();let r=a+1;const n=e=>{if("string"==typeof e){const t=document.createElement("div");P(t,e),i.prepend(t.children[0]),P(t,"")}else i.prepend(e)};if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&n(e[t]);r=a+e.length}else n(e);t.recalcSlides(),s.loop&&t.loopCreate(),s.observer&&!t.isElement||t.update(),t.slideTo(r,0,!1)}function ue(e,t){const s=this,{params:a,activeIndex:i,slidesEl:r}=s;let n=i;a.loop&&(n-=s.loopedSlides,s.loopDestroy(),s.recalcSlides());const l=s.slides.length;if(e<=0)return void s.prependSlide(t);if(e>=l)return void s.appendSlide(t);let o=n>e?n+1:n;const d=[];for(let t=l-1;t>=e;t-=1){const e=s.slides[t];e.remove(),d.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&r.append(t[e]);o=n>e?n+t.length:n}else r.append(t);for(let e=0;e<d.length;e+=1)r.append(d[e]);s.recalcSlides(),a.loop&&s.loopCreate(),a.observer&&!s.isElement||s.update(),a.loop?s.slideTo(o+s.loopedSlides,0,!1):s.slideTo(o,0,!1)}function me(e){const t=this,{params:s,activeIndex:a}=t;let i=a;s.loop&&(i-=t.loopedSlides,t.loopDestroy());let r,n=i;if("object"==typeof e&&"length"in e){for(let s=0;s<e.length;s+=1)r=e[s],t.slides[r]&&t.slides[r].remove(),r<n&&(n-=1);n=Math.max(n,0)}else r=e,t.slides[r]&&t.slides[r].remove(),r<n&&(n-=1),n=Math.max(n,0);t.recalcSlides(),s.loop&&t.loopCreate(),s.observer&&!t.isElement||t.update(
311),s.loop?t.slideTo(n+t.loopedSlides,0,!1):t.slideTo(n,0,!1)}function he(){const e=this,t=[];for(let s=0;s<e.slides.length;s+=1)t.push(s);e.removeSlide(t)}function fe(e){const{effect:t,swiper:s,on:a,setTranslate:i,setTransition:r,overwriteParams:n,perspective:l,recreateShadows:o,getEffectParams:d}=e;let c;a("beforeInit",()=>{if(s.params.effect!==t)return;s.classNames.push(`${s.params.containerModifierClass}${t}`),l&&l()&&s.classNames.push(`${s.params.containerModifierClass}3d`);const e=n?n():{};Object.assign(s.params,e),Object.assign(s.originalParams,e)}),a("setTranslate _virtualUpdated",()=>{s.params.effect===t&&i()}),a("setTransition",(e,a)=>{s.params.effect===t&&r(a)}),a("transitionEnd",()=>{if(s.params.effect===t&&o){if(!d||!d().slideShadows)return;s.slides.forEach(e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>e.remove())}),o()}}),a("virtualUpdate",()=>{s.params.effect===t&&(s.slides.length||(c=!0),requestAnimationFrame(()=>{c&&s.slides&&s.slides.length&&(i(),c=!1)}))})}function ge(e,t){const s=f(t);return s!==t&&(s.style.backfaceVisibility="hidden",s.style["-webkit-backface-visibility"]="hidden"),s}function ve({swiper:e,duration:t,transformElements:s,allSlides:a}){const{activeIndex:i}=e;if(e.params.virtualTranslate&&0!==t){let t,r=!1;t=a?s:s.filter(t=>{const s=t.classList.contains("swiper-slide-transform")?(t=>{if(!t.parentElement)return e.slides.find(e=>e.shadowRoot&&e.shadowRoot===t.parentNode);return t.parentElement})(t):t;return e.getSlideIndex(s)===i}),t.forEach(t=>{S(t,()=>{if(r)return;if(!e||e.destroyed)return;r=!0,e.animating=!1;const t=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(t)})})}}function we(e,t,s){const a=`swiper-slide-shadow${s?`-${s}`:""}${e?` swiper-slide-shadow-${e}`:""}`,i=f(t);let r=i.querySelector(`.${a.split(" ").join(".")}`);return r||(r=w("div",a.split(" ")),i.append(r)),r}const be=[function({swiper:e,extendParams:t,on:s,emit:i}){let r;t({virtual:{enabled:!1,slides:[],cache:!0,slidesPerViewAutoSlideSize:320,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});const n=a();e.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const l=n.createElement("div");function o(t,s){const a=e.params.virtual;if(a.cache&&e.virtual.cache[s])return e.virtual.cache[s];let i;return a.renderSlide?(i=a.renderSlide.call(e,t,s),"string"==typeof i&&(P(l,i),i=l.children[0])):i=e.isElement?w("swiper-slide"):w("div",e.params.slideClass),i.setAttribute("data-swiper-slide-index",s),a.renderSlide||P(i,t),a.cache&&(e.virtual.cache[s]=i),i}function d(t,s,a){const{slidesPerGroup:r,centeredSlides:n,slidesPerView:l,loop:d,initialSlide:c}=e.params;if(s&&!d&&c>0)return;const{addSlidesBefore:p,addSlidesAfter:u,slidesPerViewAutoSlideSize:m}=e.params.virtual,{from:h,to:f,slides:v,slidesGrid:w,offset:b}=e.virtual;e.params.cssMode||e.updateActiveIndex();const y=void 0===a?e.activeIndex||0:a;let E,x,S,T;if(E=e.rtlTranslate?"right":e.isHorizontal()?"left":"top","auto"===l)if(m){let t=e.size;t||(t=e.isHorizontal()?e.el.getBoundingClientRect().width:e.el.getBoundingClientRect().height),x=Math.max(1,Math.ceil(t/m))}else x=1;else x=l;n?(S=Math.floor(x/2)+r+u,T=Math.floor(x/2)+r+p):(S=x+(r-1)+u,T=(d?x:r)+p);let M=y-T,C=y+S;d||(M=Math.max(M,0),C=Math.min(C,v.length-1));let P=(e.slidesGrid[M]||0)-(e.slidesGrid[0]||0);function L(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),i("virtualUpdate")}if(d&&y>=T?(M-=T,n||(P+=e.slidesGrid[0])):d&&y<T&&(M=-T,n&&(P+=e.slidesGrid[0])),Object.assign(e.virtual,{from:M,to:C,offset:P,slidesGrid:e.slidesGrid,slidesBefore:T,slidesAfter:S}),h===M&&f===C&&!t)return e.slidesGrid!==w&&P!==b&&e.slides.forEach(t=>{t.style[E]=P-Math.abs(e.cssOverflowAdjustment())+"px"}),e.updateProgress(),void i("virtualUpdate");if(e.params.virtual.renderExternal)return e.params.virtual.renderExternal.call(e,{offset:P,from:M,to:C,slides:function(){const e=[];for(let t=M;t<=C;t+=1)e.push(v[t]);return e}()}),void(e.params.virtual.renderExternalUpdate?L():i("virtualUpdate"));const I=[],z=[],A=e=>{let t=e;return e<0?t=v.length+e:t>=v.length&&(t-=v.length),t};if(t)e.slides.filter(t=>t.matches(`.${e.params.slideClass}
311, swiper-slide`)).forEach(e=>{e.remove()});else for(let t=h;t<=f;t+=1)if(t<M||t>C){const s=A(t);e.slides.filter(t=>t.matches(`.${e.params.slideClass}[data-swiper-slide-index="${s}"], swiper-slide[data-swiper-slide-index="${s}"]`)).forEach(e=>{e.remove()})}const $=d?-v.length:0,k=d?2*v.length:v.length;for(let e=$;e<k;e+=1)if(e>=M&&e<=C){const s=A(e);void 0===f||t?z.push(s):(e>f&&z.push(s),e<h&&I.push(s))}if(z.forEach(t=>{e.slidesEl.append(o(v[t],t))}),d)for(let t=I.length-1;t>=0;t-=1){const s=I[t];e.slidesEl.prepend(o(v[s],s))}else I.sort((e,t)=>t-e),I.forEach(t=>{e.slidesEl.prepend(o(v[t],t))});g(e.slidesEl,".swiper-slide, swiper-slide").forEach(t=>{t.style[E]=P-Math.abs(e.cssOverflowAdjustment())+"px"}),L()}s("beforeInit",()=>{if(!e.params.virtual.enabled)return;let t;if(void 0===e.passedParams.virtual.slides){const s=[...e.slidesEl.children].filter(t=>t.matches(`.${e.params.slideClass}, swiper-slide`));s&&s.length&&(e.virtual.slides=[...s],t=!0,s.forEach((t,s)=>{t.setAttribute("data-swiper-slide-index",s),e.virtual.cache[s]=t,t.remove()}))}t||(e.virtual.slides=e.params.virtual.slides),e.classNames.push(`${e.params.containerModifierClass}virtual`),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0,d(!1,!0)}),s("setTranslate",()=>{e.params.virtual.enabled&&(e.params.cssMode&&!e._immediateVirtual?(clearTimeout(r),r=setTimeout(()=>{d()},100)):d())}),s("init update resize",()=>{e.params.virtual.enabled&&e.params.cssMode&&m(e.wrapperEl,"--swiper-virtual-size",`${e.virtualSize}px`)}),Object.assign(e.virtual,{appendSlide:function(t){if("object"==typeof t&&"length"in t)for(let s=0;s<t.length;s+=1)t[s]&&e.virtual.slides.push(t[s]);else e.virtual.slides.push(t);d(!0)},prependSlide:function(t){const s=e.activeIndex;let a=s+1,i=1;if(Array.isArray(t)){for(let s=0;s<t.length;s+=1)t[s]&&e.virtual.slides.unshift(t[s]);a=s+t.length,i=t.length}else e.virtual.slides.unshift(t);if(e.params.virtual.cache){const t=e.virtual.cache,s={};Object.keys(t).forEach(e=>{const a=t[e],r=a.getAttribute("data-swiper-slide-index");r&&a.setAttribute("data-swiper-slide-index",parseInt(r,10)+i),s[parseInt(e,10)+i]=a}),e.virtual.cache=s}d(!0),e.slideTo(a,0)},removeSlide:function(t){if(null==t)return;let s=e.activeIndex;if(Array.isArray(t))for(let a=t.length-1;a>=0;a-=1)e.params.virtual.cache&&(delete e.virtual.cache[t[a]],Object.keys(e.virtual.cache).forEach(s=>{s>t&&(e.virtual.cache[s-1]=e.virtual.cache[s],e.virtual.cache[s-1].setAttribute("data-swiper-slide-index",s-1),delete e.virtual.cache[s])})),e.virtual.slides.splice(t[a],1),t[a]<s&&(s-=1),s=Math.max(s,0);else e.params.virtual.cache&&(delete e.virtual.cache[t],Object.keys(e.virtual.cache).forEach(s=>{s>t&&(e.virtual.cache[s-1]=e.virtual.cache[s],e.virtual.cache[s-1].setAttribute("data-swiper-slide-index",s-1),delete e.virtual.cache[s])})),e.virtual.slides.splice(t,1),t<s&&(s-=1),s=Math.max(s,0);d(!0),e.slideTo(s,0)},removeAllSlides:function(){e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),d(!0),e.slideTo(0,0)},update:d})},function({swiper:e,extendParams:t,on:s,emit:i}){const n=a(),l=r();function o(t){if(!e.enabled)return;const{rtlTranslate:s}=e;let a=t;a.originalEvent&&(a=a.originalEvent);const r=a.keyCode||a.charCode,o=e.params.keyboard.pageUpDown,d=o&&33===r,c=o&&34===r,p=37===r,u=39===r,m=38===r,h=40===r;if(!e.allowSlideNext&&(e.isHorizontal()&&u||e.isVertical()&&h||c))return!1;if(!e.allowSlidePrev&&(e.isHorizontal()&&p||e.isVertical()&&m||d))return!1;if(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey)return;if(n.activeElement&&(n.activeElement.isContentEditable||n.activeElement.nodeName&&("input"===n.activeElement.nodeName.toLowerCase()||"textarea"===n.activeElement.nodeName.toLowerCase())))return;if(e.params.keyboard.onlyInViewport&&(d||c||p||u||m||h)){let t=!1;if(x(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&0===x(e.el,`.${e.params.slideActiveClass}`).length)return;const a=e.el,i=a.clientWidth,r=a.clientHeight,n=l.innerWidth,o=l.innerHeight,d=b(a);s&&(d.left-=a.scrollLeft);const c=[[d.left,d.top],[d.left+i,d.top],[d.left,d.top+r],[d.left+i,d.top+r]];for(let e=0;e<c.length;e+=1){const s=c[e];if(s[0]>=0&&s[0]<=n&&s[1]>=0&&s[1]<=o){if(0===s[0]&&0===s[1])continue;t=!0}}if(!t)return}const f=e.params.keyboard.speed;e.isHorizontal()?((d||c||p||u)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),((c||u)&&!s||(d||p)&&s)&&e.slideNext(f),((d||p)&&!s||(c||u)&&s)&&e.slidePrev(f)):((d||c||m||h)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),(c||h)&&e.slideNext(f),(d||m)&&e.slidePrev(f)),i("keyPress",r)}function d(){e.keyboard.enabled||(n.addEventListener("keydown",o),e.keyboard.enabled=!0)}function c(){e.keyboard.enabled&&(n.removeEventListener("keydown",o),e.keyboard.enabled=!1)}e.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0,speed:void 0}}),s("init",()=>{e.params.keyboard.enabled&&d()}),s("destroy",()=>{e.keyboard.enabled&&c()}),Object.assign(e.keyboard,{enable:d,disable:c})},function({swiper:e,extendParams:t,on:s,emit:a}){const i=r();let n;t({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let d,c=o();const p=[];function u(){e.enabled&&(e.mouseEntered=!0)}function m(){e.enabled&&(e.mouseEntered=!1)}function h(t){return!(e.params.mousewheel.thresholdDelta&&t.delta<e.params.mousewheel.thresholdDelta)&&(!(e.params.mousewheel.thresholdTime&&o()-c<e.params.mousewheel.thresholdTime)&&(t.delta>=6&&o()-c<60||(t.direction<0?e.isEnd&&!e.params.loop||e.animating||(e.slideNext(),a("scroll",t.raw)):e.isBeginning&&!e.params.loop||e.animating||(e.slidePrev(),a("scroll",t.raw)),c=(new i.Date).getTime(),!1)))}function f(t){let s=t,i=!0;if(!e.enabled)return;if(t.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const r=e.params.mousewheel;e.params.cssMode&&s.preventDefault();let c=e.el;"container"!==e.params.mousewheel.eventsTarget&&(c=document.querySelector(e.params.mousewheel.eventsTarget));const u=c&&c.contains(s.target);if(!e.mouseEntered&&!u&&!r.releaseOnEdges)return!0;s.originalEvent&&(s=s.originalEvent);let m=0;const f=e.rtlTranslate?-1:1,g=function(e){let t=0,s=0,a=0,i=0;return"detail"in e&&(s=e.detail),"wheelDelta"in e&&(s=-e.wheelDelta/120),"wheelDeltaY"in e&&(s=-e.wheelDeltaY/120
vendor: 4,671 bytes, line 311
311),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=s,s=0),a=10*t,i=10*s,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(a=e.deltaX),e.shiftKey&&!a&&(a=i,i=0),(a||i)&&e.deltaMode&&(1===e.deltaMode?(a*=40,i*=40):(a*=800,i*=800)),a&&!t&&(t=a<1?-1:1),i&&!s&&(s=i<1?-1:1),{spinX:t,spinY:s,pixelX:a,pixelY:i}}(s);if(r.forceToAxis)if(e.isHorizontal()){if(!(Math.abs(g.pixelX)>Math.abs(g.pixelY)))return!0;m=-g.pixelX*f}else{if(!(Math.abs(g.pixelY)>Math.abs(g.pixelX)))return!0;m=-g.pixelY}else m=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*f:-g.pixelY;if(0===m)return!0;r.invert&&(m=-m);let v=e.getTranslate()+m*r.sensitivity;if(v>=e.minTranslate()&&(v=e.minTranslate()),v<=e.maxTranslate()&&(v=e.maxTranslate()),i=!!e.params.loop||!(v===e.minTranslate()||v===e.maxTranslate()),i&&e.params.nested&&s.stopPropagation(),e.params.freeMode&&e.params.freeMode.enabled){const t={time:o(),delta:Math.abs(m),direction:Math.sign(m)},i=d&&t.time<d.time+500&&t.delta<=d.delta&&t.direction===d.direction;if(!i){d=void 0;let o=e.getTranslate()+m*r.sensitivity;const c=e.isBeginning,u=e.isEnd;if(o>=e.minTranslate()&&(o=e.minTranslate()),o<=e.maxTranslate()&&(o=e.maxTranslate()),e.setTransition(0),e.setTranslate(o),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!c&&e.isBeginning||!u&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:t.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(n),n=void 0,p.length>=15&&p.shift();const s=p.length?p[p.length-1]:void 0,a=p[0];if(p.push(t),s&&(t.delta>s.delta||t.direction!==s.direction))p.splice(0);else if(p.length>=15&&t.time-a.time<500&&a.delta-t.delta>=1&&t.delta<=6){const s=m>0?.8:.2;d=t,p.splice(0),n=l(()=>{!e.destroyed&&e.params&&e.slideToClosest(e.params.speed,!0,void 0,s)},0)}n||(n=l(()=>{if(e.destroyed||!e.params)return;d=t,p.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(i||a("scroll",s),e.params.autoplay&&e.params.autoplay.disableOnInteraction&&e.autoplay.stop(),r.releaseOnEdges&&(o===e.minTranslate()||o===e.maxTranslate()))return!0}}else{const s={time:o(),delta:Math.abs(m),direction:Math.sign(m),raw:t};p.length>=2&&p.shift();const a=p.length?p[p.length-1]:void 0;if(p.push(s),a?(s.direction!==a.direction||s.delta>a.delta||s.time>a.time+150)&&h(s):h(s),function(t){const s=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&s.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&s.releaseOnEdges)return!0;return!1}(s))return!0}return s.preventDefault?s.preventDefault():s.returnValue=!1,!1}function g(t){let s=e.el;"container"!==e.params.mousewheel.eventsTarget&&(s=document.querySelector(e.params.mousewheel.eventsTarget)),s[t]("mouseenter",u),s[t]("mouseleave",m),s[t]("wheel",f)}function v(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",f),!0):!e.mousewheel.enabled&&(g("addEventListener"),e.mousewheel.enabled=!0,!0)}function w(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,f),!0):!!e.mousewheel.enabled&&(g("removeEventListener"),e.mousewheel.enabled=!1,!0)}s("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&w(),e.params.mousewheel.enabled&&v()}),s("destroy",()=>{e.params.cssMode&&v(),e.mousewheel.enabled&&w()}),Object.assign(e.mousewheel,{enable:v,disable:w})},function({swiper:e,extendParams:t,on:s,emit:a}){function i(t){let s;return t&&"string"==typeof t&&e.isElement&&(s=e.el.querySelector(t)||e.hostEl.querySelector(t),s)?s:(t&&("string"==typeof t&&(s=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&s&&s.length>1&&1===e.el.querySelectorAll(t).length?s=e.el.querySelector(t):s&&1===s.length&&(s=s[0])),t&&!s?t:s)}function r(t,s){const a=e.params.navigation;(t=M(t)).forEach(t=>{t&&(t.classList[s?"add":"remove"](...a.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=s),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](a.lockClass))})}function n(){const{nextEl:t,prevEl:s}=e.navigation;if(e.params.loop)return r(s,!1),void r(t,!1);r(s,e.isBeginning&&!e.params.rewind),r(t,e.isEnd&&!e.params.rewind)}function l(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),a("navigationPrev"))}function o(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),a("navigationNext"))}function d(){const t=e.params.navigation;if(e.params.navigation=le(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!t.nextEl&&!t.prevEl)return;let s=i(t.nextEl),a=i(t.prevEl);Object.assign(e.navigation,{nextEl:s,prevEl:a}),s=M(s),a=M(a);const r=(s,a)=>
311{if(s){if(t.addIcons&&s.matches(".swiper-button-next,.swiper-button-prev")&&!s.querySelector("svg")){const e=document.createElement("div");P(e,oe),s.appendChild(e.querySelector("svg")),e.remove()}s.addEventListener("click","next"===a?o:l)}!e.enabled&&s&&s.classList.add(...t.lockClass.split(" "))};s.forEach(e=>r(e,"next")),a.forEach(e=>r(e,"prev"))}function c(){let{nextEl:t,prevEl:s}=e.navigation;t=M(t),s=M(s);const a=(t,s)=>{t.removeEventListener("click","next"===s?o:l),t.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach(e=>a(e,"next")),s.forEach(e=>a(e,"prev"))}t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:oe},s("init",()=>{!1===e.params.navigation.enabled?p():(d(),n())}),s("toEdge fromEdge lock unlock",()=>{n()}),s("destroy",()=>{c()}),s("enable disable",()=>{let{nextEl:t,prevEl:s}=e.navigation;t=M(t),s=M(s),e.enabled?n():[...t,...s].filter(e=>!!e).forEach(t=>t.classList.add(e.params.navigation.lockClass))}),s("click",(t,s)=>{let{nextEl:i,prevEl:r}=e.navigation;i=M(i),r=M(r);const n=s.target;let l=r.includes(n)||i.includes(n);if(e.isElement&&!l){const e=s.path||s.composedPath&&s.composedPath();e&&(l=e.find(e=>i.includes(e)||r.includes(e)))}if(e.params.navigation.hideOnClick&&!l){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===n||e.pagination.el.contains(n)))return;let t;i.length?t=i[0].classList.contains(e.params.navigation.hiddenClass):r.length&&(t=r[0].classList.contains(e.params.navigation.hiddenClass)),a(!0===t?"navigationShow":"navigationHide"),[...i,...r].filter(e=>!!e).forEach(t=>t.classList.toggle(e.params.navigation.hiddenClass))}});const p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),c()};Object.assign(e.navigation,{enable:()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),d(),n()},disable:p,update:n,init:d,destroy:c})},function({swiper:e,extendParams:t,on:s,emit:a}){const i="swiper-pagination";let r;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:e=>e,formatFractionTotal:e=>e,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),e.pagination={el:null,bullets:[]};let n=0;function l(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&0===e.pagination.el.length}function o(t,s){const{bulletActiveClass:a}=e.params.pagination;t&&(t=t[("prev"===s?"previous":"next")+"ElementSibling"])&&(t.classList.add(`${a}-${s}`),(t=t[("prev"===s?"previous":"next")+"ElementSibling"])&&t.classList.add(`${a}-${s}-${s}`))}function d(t){const s=t.target.closest(de(e.params.pagination.bulletClass));if(!s)return;t.preventDefault();const a=E(s)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===a)return;const t=(i=e.realIndex,r=a,n=e.slides.length,(r%=n)===1+(i%=n)?"next":r===i-1?"previous":void 0);"next"===t?e.slideNext():"previous"===t?e.slidePrev():e.slideToLoop(a)}else e.slideTo(a);var i,r,n}function c(){const t=e.rtl,s=e.params.pagination;if(l())return;let i,d,c=e.pagination.el;c=M(c);const p=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,u=e.params.loop?Math.ceil(p/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(d=e.previousRealIndex||0,i=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):void 0!==e.snapIndex?(i=e.snapIndex,d=e.previousSnapIndex):(d=e.previousIndex||0,i=e.activeIndex||0),"bullets"===s.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const a=e.pagination.bullets;let l,p,u;if(s.dynamicBullets&&(r=T(a[0],e.isHorizontal()?"width":"height",!0),c.forEac
311h(t=>{t.style[e.isHorizontal()?"width":"height"]=r*(s.dynamicMainBullets+4)+"px"}),s.dynamicMainBullets>1&&void 0!==d&&(n+=i-(d||0),n>s.dynamicMainBullets-1?n=s.dynamicMainBullets-1:n<0&&(n=0)),l=Math.max(i-n,0),p=l+(Math.min(a.length,s.dynamicMainBullets)-1),u=(p+l)/2),a.forEach(e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${s.bulletActiveClass}${e}`)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),c.length>1)a.forEach(t=>{const a=E(t);a===i?t.classList.add(...s.bulletActiveClass.split(" ")):e.isElement&&t.setAttribute("part","bullet"),s.dynamicBullets&&(a>=l&&a<=p&&t.classList.add(...`${s.bulletActiveClass}-main`.split(" ")),a===l&&o(t,"prev"),a===p&&o(t,"next"))});else{const t=a[i];if(t&&t.classList.add(...s.bulletActiveClass.split(" ")),e.isElement&&a.forEach((e,t)=>{e.setAttribute("part",t===i?"bullet-active":"bullet")}),s.dynamicBullets){const e=a[l],t=a[p];for(let e=l;e<=p;e+=1)a[e]&&a[e].classList.add(...`${s.bulletActiveClass}-main`.split(" "));o(e,"prev"),o(t,"next")}}if(s.dynamicBullets){const i=Math.min(a.length,s.dynamicMainBullets+4),n=(r*i-r)/2-u*r,l=t?"right":"left";a.forEach(t=>{t.style[e.isHorizontal()?l:"top"]=`${n}px`})}}c.forEach((t,r)=>{if("fraction"===s.type&&(t.querySelectorAll(de(s.currentClass)).forEach(e=>{e.textContent=s.formatFractionCurrent(i+1)}),t.querySelectorAll(de(s.totalClass)).forEach(e=>{e.textContent=s.formatFractionTotal(u)})),"progressbar"===s.type){let a;a=s.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const r=(i+1)/u;let n=1,l=1;"horizontal"===a?n=r:l=r,t.querySelectorAll(de(s.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${n}) scaleY(${l})`,t.style.transitionDuration=`${e.params.speed}ms`})}"custom"===s.type&&s.renderCustom?(P(t,s.renderCustom(e,i+1,u)),0===r&&a("paginationRender",t)):(0===r&&a("paginationRender",t),a("paginationUpdate",t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](s.lockClass)})}function p(){const t=e.params.pagination;if(l())return;const s=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let i=e.pagination.el;i=M(i);let r="";if("bullets"===t.type){let a=e.params.loop?Math.ceil(s/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&a>s&&(a=s);for(let s=0;s<a;s+=1)t.renderBullet?r+=t.renderBullet.call(e,s,t.bulletClass):r+=`<${t.bulletElement} ${e.isElement?'part="bullet"':""} class="${t.bulletClass}"></${t.bulletElement}>`}"fraction"===t.type&&(r=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),"progressbar"===t.type&&(r=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],i.forEach(s=>{"custom"!==t.type&&P(s,r||""),"bullets"===t.type&&e.pagination.bullets.push(...s.querySelectorAll(de(t.bulletClass)))}),"custom"!==t.type&&a("paginationRender",i[0])}function u(){e.params.pagination=le(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let s;"string"==typeof t.el&&e.isElement&&(s=e.el.querySelector(t.el)),s||"string"!=typeof t.el||(s=[...document.querySelectorAll(t.el)]),s||(s=t.el),s&&0!==s.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(s)&&s.length>1&&(s=[...e.el.querySelectorAll(t.el)],s.length>1&&(s=s.find(t=>x(t,".swiper")[0]===e.el))),Array.isArray(s)&&1===s.length&&(s=s[0]),Object.assign(e.pagination,{el:s}
311),s=M(s),s.forEach(s=>{"bullets"===t.type&&t.clickable&&s.classList.add(...(t.clickableClass||"").split(" ")),s.classList.add(t.modifierClass+t.type),s.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(s.classList.add(`${t.modifierClass}${t.type}-dynamic`),n=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&s.classList.add(t.progressbarOppositeClass),t.clickable&&s.addEventListener("click",d),e.enabled||s.classList.add(t.lockClass)}))}function m(){const t=e.params.pagination;if(l())return;let s=e.pagination.el;s&&(s=M(s),s.forEach(s=>{s.classList.remove(t.hiddenClass),s.classList.remove(t.modifierClass+t.type),s.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&(s.classList.remove(...(t.clickableClass||"").split(" ")),s.removeEventListener("click",d))})),e.pagination.bullets&&e.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(" ")))}s("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const t=e.params.pagination;let{el:s}=e.pagination;
vendor: 5,954 bytes, line 311
311s=M(s),s.forEach(s=>{s.classList.remove(t.horizontalClass,t.verticalClass),s.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),s("init",()=>{!1===e.params.pagination.enabled?h():(u(),p(),c())}),s("activeIndexChange",()=>{void 0===e.snapIndex&&c()}),s("snapIndexChange",()=>{c()}),s("snapGridLengthChange",()=>{p(),c()}),s("destroy",()=>{m()}),s("enable disable",()=>{let{el:t}=e.pagination;t&&(t=M(t),t.forEach(t=>t.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),s("lock unlock",()=>{c()}),s("click",(t,s)=>{const i=s.target,r=M(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&r&&r.length>0&&!i.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&i===e.navigation.nextEl||e.navigation.prevEl&&i===e.navigation.prevEl))return;const t=r[0].classList.contains(e.params.pagination.hiddenClass);a(!0===t?"paginationShow":"paginationHide"),r.forEach(t=>t.classList.toggle(e.params.pagination.hiddenClass))}});const h=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=M(t),t.forEach(t=>t.classList.add(e.params.pagination.paginationDisabledClass))),m()};Object.assign(e.pagination,{enable:()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=M(t),t.forEach(t=>t.classList.remove(e.params.pagination.paginationDisabledClass))),u(),p(),c()},disable:h,render:p,update:c,init:u,destroy:m})},function({swiper:e,extendParams:t,on:s,emit:i}){const r=a();let o,d,c,p,u=!1,m=null,h=null;function f(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t,rtlTranslate:s}=e,{dragEl:a,el:i}=t,r=e.params.scrollbar,n=e.params.loop?e.progressLoop:e.progress;let l=d,o=(c-d)*n;s?(o=-o,o>0?(l=d-o,o=0):-o+d>c&&(l=c+o)):o<0?(l=d+o,o=0):o+d>c&&(l=c-o),e.isHorizontal()?(a.style.transform=`translate3d(${o}px, 0, 0)`,a.style.width=`${l}px`):(a.style.transform=`translate3d(0px, ${o}px, 0)`,a.style.height=`${l}px`),r.hide&&(clearTimeout(m),i.style.opacity=1,m=setTimeout(()=>{i.style.opacity=0,i.style.transitionDuration="400ms"},1e3))}function g(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t}=e,{dragEl:s,el:a}=t;s.style.width="",s.style.height="",c=e.isHorizontal()?a.offsetWidth:a.offsetHeight,p=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),d="auto"===e.params.scrollbar.dragSize?c*p:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?s.style.width=`${d}px`:s.style.height=`${d}px`,a.style.display=p>=1?"none":"",e.params.scrollbar.hide&&(a.style.opacity=0),e.params.watchOverflow&&e.enabled&&t.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function v(t){return e.isHorizontal()?t.clientX:t.clientY}function y(t){const{scrollbar:s,rtlTranslate:a}=e,{el:i}=s;let r;r=(v(t)-b(i)[e.isHorizontal()?"left":"top"]-(null!==o?o:d/2))/(c-d),r=Math.max(Math.min(r,1),0),a&&(r=1-r);const n=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*r;e.updateProgress(n),e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}function E(t){const s=e.params.scrollbar,{scrollbar:a,wrapperEl:r}=e,{el:n,dragEl:l}=a;u=!0,o=t.target===l?v(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),r.style.transitionDuration="100ms",l.style.transitionDuration="100ms",y(t),clearTimeout(h),n.style.transitionDuration="0ms",s.hide&&(n.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),i("scrollbarDragStart",t)}function x(t){const{scrollbar:s,wrapperEl:a}=e,{el:r,dragEl:n}=s;u&&(t.preventDefault&&t.cancelable?t.preventDefault():t.returnValue=!1,y(t),a.style.transitionDuration="0ms",r.style.transitionDuration="0ms",n.style.transitionDuration="0ms",i("scrollbarDragMove",t))}function S(t){const s=e.params.scrollbar,{scrollbar:a,wrapperEl:r}=e,{el:n}=a;u&&(u=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",r.style.transitionDuration=""),s.hide&&(clearTimeout(h),h=l(()=>{n.style.opacity=0,n.style.transitionDuration="400ms"},1e3)),i("scrollbarDragEnd",t),s.snapOnRelease&&e.slideToClosest())}function T(t){const{scrollbar:s,params:a}=e,i=s.el;if(!i)return;const n=i,l=!!a.passiveListeners&&{passive:!1,capture:!1},o=!!a.passiveListeners&&{passive:!0,capture:!1};if(!n)return;const d="on"===t?"addEventListener":"removeEventListener";n[d]("pointerdown",E,l),r[d]("pointermove",x,l),r[d]("pointerup",S,o)}function C(){const{scrollbar:t,el:s}=e;e.params.scrollbar=le(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const a=e.params.scrollbar;if(!a.el)return;let i,l;if("string"==typeof a.el&&e.isElement&&(i=e.el.querySelector(a.el)),i||"string"!=typeof a.el)i||(i=a.el);else if(i=r.querySelectorAll(a.el),!i.length)return;e.params.uniqueNavElements&&"string"==typeof a.el&&i.length>1&&1===s.querySelectorAll(a.el).length&&(i=s.querySelector(a.el)),i.length>0&&(i=i[0]),i.classList.add(e.isHorizontal()?a.horizontalClass:a.verticalClass),i&&(l=i.querySelector(de(e.params.scrollbar.dragClass)),l||(l=w("div",e.params.scrollbar.dragClass),i.append(l))),Object.assign(t,{el:i,dragEl:l}),a.draggable&&e.params.scrollbar.el&&e.scrollbar.el&&T("on"),i&&i.classList[e.enabled?"remove":"add"](...n(e.params.scrollbar.lockClass))}function P(){const t=e.params.scrollbar,s=e.scrollbar.el;s&&s.classList.remove(...n(e.isHorizontal()?t.horizontalClass:t.verticalClass)),e.params.scrollbar.el&&e.scrollbar.el&&T("off")}t({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null},s("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const t=e.params.scrollbar;let{el:s}=e.scrollbar;
311s=M(s),s.forEach(s=>{s.classList.remove(t.horizontalClass,t.verticalClass),s.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),s("init",()=>{!1===e.params.scrollbar.enabled?L():(C(),g(),f())}),s("update resize observerUpdate lock unlock changeDirection",()=>{g()}),s("setTranslate",()=>{f()}),s("setTransition",(t,s)=>{!function(t){e.params.scrollbar.el&&e.scrollbar.el&&(e.scrollbar.dragEl.style.transitionDuration=`${t}ms`)}(s)}),s("enable disable",()=>{const{el:t}=e.scrollbar;t&&t.classList[e.enabled?"remove":"add"](...n(e.params.scrollbar.lockClass))}),s("destroy",()=>{P()});const L=()=>{e.el.classList.add(...n(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...n(e.params.scrollbar.scrollbarDisabledClass)),P()};Object.assign(e.scrollbar,{enable:()=>{e.el.classList.remove(...n(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...n(e.params.scrollbar.scrollbarDisabledClass)),C(),g(),f()},disable:L,updateSize:g,setTranslate:f,init:C,destroy:P})},function({swiper:e,extendParams:t,on:s}){t({parallax:{enabled:!1}});const a="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",i=(t,s)=>{const{rtl:a}=e,i=a?-1:1,r=t.getAttribute("data-swiper-parallax")||"0";let n=t.getAttribute("data-swiper-parallax-x"),l=t.getAttribute("data-swiper-parallax-y");const o=t.getAttribute("data-swiper-parallax-scale"),d=t.getAttribute("data-swiper-parallax-opacity"),c=t.getAttribute("data-swiper-parallax-rotate");if(n||l?(n=n||"0",l=l||"0"):e.isHorizontal()?(n=r,l="0"):(l=r,n="0"),n=n.indexOf("%")>=0?parseInt(n,10)*s*i+"%":n*s*i+"px",l=l.indexOf("%")>=0?parseInt(l,10)*s+"%":l*s+"px",null!=d){const e=d-(d-1)*(1-Math.abs(s));t.style.opacity=e}let p=`translate3d(${n}, ${l}, 0px)`;if(null!=o){p+=` scale(${o-(o-1)*(1-Math.abs(s))})`}if(c&&null!=c){p+=` rotate(${c*s*-1}deg)`}t.style.transform=p},r=()=>{const{el:t,slides:s,progress:r,snapGrid:n,isElement:l}=e,o=g(t,a);e.isElement&&o.push(...g(e.hostEl,a)),o.forEach(e=>{i(e,r)}),s.forEach((t,s)=>{let l=t.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(l+=Math.ceil(s/2)-r*(n.length-1)),l=Math.min(Math.max(l,-1),1),t.querySelectorAll(`${a}, [data-swiper-parallax-rotate]`).forEach(e=>{i(e,l)})})};s("beforeInit",()=>{e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)}),s("init",()=>{e.params.parallax.enabled&&r()}),s("setTranslate",()=>{e.params.parallax.enabled&&r()}),s("setTransition",(t,s)=>{e.params.parallax.enabled&&((t=e.params.speed)=>{const{el:s,hostEl:i}=e,r=[...s.querySelectorAll(a)];e.isElement&&r.push(...i.querySelectorAll(a)),r.forEach(e=>{let s=parseInt(e.getAttribute("data-swiper-parallax-duration"),10)||t;0===t&&(s=0),e.style.transitionDuration=`${s}ms`})})(s)})},function({swiper:e,extendParams:t,on:s,emit:a}){const i=r();t({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,panOnMouseMove:!1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),e.zoom={enabled:!1};let n,l,o=1,c=!1,p=!1,u={x:0,y:0};const m=[],h={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},f={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},v={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let w,y=1;function E(){if(m.length<2)return 1;const e=m[0].pageX,t=m[0].pageY,s=m[1].pageX,a=m[1].pageY;return Math.sqrt((s-e)**2+(a-t)**2)}function S(){const t=e.params.zoom,s=h.imageWrapEl.getAttribute("data-swiper-zoom")||t.maxRatio;if(t.limitToOriginalSize&&h.imageEl&&h.imageEl.naturalWidth){const e=h.imageEl.naturalWidth/h.imageEl.offsetWidth;return Math.min(e,s)}return s}function T(t){const s=e.isElement?"swiper-slide":`.${e.params.slideClass}`;return!!t.target.matches(s)||e.slides.filter(e=>e.contains(t.target)).length>0}function M(t){const s=`.${e.params.zoom.containerClass}`;return!!t.target.matches(s)||[...e.hostEl.querySelectorAll(s)].filter(e=>e.contains(t.target)).length>0}function C(t){if("mouse"===t.pointerType&&m.splice(0,m.length),!T(t))return;const s=e.params.zoom;if(n=!1,l=!1,m.push(t),!(m.length<2)){if(n=!0,h.scaleStart=E(),!h.slideEl){h.slideEl=t.target.closest(`.${e.params.slideClass}, swiper-slide`),h.slideEl||(h.slideEl=e.slides[e.activeIndex]);let a=h.slideEl.querySelector(`.${s.containerClass}`);
vendor: 4,298 bytes, line 311
311if(a&&(a=a.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),h.imageEl=a,h.imageWrapEl=a?x(h.imageEl,`.${s.containerClass}`)[0]:void 0,!h.imageWrapEl)return void(h.imageEl=void 0);h.maxRatio=S()}if(h.imageEl){const[e,t]=function(){if(m.length<2)return{x:null,y:null};const e=h.imageEl.getBoundingClientRect();return[(m[0].pageX+(m[1].pageX-m[0].pageX)/2-e.x-i.scrollX)/o,(m[0].pageY+(m[1].pageY-m[0].pageY)/2-e.y-i.scrollY)/o]}();h.originX=e,h.originY=t,h.imageEl.style.transitionDuration="0ms"}c=!0}}function P(t){if(!T(t))return;const s=e.params.zoom,a=e.zoom,i=m.findIndex(e=>e.pointerId===t.pointerId);i>=0&&(m[i]=t),m.length<2||(l=!0,h.scaleMove=E(),h.imageEl&&(a.scale=h.scaleMove/h.scaleStart*o,a.scale>h.maxRatio&&(a.scale=h.maxRatio-1+(a.scale-h.maxRatio+1)**.5),a.scale<s.minRatio&&(a.scale=s.minRatio+1-(s.minRatio-a.scale+1)**.5),h.imageEl.style.transform=`translate3d(0,0,0) scale(${a.scale})`))}function L(t){if(!T(t))return;if("mouse"===t.pointerType&&"pointerout"===t.type)return;const s=e.params.zoom,a=e.zoom,i=m.findIndex(e=>e.pointerId===t.pointerId);i>=0&&m.splice(i,1),n&&l&&(n=!1,l=!1,h.imageEl&&(a.scale=Math.max(Math.min(a.scale,h.maxRatio),s.minRatio),h.imageEl.style.transitionDuration=`${e.params.speed}ms`,h.imageEl.style.transform=`translate3d(0,0,0) scale(${a.scale})`,o=a.scale,c=!1,a.scale>1&&h.slideEl?h.slideEl.classList.add(`${s.zoomedSlideClass}`):a.scale<=1&&h.slideEl&&h.slideEl.classList.remove(`${s.zoomedSlideClass}`),1===a.scale&&(h.originX=0,h.originY=0,h.slideEl=void 0)))}function I(){e.touchEventsData.preventTouchMoveFromPointerMove=!1}function z(t){const s="mouse"===t.pointerType&&e.params.zoom.panOnMouseMove;if(!T(t)||!M(t))return;const a=e.zoom;if(!h.imageEl)return;if(!f.isTouched||!h.slideEl)return void(s&&$(t));if(s)return void $(t);f.isMoved||(f.width=h.imageEl.offsetWidth||h.imageEl.clientWidth,f.height=h.imageEl.offsetHeight||h.imageEl.clientHeight,f.startX=d(h.imageWrapEl,"x")||0,f.startY=d(h.imageWrapEl,"y")||0,h.slideWidth=h.slideEl.offsetWidth,h.slideHeight=h.slideEl.offsetHeight,h.imageWrapEl.style.transitionDuration="0ms");const i=f.width*a.scale,r=f.height*a.scale;f.minX=Math.min(h.slideWidth/2-i/2,0),f.maxX=-f.minX,f.minY=Math.min(h.slideHeight/2-r/2,0),f.maxY=-f.minY,f.touchesCurrent.x=m.length>0?m[0].pageX:t.pageX,f.touchesCurrent.y=m.length>0?m[0].pageY:t.pageY;if(Math.max(Math.abs(f.touchesCurrent.x-f.touchesStart.x),Math.abs(f.touchesCurrent.y-f.touchesStart.y))>5&&(e.allowClick=!1),!f.isMoved&&!c){if(e.isHorizontal()&&(Math.floor(f.minX)===Math.floor(f.startX)&&f.touchesCurrent.x<f.touchesStart.x||Math.floor(f.maxX)===Math.floor(f.startX)&&f.touchesCurrent.x>f.touchesStart.x))return f.isTouched=!1,void I();if(!e.isHorizontal()&&(Math.floor(f.minY)===Math.floor(f.startY)&&f.touchesCurrent.y<f.touchesStart.y||Math.floor(f.maxY)===Math.floor(f.startY)&&f.touchesCurrent.y>f.touchesStart.y))return f.isTouched=!1,void I()}t.cancelable&&t.preventDefault(),t.stopPropagation(),clearTimeout(w),e.touchEventsData.preventTouchMoveFromPointerMove=!0,w=setTimeout(()=>{e.destroyed||I()}),f.isMoved=!0;const n=(a.scale-o)/(h.maxRatio-e.params.zoom.minRatio),{originX:l,originY:p}=h;f.currentX=f.touchesCurrent.x-f.touchesStart.x+f.startX+n*(f.width-2*l),f.currentY=f.touchesCurrent.y-f.touchesStart.y+f.startY+n*(f.height-2*p),f.currentX<f.minX&&(f.currentX=f.minX+1-(f.minX-f.currentX+1)**.8),f.currentX>f.maxX&&(f.currentX=f.maxX-1+(f.currentX-f.maxX+1)**.8),f.currentY<f.minY&&(f.currentY=f.minY+1-(f.minY-f.currentY+1)**.8),f.currentY>f.maxY&&(f.currentY=f.maxY-1+(f.currentY-f.maxY+1)**.8),v.prevPositionX||(v.prevPositionX=f.touchesCurrent.x),v.prevPositionY||(v.prevPositionY=f.touchesCurrent.y),v.prevTime||(v.prevTime=Date.now()),v.x=(f.touchesCurrent.x-v.prevPositionX)/(Date.now()-v.prevTime)/2,v.y=(f.touchesCurrent.y-v.prevPositionY)/(Date.now()-v.prevTime)/2,Math.abs(f.touchesCurrent.x-v.prevPositionX)<2&&(v.x=0),Math.abs(f.touchesCurrent.y-v.prevPositionY)<2&&(v.y=0),v.prevPositionX=f.touchesCurrent.x,v.prevPositionY=f.touchesCurrent.y,v.prevTime=Date.now(),h.imageWrapEl.style.transform=`translate3d(${f.currentX}px, ${f.currentY}px,0)`}function A(){const t=e.zoom;h.slideEl&&e.activeIndex!==e.slides.indexOf(h.slideEl)&&(h.imageEl&&(h.imageEl.style.transform="translate3d(0,
3110,0) scale(1)"),h.imageWrapEl&&(h.imageWrapEl.style.transform="translate3d(0,0,0)"),h.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`),t.scale=1,o=1,h.slideEl=void 0,h.imageEl=void 0,h.imageWrapEl=void 0,h.originX=0,h.originY=0)}function $(e){if(o<=1||!h.imageWrapEl)return;if(!T(e)||!M(e))return;const t=i.getComputedStyle(h.imageWrapEl).transform,s=new i.DOMMatrix(t);if(!p)return p=!0,u.x=e.clientX,u.y=e.clientY,f.startX=s.e,f.startY=s.f,f.width=h.imageEl.offsetWidth||h.imageEl.clientWidth,f.height=h.imageEl.offsetHeight||h.imageEl.clientHeight,h.slideWidth=h.slideEl.offsetWidth,void(h.slideHeight=h.slideEl.offsetHeight);const a=-3*(e.clientX-u.x),r=-3*(e.clientY-u.y),n=f.width*o,l=f.height*o,d=h.slideWidth,c=h.slideHeight,m=Math.min(d/2-n/2,0),g=-m,v=Math.min(c/2-l/2,0),w=-v,b=Math.max(Math.min(f.startX+a,g),m),y=Math.max(Math.min(f.startY+r,w),v);h.imageWrapEl.style.transitionDuration="0ms",h.imageWrapEl.style.transform=`translate3d(${b}px, ${y}px, 0)`,u.x=e.clientX,u.y=e.clientY,f.startX=b,f.startY=y,f.currentX=b,f.currentY=y}function k(t){const s=e.zoom,a=e.params.zoom;if(!h.slideEl){t&&t.target&&(h.slideEl=t.target.closest(`.${e.params.slideClass}, swiper-slide`)),h.slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?h.slideEl=g(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:h.slideEl=e.slides[e.activeIndex]);let s=h.slideEl.querySelector(`.${a.containerClass}`);s&&(s=s.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),h.imageEl=s,h.imageWrapEl=s?x(h.imageEl,`.${a.containerClass}`)[0]:void 0}if(!h.imageEl||!h.imageWrapEl)return;let r,n,l,d,c,p,u,m,v,w,y,E,T,M,C,P,L,I;h.maxRatio=S(),e.params.cssMode&&(e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.touchAction="none"),h.slideEl.classList.add(`${a.zoomedSlideClass}`),void 0===f.touchesStart.x&&t?(r=t.pageX,n=t.pageY):(r=f.touchesStart.x,n=f.touchesStart.y);const z=o,A="number"==typeof t?t:null;1===o&&A&&(r=void 0,n=void 0,f.touchesStart.x=void 0,f.touchesStart.y=void 0);const $=S();s.scale=A||$,o=A||$,!t||1===o&&A?(u=0,m=0):(L=h.slideEl.offsetWidth,I=h.slideEl.offsetHeight,l=b(h.slideEl).left+i.scrollX,d=b(h.slideEl).top+i.scrollY,c=l+L/2-r,p=d+I/2-n,v=h.imageEl.offsetWidth||h.imageEl.clientWidth,w=h.imageEl.offsetHeight||h.imageEl.clientHeight,y=v*s.scale,E=w*s.scale,T=Math.min(L/2-y/2,0),M=Math.min(I/2-E/2,0),C=-T,P=-M,z>0&&A&&"number"==typeof f.currentX&&"number"==typeof f.currentY?(u=f.currentX*s.scale/z,m=f.currentY*s.scale/z):(u=c*s.scale,m=p*s.scale),u<T&&(u=T),u>C&&(u=C),m<M&&(m=M),m>P&&(m=P)),A&&1===s.scale&&(h.originX=0,h.originY=0),f.currentX=u,f.currentY=m,h.imageWrapEl.style.transitionDuration="300ms",h.imageWrapEl.style.transform=`translate3d(${u}px, ${m}px,0)`,h.imageEl.style.transitionDuration="300ms",h.imageEl.style.transform=`translate3d(0,0,0) scale(${s.scale})`}function O(){const t=e.zoom,s=e.params.zoom;if(!h.slideEl){e.params.virtual&&e.params.virtual.enabled&&e.virtual?h.slideEl=g(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:h.slideEl=e.slides[e.activeIndex];let t=h.slideEl.querySelector(`.${s.containerClass}`);t&&(t=t.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),h.imageEl=t,h.imageWrapEl=t?x(h.imageEl,`.${s.containerClass}`)[0]:void 0}h.imageEl&&h.imageWrapEl&&(h.maxRatio=S(),e.params.cssMode&&(e.wrapperEl.style.overflow="",e.wrapperEl.style.touchAction=""),t.scale=1,o=1,f.currentX=void 0,f.currentY=void 0,f.touchesStart.x=void 0,f.touchesStart.y=void 0,h.imageWrapEl.style.transitionDuration="300ms",h.imageWrapEl.style.transform="translate3d(0,0,0)",h.imageEl.style.transitionDuration="300ms",h.imageEl.style.transform="translate3d(0,0,0) scale(1)",h.slideEl.classList.remove(`${s.zoomedSlideClass}`),h.slideEl=void 0,h.originX=0,h.originY=0,e.params.zoom.panOnMouseMove&&(u={x:0,y:0},p&&(p=!1,f.startX=0,f.startY=0)))}function D(t){const s=e.zoom;s.scale&&1!==s.scale?O():k(t)}function G(){return{passiveListener:!!e.params.passiveListeners&&{passive:!0,capture:!1},activeListenerWithCapture:!e.params.passiveListeners||{passive:!1,capture:!0}}}function X(){const t=e.zoom;if(t.enabled)return;t.enabled=!0;const{passiveListener:s,activeListenerWithCapture:a}=G();e.wrapperEl.addEventListener("pointerdown",C,s),e.wrapperEl.addEventListener("pointermove",P,a),["pointerup","pointercancel","pointerout"].forEach(t=>{e.wrapperEl.addEventListener(t,L,s)}),e.wrapperEl.addEventListener("pointermove",z,a)}function B(){const t=e.zoom;if(!t.enabled)return;t.enabled=!1;const{passiveListener:s,activeListenerWithCapture:a}=G();e.wrapperEl.removeEventListener("pointerdown",C,s),e.wrapperEl.removeEventListener("pointermove",P,a),["pointerup","pointercancel","pointerout"].forEach(t=>{e.wrapperEl.removeEventListener(t,L,s)}),e.wrapperEl.removeEventListener("pointermove",z,a)}Object.defineProperty(e.zoom,"scale",{get:()=>y,set(e){if(y!==e){const t=h.imageEl,s=h.slideEl;a("zoomChange",e,t,s)}y=e}}),s("init",()=>{e.params.zoom.enabled&&X()}),s("destroy",()=>{B()}),s("touchStart",(t,s)=>{e.zoom.enabled&&function(t){const s=e.device;if(!h.imageEl)return;if(f.isTouched)return;s.android&&t.cancelable&&t.preventDefault(),f.isTouched=!0;const a=m.length>0?m[0]:t;f.touchesStart.x=a.pageX,f.touchesStart.y=a.pageY}(s)}),s("touchEnd",(t,s)=>{e.zoom.enabled&&function(){const t=e.zoom;if(m.length=0,!h.imageEl)return;
311if(!f.isTouched||!f.isMoved)return f.isTouched=!1,void(f.isMoved=!1);f.isTouched=!1,f.isMoved=!1;let s=300,a=300;const i=v.x*s,r=f.currentX+i,n=v.y*a,l=f.currentY+n;0!==v.x&&(s=Math.abs((r-f.currentX)/v.x)),0!==v.y&&(a=Math.abs((l-f.currentY)/v.y));const o=Math.max(s,a);f.currentX=r,f.currentY=l;const d=f.width*t.scale,c=f.height*t.scale;f.minX=Math.min(h.slideWidth/2-d/2,0),f.maxX=-f.minX,f.minY=Math.min(h.slideHeight/2-c/2,0),f.maxY=-f.minY,f.currentX=Math.max(Math.min(f.currentX,f.maxX),f.minX),f.currentY=Math.max(Math.min(f.currentY,f.maxY),f.minY),h.imageWrapEl.style.transitionDuration=`${o}ms`,h.imageWrapEl.style.transform=`translate3d(${f.currentX}px, ${f.currentY}px,0)`}()}),s("doubleTap",(t,s)=>{!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&D(s)}),s("transitionEnd",()=>{e.zoom.enabled&&e.params.zoom.enabled&&A()}),s("slideChange",()=>{e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&A()}),Object.assign(e.zoom,{enable:X,disable:B,in:k,out:O,toggle:D})},function({swiper:e,extendParams:t,on:s}){function a(e,t){const s=function(){let e,t,s;return(a,i)=>{for(t=-1,e=a.length;e-t>1;)s=e+t>>1,a[s]<=i?t=s:e=s;return e}}();let a,i;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(i=s(this.x,e),a=i-1,(e-this.x[a])*(this.y[i]-this.y[a])/(this.x[i]-this.x[a])+this.y[a]):0},this}function i(){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)}t({controller:{control:void 0,inverse:!1,by:"slide"}}),e.controller={control:void 0},s("beforeInit",()=>{if("undefined"!=typeof window&&("string"==typeof e.params.controller.control||e.params.controller.control instanceof HTMLElement)){return void("string"==typeof e.params.controller.control?[...document.querySelectorAll(e.params.controller.control)]:[e.params.controller.control]).forEach(t=>{if(e.controller.control||(e.controller.control=[]),t&&t.swiper)e.controller.control.push(t.swiper);else if(t){const s=`${e.params.eventsPrefix}init`,a=i=>{e.controller.control.push(i.detail[0]),e.update(),t.removeEventListener(s,a)};t.addEventListener(s,a)}})}e.controller.control=e.params.controller.control}),s("update",()=>{i()}),s("resize",()=>{i()}),s("observerUpdate",()=>{i()}),s("setTranslate",(t,s,a)=>{e.controller.control&&!e.controller.control.destroyed&&e.controller.setTranslate(s,a)}),s("setTransition",(t,s,a)=>{e.controller.control&&!e.controller.control.destroyed&&e.controller.setTransition(s,a)}),Object.assign(e.controller,{setTranslate:function(t,s){const i=e.controller.control;let r,n;const l=e.constructor;function o(t){if(t.destroyed)return;const s=e.rtlTranslate?-e.translate:e.translate;"slide"===e.params.controller.by&&(!function(t){e.controller.spline=e.params.loop?new a(e.slidesGrid,t.slidesGrid):new a(e.snapGrid,t.snapGrid)}(t),n=-e.controller.spline.interpolate(-s)),n&&"container"!==e.params.controller.by||(r=(t.maxTranslate()-t.minTranslate())/(e.maxTranslate()-e.minTranslate()),!Number.isNaN(r)&&Number.isFinite(r)||(r=1),n=(s-e.minTranslate())*r+t.minTranslate()),e.params.controller.inverse&&(n=t.maxTranslate()-n),t.updateProgress(n),t.setTranslate(n,e),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(i))for(let e=0;e<i.length;e+=1)i[e]!==s&&i[e]instanceof l&&o(i[e]);else i instanceof l&&s!==i&&o(i)},setTransition:function(t,s){const a=e.constructor,i=e.controller.control;let r;function n(s){s.destroyed||(s.setTransition(t,e),0!==t&&(s.transitionStart(),s.params.autoHeight&&l(()=>{s.updateAutoHeight()}),S(s.wrapperEl,()=>{i&&s.transitionEnd()})))}if(Array.isArray(i))for(r=0;r<i.length;r+=1)i[r]!==s&&i[r]instanceof a&&n(i[r]);else i instanceof a&&s!==i&&n(i)}})},function({swiper:e,extendParams:t,on:s}){t({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,
311scrollOnFocus:!0,wrapperLiveRegion:!0}}),e.a11y={clicked:!1};let i,r,n=null,l=(new Date).getTime();function o(e){const t=n;0!==t.length&&P(t,e)}function d(e){(e=M(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function c(e){(e=M(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function p(e,t){(e=M(e)).forEach(e=>{e.setAttribute("role",t)})}function u(e,t){(e=M(e)).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function m(e,t){(e=M(e)).forEach(e=>{e.setAttribute("aria-label",t)})}function h(e){(e=M(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function f(e){(e=M(e)).forEach(e=>{e.removeAttribute("aria-disabled")})}function g(t){if(13!==t.keyCode&&32!==t.keyCode)return;const s=e.params.a11y,a=t.target;if(!e.pagination||!e.pagination.el||a!==e.pagination.el&&!e.pagination.el.contains(t.target)||t.target.matches(de(e.params.pagination.bulletClass))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const t=M(e.navigation.prevEl);M(e.navigation.nextEl).includes(a)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?o(s.lastSlideMessage):o(s.nextSlideMessage)),t.includes(a)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?o(s.firstSlideMessage):o(s.prevSlideMessage))}e.pagination&&a.matches(de(e.params.pagination.bulletClass))&&a.click()}}function v(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function b(){return v()&&e.params.pagination.clickable}const y=(e,t,s)=>{d(e),"BUTTON"!==e.tagName&&(p(e,"button"),e.addEventListener("keydown",g)),m(e,s)},x=t=>{r&&r!==t.target&&!r.contains(t.target)&&(i=!0),e.a11y.clicked=!0},S=()=>{i=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},T=e=>{l=(new Date).getTime()},C=t=>{if(e.a11y.clicked||!e.params.a11y.scrollOnFocus)return;if((new Date).getTime()-l<100)return;const s=t.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!s||!e.slides.includes(s))return;r=s;const a=e.virtual&&e.params.virtual.enabled,n=(a?parseInt(s.getAttribute("data-swiper-slide-index"),10):e.slides.indexOf(s))===e.activeIndex,o=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(s);n||o||t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{i||(e.params.loop?e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(s.getAttribute("data-swiper-slide-index"))),0):a?e.slideTo(e.getSlideIndexWhenGrid(parseInt(s.getAttribute("data-swiper-slide-index"),10)),0):e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(s)),0),i=!1)}))},L=()=>{const t=e.params.a11y;t.itemRoleDescriptionMessage&&u(e.slides,t.itemRoleDescriptionMessage),t.slideRole&&p(e.slides,t.slideRole);const s=e.slides.length;t.slideLabelMessage&&e.slides.forEach((a,i)=>{const r=e.params.loop?parseInt(a.getAttribute("data-swiper-slide-index"),10):i;m(a,t.slideLabelMessage.replace(/\{\{index\}\}/,r+1).replace(/\{\{slidesLength\}\}/,s))})},I=()=>{const t=e.params.a11y;e.el.append(n);const s=e.el;t.containerRoleDescriptionMessage&&u(s,t.containerRoleDescriptionMessage),t.containerMessage&&m(s,t.containerMessage),t.containerRole&&p(s,t.containerRole);const i=e.wrapperEl,r=t.id||i.getAttribute("id")||`swiper-wrapper-${function(e=16){return"x".repeat(e).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}(16)}`;var l;if(l=r,M(i).forEach(e=>{e.setAttribute("id",l)}),t.wrapperLiveRegion){!function(e,t){(e=M(e)).forEach(e=>{e.setAttribute("aria-live",t)})}(i,e.params.autoplay&&e.params.autoplay.enabled?"off":"polite")}L();let{nextEl:o,prevEl:d}=e.navigation?e.navigation:{};if(o=M(o),d=M(d),o&&o.forEach(e=>y(e,0,t.nextSlideMessage)),d&&d.forEach(e=>y(e,0,t.prevSlideMessage)),b()){M(e.pagination.el).forEach(e=>{e.addEventListener("keydown",g)})}a().addEventListener("visibilitychange",T),e.el.addEventListener("focus",C,!0),e.el.addEventListener("pointerdown",x,!0),e.el.addEventListener("pointerup",S,!0)};s("beforeInit",()=>{n=w("span",e.params.a11y.notificationClass),n.setAttribute("aria-live","assertive"),n.setAttribute("aria-atomic","true")}),s("afterInit",()=>{e.params.a11y.enabled&&I()}),s("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&L()}),s("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&function(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:t,prevEl:s}=e.navigation;
vendor: 5,460 bytes, line 311
311s&&(e.isBeginning?(h(s),c(s)):(f(s),d(s))),t&&(e.isEnd?(h(t),c(t)):(f(t),d(t)))}()}),s("paginationUpdate",()=>{e.params.a11y.enabled&&function(){const t=e.params.a11y;v()&&e.pagination.bullets.forEach(s=>{e.params.pagination.clickable&&(d(s),e.params.pagination.renderBullet||(p(s,"button"),m(s,t.paginationBulletMessage.replace(/\{\{index\}\}/,E(s)+1)))),s.matches(de(e.params.pagination.bulletActiveClass))?s.setAttribute("aria-current","true"):s.removeAttribute("aria-current")})}()}),s("destroy",()=>{e.params.a11y.enabled&&function(){n&&n.remove();let{nextEl:t,prevEl:s}=e.navigation?e.navigation:{};t=M(t),s=M(s),t&&t.forEach(e=>e.removeEventListener("keydown",g)),s&&s.forEach(e=>e.removeEventListener("keydown",g)),b()&&M(e.pagination.el).forEach(e=>{e.removeEventListener("keydown",g)});a().removeEventListener("visibilitychange",T),e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("focus",C,!0),e.el.removeEventListener("pointerdown",x,!0),e.el.removeEventListener("pointerup",S,!0))}()})},function({swiper:e,extendParams:t,on:s}){t({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let a=!1,i={};const n=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),l=e=>{const t=r();let s;s=e?new URL(e):t.location;const a=s.pathname.slice(1).split("/").filter(e=>""!==e),i=a.length;return{key:a[i-2],value:a[i-1]}},o=(t,s)=>{const i=r();if(!a||!e.params.history.enabled)return;let l;l=e.params.url?new URL(e.params.url):i.location;const o=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${s}"]`):e.slides[s];let d=n(o.getAttribute("data-history"));if(e.params.history.root.length>0){let s=e.params.history.root;"/"===s[s.length-1]&&(s=s.slice(0,s.length-1)),d=`${s}/${t?`${t}/`:""}${d}`}else l.pathname.includes(t)||(d=`${t?`${t}/`:""}${d}`);e.params.history.keepQuery&&(d+=l.search);const c=i.history.state;c&&c.value===d||(e.params.history.replaceState?i.history.replaceState({value:d},null,d):i.history.pushState({value:d},null,d))},d=(t,s,a)=>{if(s)for(let i=0,r=e.slides.length;i<r;i+=1){const r=e.slides[i];if(n(r.getAttribute("data-history"))===s){const s=e.getSlideIndex(r);e.slideTo(s,t,a)}}else e.slideTo(0,t,a)},c=()=>{i=l(e.params.url),d(e.params.speed,i.value,!1)};s("init",()=>{e.params.history.enabled&&(()=>{const t=r();if(e.params.history){if(!t.history||!t.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);a=!0,i=l(e.params.url),i.key||i.value?(d(0,i.value,e.params.runCallbacksOnInit),e.params.history.replaceState||t.addEventListener("popstate",c)):e.params.history.replaceState||t.addEventListener("popstate",c)}})()}),s("destroy",()=>{e.params.history.enabled&&(()=>{const t=r();e.params.history.replaceState||t.removeEventListener("popstate",c)})()}),s("transitionEnd _freeModeNoMomentumRelease",()=>{a&&o(e.params.history.key,e.activeIndex)}),s("slideChange",()=>{a&&e.params.cssMode&&o(e.params.history.key,e.activeIndex)})},function({swiper:e,extendParams:t,emit:s,on:i}){let n=!1;const l=a(),o=r();t({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(t,s){if(e.virtual&&e.params.virtual.enabled){const t=e.slides.find(e=>e.getAttribute("data-hash")===s);if(!t)return 0;return parseInt(t.getAttribute("data-swiper-slide-index"),10)}return e.getSlideIndex(g(e.slidesEl,`.${e.params.slideClass}[data-hash="${s}"], swiper-slide[data-hash="${s}"]`)[0])}}});const d=()=>{s("hashChange");const t=l.location.hash.replace("#",""),a=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex];if(t!==(a?a.getAttribute("data-hash"):"")){const s=e.params.hashNavigation.getSlideIndex(e,t);if(void 0===s||Number.isNaN(s))return;e.slideTo(s)}},c=()=>{if(!n||!e.params.hashNavigation.enabled)return;const t=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],a=t?t.getAttribute("data-hash")||t.getAttribute("data-history"):"";e.params.hashNavigation.replaceState&&o.history&&o.history.replaceState?(o.history.replaceState(null,null,`#${a}`||""),s("hashSet")):(l.location.hash=a||"",s("hashSet"))};i("init",()=>{e.params.hashNavigation.enabled&&(()=>{if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;n=!0;const t=l.location.hash.replace("#","");if(t){const s=0,a=e.params.hashNavigation.getSlideIndex(e,t);e.slideTo(a||0,s,e.params.runCallbacksOnInit,!0)}e.params.hashNavigation.watchState&&o.addEventListener("hashchange",d)})()}),i("destroy",()=>{e.params.hashNavigation.enabled&&e.params.hashNavigation.watchState&&o.removeEventListener("hashchange",d)}),i("transitionEnd _freeModeNoMomentumRelease",()=>{n&&c()}),i("slideChange",()=>{n&&e.params.cssMode&&c()})},function({swiper:e,extendParams:t,on:s,emit:i,params:r}){let n,l;e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let o,d,c,p,u,m,h,f=r&&r.autoplay?r.autoplay.delay:3e3,g=r&&r.autoplay?r.autoplay.delay:3e3,v=(new Date).getTime();function w(t){e&&!e.destroyed&&e.wrapperEl&&t.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",w),h||t.detail&&t.detail.bySwiperTouchMove||M())}const b=()=>{if(e.destroyed||!e.autoplay.running)return;
311e.autoplay.paused?d=!0:d&&(g=o,d=!1);const t=e.autoplay.paused?o:v+g-(new Date).getTime();e.autoplay.timeLeft=t,i("autoplayTimeLeft",t,t/f),l=requestAnimationFrame(()=>{b()})},y=()=>{let t=e.params.autoplay.delay;const s=(()=>{let t;if(t=e.virtual&&e.params.virtual.enabled?e.slides.find(e=>e.classList.contains("swiper-slide-active")):e.slides[e.activeIndex],!t)return;return parseInt(t.getAttribute("data-swiper-autoplay"),10)})();return!Number.isNaN(s)&&s>0&&(t=s),t},E=t=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(l),b();let s=t;void 0===s&&(s=y(),f=s,g=s),o=s;const a=e.params.speed,r=()=>{e&&!e.destroyed&&(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(a,!0,!0),i("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,a,!0,!0),i("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(a,!0,!0),i("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,a,!0,!0),i("autoplay")),e.params.cssMode&&(v=(new Date).getTime(),requestAnimationFrame(()=>{E()})))};return s>0?(clearTimeout(n),n=setTimeout(()=>{r()},s)):requestAnimationFrame(()=>{r()}),s},x=()=>{v=(new Date).getTime(),e.autoplay.running=!0,E(),i("autoplayStart")},S=()=>{e.autoplay.running=!1,clearTimeout(n),cancelAnimationFrame(l),i("autoplayStop")},T=(t,s)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(n),t||(m=!0);const a=()=>{i("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",w):M()};if(e.autoplay.paused=!0,s)return void a();const r=o||e.params.autoplay.delay;o=r-((new Date).getTime()-v),e.isEnd&&o<0&&!e.params.loop||(o<0&&(o=0),a())},M=()=>{e.isEnd&&o<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(v=(new Date).getTime(),m?(m=!1,E(o)):E(),e.autoplay.paused=!1,i("autoplayResume"))},C=()=>{if(e.destroyed||!e.autoplay.running)return;const t=a();"hidden"===t.visibilityState&&(m=!0,T(!0)),"visible"===t.visibilityState&&M()},P=t=>{"mouse"===t.pointerType&&(m=!0,h=!0,e.animating||e.autoplay.paused||T(!0))},L=t=>{"mouse"===t.pointerType&&(h=!1,e.autoplay.paused&&M())};s("init",()=>{e.params.autoplay.enabled&&(e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",P),e.el.addEventListener("pointerleave",L)),a().addEventListener("visibilitychange",C),x())}),s("destroy",()=>{e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("pointerenter",P),e.el.removeEventListener("pointerleave",L)),a().removeEventListener("visibilitychange",C),e.autoplay.running&&S()}),s("_freeModeStaticRelease",()=>{(p||m)&&M()}),s("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?S():T(!0,!0)}),s("beforeTransitionStart",(t,s,a)=>{!e.destroyed&&e.autoplay.running&&(a||!e.params.autoplay.disableOnInteraction?T(!0,!0):S())}),s("sliderFirstMove",()=>{!e.destroyed&&e.autoplay.running&&(e.params.autoplay.disableOnInteraction?S():(c=!0,p=!1,m=!1,u=setTimeout(()=>{m=!0,p=!0,T(!0)},200)))}),s("touchEnd",()=>{if(!e.destroyed&&e.autoplay.running&&c){if(clearTimeout(u),clearTimeout(n),e.params.autoplay.disableOnInteraction)return p=!1,void(c=!1);p&&e.params.cssMode&&M(),p=!1,c=!1}}),s("slideChange",()=>{!e.destroyed&&e.autoplay.running&&e.autoplay.paused&&(o=y(),f=y())}),Object.assign(e.autoplay,{start:x,stop:S,pause:T,resume:M})},function({swiper:e,extendParams:t,on:s}){t({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let i=!1,r=!1;function n(){const t=e.thumbs.swiper;return!(!t||t.destroyed)&&(t.params.virtual&&t.params.virtual.enabled)}function l(){const t=e.thumbs.swiper;if(!t||t.destroyed)return;const s=t.clickedIndex,a=t.clickedSlide;if(a&&a.classList.contains(e.params.thumbs.slideThumbActiveClass))return;if(null==s)return;let i;i=t.params.loop?parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10):s,e.params.loop?e.slideToLoop(i):e.slideTo(i)}function o(){const{thumbs:t}=e.params;if(i)return!1;i=!0;const s=e.constructor;if(t.swiper instanceof s){if(t.swiper.destroyed)return i=!1,!1;e.thumbs.swiper=t.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}
311),e.thumbs.swiper.update()}else if(c(t.swiper)){const a=Object.assign({},t.swiper);Object.assign(a,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new s(a),r=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",l),n()&&e.thumbs.swiper.on("virtualUpdate",()=>{d(!1,{autoScroll:!1})}),!0}function d(t,s){const a=e.thumbs.swiper;if(!a||a.destroyed)return;let i=1;const r=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(i=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(i=1),i=Math.floor(i),a.slides.forEach(e=>e.classList.remove(r)),a.params.loop||n())for(let t=0;t<i;t+=1)g(a.slidesEl,`[data-swiper-slide-index="${e.realIndex+t}"]`).forEach(e=>{e.classList.add(r)});else for(let t=0;t<i;t+=1)a.slides[e.realIndex+t]&&a.slides[e.realIndex+t].classList.add(r);(s?.autoScroll??1)&&function(t){const s=e.thumbs.swiper;if(!s||s.destroyed)return;const a="auto"===s.params.slidesPerView?s.slidesPerViewDynamic():s.params.slidesPerView,i=e.params.thumbs.autoScrollOffset,r=i&&!s.params.loop;if(e.realIndex!==s.realIndex||r){const n=s.activeIndex;let l,o;if(s.params.loop){const t=s.slides.find(t=>t.getAttribute("data-swiper-slide-index")===`${e.realIndex}`);l=s.slides.indexOf(t),o=e.activeIndex>e.previousIndex?"next":"prev"}else l=e.realIndex,o=l>e.previousIndex?"next":"prev";r&&(l+="next"===o?i:-1*i),s.visibleSlidesIndexes&&s.visibleSlidesIndexes.indexOf(l)<0&&(s.params.centeredSlides?l=l>n?l-Math.floor(a/2)+1:l+Math.floor(a/2)-1:l>n&&s.params.slidesPerGroup,s.slideTo(l,t))}}(t?0:void 0)}e.thumbs={swiper:null},s("beforeInit",()=>{const{thumbs:t}=e.params;if(t&&t.swiper)if("string"==typeof t.swiper||t.swiper instanceof HTMLElement){const s=a(),i=()=>{const a="string"==typeof t.swiper?s.querySelector(t.swiper):t.swiper;if(a&&a.swiper)t.swiper=a.swiper,o(),d(!0);else if(a){const s=`${e.params.eventsPrefix}init`,i=r=>{t.swiper=r.detail[0],a.removeEventListener(s,i),o(),d(!0),t.swiper.update(),e.update()};a.addEventListener(s,i)}return a},r=()=>{if(e.destroyed)return;i()||requestAnimationFrame(r)};requestAnimationFrame(r)}else o(),d(!0)}),s("slideChange update resize observerUpdate",()=>{d()}),s("setTransition",(t,s)=>{const a=e.thumbs.swiper;a&&!a.destroyed&&a.setTransition(s)}),s("beforeDestroy",()=>{const t=e.thumbs.swiper;t&&!t.destroyed&&r&&t.destroy()}),Object.assign(e.thumbs,{init:o,update:d})},function({swiper:e,extendParams:t,emit:s,once:a}){t({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(e,{freeMode:{onTouchStart:function(){if(e.params.cssMode)return;const t=e.getTranslate();e.setTranslate(t),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})},onTouchMove:function(){if(e.params.cssMode)return;const{touchEventsData:t,touches:s}=e;0===t.velocities.length&&t.velocities.push({position:s[e.isHorizontal()?"startX":"startY"],time:t.touchStartTime}),t.velocities.push({position:s[e.isHorizontal()?"currentX":"currentY"],time:o()})},onTouchEnd:function({currentPos:t}){if(e.params.cssMode)return;const{params:i,wrapperEl:r,rtlTranslate:n,snapGrid:l,touchEventsData:d}=e,c=o()-d.touchStartTime;if(t<-e.minTranslate())e.slideTo(e.activeIndex);else if(t>-e.maxTranslate())e.slides.length<l.length?e.slideTo(l.length-1):e.slideTo(e.slides.length-1);else{if(i.freeMode.momentum){if(d.velocities.length>1){const t=d.velocities.pop(),s=d.velocities.pop(),a=t.position-s.position,r=t.time-s.time;e.velocity=a/r,e.velocity/=2,Math.abs(e.velocity)<i.freeMode.minimumVelocity&&(e.velocity=0),(r>150||o()-t.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=i.freeMode.momentumVelocityRatio,d.velocities.length=0;let t=1e3*i.freeMode.momentumRatio;const c=e.velocity*t;let p=e.translate+c;n&&(p=-p);let u,m=!1;const h=20*Math.abs(e.velocity)*i.freeMode.momentumBounceRatio;let f;if(p<e.maxTranslate())i.freeMode.momentumBounce?(p+e.maxTranslate()<-h&&(p=e.maxTranslate()-h),u=e.maxTranslate(),m=!0,d.allowMomentumBounce
vendor: 15,079 bytes, line 311
311=!0):p=e.maxTranslate(),i.loop&&i.centeredSlides&&(f=!0);else if(p>e.minTranslate())i.freeMode.momentumBounce?(p-e.minTranslate()>h&&(p=e.minTranslate()+h),u=e.minTranslate(),m=!0,d.allowMomentumBounce=!0):p=e.minTranslate(),i.loop&&i.centeredSlides&&(f=!0);else if(i.freeMode.sticky){let t;for(let e=0;e<l.length;e+=1)if(l[e]>-p){t=e;break}p=Math.abs(l[t]-p)<Math.abs(l[t-1]-p)||"next"===e.swipeDirection?l[t]:l[t-1],p=-p}if(f&&a("transitionEnd",()=>{e.loopFix()}),0!==e.velocity){if(t=n?Math.abs((-p-e.translate)/e.velocity):Math.abs((p-e.translate)/e.velocity),i.freeMode.sticky){const s=Math.abs((n?-p:p)-e.translate),a=e.slidesSizesGrid[e.activeIndex];t=s<a?i.speed:s<2*a?1.5*i.speed:2.5*i.speed}}else if(i.freeMode.sticky)return void e.slideToClosest();i.freeMode.momentumBounce&&m?(e.updateProgress(u),e.setTransition(t),e.setTranslate(p),e.transitionStart(!0,e.swipeDirection),e.animating=!0,S(r,()=>{e&&!e.destroyed&&d.allowMomentumBounce&&(s("momentumBounce"),e.setTransition(i.speed),setTimeout(()=>{e.setTranslate(u),S(r,()=>{e&&!e.destroyed&&e.transitionEnd()})},0))})):e.velocity?(s("_freeModeNoMomentumRelease"),e.updateProgress(p),e.setTransition(t),e.setTranslate(p),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,S(r,()=>{e&&!e.destroyed&&e.transitionEnd()}))):e.updateProgress(p),e.updateActiveIndex(),e.updateSlidesClasses()}else{if(i.freeMode.sticky)return void e.slideToClosest();i.freeMode&&s("_freeModeNoMomentumRelease")}(!i.freeMode.momentum||c>=i.longSwipesMs)&&(s("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}}}})},function({swiper:e,extendParams:t,on:s}){let a,i,r,n;t({grid:{rows:1,fill:"column"}});const l=()=>{let t=e.params.spaceBetween;return"string"==typeof t&&t.indexOf("%")>=0?t=parseFloat(t.replace("%",""))/100*e.size:"string"==typeof t&&(t=parseFloat(t)),t};s("init",()=>{n=e.params.grid&&e.params.grid.rows>1}),s("update",()=>{const{params:t,el:s}=e,a=t.grid&&t.grid.rows>1;n&&!a?(s.classList.remove(`${t.containerModifierClass}grid`,`${t.containerModifierClass}grid-column`),r=1,e.emitContainerClasses()):!n&&a&&(s.classList.add(`${t.containerModifierClass}grid`),"column"===t.grid.fill&&s.classList.add(`${t.containerModifierClass}grid-column`),e.emitContainerClasses()),n=a}),e.grid={initSlides:t=>{const{slidesPerView:s}=e.params,{rows:n,fill:l}=e.params.grid,o=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:t.length;r=Math.floor(o/n),a=Math.floor(o/n)===o/n?o:Math.ceil(o/n)*n,"auto"!==s&&"row"===l&&(a=Math.max(a,Math.floor(s)*n)),i=a/n},unsetSlides:()=>{e.slides&&e.slides.forEach(t=>{t.swiperSlideGridSet&&(t.style.height="",t.style[e.getDirectionLabel("margin-top")]="")})},updateSlide:(t,s,n)=>{const{slidesPerGroup:o}=e.params,d=l(),{rows:c,fill:p}=e.params.grid,u=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:n.length;let m,h,f;if("row"===p&&o>1){const e=Math.floor(t/(o*c)),i=t-c*o*e,r=0===e?o:Math.min(Math.ceil((u-e*c*o)/c),o);f=Math.floor(i/r),h=i-f*r+e*o,m=h+f*a/c,s.style.order=m}else"column"===p?(h=Math.floor(t/c),f=t-h*c,(h>r||h===r&&f===c-1)&&(f+=1,f>=c&&(f=0,h+=1))):(f=Math.floor(t/i),h=t-f*i);s.row=f,s.column=h,s.style.height=`calc((100% - ${(c-1)*d}px) / ${c})`,s.style[e.getDirectionLabel("margin-top")]=0!==f?d&&`${d}px`:"",s.swiperSlideGridSet=!0},updateWrapperSize:(t,s)=>{const{centeredSlides:i,roundLengths:r}=e.params,n=l(),{rows:o}=e.params.grid;if(e.virtualSize=(t+n)*a,e.virtualSize=Math.ceil(e.virtualSize/o)-n,e.params.cssMode||(e.wrapperEl.style[e.getDirectionLabel("width")]=`${e.virtualSize+n}px`),i){const t=[];for(let a=0;a<s.length;a+=1){let i=s[a];r&&(i=Math.floor(i)),s[a]<e.virtualSize+s[0]&&t.push(i)}s.splice(0,s.length),s.push(...t)}}}},function({swiper:e}){Object.assign(e,{appendSlide:ce.bind(e),prependSlide:pe.bind(e),addSlide:ue.bind(e),removeSlide:me.bind(e),removeAllSlides:he.bind(e)})},function({swiper:e,extendParams:t,on:s}){t({fadeEffect:{crossFade:!1}}),fe({effect:"fade",swiper:e,on:s,setTranslate:()=>{const{slides:t}=e;e.params.fadeEffect;for(let s=0;s<t.length;s+=1){const t=e.slides[s];let a=-t.swiperSlideOffset;e.params.virtualTranslate||(a-=e.translate);let i=0;e.isHorizontal()||(i=a,a=0);const r=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(t.progress),0):1+Math.min(Math.max(t.progress,-1),0),n=ge(0,t);n.style.opacity=r,n.style.transform=`translate3d(${a}px, ${i}px, 0px)`}},setTransition:t=>{const s=e.slides.map(e=>f(e));s.forEach(e=>{e.style.transitionDuration=`${t}ms`}),ve({swiper:e,duration:t,transformElements:s,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})},function({swiper:e,extendParams:t,on:s}){t({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const a=(e,t,s)=>{let a=s?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),i=s?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");a||(a=w("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(s?"left":"top")).split(" ")),e.append(a)),i||(i=w("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(s?"right":"bottom")).split(" ")),e.append(i)),a&&(a.style.opacity=Math.max(-t,0)),i&&(i.style.opacity=Math.max(t,0))};fe({effect:"cube",swiper:e,on:s,setTranslate:()=>{const{el:t,wrapperEl:s,slides:i,width:r,height:n,rtlTranslate:l,size:o,browser:d}=e,c=C(e),p=e.params.cubeEffect,u=e.isHorizontal(),m=e.virtual&&e.params.virtual.enabled;let h,f=0;p.shadow&&(u?(h=e.wrapperEl.querySelector(".swiper-cube-shadow"),h||(h=w("div","swiper-cube-shadow"),e.wrapperEl.append(h)),h.style.height=`${r}px`):(h=t.querySelector(".swiper-cube-shadow"),h||(h=w("div","swiper-cube-shadow"),t.append(h))));for(let e=0;e<i.length;e+=1){const t=i[e];let s=e;m&&(s=parseInt(t.getAttribute("data-swiper-slide-index"),10));let r=90*s,n=Math.floor(r/360);l&&(r=-r,n=Math.floor(-r/360));const d=Math.max(Math.min(t.progress,1),-1);let h=0,g=0,v=0;s%4==0?(h=4*-n*o,v=0):(s-1)%4==0?(h=0,v=4*-n*o):(s-2)%4==0?(h=o+4*n*o,v=o):(s-3)%4==0&&(h=-o,v=3*o+4*o*n),l&&(h=-h),u||(g=h,h=0);const w=`rotateX(${c(u?0:-r)}deg) rotateY(${c(u?r:0)}deg) translate3d(${h}px, ${g}px, ${v}px)`;d<=1&&d>-1&&(f=90*s+90*d,l&&(f=90*-s-90*d)),t.style.transform=w,p.slideShadows&&a(t,d,u)}if(s.style.transformOrigin=`50% 50% -${o/2}px`,s.style["-webkit-transform-origin"]=`50% 50% -${o/2}px`,p.shadow)if(u)h.style.transform=`translate3d(0px, ${r/2+p.shadowOffset}px, ${-r/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${p.shadowScale})`;else{const e=Math.abs(f)-90*Math.floor(Math.abs(f)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),s=p.shadowScale,a=p.shadowScale/t,i=p.shadowOffset;h.style.transform=`scale3d(${s}, 1, ${a}) translate3d(0px, ${n/2+i}px, ${-n/2/a}px) rotateX(-89.99deg)`}const g=(d.isSafari||d.isWebView)&&d.needPerspectiveFix?-o/2:0;s.style.transform=`translate3d(0px,0,${g}px) rotateX(${c(e.isHorizontal()?0:f)}deg) rotateY(${c(e.isHorizontal()?-f:0)}deg)`,s.style.setProperty("--swiper-cube-translate-z",`${g}px`)},setTransition:t=>{const{el:s,slides:a}=e;if(a.forEach(e=>{e.style.transitionDuration=`${t}ms`,e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>{e.style.transitionDuration=`${t}ms`})}),e.params.cubeEffect.shadow&&!e.isHorizontal()){const e=s.querySelector(".swiper-cube-shadow");e&&(e.style.transitionDuration=`${t}ms`)}},recreateShadows:()=>{const t=e.isHorizontal();e.slides.forEach(e=>{const s=Math.max(Math.min(e.progress,1),-1);a(e,s,t)})},getEffectParams:()=>e.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function({swiper:e,extendParams:t,on:s}){t({flipEffect:{slideShadows:!0,limitRotation:!0}});const a=(t,s)=>{let a=e.isHorizontal()?t.querySelector(".swiper-slide-shadow-left"):t.querySelector(".swiper-slide-shadow-top"),i=e.isHorizontal()?t.querySelector(".swiper-slide-shadow-right"):t.querySelector(".swiper-slide-shadow-bottom");a||(a=we("flip",t,e.isHorizontal()?"left":"top")),i||(i=we("flip",t,e.isHorizontal()?"right":"bottom")),a&&(a.style.opacity=Math.max(-s,0)),i&&(i.style.opacity=Math.max(s,0))};fe({effect:"flip",swiper:e,on:s,setTranslate:()=>{const{slides:t,rtlTranslate:s}=e,i=e.params.flipEffect,r=C(e);for(let n=0;n<t.length;n+=1){const l=t[n];let o=l.progress;e.params.flipEffect.limitRotation&&(o=Math.max(Math.min(l.progress,1),-1));const d=l.swiperSlideOffset;let c=-180*o,p=0,u=e.params.cssMode?-d-e.translate:-d,m=0;e.isHorizontal()?s&&(c=-c):(m=u,u=0,p=-c,c=0),l.style.zIndex=-Math.abs(Math.round(o))+t.length,i.slideShadows&&a(l,o);const h=`translate3d(${u}px, ${m}px, 0px) rotateX(${r(p)}deg) rotateY(${r(c)}deg)`;ge(0,l).style.transform=h}},setTransition:t=>{const s=e.slides.map(e=>f(e));s.forEach(e=>{e.style.transitionDuration=`${t}ms`,e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>{e.style.transitionDuration=`${t}ms`})}),ve({swiper:e,duration:t,transformElements:s})},recreateShadows:()=>{e.params.flipEffect,e.slides.forEach(t=>{let s=t.progress;e.params.flipEffect.limitRotation&&(s=Math.max(Math.min(t.progress,1),-1)),a(t,s)})},getEffectParams:()=>e.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})},function({swiper:e,extendParams:t,on:s}){t({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),fe({effect:"coverflow",swiper:e,on:s,setTranslate:()=>{const{width:t,height:s,slides:a,slidesSizesGrid:i}=e,r=e.params.coverflowEffect,n=e.isHorizontal(),l=e.translate,o=n?t/2-l:s/2-l,d=n?r.rotate:-r.rotate,c=r.depth,p=C(e);for(let e=0,t=a.length;e<t;e+=1){const t=a[e],s=i[e],l=(o-t.swiperSlideOffset-s/2)/s,u="function"==typeof r.modifier?r.modifier(l):l*r.modifier;let m=n?d*u:0,h=n?0:d*u,f=-c*Math.abs(u),g=r.stretch;"string"==typeof g&&-1!==g.indexOf("%")&&(g=parseFloat(r.stretch)/100*s);let v=n?0:g*u,w=n?g*u:0,b=1-(1-r.scale)*Math.abs(u);Math.abs(w)<.001&&(w=0),Math.abs(v)<.001&&(v=0),Math.abs(f)<.001&&(f=0),Math.abs(m)<.001&&(m=0),Math.abs(h)<.001&&(h=0),Math.abs(b)<.001&&(b=0);const y=`translate3d(${w}px,${v}px,${f}px)  rotateX(${p(h)}deg) rotateY(${p(m)}deg) scale(${b})`;if(ge(0,t).style.transform=y,t.style.zIndex=1-Math.abs(Math.round(u)),r.slideShadows){let e=n?t.querySelector(".swiper-slide-shadow-left"):t.querySelector(".swiper-slide-shadow-top"),s=n?t.querySelector(".swiper-slide-shadow-right"):t.querySelector(".swiper-slide-shadow-bottom");e||(e=we("coverflow",t,n?"left":"top")),s||(s=we("coverflow",t,n?"right":"bottom")),e&&(e.style.opacity=u>0?u:0),s&&(s.style.opacity=-u>0?-u:0)}}},setTransition:t=>{e.slides.map(e=>f(e)).forEach(e=>{e.style.transitionDuration=`${t}ms`,e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>{e.style.transitionDuration=`${t}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function({swiper:e,extendParams:t,on:s}){t({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const a=e=>"string"==typeof e?e:`${e}px`;fe({effect:"creative",swiper:e,on:s,setTranslate:()=>{const{slides:t,wrapperEl:s,slidesSizesGrid:i}=e,r=e.params.creativeEffect,{progressMultiplier:n}=r,l=e.params.centeredSlides,o=C(e);if(l){const t=i[0]/2-e.params.slidesOffsetBefore||0;s.style.transform=`translateX(calc(50% - ${t}px))`}for(let s=0;s<t.length;s+=1){const i=t[s],d=i.progress,c=Math.min(Math.max(i.progress,-r.limitProgress),r.limitProgress);let p=c;l||(p=Math.min(Math.max(i.originalProgress,-r.limitProgress),r.limitProgress));const u=i.swiperSlideOffset,m=[e.params.cssMode?-u-e.translate:-u,0,0],h=[0,0,0];let f=!1;e.isHorizontal()||(m[1]=m[0],m[0]=0);let g={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};c<0?(g=r.next,f=!0):c>0&&(g=r.prev,f=!0),m.forEach((e,t)=>{m[t]=`calc(${e}px + (${a(g.translate[t])} * ${Math.abs(c*n)}))`}),h.forEach((e,t)=>{let s=g.rotate[t]*Math.abs(c*n);h[t]=s}),i.style.zIndex=-Math.abs(Math.round(d))+t.length;const v=m.join(", "),w=`rotateX(${o(h[0])}deg) rotateY(${o(h[1])}deg) rotateZ(${o(h[2])}deg)`,b=p<0?`scale(${1+(1-g.scale)*p*n})`:`scale(${1-(1-g.scale)*p*n})`,y=p<0?1+(1-g.opacity)*p*n:1-(1-g.opacity)*p*n,E=`translate3d(${v}) ${w} ${b}`;if(f&&g.shadow||!f){let e=i.querySelector(".swiper-slide-shadow");if(!e&&g.shadow&&(e=we("creative",i)),e){const t=r.shadowPerProgress?c*(1/r.limitProgress):c;e.style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const x=ge(0,i);x.style.transform=E,x.style.opacity=y,g.origin&&(x.style.transformOrigin=g.origin)}},setTransition:t=>{const s=e.slides.map(e=>f(e));s.forEach(e=>{e.style.transitionDuration=`${t}ms`,e.querySelectorAll(".swiper-slide-shadow").forEach(e=>{e.style.transitionDuration=`${t}ms`})}),ve({swiper:e,duration:t,transformElements:s,allSlides:!0})},perspective:()=>e.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})},function({swiper:e,extendParams:t,on:s}){t({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),fe({effect:"cards",swiper:e,on:s,setTranslate:()=>{const{slides:t,activeIndex:s,rtlTranslate:a}=e,i=e.params.cardsEffect,{startTranslate:r,isTouched:n}=e.touchEventsData,l=a?-e.translate:e.translate;for(let o=0;o<t.length;o+=1){const d=t[o],c=d.progress,p=Math.min(Math.max(c,-4),4);let u=d.swiperSlideOffset;e.params.centeredSlides&&!e.params.cssMode&&(e.wrapperEl.style.transform=`translateX(${e.minTranslate()}px)`),e.params.centeredSlides&&e.params.cssMode&&(u-=t[0].swiperSlideOffset);let m=e.params.cssMode?-u-e.translate:-u,h=0;const f=-100*Math.abs(p);let g=1,v=-i.perSlideRotate*p,w=i.perSlideOffset-.75*Math.abs(p);const b=e.virtual&&e.params.virtual.enabled?e.virtual.from+o:o,y=(b===s||b===s-1)&&p>0&&p<1&&(n||e.params.cssMode)&&l<r,E=(b===s||b===s+1)&&p<0&&p>-1&&(n||e.params.cssMode)&&l>r;if(y||E){const t=(1-Math.abs((Math.abs(p)-.5)/.5))**.5;v+=-28*p*t,g+=-.5*t,w+=96*t,h=(i.rotate||e.isHorizontal()?-25:0)*t*Math.abs(p)+"%"}if(m=p<0?`calc(${m}px ${a?"-":"+"} (${w*Math.abs(p)}%))`:p>0?`calc(${m}px ${a?"-":"+"} (-${w*Math.abs(p)}%))`:`${m}px`,!e.isHorizontal()){const e=h;h=m,m=e}const x=p<0?""+(1+(1-g)*p):""+(1-(1-g)*p),S=`\n        translate3d(${m}, ${h}, ${f}px)\n        rotateZ(${i.rotate?a?-v:v:0}deg)\n        scale(${x})\n      `;if(i.slideShadows){let e=d.querySelector(".swiper-slide-shadow");e||(e=we("cards",d)),e&&(e.style.opacity=Math.min(Math.max((Math.abs(p)-.5)/.5,0),1))}d.style.zIndex=-Math.abs(Math.round(c))+t.length;ge(0,d).style.transform=S}},setTransition:t=>{const s=e.slides.map(e=>f(e));
311s.forEach(e=>{e.style.transitionDuration=`${t}ms`,e.querySelectorAll(".swiper-slide-shadow").forEach(e=>{e.style.transitionDuration=`${t}ms`})}),ve({swiper:e,duration:t,transformElements:s})},perspective:()=>!0,overwriteParams:()=>({_loopSwapReset:!1,watchSlidesProgress:!0,loopAdditionalSlides:e.params.cardsEffect.rotate?3:2,centeredSlides:!0,virtualTranslate:!e.params.cssMode})})}];return ne.use(be),ne}();
312/* End */
313;
314; /* Start:"a:4:{s:4:"full";s:65:"/local/templates/aspro-allcorp3/js/observer.min.js?17780775673650";s:6:"source";s:46:"/local/templates/aspro-allcorp3/js/observer.js";s:3:"min";s:50:"/local/templates/aspro-allcorp3/js/observer.min.js";s:3:"map";s:54:"/local/templates/aspro-allcorp3/js/observer.min.js.map";}"*/
315"undefined"==typeof AMutationObserver&&"function"==typeof MutationObserver&&function(w,d){"use strict";var _AMutationObserver=function(_MutationObserver){function _AMutationObserver(callback){var _this;_this=_MutationObserver.call(this,(function(mutationsList,observer){_AMutationObserver.ignore||observer.paused||callback(mutationsList,observer)}))||this,_this.paused=!0,_this.id=Math.floor(Math.random()*Math.floor(1e3));try{eval("@")}catch(e){if("string"==typeof e.stack){_this.stack=e.stack.match(/[^\s]*:[\d]+:[\d]+[^\s]/g),_this.stack.splice(0,1);var script=_this.stack[0];-1!==script.indexOf("yandex.ru/metrika")?_this.id="ym":(script=script.replace(/^(.*[/])?(.*\.js)(.*)$/gi,"$2"),_this.id=script.replace(/(\.min)?\.js$/i,""))}}return _this}_inheritsLoose(_AMutationObserver,_MutationObserver);var _proto=_AMutationObserver.prototype;return _proto.observe=function observe(target,options){this.target=target,this.options=options,this.paused=!1,void 0===_AMutationObserver.observers[this.id]&&(_AMutationObserver.observers[this.id]=this),_MutationObserver.prototype.observe.call(this,target,options)},_proto.disconnect=function disconnect(){this.paused=!0,_MutationObserver.prototype.disconnect.call(this)},_proto.takeRecords=function takeRecords(){return _AMutationObserver.ignore||this.paused?[]:_MutationObserver.prototype.takeRecords.call(this)},_proto.pause=function pause(){this.paused=!0},_proto.resume=function resume(){"false"!=typeof this.options&&(this.paused=!1)},_AMutationObserver}(_wrapNativeSuper(MutationObserver));function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,subClass.__proto__=superClass}function _wrapNativeSuper(Class){var _cache="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function _wrapNativeSuper(Class){if(null===Class||!_isNativeFunction(Class))return Class;if("function"!=typeof Class)throw new TypeError("Super expression must either be null or a function");if(void 0!==_cache){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper)}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,Class)})(Class)}function _construct(Parent,args,Class){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function _construct(Parent,args,Class){var a=[null];a.push.apply(a,args);var Constructor,instance=new(Function.bind.apply(Parent,a));return Class&&_setPrototypeOf(instance,Class.prototype),instance}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function _isNativeFunction(fn){return-1!==Function.toString.call(fn).indexOf("[native code]")}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){return o.__proto__=p,o})(o,p)}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}_AMutationObserver.ignore=!1,_AMutationObserver.observers=[],_AMutationObserver.parent=MutationObserver,_AMutationObserver.toString=function(){return"function MutationObserver() { [native code] }"},MutationObserver=_AMutationObserver}(window,document);
316/* End */
317;
318; /* Start:"a:4:{s:4:"full";s:74:"/local/templates/aspro-allcorp3/vendor/jquery.easing.min.js?17780775673372";s:6:"source";s:55:"/local/templates/aspro-allcorp3/vendor/jquery.easing.js";s:3:"min";s:59:"/local/templates/aspro-allcorp3/vendor/jquery.easing.min.js";s:3:"map";s:63:"/local/templates/aspro-allcorp3/vendor/jquery.easing.min.js.map";}"*/
319jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){return(t/=d/2)<1?c/2*t*t+b:-c/2*(--t*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){return(t/=d/2)<1?c/2*t*t*t+b:c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){return(t/=d/2)<1?c/2*t*t*t*t+b:-c/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){return(t/=d/2)<1?c/2*t*t*t*t*t+b:c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return 0==t?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return t==d?b+c:c*(1-Math.pow(2,-10*t/d))+b},easeInOutExpo:function(x,t,b,c,d){return 0==t?b:t==d?b+c:(t/=d/2)<1?c/2*Math.pow(2,10*(t-1))+b:c/2*(2-Math.pow(2,-10*--t))+b},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){return(t/=d/2)<1?-c/2*(Math.sqrt(1-t*t)-1)+b:c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158,p=0,a=c;if(0==t)return b;if(1==(t/=d))return b+c;if(p||(p=.3*d),a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);
319return-a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)+b},easeOutElastic:function(x,t,b,c,d){var s=1.70158,p=0,a=c;if(0==t)return b;if(1==(t/=d))return b+c;if(p||(p=.3*d),a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},easeInOutElastic:function(x,t,b,c,d){var s=1.70158,p=0,a=c;if(0==t)return b;if(2==(t/=d/2))return b+c;if(p||(p=d*(.3*1.5)),a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return t<1?a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*-.5+b:a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b},easeInBack:function(x,t,b,c,d,s){return null==s&&(s=1.70158),c*(t/=d)*t*((s+1)*t-s)+b},easeOutBack:function(x,t,b,c,d,s){return null==s&&(s=1.70158),c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(x,t,b,c,d,s){return null==s&&(s=1.70158),(t/=d/2)<1?c/2*(t*t*((1+(s*=1.525))*t-s))+b:c/2*((t-=2)*t*((1+(s*=1.525))*t+s)+2)+b},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b},easeOutBounce:function(x,t,b,c,d){return(t/=d)<1/2.75?c*(7.5625*t*t)+b:t<2/2.75?c*(7.5625*(t-=1.5/2.75)*t+.75)+b:t<2.5/2.75?c*(7.5625*(t-=2.25/2.75)*t+.9375)+b:c*(7.5625*(t-=2.625/2.75)*t+.984375)+b},easeInOutBounce:function(x,t,b,c,d){return t<d/2?.5*jQuery.easing.easeInBounce(x,2*t,0,c,d)+b:.5*jQuery.easing.easeOutBounce(x,2*t-d,0,c,d)+.5*c+b}});
320/* End */
321;
322; /* Start:"a:4:{s:4:"full";s:74:"/local/templates/aspro-allcorp3/vendor/jquery.cookie.min.js?17780775671613";s:6:"source";s:55:"/local/templates/aspro-allcorp3/vendor/jquery.cookie.js";s:3:"min";s:59:"/local/templates/aspro-allcorp3/vendor/jquery.cookie.min.js";s:3:"map";s:63:"/local/templates/aspro-allcorp3/vendor/jquery.cookie.min.js.map";}"*/
323/*!
324 * jQuery Cookie Plugin v1.3.1
325 * https://github.com/carhartl/jquery-cookie
326 *
327 * Copyright 2013 Klaus Hartl
328 * Released under the MIT license
329 */
330!function(factory){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],factory):factory(jQuery)}((function($){var pluses=/\+/g;function raw(s){return s}function decoded(s){return decodeURIComponent(s.replace(pluses," "))}function converted(s){0===s.indexOf('"')&&(s=s.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return config.json?JSON.parse(s):s}catch(er){}}var config=$.cookie=function(key,value,options){if(void 0!==value){if("number"==typeof(options=$.extend({},config.defaults,options)).expires){var days=options.expires,t=options.expires=new Date;t.setDate(t.getDate()+days)}return value=config.json?JSON.stringify(value):String(value),document.cookie=[encodeURIComponent(key),"=",config.raw?value:encodeURIComponent(value),options.expires?"; expires="+options.expires.toUTCString():"",options.path?"; path="+options.path:"",options.domain?"; domain="+options.domain:"",options.secure?"; secure":""].join("")}for(var decode=config.raw?raw:decoded,cookies=document.cookie.split("; "),result=key?void 0:{},i=0,l=cookies.length;i<l;i++){var parts=cookies[i].split("="),name=decode(parts.shift()),cookie=decode(parts.join("="));if(key&&key===name){result=converted(cookie);break}key||(result[name]=converted(cookie))}return result};config.defaults={},$.removeCookie=function(key,options){return void 0!==$.cookie(key)&&($.cookie(key,"",$.extend(options,{expires:-1})),!0)}}));
331/* End */
332;
333; /* Start:"a:4:{s:4:"full";s:67:"/local/templates/aspro-allcorp3/vendor/bootstrap.js?177807756727908";s:6:"source";s:51:"/local/templates/aspro-allcorp3/vendor/bootstrap.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
334/*!
335 * Bootstrap v3.0.0
336 *
337 * Copyright 2013 Twitter, Inc
338 * Licensed under the Apache License v2.0
339 * http://www.apache.org/licenses/LICENSE-2.0
340 *
341 * Designed and built with all the love in the world @twitter by @mdo and @fat.
342 */
343
344+function(a){"use strict";var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype.close=function(b){function f(){e.trigger("closed.bs.alert").remove()}var c=a(this),d=c.attr("data-target");d||(d=c.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,""));var e=a(d);b&&b.preventDefault(),e.length||(e=c.hasClass("alert")?c:c.parent()),e.trigger(b=a.Event("close.bs.alert"));if(b.isDefaultPrevented())return;e.removeClass("in"),a.support.transition&&e.hasClass("fade")?e.one(a.support.transition.end,f).emulateTransitionEnd(150):f()};var d=a.fn.alert;a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("bs.alert");e||d.data("bs.alert",e=new c(this)),typeof b=="string"&&e[b].call(
344d)})},a.fn.alert.Constructor=c,a.fn.alert.noConflict=function(){return a.fn.alert=d,this},a(document).on("click.bs.alert.data-api",b,c.prototype.close)}(window.jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d)};b.DEFAULTS={loadingText:"loading..."},b.prototype.setState=function(a){var b="disabled",c=this.$element,d=c.is("input")?"val":"html",e=c.data();a+="Text",e.resetText||c.data("resetText",c[d]()),c[d](e[a]||this.options[a]),setTimeout(function(){a=="loadingText"?c.addClass(b).attr(b,b):c.removeClass(b).removeAttr(b)},0)},b.prototype.toggle=function(){var a=this.$element.closest('[data-toggle="buttons"]');if(a.length){var b=this.$element.find("input").prop("checked",!this.$element.hasClass("active")).trigger("change");b.prop("type")==="radio"&&a.find(".active").removeClass("active")}this.$element.toggleClass("active")};var c=a.fn.button;a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("bs.button"),f=typeof c=="object"&&c;e||d.data("bs.button",e=new b(this,f)),c=="toggle"?e.toggle():c&&e.setState(c)})},a.fn.button.Constructor=b,a.fn.button.noConflict=function(){return a.fn.button=c,this},a(document).on("click.bs.button.data-api","[data-toggle^=button]",function(b){var c=a(b.target);c.hasClass("btn")||(c=c.closest(".btn")),c.button("toggle"),b.preventDefault()})}(window.jQuery),+function(a){"use strict";var b=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=this.sliding=this.interval=this.$active=this.$items=null,this.options.pause=="hover"&&this.$element.on("mouseenter",a.proxy(this.pause,this)).on("mouseleave",a.proxy(this.cycle,this))};b.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},b.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},b.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},b.prototype.to=function(b){var c=this,d=this.getActiveIndex();if(b>this.$items.length-1||b<0)return;return this.sliding?this.$element.one("slid",function(){c.to(b)}):d==b?this.pause().cycle():this.slide(b>d?"next":"prev",a(this.$items[b]))},b.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition.end&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},b.prototype.next=function(){if(this.sliding)return;return this.slide("next")},b.prototype.prev=function(){if(this.sliding)return;return this.slide("prev")},b.prototype.slide=function(b,c){var d=this.$element.find(".item.active"),e=c||d[b](),f=this.interval,g=b=="next"?"left":"right",h=b=="next"?"first":"last",i=this;if(!e.length){if(!this.options.wrap)return;e=this.$element.find(".item")[h]()}this.sliding=!0,f&&this.pause();var j=a.Event("slide.bs.carousel",{relatedTarget:e[0],direction:g});if(e.hasClass("active"))return;this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid",function(){var b=a(i.$indicators.children()[i.getActiveIndex()]);b&&b.addClass("active")}));if(a.support.transition&&this.$element.hasClass("slide")){this.$element.trigger(j);if(j.isDefaultPrevented())return;e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),d.one(a.support.transition.end,function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger("slid")},0)}).emulateTransitionEnd(600)}else{this.$element.trigger(j);if(j.isDefaultPrevented())return;d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return f&&this.cycle(),this};var c=a.fn.carousel;a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},b.DEFAULTS,d.data(),typeof c=="object"&&c),g=typeof c=="string"?c:f.slide;e||d.data("bs.carousel",e=new b(this,f)),typeof c=="number"?e.to(c):g?e[g]():f.interval&&e.pause().cycle()})},a.fn.carousel.Constructor=b,a.fn.carousel.noConflict=function(){return a.fn.carousel=c,this}
344,a(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(b){var c=a(this),d,e=a(c.attr("data-target")||(d=c.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,"")),f=a.extend({},e.data(),c.data()),g=c.attr("data-slide-to");g&&(f.interval=!1),e.carousel(f),(g=c.attr("data-slide-to"))&&e.data("bs.carousel").to(g),b.preventDefault()}),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var b=a(this);b.carousel(b.data())})})}(window.jQuery),+function(a){function e(){a(b).remove(),a(c).each(function(b){var c=f(a(this));if(!c.hasClass("open"))return;c.trigger(b=a.Event("hide.bs.dropdown"));if(b.isDefaultPrevented())return;c.removeClass("open").trigger("hidden.bs.dropdown")})}function f(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}"use strict";var b=".dropdown-backdrop",c="[data-toggle=dropdown]",d=function(b){var c=a(b).on("click.bs.dropdown",this.toggle)};d.prototype.toggle=function(b){var c=a(this);if(c.is(".disabled, :disabled"))return;var d=f(c),g=d.hasClass("open");e();if(!g){"ontouchstart"in document.documentElement&&!d.closest(".navbar-nav").length&&a('<div class="dropdown-backdrop"/>').insertAfter(a(this)).on("click",e),d.trigger(b=a.Event("show.bs.dropdown"));if(b.isDefaultPrevented())return;d.toggleClass("open").trigger("shown.bs.dropdown"),c.focus()}return!1},d.prototype.keydown=function(b){if(!/(38|40|27)/.test(b.keyCode))return;var d=a(this);b.preventDefault(),b.stopPropagation();if(d.is(".disabled, :disabled"))return;var e=f(d),g=e.hasClass("open");if(!g||g&&b.keyCode==27)return b.which==27&&e.find(c).focus(),d.click();var h=a("[role=menu] li:not(.divider):visible a",e);if(!h.length)return;var i=h.index(h.filter(":focus"));b.keyCode==38&&i>0&&i--,b.keyCode==40&&i<h.length-1&&i++,~i||(i=0),h.eq(i).focus()};var g=a.fn.dropdown;a.fn.dropdown=function(b){return this.each(function(){var c=a(this),e=c.data("dropdown");e||c.data("dropdown",e=new d(this)),typeof b=="string"&&e[b].call(c)})},a.fn.dropdown.Constructor=d,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=g,this},a(document).on("click.bs.dropdown.data-api",e).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",c,d.prototype.toggle).on("keydown.bs.dropdown.data-api",c+", [role=menu]",d.prototype.keydown)}(window.jQuery),+function(a){"use strict";var b=function(b,c){this.options=c,this.$element=a(b),this.$backdrop=this.isShown=null,this.options.remote&&this.$element.load(this.options.remote)};b.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},b.prototype.toggle=function(a){return this[this.isShown?"hide":"show"](a)},b.prototype.show=function(b){var c=this,d=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(d);if(this.isShown||d.isDefaultPrevented())return;this.isShown=!0,this.escape(),this.$element.on("click.dismiss.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.backdrop(function(){var d=a.support.transition&&c.$element.hasClass("fade");c.$element.parent().length||c.$element.appendTo(document.body),c.$element.show(),d&&c.$element[0].offsetWidth,c.$element.addClass("in").attr("aria-hidden",!1),c.enforceFocus();var e=a.Event("shown.bs.modal",{relatedTarget:b});d?c.$element.find(".modal-dialog").one(a.support.transition.end,function(){c.$element.focus().trigger(e)}).emulateTransitionEnd(300):c.$element.focus().trigger(e)})},b.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b);if(!this.isShown||b.isDefaultPrevented())return;this.isShown=!1,this.escape(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one(a.support.transition.end,a.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal()},b.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){this.$element[0]!==a.target&&!this.$element.has(a.target).length&&this.$element.focus()},this))},b.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",a.proxy(function(a){a.which==27&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},b.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.removeBackdrop(),a.$element.trigger("hidden.bs.modal")})},b.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},b.prototype.backdrop=function(b){var c=this,d=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var e=a.support.transition&&d;this.$backdrop=a('<div class="modal-backdrop '+d+'" />').appendTo(document.body),this.$element.on("click.dismiss.modal",a.proxy(function(a){if
344(a.target!==a.currentTarget)return;this.options.backdrop=="static"?this.$element[0].focus.call(this.$element[0]):this.hide.call(this)},this)),e&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in");if(!b)return;e?this.$backdrop.one(a.support.transition.end,b).emulateTransitionEnd(150):b()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(a.support.transition.end,b).emulateTransitionEnd(150):b()):b&&b()};var c=a.fn.modal;a.fn.modal=function(c,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},b.DEFAULTS,e.data(),typeof c=="object"&&c);f||e.data("bs.modal",f=new b(this,g)),typeof c=="string"?f[c](d):g.show&&f.show(d)})},a.fn.modal.Constructor=b,a.fn.modal.noConflict=function(){return a.fn.modal=c,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(b){var c=a(this),d=c.attr("href"),e=a(c.attr("data-target")||d&&d.replace(/.*(?=#[^\s]+$)/,"")),f=e.data("modal")?"toggle":a.extend({remote:!/#/.test(d)&&d},e.data(),c.data());b.preventDefault(),e.modal(f,this).one("hide",function(){c.is(":visible")&&c.focus()})}),a(document).on("show.bs.modal",".modal",function(){a(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){a(document.body).removeClass("modal-open")})}(window.jQuery),+function(a){"use strict";var b=function(a,b){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",a,b)};b.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},b.prototype.init=function(b,c,d){this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d);var e=this.options.trigger.split(" ");for(var f=e.length;f--;){var g=e[f];if(g=="click")this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if(g!="manual"){var h=g=="hover"?"mouseenter":"focus",i=g=="hover"?"mouseleave":"blur";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay}),b},b.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},b.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);clearTimeout(c.timeout),c.hoverState="in";if(!c.options.delay||!c.options.delay.show)return c.show();c.timeout=setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)},b.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);clearTimeout(c.timeout),c.hoverState="out";if(!c.options.delay||!c.options.delay.hide)return c.hide();c.timeout=setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)},b.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);if(b.isDefaultPrevented())return;var c=this.tip();this.setContent(),this.options.animation&&c.addClass("fade");var d=typeof this.options.placement=="function"?this.options.placement.call(this,c[0],this.$element[0]):this.options.placement,e=/\s?auto?\s?/i,f=e.test(d);f&&(d=d.replace(e,"")||"top"),c.detach().css({top:0,left:0,display:"block"}).addClass(d),this.options.container?c.appendTo(this.options.container):c.insertAfter(this.$element);var g=this.getPosition(),h=c[0].offsetWidth,i=c[0].offsetHeight;if(f){var j=this.$element.parent(),k=d,l=document.documentElement.scrollTop||document.body.scrollTop,m=this.options.container=="body"?window.innerWidth:j.outerWidth(),n=this.options.container=="body"?window.innerHeight:j.outerHeight(),o=this.options.container=="body"?0:j.offset().left;d=d=="bottom"&&g.top+g.height+i-l>n?"top":d=="top"&&g.top-l-i<0?"bottom":d=="right"&&g.right+h>
344m?"left":d=="left"&&g.left-h<o?"right":d,c.removeClass(k).addClass(d)}var p=this.getCalculatedOffset(d,g,h,i);this.applyPlacement(p,d),this.$element.trigger("shown.bs."+this.type)}},b.prototype.applyPlacement=function(a,b){var c,d=this.tip(),e=d[0].offsetWidth,f=d[0].offsetHeight,g=parseInt(d.css("margin-top"),10),h=parseInt(d.css("margin-left"),10);isNaN(g)&&(g=0),isNaN(h)&&(h=0),a.top=a.top+g,a.left=a.left+h,d.offset(a).addClass("in");var i=d[0].offsetWidth,j=d[0].offsetHeight;b=="top"&&j!=f&&(c=!0,a.top=a.top+f-j);if(/bottom|top/.test(b)){var k=0;a.left<0&&(k=a.left*-2,a.left=0,d.offset(a),i=d[0].offsetWidth,j=d[0].offsetHeight),this.replaceArrow(k-e+i,i,"left")}else this.replaceArrow(j-f,j,"top");c&&d.offset(a)},b.prototype.replaceArrow=function(a,b,c){this.arrow().css(c,a?50*(1-a/b)+"%":"")},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},b.prototype.hide=function(){function e(){b.hoverState!="in"&&c.detach()}var b=this,c=this.tip(),d=a.Event("hide.bs."+this.type);this.$element.trigger(d);if(d.isDefaultPrevented())return;return c.removeClass("in"),a.support.transition&&this.$tip.hasClass("fade")?c.one(a.support.transition.end,e).emulateTransitionEnd(150):e(),this.$element.trigger("hidden.bs."+this.type),this},b.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},b.prototype.hasContent=function(){return this.getTitle()},b.prototype.getPosition=function(){var b=this.$element[0];return a.extend({},typeof b.getBoundingClientRect=="function"?b.getBoundingClientRect():{width:b.offsetWidth,height:b.offsetHeight},this.$element.offset())},b.prototype.getCalculatedOffset=function(a,b,c,d){return a=="bottom"?{top:b.top+b.height,left:b.left+b.width/2-c/2}:a=="top"?{top:b.top-d,left:b.left+b.width/2-c/2}:a=="left"?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},b.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title),a},b.prototype.tip=function(){return this.$tip=this.$tip||a(this.options.template)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},b.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},b.prototype.enable=function(){this.enabled=!0},b.prototype.disable=function(){this.enabled=!1},b.prototype.toggleEnabled=function(){this.enabled=!this.enabled},b.prototype.toggle=function(b){var c=b?a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;c.tip().hasClass("in")?c.leave(c):c.enter(c)},b.prototype.destroy=function(){this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var c=a.fn.tooltip;a.fn.tooltip=function(c){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f=typeof c=="object"&&c;e||d.data("bs.tooltip",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.tooltip.Constructor=b,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=c,this}}(window.jQuery),+function(a){"use strict";var b=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");b.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),b.prototype.constructor=b,b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content")[this.options.html?"html":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},b.prototype.hasContent=function(){return this.getTitle()||this.getContent()},b.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||(typeof b.content=="function"?b.content.call(a[0]):b.content)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},b.prototype.tip=function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip};var c=a.fn.popover;a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f=typeof c=="object"&&c;e||d.data("bs.popover",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.popover.Constructor=b,a.fn.popover.noConflict=function(){return a.fn.popover=c,this}}(window.jQuery),+function(a){"use strict";var b=function(b){this.element=a(b)};b.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,""));if(b.parent("li").hasClass("active"))return;var e=c.find(".active:last a")[0],f=a.Event("show.bs.tab",{relatedTarget:e});b.trigger(f);if(f.isDefaultPrevented())return;var g=a(d);this.activate(b.parent("li"),c),this.activate(g,g.parent(),function(){b.trigger({type:"shown.bs.tab",relatedTarget:e})})},b.prototype.activate=function(b,c,d){function g(){e.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),b.addClass("active"),f?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active"),d&&d()}var e=c.find("> .active"),f=d&&a.support.transition&&e.hasClass("fade");f?e.one(a.support.transition.end,g).emulateTransitionEnd(150):g(),e.removeClass("in")};var c=a.fn.tab;a.fn.tab=function(c){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new b(this)),typeof c=="string"&&e[c]()})},a.fn.tab.Constructor=b,a.fn.tab.noConflict=function(){return a.fn.tab=c,this},a(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(b){b.preventDefault(),a(this).tab("show")})}(window.jQuery),+function(a){"use strict";var b=function(c,d){this.options=a.extend({},b.DEFAULTS,d),this.$window=a(window).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(c),this.affixed=this.unpin=null,this.checkPosition()};b.RESET="affix affix-top affix-bottom",b.DEFAULTS={offset:0},b.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},b.prototype.checkPosition=function(){if(!this.$element.is(":visible"))return;var c=a(document).height(),d=this.$window.scrollTop(),e=this.$element.offset(),f=this.options.offset,g=f.top,h=f.bottom;typeof f!="object"&&(h=g=f),typeof g=="function"&&(g=f.top()),typeof h=="function"&&(h=f.bottom());var i=this.unpin!=null&&d+this.unpin<=e.top?!1:h!=null&&e.top+this.$element.height()>=c-h?"bottom":g!=null&&d<=g?"top":!1;if(this.affixed===i)return;this.unpin&&this.$element.css("top",""),this.affixed=i,this.unpin=i=="bottom"?e.top-d:null,this.$element.removeClass(b.RESET).addClass("affix"+(i?"-"+i:"")),i=="bottom"&&this.$element.offset({top:document.body.offsetHeight-h-this.$element.height()})};var c=a.fn.affix;a.fn.affix=function(c){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f=typeof c=="object"&&c;
vendor: 5,939 bytes, lines 344-347
344e||d.data("bs.affix",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.affix.Constructor=b,a.fn.affix.noConflict=function(){return a.fn.affix=c,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var b=a(this),c=b.data();c.offset=c.offset||{},c.offsetBottom&&(c.offset.bottom=c.offsetBottom),c.offsetTop&&(c.offset.top=c.offsetTop),b.affix(c)})})}(window.jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.DEFAULTS={toggle:!0},b.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},b.prototype.show=function(){if(this.transitioning||this.$element.hasClass("in"))return;var b=a.Event("show.bs.collapse");this.$element.trigger(b);if(b.isDefaultPrevented())return;var c=this.$parent&&this.$parent.find("> .panel > .in");if(c&&c.length){var d=c.data("bs.collapse");if(d&&d.transitioning)return;c.collapse("hide"),d||c.data("bs.collapse",null)}var e=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[e](0),this.transitioning=1;var f=function(){this.$element.removeClass("collapsing").addClass("in")[e]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return f.call(this);var g=a.camelCase(["scroll",e].join("-"));this.$element.one(a.support.transition.end,a.proxy(f,this)).emulateTransitionEnd(350)[e](this.$element[0][g])},b.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass("in"))return;var b=a.Event("hide.bs.collapse");this.$element.trigger(b);if(b.isDefaultPrevented())return;var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};if(!a.support.transition)return d.call(this);this.$element[c](0).one(a.support.transition.end,a.proxy(d,this)).emulateTransitionEnd(350)},b.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var c=a.fn.collapse;a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("bs.collapse"),f=a.extend({},b.DEFAULTS,d.data(),typeof c=="object"&&c);e||d.data("bs.collapse",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.collapse.Constructor=b,a.fn.collapse.noConflict=function(){return a.fn.collapse=c,this},a(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(b){var c=a(this),d,e=c.attr("data-target")||b.preventDefault()||(d=c.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""),f=a(e),g=f.data("bs.collapse"),h=g?"toggle":c.data(),i=c.attr("data-parent"),j=i&&a(i);if(!g||!g.transitioning)j&&j.find('[data-toggle=collapse][data-parent="'+i+'"]').not(c).addClass("collapsed"),c[f.hasClass("in")?"addClass":"removeClass"]("collapsed");f.collapse(h)})}(window.jQuery),+function(a){function b(c,d){var e,f=a.proxy(this.process,this);this.$element=a(c).is("body")?a(window):a(c),this.$body=a("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",f),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||(e=a(c).attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=a([]),this.targets=a([]),this.activeTarget=null,this.refresh(),this.process()}"use strict",b.DEFAULTS={offset:10},b.prototype.refresh=function(){var b=this.$element[0]==window?"offset":"position";this.offsets=a([]),this.targets=a([]);var c=this,d=this.$body.find(this.selector).map(function(){var d=a(this),e=d.data("target")||d.attr("href"),f=/^#\w/.test(e)&&a(e);return f&&f.length&&[[f[b]().top+(!a.isWindow(c.$scrollElement.get(0))&&c.$scrollElement.scrollTop()),e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){c.offsets.push(this[0]),c.targets.push(this[1])})},b.prototype.process=function(){var a=this.$scrollElement.scrollTop()+this.options.offset,b=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,c=b-this.$scrollElement.height(),d=this.offsets,e=this.targets,f=this.activeTarget,g;if(a>=c)return f!=(g=e.last()[0])&&this.activate(g);for(g=d.length;g--;)f!=e[g]&&a>=d[g]&&(!d[g+1]||a<=d[g+1])&&this.activate(e[g])},b.prototype.activate=function(b){this.activeTarget=b,a(this.selector).parents(".active").removeClass("active");var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate")};var c=a.fn.scrollspy;a.fn.scrollspy=function(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f=typeof c=="object"&&c;e||d.data("bs.scrollspy",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=c,this},a(window).on("load",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);b.scrollspy(b.data())})})}(window.jQuery),+function(a){function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(a.style[c]!==undefined)return{end:b[c]}}"use strict",a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one(a.support.transition.end,function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b()})}(window.jQuery)
345/* End */
346;
347; /* Start:"a:4:{s:4:"full";s:77:"/local/templates/aspro-allcorp3/vendor/jquery.validate.min.js?177807756722254";s:6:"source";s:61:"/local/templates/aspro-allcorp3/vendor/jquery.validate.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
348/*! jQuery Validation Plugin - v1.13.1 - 10/14/2014
349 * http://jqueryvalidation.org/
350 * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */
351!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){a.extend(a.fn,{validate:function(b){if(!this.length)return void(b&&b.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var c=a.data(this[0],"validator");return c?c:(this.attr("novalidate","novalidate"),c=new a.validator(b,this[0]),a.data(this[0],"validator",c),c.settings.onsubmit&&(this.validateDelegate(":submit","click",function(b){c.settings.submitHandler&&(c.submitButton=b.target),a(b.target).hasClass("cancel")&&(c.cancelSubmit=!0),void 0!==a(b.target).attr("formnovalidate")&&(c.cancelSubmit=!0)}),this.submit(function(b){function d(){var d,e;return c.settings.submitHandler?(c.submitButton&&(d=a("<input type='hidden'/>").attr("name",c.submitButton.name).val(a(c.submitButton).val()).appendTo(c.currentForm)),e=c.settings.submitHandler.call(c,c.currentForm,b),c.submitButton&&d.remove(),void 0!==e?e:!1):!0}return c.settings.debug&&b.preventDefault(),c.cancelSubmit?(c.cancelSubmit=!1,d()):c.form()?c.pendingRequest?(c.formSubmitted=!0,!1):d():(c.focusInvalid(),!1)})),c)},valid:function(){var b,c;return a(this[0]).is("form")?b=this.validate().form():(b=!0,c=a(this[0].form).validate(),this.each(function(){b=c.element(this)&&b})),b},removeAttrs:function(b){var c={},d=this;return a.each(b.split(/\s/),function(a,b){c[b]=d.attr(b),d.removeAttr(b)}),c},rules:function(b,c){var d,e,f,g,h,i,j=this[0];if(b)switch(d=a.data(j.form,"validator").settings,e=d.rules,f=a.validator.staticRules(j),b){case"add":a.extend(f,a.validator.normalizeRule(c)),delete f.messages,e[j.name]=f,c.messages&&(d.messages[j.name]=a.extend(d.messages[j.name],c.messages));break;case"remove":return c?(i={},a.each(c.split(/\s/),function(b,c){i[c]=f[c],delete f[c],"required"===c&&a(j).removeAttr("aria-required")}),i):(delete e[j.name],f)}return g=a.validator.normalizeRules(a.extend({},a.validator.classRules(j),a.validator.attributeRules(j),a.validator.dataRules(j),a.validator.staticRules(j)),j),g.required&&(h=g.required,delete g.required,g=a.extend({required:h},g),a(j).attr("aria-required","true")),g.remote&&(h=g.remote,delete g.remote,g=a.extend(g,{remote:h})),g}}),a.extend(a.expr[":"],{blank:function(b){return!a.trim(""+a(b).val())},filled:function(b){return!!a.trim(""+a(b).val())},unchecked:function(b){return!a(b).prop("checked")}}),a.validator=function(b,c){this.settings=a.extend(!0,{},a.validator.defaults,b),this.currentForm=c,this.init()},a.validator.format=function(b,c){return 1===arguments.length?function(){var c=a.makeArray(arguments);return c.unshift(b),a.validator.format.apply(this,c)}:(arguments.length>2&&c.constructor!==Array&&(c=a.makeArray(arguments).slice(1)),c.constructor!==Array&&(c=[c]),a.each(c,function(a,c){b=b.replace(new RegExp("\\{"+a+"\\}","g"),function(){return c})}),b)},a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(a){this.lastActive=a,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(a)))},onfocusout:function(a){this.checkable(a)||!(a.name in this.submitted)&&this.optional(a)||this.element(a)},onkeyup:function(a,b){(9!==b.which||""!==this.elementValue(a))&&(a.name in this.submitted||a===this.lastElement)&&this.element(a)},onclick:function(a){a.name in this.submitted?this.element(a):a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).addClass(c).removeClass(d):a(b).addClass(c).removeClass(d)},unhighlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).removeClass(c).addClass(d):a(b).removeClass(c).addClass(d)}}
351,setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date ( ISO ).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function b(b){var c=a.data(this[0].form,"validator"),d="on"+b.type.replace(/^validate/,""),e=c.settings;e[d]&&!this.is(e.ignore)&&e[d].call(c,this[0],b)}this.labelContainer=a(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm),this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var c,d=this.groups={};a.each(this.settings.groups,function(b,c){"string"==typeof c&&(c=c.split(/\s/)),a.each(c,function(a,c){d[c]=b})}),c=this.settings.rules,a.each(c,function(b,d){c[b]=a.validator.normalizeRule(d)}),a(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox']","focusin focusout keyup",b).validateDelegate("select, option, [type='radio'], [type='checkbox']","click",b),this.settings.invalidHandler&&a(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler),a(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),a.extend(this.submitted,this.errorMap),this.invalid=a.extend({},this.errorMap),this.valid()||a(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]);return this.valid()},element:function(b){var c=this.clean(b),d=this.validationTargetFor(c),e=!0;return this.lastElement=d,void 0===d?delete this.invalid[c.name]:(this.prepareElement(d),this.currentElements=a(d),e=this.check(d)!==!1,e?delete this.invalid[d.name]:this.invalid[d.name]=!0),a(b).attr("aria-invalid",!e),this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),e},showErrors:function(b){if(b){a.extend(this.errorMap,b),this.errorList=[];for(var c in b)this.errorList.push({message:b[c],element:this.findByName(c)[0]});this.successList=a.grep(this.successList,function(a){return!(a.name in b)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){a.fn.resetForm&&a(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue").removeAttr("aria-invalid")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b,c=0;for(b in a)c++;return c},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(a){a.not(this.containers).text(""),this.addWrapper(a).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(b){}},findLastActive:function(){var b=this.lastActive;return b&&1===a.grep(this.errorList,function(a){return a.element.name===b.name}).length&&b},elements:function(){var b=this,c={};return a(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled], [readonly]").not(this.settings.ignore).filter(function(){return!this.name&&b.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.name in c||
351!b.objectLength(a(this).rules())?!1:(c[this.name]=!0,!0)})},clean:function(b){return a(b)[0]},errors:function(){var b=this.settings.errorClass.split(" ").join(".");return a(this.settings.errorElement+"."+b,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=a([]),this.toHide=a([]),this.currentElements=a([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(a){this.reset(),this.toHide=this.errorsFor(a)},elementValue:function(b){var c,d=a(b),e=b.type;return"radio"===e||"checkbox"===e?a("input[name='"+b.name+"']:checked").val():"number"===e&&"undefined"!=typeof b.validity?b.validity.badInput?!1:d.val():(c=d.val(),"string"==typeof c?c.replace(/\r/g,""):c)},check:function(b){b=this.validationTargetFor(this.clean(b));var c,d,e,f=a(b).rules(),g=a.map(f,function(a,b){return b}).length,h=!1,i=this.elementValue(b);for(d in f){e={method:d,parameters:f[d]};try{if(c=a.validator.methods[d].call(this,i,b,e.parameters),"dependency-mismatch"===c&&1===g){h=!0;continue}if(h=!1,"pending"===c)return void(this.toHide=this.toHide.not(this.errorsFor(b)));if(!c)return this.formatAndAdd(b,e),!1}catch(j){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+b.id+", check the '"+e.method+"' method.",j),j}}if(!h)return this.objectLength(f)&&this.successList.push(b),!0},customDataMessage:function(b,c){return a(b).data("msg"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase())||a(b).data("msg")},customMessage:function(a,b){var c=this.settings.messages[a];return c&&(c.constructor===String?c:c[b])},findDefined:function(){for(var a=0;a<arguments.length;a++)if(void 0!==arguments[a])return arguments[a];return void 0},defaultMessage:function(b,c){return this.findDefined(this.customMessage(b.name,c),this.customDataMessage(b,c),!this.settings.ignoreTitle&&b.title||void 0,a.validator.messages[c],"<strong>Warning: No message defined for "+b.name+"</strong>")},formatAndAdd:function(b,c){var d=this.defaultMessage(b,c.method),e=/\$?\{(\d+)\}/g;"function"==typeof d?d=d.call(this,c.parameters,b):e.test(d)&&(d=a.validator.format(d.replace(e,"{$1}"),c.parameters)),this.errorList.push({message:d,element:b,method:c.method}),this.errorMap[b.name]=d,this.submitted[b.name]=d},addWrapper:function(a){return this.settings.wrapper&&(a=a.add(a.parent(this.settings.wrapper))),a},defaultShowErrors:function(){var a,b,c;for(a=0;this.errorList[a];a++)c=this.errorList[a],this.settings.highlight&&this.settings.highlight.call(this,c.element,this.settings.errorClass,this.settings.validClass),this.showLabel(c.element,c.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(a=0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight)for(a=0,b=this.validElements();b[a];a++)this.settings.unhighlight.call(this,b[a],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(b,c){var d,e,f,g=this.errorsFor(b),h=this.idOrName(b),i=a(b).attr("aria-describedby");g.length?(g.removeClass(this.settings.validClass).addClass(this.settings.errorClass),g.html(c)):(g=a("<"+this.settings.errorElement+">").attr("id",h+"-error").addClass(this.settings.errorClass).html(c||""),d=g,this.settings.wrapper&&(d=g.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(d):this.settings.errorPlacement?this.settings.errorPlacement(d,a(b)):d.insertAfter(b),g.is("label")?g.attr("for",h):0===g.parents("label[for='"+h+"']").length&&(f=g.attr("id").replace(/(:|\.|\[|\])/g,"\\$1"),i?i.match(new RegExp("\\b"+f+"\\b"))||(i+=" "+f):i=f,a(b).attr("aria-describedby",i),e=this.groups[b.n
351ame],e&&a.each(this.groups,function(b,c){c===e&&a("[name='"+b+"']",this.currentForm).attr("aria-describedby",g.attr("id"))}))),!c&&this.settings.success&&(g.text(""),"string"==typeof this.settings.success?g.addClass(this.settings.success):this.settings.success(g,b)),this.toShow=this.toShow.add(g)},errorsFor:function(b){var c=this.idOrName(b),d=a(b).attr("aria-describedby"),e="label[for='"+c+"'], label[for='"+c+"'] *";return d&&(e=e+", #"+d.replace(/\s+/g,", #")),this.errors().filter(e)},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},validationTargetFor:function(b){return this.checkable(b)&&(b=this.findByName(b.name)),a(b).not(this.settings.ignore)[0]},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(b){return a(this.currentForm).find("[name='"+b+"']")},getLength:function(b,c){switch(c.nodeName.toLowerCase()){case"select":return a("option:selected",c).length;case"input":if(this.checkable(c))return this.findByName(c.name).filter(":checked").length}return b.length},depend:function(a,b){return this.dependTypes[typeof a]?this.dependTypes[typeof a](a,b):!0},dependTypes:{"boolean":function(a){return a},string:function(b,c){return!!a(b,c.form).length},"function":function(a,b){return a(b)}},optional:function(b){var c=this.elementValue(b);
351return!a.validator.methods.required.call(this,c,b)&&"dependency-mismatch"},startRequest:function(a){this.pending[a.name]||(this.pendingRequest++,this.pending[a.name]=!0)},stopRequest:function(b,c){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[b.name],c&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(a(this.currentForm).submit(),this.formSubmitted=!1):!c&&0===this.pendingRequest&&this.formSubmitted&&(a(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(b){return a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:!0,message:this.defaultMessage(b,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(b,c){b.constructor===String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(b){var c={},d=a(b).attr("class");return d&&a.each(d.split(" "),function(){this in a.validator.classRuleSettings&&a.extend(c,a.validator.classRuleSettings[this])}),c},attributeRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute("type");for(c in a.validator.methods)"required"===c?(d=b.getAttribute(c),""===d&&(d=!0),d=!!d):d=f.attr(c),/min|max/.test(c)&&(null===g||/number|range|text/.test(g))&&(d=Number(d)),d||0===d?e[c]=d:g===c&&"range"!==g&&(e[c]=!0);return e.maxlength&&/-1|2147483647|524288/.test(e.maxlength)&&delete e.maxlength,e},dataRules:function(b){var c,d,e={},f=a(b);for(c in a.validator.methods)d=f.data("rule"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase()),void 0!==d&&(e[c]=d);return e},staticRules:function(b){var c={},d=a.data(b.form,"validator");return d.settings.rules&&(c=a.validator.normalizeRule(d.settings.rules[b.name])||{}),c},normalizeRules:function(b,c){return a.each(b,function(d,e){if(e===!1)return void delete b[d];if(e.param||e.depends){var f=!0;switch(typeof e.depends){case"string":f=!!a(e.depends,c.form).length;break;case"function":f=e.depends.call(c,c)}f?b[d]=void 0!==e.param?e.param:!0:delete b[d]}}),a.each(b,function(d,e){b[d]=a.isFunction(e)?e(c):e}),a.each(["minlength","maxlength"],function(){b[this]&&(b[this]=Number(b[this]))}),a.each(["rangelength","range"],function(){var c;b[this]&&(a.isArray(b[this])?b[this]=[Number(b[this][0]),Number(b[this][1])]:"string"==typeof b[this]&&(c=b[this].replace(/[\[\]]/g,"").split(/[\s,]+/),b[this]=[Number(c[0]),Number(c[1])]))}),a.validator.autoCreateRanges&&(null!=b.min&&null!=b.max&&(b.range=[b.min,b.max],delete b.min,delete b.max),null!=b.minlength&&null!=b.maxlength&&(b.rangelength=[b.minlength,b.maxlength],delete b.minlength,delete b.maxlength)),b},normalizeRule:function(b){if("string"==typeof b){var c={};a.each(b.split(/\s/),function(){c[this]=!0}),b=c}return b},addMethod:function(b,c,d){a.validator.methods[b]=c,a.validator.messages[b]=void 0!==d?d:a.validator.messages[b],c.length<3&&a.validator.addClassRules(b,a.validator.normalizeRule(b))},methods:{required:function(b,c,d){if(!this.depend(d,c))return"dependency-mismatch";if("select"===c.nodeName.toLowerCase()){var e=a(c).val();return e&&e.length>0}return this.checkable(c)?this.getLength(b,c)>0:a.trim(b).length>0},email:function(a,b){return this.optional(b)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(a)},url:function(a,b){return this.optional(b)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(a)},date:function(a,b){/*return this.optional(b)||!/Invalid|NaN/.test(new Date(a).toString())*/ /*customized!!!*/ var check = false,re=new RegExp((typeof(VALIDATE_DATE_MASK)!=='undefined'?VALIDATE_DATE_MASK:'^[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{4}$')),adata,gg,mm,aaaa,xdata;if(re.test(a)){adata=a.split('.');if(adata.length===1){adata=a.split('-');if(adata.length===1){adata=a.split(' ');
351if(adata.length===1){adata=a.split('/');if(adata.length===1){adata=a.split(':');}}}}gg=parseInt(adata[0],10);mm=parseInt(adata[1],10);aaaa=parseInt(adata[2],10);xdata=new Date(aaaa,mm-1,gg,12,0,0,0);if((xdata.getUTCFullYear()===aaaa)&&(xdata.getUTCMonth()===mm-1)&&(xdata.getUTCDate()===gg)){check = true;}else{check = false;}}else{check = false;}return this.optional(b)||check;},dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(a)},number:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},creditcard:function(a,b){if(this.optional(b))return"dependency-mismatch";if(/[^0-9 \-]+/.test(a))return!1;var c,d,e=0,f=0,g=!1;if(a=a.replace(/\D/g,""),a.length<13||a.length>19)return!1;for(c=a.length-1;c>=0;c--)d=a.charAt(c),f=parseInt(d,10),g&&(f*=2)>9&&(f-=9),e+=f,g=!g;return e%10===0},minlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e>=d},maxlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||d>=e},rangelength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e>=d[0]&&e<=d[1]},min:function(a,b,c){return this.optional(b)||a>=c},max:function(a,b,c){return this.optional(b)||c>=a},range:function(a,b,c){return this.optional(b)||a>=c[0]&&a<=c[1]},equalTo:function(b,c,d){var e=a(d);return this.settings.onfocusout&&e.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){a(c).valid()}),b===e.val()},remote:function(b,c,d){if(this.optional(c))return"dependency-mismatch";var e,f,g=this.previousValue(c);return this.settings.messages[c.name]||(this.settings.messages[c.name]={}),g.originalMessage=this.settings.messages[c.name].remote,this.settings.messages[c.name].remote=g.message,d="string"==typeof d&&{url:d}||d,g.old===b?g.valid:(g.old=b,e=this,this.startRequest(c),f={},f[c.name]=b,a.ajax(a.extend(!0,{url:d,mode:"abort",port:"validate"+c.name,dataType:"json",data:f,context:e.currentForm,success:function(d){var f,h,i,j=d===!0||"true"===d;e.settings.messages[c.name].remote=g.originalMessage,j?(i=e.formSubmitted,e.prepareElement(c),e.formSubmitted=i,e.successList.push(c),delete e.invalid[c.name],e.showErrors()):(f={},h=d||e.defaultMessage(c,"remote"),f[c.name]=g.message=a.isFunction(h)?h(b):h,e.invalid[c.name]=!0,e.showErrors(f)),g.valid=j,e.stopRequest(c,j)}},d)),"pending")}}}),a.format=function(){throw"$.format has been deprecated. Please use $.validator.format instead."};var b,c={};a.ajaxPrefilter?a.ajaxPrefilter(function(a,b,d){var e=a.port;"abort"===a.mode&&(c[e]&&c[e].abort(),c[e]=d)}):(b=a.ajax,a.ajax=function(d){var e=("mode"in d?d:a.ajaxSettings).mode,f=("port"in d?d:a.ajaxSettings).port;return"abort"===e?(c[f]&&c[f].abort(),c[f]=b.apply(this,arguments),c[f]):b.apply(this,arguments)}),a.extend(a.fn,{validateDelegate:function(b,c,d){return this.bind(c,function(c){var e=a(c.target);return e.is(b)?d.apply(e,arguments):void 0})}})});
352/* End */
353;
354; /* Start:"a:4:{s:4:"full";s:70:"/local/templates/aspro-allcorp3/vendor/js/ripple.min.js?17780775671624";s:6:"source";s:51:"/local/templates/aspro-allcorp3/vendor/js/ripple.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
355!function(m,i,h){m.ripple=function(t,e){var c=this,f=c.log=function(){c.defaults.debug&&console&&console.log&&console.log.apply(console,arguments)};c.selector=t,c.defaults={debug:!1,on:"mousedown",opacity:.4,color:"auto",multi:!1,duration:.7,rate:function(t){return t},easing:"linear"},c.defaults=m.extend({},c.defaults,e);m(i).on(c.defaults.on,c.selector,function(t){var e,i,o=m(this);if(o.addClass("has-ripple"),(i=m.extend({},c.defaults,o.data())).multi||!i.multi&&0===o.find(".ripple").length){if((e=m("<span></span>").addClass("ripple")).appendTo(o),f("Create: Ripple"),!e.height()&&!e.width()){var n=h.max(o.outerWidth(),o.outerHeight());e.css({height:n,width:n}),f("Set: Ripple size")}if(i.rate&&"function"==typeof i.rate){var a=h.round(e.width()/i.duration),l=i.rate(a),p=e.width()/l;i.duration.toFixed(2)!==p.toFixed(2)&&(f("Update: Ripple Duration",{from:i.duration,to:p}),i.duration=p)}var d="auto"==i.color?o.css("color"):i.color,r={animationDuration:i.duration.toString()+"s",animationTimingFunction:i.easing,background:d,opacity:i.opacity};f("Set: Ripple CSS",r),e.css(r)}i.multi||(f("Set: Ripple Element"),e=o.find(".ripple")),f("Destroy: Ripple Animation"),e.removeClass("ripple-animate");var s=t.pageX-o.offset().left-e.width()/2,u=t.pageY-o.offset().top-e.height()/2;i.multi&&(f("Set: Ripple animationend event"),e.one("animationend webkitAnimationEnd oanimationend MSAnimationEnd",function(){f("Note: Ripple animation ended"),f("Destroy: Ripple"),m(this).remove()})),f("Set: Ripple location"),f("Set: Ripple animation"),e.css({top:u+"px",left:s+"px"}).addClass("ripple-animate")})}}(jQuery,document,Math);
356/* End */
357;
358; /* Start:"a:4:{s:4:"full";s:81:"/local/templates/aspro-allcorp3/vendor/js/jquery.mousewheel.min.js?17780775672771";s:6:"source";s:66:"/local/templates/aspro-allcorp3/vendor/js/jquery.mousewheel.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
359/*!
360 * jQuery Mousewheel 3.1.13
361 *
362 * Copyright 2015 jQuery Foundation and other contributors
363 * Released under the MIT license.
364 * http://jquery.org/license
365 */
366!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1
366),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});
367/* End */
368;
369; /* Start:"a:4:{s:4:"full";s:72:"/local/templates/aspro-allcorp3/js/detectmobilebrowser.js?17780775672203";s:6:"source";s:57:"/local/templates/aspro-allcorp3/js/detectmobilebrowser.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
370/**
371 * jQuery.browser.mobile (http://detectmobilebrowser.com/)
372 *
373 * jQuery.browser.mobile will be true if the browser is a mobile device
374 *
375 **/
376(function(a){(jQuery.browser=jQuery.browser||{}).mobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
376sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))})(navigator.userAgent||navigator.vendor||window.opera);
377/* End */
378;
379; /* Start:"a:4:{s:4:"full";s:66:"/local/templates/aspro-allcorp3/js/matchMedia.min.js?1778077567931";s:6:"source";s:48:"/local/templates/aspro-allcorp3/js/matchMedia.js";s:3:"min";s:52:"/local/templates/aspro-allcorp3/js/matchMedia.min.js";s:3:"map";s:56:"/local/templates/aspro-allcorp3/js/matchMedia.min.js.map";}"*/
380/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas, David Knight. Dual MIT/BSD license */
381window.matchMedia||(window.matchMedia=function(){"use strict";var styleMedia=window.styleMedia||window.media;if(!styleMedia){var style=document.createElement("style"),script=document.getElementsByTagName("script")[0],info=null;style.type="text/css",style.id="matchmediajs-test",script.parentNode.insertBefore(style,script),info="getComputedStyle"in window&&window.getComputedStyle(style,null)||style.currentStyle,styleMedia={matchMedium:function(media){var text="@media "+media+"{ #matchmediajs-test { width: 1px; } }";return style.styleSheet?style.styleSheet.cssText=text:style.textContent=text,"1px"===info.width}}}return function(media){return{matches:styleMedia.matchMedium(media||"all"),media:media||"all"}}}());
382/* End */
383;
384; /* Start:"a:4:{s:4:"full";s:70:"/local/templates/aspro-allcorp3/js/jquery.actual.min.js?17780775671239";s:6:"source";s:55:"/local/templates/aspro-allcorp3/js/jquery.actual.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
385/*! Copyright 2012, Ben Lin (http://dreamerslab.com/)
386 * Licensed under the MIT License (LICENSE.txt).
387 *
388 * Version: 1.0.19
389 *
390 * Requires: jQuery >= 1.2.3
391 */
392(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a);
393}else{a(jQuery);}}(function(a){a.fn.addBack=a.fn.addBack||a.fn.andSelf;a.fn.extend({actual:function(b,l){if(!this[b]){throw'$.actual => The jQuery method "'+b+'" you called does not exist';
394}var f={absolute:false,clone:false,includeMargin:false,display:"block"};var i=a.extend(f,l);var e=this.eq(0);var h,j;if(i.clone===true){h=function(){var m="position: absolute !important; top: -1000 !important; ";
395e=e.clone().attr("style",m).appendTo("body");};j=function(){e.remove();};}else{var g=[];var d="";var c;h=function(){c=e.parents().addBack().filter(":hidden");
396d+="visibility: hidden !important; display: "+i.display+" !important; ";if(i.absolute===true){d+="position: absolute !important; ";}c.each(function(){var m=a(this);
397var n=m.attr("style");g.push(n);m.attr("style",n?n+";"+d:d);});};j=function(){c.each(function(m){var o=a(this);var n=g[m];if(n===undefined){o.removeAttr("style");
398}else{o.attr("style",n);}});};}h();var k=/(outer)/.test(b)?e[b](i.includeMargin):e[b]();j();return k;}});}));
399
400/* End */
401;
402; /* Start:"a:4:{s:4:"full";s:67:"/local/templates/aspro-allcorp3/js/jquery-ui.min.js?177807756732162";s:6:"source";s:51:"/local/templates/aspro-allcorp3/js/jquery-ui.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
403/*! jQuery UI - v1.12.1 - 2017-05-11
404* http://jqueryui.com
405* Includes: widget.js, position.js, keycode.js, unique-id.js, widgets/autocomplete.js, widgets/menu.js
406* Copyright jQuery Foundation and other contributors; Licensed MIT */
407
408(function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(t){t.ui=t.ui||{},t.ui.version="1.12.1";var e=0,i=Array.prototype.slice;t.cleanData=function(e){return function(i){var s,n,o;for(o=0;null!=(n=i[o]);o++)try{s=t._data(n,"events"),s&&s.remove&&t(n).triggerHandler("remove")}catch(a){}e(i)}}(t.cleanData),t.widget=function(e,i,s){var n,o,a,r={},l=e.split(".")[0];e=e.split(".")[1];var h=l+"-"+e;return s||(s=i,i=t.Widget),t.isArray(s)&&(s=t.extend.apply(null,[{}].concat(s))),t.expr[":"][h.toLowerCase()]=function(e){return!!t.data(e,h)},t[l]=t[l]||{},n=t[l][e],o=t[l][e]=function(t,e){return this._createWidget?(arguments.length&&this._createWidget(t,e),void 0):new o(t,e)},t.extend(o,n,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),a=new i,a.options=t.widget.extend({},a.options),t.each(s,function(e,s){return t.isFunction(s)?(r[e]=function(){function t(){return i.prototype[e].apply(this,arguments)}function n(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,o=this._superApply;return this._super=t,this._superApply=n,e=s.apply(this,arguments),this._super=i,this._superApply=o,e}}(),void 0):(r[e]=s,void 0)}),o.prototype=t.widget.extend(a,{widgetEventPrefix:n?a.widgetEventPrefix||e:e},r,{constructor:o,namespace:l,widgetName:e,widgetFullName:h}),n?(t.each(n._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete n._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o}
vendor: 4,241 bytes, line 408
408,t.widget.extend=function(e){for(var s,n,o=i.call(arguments,1),a=0,r=o.length;r>a;a++)for(s in o[a])n=o[a][s],o[a].hasOwnProperty(s)&&void 0!==n&&(e[s]=t.isPlainObject(n)?t.isPlainObject(e[s])?t.widget.extend({},e[s],n):t.widget.extend({},n):n);return e},t.widget.bridge=function(e,s){var n=s.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,r=i.call(arguments,1),l=this;return a?this.length||"instance"!==o?this.each(function(){var i,s=t.data(this,n);return"instance"===o?(l=s,!1):s?t.isFunction(s[o])&&"_"!==o.charAt(0)?(i=s[o].apply(s,r),i!==s&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0):t.error("no such method '"+o+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; "+"attempted to call method '"+o+"'")}):l=void 0:(r.length&&(o=t.widget.extend.apply(null,[o].concat(r))),this.each(function(){var e=t.data(this,n);e?(e.option(o||{}),e._init&&e._init()):t.data(this,n,new s(o,this))})),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(i,s){s=t(s||this.defaultElement||this)[0],this.element=t(s),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},s!==this&&(t.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===s&&this.destroy()}}),this.document=t(s.style?s.ownerDocument:s.document||s),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),i),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var s,n,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t.widget.extend({},this.options[e]),o=0;s.length-1>o;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,s,n;for(i in e)n=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&n&&n.length&&(s=t(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function i(i,o){var a,r;for(r=0;i.length>r;r++)a=n.classesElementLookup[i[r]]||t(),a=e.add?t(t.unique(a.get().concat(e.element.get()))):t(a.not(e.element).get()),n.classesElementLookup[i[r]]=a,s.push(i[r]),o&&e.classes[i[r]]&&s.push(e.classes[i[r]])}var s=[],n=this;return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(s,n){-1!==t.inArray(e.target,n)&&(i.classesElementLookup[s]=t(n.not(e.target).get()))})}
vendor: 15,532 bytes, line 408
408,_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return o.element.toggleClass(this._classes(o),s),this},_on:function(e,i,s){var n,o=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,function(s,a){function r(){return e||o.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled")?("string"==typeof a?o[a]:a).apply(o,arguments):void 0}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var l=s.match(/^([\w:-]*)\s*(.*)$/),h=l[1]+o.eventNamespace,c=l[2];c?n.on(h,c,r):i.on(h,r)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i).off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function i(){return("string"==typeof t?s[t]:t).apply(s,arguments)}var s=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!(t.isFunction(a)&&a.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){"string"==typeof n&&(n={effect:n});var a,r=n?n===!0||"number"==typeof n?i:n.effect||i:e;n=n||{},"number"==typeof n&&(n={duration:n}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}}),t.widget,function(){function e(t,e,i){return[parseFloat(t[0])*(u.test(t[0])?e/100:1),parseFloat(t[1])*(u.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}function s(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}var n,o=Math.max,a=Math.abs,r=/left|center|right/,l=/top|center|bottom/,h=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,u=/%$/,d=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==n)return n;var e,i,s=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=s.children()[0];return t("body").append(s),e=o.offsetWidth,s.css("overflow","scroll"),i=o.offsetWidth,e===i&&(i=s[0].clientWidth),s.remove(),n=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),s=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),n="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth,o="scroll"===s||"auto"===s&&e.height<e.element[0].scrollHeight;return{width:o?t.position.scrollbarWidth():0,height:n?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),s=t.isWindow(i[0]),n=!!i[0]&&9===i[0].nodeType,o=!s&&!n;return{element:i,isWindow:s,isDocument:n,offset:o?t(e).offset():{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},t.fn.position=function(n){if(!n||!n.of)return d.apply(this,arguments);n=t.extend({},n);var u,p,f,g,m,_,v=t(n.of),b=t.position.getWithinInfo(n.within),y=t.position.getScrollInfo(b),w=(n.collision||"flip").split(" "),k={};return _=s(v),v[0].preventDefault&&(n.at="left top"),p=_.width,f=_.height,g=_.offset,m=t.extend({},g),t.each(["my","at"],function(){var t,e,i=(n[this]||"").split(" ");1===i.length&&(i=r.test(i[0])?i.concat(["center"]):l.test(i[0])?["center"].concat(i):["center","center"]),i[0]=r.test(i[0])?i[0]:"center",i[1]=l.test(i[1])?i[1]:"center",t=h.exec(i[0]),e=h.exec(i[1]),k[this]=[t?t[0]:0,e?e[0]:0],n[this]=[c.exec(i[0])[0],c.exec(i[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===n.at[0]?m.left+=p:"center"===n.at[0]&&(m.left+=p/2),"bottom"===n.at[1]?m.top+=f:"center"===n.at[1]&&(m.top+=f/2),u=e(k.at,p,f),m.left+=u[0],m.top+=u[1],this.each(function(){var s,r,l=t(this),h=l.outerWidth(),c=l.outerHeight(),d=i(this,"marginLeft"),_=i(this,"marginTop"),x=h+d+i(this,"marginRight")+y.width,C=c+_+i(this,"marginBottom")+y.height,D=t.extend({},m),T=e(k.my,l.outerWidth(),l.outerHeight());"right"===n.my[0]?D.left-=h:"center"===n.my[0]&&(D.left-=h/2),"bottom"===n.my[1]?D.top-=c:"center"===n.my[1]&&(D.top-=c/2),D.left+=T[0],D.top+=T[1],s={marginLeft:d,marginTop:_},t.each(["left","top"],function(e,i){t.ui.position[w[e]]&&t.ui.position[w[e]][i](D,{targetWidth:p,targetHeight:f,elemWidth:h,elemHeight:c,collisionPosition:s,collisionWidth:x,collisionHeight:C,offset:[u[0]+T[0],u[1]+T[1]],my:n.my,at:n.at,within:b,elem:l})}),n.using&&(r=function(t){var e=g.left-D.left,i=e+p-h,s=g.top-D.top,r=s+f-c,u={target:{element:v,left:g.left,top:g.top,width:p,height:f},element:{element:l,left:D.left,top:D.top,width:h,height:c},horizontal:0>i?"left":e>0?"right":"center",vertical:0>r?"top":s>0?"bottom":"middle"};h>p&&p>a(e+i)&&(u.horizontal="center"),c>f&&f>a(s+r)&&(u.vertical="middle"),u.important=o(a(e),a(i))>o(a(s),a(r))?"horizontal":"vertical",n.using.call(this,t,u)}),l.offset(t.extend(D,{using:r}))})},t.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,a=s.width,r=t.left-e.collisionPosition.marginLeft,l=n-r,h=r+e.collisionWidth-a-n;e.collisionWidth>a?l>0&&0>=h?(i=t.left+l+e.collisionWidth-a-n,t.left+=l-i):t.left=h>0&&0>=l?n:l>h?n+a-e.collisionWidth:n:l>0?t.left+=l:h>0?t.left-=h:t.left=o(t.left-r,t.left)},top:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollTop:s.offset.top,a=e.within.height,r=t.top-e.collisionPosition.marginTop,l=n-r,h=r+e.collisionHeight-a-n;e.collisionHeight>a?l>0&&0>=h?(i=t.top+l+e.collisionHeight-a-n,t.top+=l-i):t.top=h>0&&0>=l?n:l>h?n+a-e.collisionHeight:n:l>0?t.top+=l:h>0?t.top-=h:t.top=o(t.top-r,t.top)}},flip:{left:function(t,e){var i,s,n=e.within,o=n.offset.left+n.scrollLeft,r=n.width,l=n.isWindow?n.scrollLeft:n.offset.left,h=t.left-e.collisionPosition.marginLeft,c=h-l,u=h+e.collisionWidth-r-l,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(i=t.left+d+p+f+e.collisionWidth-r-o,(0>i||a(c)>i)&&(t.left+=d+p+f)):u>0&&(s=t.left-e.collisionPosition.marginLeft+d+p+f-l,(s>0||u>a(s))&&(t.left+=d+p+f))},top:function(t,e){var i,s,n=e.within,o=n.offset.top+n.scrollTop,r=n.height,l=n.isWindow?n.scrollTop:n.offset.top,h=t.top-e.collisionPosition.marginTop,c=h-l,u=h+e.collisionHeight-r-l,d="top"===e.my[1],p=d?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,g=-2*e.offset[1];0>c?(s=t.top+p+f+g+e.collisionHeight-r-o,(0>s||a(c)>s)&&(t.top+=p+f+g)):u>0&&(i=t.top-e.collisionPosition.marginTop+p+f+g-l,(i>0||u>a(i))&&(t.top+=p+f+g))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position,t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},t.fn.extend({uniqueId:function(){var t=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e},t.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var i=t(e.target),s=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&s.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var i=t(e.target).closest(".ui-menu-item"),s=t(e.currentTarget);i[0]===s[0]&&(this._removeClass(s.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,s))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){var i=!t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]));i&&this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),i=e.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),i.children().each(function(){var e=t(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var i,s,n,o,a=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:a=!1,s=this.previousFilter||"",o=!1,n=e.keyCode>=96&&105>=e.keyCode?""+(e.keyCode-96):String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),n===s?o=!0:n=s+n,i=this._filterMenuItems(n),i=o&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i,i.length||(n=String.fromCharCode(e.keyCode),i=this._filterMenuItems(n)),i.length?(this.focus(e,i),this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}a&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i,s,n,o,a=this,r=this.options.icons.submenu,l=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),s=l.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),i=e.prev(),s=t("<span>").data("ui-menu-submenu-caret",!0);a._addClass(s,"ui-menu-icon","ui-icon "+r),i.attr("aria-haspopup","true").prepend(s),e.attr("aria-labelledby",i.attr("id"))}),this._addClass(s,"ui-menu","ui-widget ui-widget-content ui-front"),e=l.add(this.element),i=e.find(this.options.items),i.not(".ui-menu-item").each(function(){var e=t(this);a._isDivider(e)&&a._addClass(e,"ui-menu-divider","ui-widget-content")}),n=i.not(".ui-menu-item, .ui-menu-divider"),o=n.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(n,"ui-menu-item")._addClass(o,"ui-menu-item-wrapper"),i.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t+""),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i,s,n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),s=this.active.children(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),n=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=e.children(".ui-menu"),i.length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,s,n,o,a,r;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,n=e.offset().top-this.activeMenu.offset().top-i-s,o=this.activeMenu.scrollTop(),a=this.activeMenu.height(),r=e.outerHeight(),0>n?this.activeMenu.scrollTop(o+n):n+r>a&&this.activeMenu.scrollTop(o+n-a+r))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var s=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(e),this._removeClass(s.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=s},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","fal
408se")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var s;this.active&&(s="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),s&&s.length&&this.active||(s=this.activeMenu.find(this.options.items)[e]()),this.focus(i,s)},nextPage:function(e){var i,s,n;return this.active?(this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=t(this),0>i.offset().top-s-n}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())),void 0):(this.next(e),void 0)},previousPage:function(e){var i,s,n;return this.active?(this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-s+n>0}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items).first())),void 0):(this.next(e),void 0)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)},_filterMenuItems:function(e){var i=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),s=RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return s.test(t.trim(t(this).children(".ui-menu-item-wrapper").text()))})}}),t.widget("ui.autocomplete",{version:"1.12.1
vendor: 8,271 bytes, line 408
408",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,i,s,n=this.element[0].nodeName.toLowerCase(),o="textarea"===n,a="input"===n;this.isMultiLine=o||!a&&this._isContentEditable(this.element),this.valueMethod=this.element[o||a?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return e=!0,s=!0,i=!0,void 0;e=!1,s=!1,i=!1;var o=t.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",n);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",n);break;case o.UP:e=!0,this._keyEvent("previous",n);break;case o.DOWN:e=!0,this._keyEvent("next",n);break;case o.ENTER:this.menu.active&&(e=!0,n.preventDefault(),this.menu.select(n));break;case o.TAB:this.menu.active&&this.menu.select(n);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(e)return e=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&s.preventDefault(),void 0;if(!i){var n=t.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(t){return s?(s=!1,t.preventDefault(),void 0):(this._searchTimeout(t),void 0)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?(delete this.cancelBlur,void 0):(clearTimeout(this.searching),this.close(t),this._change(t),void 0)}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==t.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(e,i){var s,n;return this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type))?(this.menu.blur(),this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)}),void 0):(n=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:n})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(n.value),s=i.item.attr("aria-label")||n.value,s&&t.trim(s).length&&(this.liveRegion.children().hide(),t("<div>").text(s).appendTo(this.liveRegion)),void 0)},menuselect:function(e,i){var s=i.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=s})),!1!==this._trigger("select",e,{item:s})&&this._value(s.value),this.term=this._value(),this.close(e),this.selectedItem=s}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var i=this.menu.element[0];return e.target===this.element[0]||e.target===i||t.contains(i,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,s=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,s){s(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,n){s.xhr&&s.xhr.abort(),s.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){n(t)},error:function(){n([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),s=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;(!e||e&&!i&&!s)&&(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):this._trigger("search",e)!==!1?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var s=this;t.each(i,function(t,i){s._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").append(t("<div>").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),this.menu.blur(),void 0):(this.menu[t](e),void 0):(this.search(null,e),void 0)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var s=RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return s.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(i).appendTo(this.liveRegion))}}),t.ui.autocomplete
408});
409/* End */
410;
411; /* Start:"a:4:{s:4:"full";s:70:"/local/templates/aspro-allcorp3/js/jquery.plugin.min.js?17780775673356";s:6:"source";s:55:"/local/templates/aspro-allcorp3/js/jquery.plugin.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
412/*! Simple JavaScript Inheritance
413 * By John Resig http://ejohn.org/
414 * MIT Licensed.
415 */
416!function(){"use strict";var a=!1;window.JQClass=function(){},JQClass.classes={},JQClass.extend=function b(c){function d(){!a&&this._init&&this._init.apply(this,arguments)}var e=this.prototype;a=!0;var f=new this;a=!1;for(var g in c)if("function"==typeof c[g]&&"function"==typeof e[g])f[g]=function(a,b){return function(){var c=this._super;this._super=function(b){return e[a].apply(this,b||[])};var d=b.apply(this,arguments);return this._super=c,d}}(g,c[g]);else if("object"==typeof c[g]&&"object"==typeof e[g]&&"defaultOptions"===g){var h,i=e[g],j=c[g],k={};for(h in i)k[h]=i[h];for(h in j)k[h]=j[h];f[g]=k}else f[g]=c[g];return d.prototype=f,d.prototype.constructor=d,d.extend=b,d}}(),/*! Abstract base class for collection plugins v1.0.2.
417	Written by Keith Wood (wood.keith{at}optusnet.com.au) December 2013.
418	Licensed under the MIT license (http://keith-wood.name/licence.html). */
419function($){"use strict";function camelCase(a){return a.replace(/-([a-z])/g,function(a,b){return b.toUpperCase()})}JQClass.classes.JQPlugin=JQClass.extend({name:"plugin",defaultOptions:{},regionalOptions:{},deepMerge:!0,_getMarker:function(){return"is-"+this.name},_init:function(){$.extend(this.defaultOptions,this.regionalOptions&&this.regionalOptions[""]||{});var a=camelCase(this.name);$[a]=this,$.fn[a]=function(b){var c=Array.prototype.slice.call(arguments,1),d=this,e=this;return this.each(function(){if("string"==typeof b){if("_"===b[0]||!$[a][b])throw"Unknown method: "+b;var f=$[a][b].apply($[a],[this].concat(c));if(f!==d&&void 0!==f)return e=f,!1}else $[a]._attach(this,b)}),e}},setDefaults:function(a){$.extend(this.defaultOptions,a||{})},_attach:function(a,b){if(a=$(a),!a.hasClass(this._getMarker())){a.addClass(this._getMarker()),b=$.extend(this.deepMerge,{},this.defaultOptions,this._getMetadata(a),b||{});var c=$.extend({name:this.name,elem:a,options:b},this._instSettings(a,b));a.data(this.name,c),this._postAttach(a,c),this.option(a,b)}},_instSettings:function(a,b){return{}},_postAttach:function(a,b){},_getMetadata:function(elem){try{var data=elem.data(this.name.toLowerCase())||"";data=data.replace(/(\\?)'/g,function(a,b){return b?"'":'"'}).replace(/([a-zA-Z0-9]+):/g,function(a,b,c){var d=data.substring(0,c).match(/"/g);return d&&d.length%2!==0?b+":":'"'+b+'":'}).replace(/\\:/g,":"),data=$.parseJSON("{"+data+"}");for(var key in data)if(data.hasOwnProperty(key)){var value=data[key];"string"==typeof value&&value.match(/^new Date\(([-0-9,\s]*)\)$/)&&(data[key]=eval(value))}return data}catch(a){return{}}},_getInst:function(a){return $(a).data(this.name)||{}},option:function(a,b,c){a=$(a);var d=a.data(this.name),e=b||{};return!b||"string"==typeof b&&"undefined"==typeof c?(e=(d||{}).options,e&&b?e[b]:e):void(a.hasClass(this._getMarker())&&("string"==typeof b&&(e={},e[b]=c),this._optionsChanged(a,d,e),$.extend(d.options,e)))},_optionsChanged:function(a,b,c){},destroy:function(a){a=$(a),a.hasClass(this._getMarker())&&(this._preDestroy(a,this._getInst(a)),a.removeData(this.name).removeClass(this._getMarker()))},_preDestroy:function(a,b){}}),$.JQPlugin={createPlugin:function(a,b){"object"==typeof a&&(b=a,a="JQPlugin"),a=camelCase(a);var c=camelCase(b.name);JQClass.classes[c]=JQClass.classes[a].extend(b),new JQClass.classes[c]}}}(jQuery);
420/* End */
421;
422; /* Start:"a:4:{s:4:"full";s:75:"/local/templates/aspro-allcorp3/js/jquery.alphanumeric.min.js?1778077567942";s:6:"source";s:57:"/local/templates/aspro-allcorp3/js/jquery.alphanumeric.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
423!function(n){n.fn.alphanumeric=function(r){var a,e,c=n(this),t="abcdefghijklmnopqrstuvwxyz",i=n.extend({ichars:"!@#$%^&*()+=[]\\';,/{}|\":<>?~`.- _",nchars:"",allow:""},r),h=i.allow.split(""),l=0;for(l;l<h.length;l++)-1!=i.ichars.indexOf(h[l])&&(h[l]="\\"+h[l]);return i.nocaps&&(i.nchars+=t.toUpperCase()),i.allcaps&&(i.nchars+=t),i.allow=h.join("|"),e=new RegExp(i.allow,"gi"),a=(i.ichars+i.nchars).replace(e,""),c.keypress(function(n){var r=String.fromCharCode(n.charCode?n.charCo
423de:n.which);-1==a.indexOf(r)||n.ctrlKey||n.preventDefault()}),c.blur(function(){var n=c.val(),r=0;for(r;r<n.length;r++)if(-1!=a.indexOf(n[r]))return c.val(""),!1;return!1}),c},n.fn.numeric=function(r){var a="abcdefghijklmnopqrstuvwxyz",e=a.toUpperCase();return this.each(function(){n(this).alphanumeric(n.extend({nchars:a+e},r))})},n.fn.alpha=function(r){var a="1234567890";return this.each(function(){n(this).alphanumeric(n.extend({nchars:a},r))})}}(jQuery);
424/* End */
425;
426; /* Start:"a:4:{s:4:"full";s:77:"/local/templates/aspro-allcorp3/js/jquery.autocomplete.min.js?177807756712531";s:6:"source";s:57:"/local/templates/aspro-allcorp3/js/jquery.autocomplete.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
427!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports&&"function"==typeof require?require("jquery"):jQuery)}(function(e){"use strict";function t(n,o){var i=this;i.element=n,i.el=e(n),i.suggestions=[],i.badQueries=[],i.selectedIndex=-1,i.currentValue=i.element.value,i.timeoutId=null,i.cachedResponse={},i.onChangeTimeout=null,i.onChange=null,i.isLocal=!1,i.suggestionsContainer=null,i.noSuggestionsContainer=null,i.options=e.extend({},t.defaults,o),i.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},i.hint=null,i.hintValue="",i.selection=null,i.initialize(),i.setOptions(o)}function n(e,t,n){return-1!==e.value.toLowerCase().indexOf(n)}function o(t){return"string"==typeof t?e.parseJSON(t):t}function i(e,t){if(!t)return e.value;var n="("+a.escapeRegExChars(t)+")";return e.value.replace(new RegExp(n,"gi"),"<strong>$1</strong>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>")}function s(e,t){return'<div class="autocomplete-group">'+t+"</div>"}var a=function(){return{escapeRegExChars:function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode:function(e){var t=document.createElement("div");return t.className=e,t.style.position="absolute",t.style.display="none",t}}}(),u={ESC:27,TAB:9,RETURN:13,LEFT:37,UP:38,RIGHT:39,DOWN:40},r=e.noop;t.utils=a,e.Autocomplete=t,t.defaults={ajaxSettings:{},autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:i,formatGroup:s,delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:r,onSearchComplete:r,onSearchError:r,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:n,paramName:"query",transformResult:o,showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1},t.prototype={initialize:function(){var n,o=this,i="."+o.classes.suggestion,s=o.classes.selected,a=o.options;o.element.setAttribute("autocomplete","off"),o.noSuggestionsContainer=e('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0),o.suggestionsContainer=t.utils.createNode(a.containerClass),n=e(o.suggestionsContainer),n.appendTo(a.appendTo||"body"),"auto"!==a.width&&n.css("width",a.width),n.on("mouseover.autocomplete",i,function(){o.activate(e(this).data("index"))}),n.on("mouseout.autocomplete",function(){o.selectedIndex=-1,n.children("."+s).removeClass(s)}),n.on("click.autocomplete",i,function(){o.select(e(this).data("index"))}),n.on("click.autocomplete",function(){clearTimeout(o.blurTimeoutId)}),o.fixPositionCapture=function(){o.visible&&o.fixPosition()},e(window).on("resize.autocomplete",o.fixPositionCapture),o.el.on("keydown.autocomplete",function(e){o.onKeyPress(e)}),o.el.on("keyup.autocomplete",function(e){o.onKeyUp(e)}),o.el.on("blur.autocomplete",function(){o.onBlur()}),o.el.on("focus.autocomplete",function(){o.onFocus()}),o.el.on("change.autocomplete",function(e){o.onKeyUp(e)}),o.el.on("input.autocomplete",function(e){o.onKeyUp(e)})},onFocus:function(){var e=this;e.fixPosition(),e.el.val().length>=e.options.minChars&&e.onValueChange()},onBlur:function(){var e=this;e.blurTimeoutId=setTimeout(function(){e.hide()},200)},abortAjax:function(){var e=this;e.currentRequest&&(e.currentRequest.abort(),e.currentRequest=null)},setOptions:function(t){var n=this,o=n.options;this.options=e.extend({},o,t),n.isLocal=e.isArray(o.lookup),n.isLocal&&(o.lookup=n.verifySuggestionsFormat(o.lookup)),o.orientation=n.validateOrientation(o.orientation,"bottom"),e(n.suggestionsContainer).css({"max-height":o.maxHeight+"px",width:o.width+"px","z-index":o.zIndex})},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){var e=this;e.disabled=!0,clearTimeout(e.onChangeTimeout),e.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var t=this,n=e(t.suggestionsContainer),o=n.parent().get(0);
427if(o===document.body||t.options.forceFixPosition){var i=t.options.orientation,s=n.outerHeight(),a=t.el.outerHeight(),u=t.el.offset(),r={top:u.top,left:u.left};if("auto"===i){var l=e(window).height(),c=e(window).scrollTop(),g=-c+u.top-s,d=c+l-(u.top+a+s);i=Math.max(g,d)===g?"top":"bottom"}if("top"===i?r.top+=-s:r.top+=a,o!==document.body){var p,h=n.css("opacity");t.visible||n.css("opacity",0).show(),p=n.offsetParent().offset(),r.top-=p.top,r.left-=p.left,t.visible||n.css("opacity",h).hide()}"auto"===t.options.width&&(r.width=t.el.outerWidth()+"px"),n.css(r)}},isCursorAtEnd:function(){var e,t=this,n=t.el.val().length,o=t.element.selectionStart;return"number"==typeof o?o===n:document.selection?(e=document.selection.createRange(),e.moveStart("character",-n),n===e.text.length):!0},onKeyPress:function(e){var t=this;if(!t.disabled&&!t.visible&&e.which===u.DOWN&&t.currentValue)return void t.suggest();if(!t.disabled&&t.visible){switch(e.which){case u.ESC:t.el.val(t.currentValue),t.hide();break;case u.RIGHT:if(t.hint&&t.options.onHint&&t.isCursorAtEnd()){t.selectHint();break}return;case u.TAB:if(t.hint&&t.options.onHint)return void t.selectHint();if(-1===t.selectedIndex)return void t.hide();if(t.select(t.selectedIndex),t.options.tabDisabled===!1)return;break;case u.RETURN:if(-1===t.selectedIndex)return void t.hide();t.select(t.selectedIndex);break;case u.UP:t.moveUp();break;case u.DOWN:t.moveDown();break;default:return}e.stopImmediatePropagation(),e.preventDefault()}},onKeyUp:function(e){var t=this;if(!t.disabled){switch(e.which){case u.UP:case u.DOWN:return}clearTimeout(t.onChangeTimeout),t.currentValue!==t.el.val()&&(t.findBestHint(),t.options.deferRequestBy>0?t.onChangeTimeout=setTimeout(function(){t.onValueChange()},t.options.deferRequestBy):t.onValueChange())}},onValueChange:function(){var t=this,n=t.options,o=t.el.val(),i=t.getQuery(o);return t.selection&&t.currentValue!==i&&(t.selection=null,(n.onInvalidateSelection||e.noop).call(t.element)),clearTimeout(t.onChangeTimeout),t.currentValue=o,t.selectedIndex=-1,n.triggerSelectOnValidInput&&t.isExactMatch(i)?void t.select(0):void(i.length<n.minChars?t.hide():t.getSuggestions(i))},isExactMatch:function(e){var t=this.suggestions;return 1===t.length&&t[0].value.toLowerCase()===e.toLowerCase()},getQuery:function(t){var n,o=this.options.delimiter;return o?(n=t.split(o),e.trim(n[n.length-1])):t},getSuggestionsLocal:function(t){var n,o=this,i=o.options,s=t.toLowerCase(),a=i.lookupFilter,u=parseInt(i.lookupLimit,10);return n={suggestions:e.grep(i.lookup,function(e){return a(e,t,s)})},u&&n.suggestions.length>u&&(n.suggestions=n.suggestions.slice(0,u)),n},getSuggestions:function(t){var n,o,i,s,a=this,u=a.options,r=u.serviceUrl;if(u.params[u.paramName]=t,u.onSearchStart.call(a.element,u.params)!==!1){if(o=u.ignoreParams?null:u.params,e.isFunction(u.lookup))return void u.lookup(t,function(e){a.suggestions=e.suggestions,a.suggest(),u.onSearchComplete.call(a.element,t,e.suggestions)});a.isLocal?n=a.getSuggestionsLocal(t):(e.isFunction(r)&&(r=r.call(a.element,t)),i=r+"?"+e.param(o||{}),n=a.cachedResponse[i]),n&&e.isArray(n.suggestions)?(a.suggestions=n.suggestions,a.suggest(),u.onSearchComplete.call(a.element,t,n.suggestions)):a.isBadQuery(t)?u.onSearchComplete.call(a.element,t,[]):(a.abortAjax(),s={url:r,data:o,type:u.type,dataType:u.dataType},e.extend(s,u.ajaxSettings),a.currentRequest=e.ajax(s).done(function(e){var n;a.currentRequest=null,n=u.transformResult(e,t),a.processResponse(n,t,i),u.onSearchComplete.call(a.element,t,n.suggestions)}).fail(function(e,n,o){u.onSearchError.call(a.element,t,e,n,o)}))}},isBadQuery:function(e){if(!this.options.preventBadQueries)return!1;for(var t=this.badQueries,n=t.length;n--;)if(0===e.indexOf(t[n]))return!0;return!1},hide:function(){var t=this,n=e(t.suggestionsContainer);e.isFunction(t.options.onHide)&&t.visible&&t.options.onHide.call(t.element,n),t.visible=!1,t.selectedIndex=-1,clearTimeout(t.onChangeTimeout),e(t.suggestionsContainer).hide(),t.signalHint(null)},suggest:function(){if(!this.suggestions.length)return void(this.options.showNoSuggestionNotice?this.noSuggestions():this.hide());var t,n=this,o=n.options,i=o.groupBy,s=o.formatResult,a=n.getQuery(n.currentValue),u=n.classes.suggestion,r=n.classes.selected,l=e(n.suggestionsContainer),c=e(n.noSuggestionsContainer),g=o.beforeRender,d="",p=function(e,n){var s=e.data[i];return t===s?"":(t=s,o.formatGroup(e,t))};return o.triggerSelectOnValidInput&&n.isExactMatch(a)?void n.select(0):(e.each(n.suggestions,function(e,t){i&&(d+=p(t,a,e)),d+='<div class="'+u+'" data-index="'+e+'">'+s(t,a,e)+"</div>"}),this.adjustContainerWidth(),c.detach(),l.html(d),e.isFunction(g)&&g.call(n.element,l,n.suggestions),n.fixPosition(),l.show(),o.autoSelectFirst&&(n.selectedIndex=0,l.scrollTop(0),l.children("."+u).first().addClass(r)),n.visible=!0,void n.findBestHint())},noSuggestions:function(){var t=this,n=t.options.beforeRender,o=e(t.suggestionsContainer),i=e(t.noSuggestionsContainer);this.adjustContainerWidth(),i.detach(),o.empty(),o.append(i),e.isFunction(n)&&n.call(t.element,o,t.suggestions),t.fixPosition(),o.show(),t.visible=!0},adjustContainerWidth:function(){var t,n=this,o=n.options,i=e(n.suggestionsContainer);"auto"===o.width?(t=n.el.outerWidth(),i.css("width",t>0?t:300)):"flex"===o.width&&i.css("width","")},findBestHint:function(){var t=this,n=t.el.val().toLowerCase(),o=null;n&&(e.each(t.suggestions,function(e,t){var i=0===t.value.toLowerCase().indexOf(n);return i&&(o=t),!i}),t.signalHint(o))},signalHint:function(t){var n="",o=this;t&&(n=o.currentValue+t.value.substr(o.currentValue.length)),o.hintValue!==n&&(o.hintValue=n,o.hint=t,(this.options.onHint||e.noop)(n))},verifySuggestionsFormat:function(t){return t.length&&"string"==typeof t[0]?e.map(t,function(e){return{value:e,data:null}}):t},validateOrientation:function(t,n){return t=e.trim(t||"").toLowerCase(),-1===e.inArray(t,["auto","bottom","top"])&&(t=n),t},processResponse:function(e,t,n){var o=this,i=o.options;e.suggestions=o.verifySuggestionsFormat(e.suggestions),i.noCache||(o.cachedResponse[n]=e,i.preventBadQueries&&!e.suggestions.length&&o.badQueries.push(t)),t===o.getQuery(o.currentValue)&&(o.suggestions=e.suggestions,o.suggest())},activate:function(t){var n,o=this,i=o.classes.selected,s=e(o.suggestionsContainer),a=s.find("."+o.classes.suggestion);return s.find("."+i).removeClass(i),o.selectedIndex=t,-1!==o.selectedIndex&&a.length>o.selectedIndex?(n=a.get(o.selectedIndex),e(n).addClass(i),n):null},selectHint:function(){var t=this,n=e.inArray(t.hint,t.suggestions);t.select(n)},select:function(e){var t=this;t.hide(),t.onSelect(e)},moveUp:function(){var t=this;if(-1!==t.selectedIndex)return 0===t.selectedIndex?(e(t.suggestionsContainer).children().first().removeClass(t.classes.selected),t.selectedIndex=-1,t.el.val(t.currentValue),void t.findBestHint()):void t.adjustScroll(t.selectedIndex-1)},moveDown:function(){var e=this;e.selectedIndex!==e.suggestions.length-1&&e.adjustScroll(e.selectedIndex+1)},adjustScroll:function(t){var n=this,o=n.activate(t);if(o){var i,s,a,u=e(o).outerHeight();i=o.offsetTop,s=e(n.suggestionsContainer).scrollTop(),a=s+n.options.maxHeight-u,s>i?e(n.suggestionsContainer).scrollTop(i):i>a&&e(n.suggestionsContainer).scrollTop(i-n.options.maxHeight+u),n.options.preserveInput||n.el.val(n.getValue(n.suggestions[t].value)),n.signalHint(null)}},onSelect:function(t){var n=this,o=n.options.onSelect,i=n.suggestions[t];n.currentValue=n.getValue(i.value),n.currentValue===n.el.val()||n.options.preserveInput||n.el.val(n.currentValue),n.signalHint(null),n.suggestions=[],n.selection=i,e.isFunction(o)&&o.call(n.element,i)},getValue:function(e){var t,n,o=this,i=o.options.delimiter;return i?(t=o.currentValue,n=t.split(i),1===n.length?e:t.substr(0,t.length-n[n.length-1].length)+e):e},dispose:function(){var t=this;t.el.off(".autocomplete").removeData("autocomplete"),e(window).off("resize.autocomplete",t.fixPositionCapture),e(t.suggestionsContainer).remove()}},e.fn.devbridgeAutocomplete=function(n,o){var i="autocomplete";return arguments.length?this.each(function(){var s=e(this),a=s.data(i);"string"==typeof n?a&&"function"==typeof a[n]&&a[n](o):(a&&a.dispose&&a.dispose(),a=new t(this,n),s.data(i,a))}):this.first().data(i)},e.fn.autocomplete||(e.fn.autocomplete=e.fn.devbridgeAutocomplete)});
428/* End */
429;
430; /* Start:"a:4:{s:4:"full";s:83:"/local/templates/aspro-allcorp3/js/jquery.mobile.custom.touch.min.js?17780775677743";s:6:"source";s:68:"/local/templates/aspro-allcorp3/js/jquery.mobile.custom.touch.min.js";s:3:"min";s:68:"/local/templates/aspro-allcorp3/js/jquery.mobile.custom.touch.min.js";s:3:"map";s:72:"/local/templates/aspro-allcorp3/js/jquery.mobile.custom.touch.min.js.map";}"*/
431/*! jQuery Mobile v1.4.5 | Copyright 2010, 2014 jQuery Foundation, Inc. | jquery.org/license */
432!function(e,t,n){"function"==typeof define&&define.amd?define(["jquery"],(function(r){return n(r,e,t),r.mobile})):n(e.jQuery,e,t)}(this,document,(function(e,t,n,r){(function(e,t,n,r){function T(e){for(;e&&void 0!==e.originalEvent;)e=e.originalEvent;return e}function N(t,n){var i=t.type,s,o,a,l,c,h,p,d,v;if((t=e.Event(t)).type=n,s=t.originalEvent,o=e.event.props,i.search(/^(mouse|click)/)>-1&&(o=f),s)for(p=o.length;p;)t[l=o[--p]]=s[l];if(i.search(/mouse(down|up)|click/)>-1&&!t.which&&(t.which=1),-1!==i.search(/^touch/)&&(i=(a=T(s)).touches,c=a.changedTouches,h=i&&i.length?i[0]:c&&c.length?c[0]:r))for(d=0,v=u.length;d<v;d++)t[l=u[d]]=h[l];return t}function C(t){for(var n={},r,s;t;){for(s in r=e.data(t,i))r[s]&&(n[s]=n.hasVirtualBinding=!0);t=t.parentNode}return n}function k(t,n){for(var r;t;){if((r=e.data(t,i))&&(!n||r[n]))return t;t=t.parentNode}return null}function L(){g=!1}function A(){g=!0}function O(){E=0,v.length=0,m=!1,A()}function M(){L()}function _(){D(),c=setTimeout((function(){c=0,O()}),e.vmouse.resetTimerDuration)}function D(){c&&(clearTimeout(c),c=0)}function P(t,n,r){var i;return(r&&r[t]||!r&&k(n.target,t))&&(i=N(n,t),e(n.target).trigger(i)),i}function H(t){var n=e.data(t.target,s),r;!m&&(!E||E!==n)&&((r=P("v"+t.type,t))&&(r.isDefaultPrevented()&&t.preventDefault(),r.isPropagationStopped()&&t.stopPropagation(),r.isImmediatePropagationStopped()&&t.stopImmediatePropagation()))}function B(t){var n=T(t).touches,r,i,o;n&&1===n.length&&((i=C(r=t.target)).hasVirtualBinding&&(E=w++,e.data(r,s,E),D(),M(),d=!1,o=T(t).touches[0],h=o.pageX,p=o.pageY,P("vmouseover",t,i),P("vmousedown",t,i)))}
432function j(e){g||(d||P("vmousecancel",e,C(e.target)),d=!0,_())}function F(t){if(!g){var n=T(t).touches[0],r=d,i=e.vmouse.moveDistanceThreshold,s=C(t.target);(d=d||Math.abs(n.pageX-h)>i||Math.abs(n.pageY-p)>i)&&!r&&P("vmousecancel",t,s),P("vmousemove",t,s),_()}}function I(e){if(!g){A();var t=C(e.target),n,r;P("vmouseup",e,t),d||(n=P("vclick",e,t))&&n.isDefaultPrevented()&&(r=T(e).changedTouches[0],v.push({touchID:E,x:r.clientX,y:r.clientY}),m=!0),P("vmouseout",e,t),d=!1,_()}}function q(t){var n=e.data(t,i),r;if(n)for(r in n)if(n[r])return!0;return!1}function R(){}function U(t){var n=t.substr(1);return{setup:function(){var r;q(this)||e.data(this,i,{}),e.data(this,i)[t]=!0,l[t]=(l[t]||0)+1,1===l[t]&&b.bind(n,H),e(this).bind(n,R),y&&(l.touchstart=(l.touchstart||0)+1,1===l.touchstart&&b.bind("touchstart",B).bind("touchend",I).bind("touchmove",F).bind("scroll",j))},teardown:function(){--l[t],l[t]||b.unbind(n,H),y&&(--l.touchstart,l.touchstart||b.unbind("touchstart",B).unbind("touchmove",F).unbind("touchend",I).unbind("scroll",j));var r=e(this),s=e.data(this,i);s&&(s[t]=!1),r.unbind(n,R),q(this)||r.removeData(i)}}}var i="virtualMouseBindings",s="virtualTouchID",o="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),u="clientX clientY pageX pageY screenX screenY".split(" "),a=e.event.mouseHooks?e.event.mouseHooks.props:[],l={},c=0,h=0,p=0,d=!1,v=[],m=!1,g=!1,y="addEventListener"in n,b=e(n),w=1,E=0,S,x;for(e.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500},x=0;x<o.length;x++)e.event.special[o[x]]=U(o[x]);y&&n.addEventListener("click",(function(t){var n=v.length,r=t.target,i,o,u,a,f,l;if(n)for(i=t.clientX,o=t.clientY,S=e.vmouse.clickDistanceThreshold,u=r;u;){for(a=0;a<n;a++)if(f=v[a],l=0,u===r&&Math.abs(f.x-i)<S&&Math.abs(f.y-o)<S||e.data(u,s)===f.touchID)return t.preventDefault(),void t.stopPropagation();u=u.parentNode}}),!0)})(e,t,n),function(e){e.mobile={}}(e),function(e,t){var r={touch:"ontouchend"in n};e.mobile.support=e.mobile.support||{},e.extend(e.support,r),e.extend(e.mobile.support,r)}(e),function(e,t,r){function l(t,n,i,s){var o=i.type;i.type=n,s?e.event.trigger(i,r,t):e.event.dispatch.call(t,i),i.type=o}var i=e(n),s=e.mobile.support.touch,o="touchmove scroll",u=s?"touchstart":"mousedown",a=s?"touchend":"mouseup",f=s?"touchmove":"mousemove";e.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),(function(t,n){e.fn[n]=function(e){return e?this.bind(n,e):this.trigger(n)},e.attrFn&&(e.attrFn[n]=!0)})),e.event.special.scrollstart={enabled:!0,setup:function(){function s(e,n){l(t,(r=n)?"scrollstart":"scrollstop",e)}var t=this,n,r,i;e(t).bind(o,(function(t){e.event.special.scrollstart.enabled&&(r||s(t,!0),clearTimeout(i),i=setTimeout((function(){s(t,!1)}),50))}))},teardown:function(){e(this).unbind(o)}},e.event.special.tap={tapholdThreshold:750,emitTapOnTaphold:!0,setup:function(){var t=this,n=e(t),r=!1;n.bind("vmousedown",(function(s){function a(){clearTimeout(u)}function f(){a(),n.unbind("vclick",c).unbind("vmouseup",a),i.unbind("vmousecancel",f)}function c(e){f(),r||o!==e.target?r&&e.preventDefault():l(t,"tap",e)}if(r=!1,s.which&&1!==s.which)return!1;var o=s.target,u;n.bind("vmouseup",a).bind("vclick",c),i.bind("vmousecancel",f),u=setTimeout((function(){e.event.special.tap.emitTapOnTaphold||(r=!0),l(t,"taphold",e.Event("taphold",{target:o}))}),e.event.special.tap.tapholdThreshold)}))},teardown:function(){e(this).unbind("vmousedown").unbind("vclick").unbind("vmouseup"),i.unbind("vmousecancel")}},e.event.special.swipe={scrollSupressionThreshold:30,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:30,getLocation:function(e){var n=t.pageXOffset,r=t.pageYOffset,i=e.clientX,s=e.clientY;return 0===e.pageY&&Math.floor(s)>Math.floor(e.pageY)||0===e.pageX&&Math.floor(i)>Math.floor(e.pageX)?(i-=n,s-=r):(s<e.pageY-r||i<e.pageX-n)&&(i=e.pageX-n,s=e.pageY-r),{x:i,y:s}},start:function(t){var n=t.originalEvent.touches?t.originalEvent.touches[0]:t,r=e.event.special.swipe.getLocation(n);return{time:(new Date).getTime(),coords:[r.x,r.y],origin:e(t.target)}},stop:function(t){var n=t.originalEvent.touches?t.originalEvent.touches[0]:t,r=e.event.special.swipe.getLocation(n);return{time:(new Date).getTime(),coords:[r.x,r.y]}},handleSwipe:function(t,n,r,i){if(n.time-t.time<e.event.special.swipe.durationThreshold&&Math.abs(t.coords[0]-n.
432coords[0])>e.event.special.swipe.horizontalDistanceThreshold&&Math.abs(t.coords[1]-n.coords[1])<e.event.special.swipe.verticalDistanceThreshold){var s=t.coords[0]>n.coords[0]?"swipeleft":"swiperight";return l(r,"swipe",e.Event("swipe",{target:i,swipestart:t,swipestop:n}),!0),l(r,s,e.Event(s,{target:i,swipestart:t,swipestop:n}),!0),!0}return!1},eventInProgress:!1,setup:function(){var t,n=this,r=e(n),s={};(t=e.data(this,"mobile-events"))||(t={length:0},e.data(this,"mobile-events",t)),t.length++,t.swipe=s,s.start=function(t){if(!e.event.special.swipe.eventInProgress){e.event.special.swipe.eventInProgress=!0;var r,o=e.event.special.swipe.start(t),u=t.target,l=!1;s.move=function(t){o&&!t.isDefaultPrevented()&&(r=e.event.special.swipe.stop(t),l||(l=e.event.special.swipe.handleSwipe(o,r,n,u))&&(e.event.special.swipe.eventInProgress=!1),Math.abs(o.coords[0]-r.coords[0]),e.event.special.swipe.scrollSupressionThreshold)},s.stop=function(){l=!0,e.event.special.swipe.eventInProgress=!1,i.off(f,s.move),s.move=null},i.on(f,s.move).one(a,s.stop)}},r.on(u,s.start)},teardown:function(){var t,n;(t=e.data(this,"mobile-events"))&&(n=t.swipe,delete t.swipe,t.length--,0===t.length&&e.removeData(this,"mobile-events")),n&&(n.start&&e(this).off(u,n.start),n.move&&i.off(f,n.move),n.stop&&i.off(a,n.stop))}},e.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe.left",swiperight:"swipe.right"},(function(t,n){e.event.special[t]={setup:function(){e(this).bind(n,e.noop)},teardown:function(){e(this).unbind(n)}}}))}(e,this)}));
433/* End */
434;
435; /* Start:"a:4:{s:4:"full";s:81:"/local/templates/aspro-allcorp3/js/jquery.mCustomScrollbar.min.js?177807756755533";s:6:"source";s:61:"/local/templates/aspro-allcorp3/js/jquery.mCustomScrollbar.js";s:3:"min";s:65:"/local/templates/aspro-allcorp3/js/jquery.mCustomScrollbar.min.js";s:3:"map";s:69:"/local/templates/aspro-allcorp3/js/jquery.mCustomScrollbar.min.js.map";}"*/
436!function(factory){"function"==typeof define&&define.amd?define(["jquery"],factory):"undefined"!=typeof module&&module.exports?module.exports=factory:factory(jQuery,window,document)}((function($){var init,_rjs,_njs,_dlp,_url;init=function(){var pluginNS="mCustomScrollbar",pluginPfx="mCS",defaultSelector=".mCustomScrollbar",defaults={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:100,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",ignoreTouchIntent:!1,callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},totalInstances=0,liveTimers={},oldIE=window.attachEvent&&!window.addEventListener?1:0,touchActive=!1,touchable,classes=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft colored_theme_hover_text","mCSB_buttonRight colored_theme_hover_text"],touchOffCustom=!1;methods={init:function(options){var options=$.extend(!0,{},defaults,options),selector=_selector.call(this);if(options.live){var liveSelector=options.liveSelector||this.selector||defaultSelector,$liveSelector=$(liveSelector);if("off"===options.live)return void removeLiveTimers(liveSelector);liveTimers[liveSelector]=setTimeout((function(){$liveSelector.mCustomScrollbar(options),"once"===options.live&&$liveSelector.length&&removeLiveTimers(liveSelector)}),500)}else removeLiveTimers(liveSelector);return options.setWidth=options.set_width?options.set_width:options.setWidth,options.setHeight=options.set_height?options.set_height:options.setHeight,options.axis=options.horizontalScroll?"x":_findAxis(options.axis),options.scrollInertia=options.scrollInertia>0&&options.scrollInertia<17?17:options.scrollInertia,"object"!=typeof options.mouseWheel&&1==options.mouseWheel&&(options.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),options.mouseWheel.scrollAmount=options.mouseWheelPixels?options.mouseWheelPixels:options.mouseWheel.scrollAmount,options.mouseWheel.normalizeDelta=options.advanced.normalizeMouseWheelDelta?options.advanced.normalizeMouseWheelDelta:options.mouseWheel.normalizeDelta,options.scrollButtons.scrollType=_findScrollButtonsType(options.scrollButtons.scrollType),_theme(options),$(selector).each((function(){var $this=$(this);if(!$this.data("mCS")){$this.data("mCS",{idx:++totalInstances,opt:options,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:$this.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0}
436,img:{o:0,n:0},change:{o:0,n:0}}});var d=$this.data("mCS"),o=d.opt,htmlDataAxis=$this.data("mcs-axis"),htmlDataSbPos=$this.data("mcs-scrollbar-position"),htmlDataTheme=$this.data("mcs-theme");htmlDataAxis&&(o.axis=htmlDataAxis),htmlDataSbPos&&(o.scrollbarPosition=htmlDataSbPos),htmlDataTheme&&(o.theme=htmlDataTheme,_theme(o)),_pluginMarkup.call(this),d&&o.callbacks.onCreate&&"function"==typeof o.callbacks.onCreate&&o.callbacks.onCreate.call(this),$("#mCSB_"+d.idx+"_container img:not(."+classes[2]+")").addClass(classes[2]),methods.update.call(null,$this)}}))},update:function(el,cb){var selector=el||_selector.call(this);return $(selector).each((function(){var $this=$(this);if($this.data("mCS")){var d=$this.data("mCS"),o=d.opt,mCSB_container=$("#mCSB_"+d.idx+"_container"),mCustomScrollBox=$("#mCSB_"+d.idx),mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")];if(!mCSB_container.length)return;d.tweenRunning&&_stop($this),cb&&d&&o.callbacks.onBeforeUpdate&&"function"==typeof o.callbacks.onBeforeUpdate&&o.callbacks.onBeforeUpdate.call(this),$this.hasClass(classe
436s[3])&&$this.removeClass(classes[3]),$this.hasClass(classes[4])&&$this.removeClass(classes[4]),mCustomScrollBox.css("max-height","none"),mCustomScrollBox.height()!==$this.height()&&mCustomScrollBox.css("max-height",$this.height()),_expandContentHorizontally.call(this),"y"===o.axis||o.advanced.autoExpandHorizontalScroll||mCSB_container.css("width",_contentWidth(mCSB_container)),d.overflowed=_overflowed.call(this),_scrollbarVisibility.call(this),o.autoDraggerLength&&_setDraggerLength.call(this),_scrollRatio.call(this),_bindEvents.call(this);var to=[Math.abs(mCSB_container[0].offsetTop),Math.abs(mCSB_container[0].offsetLeft)];"x"!==o.axis&&(d.overflowed[0]?mCSB_dragger[0].height()>mCSB_dragger[0].parent().height()?_resetContentPosition.call(this):(_scrollTo($this,to[0].toString(),{dir:"y",dur:0,overwrite:"none"}),d.contentReset.y=null):(_resetContentPosition.call(this),"y"===o.axis?_unbindEvents.call(this):"yx"===o.axis&&d.overflowed[1]&&_scrollTo($this,to[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==o.axis&&(d.overflowed[1]?mCSB_dragger[1].width()>mCSB_dragger[1].parent().width()?_resetContentPosition.call(this):(_scrollTo($this,to[1].toString(),{dir:"x",dur:0,overwrite:"none"}),d.contentReset.x=null):(_resetContentPosition.call(this),"x"===o.axis?_unbindEvents.call(this):"yx"===o.axis&&d.overflowed[0]&&_scrollTo($this,to[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),cb&&d&&(2===cb&&o.callbacks.onImageLoad&&"function"==typeof o.callbacks.onImageLoad?o.callbacks.onImageLoad.call(this):3===cb&&o.callbacks.onSelectorChange&&"function"==typeof o.callbacks.onSelectorChange?o.callbacks.onSelectorChange.call(this):o.callbacks.onUpdate&&"function"==typeof o.callbacks.onUpdate&&o.callbacks.onUpdate.call(this)),_autoUpdate.call(this)}}))},scrollTo:function(val,options){if(void 0!==val&&null!=val){var selector=_selector.call(this);return $(selector).each((function(){var $this=$(this);if($this.data("mCS")){var d=$this.data("mCS"),o=d.opt,methodDefaults={trigger:"external",scrollInertia:o.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},methodOptions=$.extend(!0,{},methodDefaults,options),to=_arr.call(this,val),dur=methodOptions.scrollInertia>0&&methodOptions.scrollInertia<17?17:methodOptions.scrollInertia;to[0]=_to.call(this,to[0],"y"),to[1]=_to.call(this,to[1],"x"),methodOptions.moveDragger&&(to[0]*=d.scrollRatio.y,to[1]*=d.scrollRatio.x),methodOptions.dur=_isTabHidden()?0:dur,setTimeout((function(){null!==to[0]&&void 0!==to[0]&&"x"!==o.axis&&d.overflowed[0]&&(methodOptions.dir="y",methodOptions.overwrite="all",_scrollTo($this,to[0].toString(),methodOptions)),null!==to[1]&&void 0!==to[1]&&"y"!==o.axis&&d.overflowed[1]&&(methodOptions.dir="x",methodOptions.overwrite="none",_scrollTo($this,to[1].toString(),methodOptions))}),methodOptions.timeout)}}))}},stop:function(){var selector=_selector.call(this);return $(selector).each((function(){var $this=$(this);$this.data("mCS")&&_stop($this)}))},disable:function(r){var selector=_selector.call(this);return $(selector).each((function(){var $this=$(this);if($this.data("mCS")){var d=$this.data("mCS");_autoUpdate.call(this,"remove"),_unbindEvents.call(this),r&&_resetContentPosition.call(this),_scrollbarVisibility.call(this,!0),$this.addClass(classe
vendor: 6,271 bytes, line 436
436s[3])}}))},destroy:function(){var selector=_selector.call(this);return $(selector).each((function(){var $this=$(this);if($this.data("mCS")){var d=$this.data("mCS"),o=d.opt,mCustomScrollBox=$("#mCSB_"+d.idx),mCSB_container=$("#mCSB_"+d.idx+"_container"),scrollbar=$(".mCSB_"+d.idx+"_scrollbar");o.live&&removeLiveTimers(o.liveSelector||$(selector).selector),_autoUpdate.call(this,"remove"),_unbindEvents.call(this),_resetContentPosition.call(this),$this.removeData("mCS"),_delete(this,"mcs"),scrollbar.remove(),mCSB_container.find("img."+classes[2]).removeClass(classes[2]),mCustomScrollBox.replaceWith(mCSB_container.contents()),$this.removeClass(pluginNS+" _mCS_"+d.idx+" "+classes[6]+" "+classes[7]+" "+classes[5]+" "+classes[3]).addClass(classes[4])}}))}},_selector=function(){return"object"!=typeof $(this)||$(this).length<1?defaultSelector:this},_theme=function(obj){var fixedSizeScrollbarThemes=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],nonExpandedScrollbarThemes=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],disabledScrollButtonsThemes=["minimal","minimal-dark"],enabledAutoHideScrollbarThemes=["minimal","minimal-dark"],scrollbarPositionOutsideThemes=["minimal","minimal-dark"];obj.autoDraggerLength=!($.inArray(obj.theme,fixedSizeScrollbarThemes)>-1)&&obj.autoDraggerLength,obj.autoExpandScrollbar=!($.inArray(obj.theme,nonExpandedScrollbarThemes)>-1)&&obj.autoExpandScrollbar,obj.scrollButtons.enable=!($.inArray(obj.theme,disabledScrollButtonsThemes)>-1)&&obj.scrollButtons.enable,obj.autoHideScrollbar=$.inArray(obj.theme,enabledAutoHideScrollbarThemes)>-1||obj.autoHideScrollbar,obj.scrollbarPosition=$.inArray(obj.theme,scrollbarPositionOutsideThemes)>-1?"outside":obj.scrollbarPosition},removeLiveTimers=function(selector){liveTimers[selector]&&(clearTimeout(liveTimers[selector]),_delete(liveTimers,selector))},_findAxis=function(val){return"yx"===val||"xy"===val||"auto"===val?"yx":"x"===val||"horizontal"===val?"x":"y"},_findScrollButtonsType=function(val){return"stepped"===val||"pixels"===val||"step"===val||"click"===val?"stepped":"stepless"},_pluginMarkup=function(){var $this=$(this),d=$this.data("mCS"),o=d.opt,expandClass=o.autoExpandScrollbar?" "+classes[1]+"_expand":"",scrollbar=["<div id='mCSB_"+d.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+d.idx+"_scrollbar mCS-"+o.theme+" mCSB_scrollTools_vertical"+expandClass+"'><div class='"+classes[12]+"'><div id='mCSB_"+d.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+d.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+d.idx+"_scrollbar mCS-"+o.theme+" mCSB_scrollTools_horizontal"+expandClass+"'><div class='"+classes[12]+"'><div id='mCSB_"+d.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],wrapperClass="yx"===o.axis?"mCSB_vertical_horizontal":"x"===o.axis?"mCSB_horizontal":"mCSB_vertical",scrollbars="yx"===o.axis?scrollbar[0]+scrollbar[1]:"x"===o.axis?scrollbar[1]:scrollbar[0],contentWrapper="yx"===o.axis?"<div id='mCSB_"+d.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",autoHideClass=o.autoHideScrollbar?" "+classes[6]:"",scrollbarDirClass="x"!==o.axis&&"rtl"===d.langDir?" "+classes[7]:"";o.setWidth&&$this.css("width",o.setWidth),o.setHeight&&$this.css("height",o.setHeight),o.setLeft="y"!==o.axis&&"rtl"===d.langDir?"989999px":o.setLeft,$this.addClass(pluginNS+" _mCS_"+d.idx+autoHideClass+scrollbarDirClass).wrapInner("<div id='mCSB_"+d.idx+"' class='mCustomScrollBox mCS-"+o.theme+" "+wrapperClass+"'><div id='mCSB_"+d.idx+"_container' class='mCSB_container' style='position:relative; top:"+o.setTop+"; left:"+o.setLeft+";' dir='"+d.langDir+"' /></div>");var mCustomScrollBox=$("#mCSB_"+d.idx),mCSB_container=$("#mCSB_"+d.idx+"_container");"y"===o.axis||o.advanced.autoExpandHorizontalScroll||mCSB_container.css("width",_contentWidth(mCSB_container)),"outside"===o.scrollbarPosition?("static"===$this.css("position")&&$this.css("position","relative"),$this.css("overflow","visible"),mCustomScrollBox.addClass("mCSB_outside").after(scrollbars)):(mCustomScrollBox.addClass("mCSB_inside").append(scrollbars),mCSB_container.wrap(contentWrapper)),_scrollButtons.call(this);var mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")];mCSB_dragger[0].css("min-height",mCSB_dragger[0].height()),mCSB_dragger[1].css("min-width",mCSB_dragger[1].width())},_contentWidth=function(el){var val=[el[0].scrollWidth,Math.max.apply(Math,el.children().map((function(){return $(this).outerWidth(!0)})).get())],w=el.parent().width();return val[0]>w?val[0]:val[1]>w?val[1]:"100%"},_expandContentHorizontally=function(){var $this,d=$(this).data("mCS"),o=d.opt,mCSB_container=$("#mCSB_"+d.idx+"_container");if(o.advanced.autoExpandHorizontalScroll&&"y"!==o.axis){mCSB_container.css({width:"auto","min-width":0,"overflow-x":"scroll"});var w=Math.ceil(mCSB_container[0].scrollWidth);3===o.advanced.autoExpandHorizontalScroll||2!==o.advanced.autoExpandHorizontalScroll&&w>mCSB_container.parent().width()?mCSB_container.css({width:w,"min-width":"100%","overflow-x":"inherit"}):mCSB_container.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(mCSB_container[0].getBoundingClientRect().right+.4)-Math.floor(mCSB_container[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},_scrollButtons=function(){var $this,d=$(this).data("mCS"),o=d.opt,mCSB_scrollTools=$(".mCSB_"+d.idx+"_scrollbar:first"),tabindex=_isNumeric(o.scrollButtons.tabindex)?"tabindex='"+o.scrollButtons.tabindex+"'":"",btnHTML=["<a href='#' class='"+classes[13]+"' "+tabindex+" />","<a href='#' class='"+classes[14]+"' "+tabindex+" />","<a href='#' class='"+classes[15]+"' "+tabindex+" ><i class='svg right'><svg width='12' height='6.969' viewBox='0 0 12 6.969'><path class='cls-1' d='M361.691,401.707a1,1,0,0,1-1.414,0L356,397.416l-4.306,4.291a1,1,0,0,1-1.414,0,0.99
4361,0.991,0,0,1,0-1.406l5.016-5a1.006,1.006,0,0,1,1.415,0l4.984,5A0.989,0.989,0,0,1,361.691,401.707Z' transform='translate(-350 -395.031)'></path></svg></i></a>","<a href='#' class='"+classes[16]+"' "+tabindex+" ><i class='svg right'><svg width='12' height='6.969' viewBox='0 0 12 6.969'><path class='cls-1' d='M361.691,401.707a1,1,0,0,1-1.414,0L356,397.416l-4.306,4.291a1,1,0,0,1-1.414,0,0.991,0.991,0,0,1,0-1.406l5.016-5a1.006,1.006,0,0,1,1.415,0l4.984,5A0.989,0.989,0,0,1,361.691,401.707Z' transform='translate(-350 -395.031)'></path></svg></i></a>"],btn=["x"===o.axis?btnHTML[2]:btnHTML[0],"x"===o.axis?btnHTML[3]:btnHTML[1],btnHTML[2],btnHTML[3]];o.scrollButtons.enable&&mCSB_scrollTools.prepend(btn[0]).append(btn[1]).next(".mCSB_scrollTools").prepend(btn[2]).append(btn[3])},_setDraggerLength=function(){var $this,d=$(this).data("mCS"),mCustomScrollBox=$("#mCSB_"+d.idx),mCSB_container=$("#mCSB_"+d.idx+"_container"),mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")],ratio=[mCustomScrollBox.height()/mCSB_container.outerHeight(!1),mCustomScrollBox.width()/mCSB_container.outerWidth(!1)],l=[parseInt(mCSB_dragger[0].css("min-height")),Math.round(ratio[0]*mCSB_dragger[0].parent().height()),parseInt(mCSB_dragger[1].css("min-width")),Math.round(ratio[1]*mCSB_dragger[1].parent().width())],h=oldIE&&l[1]<l[0]?l[0]:l[1],w=oldIE&&l[3]<l[2]?l[2]:l[3];mCSB_dragger[0].css({height:h,"max-height":mCSB_dragger[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":l[0]+"px"}),mCSB_dragger[1].css({width:w,"max-width":mCSB_dragger[1].parent().width()-10})},_scrollRatio=function(){var $this,d=$(this).data("mCS"),mCustomScrollBox=$("#mCSB_"+d.idx),mCSB_container=$("#mCSB_"+d.idx+"_container"),mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")],scrollAmount=[mCSB_container.outerHeight(!1)-mCustomScrollBox.height(),mCSB_container.outerWidth(!1)-mCustomScrollBox.width()],ratio=[scrollAmount[0]/(mCSB_dragger[0].parent().height()-mCSB_dragger[0].height()),scrollAmount[1]/(mCSB_dragger[1].parent().width()-mCSB_dragger[1].width())];d.scrollRatio={y:ratio[0],x:ratio[1]}},_onDragClasses=function(el,action,xpnd){var expandClass=xpnd?classes[0]+"_expanded":"",scrollbar=el.closest(".mCSB_scrollTools");"active"===action?(el.toggleClass(classes[0]+" "+expandClass),scrollbar.toggleClass(classes[1]),el[0]._draggable=el[0]._draggable?0:1):el[0]._draggable||("hide"===action?(el.removeClass(classes[0]),scrollbar.removeClass(classes[1])):(el.addClass(classe
vendor: 3,530 bytes, line 436
436s[0]),scrollbar.addClass(classes[1])))},_overflowed=function(){var $this,d=$(this).data("mCS"),mCustomScrollBox=$("#mCSB_"+d.idx),mCSB_container=$("#mCSB_"+d.idx+"_container"),contentHeight=null==d.overflowed?mCSB_container.height():mCSB_container.outerHeight(!1),contentWidth=null==d.overflowed?mCSB_container.width():mCSB_container.outerWidth(!1),h=mCSB_container[0].scrollHeight,w=mCSB_container[0].scrollWidth;return h>contentHeight&&(contentHeight=h),w>contentWidth&&(contentWidth=w),[contentHeight>mCustomScrollBox.height(),contentWidth>mCustomScrollBox.width()]},_resetContentPosition=function(){var $this=$(this),d=$this.data("mCS"),o=d.opt,mCustomScrollBox=$("#mCSB_"+d.idx),mCSB_container=$("#mCSB_"+d.idx+"_container"),mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")];if(_stop($this),("x"!==o.axis&&!d.overflowed[0]||"y"===o.axis&&d.overflowed[0])&&(mCSB_dragger[0].add(mCSB_container).css("top",0),_scrollTo($this,"_resetY")),"y"!==o.axis&&!d.overflowed[1]||"x"===o.axis&&d.overflowed[1]){var cx=dx=0;"rtl"===d.langDir&&(cx=mCustomScrollBox.width()-mCSB_container.outerWidth(!1),dx=Math.abs(cx/d.scrollRatio.x)),mCSB_container.css("left",cx),mCSB_dragger[1].css("left",dx),_scrollTo($this,"_resetX")}},_bindEvents=function(){var $this=$(this),d=$this.data("mCS"),o=d.opt;if(!d.bindEvents){if(_draggable.call(this),o.contentTouchScroll&&_contentDraggable.call(this),_selectable.call(this),o.mouseWheel.enable){function _mwt(){mousewheelTimeout=setTimeout((function(){$.event.special.mousewheel?(clearTimeout(mousewheelTimeout),_mousewheel.call($this[0])):_mwt()}),100)}var mousewheelTimeout;_mwt()}_draggerRail.call(this),_wrapperScroll.call(this),o.advanced.autoScrollOnFocus&&_focus.call(this),o.scrollButtons.enable&&_buttons.call(this),o.keyboard.enable&&_keyboard.call(this),d.bindEvents=!0}},_unbindEvents=function(){var $this=$(this),d=$this.data("mCS"),o=d.opt,namespace="mCS_"+d.idx,sb=".mCSB_"+d.idx+"_scrollbar",sel=$("#mCSB_"+d.idx+",#mCSB_"+d.idx+"_container,#mCSB_"+d.idx+"_container_wrapper,"+sb+" ."+classes[12]+",#mCSB_"+d.idx+"_dragger_vertical,#mCSB_"+d.idx+"_dragger_horizontal,"+sb+">a"),mCSB_container=$("#mCSB_"+d.idx+"_container");o.advanced.releaseDraggableSelectors&&sel.add($(o.advanced.releaseDraggableSelectors)),o.advanced.extraDraggableSelectors&&sel.add($(o.advanced.extraDraggableSelectors)),d.bindEvents&&($(document).add($(!_canAccessIFrame()||top.document)).unbind("."+namespace),sel.each((function(){$(this).unbind("."+namespace)})),clearTimeout($this[0]._focusTimeout),_delete($this[0],"_focusTimeout"),clearTimeout(d.sequential.step),_delete(d.sequential,"step"),clearTimeout(mCSB_container[0].onCompleteTimeout),_delete(mCSB_container[0],"onCompleteTimeout"),d.bindEvents=!1)},_scrollbarVisibility=function(disabled){var $this=$(this),d=$this.data("mCS"),o=d.opt,contentWrapper=$("#mCSB_"+d.idx+"_container_wrapper"),content=contentWrapper.length?contentWrapper:$("#mCSB_"+d.idx+"_container"),scrollbar=[$("#mCSB_"+d.idx+"_scrollbar_vertical"),$("#mCSB_"+d.idx+"_scrollbar_horizontal")],mCSB_dragger=[scrollbar[0].find(".mCSB_dragger"),scrollbar[1].find(".mCSB_dragger")];"x"!==o.axis&&(d.overflowed[0]&&!disabled?(scrollbar[0].add(mCSB_dragger[0]).add(scrollbar[0].children("a")).css("display","block"),content.removeClass(classes[8]+" "+classes[10])):(o.alwaysShowScrollbar?(2!==o.alwaysShowScrollbar&&mCSB_dragger[0].css("display","none"),content.removeClass(classes[10])):(scrollbar[0].css("display","none"),content.addClass(classe
436s[10])),content.addClass(classes[8]))),"y"!==o.axis&&(d.overflowed[1]&&!disabled?(scrollbar[1].add(mCSB_dragger[1]).add(scrollbar[1].children("a")).css("display","block"),content.removeClass(classes[9]+" "+classes[11])):(o.alwaysShowScrollbar?(2!==o.alwaysShowScrollbar&&mCSB_dragger[1].css("display","none"),content.removeClass(classes[11])):(scrollbar[1].css("display","none"),content.addClass(classes[11])),content.addClass(classes[9]))),d.overflowed[0]||d.overflowed[1]?$this.removeClass(classes[5]):$this.addClass(classes[5])},_coordinates=function(e){var t=e.type,o=e.target.ownerDocument!==document&&null!==frameElement?[$(frameElement).offset().top,$(frameElement).offset().left]:null,io=_canAccessIFrame()&&e.target.ownerDocument!==top.document&&null!==frameElement?[$(e.view.frameElement).offset().top,$(e.view.frameElement).offset().left]:[0,0];switch(t){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return o?[e.originalEvent.pageY-o[0]+io[0],e.originalEvent.pageX-o[1]+io[1],!1]:[e.originalEvent.pageY,e.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var touch=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],touches=e.originalEvent.touches.length||e.originalEvent.changedTouches.length;return e.target.ownerDocument!==document?[touch.screenY,touch.screenX,touches>1]:[touch.pageY,touch.pageX,touches>1];default:return o?[e.pageY-o[0]+io[0],e.pageX-o[1]+io[1],!1]:[e.pageY,e.pageX,!1]}},_draggable=function(){var $this=$(this),d=$this.data("mCS"),o=d.opt,namespace="mCS_"+d.idx,draggerId=["mCSB_"+d.idx+"_dragger_vertical","mCSB_"+d.idx+"_dragger_horizontal"],mCSB_container=$("#mCSB_"+d.idx+"_container"),mCSB_dragger=$("#"+draggerId[0]+",#"+draggerId[1]),draggable,dragY,dragX,rds=o.advanced.releaseDraggableSelectors?mCSB_dragger.add($(o.advanced.releaseDraggableSelectors)):mCSB_dragger,eds=o.advanced.extraDraggableSelectors?$(!_canAccessIFrame()||top.document).add($(o.advanced.extraDraggableSelectors)):$(!_canAccessIFrame()||top.document);function _drag(dragY,dragX,y,x){if(mCSB_container[0].idleTimer=o.scrollInertia<233?250:0,draggable.attr("id")===draggerId[1])var dir="x",to=(draggable[0].offsetLeft-dragX+x)*d.scrollRatio.x;else var dir="y",to=(draggable[0].offsetTop-dragY+y)*d.scrollRatio.y;_scrollTo($this,to.toString(),{dir:dir,drag:!0})}mCSB_dragger.bind("contextmenu."+namespace,(function(e){e.preventDefault()})).bind("mousedown."+namespace+" touchstart."+namespace+" pointerdown."+namespace+" MSPointerDown."+namespace,(function(e){if(e.stopImmediatePropagation(),e.preventDefault(),_mouseBtnLeft(e)){touchActive=!0,oldIE&&(document.onselectstart=function(){return!1}),_iframe.call(mCSB_container,!1),_stop($this);var offset=(draggable=$(this)).offset(),y=_coordinates(e)[0]-offset.top,x=_coordinates(e)[1]-offset.left,h=draggable.height()+offset.top,w=draggable.width()+offset.left;y<h&&y>0&&x<w&&x>0&&(dragY=y,dragX=x),_onDragClasses(draggable,"active",o.autoExpandScrollbar)}})).bind("touchmove."+namespace,(function(e){e.stopImmediatePropagation(),e.preventDefault();var offset=draggable.offset(),y=_coordinates(e)[0]-offset.top,x=_coordinates(e)[1]-offset.left;_drag(dragY,dragX,y,x)})),$(document).add(eds).bind("mousemove."+namespace+" pointermove."+namespace+" MSPointerMove."+namespace,(function(e){if(draggable){var offset=draggable.offset(),y=_coordinates(e)[0]-offset.top,x=_coordinates(e)[1]-offset.left;if(dragY===y&&dragX===x)return;_drag(dragY,dragX,y,x)}})).add(rds).bind("mouseup."+namespace+" touchend."+namespace+" pointerup."+namespace+" MSPointerUp."+namespace,(function(e){draggable&&(_onDragClasses(draggable,"active",o.autoExpandScrollbar),draggable=null),touchActive=!1,oldIE&&(document.onselectstart=null),_iframe.call(mCSB_container,!0)}))},_contentDraggable=function(){var $this=$(this),d=$this.data("mCS"),o=d.opt,namespace="mCS_"+d.idx,mCustomScrollBox=$("#mCSB_"+d.idx),mCSB_container=$("#mCSB_"+d.idx+"_container"),mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")],draggable,dragY,dragX,touchStartY,touchStartX,touchMoveY=[],touchMoveX=[],startTime,runningTime,endTime,distance,speed,amount,durA=0,durB,overwrite="yx"===o.axis?"
436none":"all",touchIntent=[],touchDrag,docDrag,iframe=mCSB_container.find("iframe"),events=["touchstart."+namespace+" pointerdown."+namespace+" MSPointerDown."+namespace,"touchmove."+namespace+" pointermove."+namespace+" MSPointerMove."+namespace,"touchend."+namespace+" pointerup."+namespace+" MSPointerUp."+namespace],touchAction=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;function _onTouchstart(e){if(!_pointerTouch(e)||touchActive||_coordinates(e)[2])touchable=0;else{if($(e.target).closest(".bx_ui_slider_track").length)return touchOffCustom=!0,void(touchable=0);touchOffCustom=!1,touchable=1,touchDrag=0,docDrag=0,draggable=1,$this.removeClass("mCS_touch_action");var offset=mCSB_container.offset();dragY=_coordinates(e)[0]-offset.top,dragX=_coordinates(e)[1]-offset.left,touchIntent=[_coordinates(e)[0],_coordinates(e)[1]]}}function _onTouchmove(e){if(_pointerTouch(e)&&!touchActive&&!_coordinates(e)[2])if(touchOffCustom)touchable=0;else if(o.documentTouchScroll||e.preventDefault(),$(e.target).closest(".owl-carousel").length||e.stopImmediatePropagation(),(!docDrag||touchDrag)&&draggable){runningTime=_getTime();var offset=mCustomScrollBox.offset(),y=_coordinates(e)[0]-offset.top,x=_coordinates(e)[1]-offset.left,easing="mcsLinearOut";if(touchMoveY.push(y),touchMoveX.push(x),touchIntent[2]=Math.abs(_coordinates(e)[0]-touchIntent[0]),touchIntent[3]=Math.abs(_coordinates(e)[1]-touchIntent[1]),d.overflowed[0])var limit=mCSB_dragger[0].parent().height()-mCSB_dragger[0].height(),prevent=dragY-y>0&&y-dragY>-limit*d.scrollRatio.y&&(2*touchIntent[3]<touchIntent[2]||o.ignoreTouchIntent||"yx"===o.axis);if(d.overflowed[1])var limitX=mCSB_dragger[1].parent().width()-mCSB_dragger[1].width(),preventX=dragX-x>0&&x-dragX>-limitX*d.scrollRatio.x&&(2*touchIntent[2]<touchIntent[3]||o.ignoreTouchIntent||"yx"===o.axis);prevent||preventX?(touchAction||e.preventDefault(),touchDrag=1):(o.ignoreTouchIntent||(docDrag=1),$this.addClass("mCS_touch_action")),touchAction&&e.preventDefault(),amount="yx"===o.axis?[dragY-y,dragX-x]:"x"===o.axis?[null,dragX-x]:[dragY-y,null],mCSB_container[0].idleTimer=250,d.overflowed[0]&&_drag(amount[0],0,easing,"y","all",!0),d.overflowed[1]&&_drag(amount[1],0,easing,"x",overwrite,!0)}}function _onTouchstart2(e){if(!_pointerTouch(e)||touchActive||_coordinates(e)[2])touchable=0;else{if($(e.target).closest(".bx_ui_slider_track").length)return touchOffCustom=!0,void(touchable=0);touchOffCustom=!1,touchable=1,e.stopImmediatePropagation(),_stop($this),startTime=_getTime();var offset=mCustomScrollBox.offset();touchStartY=_coordinates(e)[0]-offset.top,touchStartX=_coordinates(e)[1]-offset.left,touchMoveY=[],touchMoveX=[]}}function _onTouchend(e){if(_pointerTouch(e)&&!touchActive&&!_coordinates(e)[2]){if($(e.target).closest(".bx_ui_slider_track").length)return touchOffCustom=!1,void(touchable=0);draggable=0,$(e.target).closest(".owl-carousel").length||e.stopImmediatePropagation(),touchDrag=0,docDrag=0,endTime=_getTime();var offset=mCustomScrollBox.offset(),y=_coordinates(e)[0]-offset.top,x=_coordinates(e)[1]-offset.left;if(!(endTime-runningTime>30)){var easing="mcsEaseOut",slow=(speed=1e3/(endTime-startTime))<2.5,diff=slow?[touchMoveY[touchMoveY.length-2],touchMoveX[touchMoveX.length-2]]:[0,0];distance=slow?[y-diff[0],x-diff[1]]:[y-touchStartY,x-touchStartX];var absDistance=[Math.abs(distance[0]),Math.abs(distance[1])];speed=slow?[Math.abs(distance[0]/4),Math.abs(distance[1]/4)]:[speed,speed];var a=[Math.abs(mCSB_container[0].offsetTop)-distance[0]*_m(absDistance[0]/speed[0],speed[0]),Math.abs(mCSB_container[0].offsetLeft)-distance[1]*_m(absDistance[1]/speed[1],speed[1])];amount="yx"===o.axis?[a[0],a[1]]:"x"===o.axis?[null,a[1]]:[a[0],null],durB=[4*absDistance[0]+o.scrollInertia,4*absDistance[1]+o.scrollInertia];var md=parseInt(o.contentTouchScroll)||0;amount[0]=absDistance[0]>md?amount[0]:0,amount[1]=absDistance[1]>md?amount[1]:0,d.overflowed[0]&&_drag(amount[0],durB[0],easing,"y",overwrite,!1),d.overflowed[1]&&_drag(amount[1],durB[1],easing,"x",overwrite,!1)}}}function _m(ds,s){var r=[1.5*s,2*s,s/1.5,s/2];return ds>90?s>4?r[0]:r[3]:ds>60?s>3?r[3]:r[2]:ds>30?s>8?r[1]:s>6?r[0]:s>4?s:r[2]:s>8?s:r[3]}function _drag(amount,dur,easing,dir,overwrite,drag){amount&&_scrollTo($this,amount.toString(),{dur:dur,scrollEasing:easing,dir:dir,overwrite:overwrite,drag:drag})}mCSB_container.bind(events[0],(function(e){_onTouchstart(e)})).bind(events[1],(function(e){_onTouchmove(e)})),mCustomScrollBox.bind(events[0],(function(e){_onTouchstart2(e)})).bind(events[2],(function(e){_onTouchend(e)})),iframe.length&&iframe.each((function(){$(this).bind("load",(function(){_canAccessIFrame(this)&&$(this.contentDocument||this.contentWindow.document).bind(events[0],(function(e){_onTouchstart(e),_onTouchstart2(e)})).bind(events[1],(function(e){_onTouchmove(e)})).bind(events[2],(function(e){_onTouchend(e)}))}))}))},_selectable=function(){var $this=$(this),d=$this.data("mCS"),o=d.opt,seq=d.sequential,namespace="mCS_"+d.idx,mCSB_container=$("#mCSB_"+d.idx+"_container"),wrapper=mCSB_container.parent(),action;function _sel(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function _seq(a,c,s){seq.type=s&&action?"stepped":"stepless",seq.scrollAmount=10,_sequentialScroll($this,a,c,"mcsLinearOut",s?60:null)}mCSB_container.bind("mousedown."+namespace,(function(e){touchable||action||(action=1,touchActive=!0)})).add(document).bind("mousemove."+namespace,(function(e){if(!touchable&&action&&_sel()){var offset=mCSB_container.offset(),y=_coordinates(e)[0]-offset.top+mCSB_container[0].offsetTop,x=_coordinates(e)[1]-offset.left+mCSB_container[0].offsetLeft;y>0&&y<wrapper.height()&&x>0&&x<wrapper.width()?seq.step&&_seq("off",null,"stepped"):("x"!==o.axis&&d.overflowed[0]&&(y<0?_seq("on",38):y>wrapper.height()&&_seq("on",40)),"y"!==o.axis&&d.overflowed[1]&&(x<0?_seq("on",37):x>wrapper.width()&&_seq("on",39)))}})).bind("mouseup."+namespace+" dragend."+namespace,(function(e){touchable||(action&&(action=0,_seq("off",null)),touchActive=!1)}))},_mousewheel=function(){if($(this).data("mCS")){var $this=$(this),d=$this.data("mCS"),o=d.opt,namespace="mCS_"+d.idx,mCustomScrollBox=$("#mCSB_"+d.idx),mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")],iframe=$("#mCSB_"+d.idx+"_container").find("iframe");iframe.length&&iframe.each((function(){$(this).bind("load",(function(){_canAccessIFrame(this)&&$(this.contentDocument||this.contentWindow.document).bind("mousewheel."+namespace,(function(e,delta){_onMousewheel(e,delta)}))}))})),mCustomScrollBox.bind("mousewheel."+namespace,(function(e,delta){_onMousewheel(e,delta)}))}function _onMousewheel(e,delta){if(_stop($this),!_disableMousewheel($this,e.target)){var deltaFactor="auto"!==o.mouseWheel.deltaFactor?parseInt(o.mouseWheel.deltaFactor):oldIE&&e.deltaFactor<100?100:e.deltaFactor||100,dur=o.scrollInertia;if("x"===o.axis||"x"===o.mouseWheel.axis)var dir="x",px=[Math.round(deltaFactor*d.scrollRatio.x),parseInt(o.mouseWheel.scrollAmount)],amount="auto"!==o.mouseWheel.scrollAmount?px[1]:px[0]>=mCustomScrollBox.width()?.9*mCustomScrollBox.width():px[0],contentPos=Math.abs($("#mCSB_"+d.idx+"_container")[0].offsetLeft),draggerPos=mCSB_dragger[1][0].offsetLeft,limit=mCSB_dragger[1].parent().width()-mCSB_dragger[1].width(),dlt="y"===o.mouseWheel.axis?e.deltaY||delta:e.deltaX;else var dir="y",px=[Math.round(deltaFactor*d.scrollRatio.y),parseInt(o.mouseWheel.scrollAmount)],amount="auto"!==o.mouseWheel.scrollAmount?px[1]:px[0]>=mCustomScrollBox.height()?.9*mCustomScrollBox.height():px[0],contentPos=Math.abs($("#mCSB_"+d.idx+"_container")[0].offsetTop),draggerPos=mCSB_dragger[0][0].offsetTop,limit=mCSB_dragger[0].parent().height()-mCSB_dragger[0].height(),dlt=e.deltaY||delta;"y"===dir&&!d.overflowed[0]||"x"===dir&&!d.overflowed[1]||((o.mouseWheel.invert||e.webkitDirectionInvertedFromDevice)&&(dlt=-dlt),o.mouseWheel.normalizeDelta&&(dlt=dlt<0?-1:1),(dlt>0&&0!==draggerPos||dlt<0&&draggerPos!==limit||o.mouseWheel.preventDefault)&&(e.stopImmediatePropagation(),e.preventDefault()),e.deltaFactor<5&&!o.mouseWheel.normalizeDelta&&(amount=e.deltaFactor,dur=17),_scrollTo($this,(contentPos-dlt*amount).toString(),{dir:dir,dur:dur}))}}},_canAccessIFrameCache=new Object,_canAccessIFrame=function(iframe){var result=!1,cacheKey=!1,html=null;if(void 0===iframe?cacheKey="#empty":void 0!==$(iframe).attr("id")&&(cacheKey=$(iframe).attr("id")),!1!==cacheKey&&void 0!==_canAccessIFrameCache[cacheKey])return _canAccessIFrameCache[cacheKey];if(iframe){try{var doc;html=(doc=iframe.contentDocument||iframe.contentWindow.document).body.innerHTML}catch(err){}result=null!==html}else{try{var doc;html=(doc=top.document).body.innerHTML}catch(err){}result=null!==html}return!1!==cacheKey&&(_canAccessIFrameCache[cacheKey]=result),result},_iframe=function(evt){var el=this.find("iframe");
436if(el.length){var val=evt?"auto":"none";el.css("pointer-events",val)}},_disableMousewheel=function(el,target){var tag=target.nodeName.toLowerCase(),tags=el.data("mCS").opt.mouseWheel.disableOver,focusTags=["select","textarea"];return $.inArray(tag,tags)>-1&&!($.inArray(tag,focusTags)>-1&&!$(target).is(":focus"))},_draggerRail=function(){var $this=$(this),d=$this.data("mCS"),namespace="mCS_"+d.idx,mCSB_container=$("#mCSB_"+d.idx+"_container"),wrapper=mCSB_container.parent(),mCSB_draggerContainer,clickable;$(".mCSB_"+d.idx+"_scrollbar ."+classes[12]).bind("mousedown."+namespace+" touchstart."+namespace+" pointerdown."+namespace+" MSPointerDown."+namespace,(function(e){touchActive=!0,$(e.target).hasClass("mCSB_dragger")||(clickable=1)})).bind("touchend."+namespace+" pointerup."+namespace+" MSPointerUp."+namespace,(function(e){touchActive=!1})).bind("click."+namespace,(function(e){if(clickable&&(clickable=0,$(e.target).hasClass(classes[12])||$(e.target).hasClass("mCSB_draggerRail"))){_stop($this);var el=$(this),mCSB_dragger=el.find(".mCSB_dragger");if(el.parent(".mCSB_scrollTools_horizontal").length>0){if(!d.overflowed[1])return;var dir="x",clickDir=e.pageX>mCSB_dragger.offset().left?-1:1,to=Math.abs(mCSB_container[0].offsetLeft)-clickDir*(.9*wrapper.width())}else{if(!d.overflowed[0])return;var dir="y",clickDir=e.pageY>mCSB_dragger.offset().top?-1:1,to=Math.abs(mCSB_container[0].offsetTop)-clickDir*(.9*wrapper.height())}_scrollTo($this,to.toString(),{dir:dir,scrollEasing:"mcsEaseInOut"})}}))},_focus=function(){var $this=$(this),d=$this.data("mCS"),o=d.opt,namespace="mCS_"+d.idx,mCSB_container=$("#mCSB_"+d.idx+"_container"),wrapper=mCSB_container.parent();mCSB_container.bind("focusin."+namespace,(function(e){var el=$(document.activeElement),nested=mCSB_container.find(".mCustomScrollBox").length,dur=0;el.is(o.advanced.autoScrollOnFocus)&&(_stop($this),clearTimeout($this[0]._focusTimeout),$this[0]._focusTimer=nested?17*nested:0,$this[0]._focusTimeout=setTimeout((function(){var to=[_childPos(el)[0],_childPos(el)[1]],contentPos=[mCSB_container[0].offsetTop,mCSB_container[0].offsetLeft],isVisible=[contentPos[0]+to[0]>=0&&contentPos[0]+to[0]<wrapper.height()-el.outerHeight(!1),contentPos[1]+to[1]>=0&&contentPos[0]+to[1]<wrapper.width()-el.outerWidth(!1)],overwrite="yx"!==o.axis||isVisible[0]||isVisible[1]?"all":"none";"x"===o.axis||isVisible[0]||_scrollTo($this,to[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:overwrite,dur:0}),"y"===o.axis||isVisible[1]||_scrollTo($this,to[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:overwrite,dur:0})}),$this[0]._focusTimer))}))},_wrapperScroll=function(){var $this,d=$(this).data("mCS"),namespace="mCS_"+d.idx,wrapper=$("#mCSB_"+d.idx+"_container").parent();wrapper.bind("scroll."+namespace,(function(e){0===wrapper.scrollTop()&&0===wrapper.scrollLeft()||$(".mCSB_"+d.idx+"_scrollbar").css("visibility","hidden")}))},_buttons=function(){var $this=$(this),d=$this.data("mCS"),o=d.opt,seq=d.sequential,namespace="mCS_"+d.idx,sel=".mCSB_"+d.idx+"_scrollbar",btn;$(sel+">a").bind("contextmenu."+namespace,(function(e){e.preventDefault()})).bind("mousedown."+namespace+" touchstart."+namespace+" pointerdown."+namespace+" MSPointerDown."+namespace+" mouseup."+namespace+" touchend."+namespace+" pointerup."+namespace+" MSPointerUp."+namespace+" mouseout."+namespace+" pointerout."+namespace+" MSPointerOut."+namespace+" click."+namespace,(function(e){if(e.preventDefault(),_mouseBtnLeft(e)){var btnClass=$(this).attr("class");switch(seq.type=o.scrollButtons.scrollType,e.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===seq.type)return;touchActive=!0,d.tweenRunning=!1,_seq("on",btnClass);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===seq.type)return;touchActive=!1,seq.dir&&_seq("off",btnClass);break;case"click":if("stepped"!==seq.type||d.tweenRunning)return;_seq("on",btnClass)}}function _seq(a,c){_sequentialScroll($this,a,c)}}))},_keyboard=function(){var $this=$(this),d=$this.data("mCS"),o=d.opt,seq=d.sequential,namespace="mCS_"+d.idx,mCustomScrollBox=$("#mCSB_"+d.idx),mCSB_container=$("#mCSB_"+d.idx+"_container"),wrapper=mCSB_container.parent(),editables="input,textarea,select,datalist,keygen,[contenteditable='true']",iframe=mCSB_container.find("iframe"),events=["blur."+namespace+" key
436down."+namespace+" keyup."+namespace];function _onKeyboard(e){switch(e.type){case"blur":d.tweenRunning&&seq.dir&&_seq("off",null);break;case"keydown":case"keyup":var code=e.keyCode?e.keyCode:e.which,action="on";if("x"!==o.axis&&(38===code||40===code)||"y"!==o.axis&&(37===code||39===code)){if((38===code||40===code)&&!d.overflowed[0]||(37===code||39===code)&&!d.overflowed[1])return;"keyup"===e.type&&(action="off"),$(document.activeElement).is(editables)||(e.preventDefault(),e.stopImmediatePropagation(),_seq(action,code))}else if(33===code||34===code){if((d.overflowed[0]||d.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type){_stop($this);var keyboardDir=34===code?-1:1;if("x"===o.axis||"yx"===o.axis&&d.overflowed[1]&&!d.overflowed[0])var dir="x",to=Math.abs(mCSB_container[0].offsetLeft)-keyboardDir*(.9*wrapper.width());else var dir="y",to=Math.abs(mCSB_container[0].offsetTop)-keyboardDir*(.9*wrapper.height());_scrollTo($this,to.toString(),{dir:dir,scrollEasing:"mcsEaseInOut"})}}else if((35===code||36===code)&&!$(document.activeElement).is(editables)&&((d.overflowed[0]||d.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type)){if("x"===o.axis||"yx"===o.axis&&d.overflowed[1]&&!d.overflowed[0])var dir="x",to=35===code?Math.abs(wrapper.width()-mCSB_container.outerWidth(!1)):0;else var dir="y",to=35===code?Math.abs(wrapper.height()-mCSB_container.outerHeight(!1)):0;_scrollTo($this,to.toString(),{dir:dir,scrollEasing:"mcsEaseInOut"})}}function _seq(a,c){seq.type=o.keyboard.scrollType,seq.scrollAmount=o.keyboard.scrollAmount,"stepped"===seq.type&&d.tweenRunning||_sequentialScroll($this,a,c)}}iframe.length&&iframe.each((function(){$(this).bind("load",(function(){_canAccessIFrame(this)&&$(this.contentDocument||this.contentWindow.document).bind(events[0],(function(e){_onKeyboard(e)}))}))})),mCustomScrollBox.attr("tabindex","0").bind(events[0],(function(e){_onKeyboard(e)}))},_sequentialScroll=function(el,action,trigger,e,s){var d=el.data("mCS"),o=d.opt,seq=d.sequential,mCSB_container=$("#mCSB_"+d.idx+"_container"),once="stepped"===seq.type,steplessSpeed=o.scrollInertia<26?26:o.scrollInertia,steppedSpeed=o.scrollInertia<1?17:o.scrollInertia;switch(action){case"on":if(seq.dir=[trigger===classes[16]||trigger===classes[15]||39===trigger||37===trigger?"x":"y",trigger===classes[13]||trigger===classes[15]||38===trigger||37===trigger?-1:1],_stop(el),_isNumeric(trigger)&&"stepped"===seq.type)return;_on(once);break;case"off":_off(),(once||d.tweenRunning&&seq.dir)&&_on(!0)}function _on(once){o.snapAmount&&(seq.scrollAmount=o.snapAmount instanceof Array?"x"===seq.dir[0]?o.snapAmount[1]:o.snapAmount[0]:o.snapAmount);var c="stepped"!==seq.type,t=s||(once?c?steplessSpeed/1.5:steppedSpeed:1e3/60),m=once?c?7.5:40:2.5,contentPos=[Math.abs(mCSB_container[0].offsetTop),Math.abs(mCSB_container[0].offsetLeft)],ratio=[d.scrollRatio.y>10?10:d.scrollRatio.y,d.scrollRatio.x>10?10:d.scrollRatio.x],amount="x"===seq.dir[0]?contentPos[1]+seq.dir[1]*(ratio[1]*m):contentPos[0]+seq.dir[1]*(ratio[0]*m),px="x"===seq.dir[0]?contentPos[1]+seq.dir[1]*parseInt(seq.scrollAmount):contentPos[0]+seq.dir[1]*parseInt(seq.scrollAmount),to="auto"!==seq.scrollAmount?px:amount,easing=e||(once?c?"mcsLinearOut":"mcsEaseInOut":"mcsLinear"),onComplete=!!once;once&&t<17&&(to="x"===seq.dir[0]?contentPos[1]:contentPos[0]),_scrollTo(el,to.toString(),{dir:seq.dir[0],scrollEasing:easing,dur:t,onComplete:onComplete}),once?seq.dir=!1:(clearTimeout(seq.step),seq.step=setTimeout((function(){_on()}),t))}function _off(){clearTimeout(seq.step),_delete(seq,"step"),_stop(el)}},_arr=function(val){var o=$(this).data("mCS").opt,vals=[];return"function"==typeof val&&(val=val()),val instanceof Array?vals=val.length>1?[val[0],val[1]]:"x"===o.axis?[null,val[0]]:[val[0],null]:(vals[0]=val.y?val.y:val.x||"x"===o.axis?null:val,vals[1]=val.x?val.x:val.y||"y"===o.axis?null:val),"function"==typeof vals[0]&&(vals[0]=vals[0]()),"function"==typeof vals[1]&&(vals[1]=vals[1]()),vals},_to=function(val,dir){if(null!=val&&void 0!==val){var $this=$(this),d=$this.data("mCS"),o=d.opt,mCSB_container=$("#mCSB_"+d.idx+"_container"),wrapper=mCSB_container.parent(),t=typeof val;dir||(dir="x"===o.axis?"x":"y");var contentLength="x"===dir?mCSB_container.outerWidth(!1)-wrapper.width():mCSB_container.outerHeight(!1)-wrapper.height(),contentPos="x"===dir?mCSB_container[0].offsetLeft:mCSB_container[0].offsetTop,cssProp="x"===dir?"left":"top";switch(t){case"function":return val();case"object":var obj;if(!(obj=val.jquery?val:$(val)).length)return;return"x"===dir?_childPos(obj)[1]:_childPos(obj)[0];case"string":case"number":if(_isNumeric(val))return Math.abs(val);if(-1!==val.indexOf("%"))return Math.abs(contentLength*parseInt(val)/100);if(-1!==val.indexOf("-="))return Math.abs(contentPos-parseInt(val.split("-=")[1]));if(-1!==val.indexOf("+=")){var p=contentPos+parseInt(val.split("+=")[1]);return p>=0?0:Math.abs(p)}if(-1!==val.indexOf("px")&&_isNumeric(val.split("px")[0]))return Math.abs(val.split("px")[0]);if("top"===val||"left"===val)return 0;if("bottom"===val)return Math.abs(wrapper.height()-mCSB_container.outerHeight(!1));if("right"===val)return Math.abs(wrapper.width()-mCSB_container.outerWidth(!1));if("first"===val||"last"===val){var obj=mCSB_container.find(":"+val);return"x"===dir?_childPos(obj)[1]:_childPos(obj)[0]}return $(val).length?"x"===dir?_childPos($(val))[1]:_childPos($(val))[0]:(mCSB_container.css(cssProp,val),void methods.update.call(null,$this[0]))}}},_autoUpdate=function(rem){var $this=$(this),d=$this.data("mCS"),o=d.opt,mCSB_container=$("#mCSB_"+d.idx+"_container");if(rem)return clearTimeout(mCSB_container[0].autoUpdate),void _delete(mCSB_container[0],"autoUpdate");function upd(){clearTimeout(mCSB_container[0].autoUpdate),0!==$this.parents("html").length?mCSB_container[0].autoUpdate=setTimeout((function(){return o.advanced.updateOnSelectorChange&&(d.poll.change.n=sizesSum(),d.poll.change.n!==d.poll.change.o)?(d.poll.change.o=d.poll.change.n,void doUpd(3)):o.advanced.updateOnContentResize&&(d.poll.size.n=$this[0].scrollHeight+$this[0].scrollWidth+mCSB_container[0].offsetHeight+$this[0].offsetHeight+$this[0].offsetWidth,d.poll.size.n!==d.poll.size.o)?(d.poll.size.o=d.poll.size.n,void doUpd(1)):!o.advanced.updateOnImageLoad||"auto"===o.advanced.updateOnImageLoad&&"y"===o.axis||(d.poll.img.n=mCSB_container.find("img").length,d.poll.img.n===d.poll.img.o)?void((o.advanced.updateOnSelectorChange||o.advanced.updateOnContentResize||o.advanced.updateOnImageLoad)&&upd()):(d.poll.img.o=d.poll.img.n,void mCSB_container.find("img").each((function(){imgLoader(this)})))}),o.advanced.autoUpdateTimeout):$this=null}
vendor: 8,988 bytes, line 436
436function imgLoader(el){if($(el).hasClass(classes[2]))doUpd();else{var img=new Image;img.onload=createDelegate(img,imgOnLoad),img.src=el.src}function createDelegate(contextObject,delegateMethod){return function(){return delegateMethod.apply(contextObject,arguments)}}function imgOnLoad(){this.onload=null,$(el).addClass(classes[2]),doUpd(2)}}function sizesSum(){!0===o.advanced.updateOnSelectorChange&&(o.advanced.updateOnSelectorChange="*");var total=0,sel=mCSB_container.find(o.advanced.updateOnSelectorChange);return o.advanced.updateOnSelectorChange&&sel.length>0&&sel.each((function(){total+=this.offsetHeight+this.offsetWidth})),total}function doUpd(cb){clearTimeout(mCSB_container[0].autoUpdate),methods.update.call(null,$this[0],cb)}upd()},_snapAmount=function(to,amount,offset){return Math.round(to/amount)*amount-offset},_stop=function(el){var d=el.data("mCS"),sel;$("#mCSB_"+d.idx+"_container,#mCSB_"+d.idx+"_container_wrapper,#mCSB_"+d.idx+"_dragger_vertical,#mCSB_"+d.idx+"_dragger_horizontal").each((function(){_stopTween.call(this)}))},_scrollTo=function(el,to,options){var d=el.data("mCS"),o=d.opt,defaults={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:o.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},options,dur=[(options=$.extend(defaults,options)).dur,options.drag?0:options.dur],mCustomScrollBox=$("#mCSB_"+d.idx),mCSB_container=$("#mCSB_"+d.idx+"_container"),wrapper=mCSB_container.parent(),totalScrollOffsets=o.callbacks.onTotalScrollOffset?_arr.call(el,o.callbacks.onTotalScrollOffset):[0,0],totalScrollBackOffsets=o.callbacks.onTotalScrollBackOffset?_arr.call(el,o.callbacks.onTotalScrollBackOffset):[0,0];if(d.trigger=options.trigger,0===wrapper.scrollTop()&&0===wrapper.scrollLeft()||($(".mCSB_"+d.idx+"_scrollbar").css("visibility","visible"),wrapper.scrollTop(0).scrollLeft(0)),"_resetY"!==to||d.contentReset.y||(_cb("onOverflowYNone")&&o.callbacks.onOverflowYNone.call(el[0]),d.contentReset.y=1),"_resetX"!==to||d.contentReset.x||(_cb("onOverflowXNone")&&o.callbacks.onOverflowXNone.call(el[0]),d.contentReset.x=1),"_resetY"!==to&&"_resetX"!==to){if(!d.contentReset.y&&el[0].mcs||!d.overflowed[0]||(_cb("onOverflowY")&&o.callbacks.onOverflowY.call(el[0]),d.contentReset.x=null),!d.contentReset.x&&el[0].mcs||!d.overflowed[1]||(_cb("onOverflowX")&&o.callbacks.onOverflowX.call(el[0]),d.contentReset.x=null),o.snapAmount){var snapAmount=o.snapAmount instanceof Array?"x"===options.dir?o.snapAmount[1]:o.snapAmount[0]:o.snapAmount;to=_snapAmount(to,snapAmount,o.snapOffset)}switch(options.dir){case"x":var mCSB_dragger=$("#mCSB_"+d.idx+"_dragger_horizontal"),property="left",contentPos=mCSB_container[0].offsetLeft,limit=[mCustomScrollBox.width()-mCSB_container.outerWidth(!1),mCSB_dragger.parent().width()-mCSB_dragger.width()],scrollTo=[to,0===to?0:to/d.scrollRatio.x],tso=totalScrollOffsets[1],tsbo=totalScrollBackOffsets[1],totalScrollOffset=tso>0?tso/d.scrollRatio.x:0,totalScrollBackOffset=tsbo>0?tsbo/d.scrollRatio.x:0;break;case"y":var mCSB_dragger=$("#mCSB_"+d.idx+"_dragger_vertical"),property="top",contentPos=mCSB_container[0].offsetTop,limit=[mCustomScrollBox.height()-mCSB_container.outerHeight(!1),mCSB_dragger.parent().height()-mCSB_dragger.height()],scrollTo=[to,0===to?0:to/d.scrollRatio.y],tso=totalScrollOffsets[0],tsbo=totalScrollBackOffsets[0],totalScrollOffset=tso>0?tso/d.scrollRatio.y:0,totalScrollBackOffset=tsbo>0?tsbo/d.scrollRatio.y:0}scrollTo[1]<0||0===scrollTo[0]&&0===scrollTo[1]?scrollTo=[0,0]:scrollTo[1]>=limit[1]?scrollTo=[limit[0],limit[1]]:scrollTo[0]=-scrollTo[0],el[0].mcs||(_mcs(),_cb("onInit")&&o.callbacks.onInit.call(el[0])),clearTimeout(mCSB_container[0].onCompleteTimeout),_tweenTo(mCSB_dragger[0],property,Math.round(scrollTo[1]),dur[1],options.scrollEasing),!d.tweenRunning&&(0===contentPos&&scrollTo[0]>=0||contentPos===limit[0]&&scrollTo[0]<=limit[0])||_tweenTo(mCSB_container[0],property,Math.round(scrollTo[0]),dur[0],options.scrollEasing,options.overwrite,{onStart:function(){options.callbacks&&options.onStart&&!d.tweenRunning&&(_cb("onScrollStart")&&(_mcs(),o.callbacks.onScrollStart.call(el[0])),d.tweenRunning=!0,_onDragClasses(mCSB_dragger),d.cbOffsets=_cbOffsets())},onUpdate:function(){options.callbacks&&options.onUpdate&&_cb("whileScrolling")&&(_mcs(),o.callbacks.whileScrolling.call(el[0]))},onComplete:function(){if(options.callbacks&&options.onComplete){"yx"===o.axis&&clearTimeout(mCSB_container[0].onCompleteTimeout);var t=mCSB_container[0].idleTimer||0;mCSB_container[0].onCompleteTimeout=setTimeout((function(){_cb("onScroll")&&(_mcs(),o.callbacks.onScroll.call(el[0])),_cb("onTotalScroll")&&scrollTo[1]>=limit[1]-totalScrollOffset&&d.cbOffsets[0]&&(_mcs(),o.callbacks.onTotalScroll.call(el[0])),_cb("onTotalScrollBack")&&scrollTo[1]<=totalScrollBackOffset&&d.cbOffsets[1]&&(_mcs(),o.callbacks.onTotalScrollBack.call(el[0])),d.tweenRunning=!1,mCSB_container[0].idleTimer=0,_onDragClasses(mCSB_dragger,"hide")}),t)}}})}function _cb(cb){return d&&o.callbacks[cb]&&"function"==typeof o.callbacks[cb]}function _cbOffsets(){return[o.callbacks.alwaysTriggerOffsets||contentPos>=limit[0]+tso,o.callbacks.alwaysTriggerOffsets||contentPos<=-tsbo]}function _mcs(){var cp=[mCSB_container[0].offsetTop,mCSB_container[0].offsetLeft],dp=[mCSB_dragger[0].offsetTop,mCSB_dragger[0].offsetLeft],cl=[mCSB_container.outerHeight(!1),mCSB_container.outerWidth(!1)],pl=[mCustomScrollBox.height(),mCustomScrollBox.width()];el[0].mcs={content:mCSB_container,top:cp[0],left:cp[1],draggerTop:dp[0],draggerLeft:dp[1],topPct:Math.round(100*Math.abs(cp[0])/(Math.abs(cl[0])-pl[0])),leftPct:Math.round(100*Math.abs(cp[1])/(Math.abs(cl[1])-pl[1])),direction:options.dir}}},_tweenTo=function(el,prop,to,duration,easing,overwrite,callbacks){el&&!el._mTween&&(el._mTween={top:{},left:{}});var callbacks,onStart=(callbacks=callbacks||{}).onStart||function(){},onUpdate=callbacks.onUpdate||function(){},onComplete=callbacks.onComplete||function(){},startTime=_getTime(),_delay,progress=0,from=el.offsetTop,elStyle=el.style,_request,tobj=el._mTween[prop];"left"===prop&&(from=el.offsetLeft);var diff=to-from;function _step(){tobj.stop||(progress||onStart.call(),progress=_getTime()-startTime,_tween(),progress>=tobj.time&&(tobj.time=progress>tobj.time?progress+_delay-(progress-tobj.time):progress+_delay-1,tobj.time<progress+1&&(tobj.time=progress+1)),tobj.time<duration?tobj.id=_request(_step):onComplete.call())}function _tween(){duration>0?(tobj.currVal=_ease(tobj.time,from,diff,duration,easing),elStyle[prop]=Math.round(tobj.currVal)+"px"):elStyle[prop]=to+"px",onUpdate.call()}function _startTween(){_delay=1e3/60,tobj.time=progress+_delay,_request=window.requestAnimationFrame?window.requestAnimationFrame:function(f){return _tween(),setTimeout(f,.01)},tobj.id=_request(_step)}function _cancelTween(){null!=tobj.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(tobj.id):clearTimeout(tobj.id),tobj.id=null)}function _ease(t,b,c,d,type){switch(type){case"linear":case"mcsLinear":return c*t/d+b;case"mcsLinearOut":return t/=d,t--,c*Math.sqrt(1-t*t)+b;case"easeInOutSmooth":return(t/=d/2)<1?c/2*t*t+b:-c/2*(--t*(t-2)-1)+b;case"easeInOutStrong":return(t/=d/2)<1?c/2*Math.pow(2,10*(t-1))+b:(t--,c/2*(2-Math.pow(2,-10*t))+b);case"easeInOut":case"mcsEaseInOut":return(t/=d/2)<1?c/2*t*t*t+b:c/2*((t-=2)*t*t+2)+b;case"easeOutSmooth":return t/=d,-c*(--t*t*t*t-1)+b;case"easeOutStrong":return c*(1-Math.pow(2,-10*t/d))+b;case"easeOut":case"mcsEaseOut":default:var ts=(t/=d)*t,tc=ts*t;return b+c*(.499999999999997*tc*ts+-2.5*ts*ts+5.5*tc+-6.5*ts+4*t)}}tobj.stop=0,"none"!==overwrite&&_cancelTween(),_startTween()},_getTime=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},_stopTween=function(){var el=this;el._mTween||(el._mTween={top:{},left:{}});for(var props=["top","left"],i=0;i<props.length;i++){var prop=props[i];el._mTween[prop].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(el._mTween[prop].id):clearTimeout(el._mTween[prop].id),el._mTween[prop].id=null,el._mTween[prop].stop=1)}},_delete=function(c,m){try{delete c[m]}catch(e){c[m]=null}},_mouseBtnLeft=function(e){return!(e.which&&1!==e.which)},_pointerTouch=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},_isNumeric=function(val){return!isNaN(parseFloat(val))&&isFinite(val)},_childPos=function(el){var p=el.parents(".mCSB_container");return[el.offset().top-p.offset().top,el.offset().left-p.offset().left]},_isTabHidden=function(){var prop=_getHiddenProp();return!!prop&&document[prop];function _getHiddenProp(){var pfx=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var i=0;i<pfx.length;i++)if(pfx[i]+"Hidden"in document)return pfx[i]+"Hidden";return null}},$.fn[pluginNS]=function(method){return methods[method]?methods[method].apply(this,Array.prototype.slice.call(arguments,1
436)):"object"!=typeof method&&method?void $.error("Method "+method+" does not exist"):methods.init.apply(this,arguments)},$[pluginNS]=function(method){return methods[method]?methods[method].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof method&&method?void $.error("Method "+method+" does not exist"):methods.init.apply(this,arguments)},$[pluginNS].defaults=defaults,window[pluginNS]=!0,$(window).bind("load",(function(){$(defaultSelector)[pluginNS](),$.extend($.expr[":"],{mcsInView:$.expr[":"].mcsInView||function(el){var $el=$(el),content=$el.parents(".mCSB_container"),wrapper,cPos;if(content.length)return wrapper=content.parent(),(cPos=[content[0].offsetTop,content[0].offsetLeft])[0]+_childPos($el)[0]>=0&&cPos[0]+_childPos($el)[0]<wrapper.height()-$el.outerHeight(!1)&&cPos[1]+_childPos($el)[1]>=0&&cPos[1]+_childPos($el)[1]<wrapper.width()-$el.outerWidth(!1)},mcsInSight:$.expr[":"].mcsInSight||function(el,i,m){var $el=$(el),elD,content=$el.parents(".mCSB_container"),wrapperView,pos,wrapperViewPct,pctVals="exact"===m[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(content.length)return elD=[$el.outerHeight(!1),$el.outerWidth(!1)],pos=[content[0].offsetTop+_childPos($el)[0],content[0].offsetLeft+_childPos($el)[1]],wrapperView=[content.parent()[0].offsetHeight,content.parent()[0].offsetWidth],pos[0]-wrapperView[0]*(wrapperViewPct=[elD[0]<wrapperView[0]?pctVals[0]:pctVals[1],elD[1]<wrapperView[1]?pctVals[0]:pctVals[1]])[0][0]<0&&pos[0]+elD[0]-wrapperView[0]*wrapperViewPct[0][1]>=0&&pos[1]-wrapperView[1]*wrapperViewPct[1][0]<0&&pos[1]+elD[1]-wrapperView[1]*wrapperViewPct[1][1]>=0},mcsOverflow:$.expr[":"].mcsOverflow||function(el){var d=$(el).data("mCS");if(d)return d.overflowed[0]||d.overflowed[1]}})}))},_rjs="function"==typeof define&&define.amd,_njs="undefined"!=typeof module&&module.exports,_dlp="https:"==document.location.protocol?"https:":"http:",_url="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js",_rjs||(_njs?require("jquery-mousewheel")($):$.event.special.mousewheel||$("head").append(decodeURI("%3Cscript src="+_dlp+"//"+_url+"%3E%3C/script%3E"))),init()}));
437/* End */
438;
439; /* Start:"a:4:{s:4:"full";s:64:"/local/templates/aspro-allcorp3/js/jqModal.min.js?17780775673197";s:6:"source";s:45:"/local/templates/aspro-allcorp3/js/jqModal.js";s:3:"min";s:49:"/local/templates/aspro-allcorp3/js/jqModal.min.js";s:3:"map";s:53:"/local/templates/aspro-allcorp3/js/jqModal.min.js.map";}"*/
440!function($){$.fn.jqm=function(options){var o=$.extend({},$.jqm.params,options);
440return this.each((function(){var e=$(this),jqm=$(this).data("jqm");jqm||(jqm={ID:I++}),e.data("jqm",$.extend(o,jqm)).addClass("jqm-init"),o.trigger&&$(this).jqmAddTrigger(o.trigger)}))},$.fn.jqmAddTrigger=function(trigger){return this.each((function(){addTrigger($(this),"jqmShow",trigger)||err("jqmAddTrigger must be called on initialized modals")}))},$.fn.jqmAddClose=function(trigger){return this.each((function(){addTrigger($(this),"jqmHide",trigger)||err("jqmAddClose must be called on initialized modals")}))},$.fn.jqmShow=function(trigger){return this.each((function(){!this._jqmShown&&show($(this),trigger)}))},$.fn.jqmHide=function(trigger){return this.each((function(){this._jqmShown&&hide($(this),trigger)}))};var err=function(msg){window.console&&window.console.error&&window.console.error(msg)},show=function(e,t){var o=e.data("jqm"),t=t||window.event,z=parseInt(e.css("z-index"));if(void 0===o.noOverlay||void 0!==o.noOverlay&&!o.noOverlay){isNaN(z)&&(window.lastJqmZindex?window.lastJqmZindex=z=window.lastJqmZindex+2:z=3e3),window.lastJqmZindex=z;var v=$("<div></div>").addClass(o.overlayClass).css({height:"100%",width:"100%",position:"fixed",left:0,top:0,"z-index":z-1,opacity:o.overlay/100});e.css("z-index",z)}else{var v=$("");e.css("z-index",2999)}if(h={w:e,c:o,o:v,t:t},o.ajax){var target=o.target||e,url=o.ajax;target="string"==typeof target?$(target,e):$(target),"@"==url.substr(0,1)&&(url=$(t).attr(url.substring(1))),target.html(o.ajaxText).load(url,(function(){o.onLoad&&o.onLoad.call(this,h),open(h)}))}else open(h)},hide=function(e,t){var o=e.data("jqm"),t=t||window.event,h={w:e,c:o,o:e.data("jqmv"),t:t};close(h)},onShow=function(hash){return!hash.w[0]._jqmShown&&(hash.c.overlay>0&&hash.o.prependTo("#popup_iframe_wrapper"),hash.w.show(),$.jqm.focusFunc(hash.w),!0)},onHide=function(hash){return hash.w.hide()&&hash.o&&hash.o.remove(),!0},addTrigger=function(e,key,trigger){return!!e.data("jqm")&&$(trigger).each((function(){this[key]=this[key]||[],this[key].push(e)})).click((function(){var trigger=this;return $.each(this[key],(function(i,e){e[key](trigger)})),!1}))},open=function(h){var e=h.w,v=h.o,o=h.c;!1!==o.onShow(h)&&(e[0]._jqmShown=!0,o.modal?(!A[0]&&F("bind"),A.push(e)):e.jqmAddClose(v),o.closeClass&&e.jqmAddClose($("."+o.closeClass,e)),o.toTop&&v&&e.before('<span id="jqmP'+o.ID+'"></span>').insertAfter(v),e.data("jqmv",v))},close=function(h){var e=h.w,v=h.o,o=h.c;!1!==o.onHide(h)&&(e[0]._jqmShown=!1,o.modal&&(A.pop(),!A[0]&&F("unbind")),o.toTop&&v&&$("#jqmP"+o.ID).after(e).remove())},F=function(t){$(document)[t]("keypress keydown mousedown",X)},X=function(e){var modal=$(e.target).data("jqm")||$(e.target).parents(".jqm-init:first").data("jqm"),activeModal=A[A.length-1].data("jqm");return!(!modal||modal.ID!=activeModal.ID)||$.jqm.focusFunc(activeModal)},I=0,A=[];$.jqm={params:{overlay:50,overlayClass:"jqmOverlay",closeClass:"jqmClose",trigger:".jqModal",ajax:!1,target:!1,ajaxText:"",modal:!1,toTop:!1,onShow:onShow,onHide:onHide,onLoad:!1},focusFunc:function(e){return $(":input:visible:first",e).focus(),!1}}}(jQuery);
441/* End */
442;
443; /* Start:"a:4:{s:4:"full";s:71:"/local/templates/aspro-allcorp3/js/jquery.uniform.min.js?17780775678308";s:6:"source";s:56:"/local/templates/aspro-allcorp3/js/jquery.uniform.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
444(function(e,t){"use strict";function n(e){var t=Array.prototype.slice.call(arguments,1);return e.prop?e.prop.apply(e,t):e.attr.apply(e,t)}function s(e,t,n){var s,a;for(s in n)n.hasOwnProperty(s)&&(a=s.replace(/ |$/g,t.eventNamespace),e.bind(a,n[s]))}function a(e,t,n){s(e,n,{focus:function(){t.addClass(n.focusClass)},blur:function(){t.removeClass(n.focusClass),t.removeClass(n.activeClass)},mouseenter:function(){t.addClass(n.hoverClass)},mouseleave:function(){t.removeClass(n.hoverClass),t.removeClass(n.activeClass)},"mousedown touchbegin":function(){e.is(":disabled")||t.addClass(n.activeClass)},"mouseup touchend":function(){t.removeClass(n.activeClass)}})}function i(e,t){e.removeClass(t.hoverClass+" "+t.focusClass+" "+t.activeClass)}function r(e,t,n){n?e.addClass(t):e.removeClass(t)}function l(e,t,n){var s="checked",a=t.is(":"+s);t.prop?t.prop(s,a):a?t.attr(s,s):t.removeAttr(s),r(e,n.checkedClass,a)}function u(e,t,n){r(e,n.disabledClass,t.is(":disabled"))}function o(e,t,n){switch(n){case"after":return e.after(t),e.next();case"before":return e.before(t),e.prev();case"wrap":return e.wrap(t),e.parent()}return null}function c(t,s,a){var i,r,l;return a||(a={}),a=e.extend({bind:{},divClass:null,divWrap:"wrap",spanClass:null,spanHtml:null,spanWrap:"wrap"},a),i=e("<div />"),r=e("<span />"),s.autoHide&&t.is(":hidden")&&"none"===t.css("display")&&i.hide(),a.divClass&&i.addClass(a.divClass),s.wrapperClass&&i.addClass(s.wrapperClass),a.spanClass&&r.addClass(a.spanClass),l=n(t,"id"),s.useID&&l&&n(i,"id",s.idPrefix+"-"+l),a.spanHtml&&r.html(a.spanHtml),i=o(t,i,a.divWrap),r=o(t,r,a.spanWrap),u(i,t,s),{div:i,span:r}}function d(t,n){var s;return n.wrapperClass?(s=e("<span />").addClass(n.wrapperClass),s=o(t,s,"wrap")):null}function f(){var t,n,s,a;return a="rgb(120,2,153)",n=e('<div style="width:0;height:0;color:'+a+'">'),e("body").append(n),s=n.get(0),t=window.getComputedStyle?window.getComputedStyle(s,"").color:(s.currentStyle||s.style||{}).color,n.remove(),t.replace(/ /g,"")!==a}function p(t){return t?e("<span />").text(t).html():""}function m(){return navigator.cpuClass&&!navigator.product}function v(){return window.XMLHttpRequest!==void 0?!0:!1}function h(e){var t;return e[0].multiple?!0:(t=n(e,"size"),!t||1>=t?!1:!0)}function C(){return!1}function w(e,t){var n="none";s(e,t,{"selectstart dragstart mousedown":C}),e.css({MozUserSelect:n,msUserSelect:n,webkitUserSelect:n,userSelect:n})}function b(e,t,n){var s=e.val();""===s?s=n.fileDefaultHtml:(s=s.split(/[\/\\]+/),s=s[s.length-1]),t.text(s)}function y(e,t,n){var s,a;for(s=[],e.each(function(){var e;
444for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&(s.push({el:this,name:e,old:this.style[e]}),this.style[e]=t[e])}),n();s.length;)a=s.pop(),a.el.style[a.name]=a.old}function g(e,t){var n;n=e.parents(),n.push(e[0]),n=n.not(":visible"),y(n,{visibility:"hidden",display:"block",position:"absolute"},t)}function k(e,t){return function(){e.unwrap().unwrap().unbind(t.eventNamespace)}}var H=!0,x=!1,A=[{match:function(e){return e.is("a, button, :submit, :reset, input[type='button']")},apply:function(e,t){var r,l,o,d,f;return l=t.submitDefaultHtml,e.is(":reset")&&(l=t.resetDefaultHtml),d=e.is("a, button")?function(){return e.html()||l}:function(){return p(n(e,"value"))||l},o=c(e,t,{divClass:t.buttonClass,spanHtml:d()}),r=o.div,a(e,r,t),f=!1,s(r,t,{"click touchend":function(){var t,s,a,i;f||e.is(":disabled")||(f=!0,e[0].dispatchEvent?(t=document.createEvent("MouseEvents"),t.initEvent("click",!0,!0),s=e[0].dispatchEvent(t),e.is("a")&&s&&(a=n(e,"target"),i=n(e,"href"),a&&"_self"!==a?window.open(i,a):document.location.href=i)):e.click(),f=!1)}}),w(r,t),{remove:function(){return r.after(e),r.remove(),e.unbind(t.eventNamespace),e},update:function(){i(r,t),u(r,e,t),e.detach(),o.span.html(d()).append(e)}}}},{match:function(e){return e.is(":checkbox")},apply:function(e,t){var n,r,o;return n=c(e,t,{divClass:t.checkboxClass}),r=n.div,o=n.span,a(e,r,t),s(e,t,{"click touchend":function(){l(o,e,t)}}),l(o,e,t),{remove:k(e,t),update:function(){i(r,t),o.removeClass(t.checkedClass),l(o,e,t),u(r,e,t)}}}},{match:function(e){return e.is(":file")},apply:function(t,r){function l(){b(t,p,r)}var d,f,p,v;return d=c(t,r,{divClass:r.fileClass,spanClass:r.fileButtonClass,spanHtml:r.fileButtonHtml,spanWrap:"after"}),f=d.div,v=d.span,p=e("<span />").html(r.fileDefaultHtml),p.addClass(r.filenameClass),p=o(t,p,"after"),n(t,"size")||n(t,"size",f.width()/10),a(t,f,r),l(),m()?s(t,r,{click:function(){t.trigger("change"),setTimeout(l,0)}}):s(t,r,{change:l}),w(p,r),w(v,r),{remove:function(){return p.remove(),v.remove(),t.unwrap().unbind(r.eventNamespace)},update:function(){i(f,r),b(t,p,r),u(f,t,r)}}}},{match:function(e){if(e.is("input")){var t=(" "+n(e,"type")+" ").toLowerCase(),s=" color date datetime datetime-local email month number password search tel text time url week ";return s.indexOf(t)>=0}return!1},apply:function(e,t){var s,i;return s=n(e,"type"),e.addClass(t.inputClass),i=d(e,t),a(e,e,t),t.inputAddTypeAsClass&&e.addClass(s),{remove:function(){e.removeClass(t.inputClass),t.inputAddTypeAsClass&&e.removeClass(s),i&&e.unwrap()},update:C}}},{match:function(e){return e.is(":radio")},apply:function(t,r){var o,d,f;return o=c(t,r,{divClass:r.radioClass}),d=o.div,f=o.span,a(t,d,r),s(t,r,{"click touchend":function(){e.uniform.update(e(':radio[name="'+n(t,"name")+'"]'))}}),l(f,t,r),{remove:k(t,r),update:function(){i(d,r),l(f,t,r),u(d,t,r)}}}},{match:function(e){return e.is("select")&&!h(e)?!0:!1},apply:function(t,n){var r,l,o,d;return n.selectAutoWidth&&g(t,function(){d=t.width()}),r=c(t,n,{divClass:n.selectClass,spanHtml:(t.find(":selected:first")||t.find("option:first")).html(),spanWrap:"before"}),l=r.div,o=r.span,n.selectAutoWidth?g(t,function(){y(e([o[0],l[0]]),{display:"block"},function(){var e;e=o.outerWidth()-o.width(),l.width(d+e),o.width(d)})}):l.addClass("fixedWidth"),a(t,l,n),s(t,n,{change:function(){o.html(t.find(":selected").html()),l.removeClass(n.activeClass)},"click touchend":function(){var e=t.find(":selected").html();o.html()!==e&&t.trigger("change")},keyup:function(){o.html(t.find(":selected").html())}}),w(o,n),{remove:function(){return o.remove(),t.unwrap().unbind(n.eventNamespace),t},update:function(){n.selectAutoWidth?(e.uniform.restore(t),t.uniform(n)):(i(l,n),o.html(t.find(":selected").html()),u(l,t,n))}}}},{match:function(e){return e.is("select")&&h(e)?!0:!1},apply:function(e,t){var n;return e.addClass(t.selectMultiClass),n=d(e,t),a(e,e,t),{remove:function(){e.removeClass(t.selectMultiClass),n&&e.unwrap()},update:C}}},{match:function(e){return e.is("textarea")},apply:function(e,t){var n;return e.addClass(t.textareaClass),n=d(e,t),a(e,e,t),{remove:function(){e.removeClass(t.textareaClass),n&&e.unwrap()},update:C}}}];m()&&!v()&&(H=!1),e.uniform={defaults:{activeClass:"active",autoHide:!0,buttonClass:"button",checkboxClass:"checker",checkedClass:"checked",disabledClass:"disabled",eventNamespace:".uniform",fileButtonClass:"action",fileButtonHtml:"Cho
444ose File",fileClass:"uploader",fileDefaultHtml:"No file selected",filenameClass:"filename",focusClass:"focus",hoverClass:"hover",idPrefix:"uniform",inputAddTypeAsClass:!0,inputClass:"uniform-input",radioClass:"radio",resetDefaultHtml:"Reset",resetSelector:!1,selectAutoWidth:!0,selectClass:"selector",selectMultiClass:"uniform-multiselect",submitDefaultHtml:"Submit",textareaClass:"uniform",useID:!0,wrapperClass:null},elements:[]},e.fn.uniform=function(t){var n=this;return t=e.extend({},e.uniform.defaults,t),x||(x=!0,f()&&(H=!1)),H?(t.resetSelector&&e(t.resetSelector).mouseup(function(){window.setTimeout(function(){e.uniform.update(n)},10)}),this.each(function(){var n,s,a,i=e(this);if(i.data("uniformed"))return e.uniform.update(i),void 0;for(n=0;A.length>n;n+=1)if(s=A[n],s.match(i,t))return a=s.apply(i,t),i.data("uniformed",a),e.uniform.elements.push(i.get(0)),void 0})):this},e.uniform.restore=e.fn.uniform.restore=function(n){n===t&&(n=e.uniform.elements),e(n).each(function(){var t,n,s=e(this);n=s.data("uniformed"),n&&(n.remove(),t=e.inArray(this,e.uniform.elements),t>=0&&e.uniform.elements.splice(t,1),s.removeData("uniformed"))})},e.uniform.update=e.fn.uniform.update=function(n){n===t&&(n=e.uniform.elements),e(n).each(function(){var t,n=e(this);t=n.data("uniformed"),t&&t.update(n,t.options)})}})(jQuery);
445/* End */
446;
447; /* Start:"a:4:{s:4:"full";s:74:"/local/templates/aspro-allcorp3/js/jquery.countdown.min.js?177807756721419";s:6:"source";s:58:"/local/templates/aspro-allcorp3/js/jquery.countdown.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
448!(function (e) {
449  var t = "countdown",
450    i = 0,
451    s = 1,
452    n = 2,
453    o = 3,
454    r = 4,
455    a = 5,
456    l = 6;
457  e.JQPlugin.createPlugin({
458    name: t,
459    defaultOptions: {
460      until: null,
461      since: null,
462      timezone: null,
463      serverSync: null,
464      format: "dHMS",
465      layout: "",
466      compact: !1,
467      padZeroes: !1,
468      significant: 0,
469      description: "",
470      expiryUrl: "",
471      expiryText: "",
472      alwaysExpire: !1,
473      onExpiry: null,
474      onTick: null,
475      tickInterval: 1,
476    },
477    regionalOptions: {
478      "": {
479        labels: ["Years", "Months", "Weeks", "Days", "Hours", "Minutes", "Seconds"],
480        labels1: ["Year", "Month", "Week", "Day", "Hour", "Minute", "Second"],
481        compactLabels: ["y", "m", "w", "d"],
482        whichLabels: null,
483        digits: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
484        timeSeparator: ":",
485        isRTL: !1,
486      },
487    },
488    _getters: ["getTimes"],
489    _rtlClass: t + "-rtl",
490    _sectionClass: t + "-section",
491    _amountClass: t + "-amount",
492    _periodClass: t + "-period",
493    _rowClass: t + "-row",
494    _holdingClass: t + "-holding",
495    _showClass: t + "-show",
496    _descrClass: t + "-descr",
497    _timerElems: [],
498    _init: function () {
499      function t(e) {
500        var a = 1e12 > e ? (n ? performance.now() + performance.timing.navigationStart : s()) : e || s();
501        a - r >= 1e3 && (i._updateElems(), (r = a)), o(t);
502      }
503      var i = this;
504      this._super(), (this._serverSyncs = []);
505      
506    //   console.log(i);
507      var s =
508          "function" == typeof Date.now
509            ? Date.now
510            : function () {
511                return new Date().getTime();
512              },
513        n = window.performance && "function" == typeof window.performance.now,
514        o =
515          window.requestAnimationFrame ||
516          window.webkitRequestAnimationFrame ||
517          window.mozRequestAnimationFrame ||
518          window.oRequestAnimationFrame ||
519          window.msRequestAnimationFrame ||
520          null,
521        r = 0;
522      !o || e.noRequestAnimationFrame
523        ? ((e.noRequestAnimationFrame = null),
524          setInterval(function () {
525            i._updateElems();
526          }, 980))
527        : ((r =
528            window.animationStartTime ||
529            window.webkitAnimationStartTime ||
530            window.mozAnimationStartTime ||
531            window.oAnimationStartTime ||
532            window.msAnimationStartTime ||
533            s()),
534          o(t));
535    },
536    UTCDate: function (e, t, i, s, n, o, r, a) {
537      "object" == typeof t &&
538        t.constructor == Date &&
539        ((a = t.getMilliseconds()),
540        (r = t.getSeconds()),
541        (o = t.getMinutes()),
542        (n = t.getHours()),
543        (s = t.getDate()),
544        (i = t.getMonth()),
545        (t = t.getFullYear()));
546      var l = new Date();
547      return (
548        l.setUTCFullYear(t),
549        l.setUTCDate(1),
550        l.setUTCMonth(i || 0),
551        l.setUTCDate(s || 1),
552        l.setUTCHours(n || 0),
553        l.setUTCMinutes((o || 0) - (Math.abs(e) < 30 ? 60 * e : e)),
554        l.setUTCSeconds(r || 0),
555        l.setUTCMilliseconds(a || 0),
556        l
557      );
558    },
559    periodsToSeconds: function (e) {
560      return 31557600 * e[0] + 2629800 * e[1] + 604800 * e[2] + 86400 * e[3] + 3600 * e[4] + 60 * e[5] + e[6];
561    },
562    resync: function () {
563      var t = this;
564      e("." + this._getMarker()).each(function () {
565        var i = e.data(this, t.name);
566        if (i.options.serverSync) {
567          for (var s = null, n = 0; n < t._serverSyncs.length; n++)
568            if (t._serverSyncs[n][0] == i.options.serverSync) {
569              s = t._serverSyncs[n];
570              break;
571            }
572          if (null == s[2]) {
573            var o = e.isFunction(i.options.serverSync) ? i.options.serverSync.apply(this, []) : null;
574            s[2] = (o ? new Date().getTime() - o.getTime() : 0) - s[1];
575          }
576          i._since && i._since.setMilliseconds(i._since.getMilliseconds() + s[2]),
577            i._until.setMilliseconds(i._until.getMilliseconds() + s[2]);
578        }
579      });
580      for (var i = 0; i < t._serverSyncs.length; i++)
581        null != t._serverSyncs[i][2] && ((t._serverSyncs[i][1] += t._serverSyncs[i][2]), delete t._serverSyncs[i][2]);
582    },
583    _instSettings: function (e, t) {
584      return { _periods: [0, 0, 0, 0, 0, 0, 0] };
585    },
586    _addElem: function (e) {
587        // console.log(e);
588      this._hasElem(e) || this._timerElems.push(e);
589      
590    },
591    _hasElem: function (t) {
592      return e.inArray(t, this._timerElems) > -1;
593    },
594    _removeElem: function (t) {
595      this._timerElems = e.map(this._timerElems, function (e) {
596        return e == t ? null : e;
597      });
598    },
599    _updateElems: function () {
600      for (var e = this._timerElems.length - 1; e >= 0; e--) this._updateCountdown(this._timerElems[e]);
601    },
602    _optionsChanged: function (t, i, s) {
603      s.layout && (s.layout = s.layout.replace(/&lt;/g, "<").replace(/&gt;/g, ">")),
604        this._resetExtraLabels(i.options, s);
605      var n = i.options.timezone != s.timezone;
606      e.extend(i.options, s), this._adjustSettings(t, i, null != s.until || null != s.since || n);
607      var o = new Date();
608      ((i._since && i._since < o) || (i._until && i._until > o)) && this._addElem(t[0]), this._updateCountdown(t, i);
609    },
610    _updateCountdown: function (t, i) {
611      if (((t = t.jquery ? t : e(t)), (i = i || this._getInst(t)), i && i.options)) {
612        if (
613          (t.html(this._generateHTML(i)).toggleClass(this._rtlClass, i.options.isRTL), e.isFunction(i.options.onT
613ick))
614        ) {
615          var s = "lap" != i._hold ? i._periods : this._calculatePeriods(i, i._show, i.options.significant, new Date());
616          (1 == i.options.tickInterval || this.periodsToSeconds(s) % i.options.tickInterval == 0) &&
617            i.options.onTick.apply(t[0], [s]);
618        }
619        var n =
620          "pause" != i._hold &&
621          (i._since ? i._now.getTime() < i._since.getTime() : i._now.getTime() >= i._until.getTime());
622        if (n && !i._expiring) {
623          if (((i._expiring = !0), this._hasElem(t[0]) || i.options.alwaysExpire)) {
624            if (
625              (this._removeElem(t[0]),
626              e.isFunction(i.options.onExpiry) && i.options.onExpiry.apply(t[0], []),
627              i.options.expiryText)
628            ) {
629              var o = i.options.layout;
630              (i.options.layout = i.options.expiryText), this._updateCountdown(t[0], i), (i.options.layout = o);
631            }
632            i.options.expiryUrl && (window.location = i.options.expiryUrl);
633          }
634          i._expiring = !1;
635        } else "pause" == i._hold && this._removeElem(t[0]);
636      }
637    },
638    _resetExtraLabels: function (e, t) {
639      for (var i in t) i.match(/[Ll]abels[02-9]|compactLabels1/) && (e[i] = t[i]);
640      for (var i in e) i.match(/[Ll]abels[02-9]|compactLabels1/) && "undefined" == typeof t[i] && (e[i] = null);
641    },
642    _adjustSettings: function (t, i, s) {
643      for (var n = null, o = 0; o < this._serverSyncs.length; o++)
644        if (this._serverSyncs[o][0] == i.options.serverSync) {
645          n = this._serverSyncs[o][1];
646          break;
647        }
648      if (null != n)
649        var r = i.options.serverSync ? n : 0,
650          a = new Date();
651      else {
652        var l = e.isFunction(i.options.serverSync) ? i.options.serverSync.apply(t[0], []) : null,
653          a = new Date(),
654          r = l ? a.getTime() - l.getTime() : 0;
655        this._serverSyncs.push([i.options.serverSync, r]);
656      }
657      var _ = i.options.timezone;
658      (_ = null == _ ? -a.getTimezoneOffset() : _),
659        (s || (!s && null == i._until && null == i._since)) &&
660          ((i._since = i.options.since),
661          null != i._since &&
662            ((i._since = this.UTCDate(_, this._determineTime(i._since, null))),
663            i._since && r && i._since.setMilliseconds(i._since.getMilliseconds() + r)),
664          (i._until = this.UTCDate(_, this._determineTime(i.options.until, a))),
665          r && i._until.setMilliseconds(i._until.getMilliseconds() + r)),
666        (i._show = this._determineShow(i));
667    },
668    _preDestroy: function (e, t) {
669      this._removeElem(e[0]), e.empty();
670    },
671    pause: function (e) {
672      this._hold(e, "pause");
673    },
674    lap: function (e) {
675      this._hold(e, "lap");
676    },
677    resume: function (e) {
678      this._hold(e, null);
679    },
680    toggle: function (t) {
681      var i = e.data(t, this.name) || {};
682      this[i._hold ? "resume" : "pause"](t);
683    },
684    toggleLap: function (t) {
685      var i = e.data(t, this.name) || {};
686      this[i._hold ? "resume" : "lap"](t);
687    },
688    _hold: function (t, i) {
689      var s = e.data(t, this.name);
690      if (s) {
691        if ("pause" == s._hold && !i) {
692          s._periods = s._savePeriods;
693          var n = s._since ? "-" : "+";
694          (s[s._since ? "_since" : "_until"] = this._determineTime(
695            n +
696              s._periods[0] +
697              "y" +
698              n +
699              s._periods[1] +
700              "o" +
701              n +
702              s._periods[2] +
703              "w" +
704              n +
705              s._periods[3] +
706              "d" +
707              n +
708              s._periods[4] +
709              "h" +
710              n +
711              s._periods[5] +
712              "m" +
713              n +
714              s._periods[6] +
715              "s"
716          )),
717            this._addElem(t);
718        }
719        (s._hold = i),
720          (s._savePeriods = "pause" == i ? s._periods : null),
721          e.data(t, this.name, s),
722          this._updateCountdown(t, s);
723      }
724    },
725    getTimes: function (t) {
726      var i = e.data(t, this.name);
727      return i
728        ? "pause" == i._hold
729          ? i._savePeriods
730          : i._hold
731          ? this._calculatePeriods(i, i._show, i.options.significant, new Date())
732          : i._periods
733        : null;
734    },
735    _determineTime: function (e, t) {
736      var i = this,
737        s = function (e) {
738          var t = new Date();
739          return t.setTime(t.getTime() + 1e3 * e), t;
740        },
741        n = function (e) {
742          e = e.toLowerCase();
743          for (
744            var t = new Date(),
745              s = t.getFullYear(),
746              n = t.getMonth(),
747              o = t.getDate(),
748              r = t.getHours(),
749              a = t.getMinutes(),
750              l = t.getSeconds(),
751              _ = /([+-]?[0-9]+)\s*(s|m|h|d|w|o|y)?/g,
752              p = _.exec(e);
753            p;
754
755          ) {
756            switch (p[2] || "s") {
757              case "s":
758                l += parseInt(p[1], 10);
759                break;
760              case "m":
761                a += parseInt(p[1], 10);
762                break;
763              case "h":
764                r += parseInt(p[1], 10);
765                break;
766              case "d":
767                o += parseInt(p[1], 10);
768                break;
769              case "w":
770                o += 7 * parseInt(p[1], 10);
771                break;
772              case "o":
773                (n += parseInt(p[1], 10)), (o = Math.min(o, i._getDaysInMonth(s, n)));
774                break;
775              case "y":
776                (s += parseInt(p[1], 10)), (o = Math.min(o, i._getDaysInMonth(s, n)));
777            }
778            p = _.exec(e);
779          }
780          return new Date(s, n, o, r, a, l, 0);
781        },
782        o = null == e ? t : "string" == typeof e ? n(e) : "number" == typeof e ? s(e) : e;
783      return o && o.setMilliseconds(0), o;
784    },
785    _getDaysInMonth: function (e, t) {
786      return 32 - new Date(e, t, 32).getDate();
787    },
788    _normalLabels: function (e) {
789      return e;
790    },
791    _generateHTML: function (t) {
792      var _ = this;
793      t._periods = t._hold ? t._periods : this._calculatePeriods(t, t._show, t.options.significant, new Date());
794      for (var p = !1, c = 0, u = t.options.significant, d = e.extend({}, t._show), h = i; l >= h; h++)
795        (p |= "?" == t._show[h] && t._periods[h] > 0),
796          (d[h] = "?" != t._show[h] || p ? t._show[h] : null),
797          (c += d[h] ? 1 : 0),
798          (u -= t._periods[h] > 0 ? 1 : 0);
799      for (var m = [!1, !1, !1, !1, !1, !1, !1], h = l; h >= i; h--)
800        t._show[h] && (t._periods[h] ? (m[h] = !0) : ((m[h] = u > 0), u--));
801      var g = t.options.compact ? t.options.compactLabels : t.options.labels,
802        f = t.options.whichLabels || this._normalLabels,
803        w = function (e) {
804          var i = t.options["compactLabels" + f(t._periods[e])];
805          return d[e] ? _._translateDigits(t, t._periods[e]) + (i ? i[e] : g[e]) + " " : "";
806        },
807        y = t.options.padZeroes ? 2 : 1,
808        v = function (e) {
809          var i = t.options["labels" + f(t._periods[e])];
810          return (!t.options.significant && d[e]) || (t.options.significant && m[e])
811            ? '<span class="' +
812                _._sectionClass +
813                '"><span class="' +
814                _._amountClass +
815                '">' +
816                _._minDigits(t, t._periods[e], y) +
817                '</span><span class="' +
818                _._periodClass +
819                '">' +
820                (i ? i[e] : g[e]) +
821                "</span></span>"
822            : "";
823        };
824      return t.options.layout
825        ? this._buildLayout(t, d, t.options.layout, t.options.compact, t.options.significant, m)
826        : (t.options.compact
827            ? '<span class="' +
828              this._rowClass +
829              " " +
830              this._amountClass +
831              (t._hold ? " " + this._holdingClass : "") +
832              '">' +
833              w(i) +
834              w(s) +
835              w(n) +
836              w(o) +
837              (d[r] ? this._minDigits(t, t._periods[r], 2) : "") +
838              (d[a] ? (d[r] ? t.options.timeSeparator : "") + this._minDigits(t, t._periods[a], 2) : "") +
839              (d[l] ? (d[r] || d[a] ? t.options.timeSeparator : "") + this._minDigits(t, t._periods[l], 2) : "")
840            : '<span class="' +
841              this._rowClass +
842              " " +
843              this._showClass +
844              (t.options.significant || c) +
845              (t._hold ? " " + this._holdingClass : "") +
846              '">' +
847              v(i) +
848              v(s) +
849              v(n) +
850              v(o) +
851              v(r) +
852              v(a) +
853              v(l)) +
854            "</span>" +
855            (t.options.description
856              ? '<span class="' + this._rowClass + " " + this._descrClass + '">' + t.options.description + "</span>"
857              : "");
858    },
859    _buildLayout: function (t, _, p, c, u, d) {
860      for (
861        var h = t.options[c ? "compactLabels" : "labels"],
862          m = t.options.whichLabels || this._normalLabels,
863          g = function (e) {
864            return (t.options[(c ? "compactLabels" : "labels") + m(t._periods[e])] || h)[e];
865          },
866          f = function (e, i) {
867            return t.options.digits[Math.floor(e / i) % 10];
868          },
869          w = {
870            desc: t.options.description,
871            sep: t.options.timeSeparator,
872            yl: g(i),
873            yn: this._minDigits(t, t._periods[i], 1),
874            ynn: this._minDigits(t, t._periods[i], 2),
875            ynnn: this._minDigits(t, t._periods[i], 3),
876            y1: f(t._periods[i], 1),
877            y10: f(t._periods[i], 10),
878            y100: f(t._periods[i], 100),
879            y1000: f(t._periods[i], 1e3),
880            ol: g(s),
881            on: this._minDigits(t, t._periods[s], 1),
882            onn: this._minDigits(t, t._periods[s], 2),
883            onnn: this._minDigits(t, t._periods[s], 3),
884            o1: f(t._periods[s], 1),
885            o10: f(t._periods[s], 10),
886            o100: f(t._periods[s], 100),
887            o1000: f(t._periods[s], 1e3),
888            wl: g(n),
889            wn: this._minDigits(t, t._periods[n], 1),
890            wnn: this._minDigits(t, t._periods[n], 2),
891            wnnn: this._minDigits(t, t._periods[n], 3),
892            w1: f(t._periods[n], 1),
893            w10: f(t._periods[n], 10),
894            w100: f(t._periods[n], 100),
895            w1000: f(t._periods[n], 1e3),
896            dl: g(o),
897            dn: this._minDigits(t, t._periods[o], 1),
898            dnn: this._minDigits(t, t._periods[o], 2),
899            dnnn: this._minDigits(t, t._periods[o], 3),
900            d1: f(t._periods[o], 1),
901            d10: f(t._periods[o], 10),
902            d100: f(t._periods[o], 100),
903            d1000: f(t._periods[o], 1e3),
904            hl: g(r),
905            hn: this._minDigits(t, t._periods[r], 1),
906            hnn: this._minDigits(t, t._periods[r], 2),
907            hnnn: this._minDigits(t, t._periods[r], 3),
908            h1: f(t._periods[r], 1),
909            h10: f(t._periods[r], 10),
910            h100: f(t._periods[r], 100),
911            h1000: f(t._periods[r], 1e3),
912            ml: g(a),
913            mn: this._minDigits(t, t._periods[a], 1),
914            mnn: this._minDigits(t, t._periods[a], 2),
915            mnnn: this._minDigits(t, t._periods[a], 3),
916            m1: f(t._periods[a], 1),
917            m10: f(t._periods[a], 10),
918            m100: f(t._periods[a], 100),
919            m1000: f(t._periods[a], 1e3),
920            sl: g(l),
921            sn: this._minDigits(t, t._periods[l], 1),
922            snn: this._minDigits(t, t._periods[l], 2),
923            snnn: this._minDigits(t, t._periods[l], 3),
924            s1: f(t._periods[l], 1),
925            s10: f(t._periods[l], 10),
926            s100: f(t._periods[l], 100),
927            s1000: f(t._periods[l], 1e3),
928          },
929          y = p,
930          v = i;
931        l >= v;
932        v++
933      ) {
934        var D = "yowdhms".charAt(v),
935          T = new RegExp("\\{" + D + "<\\}([\\s\\S]*)\\{" + D + ">\\}", "g");
936        y = y.replace(T, (!u && _[v]) || (u && d[v]) ? "$1" : "");
937      }
938      return (
939        e.each(w, function (e, t) {
940          var i = new RegExp("\\{" + e + "\\}", "g");
941          y = y.replace(i, t);
942        }),
943        y
944      );
945    },
946    _minDigits: function (e, t, i) {
947      return (
948        (t = "" + t),
949        t.length >= i
950          ? this._translateDigits(e, t)
951          : ((t = "0000000000" + t), this._translateDigits(e, t.substr(t.length - i)))
952      );
953    },
954    _translateDigits: function (e, t) {
955      return ("" + t).replace(/[0-9]/g, function (t) {
956        return e.options.digits[t];
957      });
958    },
959    _determineShow: function (e) {
960      var t = e.options.format,
961        _ = [];
962      return (
963        (_[i] = t.match("y") ? "?" : t.match("Y") ? "!" : null),
964        (_[s] = t.match("o") ? "?" : t.match("O") ? "!" : null),
965        (_[n] = t.match("w") ? "?" : t.match("W") ? "!" : null),
966        (_[o] = t.match("d") ? "?" : t.match("D") ? "!" : null),
967        (_[r] = t.match("h") ? "?" : t.match("H") ? "!" : null),
968        (_[a] = t.match("m") ? "?" : t.match("M") ? "!" : null),
969        (_[l] = t.match("s") ? "?" : t.match("S") ? "!" : null),
970        _
971      );
972    },
973    _calculatePeriods: function (e, t, _, p) {
974      (e._now = p), e._now.setMilliseconds(0);
975      var c = new Date(e._now.getTime());
976      e._since
977        ? p.getTime() < e._since.getTime()
978          ? (e._now = p = c)
979          : (p = e._since)
980        : (c.setTime(e._until.getTime()), p.getTime() > e._until.getTime() && (e._now = p = c));
981      var u = [0, 0, 0, 0, 0, 0, 0];
982      if (t[i] || t[s]) {
983        var d = this._getDaysInMonth(p.getFullYear(), p.getMonth()),
984          h = this._getDaysInMonth(c.getFullYear(), c.getMonth()),
985          m = c.getDate() == p.getDate() || (c.getDate() >= Math.min(d, h) && p.getDate() >= Math.min(d, h)),
986          g = function (e) {
987            return 60 * (60 * e.getHours() + e.getMinutes()) + e.getSeconds();
988          },
989          f = Math.max(
990            0,
991            12 * (c.getFullYear() - p.getFullYear()) +
992              c.getMonth() -
993              p.getMonth() +
994              ((c.getDate() < p.getDate() && !m) || (m && g(c) < g(p)) ? -1 : 0)
995          );
996        (u[i] = t[i] ? Math.floor(f / 12) : 0), (u[s] = t[s] ? f - 12 * u[i] : 0), (p = new Date(p.getTime()));
997        var w = p.getDate() == d,
998          y = this._getDaysInMonth(p.getFullYear() + u[i], p.getMonth() + u[s]);
999        p.getDate() > y && p.setDate(y),
1000          p.setFullYear(p.getFullYear() + u[i]),
1001          p.setMonth(p.getMonth() + u[s]),
1002          w && p.setDate(y);
1003      }
1004      var v = Math.floor((c.getTime() - p.getTime()) / 1e3),
1005        D = function (e, i) {
1006          (u[e] = t[e] ? Math.floor(v / i) : 0), (v -= u[e] * i);
1007        };
1008      if ((D(n, 604800), D(o, 86400), D(r, 3600), D(a, 60), D(l, 1), v > 0 && !e._since))
1009        for (var T = [1, 12, 4.3482, 7, 24, 60, 60], M = l, S = 1, b = l; b >= i; b--)
1010          t[b] && (u[M] >= S && ((u[M] = 0), (v = 1)), v > 0 && (u[b]++, (v = 0), (M = b), (S = 1))), (S *= T[b]);
1011      if (_) for (var b = i; l >= b; b++) _ && u[b] ? _-- : _ || (u[b] = 0);
1012      return u;
1013    },
1014  });
1015})(jQuery);
1016
1017/* End */
1018;
1019; /* Start:"a:4:{s:4:"full";s:76:"/local/templates/aspro-allcorp3/js/jquery.countdown-ru.min.js?17780775671487";s:6:"source";s:57:"/local/templates/aspro-allcorp3/js/jquery.countdown-ru.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
1020!function(O){O.countdown.regionalOptions.ru={labels:[BX.message("COUNTDOWN_YEAR0"),BX.message("COUNTDOWN_MONTH0"),BX.message("COUNTDOWN_WEAK0"),BX.message("COUNTDOWN_DAY0"),BX.message("COUNTDOWN_HOUR"),BX.message("COUNTDOWN_MIN"),BX.message("COUNTDOWN_SEC")],labels1:[BX.message("COUNTDOWN_YEAR1"),BX.message("COUNTDOWN_MONTH1"),BX.message("COUNTDOWN_WEAK1"),BX.message("COUNTDOWN_DAY1"),BX.message("COUNTDOWN_HOUR"),BX.message("COUNTDOWN_MIN"),BX.message("COUNTDOWN_SEC")],labels2:[BX.message("COUNTDOWN_YEAR2"),BX.message("COUNTDOWN_MONTH2"),BX.message("COUNTDOWN_WEAK2"),BX.message("COUNTDOWN_DAY2"),BX.message("COUNTDOWN_HOUR"),BX.message("COUNTDOWN_MIN"),BX.message("COUNTDOWN_SEC")],compactLabels:[BX.message("COUNTDOWN_COMPACT_YEAR0"),BX.message("COUNTDOWN_COMPACT_MONTH"),BX.message("COUNTDOWN_COMPACT_WEAK"),BX.message("COUNTDOWN_COMPACT_DAY"),BX.message("COUNTDOWN_COMPACT_HOUR"),BX.message("COUNTDOWN_COMPACT_MIN"),BX.message("COUNTDOWN_COMPACT_SEC")],compactLabels1:[BX.message("COUNTDOWN_COMPACT_YEAR1"),BX.message("COUNTDOWN_COMPACT_MONTH"),BX.message("COUNTDOWN_COMPACT_WEAK"),BX.message("COUNTDOWN_COMPACT_DAY"),BX.message("COUNTDOWN_COMPACT_HOUR"),BX.message("COUNTDOWN_COMPACT_MIN"),BX.message("COUNTDOWN_COMPACT_SEC")],whichLabels:function(O){var e=O%10,s=Math.floor(O%100/10);return 1==O?1:2<=e&&e<=4&&1!=s?2:1==e&&1!=s?1:0},digits:["0","1","2","3","4","5","6","7","8","9"],timeSeparator:":",isRTL:!1},O.countdown.setDefaults(O.countdown.regionalOptions.ru)}(jQuery);
1021/* End */
1022;
1023; /* Start:"a:4:{s:4:"full";s:68:"/local/templates/aspro-allcorp3/js/scrollTabs.min.js?177807756710482";s:6:"source";s:48:"/local/templates/aspro-allcorp3/js/scrollTabs.js";s:3:"min";s:52:"/local/templates/aspro-allcorp3/js/scrollTabs.min.js";s:3:"map";s:56:"/local/templates/aspro-allcorp3/js/scrollTabs.min.js.map";}"*/
1024InitTabsScroll=function(){$(".arrow_scroll:not(.arrow_scroll_init)").scrollTab()},ResizeScrollTabs=function(){var scrollTabs=$(".arrow_scroll_init");scrollTabs.length&&scrollTabs.each((function(i,scrollTab){var _scrollTab;$(scrollTab).data("scrollTabOptions").resize()}))},$(document).ready((function(){InitTabsScroll()})),$(window).on("resize",(function(){void 0!==window.scrollTabsTimeout&&clearTimeout(window.scrollTabsTimeout),window.scrollTabsTimeout=setTimeout(ResizeScrollTabs,20)})),$.fn.scrollTab=function(options){function _scrollTab(element,options){var _scrollTab=$(element),tabs_wrapper=_scrollTab.find(options.tabs_wrapper);if(void 0===tabs_wrapper||!tabs_wrapper.length)return!1;var tabs=tabs_wrapper.find(options.tab_item);if(!tabs.length)return!1;var arrow_svg='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><rect width="12" height="8" fill="#333" fill-opacity="0" /><path d="M1015.69,507.693a0.986,0.986,0,0,1-1.4,0l-4.31-4.316-4.3,4.316a0.993,0.993,0,0,1-1.4-1.408l4.99-5.009a1.026,1.026,0,0,1,1.43,0l4.99,5.009A0.993,0.993,0,0,1,1015.69,507.693Z" fill="#333" transform="translate(-1004 -501)"/></svg>
1024',arrows_wrapper,arrows=$('<div class="arrows_wrapper"><div class="arrow arrow_left colored_theme_hover_text fill-dark-light-block">'+arrow_svg+'</div><div class="arrow arrow_right colored_theme_hover_text fill-dark-light-block">'+arrow_svg+"</div></div>").insertAfter(tabs_wrapper),arrow_left=arrows.find(".arrow_left"),arrow_right=arrows.find(".arrow_right"),thisOoptions=$.extend({},options);thisOoptions.outer_wrapper&&(thisOoptions.outer_wrapper_node=$(thisOoptions.outer_wrapper)),thisOoptions.scrollTab=_scrollTab,thisOoptions.wrapper=tabs_wrapper,thisOoptions.tabs=tabs,thisOoptions.arrows={},thisOoptions.arrows.wrapper=arrows,thisOoptions.arrows.arrow_left=arrow_left,thisOoptions.arrows.arrow_right=arrow_right,void 0!==thisOoptions.linked_tabs&&thisOoptions.linked_tabs.length&&void 0!==thisOoptions.linked_tabs.data("scrollTabOptions")&&(thisOoptions.linked_options=thisOoptions.linked_tabs.data("scrollTabOptions"),thisOoptions.linked_options.linked_options=thisOoptions),options.arrows_css&&(thisOoptions.arrows.arrow_left.css(options.arrows_css),thisOoptions.arrows.arrow_right.css(options.arrows_css)),thisOoptions.initTabs=function(){thisOoptions.wrapperBounds=thisOoptions.wrapper[0].getBoundingClientRect(),thisOoptions.scrollBounds=thisOoptions.scrollTab[0].getBoundingClientRect(),elements=$(thisOoptions.tabs),elements.length&&(thisOoptions.firstTabBound=elements[0].getBoundingClientRect().left,thisOoptions.lastTabBound=elements[elements.length-1].getBoundingClientRect().right),thisOoptions.minTranslate=thisOoptions.wrapperBounds.right<thisOoptions.lastTabBound?thisOoptions.wrapperBounds.right-thisOoptions.lastTabBound-3:0,thisOoptions.disabled=thisOoptions.lastTabBound-thisOoptions.wrapperBounds.left<=thisOoptions.scrollBounds.width},thisOoptions.wrapper.css({"white-space":"nowrap","min-width":"auto",overflow:"visible","z-index":"1"}),thisOoptions.scrollTab.css({overflow:"hidden",position:"relative"}),thisOoptions.checkArrows=function(translate){void 0===translate&&(translate=thisOoptions.translate),thisOoptions.disabled?(thisOoptions.arrows.arrow_left.addClass("disabled"),thisOoptions.arrows.arrow_right.addClass("disabled")):translate>=thisOoptions.maxTranslate?(thisOoptions.arrows.arrow_left.addClass("disabled"),thisOoptions.arrows.arrow_right.removeClass("disabled")):translate<=thisOoptions.minTranslate?(thisOoptions.arrows.arrow_right.addClass("disabled"),thisOoptions.arrows.arrow_left.removeClass("disabled")):(thisOoptions.arrows.arrow_left.removeClass("disabled"),thisOoptions.arrows.arrow_right.removeClass("disabled"))},thisOoptions.directScroll=function(distance,delay,step){void 0===delay&&(delay=5),clearInterval(thisOoptions.timerMoveDirect);var newTranslate=thisOoptions.translate+distance;newTranslate>thisOoptions.maxTranslate?newTranslate=thisOoptions.maxTranslate:newTranslate<thisOoptions.minTranslate&&(newTranslate=thisOoptions.minTranslate);var tmpTranslate=thisOoptions.translate;thisOoptions.translate=newTranslate,0==delay?(thisOoptions.touch?thisOoptions.translate=newTranslate:thisOoptions.translate=distance,thisOoptions.wrapper.css({transform:"translateX("+thisOoptions.translate+"px)"})):(void 0===step&&(step=1),thisOoptions.timerMoveDirect=setInterval((function(){thisOoptions.wrapper.css({transform:"translateX("+tmpTranslate+"px)"}),(distance<0&&tmpTranslate<=newTranslate||distance>0&&tmpTranslate>=newTranslate)&&(thisOoptions.initTabs(),clearInterval(thisOoptions.timerMoveDirect)),tmpTranslate<newTranslate?tmpTranslate+=step:tmpTranslate-=step}),delay)),thisOoptions.checkArrows(newTranslate)},thisOoptions.addArrowsEvents=function(){thisOoptions.arrows.arrow_right.on("mouseenter",(function(){thisOoptions.arrows.arrow_left.removeClass("disabled"),thisOoptions.timerMoveLeft=setInterval((function(){thisOoptions.translate<thisOoptions.minTranslate?(clearInterval(thisOoptions.timerMoveLeft),thisOoptions.arrows.arrow_right.addClass("disabled")):(thisOoptions.translate-=thisOoptions.translateSpeed,thisOoptions.wrapper.css({transform:"translateX("+thisOoptions.translate+"px)"}))}),10)})),thisOoptions.arrows.arrow_right.on("mouseleave",(function(){clearInterval(thisOoptions.timerMoveLeft)})),thisOoptions.arrows.arrow_right.on("click",(function(){thisOoptions.directScroll(-thisOoptions.directTranslate),thisOoptions.arrows.arrow_left.removeClass("disabled")})),thisOoptions.arrows.arrow_right.on("touchend",(function(){setTimeout((function(){clearInterval(thisOoptions.timerMoveLeft)}),1)})),thisOoptions.arrows.arrow_left.on("mouseenter",(function(){thisOoptions.arrows.arrow_right.removeClass("disabled"),thisOoptions.timerMoveRight=setInterval((function(){thisOoptions.translate>=thisOoptions.maxTranslate?(clearInterval(thisOoptions.timerMoveRight),thisOoptions.arrows.arrow_left.addClass("disabled")):(thisOoptions.translate+=thisOoptions.translateSpeed,thisOoptions.wrapper.css({transform:"translateX("+thisOoptions.translate+"px)"}))}),10)})),thisOoptions.arrows.arrow_left.on("mouseleave",(function(){clearInterval(thisOoptions.timerMoveRight)})),thisOoptions.arrows.arrow_left.on("click",(function(){thisOoptions.directScroll(thisOoptions.directTranslate),thisOoptions.arrows.arrow_right.removeClass("disabled")})),thisOoptions.arrows.arrow_left.on("touchend",(function(){setTimeout((function(){clearInterval(thisOoptions.timerMoveRight)}),1)}))},thisOoptions.addTabsEvents=function(){thisOoptions.tabs.on("click",(function(){var leftScrollBound=thisOoptions.scrollBounds.left,rightScrollBound=thisOoptions.scrollBounds.right,tabBounds=this.getBoundingClientRect(),leftTabScrollBound=tabBounds.left-thisOoptions.arrows.arrow_width,rightTabScrollBound=tabBounds.right+thisOoptions.arrows.arrow_width;if(leftTabScrollBound<leftScrollBound?thisOoptions.directScroll(leftScrollBound-leftTabScrollBound,1,2):rightTabScrollBound>rightScrollBound&&thisOoptions.directScroll(rightScrollBound-rightTabScrollBound,1,2),thisOoptions.activeTab=$(this),void 0!==thisOoptions.linked_options){var this_index=$(this).index(),linked_tab=$(thisOoptions.linked_options.tabs[this_index]),linked_tabs={leftScrollBound:thisOoptions.linked_options.scrollBounds.left,rightScrollBound:thisOoptions.linked_options.scrollBounds.right,tabBounds:linked_tab[0].getBoundingClientRect()};linked_tabs.tabBounds.left<linked_tabs.leftScrollBound?thisOoptions.linked_options.directScroll(linked_tabs.leftScrollBound-linked_tabs.tabBounds.left+thisOoptions.linked_options.arrows.arrow_width+1,0):linked_tabs.tabBounds.right>linked_tabs.rightScrollBound&&thisOoptions.linked_options.directScroll(linked_tabs.rightScrollBound-linked_tabs.tabBounds.right-thisOoptions.linked_options.arrows.arrow_width-1,0),thisOoptions.linked_options.activeTab=linked_tab}}))},thisOoptions.addWrapperEvents=function(){thisOoptions.wrapper.on("touchstart",(function(event){thisOoptions.touch.posPrev=event.originalEvent.changedTouches[0].pageX,clearInterval(thisOoptions.timerMoveRight),clearInterval(thisOoptions.timerMoveLeft),clearInterval(thisOoptions.timerMoveDirect)})),thisOoptions.wrapper.on("touchmove",(function(event){thisOoptions.touch.posCurrent=event.originalEvent.changedTouches[0].pageX-thisOoptions.touch.posPrev,thisOoptions.directScroll(thisOoptions.touch.posCurrent,0),thisOoptions.touch.posPrev=event.originalEvent.changedTouches[0].pageX}))},thisOoptions.resize=function(){if(thisOoptions.onBeforeResize&&"function"==typeof thisOoptions.onBeforeResize&&thisOoptions.onBeforeResize(thisOoptions),thisOoptions.onResize&&"function"==typeof thisOoptions.onResize&&thisOoptions.onResize(thisOoptions),thisOoptions.translate<thisOoptions.minTranslate?thisOoptions.directScroll(thisOoptions.minTranslate-thisOoptions.translate):thisOoptions.translate>thisOoptions.maxTranslate&&thisOoptions.directScroll(thisOoptions.maxTranslate-thisOoptions.translate),void 0!==thisOoptions.activeTab&&thisOoptions.activeTab.length){var activeTabBounds=thisOoptions.activeTab[0].getBoundingClientRect();activeTabBounds.left<thisOoptions.scrollBounds.left?thisOoptions.directScroll(thisOoptions.scrollBounds.left-activeTabBounds.left):activeTabBounds.right>thisOoptions.scrollBounds.right&&thisOoptions.directScroll(thisOoptions.scrollBounds.right-activeTabBounds.right)}thisOoptions.initTabs(),thisOoptions.checkArrows(),thisOoptions.onAfterResize&&"function"==typeof thisOoptions.onAfterResize&&thisOoptions.onAfterResize(thisOoptions)},_scrollTab.data("scrollTabOptions",thisOoptions),_scrollTab.data("scrollTabOptions").addArrowsEvents(),_scrollTab.data("scrollTabOptions").addTabsEvents(),_scrollTab.data("scrollTabOptions").addWrapperEvents(),_scrollTab.addClass("arrow_scroll_init").addClass("swipeignore"),void 0!==arrow_right&&arrow_right.length&&(thisOoptions.arrows.arrow_width=thisOoptions.arrows.arrow_right[0].getBoundingClientRect().width),_scrollTab.data("scrollTabOptions").resize(),delete thisOoptions;var eventdata={action:"initScrollTab",tab:_scrollTab};BX.onCustomEvent("onScrollTabInit",[eventdata])}var options=$.extend({translate:1,translateSpeed:2,directTranslate:150,maxTranslate:0,touch:{},arrows_css:!1,tabs_wrapper:".nav-tabs",tab_item:"> li",onResize:!1,outer_wrapper:"",width_grow:9},options),el=$(this);if(el.hasClass("arrow_scroll_init"))return!1;el.each((function(i,scrollTab){_scrollTab(scrollTab,options)}))};
1025/* End */
1026;
1027; /* Start:"a:4:{s:4:"full";
1027s:72:"/local/templates/aspro-allcorp3/js/blocks/controls.min.js?17780775674806";s:6:"source";s:53:"/local/templates/aspro-allcorp3/js/blocks/controls.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
1028function optBuyBasketAction(e,t){const o={type:"multiple",ajaxPost:"Y",action:"buy",items:[]};e&&(o.items=e);var a=void 0!==arAsproOptions.THEME.ORDER_BASKET_VIEW&&"HEADER"===$.trim(arAsproOptions.THEME.ORDER_BASKET_VIEW)&&$(".basket.top").length,s=void 0!==arAsproOptions.THEME.ORDER_BASKET_VIEW&&!a&&$(".basket.fly").length;o.items.length&&$.ajax({url:arAsproOptions.SITE_DIR+"include/footer/basket.php",type:"POST",data:o}).done((function(e){a?$(".ajax_basket").replaceWith(e):s&&$(".ajax_basket").html($($.trim(e)).html()),"undefined"==typeof JNoticeSurface?a?($(".header-cart").addClass("opened"),"undefined"!=typeof headerCartHideTimer&&clearTimeout(headerCartHideTimer),headerCartHideTimer=setTimeout((function(){$(".header-cart").removeClass("opened")}),2e3)):s&&setTimeout((function(){$(".ajax_basket").hasClass("opened")||$(".ajax_basket").addClass("opened")}),50):JNoticeSurface.get().onAdd2cart(t);BX.onCustomEvent("onCompleteAction",[{action:"loadBasket"},$(e)]),setBasketItemsClasses()}))}$(document).ready((function(){$(document).on("click",".dropdown-select .dropdown-select__title",(function(){var e=$
1028(this),t=e.parent().find("> .dropdown-select__list");e.hasClass("clicked")||(e.addClass("clicked"),e.toggleClass("opened"),t.stop().slideToggle(100,(function(){e.removeClass("clicked")})))})),$(document).on("click",".dropdown-select__list .mixitup-item",(function(){var e=$(this).closest(".dropdown-select");e.find(".dropdown-select__list-link").removeClass("dropdown-select__list-link--current"),$(this).find(".dropdown-select__list-link").addClass("dropdown-select__list-link--current"),e.find(".dropdown-select__title span").text($(this).text()),e.find(".dropdown-select__title.opened").click();const t={type:"change",payload:{item:$(this)}};BX.onCustomEvent("onChangeOptionSelect",[t])})),$("html, body").on("mousedown",(function(e){"string"==typeof e.target.className&&e.target.className.indexOf("adm")<0&&(e.stopPropagation(),$(".dropdown-select .dropdown-select__title.opened").each((function(){var t=$(this).closest(".dropdown-select");$(e.target).closest(t).length||$(this).click()})))})),$(document).on("click",".hint__icon",(function(e){e.stopImmediatePropagation();var t=$(this).closest(".hint");t.hasClass("active")?t.removeClass("active").find(".tooltip").slideUp(200):(t.addClass("active"),t.find(".tooltip").slideDown(200),t.find(".tooltip_close").click((function(e){e.stopPropagation(),e.stopImmediatePropagation(),t.removeClass("active").find(".tooltip").slideUp(100)}))),e.stopPropagation()}));const e=document.querySelector(".mixitup-container");if(e){var t=mixitup(e,{selectors:{target:'[data-ref="mixitup-target"]'},animation:{effects:""},load:{filter:"none"},animation:{duration:350},controls:{scope:"local"},callbacks:{onMixStart:function(e){},onMixClick:function(e,t){let o=t.target.children.length?t.target:t.target.parentElement;$(o).siblings().removeClass("color-theme head-block__item--active active"),$(o).addClass("color-theme head-block__item--active active")},onMixEnd:function(){}}});e.classList.add("mixitup-ready"),t.show().then((function(){t.configure({animation:{effects:"fade scale"}})}))}$(".form-group:not(.eye-password-ignore) [type=password]").each((function(e){let t=$(this).closest(".form-group"),o=t.find(".label_block");o.length?o.addClass("eye-password"):t.addClass("eye-password")})),$(document).on("click",".eye-password:not(.eye-password-ignore)",(function(e){let t=this.querySelector("input");this.clientWidth-56<e.offsetX&&("password"==t.type?(t.type="text",this.classList.add("password-show")):"text"==t.type&&(t.type="password",this.classList.remove("password-show")),e.stopPropagation())})),$(document).on("click",".refresh",(function(e){var t=$(this).parents(".captcha-row");e.preventDefault(),$.ajax({url:arAsproOptions.SITE_DIR+"ajax/captcha.php"}).done((function(e){t.find("input[name=captcha_sid],input[name=captcha_code]").val(e),t.find("img").attr("src","/bitrix/tools/captcha.php?captcha_sid="+e),t.find("input[name=captcha_word]").val("").removeClass("error"),t.find(".captcha_input").removeClass("error").find(".error").remove()}))}))})),$(document).on("click",".gallery-view_switch__icons:not(.active)",(function(){var e=$
1028(this),t=200,o=e.hasClass("gallery-view_switch__icons--small"),a=e.closest(".gallery-view_switch"),s=(e.closest(".big_gallery").length?e.closest(".big_gallery"):e.closest(".gallery")).find(".gallery-big"),i=a.find(".gallery-view_switch__count-wrapper--big"),n=(e.closest(".big_gallery").length?e.closest(".big_gallery"):e.closest(".gallery")).find(".gallery-small"),l=a.find(".gallery-view_switch__count-wrapper--small"),c=o?s:n,r=o?i:l,d=o?n:s,p=o?l:i;e.addClass("active"),e.siblings(".active").removeClass("active"),r.fadeOut(t,(function(){p.fadeIn(t)})),c.fadeOut(t,(function(){d.fadeIn(t)}))}));
1029/* End */
1030;
1031; /* Start:"a:4:{s:4:"full";s:74:"/local/templates/aspro-allcorp3/js/blocks/hover-block.min.js?1778077567715";s:6:"source";s:56:"/local/templates/aspro-allcorp3/js/blocks/hover-block.js";s:3:"min";s:60:"/local/templates/aspro-allcorp3/js/blocks/hover-block.min.js";s:3:"map";s:64:"/local/templates/aspro-allcorp3/js/blocks/hover-block.min.js.map";}"*/
1032$(document).on("mouseenter",".hover-block .hover-block__item",(function(){var $this=$(this),$menu=$this.find(".hover-block__item-wrapper"),delay=$this.data("delay"),speed=$this.data("speed");$menu.data("timer")&&(clearTimeout($menu.data("timer")),$menu.data("timer",!1)),$menu.data("timer",setTimeout((function(){$menu.stop(),$menu.fadeIn(speed&&speed.show?speed.show:300)}),delay&&delay.show?delay.show:100)),$this.one("mouseleave",(function(){$menu.data("timer")&&(clearTimeout($menu.data("timer")),$menu.data("timer",!1)),$menu.data("timer",setTimeout((function(){$menu.stop(),$menu.fadeOut(speed&&speed.hide?speed.hide:100)}),delay&&delay.hide?delay.hide:300))}))}));
1033/* End */
1034;
1035; /* Start:"a:4:{s:4:"full";s:70:"/local/templates/aspro-allcorp3/js/blocks/mobile.min.js?17780775675334";s:6:"source";s:51:"/local/templates/aspro-allcorp3/js/blocks/mobile.js";s:3:"min";s:55:"/local/templates/aspro-allcorp3/js/blocks/mobile.min.js";s:3:"map";s:59:"/local/templates/aspro-allcorp3/js/blocks/mobile.min.js.map";}"*/
1036$(document).ready((function(){var $mobilefilter=$("#mobilefilter"),$mobiledMenu=$("#mobilemenu");if($mobilefilter.length){$mobilefilter.isOpen=$mobiledMenu.hasClass("show"),$mobilefilter.isAppendLeft=!1,$mobilefilter.isWrapFilter=!1,$mobilefilter.isHorizontalOrCompact=$(".filter_horizontal").length||$(".bx_filter_vertical.compact").length,$mobilefilter.close='<i class="svg svg-close close-icons"></i>',$(document).on("click",".bx-filter-title",(function(){OpenMobileFilter()})),$(document).on("click","#mobilefilter .svg-close.close-icons",(function(){CloseMobileFilter()})),$(document).on("click",".bx_filter_select_block",(function(e){var bx_filter_select_container=$(e.target).parents(".bx_filter_select_container");if(bx_filter_select_container.length){var prop_id=bx_filter_select_container.closest(".bx_filter_parameters_box").attr("data-property_id");$("#smartFilterDropDown"+prop_id).length&&$("#smartFilterDropDown"+prop_id).css({"max-width":bx_filter_select_container.width(),"z-index":"3020"})}})),$(document).on("mouseup",".bx_filter_section",(function(e){$(e.target).hasClass("bx_filter_search_button")&&CloseMobileFilter()})),$(document).on("mouseup",".bx_filter_parameters_box_title",(function(e){$("[id^='smartFilterDropDown']").hide(),$(e.target).hasClass("close-icons")&&CloseMobileFilter()})),$mobilefilter.parent().append('<div id="mobilefilter-overlay"></div>');var $mobilefilterOverlay=$("#mobilefilter-overlay");$mobilefilterOverlay.click((function(){$mobilefilter.isOpen&&CloseMobileFilter()})),mobileFilterNum=function(num,def){if(def)$(".bx_filter_search_button").text(num.data("f"));else{var str="",$prosLeng=$(".bx_filter_parameters_box > span");str+=$prosLeng.data("f")+" "+num+" "+declOfNumFilter(num,[$prosLeng.data("fi"),$prosLeng.data("fr"),$prosLeng.data("frm")]),$(".bx_filter_search_button").text(str)}},declOfNumFilter=function(number,titles){return cases=[2,0,1,1,1,2],titles[number%100>4&&number%100<20?2:cases[number%10<5?number%10:5]]},OpenMobileFilter=function(){if(!$mobilefilter.isOpen){if($("body").addClass("jqm-initied wf"),$(".bx_filter_vertical .slide-block__head.filter_title").removeClass("closed"),$(".bx_filter_vertical .slide-block__head.filter_title + .slide-block__body").show(),!$mobilefilter.isAppendLeft){$mobilefilter.isWrapFilter||($(".bx_filter").wrap("<div id='wrapInlineFilter'></div>"),$mobilefilter.isWrapFilter=!0),$(".bx_filter").appendTo($("#mobilefilter"));var helper=$("#filter-helper");helper.length&&helper.prependTo($("#mobilefilter .bx_filter_parameters")),$mobilefilter.isAppendLeft=!0}var init;"function"==typeof checkFilterLandgings&&checkFilterLandgings(),$("#mobilefilter .bx_filter_parameters").addClass("mobile-scroll scrollbar"),$("#mobilefilter .slide-block .filter_title").addClass("ignore"),$("#mobilefilter .bx_filter_parameters .bx_filter_parameters_box_title").addClass("colored_theme_hover_bg-block"),$(".bx_filter_button_box.ajax-btns").addClass("colored_theme_bg"),$(".bx_filter_button_box.ajax-btns .filter-bnt-wrapper").removeClass("hidden"),setTimeout((function(){$mobilefilterOverlay.fadeIn("fast")}),100),$("body").css({overflow:"hidden",height:"100vh"}),$mobilefilter.addClass("show"),$mobilefilter.find(".bx_filter").css({display:"block"}),$mobilefilter.isOpen=!0,$("#mobilefilter .bx_filter_button_box.btns.ajax-btns").removeClass("hidden"),void 0===$mobilefilter.data("init")&&($mobilefilter.scroll((function(){$(".bx_filter_section .bx_filter_select_container").each((function(){var prop_id=$(this).closest(".bx_filter_parameters_box").attr("data-property_id");$("#smartFilterDropDown"+prop_id).length&&$("#smartFilterDropDown"+prop_id).hide()}))})),$mobilefilter.data("init","Y"))}},CloseMobileFilter=function(append){if($mobilefilter.find(".bx_filter_parameters").removeClass("scrollbar"),$("body").removeClass("jqm-initied wf"),$("#mobilefilter .bx_filter_parameters .bx_filter_parameters_box_title").removeClass("colored_theme_hover_bg-block"),$(".slide-block .filter_title").removeClass("ignore"),$(".bx_filter_button_box.ajax-btns").removeClass("colored_theme_bg"),$(".bx_filter:not(.n-ajax) .bx_filter_button_box.ajax-btns .filter-bnt-wrapper").addClass("hidden"),$mobilefilter.isOpen&&($mobilefilter.find(".bx_filter_parameters").scrollTop(0),$("body").css({overflow:"",height:""}),setTimeout((function(){$mobilefilterOverlay.fadeOut("fast")}),100),$mobilefilter.removeClass("show"),$mobilefilter.isOpen=!1),append&&$mobilefilter.isAppendLeft){$(".bx_filter").appendTo($("#wrapInlineFilter")).show();var helper=$("#filter-helper");helper.length&&helper.appendTo($("#filter-helper-wrapper")),$mobilefilter.isAppendLeft=!1,$mobilefilter.removeData("init"),mobileFilterNum($("#modef_num_mobile"),!0)}},checkMobileFilter=function(){(!window.matchMedia("(max-width: 991px)").matches&&!$mobilefilter.isHorizontalOrCompact||!window.matchMedia("(max-width: 767px)").matches&&$mobilefilter.isHorizontalOrCompact)&&CloseMobileFilter(!0)}}else checkTopFilter(),$(document).on("click",".bx-filter-title",(function(){$(this).toggleClass("opened"),$(".visible_mobile_filter").length?($(".visible_mobile_filter").show(),$(".bx_filter_vertical, .bx_filter").slideToggle(333)):($(".bx_filter_vertical").closest("div[id^=bx_incl]").show(),$(".bx_filter_vertical, .bx_filter").slideToggle(333))}))}));
1037/* End */
1038;
1039; /* Start:"a:4:{s:4:"full";s:75:"/local/templates/aspro-allcorp3/js/blocks/selectOffer.min.js?17780775672069";s:6:"source";s:56:"/local/templates/aspro-allcorp3/js/blocks/selectOffer.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
1040"SelectOfferProp"in window||"function"==typeof window.SelectOfferProp||(SelectOfferProp=function(){var e=$
1040(this),s={},a={},t=parseUrlQuery(),o="",r=e.closest(".sku-props"),p=e.closest(".js-popup-block"),n=!e.closest(".catalog-items").length;s={PARAMS:n?$(".js-sku-config:first").data("value"):e.closest(".catalog-items").find(".js-sku-config").data("value"),BASKET_PARAMS:p.find(".js-config-btns").data("btn-config"),IMG_PARAMS:p.find(".js-config-img").data("img-config"),PRICE_PARAMS:p.find(".js-popup-price").data("price-config"),ID:r.data("item-id"),OFFER_ID:r.data("offer-id"),SITE_ID:r.data("site-id"),IBLOCK_ID:r.data("iblockid"),SKU_IBLOCK_ID:r.data("offer-iblockid"),DEPTH:e.closest(".sku-props__inner").index(),VALUE:e.data("onevalue"),SHOW_GALLERY:arAsproOptions.THEME.SHOW_CATALOG_GALLERY_IN_LIST,MAX_GALLERY_ITEMS:arAsproOptions.THEME.MAX_GALLERY_ITEMS,OID:arAsproOptions.THEME.CATALOG_OID,IS_DETAIL:n?"Y":"N"},"clear_cache"in t&&"Y"==t.clear_cache&&(o+="?clear_cache=Y");let c=r.hasClass("js-selected");for($(".sku-props").removeClass("js-selected"),r.addClass("js-selected"),e.closest(".sku-props__values").find(".sku-props__value").removeClass("sku-props__value--active"),e.addClass("sku-props__value--active"),e.closest(".sku-props__item").find(".sku-props__js-size").text(e.data("title")),i=0;i<s.DEPTH+1;i++)strName="PROP_"+r.find(".sku-props__inner:eq("+i+")").data("id"),a[strName]=r.find(".sku-props__inner:eq("+i+") .sku-props__value--active").data("onevalue"),s[strName]=r.find(".sku-props__inner:eq("+i+") .sku-props__value--active").data("onevalue");s.SELECTED=JSON.stringify(a),window.obOffers&&"array"===typeofExt(obOffers)&&c?(selectedValues=a,strPropValue=s.VALUE,depth=s.DEPTH,wrapper=p,arFilter={},tmpFilter=[],UpdateSKUInfoByProps()):$.ajax({url:arAsproOptions.SITE_DIR+"ajax/js_item_detail.php"+o,type:"POST",contentType:"application/json",data:JSON.stringify(s)}).done((function(e){var s=BX.processHTML(e);BX.ajax.processScripts(s.SCRIPT)}))},$(document).on("click",".sku-props__value:not(.sku-props__value--active)",SelectOfferProp));
1041/* End */
1042;
1043; /* Start:"a:4:{s:4:"full";s:76:"/local/templates/aspro-allcorp3/js/blocks/tabs-history.min.js?17780775671129";s:6:"source";s:57:"/local/templates/aspro-allcorp3/js/blocks/tabs-history.js";s:3:"min";s:61:"/local/templates/aspro-allcorp3/js/blocks/tabs-history.min.js";s:3:"map";s:65:"/local/templates/aspro-allcorp3/js/blocks/tabs-history.min.js.map";}"*/
1044var newHash=location.hash;"onhashchange"in window&&$(window).bind("hashchange",(function(){var newHash=location.hash;if(newHash&&("scrollRestoration"in history&&(history.scrollRestoration="manual"),$('.tabs.tabs-history .nav a[href="'+newHash+'"]').length)){$('.tabs.tabs-history .nav a[href="'+newHash+'"]').trigger("click");var $block=$(newHash);if($block.length){if($block.closest(".tab-pane").length){var offset=-206;"undefined"!=typeof arAsproOptions&&(offset=window.matchMedia("(max-width:991px)").matches?"Y"!==arAsproOptions.THEME.HEADER_MOBILE_FIXED||"ALWAYS"!==arAsproOptions.THEME.HEADER_MOBILE_SHOW?-125:-187:"Y"!==arAsproOptions.THEME.TOP_MENU_FIXED?-125:-206),$block.data("offset",offset)}scrollToBlock(newHash)}else if($(".ordered-block .tabs").length){var content_offset=$(".ordered-block .tabs").offset();$("html, body").animate({scrollTop:content_offset.top-90},400)}}})),$(document).on("click",".tabs.tabs-history a[data-toggle=tab]",(function(e){var $this=$(e.target);"undefined"!=typeof history&&$this.attr("href")&&history.pushState({},"",$this.attr("href"))}));
1045/* End */
1046;
1047; /* Start:"a:4:{s:4:"full";s:70:"/local/templates/aspro-allcorp3/js/video_banner.min.js?177807756716078";s:6:"source";s:50:"/local/templates/aspro-allcorp3/js/video_banner.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
1048var players={};function pauseMainBanner(){$(".banners-big .main-slider").data("swiper").autoplay.stop()}function playMainBanner(){$(".banners-big .main-slider").data("swiper").params.autoplay.enabled&&$(".banners-big .main-slider").data("swiper").autoplay.start()}function nextSlideMainBanner(){$(".banners-big .main-slider").data("swiper").slideNext()}function startMainBannerSlideVideo(e){var a=e.attr("data-slide_index"),i=e.closest(".main-slider").find('.main-slider__item[data-sli
1048de_index="'+a+'"]');if(e.attr("data-video_source")){i.addClass("loading"),pauseMainBanner();var t=e.closest(".main-slider"),n=t.data("slidesIndexesWithVideo");void 0===n&&(n=[]),n.push(a),t.data("slidesIndexesWithVideo",n);var r=e.attr("data-video_src"),d=1==e.attr("data-video_disable_sound"),l=1==e.attr("data-video_loop"),s=1==e.attr("data-video_autoplay"),o=1==e.attr("data-video_cover"),p=(e.attr("data-video_under_text"),e.attr("data-video_player")),y="YOUTUBE"===p,c="VIMEO"===p,u="RUTUBE"===p,v="HTML5"===p,m=!v&&e.attr("data-video_width"),f=!v&&e.attr("data-video_height");if(r&&!e.find(".video").length){var g=function(){for(var e=[],t=0;t<i.length;++t){var n=getRandomInt(100,1e3);e.push(n)}i.each((function(i,t){var n=$(t),g=e[i],w=n.attr("id")+" player_"+g+(o?" cover":"");n.find(".video."+w).length||(y||c?n.append('<div class="wrapper_video"><iframe id="player_'+g+'" class="video '+w+'" src="'+r+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen allow="accelerometer; encrypted-media; gyroscope; fullscreen;"'+(m&&f?' data-video_proportion="'+m/f+'"':"")+"></iframe></div>"):u?(r=r+"&playerid="+g,n.append('<div class="wrapper_video"><iframe id="player_'+g+'" class="video '+w+'" src="'+r+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen allow="encrypted-media; gyroscope; fullscreen;"'+(m&&f?' data-video_proportion="'+m/f+'"':"")+"></iframe></div>")):v&&n.append('<div class="wrapper_video"><video '+(s?"autoplay ":"")+'autobuffer playsinline webkit-playsinline id="player_'+g+'" class="video '+w+'"'+(l?" loop ":"")+(d?" muted ":"")+'><source src="'+r+'" type=\'video/mp4; codecs="avc1.42E01E, mp4a.40.2"\' /><p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video</p></iframe></div>')),void 0!==players&&players&&(players[g]={id:"player_"+g,mute:d,loop:l,cover:o,videoPlayer:p,slideIndex:a,playing:!1,clones:e,videoWidth:m,videoHeight:f,videoProportion:!(!m||!f)&&m/f,src:r},y?window[players[g].id]=new YT.Player(players[g].id,{events:{onReady:function(e){if(g){var a=players[g].mute,i=players[g].cover,t=$("#player_"+g).closest(".main-slider__item"),n=!$("#player_"+g).closest(".swiper-slide-active").length;if((a||n)&&window[players[g].id].mute(),i){if(!players[g].videoProportion){var r=e.target.getVideoEmbedCode();if(r.length){var d=r.match(/width="(\d*)"[^>]*height="(\d*)"/);if(null!==d){var l=d[1],s=d[2];players[g].videoWidth=l,players[g].videoHeight=s,players[g].videoProportion=l/s,t.find(".video").attr("data-video_proportion",players[g].videoProportion)}}}CoverPlayer()}n?setTimeout((function(){e.target.pauseVideo()}),100):(pauseMainBanner(),window[players[g].id].seekTo(0,!0)),t.addClass("started")}},onStateChange:function(e){if(g){var a=players[g].loop;$("#player_"+g).closest(".main-slider__item");if(!$("#player_"+g).closest(".swiper-slide-active").length)players[g].playing=!1,setSlideClasses(g,!1);else if(e.data===YT.PlayerState.PLAYING){players[g].playing=!0,setSlideClasses(g,!0),pauseMainBanner();var i=players[g].clones;for(var t in i)i[t]!=g&&players[i[t]].playing&&window[players[i[t]].id].pauseVideo()}else if(e.data===YT.PlayerState.PAUSED){players[g].playing=!1;var n=Math.floor(10*window[players[g].id].getCurrentTime())/10;setSlideClasses(g,!1),window[players[g].id].seekTo(n,!0);i=players[g].clones;for(var t in i)i[t]!=g&&(players[i[t]].playing&&window[players[i[t]].id].pauseVideo(),"getCurrentTime"in window[players[i[t]].id]&&window[players[i[t]].id].seekTo(n,!0));playMainBanner()}else e.data===YT.PlayerState.ENDED?(players[g].playing=!1,a?e.target.playVideo():playMainBanner()):e.data===YT.PlayerState.UNSTARTED&&(players[g].playing=!1,setSlideClasses(g,!1),e.target.playVideo())}}}}):c?(window[players[g].id]=new Vimeo.Player(document.getElementById(players[g].id),{autopause:!1,byline:!1,loop:!1,title:!1}),window[players[g].id].on("loaded",onVimeoPlayerReady),window[players[g].id].on("play",onVimeoPlayerStateChange),window[players[g].id].on("pause",onVimeoPlayerStateChange),window[players[g].id].on("ended",onVimeoPlayerStateChange)):u?document.getElementById(players[g].id).onload=function(e){var a=this.id.replace("player_","");players[a].contentWindow=this.contentWindow,onRutubePlayerReady(a)}:v&&(document.getElementById(players[g].id).addEventListener("loadeddata",onHtml5PlayerReady),document.getElementById(players[g].id).addEventListener("play",onHtml5PlayerStateChange),document.getElementById(players[g].id).addEventListener("pause",onHtml5PlayerStateChange),document.getElementById(players[g].id).addEventListener("ended",onHtml5PlayerStateChange)))}))};if(v)g();else{var w="",h="";if(void 0===window.YoutubePlayerScriptLoaded&&(window.YoutubePlayerScriptLoaded=!1),void 0===window.VimeoPlayerScriptLoaded&&(window.VimeoPlayerScriptLoaded=!1),void 0===window.RutubePlayerListnersAdded&&(window.RutubePlayerListnersAdded=!1),y){if(w="YT",h="Player",!window.YoutubePlayerScriptLoaded){(P=document.createElement("script")).src="https://www.youtube.com/iframe_api";var _=document.getElementsByTagName("script")[0];_.parentNode.insertBefore(P,_),window.YoutubePlayerScriptLoaded=!0}}else if(c){var P;if(w="Vimeo",!window.VimeoPlayerScriptLoaded)(P=document.createElement("script")).src="https://player.vimeo.com/api/player.js",(document.head||document.documentElement).appendChild(P),window.VimeoPlayerScriptLoaded=!0}else u&&(window.RutubePlayerListnersAdded||window.addEventListener("message",(function(e){if(-1!==e.origin.indexOf("rutube.ru")){var a=JSON.parse(e.data);if("object"==typeof a&&a&&void 0!==a.type&&a.type){var i=!1;for(var t in players)if(void 0!==players[t].contentWindow&&players[t].contentWindow==e.source){i=t;break}if(i)switch(a.type){case"player:changeState":onRutubePlayerStateChange(i,a.data.state);break;case"player:currentTime":onRutubePlayerCurrentTime(i,a.data.time);break}}}})));if(w.length)if("object"==typeof window[w])(!h.length||h.length&&"function"==typeof window[w][h])&&g();else var b=setInterval((function(){"object"==typeof window[w]&&(!h.length||h.length&&"function"==typeof window[w][h])&&(clearInterval(b),g())}),50);else g()}}else if(void 0!==players&&players)for(var S in players)"object"==typeof window[players[S].id]&&(players[S].playing?"YOUTUBE"===players[S].videoPlayer?window[players[S].id].pauseVideo():"VIMEO"===players[S].videoPlayer?window[players[S].id].pause():"RUTUBE"===players[S].videoPlayer?document.getElementById(players[S].id).contentWindow.postMessage(JSON.stringify({type:"player:pause",data:{}}),"*"):"HTML5"===players[S].videoPlayer&&document.getElementById(players[S].id).pause():players[S].slideIndex==a&&("YOUTUBE"===players[S].videoPlayer?"function"==typeof window[players[S].id].playVideo&&window[players[S].id].playVideo():"VIMEO"===players[S].videoPlayer?window[players[S].id].play():"RUTUBE"===players[S].videoPlayer?document.getElementById(players[S].id).contentWindow.postMessage(JSON.stringify({type:"player:play",data:{}}),"*"):"HTML5"===players[S].videoPlayer&&document.getElementById(players[S].id).play()))}}var CoverPlayer=function(){$(".banners-big .video.cover:visible").each((function(){var e=$
1048(this).closest(".wrapper_video"),a=e[0].getBoundingClientRect().height,i=e[0].getBoundingClientRect().width,t=$(this).attr("data-video_proportion");void 0===t&&(t=16/9);var n=i,r=i/t;r<a&&(n=a*t,r=a),$(this).width(n).height(r)}))};function onVimeoPlayerReady(e){var a=this.element.id.replace("player_","");if(a){var i=players[a].mute,t=players[a].cover,n=$("#player_"+a).closest(".main-slider__item"),r=$("#player_"+a).closest(".main-slider__item:not(.swiper-slide-active)").length;if((i||r)&&window[players[a].id].setVolume(0),t&&!players[a].videoProportion){var d=window[players[a].id].getVideoWidth(),l=window[players[a].id].getVideoHeight();d.then((function(e){var i=e;l.then((function(e){var t=e;players[a].videoWidth=i,players[a].videoHeight=t,players[a].videoProportion=i/t,n.find(".video").attr("data-video_proportion",players[a].videoProportion),CoverPlayer()}))}))}if(r)setTimeout((function(){window[players[a].id].pause()}),100);else{pauseMainBanner();var s=window[players[a].id].play();void 0!==s&&s.catch((function(){setTimeout((function(){window[players[a].id].setVolume(0),window[players[a].id].play()}),100)}))}n.addClass("started")}}function onVimeoPlayerStateChange(e){var a=this.element.id.replace("player_","");if(a){players[a].cover;var i=players[a].loop,t=players[a].slideIndex,n=$("#player_"+a).closest(".main-slider__item:not(.swiper-slide-active)").length;window[players[a].id].getPaused().then((function(e){e?(players[a].playing=!1,setSlideClasses(a,!1),window[players[a].id].getCurrentTime().then((function(e){var i=Math.floor(10*e)/10;window[players[a].id].setCurrentTime(i).then((function(e){for(var r in players)players[r].slideIndex==t&&(r!=a||n&&r==a)&&window[players[r].id]&&(window[players[r].id].pause(),window[players[r].id].setCurrentTime(i).then((function(e){})))}))}))):(setSlideClasses(a,!0),window[players[a].id].getEnded().then((function(e){e?(players[a].playing=!1,i?window[players[a].id].play():playMainBanner()):(players[a].playing=!0,pauseMainBanner())})))}))}}function onRutubePlayerReady(e){if(e){var a=players[e].mute,i=players[e].cover,t=document.getElementById(players[e].id),n=$("#player_"+e).closest(".main-slider__item"),r=$(t).closest(".main-slider__item:not(.swiper-slide-active)").length;(a||r)&&t.contentWindow.postMessage(JSON.stringify({type:"player:mute",data:{}}),"*"),i&&CoverPlayer(),r?setTimeout((function(){t.contentWindow.postMessage(JSON.stringify({type:"player:pause",data:{}}),"*")}),100):(pauseMainBanner(),t.contentWindow.postMessage(JSON.stringify({type:"player:play",data:{}}),"*")),n.addClass("started")}}function onRutubePlayerCurrentTime(e,a){e&&(players[e].time=a)}function onRutubePlayerStateChange(e,a){if(e){var i=players[e].loop,t=players[e].slideIndex,n=document.getElementById(players[e].id),r=$(n).closest(".main-slider__item:not(.swiper-slide-active)").length;if("playing"===a)setSlideClasses(e,!0),players[e].playing=!0,pauseMainBanner();else if("paused"===a){setSlideClasses(e,!1),players[e].playing=!1;var d=Math.floor(10*players[e].time)/10;for(var l in n.contentWindow.postMessage(JSON.stringify({type:"player:setCurrentTime",data:{time:d}}),"*"),players)players[l].slideIndex==t&&(l!=e||r&&l==e)&&document.getElementById(players[l].id)&&(document.getElementById(players[l].id).contentWindow.postMessage(JSON.stringify({type:"player:pause",data:{}}),"*"),document.getElementById(players[l].id).contentWindow.postMessage(JSON.stringify({type:"player:setCurrentTime",data:{time:d}}),"*"))}else"stopped"===a&&(setSlideClasses(e,!1),players[e].playing=!1,i?n.contentWindow.postMessage(JSON.stringify({type:"player:play",data:{}}),"*"):playMainBanner())}}function onHtml5PlayerReady(e){var a=e.target.id.replace("player_","");if(a){var i=players[a].mute,t=players[a].cover,n=$(e.target).closest(".main-slider__item:not(.swiper-slide-active)").length,r=$("#player_"+a).closest(".main-slider__item");if((i||n)&&$("#"+players[a].id).prop("muted",!0),t){if(!players[a].videoProportion){var d=r.find(".video")[0].videoWidth,l=r.find(".video")[0].videoHeight;players[a].videoWidth=d,players[a].videoHeight=l,players[a].videoProportion=d/l,r.find(".video").attr("data-video_proportion",players[a].videoProportion)}CoverPlayer()}if(n)e.target.pause();else{pauseMainBanner();var s=e.target.play();void 0!==s&&s.catch((function(){setTimeout((function(){$("#"+players[a].id).prop("muted",!0),e.target.play()}),100)}))}r.addClass("started")}}function onHtml5PlayerStateChange(e){var a=e.target.id.replace("player_","");if(a){players[a].cover;var i=$(e.target).closest(".main-slider__item:not(.swiper-slide-active)").length,t=players[a].loop,n=players[a].slideIndex;if(e.target.paused&&!e.target.ended){players[a].playing=!1,setSlideClasses(a,!1);var r=Math.floor(10*e.target.currentTime)/10;for(var d in e.target.currentTime=r,players)players[d].slideIndex==n&&(d!=a||i&&d==a)&&document.getElementById(players[d].id)&&(document.getElementById(players[d].id).pause(),document.getElementById(players[d].id).currentTime=r);pauseMainBanner(),playMainBanner()}else e.target.ended?(players[a].playing=!1,t?(setSlideClasses(a,!1),e.target.play()):(pauseMainBanner(),playMainBanner(),nextSlideMainBanner())):(players[a].playing=!0,setSlideClasses(a,!0),pauseMainBanner())}}function setSlideClasses(e,a){const i=document.querySelector(`#player_${e}`).closest(".main-slider__item"),t=i.querySelector(".banners-big__inner .btn-video"),n=t.querySelector("use"),r=`${arAsproOptions.SITE_TEMPLATE_PATH}/images/svg/video_buttons_sprite.svg`;a?(i.classList.add("loading"),t.classList.add("loading"),n.setAttribute("href",`${r}#video-pause-13-13`)):(i.classList.remove("loading"),t.classList.remove("loading"),n.setAttribute("href",`${r}#video-play-13-13`))}waitYTPlayer=function(e,a){"undefined"!=typeof YT&&YT&&YT.Player?"function"==typeof a&&a():setTimeout((function(){waitYTPlayer(e,a)}),e)},$(document).on("click","video.video",(function(e){var a=e.target.id.replace("player_","");a&&(players[a].playing?e.target.pause():e.target.play())})),$(document).on("click",".banners-big .btn-video",(function(e){e.stopPropagation(),startMainBannerSlideVideo($(this).closest(".main-slider__item"))})),$(document).on("click",".banners-big .banners-big__item",(function(e){var a=$(this),i=a.hasClass("vvideo"),t=a.hasClass("wurl");if(!$(e.target).hasClass("btn"))if(t){var n=a.find(".target").attr("href");if(n.length){var r=a.find(".target").attr("target");void 0===r||"_self"===r?location.href=n:window.open(n)}}else i&&(e.stopPropagation(),$(this).find(".btn-video").trigger("click"))})),getRandomInt=function(e,a){return Math.floor(Math.random()*(a-e))+e};var lastSlideIndex,ignoreResize=[];BX.addCustomEvent("onWindowResize",(function(e){try{CoverPlayer()}catch(e){}finally{ignoreResize.pop()}})),BX.addCustomEvent("onSlideEnd",(function(e){try{if(ignoreResize.push(!0),e)e.slider&&setTimeout((function(){$(".banners-big.front .btn-video, .banners-big.front .banners-big__item").removeClass("loading")}),300)}catch(e){}finally{ignoreResize.pop()}})),BX.addCustomEvent("onSlide",(function(e){try{if(ignoreResize.push(!0),e){var a=e.slider;if(a){let e="";if(a.data("swiper")){const i=a.data("swiper").realIndex;
1048e=a.find(`.main-slider__item[data-slide_index=${i}]`)}else e=a.find(".swiper-slide-active").length?a.find(".swiper-slide-active").first():a.find(".main-slider__item:not(.swiper-slide-duplicate)").eq(0);e.length||(e=a.find(".box.swiper-slide-active"));var i=e.attr("data-slide_index");if(lastSlideIndex===i)return;if(lastSlideIndex=i,void 0!==e&&e.length){var t=a.data("slidesIndexesWithVideo");if(void 0===t&&(t=[]),-1!=t.indexOf(i)?a.addClass("video_visible"):a.removeClass("video_visible"),setTimeout((function(){CoverPlayer()}),200),void 0!==players&&players)for(var n in players)players[n].slideIndex!=i&&"object"==typeof window[players[n].id]&&("YOUTUBE"===players[n].videoPlayer?window[players[n].id].pauseVideo():"VIMEO"===players[n].videoPlayer?window[players[n].id].pause():"RUTUBE"===players[n].videoPlayer?document.getElementById(players[n].id).contentWindow.postMessage(JSON.stringify({type:"player:pause",data:{}}),"*"):"HTML5"===players[n].videoPlayer&&document.getElementById(players[n].id).pause());1==e.attr("data-video_autoplay")&&startMainBannerSlideVideo(e)}if(e.find("video").length&&!e.find(".btn-video").length){var r=e.find("video").attr("id");document.getElementById(r).play()}}}}catch(e){}finally{ignoreResize.pop()}}));
1049/* End */
1050;
1051; /* Start:"a:4:{s:4:"full";s:69:"/local/templates/aspro-allcorp3/js/jquery.counterup.js?17780775671069";s:6:"source";s:54:"/local/templates/aspro-allcorp3/js/jquery.counterup.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
1052/*!
1053* jquery.counterup.js 1.0
1054*
1055* Copyright 2013, Benjamin Intal http://gambit.ph @bfintal
1056* Released under the GPL v2 License
1057*
1058* Date: Nov 26, 2013
1059*/
1060!function(t){"use strict";t.fn.counterUp=function(e){var n=t.extend({time:400,delay:10},e);return this.each(function(){var e=t(this),u=n,a=function(){var t=u.time/u.delay,n=e.attr("data-value"),a=[n],r=/[0-9]+,[0-9]+/.test(n);n=n.replace(/,/g,"");for(var o=(/^[0-9]+$/.test(n),/^[0-9]+\.[0-9]+$/.test(n)),c=o?(n.split(".")[1]||[]).length:0,d=t;d>=1;d--){var i=parseInt(n/t*d);if(o&&(i=parseFloat(n/t*d).toFixed(c)),r)for(;/(\d+)(\d{3})/.test(i.toString());)i=i.toString().replace(/(\d+)(\d{3})/,"$1,$2");a.unshift(i)}e.data("counterup-nums",a),e.text("0");var s=function(){e.text(e.data("counterup-nums").shift()),e.data("counterup-nums").length?setTimeout(e.data("counterup-func"),u.delay):(delete e.data("counterup-nums"),e.data("counterup-nums",null),e.data("counterup-func",null))};e.data("counterup-func",s),setTimeout(e.data("counterup-func"),u.delay)};e.waypoint(a,{offset:"100%",triggerOnce:!0})})}}(jQuery);
1061/* End */
1062;
1063; /* Start:"a:4:{s:4:"full";s:62:"/local/templates/aspro-allcorp3/js/general.js?1778077569194775";s:6:"source";s:45:"/local/templates/aspro-allcorp3/js/general.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
1064getRandomInt = function (min, max) {
1065  return Math.floor(Math.random() * (max - min)) + min;
1066};
1067
1068ShowOverlay = function () {
1069  $('<div class="jqmOverlay waiting"></div>').appendTo("body");
1070};
1071
1072function readyDOM(callback) {
1073  if (document.readyState !== "loading") callback();
1074  else document.addEventListener("DOMContentLoaded", callback);
1075}
1076
1077if (!$(this).next().hasClass("collapsing"))
1078window.addEventListener("popstate", function (event) {
1079  if (typeof startActions == "function") {
1080    setTimeout(startActions, 500);
1081  }
1082});
1083
1084function throttle(f, t) {
1085  let throttled, saveThis, saveArgs;
1086  const wrapper = function () {
1087    if (throttled) {
1088      saveThis = this;
1089      saveArgs = arguments;
1090      return;
1091    }
1092    throttled = true;
1093    f.apply(this, arguments);
1094    setTimeout(function () {
1095      throttled = false;
1096      if (saveArgs) {
1097        wrapper.apply(saveThis, saveArgs);
1098        saveThis = saveArgs = null;
1099      }
1100    }, t);
1101  };
1102  return wrapper;
1103}
1104
1105function debounce(f, t) {
1106  return function (args) {
1107    var previousCall = this.lastCall;
1108    this.lastCall = Date.now();
1109    if (previousCall && this.lastCall - previousCall <= t) {
1110      clearTimeout(this.lastCallTimer);
1111    }
1112    this.lastCallTimer = setTimeout(function () {
1113      f(args);
1114    }, t);
1115  };
1116}
1117
1118window.addEventListener("popstate", function (event) {
1119  if (typeof startActions == "function") {
1120    setTimeout(startActions, 500);
1121  }
1122});
1123
1124$(document).on("change", ".uploader input[type=file]", function () {
1125  if (!$(this).next().length || !$(this).next().hasClass("resetfile")) {
1126    $(
1127      '<span class="resetfile" title="' +
1128        BX.message("CLEAR_FILE") +
1129        '">
1129<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 1.00161L1 9M9 9L1 1" stroke="#999999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></span>'
1130    ).insertAfter($(this));
1131  }
1132});
1133
1134$(document).on("click", ".uploader .resetfile", function () {
1135  var $uploader = $(this).closest(".uploader");
1136  $uploader.removeClass("error files_add");
1137  $uploader.find(".error").hide();
1138
1139  var $input = $uploader.find("input[type=file]");
1140  $input.val("");
1141  $.uniform.update($input);
1142
1143  $(this).remove();
1144});
1145
1146$(document).on("click", ".region-close", function () {
1147  $(".confirm_region").fadeOut();
1148});
1149
1150headerInit = function (targetBlock) {
1151  var header = $("header");
1152  if (header.length) {
1153    setTimeout(function () {
1154      CheckTopMenuDotted();
1155      CheckTopMenuDotted();
1156    }, 1);
1157  }
1158};
1159
1160typeofExt = function (item) {
1161  const _toString = Object.prototype.toString;
1162  return _toString.call(item).slice(8, -1).toLowerCase();
1163};
1164
1165HideOverlay = function () {
1166  $(".jqmOverlay").detach();
1167  CloseMobilePhone();
1168};
1169
1170if (!funcDefined("pauseYmObserver")) {
1171  // pause ya metrika webvisor MutationObserver callback (DOM indexer)
1172  // use before insert html with some animation
1173  pauseYmObserver = function () {
1174    if (
1175      typeof MutationObserver === "function" &&
1176      typeof MutationObserver.observers === "object" &&
1177      typeof MutationObserver.observers.ym === "object"
1178    ) {
1179      if (typeof pauseYmObserver.cnt === "undefined") {
1180        pauseYmObserver.cnt = 0;
1181      }
1182
1183      ++pauseYmObserver.cnt;
1184
1185      if (!MutationObserver.observers.ym.paused) {
1186        MutationObserver.observers.ym.pause();
1187      }
1188    }
1189  };
1190}
1191
1192if (!funcDefined("resumeYmObserver")) {
1193  // resume ya metrika webvisor MutationObserver callback
1194  // use when animation finished
1195  resumeYmObserver = function () {
1196    if (
1197      typeof MutationObserver === "function" &&
1198      typeof MutationObserver.observers === "object" &&
1199      typeof MutationObserver.observers.ym === "object"
1200    ) {
1201      if (typeof pauseYmObserver.cnt === "undefined") {
1202        pauseYmObserver.cnt = 1;
1203      }
1204
1205      pauseYmObserver.cnt -= pauseYmObserver.cnt > 0 ? 1 : 0;
1206
1207      if (!pauseYmObserver.cnt && MutationObserver.observers.ym.paused) {
1208        MutationObserver.observers.ym.resume();
1209      }
1210    }
1211  };
1212}
1213
1214if (!funcDefined("declOfNum")) {
1215  declOfNum = function (number, titles) {
1216    var cases = [2, 0, 1, 1, 1, 2];
1217    return number + " " + titles[number % 100 > 4 && number % 100 < 20 ? 2 : cases[Math.min(number % 10, 5)]];
1218  };
1219}
1220
1221if (!funcDefined('decodeHtmlEntity')) {
1222  decodeHtmlEntity = function(str) {
1223    return str.replace(/&#(\d+);/g, function(match, dec) {
1224      return String.fromCharCode(dec);
1225    });
1226  };
1227}
1228
1229if (!funcDefined("togglePropBlock")) {
1230  togglePropBlock = function (className) {
1231    var all_props_block = className.closest(".bx_filter_parameters_box_container").find(".hidden_values");
1232    if (all_props_block.length && (className.hasClass("inner_text") || className.hasClass("expand_block"))) {
1233      if (all_props_block.is(":visible")) {
1234        className.text(BX.message("FILTER_EXPAND_VALUES"));
1235        all_props_block.hide();
1236      } else {
1237        className.text(BX.message("FILTER_HIDE_VALUES"));
1238        all_props_block.show();
1239      }
1240    }
1241  };
1242}
1243
1244/*countdown start*/
1245if (!funcDefined("initCountdown")) {
1246  var initCountdown = function initCountdown() {
1247    $(".countdown:not(.countdown-inited)").each(function () {
1248      var _this = $(this);
1249
1250      if (_this.hasClass("init-if-visible") && !_this.is(":visible")) return;
1251      _this.addClass("countdown-inited");
1252
1253      var activeTo = _this.find(".countdown__active-to").text(),
1254        dateTo = new Date(activeTo.replace(/(\d+)\.(\d+)\.(\d+)/, "$3/$2/$1"));
1255
1256      var checkDate = new Date() < dateTo;
1257
1258      if (checkDate) {
1259        if (_this.hasClass("compact"))
1260          _this.find(".countdown__items").countdown(
1261            {
1262              until: dateTo,
1263              format: "dHMS",
1264              compact: true,
1265              padZeroes: true,
1266              layout:
1267                '{d<}<span class="days countdown__item">{dn}<div class="text">{dl}</div></span>{d>}<span class="hours countdown__item">{hn}<div class="text">{hl}</div></span><span class="minutes countdown__item">{mn}<div class="text">{ml}</div></span><span class="sec countdown__item">{sn}<div class="text">{sl}</div></span>',
1268              onExpiry: onExpiryCountdown,
1269            },
1270            $.countdown.regionalOptions["ru"]
1271          );
1272        else
1273          _this.find(".countdown__items").countdown(
1274            {
1275              until: dateTo,
1276              format: "dHMS",
1277              padZeroes: true,
1278              layout:
1279                '{d<}<span class="days countdown__item">{dnn}<div class="text">{dl}</div></span>{d>}<span class="hours countdown__item">{hnn}<div class="text">{hl}</div></span><span class="minutes countdown__item">{mnn}<div class="text">{ml}</div></span><span class="sec countdown__item">{snn}<div class="text">{sl}</div></span>',
1280              onExpiry: onExpiryCountdown,
1281            },
1282            $.countdown.regionalOptions["ru"]
1283          );
1284      } else {
1285        _this.hide();
1286      }
1287    });
1288  };
1289}
1290
1291if (!funcDefined("onExpiryCountdown")) {
1292  function onExpiryCountdown() {
1293    var _this = $(this);
1294    var countdownBlock = _this.parents(".countdown");
1295
1296    if (countdownBlock.length) {
1297      countdownBlock.hide();
1298    }
1299  }
1300}
1301
1302if (!funcDefined("initCountdownTime")) {
1303  var initCountdownTime = function initCountdownTime(block, time) {
1304    if (time) {
1305      var dateTo = new Date(time.replace(/(\d+)\.(\d+)\.(\d+)/, "$3/$2/$1"));
1306      block.find(".countdown__items").countdown("destroy");
1307      if (block.hasClass("compact"))
1308        block.find(".countdown__items").countdown(
1309          {
1310            until: dateTo,
1311            format: "dHM",
1312            compact: true,
1313            padZeroes: true,
1314            layout:
1315              '{d<}<span class="days countdown__item">{dn}<div class="text">{dl}</div></span>{d>}<span class="hours countdown__item">{hn}<div class="text">{hl}</div></span><span class="minutes countdown__item">{mn}<div class="text">{ml}</div></span><span class="sec countdown__item">{sn}<div class="text">{sl}</div></span>',
1316            onExpiry: onExpiryCountdownTime,
1317          },
1318          $.countdown.regionalOptions["ru"]
1319        );
1320      elsecountdown__items;
1321      block.find(".countdown__items").countdown(
1322        {
1323          until: dateTo,
1324          format: "dHMS",
1325          padZeroes: true,
1326          layout:
1327            '{d<}<span class="days countdown__item">{dnn}<div class="text">{dl}</div></span>{d>}<span class="hours countdown__item">{hnn}<div class="text">{hl}</div></span><span class="minutes countdown__item">{mnn}<div class="text">{ml}</div></span><span class="sec countdown__item">{snn}<div class="text">{sl}</div></span>',
1328          onExpiry: onExpiryCountdownTime,
1329        },
1330        $.countdown.regionalOptions["ru"]
1331      );
1332      block.find(".countdown").show();
1333    } else {
1334      block.find(".countdown").hide();
1335    }
1336  };
1337}
1338if (!funcDefined("onExpiryCountdownTime")) {
1339  function onExpiryCountdownTime() {}
1340}
1341/*countdown end*/
1342$.fn.iAppear = function (callback, options) {
1343  if (typeof $.fn.iAppear.useObserver === "undefined") {
1344    $.fn.iAppear.useObserver = typeof window["IntersectionObserver"] === "function";
1345
1346    if (!$.fn.iAppear.useObserver && typeof $.fn.appear !== "function") {
1347      $.fn.iAppear.queue = [];
1348      BX.loadScript(arAsproOptions.SITE_TEMPLATE_PATH + "/vendor/js/jquery.appear.js", function () {
1349        if (typeof $.fn.iAppear.queue === "object") {
1350          $.fn.iAppear.queue.forEach(function (queueItem) {
1351            $(queueItem.items).iAppear(queueItem.callback, queueItem.options);
1352          });
1353        }
1354      });
1355
1356      return;
1357    }
1358  }
1359
1360  if ($.fn.iAppear.useObserver) {
1361    var options = $.extend(
1362      {
1363        root: null,
1364        rootMargin: "150px 0px 150px 0px",
1365        threshold: 0.0,
1366      },
1367      options
1368    );
1369
1370    $(this).each(function (i, appearBlock) {
1371      var observer = new IntersectionObserver(function (entries, observer) {
1372        entries.forEach(function (element) {
1373          if (element.intersectionRatio > 0 && !element.target.dataset.iAppeared) {
1374            element.target.dataset.iAppeared = true;
1375
1376            if (typeof callback === "function") {
1377              callback.call(element.target);
1378            }
1379          }
1380        });
1381      }, options);
1382
1383      observer.observe(appearBlock);
1384    });
1385  } else {
1386    if (typeof $.fn.appear !== "function") {
1387      if ($(this).length) {
1388        $.fn.iAppear.queue.push({
1389          items: this,
1390          callback: callback,
1391          options: options,
1392        });
1393      }
1394
1395      return;
1396    } else {
1397      if ($(this).length) {
1398        $(this).each(function (i, appearBlock) {
1399          $(appearBlock).appear(function () {
1400            if (typeof callback === "function") {
1401              callback.call(appearBlock);
1402            }
1403          }, options);
1404        });
1405      }
1406    }
1407  }
1408};
1409
1410$.fn.mCustomScrollbarDeferred = function (config) {
1411  $(this).addClass("scroll-init");
1412  $(this).data("plugin-options", config);
1413
1414  if ($(this).hasClass("destroyed")) {
1415    return;
1416  }
1417
1418  $(this).hover(
1419    function (e) {
1420      var $this = $(this);
1421      if (!$this.hasClass("mCustomScrollbar") && !$(this).hasClass("destroyed")) {
1422        $this.data(
1423          "scrollTimer",
1424          setTimeout(function () {
1425            $this.mCustomScrollbar(config);
1426            $this.off("touchstart touchmove touchend mousewheel mouseenter mouseleave");
1427          }, 200)
1428        );
1429      }
1430    },
1431    function (e) {
1432      clearTimeout($(this).data("scrollTimer"));
1433    }
1434  );
1435
1436  $(this).on("touchstart touchmove", function (e) {
1437    var $this = $(this);
1438    if (!$this.hasClass("mCustomScrollbar") && !$(this).hasClass("destroyed")) {
1439      $this.mCustomScrollbar(config);
1440    }
1441
1442    var $scrollContainer = $this.find(">.mCustomScrollBox>.mCSB_container");
1443    if ($scrollContainer.length) {
1444      var touch = e.originalEvent.touches[0] || e.originalEvent.changedTouches[0];
1445
1446      var newTouch = new Touch({
1447        identifier: 42,
1448        target: $scrollContainer[0],
1449        clientX: touch.clientX,
1450        clientY: touch.clientY,
1451        screenX: touch.screenX,
1452        screenY: touch.screenY,
1453        pageX: touch.pageX,
1454        pageY: touch.pageY,
1455        radiusX: 1,
1456        radiusY: 1,
1457      });
1458
1459      var newEvent = new TouchEvent(e.type, {
1460        cancelable: true,
1461        bubbles: false,
1462        composed: true,
1463        touches: [newTouch],
1464        targetTouches: [newTouch],
1465        changedTouches: [newTouch],
1466      });
1467
1468      $scrollContainer[0].dispatchEvent(newEvent);
1469    }
1470  });
1471
1472  $(this).on("touchend", function (e) {
1473    $(this).off("touchstart touchmove touchend mousewheel mouseenter mouseleave");
1474  });
1475
1476  if ($.event.special.mousewheel) {
1477    $(this).on("mousewheel", function (e) {
1478      var $this = $(this);
1479      if (!$this.hasClass("mCustomScrollbar") && !$(this).hasClass("destroyed")) {
1480        $this.mCustomScrollbar(config);
1481        $this.off("touchstart touchmove touchend mousewheel mouseenter mouseleave");
1482      }
1483    });
1484  }
1485};
1486
1487InitScrollBar = function (el, initOptions) {
1488  var block;
1489  if (typeof el === "undefined") {
1490    block = $(".srollbar-custom:not(.mobile-scroll):not(.scroll-init)");
1491  } else {
1492    block = el.filter(":not(.scroll-init)");
1493  }
1494  var blockParent = $(".scrollbar-parent");
1495
1496  if (
1497    (block.length || blockParent.length) &&
1498    !isMobile
1499    // (!isMobile || window.matchMedia('(min-width:992px)').matches)
1500  ) {
1501    block.addClass("scroll-init");
1502
1503    var options,
1504      defaults = {
1505        mouseWheel: {
1506          scrollAmount: 150,
1507          preventDefault: true,
1508        },
1509      };
1510    if (block.length) {
1511      var config = $.extend({}, defaults, options, block.data("plugin-options"), initOptions);
1512    } else if (blockParent.length) {
1513      var config = $.extend({}, defaults, options, blockParent.data("plugin-options"), initOptions);
1514    }
1515
1516    config.callbacks = {
1517      onScroll: function () {
1518        if ($(this).find(".mCSB_buttonLeft").hasClass("disabled"))
1519          $(this).find(".mCSB_buttonLeft").removeClass("disabled");
1520        if ($(this).find(".mCSB_buttonRight").hasClass("disabled"))
1521          $(this).find(".mCSB_buttonRight").removeClass("disabled");
1522      },
1523      onTotalScrollBack: function () {
1524        $(this).find(".mCSB_buttonLeft").addClass("disabled");
1525      },
1526      onTotalScroll: function () {
1527        $(this).find(".mCSB_buttonRight").addClass("disabled");
1528      },
1529      onInit: function () {
1530        $(this).find(".mCSB_buttonLeft").addClass("disabled");
1531      },
1532    };
1533
1534    if (block.length) {
1535      block.filter(":not(.scroll-deferred)").mCustomScrollbar(config);
1536      block.filter(".scroll-deferred").mCustomScrollbarDeferred(config);
1537    }
1538
1539    if (blockParent.length) {
1540      blockParent.find(".scroll-deferred").mCustomScrollbarDeferred(config);
1541    }
1542  }
1543};
1544
1545InitCustomScrollBar = function (el) {
1546  var block;
1547  if (typeof el === "undefined") {
1548    block = $(".scrollbar:not(.mobile-scroll):not(.scroll-init)");
1549  } else {
1550    block = el.filter(":not(.scroll-init)");
1551  }
1552
1553  if (block.length) {
1554    block.addClass("scroll-init");
1555
1556    var options,
1557      defaults = {
1558        effect: "fadeIn",
1559        effectTime: 300,
1560        threshold: 0,
1561        // threshold: 30
1562      };
1563
1564    var config = $.extend({}, defaults, options, block.data("plugin-options"));
1565
1566    block.filter(":not(.scroll-deferred)").mCustomScrollbar(config);
1567    block.filter(".scroll-deferred").mCustomScrollbarDeferred(config);
1568  }
1569};
1570
1571/* slider gallery for fancybox */
1572const InitFancyboxThumbnailsGallery = function (instance) {
1573	const bUseThumbs = instance.group[0].opts.$orig[0].classList.contains('fancy-thumbs') && instance.group.length > 1;
1574	if (bUseThumbs)
1575		instance.Thumbs.show();
1576	else
1577		return;
1578
1579	if (
1580		bUseThumbs &&
1581		$(".fancybox-thumbs") &&
1582		$(".fancybox-thumbs__list a").length > 1 &&
1583		!$(".fancybox-thumbs .swiper").length &&
1584		typeof initSwiperSlider === "function"
1585	) {
1586		instance.Thumbs.$grid.find(".fancybox-thumbs__list a").each(function (i, el) {
1587			$(el).css("background-image", "url(\"" + location.origin + encodeURI(instance.group[i].src) + "\")");
1588		});
1589		const SLIDER_RESIZE_BREAKPOINT = 600;
1590		const $thumbsContainer = $(".fancybox-thumbs");
1591		const $swiperSlides = $(".fancybox-thumbs__list a");
1592		const $swiperWrapper = $(".fancybox-thumbs__list");
1593		const sliderDirection = (window.innerWidth >= SLIDER_RESIZE_BREAKPOINT ? 'vertical' : 'horizontal');
1594
1595		const options = {
1596			centerInsufficientSlides: true,
1597			direction: sliderDirection,
1598			mousewheelControl: true,
1599			slidesPerView: 'auto',
1600			spaceBetween: 16,
1601			watchSlidesProgress: true,
1602		};
1603
1604		options.navigation = {
1605			nextEl: ".fancybox-thumbs__wrapper .swiper-button-next",
1606			prevEl: ".fancybox-thumbs__wrapper .swiper-button-prev",
1607		};
1608
1609		$('.fancybox-container').addClass('detail-gallery-big--vertical with-slider');
1610		$('.fancybox-inner').addClass('with-slider');
1611		$thumbsContainer.addClass('detail-gallery-big-slider-thumbs with-slider');
1612		$thumbsContainer.wrapInner(
1613			`<div class='fancybox-thumbs__wrapper gallery-slider-thumb__container'>
1614        <div class='swiper slider-solution' data-plugin-options='`+ JSON.stringify(options) + `'/>
1615      </div>`
1616		);
1617		const $swiperContainerWrapper = $('.fancybox-thumbs__wrapper');
1618
1619		$swiperContainerWrapper.append(
1620			`<div class='gallery-slider-thumb-button gallery-slider-thumb-button--next slider-nav slider-nav--no-auto-hide swiper-button-next'>
1621        <i class='svg inline stroke-dark-light'><svg width='7' height='12'><use xlink:href='`+ arAsproOptions.SITE_TEMPLATE_PATH + `/images/svg/arrows.svg#right-hollow'></use></svg></i>
1622      </div>`
1623		);
1624		$swiperContainerWrapper.prepend(
1625			`<div class='gallery-slider-thumb-button gallery-slider-thumb-button--prev slider-nav slider-nav--no-auto-hide swiper-button-prev'>
1626        <i class='svg inline stroke-dark-light'><svg width='7' height='12'><use xlink:href='`+ arAsproOptions.SITE_TEMPLATE_PATH + `/images/svg/arrows.svg#left-hollow'></use></svg></i>
1627      </div>`
1628		);
1629
1630		$swiperWrapper.addClass('fancybox-thumb__list--slider-wrapper swiper-wrapper gallery__thumb-wrapper');
1631		$swiperSlides.addClass('swiper-slide gallery__item gallery__item--thumb rounded-4 pointer');
1632		$swiperSlides.each(function () {
1633			const background = $(this).css('background-image').replace(/url\(|\"|\'|\)/g, '');
1634			$(this).css('background-image', '');
1635			$(this).wrapInner("<img src='" + background + "' class='rounded-4' alt='' title='' />");
1636		})
1637
1638		initSwiperSlider();
1639
1640		const swiper = $thumbsContainer.find('.swiper').data('swiper');
1641		swiper.slideTo(instance.curPos, 10);
1642		swiper.on('resize', function () {
1643			if (window.innerWidth >= SLIDER_RESIZE_BREAKPOINT && options.direction === 'horizontal') {
1644				options.direction = 'vertical';
1645				swiper.changeDirection(options.direction, false);
1646				swiper.update();
1647			} else if (window.innerWidth < SLIDER_RESIZE_BREAKPOINT && options.direction === 'vertical') {
1648				options.direction = 'horizontal';
1649				swiper.changeDirection(options.direction, false);
1650				swiper.update();
1651			}
1652		})
1653	}
1654}
1655/** */
1656
1657InitFancyBox = function () {
1658  if (typeof $.fn.fancybox !== "function") {
1659    return;
1660  }
1661
1662  if (!$(".fancy").length) {
1663    return;
1664  }
1665
1666  $(".fancy").fancybox({
1667    padding: [40, 40, 64, 40],
1668    openEffect: "fade",
1669    closeEffect: "fade",
1670    nextEffect: "fade",
1671    prevEffect: "fade",
1672    opacity: true,
1673    tpl: {
1674      closeBtn:
1675        '<span title="' +
1676        BX.message("FANCY_CLOSE") +
1677        '" class="fancybox-item fancybox-close inline svg"><svg class="svg svg-close" width="14" height="14" viewBox="0 0 14 14"><path data-name="Rounded Rectangle 568 copy 16" d="M1009.4,953l5.32,5.315a0.987,0.987,0,0,1,0,1.4,1,1,0,0,1-1.41,0L1008,954.4l-5.32,5.315a0.991,0.991,0,0,1-1.4-1.4L1006.6,953l-5.32-5.315a0.991,0.991,0,0,1,1.4-1.4l5.32,5.315,5.31-5.315a1,1,0,0,1,1.41,0,0.987,0.987,0,0,1,0,1.4Z" transform="translate(-1001 -946)"></path></svg></span>',
1678      next:
1679        '<a title="' +
1680        BX.message("FANCY_NEXT") +
1681        '" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',
1682      prev:
1683        '<a title="' +
1684        BX.message("FANCY_PREV") +
1685        '" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>',
1686    },
1687    touch: "enabled",
1688    buttons: [
1689      //"zoom",
1690      //"share",
1691      // "slideShow",
1692      //"fullScreen",
1693      //"download",
1694      //"thumbs",
1695      "close",
1696    ],
1697    backFocus: false,
1698    onActivate: function (instance) {
1699			InitFancyboxThumbnailsGallery(instance);
1700		},
1701    beforeShow: function (event) {
1702      if ($(".fancybox-thumbs .swiper").length) {
1703				const swiper = $(".fancybox-thumbs .swiper").data("swiper");
1704
1705				if (typeof event.current !== 'undefined') {
1706					swiper.slideTo(event.current.index);
1707				}
1708			}
1709      var bCurrentSrc =
1710        typeof event.current !== "undefined" && event.current.contentType == "html" && $(event.current.src).length;
1711      var video_block = [];
1712
1713      if (bCurrentSrc) {
1714        video_block = $(event.current.src).find("source.video-content");
1715      }
1716      // else {
1717      //   video_block = $(".company-item source.video-content");
1718      // }
1719      if (video_block.length) {
1720        if (video_block.attr("src") == "#") {
1721          var video_block_wrapper = video_block.closest("video");
1722          var video_block_clone = video_block_wrapper.clone();
1723
1724          video_block_clone.find("source").attr("src", video_block_clone.find("source").data("src"));
1725          video_block.attr("src", video_block.data("src"));
1726          video_block_clone.insertAfter(video_block_wrapper);
1727          video_block_clone.siblings("video").remove();
1728        }
1729      }
1730      var video_block_frame = [];
1731      if (bCurrentSrc) {
1732        video_block_frame = $(event.current.src).find(".company-item__video-iframe");
1733      }
1734      // else {
1735      //   video_block_frame = $(".company-item .company-item__video-iframe");
1736      // }
1737      if (video_block_frame.length) {
1738        var data_src_iframe = video_block_frame.attr("data-src");
1739        video_block_frame.attr("src", data_src_iframe);
1740        video_block_frame.attr("allow", "autoplay");
1741      }
1742    },
1743    afterShow: function (event) {
1744      if ($(".fancybox-overlay").css("opacity") == 0) {
1745        setTimeout(function () {
1746          $(".fancybox-overlay").css("opacity", 1);
1747          $("html").addClass("overflow_html");
1748        }, 200);
1749      }
1750
1751      $(".fancybox-nav").css("opacity", 0);
1752      setTimeout(function () {
1753        $(".fancybox-nav").css("opacity", 1);
1754      }, 150);
1755
1756      var bCurrentSrc =
1757        typeof event.current !== "undefined" && event.current.contentType == "html" && $(event.current.src).length;
1758      var companyVideo = [];
1759      if (bCurrentSrc) {
1760        companyVideo = event.current.src[0].getElementsByClassName("company-item__video");
1761      }
1762      // else {
1763      //   companyVideo = $(".fancybox-inner .company-item__video");
1764      // }
1765      if (companyVideo.length) {
1766        setTimeout(function () {
1767          $(".fancybox-wrap video").resize();
1768          setTimeout(function () {
1769            $(".fancybox-wrap").addClass("show_video");
1770            if (companyVideo[0].currentTime === 0 || companyVideo[0].paused) {
1771              companyVideo[0].currentTime = 0;
1772              companyVideo[0].play();
1773            }
1774          }, 300);
1775        }, 150);
1776      } else if ($(".fancybox-wrap iframe").length) {
1777        $(".fancybox-inner").height("100%");
1778      }
1779    },
1780    beforeClose: function (event) {
1781      // closeModal();
1782      $(".fancybox-overlay").fadeOut();
1783      var bCurrentSrc =
1784        typeof event.current !== "undefined" && event.current.contentType == "html" && $(event.current.src).length;
1785      var companyVideo = [];
1786      if (bCurrentSrc) {
1787        companyVideo = event.current.src[0].getElementsByClassName("company-item__video");
1788      }
1789      // else {
1790      //   companyVideo = $(".fancybox-inner .company-item__video");
1791      // }
1792      if (companyVideo.length) {
1793        companyVideo[0].currentTime = 0;
1794      }
1795
1796      $("html").removeClass("overflow_html");
1797      var video_block_frame = [];
1798      if (bCurrentSrc) {
1799        video_block_frame = $(event.current.src).find(".company-item__video-iframe");
1800      }
1801      // else {
1802      //   video_block_frame = $(".company-item .company-item__video-iframe");
1803      // }
1804      if (video_block_frame.length) {
1805        video_block_frame.attr("src", "");
1806      }
1807    },
1808    onClosed: function (event) {
1809      var companyVideo = [];
1810      if (bCurrentSrc) {
1811        companyVideo = event.current.src[0].getElementsByClassName("company-item__video");
1812      }
1813      // else {
1814      //   companyVideo = $(".fancybox-wrap .company-item__video");
1815      // }
1816      if (companyVideo.length) {
1817        companyVideo[0].pause();
1818      }
1819    },
1820  });
1821};
1822
1823InitFancyBoxVideo = function () {
1824  if (typeof $.fn.fancybox !== "function") {
1825    return;
1826  }
1827
1828  if (!$(".video_link").length) {
1829    return;
1830  }
1831
1832  $(".video_link").fancybox({
1833    type: "iframe",
1834		iframe: {
1835			preload: false,
1836		},
1837    maxWidth: 800,
1838    maxHeight: 600,
1839    fitToView: false,
1840    width: "70%",
1841    height: "70%",
1842    autoSize: false,
1843    closeClick: false,
1844    opacity: true,
1845    tpl: {
1846      closeBtn:
1847        '<span title="' +
1848        BX.message("FANCY_CLOSE") +
1849        '" class="fancybox-item fancybox-close inline svg"><svg class="svg svg-close" width="14" height="14" viewBox="0 0 14 14"><path data-name="Rounded Rectangle 568 copy 16" d="M1009.4,953l5.32,5.315a0.987,0.987,0,0,1,0,1.4,1,1,0,0,1-1.41,0L1008,954.4l-5.32,5.315a0.991,0.991,0,0,1-1.4-1.4L1006.6,953l-5.32-5.315a0.991,0.991,0,0,1,1.4-1.4l5.32,5.315,5.31-5.315a1,1,0,0,1,1.41,0,0.987,0.987,0,0,1,0,1.4Z" transform="translate(-1001 -946)"></path></svg></span>',
1850      next:
1851        '<a title="' +
1852        BX.message("FANCY_NEXT") +
1853        '" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',
1854      prev:
1855        '<a title="' +
1856        BX.message("FANCY_PREV") +
1857        '" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>',
1858    },
1859    beforeShow: function (event) {
1860      /*if(!$('.cd-modal-bg').hasClass('is-visible')){
1861				var scaleValue = retrieveScale($('.cd-modal-bg'));
1862
1863				$('.cd-modal-bg').show().addClass('is-visible').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function(){
1864					animateLayer($('.cd-modal-bg'), scaleValue, true);
1865				});
1866			}*/
1867    },
1868    afterShow: function () {
1869      if ($(".fancybox-overlay").css("opacity") == 0) {
1870        setTimeout(function () {
1871          $(".fancybox-overlay").css("opacity", 1);
1872          $("html").addClass("overflow_html");
1873        }, 200);
1874      }
1875
1876      $(".fancybox-nav").css("opacity", 0);
1877      setTimeout(function () {
1878        $(".fancybox-nav").css("opacity", 1);
1879      }, 150);
1880      if ($(".fancybox-wrap iframe").length) {
1881        $(".fancybox-inner").height("100%");
1882      }
1883    },
1884    beforeClose: function () {
1885      // closeModal();
1886      $(".fancybox-overlay").fadeOut();
1887      $("html").removeClass("overflow_html");
1888    },
1889  });
1890};
1891
1892/*function CheckTopMenuDotted() {
1893  var menu = $("nav.mega-menu.sliced");
1894  if (window.matchMedia("(max-width:991px)").matches) return;
1895
1896  if (menu.length) {
1897    menu.each(function () {
1898      var menuMoreItem = $(this).find(".header-menu__item--more-items");
1899      if ($(this).parents(".collapse").css("display") == "none") {
1900        return false;
1901      }
1902
1903      var headerFixedBlock = $(this).parents("#headerfixed");
1904      if (headerFixedBlock.length && !headerFixedBlock.hasClass("fixed")) {
1905        return false;
1906      }
1907
1908      var block = $(this).closest(".header-menu");
1909      var block_w = block.outerWidth();
1910      var items = $(this).find(".header-menu__wrapper > .header-menu__item");
1911      var menu_w = 0;
1912      items.each(function (i, el) {
1913        var _el = $(el);
1914        menu_w += _el.outerWidth(true);
1915      });
1916
1917      var afterHide = false;
1918      var newItemsArr = [];
1919      menuItemNewSave = "";
1920
1921      while (menu_w > block_w - 1) {
1922        menuItemOldSave = $(this)
1923          .find(".header-menu__wrapper > .header-menu__item")
1924          .not(".header-menu__item--more-items")
1925          .last();
1926
1927        if (menuItemOldSave.length) {
1928          var classes = menuItemOldSave.attr("class");
1929          var newMenuItem = $("<li />").addClass(classes).attr("data-hidewidth", menu_w).html(menuItemOldSave.html());
1930          newItemsArr.push(newMenuItem);
1931
1932          menuItemOldSave.remove();
1933
1934          menuMoreItem.css({
1935            display: "flex",
1936            opacity: 1,
1937          });
1938
1939          menu_w = 0;
1940          items.each(function (i, el) {
1941            var _el = $(el);
1942            menu_w += _el.outerWidth(true);
1943          });
1944          block_w = block.outerWidth();
1945          afterHide = true;
1946        } else {
1947          break;
1948        }
1949      }
1950
1951      newItemsArr = newItemsArr.reverse();
1952      menuMoreItem.find("> .header-menu__dropdown-menu").prepend(newItemsArr);
1953
1954      if (!afterHide) {
1955        var moreItemsArr = [];
1956        do {
1957          menuItemOldSave = menuMoreItem.find("> .header-menu__dropdown-menu > li").first();
1958          if (!menuItemOldSave.length) {
1959            menuMoreItem.hide();
1960            break;
1961          } else {
1962            var hideWidth = menuItemOldSave.attr("data-hidewidth");
1963            if (hideWidth > block_w) {
1964              break;
1965            } else {
1966              menuItemOldSave.removeClass("scroll-inited");
1967              var classes = menuItemOldSave.attr("class");
1968              var moreMenuItem = $("<div />
1968").addClass(classes).html(menuItemOldSave.html());
1969
1970              menuItemOldSave.remove();
1971              $(moreMenuItem).insertBefore(menuMoreItem);
1972              if (!menuItemOldSave.length) {
1973                menuMoreItem.hide();
1974                break;
1975              }
1976            }
1977          }
1978
1979          menu_w = 0;
1980          items.each(function (i, el) {
1981            var _el = $(el);
1982            menu_w += _el.outerWidth();
1983          });
1984        } while (menu_w <= block_w);
1985      }
1986
1987      menu.closest(".header-menu").addClass("dotted-complete");
1988      var wrapper = $(this).closest(".hide-dotted");
1989      if (wrapper.length) {
1990        wrapper.addClass("dotted-complete");
1991      }
1992    });
1993  }
1994  return false;
1995};
1996*/
1997
1998CheckTopVisibleMenu = function (that) {
1999  var dropdownMenu = $(that).find(">.header-menu__dropdown-menu");
2000
2001  if (!dropdownMenu.length) {
2002    dropdownMenu = $(that).find(">.header-menu__wide-item-wrapper>.header-menu__wide-submenu");
2003  }
2004  if (!dropdownMenu.length) {
2005    dropdownMenu = $(that).find(">.header-menu__wide-submenu-item-inner>.submenu-wrapper>.header-menu__wide-submenu");
2006  }
2007
2008  if (!dropdownMenu.length) {
2009    return;
2010  }
2011
2012  // if( that !== undefined ) {
2013  // 	dropdownMenu.push($(that));
2014  // }
2015
2016  if (dropdownMenu.length) {
2017    dropdownMenu.each(function (i, el) {
2018      var dropdownMenuCurrent = $(el);
2019      dropdownMenuCurrent.find("a").css("white-space", "");
2020      dropdownMenuCurrent.css("left", "");
2021      dropdownMenuCurrent.css("right", "");
2022      dropdownMenuCurrent.removeClass("toright");
2023
2024      var dropdownMenuCurrent_left = dropdownMenuCurrent.offset().left;
2025
2026      if (typeof dropdownMenuCurrent_left != "undefined") {
2027        var menu = dropdownMenuCurrent.parents(".header__main-part");
2028        if (!menu.length) menu = dropdownMenuCurrent.closest(".header__top-inner");
2029        var menu_width = menu.outerWidth();
2030        var menu_left = menu.offset().left;
2031        var menu_right = menu_left + menu_width;
2032        var isToRight = dropdownMenuCurrent.parents(".toright").length > 0;
2033        var parentsdropdownMenuCurrents = dropdownMenuCurrent.parents(".header-menu__dropdown-menu");
2034        var isHasParentdropdownMenuCurrent = parentsdropdownMenuCurrents.length > 0;
2035        if (isHasParentdropdownMenuCurrent) {
2036          var parentdropdownMenuCurrent_width = parentsdropdownMenuCurrents.first().outerWidth()
2037            ? parentdropdownMenuCurrent_width
2038            : 240;
2039          var parentdropdownMenuCurrent_left = parentsdropdownMenuCurrents.first().offset().left;
2040          var parentdropdownMenuCurrent_right = parentdropdownMenuCurrent_width + parentdropdownMenuCurrent_left;
2041        }
2042
2043        var emptyCurrentWidth = dropdownMenuCurrent.outerWidth() == 0;
2044
2045        var dropdownMenuCurrent_width = !emptyCurrentWidth ? dropdownMenuCurrent.outerWidth() : 240;
2046
2047        if (parentdropdownMenuCurrent_right + dropdownMenuCurrent_width > menu_right) {
2048          dropdownMenuCurrent.find("a").css("white-space", "normal");
2049        }
2050
2051        var dropdownMenuCurrent_right = dropdownMenuCurrent_left + dropdownMenuCurrent_width;
2052
2053        if (dropdownMenuCurrent_right > menu_right || isToRight) {
2054          var addleft = 0;
2055          addleft = menu_right - dropdownMenuCurrent_right;
2056          if (isHasParentdropdownMenuCurrent || isToRight) {
2057            dropdownMenuCurrent.css("left", "auto");
2058            dropdownMenuCurrent.css("right", "100%");
2059            dropdownMenuCurrent.addClass("toright");
2060          } else {
2061            var dropdownMenuCurrent_curLeft = parseInt(dropdownMenuCurrent.css("left"));
2062            dropdownMenuCurrent.css("left", dropdownMenuCurrent_curLeft + addleft + "px");
2063          }
2064        }
2065        var firstMenuItem = dropdownMenuCurrent.parent().hasClass("header-menu__item--first");
2066        if (!firstMenuItem) {
2067          if (dropdownMenuCurrent_right < 240 + menu_left) {
2068            dropdownMenuCurrent.css("left", "100%");
2069            dropdownMenuCurrent.css("right", "0");
2070            dropdownMenuCurrent.removeClass("toright");
2071          }
2072          var childDropDown = dropdownMenuCurrent.find(">.dropdown");
2073          if (childDropDown.length) {
2074            childDropDown.css("left", "");
2075            childDropDown.css("right", "");
2076          }
2077          /*if (emptyCurrentWidth && childDropDown.length && dropdownMenuCurrent_right < 0 + menu_left) {
2078            dropdownMenuCurrent.css("left", "100%");
2079            dropdownMenuCurrent.css("right", "0");
2080            dropdownMenuCurrent.removeClass("toright");
2081            // childDropDown.css("left", "100%");
2082            // childDropDown.css("right", "0");
2083          }*/
2084        }
2085      }
2086    });
2087  }
2088};
2089
2090MegaMenuFixed = function () {
2091  var animationTime = 150;
2092  $megaFixedNlo = $(".mega-fixed-menu").find("[data-nlo]");
2093
2094  $(document).on("click", ".header .burger", function () {
2095    if ($megaFixedNlo.length) {
2096      if (!$megaFixedNlo.hasClass("nlo-loadings")) {
2097        $megaFixedNlo.addClass("nlo-loadings");
2098        setTimeout(function () {
2099          $.ajax({
2100            data: { nlo: $megaFixedNlo.attr("data-nlo") },
2101            error: function () {
2102              $megaFixedNlo.removeClass("nlo-loadings");
2103            },
2104            complete: function (jqXHR, textStatus) {
2105              if (textStatus === "success" || jqXHR.status == 404) {
2106                var ob = BX.processHTML($.trim(jqXHR.responseText));
2107                BX.ajax.processScripts(ob.SCRIPT);
2108                $megaFixedNlo.replaceWith(ob.HTML);
2109              }
2110            },
2111          });
2112        }, 300);
2113      }
2114    }
2115
2116    $("body").css("overflow", "hidden");
2117    $(".mega-fixed-menu").fadeIn(animationTime);
2118    $(".mega-fixed-menu").css("display", "flex");
2119  });
2120
2121  $(".mega-fixed-menu__close").on("click", function () {
2122    $(this).closest(".mega-fixed-menu").fadeOut(animationTime);
2123    //$("body").css("overflow", "auto");
2124    $("body").css("overflow", "");
2125  });
2126
2127  $(".mega-fixed-menu .dropdown-menu .arrow").on("click", function (e) {
2128    e.preventDefault();
2129    e.stopPropagation();
2130    $(this).closest(".dropdown-submenu").find(".dropdown-menu").slideToggle(animationTime);
2131    $(this).closest(".dropdown-submenu").addClass("opened");
2132  });
2133};
2134
2135CheckMainBannerSliderVText = function (slider) {
2136  /*if(slider.parents('.banners-big').length){
2137		var sh = slider.height();
2138		slider.find('.item').each(function() {
2139			var curSlideTextInner = $(this).find('.text .inner');
2140			if(curSlideTextInner.length){
2141				var ith = curSlideTextInner.actual('height');
2142				var p = (ith >= sh ? 0 : Math.floor((sh - ith) / 2));
2143				curSlideTextInner.css('padding-top', p + 'px');
2144			}
2145		});
2146	}*/
2147};
2148
2149footerInit = function (block) {
2150  if (block.hasClass("check-visible")) {
2151    const blockJsPadding = $(".js-check-padding");
2152    const blockJsHide = $(".js-check-hide");
2153
2154    if (blockJsPadding.length && blockJsHide.length && block.data("ajax-check-visible")) {
2155      const arCheckBlock = block.data("ajax-check-visible").split(",");
2156      let bHiddenBlocks = arCheckBlock.every(function (i) {
2157        return $('[data-ajax-load-block="' + i + '"]').hasClass("hidden") === true;
2158      });
2159
2160      if (bHiddenBlocks) {
2161        blockJsHide.addClass("hidden");
2162        blockJsPadding.addClass("js-padding");
2163      } else {
2164        blockJsHide.removeClass("hidden");
2165        blockJsPadding.removeClass("js-padding");
2166      }
2167    }
2168  }
2169};
2170
2171verticalAlign = function (class_name) {
2172  if (typeof class_name == "undefined") class_name = "auto_align";
2173  if ($("." + class_name).length) {
2174    maxHeight = 0;
2175    $("." + class_name).each(function () {
2176      if ($(this).height() > maxHeight) {
2177        maxHeight = $(this).height();
2178      }
2179    });
2180    $("." + class_name).each(function () {
2181      delta = Math.round((maxHeight - $(this).height()) / 2);
2182      $(this).css({ "padding-top": delta + "px", "padding-bottom": delta + "px" });
2183    });
2184  }
2185};
2186
2187getGridSize = function (counts, custom_counts) {
2188  var z = parseInt($(".body_media").css("top"));
2189  if (typeof custom_counts != "undefined") {
2190    if (window.matchMedia("(max-width: 700px)").matches) return counts[3] ? counts[3] : counts[2];
2191    else if (window.matchMedia("(max-width: 850px)").matches) return counts[2];
2192    else if (window.matchMedia("(max-width: 1100px)").matches) return counts[1];
2193    else return counts[0];
2194  } else {
2195    if (window.matchMedia("(max-width: 600px)").matches) {
2196      return counts[3] ? counts[3] : counts[2];
2197    } else return z == 2 ? counts[0] : z == 1 ? counts[1] : counts[2];
2198  }
2199};
2200
2201CheckFlexSlider = function () {
2202  $(".flexslider:not(.thmb):visible").each(function () {
2203    var slider = $(this);
2204    slider.resize();
2205    var counts = slider.data("flexslider").vars.counts,
2206      slide_counts = slider.data("flexslider").vars.slide_counts;
2207    if (typeof counts != "undefined") {
2208      var cnt = getGridSize(counts, slider.data("flexslider").vars.customGrid);
2209      var to0 =
2210        cnt != slider.data("flexslider").vars.minItems ||
2211        cnt != slider.data("flexslider").vars.maxItems ||
2212        cnt != slider.data("flexslider").vars.move;
2213      if (to0) {
2214        slider.data("flexslider").vars.minItems = cnt;
2215        slider.data("flexslider").vars.maxItems = cnt;
2216        if (typeof slide_counts != "undefined") slider.data("flexslider").vars.move = slide_counts;
2217        else slider.data("flexslider").vars.move = cnt;
2218
2219        slider.flexslider(0);
2220        slider.resize();
2221        slider.resize(); // twise!
2222      }
2223    }
2224  });
2225};
2226
2227CheckHeaderFixed = function () {
2228  var header = $("header .header__inner").first(),
2229    header_fixed = $("#headerfixed");
2230
2231  if (header_fixed.length) {
2232    if (header.length) {
2233      var isHeaderFixed = false,
2234        headerCanFix = true,
2235        headerFixedHeight = header_fixed.actual("outerHeight"),
2236        headerNormalHeight = header.actual("outerHeight"),
2237        headerDiffHeight = headerNormalHeight - headerFixedHeight,
2238        mobileBtnMenu = $(".btn.btn-responsive-nav"),
2239        headerTop = $("#panel:visible").actual("outerHeight"),
2240        topBlock = $(".TOP_HEADER").first(),
2241        $headerFixedNlo = header_fixed.find("[data-nlo]"),
2242        $eyedPanel = $("#eyed-panel"),
2243        isNloLoaded = !$headerFixedNlo.length,
2244        OnHeaderFixedScrollHandler;
2245
2246      if (headerDiffHeight <= 0) headerDiffHeight = 0;
2247      if ($eyedPanel.length) headerTop += $eyedPanel.actual("outerHeight");
2248
2249      if (topBlock.length) headerTop += topBlock.actual("outerHeight");
2250
2251      $(window).scroll(
2252        (OnHeaderFixedScrollHandler = function () {
2253          var scrollTop = $(window).scrollTop();
2254          headerCanFix = !mobileBtnMenu.is(":visible");
2255
2256          if (!isHeaderFixed) {
2257            if (headerCanFix && scrollTop > headerNormalHeight + headerTop) {
2258              if (!isNloLoaded) {
2259                if (!$headerFixedNlo.hasClass("nlo-loadings")) {
2260                  $headerFixedNlo.addClass("nlo-loadings");
2261                  setTimeout(function () {
2262                    $.ajax({
2263                      data: { nlo: $headerFixedNlo.attr("data-nlo") },
2264                      error: function () {
2265                        $headerFixedNlo.removeClass("nlo-loadings");
2266                      },
2267                      complete: function (jqXHR, textStatus) {
2268                        if (textStatus === "success" || jqXHR.status == 404) {
2269                          // stop ya metrika webvisor DOM indexer
2270                          pauseYmObserver();
2271
2272                          isNloLoaded = true;
2273                          var ob = BX.processHTML($.trim(jqXHR.responseText));
2274                          BX.ajax.processScripts(ob.SCRIPT);
2275                          $headerFixedNlo.replaceWith(ob.HTML);
2276
2277                          OnHeaderFixedScrollHandler();
2278
2279                          // resume ya metrika webvisor
2280                          // (300ms transition) + (100ms scroll handler)
2281                          setTimeout(resumeYmObserver, 400);
2282                        }
2283                      },
2284                    });
2285                  }, 300);
2286                }
2287              } else {
2288                isHeaderFixed = true;
2289                header_fixed.css("top", "-" + headerNormalHeight + "px");
2290                header_fixed.addClass("fixed");
2291
2292                header_fixed.animate({ top: "0" }, { duration: 300, complete: function () {} });
2293                CheckTopMenuDotted();
2294              }
2295            }
2296          }
2297
2298          if (isHeaderFixed || !headerCanFix) {
2299            if (!headerCanFix || scrollTop <= headerDiffHeight + headerTop) {
2300              isHeaderFixed = false;
2301              header_fixed.removeClass("fixed");
2302            }
2303          }
2304        })
2305      );
2306    }
2307  }
2308
2309  // mobile fixed
2310  var mfixed = $("body.mfixed_y.mfixed_view_scroll_top #mobileheader");
2311  if (mfixed.length) {
2312    var mheaderFixed = false,
2313      mheaderFixedHeight = mfixed.actual("outerHeight"),
2314      mheaderTop = $("#panel:visible").actual("outerHeight"),
2315      mheaderStartScroll = 0;
2316
2317    $(window).scroll(function () {
2318      if (window.matchMedia("(max-width:991px)").matches) {
2319        var scrollTop = $(window).scrollTop();
2320        if (!mheaderFixed) {
2321          if (scrollTop > mheaderTop + mheaderFixedHeight && scrollTop < mheaderStartScroll) {
2322            mfixed.addClass("fixed");
2323            mheaderFixed = true;
2324          }
2325        } else {
2326          if (scrollTop <= mheaderTop || scrollTop > mheaderStartScroll) {
2327            mfixed.removeClass("fixed");
2328            mheaderFixed = false;
2329          }
2330        }
2331
2332        mheaderStartScroll = scrollTop;
2333      } else {
2334        mfixed.removeClass("fixed");
2335      }
2336    });
2337  }
2338};
2339
2340CheckObjectsSizes = function () {
2341  $(".container iframe,.container object,.container video").each(function () {
2342    var height_attr = $(this).attr("height");
2343    var width_attr = $(this).attr("width");
2344
2345    if (height_attr && width_attr) {
2346      $(this).css("height", ($(this).outerWidth() * height_attr) / width_attr);
2347    }
2348  });
2349};
2350
2351scrollToTop = function () {
2352  if (arAsproOptions["THEME"]["SCROLLTOTOP_TYPE"] !== "NONE") {
2353    scrollToTopAnimateClassIn =
2354      arAsproOptions.THEME.SCROLLTOTOP_TYPE.indexOf("ROUND") !== -1 ? "rotateIn" : "rubberBand";
2355    scrollToTopAnimateClassOut =
2356      arAsproOptions.THEME.SCROLLTOTOP_TYPE.indexOf("ROUND") !== -1 ? "rotateOut" : "flipOutX";
2357    if (BX.browser.IsMac()) {
2358      scrollToTopAnimateClassIn = scrollToTopAnimateClassOut = "";
2359    }
2360    var _isScrolling = false;
2361    // Append Button
2362    $("body").append(
2363      $("<a />")
2364        .addClass(
2365          "scroll-to-top " +
2366            arAsproOptions["THEME"]["SCROLLTOTOP_TYPE"] +
2367            " " +
2368            arAsproOptions["THEME"]["SCROLLTOTOP_POSITION"]
2369        )
2370        .attr({ href: "#", id: "scrollToTop" })
2371    );
2372    $scrolltotop = $("#scrollToTop");
2373
2374    if (arAsproOptions.THEME.SCROLLTOTOP_POSITION_RIGHT)
2375      $scrolltotop.css({ right: arAsproOptions.THEME.SCROLLTOTOP_POSITION_RIGHT + "px", left: "auto" });
2376
2377    $scrolltotop.click(function (e) {
2378      e.preventDefault();
2379      $("body, html").animate({ scrollTop: 0 }, 500);
2380      return false;
2381    });
2382    // Show/Hide Button on Window Scroll event.
2383    $(window).scroll(function () {
2384      if (!_isScrolling) {
2385        _isScrolling = true;
2386
2387        var bottom = 23,
2388          scrollVal = $(window).scrollTop(),
2389          windowHeight = $(window).height();
2390
2391        if (arAsproOptions.THEME.SCROLLTOTOP_POSITION_BOTTOM) {
2392          bottom = arAsproOptions.THEME.SCROLLTOTOP_POSITION_BOTTOM;
2393          $scrolltotop.css("bottom", bottom + "px");
2394        }
2395
2396        var footerOffset = 0;
2397        if ($("footer").get(0)) {
2398          footerOffset = $("footer").offset().top;
2399        }
2400        if (scrollVal > 150) {
2401          $("#scrollToTop").stop(true, true).addClass("visible");
2402          _isScrolling = false;
2403        } else {
2404          $("#scrollToTop").stop(true, true).removeClass("visible");
2405          _isScrolling = false;
2406        }
2407        CheckScrollToTop();
2408      }
2409    });
2410  }
2411};
2412
2413CheckScrollToTop = function () {
2414  if (typeof arAsproOptions === "undefined") {
2415    return;
2416  }
2417
2418  if (arAsproOptions["THEME"]["SCROLLTOTOP_TYPE"] !== "NONE" && $scrolltotop.length != undefined) {
2419    if (documentScrollTop > 150) {
2420      $scrolltotop.stop(true, true).addClass("visible").addClass("animated");
2421      if (scrollToTopAnimateClassOut) {
2422        $scrolltotop.removeClass(scrollToTopAnimateClassOut);
2423      }
2424      if (scrollToTopAnimateClassIn) {
2425        $scrolltotop.addClass(scrollToTopAnimateClassIn);
2426      }
2427    } else {
2428      $scrolltotop.stop(true, true).removeClass("visible");
2429      if (scrollToTopAnimateClassIn) {
2430        $scrolltotop.removeClass(scrollToTopAnimateClassIn);
2431      }
2432      if (scrollToTopAnimateClassOut) {
2433        $scrolltotop.addClass(scrollToTopAnimateClassOut);
2434      }
2435    }
2436  }
2437  var bottom = 23,
2438    scrollVal = $(window).scrollTop(),
2439    windowHeight = $(window).height();
2440
2441  if (arAsproOptions.THEME.SCROLLTOTOP_POSITION_BOTTOM) {
2442    bottom = arAsproOptions.THEME.SCROLLTOTOP_POSITION_BOTTOM;
2443    $scrolltotop.css("bottom", bottom + "px");
2444  }
2445
2446  if ($("footer").length) var footerOffset = $("footer").offset().top;
2447
2448  if (scrollVal + windowHeight > footerOffset) {
2449    $("#scrollToTop").css("bottom", Math.round(bottom + scrollVal + windowHeight - footerOffset));
2450  } else if (parseInt($("#scrollToTop").css("bottom")) > bottom) {
2451    $("#scrollToTop").css("bottom", Math.round(bottom));
2452  }
2453};
2454
2455var isMobile = jQuery.browser.mobile;
2456var players = {};
2457
2458if (isMobile) {
2459  document.documentElement.className += " mobile";
2460}
2461
2462var timerScroll = false,
2463  ignoreScroll = [],
2464  documentScrollTopLast = $(document).scrollTop(),
2465  startScroll = 0;
2466
2467$.fn.equalizeHeights = function (outer, classNull, minHeight, autoHeightBlock) {
2468  var maxHeight = this.map(function (i, e) {
2469    var minus_height = 0,
2470      calc_height = 0;
2471    if (classNull !== false && $(e).find(classNull).is(":visible"))
2472      minus_height = parseInt($(e).find(classNull).actual("outerHeight"));
2473    if (minus_height) minus_height += 15;
2474    $(e).css("height", "");
2475    if (autoHeightBlock !== false) {
2476      var height_tmp = $(e).find(autoHeightBlock).css("height");
2477      $(e).find(autoHeightBlock).css("height", "");
2478    }
2479    if (outer === true) {
2480      calc_height = $(e).actual("outerHeight") - minus_height;
2481    } else {
2482      calc_height = $(e).actual("height") - minus_height;
2483    }
2484
2485    if (autoHeightBlock !== false) {
2486      $(e).find(autoHeightBlock).css("height", height_tmp);
2487    }
2488    if (minHeight !== false) {
2489      if (calc_height < minHeight) {
2490        calc_height += minHeight - calc_height;
2491      }
2492      if (window.matchMedia("(max-width: 520px)").matches) {
2493        calc_height = 300;
2494      }
2495      if (window.matchMedia("(max-width: 400px)").matches) {
2496        calc_height = 200;
2497      }
2498    }
2499    return calc_height;
2500  }).get();
2501
2502  for (var i = 0, c = maxHeight.length; i < c; ++i) {
2503    if (maxHeight[i] % 2) {
2504      --maxHeight[i];
2505    }
2506  }
2507
2508  return this.height(Math.max.apply(this, maxHeight));
2509};
2510
2511$.fn.getFloatWidth = function () {
2512  var width = 0;
2513
2514  if ($(this).length) {
2515    var rect = $(this)[0].getBoundingClientRect();
2516    if (!(width = rect.width)) {
2517      width = rect.right - rect.left;
2518    }
2519  }
2520
2521  return width;
2522};
2523
2524$.fn.sliceHeight2 = function (options) {
2525  function _slice(el) {
2526    el.each(function () {
2527      $(this).css("line-height", "");
2528      $(this).css("height", "");
2529    });
2530    if (typeof options.autoslicecount == "undefined" || options.autoslicecount !== false) {
2531      var elsw =
2532          typeof options.row !== "undefined" && options.row.length
2533            ? el.first().parents(options.row).getFloatWidth()
2534            : el.first().parents(".grid-list").getFloatWidth(),
2535        elw =
2536          typeof options.item !== "undefined" && options.item.length
2537            ? $(options.item).first().getFloatWidth()
2538            : el.first().hasClass("grid-list__item")
2539            ? el.first().getFloatWidth()
2540            : el.first().parents(".grid-list__item").getFloatWidth();
2541
2542      if (!elsw) {
2543        elsw = el.first().parents(".grid-list").getFloatWidth();
2544      }
2545      if (elw && options.fixWidth) elw -= options.fixWidth;
2546
2547      if (elsw && elw) {
2548        options.slice = Math.floor(elsw / elw);
2549      }
2550    }
2551    if (typeof options.typeResize == "undefined" || options.typeResize === false) {
2552      if (options.sliceEqualLength && el.closest(".flexslider").length) options.slice = el.length;
2553      if (options.slice >= 1) {
2554        for (var i = 0; i < el.length; i += options.slice) {
2555          $(el.slice(i, i + options.slice)).equalizeHeights(
2556            options.outer,
2557            options.classNull,
2558            options.minHeight,
2559            options.autoHeightBlock
2560          );
2561        }
2562      }
2563      if (options.lineheight) {
2564        var lineheightAdd = parseInt(options.lineheight);
2565        if (isNaN(lineheightAdd)) {
2566          lineheightAdd = 0;
2567        }
2568        el.each(function () {
2569          $(this).css("line-height", $(this).actual("height") + lineheightAdd + "px");
2570        });
2571      }
2572    }
2573
2574    if (typeof options.callback == "function") options.callback(el);
2575  }
2576  var options = $.extend(
2577    {
2578      slice: null,
2579      outer: false,
2580      lineheight: false,
2581      autoslicecount: true,
2582      classNull: false,
2583      minHeight: false,
2584      row: false,
2585      item: false,
2586      typeResize: false,
2587      resize: true,
2588      typeValue: false,
2589      sliceEqualLength: false,
2590      fixWidth: 0,
2591      callback: false,
2592      autoHeightBlock: false,
2593    },
2594    options
2595  );
2596
2597  var el = $(this);
2598  ignoreResize.push(true);
2599  _slice(el);
2600  ignoreResize.pop();
2601
2602  if (options.resize !== false) {
2603    BX.addCustomEvent("onWindowResize", function (eventdata) {
2604      ignoreResize.push(true);
2605      _slice(el);
2606      ignoreResize.pop();
2607    });
2608  }
2609};
2610
2611function extendDepthObject(target, FromObj) {
2612  var to = Object.assign({}, target);
2613  for (var key in FromObj) {
2614    if (typeof FromObj[key] == "object") {
2615      to[key] = extendDepthObject(to[key], FromObj[key]);
2616    } else {
2617      to[key] = FromObj[key];
2618    }
2619  }
2620
2621  return to;
2622}
2623
2624$.fn.sliceHeight = function (options) {
2625  function _slice(el) {
2626    var arBreakpoints = Object.keys(options.breakpoint);
2627    var resizeOptionsTmp = {};
2628    if (arBreakpoints.length) {
2629      for (var key in arBreakpoints) {
2630        if (window.matchMedia(arBreakpoints[key].toString()).matches) {
2631          resizeOptionsTmp = options.breakpoint[arBreakpoints[key]];
2632        }
2633      }
2634    }
2635
2636    var resizeOptions = extendDepthObject(options, resizeOptionsTmp);
2637
2638    var blockNullClass =
2639      resizeOptions.blockNull !== undefined && resizeOptions.blockNull.class !== undefined
2640        ? resizeOptions.blockNull.class
2641        : false;
2642    var parent =
2643      typeof resizeOptions.row !== "undefined" && resizeOptions.row.length
2644        ? el.first().parents(resizeOptions.row)
2645        : el.first().parents(".items");
2646    var item = "";
2647
2648    if (typeof resizeOptions.item !== "undefined" && resizeOptions.item.length) {
2649      if (blockNullClass) {
2650        $(resizeOptions.item).each(function (i, element) {
2651          _element = $(element);
2652          if (!_element.hasClass(blockNullClass)) {
2653            item = _element;
2654          }
2655        });
2656        if (!item)
2657          // if only ignored blocks
2658          return false;
2659      } else {
2660        item = $(resizeOptions.item).first();
2661      }
2662    } else {
2663      if (el.first().hasClass("item")) {
2664        item = el.first();
2665      } else {
2666        item = el.first().parents(".item");
2667      }
2668    }
2669
2670    if (typeof resizeOptions.autoslicecount == "undefined" || resizeOptions.autoslicecount !== false) {
2671      var elsw = parent.getFloatWidth(),
2672        elw = item.getFloatWidth();
2673      if (!elsw) {
2674        elsw = el.first().parents(".row").getFloatWidth();
2675      }
2676      if (!elw) {
2677        if (typeof resizeOptions.item !== "undefined" && resizeOptions.item.length)
2678          elw = $(resizeOptions.item + ":eq(1)").getFloatWidth()
2679            ? $(resizeOptions.item + ":eq(1)").getFloatWidth()
2680            : $(resizeOptions.item + ":eq(2)").getFloatWidth();
2681        else elw = $(el[1]).getFloatWidth() ? $(el[1]).getFloatWidth() : $(el[2]).getFloatWidth();
2682      }
2683      if (elw && resizeOptions.fixWidth) elw -= resizeOptions.fixWidth;
2684
2685      elw = parseInt(elw * 100) / 100;
2686
2687      if (elsw && elw) {
2688        resizeOptions.slice = Math.floor(elsw / elw);
2689      }
2690    }
2691
2692    if (resizeOptions.customSlice) {
2693      //manual slice count
2694      var bSliceNext = false;
2695      if (resizeOptions.length) {
2696        elw =
2697          typeof resizeOptions.item !== "undefined" && resizeOptions.item.length
2698            ? $(resizeOptions.item).last().getFloatWidth()
2699            : el.last().hasClass("item")
2700            ? el.last().getFloatWidth()
2701            : el.last().parents(".item").getFloatWidth();
2702        if (elw) resizeOptions.sliceNext = Math.floor(elsw / elw);
2703
2704        bSliceNext = true;
2705      }
2706    }
2707
2708    elements = [];
2709    if (resizeOptions.classes !== undefined && resizeOptions.classes.length) {
2710      for (var i = 0; i < resizeOptions.classes.length; i++) {
2711        var items = $(resizeOptions.item).find(resizeOptions.classes[i]);
2712        elements.push(items);
2713      }
2714    }
2715    var elIndex = elements.push(el) - 1;
2716
2717    if (resizeOptions.mobile === true) {
2718      if (window.matchMedia("(max-width: 550px)").matches) {
2719        for (var block = 0; block < elements.length; block++) {
2720          var items = $(elements[block]);
2721          items.css({
2722            "line-height": "",
2723            height: "",
2724          });
2725        }
2726        return;
2727      }
2728    }
2729
2730    if (typeof resizeOptions.typeResize == "undefined" || resizeOptions.typeResize === false) {
2731      if (resizeOptions.slice) {
2732        for (var block = 0; block < elements.length; block++) {
2733          if (resizeOptions.currentRow) {
2734            var itemNumber = el.index(resizeOptions.currentItem);
2735            var rowCount = resizeOptions.slice;
2736            var rowNumber = Math.floor(itemNumber / rowCount);
2737
2738            var items = $(elements[block].slice(rowNumber * rowCount, rowNumber * rowCount + rowCount));
2739            var classNull = block == elIndex ? resizeOptions.classNull : false;
2740            items.css({
2741              "line-height": "",
2742              height: "",
2743            });
2744            items.equalizeHeights(resizeOptions.outer, classNull, resizeOptions);
2745          } else {
2746            for (var i = 0; i < elements[block].length; ) {
2747              if (resizeOptions.customSlice && resizeOptions.sliceNext && bSliceNext && i)
2748                //manual slice count
2749                resizeOptions.slice = resizeOptions.sliceNext;
2750
2751              var slice = resizeOptions.slice;
2752              var items = $(elements[block].slice(i, i + slice));
2753              if (resizeOptions.blockNull !== undefined) {
2754                if (resizeOptions.blockNull.class !== undefined) {
2755                  var counts = 0;
2756                  items.each(function (i, item) {
2757                    var _item = $(item);
2758                    if (
2759                      _item.hasClass(resizeOptions.blockNull.class) ||
2760                      _item.closest("." + resizeOptions.blockNull.class).length
2761                    ) {
2762                      counts++;
2763                    }
2764                  });
2765                }
2766              }
2767              if (counts) {
2768                slice -= (resizeOptions.blockNull.width - 1) * counts;
2769              }
2770
2771              items = $(elements[block].slice(i, i + slice));
2772              if (items) {
2773                var classNull = block == elIndex ? resizeOptions.classNull : false;
2774
2775                items.css({
2776                  "line-height": "",
2777                  height: "",
2778                });
2779                items.equalizeHeights(resizeOptions.outer, classNull, resizeOptions);
2780              }
2781              i += slice || 1;
2782            }
2783          }
2784        }
2785      }
2786      if (resizeOptions.lineheight) {
2787        var lineheightAdd = parseInt(resizeOptions.lineheight);
2788        if (isNaN(lineheightAdd)) {
2789          lineheightAdd = 0;
2790        }
2791        el.each(function () {
2792          $(this).css("line-height", $(this).actual("height") + lineheightAdd + "px");
2793        });
2794      }
2795    }
2796  }
2797  var options = $.extend(
2798    {
2799      slice: null,
2800      sliceNext: null,
2801      outer: false,
2802      lineheight: false,
2803      autoslicecount: true,
2804      classNull: false,
2805      minHeight: false,
2806      row: false,
2807      item: false,
2808      typeResize: false,
2809      typeValue: false,
2810      fixWidth: 0,
2811      resize: true,
2812      mobile: false,
2813      customSlice: false,
2814      breakpoint: {},
2815      classes: [],
2816    },
2817    options
2818  );
2819
2820  var el = $(this);
2821
2822  ignoreResize.push(true);
2823  _slice(el);
2824  ignoreResize.pop();
2825
2826  if (options.resize) {
2827    BX.addCustomEvent("onWindowResize", function (eventdata) {
2828      try {
2829        ignoreResize.push(true);
2830        _slice(el);
2831      } catch (e) {
2832      } finally {
2833        ignoreResize.pop();
2834      }
2835    });
2836  } else {
2837    if (!ignoreResize.length) {
2838      // ignoreResize.push(true);
2839      _slice(el);
2840      // ignoreResize.pop();
2841    }
2842  }
2843};
2844
2845waitingExists = function (selector, delay, callback) {
2846  if (typeof callback !== "undefined" && selector.length && delay > 0) {
2847    delay = parseInt(delay);
2848    delay = delay < 0 ? 0 : delay;
2849
2850    if (!$(selector).length) {
2851      setTimeout(function () {
2852        waitingExists(selector, delay, callback);
2853      }, delay);
2854    } else {
2855      callback();
2856    }
2857  }
2858};
2859
2860waitingNotExists = function (selectorExists, selectorNotExists, delay, callback) {
2861  if (
2862    typeof callback !== "undefined" &&
2863    selectorExists.length &&
2864    $(selectorExists).length &&
2865    selectorNotExists.length &&
2866    !$(selectorNotExists).length &&
2867    delay > 0
2868  ) {
2869    delay = parseInt(delay);
2870    delay = delay < 0 ? 0 : delay;
2871
2872    setTimeout(function () {
2873      if (selectorExists.length && !$(selectorNotExists).length) {
2874        callback();
2875      }
2876    }, delay);
2877  }
2878};
2879
2880function onLoadjqm(name, hash, _this) {
2881  if (hash.c.noOverlay === undefined || (hash.c.noOverlay !== undefined && !hash.c.noOverlay)) {
2882    $("body").addClass("jqm-initied");
2883  }
2884
2885  $("body").addClass("swipeignore");
2886
2887  if (typeof $(hash.t).data("ls") !== " undefined" && $(hash.t).data("ls")) {
2888    var ls = $(hash.t).data("ls"),
2889      ls_timeout = 0,
2890      v = "";
2891
2892    if ($(hash.t).data("ls_timeout")) ls_timeout = $(hash.t).data("ls_timeout");
2893
2894    ls_timeout = ls_timeout ? Date.now() + ls_timeout * 1000 : "";
2895
2896    if (typeof localStorage !== "undefined") {
2897      var val = localStorage.getItem(ls);
2898      try {
2899        v = JSON.parse(val);
2900      } catch (e) {
2901        v = val;
2902      }
2903      if (v != null) {
2904        localStorage.removeItem(ls);
2905      }
2906      v = {};
2907      v["VALUE"] = "Y";
2908      v["TIMESTAMP"] = ls_timeout; // default: seconds for 1 day
2909
2910      localStorage.setItem(ls, JSON.stringify(v));
2911    } else {
2912      var val = $.cookie(ls);
2913      if (!val) $.cookie(ls, "Y", { expires: ls_timeout }); // default: seconds for 1 day
2914    }
2915
2916    var dopClasses = hash.w.find(".marketing-popup").data("classes");
2917    if (dopClasses) {
2918      hash.w.addClass(dopClasses);
2919    }
2920  }
2921
2922  //update show password
2923  //show password eye
2924  if (hash.w.hasClass("auth_frame")) {
2925    hash.w.find(".form-group:not(.eye-password-ignore) [type=password]").each(function (item) {
2926      $(this).closest(".form-group").addClass("eye-password");
2927    });
2928  }
2929
2930  $.each($(hash.t).get(0).attributes, function (index, attr) {
2931    if (/^data\-autoload\-(.+)$/.test(attr.nodeName)) {
2932      var key = attr.nodeName.match(/^data\-autoload\-(.+)$/)[1];
2933      var el = $('input[name="' + key.toUpperCase() + '"]');
2934      if (!el.length) {
2935        //is form block
2936        el = $('input[data-sid="' + key.toUpperCase() + '"]');
2937      }
2938
2939      var value = $(hash.t).data("autoload-" + key);
2940      value = String(value).replace(/%99/g, "\\"); // replace symbol \
2941
2942      el.val(BX.util.htmlspecialcharsback(value)).attr("readonly", "readonly");
2943      el.closest(".form-group").addClass("input-filed");
2944      el.attr("title", el.val());
2945    }
2946  });
2947
2948  if (hash.c.noOverlay === undefined || (hash.c.noOverlay !== undefined && !hash.c.noOverlay)) {
2949    $("body").addClass('overflow-block');
2950    hash.w.closest("#popup_iframe_wrapper").css({ "z-index": 3000, display: "flex" });
2951  }
2952
2953  var eventdata = { action: "loadForm" };
2954  BX.onCustomEvent("onCompleteAction", [eventdata, $(hash.t)[0]]);
2955
2956  if ($(hash.t).data("autohide")) {
2957    $(hash.w).data("autohide", $(hash.t).data("autohide"));
2958  }
2959  if (name == "order_product") {
2960    if ($(hash.t).data("product")) {
2961      $('input[name="PRODUCT"]').closest(".form-group").addClass("input-filed");
2962      $('input[name="PRODUCT"]')
2963        .val($(hash.t).data("product"))
2964        .attr("readonly", "readonly")
2965        .attr("title", $('input[name="PRODUCT"]').val());
2966    }
2967  }
2968  if (name == "question") {
2969    if ($(hash.t).data("product")) {
2970      $('input[name="NEED_PRODUCT"]').closest(".form-group").addClass("input-filed");
2971      $('input[name="NEED_PRODUCT"]')
2972        .val($(hash.t).data("product"))
2973        .attr("readonly", "readonly")
2974        .attr("title", $('input[name="NEED_PRODUCT"]').val());
2975    }
2976  }
2977
2978  //show one_click_buy block
2979  if (name === "ocb") {
2980    const parent = hash.w.find(".flexbox:not(.form-body__fields)");
2981    const item = _this.closest(".js-popup-block");
2982
2983    var data = item.find("[data-item]").data("item");
2984    if (typeof data === "undefined" || !data) {
2985      data = {};
2986    }
2987
2988    parent.addClass("flexbox--direction-row-reverse");
2989
2990    parent.find(".form.popup").addClass("flex-grow-1");
2991
2992    let goodsNode = '<div class="goods-popup">';
2993
2994    //image block
2995    let imageNode = '<div class="goods-popup__image image-list-wrapper">';
2996    //stiker
2997    if (item.find(".sticker").length) {
2998      imageNode += '<div class="sticker sticker--upper">';
2999      imageNode += item.find(".sticker").html();
3000      imageNode += "</div>";
3001    }
3002    //image
3003    imageNode += '<div class="image">';
3004    imageNode +=
3005      '<img class="img-responsive" src="' +
3006      (item.find(".image-list__link link[itemprop=image]").length
3007        ? item.find(".image-list__link link[itemprop=image]:first").attr("href")
3008        : item.find(".image-list-wrapper img:first").length
3009        ? item.find(".image-list-wrapper img:first").attr("src")
3010        : arAsproOptions.SITE_TEMPLATE_PATH + "/images/svg/noimage_product.svg") +
3011      '" />';
3012    imageNode += "</div>";
3013    imageNode += "</div>";
3014    goodsNode += imageNode;
3015
3016    //info block
3017    let infoNode = '<div class="goods-popup__info">';
3018    //link
3019    if (item.find(".js-popup-title").attr("href")) {
3020      infoNode +=
3021        '<a class="dark_link switcher-title goods-popup__info-link font_15" href="' +
3022        item.find(".js-popup-title").attr("href") +
3023        '">';
3024      infoNode += data ? data.NAME : item.find(".js-popup-title").html();
3025      infoNode += "</a>";
3026    } else {
3027      infoNode += '<div class="color_333 switcher-title goods-popup__info-link font_15">';
3028      infoNode += data ? data.NAME : item.find(".js-popup-title").html();
3029      infoNode += "</div>";
3030    }
3031    //article
3032    if (item.find(".js-popup-info").length) {
3033      infoNode += '<div class="line-block line-block--20 flexbox--wrap goods-popup__info-more">';
3034      infoNode += item.find(".js-popup-info").html();
3035      infoNode += "</div>";
3036    }
3037    infoNode += "</div>";
3038    goodsNode += infoNode;
3039
3040    //price block
3041    if (item.find(".js-popup-price .price").length) {
3042      let priceNode = '<div class="goods-popup__price">';
3043      priceNode += item.find(".js-popup-price").html();
3044      priceNode += "</div>";
3045      goodsNode += priceNode;
3046    }
3047
3048    goodsNode += "</div>";
3049
3050    $(goodsNode).appendTo(parent);
3051  }
3052
3053  if (name == "fast_view" && $(".smart-filter-filter").length) {
3054    var navButtons =
3055      '<div class="navigation-wrapper-fast-view">' +
3056      '<div class="fast-view-nav prev bg-theme-hover" data-fast-nav="prev">' +
3057      '<i class="svg left">' +
3058      '<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6.969" viewBox="0 0 12 6.969"><path id="Rounded_Rectangle_702_copy_24" data-name="Rounded Rectangle 702 copy 24" class="cls-1" d="M361.691,401.707a1,1,0,0,1-1.414,0L356,397.416l-4.306,4.291a1,1,0,0,1-1.414,0,0.991,0.991,0,0,1,0-1.406l5.016-5a1.006,1.006,0,0,1,1.415,0l4.984,5A0.989,0.989,0,0,1,361.691,401.707Z" transform="translate(-350 -395.031)"/></svg>' +
3059      "</i>" +
3060      "</div>" +
3061      '<div class="fast-view-nav next bg-theme-hover" data-fast-nav="next">' +
3062      '<i class="svg right">' +
3063      '<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6.969" viewBox="0 0 12 6.969"><path id="Rounded_Rectangle_702_copy_24" data-name="Rounded Rectangle 702 copy 24" class="cls-1" d="M361.691,401.707a1,1,0,0,1-1.414,0L356,397.416l-4.306,4.291a1,1,0,0,1-1.414,0,0.991,0.991,0,0,1,0-1.406l5.016-5a1.006,1.006,0,0,1,1.415,0l4.984,5A0.989,0.989,0,0,1,361.691,401.707Z" transform="translate(-350 -395.031)"/></svg>' +
3064      "</i>" +
3065      "</div>" +
3066      "</div>";
3067
3068    // hash.w.addClass("no_custom_scroll");
3069    hash.w.closest("#popup_iframe_wrapper").append(navButtons);
3070  }
3071   var needScrollbar = true;
3072
3073  if (
3074    arAsproOptions["THEME"]["REGIONALITY_SEARCH_ROW"] == "Y" &&
3075    (hash.w.hasClass("city_chooser_frame") || hash.w.hasClass("city_chooser_small_frame"))
3076  ) {
3077    hash.w.addClass("small_popup_regions");
3078    //hash.w.addClass("no_custom_scroll");
3079    hash.w.addClass("jqmWindow--overflow-visible");
3080    needScrollbar = false;
3081  }
3082    hash.w.addClass("show").css({ opacity: 1 });
3083    if(needScrollbar)
3084      hash.w.find(">div").addClass("scrollbar");
3085
3086    if (hash.w.hasClass("right_slide")) {
3087
3088      hash.w.addClass("opened");
3089      if ($(".right-sidebar-wrapper").length) {
3090        if ($(".widget_frame iframe").length) {
3091          $(".widget_frame.right_slide").addClass("loading-state");
3092          $('.widget_frame iframe').on("load", function() {
3093            $(".widget_frame.right_slide").removeClass("loading-state");
3094          });
3095        }
3096
3097        if (hash.w.hasClass("narrow")) {
3098          if ($(".ajax_basket").length) {
3099            $(".ajax_basket").addClass("narrow");
3100          }
3101          if ($(".ajax_basket .fixed_wrapper").length) {
3102              $(".ajax_basket .fixed_wrapper").addClass("narrow");
3103          }
3104        }
3105        if (hash.w.hasClass("wide")) {
3106          if ($(".ajax_basket").length) {
3107            $(".ajax_basket").addClass("wide");
3108          }
3109        }
3110      }
3111      if ($(".ajax_basket").length) {
3112        $(".ajax_basket").css("z-index", "3000").addClass('widget_open');
3113      }
3114      if ($(hash.t).parent()) {
3115        $(hash.t).parent().addClass("active");
3116      }
3117      $(hash.t).addClass("jqm_disable");
3118
3119      if ($(hash.t).attr("data-show_slide") === "Y") {
3120        $(hash.t).parent().addClass("once_loaded");
3121      }
3122
3123      $(".ajax_basket").removeClass("opened");
3124
3125    }
3126
3127}
3128
3129function onHidejqm(name, hash) {
3130  if ($(hash.w).data("autohide")) {
3131    eval($(hash.w).data("autohide"));
3132  }
3133
3134  // hash.w.css('opacity', 0).hide();
3135  hash.w.animate({ opacity: 0 }, 200, function () {
3136    hash.w.removeClass("scroll-init srollbar-custom").mCustomScrollbar("destroy");
3137    hash.w.hide();
3138    if (!$(".once_loaded").length) {
3139      hash.w.empty();
3140    }
3141    hash.o.remove();
3142    hash.w.removeClass("show");
3143    hash.w.removeClass("success");
3144
3145
3146
3147    if (!hash.w.closest("#popup_iframe_wrapper").find(".jqmOverlay").length) {
3148      $('body').removeClass('overflow-block');
3149      hash.w.closest("#popup_iframe_wrapper").css({ "z-index": "", display: "" });
3150    }
3151
3152    if (window.matchMedia("(max-width: 991px)").matches) {
3153      $("body").removeClass("all_viewed");
3154    }
3155    if (!$(".jqmOverlay:not(.mobp)").length || $(".jqmOverlay.waiting").length) {
3156      $("body").removeClass("jqm-initied");
3157    }
3158
3159    $("body").removeClass("swipeignore");
3160    $("body").removeClass("overflow-block");
3161
3162    if (name == "fast_view") {
3163      $(".fast_view_popup").remove();
3164
3165      var navButtons = hash.w.closest("#popup_iframe_wrapper").find(".navigation-wrapper-fast-view");
3166      navButtons.remove();
3167    }
3168  });
3169
3170  if (hash.w.hasClass("right_slide")) {
3171    hash.w.removeClass("opened");
3172    if ($(".right-sidebar-wrapper").length) {
3173      $(".right-sidebar-wrapper").removeClass("opened");
3174      $(".right-sidebar-wrapper .link").removeClass("active");
3175      $(".widget_frame.right_slide").removeClass("loading-state");
3176      $(".right-sidebar-wrapper .link span").removeClass("jqm_disable");
3177    }
3178    if ($(".ajax_basket").length) {
3179      $(".ajax_basket").css("z-index", "").removeClass("widget_open").removeClass("wide").removeClass("narrow");
3180    }
3181  }
3182
3183  window.b24form = false;
3184}
3185
3186function parseUrlQuery() {
3187  var data = {};
3188  if (location.search) {
3189    var pair = location.search.substr(1).split("&");
3190    for (var i = 0; i < pair.length; i++) {
3191      var param = pair[i].split("=");
3192      data[param[0]] = param[1];
3193    }
3194  }
3195  return data;
3196}
3197
3198function scroll_block(block) {
3199  if (block.length) {
3200    var topPos = block.offset().top,
3201      headerH = $("header").outerHeight(true, true);
3202    if ($(".stores_tab").length) {
3203      $(".stores_tab").addClass("active").siblings().removeClass("active");
3204    } else {
3205      $(".prices_tab").addClass("active").siblings().removeClass("active");
3206      if ($(".prices_tab .opener").length && !$(".prices_tab .opener .opened").length) {
3207        var item = $(".prices_tab .opener").first();
3208        item.find(".opener_icon").addClass("opened");
3209        item.parents("tr").addClass("nb");
3210        item.parents("tr").next(".offer_stores").find(".stores_block_wrap").slideDown(200);
3211      }
3212    }
3213    $("html,body").animate({ scrollTop: topPos - 80 }, 150);
3214  }
3215}
3216
3217$.fn.jqmEx = function () {
3218  $(this).each(function () {
3219    var _this = $(this);
3220    var name = _this.data("name");
3221    name = typeof name === "undefined" || !name.length ? "noname" : name;
3222
3223    if (_this.attr("disabled") != "disabled" || !_this.hasClass("clicked")) {
3224      var extClass = "",
3225        paramsStr = "",
3226        trigger = "",
3227        arTriggerAttrs = {};
3228
3229      // call counter
3230      if (typeof $.fn.jqmEx.counter === "undefined") {
3231        $.fn.jqmEx.counter = 0;
3232      } else {
3233        ++$.fn.jqmEx.counter;
3234      }
3235
3236      // trigger attrs and params
3237      $.each(_this.get(0).attributes, function (index, attr) {
3238        var attrName = attr.nodeName;
3239        var attrValue = _this.attr(attrName);
3240        if (attrName !== "onclick") {
3241          trigger += "[" + attrName + '="' + attrValue + '"]';
3242          arTriggerAttrs[attrName] = attrValue;
3243        }
3244        if (/^data\-param\-(.+)$/.test(attrName)) {
3245          var key = attrName.match(/^data\-param\-(.+)$/)[1];
3246          paramsStr += key + "=" + attrValue + "&";
3247        }
3248      });
3249      var triggerAttrs = JSON.stringify(arTriggerAttrs);
3250      var encTriggerAttrs = "";
3251      // var encTriggerAttrs = encodeURIComponent(triggerAttrs);
3252      // console.log(trigger);
3253
3254      // popup url
3255      var script = arAsproOptions["SITE_DIR"] + "ajax/form.php";
3256      if (name == "auth") {
3257        script += "?" + paramsStr + "auth=Y";
3258      } else {
3259        script += "?" + paramsStr + 'data-trigger=""';
3260      }
3261
3262      // ext frame class
3263      if (_this.closest("#fast_view_item").length) {
3264        extClass = "fast_view_popup";
3265      }
3266
3267      if (_this.data("show_slide") == "Y") {
3268        extClass += " right_slide";
3269      }
3270
3271      if (_this.data("width")) {
3272        extClass += " " + _this.data("width");
3273      }
3274
3275      // use overlay?
3276      const modalParams = _this[0].dataset,
3277        bNoOverlay = modalParams && modalParams.nooverlay && modalParams.nooverlay === 'Y',
3278        bShowSlide = modalParams && modalParams.show_slide && modalParams.show_slide === 'Y',
3279        bShowOnce = modalParams && modalParams.once && modalParams.once === 'Y';
3280
3281      const nodeFrame = `<div class="${name}_frame ${extClass} jqmWindow popup" data-popup="${$.fn.jqmEx.counter}" data-trigger="${encTriggerAttrs}"></div>`;
3282
3283      // unique frame to each trigger
3284      let frame = '';
3285      if (bShowSlide) {
3286        frame = $(nodeFrame).insertAfter(".right-sidebar-wrapper");
3287      } else if (bNoOverlay) {
3288        frame = $(nodeFrame).appendTo("body");
3289      } else {
3290        frame = $(nodeFrame).appendTo("#popup_iframe_wrapper");
3291      }
3292
3293      frame.jqm({
3294        ajax: script,
3295        trigger: trigger,
3296        noOverlay: bNoOverlay,
3297        once: bShowOnce,
3298        onLoad: function (hash) {
3299          onLoadjqm(name, hash, _this);
3300        },
3301        onHide: function (hash) {
3302          onHidejqm(name, hash, _this);
3303        },
3304      });
3305    }
3306    return;
3307  });
3308};
3309
3310InitOwlSlider = function (callback) {
3311  const $owlCarousel = $(".owl-carousel:not(.owl-loaded):not(.appear-block)");
3312  if ($owlCarousel.length) {
3313    BX.Aspro.Loader.addExt('owl_gallery').then(() => {
3314      $owlCarousel.each(function () {
3315        var slider = $(this);
3316        var options;
3317        var svg =
3318          '<svg width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 1L1 6L6 11" stroke="#333333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';
3319        var defaults = {
3320          navText: [
3321            '<i class="owl-carousel__button owl-carousel__button--left colored_theme_bg_hover">' + svg + "</i>",
3322            '<i class="owl-carousel__button owl-carousel__button--right colored_theme_bg_hover">' + svg + "</i>",
3323          ],
3324          dotsContainer: slider.siblings(".owl-carousel__dots"),
3325        };
3326        var config = $.extend({}, defaults, options, slider.data("plugin-options"));
3327
3328        slider.siblings(".owl-carousel__dots").on("click", ".owl-carousel__dot", function () {
3329          var _this = $(this);
3330          var sliderData = slider.data("owl.carousel");
3331
3332          slider.trigger("to.owl.carousel", [_this.index(), 300]);
3333          if (sliderData.settings.autoplayHoverPause) {
3334            slider.trigger("mouseover.owl.autoplay");
3335          }
3336        });
3337
3338        if (slider.hasClass("destroyed")) {
3339          slider.owlCarousel(config);
3340          slider.removeClass("destroyed");
3341          return;
3342        }
3343
3344        slider.on("initialized.owl.carousel", function (event) {
3345          var eventdata = { slider: $(event.target), data: event };
3346
3347          BX.onCustomEvent("onSliderInitialized", [eventdata]);
3348          BX.onCustomEvent("onSlide", [eventdata]);
3349
3350          $(event.target).removeClass("loading-state");
3351          $(event.target).find(".owl-item:first").addClass("current");
3352
3353          if (typeof sliceItemBlockSlide === "function") {
3354            sliceItemBlockSlide();
3355          }
3356        });
3357
3358        // if slider was inited on animated scrolling to block, than need rescroll
3359        if ($("body.scrolling-state").length) {
3360          slider.on("initialized.owl.carousel", function (event) {
3361            setTimeout(function () {
3362              scrollToBlock.rescroll();
3363            }, 100);
3364          });
3365        }
3366
3367        slider.on("change.owl.carousel", function (event) {
3368          // var eventdata = {slider: $(event.target)};
3369          // BX.onCustomEvent('onSlide', [eventdata]);
3370        });
3371
3372        slider.owlCarousel(config);
3373
3374        slider.on("resized.owl.carousel", function (event) {
3375          if (typeof sliceItemBlockSlide === "function") {
3376            sliceItemBlockSlide({ resize: false });
3377          }
3378        });
3379
3380        slider.on("mouseover.owl.autoplay", function (event) {
3381          var slider = $(event.target).closest(".owl-carousel");
3382          var sliderData = slider.data("owl.carousel");
3383          var dots = slider.siblings(".owl-carousel__dots--autoplay");
3384          if (typeof sliderData !== "undefined") {
3385            var bNeedStopDotsAnimation =
3386              sliderData.settings.autoplay && sliderData.settings.autoplayHoverPause && dots.length;
3387            if (bNeedStopDotsAnimation) {
3388              var animationBlock = dots.find(".owl-carousel__dot .owl-carousel__dot-pie");
3389              if (animationBlock.length) {
3390                animationBlock.css("animation-play-state", "paused");
3391              }
3392            }
3393          }
3394        });
3395
3396        slider.on("mouseleave.owl.autoplay", function (event) {
3397          var slider = $(event.target).closest(".owl-carousel");
3398          var sliderData = slider.data("owl.carousel");
3399          var dots = slider.siblings(".owl-carousel__dots--autoplay");
3400          if (typeof sliderData !== "undefined") {
3401            var bNeedStopDotsAnimation =
3402              sliderData.settings.autoplay && sliderData.settings.autoplayHoverPause && dots.length;
3403            var rotating = sliderData._states.current.rotating;
3404            if (bNeedStopDotsAnimation && rotating) {
3405              var animationBlock = dots.find(".owl-carousel__dot .owl-carousel__dot-pie");
3406              if (animationBlock.length) {
3407                animationBlock.css("animation-play-state", "");
3408              }
3409            }
3410          }
3411        });
3412
3413        slider.on("stop.owl.autoplay", function (event) {
3414          var slider = $(event.target);
3415          var sliderData = slider.data("owl.carousel");
3416          var dots = slider.siblings(".owl-carousel__dots--autoplay");
3417          if (typeof sliderData !== "undefined") {
3418            var bNeedStopDotsAnimation =
3419              sliderData.settings.autoplay && sliderData.settings.autoplayHoverPause && dots.length;
3420            if (bNeedStopDotsAnimation) {
3421              var animationBlock = dots.find(".owl-carousel__dot .owl-carousel__dot-pie");
3422              if (animationBlock.length) {
3423                dots.find(".owl-carousel__dot.active").addClass("reset-animation");
3424                animationBlock.css("animation-play-state", "paused");
3425              }
3426            }
3427          }
3428        });
3429
3430        slider.on("play.owl.autoplay", function (event) {
3431          var slider = $(event.target);
3432          var sliderData = slider.data("owl.carousel");
3433          var dots = slider.siblings(".owl-carousel__dots--autoplay");
3434          if (typeof sliderData !== "undefined") {
3435            var bNeedStopDotsAnimation =
3436              sliderData.settings.autoplay && sliderData.settings.autoplayHoverPause && dots.length;
3437            dots.find(".owl-carousel__dot.reset-animation").removeClass("reset-animation");
3438            if (bNeedStopDotsAnimation && !slider.is(":hover") && !dots.is(":hover")) {
3439              var animationBlock = dots.find(".owl-carousel__dot .owl-carousel__dot-pie");
3440              if (animationBlock.length) {
3441                animationBlock.css("animation-play-state", "");
3442              }
3443            }
3444          }
3445        });
3446
3447        slider.on("touchstart.owl.core", function (event) {
3448          slider.trigger("stop.owl.autoplay");
3449        });
3450
3451        slider.siblings(".owl-carousel__dots--autoplay").on("mouseover", function (event) {
3452          var sliderData = slider.data("owl.carousel");
3453          if (sliderData.settings.autoplayHoverPause) {
3454            slider.trigger("mouseover.owl.autoplay");
3455          }
3456        });
3457
3458        slider.on("changed.owl.carousel", function (event) {
3459          var $slider = $(event.target);
3460          var sliderData = $slider.data("owl.carousel");
3461          var pluginOptions = $slider.data("pluginOptions");
3462
3463          var eventdata = { slider: $slider, data: event };
3464          BX.onCustomEvent("onSlide", [eventdata]);
3465
3466          if (pluginOptions) {
3467            // click .ajax_load_btn
3468            if ($slider.parent().find(".ajax_load_btn").length) {
3469              if (sliderData._current + 1 + sliderData.settings.items >= sliderData._items.length) {
3470                $slider.parent().find(".ajax_load_btn").trigger("click");
3471              }
3472            }
3473            if (typeofExt(pluginOptions) === "object") {
3474              if ("index" in pluginOptions) {
3475                if ($(".gallery-view_switch").length) {
3476                  $(".gallery-view_switch__count-wrapper--big .gallery-view_switch__count-value").text(
3477                    event.item.index + 1 + "/" + event.item.count
3478                  );
3479                }
3480              }
3481
3482              if ("relatedTo" in pluginOptions) {
3483                var relatedClass = pluginOptions.relatedTo,
3484                  relatedBlock = $(relatedClass);
3485
3486                if (relatedBlock.length && sliderData) {
3487                  if (!sliderData.loop) {
3488                    var current = event.item.index;
3489                  } else {
3490                    var count = event.item.count - 1;
3491                    var current = Math.round(event.item.index - event.item.count / 2 - 0.5);
3492
3493                    if (current < 0) current = count;
3494
3495                    if (current > count) current = 0;
3496                  }
3497
3498                  relatedBlock.find(".owl-item").removeClass("current").eq(current).addClass("current");
3499
3500                  var onscreen = relatedBlock.find(".owl-item.active").length - 1;
3501                  var start = relatedBlock.find(".owl-item.active").first().index();
3502                  var end = relatedBlock.find(".owl-item.active").last().index();
3503
3504                  if (current > end) relatedBlock.data("owl.carousel").to(current, 100, true);
3505
3506                  if (current < start) relatedBlock.data("owl.carousel").to(current - onscreen, 100, true);
3507                  // $(".owl-slider-"+id).trigger('to.owl.carousel', [itemCarousel])
3508                }
3509              }
3510            }
3511          }
3512        });
3513
3514        slider.on("translated.owl.carousel", function (event) {});
3515
3516        if ("clickTo" in config) {
3517          var relatedClass = config.clickTo,
3518            magnifier = "magnifier" in config;
3519
3520          slider.on("click", ".owl-item", function (e) {
3521            e.preventDefault();
3522            var _this = $(this),
3523              number = _this.index();
3524
3525            if (magnifier) {
3526              if ($(relatedClass).closest(".product-container").find(".zoom_picture").length) {
3527                $(relatedClass)
3528                  .closest(".product-container")
3529                  .find(".zoom_picture")
3530                  .attr("data-large", _this.find(".product-detail-gallery__item").data("big"));
3531                $(relatedClass)
3532                  .closest(".product-container")
3533                  .find(".zoom_picture")
3534                  .attr("xoriginal", _this.find(".product-detail-gallery__item").data("big"));
3535                $(relatedClass)
3536                  .closest(".product-container")
3537                  .find(".zoom_picture")
3538                  .attr("src", _this.find(".product-detail-gallery__item img").attr("src"));
3539              }
3540              _this.siblings("").removeClass("current");
3541              _this.addClass("current");
3542            } else {
3543              $(relatedClass).data("owl.carousel").to(number, 300, true);
3544            }
3545          });
3546        }
3547      });
3548
3549      if (typeof callback === 'function') {
3550        callback();
3551      }
3552    })
3553  } else {
3554    if (typeof callback === 'function') {
3555      callback();
3556    }
3557  }
3558};
3559
3560InitFlexSlider = function () {
3561  $(".flexslider:not(.thmb):not(.flexslider-init):not(.appear-block):v
3561isible").each(function () {
3562    var slider = $(this);
3563    var options;
3564    var defaults = {
3565      animationLoop: false,
3566      controlNav: false,
3567      directionNav: true,
3568      animation: "slide",
3569    };
3570    var config = $.extend({}, defaults, options, slider.data("plugin-options"));
3571    if (typeof config.counts != "undefined" && config.direction !== "vertical") {
3572      var slide_counts = "";
3573      if (typeof slider.data("plugin-options") != "undefined") {
3574        if ("slide_counts" in slider.data("plugin-options")) slide_counts = slider.data("plugin-options").slide_counts;
3575      }
3576      config.maxItems = getGridSize(config.counts);
3577      config.minItems = getGridSize(config.counts);
3578
3579      if (slide_counts) config.move = slide_counts;
3580      else config.move = getGridSize(config.counts);
3581
3582      config.itemWidth = 200;
3583    }
3584
3585    // custom direction nav
3586    if (typeof config.customDirection != "undefined") config.customDirectionNav = $(config.customDirection);
3587
3588    (config.prevText = BX.message("FANCY_PREV")), //String: Set the text for the "previous" directionNav item
3589      (config.nextText = BX.message("FANCY_NEXT")),
3590      (config.after = config.start =
3591        function (slider) {
3592          var eventdata = { slider: slider };
3593          BX.onCustomEvent("onSlide", [eventdata]);
3594        });
3595
3596    config.before = function (slider) {
3597      var eventdata = { slider: slider };
3598      BX.onCustomEvent("onSlideBefore", [eventdata]);
3599    };
3600
3601    config.end = function (slider) {
3602      var eventdata = { slider: slider };
3603      BX.onCustomEvent("onSlideEnd", [eventdata]);
3604    };
3605
3606    /*if(typeof(config.nav) == 'undefined')
3607			slider.addClass('dark-nav');*/
3608    slider.flexslider(config).addClass("flexslider-init");
3609    if (config.controlNav) slider.addClass("flexslider-control-nav");
3610    if (config.directionNav) slider.addClass("flexslider-direction-nav");
3611  });
3612};
3613
3614InitFlexSliderClass = function (class_name) {
3615  //$('.flexslider:not(.thmb):not(.flexslider-init)').each(function(){
3616
3617  var slider = $(class_name);
3618  var options;
3619  var defaults = {
3620    animationLoop: false,
3621    controlNav: false,
3622    directionNav: true,
3623    animation: "slide",
3624  };
3625  var config = $.extend({}, defaults, options, slider.data("plugin-options"));
3626
3627  var slide_counts = "";
3628  if (typeof slider.data("plugin-options") != "undefined") {
3629    if ("slide_counts" in slider.data("plugin-options")) slide_counts = slider.data("plugin-options").slide_counts;
3630  }
3631
3632  if (typeof config.counts != "undefined" && config.direction !== "vertical") {
3633    config.maxItems = getGridSize(config.counts);
3634    config.minItems = getGridSize(config.counts);
3635    config.move = getGridSize(config.counts);
3636
3637    config.itemWidth = 200;
3638  }
3639  if (slide_counts) config.move = slide_counts;
3640
3641  // custom direction nav
3642  if (typeof config.customDirection != "undefined") config.customDirectionNav = $(config.customDirection);
3643
3644  (config.prevText = BX.message("FANCY_PREV")), //String: Set the text for the "previous" directionNav item
3645    (config.nextText = BX.message("FANCY_NEXT")),
3646    (config.after = config.start =
3647      function (slider) {
3648        var eventdata = { slider: slider };
3649        BX.onCustomEvent("onSlide", [eventdata]);
3650      });
3651
3652  config.before = function (slider) {
3653    var eventdata = { slider: slider };
3654    BX.onCustomEvent("onSlideBefore", [eventdata]);
3655  };
3656
3657  config.end = function (slider) {
3658    var eventdata = { slider: slider };
3659    BX.onCustomEvent("onSlideEnd", [eventdata]);
3660  };
3661
3662  slider.flexslider(config).addClass("flexslider-init");
3663  if (config.controlNav) slider.addClass("flexslider-control-nav");
3664  if (config.directionNav) slider.addClass("flexslider-direction-nav");
3665  //});
3666};
3667
3668InitFlexSliderMin = function () {
3669  $(".bxSlider.top-small").on("mousedown", ".slides li", function () {
3670    var index = $(this).data("slide_key");
3671    $(this).siblings().removeClass("flex-active-slide");
3672    $(this).addClass("flex-active-slide");
3673    $(this)
3674      .siblings('[data-slide_key="' + index + '"]')
3675      .addClass("flex-active-slide");
3676    $(".top-bigs").data("flexslider").flexAnimate(index);
3677  });
3678};
3679
3680SliceHeightBlocks = function () {
3681  $('*[data-slice="Y"]').each(function () {
3682    var slice_els = $(this).find('*[data-slice-block="Y"]');
3683    if (slice_els.length) {
3684      var slice_params = {};
3685      if (slice_els.data("slice-params")) slice_params = slice_els.data("slice-params");
3686      slice_els.sliceHeight(slice_params);
3687    }
3688  });
3689};
3690
3691createTableCompare = function (originalTable, appendDiv, cloneTable) {
3692  try {
3693    if ($(".tarifs .head-block:visible").length) {
3694      var clone = originalTable.clone().addClass("clone");
3695      if (cloneTable.length) {
3696        cloneTable.remove();
3697        appendDiv.html("");
3698        appendDiv.html(clone);
3699      } else {
3700        appendDiv.append(clone);
3701      }
3702    }
3703  } catch (e) {
3704  } finally {
3705  }
3706};
3707
3708InitTopestMenuGummi = function () {
3709  if (!isOnceInited) {
3710    function _init() {
3711      var arItems = $menuTopest.find(".menu-topest__item");
3712      var cntItems = arItems.length;
3713      if (cntItems) {
3714        var itemsWidth = 0;
3715        for (var i = 0; i < cntItems; ++i) {
3716          var item = arItems.eq(i);
3717          var itemWidth = item.actual("outerWidth", { includeMargin: true });
3718
3719          arItemsHideWidth[i] = (itemsWidth += itemWidth) + (i == cntItems - 1 ? 0 : moreWidth);
3720        }
3721      }
3722    }
3723
3724    function _gummi() {
3725      var rowWidth = $menuTopest.actual("innerWidth");
3726      var arItems = $menuTopest.find(".menu-topest__item");
3727      var cntItems = arItems.length;
3728      var arItemsToRemove = [];
3729
3730      if (cntItems) {
3731        var bMore = false;
3732        var moreItems = [];
3733        for (var i = cntItems - 1; i >= 0; --i) {
3734          var item = arItems.eq(i);
3735          var bInMore = item.parents(".menu-topest__more").length > 0;
3736          if (!bInMore) {
3737            if (arItemsHideWidth[i] > rowWidth + 1) {
3738              if (!bMore) {
3739                bMore = true;
3740                more.removeClass("hidden");
3741              }
3742              var clone = item.clone();
3743              clone.find(">a").addClass("dark_font");
3744              moreItems.push(clone[0]);
3745              arItemsToRemove.push(i);
3746            } else {
3747              break;
3748            }
3749          }
3750        }
3751        $(moreItems).prependTo(moreDropdown);
3752
3753        if (!bMore) {
3754          for (var i = 0; i < cntItems; ++i) {
3755            var item = arItems.eq(i);
3756            var bInMore = item.parents(".menu-topest__more li").length > 0;
3757            if (bInMore) {
3758              if (arItemsHideWidth[i] <= rowWidth) {
3759                if (i === cntItems - 1) {
3760                  bMore = false;
3761                  more.addClass("hidden");
3762                }
3763                var clone = item.clone();
3764                clone.find(">a").removeClass("dark_font");
3765                clone.insertBefore(more);
3766                item.addClass("cloned");
3767              }
3768            }
3769          }
3770        }
3771
3772        if (arItemsToRemove.length) {
3773          arItemsToRemove.map(function (elIndex) {
3774            $(arItems[elIndex]).remove();
3775          });
3776        }
3777
3778        $menuTopest.find(".menu-topest__item.cloned").remove();
3779        $menuTopest.closest(".menu-topest__wrapper").addClass("dotted-complete");
3780        var wrapper = $menuTopest.closest(".hide-dotted");
3781        if (wrapper.length) {
3782          wrapper.addClass("dotted-complete");
3783        }
3784      }
3785    }
3786
3787    var $menuTopest = $(".menu-topest");
3788    if ($menuTopest.length) {
3789      var more = $menuTopest.find(".menu-topest__more");
3790      var moreDropdown = more.find(">.dropdown");
3791      var moreWidth = more.actual("outerWidth", { includeMargin: true });
3792      var arItemsHideWidth = [];
3793
3794      ignoreResize.push(true);
3795      _init();
3796      _gummi();
3797      ignoreResize.pop();
3798
3799      BX.addCustomEvent("onWindowResize", function (eventdata) {
3800        try {
3801          ignoreResize.push(true);
3802          _gummi();
3803        } catch (e) {
3804        } finally {
3805          ignoreResize.pop();
3806        }
3807      });
3808    }
3809  }
3810};
3811
3812CheckHeaderFixedMenu = function () {
3813  if (
3814    arAsproOptions["THEME"]["HEADER_FIXED"] == 2 &&
3815    $("#headerfixed .js-nav").length &&
3816    window.matchMedia("(min-width: 992px)").matches
3817  ) {
3818    $("#headerfixed .js-nav").css("width", "0");
3819    var all_width = 0,
3820      cont_width = $("#headerfixed .maxwidth-theme").actual("width"),
3821      padding_menu =
3822        $("#headerfixed .logo-row.v2 .menu-block").actual("outerWidth") -
3823        $("#headerfixed .logo-row.v2 .menu-block").actual("width");
3824    $("#headerfixed .logo-row.v2 > .inner-table-block").each(function () {
3825      if (!$(this).hasClass("menu-block")) all_width += $(this).actual("outerWidth");
3826    });
3827    $("#headerfixed .js-nav").width(cont_width - all_width - padding_menu);
3828  }
3829};
3830
3831/*function CheckTopMenuPadding() {
3832  if ($(".logo_and_menu-row .right-icons .wrap_icon").length && $(".logo_and_menu-row .menu-row").length) {
3833    var menuPosition = $(".menu-row .menu-only").position().left,
3834      maxWidth = $(".logo_and_menu-row .maxwidth-theme").width() - 32,
3835      leftPadding = 0,
3836      rightPadding = 0;
3837
3838    $(".logo_and_menu-row .menu-row>div")
3839      .each(function (indx) {
3840        if (!$(this).hasClass("menu-only")) {
3841          var elementPosition = $(this).position().left,
3842            elementWidth = $(this).outerWidth();
3843
3844          if (elementPosition > menuPosition) {
3845            rightPadding += elementWidth;
3846          } else {
3847            leftPadding += elementWidth;
3848          }
3849        }
3850      })
3851      .promise()
3852      .done(function () {
3853        $(".logo_and_menu-row .menu-only").css({ "padding-left": leftPadding, "padding-right": rightPadding + 1 });
3854      });
3855  }
3856};*/
3857
3858/*function CheckTopMenuOncePadding() {
3859  if ($(".menu-row.sliced .right-icons .wrap_icon").length) {
3860    var menuPosition = $(".menu-row .menu-only").position().left,
3861      maxWidth = $(".logo_and_menu-row .maxwidth-theme").width() - 32,
3862      leftPadding = 0,
3863      rightPadding = 0;
3864
3865    $(".menu-row.sliced .maxwidth-theme>div>div")
3866      .each(function (indx) {
3867        if (!$(this).hasClass("menu-only")) {
3868          var elementPosition = $(this).position().left,
3869            elementWidth = $(this).outerWidth();
3870
3871          if (elementPosition > menuPosition) {
3872            rightPadding += elementWidth;
3873          } else {
3874            leftPadding += elementWidth;
3875          }
3876        }
3877      })
3878      .promise()
3879      .done(function () {
3880        $(".menu-row.sliced .menu-only").css({ "padding-left": leftPadding, "padding-right": rightPadding + 1 });
3881      });
3882  }
3883};
3884*/
3885
3886CheckSearchWidth = function () {
3887  if ($(".logo_and_menu-row .search_wrap").length) {
3888    var searchPosition = $(".logo_and_menu-row .search_wrap").position().left,
3889      maxWidth = $(".logo_and_menu-row .maxwidth-theme").width() - 32;
3890    width = 0;
3891
3892    $(".logo_and_menu-row .maxwidth-theme>div")
3893      .each(function () {
3894        if (!$(this).hasClass("search_wrap")) {
3895          var elementWidth = $(this).outerWidth();
3896
3897          width = width ? width - elementWidth : maxWidth - elementWidth;
3898        }
3899      })
3900      .promise()
3901      .done(function () {
3902        $(".logo_and_menu-row .search_wrap").outerWidth(width).css({ opacity: 1, visibility: "visible" });
3903      });
3904  }
3905};
3906
3907waitCounter = function (idCounter, delay, callback) {
3908  var obCounter = window["yaCounter" + idCounter];
3909  if (typeof obCounter == "object") {
3910    if (typeof callback == "function") callback();
3911  } else {
3912    setTimeout(function () {
3913      waitCounter(idCounter, delay, callback);
3914    }, delay);
3915  }
3916};
3917
3918waitYTPlayer = function (delay, callback) {
3919  if (typeof YT !== "undefined" && YT && YT.Player) {
3920    if (typeof callback == "function") callback();
3921  } else {
3922    setTimeout(function () {
3923      waitYTPlayer(delay, callback);
3924    }, delay);
3925  }
3926};
3927
3928var scrollToTopAnimateClassIn = false;
3929var scrollToTopAnimateClassOut = false;
3930
3931var $body = {};
3932var $scrolltotop = {};
3933var isOnceInited = false;
3934
3935if (navigator.userAgent.indexOf("Edge") != -1) document.documentElement.className += " edge";
3936
3937initFull = function () {
3938  checkMobileRegion();
3939};
3940
3941var isFrameDataReceived = false;
3942if (typeof window.frameCacheVars !== "undefined") {
3943  BX.addCustomEvent(window, "onFrameDataRequestFail", function (response) {
3944    // console.log(response);
3945  });
3946
3947  BX.addCustomEvent("onFrameDataReceivedBefore", function () {
3948    // stop ya metrika webvisor DOM indexer
3949    pauseYmObserver();
3950  });
3951
3952  BX.addCustomEvent("onFrameDataReceived", function (json) {
3953    initFull();
3954    CheckTopMenuDotted();
3955    // resume ya metrika webvisor
3956    // (100ms sliceHeight) + (200ms mCustomScroll) + (100ms lazyload)
3957    setTimeout(resumeYmObserver, 400);
3958
3959    isFrameDataReceived = true;
3960  });
3961} else {
3962  $(document).ready(initFull);
3963}
3964
3965scrollPreviewBlock = function () {
3966  scrollToBlock($.cookie("scroll_block"));
3967  $.cookie("scroll_block", null);
3968};
3969
3970checkMobileRegion = function () {
3971  if ($(".confirm_region").length) {
3972    if (!$(".top_mobile_region").length)
3973      $('<div class="top_mobile_region"><div class="confirm_region"></div></div>').insertBefore($(".body"));
3974    $(".top_mobile_region .confirm_region").html($(".regions .confirm_region").html());
3975  }
3976};
3977
3978$(document).on("click", ".map-items__item", function () {
3979  var _this = $(this),
3980    itemID = _this.data("id"),
3981    animationTime = 200;
3982
3983  _this.closest(".map-wrapper").find(".index-block__subtitle").addClass("hidden");
3984  _this.closest(".map-wrapper").find(".index-block__title-wrapper").addClass("hidden");
3985  _this.closest(".map-wrapper").find(".index-block__preview").addClass("hidden");
3986
3987  _this.closest(".map-container").find(" > .map-detail-items__item-svg").fadeIn(animationTime);
3988
3989  _this.closest(".map-items").fadeOut(animationTime, function () {
3990    _this.closest(".map-container").find(".map-detail-items").fadeIn(animationTime);
3991    _this
3992      .closest(".map-container")
3993      .find(".map-detail-items .map-detail-items__item[data-id=" + itemID + "]")
3994      .fadeIn(animationTime);
3995
3996    var arCoordinates = _this.data("coordinates").split(",");
3997
3998    if (typeof map === "object" && map !== null && "setCenter" in map) {
3999      if ($(".bx-google-map").length) {
4000        map.setCenter({ lat: +arCoordinates[0], lng: +arCoordinates[1] });
4001        map.setZoom(17);
4002      } else {
4003        map.setCenter([arCoordinates[0], arCoordinates[1]], 15);
4004      }
4005    }
4006  });
4007});
4008
4009$(document).on("click", ".map-detail-items__item-svg", function () {
4010  var _this = $(this).closest(".map-container").find(".map-detail-items__item:visible"),
4011    animationTime = 200;
4012
4013  _this.fadeOut(animationTime);
4014
4015  _this.closest(".map-container").find(" > .map-detail-items__item-svg").fadeOut(10);
4016
4017  _this
4018    .closest(".map-container")
4019    .find(".map-detail-items")
4020    .fadeOut(animationTime, function () {
4021      _this.closest(".map-container").find(".map-items").fadeIn(animationTime);
4022
4023      _this.closest(".map-wrapper").find(".index-block__subtitle").removeClass("hidden");
4024      _this.closest(".map-wrapper").find(".index-block__title-wrapper").removeClass("hidden");
4025      _this.closest(".map-wrapper").find(".index-block__preview").removeClass("hidden");
4026
4027      if (typeof map === "object" && map !== null) {
4028        if (typeof clusterer === "object" && clusterer !== null && "setBounds" in map && "getBounds" in clusterer) {
4029          map.setBounds(clusterer.getBounds(), {
4030            zoomMargin: 40,
4031            checkZoomRange: true
4032          });
4033        } else if (typeof bounds === "object" && bounds !== null && "fitBounds" in map && "getCenter" in bounds) {
4034          map.fitBounds(bounds);
4035        }
4036      }
4037    });
4038});
4039
4040$(document).ready(function () {
4041  scrollToTop();
4042  InitScrollBar();
4043  initCountdown();
4044
4045  // ripple effect for buttons
4046  $.ripple(".btn:not(.btn--no-rippple)", {
4047    debug: false, // Turn Ripple.js logging on/off
4048    on: "mouseenter", // The event to trigger a ripple effect
4049    opacity: 0.4, // The opacity of the ripple
4050    color: "auto", // Set the background color. If set to "auto", it will use the text color
4051    multi: true, // Allow multiple ripples per element
4052    duration: 0.6, // The duration of the ripple
4053    easing: "linear", // The CSS3 easing function of the ripple
4054  });
4055
4056  if (!jQuery.browser.safari) {
4057    CheckTopMenuPadding();
4058    CheckTopMenuOncePadding();
4059    CheckHeaderFixed();
4060    CheckTopMenuDotted();
4061    MegaMenuFixed();
4062    CheckSearchWidth();
4063    InitTopestMenuGummi();
4064    isOnceInited = true;
4065    /*
4066    setTimeout(function () {
4067      $(window).resize(); // need to check resize flexslider & menu
4068    }, 350);
4069    */
4070
4071    setTimeout(function () {
4072      $(window).scroll();
4073    }, 250); // need to check position fixed ask block
4074  } else {
4075    setTimeout(function () {
4076      $(window).resize(); // need to check resize flexslider & menu
4077
4078      setTimeout(function () {
4079        CheckTopMenuPadding();
4080        CheckTopMenuOncePadding();
4081        CheckHeaderFixed();
4082        CheckTopMenuDotted();
4083        MegaMenuFixed();
4084        CheckSearchWidth();
4085        InitTopestMenuGummi();
4086        isOnceInited = true;
4087
4088        setTimeout(function () {
4089          $(window).scroll();
4090        }, 50);
4091      }, 50);
4092    }, 350);
4093  }
4094
4095  if (arAsproOptions["THEME"]["USE_DEBUG_GOALS"] === "Y") {
4096    $.cookie("_ym_debug", "1");
4097  } else {
4098    $.cookie("_ym_debug", null);
4099  }
4100
4101  //  --- Bind mobile menu  ---
4102  var $mobileMenu = $("#mobilemenu");
4103  if ($mobileMenu.length) {
4104    $mobileMenu.isOpen = $mobileMenu.hasClass("show");
4105    $mobileMenu.isLeftSide = $("body").hasClass("mmenu_leftside");
4106    $mobileMenuNlo = $mobileMenu.find("[data-nlo]");
4107
4108    $(document).on("click", "#mobileheader .burger", function () {
4109      SwipeMobileMenu();
4110      CloseMobilePhone();
4111    });
4112
4113    $(document).on("click", ".mobilemenu__close", function () {
4114      CloseMobileMenu();
4115      $(".mobilemenu__menu-item").removeClass("mobilemenu__menu-item--expanded");
4116    });
4117
4118    $(document).on("click", ".mobilemenu__menu .toggle_block", function (e) {
4119      var $this = $(this);
4120      var $item = $this.closest(".mobilemenu__menu-item");
4121
4122      if ($item.hasClass("mobilemenu__menu-item--parent")) {
4123        e.preventDefault();
4124
4125        $item.addClass("mobilemenu__menu-item--expanded");
4126        MoveMobileMenuWrapNext();
4127      }
4128    });
4129
4130    $(document).on("click", ".mobilemenu__menu a", function (e) {
4131      var $this = $(this);
4132      var $item = $this.closest(".mobilemenu__menu-item");
4133
4134      if ($item.hasClass("mobilemenu__menu-item--back")) {
4135        e.preventDefault();
4136
4137        MoveMobileMenuWrapPrev();
4138        setTimeout(function () {
4139          $item.closest(".mobilemenu__menu-item--expanded").removeClass("mobilemenu__menu-item--expanded");
4140        }, 400);
4141      } else {
4142        var href = $this.attr("href");
4143        if (typeof href !== "undefined") {
4144          if (href.length) {
4145            window.location.href = href;
4146            //window.location.reload();
4147          } else {
4148            if ($item.hasClass("mobilemenu__menu-item--parent")) {
4149              e.preventDefault();
4150
4151              $item.addClass("mobilemenu__menu-item--expanded");
4152              MoveMobileMenuWrapNext();
4153
4154              return;
4155            } else if ($item.hasClass("mobilemenu__menu-item--title")) {
4156              e.preventDefault();
4157
4158              return;
4159            }
4160          }
4161        }
4162
4163        CloseMobileMenu();
4164      }
4165    });
4166
4167    if ($mobileMenu.isLeftSide) {
4168      $mobileMenu.parent().append('<div class="mobilemenu__overlay"></div>');
4169      var $mobileMenuOverlay = $(".mobilemenu__overlay");
4170
4171      $mobileMenuOverlay.click(function () {
4172        if ($mobileMenu.isOpen) {
4173          CloseMobileMenu();
4174        }
4175      });
4176
4177      $(document).swiperight(function (e) {
4178        if (
4179          !$(e.target).closest(".owl-carousel").length &&
4180          !$(e.target).closest(".swipeignore").length &&
4181          !$(e.target).closest(".mobile-scrolled").length &&
4182          !$(e.target).closest(".swiper").length
4183        ) {
4184          var partWindowWidth = document.documentElement.clientWidth / 3;
4185          var swipeStart = e.swipestart.coords[0];
4186          if (swipeStart <= partWindowWidth) {
4187            OpenMobileMenu();
4188          }
4189        }
4190      });
4191
4192      $(document).swipeleft(function (e) {
4193        if (
4194          !$(e.target).closest(".owl-carousel").length &&
4195          !$(e.target).closest(".swipeignore").length &&
4196          !$(e.target).closest(".mobile-scrolled").length &&
4197          !$(e.target).closest(".swiper").length
4198        ) {
4199          CloseMobileMenu();
4200        }
4201      });
4202    } else {
4203      $(document).on("click", "#mobileheader", function (e) {
4204        if (
4205          !$(e.target).closest("#mobilemenu").length &&
4206          !$(e.target).closest(".burger").length &&
4207          $mobileMenu.isOpen
4208        ) {
4209          CloseMobileMenu();
4210        }
4211      });
4212    }
4213
4214    OpenMobileMenu = function () {
4215      if (!$mobileMenu.isOpen && window.matchMedia("(max-width: 991px)").matches) {
4216        // hide styleswitcher
4217        if ($(".style-switcher").hasClass("active")) {
4218          $(".style-switcher .switch").trigger("click");
4219        }
4220        $(".style-switcher .switch").hide();
4221        $(".style-switcher .switch_presets").hide();
4222
4223        if ($mobileMenu.isLeftSide) {
4224          setTimeout(function () {
4225            // hide body scroll
4226            $("body").addClass("overflow-block");
4227
4228            // blur body
4229            $("#mobileheader").addClass("filter-none");
4230            $("#mobilemenu").addClass("filter-none");
4231            $("body").addClass("jqm-initied");
4232
4233            // show overlay
4234            $mobileMenuOverlay.fadeIn("fast");
4235          }, 100);
4236        } else {
4237          // hide body scroll
4238          $("body").addClass("overflow-block");
4239
4240          // set menu top = bottom of header
4241          $mobileMenu.css({
4242            top: +($("#mobileheader")[0].getBoundingClientRect().top + $("#mobileheader").height()) + "px",
4243          });
4244
4245          // change burger icon
4246          // $('#mobileheader .burger').addClass('c');
4247        }
4248
4249        // show menu
4250        $mobileMenu.addClass("show");
4251        $mobileMenu.isOpen = true;
4252
4253        var $inner = $mobileMenu.find(".mobilemenu__inner");
4254        var params = $inner.data("params");
4255        if (typeof params === "undefined") {
4256          params = {
4257            depth: 0,
4258            scroll: {},
4259            height: {},
4260          };
4261        }
4262        $inner.data("params", params);
4263
4264        if ($mobileMenuNlo.length) {
4265          if (!$mobileMenuNlo.hasClass("nlo-loadings")) {
4266            $mobileMenuNlo.addClass("nlo-loadings");
4267            setTimeout(function () {
4268              $.ajax({
4269                data: { nlo: $mobileMenuNlo.attr("data-nlo") },
4270                error: function () {
4271                  $mobileMenuNlo.removeClass("nlo-loadings");
4272                },
4273                complete: function (jqXHR, textStatus) {
4274                  if (textStatus === "success" || jqXHR.status == 404) {
4275                    var ob = BX.processHTML($.trim(jqXHR.responseText));
4276                    BX.ajax.processScripts(ob.SCRIPT);
4277                    $mobileMenuNlo.replaceWith(ob.HTML);
4278                  }
4279                },
4280              });
4281            }, 300);
4282          }
4283        }
4284      }
4285    };
4286
4287    CloseMobileMenu = function () {
4288      if ($mobileMenu.isOpen) {
4289        // hide menu
4290        $mobileMenu.removeClass("show");
4291        $mobileMenu.isOpen = false;
4292
4293        // show styleswitcher
4294        $(".style-switcher .switch").show();
4295        $(".style-switcher .switch_presets").show();
4296
4297        if ($mobileMenu.isLeftSide) {
4298          setTimeout(function () {
4299            // hide overlay
4300            $mobileMenuOverlay.fadeOut("fast");
4301
4302            // show body scroll
4303            $("body").removeClass("overflow-block");
4304
4305            // unblur body
4306            $("body").removeClass("jqm-initied");
4307            $("#mobilemenu").removeClass("filter-none");
4308            $("#mobileheader").removeClass("filter-none");
4309          }, 100);
4310        } else {
4311          // change burger icon
4312          // $('#mobileheader .burger').removeClass('c');
4313
4314          // show body scroll
4315          $("body").removeClass("overflow-block");
4316        }
4317
4318        setTimeout(function () {
4319          var $scroller = $mobileMenu.find(".mobilemenu");
4320          var $inner = $mobileMenu.find(".mobilemenu__inner");
4321          var params = $inner.data("params");
4322          params.depth = 0;
4323          $inner.data("params", params).attr("style", "");
4324          $mobileMenu.scrollTop(0);
4325          $scroller.css("height", "");
4326        }, 400);
4327      }
4328    };
4329
4330    SwipeMobileMenu = function () {
4331      if ($mobileMenu.isOpen) {
4332        CloseMobileMenu();
4333      } else {
4334        OpenMobileMenu();
4335      }
4336    };
4337
4338    CheckMobileMenu = function () {
4339      if (!window.matchMedia("(max-width: 991px)").matches) {
4340        CloseMobileMenu();
4341      }
4342    };
4343
4344    function MoveMobileMenuWrapNext() {
4345      var $scroller = $mobileMenu.find(".mobilemenu");
4346      var $inner = $mobileMenu.find(".mobilemenu__inner");
4347      if ($inner.length) {
4348        var params = $inner.data("params");
4349        var $dropdownNext = $mobileMenu
4350          .find(".mobilemenu__menu-item--expanded>.mobilemenu__menu-dropdown")
4351          .eq(params.depth);
4352        if ($dropdownNext.length) {
4353          // save scroll position
4354          params.scroll[params.depth] = parseInt($mobileMenu.scrollTop());
4355
4356          // height while move animating
4357          params.height[params.depth + 1] = Math.max(
4358            $dropdownNext.height(),
4359            !params.depth
4360              ? $inner.height()
4361              : $mobileMenu
4362                  .find(".mobilemenu__menu-item--expanded>.mobilemenu__menu-dropdown")
4363                  .eq(params.depth - 1)
4364                  .outerHeight()
4365          );
4366          $scroller.css("height", params.height[params.depth + 1] + "px");
4367
4368          // inc depth
4369          ++params.depth;
4370
4371          // translateX for move
4372          $inner.css("transform", "translateX(" + -100 * params.depth + "%)");
4373
4374          // scroll to top
4375          setTimeout(function () {
4376            $mobileMenu.animate({ scrollTop: 0 }, 200);
4377          }, 100);
4378
4379          // height on enimating end
4380          var h =
4381            $dropdownNext.height() +
4382            parseInt($dropdownNext.css("padding-top")) +
4383            parseInt($dropdownNext.css("padding-bottom"));
4384          setTimeout(function () {
4385            if (h) {
4386              $scroller.css("height", h + "px");
4387            } else {
4388              $scroller.css("height", "");
4389            }
4390          }, 200);
4391        }
4392
4393        $inner.data("params", params);
4394      }
4395    }
4396
4397    function MoveMobileMenuWrapPrev() {
4398      var $scroller = $mobileMenu.find(".mobilemenu");
4399      var $inner = $mobileMenu.find(".mobilemenu__inner");
4400      if ($inner.length) {
4401        var params = $inner.data("params");
4402        if (params.depth > 0) {
4403          var $dropdown = $mobileMenu
4404            .find(".mobilemenu__menu-item--expanded>.mobilemenu__menu-dropdown")
4405            .eq(params.depth - 1);
4406          if ($dropdown.length) {
4407            // height while move animating
4408            $scroller.css("height", params.height[params.depth] + "px");
4409
4410            // dec depth
4411            --params.depth;
4412
4413            // translateX for move
4414            $inner.css("transform", "translateX(" + -100 * params.depth + "%)");
4415
4416            // restore scroll position
4417            setTimeout(function () {
4418              $mobileMenu.animate({ scrollTop: params.scroll[params.depth] }, 200);
4419            }, 100);
4420
4421            // height on enimating end
4422            var h = !params.depth
4423              ? false
4424              : $mobileMenu
4425                  .find(".mobilemenu__menu-item--expanded>.mobilemenu__menu-dropdown")
4426                  .eq(params.depth - 1)
4427                  .outerHeight();
4428            setTimeout(function () {
4429              if (h) {
4430                $scroller.css("height", h + "px");
4431              } else {
4432                $scroller.css("height", "");
4433              }
4434            }, 200);
4435          }
4436        }
4437
4438        $inner.data("params", params);
4439      }
4440    }
4441  }
4442  //  --- END Bind mobile menu  ---
4443
4444  //  --- Bind mobile phone ---
4445  if ($("#mobilephones").length) {
4446    $(document).on("click", ".mobileheader .phones__inner .icon-block__only-icon", function (e) {
4447      e.stopPropagation();
4448      SwipeMobilePhone();
4449    });
4450
4451    $(document).on("click", ".mobilephones__menu-item a,.mobilephones__close", function (e) {
4452      e.stopPropagation();
4453      CloseMobilePhone();
4454    });
4455  }
4456
4457  SwipeMobilePhone = function () {
4458    if ($("#mobilephones.show").length) {
4459      CloseMobilePhone();
4460    } else {
4461      OpenMobilePhone();
4462    }
4463  };
4464
4465  OpenMobilePhone = function () {
4466    if (!$("#mobilephones.show").length) {
4467      CloseMobileMenu();
4468
4469      // show overlay
4470      $('<div class="jqmOverlay mobp"></div>').appendTo("body");
4471
4472      // blur body
4473      $("#mobileheader").addClass("filter-none");
4474      $("body").addClass("jqm-initied");
4475      $("body").addClass('overflow-block');
4476
4477      // toggle phones
4478      setTimeout(function () {
4479        $("#mobilephones").slideDown("fast", function () {
4480          $("#mobilephones").addClass("show");
4481        });
4482      }, 100);
4483    }
4484  };
4485
4486  CloseMobilePhone = function () {
4487    if ($("#mobilephones.show").length) {
4488      // toggle phones
4489      setTimeout(function () {
4490        $("#mobilephones").slideUp("fast", function () {
4491          $("#mobilephones").removeClass("show");
4492
4493          // unblur body
4494          $("body").removeClass("jqm-initied");
4495          $("#mobileheader").removeClass("filter-none");
4496          $("body").removeClass('overflow-block');
4497
4498          // hide overlay
4499          $(".jqmOverlay.mobp").remove();
4500        });
4501      }, 100);
4502    }
4503  };
4504
4505  checkMobilePhone = function () {
4506    if (!window.matchMedia("(max-width: 991px)").matches) {
4507      CloseMobilePhone();
4508    }
4509  };
4510  //  --- END Bind mobile phone ---
4511
4512  // change type2 menu for fixed
4513  if ($("#headerfixed .js-nav").length) {
4514    if (arAsproOptions["THEME"]["HEADER_FIXED"] == 2) CheckHeaderFixedMenu();
4515
4516    setTimeout(function () {
4517      $("#headerfixed .js-nav").addClass("opacity1");
4518    }, 350);
4519  }
4520
4521  // close search block
4522  $("html, body").on("mousedown", function (e) {
4523    if (typeof e.target.className == "string" && e.target.className.indexOf("adm") < 0) {
4524      e.stopPropagation();
4525      var search_target = $(e.target).closest(".searche-result");
4526      if (
4527        !$(e.target).closest("#mobileheader").length &&
4528        !$(e.target).closest("#mobilefilter").length &&
4529        !$(e.target).closest(".popup").length &&
4530        !$(e.target).hasClass("inline-search-block") &&
4531        !$(e.target).hasClass("svg") &&
4532        !search_target.length
4533      ) {
4534        $(".inline-search-block").removeClass("show");
4535        $(".title-search-result").hide();
4536
4537        if (arAsproOptions["THEME"]["TYPE_SEARCH"] == "fixed") {
4538          $(".jqmOverlay.search").detach();
4539          $("body").removeClass("jqm-initied");
4540        }
4541
4542        $("body").removeClass("overflow-block");
4543      }
4544
4545      if (isMobile) {
4546        if (search_target.length) location.href = search_target.attr("href");
4547      }
4548
4549      if (!$(e.target).closest(".hint.active").length) {
4550        $(".hint.active .hint__icon").trigger("click");
4551      }
4552
4553      var class_name = $(e.target).attr("class");
4554      if (typeof class_name == "undefined" || class_name.indexOf("tooltip") < 0)
4555        //tooltip link
4556        $(".tooltip-link").tooltip("hide");
4557    }
4558  });
4559
4560  $(document).on("click", ".jqmOverlay", function () {
4561    HideOverlay();
4562  });
4563
4564  $(".inline-search-block")
4565    .find("*")
4566    .on("mousedown", function (e) {
4567      e.stopPropagation();
4568    });
4569
4570  $(".filter-action").on("click", function () {
4571    $(this).toggleClass("active");
4572    $(this).find(".svg").toggleClass("white");
4573    if ($(".introtext").length) {
4574      var top_pos = $(".filters-wrap").position();
4575      $(".bx_filter").css({ top: top_pos.top + 40 });
4576    }
4577    $(".bx_filter").slideToggle();
4578  });
4579
4580  // -- scroll after apply option
4581  scrollPreviewBlock();
4582
4583  $.extend($.validator.messages, {
4584    required: BX.message("JS_REQUIRED"),
4585    email: BX.message("JS_FORMAT"),
4586    equalTo: BX.message("JS_PASSWORD_COPY"),
4587    minlength: BX.message("JS_PASSWORD_LENGTH"),
4588    remote: BX.message("JS_ERROR"),
4589  });
4590
4591  $.validator.addMethod(
4592    "regexp",
4593    function (value, element, regexp) {
4594      var re = new RegExp(regexp);
4595      return this.optional(element) || re.test(value);
4596    },
4597    BX.message("JS_FORMAT")
4598  );
4599
4600  $.validator.addMethod(
4601    "filesize",
4602    function (value, element, param) {
4603      return this.optional(element) || element.files[0].size <= param;
4604    },
4605    BX.message("JS_FILE_SIZE")
4606  );
4607
4608  $.validator.addMethod(
4609    "date",
4610    function (value, element, param) {
4611      var status = false;
4612      if (!value || value.length <= 0) {
4613        status = true;
4614      } else {
4615        var re = new RegExp("^([0-9]{2})(.)([0-9]{2})(.)([0-9]{4})$");
4616        var matches = re.exec(value);
4617        if (matches) {
4618          var composedDate = new Date(matches[5], matches[3] - 1, matches[1]);
4619          status =
4620            composedDate.getMonth() == matches[3] - 1 &&
4621            composedDate.getDate() == matches[1] &&
4622            composedDate.getFullYear() == matches[5];
4623        }
4624      }
4625      return status;
4626    },
4627    BX.message("JS_DATE")
4628  );
4629
4630  $.validator.addMethod(
4631    "datetime",
4632    function (value, element, param) {
4633      var status = false;
4634      if (!value || value.length <= 0) {
4635        status = true;
4636      } else {
4637        var re = new RegExp("^([0-9]{2})(.)([0-9]{2})(.)([0-9]{4}) ([0-9]{1,2}):([0-9]{1,2})$");
4638        var matches = re.exec(value);
4639        if (matches) {
4640          var composedDate = new Date(matches[5], matches[3] - 1, matches[1], matches[6], matches[7]);
4641          status =
4642            composedDate.getMonth() == matches[3] - 1 &&
4643            composedDate.getDate() == matches[1] &&
4644            composedDate.getFullYear() == matches[5] &&
4645            composedDate.getHours() == matches[6] &&
4646            composedDate.getMinutes() == matches[7];
4647        }
4648      }
4649      return status;
4650    },
4651    BX.message("JS_DATETIME")
4652  );
4653
4654  $.validator.addMethod(
4655    "extension",
4656    function (value, element, param) {
4657      param = typeof param === "string" ? param.replace(/,/g, "|") : "png|jpe?g|gif";
4658      return this.optional(element) || value.match(new RegExp(".(" + param + ")$", "i"));
4659    },
4660    BX.message("JS_FILE_EXT")
4661  );
4662
4663  $.validator.addMethod(
4664    "captcha",
4665    function (value, element, params) {
4666      let $sid = $(element).closest("form").find('input[name="captcha_sid"]');
4667      if (!$sid.length) {
4668        $sid = $(element).closest("form").find('input[name="captcha_code"]');
4669      }
4670
4671      let sid = $sid.val();
4672
4673      return $.validator.methods.remote.call(this, value, element, {
4674        url: arAsproOptions["SITE_DIR"] + "ajax/check-captcha.php",
4675        type: "post",
4676        data: {
4677          captcha_word: value,
4678          captcha_sid: sid,
4679        },
4680      });
4681    },
4682    BX.message("JS_ERROR")
4683  );
4684
4685  $.validator.addMethod(
4686    "recaptcha",
4687    function (value, element, param) {
4688      if (BX.Aspro?.Captcha) {
4689        return BX.Aspro.Captcha.validate(element);
4690      }
4691
4692      return true;
4693    },
4694    BX.message("JS_RECAPTCHA_ERROR")
4695  );
4696
4697  $.validator.addClassRules({
4698    phone: {
4699      regexp: arAsproOptions["THEME"]["VALIDATE_PHONE_MASK"],
4700    },
4701    confirm_password: {
4702      equalTo: "input.password",
4703      minlength: 6,
4704    },
4705    password: {
4706      minlength: 6,
4707    },
4708    inputfile: {
4709      extension: arAsproOptions["THEME"]["VALIDATE_FILE_EXT"],
4710      filesize: 5000000,
4711    },
4712    datetime: {
4713      datetime: "",
4714    },
4715    captcha: {
4716      captcha: "",
4717    },
4718    recaptcha: {
4719      recaptcha: "",
4720    },
4721  });
4722
4723  $.validator.setDefaults({
4724    highlight: function (element) {
4725      $(element).parent().addClass("error");
4726    },
4727    unhighlight: function (element) {
4728      $(element).parent().removeClass("error");
4729    },
4730    errorPlacement: function(error, element) {
4731        error.insertBefore(element);
4732    },
4733    messages: {
4734      licenses_popup: {
4735      required: BX.message('JS_REQUIRED_LICENSES'),
4736    },
4737      licenses_subscribe: {
4738        required: BX.message('JS_REQUIRED_LICENSES')
4739    }
4740  }
4741  });
4742
4743  // expand/hide filter values
4744  $(document).on("click", ".expand_block", function () {
4745    togglePropBlock($(this));
4746  });
4747
4748  // popup img list
4749  $(document).on("click", ".fancy-js", function () {
4750    const parent = $(this).closest(".image-list");
4751    let arItems = [];
4752    let index = 0;
4753    parent.find("[data-big]").each(function () {
4754      let _this = $(this);
4755      let obItem = {
4756        src: _this.data("big"),
4757        opts: {
4758          caption: _this.attr("alt"),
4759        },
4760      };
4761      arItems.push(obItem);
4762    });
4763    index = parent.find(".active").index();
4764    if (arItems.length) {
4765      if (typeof $.fn.fancybox === "function") {
4766        $.fancybox.open(arItems, { loop: false }, index);
4767      }
4768    }
4769  });
4770
4771  $(".mobilemenu__menu-item--city a").on("click", function (e) {
4772    e.preventDefault();
4773    var _this = $(this);
4774    $.removeCookie("current_region");
4775
4776    if (arAsproOptions["SITE_ADDRESS"].indexOf(",") != "-1") {
4777      var arDomains = arAsproOptions["SITE_ADDRESS"].split(",");
4778      if (arDomains) {
4779        for (var i in arDomains) {
4780          var domain_name = arDomains[i].replace("\n", "");
4781          domain_name = arDomains[i].replace("'", "");
4782          $.cookie("current_region", _this.data("id"), { path: "/", domain: domain_name });
4783        }
4784      }
4785    }
4785 else $.cookie("current_region", _this.data("id"), { path: "/", domain: arAsproOptions["SITE_ADDRESS"] });
4786
4787    location.href = _this.attr("href");
4788  });
4789
4790  InitOwlSlider();
4791  InitFlexSlider();
4792  InitFlexSliderMin();
4793
4794  InitFancyBox();
4795  InitFancyBoxVideo();
4796
4797  // for check flexslider bug in composite mode
4798  waitingNotExists(".detail .galery #slider", ".detail .galery #slider .flex-viewport", 1000, function () {
4799    InitOwlSlider();
4800    InitFlexSlider();
4801    setTimeout(function () {
4802      $(window).resize();
4803    }, 350);
4804  });
4805
4806  // change view type catalog
4807  $(".view-button").on("click", function () {
4808    $(this).siblings().removeClass("cur");
4809    $(this).addClass("cur");
4810  });
4811
4812  // -- escape close popup form
4813  $(document).on("keydown", function (e) {
4814    if (e.keyCode == 27) {
4815      if ($('.main-user-consent-request-popup:visible').length) {
4816        BX.onCustomEvent('onUserConsentHide', []);
4817        return;
4818      }
4819      if ($(".jqmWindow.show").length) $(".jqmWindow.show:last").jqmHide();
4820      if ($(".inline-search-block.fixed.show").length) {
4821        $(".inline-search-block.fixed .inline-search-hide").click();
4822        setTimeout(function () {
4823          $(".title-search-result").hide();
4824        }, 0);
4825      }
4826      if ($(".mega-fixed-menu").is(":visible")) {
4827        $(".mega-fixed-menu .mega-fixed-menu__close").click();
4828      }
4829    }
4830  });
4831
4832  $(".right_dok .link>span").on("click", function (e) {
4833    if ($(this).hasClass("jqm_disable")) {
4834      $(".jqmWindow.right_slide.opened").jqmHide();
4835      e.stopImmediatePropagation(); // need for stop jqm open standart script
4836    }
4837  });
4838
4839  $(document).on("click", '*[data-event="jqm"]', function (e) {
4840    e.preventDefault();
4841    e.stopPropagation();
4842    if (!$(this).hasClass("clicked")) {
4843      $(this).addClass("clicked");
4844      $(this).jqmEx();
4845      $(this).trigger("click");
4846    }
4847  });
4848
4849  $(".animate-load").on("click", function () {
4850    $(this).parent().addClass("loadings");
4851  });
4852
4853  BX.addCustomEvent("onCompleteAction", function (eventdata, _this) {
4854    try {
4855      if (eventdata.action === "loadForm") {
4856        $(_this).parent().removeClass("loadings");
4857        $(_this).removeClass("clicked");
4858      } else if (eventdata.action === "loadBasket") {
4859        var basket_js_block = $(".js-basket-block");
4860        if (basket_js_block.length) {
4861          var count = basket_js_block.find(".header-cart__count").length
4862            ? parseInt($(_this).find(".count").text())
4863            : parseInt($(_this).find(".header-cart__count").text());
4864          if (count) {
4865            basket_js_block.removeClass("header-cart__inner--empty");
4866          } else {
4867            basket_js_block.addClass("header-cart__inner--empty");
4868          }
4869        }
4870
4871        setBasketItemsClasses();
4872      } else if (eventdata.action === "loadRSS") {
4873      } else if (eventdata.action === "jsLoadBlock") {
4874        InitScrollBar();
4875      } else if (eventdata.action === "ajaxContentLoaded") {
4876        if ("type" in eventdata) {
4877          if (eventdata.type == "table_block") {
4878            $(".catalog.item-views.table .item .title").sliceHeight();
4879            $(".catalog.item-views.table .item .cont").sliceHeight();
4880            // $('.catalog.item-views.table .item .slice_price').sliceHeight();
4881            $(".catalog.item-views.table .item").sliceHeight({ classNull: ".footer-button" });
4882          } else if (eventdata.type == "table_block2") {
4883            $(".catalog.item-views.table .item .title").sliceHeight();
4884            $(".catalog.item-views.table .item .cont").sliceHeight({
4885              autoHeightBlock: ".cont_inner",
4886              classNull: ".props_wrapper",
4887            });
4888            // $('.catalog.item-views.table .item .slice_price').sliceHeight();
4889            $(".catalog.item-views.table .item").sliceHeight({
4890              classNull: ".footer-button",
4891              autoHeightBlock: ".cont_inner",
4892              callback: setHoverHeight,
4893            });
4894          }
4895        }
4896      }
4897    } catch (e) {
4898      console.error(e);
4899    }
4900  });
4901
4902  BX.addCustomEvent("onCounterGoals", function (eventdata) {
4903    if (arAsproOptions["THEME"]["YA_GOALS"] == "Y" && arAsproOptions["THEME"]["YA_COUNTER_ID"]) {
4904      var idCounter = arAsproOptions["THEME"]["YA_COUNTER_ID"];
4905      idCounter = parseInt(idCounter);
4906
4907      if (typeof eventdata != "object") eventdata = { goal: "undefined" };
4908
4909      if (typeof eventdata.goal != "string") eventdata.goal = "undefined";
4910
4911      if (idCounter) {
4912        try {
4913          waitCounter(idCounter, 50, function () {
4914            var obCounter = window["yaCounter" + idCounter];
4915            if (typeof obCounter == "object") {
4916              obCounter.reachGoal(eventdata.goal);
4917            }
4918          });
4919        } catch (e) {
4920          console.error(e);
4921        }
4922      } else {
4923        console.info("Bad counter id!", idCounter);
4924      }
4925    }
4926  });
4927
4928  BX.addCustomEvent(window, "onAjaxSuccess", function (e) {
4929    if (e != "OK") {
4930      InitOwlSlider();
4931      InitFlexSlider();
4932      InitFlexSliderMin();
4933    }
4934  });
4935
4936  // show print
4937  if (arAsproOptions["THEME"]["PRINT_BUTTON"] == "Y") {
4938    setTimeout(function () {
4939      if ($(".page-top .rss-block.top").length) {
4940        $('<div class="print-link"><i class="svg svg-print"></i></div>').insertBefore(
4941          $(".page-top .rss-block.top .shares-block")
4942        );
4943      } else if ($(".page-top .rss").length) {
4944        $('<div class="print-link"><i class="svg svg-print"></i></div>').insertAfter($(".page-top .rss"));
4945      } else if ($(".page-top h1").length)
4946        $('<div class="print-link"><i class="svg svg-print"></i></div>').insertBefore($(".page-top h1"));
4947      // else
4948      // $('footer .print-block').html('<div class="print-link"><i class="svg svg-print"><svg id="Print.svg" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewB
4948ox="0 0 16 16"><path class="cls-1" d="M1553,287h-2v3h-8v-3h-2a2,2,0,0,1-2-2v-5a2,2,0,0,1,2-2h2v-4h8v4h2a2,2,0,0,1,2,2v5A2,2,0,0,1,1553,287Zm-8,1h4v-4h-4v4Zm4-12h-4v2h4v-2Zm4,4h-12v5h2v-3h8v3h2v-5Z" transform="translate(-1539 -274)"/></svg></i></div>');
4949    }, 150);
4950  }
4951
4952  $(document).on("click", ".print-link", function () {
4953    window.print();
4954  });
4955
4956  $(".head-block .item-link").on("click", function () {
4957    var _this = $(this);
4958    _this.siblings().removeClass("active");
4959    _this.addClass("active");
4960  });
4961
4962  //alert(navigator.userAgent);
4963  $("table.table").each(function () {
4964    var _this = $(this),
4965      first_td = _this.find("thead tr th");
4966    if (!first_td.length) first_td = _this.find("thead tr td");
4967    if (first_td.length) {
4968      _this.find("tbody tr:not(.nomobile)").each(function (i) {
4969        $(this)
4970          .find("td")
4971          .each(function (i) {
4972            if (typeof first_td[i] !== "undefined")
4973              $('<div class="th-mobile">' + first_td[i].textContent + "</div>").appendTo($(this));
4974          });
4975      });
4976    }
4977  });
4978
4979  if ($("a.fancybox").length) {
4980    if (typeof $.fn.fancybox == "function") {
4981      $("a.fancybox").fancybox();
4982    }
4983  }
4984
4985  // flex pagination
4986  $(document).on("mouseenter", ".flex-viewport .item", function () {
4987    $(this).closest(".flexslider").find(".flex-control-nav").toggleClass("noz");
4988    $(this).closest(".flexslider").find(".flex-control-nav").css("z-index", "0");
4989  });
4990  $(document).on("mouseleave", ".flex-viewport .item", function () {
4991    $(this).closest(".flexslider").find(".flex-control-nav").toggleClass("noz");
4992    $(this).closest(".flexslider").find(".flex-control-nav").css("z-index", "2");
4993  });
4994
4995  // ajax more items
4996  $(document).on("click", ".ajax_load_btn", function () {
4997    var url = $(this).closest(".bottom_nav").find(".arrows-pagination__next").attr("href"),
4998      th = $(this).find(".more_text_ajax"),
4999      _this = $(this),
5000      bottom_nav = $(this).closest(".bottom_nav");
5001    if (!th.hasClass("loading")) {
5002      th.addClass("loading");
5003      var objUrl = parseUrlQuery(),
5004        add_url = "",
5005        obData = { AJAX_REQUEST: "Y", ajax_get: "Y", bitrix_include_areas: "N" };
5006
5007      //index page
5008      if ($(".body.index").length) {
5009        var class_block = th.closest(".drag-block").data("class").replace("_drag", "");
5010        class_block = class_block.replace(/\s/g, "");
5011        obData.BLOCK = class_block;
5012      }
5013      if (_this.closest(".ajax-pagination-wrapper").length) {
5014        obData.BLOCK = _this.closest(".ajax-pagination-wrapper").data("class");
5015      }
5016      if ("clear_cache" in objUrl && objUrl.clear_cache == "Y") {
5017        add_url = "&clear_cache=Y";
5018      }
5019      if ($(".banners-small.front").length) {
5020        obData.MD = $(".banners-small.front").find(".items").data("colmd");
5021        obData.SM = $(".banners-small.front").find(".items").data("colsm");
5022      }
5023
5024      //tabs block
5025      if (_this.closest(".tab-content-block").length) {
5026        var filter = th.closest(".tab-content-block").data("filter");
5027        obData.GLOBAL_FILTER = filter;
5028      }
5029      $.ajax({
5030        url: url + "" + add_url,
5031        data: BX.ajax.prepareData(obData),
5032        success: function (html) {
5033          var html = html.trim();
5034          var mobileBottomClicked = bottom_nav.hasClass("mobile_slider");
5035          var hasMobileBottomNav = $(html).find(".bottom_nav.mobile_slider");
5036          var bottomNav = hasMobileBottomNav.length ? hasMobileBottomNav : $(html).find(".bottom_nav");
5037          var bottomNavHtml = bottomNav.html();
5038          var bottomNavScrollClass = bottomNav.data("scroll-class");
5039          var hasBottomNav = $(html).find(".ajax_load_btn").length;
5040
5041          var eventdata = { action: "ajaxContentLoaded", content: html };
5042
5043          if ($(".banners-small.front").length) {
5044            $(".banners-small .items.row").append(html);
5045            $(".bottom_nav").html($(".banners-small .items.row .bottom_nav").html());
5046            $(".banners-small .items.row .bottom_nav").remove();
5047          } else if (bottom_nav.data("append") !== undefined && bottom_nav.data("parent") !== undefined) {
5048            var $slider = th.closest(bottom_nav.data("parent")).find(".owl-carousel");
5049            if ($slider.length) {
5050              var obData = BX.processHTML(html);
5051              html = obData.HTML;
5052
5053              var $slides = $("<div>" + html + "</div>").find(">*");
5054              $slides.each(function () {
5055                if (!$(this).hasClass("wrap_nav")) {
5056                  $slider.trigger("add.owl.carousel", [$(this).wrap("<div></div>").parent().html()]);
5057                }
5058              });
5059              $slider.trigger("refresh.owl.carousel");
5060
5061              setTimeout(function () {
5062                BX.ajax.processScripts(obData.SCRIPT);
5063              }, 100);
5064            } else {
5065              var target = html;
5066              if (bottom_nav.data("target") !== undefined) {
5067                target = $(html).find(bottom_nav.data("target"));
5068              }
5069              if (mobileBottomClicked || hasMobileBottomNav.length) {
5070                var mobileSliderNav = th.closest(bottom_nav.data("parent")).find(".bottom_nav.mobile_slider");
5071                if (mobileSliderNav.length) {
5072                  mobileSliderNav.before(target);
5073                } else {
5074                  bottom_nav.before(target);
5075                }
5076              } else {
5077                th.closest(bottom_nav.data("parent")).find(bottom_nav.data("append")).append(target);
5078              }
5079              th.closest(bottom_nav.data("parent"))
5080                .find(bottom_nav.data("append"))
5081                .find(".bottom_nav_wrapper")
5082                .remove();
5083
5084              if (hasBottomNav) {
5085                if (bottomNavScrollClass !== undefined) {
5086                  th.closest(bottom_nav.data("parent")).find(bottomNavScrollClass).addClass("has-bottom-nav");
5087                }
5088                th.closest(bottom_nav.data("parent")).find(bottom_nav.data("append")).addClass("has-bottom-nav");
5089              } else {
5090                if (bottomNavScrollClass !== undefined) {
5091                  th.closest(bottom_nav.data("parent")).find(bottomNavScrollClass).removeClass("has-bottom-nav");
5092                }
5093                th.closest(bottom_nav.data("parent")).find(bottom_nav.data("append")).removeClass("has-bottom-nav");
5094              }
5095            }
5096
5097            bottom_nav = th.closest(bottom_nav.data("parent")).find(".bottom_nav");
5098            bottom_nav.html(bottomNavHtml);
5099            var icon = bottom_nav.find(".svg-inline-bottom_nav-icon");
5100            icon.css("display", "");
5101
5102            eventdata.container = th.closest(bottom_nav.data("parent"));
5103          } else {
5104            $(html).insertBefore($(".blog .bottom_nav"));
5105            $(".bottom_nav").html($(".blog .bottom_nav:hidden").html());
5106            $(".blog .bottom_nav:hidden").remove();
5107          }
5108
5109          setTimeout(function () {
5110            BX.onCustomEvent("onCompleteAction", [eventdata, th[0]]);
5111            $(".banners-small .item.normal-block").sliceHeight();
5112            th.removeClass("loading");
5113          }, 100);
5114        },
5115      });
5116    }
5117  });
5118
5119  // bug fix in ff
5120  $("img").removeAttr("draggable");
5121
5122  // Responsive Menu Events
5123  var addActiveClass = false;
5124  $("#mainMenu li.dropdown > a > i, #mainMenu li.dropdown-submenu > a > i").on("click", function (e) {
5125    e.preventDefault();
5126    if ($(window).width() > 979) return;
5127    addActiveClass = $(this).closest("li").hasClass("resp-active");
5128    // $('#mainMenu').find('.resp-active').removeClass('resp-active');
5129    if (!addActiveClass) {
5130      $(this).closest("li").addClass("resp-active");
5131    } else {
5132      $(this).closest("li").removeClass("resp-active");
5133    }
5134  });
5135
5136  // animate increment
5137  if ($(".spincrement").length) {
5138    $(".spincrement").counterUp({
5139      delay: 80,
5140      time: 1000,
5141    });
5142  }
5143
5144  // form rating
5145  $(document).on("mouseenter", ".form .votes_block.with-text .item-rating", function () {
5146    var $this = $(this),
5147      index = $this.index(),
5148      ratingMessage = $this.data("message");
5149
5150    $(this).addClass("filed");
5151    $this.siblings().each(function () {
5152      if ($(this).index() <= index) $(this).addClass("filed");
5153      else $(this).removeClass("filed");
5154    });
5155    $this.closest(".votes_block").find(".rating_message").text(ratingMessage);
5156  });
5157
5158  $(document).on("mouseleave", ".form .votes_block.with-text", function () {
5159    var $this = $(this),
5160      index = $this.data("rating"),
5161      ratingMessage = $this.closest(".votes_block").find(".rating_message").data("message");
5162
5163    $this.find(".item-rating").each(function () {
5164      if ($(this).index() < index && index !== undefined) $(this).addClass("filed");
5165      else $(this).removeClass("filed");
5166    });
5167    $this.closest(".votes_block").find(".rating_message").text(ratingMessage);
5168  });
5169
5170  $(document).on("click", ".form .votes_block.with-text .item-rating", function () {
5171    var $this = $(this),
5172      rating = $this.closest(".votes_block").data("rating"),
5173      index = $this.index() + 1,
5174      ratingMessage = $this.data("message");
5175
5176    $this.closest(".votes_block").data("rating", index);
5177    if ($this.closest(".form-group").find("input[name=RATING]").length) {
5178      $this.closest(".form-group").find("input[name=RATING]").val(index);
5179    } else {
5180      $this.closest(".form-group").find("input[data-sid=RATING]").val(index);
5181    }
5182    $this.closest(".votes_block").find(".rating_message").data("message", ratingMessage);
5183  });
5184
5185  $(".bx_filter_input_container input[type=text]").numeric({ allow: "." });
5186
5187  $(".toggle .more_items").on("click", function () {
5188    $(this).closest(".toggle").find(".collapsed").fadeToggle();
5189    $(this).remove();
5190    if (typeof $(this).data("resize") !== "undefined" && $(this).data("resize")) $(window).resize();
5191  });
5192  $(".toggle_menu .more_items").on("click", function () {
5193    $(this).closest(".toggle_menu").find(".collapsed").addClass("clicked_exp");
5194    $(this).remove();
5195  });
5196
5197  // search sync
5198  $(document).on("keyup", ".search-input-div input", function (e) {
5199    var inputValue = $(this).val();
5200    $(".search-input-div input").val(inputValue);
5201
5202    if ($(this).closest("#headerfixed").length) {
5203      if (e.keyCode == 13) $(".search form").submit();
5204    }
5205  });
5206  $(document).on("click", ".search-button-div button", function (e) {
5207    if ($(this).closest("#headerfixed").length) $(".search form").submit();
5208  });
5209
5210  $(document).on(
5211    "click",
5212    ".header-search, .inline-search-hide, .bottom-icons-panel__content-link--search",
5213    function (e) {
5214      //if (window.matchMedia("(min-width: 600px)").matches) {
5215      CloseMobilePhone();
5216
5217      if (typeof $(this).data("type_search") != "undefined" && $(this).data("type_search") == "fixed") {
5218        $(".inline-search-block").addClass("fixed");
5219      }
5220
5221      $(".inline-search-block").toggleClass("show");
5222
5223      if (arAsproOptions["THEME"]["TYPE_SEARCH"] == "fixed") {
5224        if ($(".inline-search-block").hasClass("show")) {
5225          $('<div class="jqmOverlay search"></div>').appendTo("body");
5226          $("body").addClass("overflow-block");
5227          $("body").addClass("jqm-initied");
5228        } else {
5229          $("body").removeClass("jqm-initied");
5230          $("body").removeClass("overflow-block");
5231          $(".jqmOverlay").remove();
5232        }
5233      }
5234
5235      if ($(".inline-search-block").hasClass("show")) {
5236        setTimeout(function () {
5237          $(".inline-search-block.fixed .search-input").focus();
5238        }, 400);
5239      }
5240      // } else {
5241      //   location.href = arAsproOptions["SITE_DIR"] + "search/";
5242      // }
5243    }
5244  );
5245
5246  if ($(".styled-block .row > div.col-md-3").length) {
5247    BX.addCustomEvent("onWindowResize", function (eventdata) {
5248      try {
5249        ignoreResize.push(true);
5250        $(".styled-block .row > div.col-md-3").each(function () {
5251          $(this).css({ height: "", "line-height": "" });
5252          var z = parseInt($(".body_media").css("top"));
5253          if (z > 0) {
5254            var rowHeight = $(this).parents(".row").first().actual("outerHeight");
5255            $(this).css({ height: rowHeight + "px", "line-height": rowHeight + "px" });
5256          }
5257        });
5258      } catch (e) {
5259      } finally {
5260        ignoreResize.pop();
5261      }
5262    });
5263  }
5264
5265  if ($(".order-block").length) {
5266    BX.addCustomEvent("onWindowResize", function (eventdata) {
5267      try {
5268        ignoreResize.push(true);
5269        $(".order-block").each(function () {
5270          var cols = $(this).find(".row > div");
5271          if (cols.length) {
5272            var colFirst = cols.first();
5273            var colLast = cols.last();
5274            var colText = colFirst.find(".text");
5275            var bText = colText.length;
5276            var bOnlyText = cols.length === 1 && bText;
5277            var bPrice = colFirst.find(".price").length;
5278            var z = parseInt($(".body_media").css("top"));
5279
5280            cols.css({ height: "", "padding-top": "", "padding-bottom": "" });
5281            colText.css({ height: "", "padding-top": "", "padding-bottom": "" });
5282            if ((!bPrice && z > 0) || (bPrice && z > 1)) {
5283              var minHeight = 83;
5284
5285              if (!bOnlyText) {
5286                var colLast_height = colLast.outerHeight();
5287                colLast_height = colLast_height >= minHeight ? colLast_height : minHeight;
5288              }
5289
5290              if (bText) {
5291                var colFirst_height = colFirst.outerHeight();
5292                colFirst_height = colFirst_height >= minHeight ? colFirst_height : minHeight;
5293              }
5294
5295              var colMax_height = bText
5296                ? !bOnlyText
5297                  ? colLast_height >= colFirst_height
5298                    ? colLast_height
5299                    : colFirst_height
5300                  : colLast_height
5301                : colFirst_height;
5302
5303              if (!bOnlyText) {
5304                var textPadding = 41 + (colMax_height - colFirst.outerHeight()) / 2;
5305                colLast.find(".btns").css({
5306                  "padding-top": textPadding + "px",
5307                  "padding-bottom": textPadding + "px",
5308                  height: colMax_height + "px",
5309                });
5310              }
5311              if (bText) {
5312                colLast.css({ height: colMax_height + "px" });
5313                var textPadding = 41 + (colMax_height - colText.outerHeight()) / 2;
5314                colText.css({
5315                  "padding-top": textPadding + "px",
5316                  "padding-bottom": textPadding + "px",
5317                  height: colMax_height + "px",
5318                });
5319              }
5320            }
5321          }
5322        });
5323      } catch (e) {
5324      } finally {
5325        ignoreResize.pop();
5326      }
5327    });
5328  }
5329
5330  if ($(".equal-padding").length) {
5331    BX.addCustomEvent("onWindowResize", function (eventdata) {
5332      try {
5333        ignoreResize.push(true);
5334        $(".equal-padding").each(function () {
5335          $(this).find(".text").css({ "padding-top": "0px", "padding-bottom": "0px" });
5336          var equal_block = $(this).siblings(".equals"),
5337            height = $(this).actual("outerHeight");
5338
5339          delta = Math.round((equal_block.actual("outerHeight") - height) / 2);
5340          if (delta)
5341            $(this)
5342              .find(".text")
5343              .css({ "padding-top": delta + "px", "padding-bottom": delta + "px" });
5344        });
5345      } catch (e) {
5346      } finally {
5347        ignoreResize.pop();
5348      }
5349    });
5350  }
5351
5352  $(document).on("click", ".mega-menu .dropdown-menu", function (e) {
5353    e.stopPropagation();
5354  });
5355
5356  $(document).on("click", ".mega-menu .dropdown-toggle.more-items", function (e) {
5357    e.preventDefault();
5358  });
5359
5360  // $(".table-menu .dropdown,.table-menu .dropdown-submenu,.table-menu .dropdown-toggle").on("mouseenter", function () {
5361  //   CheckTopVisibleMenu();
5362  // });
5363
5364  $(document).on(
5365    "mouseenter",
5366    ".header-menu .header-menu__item--dropdown:not(.header-menu__item--wide), .header-menu .header-menu__item--dropdown:not(.header-menu__item--wide) .header-menu__dropdown-item.header-menu__dropdown-item--with-dropdown, .header-menu .header-menu__item--more-items, .header-menu .header-menu__item--more-items .header-menu__dropdown-item--with-dropdown, .header-menu .header-menu__item--more-items .header-menu__item--dropdown.header-menu__item--wide, .header-menu .header-menu__item--more-items .header-menu__item--dropdown.header-menu__item--wide .header-menu__dropdown-item--with-dropdown, .header-menu .header-menu__item--more-items .header-menu__item--dropdown.header-menu__item--wide .header-menu__dropdown-item--with-dropdown .header-menu__wide-submenu-item--with-dropdown",
5367    function (e) {
5368      CheckTopVisibleMenu($(e.currentTarget));
5369    }
5370  );
5371
5372  const menuBanner = {
5373    checkOwlSlider(ctx) {
5374      const bannerMenu = $(ctx).find(".owl-carousel-hover");
5375      if (bannerMenu.length) {
5376        bannerMenu.removeClass("owl-carousel-hover").addClass("owl-carousel");
5377        setTimeout(function () {
5378          InitOwlSlider();
5379          bannerMenu.removeClass("loading-state");
5380        }, 1);
5381      }
5382    },
5383    checkSwiperSlider(ctx) {
5384      const nodeBannerMenu = ctx.querySelector('.slider-solution--init-by-condition');
5385      if (nodeBannerMenu) {
5386        nodeBannerMenu.classList.remove('slider-solution--init-by-condition');
5387        nodeBannerMenu.classList.add('slider-solution');
5388        initSwiperSlider(nodeBannerMenu);
5389      }
5390    },
5391  }
5392
5393  $(document).on(
5394    "mouseenter",
5395    ".header-menu__item--wide:not(.slider-inited), .header-menu__item--wide:not(.slider-inited) .header-menu__dropdown-menu",
5396    function () {
5397      $(this).closest('.header-menu__item--wide').addClass('slider-inited');
5398
5399      menuBanner.checkOwlSlider(this);
5400      menuBanner.checkSwiperSlider(this);
5401    }
5402  );
5403
5404  $(document).on("mouseenter", ".menu-side-column__inner:not(.slider-inited) .menu-side-column__item--wide", function () {
5405    $(this).closest('.menu-side-column__inner').addClass('slider-inited');
5406
5407    const ctx = document.querySelector('.menu-side-column__bottom-banners');
5408    menuBanner.checkOwlSlider(ctx);
5409    menuBanner.checkSwiperSlider(ctx);
5410  });
5411  $(".mega-menu .search-item .search-icon, .menu-row #title-search .fa-close").on("click", function (e) {
5412    e.preventDefault();
5413    $(".menu-row #title-search").toggleClass("hide");
5414  });
5415
5416  $(".mega-menu ul.nav .search input").on("keyup", function (e) {
5417    var inputValue = $(this).val();
5418    $(".menu-row > .search input").val(inputValue);
5419    if (e.keyCode == 13) {
5420      $(".menu-row > .search form").submit();
5421    }
5422  });
5423
5424  $(".menu-row > .search input").on("keyup", function (e) {
5425    var inputValue = $(this).val();
5426    $(".mega-menu ul.nav .search input").val(inputValue);
5427    if (e.keyCode == 13) {
5428      $(".menu-row > .search form").submit();
5429    }
5430  });
5431
5432  $(".mega-menu ul.nav .search button").on("click", function (e) {
5433    e.preventDefault();
5434    var inputValue = $(this).parents(".search").find("input").val();
5435    $(".menu-and-search .search input").val(inputValue);
5436    $(".menu-row > .search form").submit();
5437  });
5438
5439  $(".filter .calendar").on("click", function () {
5440    var button = $(this).next();
5441    if (button.hasClass("calendar-icon")) {
5442      button.trigger("click");
5443    }
5444  });
5445
5446  // sliceheights
5447  if ($(".banners-small .item.normal-block").length) $(".banners-small .item.normal-block").sliceHeight();
5448  if ($(".teasers .item").length) $(".teasers .item").sliceHeight();
5449  if ($(".wrap-portfolio-front .row.items > div").length)
5450    $(".wrap-portfolio-front .row.items > div").sliceHeight({ row: ".row.items", item: ".item1" });
5451
5452  SliceHeightBlocks();
5453
5454  // toggle
5455  var $this = this,
5456    previewParClosedHeight = 25;
5457
5458  $("section.toggle > label").prepend($("<i />").addClass("fa fa-plus"));
5459  $("section.toggle > label").prepend($("<i />").addClass("fa fa-minus"));
5460  $("section.toggle.active > p").addClass("preview-active");
5461  $("section.toggle.active > div.toggle-content").slideDown(350, function () {});
5462
5463  $("section.toggle > label").click(function (e) {
5464    var parentSection = $(this).parent(),
5465      parentWrapper = $(this).parents("div.toogle"),
5466      previewPar = false,
5467      isAccordion = parentWrapper.hasClass("toogle-accordion");
5468
5469    if (isAccordion && typeof e.originalEvent != "undefined") {
5470      parentWrapper.find("section.toggle.active > label").trigger("click");
5471    }
5472
5473    parentSection.toggleClass("active");
5474
5475    // Preview Paragraph
5476    if (parentSection.find("> p").get(0)) {
5477      previewPar = parentSection.find("> p");
5478      var previewParCurrentHeight = previewPar.css("height");
5479      previewPar.css("height", "auto");
5480      var previewParAnimateHeight = previewPar.css("height");
5481      previewPar.css("height", previewParCurrentHeight);
5482    }
5483
5484    // Content
5485    var toggleContent = parentSection.find("> div.toggle-content");
5486
5487    if (parentSection.hasClass("active")) {
5488      $(previewPar).animate(
5489        {
5490          height: previewParAnimateHeight,
5491        },
5492        350,
5493        function () {
5494          $(this).addClass("preview-active");
5495        }
5496      );
5497      toggleContent.slideDown(350, function () {});
5498    } else {
5499      $(previewPar).animate(
5500        {
5501          height: previewParClosedHeight,
5502        },
5503        350,
5504        function () {
5505          $(this).removeClass("preview-active");
5506        }
5507      );
5508      toggleContent.slideUp(350, function () {});
5509    }
5510  });
5511
5512  // accordion
5513  $(".accordion-head").on("click", function (e) {
5514    e.preventDefault();
5515    if (!$(this).next().hasClass("collapsing")) {
5516      $(this).toggleClass("accordion-open");
5517      $(this).toggleClass("accordion-close");
5518    }
5519  });
5520
5521  // progress bar
5522  $("[data-appear-progress-animation]").iAppear(
5523    function () {
5524      var $this = $(this);
5525
5526      var delay = $this.attr("data-appear-animation-delay") ? $this.attr("data-appear-animation-delay") : 1;
5527      if (delay > 1) $this.css("animation-delay", delay + "ms");
5528      $this.addClass($this.attr("data-appear-animation"));
5529
5530      setTimeout(function () {
5531        $this.animate(
5532          {
5533            width: $this.attr("data-appear-progress-animation"),
5534          },
5535          1500,
5536          "easeOutQuad",
5537          function () {
5538            $this.find(".progress-bar-tooltip").animate(
5539              {
5540                opacity: 1,
5541              },
5542              500,
5543              "easeOutQuad"
5544            );
5545          }
5546        );
5547      }, delay);
5548    },
5549    {
5550      rootMargin: "-50px 0px -50px 0px",
5551      accX: 0,
5552      accY: -50,
5553    }
5554  );
5555
5556  // portfolio item
5557  $(".item.animated-block").iAppear(function () {
5558    $(this).addClass($(this).data("animation")).addClass("visible");
5559  });
5560
5561  // flexslider appear
5562  $(".appear-block").iAppear(function () {
5563    $(this).removeClass("appear-block");
5564    CheckFlexSlider();
5565    InitFlexSlider();
5566    InitOwlSlider();
5567
5568    typeof initSwiperSlider === "function" && initSwiperSlider();
5569  });
5570
5571  // js-load-block appear
5572  if ($(".js-load-block").length) {
5573    var objUrl = parseUrlQuery();
5574    var bClearCache = false;
5575    if ("clear_cache" in objUrl) {
5576      if (objUrl.clear_cache == "Y") {
5577        bClearCache = true;
5578      }
5579    }
5580
5581    var items = [];
5582    var bIdle = true;
5583    var insertNextBlockContent = function () {
5584      if (bIdle) {
5585        if (items.length) {
5586          bIdle = false;
5587          var item = items.pop();
5588
5589          item.content = $.trim(item.content);
5590
5591          // remove /bitrix/js/main/core/core_window.js if it was loaded already
5592          if (item.content.indexOf("/bitrix/js/main/core/core_window.") !== -1 && BX.WindowManager) {
5593            item.content = item.content.replace(
5594              /<script src="\/bitrix\/js\/main\/core\/core_window\.[^>]*><\/script>/gm,
5595              ""
5596            );
5597          }
5598
5599          // remove /bitrix/js/currency/core_currency.js if it was loaded already
5600          if (
5601            item.content.indexOf("/bitrix/js/currency/core_currency.") !== -1 &&
5602            typeof BX.Currency === "object" &&
5603            BX.Currency.defaultFormat
5604          ) {
5605            item.content = item.content.replace(
5606              /<script src="\/bitrix\/js\/currency\/core_currency\.[^>]*><\/script>/gm,
5607              ""
5608            );
5609          }
5610
5611          // remove /bitrix/js/main/pageobject/pageobject.js if it was loaded already
5612          if (item.content.indexOf("/bitrix/js/main/pageobject/pageobject.") !== -1 && BX.PageObject) {
5613            item.content = item.content.replace(
5614              /<script src="\/bitrix\/js\/main\/pageobject\/pageobject\.[^>]*><\/script>/gm,
5615              ""
5616            );
5617          }
5618
5619          // remove /bitrix/js/main/polyfill/promise/js/promise.js if it not need
5620          if (
5621            item.content.indexOf("/bitrix/js/main/polyfill/promise/js/promise.") !== -1 &&
5622            typeof window.Promise !== "undefined" &&
5623            window.Promise.toString().indexOf("[native code]") !== -1
5624          ) {
5625            item.content = item.content.replace(
5626              /<script src="\/bitrix\/js\/main\/polyfill\/promise\/js\/promise\.[^>]*><\/script>/gm,
5627              ""
5628            );
5629          }
5630
5631          var ob = BX.processHTML(item.content);
5632
5633          // stop ya metrika webvisor DOM indexer
5634          pauseYmObserver();
5635
5636          item.block.removeAttr("data-file").removeClass("loader_circle");
5637
5638          if (item.block.data("appendTo")) {
5639            item.block.find(item.block.data("appendTo"))[0].innerHTML = ob.HTML;
5640          } else {
5641            if (item.block.find('> div[id*="bx_incl_"]').length) {
5642              item.block.find('> div[id*="bx_incl_"]')[0].innerHTML = ob.HTML;
5643            } else {
5644              item.block[0].innerHTML = ob.HTML;
5645            }
5646          }
5647
5648          BX.ajax.processScripts(ob.SCRIPT);
5649
5650          var eventdata = { action: "jsLoadBlock" };
5651          BX.onCustomEvent("onCompleteAction", [eventdata, item.block]);
5652
5653          // resume ya metrika webvisor
5654          // 500ms
5655          setTimeout(resumeYmObserver, 500);
5656
5657          bIdle = true;
5658          insertNextBlockContent();
5659        }
5660      }
5661    };
5662
5663    $(".js-load-block").iAppear(
5664      function () {
5665        var $this = $(this);
5666
5667        if ($this.data("file")) {
5668          var add_url = bClearCache ? "?clear_cache=Y" : "";
5669          if ($this.data("block")) {
5670            add_url += (bClearCache ? "&" : "?") + "BLOCK=" + $this.data("block");
5671          }
5672
5673          // get content
5674          $.get($this.data("file") + add_url).done(function (html) {
5675            items.push({
5676              block: $this,
5677              content: html,
5678            });
5679
5680            if (items.length == 1) {
5681              setTimeout(insertNextBlockContent, 100);
5682            }
5683          });
5684        }
5685      },
5686      {
5687        rootMargin: isMobile ? "300px 0px 300px 0px" : "150px 0px 150px 0px",
5688        accX: 0,
5689        accY: isMobile ? 300 : 150,
5690      }
5691    );
5692  }
5693
5694  $("a[rel=tooltip]").tooltip();
5695  $("span[data-toggle=tooltip]").tooltip();
5696
5697  $("select.sort").on("change", function () {
5698    location.href = $(this).val();
5699  });
5700
5701  setTimeout(function (th) {
5702    $(".catalog.group.list .item").each(function () {
5703      var th = $(this);
5704      if ((tmp = th.find(".image").outerHeight() - th.find(".text_info").outerHeight()) > 0) {
5705        th.find(".text_info .titles").height(th.find(".text_info .titles").outerHeight() + tmp);
5706      }
5707    });
5708  }, 50);
5709
5710  // ajax tabs
5711
5712  // tabs on front in mobile
5713  $(".items-link-mobile").each(function () {
5714    var _this = $(this),
5715      selectOption = _this.find("option"),
5716      selectOptionLength = selectOption.length,
5717      selectedOption = selectOption.filter(":selected"),
5718      duration = 200; //
5719
5720    _this.hide();
5721    _this.wrap('<div class="select"></div>');
5722    $("<div>", {
5723      class: "new-select",
5724      text: _this.children("option:disabled").text(),
5725    }).insertAfter(_this);
5726
5727    var selectHead = _this.next(".new-select");
5728    $("<div>", {
5729      class: "new-select__list",
5730    }).insertAfter(selectHead);
5731
5732    var selectList = selectHead.next(".new-select__list");
5733    for (var i = 1; i < selectOptionLength; i++) {
5734      $("<div>", {
5735        class: "new-select__item",
5736        html: $("<span>", {
5737          text: selectOption.eq(i).text(),
5738        }),
5739      })
5740        .attr("data-value", selectOption.eq(i).val())
5741        .appendTo(selectList);
5742    }
5743
5744    var selectItem = selectList.find(".new-select__item");
5745    var selectItemFirst = selectList.find(".new-select__item:first-child");
5746    selectList.slideUp();
5747    selectHead.on("click", function () {
5748      if (!$(this).hasClass("on")) {
5749        $(this).addClass("on");
5750        selectList.slideDown(duration);
5751
5752        selectItemCur = selectList.find(".new-select__item.active");
5753
5754        if (!selectItem.hasClass("active")) {
5755          selectItemFirst.addClass("active");
5756          selectItemCur = selectItemFirst;
5757        }
5758
5759        selectItem.on("click", function () {
5760          selectItemCur.removeClass("active");
5761          var chooseItem = $(this).data("value");
5762
5763          $("select").val(chooseItem).attr("selected", "selected");
5764          selectHead.text($(this).find("span").text());
5765          selectHead.attr("data-value", $(this).attr("data-value"));
5766          $(this).addClass("active");
5767          var _this = $(this);
5768          selectList.slideUp(150, function () {
5769            selectHead.removeClass("on");
5770
5771            var index = _this.index();
5772            var curHeadBlock = _this.closest(".head-block");
5773            var indexTab = curHeadBlock.find(".items-link .item-link.active");
5774            var indexActiveTab = indexTab.index();
5775
5776            if (indexActiveTab != index) {
5777              curHeadBlock.find(".items-link .item-link").eq(index).trigger("click");
5778            }
5779          });
5780        });
5781      } else {
5782        $(this).removeClass("on");
5783        selectList.slideUp(duration);
5784      }
5785    });
5786  });
5787
5788  // gallery in list
5789  $(document).on("mouseenter", ".section-gallery-wrapper .section-gallery-wrapper__item", function () {
5790    const _this = $(this);
5791    const index = _this.index();
5792    const nav_items = _this.closest(".image-list-wrapper").find(".section-gallery-nav .section-gallery-nav__item");
5793
5794    _this.siblings().removeClass("active");
5795    _this.addClass("active");
5796
5797    nav_items.removeClass("active");
5798    nav_items.filter(":eq(" + index + ")").addClass("active");
5799  });
5800
5801  $(document).on("click", ".section-gallery-nav .section-gallery-nav__item", function () {
5802    const _this = $(this);
5803    const index = _this.index();
5804    const items = _this.closest(".image-list-wrapper").find(".section-gallery-wrapper .section-gallery-wrapper__item");
5805
5806    _this.siblings().removeClass("active");
5807    _this.addClass("active");
5808
5809    items.removeClass("active");
5810    items.filter(":eq(" + index + ")").addClass("active");
5811  });
5812
5813  // item galery
5814  $(".thumbs .item a").on("click", function (e) {
5815    e.preventDefault();
5816    $(".thumbs .item").removeClass("current");
5817    $(this).closest(".item").toggleClass("current");
5818    $(".slides li" + $(this).attr("href"))
5819      .addClass("current")
5820      .siblings()
5821      .removeClass("current");
5822  });
5823
5824  $("header.fixed .btn-responsive-nav").on("click", function () {
5825    $("html, body").animate({ scrollTop: 0 }, 400);
5826  });
5827
5828  $("body").on("click", ".form .refresh-page", function () {
5829    location.href = location.href;
5830  });
5831
5832  $(document).on("click", ".basket.fly .opener", function () {
5833    if (window.matchMedia("(max-width: 767px)").matches) location.href = arAsproOptions["THEME"]["URL_BASKET_SECTION"];
5834    else {
5835      $(".jqmWindow.right_slide.opened").jqmHide();
5836      $(this).closest(".ajax_basket").toggleClass("opened").removeClass('widget_open').removeClass;
5837    }
5838  });
5839
5840  $(document).on("click", ".basket.fly .close_block", function () {
5841    $(".basket.fly .opener").trigger("click");
5842  });
5843
5844  // show props
5845  $(document).on("click", ".show_props", function () {
5846    $(this).prev(".props_list").stop().slideToggle(333);
5847    $(this).find(".char_title").toggleClass("opened");
5848  });
5849
5850  // animated labels
5851  $(document)
5852    .on("focus", ".fill-animate input,.fill-animate textarea", function () {
5853      $(this).addClass("input-filed");
5854    })
5855    .on("focusout", ".fill-animate input,.fill-animate textarea", function () {
5856      if ("" != $(this).val()) {
5857        $(this).addClass("input-filed");
5858      } else {
5859        $(this).removeClass("input-filed");
5860      }
5861    });
5862
5863  // accordion action
5864  $(".panel-collapse").on("hidden.bs.collapse", function () {
5865    $(this).parent().toggleClass("opened");
5866  });
5867  $(".panel-collapse").on("show.bs.collapse", function () {
5868    $(this).parent().toggleClass("opened");
5869  });
5870
5871  $(document).on("click", ".reload-page", function () {
5872    location.reload(true);
5873  });
5874
5875  // DIGITAL BASKET
5876  // - basket fly close
5877  $(document).on("click", function () {
5878    if ($(".basket.fly").length && $(".ajax_basket").hasClass("opened")) {
5879      $(".ajax_basket").removeClass("opened");
5880    }
5881  });
5882
5883  $(document).on("click", ".basket.fly", function (e) {
5884    e.stopPropagation();
5885  });
5886
5887  // - slide_right close
5888  $(document).on("click", function () {
5889    if ($(".right_slide.opened").length) {
5890      $(".jqmWindow.right_slide.opened").jqmHide();
5891    }
5892  });
5893
5894  $(document).on("click", ".right_slide.opened", function (e) {
5895    e.stopPropagation();
5896  });
5897
5898  // - COUNTER
5899  var timerBasketCounter = false;
5900
5901  // -- keyup input
5902  $(document).on("keydown", ".counter__count", function (e) {
5903    // Allow: backspace, delete, tab, escape, enter and .
5904    if (
5905      $.inArray(e.keyCode, [46, 8, 9, 27, 13, 110, 190]) !== -1 ||
5906      // Allow: Ctrl+A, Command+A
5907      (e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
5908      // Allow: home, end, left, right, down, up
5909      (e.keyCode >= 35 && e.keyCode <= 40)
5910    ) {
5911      // let it happen, don't do anything
5912      return;
5913    }
5914    // Ensure that it is a number and stop the keypress
5915    if ((e.shiftKey || e.keyCode < 48 || e.keyCode > 57) && (e.keyCode < 96 || e.keyCode > 105)) {
5916      e.preventDefault();
5917    }
5918  });
5919  $(document).on("keyup", ".counter__count", function (e) {
5920    var $this = $(this),
5921      counterInputValueNew = $this.val(),
5922      price = $this.closest(".buy_block").find("input[name=PRICE]").val();
5923
5924    Summ($this, counterInputValueNew, price);
5925  });
5926
5927  $("select.region").on("change", function () {
5928    var val = parseInt($(this).val());
5929    if ($("select.city").length) {
5930      if (val) {
5931        $("select.city").removeAttr("disabled");
5932        $("select.city option").hide();
5933        $("select.city option[data-parent_section=" + val + "]").show();
5934      } else $("select.city").attr("disabled", "disabled");
5935    }
5936  });
5937
5938  $("select.city, select.region").on("change", function () {
5939    var _this = $(this),
5940      val = parseInt(_this.val());
5941    if (_this.hasClass("region")) {
5942      $("select.city option:eq(0)").show();
5943      $("select.city").val(0);
5944    }
5945
5946    if ((_this.hasClass("region") && !val) || _this.hasClass("city")) {
5947      $.ajax({
5948        type: "POST",
5949        data: { ID: val },
5950      }).done(function (html) {
5951        var ob = BX.processHTML(html);
5952        $(".ajax_items")[0].innerHTML = ob.HTML;
5953        BX.ajax.processScripts(ob.SCRIPT);
5954      });
5955    }
5956  });
5957
5958  // -- blur input
5959  $(document).on("change", ".counter__count", function () {
5960    BasketCounter($(this));
5961  });
5962
5963  // -- click minus, plus button
5964  $(document).on("click", ".counter__action", function (e) {
5965    e.stopPropagation();
5966    BasketCounter($(this));
5967  });
5968
5969  // - Add2Basket
5970  $(document).on("click", ".to_cart:not(.opt_action)", function (e) {
5971    e.stopPropagation();
5972
5973    var item = $(this).closest("[data-item]");
5974    var _this = $(this);
5975    var itemData = item.data("item");
5976    var buyBlock = item.find(".buy_block");
5977    var buttonToCart = buyBlock.find(".to_cart");
5978    var itemQuantity = parseFloat(buttonToCart.data("quantity"));
5979    if (isNaN(itemQuantity) || itemQuantity <= 0) {
5980      itemQuantity = 1;
5981    }
5982    var countItem = $(".basket .count").length ? parseInt($(".basket .count").first().text()) : 0;
5983    $(".basket .count")
5984      .text(countItem + 1)
5985      .removeClass("empted");
5986
5987    var bBasketTop =
5988      typeof arAsproOptions["THEME"]["ORDER_BASKET_VIEW"] !== "undefined" &&
5989      $.trim(arAsproOptions["THEME"]["ORDER_BASKET_VIEW"]) === "HEADER" &&
5990      $(".basket.top").length;
5991    var bBasketFly =
5992      typeof arAsproOptions["THEME"]["ORDER_BASKET_VIEW"] !== "undefined" && !bBasketTop && $(".basket.fly").length;
5993
5994    if (itemData && !isNaN(itemData.ID) && parseInt(itemData.ID) > 0) {
5995      if (typeof arBasketItems === "object" && typeof arBasketItems[itemData.ID] !== "object") {
5996        arBasketItems[itemData.ID] = { ID: itemData.ID, QUANTITY: itemQuantity };
5997      }
5998
5999      $.ajax({
6000        url: arAsproOptions["SITE_DIR"] + "include/footer/basket.php",
6001        type: "POST",
6002        data: { itemData: itemData, quantity: itemQuantity },
6003      }).done(function (html) {
6004        buyBlock.addClass("in");
6005
6006        var eventdata = { action: "loadForm" };
6007        BX.onCustomEvent("onCompleteAction", [eventdata, _this[0]]);
6008
6009        if (bBasketTop) {
6010          $(".ajax_basket").replaceWith(html);
6011        } else if (bBasketFly) {
6012          $(".ajax_basket").html($($.trim(html)).html());
6013        }
6014
6015        // show cart or notice
6016        if (typeof JNoticeSurface === "undefined") {
6017          if (bBasketTop) {
6018            $(".header-cart").addClass("opened");
6019
6020            if (typeof headerCartHideTimer !== "undefined") {
6021              clearTimeout(headerCartHideTimer);
6022            }
6023
6024            headerCartHideTimer = setTimeout(function () {
6025              $(".header-cart").removeClass("opened");
6026            }, 2000);
6027          } else if (bBasketFly) {
6028            setTimeout(function () {
6029              if (!$(".ajax_basket").hasClass("opened")) {
6030                $(".ajax_basket").addClass("opened");
6031              }
6032            }, 50);
6033          }
6034        } else {
6035          JNoticeSurface.get().onAdd2cart([item[0]]);
6036        }
6037
6038        var eventdata = { action: "loadBasket" };
6039        BX.onCustomEvent("onCompleteAction", [eventdata, $(html)]);
6040
6041        if (arAsproOptions["THEME"]["USE_SALE_GOALS"] != "N") {
6042          var eventdata = { goal: "goal_basket_add", params: { itemData: itemData, quantity: itemQuantity } };
6043          BX.onCustomEvent("onCounterGoals", [eventdata]);
6044        }
6045      });
6046    } else {
6047      $(this).parent().removeClass("loadings");
6048      return;
6049    }
6050  });
6051
6052  // - Remove9Basket
6053  $(document).on("click", ".remove", function (e) {
6054    e.stopPropagation();
6055
6056    var item = $(this).closest("[data-item]");
6057    var itemData = item.data("item");
6058    var bRemove = "Y";
6059    var bRemoveAll = $.trim($(this).closest("[data-remove_all]").data("remove_all")) === "Y" ? "Y" : false;
6060    var getCurUri = $.trim($("input[name=getPageUri]").val());
6061    var countItem = $(".basket .count").length
6062      ? parseInt($(".basket .count").first().text())
6063      : $(".basket.default").length
6064      ? $(".basket.default .cart__item").length
6065      : 0;
6066    var bOneItem = countItem - 1 <= 0;
6067    var scrollTop = $(".basket.fly").length
6068      ? $(".basket.fly .items_wrap").scrollTop()
6069      : $(".header-cart .basket.top").length
6070      ? $(".header-cart .basket.top .items").scrollTop()
6071      : "";
6072
6073    var bBasketTop =
6074      typeof arAsproOptions["THEME"]["ORDER_BASKET_VIEW"] !== "undefined" &&
6075      $.trim(arAsproOptions["THEME"]["ORDER_BASKET_VIEW"]) === "HEADER" &&
6076      $(".basket.top").length;
6077    var bBasketFly =
6078      typeof arAsproOptions["THEME"]["ORDER_BASKET_VIEW"] !== "undefined" && !bBasketTop && $(".basket.fly").length;
6079
6080    if (bRemoveAll) {
6081      arBasketItems = [];
6082    } else if (typeof arBasketItems === "object" && itemData && typeof arBasketItems[itemData.ID] === "object") {
6083      delete arBasketItems[itemData.ID];
6084    }
6085
6086    var _ajax = function () {
6087      $.ajax({
6088        url: arAsproOptions["SITE_DIR"] + "include/footer/basket.php",
6089        type: "POST",
6090        data: { itemData: itemData, remove: bRemove, removeAll: bRemoveAll },
6091      }).done(function (html) {
6092        if (bBasketTop) {
6093          $(".ajax_basket").replaceWith(html);
6094        } else if (bBasketFly) {
6095          $(".ajax_basket").html($($.trim(html)).html());
6096          $(".basket.fly .items_wrap").scrollTop(scrollTop);
6097        }
6098
6099        var eventdata = { action: "loadBasket" };
6100        BX.onCustomEvent("onCompleteAction", [eventdata, $(html)]);
6101
6102        if (getCurUri) {
6103          $.ajax({
6104            url: getCurUri,
6105            type: "POST",
6106          }).done(function (html) {
6107            if ($(".basket.default").length) {
6108              $(".basket.default").html(html);
6109            }
6110          });
6111        }
6112
6113        if (arAsproOptions["THEME"]["USE_SALE_GOALS"] != "N") {
6114          var eventdata = {
6115            goal: "goal_basket_remove",
6116            params: { itemData: itemData, remove: bRemove, removeAll: bRemoveAll },
6117          };
6118          BX.onCustomEvent("onCounterGoals", [eventdata]);
6119        }
6120      });
6121    };
6122
6123    if ((typeof itemData !== "undefined" && !isNaN(itemData.ID) && itemData.ID > 0) || bRemoveAll) {
6124      if (bRemoveAll) {
6125        $(".buy_block").removeClass("in");
6126        $(".basket .count").text(0).addClass("empted");
6127      } else {
6128        $(".basket .count")
6129          .text(countItem - 1)
6130          .removeClass("empted");
6131
6132        $("[data-item]").each(function () {
6133          if ($(this).data("item").ID == itemData.ID) {
6134            $(this).find(".buy_block").removeClass("in").find(".to_cart").data("quantity", 0);
6135            $(this).find(".buy_block").find(".counter__count").val(1);
6136          }
6137        });
6138      }
6139
6140      if (bOneItem || bRemoveAll) {
6141        $(".remove.all").remove();
6142
6143        $(".basket_wrap").fadeOut(200);
6144        setTimeout(function () {
6145          $(".basket .basket_empty").fadeIn(200);
6146          $(".basket.fly .wrap").addClass("empty-basket");
6147        }, 200);
6148        setTimeout(_ajax, 400);
6149      } else {
6150        item.animate({ opacity: 0 }, 200).slideUp(200, function () {
6151          _ajax();
6152        });
6153      }
6154    } else {
6155      return;
6156    }
6157  });
6158
6159  $(document).on("click", ".print", function () {
6160    window.print();
6161  });
6162
6163  $(".choise").on("click", function () {
6164    var $this = $(this);
6165    if (typeof $this.data("block") !== "undefined") {
6166      var block = $this.attr("data-block");
6167
6168      try {
6169        var $block = BX(block) ? $("#" + block) : $(".detail-block." + block);
6170      } catch (e) {
6171        var $block = $(block);
6172      }
6173
6174      if ($block.length) {
6175        if ($block.closest(".tab-pane").length) {
6176          var offset = -206;
6177          if (typeof arAsproOptions !== "undefined") {
6178            offset = window.matchMedia("(max-width:991px)").matches
6179              ? arAsproOptions.THEME.HEADER_MOBILE_FIXED !== "Y" || arAsproOptions.THEME.HEADER_MOBILE_SHOW !== "ALWAYS"
6180                ? -187 + 62
6181                : -187
6182              : arAsproOptions.THEME.TOP_MENU_FIXED !== "Y"
6183              ? -206 + 81
6184              : -206;
6185          }
6186
6187          $block.data("offset", offset);
6188          $('.ordered-block a[href="#' + $block.closest(".tab-pane").attr("id") + '"]').click();
6189        }
6190
6191        scrollToBlock($block);
6192      }
6193    }
6194  });
6195
6196  // touch event
6197  document.addEventListener(
6198    "touchend",
6199    function (event) {
6200      if (!$(event.target).closest(".menu-item").length && !$(event.target).hasClass("menu-item")) {
6201        $(".mega-menu .dropdown-menu").css({ display: "none", opacity: 0 });
6202        $(".menu-item").removeClass("hover");
6203      }
6204      if (!$(event.target).closest(".menu.topest").length) {
6205        $(".menu.topest").css({ overflow: "hidden" });
6206        $(".menu.topest > li").removeClass("hover");
6207      }
6208      if (!$(event.target).closest(".full.has-child").length) {
6209        $(".menu_top_block.catalog_block li").removeClass("hover");
6210      }
6211      // if(!$(event.target).closest('.basket_block').length){
6212      //   $('.basket_block .link').removeClass('hover');
6213      //   $('.basket_block .basket_popup_wrapp').slideUp();
6214      // }
6215      // if(!$(event.target).closest('.catalog_item').length){
6216      //   var tabsContentUnhoverHover = $('.tab:visible').attr('data-unhover') * 1;
6217      //   $('.tab:visible').stop().animate({'height': tabsContentUnhoverHover}, 100);
6218      //   $('.tab:visible').find('.catalog_item').removeClass('hover');
6219      //   $('.tab:visible').find('.catalog_item .buttons_block').stop().fadeOut(233);
6220      //   if($('.catalog_block').length){
6221      //     $('.catalog_block').find('.catalog_item_wrapp').removeClass('hover');
6222      //     $('.catalog_block').find('.catalog_item').removeClass('hover');
6223      //   }
6224      // }
6225    },
6226    false
6227  );
6228
6229  touchMenu(".mega-menu .menu-item");
6230  touchTopMenu(".menu.topest li");
6231});
6232
6233function touchMenu(selector) {
6234  if (isMobile) {
6235    if ($(selector).length) {
6236      $(selector).each(function () {
6237        var th = $(this);
6238        th.on("touchend", function (e) {
6239          var _th = $(e.target).closest(".menu-item");
6240
6241          $(".menu.topest > li").removeClass("hover");
6242          $(".menu_top_block.catalog_block li").removeClass("hover");
6243
6244          if (_th.find(".dropdown-menu").length && !_th.hasClass("hover")) {
6245            e.preventDefault();
6246            e.stopPropagation();
6247            _th.siblings().removeClass("hover");
6248            _th.addClass("hover");
6249            $(".menu-row .dropdown-menu").css({ display: "none", opacity: 0 });
6250            if (_th.hasClass("menu-item")) {
6251              _th.closest(".dropdown-menu").css({ display: "block", opacity: 1 });
6252            }
6253            if (_th.find("> .wrap > .dropdown-menu")) {
6254              _th.find("> .wrap > .dropdown-menu").css({ display: "block", opacity: 1 });
6255            } else if (_th.find("> .dropdown-menu")) {
6256              _th.find("> .dropdown-menu").css({ display: "block", opacity: 1 });
6257            }
6258            CheckTopVisibleMenu();
6259          } else {
6260            var href = $(e.target).attr("href") ? $(e.target).attr("href") : $(e.target).closest("a").attr("href");
6261            if (href && href !== "undefined") location.href = href;
6262          }
6263        });
6264      });
6265    }
6266  } else {
6267    $(selector).off();
6268  }
6269}
6270
6271function touchTopMenu(selector) {
6272  if (isMobile) {
6273    if ($(selector).length) {
6274      $(selector).each(function () {
6275        var th = $(this);
6276        th.on("touchend", function (e) {
6277          var _th = $(e.target).closest("li");
6278
6279          $(".menu-item").removeClass("hover");
6280          $(".menu-item .dropdown-menu").css({ display: "none", opacity: 0 });
6281          $(".menu_top_block.catalog_block li").removeClass("hover");
6282
6283          if (_th.hasClass("more") && !_th.hasClass("hover")) {
6284            e.preventDefault();
6285            e.stopPropagation();
6286            _th.siblings().removeClass("hover");
6287            _th.addClass("hover");
6288            $(".menu.topest").css({ overflow: "visible" });
6289          } else {
6290            var href = $(e.target).attr("href") ? $(e.target).attr("href") : $(e.target).closest("a").attr("href");
6291            if (href && href !== "undefined") location.href = href;
6292          }
6293        });
6294      });
6295    }
6296  } else {
6297    $(selector).off();
6298  }
6299}
6300
6301scrollToBlock = function (block) {
6302  if ($(block).length) {
6303    scrollToBlock.last = block;
6304
6305    if (typeof $(block).data("toggle") !== "undefined") {
6306      $(block).click();
6307    }
6308
6309    var offset = -81 - 64;
6310    if (typeof $(block).data("offset") !== "undefined") {
6311      offset = $(block).data("offset");
6312    } else {
6313      if (typeof arAsproOptions !== "undefined") {
6314        offset = window.matchMedia("(max-width:991px)").matches
6315          ? arAsproOptions.THEME.HEADER_MOBILE_FIXED !== "Y" || arAsproOptions.THEME.HEADER_MOBILE_SHOW !== "ALWAYS"
6316            ? -43
6317            : -62 - 43
6318          : arAsproOptions.THEME.TOP_MENU_FIXED !== "Y"
6319          ? -43
6320          : -81 - 43;
6321
6322        if ($(block).hasClass("drag-block")) {
6323          offset += 43;
6324        }
6325      }
6326    }
6327
6328    offset = $(block).offset().top + offset;
6329
6330    $("body").addClass("scrolling-state");
6331    $("body, html").animate({ scrollTop: offset }, 500);
6332    setTimeout(function () {
6333      $("body").removeClass("scrolling-state");
6334    }, 500);
6335  }
6336};
6337
6338scrollToBlock.rescroll = function () {
6339  if (typeof scrollToBlock.last !== "undefined") {
6340    scrollToBlock(scrollToBlock.last);
6341  }
6342};
6343
6344// DIGITAL BASKET
6345function number_format(number, decimals, dec_point, thousands_sep) {
6346  number = (number + "").replace(/[^0-9+\-Ee.]/g, "");
6347  var n = !isFinite(+number) ? 0 : +number,
6348    prec = !isFinite(+decimals) ? 0 : Math.abs(decimals),
6349    sep = typeof thousands_sep === "undefined" ? "," : thousands_sep,
6350    dec = typeof dec_point === "undefined" ? "." : dec_point,
6351    s = "",
6352    toFixedFix = function (n, prec) {
6353      var k = Math.pow(10, prec);
6354      return "" + (Math.round(n * k) / k).toFixed(prec);
6355    };
6356
6357  // Fix for IE parseFloat(0.55).toFixed(0) = 0;
6358  s = (prec ? toFixedFix(n, prec) : "" + Math.round(n)).split(".");
6359
6360  if (s[0].length > 3) {
6361    s[0] = s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g, sep);
6362  }
6363
6364  if ((s[1] || "").length < prec) {
6365    s[1] = s[1] || "";
6366    s[1] += new Array(prec - s[1].length + 1).join("0");
6367  }
6368
6369  return s.join(dec);
6370}
6371
6372function setBasketItemsClasses() {
6373  if (typeof arBasketItems !== "undefined" && typeof arBasketItems !== "string" && arBasketItems) {
6374    if (Object.keys(arBasketItems).length) {
6375      for (var key in arBasketItems) {
6376        $("[data-item]").each(function () {
6377          if ($(this).data("id") == key) {
6378            $(this).find(".buy_block").addClass("in");
6379            $(this).find(".buy_block .counter__count").val(arBasketItems[key].QUANTITY);
6380          if ($(this).find("input[name=buy_services_"+key+"]")) {
6381            $(this).find("input[name=buy_services_"+key+"]").prop("checked", "checked");
6382          }
6383          }
6384        });
6385      }
6386    }
6387  }
6388}
6389function setCompareItemsClass() {
6390  if (typeof arAsproOptions === "object" && arAsproOptions && arAsproOptions["COMPARE_ITEMS"]) {
6391    if (arAsproOptions["COMPARE_ITEMS"].length > 0) {
6392      for (var key in arAsproOptions["COMPARE_ITEMS"]) {
6393        $(".js-item-action[data-action='compare']").each(function () {
6394          if ($(this).data("item_compare") && $(this).data("item_compare").ID == arAsproOptions["COMPARE_ITEMS"][key]) {
6395            $(this).parent().addClass("active");
6396            $(this).addClass("active");
6397            $(this).attr("title", $(this).data("title_compared"));
6398            if ($(this).find(".info-buttons__item-text").length) {
6399              $(this).find(".info-buttons__item-text").text($(this).data("title_compared"));
6400            }
6401          }
6402        });
6403      }
6404    }
6405  }
6406}
6407
6408function Summ(el, counterInputValueNew, price) {
6409  if (counterInputValueNew <= 0) {
6410    counterInputValueNew = 1;
6411  }
6412
6413  var summ = number_format(counterInputValueNew * price, 0, ".", " "),
6414    allSumm = 0;
6415
6416  el.closest(".cart")
6417    .find(".cart__item")
6418    .each(function () {
6419      var $this = $(this),
6420        price = parseFloat($this.find("input[name=PRICE]").val()),
6421        count = parseFloat($this.find(".counter__count").val());
6422
6423      if (count <= 0) {
6424        count = 1;
6425      }
6426
6427      if (!isNaN(price) && !isNaN(count)) {
6428        allSumm += count * price;
6429      }
6430    });
6431
6432  allSumm = number_format(parseFloat(allSumm), 0, ".", " ");
6433
6434  el.closest(".cart__item").find(".cart__item-summ .price_val").text(summ);
6435  el.closest(".basket").find(".foot .cart-total__value").text(allSumm);
6436}
6437
6438var timerBasketUpdate = false;
6439// - COUNTER
6440BasketCounter = function (el) {
6441  var elClass = $.trim(el.attr("class")),
6442    bClassMinus = elClass.indexOf("counter__action--minus") > -1,
6443    bClassPlus = elClass.indexOf("counter__action--plus") > -1,
6444    bClassCount = elClass.indexOf("counter__count") > -1,
6445    getCurUri = $.trim($("input[name=getPageUri]").val()),
6446    buyBlock = el.closest(".buy_block"),
6447    buttonToCart = buyBlock.find(".to_cart"),
6448    counterWrapper = el.closest(".counter"),
6449    counterInput = counterWrapper.find(".counter__count"),
6450    counterInputValue = parseFloat($.trim(counterInput.val())),
6451    price = parseFloat(buyBlock.find("input[name=PRICE]").val()),
6452    counterInputMaxCount = Math.pow(10, parseInt(counterInput.attr("maxlength"))) - 1,
6453    bAjax = el.closest(".basket").length || counterWrapper.hasClass("js-ajax") ? true : false;
6454  var bBasket = el.closest(".basket").length;
6455
6456  // class minus button
6457  if (bClassMinus) {
6458    var counterInputValueNew = counterInputValue - 1;
6459
6460    if (counterInputValueNew <= 0) {
6461      counterInputValueNew = 1;
6462    }
6463
6464    counterInput.val(counterInputValueNew);
6465
6466    if (bAjax) {
6467      Summ(el, counterInputValueNew, price);
6468
6469      if (timerBasketUpdate) {
6470        clearTimeout(timerBasketUpdate);
6471        timerBasketUpdate = false;
6472      }
6473
6474      timerBasketUpdate = setTimeout(function () {
6475        BasketUpdate(el, counterInputValueNew, bBasket);
6476        timerBasketUpdate = false;
6477      }, 700);
6478    }
6479  }
6480  // class plus button
6481  else if (bClassPlus) {
6482    var counterInputValueNew = counterInputValue + 1;
6483
6484    if (counterInputValueNew > counterInputMaxCount) {
6485      counterInputValueNew = counterInputMaxCount;
6486    }
6487
6488    counterInput.val(counterInputValueNew);
6489
6490    if (bAjax) {
6491      Summ(el, counterInputValueNew, price);
6492
6493      if (timerBasketUpdate) {
6494        clearTimeout(timerBasketUpdate);
6495        timerBasketUpdate = false;
6496      }
6497
6498      timerBasketUpdate = setTimeout(function () {
6499        BasketUpdate(el, counterInputValueNew, bBasket);
6500        timerBasketUpdate = false;
6501      }, 700);
6502    }
6503  }
6504  // class input
6505  else if (bClassCount) {
6506    var counterInputValueNew = counterInputValue;
6507
6508    if (counterInputValueNew <= 0 || isNaN(counterInputValueNew)) {
6509      counterInputValueNew = 1;
6510    }
6511    el.val(counterInputValueNew);
6512
6513    if (bAjax) {
6514      BasketUpdate(el, counterInputValueNew, bBasket);
6515    }
6516  }
6517
6518  if (!getCurUri && !el.closest(".basket.fly").length) {
6519    buttonToCart.data("quantity", counterInputValueNew);
6520  }
6521};
6522
6523BasketUpdate = function (el, counterInputValueNew, actualCounter) {
6524  var itemData = el.closest("[data-item]").data("item");
6525  var itemData =
6526    typeof arBasketItems === "object" && typeof arBasketItems[itemData.ID] === "object"
6527      ? arBasketItems[itemData.ID]
6528      : itemData;
6529  var getCurUri = $.trim($("input[name=getPageUri]").val());
6530  var scrollTop = $(".basket.fly").length
6531    ? $(".basket.fly .items_wrap").scrollTop()
6532    : $(".header-cart .basket.top").length
6533    ? $(".header-cart .basket.top .items").scrollTop()
6534    : "";
6535
6536  var bBasketTop =
6537    typeof arAsproOptions["THEME"]["ORDER_BASKET_VIEW"] !== "undefined" &&
6538    $.trim(arAsproOptions["THEME"]["ORDER_BASKET_VIEW"]) === "HEADER" &&
6539    $(".basket.top").length;
6540  var bBasketFly =
6541    typeof arAsproOptions["THEME"]["ORDER_BASKET_VIEW"] !== "undefined" && !bBasketTop && $(".basket.fly").length;
6542
6543  if (typeof itemData != "undefined" && !isNaN(itemData.ID) && itemData.ID > 0) {
6544    $.ajax({
6545      url: arAsproOptions["SITE_DIR"] + "include/footer/basket.php",
6546      type: "POST",
6547      data: { itemData: itemData, quantity: counterInputValueNew },
6548    }).done(function (html) {
6549      if (typeofExt(arBasketItems) === "object" || typeofExt(arBasketItems) === "array") {
6550        if (typeofExt(arBasketItems[itemData.ID]) === "object") {
6551          arBasketItems[itemData.ID]["QUANTITY"] = counterInputValueNew;
6552        }
6553      }
6554
6555      if (bBasketTop) {
6556        $(".ajax_basket").replaceWith(html);
6557      } else if (bBasketFly) {
6558        $(".ajax_basket").html($($.trim(html)).html());
6559        $(".basket.fly .items_wrap").scrollTop(scrollTop);
6560      }
6561
6562      var eventdata = { action: "loadBasket" };
6563      BX.onCustomEvent("onCompleteAction", [eventdata, $(html)]);
6564
6565      if (getCurUri) {
6566        $.ajax({
6567          url: getCurUri,
6568          type: "POST",
6569        }).done(function (html) {
6570          if ($(".basket.default").length) {
6571            $(".basket.default").html(html);
6572          }
6573        });
6574      }
6575    });
6576  } else {
6577    return;
6578  }
6579};
6580
6581CheckTabActive = function () {};
6582
6583/* parallax bg */
6584ParallaxBg = function () {
6585  if ($("*[data-type=parallax-bg]").length) {
6586    var x = $(window).scrollTop() / $(document).height();
6587    x = parseInt(-x * 280);
6588    $("*[data-type=parallax-bg]")
6589      .stop()
6590      .animate({ "background-position-y": x + "px" }, 400, "swing");
6591  }
6592};
6593
6594// Events
6595var timerScroll = false,
6596  ignoreScroll = [],
6597  documentScrollTopLast = $(document).scrollTop(),
6598  documentScrollTop = documentScrollTopLast;
6599$(window).scroll(function () {
6600  documentScrollTop = $(document).scrollTop();
6601
6602  if (!ignoreScroll.length) {
6603    if (timerScroll) {
6604      clearTimeout(timerScroll);
6605      timerScroll = false;
6606    }
6607    timerScroll = setTimeout(function () {
6608      BX.onCustomEvent("onWindowScroll", false);
6609    }, 100);
6610  }
6611
6612  documentScrollTopLast = $(document).scrollTop();
6613});
6614
6615var timerResize = false,
6616  ignoreResize = [];
6617
6618$(window).resize(function () {
6619  documentScrollTop = $(document).scrollTop();
6620
6621  CheckScrollToTop();
6622  CheckTopMenuPadding();
6623  CheckTopMenuOncePadding();
6624  CheckSearchWidth();
6625
6626  if (!ignoreResize.length) {
6627    if (timerResize) {
6628      clearTimeout(timerResize);
6629      timerResize = false;
6630    }
6631    timerResize = setTimeout(function () {
6632      BX.onCustomEvent("onWindowResize", false);
6633    }, 100);
6634  }
6635
6636  documentScrollTopLast = $(document).scrollTop();
6637});
6638
6639BX.addCustomEvent("onWindowScroll", function (eventdata) {
6640  try {
6641    ignoreScroll.push(true);
6642    ParallaxBg();
6643
6644    if (arAsproOptions["THEME"]["TYPE_SEARCH"] != "fixed") {
6645      if (!$("header > .top-block").length) {
6646        var height_block = 0,
6647          scrollVal = $(window).scrollTop();
6648        height_block = $(".logo_and_menu-row").actual("outerHeight");
6649        if (!scrollVal) {
6650          $(".inline-search-block").css({
6651            height: height_block,
6652            "line-height": height_block - 4 + "px",
6653            top: -height_block,
6654          });
6655        }
6656      }
6657    }
6658
6659    //CheckTopMenuDotted();
6660  } catch (e) {
6661  } finally {
6662    ignoreScroll.pop();
6663  }
6664});
6665
6666BX.addCustomEvent("onWindowResize", function (eventdata) {
6667  try {
6668    ignoreResize.push(true);
6669
6670    CheckHeaderFixedMenu();
6671    CheckTopMenuDotted();
6672    CheckTopVisibleMenu();
6673    CheckFlexSlider();
6674    CheckMainBannerSliderVText($(".banners-big .flexslider"));
6675    CheckObjectsSizes();
6676
6677    if (funcDefined("CoverPlayer")) {
6678      CoverPlayer();
6679    }
6680
6681    verticalAlign();
6682    CheckTabActive();
6683    setTimeout(function () {
6684      createTableCompare(
6685        $(".main-block .items .title-block:not(.clone) .item"),
6686        $(".prop_title_table"),
6687        $(".main-block .prop_title_table .item.clone")
6688      );
6689    }, 100);
6690    SliceHeightBlocks();
6691
6692    if (funcDefined("checkMobileFilter")) {
6693      checkMobileFilter();
6694    }
6695
6696    if (window.matchMedia("(min-width: 992px)").matches) {
6697      CloseMobileMenu();
6698      CloseMobilePhone();
6699    }
6700
6701  } catch (e) {
6702  } finally {
6703    ignoreResize.pop();
6704  }
6705});
6706
6707BX.addCustomEvent("onSlide", function (eventdata) {
6708  try {
6709    ignoreResize.push(true);
6710
6711    if (eventdata) {
6712      var slider = eventdata.slider;
6713      var slideClass = ".banners-big__item";
6714      var jsDots = $(slider).siblings(".owl-carousel__dots--line");
6715      if (jsDots.length) {
6716        if (eventdata.data) {
6717          if (eventdata.data.relatedTarget) {
6718            var dotScroll = jsDots.find(".owl-carousel__dot-scroll");
6719            var dotsWidth = jsDots.width();
6720            if (dotScroll.length) {
6721              var owlOptions = eventdata.data.relatedTarget;
6722
6723              if (owlOptions) {
6724                var itemsCount = owlOptions._items.length;
6725                var itemsInRow = owlOptions.settings.items;
6726                var currentItem = owlOptions._current; // + 1;
6727
6728                //orig old
6729                //currentItem = currentItem < itemsInRow  ? itemsCount + itemsInRow - 1 : currentItem;
6730                //var offset = ((currentItem - itemsInRow) / itemsCount) * dotsWidth;
6731
6732                //new by use count clones in slider
6733                var clonesInStart = Math.ceil(itemsCount / 2);
6734                currentItem = currentItem < clonesInStart ? itemsCount + clonesInStart - 1 : currentItem;
6735                currentItem = currentItem === itemsCount + clonesInStart ? clonesInStart : currentItem;
6736                var offset = ((currentItem - clonesInStart) / itemsCount) * dotsWidth;
6737
6738                var styles = {
6739                  width: dotsWidth / itemsCount + "px",
6740                  display: "block",
6741                  left: offset,
6742                };
6743
6744                dotScroll.css(styles);
6745              }
6746            }
6747          }
6748        }
6749      }
6750      if (slider) {
6751        // add classes .curent & .shown to slide
6752        slider.find(slideClass).removeClass("current");
6753        var curSlideIndex = eventdata.data.item.index;
6754        var curSlide = slider.find(".owl-item:eq(" + curSlideIndex + ")" + " " + slideClass);
6755
6756        curSlide.addClass("current");
6757        curSlide.addClass("shown");
6758        slider.resize();
6759
6760        if (slider.closest(".blocks").length)
6761          slider.closest(".blocks").find(".flex-direction-nav li").addClass("initied");
6762
6763        if (slider.closest(".wraps").length)
6764          slider.closest(".wraps").find(".flex-direction-nav li").addClass("initied");
6765
6766        if (!slider.find(".flex-control-nav li").length && slider.hasClass("normal")) {
6767          slider.find(".flex-direction-nav li a").addClass("flex-disabled");
6768        }
6769
6770        if (slider.closest(".banners-big").length) {
6771          //nav flex color
6772          slider.find(".flex-control-nav li").removeClass();
6773
6774          // header color
6775          $("header").removeClass("light dark");
6776          if (typeof curSlide.data("color") != "undefined") {
6777            $("header").addClass(curSlide.data("color"));
6778          }
6779
6780          // logo color
6781          if (typeof window.headerLogo !== 'undefined') {
6782            window.headerLogo.setColorOfBanner(curSlide[0]);
6783          }
6784        }
6785
6786        if (
6787          !slider.hasClass("flexslider-init-slice") &&
6788          slider.hasClass("nav-title") &&
6789          $(".gallery-block").closest(".tab-pane").hasClass("active")
6790        ) {
6791          slider.find(".item").sliceHeight({ lineheight: -3 });
6792          slider.addClass("flexslider-init-slice");
6793        }
6794
6795        if (slider.find(".flex-direction-nav").length) {
6796          if (slider.find(".flex-direction-nav").find("a.flex-disabled").length)
6797            slider.find(".flex-direction-nav").removeClass("opacity1").addClass("opacity0");
6798          else slider.find(".flex-direction-nav").removeClass("opacity0").addClass("opacity1");
6799        }
6800      }
6801    }
6802  } catch (e) {
6803  } finally {
6804    ignoreResize.pop();
6805  }
6806});
6807
6808BX.addCustomEvent("onSlideBefore", function (eventdata) {
6809  try {
6810    ignoreResize.push(true);
6811    if (eventdata) {
6812      var slider = eventdata.slider;
6813      if (slider) {
6814        if (slider.closest(".banners-big").length) {
6815          setTimeout(function () {
6816            var curSlide = slider.find(".banners-big__item.current");
6817
6818            //nav flex color
6819            slider.find(".flex-control-nav li").removeClass();
6820
6821            // header color
6822            $("header").removeClass("light dark");
6823            if (typeof curSlide.data("color") != "undefined") {
6824              slider.find(".flex-control-nav li").addClass(curSlide.data("color"));
6825              $("header").addClass(curSlide.data("color"));
6826            }
6827
6828            // logo color
6829            if (typeof window.headerLogo !== 'undefined') {
6830              window.headerLogo.setColorOfBanner(curSlide[0]);
6831            }
6832          }, 100);
6833        } else if (slider.hasClass("top-bigs")) {
6834          setTimeout(function () {
6835            var index = slider.find(".item.flex-active-slide").data("slide_key");
6836            $(".bxSlider.top-small .slides").data("bxSlider").goToSlide(index);
6837            $(".bxSlider.top-small .slides li").removeClass("flex-active-slide");
6838            $('.bxSlider.top-small .slides li[data-slide_key="' + index + '"]').addClass("flex-active-slide");
6839          }, 100);
6840        }
6841      }
6842    }
6843  } catch (e) {
6844  } finally {
6845    ignoreResize.pop();
6846  }
6847});
6848
6849BX.addCustomEvent("onSlideEnd", function (eventdata) {
6850  try {
6851    ignoreResize.push(true);
6852    if (eventdata) {
6853      var slider = eventdata.slider;
6854    }
6855  } catch (e) {
6856  } finally {
6857    ignoreResize.pop();
6858  }
6859});
6860
6861var onCaptchaVerifyinvisible = function (response) {
6862  $(".g-recaptcha:last").each(function () {
6863    var id = $(this).attr("data-widgetid");
6864    if (typeof id !== "undefined" && response) {
6865      if (!$(this).closest("form").find(".g-recaptcha-response").val())
6866        $(this).closest("form").find(".g-recaptcha-response").val(response);
6867      if ($("iframe[src*=recaptcha]").length) {
6868        $("iframe[src*=recaptcha]").each(function () {
6869          var block = $(this).parent().parent();
6870          if (!block.hasClass("grecaptcha-badge")) block.css("width", "100%");
6871        });
6872      }
6873      if ($(this).closest("form").attr("name") == "form_comment") BX.submit(BX("form_comment"));
6874      else $(this).closest("form").submit();
6875    }
6876  });
6877};
6878
6879var onCaptchaVerifynormal = function (response) {
6880  $(".g-recaptcha").each(function () {
6881    var id = $(this).attr("data-widgetid");
6882    if (typeof id !== "undefined") {
6883      if (grecaptcha.getResponse(id) != "") {
6884        $(this).closest("form").find(".recaptcha").valid();
6885      }
6886    }
6887  });
6888};
6889
6890// on submit form
6891BX.addCustomEvent('onSubmitForm', function (eventdata) {
6892	try {
6893		if (
6894      typeof eventdata === 'object' &&
6895      eventdata &&
6896      eventdata.form
6897    ) {
6898      if (!(eventdata.form instanceof Node)) {
6899        eventdata.form = eventdata.form[0];
6900      }
6901
6902      const validateInputName  = `aspro_${arAsproOptions.SOLUTION_NAME}_form_validate`;
6903      if (!eventdata.form.querySelector(`[name="${validateInputName}"]`)) {
6904        eventdata.form.appendChild(
6905          BX.create('input', {
6906            attrs: {
6907              type: 'hidden',
6908              name: validateInputName,
6909            }
6910          })
6911        );
6912      }
6913
6914      (new Promise((resolve, reject) => {
6915        if (BX.Aspro?.Captcha) {
6916          BX.Aspro.Captcha.onSubmit(eventdata).then((result) => {
6917            resolve(result);
6918          }).catch((e) => {
6919            reject(e);
6920          });
6921
6922          return;
6923        }
6924
6925        resolve(true);
6926      })).then((result) => {
6927        if (result) {
6928          eventdata.form.submit();
6929          if (eventdata.form.closest('.form')) {
6930            eventdata.form.closest('.form').classList.add('sending');
6931          }
6932        }
6933      });
6934		}
6935	}
6936	catch (e) {
6937		console.error(e);
6938	}
6939});
6940
6941/* End */
6942;
6943; /* Start:"a:4:{s:4:"full";s:58:"/local/templates/aspro-allcorp3/js/custom.js?1778077569100";s:6:"source";s:44:"/local/templates/aspro-allcorp3/js/custom.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
6944/*
6945You can use this file with your scripts.
6946It will not be overwritten when you upgrade solution.
6947*/
6948/* End */
6949;
6950; /* Start:"a:4:{s:4:"full";s:90:"/local/templates/aspro-allcorp3/vendor/js/carousel/owl/owl.carousel.min.js?177807756754160";s:6:"source";s:70:"/local/templates/aspro-allcorp3/vendor/js/carousel/owl/owl.carousel.js";s:3:"min";s:74:"/local/templates/aspro-allcorp3/vendor/js/carousel/owl/owl.carousel.min.js";s:3:"map";s:78:"/local/templates/aspro-allcorp3/vendor/js/carousel/owl/owl.carousel.min.js.map";}"*/
6951/**
6952 * Owl carousel
6953 * @version 2.3.4
6954 * @author Bartosz Wojciechowski
6955 * @author David Deutsch
6956 * @license The MIT License (MIT)
6957 * @todo Lazy Load Icon
6958 * @todo prevent animationend bubling
6959 * @todo itemsScaleUp
6960 * @todo Test Zepto
6961 * @todo stagePadding calculate wrong active classes
6962 */
6963!function($,window,document,undefined){function Owl(element,options){this.settings=null,this.options=$.extend({},Owl.Defaults,options),this.$element=$(element),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},$.each(["onResize","onThrottledResize"],$.proxy((function(i,handler){this._handlers[handler]=$.proxy(this[handler],this)}),this)),$.each(Owl.Plugins,$.proxy((function(key,plugin){this._plugins[key.charAt(0).toLowerCase()+key.slice(1)]=new plugin(this)}),this)),$.each(Owl.Workers,$.proxy((function(priority,worker){this._pipe.push({filter:worker.filter,run:$.proxy(worker.run,this)})}),this)),this.setup(),this.initialize()}Owl.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:window,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},Owl.Width={Default:"default",Inner:"inner",Outer:"outer"},Owl.Type={Event:"event",State:"state"},Owl.Plugins={},Owl.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(cache){cache.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(cache){var margin=this.settings.margin||"",grid=!this.settings.autoWidth,rtl=this.settings.rtl,css={width:"auto","margin-left":rtl?margin:"","margin-right":rtl?"":margin};!grid&&this.$stage.children().css(css),cache.css=css}},{filter:["width","items","settings"],run:function(cache){var width=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,merge=null,iterator=this._items.length,grid=!this.settings.autoWidth,widths=[];for(cache.items={merge:!1,width:width};iterator--;)merge=this._mergers[iterator],merge=this.settings.mergeFit&&Math.min(merge,this.settings.items)||merge,cache.items.merge=merge>1||cache.items.merge,widths[iterator]=grid?width*merge:this._items[iterator].width();this._widths=widths}},{filter:["items","settings"],run:function(){var clones=[],items=this._items,settings=this.settings,view=Math.max(2*settings.items,4),size=2*Math.ceil(items.length/2),repeat=settings.loop&&items.length?settings.rewind?view:Math.max(view,size):0,append="",prepend="";for(repeat/=2;repeat>0;)clones.push(this.normalize(clones.length/2,!0)),append+=items[clones[clones.length-1]][0].outerHTML,clones.push(this.normalize(items.length-1-(clones.length-1)/2,!0)),prepend=items[clones[clones.length-1]][0].outerHTML+prepend,repeat-=1;this._clones=clones;const $append=$(append),$prepend=$(prepend);if(settings.escapeTag){const escapeTagWith=settings.escapeTagWith||"div";$append.each((function(){const $clonedH1=$(this).find(settings.escapeTag);$clonedH1.length&&$clonedH1.each((function(){const replacement="<"+escapeTagWith+" class='"+$clonedH1.prop("classList").value+"'>"+$clonedH1.html()+"</"+escapeTagWith+">";$(this).replaceWith(replacement)}))}
6963)),$prepend.each((function(){const $clonedH1=$(this).find(settings.escapeTag);$clonedH1.length&&$clonedH1.each((function(){const replacement="<"+escapeTagWith+" class='"+$clonedH1.prop("classList").value+"'>"+$clonedH1.html()+"</"+escapeTagWith+">";$(this).replaceWith(replacement)}))}))}$append.addClass("cloned").appendTo(this.$stage),$prepend.addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){var rtl=this.settings.rtl?1:-1,size=this._clones.length+this._items.length,iterator=-1,previous=0,current=0,coordinates=[],pullToEnd=!1;for(this._widths[this._widths.length-1]<this._width&&!this.settings.loop&&this.settings.lightDrag&&(pullToEnd=this._width-this._widths[this._widths.length-1]);++iterator<size;)previous=coordinates[iterator-1]||0,current=this._widths[this.relative(iterator)]+this.settings.margin,iterator==size-2&&pullToEnd?coordinates.push(previous+current*rtl+pullToEnd+this.settings.margin):coordinates.push(previous+current*rtl);this._coordinates=coordinates}},{filter:["width","items","settings"],run:function(){var padding=this.settings.stagePadding,coordinates=this._coordinates,css={width:Math.ceil(Math.abs(coordinates[coordinates.length-1]))+2*padding,"padding-left":padding||"","padding-right":padding||""};this.$stage.css(css)}},{filter:["width","items","settings"],run:function(cache){var iterator=this._coordinates.length,grid=!this.settings.autoWidth,items=this.$stage.children();if(grid&&cache.items.merge)for(;iterator--;)cache.css.width=this._widths[this.relative(iterator)],items.eq(iterator).css(cache.css);else grid&&(cache.css.width=cache.items.width,items.css(cache.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(cache){cache.current=cache.current?this.$stage.children().index(cache.current):0,cache.current=Math.max(this.minimum(),Math.min(this.maximum(),cache.current)),this.reset(cache.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var rtl=this.settings.rtl?1:-1,padding=2*this.settings.stagePadding,begin=this.coordinates(this.current())+padding,end=begin+this.width()*rtl,inner,outer,matches=[],i,n;for(i=0,n=this._coordinates.length;i<n;i++)inner=this._coordinates[i-1]||0,outer=Math.abs(this._coordinates[i])+padding*rtl,(this.op(inner,"<=",begin)&&this.op(inner,">",end)||this.op(outer,"<",begin)&&this.op(outer,">",end))&&matches.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+matches.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],Owl.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=$("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap($("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},Owl.prototype.initializeItems=function(){var $items=this.$element.find(".owl-item");if($items.length)return this._items=$items.get().map((function(item){return $(item)})),this._mergers=this._items.map((function(){return 1})),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},Owl.prototype.initialize=function(){var imgs,nestedSelector,width;(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading"))&&(imgs=this.$element.find("img"),nestedSelector=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:void 0,width=this.$element.children(nestedSelector).width(),imgs.length&&width<=0&&this.preloadAutoWidthImages(imgs));this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},Owl.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},Owl.prototype.setup=function(){var viewport=this.viewport(),over
6963writes=this.options.responsive,match=-1,settings=null;overwrites?($.each(overwrites,(function(breakpoint){breakpoint<=viewport&&breakpoint>match&&(match=Number(breakpoint))})),"function"==typeof(settings=$.extend({},this.options,overwrites[match])).stagePadding&&(settings.stagePadding=settings.stagePadding()),delete settings.responsive,settings.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+match))):settings=$.extend({},this.options),this.trigger("change",{property:{name:"settings",value:settings}}),this._breakpoint=match,this.settings=settings,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},Owl.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},Owl.prototype.prepare=function(item){var event=this.trigger("prepare",{content:item});return event.data||(event.data=$("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(item)),this.trigger("prepared",{content:event.data}),event.data},Owl.prototype.update=function(){for(var i=0,n=this._pipe.length,filter=$.proxy((function(p){return this[p]}),this._invalidated),cache={};i<n;)(this._invalidated.all||$.grep(this._pipe[i].filter,filter).length>0)&&this._pipe[i].run(cache),i++;this._invalidated={},!this.is("valid")&&this.enter("valid")},Owl.prototype.width=function(dimension){switch(dimension=dimension||Owl.Width.Default){case Owl.Width.Inner:case Owl.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},Owl.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},Owl.prototype.onThrottledResize=function(){window.clearTimeout(this.resizeTimer),this.resizeTimer=window.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},Owl.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},Owl.prototype.registerEventHandlers=function(){$.support.transition&&this.$stage.on($.support.transition.end+".owl.core",$.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(window,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",$.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",(function(){return!1}))),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",$.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",$.proxy(this.onDragEnd,this)))},Owl.prototype.onDragStart=function(event){var stage=null;3!==event.which&&("mouseDragDynamic"in this.settings&&!this.settings.mouseDragDynamic||(this.settings.marginMove?stage={x:stage=this.$stage.css("margin-left").replace("px",""),y:0}:$.support.transform?stage={x:(stage=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===stage.length?12:4],y:stage[16===stage.length?13:5]}:(stage=this.$stage.position(),stage={x:this.settings.rtl?stage.left+this.$stage.width()-this.width()+this.settings.margin:stage.left,y:stage.top}),this.is("animating")&&($.support.transform?this.animate(stage.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===event.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=$(event.target),this._drag.stage.start=stage,this._drag.stage.current=stage,this._drag.pointer=this.pointer(event),$(document).on("mouseup.owl.core touchend.owl.core",$.proxy(this.onDragEnd,this)),$(document).one("mousemove.owl.core touchmove.owl.core",$.proxy((function(event){var delta=this.difference(this._drag.pointer,this.pointer(event));$(document).on("mousemove.owl.core touchmove.owl.core",$.proxy(this.onDragMove,this)),Math.abs(delta.x)<Math.abs(delta.y)&&this.is("valid")||(event.preventDefault(),this.enter("dragging"),this.trigger("drag"))}),this))))},Owl.prototype.onDragMove=function(event){var minimum=null,maximum=null,pull=null,delta=this.difference(this._drag.pointer,this.pointer(event)),stage=this.difference(this._drag.stage.start,delta);this.is("dragging")&&(event.preventDefault(),this.settings.loop?(minimum=this.coordinates(this.minimum()),maximum=this.coordinates(this.maximum()+1)-minimum,stage.x=((stage.x-minimum)%maximum+maximum)%maximum+minimum):(minimum=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),maximum=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),pull=this.settings.pullDrag?-1*delta.x/5:0,stage.x=Math.max(Math.min(stage.x,minimum+pull),maximum+pull)),this._drag.stage.current=stage,this.animate(stage.x))},Owl.prototype.onDragEnd=function(event){var delta=this.difference(this._drag.pointer,this.pointer(event)),stage=this._drag.stage.current,direction=delta.x>0^this.settings.rtl?"left":"right";if($(document).off(".owl.core"),this.$element.removeClass(this.options.grabClass),0!==delta.x&&this.is("dragging")||!this.is("valid")){this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(stage.x,0!==delta.x?direction:this._drag.direction)),this.invalidate("position");var bUpdate=!1;this.settings.loop||(bUpdate=0===this.current()?stage.x>0:stage.x<this.coordinates()[this._items.length-1]),this.settings.lightDrag&&!bUpdate||this.update(),this._drag.direction=direction,(Math.abs(delta.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",(function(){return!1}))}this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},Owl.prototype.closest=function(coordinate,direction){var position=-1,pull=30,width=this.width(),coordinates=this.coordinates();return this.settings.freeDrag||$.each(coordinates,$.proxy((function(index,value){return"left"===direction&&coordinate>value-30&&coordinate<value+30?position=index:"right"===direction&&coordinate>value-width-30&&coordinate<value-width+30?position=index+1:this.op(coordinate,"<",value)&&this.op(coordinate,">",void 0!==coordinates[index+1]?coordinates[index+1]:value-width)&&(position="left"===direction?index+1:index),-1===
vendor: 11,748 bytes, line 6963
6963position}),this)),this.settings.loop||(this.op(coordinate,">",coordinates[this.minimum()])?position=coordinate=this.minimum():this.op(coordinate,"<",coordinates[this.maximum()])&&(position=coordinate=this.maximum())),position},Owl.prototype.animate=function(coordinate){var animate=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),animate&&(this.enter("animating"),this.trigger("translate")),this.settings.marginMove?this.$stage.css({"margin-left":coordinate+"px",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):$.support.transform3d&&$.support.transition?this.$stage.css({transform:"translate3d("+coordinate+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):animate?this.$stage.animate({left:coordinate+"px"},this.speed(),this.settings.fallbackEasing,$.proxy(this.onTransitionEnd,this)):this.$stage.css({left:coordinate+"px"})},Owl.prototype.is=function(state){return this._states.current[state]&&this._states.current[state]>0},Owl.prototype.current=function(position){if(void 0===position)return this._current;if(0!==this._items.length){if(position=this.normalize(position),this._current!==position){var event=this.trigger("change",{property:{name:"position",value:position}});void 0!==event.data&&(position=this.normalize(event.data)),this._current=position,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current}},Owl.prototype.invalidate=function(part){return"string"===$.type(part)&&(this._invalidated[part]=!0,this.is("valid")&&this.leave("valid")),$.map(this._invalidated,(function(v,i){return i}))},Owl.prototype.reset=function(position){void 0!==(position=this.normalize(position))&&(this._speed=0,this._current=position,this.suppress(["translate","translated"]),this.animate(this.coordinates(position)),this.release(["translate","translated"]))},Owl.prototype.normalize=function(position,relative){var n=this._items.length,m=relative?0:this._clones.length;return!this.isNumeric(position)||n<1?position=void 0:(position<0||position>=n+m)&&(position=((position-m/2)%n+n)%n+m/2),position},Owl.prototype.relative=function(position){return position-=this._clones.length/2,this.normalize(position,!0)},Owl.prototype.maximum=function(relative){var settings=this.settings,maximum=this._coordinates.length,iterator,reciprocalItemsWidth,elementWidth;if(settings.loop)maximum=this._clones.length/2+this._items.length-1;else if(settings.autoWidth||settings.merge){if(iterator=this._items.length)for(reciprocalItemsWidth=this._items[--iterator].width(),elementWidth=this.$element.width();iterator--&&!((reciprocalItemsWidth+=this._items[iterator].width()+this.settings.margin)>elementWidth););maximum=iterator+1}else maximum=settings.center?this._items.length-1:this._items.length-settings.items;return relative&&(maximum-=this._clones.length/2),Math.max(maximum,0)},Owl.prototype.minimum=function(relative){return relative?0:this._clones.length/2},Owl.prototype.items=function(position){return void 0===position?this._items.slice():(position=this.normalize(position,!0),this._items[position])},Owl.prototype.mergers=function(position){return void 0===position?this._mergers.slice():(position=this.normalize(position,!0),this._mergers[position])},Owl.prototype.clones=function(position){var odd=this._clones.length/2,even=odd+this._items.length,map=function(index){return index%2==0?even+index/2:odd-(index+1)/2};return void 0===position?$.map(this._clones,(function(v,i){return map(i)})):$.map(this._clones,(function(v,i){return v===position?map(i):null}))},Owl.prototype.speed=function(speed){return void 0!==speed&&(this._speed=speed),this._speed},Owl.prototype.coordinates=function(position){var multiplier=1,newPosition=position-1,coordinate;return void 0===position?$.map(this._coordinates,$.proxy((function(coordinate,index){return this.coordinates(index)}),this)):(this.settings.center?(this.settings.rtl&&(multiplier=-1,newPosition=position+1),coordinate=this._coordinates[position],coordinate+=(this.width()-coordinate+(this._coordinates[newPosition]||0))/2*multiplier):coordinate=this._coordinates[newPosition]||0,coordinate=Math.ceil(coordinate))},Owl.prototype.duration=function(from,to,factor){return 0===factor?0:Math.min(Math.max(Math.abs(to-from),1),6)*Math.abs(factor||this.settings.smartSpeed)},Owl.prototype.to=function(position,speed){var current=this.current(),revert=null,distance=position-this.relative(current),direction=(distance>0)-(distance<0),items=this._items.length,minimum=this.minimum(),maximum=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(distance)>items/2&&(distance+=-1*direction*items),(revert=(((position=current+distance)-minimum)%items+items)%items+minimum)!==position&&revert-distance<=maximum&&revert-distance>0&&(current=revert-distance,position=revert,this.reset(current))):position=this.settings.rewind?(position%(maximum+=1)+maximum)%maximum:Math.max(minimum,Math.min(maximum,position)),this.speed(this.duration(current,position,speed)),this.current(position),this.isVisible()&&this.update()},Owl.prototype.next=function(speed){speed=speed||!1,this.to(this.relative(this.current())+1,speed)},Owl.prototype.prev=function(speed){speed=speed||!1,this.to(this.relative(this.current())-1,speed)},Owl.prototype.onTransitionEnd=function(event){if(void 0!==event&&(event.stopPropagation(),(event.target||event.srcElement||event.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},Owl.prototype.viewport=function(){var width;return this.options.responsiveBaseElement!==window?width=$(this.options.responsiveBaseElement).width():window.innerWidth?width=window.innerWidth:document.documentElement&&document.documentElement.clientWidth?width=document.documentElement.clientWidth:console.warn("Can not detect viewport width."),width},Owl.prototype.replace=function(content){this.$stage.empty(),this._items=[],content&&(content=content instanceof jQuery?content:$(content)),this.settings.nestedItemSelector&&(content=content.find("."+this.settings.nestedItemSelector)),content.filter((function(){return 1===this.nodeType})).each($.proxy((function(index,item){item=this.prepare(item),this.$stage.append(item),this._items.push(item),this._mergers.push(1*item.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)}),this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},Owl.prototype.add=function(content,position){var current=this.relative(this._current);position=void 0===position?this._items.length:this.normalize(position,!0),content=content instanceof jQuery?content:$(content),this.trigger("add",{content:content,position:position}),content=this.prepare(content),0===this._items.length||position===this._items.length?(0===this._items.length&&this.$stage.append(content),0!==this._items.length&&this._items[position-1].after(content),this._items.push(content),this._mergers.push(1*content.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[position].before(content),this._items.splice(position,0,content),this._mergers.splice(position,0,1*content.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[current]&&this.reset(this._items[current].index()),this.invalidate("items"),this.trigger("added",{content:content,position:position})},Owl.prototype.remove=function(position){void 0!==(position=this.normalize(position,!0))&&(this.trigger("remove",{content:this._items[position],position:position}),this._items[position].remove(),this._items.splice(position,1),this._mergers.splice(position,1),this.invalidate("items"),this.trigger("removed",{content:null,position:position}))},Owl.prototype.preloadAutoWidthImages=function(images){images.each($.proxy((function(i,element){this.enter("pre-loading"),element=$(element),$(new Image).one("load",$.proxy((function(e){element.attr("src",e.target.src),element.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()}),this)).attr("src",element.attr("src")||element.attr("data-src")||element.attr("data-src-retina"))}),this))},Owl.prototype.destroy=function(){for(var i in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),$(document).off(".owl.core"),!1!==this.settings.responsive&&(window.clearTimeout(this.resizeTimer),this.off(window,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[i].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},Owl.prototype.op=function(a,o,b){var rtl=this.settings.rtl;switch(o){case"<":return rtl?a>b:a<b;case">":return rtl?a<b:a>b;case">=":return rtl?a<=b:a>=b;case"<=":return rtl?a>=b:a<=b}},Owl.prototype.on=function(element,event,listener,capture){element.addEventListener?element.addEventListener(event,listener,capture):element.attachEvent&&element.attachEvent("on"+event,listener)},Owl.prototype.off=function(element,event,listener,capture){element.removeEventListener?element.removeEventListener(event,listener,capture):element.detachEvent&&element.detachEvent("on"+event,listener)},Owl.prototype.trigger=function(name,data,namespace,state,enter){var status={item:{count:this._items.length,index:this.current()}},handler=$.camelCase($.grep(["on",name,namespace],(function(v){return v})).join("-").toLowerCase()),event=$.Event([name,"owl",namespace||"carousel"].join(".").toLowerCase(),$.extend({relatedTarget:this},status,data));return this._supress[name]||($.each(this._plugins,(function(name,plugin){plugin.onTrigger&&plugin.onTrigger(event)})),this.register({type:Owl.Type.Event,name:name}),this.$element.trigger(event),this.settings&&"function"==typeof this.settings[handler]&&this.settings[handler].call(this,event)),event},Owl.prototype.enter=function(name){$.each([name].concat(this._states.tags[name]||[]),$.proxy((function(i,name){void 0===this._states.current[name]&&(this._states.current[name]=0),this._states.current[name]++}),this))},Owl.prototype.leave=function(name){$.each([name].concat(this._states.tags[name]||[]),$.proxy((function(i,name){this._states.current[name]--}),this))},Owl.prototype.register=function(object){if(object.type===Owl.Type.Event){if($.event.special[object.name]||($.event.special[object.name]={}),!$.event.special[object.name].owl){var _default=$.event.special[object.name]._default;$.event.special[object.name]._default=function(e){return!_default||!_default.apply||e.namespace&&-1!==e.namespace.indexOf("owl")?e.namespace&&e.namespace.indexOf("owl")>-1:_default.apply(this,arguments)},$.event.special[object.name].owl=!0}}else object.type===Owl.Type.State&&(this._states.tags[object.name]?this._states.tags[object.name]=this._states.tags[object.name].concat(object.tags):this._states.tags[object.name]=object.tags,this._states.tags[object.name]=$.grep(this._states.tags[object.name],$.proxy((function(tag,i){return $.inArray(tag,this._states.tags[object.name])===i}),this)))},Owl.prototype.suppress=function(events){$.each(events,$.proxy((function(index,event){this._supress[event]=!0}),this))},Owl.prototype.release=function(events){$.each(events,$.proxy((function(index,event){delete this._supress[event]}
6963),this))},Owl.prototype.pointer=function(event){var result={x:null,y:null};return(event=(event=event.originalEvent||event||window.event).touches&&event.touches.length?event.touches[0]:event.changedTouches&&event.changedTouches.length?event.changedTouches[0]:event).pageX?(result.x=event.pageX,result.y=event.pageY):(result.x=event.clientX,result.y=event.clientY),result},Owl.prototype.isNumeric=function(number){return!isNaN(parseFloat(number))},Owl.prototype.difference=function(first,second){return{x:first.x-second.x,y:first.y-second.y}},$.fn.owlCarousel=function(option){var args=Array.prototype.slice.call(arguments,1);return this.each((function(){var $this=$(this),data=$this.data("owl.carousel");data||(data=new Owl(this,"object"==typeof option&&option),$this.data("owl.carousel",data),$.each(["next","prev","to","destroy","refresh","replace","add","remove"],(function(i,event){data.register({type:Owl.Type.Event,name:event}),data.$element.on(event+".owl.carousel.core",$.proxy((function(e){e.namespace&&e.relatedTarget!==this&&(this.suppress([event]),data[event].apply(this,[].slice.call(arguments,1)),this.release([event]))}),data))}))),"string"==typeof option&&"_"!==option.charAt(0)&&data[option].apply(data,args)}))},$.fn.owlCarousel.Constructor=Owl}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){var AutoRefresh=function(carousel){this._core=carousel,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":$.proxy((function(e){e.namespace&&this._core.settings.autoRefresh&&this.watch()}),this)},this._core.options=$.extend({},AutoRefresh.Defaults,this._core.options),this._core.$element.on(this._handlers)};AutoRefresh.Defaults={autoRefresh:!0,autoRefreshInterval:500},AutoRefresh.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=window.setInterval($.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},AutoRefresh.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},AutoRefresh.prototype.destroy=function(){var handler,property;for(handler in window.clearInterval(this._interval),this._handlers)this._core.$element.off(handler,this._handlers[handler]);for(property in Object.getOwnPropertyNames(this))"function"!=typeof this[property]&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.AutoRefresh=AutoRefresh}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){var Lazy=function(carousel){this._core=carousel,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":$.proxy((function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type)){var settings=this._core.settings,n=settings.center&&Math.ceil(settings.items/2)||settings.items,i=settings.center&&-1*n||0,position=(e.property&&void 0!==e.property.value?e.property.value:this._core.current())+i,clones=this._core.clones().length,load=$.proxy((function(i,v){this.load(v)}),this);for(settings.lazyLoadEager>0&&(n+=settings.lazyLoadEager,settings.loop&&(position-=settings.lazyLoadEager,n++));i++<n;)this.load(clones/2+this._core.relative(position)),clones&&$.each(this._core.clones(this._core.relative(position)),load),position++}}),this)},this._core.options=$.extend({},Lazy.Defaults,this._core.options),this._core.$element.on(this._handlers)};Lazy.Defaults={lazyLoad:!1,lazyLoadEager:0},Lazy.prototype.load=function(position){var $item=this._core.$stage.children().eq(position),$elements=$item&&$item.find(".owl-lazy");!$elements||$.inArray($item.get(0),this._loaded)>-1||($elements.each($.proxy((function(index,element){var $element=$(element),image,url=window.devicePixelRatio>1&&$element.attr("data-src-retina")||$element.attr("data-src")||$element.attr("data-srcset");this._core.trigger("load",{element:$element,url:url},"lazy"),$element.is("img")?$element.one("load.owl.lazy",$.proxy((function(){$element.css("opacity",1),this._core.trigger("loaded",{element:$element,url:url},"lazy")}),this)).attr("src",url):$element.is("source")?$element.one("load.owl.lazy",$.proxy((function(){this._core.trigger("loaded",{element:$element,url:url},"lazy")}),this)).attr("srcset",url):((image=new Image).onload=$.proxy((function(){$element.css({"background-image":'url("'+url+'")',opacity:"1"}),this._core.trigger("loaded",{element:$element,url:url},"lazy")}),this),image.src=url)}),this)),this._loaded.push($item.get(0)))},Lazy.prototype.destroy=function(){var handler,property;for(handler in this.handlers)this._core.$element.off(handler,this.handlers[handler]);for(property in Object.getOwnPropertyNames(this))"function"!=typeof this[property]&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.Lazy=Lazy}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){var AutoHeight=function(carousel){this._core=carou
6963sel,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":$.proxy((function(e){e.namespace&&this._core.settings.autoHeight&&this.update()}),this),"changed.owl.carousel":$.proxy((function(e){e.namespace&&this._core.settings.autoHeight&&"position"===e.property.name&&this.update()}),this),"loaded.owl.lazy":$.proxy((function(e){e.namespace&&this._core.settings.autoHeight&&e.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()}),this)},this._core.options=$.extend({},AutoHeight.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var refThis=this;$(window).on("load",(function(){refThis._core.settings.autoHeight&&refThis.update()})),$(window).resize((function(){refThis._core.settings.autoHeight&&(null!=refThis._intervalId&&clearTimeout(refThis._intervalId),refThis._intervalId=setTimeout((function(){refThis.update()}),250))}))};AutoHeight.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},AutoHeight.prototype.update=function(){var start=this._core._current,end=start+this._core.settings.items,lazyLoadEnabled=this._core.settings.lazyLoad,visible=this._core.$stage.children().toArray().slice(start,end),heights=[],maxheight=0;$.each(visible,(function(index,item){heights.push($(item).height())})),(maxheight=Math.max.apply(null,heights))<=1&&lazyLoadEnabled&&this._previousHeight&&(maxheight=this._previousHeight),this._previousHeight=maxheight,this._core.$stage.parent().height(maxheight).addClass(this._core.settings.autoHeightClass)},AutoHeight.prototype.destroy=function(){var handler,property;for(handler in this._handlers)this._core.$element.off(handler,this._handlers[handler]);for(property in Object.getOwnPropertyNames(this))"function"!=typeof this[property]&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.AutoHeight=AutoHeight}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){var Video=function(carousel){this._core=carousel,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":$.proxy((function(e){e.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})}),this),"resize.owl.carousel":$.proxy((function(e){e.namespace&&this._core.settings.video&&this.isInFullScreen()&&e.preventDefault()}),this),"refreshed.owl.carousel":$.proxy((function(e){e.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()}),this),"changed.owl.carousel":$.proxy((function(e){e.namespace&&"position"===e.property.name&&this._playing&&this.stop()}),this),"prepared.owl.carousel":$.proxy((function(e){if(e.namespace){var $element=$(e.content).find(".owl-video");$element.length&&($element.css("display","none"),this.fetch($element,$(e.content)))}}),this)},this._core.options=$.extend({},Video.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",$.proxy((function(e){this.play(e)}),this))};Video.Defaults={video:!1,videoHeight:!1,videoWidth:!1},Video.prototype.fetch=function(target,item){var type=target.attr("data-vimeo-id")?"vimeo":target.attr("data-vzaar-id")?"vzaar":"youtube",id=target.attr("data-vimeo-id")||target.attr("data-youtube-id")||target.attr("data-vzaar-id"),width=target.attr("data-width")||this._core.settings.videoWidth,height=target.attr("data-height")||this._core.settings.videoHeight,url=target.attr("href");if(!url)throw new Error("Missing video URL.");if((id=url.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu")>-1)type="youtube";else if(id[3].indexOf("vimeo")>-1)type="vimeo";else{if(!(id[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");type="vzaar"}id=id[6],this._videos[url]={type:type,id:id,width:width,height:height},item.attr("data-video",url),this.thumbnail(target,this._videos[url])},Video.prototype.thumbnail=function(target,video){var tnLink,icon,path,dimensions=video.width&&video.height?"width:"+video.width+"px;height:"+video.height+"px;":"",customTn=target.find("img"),srcType="src",lazyClass="",settings=this._core.settings,create=function(path){icon='<div class="owl-video-play-icon"></div>',tnLink=settings.lazyLoad?$("<div/>",{class:"owl-video-tn "+lazyClass,srcType:path}):$("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+path+")"}),target.after(tnLink),target.after(icon)};if(target.wrap($("<div/>",{class:"owl-video-wrapper",style:dimensions})),this._core.settings.lazyLoad&&(srcType="data-src",lazyClass="owl-lazy"),customTn.length)return create(customTn.attr(srcType)),customTn.remove(),!1;"youtube"===video.type?(path="//img.youtube.com/vi/"+video.id+"/hqdefault.jpg",create(path)):"vimeo"===video.type?$.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+video.id+".json",jsonp:"callback",dataType:"jsonp",success:function(data){path=data[0].thumbnail_large,create(path)}}):"vzaar"===video.type&&$.ajax({type:"GET",url:"//vzaar.com/api/videos/"+video.id+".json",jsonp:"callback",dataType:"jsonp",success:function(data){path=data.framegrab_url,create(path)}})},Video.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},Video.prototype.play=function(event){var target,item=$(event.target).closest("."+this._core.settings.itemClass),video=this._videos[item.attr("data-video")],width=video.width||"100%",height=video.height||this._core.$stage.height(),html,iframe;this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),item=this._core.items(this._core.relative(item.index())),this._core.reset(item.index()),(html=$('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>
6963')).attr("height",height),html.attr("width",width),"youtube"===video.type?html.attr("src","//www.youtube.com/embed/"+video.id+"?autoplay=1&rel=0&v="+video.id):"vimeo"===video.type?html.attr("src","//player.vimeo.com/video/"+video.id+"?autoplay=1"):"vzaar"===video.type&&html.attr("src","//view.vzaar.com/"+video.id+"/player?autoplay=true"),iframe=$(html).wrap('<div class="owl-video-frame" />').insertAfter(item.find(".owl-video")),this._playing=item.addClass("owl-video-playing"))},Video.prototype.isInFullScreen=function(){var element=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement;return element&&$(element).parent().hasClass("owl-video-frame")},Video.prototype.destroy=function(){var handler,property;for(handler in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(handler,this._handlers[handler]);for(property in Object.getOwnPropertyNames(this))"function"!=typeof this[property]&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.Video=Video}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){var Animate=function(scope){this.core=scope,this.core.options=$.extend({},Animate.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":$.proxy((function(e){e.namespace&&"position"==e.property.name&&(this.previous=this.core.current(),this.next=e.property.value)}),this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":$.proxy((function(e){e.namespace&&(this.swapping="translated"==e.type)}),this),"translate.owl.carousel":$.proxy((function(e){e.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()}),this)},this.core.$element.on(this.handlers)};Animate.Defaults={animateOut:!1,animateIn:!1},Animate.prototype.swap=function(){if(1===this.core.settings.items&&$.support.animation&&$.support.transition){this.core.speed(0);var left,clear=$.proxy(this.clear,this),previous=this.core.$stage.children().eq(this.previous),next=this.core.$stage.children().eq(this.next),incoming=this.core.settings.animateIn,outgoing=this.core.settings.animateOut;this.core.current()!==this.previous&&(outgoing&&(left=this.core.coordinates(this.previous)-this.core.coordinates(this.next),previous.one($.support.animation.end,clear).css({left:left+"px"}).addClass("animated owl-animated-out").addClass(outgoing)),incoming&&next.one($.support.animation.end,clear).addClass("animated owl-animated-in").addClass(incoming))}},Animate.prototype.clear=function(e){$(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},Animate.prototype.destroy=function(){var handler,property;for(handler in this.handlers)this.core.$element.off(handler,this.handlers[handler]);for(property in Object.getOwnPropertyNames(this))"function"!=typeof this[property]&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.Animate=Animate}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){var Autoplay=function(carousel){this._core=carousel,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":$.proxy((function(e){e.namespace&&"settings"===e.property.name?this._core.settings.autoplay?this.play():this.stop():e.namespace&&"position"===e.property.name&&this._paused&&(this._time=0)}),this),"initialized.owl.carousel":$.proxy((function(e){e.namespace&&this._core.settings.autoplay&&this.play()}),this),"play.owl.autoplay":$.proxy((function(e,t,s){e.namespace&&this.play(t,s)}),this),"stop.owl.autoplay":$.proxy((function(e){e.namespace&&this.stop()}),this),"mouseover.owl.autoplay":$.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()}),this),"mouseleave.owl.autoplay":$.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()}),this),"touchstart.owl.core":$.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()}),this),"touchend.owl.core":$.proxy((function(){this._core.settings.autoplayHoverPause&&this.play()}),this)},this._core.$element.on(this._handlers),this._core.options=$.extend({},Autoplay.Defaults,this._core.options)};Autoplay.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},Autoplay.prototype._next=function(speed){this._call=window.setTimeout($.proxy(this._next,this,speed),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||document.hidden||this._core.next(speed||this._core.settings.autoplaySpeed)},Autoplay.prototype.read=function(){return(new Date).getTime()-this._time},Autoplay.prototype.play=function(timeout,speed){var elapsed;this._core.is("rotating")||this._core.enter("rotating"),timeout=timeout||this._core.settings.autoplayTimeout,elapsed=Math.min(this._time%(this._timeout||timeout),timeout),this._paused?(this._time=this.read(),this._paused=!1):window.clearTimeout(this._call),this._time+=this.read()%timeout-elapsed,this._timeout=timeout,this._call=window.setTimeout($.proxy(this._next,this,speed),timeout-elapsed)},Autoplay.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,window.clearTimeout(this._call),this._core.leave("rotating"))},Autoplay.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,window.clearTimeout(this._call))},Autoplay.prototype.destroy=function(){var handler,property;for(handler in this.stop(),this._handlers)this._core.$element.off(handler,this._handlers[handler]);for(property in Object.getOwnPropertyNames(this))"function"!=typeof this[property]&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.autoplay=Autoplay}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){"use strict";
vendor: 6,977 bytes, line 6963
6963var Navigation=function(carousel){this._core=carousel,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":$.proxy((function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+$(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")}),this),"added.owl.carousel":$.proxy((function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,0,this._templates.pop())}),this),"remove.owl.carousel":$.proxy((function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,1)}),this),"changed.owl.carousel":$.proxy((function(e){e.namespace&&"position"==e.property.name&&this.draw()}),this),"initialized.owl.carousel":$.proxy((function(e){e.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))}),this),"refreshed.owl.carousel":$.proxy((function(e){e.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))}),this)},this._core.options=$.extend({},Navigation.Defaults,this._core.options),this.$element.on(this._handlers)};Navigation.Defaults={nav:!1,navText:['<span aria-label="Previous">&#x2039;</span>','<span aria-label="Next">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},Navigation.prototype.initialize=function(){var override,settings=this._core.settings;for(override in this._controls.$relative=(settings.navContainer?$(settings.navContainer):$("<div>").addClass(settings.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=$("<"+settings.navElement+">").addClass(settings.navClass[0]).html(settings.navText[0]).prependTo(this._controls.$relative).on("click",$.proxy((function(e){this.prev(settings.navSpeed)}),this)),this._controls.$next=$("<"+settings.navElement+">").addClass(settings.navClass[1]).html(settings.navText[1]).appendTo(this._controls.$relative).on("click",$.proxy((function(e){this.next(settings.navSpeed)}),this)),settings.dotsData||(this._templates=[$('<button role="button">').addClass(settings.dotClass).append($("<span>")).prop("outerHTML")]),this._controls.$absolute=(settings.dotsContainer?$(settings.dotsContainer):$("<div>").addClass(settings.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",$.proxy((function(e){var index=$(e.target).parent().is(this._controls.$absolute)?$(e.target).index():$(e.target).parent().index();e.preventDefault(),this.to(index,settings.dotsSpeed)}),this)),this._overrides)this._core[override]=$.proxy(this[override],this)},Navigation.prototype.destroy=function(){var handler,control,property,override,settings;for(handler in settings=this._core.settings,this._handlers)this.$element.off(handler,this._handlers[handler]);for(control in this._controls)"$relative"===control&&settings.navContainer?this._controls[control].html(""):this._controls[control].remove();for(override in this.overides)this._core[override]=this._overrides[override];for(property in Object.getOwnPropertyNames(this))"function"!=typeof this[property]&&(this[property]=null)},Navigation.prototype.update=function(){var i,j,k,lower=this._core.clones().length/2,upper=lower+this._core.items().length,maximum=this._core.maximum(!0),settings=this._core.settings,size=settings.center||settings.autoWidth||settings.dotsData?1:settings.dotsEach||settings.items;if("page"!==settings.slideBy&&(settings.slideBy=Math.min(settings.slideBy,settings.items)),settings.dots||"page"==settings.slideBy)for(this._pages=[],i=lower,j=0,k=0;i<upper;i++){if(j>=size||0===j){if(this._pages.push({start:Math.min(maximum,i-lower),end:i-lower+size-1}),Math.min(maximum,i-lower)===maximum)break;j=0,++k}j+=this._core.mergers(this._core.relative(i))}},Navigation.prototype.draw=function(){var difference,settings=this._core.settings,disabled=this._core.items().length<=settings.items,index=this._core.relative(this._core.current()),loop=settings.loop||settings.rewind;this._controls.$relative.toggleClass("disabled",!settings.nav||disabled),settings.nav&&(this._controls.$previous.toggleClass("disabled",!loop&&index<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!loop&&index>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!settings.dots||disabled),settings.dots&&(difference=this._pages.length-this._controls.$absolute.children().length,settings.dotsData&&0!==difference?this._controls.$absolute.html(this._templates.join("")):difference>0?this._controls.$absolute.append(new Array(difference+1).join(this._templates[0])):difference<0&&this._controls.$absolute.children().slice(difference).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq($.inArray(this.current(),this._pages)).addClass("active"))},Navigation.prototype.onTrigger=function(event){var settings=this._core.settings;event.page={index:$.inArray(this.current(),this._pages),count:this._pages.length,size:settings&&(settings.center||settings.autoWidth||settings.dotsData?1:settings.dotsEach||settings.items)}},Navigation.prototype.current=function(){var current=this._core.relative(this._core.current());return $.grep(this._pages,$.proxy((function(page,index){return page.start<=current&&page.end>=current}),this)).pop()},Navigation.prototype.getPosition=function(successor){var position,length,settings=this._core.settings;return"page"==settings.slideBy?(position=$.inArray(this.current(),this._pages),length=this._pages.length,successor?++position:--position,position=this._pages[(position%length+length)%length].start):(position=this._core.relative(this._core.current()),length=this._core.items().length,successor?position+=settings.slideBy:position-=settings.slideBy),position},Navigation.prototype.next=function(speed){$.proxy(this._overrides.to,this._core)(this.getPosition(!0),speed)},Navigation.prototype.prev=function(speed){$.proxy(this._overrides.to,this._core)(this.getPosition(!1),speed)},Navigation.prototype.to=function(position,speed,standard){var length;!standard&&this._pages.length?(length=this._pages.length,$.proxy(this._overrides.to,this._core)(this._pages[(position%length+length)%length].start,speed)):$.proxy(this._overrides.to,this._core)(position,speed)},$.fn.owlCarousel.Constructor.Plugins.Navigation=Navigation}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){"use strict";
6963var Hash=function(carousel){this._core=carousel,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":$.proxy((function(e){e.namespace&&"URLHash"===this._core.settings.startPosition&&$(window).trigger("hashchange.owl.navigation")}),this),"prepared.owl.carousel":$.proxy((function(e){if(e.namespace){var hash=$(e.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!hash)return;this._hashes[hash]=e.content}}),this),"changed.owl.carousel":$.proxy((function(e){if(e.namespace&&"position"===e.property.name){var current=this._core.items(this._core.relative(this._core.current())),hash=$.map(this._hashes,(function(item,hash){return item===current?hash:null})).join();if(!hash||window.location.hash.slice(1)===hash)return;window.location.hash=hash}}),this)},this._core.options=$.extend({},Hash.Defaults,this._core.options),this.$element.on(this._handlers),$(window).on("hashchange.owl.navigation",$.proxy((function(e){var hash=window.location.hash.substring(1),items=this._core.$stage.children(),position=this._hashes[hash]&&items.index(this._hashes[hash]);void 0!==position&&position!==this._core.current()&&this._core.to(this._core.relative(position),!1,!0)}),this))};Hash.Defaults={URLhashListener:!1},Hash.prototype.destroy=function(){var handler,property;for(handler in $(window).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(handler,this._handlers[handler]);for(property in Object.getOwnPropertyNames(this))"function"!=typeof this[property]&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.Hash=Hash}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){var style=$("<support>").get(0).style,prefixes="Webkit Moz O ms".split(" "),events={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},tests_csstransforms=function(){return!!test("transform")},tests_csstransforms3d=function(){return!!test("perspective")},tests_csstransitions,tests_cssanimations=function(){return!!test("animation")};function test(property,prefixed){var result=!1,upper=property.charAt(0).toUpperCase()+property.slice(1);return $.each((property+" "+prefixes.join(upper+" ")+upper).split(" "),(function(i,property){if(void 0!==style[property])return result=!prefixed||property,!1})),result}function prefixed(property){return test(property,!0)}(function(){return!!test("transition")})()&&($.support.transition=new String(prefixed("transition")),$.support.transition.end=events.transition.end[$.support.transition]),tests_cssanimations()&&($.support.animation=new String(prefixed("animation")),$.support.animation.end=events.animation.end[$.support.animation]),tests_csstransforms()&&($.support.transform=new String(prefixed("transform")),$.support.transform3d=tests_csstransforms3d())}(window.Zepto||window.jQuery,window,document);
6964/* End */
6965;
6966; /* Start:"a:4:{s:4:"full";s:61:"/local/templates/aspro-allcorp3/js/logo.min.js?17780775674160";s:6:"source";s:42:"/local/templates/aspro-allcorp3/js/logo.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
6967if(void 0===window.JLogo){let readyFunc;window.JLogo=function(node,params){var _private={inited:!1};Object.defineProperties(this,{inited:{get:function(){return _private.inited},set:function(value){value&&(_private.inited=!0)}},node:{get:function(){return node}},img:{get:function(){return node?node.querySelector("img"):null}},svg:{get:function(){return node?node.querySelector("svg"):null}}}),this.params=function(key){if("object"==typeof params&&void 0!==key&&Object.keys(params).indexOf(key)>-1)return params[key]},this.init()},window.JLogo.prototype={get src(){return this.img?this.img.getAttribute("src"):""},set src(value){this.img&&this.img.setAttribute("src",value)},get srcDark(){return arAsproOptions.THEME.LOGO_IMAGE},get srcLight(){return arAsproOptions.THEME.LOGO_IMAGE_WHITE},get color(){if(this.img){let src=this.src;
6967return src===this.srcDark?"dark":src===this.srcLight?"light":""}return""},set color(value){this.canChangeColor&&this.color!==value&&(this.src="light"===value?this.srcLight:this.srcDark)},get isCustomHeader(){return Boolean(this.node.closest(".header-custom"))},get isMainLogo(){return Boolean(this.node.closest("header"))},get isMenuFilledDark(){return this.img&&Boolean(this.img.closest(".header--color_dark, .header--color_colored, .mobileheader--color-colored, .mobileheader--color-dark"))},get isHeaderHasOffset(){return this.img&&Boolean(this.img.closest(".header--offset"))},get onBanner(){return this.isMainLogo&&Boolean(BX.hasClass(document.body,"header_opacity"))},get onTopPart(){return this.img&&Boolean(this.img.closest(".header__top-part"))},get onTransparentRow(){return this.img&&(Boolean(this.img.closest(".header--color_light.bg_none"))||this.onTopPart&&this.isHeaderHasOffset||Boolean(this.img.closest(".header__main-inner.bg_none"))&&!this.isHeaderHasOffset)},get allowChangeBySlider(){return this.onBanner&&this.onTransparentRow&&!this.isCustomHeader},get canChangeColor(){return this.img&&this.srcLight&&!this.allowChangeBySlider&&!(this.onTopPart&&this.isMenuFilledDark&&!this.isHeaderHasOffset)&&!(!this.onTopPart&&this.isMenuFilledDark)},setColorOfBanner:function(banner){this.img&&banner&&void 0!==window.headerLogo&&(value=BX.data(banner,"color"),value=value||"dark",this.color!==value&&this.node.setAttribute("src","light"===value?this.srcLight:this.srcDark))},get isPreferColor(){return BX.hasClass(document.body,"theme-default")},get preferColor(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},get themeColor(){return this.isPreferColor?this.preferColor:BX.hasClass(document.body,"theme-dark")?"dark":"light"},init:function(){this.inited||(this.inited=!0,this.img&&!this.isCustomHeader&&(this.color=this.isMenuFilledDark?"light":this.getInvertedColor(this.themeColor),this.bindEvents()))},getInvertedColor:function(value){return"default"===value&&(value=this.preferColor),"light"===value?"dark":"dark"===value?"light":""},bindEvents:function(){"function"==typeof this.handlers.onChangePrefersColorScheme&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",BX.proxy(this.handlers.onChangePrefersColorScheme,this)),"function"==typeof this.handlers.onChangeThemeColor&&BX.addCustomEvent("onChangeThemeColor",BX.proxy(this.handlers.onChangeThemeColor,this))},unbindEvents:function(){},handlers:{onChangePrefersColorScheme:function(event){event||(event=window.event);let newColor=event.matches?"dark":"light";this.isPreferColor&&(this.color=this.getInvertedColor(newColor)),BX.setCookie("prefers-color-scheme",newColor)},onChangeThemeColor:function(eventdata){"object"==typeof eventdata&&eventdata&&"value"in eventdata&&(this.color=this.getInvertedColor(eventdata.value))}}},("function"==typeof readyDOM?readyDOM:BX.ready)((function(){window.headerLogo=new JLogo(document.querySelector("header .logo")),window.headerfixedLogo=new JLogo(document.querySelector("#headerfixed .header .logo")),window.mobileheaderLogo=new JLogo(document.querySelector("#mobileheader .mobileheader .logo")),window.mobilemenuLogo=new JLogo(document.querySelector("#mobilemenu .mobilemenu .logo")),BX.setCookie("prefers-color-scheme",window.headerLogo.preferColor)}))}
6968/* End */
6969;
6970; /* Start:"a:4:{s:4:"full";s:87:"/bitrix/components/aspro/eyed.allcorp3/templates/.default/script.min.js?178522554512357";s:6:"source";s:67:"/bitrix/components/aspro/eyed.allcorp3/templates/.default/script.js";s:3:"min";s:71:"/bitrix/components/aspro/eyed.allcorp3/templates/.default/script.min.js";s:3:"map";s:75:"/bitrix/components/aspro/eyed.allcorp3/templates/.default/script.min.js.map";}"*/
6971void 0===window.JEyed&&(window.JEyed=function(result){var _private={inited:!1,speakTimer:!1,options:"object"==typeof result&&"object"==typeof result.OPTIONS?result.OPTIONS:{}};Object.defineProperties(this,{inited:{get:function(){return _private.inited},set:function(value){value&&(_private.inited=!0)}},speakTimer:{get:function(){return _private.speakTimer},set:function(value){_private.speakTimer=value}}}),this.result=function(key){if("object"==typeof result&&void 0!==key&&Object.keys(result).indexOf(key)>-1)return result[key]},this.options=function(key,value){var that=this;if(void 0!==key&&Object.keys(_private.options).indexOf(key)>-1){if(void 0===value)return _private.options[key];if(this.node){var item=this.node.querySelector(".eyed-panel__item[data-option="+key+"]");if(item){var itemValues=Array.prototype.slice.call(item.querySelectorAll(".eyed-panel__item-value"));if(itemValues)for(var i in itemValues)BX.removeClass(itemValues[i],"active");var itemValue=item.querySelector('.eyed-panel__item-value[data-option_value="'+value+'"]');
6971itemValue&&(_private.options[key]=value,"SPEAKER"===key?0==value&&this.stopSpeak():"FONT-SIZE"===key?this.dispatchWindowResize():"IMAGES"===key&&this.dispatchWindowResize(),BX.addClass(itemValue,"active"))}}}},this.getClasses=function(){var classes=[];for(var key in _private.options)if(Object.hasOwnProperty.call(_private.options,key)){var value=_private.options[key];0==value?value="off":1==value&&(value="on"),classes.push("eyed--"+key.toLowerCase()+"--"+value.toLowerCase())}return classes.push("eyed"),classes},this.save=function(){BX.setCookie(this.result("COOKIE").OPTIONS,JSON.stringify(_private.options),{path:arAsproOptions.SITE_DIR,expires:30672e3}),this.updateBodyClasses()};var that=this;this.init()},window.JEyed.prototype={node:null,textNode:null,textRate:1.1,handlers:{},init:function(){var that=this;this.inited||(this.inited=!0,this.node=BX("eyed-panel"),this.node.eyed=this,this.textNode=BX.create({tag:"div",props:{class:"eyed-panel__speech"},style:{display:"none"},events:{},children:{},text:"",html:""}),this.bindEvents(),this.speak(document.title))},bindEvents:function(){var that=this;if(that.node){var item,item;if("function"!=typeof that.onToggleClick&&(that.onToggleClick=function(e){e||(e=window.event);var target=e.target||e.srcElement;if(void 0!==target&&target){for(var toggle=null,parent=target;parent;){if(void 0!==parent.matches&&parent.matches(".eyed-toggle")){toggle=parent;break}parent=parent.parentElement||parent.parentNode}toggle&&(that.isActive()?that.disable():that.activate())}}),document.addEventListener("click",that.onToggleClick),that.getSynth())that.getSynth().onerror=function(e){that.stopSpeak()};else if(that.options("SPEAKER"))that.options("SPEAKER",0),that.save(),(item=that.node.querySelector('.eyed-panel__item[data-option="SPEAKER"]'))&&BX.remove(item);if(-1!==navigator.userAgent.indexOf("MSIE"))if(that.options("COLOR-SCHEME","black"),that.save(),item=that.node.querySelector('.eyed-panel__item[data-option="COLOR-SCHEME"]')){var itemValues=Array.prototype.slice.call(item.querySelectorAll('.eyed-panel__item-value:not([data-option_value="black"])'));if(itemValues)for(var i in itemValues)BX.remove(itemValues[i])}that.bindEyedEvents()}},unbindEvents:function(){"function"==typeof this.onToggleClick&&document.removeEventListener("click",this.onToggleClick),this.unbindEyedEvents()},bindEyedEvents:function(){var that=this;that.node&&("function"!=typeof that.onDocClick&&(that.onDocClick=function(e){if(that.isActive()){e||(e=window.event);var target=e.target||e.srcElement;if(void 0!==target&&target){for(var panel=null,parent=target;parent;){if(void 0!==parent.matches&&parent.matches("#eyed-panel")){panel=parent;break}parent=parent.parentElement||parent.parentNode}if(panel){for(var itemValue=null,parent=target;parent;){if(void 0!==parent.matches&&parent.matches(".eyed-panel__item-value")){itemValue=parent;break}parent=parent.parentElement||parent.parentNode}if(itemValue&&(BX.PreventDefault(e),!BX.hasClass(itemValue,"active"))){var item=itemValue.closest(".eyed-panel__item");if(item){var key=BX.data(item,"option"),value=BX.data(itemValue,"option_value").toString();key.length&&value.length&&(that.options(key,value),that.save())}}}}}}),document.addEventListener("click",that.onDocClick),that.getSynth()&&("function"!=typeof that.onDocMouseDown&&(that.onDocMouseDown=function(e){if(that.isActive()){e||(e=window.event);var target=e.target||e.srcElement;if(void 0!==target&&target){for(var panel=null,parent=target;parent;){if(void 0!==parent.matches&&parent.matches("#eyed-panel")){panel=parent;break}parent=parent.parentElement||parent.parentNode}panel||that.isActive()&&0!=that.options("SPEAKER")&&that.stopSpeak()}}}),document.addEventListener("mousedown",that.onDocMouseDown),"function"!=typeof that.onDocMouseUp&&(that.onDocMouseUp=function(e){if(that.isActive()){e||(e=window.event);var target=e.target||e.srcElement;if(void 0!==target&&target){for(var panel=null,parent=target;parent;){if(void 0!==parent.matches&&parent.matches("#eyed-panel")){panel=parent;break}parent=parent.parentElement||parent.parentNode}panel||setTimeout((function(){var text=that.getSelection();void 0!==text&&text.length?that.speak(text):that.stopSpeak()}),100)}}}),document.addEventListener("mouseup",that.onDocMouseUp),"function"!=typeof that.onDocMouseOver&&(that.onDocMouseOver=function(e){if(that.isActive()){e||(e=window.event);var target=e.target||e.srcElement;if(void 0!==target&&target){var link=target.closest("a")||target.closest(".btn")||target.closest(".switcher-title")||target.closest("[data-eyed_speak]")||target.closest("[title]")||target.closest('[data-event="jqm"]');
6971if(link){var overTimer=setInterval((function(){if(!that.speakTimer){overTimer&&(clearInterval(overTimer),overTimer=!1);var text=that.getNodeText(link);void 0!==text&&text.length&&that.speak(text)}}),100),onLinkMouseOut=function(){overTimer&&(clearInterval(overTimer),overTimer=!1),link.removeEventListener("mouseout",onLinkMouseOut)};link.addEventListener("mouseout",onLinkMouseOut)}}}}),document.addEventListener("mouseover",that.onDocMouseOver)))},unbindEyedEvents:function(){"function"==typeof this.onDocClick&&document.removeEventListener("click",this.onDocClick),"function"==typeof this.onDocMouseDown&&document.removeEventListener("mousedown",this.onDocMouseDown),"function"==typeof this.onDocMouseUp&&document.removeEventListener("mouseup",this.onDocMouseUp),"function"==typeof this.onDocMouseOver&&document.removeEventListener("mouseover",this.onDocMouseOver)},isActive:function(){return"Y"===BX.getCookie(this.result("COOKIE").ACTIVE)},activate:function(){var that=this;BX.setCookie(this.result("COOKIE").ACTIVE,"Y",{path:arAsproOptions.SITE_DIR,expires:30672e3}),this.updateBodyClasses(),this.bindEyedEvents();var toggles=Array.prototype.slice.call(document.querySelectorAll(".eyed-toggle"));if(toggles)for(var i in toggles){var title;if(toggles[i].setAttribute("title",BX.message("EA_T_NORMAL_VERSION")),BX.hasClass(toggles[i],"footer__eyed"))(title=BX.findChild(toggles[i],{tag:"span",class:"footer-eyed__name"},!0))&&(title.innerText=BX.message("EA_T_NORMAL_VERSION"));else if(BX.hasClass(toggles[i],"header-eyed")){var title;(title=BX.findChild(toggles[i],{tag:"span",class:"header-eyed__name"},!0))&&(title.innerText=BX.message("EA_T_NORMAL_VERSION"))}}},disable:function(){var that=this;BX.setCookie(this.result("COOKIE").ACTIVE,"",{path:arAsproOptions.SITE_DIR,expires:30672e3}),this.updateBodyClasses(),this.unbindEyedEvents();var toggles=Array.prototype.slice.call(document.querySelectorAll(".eyed-toggle"));if(toggles)for(var i in toggles){var title;if(toggles[i].setAttribute("title",BX.message("EA_T_EYED_VERSION")),BX.hasClass(toggles[i],"footer__eyed"))(title=BX.findChild(toggles[i],{tag:"span",class:"footer-eyed__name"},!0))&&(title.innerText=BX.message("EA_T_EYED_VERSION"));else if(BX.hasClass(toggles[i],"header-eyed")){var title;(title=BX.findChild(toggles[i],{tag:"span",class:"header-eyed__name"},!0))&&(title.innerText=BX.message("EA_T_EYED_VERSION"))}}},dispatchWindowResize:function(){if("function"==typeof Event||-1!==navigator.userAgent.indexOf("MSIE")||navigator.appVersion.indexOf("Trident/")>0){var resizeEvent=window.document.createEvent("UIEvents");resizeEvent.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(resizeEvent)}else{var event=new Event("resize");window.dispatchEvent(event)}},updateBodyClasses:function(){var that=this,classes=this.getClasses();if(classes){var attrClass=document.body.getAttribute("class");if(attrClass=(attrClass=attrClass.replace(/eyed[^\s]*/gi,"")).replace(/\s{2,}/gi," "),this.isActive())for(var key in classes)Object.hasOwnProperty.call(classes,key)&&(attrClass+=" "+classes[key]);document.body.setAttribute("class",attrClass)}},refresh:function(){var componentAction="getEyed",componentName="aspro:eyed.allcorp3",sessid=BX.message("bitrix_sessid"),lang=BX.message("LANGUAGE_ID"),siteId=arAsproOptions.SITE_ID,signedParams=this.result("SIGNED_PARAMS"),that=this;BX.ajax({url:"/bitrix/services/main/ajax.php?mode=ajax&c="+encodeURIComponent(componentName)+"&action=getEyed&sessid="+sessid+"&SITE_ID="+siteId+"&siteId="+siteId+"&lang="+lang+"&signedParameters="+encodeURIComponent(signedParams)+"&clear_cache_session=Y",method:"POST",async:!0,processData:!0,scriptsRunFirst:!0,emulateOnload:!0,start:!0,cache:!1,onsuccess:function(response){response.trim().length&&that.node&&(that.unbindEvents(),that.node.parentElement.insertAdjacentHTML("afterBegin",response),that.node.remove(),that.node=BX("eyed-panel"),that.node.eyed=that,that.bindEvents())},onfailure:function(){}})},checkState:function(){var toggles=Array.prototype.slice.call(document.querySelectorAll(".eyed-toggle")),togglesInPanel=Array.prototype.slice.call(document.querySelectorAll(".eyed-panel .eyed-toggle"));toggles.length>
6971togglesInPanel.length?this.enable():this.destroy()},isEnabled:function(){return!(!this.node||!this.node.querySelector(".eyed-panel__inner"))},destroy:function(){this.isEnabled()&&(this.disable(),this.unbindEvents(),this.node&&(this.node.innerHTML=""))},enable:function(){this.isEnabled()||(this.refresh(),this.bindEvents())},getSelection:function(){var text=window.getSelection&&window.getSelection().toString()||document.selection&&document.selection.createRange().text;return void 0!==text&&this.clearText(text)},getNodeText:function(node){var text="";if(node){if(node.closest(".header-cart[title]"))var text=this.clearText(node.closest(".header-cart").getAttribute("title").toString().trim());else if(!BX.hasClass(node,"developer")&&!BX.hasClass(node,"HEADER"))var text=this.clearText(node.innerText.toString().trim());if((void 0===text||!text.length)&&BX.data(node,"eyed-speak"))var text=this.clearText(BX.data(node,"eyed_speak").toString().trim());if((void 0===text||!text.length)&&node.getAttribute("title"))var text=this.clearText(node.getAttribute("title").toString().trim());if((void 0===text||!text.length)&&"A"===node.tagName){var item=node.closest(".grid-list__item")||node.closest(".owl-item");if(item)var title,text=item.querySelector(".switcher-title").innerText.toString().trim()}}return text},clearText:function(text){this.textNode.innerHTML=text,text=this.textNode.innerText.replace(" *","");var regex=BX.message("__EA_T_TEXT_REGEX");if(regex.length){if(regex=new RegExp(regex,"i"),text.match(regex))return text;text=""}return text},getTextLang:function(text){return"ru-RU"},getSynth:function(){return window.speechSynthesis||window.mozspeechSynthesis||window.webkitspeechSynthesis},speak:function(text){var that=this;if(that.textNode&&that.isActive()&&0!=that.options("SPEAKER")&&that.getSynth()&&(that.stopSpeak(),void 0!==text&&text.length)){text=that.clearText(text);try{var message=new SpeechSynthesisUtterance(text);message.lang=that.getTextLang(text),message.rate=that.textRate,message.onerror=function(e){throw e},message.onend=function(e){that.speakTimer&&(clearInterval(that.speakTimer),that.speakTimer=!1)},that.getSynth().speak(message),that.speakTimer=setInterval((function(){that.getSynth().paused&&that.getSynth().resume()}),100)}catch(e){console.error(e),that.stopSpeak()}}},stopSpeak:function(){var that=this;this.speakTimer&&(clearInterval(this.speakTimer),this.speakTimer=!1),this.get
6971Synth()&&this.getSynth().cancel()}});
6972/* End */
6973;
6974; /* Start:"a:4:{s:4:"full";s:62:"/local/templates/aspro-allcorp3/js/phones.min.js?1778077567633";s:6:"source";s:44:"/local/templates/aspro-allcorp3/js/phones.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
6975$(document).ready((function(){$(".phones__inner").hover((function(e){let rect=$(this)[0].getBoundingClientRect(),$dropdown=$(this).find(".phones__dropdown");if($dropdown.length){let dropdown_rect=$dropdown[0].getBoundingClientRect(),dropdown_top=-20,dropdown_left=-16;dropdown_rect.right>document.body.clientWidth&&$dropdown.css("left",document.body.clientWidth-dropdown_rect.right+dropdown_left+"px"),$(this).closest(".footer__phone").length&&(window.scrollY+rect.y+dropdown_top+$dropdown[0].scrollHeight<=document.body.clientHeight?$dropdown.removeClass("phones__dropdown--top"):$dropdown.addClass("phones__dropdown--top"))}}))}));
6976/* End */
6977;
6978; /* Start:"a:4:{s:4:"full";s:93:"/local/templates/aspro-allcorp3/components/bitrix/menu/mega_menu/script.min.js?17780775671471";s:6:"source";s:74:"/local/templates/aspro-allcorp3/components/bitrix/menu/mega_menu/script.js";s:3:"min";s:78:"/local/templates/aspro-allcorp3/components/bitrix/menu/mega_menu/script.min.js";s:3:"map";s:82:"/local/templates/aspro-allcorp3/components/bitrix/menu/mega_menu/script.min.js.map";}"*/
6979$(document).ready((function(){$(".burger-menu").mCustomScrollbar({mouseWheel:{scrollAmount:150,preventDefault:!0}}),$(".burger-menu__dropdown-right-arrow").on("click",(function(){var _this=$(this),bOpen=!_this.hasClass("opened"),parent=_this.closest(".burger-menu__dropdown-item--with-dropdown");if(parent.length){var dropdown=parent.find(".burger-menu__dropdown--bottom");if(dropdown.length){if(bOpen){var parentWrapper=_this.closest(".burger-menu__dropdown--right");if(parentWrapper.length){var dropdowns=parentWrapper.find(".burger-menu__dropdown--bottom.opened");dropdowns.length&&(dropdowns.slideUp(),dropdowns.removeClass("opened"));var arrows=parentWrapper.find(".burger-menu__dropdown-right-arrow.opened");arrows.length&&arrows.removeClass("opened")}}dropdown.slideToggle(),dropdown.toggleClass("opened"),_this.toggleClass("opened")}}})),$(".burger-menu__item--large").on("mouseenter",(function(){var _this=$(this);if(!_this.hasClass("burger-menu__item--current")){var megaMenuTimer=setTimeout((function(){var siblings=_this.siblings(".burger-menu__item--current");siblings.length&&siblings.removeClass("burger-menu__item--current"),_this.addClass("burger-menu__item--current");var dropdown=_this.find(".burger-menu__dropdown--right");dropdown.length&&dropdown.mCustomScrollbar({mouseWheel:{scrollAmount:150,preventDefault:!0}})}),200);_this.one("mouseleave",(function(){megaMenuTimer&&clearTimeout(megaMenuTimer)}))}}))}));
6980/* End */
6981;
6982; /* Start:"a:4:{s:4:"full";s:92:"/local/templates/aspro-allcorp3/components/bitrix/menu/menu_new/script.min.js?17780775672205";s:6:"source";s:73:"/local/templates/aspro-allcorp3/components/bitrix/menu/menu_new/script.js";s:3:"min";s:77:"/local/templates/aspro-allcorp3/components/bitrix/menu/menu_new/script.min.js";s:3:"map";s:81:"/local/templates/aspro-allcorp3/components/bitrix/menu/menu_new/script.min.js.map";}"*/
6983$(document).ready((function(){$(document).on("click",".header-menu__wide-submenu-item-inner .toggle_block",(function(e){e.preventDefault();const $menuContainer=e.target.closest(".header-menu__dropdown-menu-inner.header-menu__dropdown-menu--grids"),$parentContainer=e.target.closest(".header-menu__wide-limiter"),menuContainerCurrentWidth=$menuContainer.offsetWidth,_this=$(this),$menu=_this.closest(".header-menu__wide-submenu-item-inner").find("> .submenu-wrapper");_this.hasClass("clicked")||(_this.addClass("clicked"),$menu.slideToggle({duration:150,done:function(){_this.removeClass("clicked")},step:function(){if(menuContainerCurrentWidth!==$menuContainer.offsetWidth){const paddingRight=window.getComputedStyle($parentContainer,null).paddingRight;$parentContainer.style.paddingRight=parseInt(paddingRight)-(menuContainerCurrentWidth-$menuContainer.offsetWidth)+"px"}}}),_this.closest(".header-menu__wide-submenu-item-inner").toggleClass("opened"))})),$(document).on("click",".header-menu__wide-submenu-item--more_items",(function(e){e.stopImmediatePropagation();const $menuContainer=e.target.closest(".header-menu__dropdown-menu-inner.header-menu__dropdown-menu--grids"),$parentContainer=e.target.closest(".header-menu__wide-limiter"),menuContainerCurrentWidth=$menuContainer.offsetWidth,_this=$(this),bOpened=_this.hasClass("opened"),childSpan=_this.find("span"),childSvg=childSpan.find(".svg"),parent=_this.closest(".header-menu__wide-submenu"),collapsed=parent.find(".collapsed"),useDelimetr=parent.hasClass("header-menu__wide-submenu--delimiter"),lastSeparator=parent.find(".last-visible"),obAnimation={duration:200,step:function(){if(menuContainerCurrentWidth!==$menuContainer.offsetWidth){const paddingRight=window.getComputedStyle($parentContainer,null).paddingRight;$parentContainer.style.paddingRight=parseInt(paddingRight)-(menuContainerCurrentWidth-$menuContainer.offsetWidth)+"px"}}};collapsed.length&&(useDelimetr?(collapsed.fadeToggle(obAnimation),lastSeparator.length&&lastSeparator.fadeToggle(obAnimation)):collapsed.slideToggle(obAnimation),childSpan.text(BX.message(bOpened?"SHOW":"HIDE")).append(childSvg),_this.toggleClass("opened"))}))}));
6984/* End */
6985;
6986; /* Start:"a:4:{s:4:"full";
6986s:93:"/bitrix/components/aspro/com.banners.allcorp3/templates/.default/script.min.js?17852255452467";s:6:"source";s:74:"/bitrix/components/aspro/com.banners.allcorp3/templates/.default/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
6987function checkNavColor(e){var a=e.find(".swiper-slide-active").data("nav_color"),n=e.find(".swiper-slide-active").data("color");const r=void 0!==window.headerLogo&&window.headerLogo.allowChangeBySlider;if("dark"==a?e.find(".swiper-pagination").addClass("flex-dark"):e.find(".swiper-pagination").removeClass("flex-dark"),void 0===checkNavColor.hasLongBanner&&(checkNavColor.hasLongBanner=$(".header_opacity").length),checkNavColor.hasLongBanner){var o=$("body.header_opacity").length&&(!$("header.header--offset").length||$("header .logo").closest(".header__top-part").length||$("header.header--offset").length&&($("header .header__main-inner.bg_none").length||$("header .header__sub-inner.bg_none").length)),i=$("body:not(.left_header_column) header .logo img").length&&o;i&&r&&$("header .logo img").attr("src",arAsproOptions.THEME.LOGO_IMAGE),$("header").removeClass("light dark"),"light"==n&&($("header").addClass(n),i&&r&&arAsproOptions.THEME.LOGO_IMAGE_WHITE&&$("header .logo img").attr("src",arAsproOptions.THEME.LOGO_IMAGE_WHITE))}var s={slider:e};BX.onCustomEvent("onSlide",[s])}readyDOM((function(){$(".main-slider").mouseenter((function(){!$(this).hasClass("video_visible")&&$(this).data("swiper")&&$(this).data("swiper").params.autoplay.enabled&&$(this).data("swiper").autoplay.stop()})),$(".main-slider").mouseleave((function(){!$(this).hasClass("video_visible")&&$(this).data("swiper")&&$(this).data("swiper").params.autoplay.enabled&&$(this).data("swiper").autoplay.start()}))})),BX.addCustomEvent("onSetSliderOptions",(function(e){if("type"in e&&"main_banner"===e.type){if(void 0!==arAsproOptions.THEME){const a=Math.abs(parseInt(arAsproOptions.THEME.BIGBANNER_SLIDESSHOWSPEED)),n=Math.abs(parseInt(arAsproOptions.THEME.BIGBANNER_ANIMATIONSPEED));e.autoplay=!(!a||!arAsproOptions.THEME.BIGBANNER_ANIMATIONTYPE.length)&&{},e.effect="FADE"===arAsproOptions.THEME.BIGBANNER_ANIMATIONTYPE?"fade":"slide","type_2"===arAsproOptions.THEME.index1_BIG_BANNER_INDEX_TEMPLATE&&(e.effect="slide"),n>=0&&(e.speed=n),a>=0&&(e.autoplay.delay=a)}"CURRENT_BANNER_INDEX"in arAsproOptions&&arAsproOptions.CURRENT_BANNER_INDEX&&(currentBannerIndex=arAsproOptions.CURRENT_BANNER_INDEX-1,currentBannerIndex<e.countSlides&&(e.initialSlide=currentBannerIndex))}})),BX.addCustomEvent("onSlideChanges",(function(e){if("slider"in e&&e.slider){const a=e.slider;a&&a.params&&"type"in a.params&&"main_banner"===a.params.type&&setTimeout((function(){checkNavColor($(a.el))}),100)}}));
6988/* End */
6989;
6990; /* Start:"a:4:{s:4:"full";s:70:"/local/templates/aspro-allcorp3/js/slider.swiper.min.js?17780775671566";s:6:"source";s:55:"/local/templates/aspro-allcorp3/js/slider.swiper.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
6991function initSwiperSlider(e){const t=e instanceof Node?$(e):$((e||".slider-solution")+":not(.swiper-initialized):not(.appear-block)");t.each((function(){const e=$(this),n=getComputedStyle(document.documentElement).getPropertyValue("--theme-items-gap");let i={grabCursor:!0,navigation:{nextEl:e.parent().find(".swiper-button-next")[0],prevEl:e.parent().find(".swiper-button-prev")[0]},pagination:{el:e.parent().find(".swiper-pagination")[0],type:"bullets",clickable:!0}};i.spaceBetween=parseInt(n)||-1,t.hasClass("slider-solution--no-gap")&&(t.find(".bordered").length?i.spaceBetween=-1:i.spaceBetween=0),e.data("pluginOptions")&&(i=deepMerge({},i,e.data("pluginOptions"))),BX.onCustomEvent("onSetSliderOptions",[i]);const o=new Swiper(this,i),s=!!i.mainSwiper&&$(i.mainSwiper).data("swiper");s&&(s.thumbs.swiper=o,!1!==i.init&&s.thumbs.init()),o.on("slideChange",(function(e){const t={slider:e};var n=this.activeIndex+1;$(this.el).find(".gallery-count-info__js-text").text(n),BX.onCustomEvent("onSlideChanges",[t])})),!1===i.init&&(o.on("init",(function(e){const t={slider:e,options:i};BX.onCustomEvent("onInitSlider",[t]),1===e.slides.length&&BX.onCustomEvent("onSlideChanges",[{slider:e}])})),o.init(),s&&s.thumbs.init()),e.data("swiper",o)}))}function deepMerge(){const e=[].slice.call(arguments);let t=e[0];const n=e.slice(1);
6991return n.forEach((function(e){for(let n in e)if("object"==typeof e[n])for(let i in e[n])"object"!=typeof t[n]&&(t[n]={}),t[n][i]=e[n][i];else t[n]=e[n]})),t}readyDOM((function(){initSwiperSlider("#gallery-thumbs"),initSwiperSlider()}));
6992/* End */
6993;
6994; /* Start:"a:4:{s:4:"full";s:95:"/local/templates/aspro-allcorp3/vendor/js/carousel/swiper/swiper-bundle.min.js?1778077567158093";s:6:"source";s:78:"/local/templates/aspro-allcorp3/vendor/js/carousel/swiper/swiper-bundle.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
6995var Swiper=function(){"use strict";function isObject$1(obj){return null!==obj&&"object"==typeof obj&&"constructor"in obj&&obj.constructor===Object}function extend$1(target,src){void 0===target&&(target={}),void 0===src&&(src={}),Object.keys(src).forEach(key=>{void 0===target[key]?target[key]=src[key]:isObject$1(src[key])&&isObject$1(target[key])&&Object.keys(src[key]).length>0&&extend$1(target[key],src[key])})}const ssrDocument={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){const doc="undefined"!=typeof document?document:{};return extend$1(doc,ssrDocument),doc}const ssrWindow={document:ssrDocument,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function CustomEvent(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:callback=>"undefined"==typeof setTimeout?(callback(),null):setTimeout(callback,0),cancelAnimationFrame(id){"undefined"!=typeof setTimeout&&clearTimeout(id)}};function getWindow(){const win="undefined"!=typeof window?window:{};return extend$1(win,ssrWindow),win}function classesToTokens(classes){return void 0===classes&&(classes=""),classes.trim().split(" ").filter(c=>!!c.trim())}function deleteProps(obj){const object=obj;Object.keys(object).forEach(key=>{try{object[key]=null}catch(e){}try{delete object[key]}catch(e){}})}function nextTick(callback,delay){return void 0===delay&&(delay=0),setTimeout(callback,delay)}function now(){return Date.now()}function getComputedStyle$1(el){const window=getWindow();let style;return window.getComputedStyle&&(style=window.getComputedStyle(el,null)),!style&&el.currentStyle&&(style=el.currentStyle),style||(style=el.style),style}function getTranslate(el,axis){void 0===axis&&(axis="x");const window=getWindow();let matrix,curTransform,transformMatrix;const curStyle=getComputedStyle$1(el);return window.WebKitCSSMatrix?(curTransform=curStyle.transform||curStyle.webkitTransform,curTransform.split(",").length>6&&(curTransform=curTransform.split(", ").map(a=>a.replace(",",".")).join(", ")),transformMatrix=new window.WebKitCSSMatrix("none"===curTransform?"":curTransform)):(transformMatrix=curStyle.MozTransform||curStyle.OTransform||curStyle.MsTransform||curStyle.msTransform||curStyle.transform||curStyle.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),matrix=transformMatrix.toString().split(",")),"x"===axis&&(curTransform=window.WebKitCSSMatrix?transformMatrix.m41:16===matrix.length?parseFloat(matrix[12]):parseFloat(matrix[4])),"y"===axis&&(curTransform=window.WebKitCSSMatrix?transformMatrix.m42:16===matrix.length?parseFloat(matrix[13]):parseFloat(matrix[5])),curTransform||0}function isObject(o){return"object"==typeof o&&null!==o&&o.constructor&&"Object"===Object.prototype.toString.call(o).slice(8,-1)}function isNode(node){return"undefined"!=typeof window&&void 0!==window.HTMLElement?node instanceof HTMLElement:node&&(1===node.nodeType||11===node.nodeType)}function extend(){const to=Object(arguments.length<=0?void 0:arguments[0]),noExtend=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const nextSource=i<0||arguments.length<=i?void 0:arguments[i];if(null!=nextSource&&!isNode(nextSource)){const keysArray=Object.keys(Object(nextSource)).filter(key=>noExtend.indexOf(key)<0);for(let nextIndex=0,len=keysArray.length;nextIndex<len;nextIndex+=1){const nextKey=keysArray[nextIndex],desc=Object.getOwnPropertyDescriptor(nextSource,nextKey);void 0!==desc&&desc.enumerable&&(isObject(to[nextKey])&&isObject(nextSource[nextKey])?nextSource[nextKey].__swiper__?to[nextKey]=nextSource[nextKey]:extend(to[nextKey],nextSource[nextKey]):!isObject(to[nextKey])&&isObject(nextSource[nextKey])?(to[nextKey]={},nextSource[nextKey].__swiper__?to[nextKey]=nextSource[nextKey]:extend(to[nextKey],nextSource[nextKey])):to[nextKey]=nextSource[nextKey])}}}return to}function setCSSProperty(el,varName,varValue){el.style.setProperty(varName,varValue)}function animateCSSModeScroll(_ref){let{swiper:swiper,targetPosition:targetPosition,side:side}=_ref;const window=getWindow(),startPosition=-swiper.translate;let startTime=null,time;const duration=swiper.params.speed;swiper.wrapperEl.style.scrollSnapType="none",window.cancelAnimationFrame(swiper.cssModeFrameID);const dir=targetPosition>startPosition?"next":"prev",isOutOfBound=(current,target)=>"next"===dir&&current>=target||"prev"===dir&&current<=target,animate=()=>{time=(new Date).getTime(),null===startTime&&(startTime=time);const progress=Math.max(Math.min((time-startTime)/duration,1),0),easeProgress=.5-Math.cos(progress*Math.PI)/2;let currentPosition=startPosition+easeProgress*(targetPosition-startPosition);if(isOutOfBound(currentPosition,targetPosition)&&(currentPosition=targetPosition),swiper.wrapperEl.scrollTo({[side]:currentPosition}),isOutOfBound(currentPosition,targetPosition))return swiper.wrapperEl.style.overflow="hidden",swiper.wrapperEl.style.scrollSnapType="",setTimeout(()=>{swiper.wrapperEl.style.overflow="",swiper.wrapperEl.scrollTo({[side]:currentPosition})}),void window.cancelAnimationFrame(swiper.cssModeFrameID);swiper.cssModeFrameID=window.requestAnimationFrame(animate)};animate()}function getSlideTransformEl(slideEl){return slideEl.querySelector(".swiper-slide-transform")||slideEl.shadowRoot&&slideEl.shadowRoot.querySelector(".swiper-slide-transform")||slideEl}function elementChildren(element,selector){return void 0===selector&&(selector=""),[...element.children].filter(el=>el.matches(selector))}function showWarning(text){try{return void console.warn(text)}catch(err){}}function createElement(tag,classes){void 0===classes&&(classes=[]);const el=document.createElement(tag);
6995return el.classList.add(...Array.isArray(classes)?classes:classesToTokens(classes)),el}function elementOffset(el){const window=getWindow(),document=getDocument(),box=el.getBoundingClientRect(),body=document.body,clientTop=el.clientTop||body.clientTop||0,clientLeft=el.clientLeft||body.clientLeft||0,scrollTop=el===window?window.scrollY:el.scrollTop,scrollLeft=el===window?window.scrollX:el.scrollLeft;return{top:box.top+scrollTop-clientTop,left:box.left+scrollLeft-clientLeft}}function elementPrevAll(el,selector){const prevEls=[];for(;el.previousElementSibling;){const prev=el.previousElementSibling;selector?prev.matches(selector)&&prevEls.push(prev):prevEls.push(prev),el=prev}return prevEls}function elementNextAll(el,selector){const nextEls=[];for(;el.nextElementSibling;){const next=el.nextElementSibling;selector?next.matches(selector)&&nextEls.push(next):nextEls.push(next),el=next}return nextEls}function elementStyle(el,prop){const window=getWindow();return window.getComputedStyle(el,null).getPropertyValue(prop)}function elementIndex(el){let child=el,i;if(child){for(i=0;null!==(child=child.previousSibling);)1===child.nodeType&&(i+=1);return i}}function elementParents(el,selector){const parents=[];let parent=el.parentElement;for(;parent;)selector?parent.matches(selector)&&parents.push(parent):parents.push(parent),parent=parent.parentElement;return parents}function elementTransitionEnd(el,callback){function fireCallBack(e){e.target===el&&(callback.call(el,e),el.removeEventListener("transitionend",fireCallBack))}callback&&el.addEventListener("transitionend",fireCallBack)}function elementOuterSize(el,size,includeMargins){const window=getWindow();return includeMargins?el["width"===size?"offsetWidth":"offsetHeight"]+parseFloat(window.getComputedStyle(el,null).getPropertyValue("width"===size?"margin-right":"margin-top"))+parseFloat(window.getComputedStyle(el,null).getPropertyValue("width"===size?"margin-left":"margin-bottom")):el.offsetWidth}let support,deviceCached,browser;function calcSupport(){const window=getWindow(),document=getDocument();return{smoothScroll:document.documentElement&&document.documentElement.style&&"scrollBehavior"in document.documentElement.style,touch:!!("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch)}}function getSupport(){return support||(support=calcSupport()),support}function calcDevice(_temp){let{userAgent:userAgent}=void 0===_temp?{}:_temp;const support=getSupport(),window=getWindow(),platform=window.navigator.platform,ua=userAgent||window.navigator.userAgent,device={ios:!1,android:!1},screenWidth=window.screen.width,screenHeight=window.screen.height,android=ua.match(/(Android);?[\s\/]+([\d.]+)?/);let ipad=ua.match(/(iPad).*OS\s([\d_]+)/);const ipod=ua.match(/(iPod)(.*OS\s([\d_]+))?/),iphone=!ipad&&ua.match(/(iPhone\sOS|iOS)\s([\d_]+)/),windows="Win32"===platform;let macos="MacIntel"===platform;const iPadScreens=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!ipad&&macos&&support.touch&&iPadScreens.indexOf(`${screenWidth}x${screenHeight}`)>=0&&(ipad=ua.match(/(Version)\/([\d.]+)/),ipad||(ipad=[0,1,"13_0_0"]),macos=!1),android&&!windows&&(device.os="android",device.android=!0),(ipad||iphone||ipod)&&(device.os="ios",device.ios=!0),device}function getDevice(overrides){return void 0===overrides&&(overrides={}),deviceCached||(deviceCached=calcDevice(overrides)),deviceCached}function calcBrowser(){const window=getWindow();let needPerspectiveFix=!1;function isSafari(){const ua=window.navigator.userAgent.toLowerCase();return ua.indexOf("safari")>=0&&ua.indexOf("chrome")<0&&ua.indexOf("android")<0}if(isSafari()){const ua=String(window.navigator.userAgent);if(ua.includes("Version/")){const[major,minor]=ua.split("Version/")[1].split(" ")[0].split(".").map(num=>Number(num));needPerspectiveFix=major<16||16===major&&minor<2}}return{isSafari:needPerspectiveFix||isSafari(),needPerspectiveFix:needPerspectiveFix,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(window.navigator.userAgent)}}function getBrowser(){return browser||(browser=calcBrowser()),browser}function Resize(_ref){let{swiper:swiper,on:on,emit:emit}=_ref;const window=getWindow();let observer=null,animationFrame=null;const resizeHandler=()=>{swiper&&!swiper.destroyed&&swiper.initialized&&(emit("beforeResize"),emit("resize"))},createObserver=()=>{swiper&&!swiper.destroyed&&swiper.initialized&&(observer=new ResizeObserver(entries=>{animationFrame=window.requestAnimationFrame(()=>{const{width:width,height:height}=swiper;let newWidth=width,newHeight=height;
6995entries.forEach(_ref2=>{let{contentBoxSize:contentBoxSize,contentRect:contentRect,target:target}=_ref2;target&&target!==swiper.el||(newWidth=contentRect?contentRect.width:(contentBoxSize[0]||contentBoxSize).inlineSize,newHeight=contentRect?contentRect.height:(contentBoxSize[0]||contentBoxSize).blockSize)}),newWidth===width&&newHeight===height||resizeHandler()})}),observer.observe(swiper.el))},removeObserver=()=>{animationFrame&&window.cancelAnimationFrame(animationFrame),observer&&observer.unobserve&&swiper.el&&(observer.unobserve(swiper.el),observer=null)},orientationChangeHandler=()=>{swiper&&!swiper.destroyed&&swiper.initialized&&emit("orientationchange")};on("init",()=>{swiper.params.resizeObserver&&void 0!==window.ResizeObserver?createObserver():(window.addEventListener("resize",resizeHandler),window.addEventListener("orientationchange",orientationChangeHandler))}),on("destroy",()=>{removeObserver(),window.removeEventListener("resize",resizeHandler),window.removeEventListener("orientationchange",orientationChangeHandler)})}function Observer(_ref){let{swiper:swiper,extendParams:extendParams,on:on,emit:emit}=_ref;const observers=[],window=getWindow(),attach=function(target,options){void 0===options&&(options={});const ObserverFunc=window.MutationObserver||window.WebkitMutationObserver,observer=new ObserverFunc(mutations=>{if(swiper.__preventObserver__)return;if(1===mutations.length)return void emit("observerUpdate",mutations[0]);const observerUpdate=function observerUpdate(){emit("observerUpdate",mutations[0])};window.requestAnimationFrame?window.requestAnimationFrame(observerUpdate):window.setTimeout(observerUpdate,0)});observer.observe(target,{attributes:void 0===options.attributes||options.attributes,childList:void 0===options.childList||options.childList,characterData:void 0===options.characterData||options.characterData}),observers.push(observer)},init=()=>{if(swiper.params.observer){if(swiper.params.observeParents){const containerParents=elementParents(swiper.hostEl);for(let i=0;i<containerParents.length;i+=1)attach(containerParents[i])}attach(swiper.hostEl,{childList:swiper.params.observeSlideChildren}),attach(swiper.wrapperEl,{attributes:!1})}},destroy=()=>{observers.forEach(observer=>{observer.disconnect()}),observers.splice(0,observers.length)};extendParams({observer:!1,observeParents:!1,observeSlideChildren:!1}),on("init",init),on("destroy",destroy)}var eventsEmitter={on(events,handler,priority){const self=this;if(!self.eventsListeners||self.destroyed)return self;if("function"!=typeof handler)return self;const method=priority?"unshift":"push";return events.split(" ").forEach(event=>{self.eventsListeners[event]||(self.eventsListeners[event]=[]),self.eventsListeners[event][method](handler)}),self},once(events,handler,priority){const self=this;if(!self.eventsListeners||self.destroyed)return self;if("function"!=typeof handler)return self;function onceHandler(){self.off(events,onceHandler),onceHandler.__emitterProxy&&delete onceHandler.__emitterProxy;for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];handler.apply(self,args)}return onceHandler.__emitterProxy=handler,self.on(events,onceHandler,priority)},onAny(handler,priority){const self=this;if(!self.eventsListeners||self.destroyed)return self;if("function"!=typeof handler)return self;const method=priority?"unshift":"push";return self.eventsAnyListeners.indexOf(handler)<0&&self.eventsAnyListeners[method](handler),self},offAny(handler){const self=this;if(!self.eventsListeners||self.destroyed)return self;if(!self.eventsAnyListeners)return self;const index=self.eventsAnyListeners.indexOf(handler);return index>=0&&self.eventsAnyListeners.splice(index,1),self},off(events,handler){const self=this;return!self.eventsListeners||self.destroyed?self:self.eventsListeners?(events.split(" ").forEach(event=>{void 0===handler?self.eventsListeners[event]=[]:self.eventsListeners[event]&&self.eventsListeners[event].forEach((eventHandler,index)=>{(eventHandler===handler||eventHandler.__emitterProxy&&eventHandler.__emitterProxy===handler)&&self.eventsListeners[event].splice(index,1)})}),self):self}
vendor: 2,915 bytes, line 6995
6995,emit(){const self=this;if(!self.eventsListeners||self.destroyed)return self;if(!self.eventsListeners)return self;let events,data,context;for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];"string"==typeof args[0]||Array.isArray(args[0])?(events=args[0],data=args.slice(1,args.length),context=self):(events=args[0].events,data=args[0].data,context=args[0].context||self),data.unshift(context);const eventsArray=Array.isArray(events)?events:events.split(" ");return eventsArray.forEach(event=>{self.eventsAnyListeners&&self.eventsAnyListeners.length&&self.eventsAnyListeners.forEach(eventHandler=>{eventHandler.apply(context,[event,...data])}),self.eventsListeners&&self.eventsListeners[event]&&self.eventsListeners[event].forEach(eventHandler=>{eventHandler.apply(context,data)})}),self}};function updateSize(){const swiper=this;let width,height;const el=swiper.el;width=void 0!==swiper.params.width&&null!==swiper.params.width?swiper.params.width:el.clientWidth,height=void 0!==swiper.params.height&&null!==swiper.params.height?swiper.params.height:el.clientHeight,0===width&&swiper.isHorizontal()||0===height&&swiper.isVertical()||(width=width-parseInt(elementStyle(el,"padding-left")||0,10)-parseInt(elementStyle(el,"padding-right")||0,10),height=height-parseInt(elementStyle(el,"padding-top")||0,10)-parseInt(elementStyle(el,"padding-bottom")||0,10),Number.isNaN(width)&&(width=0),Number.isNaN(height)&&(height=0),Object.assign(swiper,{width:width,height:height,size:swiper.isHorizontal()?width:height}))}function updateSlides(){const swiper=this;function getDirectionPropertyValue(node,label){return parseFloat(node.getPropertyValue(swiper.getDirectionLabel(label))||0)}const params=swiper.params,{wrapperEl:wrapperEl,slidesEl:slidesEl,size:swiperSize,rtlTranslate:rtl,wrongRTL:wrongRTL}=swiper,isVirtual=swiper.virtual&&params.virtual.enabled,previousSlidesLength=isVirtual?swiper.virtual.slides.length:swiper.slides.length,slides=elementChildren(slidesEl,`.${swiper.params.slideClass}, swiper-slide`),slidesLength=isVirtual?swiper.virtual.slides.length:slides.length;let snapGrid=[];const slidesGrid=[],slidesSizesGrid=[];let offsetBefore=params.slidesOffsetBefore;"function"==typeof offsetBefore&&(offsetBefore=params.slidesOffsetBefore.call(swiper));let offsetAfter=params.slidesOffsetAfter;"function"==typeof offsetAfter&&(offsetAfter=params.slidesOffsetAfter.call(swiper));const previousSnapGridLength=swiper.snapGrid.length,previousSlidesGridLength=swiper.slidesGrid.length;let spaceBetween=params.spaceBetween,slidePosition=-offsetBefore,prevSlideSize=0,index=0;if(void 0===swiperSize)return;"string"==typeof spaceBetween&&spaceBetween.indexOf("%")>=0?spaceBetween=parseFloat(spaceBetween.replace("%",""))/100*swiperSize:"string"==typeof spaceBetween&&(spaceBetween=parseFloat(spaceBetween)),swiper.virtualSize=-spaceBetween,slides.forEach(sli
vendor: 4,090 bytes, line 6995
6995deEl=>{rtl?slideEl.style.marginLeft="":slideEl.style.marginRight="",slideEl.style.marginBottom="",slideEl.style.marginTop=""}),params.centeredSlides&&params.cssMode&&(setCSSProperty(wrapperEl,"--swiper-centered-offset-before",""),setCSSProperty(wrapperEl,"--swiper-centered-offset-after",""));const gridEnabled=params.grid&&params.grid.rows>1&&swiper.grid;let slideSize;gridEnabled?swiper.grid.initSlides(slides):swiper.grid&&swiper.grid.unsetSlides();const shouldResetSlideSize="auto"===params.slidesPerView&&params.breakpoints&&Object.keys(params.breakpoints).filter(key=>void 0!==params.breakpoints[key].slidesPerView).length>0;for(let i=0;i<slidesLength;i+=1){let slide;if(slideSize=0,slides[i]&&(slide=slides[i]),gridEnabled&&swiper.grid.updateSlide(i,slide,slides),!slides[i]||"none"!==elementStyle(slide,"display")){if("auto"===params.slidesPerView){shouldResetSlideSize&&(slides[i].style[swiper.getDirectionLabel("width")]="");const slideStyles=getComputedStyle(slide),currentTransform=slide.style.transform,currentWebKitTransform=slide.style.webkitTransform;if(currentTransform&&(slide.style.transform="none"),currentWebKitTransform&&(slide.style.webkitTransform="none"),params.roundLengths)slideSize=swiper.isHorizontal()?elementOuterSize(slide,"width",!0):elementOuterSize(slide,"height",!0);else{const width=getDirectionPropertyValue(slideStyles,"width"),paddingLeft=getDirectionPropertyValue(slideStyles,"padding-left"),paddingRight=getDirectionPropertyValue(slideStyles,"padding-right"),marginLeft=getDirectionPropertyValue(slideStyles,"margin-left"),marginRight=getDirectionPropertyValue(slideStyles,"margin-right"),boxSizing=slideStyles.getPropertyValue("box-sizing");if(boxSizing&&"border-box"===boxSizing)slideSize=width+marginLeft+marginRight;else{const{clientWidth:clientWidth,offsetWidth:offsetWidth}=slide;slideSize=width+paddingLeft+paddingRight+marginLeft+marginRight+(offsetWidth-clientWidth)}}currentTransform&&(slide.style.transform=currentTransform),currentWebKitTransform&&(slide.style.webkitTransform=currentWebKitTransform),params.roundLengths&&(slideSize=Math.floor(slideSize))}else slideSize=(swiperSize-(params.slidesPerView-1)*spaceBetween)/params.slidesPerView,params.roundLengths&&(slideSize=Math.floor(slideSize)),slides[i]&&(slides[i].style[swiper.getDirectionLabel("width")]=`${slideSize}px`);slides[i]&&(slides[i].swiperSlideSize=slideSize),slidesSizesGrid.push(slideSize),params.centeredSlides?(slidePosition=slidePosition+slideSize/2+prevSlideSize/2+spaceBetween,0===prevSlideSize&&0!==i&&(slidePosition=slidePosition-swiperSize/2-spaceBetween),0===i&&(slidePosition=slidePosition-swiperSize/2-spaceBetween),Math.abs(slidePosition)<.001&&(slidePosition=0),params.roundLengths&&(slidePosition=Math.floor(slidePosition)),index%params.slidesPerGroup==0&&snapGrid.push(slidePosition),slidesGrid.push(slidePosition)):(params.roundLengths&&(slidePosition=Math.floor(slidePosition)),(index-Math.min(swiper.params.slidesPerGroupSkip,index))%swiper.params.slidesPerGroup==0&&snapGrid.push(slidePosition),slidesGrid.push(slidePosition),slidePosition=slidePosition+slideSize+spaceBetween),swiper.virtualSize+=slideSize+spaceBetween,prevSlideSize=slideSize,index+=1}}if(swiper.virtualSize=Math.max(swiper.virtualSize,swiperSize)+offsetAfter,rtl&&wrongRTL&&("slide"===params.effect||"coverflow"===params.effect)&&(wrapperEl.style.width=`${swiper.virtualSize+spaceBetween}px`),params.setWrapperSize&&(wrapperEl.style[swiper.getDirectionLabel("width")]=`${swiper.virtualSize+spaceBetween}px`),gridEnabled&&swiper.grid.updateWrapperSize(slideSize,snapGrid),!params.centeredSlides){const newSlidesGrid=[];for(let i=0;i<snapGrid.length;i+=1){let slidesGridItem=snapGrid[i];params.roundLengths&&(slidesGridItem=Math.floor(slidesGridItem)),snapGrid[i]<=swiper.virtualSize-swiperSize&&newSlidesGrid.push(slidesGridItem)}snapGrid=newSlidesGrid,Math.floor(swiper.virtualSize-swiperSize)-Math.floor(snapGrid[snapGrid.length-1])>1&&snapGrid.push(swiper.virtualSize-swiperSize)}if(isVirtual&&params.loop){const size=slidesSizesGrid[0]+spaceBetween;if(params.slidesPerGroup>
vendor: 3,369 bytes, line 6995
69951){const groups=Math.ceil((swiper.virtual.slidesBefore+swiper.virtual.slidesAfter)/params.slidesPerGroup),groupSize=size*params.slidesPerGroup;for(let i=0;i<groups;i+=1)snapGrid.push(snapGrid[snapGrid.length-1]+groupSize)}for(let i=0;i<swiper.virtual.slidesBefore+swiper.virtual.slidesAfter;i+=1)1===params.slidesPerGroup&&snapGrid.push(snapGrid[snapGrid.length-1]+size),slidesGrid.push(slidesGrid[slidesGrid.length-1]+size),swiper.virtualSize+=size}if(0===snapGrid.length&&(snapGrid=[0]),0!==spaceBetween){const key=swiper.isHorizontal()&&rtl?"marginLeft":swiper.getDirectionLabel("marginRight");slides.filter((_,slideIndex)=>!(params.cssMode&&!params.loop)||slideIndex!==slides.length-1).forEach(slideEl=>{slideEl.style[key]=`${spaceBetween}px`})}if(params.centeredSlides&&params.centeredSlidesBounds){let allSlidesSize=0;slidesSizesGrid.forEach(slideSizeValue=>{allSlidesSize+=slideSizeValue+(spaceBetween||0)}),allSlidesSize-=spaceBetween;const maxSnap=allSlidesSize-swiperSize;snapGrid=snapGrid.map(snap=>snap<=0?-offsetBefore:snap>maxSnap?maxSnap+offsetAfter:snap)}if(params.centerInsufficientSlides){let allSlidesSize=0;if(slidesSizesGrid.forEach(slideSizeValue=>{allSlidesSize+=slideSizeValue+(spaceBetween||0)}),allSlidesSize-=spaceBetween,allSlidesSize<swiperSize){const allSlidesOffset=(swiperSize-allSlidesSize)/2;snapGrid.forEach((snap,snapIndex)=>{snapGrid[snapIndex]=snap-allSlidesOffset}),slidesGrid.forEach((snap,snapIndex)=>{slidesGrid[snapIndex]=snap+allSlidesOffset})}}if(Object.assign(swiper,{slides:slides,snapGrid:snapGrid,slidesGrid:slidesGrid,slidesSizesGrid:slidesSizesGrid}),params.centeredSlides&&params.cssMode&&!params.centeredSlidesBounds){setCSSProperty(wrapperEl,"--swiper-centered-offset-before",`${-snapGrid[0]}px`),setCSSProperty(wrapperEl,"--swiper-centered-offset-after",`${swiper.size/2-slidesSizesGrid[slidesSizesGrid.length-1]/2}px`);const addToSnapGrid=-swiper.snapGrid[0],addToSlidesGrid=-swiper.slidesGrid[0];swiper.snapGrid=swiper.snapGrid.map(v=>v+addToSnapGrid),swiper.slidesGrid=swiper.slidesGrid.map(v=>v+addToSlidesGrid)}if(slidesLength!==previousSlidesLength&&swiper.emit("slidesLengthChange"),snapGrid.length!==previousSnapGridLength&&(swiper.params.watchOverflow&&swiper.checkOverflow(),swiper.emit("snapGridLengthChange")),slidesGrid.length!==previousSlidesGridLength&&swiper.emit("slidesGridLengthChange"),params.watchSlidesProgress&&swiper.updateSlidesOffset(),swiper.emit("slidesUpdated"),!(isVirtual||params.cssMode||"slide"!==params.effect&&"fade"!==params.effect)){const backFaceHiddenClass=`${params.containerModifierClass}backface-hidden`,hasClassBackfaceClassAdded=swiper.el.classList.contains(backFaceHiddenClass);slidesLength<=params.maxBackfaceHiddenSlides?hasClassBackfaceClassAdded||swiper.el.classList.add(backFaceHiddenClass):hasClassBackfaceClassAdded&&swiper.el.classList.remove(backFaceHiddenClass)}}function updateAutoHeight(speed){const swiper=this,activeSlides=[],isVirtual=swiper.virtual&&swiper.params.virtual.enabled;let newHeight=0,i;"number"==typeof speed?swiper.setTransition(speed):!0===speed&&swiper.setTransition(swiper.params.speed);const getSlideByIndex=index=>isVirtual?swiper.slides[swiper.getSlideIndexByData(index)]:swiper.slides[index];if("auto"!==swiper.params.slidesPerView&&swiper.params.slidesPerView>1)if(swiper.params.centeredSlides)(swiper.visibleSlides||[]).forEach(sli
vendor: 1,042 bytes, line 6995
6995de=>{activeSlides.push(slide)});else for(i=0;i<Math.ceil(swiper.params.slidesPerView);i+=1){const index=swiper.activeIndex+i;if(index>swiper.slides.length&&!isVirtual)break;activeSlides.push(getSlideByIndex(index))}else activeSlides.push(getSlideByIndex(swiper.activeIndex));for(i=0;i<activeSlides.length;i+=1)if(void 0!==activeSlides[i]){const height=activeSlides[i].offsetHeight;newHeight=height>newHeight?height:newHeight}(newHeight||0===newHeight)&&(swiper.wrapperEl.style.height=`${newHeight}px`)}function updateSlidesOffset(){const swiper=this,slides=swiper.slides,minusOffset=swiper.isElement?swiper.isHorizontal()?swiper.wrapperEl.offsetLeft:swiper.wrapperEl.offsetTop:0;for(let i=0;i<slides.length;i+=1)slides[i].swiperSlideOffset=(swiper.isHorizontal()?slides[i].offsetLeft:slides[i].offsetTop)-minusOffset-swiper.cssOverflowAdjustment()}function updateSlidesProgress(translate){void 0===translate&&(translate=this&&this.translate||0);const swiper=this,params=swiper.params,{slides:slides,rtlTranslate:rtl,snapGrid:snapGrid}=swiper;
vendor: 3,764 bytes, line 6995
6995if(0===slides.length)return;void 0===slides[0].swiperSlideOffset&&swiper.updateSlidesOffset();let offsetCenter=-translate;rtl&&(offsetCenter=translate),slides.forEach(slideEl=>{slideEl.classList.remove(params.slideVisibleClass,params.slideFullyVisibleClass)}),swiper.visibleSlidesIndexes=[],swiper.visibleSlides=[];let spaceBetween=params.spaceBetween;"string"==typeof spaceBetween&&spaceBetween.indexOf("%")>=0?spaceBetween=parseFloat(spaceBetween.replace("%",""))/100*swiper.size:"string"==typeof spaceBetween&&(spaceBetween=parseFloat(spaceBetween));for(let i=0;i<slides.length;i+=1){const slide=slides[i];let slideOffset=slide.swiperSlideOffset;params.cssMode&&params.centeredSlides&&(slideOffset-=slides[0].swiperSlideOffset);const slideProgress=(offsetCenter+(params.centeredSlides?swiper.minTranslate():0)-slideOffset)/(slide.swiperSlideSize+spaceBetween),originalSlideProgress=(offsetCenter-snapGrid[0]+(params.centeredSlides?swiper.minTranslate():0)-slideOffset)/(slide.swiperSlideSize+spaceBetween),slideBefore=-(offsetCenter-slideOffset),slideAfter=slideBefore+swiper.slidesSizesGrid[i],isFullyVisible=slideBefore>=0&&slideBefore<=swiper.size-swiper.slidesSizesGrid[i],isVisible=slideBefore>=0&&slideBefore<swiper.size-1||slideAfter>1&&slideAfter<=swiper.size||slideBefore<=0&&slideAfter>=swiper.size;isVisible&&(swiper.visibleSlides.push(slide),swiper.visibleSlidesIndexes.push(i),slides[i].classList.add(params.slideVisibleClass)),isFullyVisible&&slides[i].classList.add(params.slideFullyVisibleClass),slide.progress=rtl?-slideProgress:slideProgress,slide.originalProgress=rtl?-originalSlideProgress:originalSlideProgress}}function updateProgress(translate){const swiper=this;if(void 0===translate){const multiplier=swiper.rtlTranslate?-1:1;translate=swiper&&swiper.translate&&swiper.translate*multiplier||0}const params=swiper.params,translatesDiff=swiper.maxTranslate()-swiper.minTranslate();let{progress:progress,isBeginning:isBeginning,isEnd:isEnd,progressLoop:progressLoop}=swiper;const wasBeginning=isBeginning,wasEnd=isEnd;if(0===translatesDiff)progress=0,isBeginning=!0,isEnd=!0;else{progress=(translate-swiper.minTranslate())/translatesDiff;const isBeginningRounded=Math.abs(translate-swiper.minTranslate())<1,isEndRounded=Math.abs(translate-swiper.maxTranslate())<1;isBeginning=isBeginningRounded||progress<=0,isEnd=isEndRounded||progress>=1,isBeginningRounded&&(progress=0),isEndRounded&&(progress=1)}if(params.loop){const firstSlideIndex=swiper.getSlideIndexByData(0),lastSlideIndex=swiper.getSlideIndexByData(swiper.slides.length-1),firstSlideTranslate=swiper.slidesGrid[firstSlideIndex],lastSlideTranslate=swiper.slidesGrid[lastSlideIndex],translateMax=swiper.slidesGrid[swiper.slidesGrid.length-1],translateAbs=Math.abs(translate);progressLoop=translateAbs>=firstSlideTranslate?(translateAbs-firstSlideTranslate)/translateMax:(translateAbs+translateMax-lastSlideTranslate)/translateMax,progressLoop>1&&(progressLoop-=1)}Object.assign(swiper,{progress:progress,progressLoop:progressLoop,isBeginning:isBeginning,isEnd:isEnd}),(params.watchSlidesProgress||params.centeredSlides&&params.autoHeight)&&swiper.updateSlidesProgress(translate),isBeginning&&!wasBeginning&&swiper.emit("reachBeginning toEdge"),isEnd&&!wasEnd&&swiper.emit("reachEnd toEdge"),(wasBeginning&&!isBeginning||wasEnd&&!isEnd)&&swiper.emit("fromEdge"),swiper.emit("progress",progress)}function updateSlidesClasses(){const swiper=this,{slides:slides,params:params,slidesEl:slidesEl,activeIndex:activeIndex}=swiper,isVirtual=swiper.virtual&&params.virtual.enabled,gridEnabled=swiper.grid&&params.grid&&params.grid.rows>1,getFilteredSlide=selector=>elementChildren(slidesEl,`.${params.slideClass}${selector}, swiper-slide${selector}`)[0];let activeSlide,prevSlide,nextSlide;
6995if(slides.forEach(slideEl=>{slideEl.classList.remove(params.slideActiveClass,params.slideNextClass,params.slidePrevClass)}),isVirtual)if(params.loop){let slideIndex=activeIndex-swiper.virtual.slidesBefore;slideIndex<0&&(slideIndex=swiper.virtual.slides.length+slideIndex),slideIndex>=swiper.virtual.slides.length&&(slideIndex-=swiper.virtual.slides.length),activeSlide=getFilteredSlide(`[data-swiper-slide-index="${slideIndex}"]`)}else activeSlide=getFilteredSlide(`[data-swiper-slide-index="${activeIndex}"]`);else gridEnabled?(activeSlide=slides.filter(slideEl=>slideEl.column===activeIndex)[0],nextSlide=slides.filter(slideEl=>slideEl.column===activeIndex+1)[0],prevSlide=slides.filter(slideEl=>slideEl.column===activeIndex-1)[0]):activeSlide=slides[activeIndex];activeSlide&&(activeSlide.classList.add(params.slideActiveClass),gridEnabled?(nextSlide&&nextSlide.classList.add(params.slideNextClass),prevSlide&&prevSlide.classList.add(params.slidePrevClass)):(nextSlide=elementNextAll(activeSlide,`.${params.slideClass}, swiper-slide`)[0],params.loop&&!nextSlide&&(nextSlide=slides[0]),nextSlide&&nextSlide.classList.add(params.slideNextClass),prevSlide=elementPrevAll(activeSlide,`.${params.slideClass}, swiper-slide`)[0],params.loop&&0===!prevSlide&&(prevSlide=slides[slides.length-1]),prevSlide&&prevSlide.classList.add(params.slidePrevClass))),swiper.emitSlidesClasses()}const processLazyPreloader=(swiper,imageEl)=>{if(!swiper||swiper.destroyed||!swiper.params)return;const slideSelector=()=>swiper.isElement?"swiper-slide":`.${swiper.params.slideClass}`,slideEl=imageEl.closest(slideSelector());if(slideEl){let lazyEl=slideEl.querySelector(`.${swiper.params.lazyPreloaderClass}`);!lazyEl&&swiper.isElement&&(slideEl.shadowRoot?lazyEl=slideEl.shadowRoot.querySelector(`.${swiper.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{slideEl.shadowRoot&&(lazyEl=slideEl.shadowRoot.querySelector(`.${swiper.params.lazyPreloaderClass}`),lazyEl&&lazyEl.remove())})),lazyEl&&lazyEl.remove()}},unlazy=(swiper,index)=>{if(!swiper.slides[index])return;const imageEl=swiper.slides[index].querySelector('[loading="lazy"]');imageEl&&imageEl.removeAttribute("loading")},preload=swiper=>{if(!swiper||swiper.destroyed||!swiper.params)return;let amount=swiper.params.lazyPreloadPrevNext;const len=swiper.slides.length;if(!len||!amount||amount<0)return;amount=Math.min(amount,len);const slidesPerView="auto"===swiper.params.slidesPerView?swiper.slidesPerViewDynamic():Math.ceil(swiper.params.slidesPerView),activeIndex=swiper.activeIndex;if(swiper.params.grid&&swiper.params.grid.rows>1){const activeColumn=activeIndex,preloadColumns=[activeColumn-amount];return preloadColumns.push(...Array.from({length:amount}).map((_,i)=>activeColumn+slidesPerView+i)),void swiper.slides.forEach((slideEl,i)=>{preloadColumns.includes(slideEl.column)&&unlazy(swiper,i)})}const slideIndexLastInView=activeIndex+slidesPerView-1;if(swiper.params.rewind||swiper.params.loop)for(let i=activeIndex-amount;i<=slideIndexLastInView+amount;i+=1){const realIndex=(i%len+len)%len;(realIndex<activeIndex||realIndex>slideIndexLastInView)&&unlazy(swiper,realIndex)}else for(let i=Math.max(activeIndex-amount,0);i<=Math.min(slideIndexLastInView+amount,len-1);i+=1)i!==activeIndex&&(i>slideIndexLastInView||i<activeIndex)&&unlazy(swiper,i)};function getActiveIndexByTranslate(swiper){const{slidesGrid:slidesGrid,params:params}=swiper,translate=swiper.rtlTranslate?swiper.translate:-swiper.translate;let activeIndex;for(let i=0;i<slidesGrid.length;i+=1)void 0!==slidesGrid[i+1]?translate>=slidesGrid[i]&&translate<slidesGrid[i+1]-(slidesGrid[i+1]-slidesGrid[i])/2?activeIndex=i:translate>=slidesGrid[i]&&translate<slidesGrid[i+1]&&(activeIndex=i+1):translate>=slidesGrid[i]&&(activeIndex=i);return params.normalizeSlideIndex&&(activeIndex<0||void 0===activeIndex)&&(activeIndex=0),activeIndex}function updateActiveIndex(newActiveIndex){const swiper=this,translate=swiper.rtlTranslate?swiper.translate:-swiper.translate,{snapGrid:snapGrid,params:params,activeIndex:previousIndex,realIndex:previousRealIndex,snapIndex:previousSnapIndex}=swiper;let activeIndex=newActiveIndex,snapIndex;const getVirtualRealIndex=aIndex=>{let realIndex=aIndex-swiper.virtual.slidesBefore;return realIndex<0&&(realIndex=swiper.virtual.slides.length+realIndex),realIndex>=swiper.virtual.slides.length&&(realIndex-=swiper.virtual.slides.length),realIndex};if(void 0===activeIndex&&(activeIndex=getActiveIndexByTranslate(swiper)),snapGrid.indexOf(translate)>=0)snapIndex=snapGrid.indexOf(translate);else{const skip=Math.min(params.slidesPerGroupSkip,activeIndex);snapIndex=skip+Math.floor((activeIndex-skip)/params.slidesPerGroup)}if(snapIndex>=snapGrid.length&&(snapIndex=snapGrid.length-1),activeIndex===previousIndex&&!swi
vendor: 1,714 bytes, line 6995
6995per.params.loop)return void(snapIndex!==previousSnapIndex&&(swiper.snapIndex=snapIndex,swiper.emit("snapIndexChange")));if(activeIndex===previousIndex&&swiper.params.loop&&swiper.virtual&&swiper.params.virtual.enabled)return void(swiper.realIndex=getVirtualRealIndex(activeIndex));const gridEnabled=swiper.grid&&params.grid&&params.grid.rows>1;let realIndex;if(swiper.virtual&&params.virtual.enabled&&params.loop)realIndex=getVirtualRealIndex(activeIndex);else if(gridEnabled){const firstSlideInColumn=swiper.slides.filter(slideEl=>slideEl.column===activeIndex)[0];let activeSlideIndex=parseInt(firstSlideInColumn.getAttribute("data-swiper-slide-index"),10);Number.isNaN(activeSlideIndex)&&(activeSlideIndex=Math.max(swiper.slides.indexOf(firstSlideInColumn),0)),realIndex=Math.floor(activeSlideIndex/params.grid.rows)}else if(swiper.slides[activeIndex]){const slideIndex=swiper.slides[activeIndex].getAttribute("data-swiper-slide-index");realIndex=slideIndex?parseInt(slideIndex,10):activeIndex}else realIndex=activeIndex;Object.assign(swiper,{previousSnapIndex:previousSnapIndex,snapIndex:snapIndex,previousRealIndex:previousRealIndex,realIndex:realIndex,previousIndex:previousIndex,activeIndex:activeIndex}),swiper.initialized&&preload(swiper),swiper.emit("activeIndexChange"),swiper.emit("snapIndexChange"),(swiper.initialized||swiper.params.runCallbacksOnInit)&&(previousRealIndex!==realIndex&&swiper.emit("realIndexChange"),swiper.emit("slideChange"))}function updateClickedSlide(el,path){const swiper=this,params=swiper.params;let slide=el.closest(`.${params.slideClass}, swiper-slide`);!slide&&swiper.isElement&&path&&path.length>1&&path.includes(el)&&[...path.slice(path.indexOf(el)+1,path.length)].forEac
vendor: 10,545 bytes, line 6995
6995h(pathEl=>{!slide&&pathEl.matches&&pathEl.matches(`.${params.slideClass}, swiper-slide`)&&(slide=pathEl)});let slideFound=!1,slideIndex;if(slide)for(let i=0;i<swiper.slides.length;i+=1)if(swiper.slides[i]===slide){slideFound=!0,slideIndex=i;break}if(!slide||!slideFound)return swiper.clickedSlide=void 0,void(swiper.clickedIndex=void 0);swiper.clickedSlide=slide,swiper.virtual&&swiper.params.virtual.enabled?swiper.clickedIndex=parseInt(slide.getAttribute("data-swiper-slide-index"),10):swiper.clickedIndex=slideIndex,params.slideToClickedSlide&&void 0!==swiper.clickedIndex&&swiper.clickedIndex!==swiper.activeIndex&&swiper.slideToClickedSlide()}var update,translate,transition,slide,loop,grabCursor;function getSwiperTranslate(axis){void 0===axis&&(axis=this.isHorizontal()?"x":"y");const swiper=this,{params:params,rtlTranslate:rtl,translate:translate,wrapperEl:wrapperEl}=this;if(params.virtualTranslate)return rtl?-translate:translate;if(params.cssMode)return translate;let currentTranslate=getTranslate(wrapperEl,axis);return currentTranslate+=this.cssOverflowAdjustment(),rtl&&(currentTranslate=-currentTranslate),currentTranslate||0}function setTranslate(translate,byController){const swiper=this,{rtlTranslate:rtl,params:params,wrapperEl:wrapperEl,progress:progress}=swiper;let x=0,y=0;const z=0;let newProgress;swiper.isHorizontal()?x=rtl?-translate:translate:y=translate,params.roundLengths&&(x=Math.floor(x),y=Math.floor(y)),swiper.previousTranslate=swiper.translate,swiper.translate=swiper.isHorizontal()?x:y,params.cssMode?wrapperEl[swiper.isHorizontal()?"scrollLeft":"scrollTop"]=swiper.isHorizontal()?-x:-y:params.virtualTranslate||(swiper.isHorizontal()?x-=swiper.cssOverflowAdjustment():y-=swiper.cssOverflowAdjustment(),wrapperEl.style.transform=`translate3d(${x}px, ${y}px, 0px)`);const translatesDiff=swiper.maxTranslate()-swiper.minTranslate();newProgress=0===translatesDiff?0:(translate-swiper.minTranslate())/translatesDiff,newProgress!==progress&&swiper.updateProgress(translate),swiper.emit("setTranslate",swiper.translate,byController)}function minTranslate(){return-this.snapGrid[0]}function maxTranslate(){return-this.snapGrid[this.snapGrid.length-1]}function translateTo(translate,speed,runCallbacks,translateBounds,internal){void 0===translate&&(translate=0),void 0===speed&&(speed=this.params.speed),void 0===runCallbacks&&(runCallbacks=!0),void 0===translateBounds&&(translateBounds=!0);const swiper=this,{params:params,wrapperEl:wrapperEl}=swiper;if(swiper.animating&&params.preventInteractionOnTransition)return!1;const minTranslate=swiper.minTranslate(),maxTranslate=swiper.maxTranslate();let newTranslate;if(newTranslate=translateBounds&&translate>minTranslate?minTranslate:translateBounds&&translate<maxTranslate?maxTranslate:translate,swiper.updateProgress(newTranslate),params.cssMode){const isH=swiper.isHorizontal();if(0===speed)wrapperEl[isH?"scrollLeft":"scrollTop"]=-newTranslate;else{if(!swiper.support.smoothScroll)return animateCSSModeScroll({swiper:swiper,targetPosition:-newTranslate,side:isH?"left":"top"}),!0;wrapperEl.scrollTo({[isH?"left":"top"]:-newTranslate,behavior:"smooth"})}return!0}return 0===speed?(swiper.setTransition(0),swiper.setTranslate(newTranslate),runCallbacks&&(swiper.emit("beforeTransitionStart",speed,internal),swiper.emit("transitionEnd"))):(swiper.setTransition(speed),swiper.setTranslate(newTranslate),runCallbacks&&(swiper.emit("beforeTransitionStart",speed,internal),swiper.emit("transitionStart")),swiper.animating||(swiper.animating=!0,swiper.onTranslateToWrapperTransitionEnd||(swiper.onTranslateToWrapperTransitionEnd=function transitionEnd(e){swiper&&!swiper.destroyed&&e.target===this&&(swiper.wrapperEl.removeEventListener("transitionend",swiper.onTranslateToWrapperTransitionEnd),swiper.onTranslateToWrapperTransitionEnd=null,delete swiper.onTranslateToWrapperTransitionEnd,runCallbacks&&swiper.emit("transitionEnd"))}),swiper.wrapperEl.addEventListener("transitionend",swiper.onTranslateToWrapperTransitionEnd))),!0}function setTransition(duration,byController){const swiper=this;swiper.params.cssMode||(swiper.wrapperEl.style.transitionDuration=`${duration}ms`,swiper.wrapperEl.style.transitionDelay=0===duration?"0ms":""),swiper.emit("setTransition",duration,byController)}function transitionEmit(_ref){let{swiper:swiper,runCallbacks:runCallbacks,direction:direction,step:step}=_ref;const{activeIndex:activeIndex,previousIndex:previousIndex}=swiper;let dir=direction;if(dir||(dir=activeIndex>previousIndex?"next":activeIndex<previousIndex?"prev":"reset"),swiper.emit(`transition${step}`),runCallbacks&&activeIndex!==previousIndex){if("reset"===dir)return void swiper.emit(`slideResetTransition${step}`);swiper.emit(`slideChangeTransition${step}`),"next"===dir?swiper.emit(`slideNextTransition${step}`):swiper.emit(`slidePrevTransition${step}`)}}function transitionStart(runCallbacks,direction){void 0===runCallbacks&&(runCallbacks=!0);const swiper=this,{params:params}=swiper;params.cssMode||(params.autoHeight&&swiper.updateAutoHeight(),transitionEmit({swiper:swiper,runCallbacks:runCallbacks,direction:direction,step:"Start"}))}function transitionEnd(runCallbacks,direction){void 0===runCallbacks&&(runCallbacks=!0);const swiper=this,{params:params}=this;this.animating=!1,params.cssMode||(this.setTransition(0),transitionEmit({swiper:this,runCallbacks:runCallbacks,direction:direction,step:"End"}))}function slideTo(index,speed,runCallbacks,internal,initial){void 0===index&&(index=0),void 0===speed&&(speed=this.params.speed),void 0===runCallbacks&&(runCallbacks=!0),"string"==typeof index&&(index=parseInt(index,10));const swiper=this;let slideIndex=index;slideIndex<0&&(slideIndex=0);const{params:params,snapGrid:snapGrid,slidesGrid:slidesGrid,previousIndex:previousIndex,activeIndex:activeIndex,rtlTranslate:rtl,wrapperEl:wrapperEl,enabled:enabled}=swiper;if(swiper.animating&&params.preventInteractionOnTransition||!enabled&&!internal&&!initial)return!1;const skip=Math.min(swiper.params.slidesPerGroupSkip,slideIndex);let snapIndex=skip+Math.floor((slideIndex-skip)/swiper.params.slidesPerGroup);snapIndex>=snapGrid.length&&(snapIndex=snapGrid.length-1);const translate=-snapGrid[snapIndex];if(params.normalizeSlideIndex)for(let i=0;i<slidesGrid.length;i+=1){const normalizedTranslate=-Math.floor(100*translate),normalizedGrid=Math.floor(100*slidesGrid[i]),normalizedGridNext=Math.floor(100*slidesGrid[i+1]);void 0!==slidesGrid[i+1]?normalizedTranslate>=normalizedGrid&&normalizedTranslate<normalizedGridNext-(normalizedGridNext-normalizedGrid)/2?slideIndex=i:normalizedTranslate>=normalizedGrid&&normalizedTranslate<normalizedGridNext&&(slideIndex=i+1):normalizedTranslate>=normalizedGrid&&(slideIndex=i)}if(swiper.initialized&&slideIndex!==activeIndex){if(!swiper.allowSlideNext&&(rtl?translate>swiper.translate&&translate>swiper.minTranslate():translate<swiper.translate&&translate<swiper.minTranslate()))return!1;if(!swiper.allowSlidePrev&&translate>swiper.translate&&translate>swiper.maxTranslate()&&(activeIndex||0)!==slideIndex)return!1}let direction;if(slideIndex!==(previousIndex||0)&&runCallbacks&&swiper.emit("beforeSlideChangeStart"),swiper.updateProgress(translate),direction=slideIndex>activeIndex?"next":slideIndex<activeIndex?"prev":"reset",rtl&&-translate===swiper.translate||!rtl&&translate===swiper.translate)return swiper.updateActiveIndex(slideIndex),params.autoHeight&&swiper.updateAutoHeight(),swiper.updateSlidesClasses(),"slide"!==params.effect&&swiper.setTranslate(translate),"reset"!==direction&&(swiper.transitionStart(runCallbacks,direction),swiper.transitionEnd(runCallbacks,direction)),!1;if(params.cssMode){const isH=swiper.isHorizontal(),t=rtl?translate:-translate;if(0===speed){const isVirtual=swiper.virtual&&swiper.params.virtual.enabled;isVirtual&&(swiper.wrapperEl.style.scrollSnapType="none",swiper._immediateVirtual=!0),isVirtual&&!swiper._cssModeVirtualInitialSet&&swiper.params.initialSlide>0?(swiper._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{wrapperEl[isH?"scrollLeft":"scrollTop"]=t})):wrapperEl[isH?"scrollLeft":"scrollTop"]=t,isVirtual&&requestAnimationFrame(()=>{swiper.wrapperEl.style.scrollSnapType="",swiper._immediateVirtual=!1})}else{if(!swiper.support.smoothScroll)return animateCSSModeScroll({swiper:swiper,targetPosition:t,side:isH?"left":"top"}),!0;wrapperEl.scrollTo({[isH?"left":"top"]:t,behavior:"smooth"})}return!0}return swiper.setTransition(speed),swiper.setTranslate(translate),swiper.updateActiveIndex(slideIndex),swiper.updateSlidesClasses(),swiper.emit("beforeTransitionStart",speed,internal),swiper.transitionStart(runCallbacks,direction),0===speed?swiper.transitionEnd(runCallbacks,direction):swiper.animating||(swiper.animating=!0,swiper.onSlideToWrapperTransitionEnd||(swiper.onSlideToWrapperTransitionEnd=function transitionEnd(e){swiper&&!swiper.destroyed&&e.target===this&&(swiper.wrapperEl.removeEventListener("transitionend",swiper.onSlideToWrapperTransitionEnd),swiper.onSlideToWrapperTransitionEnd=null,delete swiper.onSlideToWrapperTransitionEnd,swiper.transitionEnd(runCallbacks,direction))}),swiper.wrapperEl.addEventListener("transitionend",swiper.onSlideToWrapperTransitionEnd)),!0}function slideToLoop(index,speed,runCallbacks,internal){if(void 0===index&&(index=0),void 0===speed&&(speed=this.params.speed),void 0===runCallbacks&&(runCallbacks=!0),"string"==typeof index){const indexAsNumber=parseInt(index,10);index=indexAsNumber}const swiper=this,gridEnabled=swiper.grid&&swiper.params.grid&&swiper.params.grid.rows>1;let newIndex=index;if(swiper.params.loop)if(swiper.virtual&&swiper.params.virtual.enabled)newIndex+=swiper.virtual.slidesBefore;else{let targetSlideIndex;if(gridEnabled){const slideIndex=newIndex*swiper.params.grid.rows;targetSlideIndex=swiper.slides.filter(slideEl=>1*slideEl.getAttribute("data-swiper-slide-index")===slideIndex)[0].column}else targetSlideIndex=swiper.getSlideIndexByData(newIndex);const cols=gridEnabled?Math.ceil(swiper.slides.length/swiper.params.grid.rows):swiper.slides.length,{centeredSlides:centeredSlides}=swiper.params;let slidesPerView=swiper.params.slidesPerView;"auto"===slidesPerView?slidesPerView=swiper.slidesPerViewDynamic():(slidesPerView=Math.ceil(parseFloat(swiper.params.slidesPerView,10)),centeredSlides&&slidesPerView%2==0&&(slidesPerView+=1));let needLoopFix=cols-targetSlideIndex<slidesPerView;if(centeredSlides&&(needLoopFix=needLoopFix||targetSlideIndex<Math.ceil(slidesPerView/2)),needLoopFix){const direction=centeredSlides?targetSlideIndex<swiper.activeIndex?"prev":"next":target
6995SlideIndex-swiper.activeIndex-1<swiper.params.slidesPerView?"next":"prev";swiper.loopFix({direction:direction,slideTo:!0,activeSlideIndex:"next"===direction?targetSlideIndex+1:targetSlideIndex-cols+1,slideRealIndex:"next"===direction?swiper.realIndex:void 0})}if(gridEnabled){const slideIndex=newIndex*swiper.params.grid.rows;newIndex=swiper.slides.filter(slideEl=>1*slideEl.getAttribute("data-swiper-slide-index")===slideIndex)[0].column}else newIndex=swiper.getSlideIndexByData(newIndex)}return requestAnimationFrame(()=>{swiper.slideTo(newIndex,speed,runCallbacks,internal)}),swiper}function slideNext(speed,runCallbacks,internal){void 0===speed&&(speed=this.params.speed),void 0===runCallbacks&&(runCallbacks=!0);const swiper=this,{enabled:enabled,params:params,animating:animating}=swiper;if(!enabled)return swiper;let perGroup=params.slidesPerGroup;"auto"===params.slidesPerView&&1===params.slidesPerGroup&&params.slidesPerGroupAuto&&(perGroup=Math.max(swiper.slidesPerViewDynamic("current",!0),1));const increment=swiper.activeIndex<params.slidesPerGroupSkip?1:perGroup,isVirtual=swiper.virtual&&params.virtual.enabled;if(params.loop){if(animating&&!isVirtual&&params.loopPreventsSliding)return!1;if(swiper.loopFix({direction:"next"}),swiper._clientLeft=swiper.wrapperEl.clientLeft,swiper.activeIndex===swiper.slides.length-1&&params.cssMode)return requestAnimationFrame(()=>{swiper.slideTo(swiper.activeIndex+increment,speed,runCallbacks,internal)}),!0}return params.rewind&&swiper.isEnd?swiper.slideTo(0,speed,runCallbacks,internal):swiper.slideTo(swiper.activeIndex+increment,speed,runCallbacks,internal)}function slidePrev(speed,runCallbacks,internal){void 0===speed&&(speed=this.params.speed),void 0===runCallbacks&&(runCallbacks=!0);const swiper=this,{params:params,snapGrid:snapGrid,slidesGrid:slidesGrid,rtlTranslate:rtlTranslate,enabled:enabled,animating:animating}=swiper;if(!enabled)return swiper;const isVirtual=swiper.virtual&&params.virtual.enabled;if(params.loop){if(animating&&!isVirtual&&params.loopPreventsSliding)return!1;swiper.loopFix({direction:"prev"}),swiper._clientLeft=swiper.wrapperEl.clientLeft}const translate=rtlTranslate?swiper.translate:-swiper.translate;function normalize(val){return val<0?-Math.floor(Math.abs(val)):Math.floor(val)}const normalizedTranslate=normalize(translate),normalizedSnapGrid=snapGrid.map(val=>normalize(val));let prevSnap=snapGrid[normalizedSnapGrid.indexOf(normalizedTranslate)-1];if(void 0===prevSnap&&params.cssMode){let prevSnapIndex;snapGrid.forEach((snap,snapIndex)=>{normalizedTranslate>=snap&&(prevSnapIndex=snapIndex)}),void 0!==prevSnapIndex&&(prevSnap=snapGrid[prevSnapIndex>0?prevSnapIndex-1:prevSnapIndex])}let prevIndex=0;if(void 0!==prevSnap&&(prevIndex=slidesGrid.indexOf(prevSnap),prevIndex<0&&(prevIndex=swiper.activeIndex-1),"auto"===params.slidesPerView&&1===params.slidesPerGroup&&params.slidesPerGroupAuto&&(prevIndex=prevIndex-swiper.slidesPerViewDynamic("previous",!0)+1,prevIndex=Math.max(prevIndex,0))),params.rewind&&swiper.isBeginning){const lastIndex=swiper.params.virtual&&swiper.params.virtual.enabled&&swiper.virtual?swiper.virtual.slides.length-1:swiper.slides.length-1;return swiper.slideTo(lastIndex,speed,runCallbacks,internal)}return params.loop&&0===swiper.activeIndex&&params.cssMode?(requestAnimationFrame(()=>{swiper.slideTo(prevIndex,speed,runCallbacks,internal)}),!0):swiper.slideTo(prevIndex,speed,runCallbacks,internal)}function slideReset(speed,runCallbacks,internal){void 0===speed&&(speed=this.params.speed),void 0===runCallbacks&&(runCallbacks=!0);const swiper=this;return this.slideTo(this.activeIndex,speed,runCallbacks,internal)}function slideToClosest(speed,runCallbacks,internal,threshold){void 0===speed&&(speed=this.params.speed),void 0===runCallbacks&&(runCallbacks=!0),void 0===threshold&&(threshold=.5);const swiper=this;let index=swiper.activeIndex;const skip=Math.min(swiper.params.slidesPerGroupSkip,index),snapIndex=skip+Math.floor((index-skip)/swiper.params.slidesPerGroup),translate=swiper.rtlTranslate?swiper.translate:-swiper.translate;if(translate>=swiper.snapGrid[snapIndex]){const currentSnap=swiper.snapGrid[snapIndex],nextSnap=swiper.snapGrid[snapIndex+1];translate-currentSnap>(nextSnap-currentSnap)*threshold&&(index+=swiper.params.slidesPerGroup)}else{const prevSnap=swiper.snapGrid[snapIndex-1],currentSnap=swiper.snapGrid[snapIndex];translate-prevSnap<=(currentSnap-prevSnap)*threshold&&(index-=swiper.params.slidesPerGroup)}return index=Math.max(index,0),index=Math.min(index,swiper.slidesGrid.length-1),swiper.slideTo(index,speed,runCallbacks,internal)}function slideToClickedSlide(){const swiper=this,{params:params,slidesEl:slidesEl}=swiper,slidesPerView="auto"===params.slidesPerView?swiper.slidesPerViewDynamic():params.slidesPerView;let slideToIndex=swiper.clickedIndex,realIndex;const slideSelector=swiper.isElement?"swiper-slide":`.${params.slideClass}`;if(params.loop){if(swiper.animating)return;realIndex=parseInt(swiper.clickedSlide.getAttribute("data-swiper-slide-index"),10),params.centeredSlides?slideToIndex<swiper.loopedSlides-slidesPerView/2||slideToIndex>swiper.slides.length-swiper.loopedSlides+slidesPerView/2?(swiper.loopFix(),slideToIndex=swiper.getSlideIndex(elementChildren(slidesEl,`${slideSelector}[data-swiper-slide-index="${realIndex}"]`)[0]),nextTick(()=>{swiper.slideTo(slideToIndex)})):swiper.slideTo(slideToIndex):slideToIndex>swiper.slides.length-slidesPerView?(swiper.loopFix(),slideToIndex=swiper.getSlideIndex(elementChildren(slidesEl,`${slideSelector}[data-swiper-slide-index="${realIndex}"]`)[0]),nextTick(()=>{swiper.slideTo(slideToIndex)})):swiper.slideTo(slideToIndex)}else swiper.slideTo(slideToIndex)}function loopCreate(slideRealIndex){const swiper=this,{params:params,slidesEl:slidesEl}=swiper;if(!params.loop||swiper.virtual&&swiper.params.virtual.enabled)return;const initSlides=()=>{const slides=elementChildren(slidesEl,`.${params.slideClass}, swiper-slide`);
6995slides.forEach((el,index)=>{el.setAttribute("data-swiper-slide-index",index)})},gridEnabled=swiper.grid&&params.grid&&params.grid.rows>1,slidesPerGroup=params.slidesPerGroup*(gridEnabled?params.grid.rows:1),shouldFillGroup=swiper.slides.length%slidesPerGroup!=0,shouldFillGrid=gridEnabled&&swiper.slides.length%params.grid.rows!=0,addBlankSlides=amountOfSlides=>{for(let i=0;i<amountOfSlides;i+=1){const slideEl=swiper.isElement?createElement("swiper-slide",[params.slideBlankClass]):createElement("div",[params.slideClass,params.slideBlankClass]);swiper.slidesEl.append(slideEl)}};if(shouldFillGroup){if(params.loopAddBlankSlides){const slidesToAdd=slidesPerGroup-swiper.slides.length%slidesPerGroup;addBlankSlides(slidesToAdd),swiper.recalcSlides(),swiper.updateSlides()}else showWarning("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");initSlides()}else if(shouldFillGrid){if(params.loopAddBlankSlides){const slidesToAdd=params.grid.rows-swiper.slides.length%params.grid.rows;addBlankSlides(slidesToAdd),swiper.recalcSlides(),swiper.updateSlides()}else showWarning("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");initSlides()}else initSlides();
vendor: 17,033 bytes, line 6995
6995swiper.loopFix({slideRealIndex:slideRealIndex,direction:params.centeredSlides?void 0:"next"})}function loopFix(_temp){let{slideRealIndex:slideRealIndex,slideTo:slideTo=!0,direction:direction,setTranslate:setTranslate,activeSlideIndex:activeSlideIndex,byController:byController,byMousewheel:byMousewheel}=void 0===_temp?{}:_temp;const swiper=this;if(!swiper.params.loop)return;swiper.emit("beforeLoopFix");const{slides:slides,allowSlidePrev:allowSlidePrev,allowSlideNext:allowSlideNext,slidesEl:slidesEl,params:params}=swiper,{centeredSlides:centeredSlides}=params;if(swiper.allowSlidePrev=!0,swiper.allowSlideNext=!0,swiper.virtual&&params.virtual.enabled)return slideTo&&(params.centeredSlides||0!==swiper.snapIndex?params.centeredSlides&&swiper.snapIndex<params.slidesPerView?swiper.slideTo(swiper.virtual.slides.length+swiper.snapIndex,0,!1,!0):swiper.snapIndex===swiper.snapGrid.length-1&&swiper.slideTo(swiper.virtual.slidesBefore,0,!1,!0):swiper.slideTo(swiper.virtual.slides.length,0,!1,!0)),swiper.allowSlidePrev=allowSlidePrev,swiper.allowSlideNext=allowSlideNext,void swiper.emit("loopFix");let slidesPerView=params.slidesPerView;"auto"===slidesPerView?slidesPerView=swiper.slidesPerViewDynamic():(slidesPerView=Math.ceil(parseFloat(params.slidesPerView,10)),centeredSlides&&slidesPerView%2==0&&(slidesPerView+=1));const slidesPerGroup=params.slidesPerGroupAuto?slidesPerView:params.slidesPerGroup;let loopedSlides=slidesPerGroup;loopedSlides%slidesPerGroup!=0&&(loopedSlides+=slidesPerGroup-loopedSlides%slidesPerGroup),loopedSlides+=params.loopAdditionalSlides,swiper.loopedSlides=loopedSlides;const gridEnabled=swiper.grid&&params.grid&&params.grid.rows>1;slides.length<slidesPerView+loopedSlides?showWarning("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):gridEnabled&&"row"===params.grid.fill&&showWarning("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const prependSlidesIndexes=[],appendSlidesIndexes=[];let activeIndex=swiper.activeIndex;void 0===activeSlideIndex?activeSlideIndex=swiper.getSlideIndex(slides.filter(el=>el.classList.contains(params.slideActiveClass))[0]):activeIndex=activeSlideIndex;const isNext="next"===direction||!direction,isPrev="prev"===direction||!direction;let slidesPrepended=0,slidesAppended=0;const cols=gridEnabled?Math.ceil(slides.length/params.grid.rows):slides.length,activeColIndex=gridEnabled?slides[activeSlideIndex].column:activeSlideIndex,activeColIndexWithShift=activeColIndex+(centeredSlides&&void 0===setTranslate?-slidesPerView/2+.5:0);if(activeColIndexWithShift<loopedSlides){slidesPrepended=Math.max(loopedSlides-activeColIndexWithShift,slidesPerGroup);for(let i=0;i<loopedSlides-activeColIndexWithShift;i+=1){const index=i-Math.floor(i/cols)*cols;if(gridEnabled){const colIndexToPrepend=cols-index-1;for(let i=slides.length-1;i>=0;i-=1)slides[i].column===colIndexToPrepend&&prependSlidesIndexes.push(i)}else prependSlidesIndexes.push(cols-index-1)}}else if(activeColIndexWithShift+slidesPerView>cols-loopedSlides){slidesAppended=Math.max(activeColIndexWithShift-(cols-2*loopedSlides),slidesPerGroup);for(let i=0;i<slidesAppended;i+=1){const index=i-Math.floor(i/cols)*cols;gridEnabled?slides.forEach((slide,slideIndex)=>{slide.column===index&&appendSlidesIndexes.push(slideIndex)}):appendSlidesIndexes.push(index)}}if(swiper.__preventObserver__=!0,requestAnimationFrame(()=>{swiper.__preventObserver__=!1}),isPrev&&prependSlidesIndexes.forEach(index=>{slides[index].swiperLoopMoveDOM=!0,slidesEl.prepend(slides[index]),slides[index].swiperLoopMoveDOM=!1}),isNext&&appendSlidesIndexes.forEach(index=>{slides[index].swiperLoopMoveDOM=!0,slidesEl.append(slides[index]),slides[index].swiperLoopMoveDOM=!1}),swiper.recalcSlides(),"auto"===params.slidesPerView?swiper.updateSlides():gridEnabled&&(prependSlidesIndexes.length>0&&isPrev||appendSlidesIndexes.length>0&&isNext)&&swiper.slides.forEach((slide,slideIndex)=>{swiper.grid.updateSlide(slideIndex,slide,swiper.slides)}),params.watchSlidesProgress&&swiper.updateSlidesOffset(),slideTo)if(prependSlidesIndexes.length>0&&isPrev){if(void 0===slideRealIndex){const currentSlideTranslate=swiper.slidesGrid[activeIndex],newSlideTranslate=swiper.slidesGrid[activeIndex+slidesPrepended],diff=newSlideTranslate-currentSlideTranslate;byMousewheel?swiper.setTranslate(swiper.translate-diff):(swiper.slideTo(activeIndex+slidesPrepended,0,!1,!0),setTranslate&&(swiper.touchEventsData.startTranslate=swiper.touchEventsData.startTranslate-diff,swiper.touchEventsData.currentTranslate=swiper.touchEventsData.currentTranslate-diff))}else if(setTranslate){const shift=gridEnabled?prependSlidesIndexes.length/params.grid.rows:prependSlidesIndexes.length;swiper.slideTo(swiper.activeIndex+shift,0,!1,!0),swiper.touchEventsData.currentTranslate=swiper.translate}}else if(appendSlidesIndexes.length>0&&isNext)if(void 0===slideRealIndex){const currentSlideTranslate=swiper.slidesGrid[activeIndex],newSlideTranslate=swiper.slidesGrid[activeIndex-slidesAppended],diff=newSlideTranslate-currentSlideTranslate;byMousewheel?swiper.setTranslate(swiper.translate-diff):(swiper.slideTo(activeIndex-slidesAppended,0,!1,!0),setTranslate&&(swiper.touchEventsData.startTranslate=swiper.touchEventsData.startTranslate-diff,swiper.touchEventsData.currentTranslate=swiper.touchEventsData.currentTranslate-diff))}else{const shift=gridEnabled?appendSlidesIndexes.length/params.grid.rows:appendSlidesIndexes.length;swiper.slideTo(swiper.activeIndex-shift,0,!1,!0)}if(swiper.allowSlidePrev=allowSlidePrev,swiper.allowSlideNext=allowSlideNext,swiper.controller&&swiper.controller.control&&!byController){const loopParams={slideRealIndex:slideRealIndex,direction:direction,setTranslate:setTranslate,activeSlideIndex:activeSlideIndex,byController:!0};Array.isArray(swiper.controller.control)?swiper.controller.control.forEach(c=>{!c.destroyed&&c.params.loop&&c.loopFix({...loopParams,slideTo:c.params.slidesPerView===params.slidesPerView&&slideTo})}):swiper.controller.control instanceof swiper.constructor&&swiper.controller.control.params.loop&&swiper.controller.control.loopFix({...loopParams,slideTo:swiper.controller.control.params.slidesPerView===params.slidesPerView&&slideTo})}swiper.emit("loopFix")}function loopDestroy(){const swiper=this,{params:params,slidesEl:slidesEl}=this;if(!params.loop||this.virtual&&this.params.virtual.enabled)return;this.recalcSlides();const newSlidesOrder=[];this.slides.forEach(slideEl=>{const index=void 0===slideEl.swiperSlideIndex?1*slideEl.getAttribute("data-swiper-slide-index"):slideEl.swiperSlideIndex;newSlidesOrder[index]=slideEl}),this.slides.forEach(slideEl=>{slideEl.removeAttribute("data-swiper-slide-index")}),newSlidesOrder.forEach(slideEl=>{slidesEl.append(slideEl)}),this.recalcSlides(),this.slideTo(this.realIndex,0)}function setGrabCursor(moving){const swiper=this;if(!swiper.params.simulateTouch||swiper.params.watchOverflow&&swiper.isLocked||swiper.params.cssMode)return;const el="container"===swiper.params.touchEventsTarget?swiper.el:swiper.wrapperEl;swiper.isElement&&(swiper.__preventObserver__=!0),el.style.cursor="move",el.style.cursor=moving?"grabbing":"grab",swiper.isElement&&requestAnimationFrame(()=>{swiper.__preventObserver__=!1})}function unsetGrabCursor(){const swiper=this;swiper.params.watchOverflow&&swiper.isLocked||swiper.params.cssMode||(swiper.isElement&&(swiper.__preventObserver__=!0),swiper["container"===swiper.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",swiper.isElement&&requestAnimationFrame(()=>{swiper.__preventObserver__=!1}))}function closestElement(selector,base){function __closestFrom(el){if(!el||el===getDocument()||el===getWindow())return null;el.assignedSlot&&(el=el.assignedSlot);const found=el.closest(selector);return found||el.getRootNode?found||__closestFrom(el.getRootNode().host):null}return void 0===base&&(base=this),__closestFrom(base)}function preventEdgeSwipe(swiper,event,startX){const window=getWindow(),{params:params}=swiper,edgeSwipeDetection=params.edgeSwipeDetection,edgeSwipeThreshold=params.edgeSwipeThreshold;return!edgeSwipeDetection||!(startX<=edgeSwipeThreshold||startX>=window.innerWidth-edgeSwipeThreshold)||"prevent"===edgeSwipeDetection&&(event.preventDefault(),!0)}function onTouchStart(event){const swiper=this,document=getDocument();let e=event;e.originalEvent&&(e=e.originalEvent);const data=swiper.touchEventsData;if("pointerdown"===e.type){if(null!==data.pointerId&&data.pointerId!==e.pointerId)return;data.pointerId=e.pointerId}else"touchstart"===e.type&&1===e.targetTouches.length&&(data.touchId=e.targetTouches[0].identifier);if("touchstart"===e.type)return void preventEdgeSwipe(swiper,e,e.targetTouches[0].pageX);const{params:params,touches:touches,enabled:enabled}=swiper;if(!enabled)return;if(!params.simulateTouch&&"mouse"===e.pointerType)return;if(swiper.animating&&params.preventInteractionOnTransition)return;!swiper.animating&&params.cssMode&&params.loop&&swiper.loopFix();let targetEl=e.target;if("wrapper"===params.touchEventsTarget&&!swiper.wrapperEl.contains(targetEl))return;if("which"in e&&3===e.which)return;if("button"in e&&e.button>0)return;if(data.isTouched&&data.isMoved)return;const swipingClassHasValue=!!params.noSwipingClass&&""!==params.noSwipingClass,eventPath=e.composedPath?e.composedPath():e.path;swipingClassHasValue&&e.target&&e.target.shadowRoot&&eventPath&&(targetEl=eventPath[0]);const noSwipingSelector=params.noSwipingSelector?params.noSwipingSelector:`.${params.noSwipingClass}`,isTargetShadow=!(!e.target||!e.target.shadowRoot);if(params.noSwiping&&(isTargetShadow?closestElement(noSwipingSelector,targetEl):targetEl.closest(noSwipingSelector)))return void(swiper.allowClick=!0);if(params.swipeHandler&&!targetEl.closest(params.swipeHandler))return;touches.currentX=e.pageX,touches.currentY=e.pageY;const startX=touches.currentX,startY=touches.currentY;if(!preventEdgeSwipe(swiper,e,startX))return;Object.assign(data,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),touches.startX=startX,touches.startY=startY,data.touchStartTime=now(),swiper.allowClick=!0,swiper.updateSize(),swiper.swipeDirection=void 0,params.threshold>0&&(data.allowThresholdMove=!1);let preventDefault=!0;targetEl.matches(data.focusableElements)&&(preventDefault=!1,"SELECT"===targetEl.nodeName&&(data.isTouched=!1)),document.activeElement&&document.activeElement.matches(data.focusableElements)&&document.activeElement!==targetEl&&document.activeElement.blur();const shouldPreventDefault=preventDefault&&swiper.allowTouchMove&&params.touchStartPreventDefault;!params.touchStartForcePreventDefault&&!shouldPreventDefault||targetEl.isContentEditable||e.preventDefault(),params.freeMode&&params.freeMode.enabled&&swiper.freeMode&&swiper.animating&&!params.cssMode&&swiper.freeMode.onTouchStart(),swiper.emit("touchStart",e)}function onTouchMove(event){const document=getDocument(),swiper=this,data=swiper.touchEventsData,{params:params,touches:touches,rtlTranslate:rtl,enabled:enabled}=swiper;if(!enabled)return;if(!params.simulateTouch&&"mouse"===event.pointerType)return;let e=event,targetTouch;if(e.originalEvent&&(e=e.originalEvent),"pointermove"===e.type){if(null!==data.touchId)return;const id=e.pointerId;if(id!==data.pointerId)return}if("touchmove"===e.type){if(targetTouch=[...e.changedTouches].filter(t=>t.identifier===data.touchId)[0],!targetTouch||targetTouch.identifier!==data.touchId)return}else targetTouch=e;if(!data.isTouched)return void(data.startMoving&&data.isScrolling&&swiper.emit("touchMoveOpposite",e));const pageX=targetTouch.pageX,pageY=targetTouch.pageY;if(e.preventedByNestedSwiper)return touches.startX=pageX,void(touches.startY=pageY);if(!swiper.allowTouchMove)return e.target.matches(data.focusableElements)||(swiper.allowClick=!1),void(data.isTouched&&(Object.assign(touches,{startX:pageX,startY:pageY,currentX:pageX,currentY:pageY}),data.touchStartTime=now()));if(params.touchReleaseOnEdges&&!params.loop)if(swiper.isVertical()){if(pageY<touches.startY&&swiper.translate<=swiper.maxTranslate()||pageY>touches.startY&&swiper.translate>=swiper.minTranslate())return data.isTouched=!1,void(data.isMoved=!1)}else if(pageX<touches.startX&&swiper.translate<=swiper.maxTranslate()||pageX>touches.startX&&swiper.translate>=swiper.minTranslate())return;if(document.activeElement&&e.target===document.activeElement&&e.target.matches(data.focusableElements))return data.isMoved=!0,void(swiper.allowClick=!1);data.allowTouchCallbacks&&swiper.emit("touchMove",e),touches.previousX=touches.currentX,touches.previousY=touches.currentY,touches.currentX=pageX,touches.currentY=pageY;const diffX=touches.currentX-touches.startX,diffY=touches.currentY-touches.startY;if(swiper.params.threshold&&Math.sqrt(diffX**2+diffY**2)<swiper.params.threshold)return;if(void 0===data.isScrolling){let touchAngle;swiper.isHorizontal()&&touches.currentY===touches.startY||swiper.isVertical()&&touches.currentX===touches.startX?data.isScrolling=!1:diffX*diffX+diffY*diffY>=25&&(touchAngle=180*Math.atan2(Math.abs(diffY),Math.abs(diffX))/Math.PI,data.isScrolling=swiper.isHorizontal()?touchAngle>params.touchAngle:90-touchAngle>params.touchAngle)}if(data.isScrolling&&swiper.emit("touchMoveOpposite",e),void 0===data.startMoving&&(touches.currentX===touches.startX&&touches.currentY===touches.startY||(data.startMoving=!0)),data.isScrolling)return void(data.isTouched=!1);if(!data.startMoving)return;swiper.allowClick=!1,!params.cssMode&&e.cancelable&&e.preventDefault(),params.touchMoveStopPropagation&&!params.nested&&e.stopPropagation();let diff=swiper.isHorizontal()?diffX:diffY,touchesDiff=swiper.isHorizontal()?touches.currentX-touches.previousX:touches.currentY-touches.previousY;params.oneWayMovement&&(diff=Math.abs(diff)*(rtl?1:-1),touchesDiff=Math.abs(touchesDiff)*(rtl?1:-1)),touches.diff=diff,diff*=params.touchRatio,rtl&&(diff=-diff,touchesDiff=-touchesDiff);const prevTouchesDirection=swiper.touchesDirection;swiper.swipeDirection=diff>0?"prev":"next",swiper.touchesDirection=touchesDiff>0?"prev":"next";const isLoop=swiper.params.loop&&!params.cssMode,allowLoopFix="next"===swiper.touchesDirection&&swiper.allowSlideNext||"prev"===swiper.touchesDirection&&swiper.allowSlidePrev;if(!data.isMoved){if(isLoop&&allowLoopFix&&swiper.loopFix({direction:swiper.swipeDirection}),data.startTranslate=swiper.getTranslate(),swiper.setTransition(0),swiper.animating){const evt=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});swiper.wrapperEl.dispatchEvent(evt)}data.allowMomentumBounce=!1,!params.grabCursor||!0!==swiper.allowSlideNext&&!0!==swiper.allowSlidePrev||swiper.setGrabCursor(!0),swiper.emit("sliderFirstMove",e)}let loopFixed;if((new Date).getTime(),data.isMoved&&data.allowThresholdMove&&prevTouchesDirection!==swiper.touchesDirection&&isLoop&&allowLoopFix&&Math.abs(diff)>=1)return Object.assign(touches,{startX:pageX,startY:pageY,currentX:pageX,currentY:pageY,startTranslate:data.currentTranslate}),data.loopSwapReset=!0,void(data.startTranslate=data.currentTranslate);swiper.emit("sliderMove",e),data.isMoved=!0,data.currentTranslate=diff+data.startTranslate;let disableParentSwiper=!0,resistanceRatio=params.resistanceRatio;if(params.touchReleaseOnEdges&&(resistanceRatio=0),diff>0?(isLoop&&allowLoopFix&&data.allowThresholdMove&&data.currentTranslate>(params.centeredSlides?swiper.minTranslate()-swiper.slidesSizesGrid[swiper.activeIndex+1]:swiper.minTranslate())&&swiper.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),data.currentTranslate>swiper.minTranslate()&&(disableParentSwiper=!1,params.resistance&&(data.currentTranslate=swiper.minTranslate()-1+(-swiper.minTranslate()+data.startTranslate+diff)**resistanceRatio))):diff<0&&(isLoop&&allowLoopFix&&data.allowThresholdMove&&data.currentTranslate<(params.centeredSlides?swiper.maxTranslate()+swiper.slidesSizesGrid[swiper.slidesSizesGrid.length-1]:swiper.maxTranslate())&&swiper.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:swiper.slides.length-("auto"===params.slidesPerView?swiper.slidesPerViewDynamic():Math.ceil(parseFloat(params.slidesPerView,10)))}),data.currentTranslate<swiper.maxTranslate()&&(disableParentSwiper=!1,params.resistance&&(data.currentTranslate=swiper.maxTranslate()+1-(swiper.maxTranslate()-data.startTranslate-diff)**resistanceRatio))),disableParentSwiper&&(e.preventedByNestedSwiper=!0),!swiper.allowSlideNext&&"next"===swiper.swipeDirection&&data.currentTranslate<data.startTranslate&&(data.currentTranslate=data.startTranslate),!swiper.allowSlidePrev&&"prev"===swiper.swipeDirection&&data.currentTranslate>data.startTranslate&&(data.currentTranslate=data.startTranslate),swiper.allowSlidePrev||swiper.allowSlideNext||(data.currentTranslate=data.startTranslate),params.threshold>0){if(!(Math.abs(diff)>params.threshold||data.allowThresholdMove))return void(data.currentTranslate=data.startTranslate);
vendor: 4,989 bytes, line 6995
6995if(!data.allowThresholdMove)return data.allowThresholdMove=!0,touches.startX=touches.currentX,touches.startY=touches.currentY,data.currentTranslate=data.startTranslate,void(touches.diff=swiper.isHorizontal()?touches.currentX-touches.startX:touches.currentY-touches.startY)}params.followFinger&&!params.cssMode&&((params.freeMode&&params.freeMode.enabled&&swiper.freeMode||params.watchSlidesProgress)&&(swiper.updateActiveIndex(),swiper.updateSlidesClasses()),params.freeMode&&params.freeMode.enabled&&swiper.freeMode&&swiper.freeMode.onTouchMove(),swiper.updateProgress(data.currentTranslate),swiper.setTranslate(data.currentTranslate))}function onTouchEnd(event){const swiper=this,data=swiper.touchEventsData;let e=event,targetTouch;e.originalEvent&&(e=e.originalEvent);const isTouchEvent="touchend"===e.type||"touchcancel"===e.type;if(isTouchEvent){if(targetTouch=[...e.changedTouches].filter(t=>t.identifier===data.touchId)[0],!targetTouch||targetTouch.identifier!==data.touchId)return}else{if(null!==data.touchId)return;if(e.pointerId!==data.pointerId)return;targetTouch=e}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(e.type)){const proceed=["pointercancel","contextmenu"].includes(e.type)&&(swiper.browser.isSafari||swiper.browser.isWebView);if(!proceed)return}data.pointerId=null,data.touchId=null;const{params:params,touches:touches,rtlTranslate:rtl,slidesGrid:slidesGrid,enabled:enabled}=swiper;if(!enabled)return;if(!params.simulateTouch&&"mouse"===e.pointerType)return;if(data.allowTouchCallbacks&&swiper.emit("touchEnd",e),data.allowTouchCallbacks=!1,!data.isTouched)return data.isMoved&&params.grabCursor&&swiper.setGrabCursor(!1),data.isMoved=!1,void(data.startMoving=!1);params.grabCursor&&data.isMoved&&data.isTouched&&(!0===swiper.allowSlideNext||!0===swiper.allowSlidePrev)&&swiper.setGrabCursor(!1);const touchEndTime=now(),timeDiff=touchEndTime-data.touchStartTime;if(swiper.allowClick){const pathTree=e.path||e.composedPath&&e.composedPath();swiper.updateClickedSlide(pathTree&&pathTree[0]||e.target,pathTree),swiper.emit("tap click",e),timeDiff<300&&touchEndTime-data.lastClickTime<300&&swiper.emit("doubleTap doubleClick",e)}if(data.lastClickTime=now(),nextTick(()=>{swiper.destroyed||(swiper.allowClick=!0)}),!data.isTouched||!data.isMoved||!swiper.swipeDirection||0===touches.diff&&!data.loopSwapReset||data.currentTranslate===data.startTranslate&&!data.loopSwapReset)return data.isTouched=!1,data.isMoved=!1,void(data.startMoving=!1);let currentPos;if(data.isTouched=!1,data.isMoved=!1,data.startMoving=!1,currentPos=params.followFinger?rtl?swiper.translate:-swiper.translate:-data.currentTranslate,params.cssMode)return;if(params.freeMode&&params.freeMode.enabled)return void swiper.freeMode.onTouchEnd({currentPos:currentPos});const swipeToLast=currentPos>=-swiper.maxTranslate()&&!swiper.params.loop;let stopIndex=0,groupSize=swiper.slidesSizesGrid[0];for(let i=0;i<slidesGrid.length;i+=i<params.slidesPerGroupSkip?1:params.slidesPerGroup){const increment=i<params.slidesPerGroupSkip-1?1:params.slidesPerGroup;void 0!==slidesGrid[i+increment]?(swipeToLast||currentPos>=slidesGrid[i]&&currentPos<slidesGrid[i+increment])&&(stopIndex=i,groupSize=slidesGrid[i+increment]-slidesGrid[i]):(swipeToLast||currentPos>=slidesGrid[i])&&(stopIndex=i,groupSize=slidesGrid[slidesGrid.length-1]-slidesGrid[slidesGrid.length-2])}let rewindFirstIndex=null,rewindLastIndex=null;params.rewind&&(swiper.isBeginning?rewindLastIndex=params.virtual&&params.virtual.enabled&&swiper.virtual?swiper.virtual.slides.length-1:swiper.slides.length-1:swiper.isEnd&&(rewindFirstIndex=0));const ratio=(currentPos-slidesGrid[stopIndex])/groupSize,increment=stopIndex<params.slidesPerGroupSkip-1?1:params.slidesPerGroup;if(timeDiff>params.longSwipesMs){if(!params.longSwipes)return void swiper.slideTo(swiper.activeIndex);"next"===swiper.swipeDirection&&(ratio>=params.longSwipesRatio?swiper.slideTo(params.rewind&&swiper.isEnd?rewindFirstIndex:stopIndex+increment):swiper.slideTo(stopIndex)),"prev"===swiper.swipeDirection&&(ratio>1-params.longSwipesRatio?swiper.slideTo(stopIndex+increment):null!==rewindLastIndex&&ratio<0&&Math.abs(ratio)>params.longSwipesRatio?swiper.slideTo(rewindLastIndex):swiper.slideTo(stopIndex))}else{if(!params.shortSwipes)return void swiper.slideTo(swiper.activeIndex);const isNavButtonTarget=swiper.navigation&&(e.target===swiper.navigation.nextEl||e.target===swiper.navigation.prevEl);isNavButtonTarget?e.target===swiper.navigation.nextEl?swiper.slideTo(stopIndex+increment):swiper.slideTo(stopIndex):("next"===swiper.swipeDirection&&swiper.slideTo(null!==rewindFirstIndex?rewindFirstIndex:stopIndex+increment),"prev"===swiper.swipeDirection&&swiper.slideTo(null!==rewindLastIndex?rewindLastIndex:stopIndex))}}function onResize(){const swiper=this,{params:params,el:el}=swiper;if(el&&0===el.offsetWidth)return;params.breakpoints&&swiper.setBreakpoint();const{allowSlideNext:allowSlideNext,allowSlidePrev:allowSlidePrev,snapGrid:snapGrid}
vendor: 4,500 bytes, line 6995
6995=swiper,isVirtual=swiper.virtual&&swiper.params.virtual.enabled;swiper.allowSlideNext=!0,swiper.allowSlidePrev=!0,swiper.updateSize(),swiper.updateSlides(),swiper.updateSlidesClasses();const isVirtualLoop=isVirtual&&params.loop;!("auto"===params.slidesPerView||params.slidesPerView>1)||!swiper.isEnd||swiper.isBeginning||swiper.params.centeredSlides||isVirtualLoop?swiper.params.loop&&!isVirtual?swiper.slideToLoop(swiper.realIndex,0,!1,!0):swiper.slideTo(swiper.activeIndex,0,!1,!0):swiper.slideTo(swiper.slides.length-1,0,!1,!0),swiper.autoplay&&swiper.autoplay.running&&swiper.autoplay.paused&&(clearTimeout(swiper.autoplay.resizeTimeout),swiper.autoplay.resizeTimeout=setTimeout(()=>{swiper.autoplay&&swiper.autoplay.running&&swiper.autoplay.paused&&swiper.autoplay.resume()},500)),swiper.allowSlidePrev=allowSlidePrev,swiper.allowSlideNext=allowSlideNext,swiper.params.watchOverflow&&snapGrid!==swiper.snapGrid&&swiper.checkOverflow()}function onClick(e){const swiper=this;swiper.enabled&&(swiper.allowClick||(swiper.params.preventClicks&&e.preventDefault(),swiper.params.preventClicksPropagation&&swiper.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function onScroll(){const swiper=this,{wrapperEl:wrapperEl,rtlTranslate:rtlTranslate,enabled:enabled}=swiper;if(!enabled)return;let newProgress;swiper.previousTranslate=swiper.translate,swiper.isHorizontal()?swiper.translate=-wrapperEl.scrollLeft:swiper.translate=-wrapperEl.scrollTop,0===swiper.translate&&(swiper.translate=0),swiper.updateActiveIndex(),swiper.updateSlidesClasses();const translatesDiff=swiper.maxTranslate()-swiper.minTranslate();newProgress=0===translatesDiff?0:(swiper.translate-swiper.minTranslate())/translatesDiff,newProgress!==swiper.progress&&swiper.updateProgress(rtlTranslate?-swiper.translate:swiper.translate),swiper.emit("setTranslate",swiper.translate,!1)}function onLoad(e){const swiper=this;processLazyPreloader(this,e.target),this.params.cssMode||"auto"!==this.params.slidesPerView&&!this.params.autoHeight||this.update()}function onDocumentTouchStart(){const swiper=this;swiper.documentTouchHandlerProceeded||(swiper.documentTouchHandlerProceeded=!0,swiper.params.touchReleaseOnEdges&&(swiper.el.style.touchAction="auto"))}const events=(swiper,method)=>{const document=getDocument(),{params:params,el:el,wrapperEl:wrapperEl,device:device}=swiper,capture=!!params.nested,domMethod="on"===method?"addEventListener":"removeEventListener",swiperMethod=method;document[domMethod]("touchstart",swiper.onDocumentTouchStart,{passive:!1,capture:capture}),el[domMethod]("touchstart",swiper.onTouchStart,{passive:!1}),el[domMethod]("pointerdown",swiper.onTouchStart,{passive:!1}),document[domMethod]("touchmove",swiper.onTouchMove,{passive:!1,capture:capture}),document[domMethod]("pointermove",swiper.onTouchMove,{passive:!1,capture:capture}),document[domMethod]("touchend",swiper.onTouchEnd,{passive:!0}),document[domMethod]("pointerup",swiper.onTouchEnd,{passive:!0}),document[domMethod]("pointercancel",swiper.onTouchEnd,{passive:!0}),document[domMethod]("touchcancel",swiper.onTouchEnd,{passive:!0}),document[domMethod]("pointerout",swiper.onTouchEnd,{passive:!0}),document[domMethod]("pointerleave",swiper.onTouchEnd,{passive:!0}),document[domMethod]("contextmenu",swiper.onTouchEnd,{passive:!0}),(params.preventClicks||params.preventClicksPropagation)&&el[domMethod]("click",swiper.onClick,!0),params.cssMode&&wrapperEl[domMethod]("scroll",swiper.onScroll),params.updateOnWindowResize?swiper[swiperMethod](device.ios||device.android?"resize orientationchange observerUpdate":"resize observerUpdate",onResize,!0):swiper[swiperMethod]("observerUpdate",onResize,!0),el[domMethod]("load",swiper.onLoad,{capture:!0})};function attachEvents(){const swiper=this,{params:params}=swiper;swiper.onTouchStart=onTouchStart.bind(swiper),swiper.onTouchMove=onTouchMove.bind(swiper),swiper.onTouchEnd=onTouchEnd.bind(swiper),swiper.onDocumentTouchStart=onDocumentTouchStart.bind(swiper),params.cssMode&&(swiper.onScroll=onScroll.bind(swiper)),swiper.onClick=onClick.bind(swiper),swiper.onLoad=onLoad.bind(swiper),events(swiper,"on")}function detachEvents(){const swiper=this;events(this,"off")}var events$1;const isGridEnabled=(swiper,params)=>swiper.grid&&params.grid&&params.grid.rows>1;function setBreakpoint(){const swiper=this,{realIndex:realIndex,initialized:initialized,params:params,el:el}=swiper,breakpoints=params.breakpoints;if(!breakpoints||breakpoints&&0===Object.keys(breakpoints).length)return;
6995const breakpoint=swiper.getBreakpoint(breakpoints,swiper.params.breakpointsBase,swiper.el);if(!breakpoint||swiper.currentBreakpoint===breakpoint)return;const breakpointOnlyParams=breakpoint in breakpoints?breakpoints[breakpoint]:void 0,breakpointParams=breakpointOnlyParams||swiper.originalParams,wasMultiRow=isGridEnabled(swiper,params),isMultiRow=isGridEnabled(swiper,breakpointParams),wasEnabled=params.enabled;wasMultiRow&&!isMultiRow?(el.classList.remove(`${params.containerModifierClass}grid`,`${params.containerModifierClass}grid-column`),swiper.emitContainerClasses()):!wasMultiRow&&isMultiRow&&(el.classList.add(`${params.containerModifierClass}grid`),(breakpointParams.grid.fill&&"column"===breakpointParams.grid.fill||!breakpointParams.grid.fill&&"column"===params.grid.fill)&&el.classList.add(`${params.containerModifierClass}grid-column`),swiper.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(prop=>{if(void 0===breakpointParams[prop])return;const wasModuleEnabled=params[prop]&&params[prop].enabled,isModuleEnabled=breakpointParams[prop]&&breakpointParams[prop].enabled;wasModuleEnabled&&!isModuleEnabled&&swiper[prop].disable(),!wasModuleEnabled&&isModuleEnabled&&swiper[prop].enable()});const directionChanged=breakpointParams.direction&&breakpointParams.direction!==params.direction,needsReLoop=params.loop&&(breakpointParams.slidesPerView!==params.slidesPerView||directionChanged),wasLoop=params.loop;directionChanged&&initialized&&swiper.changeDirection(),extend(swiper.params,breakpointParams);const isEnabled=swiper.params.enabled,hasLoop=swiper.params.loop;Object.assign(swiper,{allowTouchMove:swiper.params.allowTouchMove,allowSlideNext:swiper.params.allowSlideNext,allowSlidePrev:swiper.params.allowSlidePrev}),wasEnabled&&!isEnabled?swiper.disable():!wasEnabled&&isEnabled&&swiper.enable(),swiper.currentBreakpoint=breakpoint,swiper.emit("_beforeBreakpoint",breakpointParams),initialized&&(needsReLoop?(swiper.loopDestroy(),swiper.loopCreate(realIndex),swiper.updateSlides()):!wasLoop&&hasLoop?(swiper.loopCreate(realIndex),swiper.updateSlides()):wasLoop&&!hasLoop&&swiper.loopDestroy()),swiper.emit("breakpoint",breakpointParams)}function getBreakpoint(breakpoints,base,containerEl){if(void 0===base&&(base="window"),!breakpoints||"container"===base&&!containerEl)return;let breakpoint=!1;const window=getWindow(),currentHeight="window"===base?window.innerHeight:containerEl.clientHeight,points=Object.keys(breakpoints).map(point=>{if("string"==typeof point&&0===point.indexOf("@")){const minRatio=parseFloat(point.substr(1)),value=currentHeight*minRatio;return{value:value,point:point}}return{value:point,point:point}});points.sort((a,b)=>
vendor: 5,996 bytes, line 6995
6995parseInt(a.value,10)-parseInt(b.value,10));for(let i=0;i<points.length;i+=1){const{point:point,value:value}=points[i];"window"===base?window.matchMedia(`(min-width: ${value}px)`).matches&&(breakpoint=point):value<=containerEl.clientWidth&&(breakpoint=point)}return breakpoint||"max"}var breakpoints,classes;function prepareClasses(entries,prefix){const resultClasses=[];return entries.forEach(item=>{"object"==typeof item?Object.keys(item).forEach(classNames=>{item[classNames]&&resultClasses.push(prefix+classNames)}):"string"==typeof item&&resultClasses.push(prefix+item)}),resultClasses}function addClasses(){const swiper=this,{classNames:classNames,params:params,rtl:rtl,el:el,device:device}=this,suffixes=prepareClasses(["initialized",params.direction,{"free-mode":this.params.freeMode&&params.freeMode.enabled},{autoheight:params.autoHeight},{rtl:rtl},{grid:params.grid&&params.grid.rows>1},{"grid-column":params.grid&&params.grid.rows>1&&"column"===params.grid.fill},{android:device.android},{ios:device.ios},{"css-mode":params.cssMode},{centered:params.cssMode&&params.centeredSlides},{"watch-progress":params.watchSlidesProgress}],params.containerModifierClass);classNames.push(...suffixes),el.classList.add(...classNames),this.emitContainerClasses()}function removeClasses(){const swiper=this,{el:el,classNames:classNames}=this;el.classList.remove(...classNames),this.emitContainerClasses()}function checkOverflow(){const swiper=this,{isLocked:wasLocked,params:params}=swiper,{slidesOffsetBefore:slidesOffsetBefore}=params;if(slidesOffsetBefore){const lastSlideIndex=swiper.slides.length-1,lastSlideRightEdge=swiper.slidesGrid[lastSlideIndex]+swiper.slidesSizesGrid[lastSlideIndex]+2*slidesOffsetBefore;swiper.isLocked=swiper.size>lastSlideRightEdge}else swiper.isLocked=1===swiper.snapGrid.length;!0===params.allowSlideNext&&(swiper.allowSlideNext=!swiper.isLocked),!0===params.allowSlidePrev&&(swiper.allowSlidePrev=!swiper.isLocked),wasLocked&&wasLocked!==swiper.isLocked&&(swiper.isEnd=!1),wasLocked!==swiper.isLocked&&swiper.emit(swiper.isLocked?"lock":"unlock")}var checkOverflow$1,defaults={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",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:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function moduleExtendParams(params,allModulesParams){return function extendParams(obj){void 0===obj&&(obj={});const moduleParamName=Object.keys(obj)[0],moduleParams=obj[moduleParamName];"object"==typeof moduleParams&&null!==moduleParams?(!0===params[moduleParamName]&&(params[moduleParamName]={enabled:!0}),"navigation"===moduleParamName&&params[moduleParamName]&&params[moduleParamName].enabled&&!params[moduleParamName].prevEl&&!params[moduleParamName].nextEl&&(params[moduleParamName].auto=!0),["pagination","scrollbar"].indexOf(moduleParamName)>=0&&params[moduleParamName]&&params[moduleParamName].enabled&&!params[moduleParamName].el&&(params[moduleParamName].auto=!0),moduleParamName in params&&"enabled"in moduleParams?("object"!=typeof params[moduleParamName]||"enabled"in params[moduleParamName]||(params[moduleParamName].enabled=!0),params[moduleParamName]||(params[moduleParamName]={enabled:!1}),extend(allModulesParams,obj)):extend(allModulesParams,obj)):extend(allModulesParams,obj)}}const prototypes={eventsEmitter:eventsEmitter,update:{updateSize:updateSize,updateSlides:updateSlides,updateAutoHeight:updateAutoHeight,updateSlidesOffset:updateSlidesOffset,updateSlidesProgress:updateSlidesProgress,updateProgress:updateProgress,updateSlidesClasses:updateSlidesClasses,updateActiveIndex:updateActiveIndex,updateClickedSlide:updateClickedSlide},translate:{getTranslate:getSwiperTranslate,setTranslate:setTranslate,minTranslate:minTranslate,maxTranslate:maxTranslate,translateTo:translateTo},transition:{setTransition:setTransition,transitionStart:transitionStart,transitionEnd:transitionEnd},slide:{slideTo:slideTo,slideToLoop:slideToLoop,slideNext:slideNext,slidePrev:slidePrev,slideReset:slideReset,slideToClosest:slideToClosest,slideToClickedSlide:slideToClickedSlide},loop:{loopCreate:loopCreate,loopFix:loopFix,loopDestroy:loopDestroy},grabCursor:{setGrabCursor:setGrabCursor,unsetGrabCursor:unsetGrabCursor},events:{attachEvents:attachEvents,detachEvents:detachEvents}
6995,breakpoints:{setBreakpoint:setBreakpoint,getBreakpoint:getBreakpoint},checkOverflow:{checkOverflow:checkOverflow},classes:{addClasses:addClasses,removeClasses:removeClasses}},extendedDefaults={};class Swiper{constructor(){let el,params;for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];1===args.length&&args[0].constructor&&"Object"===Object.prototype.toString.call(args[0]).slice(8,-1)?params=args[0]:[el,params]=args,params||(params={}),params=extend({},params),el&&!params.el&&(params.el=el);const document=getDocument();if(params.el&&"string"==typeof params.el&&document.querySelectorAll(params.el).length>1){const swipers=[];return document.querySelectorAll(params.el).forEach(containerEl=>{const newParams=extend({},params,{el:containerEl});swipers.push(new Swiper(newParams))}),swipers}const swiper=this;swiper.__swiper__=!0,swiper.support=getSupport(),swiper.device=getDevice({userAgent:params.userAgent}),swiper.browser=getBrowser(),swiper.eventsListeners={},swiper.eventsAnyListeners=[],swiper.modules=[...swiper.__modules__],params.modules&&Array.isArray(params.modules)&&swiper.modules.push(...params.modules);const allModulesParams={};swiper.modules.forEach(mod=>{mod({params:params,swiper:swiper,extendParams:moduleExtendParams(params,allModulesParams),on:swiper.on.bind(swiper),once:swiper.once.bind(swiper),off:swiper.off.bind(swiper),emit:swiper.emit.bind(swiper)})});const swiperParams=extend({},defaults,allModulesParams);return swiper.params=extend({},swiperParams,extendedDefaults,params),swiper.originalParams=extend({},swiper.params),swiper.passedParams=extend({},params),swiper.params&&swiper.params.on&&Object.keys(swiper.params.on).forEac
vendor: 3,191 bytes, line 6995
6995h(eventName=>{swiper.on(eventName,swiper.params.on[eventName])}),swiper.params&&swiper.params.onAny&&swiper.onAny(swiper.params.onAny),Object.assign(swiper,{enabled:swiper.params.enabled,el:el,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===swiper.params.direction,isVertical:()=>"vertical"===swiper.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:swiper.params.allowSlideNext,allowSlidePrev:swiper.params.allowSlidePrev,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:swiper.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:swiper.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),swiper.emit("_swiper"),swiper.params.init&&swiper.init(),swiper}getDirectionLabel(property){return this.isHorizontal()?property:{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"}[property]}getSlideIndex(slideEl){const{slidesEl:slidesEl,params:params}=this,slides=elementChildren(slidesEl,`.${params.slideClass}, swiper-slide`),firstSlideIndex=elementIndex(slides[0]);return elementIndex(slideEl)-firstSlideIndex}getSlideIndexByData(index){return this.getSlideIndex(this.slides.filter(slideEl=>1*slideEl.getAttribute("data-swiper-slide-index")===index)[0])}recalcSlides(){const swiper=this,{slidesEl:slidesEl,params:params}=this;this.slides=elementChildren(slidesEl,`.${params.slideClass}, swiper-slide`)}enable(){const swiper=this;swiper.enabled||(swiper.enabled=!0,swiper.params.grabCursor&&swiper.setGrabCursor(),swiper.emit("enable"))}disable(){const swiper=this;swiper.enabled&&(swiper.enabled=!1,swiper.params.grabCursor&&swiper.unsetGrabCursor(),swiper.emit("disable"))}setProgress(progress,speed){const swiper=this;progress=Math.min(Math.max(progress,0),1);const min=this.minTranslate(),max=this.maxTranslate(),current=(max-min)*progress+min;this.translateTo(current,void 0===speed?0:speed),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){const swiper=this;if(!swiper.params._emitClasses||!swiper.el)return;const cls=swiper.el.className.split(" ").filter(className=>0===className.indexOf("swiper")||0===className.indexOf(swiper.params.containerModifierClass));swiper.emit("_containerClasses",cls.join(" "))}getSlideClasses(slideEl){const swiper=this;return swiper.destroyed?"":slideEl.className.split(" ").filter(className=>0===className.indexOf("swiper-slide")||0===className.indexOf(swiper.params.slideClass)).join(" ")}emitSlidesClasses(){const swiper=this;if(!swiper.params._emitClasses||!swiper.el)return;const updates=[];
6995swiper.slides.forEach(slideEl=>{const classNames=swiper.getSlideClasses(slideEl);updates.push({slideEl:slideEl,classNames:classNames}),swiper.emit("_slideClass",slideEl,classNames)}),swiper.emit("_slideClasses",updates)}slidesPerViewDynamic(view,exact){void 0===view&&(view="current"),void 0===exact&&(exact=!1);const swiper=this,{params:params,slides:slides,slidesGrid:slidesGrid,slidesSizesGrid:slidesSizesGrid,size:swiperSize,activeIndex:activeIndex}=this;let spv=1;if("number"==typeof params.slidesPerView)return params.slidesPerView;if(params.centeredSlides){let slideSize=slides[activeIndex]?slides[activeIndex].swiperSlideSize:0,breakLoop;for(let i=activeIndex+1;i<slides.length;i+=1)slides[i]&&!breakLoop&&(slideSize+=slides[i].swiperSlideSize,spv+=1,slideSize>swiperSize&&(breakLoop=!0));for(let i=activeIndex-1;i>=0;i-=1)slides[i]&&!breakLoop&&(slideSize+=slides[i].swiperSlideSize,spv+=1,slideSize>swiperSize&&(breakLoop=!0))}else if("current"===view)for(let i=activeIndex+1;i<slides.length;i+=1){const slideInView=exact?slidesGrid[i]+slidesSizesGrid[i]-slidesGrid[activeIndex]<swiperSize:slidesGrid[i]-slidesGrid[activeIndex]<swiperSize;slideInView&&(spv+=1)}else for(let i=activeIndex-1;i>=0;i-=1){const slideInView=slidesGrid[activeIndex]-slidesGrid[i]<swiperSize;slideInView&&(spv+=1)}return spv}update(){const swiper=this;if(!swiper||swiper.destroyed)return;const{snapGrid:snapGrid,params:params}=swiper;function setTranslate(){const translateValue=swiper.rtlTranslate?-1*swiper.translate:swiper.translate,newTranslate=Math.min(Math.max(translateValue,swiper.maxTranslate()),swiper.minTranslate());swiper.setTranslate(newTranslate),swiper.updateActiveIndex(),swiper.updateSlidesClasses()}let translated;if(params.breakpoints&&swiper.setBreakpoint(),[...swiper.el.querySelectorAll('[loading="lazy"]')].forEach(imageEl=>{imageEl.complete&&processLazyPreloader(swiper,imageEl)}),swiper.updateSize(),swiper.updateSlides(),swiper.updateProgress(),swiper.updateSlidesClasses(),params.freeMode&&params.freeMode.enabled&&!params.cssMode)setTranslate(),params.autoHeight&&swiper.updateAutoHeight();else{if(("auto"===params.slidesPerView||params.slidesPerView>1)&&swiper.isEnd&&!params.centeredSlides){const slides=swiper.virtual&&params.virtual.enabled?swiper.virtual.slides:swiper.slides;translated=swiper.slideTo(slides.length-1,0,!1,!0)}else translated=swiper.slideTo(swiper.activeIndex,0,!1,!0);translated||setTranslate()}params.watchOverflow&&snapGrid!==swiper.snapGrid&&swiper.checkOverflow(),swiper.emit("update")}changeDirection(newDirection,needUpdate){void 0===needUpdate&&(needUpdate=!0);const swiper=this,currentDirection=swiper.params.direction;return newDirection||(newDirection="horizontal"===currentDirection?"vertical":"horizontal"),newDirection===currentDirection||"horizontal"!==newDirection&&"vertical"!==newDirection?swiper:(swiper.el.classList.remove(`${swiper.params.containerModifierClass}${currentDirection}`),swiper.el.classList.add(`${swiper.params.containerModifierClass}${newDirection}`),swiper.emitContainerClasses(),swiper.params.direction=newDirection,swiper.slides.forEach(sli
6995deEl=>{"vertical"===newDirection?slideEl.style.width="":slideEl.style.height=""}),swiper.emit("changeDirection"),needUpdate&&swiper.update(),swiper)}changeLanguageDirection(direction){const swiper=this;swiper.rtl&&"rtl"===direction||!swiper.rtl&&"ltr"===direction||(swiper.rtl="rtl"===direction,swiper.rtlTranslate="horizontal"===swiper.params.direction&&swiper.rtl,swiper.rtl?(swiper.el.classList.add(`${swiper.params.containerModifierClass}rtl`),swiper.el.dir="rtl"):(swiper.el.classList.remove(`${swiper.params.containerModifierClass}rtl`),swiper.el.dir="ltr"),swiper.update())}mount(element){const swiper=this;if(swiper.mounted)return!0;let el=element||swiper.params.el;if("string"==typeof el&&(el=document.querySelector(el)),!el)return!1;el.swiper=swiper,el.parentNode&&el.parentNode.host&&"SWIPER-CONTAINER"===el.parentNode.host.nodeName&&(swiper.isElement=!0);const getWrapperSelector=()=>`.${(swiper.params.wrapperClass||"").trim().split(" ").join(".")}`,getWrapper=()=>{if(el&&el.shadowRoot&&el.shadowRoot.querySelector){const res=el.shadowRoot.querySelector(getWrapperSelector());return res}return elementChildren(el,getWrapperSelector())[0]};let wrapperEl=getWrapper();return!wrapperEl&&swiper.params.createElements&&(wrapperEl=createElement("div",swiper.params.wrapperClass),el.append(wrapperEl),elementChildren(el,`.${swiper.params.slideClass}
6995`).forEach(slideEl=>{wrapperEl.append(slideEl)})),Object.assign(swiper,{el:el,wrapperEl:wrapperEl,slidesEl:swiper.isElement&&!el.parentNode.host.slideSlots?el.parentNode.host:wrapperEl,hostEl:swiper.isElement?el.parentNode.host:el,mounted:!0,rtl:"rtl"===el.dir.toLowerCase()||"rtl"===elementStyle(el,"direction"),rtlTranslate:"horizontal"===swiper.params.direction&&("rtl"===el.dir.toLowerCase()||"rtl"===elementStyle(el,"direction")),wrongRTL:"-webkit-box"===elementStyle(wrapperEl,"display")}),!0}init(el){const swiper=this;if(swiper.initialized)return swiper;const mounted=swiper.mount(el);if(!1===mounted)return swiper;swiper.emit("beforeInit"),swiper.params.breakpoints&&swiper.setBreakpoint(),swiper.addClasses(),swiper.updateSize(),swiper.updateSlides(),swiper.params.watchOverflow&&swiper.checkOverflow(),swiper.params.grabCursor&&swiper.enabled&&swiper.setGrabCursor(),swiper.params.loop&&swiper.virtual&&swiper.params.virtual.enabled?swiper.slideTo(swiper.params.initialSlide+swiper.virtual.slidesBefore,0,swiper.params.runCallbacksOnInit,!1,!0):swiper.slideTo(swiper.params.initialSlide,0,swiper.params.runCallbacksOnInit,!1,!0),swiper.params.loop&&swiper.loopCreate(),swiper.attachEvents();const lazyElements=[...swiper.el.querySelectorAll('[loading="lazy"]')];return swiper.isElement&&lazyElements.push(...swiper.hostEl.querySelectorAll('[loading="lazy"]')),lazyElements.forEach(imageEl=>{imageEl.complete?processLazyPreloader(swiper,imageEl):imageEl.addEventListener("load",e=>{processLazyPreloader(swiper,e.target)})}),preload(swiper),swiper.initialized=!0,preload(swiper),swiper.emit("init"),swiper.emit("afterInit"),swiper}destroy(deleteInstance,cleanStyles){void 0===deleteInstance&&(deleteInstance=!0),void 0===cleanStyles&&(cleanStyles=!0);const swiper=this,{params:params,el:el,wrapperEl:wrapperEl,slides:slides}=swiper;return void 0===swiper.params||swiper.destroyed?null:(swiper.emit("beforeDestroy"),swiper.initialized=!1,swiper.detachEvents(),params.loop&&swiper.loopDestroy(),cleanStyles&&(swiper.removeClasses(),el.removeAttribute("style"),wrapperEl.removeAttribute("style"),slides&&slides.length&&slides.forEach(sli
vendor: 8,780 bytes, line 6995
6995deEl=>{slideEl.classList.remove(params.slideVisibleClass,params.slideFullyVisibleClass,params.slideActiveClass,params.slideNextClass,params.slidePrevClass),slideEl.removeAttribute("style"),slideEl.removeAttribute("data-swiper-slide-index")})),swiper.emit("destroy"),Object.keys(swiper.eventsListeners).forEach(eventName=>{swiper.off(eventName)}),!1!==deleteInstance&&(swiper.el.swiper=null,deleteProps(swiper)),swiper.destroyed=!0,null)}static extendDefaults(newDefaults){extend(extendedDefaults,newDefaults)}static get extendedDefaults(){return extendedDefaults}static get defaults(){return defaults}static installModule(mod){Swiper.prototype.__modules__||(Swiper.prototype.__modules__=[]);const modules=Swiper.prototype.__modules__;"function"==typeof mod&&modules.indexOf(mod)<0&&modules.push(mod)}static use(module){return Array.isArray(module)?(module.forEach(m=>Swiper.installModule(m)),Swiper):(Swiper.installModule(module),Swiper)}}function Keyboard(_ref){let{swiper:swiper,extendParams:extendParams,on:on,emit:emit}=_ref;const document=getDocument(),window=getWindow();function handle(event){if(!swiper.enabled)return;const{rtlTranslate:rtl}=swiper;let e=event;e.originalEvent&&(e=e.originalEvent);const kc=e.keyCode||e.charCode,pageUpDown=swiper.params.keyboard.pageUpDown,isPageUp=pageUpDown&&33===kc,isPageDown=pageUpDown&&34===kc,isArrowLeft=37===kc,isArrowRight=39===kc,isArrowUp=38===kc,isArrowDown=40===kc;if(!swiper.allowSlideNext&&(swiper.isHorizontal()&&isArrowRight||swiper.isVertical()&&isArrowDown||isPageDown))return!1;if(!swiper.allowSlidePrev&&(swiper.isHorizontal()&&isArrowLeft||swiper.isVertical()&&isArrowUp||isPageUp))return!1;if(!(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey||document.activeElement&&document.activeElement.nodeName&&("input"===document.activeElement.nodeName.toLowerCase()||"textarea"===document.activeElement.nodeName.toLowerCase()))){if(swiper.params.keyboard.onlyInViewport&&(isPageUp||isPageDown||isArrowLeft||isArrowRight||isArrowUp||isArrowDown)){let inView=!1;if(elementParents(swiper.el,`.${swiper.params.slideClass}, swiper-slide`).length>0&&0===elementParents(swiper.el,`.${swiper.params.slideActiveClass}`).length)return;const el=swiper.el,swiperWidth=el.clientWidth,swiperHeight=el.clientHeight,windowWidth=window.innerWidth,windowHeight=window.innerHeight,swiperOffset=elementOffset(el);rtl&&(swiperOffset.left-=el.scrollLeft);const swiperCoord=[[swiperOffset.left,swiperOffset.top],[swiperOffset.left+swiperWidth,swiperOffset.top],[swiperOffset.left,swiperOffset.top+swiperHeight],[swiperOffset.left+swiperWidth,swiperOffset.top+swiperHeight]];for(let i=0;i<swiperCoord.length;i+=1){const point=swiperCoord[i];if(point[0]>=0&&point[0]<=windowWidth&&point[1]>=0&&point[1]<=windowHeight){if(0===point[0]&&0===point[1])continue;inView=!0}}if(!inView)return}swiper.isHorizontal()?((isPageUp||isPageDown||isArrowLeft||isArrowRight)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),((isPageDown||isArrowRight)&&!rtl||(isPageUp||isArrowLeft)&&rtl)&&swiper.slideNext(),((isPageUp||isArrowLeft)&&!rtl||(isPageDown||isArrowRight)&&rtl)&&swiper.slidePrev()):((isPageUp||isPageDown||isArrowUp||isArrowDown)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),(isPageDown||isArrowDown)&&swiper.slideNext(),(isPageUp||isArrowUp)&&swiper.slidePrev()),emit("keyPress",kc)}}function enable(){swiper.keyboard.enabled||(document.addEventListener("keydown",handle),swiper.keyboard.enabled=!0)}function disable(){swiper.keyboard.enabled&&(document.removeEventListener("keydown",handle),swiper.keyboard.enabled=!1)}swiper.keyboard={enabled:!1},extendParams({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),on("init",()=>{swiper.params.keyboard.enabled&&enable()}),on("destroy",()=>{swiper.keyboard.enabled&&disable()}),Object.assign(swiper.keyboard,{enable:enable,disable:disable})}function Mousewheel(_ref){let{swiper:swiper,extendParams:extendParams,on:on,emit:emit}=_ref;const window=getWindow();let timeout;extendParams({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),swiper.mousewheel={enabled:!1};let lastScrollTime=now(),lastEventBeforeSnap;const recentWheelEvents=[];function normalize(e){const PIXEL_STEP=10,LINE_HEIGHT=40,PAGE_HEIGHT=800;let sX=0,sY=0,pX=0,pY=0;return"detail"in e&&(sY=e.detail),"wheelDelta"in e&&(sY=-e.wheelDelta/120),"wheelDeltaY"in e&&(sY=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(sX=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(sX=sY,sY=0),pX=10*sX,pY=10*sY,"deltaY"in e&&(pY=e.deltaY),"deltaX"in e&&(pX=e.deltaX),e.shiftKey&&!pX&&(pX=pY,pY=0),(pX||pY)&&e.deltaMode&&(1===e.deltaMode?(pX*=40,pY*=40):(pX*=800,pY*=800)),pX&&!sX&&(sX=pX<1?-1:1),pY&&!sY&&(sY=pY<1?-1:1),{spinX:sX,spinY:sY,pixelX:pX,pixelY:pY}}function handleMouseEnter(){swiper.enabled&&(swiper.mouseEntered=!0)}function handleMouseLeave(){swiper.enabled&&(swiper.mouseEntered=!1)}function animateSlider(newEvent){return!(swiper.params.mousewheel.thresholdDelta&&newEvent.delta<swiper.params.mousewheel.thresholdDelta)&&(!(swiper.params.mousewheel.thresholdTime&&now()-lastScrollTime<swiper.params.mousewheel.thresholdTime)&&(newEvent.delta>=6&&now()-lastScrollTime<60||(newEvent.direction<0?swiper.isEnd&&!swiper.params.loop||swiper.animating||(swiper.slideNext(),emit("scroll",newEvent.raw)):swiper.isBeginning&&!swiper.params.loop||swiper.animating||(swiper.slidePrev(),emit("scroll",newEvent.raw)),lastScrollTime=(new window.Date).getTime(),!1)))}function releaseScroll(newEvent){const params=swiper.params.mousewheel;if(newEvent.direction<0){if(swiper.isEnd&&!swiper.params.loop&&params.releaseOnEdges)return!0}else if(swiper.isBeginning&&!swiper.params.loop&&params.releaseOnEdges)return!0;return!1}function handle(event){let e=event,disableParentSwiper=!0;if(!swiper.enabled)return;if(event.target.closest(`.${swiper.params.mousewheel.noMousewheelClass}`))return;const params=swiper.params.mousewheel;swiper.params.cssMode&&e.preventDefault();let targetEl=swiper.el;"container"!==swiper.params.mousewheel.eventsTarget&&(targetEl=document.querySelector(swiper.params.mousewheel.eventsTarget));const targetElContainsTarget=targetEl&&targetEl.contains(e.target);if(!swiper.mouseEntered&&!targetElContainsTarget&&!params.releaseOnEdges)return!0;e.originalEvent&&(e=e.originalEvent);let delta=0;const rtlFactor=swiper.rtlTranslate?-1:1,data=normalize(e);if(params.forceToAxis)if(swiper.isHorizontal()){if(!(Math.abs(data.pixelX)>Math.abs(data.pixelY)))return!0;delta=-data.pixelX*rtlFactor}else{if(!(Math.abs(data.pixelY)>Math.abs(data.pixelX)))return!0;delta=-data.pixelY}else delta=Math.abs(data.pixelX)>Math.abs(data.pixelY)?-data.pixelX*rtlFactor:-data.pixelY;if(0===delta)return!0;params.invert&&(delta=-delta);let positions=swiper.getTranslate()+delta*params.sensitivity;if(positions>=swiper.minTranslate()&&(positions=swiper.minTranslate()),positions<=swiper.maxTranslate()&&(positions=swiper.maxTranslate()),disableParentSwiper=!!swiper.params.loop||!(positions===swiper.minTranslate()||positions===swiper.maxTranslate()),disableParentSwiper&&swiper.params.nested&&e.stopPropagation(),swiper.params.freeMode&&swiper.params.freeMode.enabled){const newEvent={time:now(),delta:Math.abs(delta),direction:Math.sign(delta)},ignoreWheelEvents=lastEventBeforeSnap&&newEvent.time<lastEventBeforeSnap.time+500&&newEvent.delta<=lastEventBeforeSnap.delta&&newEvent.direction===lastEventBeforeSnap.direction;if(!ignoreWheelEvents){lastEventBeforeSnap=void 0;let position=swiper.getTranslate()+delta*params.sensitivity;const wasBeginning=swiper.isBeginning,wasEnd=swiper.isEnd;if(position>=swiper.minTranslate()&&(position=swiper.minTranslate()),position<=swiper.maxTranslate()&&(position=swiper.maxTranslate()),swiper.setTransition(0),swiper.setTranslate(position),swiper.updateProgress(),swiper.updateActiveIndex(),swiper.updateSlidesClasses(),(!wasBeginning&&swiper.isBeginning||!wasEnd&&swiper.isEnd)&&swiper.updateSlidesClasses(),swiper.params.loop&&swiper.loopFix({direction:newEvent.direction<0?"next":"prev",byMousewheel:!0}),swiper.params.freeMode.sticky){clearTimeout(timeout),timeout=void 0,recentWheelEvents.length>=15&&recentWheelEvents.shift();const prevEvent=recentWheelEvents.length?recentWheelEvents[recentWheelEvents.length-1]:void 0,firstEvent=recentWheelEvents[0];if(recentWheelEvents.push(newEvent),prevEvent&&(newEvent.delta>prevEvent.delta||newEvent.direction!==prevEvent.direction))recentWheelEvents.splice(0);else if(recentWheelEvents.length>=15&&newEvent.time-firstEvent.time<500&&firstEvent.delta-newEvent.delta>=1&&newEvent.delta<=6){const snapToThreshold=delta>0?.8:.2;lastEventBeforeSnap=newEvent,recentWheelEvents.splice(0),timeout=nextTick(()=>
6995{swiper.slideToClosest(swiper.params.speed,!0,void 0,snapToThreshold)},0)}timeout||(timeout=nextTick(()=>{const snapToThreshold=.5;lastEventBeforeSnap=newEvent,recentWheelEvents.splice(0),swiper.slideToClosest(swiper.params.speed,!0,void 0,.5)},500))}if(ignoreWheelEvents||emit("scroll",e),swiper.params.autoplay&&swiper.params.autoplayDisableOnInteraction&&swiper.autoplay.stop(),params.releaseOnEdges&&(position===swiper.minTranslate()||position===swiper.maxTranslate()))return!0}}else{const newEvent={time:now(),delta:Math.abs(delta),direction:Math.sign(delta),raw:event};recentWheelEvents.length>=2&&recentWheelEvents.shift();const prevEvent=recentWheelEvents.length?recentWheelEvents[recentWheelEvents.length-1]:void 0;if(recentWheelEvents.push(newEvent),prevEvent?(newEvent.direction!==prevEvent.direction||newEvent.delta>prevEvent.delta||newEvent.time>prevEvent.time+150)&&animateSlider(newEvent):animateSlider(newEvent),releaseScroll(newEvent))return!0}return e.preventDefault?e.preventDefault():e.returnValue=!1,!1}function events(method){let targetEl=swiper.el;"container"!==swiper.params.mousewheel.eventsTarget&&(targetEl=document.querySelector(swiper.params.mousewheel.eventsTarget)),targetEl[method]("mouseenter",handleMouseEnter),targetEl[method]("mouseleave",handleMouseLeave),targetEl[method]("wheel",handle)}function enable(){return swiper.params.cssMode?(swiper.wrapperEl.removeEventListener("wheel",handle),!0):!swiper.mousewheel.enabled&&(events("addEventListener"),swiper.mousewheel.enabled=!0,!0)}function disable(){return swiper.params.cssMode?(swiper.wrapperEl.addEventListener(event,handle),!0):!!swiper.mousewheel.enabled&&(events("removeEventListener"),swiper.mousewheel.enabled=!1,!0)}on("init",()=>{!swiper.params.mousewheel.enabled&&swiper.params.cssMode&&disable(),swiper.params.mousewheel.enabled&&enable()}),on("destroy",()=>{swiper.params.cssMode&&enable(),swiper.mousewheel.enabled&&disable()}),Object.assign(swiper.mousewheel,{enable:enable,disable:disable})}function createElementIfNotDefined(swiper,originalParams,params,checkProps){return swiper.params.createElements&&Object.keys(checkProps).forEach(key=>{if(!params[key]&&!0===params.auto){let element=elementChildren(swiper.el,`.${checkProps[key]}`)[0];element||(element=createElement("div",checkProps[key]),element.className=checkProps[key],swiper.el.append(element)),params[key]=element,originalParams[key]=element}}),params}function Navigation(_ref){let{swiper:swiper,extendParams:extendParams,on:on,emit:emit}=_ref;extendParams({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),swiper.navigation={nextEl:null,prevEl:null};const makeElementsArray=el=>(Array.isArray(el)?el:[el]).filter(e=>!!e);function getEl(el){let res;return el&&"string"==typeof el&&swiper.isElement&&(res=swiper.el.querySelector(el),res)?res:(el&&("string"==typeof el&&(res=[...document.querySelectorAll(el)]),swiper.params.uniqueNavElements&&"string"==typeof el&&res.length>1&&1===swiper.el.querySelectorAll(el).length&&(res=swiper.el.querySelector(el))),el&&!res?el:res)}function toggleEl(el,disabled){const params=swiper.params.navigation;(el=makeElementsArray(el)).forEach(subEl=>{subEl&&(subEl.classList[disabled?"add":"remove"](...params.disabledClass.split(" ")),"BUTTON"===subEl.tagName&&(subEl.disabled=disabled),swiper.params.watchOverflow&&swiper.enabled&&subEl.classList[swiper.isLocked?"add":"remove"](params.lockClass))})}function update(){const{nextEl:nextEl,prevEl:prevEl}=swiper.navigation;if(swiper.params.loop)return toggleEl(prevEl,!1),void toggleEl(nextEl,!1);toggleEl(prevEl,swiper.isBeginning&&!swiper.params.rewind),toggleEl(nextEl,swiper.isEnd&&!swiper.params.rewind)}function onPrevClick(e){e.preventDefault(),(!swiper.isBeginning||swiper.params.loop||swiper.params.rewind)&&(swiper.slidePrev(),emit("navigationPrev"))}function onNextClick(e){e.preventDefault(),(!swiper.isEnd||swiper.params.loop||swiper.params.rewind)&&(swiper.slideNext(),emit("navigationNext"))}
6995function init(){const params=swiper.params.navigation;if(swiper.params.navigation=createElementIfNotDefined(swiper,swiper.originalParams.navigation,swiper.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!params.nextEl&&!params.prevEl)return;let nextEl=getEl(params.nextEl),prevEl=getEl(params.prevEl);Object.assign(swiper.navigation,{nextEl:nextEl,prevEl:prevEl}),nextEl=makeElementsArray(nextEl),prevEl=makeElementsArray(prevEl);const initButton=(el,dir)=>{el&&el.addEventListener("click","next"===dir?onNextClick:onPrevClick),!swiper.enabled&&el&&el.classList.add(...params.lockClass.split(" "))};nextEl.forEach(el=>initButton(el,"next")),prevEl.forEach(el=>initButton(el,"prev"))}function destroy(){let{nextEl:nextEl,prevEl:prevEl}=swiper.navigation;nextEl=makeElementsArray(nextEl),prevEl=makeElementsArray(prevEl);const destroyButton=(el,dir)=>{el.removeEventListener("click","next"===dir?onNextClick:onPrevClick),el.classList.remove(...swiper.params.navigation.disabledClass.split(" "))};nextEl.forEach(el=>destroyButton(el,"next")),prevEl.forEach(el=>destroyButton(el,"prev"))}on("init",()=>{!1===swiper.params.navigation.enabled?disable():(init(),update())}),on("toEdge fromEdge lock unlock",()=>{update()}),on("destroy",()=>{destroy()}),on("enable disable",()=>{let{nextEl:nextEl,prevEl:prevEl}=swiper.navigation;nextEl=makeElementsArray(nextEl),prevEl=makeElementsArray(prevEl),swiper.enabled?update():[...nextEl,...prevEl].filter(el=>!!el).forEach(el=>el.classList.add(swiper.params.navigation.lockClass))}),on("click",(_s,e)=>{let{nextEl:nextEl,prevEl:prevEl}=swiper.navigation;nextEl=makeElementsArray(nextEl),prevEl=makeElementsArray(prevEl);const targetEl=e.target;if(swiper.params.navigation.hideOnClick&&!prevEl.includes(targetEl)&&!nextEl.includes(targetEl)){if(swiper.pagination&&swiper.params.pagination&&swiper.params.pagination.clickable&&(swiper.pagination.el===targetEl||swiper.pagination.el.contains(targetEl)))return;let isHidden;nextEl.length?isHidden=nextEl[0].classList.contains(swiper.params.navigation.hiddenClass):prevEl.length&&(isHidden=prevEl[0].classList.contains(swiper.params.navigation.hiddenClass)),emit(!0===isHidden?"navigationShow":"navigationHide"),[...nextEl,...prevEl].filter(el=>!!el).forEach(el=>el.classList.toggle(swiper.params.navigation.hiddenClass))}});const enable=()=>{swiper.el.classList.remove(...swiper.params.navigation.navigationDisabledClass.split(" ")),init(),update()},disable=()=>{swiper.el.classList.add(...swiper.params.navigation.navigationDisabledClass.split(" ")),destroy()};Object.assign(swiper.navigation,{enable:enable,disable:disable,update:update,init:init,destroy:destroy})}function classesToSelector(classes){return void 0===classes&&(classes=""),`.${classes.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Pagination(_ref){let{swiper:swiper,extendParams:extendParams,on:on,emit:emit}=_ref;const pfx="swiper-pagination";let bulletSize;extendParams({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:number=>number,formatFractionTotal:number=>number,bulletClass:`${pfx}-bullet`,bulletActiveClass:`${pfx}-bullet-active`,modifierClass:`${pfx}-`,currentClass:`${pfx}-current`,totalClass:`${pfx}-total`,hiddenClass:`${pfx}-hidden`,progressbarFillClass:`${pfx}-progressbar-fill`,progressbarOppositeClass:`${pfx}-progressbar-opposite`,clickableClass:`${pfx}-clickable`,lockClass:`${pfx}-lock`,horizontalClass:`${pfx}-horizontal`,verticalClass:`${pfx}-vertical`,paginationDisabledClass:`${pfx}-disabled`}}),swiper.pagination={el:null,bullets:[]};let dynamicBulletIndex=0;const makeElementsArray=el=>(Array.isArray(el)?el:[el]).filter(e=>!!e);function isPaginationDisabled(){return!swiper.params.pagination.el||!swiper.pagination.el||Array.isArray(swiper.pagination.el)&&0===swiper.pagination.el.length}function setSideBullets(bulletEl,position){const{bulletActiveClass:bulletActiveClass}=swiper.params.pagination;bulletEl&&(bulletEl=bulletEl[`${"prev"===position?"previous":"next"}ElementSibling`])&&(bulletEl.classList.add(`${bulletActiveClass}-${position}`),(bulletEl=bulletEl[`${"prev"===position?"previous":"next"}ElementSibling`])&&bulletEl.classList.add(`${bulletActiveClass}-${position}-${position}`))}function onBulletClick(e){const bulletEl=e.target.closest(classesToSelector(swiper.params.pagination.bulletClass));if(!bulletEl)return;e.preventDefault();const index=elementIndex(bulletEl)*swiper.params.slidesPerGroup;if(swiper.params.loop){if(swiper.realIndex===index)return;swiper.slideToLoop(index)}else swiper.slideTo(index)}
6995function update(){const rtl=swiper.rtl,params=swiper.params.pagination;if(isPaginationDisabled())return;let el=swiper.pagination.el,current,previousIndex;el=makeElementsArray(el);const slidesLength=swiper.virtual&&swiper.params.virtual.enabled?swiper.virtual.slides.length:swiper.slides.length,total=swiper.params.loop?Math.ceil(slidesLength/swiper.params.slidesPerGroup):swiper.snapGrid.length;if(swiper.params.loop?(previousIndex=swiper.previousRealIndex||0,current=swiper.params.slidesPerGroup>1?Math.floor(swiper.realIndex/swiper.params.slidesPerGroup):swiper.realIndex):void 0!==swiper.snapIndex?(current=swiper.snapIndex,previousIndex=swiper.previousSnapIndex):(previousIndex=swiper.previousIndex||0,current=swiper.activeIndex||0),"bullets"===params.type&&swiper.pagination.bullets&&swiper.pagination.bullets.length>0){const bullets=swiper.pagination.bullets;let firstIndex,lastIndex,midIndex;if(params.dynamicBullets&&(bulletSize=elementOuterSize(bullets[0],swiper.isHorizontal()?"width":"height",!0),el.forEach(subEl=>{subEl.style[swiper.isHorizontal()?"width":"height"]=`${bulletSize*(params.dynamicMainBullets+4)}px`}),params.dynamicMainBullets>1&&void 0!==previousIndex&&(dynamicBulletIndex+=current-(previousIndex||0),dynamicBulletIndex>params.dynamicMainBullets-1?dynamicBulletIndex=params.dynamicMainBullets-1:dynamicBulletIndex<0&&(dynamicBulletIndex=0)),firstIndex=Math.max(current-dynamicBulletIndex,0),lastIndex=firstIndex+(Math.min(bullets.length,params.dynamicMainBullets)-1),midIndex=(lastIndex+firstIndex)/2),bullets.forEach(bulletEl=>{const classesToRemove=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(suffix=>`${params.bulletActiveClass}${suffix}`)].map(s=>"string"==typeof s&&s.includes(" ")?s.split(" "):s).flat();bulletEl.classList.remove(...classesToRemove)}),el.length>1)bullets.forEach(bullet=>{const bulletIndex=elementIndex(bullet);bulletIndex===current?bullet.classList.add(...params.bulletActiveClass.split(" ")):swiper.isElement&&bullet.setAttribute("part","bullet"),params.dynamicBullets&&(bulletIndex>=firstIndex&&bulletIndex<=lastIndex&&bullet.classList.add(...`${params.bulletActiveClass}-main`.split(" ")),bulletIndex===firstIndex&&setSideBullets(bullet,"prev"),bulletIndex===lastIndex&&setSideBullets(bullet,"next"))});else{const bullet=bullets[current];if(bullet&&bullet.classList.add(...params.bulletActiveClass.split(" ")),swiper.isElement&&bullets.forEach((bulletEl,bulletIndex)=>{bulletEl.setAttribute("part",bulletIndex===current?"bullet-active":"bullet")}),params.dynamicBullets){const firstDisplayedBullet=bullets[firstIndex],lastDisplayedBullet=bullets[lastIndex];for(let i=firstIndex;i<=lastIndex;i+=1)bullets[i]&&bullets[i].classList.add(...`${params.bulletActiveClass}-main`.split(" "));setSideBullets(firstDisplayedBullet,"prev"),setSideBullets(lastDisplayedBullet,"next")}}if(params.dynamicBullets){const dynamicBulletsLength=Math.min(bullets.length,params.dynamicMainBullets+4),bulletsOffset=(bulletSize*dynamicBulletsLength-bulletSize)/2-midIndex*bulletSize,offsetProp=rtl?"right":"left";bullets.forEach(bullet=>{bullet.style[swiper.isHorizontal()?offsetProp:"top"]=`${bulletsOffset}px`})}}el.forEach((subEl,subElIndex)=>{if("fraction"===params.type&&(subEl.querySelectorAll(classesToSelector(params.currentClass)).forEach(fractionEl=>{fractionEl.textContent=params.formatFractionCurrent(current+1)}),subEl.querySelectorAll(classesToSelector(params.totalClass)).forEach(totalEl=>{totalEl.textContent=params.formatFractionTotal(total)})),"progressbar"===params.type){let progressbarDirection;progressbarDirection=params.progressbarOpposite?swiper.isHorizontal()?"vertical":"horizontal":swiper.isHorizontal()?"horizontal":"vertical";const scale=(current+1)/total;let scaleX=1,scaleY=1;"horizontal"===progressbarDirection?scaleX=scale:scaleY=scale,subEl.querySelectorAll(classesToSelector(params.progressbarFillClass)).forEach(progressEl=>{progressEl.style.transform=`translate3d(0,0,0) scaleX(${scaleX}) scaleY(${scaleY})`,progressEl.style.transitionDuration=`${swiper.params.speed}ms`})}"custom"===params.type&&params.renderCustom?(subEl.innerHTML=params.renderCustom(swiper,current+1,total),0===subElIndex&&emit
6995("paginationRender",subEl)):(0===subElIndex&&emit("paginationRender",subEl),emit("paginationUpdate",subEl)),swiper.params.watchOverflow&&swiper.enabled&&subEl.classList[swiper.isLocked?"add":"remove"](params.lockClass)})}function render(){const params=swiper.params.pagination;if(isPaginationDisabled())return;const slidesLength=swiper.virtual&&swiper.params.virtual.enabled?swiper.virtual.slides.length:swiper.grid&&swiper.params.grid.rows>1?swiper.slides.length/Math.ceil(swiper.params.grid.rows):swiper.slides.length;let el=swiper.pagination.el;el=makeElementsArray(el);let paginationHTML="";if("bullets"===params.type){let numberOfBullets=swiper.params.loop?Math.ceil(slidesLength/swiper.params.slidesPerGroup):swiper.snapGrid.length;swiper.params.freeMode&&swiper.params.freeMode.enabled&&numberOfBullets>slidesLength&&(numberOfBullets=slidesLength);for(let i=0;i<numberOfBullets;i+=1)params.renderBullet?paginationHTML+=params.renderBullet.call(swiper,i,params.bulletClass):paginationHTML+=`<${params.bulletElement} ${swiper.isElement?'part="bullet"':""} class="${params.bulletClass}"></${params.bulletElement}>`}"fraction"===params.type&&(paginationHTML=params.renderFraction?params.renderFraction.call(swiper,params.currentClass,params.totalClass):`<span class="${params.currentClass}"></span>`+" / "+`<span class="${params.totalClass}"></span>`),"progressbar"===params.type&&(paginationHTML=params.renderProgressbar?params.renderProgressbar.call(swiper,params.progressbarFillClass):`<span class="${params.progressbarFillClass}"></span>`),swiper.pagination.bullets=[],el.forEach(subEl=>{"custom"!==params.type&&(subEl.innerHTML=paginationHTML||""),"bullets"===params.type&&swiper.pagination.bullets.push(...subEl.querySelectorAll(classesToSelector(params.bulletClass)))}),"custom"!==params.type&&emit("paginationRender",el[0])}function init(){swiper.params.pagination=createElementIfNotDefined(swiper,swiper.originalParams.pagination,swiper.params.pagination,{el:"swiper-pagination"});const params=swiper.params.pagination;if(!params.el)return;let el;"string"==typeof params.el&&swiper.isElement&&(el=swiper.el.querySelector(params.el)),el||"string"!=typeof params.el||(el=[...document.querySelectorAll(params.el)]),el||(el=params.el),el&&0!==el.length&&(swiper.params.uniqueNavElements&&"string"==typeof params.el&&Array.isArray(el)&&el.length>1&&(el=[...swiper.el.querySelectorAll(params.el)],el.length>1&&(el=el.filter(subEl=>elementParents(subEl,".swiper")[0]===swiper.el)[0])),Array.isArray(el)&&1===el.length&&(el=el[0]),Object.assign(swiper.pagination,{el:el}),el=makeElementsArray(el),el.forEach(subEl=>{"bullets"===params.type&&params.clickable&&subEl.classList.add(...(params.clickableClass||"").split(" ")),subEl.classList.add(params.modifierClass+params.type),subEl.classList.add(swiper.isHorizontal()?params.horizontalClass:params.verticalClass),"bullets"===params.type&&params.dynamicBullets&&(subEl.classList.add(`${params.modifierClass}${params.type}-dynamic`),dynamicBulletIndex=0,params.dynamicMainBullets<1&&(params.dynamicMainBullets=1)),"progressbar"===params.type&&params.progressbarOpposite&&subEl.classList.add(params.progressbarOppositeClass),params.clickable&&subEl.addEventListener("click",onBulletClick),swiper.enabled||subEl.classList.add(params.lockClass)}))}function destroy(){const params=swiper.params.pagination;if(isPaginationDisabled())return;let el=swiper.pagination.el;el&&(el=makeElementsArray(el),el.forEach(subEl=>{subEl.classList.remove(params.hiddenClass),subEl.classList.remove(params.modifierClass+params.type),subEl.classList.remove(swiper.isHorizontal()?params.horizontalClass:params.verticalClass),params.clickable&&(subEl.classList.remove(...(params.clickableClass||"").split(" ")),subEl.removeEventListener("click",onBulletClick))})),swiper.pagination.bullets&&swiper.pagination.bullets.forEach(subEl=>subEl.classList.remove(...params.bulletActiveClass.split(" ")))}on("changeDirection",()=>{if(!swiper.pagination||!swiper.pagination.el)return;const params=swiper.params.pagination;let{el:el}=swiper.pagination;el=makeElementsArray(el),el.forEach(subEl=>{subEl.classList.remove(params.horizontalClass,params.verticalClass),subEl.classList.add(swiper.isHorizontal()?params.horizontalClass:params.verticalClass)})}),on("init",()=>{!1===swiper.params.pagination.enabled?disable():(init(),render(),update())}),on("activeIndexChange",()=>{void 0===swiper.snapIndex&&update()}),on("snapIndexChange",()=>
6995{update()}),on("snapGridLengthChange",()=>{render(),update()}),on("destroy",()=>{destroy()}),on("enable disable",()=>{let{el:el}=swiper.pagination;el&&(el=makeElementsArray(el),el.forEach(subEl=>subEl.classList[swiper.enabled?"remove":"add"](swiper.params.pagination.lockClass)))}),on("lock unlock",()=>{update()}),on("click",(_s,e)=>{const targetEl=e.target,el=makeElementsArray(swiper.pagination.el);if(swiper.params.pagination.el&&swiper.params.pagination.hideOnClick&&el&&el.length>0&&!targetEl.classList.contains(swiper.params.pagination.bulletClass)){if(swiper.navigation&&(swiper.navigation.nextEl&&targetEl===swiper.navigation.nextEl||swiper.navigation.prevEl&&targetEl===swiper.navigation.prevEl))return;const isHidden=el[0].classList.contains(swiper.params.pagination.hiddenClass);emit(!0===isHidden?"paginationShow":"paginationHide"),el.forEach(subEl=>subEl.classList.toggle(swiper.params.pagination.hiddenClass))}});const enable=()=>{swiper.el.classList.remove(swiper.params.pagination.paginationDisabledClass);let{el:el}=swiper.pagination;el&&(el=makeElementsArray(el),el.forEach(subEl=>subEl.classList.remove(swiper.params.pagination.paginationDisabledClass))),init(),render(),update()},disable=()=>{swiper.el.classList.add(swiper.params.pagination.paginationDisabledClass);let{el:el}=swiper.pagination;el&&(el=makeElementsArray(el),el.forEach(subEl=>subEl.classList.add(swiper.params.pagination.paginationDisabledClass))),destroy()};Object.assign(swiper.pagination,{enable:enable,disable:disable,render:render,update:update,init:init,destroy:destroy})}function Controller(_ref){let{swiper:swiper,extendParams:extendParams,on:on}=_ref;function LinearSpline(x,y){const binarySearch=function search(){let maxIndex,minIndex,guess;return(array,val)=>{for(minIndex=-1,maxIndex=array.length;maxIndex-minIndex>1;)guess=maxIndex+minIndex>>1,array[guess]<=val?minIndex=guess:maxIndex=guess;return maxIndex}}();let i1,i3;return this.x=x,this.y=y,this.lastIndex=x.length-1,this.interpolate=function interpolate(x2){return x2?(i3=binarySearch(this.x,x2),i1=i3-1,(x2-this.x[i1])*(this.y[i3]-this.y[i1])/(this.x[i3]-this.x[i1])+this.y[i1]):0},this}function getInterpolateFunction(c){swiper.controller.spline=swiper.params.loop?new LinearSpline(swiper.slidesGrid,c.slidesGrid):new LinearSpline(swiper.snapGrid,c.snapGrid)}function setTranslate(_t,byController){const controlled=swiper.controller.control;let multiplier,controlledTranslate;const Swiper=swiper.constructor;function setControlledTranslate(c){if(c.destroyed)return;const translate=swiper.rtlTranslate?-swiper.translate:swiper.translate;"slide"===swiper.params.controller.by&&(getInterpolateFunction(c),controlledTranslate=-swiper.controller.spline.interpolate(-translate)),controlledTranslate&&"container"!==swiper.params.controller.by||(multiplier=(c.maxTranslate()-c.minTranslate())/(swiper.maxTranslate()-swiper.minTranslate()),!Number.isNaN(multiplier)&&Number.isFinite(multiplier)||(multiplier=1),controlledTranslate=(translate-swiper.minTranslate())*multiplier+c.minTranslate()),swiper.params.controller.inverse&&(controlledTranslate=c.maxTranslate()-controlledTranslate),c.updateProgress(controlledTranslate),c.setTranslate(controlledTranslate,swiper),c.updateActiveIndex(),c.updateSlidesClasses()}if(Array.isArray(controlled))for(let i=0;i<controlled.length;i+=1)controlled[i]!==byController&&controlled[i]instanceof Swiper&&setControlledTranslate(controlled[i]);else controlled instanceof Swiper&&byController!==controlled&&setControlledTranslate(controlled)}function setTransition(duration,byController){const Swiper=swiper.constructor,controlled=swiper.controller.control;let i;function setControlledTransition(c){c.destroyed||(c.setTransition(duration,swiper),0!==duration&&(c.transitionStart(),c.params.autoHeight&&nextTick(()=>{c.updateAutoHeight()}),elementTransitionEnd(c.wrapperEl,()=>{controlled&&c.transitionEnd()})))}if(Array.isArray(controlled))for(i=0;i<controlled.length;i+=1)controlled[i]!==byController&&controlled[i]instanceof Swiper&&setControlledTransition(controlled[i]);else controlled instanceof Swiper&&byController!==controlled&&setControlledTransition(controlled)}function removeSpline(){swiper.controller.control&&swiper.controller.spline&&(swiper.controller.spline=void 0,delete swiper.controller.spline)}extendParams({controller:{control:void 0,inverse:!1,by:"slide"}}),swiper.controller={control:void 0},on("beforeInit",()=>{if("undefined"!=typeof window&&("string"==typeof swiper.params.controller.control||swiper.params.controller.control instanceof HTMLElement)){const controlElement=document.querySelector(swiper.params.controller.control);if(controlElement&&controlElement.swiper)swiper.controller.control=controlElement.swiper;else if(controlElement){const onControllerSwiper=e=>
6995{swiper.controller.control=e.detail[0],swiper.update(),controlElement.removeEventListener("init",onControllerSwiper)};controlElement.addEventListener("init",onControllerSwiper)}}else swiper.controller.control=swiper.params.controller.control}),on("update",()=>{removeSpline()}),on("resize",()=>{removeSpline()}),on("observerUpdate",()=>{removeSpline()}),on("setTranslate",(_s,translate,byController)=>{swiper.controller.control&&!swiper.controller.control.destroyed&&swiper.controller.setTranslate(translate,byController)}),on("setTransition",(_s,duration,byController)=>{swiper.controller.control&&!swiper.controller.control.destroyed&&swiper.controller.setTransition(duration,byController)}),Object.assign(swiper.controller,{setTranslate:setTranslate,setTransition:setTransition})}function Autoplay(_ref){let{swiper:swiper,extendParams:extendParams,on:on,emit:emit,params:params}=_ref,timeout,raf;swiper.autoplay={running:!1,paused:!1,timeLeft:0},extendParams({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let autoplayDelayTotal=params&&params.autoplay?params.autoplay.delay:3e3,autoplayDelayCurrent=params&&params.autoplay?params.autoplay.delay:3e3,autoplayTimeLeft,autoplayStartTime=(new Date).getTime(),wasPaused,isTouched,pausedByTouch,touchStartTimeout,slideChanged,pausedByInteraction,pausedByPointerEnter;function onTransitionEnd(e){swiper&&!swiper.destroyed&&swiper.wrapperEl&&e.target===swiper.wrapperEl&&(swiper.wrapperEl.removeEventListener("transitionend",onTransitionEnd),pausedByPointerEnter||resume())}const calcTimeLeft=()=>{if(swiper.destroyed||!swiper.autoplay.running)return;swiper.autoplay.paused?wasPaused=!0:wasPaused&&(autoplayDelayCurrent=autoplayTimeLeft,wasPaused=!1);const timeLeft=swiper.autoplay.paused?autoplayTimeLeft:autoplayStartTime+autoplayDelayCurrent-(new Date).getTime();swiper.autoplay.timeLeft=timeLeft,emit("autoplayTimeLeft",timeLeft,timeLeft/autoplayDelayTotal),raf=requestAnimationFrame(()=>{calcTimeLeft()})},getSlideDelay=()=>{let activeSlideEl;if(activeSlideEl=swiper.virtual&&swiper.params.virtual.enabled?swiper.slides.filter(slideEl=>slideEl.classList.contains("swiper-slide-active"))[0]:swiper.slides[swiper.activeIndex],!activeSlideEl)return;const currentSlideDelay=parseInt(activeSlideEl.getAttribute("data-swiper-autoplay"),10);return currentSlideDelay},run=delayForce=>{if(swiper.destroyed||!swiper.autoplay.running)return;cancelAnimationFrame(raf),calcTimeLeft();let delay=void 0===delayForce?swiper.params.autoplay.delay:delayForce;autoplayDelayTotal=swiper.params.autoplay.delay,autoplayDelayCurrent=swiper.params.autoplay.delay;const currentSlideDelay=getSlideDelay();!Number.isNaN(currentSlideDelay)&&currentSlideDelay>0&&void 0===delayForce&&(delay=currentSlideDelay,autoplayDelayTotal=currentSlideDelay,autoplayDelayCurrent=currentSlideDelay),autoplayTimeLeft=delay;const speed=swiper.params.speed,proceed=()=>{swiper&&!swiper.destroyed&&(swiper.params.autoplay.reverseDirection?!swiper.isBeginning||swiper.params.loop||swiper.params.rewind?(swiper.slidePrev(speed,!0,!0),emit("autoplay")):swiper.params.autoplay.stopOnLastSlide||(swiper.slideTo(swiper.slides.length-1,speed,!0,!0),emit("autoplay")):!swiper.isEnd||swiper.params.loop||swiper.params.rewind?(swiper.slideNext(speed,!0,!0),emit("autoplay")):swiper.params.autoplay.stopOnLastSlide||(swiper.slideTo(0,speed,!0,!0),emit("autoplay")),swiper.params.cssMode&&(autoplayStartTime=(new Date).getTime(),requestAnimationFrame(()=>{run()})))};return delay>0?(clearTimeout(timeout),timeout=setTimeout(()=>{proceed()},delay)):requestAnimationFrame(()=>{proceed()}),delay},start=()=>{autoplayStartTime=(new Date).getTime(),swiper.autoplay.running=!0,run(),emit("autoplayStart")},stop=()=>{swiper.autoplay.running=!1,clearTimeout(timeout),cancelAnimationFrame(raf),emit("autoplayStop")},pause=(internal,reset)=>{if(swiper.destroyed||!swiper.autoplay.running)return;clearTimeout(timeout),internal||(pausedByInteraction=!0);const proceed=()=>{emit("autoplayPause"),swiper.params.autoplay.waitForTransition?swiper.wrapperEl.addEventListener("transitionend",onTransitionEnd):resume()};if(swiper.autoplay.paused=!0,reset)return slideChanged&&(autoplayTimeLeft=swiper.params.autoplay.delay),slideChanged=!1,void proceed();const delay=autoplayTimeLeft||swiper.params.autoplay.delay;autoplayTimeLeft=delay-((new Date).getTime()-autoplayStartTime),swiper.isEnd&&autoplayTimeLeft<0&&!swi
6995per.params.loop||(autoplayTimeLeft<0&&(autoplayTimeLeft=0),proceed())},resume=()=>{swiper.isEnd&&autoplayTimeLeft<0&&!swiper.params.loop||swiper.destroyed||!swiper.autoplay.running||(autoplayStartTime=(new Date).getTime(),pausedByInteraction?(pausedByInteraction=!1,run(autoplayTimeLeft)):run(),swiper.autoplay.paused=!1,emit("autoplayResume"))},onVisibilityChange=()=>{if(swiper.destroyed||!swiper.autoplay.running)return;const document=getDocument();"hidden"===document.visibilityState&&(pausedByInteraction=!0,pause(!0)),"visible"===document.visibilityState&&resume()},onPointerEnter=e=>{"mouse"===e.pointerType&&(pausedByInteraction=!0,pausedByPointerEnter=!0,swiper.animating||swiper.autoplay.paused||pause(!0))},onPointerLeave=e=>{"mouse"===e.pointerType&&(pausedByPointerEnter=!1,swiper.autoplay.paused&&resume())},attachMouseEvents=()=>{swiper.params.autoplay.pauseOnMouseEnter&&(swiper.el.addEventListener("pointerenter",onPointerEnter),swiper.el.addEventListener("pointerleave",onPointerLeave))},detachMouseEvents=()=>{swiper.el.removeEventListener("pointerenter",onPointerEnter),swiper.el.removeEventListener("pointerleave",onPointerLeave)},attachDocumentEvents=()=>{const document=getDocument();document.addEventListener("visibilitychange",onVisibilityChange)},detachDocumentEvents=()=>{const document=getDocument();document.removeEventListener("visibilitychange",onVisibilityChange)};on("init",()=>{swiper.params.autoplay.enabled&&(attachMouseEvents(),attachDocumentEvents(),start())}),on("destroy",()=>{detachMouseEvents(),detachDocumentEvents(),swiper.autoplay.running&&stop()}),on("_freeModeStaticRelease",()=>{(pausedByTouch||pausedByInteraction)&&resume()}),on("_freeModeNoMomentumRelease",()=>{swiper.params.autoplay.disableOnInteraction?stop():pause(!0,!0)}),on("beforeTransitionStart",(_s,speed,internal)=>{!swiper.destroyed&&swiper.autoplay.running&&(internal||!swiper.params.autoplay.disableOnInteraction?pause(!0,!0):stop())}),on("sliderFirstMove",()=>{!swiper.destroyed&&swiper.autoplay.running&&(swiper.params.autoplay.disableOnInteraction?stop():(isTouched=!0,pausedByTouch=!1,pausedByInteraction=!1,touchStartTimeout=setTimeout(()=>{pausedByInteraction=!0,pausedByTouch=!0,pause(!0)},200)))}),on("touchEnd",()=>{if(!swiper.destroyed&&swiper.autoplay.running&&isTouched){if(clearTimeout(touchStartTimeout),clearTimeout(timeout),swiper.params.autoplay.disableOnInteraction)return pausedByTouch=!1,void(isTouched=!1);pausedByTouch&&swiper.params.cssMode&&resume(),pausedByTouch=!1,isTouched=!1}}),on("slideChange",()=>{!swiper.destroyed&&swiper.autoplay.running&&(slideChanged=!0)}),Object.assign(swiper.autoplay,{start:start,stop:stop,pause:pause,resume:resume})}function Thumb(_ref){let{swiper:swiper,extendParams:extendParams,on:on}=_ref;extendParams({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let initialized=!1,swiperCreated=!1;function onThumbClick(){const thumbsSwiper=swiper.thumbs.swiper;if(!thumbsSwiper||thumbsSwiper.destroyed)return;const clickedIndex=thumbsSwiper.clickedIndex,clickedSlide=thumbsSwiper.clickedSlide;if(clickedSlide&&clickedSlide.classList.contains(swiper.params.thumbs.slideThumbActiveClass))return;if(null==clickedIndex)return;let slideToIndex;slideToIndex=thumbsSwiper.params.loop?parseInt(thumbsSwiper.clickedSlide.getAttribute("data-swiper-slide-index"),10):clickedIndex,swiper.params.loop?swiper.slideToLoop(slideToIndex):swiper.slideTo(slideToIndex)}function init(){const{thumbs:thumbsParams}=swiper.params;if(initialized)return!1;initialized=!0;const SwiperClass=swiper.constructor;if(thumbsParams.swiper instanceof SwiperClass)swiper.thumbs.swiper=thumbsParams.swiper,Object.assign(swiper.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(swiper.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),swiper.thumbs.swiper.update();else if(isObject(thumbsParams.swiper)){const thumbsSwiperParams=Object.assign({},thumbsParams.swiper);Object.assign(thumbsSwiperParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),swiper.thumbs.swiper=new SwiperClass(thumbsSwiperParams),swiperCreated=!0}return swiper.thumbs.swiper.el.classList.add(swiper.params.thumbs.thumbsContainerClass),swiper.thumbs.swiper.on("tap",onThumbClick),!0}function update(initial){const thumbsSwiper=swiper.thumbs.swiper;if(!thumbsSwiper||thumbsSwiper.destroyed)return;const slidesPerView="auto"===thumbsSwiper.params.slidesPerView?thumbsSwiper.slidesPerViewDynamic():thumbsSwiper.params.slidesPerView;let thumbsToActivate=1;const thumbActiveClass=swiper.params.thumbs.slideThumbActiveClass;if(swiper.params.slidesPerView>
69951&&!swiper.params.centeredSlides&&(thumbsToActivate=swiper.params.slidesPerView),swiper.params.thumbs.multipleActiveThumbs||(thumbsToActivate=1),thumbsToActivate=Math.floor(thumbsToActivate),thumbsSwiper.slides.forEach(slideEl=>slideEl.classList.remove(thumbActiveClass)),thumbsSwiper.params.loop||thumbsSwiper.params.virtual&&thumbsSwiper.params.virtual.enabled)for(let i=0;i<thumbsToActivate;i+=1)elementChildren(thumbsSwiper.slidesEl,`[data-swiper-slide-index="${swiper.realIndex+i}"]`).forEach(slideEl=>{slideEl.classList.add(thumbActiveClass)});else for(let i=0;i<thumbsToActivate;i+=1)thumbsSwiper.slides[swiper.realIndex+i]&&thumbsSwiper.slides[swiper.realIndex+i].classList.add(thumbActiveClass);const autoScrollOffset=swiper.params.thumbs.autoScrollOffset,useOffset=autoScrollOffset&&!thumbsSwiper.params.loop;if(swiper.realIndex!==thumbsSwiper.realIndex||useOffset){const currentThumbsIndex=thumbsSwiper.activeIndex;let newThumbsIndex,direction;if(thumbsSwiper.params.loop){const newThumbsSlide=thumbsSwiper.slides.filter(slideEl=>slideEl.getAttribute("data-swiper-slide-index")===`${swiper.realIndex}`)[0];newThumbsIndex=thumbsSwiper.slides.indexOf(newThumbsSlide),direction=swiper.activeIndex>swiper.previousIndex?"next":"prev"}else newThumbsIndex=swiper.realIndex,direction=newThumbsIndex>swiper.previousIndex?"next":"prev";useOffset&&(newThumbsIndex+="next"===direction?autoScrollOffset:-1*autoScrollOffset),thumbsSwiper.visibleSlidesIndexes&&thumbsSwiper.visibleSlidesIndexes.indexOf(newThumbsIndex)<0&&(thumbsSwiper.params.centeredSlides?newThumbsIndex=newThumbsIndex>currentThumbsIndex?newThumbsIndex-Math.floor(slidesPerView/2)+1:newThumbsIndex+Math.floor(slidesPerView/2)-1:newThumbsIndex>currentThumbsIndex&&thumbsSwiper.params.slidesPerGroup,thumbsSwiper.slideTo(newThumbsIndex,initial?0:void 0))}}swiper.thumbs={swiper:null},on("beforeInit",()=>{const{thumbs:thumbs}=swiper.params;if(thumbs&&thumbs.swiper)if("string"==typeof thumbs.swiper||thumbs.swiper instanceof HTMLElement){const document=getDocument(),getThumbsElementAndInit=()=>{const thumbsElement="string"==typeof thumbs.swiper?document.querySelector(thumbs.swiper):thumbs.swiper;if(thumbsElement&&thumbsElement.swiper)thumbs.swiper=thumbsElement.swiper,init(),update(!0);else if(thumbsElement){const onThumbsSwiper=e=>{thumbs.swiper=e.detail[0],thumbsElement.removeEventListener("init",onThumbsSwiper),init(),update(!0),thumbs.swiper.update(),swiper.update()};thumbsElement.addEventListener("init",onThumbsSwiper)}return thumbsElement},watchForThumbsToAppear=()=>{if(swiper.destroyed)return;const thumbsElement=getThumbsElementAndInit();thumbsElement||requestAnimationFrame(watchForThumbsToAppear)};requestAnimationFrame(watchForThumbsToAppear)}else init(),update(!0)}),on("slideChange update resize observerUpdate",()=>{update()}),on("setTransition",(_s,duration)=>{const thumbsSwiper=swiper.thumbs.swiper;thumbsSwiper&&!thumbsSwiper.destroyed&&thumbsSwiper.setTransition(duration)}),on("beforeDestroy",()=>{const thumbsSwiper=swiper.thumbs.swiper;thumbsSwiper&&!thumbsSwiper.destroyed&&swiperCreated&&thumbsSwiper.destroy()}),Object.assign(swiper.thumbs,{init:init,update:update})}function freeMode(_ref){let{swiper:swiper,extendParams:extendParams,emit:emit,once:once}=_ref;function onTouchStart(){if(swiper.params.cssMode)return;const translate=swiper.getTranslate();swiper.setTranslate(translate),swiper.setTransition(0),swiper.touchEventsData.velocities.length=0,swiper.freeMode.onTouchEnd({currentPos:swiper.rtl?swiper.translate:-swiper.translate})}function onTouchMove(){if(swiper.params.cssMode)return;const{touchEventsData:data,touches:touches}=swiper;0===data.velocities.length&&data.velocities.push({position:touches[swiper.isHorizontal()?"startX":"startY"],time:data.touchStartTime}),data.velocities.push({position:touches[swiper.isHorizontal()?"currentX":"currentY"],time:now()})}function onTouchEnd(_ref2){let{currentPos:currentPos}=_ref2;if(swiper.params.cssMode)return;const{params:params,wrapperEl:wrapperEl,rtlTranslate:rtl,snapGrid:snapGrid,touchEventsData:data}=swiper,touchEndTime=now(),timeDiff=touchEndTime-data.touchStartTime;if(currentPos<-swiper.minTranslate())swiper.slideTo(swiper.activeIndex);else if(currentPos>-swiper.maxTranslate())swiper.slides.length<snapGrid.length?swiper.slideTo(snapGrid.length-1):swiper.slideTo(swiper.slides.length-1);else{if(params.freeMode.momentum){if(data.velocities.length>
vendor: 8,731 bytes, line 6995
69951){const lastMoveEvent=data.velocities.pop(),velocityEvent=data.velocities.pop(),distance=lastMoveEvent.position-velocityEvent.position,time=lastMoveEvent.time-velocityEvent.time;swiper.velocity=distance/time,swiper.velocity/=2,Math.abs(swiper.velocity)<params.freeMode.minimumVelocity&&(swiper.velocity=0),(time>150||now()-lastMoveEvent.time>300)&&(swiper.velocity=0)}else swiper.velocity=0;swiper.velocity*=params.freeMode.momentumVelocityRatio,data.velocities.length=0;let momentumDuration=1e3*params.freeMode.momentumRatio;const momentumDistance=swiper.velocity*momentumDuration;let newPosition=swiper.translate+momentumDistance;rtl&&(newPosition=-newPosition);let doBounce=!1,afterBouncePosition;const bounceAmount=20*Math.abs(swiper.velocity)*params.freeMode.momentumBounceRatio;let needsLoopFix;if(newPosition<swiper.maxTranslate())params.freeMode.momentumBounce?(newPosition+swiper.maxTranslate()<-bounceAmount&&(newPosition=swiper.maxTranslate()-bounceAmount),afterBouncePosition=swiper.maxTranslate(),doBounce=!0,data.allowMomentumBounce=!0):newPosition=swiper.maxTranslate(),params.loop&&params.centeredSlides&&(needsLoopFix=!0);else if(newPosition>swiper.minTranslate())params.freeMode.momentumBounce?(newPosition-swiper.minTranslate()>bounceAmount&&(newPosition=swiper.minTranslate()+bounceAmount),afterBouncePosition=swiper.minTranslate(),doBounce=!0,data.allowMomentumBounce=!0):newPosition=swiper.minTranslate(),params.loop&&params.centeredSlides&&(needsLoopFix=!0);else if(params.freeMode.sticky){let nextSlide;for(let j=0;j<snapGrid.length;j+=1)if(snapGrid[j]>-newPosition){nextSlide=j;break}newPosition=Math.abs(snapGrid[nextSlide]-newPosition)<Math.abs(snapGrid[nextSlide-1]-newPosition)||"next"===swiper.swipeDirection?snapGrid[nextSlide]:snapGrid[nextSlide-1],newPosition=-newPosition}if(needsLoopFix&&once("transitionEnd",()=>{swiper.loopFix()}),0!==swiper.velocity){if(momentumDuration=rtl?Math.abs((-newPosition-swiper.translate)/swiper.velocity):Math.abs((newPosition-swiper.translate)/swiper.velocity),params.freeMode.sticky){const moveDistance=Math.abs((rtl?-newPosition:newPosition)-swiper.translate),currentSlideSize=swiper.slidesSizesGrid[swiper.activeIndex];momentumDuration=moveDistance<currentSlideSize?params.speed:moveDistance<2*currentSlideSize?1.5*params.speed:2.5*params.speed}}else if(params.freeMode.sticky)return void swiper.slideToClosest();params.freeMode.momentumBounce&&doBounce?(swiper.updateProgress(afterBouncePosition),swiper.setTransition(momentumDuration),swiper.setTranslate(newPosition),swiper.transitionStart(!0,swiper.swipeDirection),swiper.animating=!0,elementTransitionEnd(wrapperEl,()=>{swiper&&!swiper.destroyed&&data.allowMomentumBounce&&(emit("momentumBounce"),swiper.setTransition(params.speed),setTimeout(()=>{swiper.setTranslate(afterBouncePosition),elementTransitionEnd(wrapperEl,()=>{swiper&&!swiper.destroyed&&swiper.transitionEnd()})},0))})):swiper.velocity?(emit("_freeModeNoMomentumRelease"),swiper.updateProgress(newPosition),swiper.setTransition(momentumDuration),swiper.setTranslate(newPosition),swiper.transitionStart(!0,swiper.swipeDirection),swiper.animating||(swiper.animating=!0,elementTransitionEnd(wrapperEl,()=>{swiper&&!swiper.destroyed&&swiper.transitionEnd()}))):swiper.updateProgress(newPosition),swiper.updateActiveIndex(),swiper.updateSlidesClasses()}else{if(params.freeMode.sticky)return void swiper.slideToClosest();params.freeMode&&emit("_freeModeNoMomentumRelease")}(!params.freeMode.momentum||timeDiff>=params.longSwipesMs)&&(emit("_freeModeStaticRelease"),swiper.updateProgress(),swiper.updateActiveIndex(),swiper.updateSlidesClasses())}}extendParams({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(swiper,{freeMode:{onTouchStart:onTouchStart,onTouchMove:onTouchMove,onTouchEnd:onTouchEnd}})}function appendSlide(slides){const swiper=this,{params:params,slidesEl:slidesEl}=swiper;params.loop&&swiper.loopDestroy();const appendElement=slideEl=>{if("string"==typeof slideEl){const tempDOM=document.createElement("div");tempDOM.innerHTML=slideEl,slidesEl.append(tempDOM.children[0]),tempDOM.innerHTML=""}else slidesEl.append(slideEl)};if("object"==typeof slides&&"length"in slides)for(let i=0;i<slides.length;i+=1)slides[i]&&appendElement(slides[i]);else appendElement(slides);swiper.recalcSlides(),params.loop&&swiper.loopCreate(),params.observer&&!swiper.isElement||swiper.update()}function prependSlide(slides){const swiper=this,{params:params,activeIndex:activeIndex,slidesEl:slidesEl}=swiper;params.loop&&swiper.loopDestroy();let newActiveIndex=activeIndex+1;const prependElement=slideEl=>{if("string"==typeof slideEl){const tempDOM=document.createElement("div");tempDOM.innerHTML=slideEl,slidesEl.prepend(tempDOM.children[0]),tempDOM.innerHTML=""}else slidesEl.prepend(slideEl)};if("object"==typeof slides&&"length"in slides){for(let i=0;i<slides.length;i+=1)slides[i]&&prependElement(slides[i]);newActiveIndex=activeIndex+slides.length}else prependElement(slides);swiper.recalcSlides(),params.loop&&swiper.loopCreate(),params.observer&&!swiper.isElement||swiper.update(),swiper.slideTo(newActiveIndex,0,!1)}function addSlide(index,slides){const swiper=this,{params:params,activeIndex:activeIndex,slidesEl:slidesEl}=swiper;let activeIndexBuffer=activeIndex;params.loop&&(activeIndexBuffer-=swiper.loopedSlides,swiper.loopDestroy(),swiper.recalcSlides());const baseLength=swiper.slides.length;if(index<=0)return void swiper.prependSlide(slides);if(index>=baseLength)return void swiper.appendSlide(slides);let newActiveIndex=activeIndexBuffer>index?activeIndexBuffer+1:activeIndexBuffer;const slidesBuffer=[];for(let i=baseLength-1;i>=index;i-=1){const currentSlide=swiper.slides[i];currentSlide.remove(),slidesBuffer.unshift(currentSlide)}if("object"==typeof slides&&"length"in slides){for(let i=0;i<slides.length;i+=1)slides[i]&&slidesEl.append(slides[i]);newActiveIndex=activeIndexBuffer>index?activeIndexBuffer+slides.length:activeIndexBuffer}else slidesEl.append(slides);for(let i=0;i<slidesBuffer.length;i+=1)slidesEl.append(slidesBuffer[i]);swiper.recalcSlides(),params.loop&&swiper.loopCreate(),params.observer&&!swiper.isElement||swiper.update(),params.loop?swiper.slideTo(newActiveIndex+swiper.loopedSlides,0,!1):swiper.slideTo(newActiveIndex,0,!1)}function removeSlide(slidesIndexes){const swiper=this,{params:params,activeIndex:activeIndex}=swiper;let activeIndexBuffer=activeIndex;params.loop&&(activeIndexBuffer-=swiper.loopedSlides,swiper.loopDestroy());let newActiveIndex=activeIndexBuffer,indexToRemove;if("object"==typeof slidesIndexes&&"length"in slidesIndexes){for(let i=0;i<slidesIndexes.length;i+=1)indexToRemove=slidesIndexes[i],swiper.slides[indexToRemove]&&swiper.slides[indexToRemove].remove(),indexToRemove<newActiveIndex&&(newActiveIndex-=1);newActiveIndex=Math.max(newActiveIndex,0)}else indexToRemove=slidesIndexes,swiper.slides[indexToRemove]&&swiper.slides[indexToRemove].remove(),indexToRemove<newActiveIndex&&(newActiveIndex-=1),newActiveIndex=Math.max(newActiveIndex,0);swiper.recalcSlides(),params.loop&&swiper.loopCreate(),params.observer&&!swiper.isElement||swiper.update(),params.loop?swiper.slideTo(newActiveIndex+swiper.loopedSlides,0,!1):swiper.slideTo(newActiveIndex,0,!1)}function removeAllSlides(){const swiper=this,slidesIndexes=[];for(let i=0;i<swiper.slides.length;i+=1)slidesIndexes.push(i);swiper.removeSlide(slidesIndexes)}function Manipulation(_ref){let{swiper:swiper}=_ref;Object.assign(swiper,{appendSlide:appendSlide.bind(swiper),prependSlide:prependSlide.bind(swiper),addSlide:addSlide.bind(swiper),removeSlide:removeSlide.bind(swiper),removeAllSlides:removeAllSlides.bind(swiper)})}function effectInit(params){const{effect:effect,swiper:swiper,on:on,setTranslate:setTranslate,setTransition:setTransition,overwriteParams:overwriteParams,perspective:perspective,recreateShadows:recreateShadows,getEffectParams:getEffectParams}=params;let requireUpdateOnVirtual;on("beforeInit",()=>{if(swiper.params.effect!==effect)return;swiper.classNames.push(`${swiper.params.containerModifierClass}${effect}`),perspective&&perspective()&&swiper.classNames.push(`${swiper.params.containerModifierClass}3d`);const overwriteParamsResult=overwriteParams?overwriteParams():{};Object.assign(swiper.params,overwriteParamsResult),Object.assign(swiper.originalParams,overwriteParamsResult)}),on("setTranslate",()=>{swiper.params.effect===effect&&setTranslate()}),on("setTransition",(_s,duration)=>{swiper.params.effect===effect&&setTransition(duration)}),on("transitionEnd",()=>{if(swiper.params.effect===effect&&recreateShadows){if(!getEffectParams||!getEffectParams().slideShadows)return;
6995swiper.slides.forEach(slideEl=>{slideEl.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(shadowEl=>shadowEl.remove())}),recreateShadows()}}),on("virtualUpdate",()=>{swiper.params.effect===effect&&(swiper.slides.length||(requireUpdateOnVirtual=!0),requestAnimationFrame(()=>{requireUpdateOnVirtual&&swiper.slides&&swiper.slides.length&&(setTranslate(),requireUpdateOnVirtual=!1)}))})}function effectTarget(effectParams,slideEl){const transformEl=getSlideTransformEl(slideEl);return transformEl!==slideEl&&(transformEl.style.backfaceVisibility="hidden",transformEl.style["-webkit-backface-visibility"]="hidden"),transformEl}function effectVirtualTransitionEnd(_ref){let{swiper:swiper,duration:duration,transformElements:transformElements,allSlides:allSlides}=_ref;const{activeIndex:activeIndex}=swiper,getSlide=el=>{if(!el.parentElement){const slide=swiper.slides.filter(slideEl=>slideEl.shadowRoot&&slideEl.shadowRoot===el.parentNode)[0];return slide}return el.parentElement};if(swiper.params.virtualTranslate&&0!==duration){let eventTriggered=!1,transitionEndTarget;transitionEndTarget=allSlides?transformElements:transformElements.filter(transformEl=>{const el=transformEl.classList.contains("swiper-slide-transform")?getSlide(transformEl):transformEl;return swiper.getSlideIndex(el)===activeIndex}),transitionEndTarget.forEach(el=>{elementTransitionEnd(el,()=>{if(eventTriggered)return;if(!swiper||swiper.destroyed)return;eventTriggered=!0,swiper.animating=!1;const evt=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});swiper.wrapperEl.dispatchEvent(evt)})})}}function EffectFade(_ref){let{swiper:swiper,extendParams:extendParams,on:on}=_ref;extendParams({fadeEffect:{crossFade:!1}});const setTranslate=()=>{const{slides:slides}=swiper,params=swiper.params.fadeEffect;for(let i=0;i<slides.length;i+=1){const slideEl=swiper.slides[i],offset=slideEl.swiperSlideOffset;let tx=-offset;swiper.params.virtualTranslate||(tx-=swiper.translate);let ty=0;swiper.isHorizontal()||(ty=tx,tx=0);const slideOpacity=swiper.params.fadeEffect.crossFade?Math.max(1-Math.abs(slideEl.progress),0):1+Math.min(Math.max(slideEl.progress,-1),0),targetEl=effectTarget(params,slideEl);targetEl.style.opacity=slideOpacity,targetEl.style.transform=`translate3d(${tx}px, ${ty}px, 0px)`}},setTransition=duration=>{const transformElements=swiper.slides.map(slideEl=>getSlideTransformEl(slideEl));transformElements.forEach(el=>{el.style.transitionDuration=`${duration}ms`}),effectVirtualTransitionEnd({swiper:swiper,duration:duration,transformElements:transformElements,allSlides:!0})};effectInit({effect:"fade",swiper:swiper,on:on,setTranslate:setTranslate,setTransition:setTransition,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!swiper.params.cssMode})})}Object.keys(prototypes).forEach(prototypeGroup=>{Object.keys(prototypes[prototypeGroup]).forEach(protoMethod=>{Swiper.prototype[protoMethod]=prototypes[prototypeGroup][protoMethod]})}),Swiper.use([Resize,Observer]);const modules=[Keyboard,Mousewheel,Navigation,Pagination,Controller,Autoplay,Thumb,freeMode,Manipulation,EffectFade];return Swiper.use(modules),Swiper}();
6996/* End */
6997;
6998; /* Start:"a:4:{s:4:"full";s:99:"/local/templates/aspro-allcorp3/components/bitrix/news.list/brands-list/script.min.js?1778077567545";s:6:"source";s:81:"/local/templates/aspro-allcorp3/components/bitrix/news.list/brands-list/script.js";s:3:"min";s:85:"/local/templates/aspro-allcorp3/components/bitrix/news.list/brands-list/script.min.js";s:3:"map";s:89:"/local/templates/aspro-allcorp3/components/bitrix/news.list/brands-list/script.min.js.map";}"*/
6999BX.addCustomEvent("onSetSliderOptions",(function(options){options.type&&"main_brands"===options.type&&(options.on||(options.on={}),options.on.init=function(swiper){swiper.navigation.nextEl&&(swiper.navigation.nextEl.style.display=""),swiper.navigation.prevEl&&(swiper.navigation.prevEl.style.display="")},options.on.lock=function(swiper){swiper.wrapperEl.classList.add("brand-list__items--centered")},options.on.unlock=function(swiper){swiper.wrapperEl.classList.remove("brand-list__items--centered")})}
6999));
7000/* End */
7001;
7002; /* Start:"a:4:{s:4:"full";s:96:"/bitrix/components/aspro/marketing.popup.allcorp3/templates/.default/script.min.js?1785225545947";s:6:"source";s:78:"/bitrix/components/aspro/marketing.popup.allcorp3/templates/.default/script.js";s:3:"min";s:82:"/bitrix/components/aspro/marketing.popup.allcorp3/templates/.default/script.min.js";s:3:"map";s:86:"/bitrix/components/aspro/marketing.popup.allcorp3/templates/.default/script.min.js.map";}"*/
7003$(document).on("click",".dyn_mp_jqm_frame .popup-text-info__btn .btn",(function(){var closeBtn=$(this).closest(".dyn_mp_jqm_frame").find(".jqmClose");closeBtn.length&&closeBtn.trigger("click")})),$(document).ready((function(){if($(".dyn_mp_jqm").length){var allDelays=[];$(".dyn_mp_jqm").each((function(i,el){var jqmBlock=$(el),delay=0;if(!jqmBlock.hasClass("initied")){for(jqmBlock.addClass("initied"),jqmBlock.data("param-delay")&&(delay=1e3*jqmBlock.data("param-delay"));-1!==allDelays.indexOf(delay);)delay+=1e3;if(allDelays.push(delay),"undefined"!=typeof localStorage){var dataLS=localStorage.getItem(jqmBlock.data("ls")),ls="";try{ls=JSON.parse(dataLS)}catch(e){ls=dataLS}(!ls||ls&&ls.TIMESTAMP<Date.now()&&ls.TIMESTAMP)&&(timeoutID=setTimeout((function(){jqmBlock.click()}),delay))}else{var ls;(ls=$.cookie(jqmBlock.data("ls")))||(timeoutID=setTimeout((function(){jqmBlock.click()}),delay))}}}))}}));
7004/* End */
7005;
7006; /* Start:"a:4:{s:4:"full";s:67:"/bitrix/components/bitrix/search.title/script.min.js?17852255466573";s:6:"source";s:48:"/bitrix/components/bitrix/search.title/script.js";s:3:"min";s:52:"/bitrix/components/bitrix/search.title/script.min.js";s:3:"map";s:52:"/bitrix/components/bitrix/search.title/script.map.js";}"*/
7007function JCTitleSearch(t){var e=this;this.arParams={AJAX_PAGE:BX.util.htmlspecialcharsback(t.AJAX_PAGE),CONTAINER_ID:t.CONTAINER_ID,INPUT_ID:t.INPUT_ID,MIN_QUERY_LEN:parseInt(t.MIN_QUERY_LEN,10)};if(t.WAIT_IMAGE){this.arParams.WAIT_IMAGE=t.WAIT_IMAGE}if(this.arParams.MIN_QUERY_LEN<=0){this.arParams.MIN_QUERY_LEN=1}this.cache=[];this.cache_key=null;this.startText="";this.running=false;this.runningCall=false;this.currentRow=-1;this.RESULT=null;this.CONTAINER=null;this.INPUT=null;this.WAIT=null;this.ShowResult=function(t){if(BX.type.isString(t)){e.RESULT.innerHTML=t}e.RESULT.style.display=e.RESULT.innerHTML===""?"none":"block";var s=e.adjustResultNode();var i=null;var n=null;var l=BX.findChild(e.RESULT,{tag:"table",class:"title-search-result"},true);if(l){n=BX.findChild(l,{tag:"th"},true)}if(n){var r=BX.pos(l);r.width=r.right-r.left;var a=BX.pos(n);a.width=a.right-a.left;n.style.width=a.width+"px";e.RESULT.style.width=s.width+a.width+"px";e.RESULT.style.left=s.left-a.width-1+"px";if(r.width-a.width>s.width){e.RESULT.style.width=s.width+a.width-1+"px"}r=BX.pos(l);i=BX.pos(e.RESULT);if(i.right>r.right){e.RESULT.style.width=r.right-r.left+"px"}}var o=false;if(l){o=BX.findChild(e.RESULT,{class:"title-search-fader"},true)}if(o&&n){i=BX.pos(e.RESULT);o.style.left=i.right-i.left-18+"px";o.style.width=18+"px";o.style.top=0+"px";o.style.height=i.bottom-i.top+"px";o.style.display="block"}};this.onKeyPress=function(t){var s=BX.findChild(e.RESULT,{tag:"table",class:"title-search-result"},true);if(!s){return false}var i=0;var n=s.rows.length;switch(t){case 27:e.RESULT.style.display="none";e.currentRow=-1;e.UnSelectAll();return true;case 40:if(e.RESULT.style.display=="none"){e.RESULT.style.display="block"}var l=-1;for(i=0;i<n;i++){if(!BX.findChild(s.rows[i],{class:"title-search-separator"},true)){if(l==-1){l=i}if(e.currentRow<i){e.currentRow=i;break}else if(s.rows[i].className=="title-search-selected"){s.rows[i].className=""}}}if(i==n&&e.currentRow!=i){e.currentRow=l}s.rows[e.currentRow].className="title-search-selected";return true;case 38:if(e.RESULT.style.display=="none"){e.RESULT.style.display="block"}var r=-1;for(i=n-1;i>=0;i--){if(!BX.findChild(s.rows[i],{class:"title-search-separator"},true)){if(r==-1){r=i}if(e.currentRow>i){e.currentRow=i;break}else if(s.rows[i].className=="title-search-selected"){s.rows[i].className=""}}}if(i<0&&e.currentRow!=i){e.currentRow=r}s.rows[e.currentRow].className="title-search-selected";return true;case 13:if(e.RESULT.style.display=="block"){for(i=0;i<n;i++){if(e.currentRow==i&&!BX.findChild(s.rows[i],{class:"title-search-separator"},true)){var a=BX.findChild(s.rows[i],{tag:"a"},true);if(a){window.location=a.href;return true}}}}return false;default:break}return false};this.onTimeout=function(){e.onChange((function(){setTimeout(e.onTimeout,500)}))};this.onChange=function(t){if(e.running){e.runningCall=true;return}e.running=true;if(e.INPUT.value!=e.oldValue&&e.INPUT.value!=e.startText){e.oldValue=e.INPUT.value;if(e.INPUT.value.length>
7007=e.arParams.MIN_QUERY_LEN){e.cache_key=e.arParams.INPUT_ID+"|"+e.INPUT.value;if(e.cache[e.cache_key]==null){if(e.WAIT){var s=BX.pos(e.INPUT);var i=s.bottom-s.top-2;e.WAIT.style.top=s.top+1+"px";e.WAIT.style.height=i+"px";e.WAIT.style.width=i+"px";e.WAIT.style.left=s.right-i+2+"px";e.WAIT.style.display="block"}BX.ajax.post(e.arParams.AJAX_PAGE,{ajax_call:"y",INPUT_ID:e.arParams.INPUT_ID,q:e.INPUT.value,l:e.arParams.MIN_QUERY_LEN},(function(s){e.cache[e.cache_key]=s;e.ShowResult(s);e.currentRow=-1;e.EnableMouseEvents();if(e.WAIT){e.WAIT.style.display="none"}if(!!t){t()}e.running=false;if(e.runningCall){e.runningCall=false;e.onChange()}}));return}e.ShowResult(e.cache[e.cache_key]);e.currentRow=-1;e.EnableMouseEvents()}else{e.RESULT.style.display="none";e.currentRow=-1;e.UnSelectAll()}}if(!!t){t()}e.running=false};this.onScroll=function(){if(BX.type.isElementNode(e.RESULT)&&e.RESULT.style.display!=="none"&&e.RESULT.innerHTML!==""){e.adjustResultNode()}};this.UnSelectAll=function(){var t=BX.findChild(e.RESULT,{tag:"table",class:"title-search-result"},true);if(t){var s=t.rows.length;for(var i=0;i<s;i++){t.rows[i].className=""}}};this.EnableMouseEvents=function(){var t=BX.findChild(e.RESULT,{tag:"table",class:"title-search-result"},true);if(t){var s=t.rows.length;for(var i=0;i<s;i++){if(!BX.findChild(t.rows[i],{class:"title-search-separator"},true)){t.rows[i].id="row_"+i;t.rows[i].onmouseover=function(t){if(e.currentRow!=this.id.substr(4)){e.UnSelectAll();this.className="title-search-selected";e.currentRow=this.id.substr(4)}};t.rows[i].onmouseout=function(t){this.className="";e.currentRow=-1}}}}};this.onFocusLost=function(t){setTimeout((function(){e.RESULT.style.display="none"}),250)};this.onFocusGain=function(){if(e.RESULT.innerHTML.length>0){e.ShowResult()}};this.onKeyDown=function(t){if(!t){t=window.event}if(e.RESULT.style.display=="block"&&e.onKeyPress(t.keyCode)){return BX.PreventDefault(t)}};this.adjustResultNode=function(){if(!(BX.type.isElementNode(e.RESULT)&&BX.type.isElementNode(e.CONTAINER))){return{top:0,right:0,bottom:0,left:0,width:0,height:0}}var t=BX.pos(e.CONTAINER);e.RESULT.style.position="absolute";e.RESULT.style.top=t.bottom+2+"px";e.RESULT.style.left=t.left+"px";e.RESULT.style.width=t.width+"px";return t};this.onContainerLayoutChange=function(){if(BX.type.isElementNode(e.RESULT)&&e.RESULT.style.display!=="none"&&e.RESULT.innerHTML!==""){e.adjustResultNode()}};this.Init=function(){this.CONTAINER=document.getElementById(this.arParams.CONTAINER_ID);BX.addCustomEvent(this.CONTAINER,"OnNodeLayoutChange",this.onContainerLayoutChange);this.RESULT=document.body.appendChild(document.createElement("DIV"));this.RESULT.className="title-search-result";this.INPUT=document.getElementById(this.arParams.INPUT_ID);this.startText=this.INPUT.value;this.oldValue=this.INPUT.value;BX.bind(this.INPUT,"focus",(function(){e.onFocusGain()}));BX.bind(this.INPUT,"blur",(function(){e.onFocusLost()}));this.INPUT.onkeydown=this.onKeyDown;if(this.arParams.WAIT_IMAGE){this.WAIT=document.body.appendChild(document.createElement("DIV"));this.WAIT.style.backgroundImage="url('"+this.arParams.WAIT_IMAGE+"')";if(!BX.browser.IsIE()){this.WAIT.style.backgroundRepeat="none"}this.WAIT.style.display="none";this.WAIT.style.position="absolute";this.WAIT.style.zIndex="1100"}BX.bind(this.INPUT,"bxchange",(function(){e.onChange()}));var t=BX.findParent(this.CONTAINER,BX.is_fixed);if(BX.type.isElementNode(t)){BX.bind(window,"scroll",BX.throttle(this.onScroll,100,this))}};BX.ready((function(){e.Init(t)}))}
7008/* End */
7009;
7010; /* Start:"a:4:{s:4:"full";s:97:"/local/templates/aspro-allcorp3/components/bitrix/search.title/fixed/script.min.js?17780775677482";s:6:"source";s:78:"/local/templates/aspro-allcorp3/components/bitrix/search.title/fixed/script.js";s:3:"min";s:82:"/local/templates/aspro-allcorp3/components/bitrix/search.title/fixed/script.min.js";s:3:"map";s:86:"/local/templates/aspro-allcorp3/components/bitrix/search.title/fixed/script.min.js.map";}"*/
7011function JCTitleSearch2(arParams){var _this=this;this.arParams={AJAX_PAGE:arParams.AJAX_PAGE,CONTAINER_ID:arParams.CONTAINER_ID,INPUT_ID:arParams.INPUT_ID,INPUT_ID_TMP:arParams.INPUT_ID_TMP,TYPE:arParams.TYPE||"normal",MIN_QUERY_LEN:parseInt(arParams.MIN_QUERY_LEN)},arParams.WAIT_IMAGE&&(this.arParams.WAIT_IMAGE=arParams.WAIT_IMAGE),arParams.MIN_QUERY_LEN<=0&&(arParams.MIN_QUERY_LEN=1),this.cache=[],this.cache_key=null,this.startText="",this.running=!1,this.needRunAgain=!1,this.currentRow=-1,this.RESULT=null,this.CONTAINER=null,this.INPUT=null,this.WAIT=null,this.ShowResult=function(result){BX.type.isString(result)&&(_this.RESULT.innerHTML=result),_this.RESULT.style.display=""!==_this.RESULT.innerHTML?"block":"none";var pos=_this.adjustResultNode(),res_pos,th,tbl=BX.findChild(_this.RESULT,{tag:"table",class:"title-search-result"},!0),fade;if(tbl&&(th=BX.findChild(tbl,{tag:"th"},!0)),th){var tbl_pos=BX.pos(tbl);tbl_pos.width=tbl_pos.right-tbl_pos.left;var th_pos=BX.pos(th);th_pos.width=th_pos.right-th_pos.left,th.style.width=th_pos.width+"px",_this.RESULT.style.width=pos.width+th_pos.width+"px",_this.RESULT.style.left=pos.left-th_pos.width-1+"px",tbl_pos.width-th_pos.width>pos.width&&(_this.RESULT.style.width=pos.width+th_pos.width-1+"px"),tbl_pos=BX.pos(tbl),(res_pos=BX.pos(_this.RESULT)).right>tbl_pos.right&&(_this.RESULT.style.width=tbl_pos.right-tbl_pos.left+"px")}tbl&&(fade=BX.findChild(_this.RESULT,{class:"title-search-fader"},!0)),fade&&th&&(res_pos=BX.pos(_this.RESULT),fade.style.left=res_pos.right-res_pos.left-18+"px",fade.style.width="18px",fade.style.top="0px",fade.style.height=res_pos.bottom-res_pos.top+"px",fade.style.display="block"),"function"==typeof InitScrollBar&&InitScrollBar()},this.onKeyPress=function(keyCode){var tbl=BX.findChild(_this.RESULT,{tag:"table",class:"title-search-result"},!0),i;if(!tbl)return!1;var cnt=tbl.rows.length;switch(keyCode){case 27:return _this.RESULT.style.display="none",_this.currentRow=-1,_this.UnSelectAll(),!0;case 40:"none"==_this.RESULT.style.display&&(_this.RESULT.style.display="block");var first=-1;for(i=0;i<cnt;i++)if(!BX.findChild(tbl.rows[i],{class:"title-search-separator"},!0)){if(-1==first&&(first=i),_this.currentRow<i){_this.currentRow=i;break}"title-search-selected"==tbl.rows[i].className&&(tbl.rows[i].className="")}return i==cnt&&_this.currentRow!=i&&(_this.currentRow=first),tbl.rows[_this.currentRow].className="title-search-selected",!0;case 38:"none"==_this.RESULT.style.display&&(_this.RESULT.style.display="block");var last=-1;for(i=cnt-1;i>=0;i--)if(!BX.findChild(tbl.rows[i],{class:"title-search-separator"},!0)){if(-1==last&&(last=i),_this.currentRow>i){_this.currentRow=i;break}"title-search-selected"==tbl.rows[i].className&&(tbl.rows[i].className="")}return i<0&&_this.currentRow!=i&&(_this.currentRow=last),tbl.rows[_this.currentRow].className="title-search-selected",!0;case 13:if("block"==_this.RESULT.style.display)for(i=0;i<cnt;i++)if(_this.currentRow==i&&!BX.findChild(tbl.rows[i],{class:"title-search-separator"},!0)){var a=BX.findChild(tbl.rows[i],{tag:"a"},!0);if(a)return window.location=a.href,!0}return!1}return!1},this.onTimeout=function(){_this.onChange((function(){setTimeout(_this.onTimeout,500)}))},this.onChange=function(callback){if(_this.running)_this.needRunAgain=!0;else{if(_this.running=!0,_this.INPUT.value!=_this.oldValue&&_this.INPUT.value!=_this.startText)if(_this.oldValue=_this.INPUT.value,_this.INPUT.value.length>=_this.arParams.MIN_QUERY_LEN){if(_this.cache_key=_this.arParams.INPUT_ID+"|"+_this.INPUT.value,null==_this.cache[_this.cache_key]){if
7011(_this.WAIT){var pos=BX.pos(_this.INPUT),height=pos.bottom-pos.top-2;_this.WAIT.style.top=pos.top+1+"px",_this.WAIT.style.height=height+"px",_this.WAIT.style.width=height+"px",_this.WAIT.style.left=pos.right-height+2+"px",_this.WAIT.style.display="block"}return void BX.ajax.post(_this.arParams.AJAX_PAGE,{ajax_call:"y",INPUT_ID:_this.arParams.INPUT_ID_TMP,q:_this.INPUT.value,l:_this.arParams.MIN_QUERY_LEN},(function(result){_this.cache[_this.cache_key]=result,_this.ShowResult(result),_this.currentRow=-1,_this.EnableMouseEvents(),_this.WAIT&&(_this.WAIT.style.display="none"),callback&&callback(),_this.running=!1,_this.needRunAgain&&(_this.needRunAgain=!1,_this.onChange(callback))}))}_this.ShowResult(_this.cache[_this.cache_key]),_this.currentRow=-1,_this.EnableMouseEvents()}else _this.RESULT.style.display="none",_this.currentRow=-1,_this.UnSelectAll();callback&&callback(),_this.running=!1}},this.UnSelectAll=function(){var tbl=BX.findChild(_this.RESULT,{tag:"table",class:"title-search-result"},!0);if(tbl)for(var cnt=tbl.rows.length,i=0;i<cnt;i++)tbl.rows[i].className=""},this.EnableMouseEvents=function(){var tbl=BX.findChild(_this.RESULT,{tag:"table",class:"title-search-result"},!0);if(tbl)for(var cnt=tbl.rows.length,i=0;i<cnt;i++)BX.findChild(tbl.rows[i],{class:"title-search-separator"},!0)||(tbl.rows[i].id="row_"+i,tbl.rows[i].onmouseover=function(e){_this.currentRow!=this.id.substr(4)&&(_this.UnSelectAll(),this.className="title-search-selected",_this.currentRow=this.id.substr(4))},tbl.rows[i].onmouseout=function(e){this.className="",_this.currentRow=-1})},this.onFocusLost=function(hide){setTimeout((function(){_this.RESULT.style.display="none"}),30)},this.onFocusGain=function(){_this.RESULT.innerHTML.length&&_this.ShowResult()},this.onKeyDown=function(e){if(e||(e=window.event),"block"==_this.RESULT.style.display&&_this.onKeyPress(e.keyCode))return BX.PreventDefault(e)},this.adjustResultNode=function(){var pos,pos_input,fixedParent=BX.findParent(_this.CONTAINER,BX.is_fixed);return fixedParent?(_this.RESULT.style.position="fixed",_this.RESULT.style.zIndex=BX.style(fixedParent,"z-index")+2,pos=BX.pos(_this.CONTAINER,!0)):(_this.RESULT.style.position="absolute",pos=BX.pos(_this.CONTAINER)),pos_input=BX.pos(_this.INPUT),pos.width=pos.right-pos.left,_this.RESULT.style.top=pos.bottom+2+"px",_this.RESULT.style.left=pos_input.left+"px",$(_this.INPUT).closest(".inline-search-block.with-close").length?_this.RESULT.style.width=pos_input.width+"px":_this.RESULT.style.width=pos.width+"px",pos},this._onContainerLayoutChange=function(){"none"!==_this.RESULT.style.display&&""!==_this.RESULT.innerHTML&&_this.adjustResultNode()},this.Init=function(){this.CONTAINER=document.getElementById(this.arParams.CONTAINER_ID),BX.addCustomEvent(this.CONTAINER,"OnNodeLayoutChange",this._onContainerLayoutChange),this.RESULT=document.body.appendChild(document.createElement("DIV")),this.RESULT.className="title-search-result "+this.arParams.INPUT_ID,this.RESULT.className+=" title-type-"+this.arParams.TYPE,this.INPUT=document.getElementById(this.arParams.INPUT_ID),this.startText=this.oldValue=this.INPUT.value,BX.bind(this.INPUT,"focus",(function(e){_this.onFocusGain()})),BX.bind(this.INPUT,"blur",(function(e){$(e.relatedTarget).closest(".searche-result").length||_this.onFocusLost()})),BX.browser.IsSafari()||BX.browser.IsIE()?this.INPUT.onkeydown=this.onKeyDown:this.INPUT.onkeypress=this.onKeyDown,this.arParams.WAIT_IMAGE&&(this.WAIT=document.body.appendChild(document.createElement("DIV")),this.WAIT.style.backgroundImage="url('"+this.arParams.WAIT_IMAGE+"')",BX.browser.IsIE()||(this.WAIT.style.backgroundRepeat="none"),this.WAIT.style.display="none",this.WAIT.style.position="absolute",this.WAIT.style.zIndex="1100"),BX.bind(this.INPUT,"bxchange",(function(e){_this.onChange()}))},BX.ready((function(){_this.Init(arParams)}))}
7012/* End */
7013;
7014; /* Start:"a:4:{s:4:"full";s:76:"/local/templates/aspro-allcorp3/js/logo_depend_banners.min.js?17780775671839";s:6:"source";s:57:"/local/templates/aspro-allcorp3/js/logo_depend_banners.js";s:3:"min";s:61:"/local/templates/aspro-allcorp3/js/logo_depend_banners.min.js";s:3:"map";s:65:"/local/templates/aspro-allcorp3/js/logo_depend_banners.min.js.map";}"*/
7015function logo_depend_banners(menu_color){let bLightMenu=(menu_color=menu_color||$(".banners-big--detail .banners-big__item").data("c
7015olor"))&&"light"===menu_color;const $header=document.querySelector("header"),$headerLogo=document.querySelector("header .logo img");if(document.querySelector(".banners-big")?($header.classList.remove("light","dark"),bLightMenu&&$header.classList.add(menu_color)):bLightMenu=!!$header.classList.contains("light"),$headerLogo&&arAsproOptions.THEME.LOGO_IMAGE_WHITE){const bDarkMode=~document.querySelector("body").className.indexOf("theme-default")?window.matchMedia("(prefers-color-scheme: dark)").matches:!!~document.querySelector("body").className.indexOf("theme-dark"),bLogoOpacity=$("body.header_opacity:not(.left_header_column)").length&&(!$("header.header--offset").length||$("header .logo").closest(".header__top-part").length||$("header.header--offset").length&&$("header .header__main-inner.bg_none, header .header__sub-inner.bg_none").length),bLogoWhite=!!document.querySelector(".header__main-inner.header--color_colored .logo, .header__main-inner.header--color_dark .logo, .header__main-part.header--color_dark .logo, .header__main-part.header--color_colored .logo, .header__inner--parted.dark .logo, .header__sub-inner.header--color_colored .logo, .header__sub-inner.header--color_dark .logo"),logoImage=bLogoOpacity&&bLightMenu||!bLogoOpacity&&(bDarkMode||!bDarkMode&&bLogoWhite)?arAsproOptions.THEME.LOGO_IMAGE_WHITE:arAsproOptions.THEME.LOGO_IMAGE;$headerLogo.setAttribute("src",logoImage)}}BX.addCustomEvent("onChangeThemeColor",(function(e){const menu_color=document.querySelector(".main-slider__item.swiper-slide-active")&&document.querySelector(".main-slider__item.swiper-slide-active").dataset.color;logo_depend_banners(menu_color)}));
7016/* End */
7017;
7018; /* Start:"a:4:{s:4:"full";s:81:"/local/templates/aspro-allcorp3/js/jquery.inputmask.bundle.min.js?177807756770933";s:6:"source";s:65:"/local/templates/aspro-allcorp3/js/jquery.inputmask.bundle.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
7019!function(e){function t(n){if(i[n])return i[n].exports;var a=i[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var i={};t.m=e,t.c=i,t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=3)}([function(e,t,i){"use strict";var n,a,r;"function"==typeof Symbol&&Symbol.iterator,a=[i(2)],void 0!==(r="function"==typeof(n=function(e){return e})?n.apply(t,a):n)&&(e.exports=r)},function(e,t,i){"use strict";var n,a,r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};a=[i(0),i(5),i(6)],void 0!==(r="function"==typeof(n=function(e,t,i,n){function a(t,i,o){if(!(this instanceof a))return new a(t,i,o);this.el=n,this.events={},this.maskset=n,this.refreshValue=!1,!0!==o&&(e.isPlainObject(t)?i=t:(i=i||{},t&&(i.alias=t)),this.opts=e.extend(!0,{},this.defaults,i),this.noMasksCache=i&&i.definitions!==n,this.userOptions=i||{},this.isRTL=this.opts.numericInput,r(this.opts.alias,i,this.opts))}function r(t,i,o){var s=a.prototype.aliases[t];return s?(s.alias&&r(s.alias,n,o),e.extend(!0,o,s),e.extend(!0,o,i),!0):(null===o.mask&&(o.mask=t),!1)}function s(t,i){function r(t,r,o){var s=!1;if(null!==t&&""!==t||((s=null!==o.regex)?t=(t=o.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(s=!0,t=".*")),1===t.length&&!1===o.greedy&&0!==o.repeat&&(o.placeholder=""),o.repeat>0||"*"===o.repeat||"+"===o.repeat){var l="*"===o.repeat?0:"+"===o.repeat?1:o.repeat;t=o.groupmarker[0]+t+o.groupmarker[1]+o.quantifiermarker[0]+l+","+o.repeat+o.quantifiermarker[1]}var u,c=s?"regex_"+o.regex:o.numericInput?t.split("").reverse().join(""):t;return a.prototype.masksCache[c]===n||!0===i?(u={mask:t,maskToken:a.prototype.analyseMask(t,s,o),validPositions:{},_buffer:n,buffer:n,tests:{},excludes:{},metadata:r,maskLength:n},!0!==i&&(a.prototype.masksCache[c]=u,u=e.extend(!0,{},a.prototype.masksCache[c]))):u=e.extend(!0,{},a.prototype.masksCache[c]),u}if(e.isFunction(t.mask)&&(t.mask=t.mask(t)),e.isArray(t.mask)){if
7019(t.mask.length>1){if(null===t.keepStatic){t.keepStatic="auto";for(var o=0;o<t.mask.length;o++)if(t.mask[o].charAt(0)!==t.mask[0].charAt(0)){t.keepStatic=!0;break}}var s=t.groupmarker[0];return e.each(t.isRTL?t.mask.reverse():t.mask,function(i,a){s.length>1&&(s+=t.groupmarker[1]+t.alternatormarker+t.groupmarker[0]),a.mask===n||e.isFunction(a.mask)?s+=a:s+=a.mask}),r(s+=t.groupmarker[1],t.mask,t)}t.mask=t.mask.pop()}return t.mask&&t.mask.mask!==n&&!e.isFunction(t.mask.mask)?r(t.mask.mask,t.mask,t):r(t.mask,t.mask,t)}function l(e){var t=i.createElement("input"),n="on"+e,a=n in t;return a||(t.setAttribute(n,"return;"),a="function"==typeof t[n]),t=null,a}function u(r,s,c){function d(e,t,i){t=t||0;var a,r,o,s=[],l=0,u=v();do{!0===e&&h().validPositions[l]?(r=(o=h().validPositions[l]).match,a=o.locator.slice(),s.push(!0===i?o.input:!1===i?r.nativeDef:N(l,r))):(r=(o=P(l,a,l-1)).match,a=o.locator.slice(),(!1===c.jitMasking||l<u||"number"==typeof c.jitMasking&&isFinite(c.jitMasking)&&c.jitMasking>l)&&s.push(!1===i?r.nativeDef:N(l,r))),"auto"===c.keepStatic&&r.newBlockMarker&&null!==r.fn&&(c.keepStatic=l-1),l++}while(($===n||l<$)&&(null!==r.fn||""!==r.def)||t>l);return""===s[s.length-1]&&s.pop(),!1===i&&h().maskLength!==n||(h().maskLength=l-1),s}function h(){return s}function g(e){var t=h();t.buffer=n,!0!==e&&(t.validPositions={},t.p=0)}function v(e,t,i){var a=-1,r=-1,o=i||h().validPositions;e===n&&(e=-1);for(var s in o){var l=parseInt(s);o[l]&&(t||!0!==o[l].generatedInput)&&(l<=e&&(a=l),l>=e&&(r=l))}return-1!==a&&e-a>1||r<e?a:r}function k(t,i,a,r){var o,s=t,l=e.extend(!0,{},h().validPositions),u=!1;for(h().p=t,o=i-1;o>=s;
7019o--)h().validPositions[o]!==n&&(!0!==a&&(!h().validPositions[o].match.optionality&&function(e){var t=h().validPositions[e];if(t!==n&&null===t.match.fn){var i=h().validPositions[e-1],a=h().validPositions[e+1];return i!==n&&a!==n}return!1}(o)||!1===c.canClearPosition(h(),o,v(n,!0),r,c))||delete h().validPositions[o]);for(g(!0),o=s+1;o<=v();){for(;h().validPositions[s]!==n;)s++;if(o<s&&(o=s+1),h().validPositions[o]===n&&j(o))o++;else{var p=P(o);!1===u&&l[s]&&l[s].match.def===p.match.def?(h().validPositions[s]=e.extend(!0,{},l[s]),h().validPositions[s].input=p.input,delete h().validPositions[o],o++):A(s,p.match.def)?!1!==_(s,p.input||N(o),!0)&&(delete h().validPositions[o],o++,u=!0):j(o)||(o++,s--),s++}}if(!0!==r)for(o=v(-1,!0);h().validPositions[o]&&!0===h().validPositions[o].generatedInput;)delete h().validPositions[o--];g(!0)}function y(e,t,i){for(var a,r=S(e=e>0?e-1:0),o=r.alternation!==n?r.locator[r.alternation].toString().split(","):[],s=0;s<t.length&&(!((a=t[s]).match&&(c.greedy&&!0!==a.match.optionalQuantifier||(!1===a.match.optionality||!1===a.match.newBlockMarker)&&!0!==a.match.optionalQuantifier)&&(r.alternation===n||r.alternation!==a.alternation||a.locator[r.alternation]!==n&&D(a.locator[r.alternation].toString().split(","),o)))||!0===i&&(null!==a.match.fn||/[0-9a-bA-Z]/.test(a.match.def)));s++);return a}function b(e){var t=e.locator[e.alternation];return"string"==typeof t&&t.length>0&&(t=t.split(",")[0]),t!==n?t.toString():""}function x(e,t){for(var i=(e.alternation!=n?e.mloc[b(e)]:e.locator).join("");i.length<t;)i+="0";return i}function P(e,t,i){return h().validPositions[e]||y(e,C(e,t?t.slice():t,i))}function S(e){return h().validPositions[e]?h().validPositions[e]:C(e)[0]}function A(e,t){for(var i=!1,n=C(e),a=0;a<n.length;a++)if(n[a].match&&n[a].match.def===t){i=!0;break}return i}function C(t,i,a){function r(i,a,s,l){function u(s,l,p){function m(t,i){var n=0===e.inArray(t,i.matches);return n||e.each(i.matches,function(e,a){if(!0===a.isQuantifier&&(n=m(t,i.matches[e-1])))return!1}),n}function k(t,i,a){var r,o;if((h().tests[t]||h().validPositions[t])&&e.each(h().tests[t]||[h().validPositions[t]],function(e,t){if(t.mloc[i])return r=t,!1;var s=a!==n?a:t.alternation,l=t.locator[s]!==n?t.locator[s].toString().indexOf(i):-1;(o===n||l<o)&&-1!==l&&(r=t,o=l)}),r){var s=r.locator[r.alternation];return(r.mloc[i]||r.mloc[s]||r.locator).slice((a!==n?a:r.alternation)+1)}return a!==n?k(t,i):n}function y(e,t){function i(e){for(var t,i,n=[],a=0,r=e.length;a<r;a++)if("-"===e.charAt(a))for(i=e.charCodeAt(a+1);++t<i;)n.push(String.fromCharCode(t));else t=e.charCodeAt(a),n.push(e.charAt(a));return n.join("")}return c.regex&&null!==e.match.fn&&null!==t.match.fn?-1!==i(t.match.def.replace(/[\[\]]/g,"")).indexOf(i(e.match.def.replace(/[\[\]]/g,""))):e.match.def===t.match.nativeDef}function b(e,t){if(t===n||e.alternation===t.alternation&&-1===e.locator[e.alternation].toString().indexOf(t.locator[t.alternation])){e.mloc=e.mloc||{};var i=e.locator[e.alternation];if(i!==n){if("string"==typeof i&&(i=i.split(",")[0]),e.mloc[i]===n&&(e.mloc[i]=e.locator.slice()),t!==n){for(var a in t.mloc)"string"==typeof a&&(a=a.split(",")[0]),e.mloc[a]===n&&(e.mloc[a]=t.mloc[a]);e.locator[e.alternation]=Object.keys(e.mloc).join(",")}return!0}e.alternation=n}return!1}if(f>1e4)throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+h().mask;if(f===t&&s.matches===n)return d.push({match:s,locator:l.reverse(),cd:v,mloc:{}}),!0;if(s.matches!==n){if(s.isGroup&&p!==s){if(s=u(i.matches[e.inArray(s,i.matches)+1],l))return!0}else if(s.isOptional){var x=s;if(s=r(s,a,l,p)){if(!m(o=d[d.length-1].match,x))return!0;g=!0,f=t}}else if(s.isAlternator){var P,S=s,A=[],C=d.slice(),M=l.length,E=a.length>0?a.shift():-1;if(-1===E||"string"==typeof E){var w,D=f,O=a.slice(),_=[];if("string"==typeof E)_=E.split(",");else for(w=0;w<S.matches.length;w++)_.push(w.toString());if(h().excludes[t]){for(var j=_.slice(),F=0,T=h().excludes[t].length;F<T;F++)_.splice(_.indexOf(h().excludes[t][F].toString()),1);0===_.length&&(h().excludes[t]=n,_=j)}(!0===c.keepStatic||isFinite(parseInt(c.keepStatic))&&D>=c.keepStatic)&&(_=_.slice(0,1));for(var R=0;R<_.length;R++){w=parseInt(_[R]),d=[],a=k(f,w,M)||O.slice(),S.matches[w]&&u(S.matches[w],[w].concat(l),p)&&(s=!0),P=d.slice(),f=D,d=[];for(var N=0;N<P.length;N++){var G=P[N],B=!1;G.alternation=G.alternation||M,b(G);for(var I=0;I<A.length;I++){var L=A[I];if("string"!=typeof E||G.alternation!==n&&-1!==e.inArray(G.locator[G.alternation].toString(),_)){if(G.match.nativeDef===L.match.nativeDef){B=!0,b(L,G);break}if(y(G,L)){b(G,L)&&(B=!0,A.splice(A.indexOf(L),0,G));break}if(y(L,G)){b(L,G);break}if(z=L,null===(U=G).match.fn&&null!==z.match.fn&&z.match.fn.test(U.match.def,h(),t,!1,c,!1)){b(G,L)&&(B=!0,A.splice(A.indexOf(L),0,G));break}}}B||A.push(G)}}d=C.concat(A),f=t,g=d.length>0,s=A.length>0,a=O.slice()}else s=u(S.matches[E]||i.matches[E],[E].concat(l),p);if(s)return!0}else if(s.isQuantifier&&p!==i.matches[e.inArray(s,i.matches)-1])for(var H=s,V=a.length>0?a.shift():0;V<(isNaN(H.quantifier.max)?V+1:H.quantifier.max)&&f<=t;V++){var K=i.matches[e.inArray(H,i.matches)-1];
7019if(s=u(K,[V].concat(l),K)){if((o=d[d.length-1].match).optionalQuantifier=V>H.quantifier.min-1,m(o,K)){if(V>H.quantifier.min-1){g=!0,f=t;break}return!0}return!0}}else if(s=r(s,a,l,p))return!0}else f++;var U,z}for(var p=a.length>0?a.shift():0;p<i.matches.length;p++)if(!0!==i.matches[p].isQuantifier){var m=u(i.matches[p],[p].concat(s),l);if(m&&f===t)return m;if(f>t)break}}var o,s,l,u,p=h().maskToken,f=i?a:0,m=i?i.slice():[0],d=[],g=!1,v=i?i.join(""):"";if(t>-1){if(i===n){for(var k,b=t-1;(k=h().validPositions[b]||h().tests[b])===n&&b>-1;)b--;k!==n&&b>-1&&(s=b,l=k,u=[],e.isArray(l)||(l=[l]),l.length>0&&(l[0].alternation===n?0===(u=y(s,l.slice()).locator.slice()).length&&(u=l[0].locator.slice()):e.each(l,function(e,t){if(""!==t.def)if(0===u.length)u=t.locator.slice();else for(var i=0;i<u.length;i++)t.locator[i]&&-1===u[i].toString().indexOf(t.locator[i])&&(u[i]+=","+t.locator[i])})),v=(m=u).join(""),f=b)}if(h().tests[t]&&h().tests[t][0].cd===v)return h().tests[t];for(var x=m.shift();x<p.length&&!(r(p[x],m,[x])&&f===t||f>t);x++);}return(0===d.length||g)&&d.push({match:{fn:null,optionality:!0,casing:null,def:"",placeholder:""},locator:[],mloc:{},cd:v}),i!==n&&h().tests[t]?e.extend(!0,[],d):(h().tests[t]=e.extend(!0,[],d),h().tests[t])}function M(){return h()._buffer===n&&(h()._buffer=d(!1,1),h().buffer===n&&(h().buffer=h()._buffer.slice())),h()._buffer}function E(e){return h().buffer!==n&&!0!==e||(h().buffer=d(!0,v(),!0)),h().buffer}function w(e,t,i){var a,r;if(!0===e)g(),e=0,t=i.length;else for(a=e;a<t;a++)delete h().validPositions[a];for(r=e,a=e;a<t;a++)if(g(!0),i[a]!==c.skipOptionalPartCharacter){var o=_(r,i[a],!0,!0);!1!==o&&(g(!0),r=o.caret!==n?o.caret:o.pos+1)}}function D(t,i,a){for(var r,o=c.greedy?i:i.slice(0,1),s=!1,l=a!==n?a.split(","):[],u=0;u<l.length;u++)-1!==(r=t.indexOf(l[u]))&&t.splice(r,1);for(var p=0;p<t.length;p++)if(-1!==e.inArray(t[p],o)){s=!0;break}return s}function O(t,i,a,r,o){var s,l,u,p,f,m,d,k=e.extend(!0,{},h().validPositions),y=!1,x=o!==n?o:v();if(-1===x&&o===n)l=(p=S(s=0)).alternation;else for(;x>=0;x--)if((u=h().validPositions[x])&&u.alternation!==n){if(p&&p.locator[u.alternation]!==u.locator[u.alternation])break;s=x,l=h().validPositions[s].alternation,p=u}if(l!==n){d=parseInt(s),h().excludes[d]=h().excludes[d]||[],!0!==t&&h().excludes[d].push(b(p));var P=[],A=0;for(f=d;f<v(n,!0)+1;f++)(m=h().validPositions[f])&&!0!==m.generatedInput&&/[0-9a-bA-Z]/.test(m.input)?P.push(m.input):f<t&&A++,delete h().validPositions[f];for(;h().excludes[d]&&h().excludes[d].length<10;){var C=-1*A,M=P.slice();for(h().tests[d]=n,g(!0),y=!0;M.length>0;){var E=M.shift();if(E!==c.skipOptionalPartCharacter&&!(y=_(v(n,!0)+1,E,!1,r,!0)))break}if(y&&i!==n){var w=v(t)+1;for(f=d;f<v()+1;f++)((m=h().validPositions[f])===n||null==m.match.fn)&&f<t+C&&C++;y=_((t+=C)>w?w:t,i,a,r,!0)}if(y)break;if(g(),p=S(d),h().validPositions=e.extend(!0,{},k),!h().excludes[d]){y=O(t,i,a,r,d-1);break}var D=b(p);if(-1!==h().excludes[d].indexOf(D)){y=O(t,i,a,r,d-1);break}for(h().excludes[d].push(D),f=d;f<v(n,!0)+1;f++)delete h().validPositions[f]}}return h().excludes[d]=n,y}function _(t,i,r,o,s,l){function u(e){return X?e.begin-e.end>1||e.begin-e.end==1:e.end-e.begin>1||e.end-e.begin==1}function p(i,r,s){var l=!1;return e.each(C(i),function(p,f){var d=f.match;if(E(!0),!1!==(l=null!=d.fn?d.fn.test(r,h(),i,s,c,u(t)):(r===d.def||r===c.skipOptionalPartCharacter)&&""!==d.def&&{c:N(i,d,!0)||d.def,pos:i})){var y=l.c!==n?l.c:r;y=y===c.skipOptionalPartCharacter&&null===d.fn?N(i,d,!0)||d.def:y;var b=i,x=E();if(l.remove!==n&&(e.isArray(l.remove)||(l.remove=[l.remove]),e.each(l.remove.sort(function(e,t){return t-e}),function(e,t){k(t,t+1,!0)})),l.insert!==n&&(e.isArray(l.insert)||(l.insert=[l.insert]),e.each(l.insert.sort(function(e,t){return e-t}),function(e,t){_(t.pos,t.c,!0,o)})),l.refreshFromBuffer){var P=l.refreshFromBuffer;if(w(!0===P?P:P.start,P.end,x),l.pos===n&&l.c===n)return l.pos=v(),!1;if((b=l.pos!==n?l.pos:i)!==i)return l=e.extend(l,_(b,y,!0,o)),!1}else if(!0!==l&&l.pos!==n&&l.pos!==i&&(b=l.pos,w(i,b,E().slice()),b!==i))return l=e.extend(l,_(b,y,!0)),!1;return(!0===l||l.pos!==n||l.c!==n)&&(p>0&&g(!0),m(b,e.extend({}
7019,f,{input:function(t,i,n){switch(c.casing||i.casing){case"upper":t=t.toUpperCase();break;case"lower":t=t.toLowerCase();break;case"title":var r=h().validPositions[n-1];t=0===n||r&&r.input===String.fromCharCode(a.keyCode.SPACE)?t.toUpperCase():t.toLowerCase();break;default:if(e.isFunction(c.casing)){var o=Array.prototype.slice.call(arguments);o.push(h().validPositions),t=c.casing.apply(this,o)}}return t}(y,d,b)}),o,u(t))||(l=!1),!1)}}),l}function f(t,i,a){var r;if(t===n)for(t=i-1;t>0&&!h().validPositions[t];t--);for(var o=t;o<i;o++)if(h().validPositions[o]===n&&!j(o,!0)){var s=0==o?S(o):h().validPositions[o-1];if(s){var l,u=x(s),c=C(o).slice(),p=n,f=S(o);if(""===c[c.length-1].match.def&&c.pop(),e.each(c,function(e,t){l=x(t,u.length);var i=Math.abs(l-u);(p===n||i<p)&&null===t.match.fn&&!0!==t.match.optionality&&!0!==t.match.optionalQuantifier&&(p=i,f=t)}),(f=e.extend({},f,{input:N(o,f.match,!0)||f.match.def})).generatedInput=!0,m(o,f,!0),!0!==a){var d=h().validPositions[i].input;h().validPositions[i]=n,r=_(i,d,!0,!0)}}}return r}function m(t,i,a,r){if(r||c.insertMode&&h().validPositions[t]!==n&&a===n){var o,s=e.extend(!0,{},h().validPositions),l=v(n,!0);for(o=t;o<=l;o++)delete h().validPositions[o];h().validPositions[t]=e.extend(!0,{},i);var u,p=!0,m=h().validPositions,d=!1;for(o=u=t;o<=l;o++){var k=s[o];if(k!==n)for(var y=u;""!==S(y).match.def&&(null===k.match.fn&&m[o]&&(!0===m[o].match.optionalQuantifier||!0===m[o].match.optionality)||null!=k.match.fn);){if(y++,!1===d&&s[y]&&s[y].match.def===k.match.def)h().validPositions[y]=e.extend(!0,{},s[y]),h().validPositions[y].input=k.input,f(n,y,!0),u=y,p=!0;else if(A(y,k.match.def)){var b=_(y,k.input,!0,!0);p=!1!==b,u=b.caret||b.insert?v():y,d=!0}else if(!(p=!0===k.generatedInput)&&""===S(y).match.def)break;if(p)break}if(!p)break}if(!p)return h().validPositions=e.extend(!0,{},s),g(!0),!1}else h().validPositions[t]=e.extend(!0,{},i);return g(!0),!0}r=!0===r;var d=t;t.begin!==n&&(d=X&&!u(t)?t.end:t.begin);var y=!0,b=e.extend(!0,{},h().validPositions);if(e.isFunction(c.preValidation)&&!r&&!0!==o&&!0!==l&&(y=c.preValidation(E(),d,i,u(t),c)),!0===y){if(f(n,d,!0),u(t)&&(K(0,a.keyCode.DELETE,t,!0,!0),d=h().p),($===n||d<$)&&(y=p(d,i,r),(!r||!0===o)&&!1===y&&!0!==l)){var P=h().validPositions[d];if(!P||null!==P.match.fn||P.match.def!==i&&i!==c.skipOptionalPartCharacter){if((c.insertMode||h().validPositions[F(d)]===n)&&!j(d,!0))for(var M=d+1,D=F(d);M<=D;M++)if(!1!==(y=p(M,i,r))){y=f(d,y.pos!==n?y.pos:M)||y,d=M;break}}else y={caret:F(d)}}!1!==y||null===c.keepStatic||!1===c.keepStatic||r||!0===s||(y=O(d,i,r,o)),!0===y&&(y={pos:d})}if(e.isFunction(c.postValidation)&&!1!==y&&!r&&!0!==o&&!0!==l){var T=c.postValidation(E(!0),y,c);if(T!==n){if(T.refreshFromBuffer&&T.buffer){var R=T.refreshFromBuffer;w(!0===R?R:R.start,R.end,T.buffer)}y=!0===T?y:T}}return y&&y.pos===n&&(y.pos=d),!1!==y&&!0!==l||(g(!0),h().validPositions=e.extend(!0,{},b)),y}function j(e,t){var i=P(e).match;if(""===i.def&&(i=S(e).match),null!=i.fn)return i.fn;if(!0!==t&&e>-1){var n=C(e);return n.length>1+(""===n[n.length-1].match.def?1:0)}return!1}function F(e,t){for(var i=e+1;""!==S(i).match.def&&(!0===t&&(!0!==S(i).match.newBlockMarker||!j(i))||!0!==t&&!j(i));)i++;return i}function T(e,t){var i,n=e;if(n<=0)return 0;for(;--n>0&&(!0===t&&!0!==S(n).match.newBlockMarker||!0!==t&&!j(n)&&((i=C(n)).length<2||2===i.length&&""===i[1].match.def)););return n}function R(t,i,a,r,o){if(r&&e.isFunction(c.onBeforeWrite)){var s=c.onBeforeWrite.call(J,r,i,a,c);if(s){if(s.refreshFromBuffer){var l=s.refreshFromBuffer;w(!0===l?l:l.start,l.end,s.buffer||i),i=E(!0)}a!==n&&(a=s.caret!==n?s.caret:a)}}t!==n&&(t.inputmask._valueSet(i.join("")),a===n||r!==n&&"blur"===r.type?z(t,a,0===i.length):I(t,a),!0===o&&(te=!0,e(t).trigger("input")))}function N(t,i,a){if((i=i||S(t).match).placeholder!==n||!0===a)return e.isFunction(i.placeholder)?i.placeholder(c):i.placeholder;if(null===i.fn){if(t>-1&&h().validPositions[t]===n){var r,o=C(t),s=[];if(o.length>1+(""===o[o.length-1].match.def?1:0))for(var l=0;l<o.length;l++)if(!0!==o[l].match.optionality&&!0!==o[l].match.optionalQuantifier&&(null===o[l].match.fn||r===n||!1!==o[l].match.fn.test(r.match.def,h(),t,!0,c))&&(s.push(o[l]),null===o[l].match.fn&&(r=o[l]),s.length>1&&/[0-9a-bA-Z]/.test(s[0].match.def)))return c.placeholder.charAt(t%c.placeholder.length)}return i.def}return c.placeholder.charAt(t%c.placeholder.length)}function G(t,i,r,o,s){var l=o.slice(),u="",p=-1,f=n;if(g(),r||!0===c.autoUnmask)p=F(p);else{var m=M().slice(0,F(-1)).join(""),k=l.join("").match(new RegExp("^"+a.escapeRegex(m),"g"));k&&k.length>0&&(l.splice(0,k.length*m.length),p=F(p))}-1===p?(h().p=F(p),p=0):h().p=p,e.each(l,function(i,a){if(a!==n)if(h().validPositions[i]===n&&l[i]===N(i)&&j(i,!0)&&!1===_(i,l[i],!0,n,n,!0))h().p++;else{var o=new e.Event("_checkval");
7019o.which=a.charCodeAt(0),u+=a;var s=v(n,!0),m=S(s),g=P(s+1,m?m.locator.slice():n,s);if(y=p,b=u,-1===d(!0,0,!1).slice(y,F(y)).join("").indexOf(b)||j(y)||S(y).match.nativeDef!==b.charAt(0)&&(" "!==S(y).match.nativeDef||S(y+1).match.nativeDef!==b.charAt(0))||r||c.autoUnmask){var k=r?i:null==g.match.fn&&g.match.optionality&&s+1<h().p?s+1:h().p;(f=oe.keypressEvent.call(t,o,!0,!1,r,k))&&(p=k+1,u="")}else f=oe.keypressEvent.call(t,o,!0,!1,!0,s+1);R(n,E(),f.forwardPosition,o,!1)}var y,b}),i&&R(t,E(),f?f.forwardPosition:n,s||new e.Event("checkval"),s&&"input"===s.type)}function B(t){if(t){if(t.inputmask===n)return t.value;t.inputmask&&t.inputmask.refreshValue&&oe.setValueEvent.call(t)}var i=[],a=h().validPositions;for(var r in a)a[r].match&&null!=a[r].match.fn&&i.push(a[r].input);var o=0===i.length?"":(X?i.reverse():i).join("");if(e.isFunction(c.onUnMask)){var s=(X?E().slice().reverse():E()).join("");o=c.onUnMask.call(J,s,o,c)}return o}function I(a,r,o,s){function l(e){return!0===s||!X||"number"!=typeof e||c.greedy&&""===c.placeholder||(e=a.inputmask.__valueGet.call(a).length-e),e}var u;if(r===n)return a.setSelectionRange?(r=a.selectionStart,o=a.selectionEnd):t.getSelection?(u=t.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==a&&u.commonAncestorContainer!==a||(r=u.startOffset,o=u.endOffset):i.selection&&i.selection.createRange&&(o=(r=0-(u=i.selection.createRange()).duplicate().moveStart("character",-a.inputmask._valueGet().length))+u.text.length),{begin:l(r),end:l(o)};if(e.isArray(r)&&(o=X?r[0]:r[1],r=X?r[1]:r[0]),r.begin!==n&&(o=X?r.begin:r.end,r=X?r.end:r.begin),"number"==typeof r){r=l(r),o="number"==typeof(o=l(o))?o:r;var p=parseInt(((a.ownerDocument.defaultView||t).getComputedStyle?(a.ownerDocument.defaultView||t).getComputedStyle(a,null):a.currentStyle).fontSize)*o;if(a.scrollLeft=p>a.scrollWidth?p:0,!1===c.insertMode&&r===o&&o++,a.inputmask.caretPos={begin:r,end:o},a.setSelectionRange)a.selectionStart=r,a.selectionEnd=o;else if(t.getSelection){if(u=i.createRange(),a.firstChild===n||null===a.firstChild){var f=i.createTextNode("");a.appendChild(f)}u.setStart(a.firstChild,r<a.inputmask._valueGet().length?r:a.inputmask._valueGet().length),u.setEnd(a.firstChild,o<a.inputmask._valueGet().length?o:a.inputmask._valueGet().length),u.collapse(!0);var m=t.getSelection();m.removeAllRanges(),m.addRange(u)}else a.createTextRange&&((u=a.createTextRange()).collapse(!0),u.moveEnd("character",o),u.moveStart("character",r),u.select());z(a,{begin:r,end:o})}}function L(t){var i,a,r=E(),o=r.length,s=v(),l={},u=h().validPositions[s],c=u!==n?u.locator.slice():n;for(i=s+1;i<r.length;i++)c=(a=P(i,c,i-1)).locator.slice(),l[i]=e.extend(!0,{},a);var p=u&&u.alternation!==n?u.locator[u.alternation]:n;for(i=o-1;i>s&&((a=l[i]).match.optionality||a.match.optionalQuantifier&&a.match.newBlockMarker||p&&(p!==l[i].locator[u.alternation]&&null!=a.match.fn||null===a.match.fn&&a.locator[u.alternation]&&D(a.locator[u.alternation].toString().split(","),p.toString().split(","))&&""!==C(i)[0].def))&&r[i]===N(i,a.match);i--)o--;return t?{l:o,def:l[o]?l[o].match:n}:o}function H(e){for(var t,i=L(),a=e.length,r=h().validPositions[v()];i<a&&!j(i,!0)&&(t=r!==n?P(i,r.locator.slice(""),r):S(i))&&!0!==t.match.optionality&&(!0!==t.match.optionalQuantifier&&!0!==t.match.newBlockMarker||i+1===a&&""===(r!==n?P(i+1,r.locator.slice(""),r):S(i+1)).match.def);)i++;for(;(t=h().validPositions[i-1])&&t&&t.match.optionality&&t.input===c.skipOptionalPartCharacter;)i--;return e.splice(i),e}function V(t){if(e.isFunction(c.isComplete))return c.isComplete(t,c);if("*"===c.repeat)return n;var i=!1,a=L(!0),r=T(a.l);if(a.def===n||a.def.newBlockMarker||a.def.optionality||a.def.optionalQuantifier){i=!0;for(var o=0;o<=r;o++){var s=P(o).match;if(null!==s.fn&&h().validPositions[o]===n&&!0!==s.optionality&&!0!==s.optionalQuantifier||null===s.fn&&t[o]!==N(o,s)){i=!1;break}}}return i}function K(e,t,i,r,o){if((c.numericInput||X)&&(t===a.keyCode.BACKSPACE?t=a.keyCode.DELETE:t===a.keyCode.DELETE&&(t=a.keyCode.BACKSPACE),X)){var s=i.end;i.end=i.begin,i.begin=s}if(t===a.keyCode.BACKSPACE&&(i.end-i.begin<1||!1===c.insertMode)?(i.begin=T(i.begin),h().validPositions[i.begin]!==n&&h().validPositions[i.begin].input===c.groupSeparator&&i.begin--):t===a.keyCode.DELETE&&i.begin===i.end&&(i.end=j(i.end,!0)&&h().validPositions[i.end]&&h().validPositions[i.end].input!==c.radixPoint?i.end+1:F(i.end)+1,h().validPositions[i.begin]!==n&&h().validPositions[i.begin].input===c.groupSeparator&&i.end++),k(i.begin,i.end,!1,r),!0!==r&&null!==c.keepStatic&&!1!==c.keepStatic){var l=O(!0);l&&(i.begin=l.caret!==n?l.caret:l.pos?F(l.pos.begin?l.pos.begin:l.pos):v(-1,!0))}var u=v(i.begin,!0);if(u<i.begin||-1===i.begin)h().p=F(u);else if(!0!==r&&(h().p=i.begin,!0!==o))for(;h().p<u&&h().validPositions[h().p]===n;)h().p++}function U(n){var a=(n.ownerDocument.defaultView||t).getComputedStyle(n,null),r=i.createElement("div");r.style.width=a.width,r.style.textAlign=a.textAlign,q=i.createElement("div"),n.inputmask.colorMask=q,q.className="im-colormask",n.parentNode.insertBefore(q,n),n.parentNode.removeChild(n),q.appendChild(r),q.appendChild(n),n.style.left=r.offsetLeft+"px",e(n).on("click",function(e){return I(n,function(e){var t,r=i.createElement("span");for(var o in a)isNaN(o)&&-1!==o.indexOf("font")&&(r.style[o]=a[o]);r.style.textTransform=a.textTransform,r.style.letterSpacing=a.letterSpacing,r.style.position="absolute",r.style.height="auto",r.style.width="auto",r.style.visibility="hidden",r.style.whiteSpace="nowrap",i.body.appendChild(r);var s,l=n.inputmask._valueGet(),u=0;for(t=0,s=l.length;t<=s;t++){if(r.innerHTML+=l.charAt(t)||"_",r.offsetWidth>=e){var c=e-u,p=r.offsetWidth-e;r.innerHTML=l.charAt(t),t=(c-=r.offsetWidth/3)<p?t-1:t;break}u=r.offsetWidth}return i.body.removeChild(r),t}(e.clientX)),oe.clickEvent.call(n,[e])}),e(n).on("keydown",function(e){e.shiftKey||!1===c.insertMode||setTimeout(function(){z(n)},0)})}function z(e,t,a){function r(e){if(e===n&&(e=""),p||null!==o.fn&&s.input!==n)if(p&&(null!==o.fn&&s.input!==n||""===o.def)){p=!1;var t=u.length;u[t-1]=u[t-1]+"</span>",u.push(e)}else u.push(e);else p=!0,u.push("<span class='im-static'>"+e)}var o,s,l,u=[],p=!1,f=0;if(q!==n){var m=E();if(t===n?t=I(e):t.begin===n&&(t={begin:t,end:t}),!0!==a){var d=v();
7019do{h().validPositions[f]?(s=h().validPositions[f],o=s.match,l=s.locator.slice(),r(m[f])):(s=P(f,l,f-1),o=s.match,l=s.locator.slice(),(!1===c.jitMasking||f<d||"number"==typeof c.jitMasking&&isFinite(c.jitMasking)&&c.jitMasking>f)&&r(N(f,o))),f++}while(($===n||f<$)&&(null!==o.fn||""!==o.def)||d>f||p);p&&r(),i.activeElement===e&&(u.splice(t.begin,0,t.begin===t.end?'<mark class="im-caret" style="border-right-width: 1px;border-right-style: solid;">':'<mark class="im-caret-select">'),u.splice(t.end+1,0,"</mark>"))}var g=q.getElementsByTagName("div")[0];g.innerHTML=u.join(""),e.inputmask.positionColorMask(e,g)}}s=s||this.maskset,c=c||this.opts;var Q,W,$,q,Z,J=this,Y=this.el,X=this.isRTL,ee=!1,te=!1,ie=!1,ne=!1,ae=!1,re={on:function(t,i,r){var o=function(t){var i=this;if(i.inputmask===n&&"FORM"!==this.nodeName){var o=e.data(i,"_inputmask_opts");o?new a(o).mask(i):re.off(i)}else{if("setvalue"===t.type||"FORM"===this.nodeName||!(i.disabled||i.readOnly&&!("keydown"===t.type&&t.ctrlKey&&67===t.keyCode||!1===c.tabThrough&&t.keyCode===a.keyCode.TAB))){switch(t.type){case"input":if(!0===te)return te=!1,t.preventDefault();p&&(ae=!0);break;case"keydown":ee=!1,te=!1;break;case"keypress":if(!0===ee)return t.preventDefault();ee=!0;break;case"click":if(f||m){var s=arguments;return setTimeout(function(){r.apply(i,s)},0),!1}}var l=r.apply(i,arguments);return ae&&(ae=!1,setTimeout(function(){I(i,i.inputmask.caretPos,n,!0)})),!1===l&&(t.preventDefault(),t.stopPropagation()),l}t.preventDefault()}};t.inputmask.events[i]=t.inputmask.events[i]||[],t.inputmask.events[i].push(o),-1!==e.inArray(i,["submit","reset"])?null!==t.form&&e(t.form).on(i,o):e(t).on(i,o)},off:function(t,i){var n;t.inputmask&&t.inputmask.events&&(i?(n=[])[i]=t.inputmask.events[i]:n=t.inputmask.events,e.each(n,function(i,n){for(;n.length>0;){var a=n.pop();-1!==e.inArray(i,["submit","reset"])?null!==t.form&&e(t.form).off(i,a):e(t).off(i,a)}delete t.inputmask.events[i]}))}},oe={keydownEvent:function(t){var i=this,n=e(i),r=t.keyCode,o=I(i);if(r===a.keyCode.BACKSPACE||r===a.keyCode.DELETE||m&&r===a.keyCode.BACKSPACE_SAFARI||t.ctrlKey&&r===a.keyCode.X&&!l("cut"))t.preventDefault(),K(0,r,o),R(i,E(!0),h().p,t,i.inputmask._valueGet()!==E().join("")),i.inputmask._valueGet()===M().join("")?n.trigger("cleared"):!0===V(E())&&n.trigger("complete");else if(r===a.keyCode.END||r===a.keyCode.PAGE_DOWN){t.preventDefault();var s=F(v());c.insertMode||s!==h().maskLength||t.shiftKey||s--,I(i,t.shiftKey?o.begin:s,s,!0)}else r===a.keyCode.HOME&&!t.shiftKey||r===a.keyCode.PAGE_UP?(t.preventDefault(),I(i,0,t.shiftKey?o.begin:0,!0)):(c.undoOnEscape&&r===a.keyCode.ESCAPE||90===r&&t.ctrlKey)&&!0!==t.altKey?(G(i,!0,!1,Q.split("")),n.trigger("click")):r!==a.keyCode.INSERT||t.shiftKey||t.ctrlKey?!0===c.tabThrough&&r===a.keyCode.TAB?(!0===t.shiftKey?(null===S(o.begin).match.fn&&(o.begin=F(o.begin)),o.end=T(o.begin,!0),o.begin=T(o.end,!0)):(o.begin=F(o.begin,!0),o.end=F(o.begin,!0),o.end<h().maskLength&&o.end--),o.begin<h().maskLength&&(t.preventDefault(),I(i,o.begin,o.end))):t.shiftKey||!1===c.insertMode&&(r===a.keyCode.RIGHT?setTimeout(function(){var e=I(i);I(i,e.begin)},0):r===a.keyCode.LEFT&&setTimeout(function(){var e=I(i);I(i,X?e.begin+1:e.begin-1)},0)):(c.insertMode=!c.insertMode,I(i,c.insertMode||o.begin!==h().maskLength?o.begin:o.begin-1));c.onKeyDown.call(this,t,E(),I(i).begin,c),ie=-1!==e.inArray(r,c.ignorables)},keypressEvent:function(t,i,r,o,s){var l=this,u=e(l),p=t.which||t.charCode||t.keyCode;if(!(!0===i||t.ctrlKey&&t.altKey)&&(t.ctrlKey||t.metaKey||ie))return p===a.keyCode.ENTER&&Q!==E().join("")&&(Q=E().join(""),setTimeout(function(){u.trigger("change")},0)),!0;if(p){46===p&&!1===t.shiftKey&&""!==c.radixPoint&&(p=c.radixPoint.charCodeAt(0));var f,m=i?{begin:s,end:s}:I(l),d=String.fromCharCode(p);h().writeOutBuffer=!0;var v=_(m,d,o);if(!1!==v&&(g(!0),f=v.caret!==n?v.caret:F(v.pos.begin?v.pos.begin:v.pos),h().p=f),f=c.numericInput&&v.caret===n?T(f):f,!1!==r&&(setTimeout(function(){c.onKeyValidation.call(l,p,v,c)},0),h().writeOutBuffer&&!1!==v)){var k=E();R(l,k,f,t,!0!==i),!0!==i&&setTimeout(function(){!0===V(k)&&u.trigger("complete")},0)}if(t.preventDefault(),i)return!1!==v&&(v.forwardPosition=f),v}},pasteEvent:function(i){var n,a=this,r=i.originalEvent||i,o=e(a),s=a.inputmask._valueGet(!0),l=I(a);X&&(n=l.end,l.end=l.begin,l.begin=n);var u=s.substr(0,l.begin),p=s.substr(l.end,s.length);if(u===(X?M().reverse():M()).slice(0,l.begin).join("")&&(u=""),p===(X?M().reverse():M()).slice(l.end).join("")&&(p=""),X&&(n=u,u=p,p=n),t.clipboardData&&t.clipboardData.getData)s=u+t.clipboardData.getData("Text")+p;else{if(!r.clipboardData||!r.clipboardData.getData)return!0;s=u+r.clipboardData.getData("text/plain")+p}var f=s;if(e.isFunction(c.onBeforePaste)){if(!1===(f=c.onBeforePaste.call(J,s,c)))return i.preventDefault();f||(f=s)}return G(a,!1,!1,X?f.split("").reverse():f.toString().split("")),R(a,E(),F(v()),i,Q!==E().join("")),!0===V(E())&&o.trigger("complete"),i.preventDefault()},inputFallBackEvent:function(t){var i,n,r=this,o=r.inputmask._valueGet();if(E().join("")!==o){var s=I(r);if(n=s,"."===(i=o).charAt(n.begin-1)&&""!==c.radixPoint&&((i=i.split(""))[n.begin-1]=c.radixPoint.charAt(0),i=i.join("")),o=function(e,t,i){if(f){var n=t.replace(E().join(""),"");if(1===n.length){var a=t.split("");
7019a.splice(i.begin,0,n),t=a.join("")}}return t}(0,o=i,s),E().join("")!==o){var l=E().join(""),u=o.length>l.length?-1:0,p=o.substr(0,s.begin),m=o.substr(s.begin),d=l.substr(0,s.begin+u),h=l.substr(s.begin+u),g=s,v="",k=!1;if(p!==d){for(var y=(k=p.length>=d.length)?p.length:d.length,b=0;p.charAt(b)===d.charAt(b)&&b<y;b++);k&&(0===u&&(g.begin=b),v+=p.slice(b,g.end))}if(m!==h&&(m.length>h.length?v+=m.slice(0,1):m.length<h.length&&(g.end+=h.length-m.length,k||""===c.radixPoint||""!==m||p.charAt(g.begin+u-1)!==c.radixPoint||(g.begin--,v=c.radixPoint))),R(r,E(),{begin:g.begin+u,end:g.end+u}),v.length>0)e.each(v.split(""),function(t,i){var n=new e.Event("keypress");n.which=i.charCodeAt(0),ie=!1,oe.keypressEvent.call(r,n)});else{g.begin===g.end-1&&(g.begin=T(g.begin+1),g.begin===g.end-1?I(r,g.begin):I(r,g.begin,g.end));var x=new e.Event("keydown");x.keyCode=a.keyCode.DELETE,oe.keydownEvent.call(r,x),!1===c.insertMode&&I(r,I(r).begin-1)}t.preventDefault()}}},setValueEvent:function(t){this.inputmask.refreshValue=!1;var i=this.inputmask._valueGet(!0);e.isFunction(c.onBeforeMask)&&(i=c.onBeforeMask.call(J,i,c)||i),i=i.split(""),G(this,!0,!1,X?i.reverse():i),Q=E().join(""),(c.clearMaskOnLostFocus||c.clearIncomplete)&&this.inputmask._valueGet()===M().join("")&&this.inputmask._valueSet("")},focusEvent:function(e){var t=this,i=t.inputmask._valueGet();c.showMaskOnFocus&&(!c.showMaskOnHover||c.showMaskOnHover&&""===i)&&(t.inputmask._valueGet()!==E().join("")?R(t,E(),F(v())):!1===ne&&I(t,F(v()))),!0===c.positionCaretOnTab&&!1===ne&&oe.clickEvent.apply(t,[e,!0]),Q=E().join("")},mouseleaveEvent:function(e){if(ne=!1,c.clearMaskOnLostFocus&&i.activeElement!==this){var t=E().slice(),n=this.inputmask._valueGet();n!==this.getAttribute("placeholder")&&""!==n&&(-1===v()&&n===M().join("")?t=[]:H(t),R(this,t))}},clickEvent:function(t,a){var r=this;setTimeout(function(){if(i.activeElement===r){var t=I(r);if(a&&(X?t.end=t.begin:t.begin=t.end),t.begin===t.end)switch(c.positionCaretOnClick){case"none":break;case"select":I(r,0,E().length);break;case"radixFocus":if(function(t){if(""!==c.radixPoint){var i=h().validPositions;if(i[t]===n||i[t].input===N(t)){if(t<F(-1))return!0;var a=e.inArray(c.radixPoint,E());if(-1!==a){for(var r in i)if(a<r&&i[r].input!==N(r))return!1;return!0}}}return!1}(t.begin)){var o=E().join("").indexOf(c.radixPoint);I(r,c.numericInput?F(o):o);break}default:var s=t.begin,l=v(s,!0),u=F(l);if(s<u)I(r,j(s,!0)||j(s-1,!0)?s:F(s));
7019else{var p=h().validPositions[l],f=P(u,p?p.match.locator:n,p),m=N(u,f.match);if(""!==m&&E()[u]!==m&&!0!==f.match.optionalQuantifier&&!0!==f.match.newBlockMarker||!j(u,!0)&&f.match.def===m){var d=F(u);(s>=d||s===u)&&(u=d)}I(r,u)}}}},0)},dblclickEvent:function(e){var t=this;setTimeout(function(){I(t,0,F(v()))},0)},cutEvent:function(n){var r=e(this),o=I(this),s=n.originalEvent||n,l=t.clipboardData||s.clipboardData,u=X?E().slice(o.end,o.begin):E().slice(o.begin,o.end);l.setData("text",X?u.reverse().join(""):u.join("")),i.execCommand&&i.execCommand("copy"),K(0,a.keyCode.DELETE,o),R(this,E(),h().p,n,Q!==E().join("")),this.inputmask._valueGet()===M().join("")&&r.trigger("cleared")},blurEvent:function(t){var i=e(this);if(this.inputmask){var a=this.inputmask._valueGet(),r=E().slice();""===a&&q===n||(c.clearMaskOnLostFocus&&(-1===v()&&a===M().join("")?r=[]:H(r)),!1===V(r)&&(setTimeout(function(){i.trigger("incomplete")},0),c.clearIncomplete&&(g(),r=c.clearMaskOnLostFocus?[]:M().slice())),R(this,r,n,t)),Q!==E().join("")&&(Q=r.join(""),i.trigger("change"))}},mouseenterEvent:function(e){ne=!0,i.activeElement!==this&&c.showMaskOnHover&&this.inputmask._valueGet()!==E().join("")&&R(this,E())},submitEvent:function(e){Q!==E().join("")&&W.trigger("change"),c.clearMaskOnLostFocus&&-1===v()&&Y.inputmask._valueGet&&Y.inputmask._valueGet()===M().join("")&&Y.inputmask._valueSet(""),c.removeMaskOnSubmit&&(Y.inputmask._valueSet(Y.inputmask.unmaskedvalue(),!0),setTimeout(function(){R(Y,E())},0))},resetEvent:function(e){Y.inputmask.refreshValue=!0,setTimeout(function(){W.trigger("setvalue")},0)}};if(a.prototype.positionColorMask=function(e,t){e.style.left=t.offsetLeft+"px"},r!==n)switch(r.action){case"isComplete":return Y=r.el,V(E());case"unmaskedvalue":return Y!==n&&r.value===n||(Z=r.value,Z=(e.isFunction(c.onBeforeMask)&&c.onBeforeMask.call(J,Z,c)||Z).split(""),G(n,!1,!1,X?Z.reverse():Z),e.isFunction(c.onBeforeWrite)&&c.onBeforeWrite.call(J,n,E(),0,c)),B(Y);case"mask":!function(t){re.off(t);var a=function(t,a){var r=t.getAttribute("type"),s="INPUT"===t.tagName&&-1!==e.inArray(r,a.supportsInputType)||t.isContentEditable||"TEXTAREA"===t.tagName;if(!s)if("INPUT"===t.tagName){var l=i.createElement("input");l.setAttribute("type",r),s="text"===l.type,l=null}else s="partial";return!1!==s?function(t){function r(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():-1!==v()||!0!==a.nullable?i.activeElement===this&&a.clearMaskOnLostFocus?(X?H(E().slice()).reverse():H(E().slice())).join(""):l.call(this):"":l.call(this)}function s(t){u.call(this,t),this.inputmask&&e(this).trigger("setvalue")}var l,u,c;if(!t.inputmask.__valueGet){if(!0!==a.noValuePatching){if(Object.getOwnPropertyDescriptor){"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===o("test".__proto__)?function(e){return e.__proto__}:function(e){return e.constructor.prototype});var p=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value"):n;p&&p.get&&p.set?(l=p.get,u=p.set,Object.defineProperty(t,"value",{get:r,set:s,configurable:!0})):"INPUT"!==t.tagName&&(l=function(){return this.textContent},u=function(e){this.textContent=e},Object.defineProperty(t,"value",{get:r,set:s,configurable:!0}))}else i.__lookupGetter__&&t.__lookupGetter__("value")&&(l=t.__lookupGetter__("value"),u=t.__lookupSetter__("value"),t.__defineGetter__("value",r),t.__defineSetter__("value",s));t.inputmask.__valueGet=l,t.inputmask.__valueSet=u}t.inputmask._valueGet=function(e){return X&&!0!==e?l.call(this.el).split("").reverse().join(""):l.call(this.el)},t.inputmask._valueSet=function(e,t){u.call(this.el,null===e||e===n?"":!0!==t&&X?e.split("").reverse().join(""):e)},l===n&&(l=function(){return this.value},u=function(e){this.value=e},function(t){if(e.valHooks&&(e.valHooks[t]===n||!0!==e.valHooks[t].inputmaskpatch)){var i=e.valHooks[t]&&e.valHooks[t].get?e.valHooks[t].get:function(e){return e.value},r=e.valHooks[t]&&e.valHooks[t].set?e.valHooks[t].set:function(e,t){return e.value=t,e};e.valHooks[t]={get:function(e){if(e.inputmask){if(e.inputmask.opts.autoUnmask)return e.inputmask.unmaskedvalue();var t=i(e);return-1!==v(n,n,e.inputmask.maskset.validPositions)||!0!==a.nullable?t:""}return i(e)},set:function(t,i){var n,a=e(t);return n=r(t,i),t.inputmask&&a.trigger("setvalue"),n},inputmaskpatch:!0}}}(t.type),c=t,re.on(c,"mouseenter",function(t){var i=e(this);this.inputmask._valueGet()!==E().join("")&&i.trigger("setvalue")}))}}(t):t.inputmask=n,s}(t,c);if(!1!==a&&(W=e(Y=t),-1===($=Y!==n?Y.maxLength:n)&&($=n),!0===c.colorMask&&U(Y),p&&("inputmode"in Y&&(Y.inputmode=c.inputmode,Y.setAttribute("inputmode",c.inputmode)),!0===c.disablePredictiveText&&("autocorrect"in Y?Y.autocorrect=!1:(!0!==c.colorMask&&U(Y),Y.type="password"))),!0===a&&(re.on(Y,"submit",oe.submitEvent),re.on(Y,"reset",oe.resetEvent),re.on(Y,"mouseenter",oe.mouseenterEvent),re.on(Y,"blur",oe.blurEvent),re.on(Y,"focus",oe.focusEvent),re.on(Y,"mouseleave",oe.mouseleaveEvent),!0!==c.colorMask&&re.on(Y,"click",oe.clickEvent),re.on(Y,"dblclick",oe.dblclickEvent),re.on(Y,"paste",oe.pasteEvent),re.on(Y,"dragdrop",oe.pasteEvent),re.on(Y,"drop",oe.pasteEvent),re.on(Y,"cut",oe.cutEvent),re.on(Y,"complete",c.oncomplete),re.on(Y,"incomplete",c.onincomplete),re.on(Y,"cleared",c.oncleared),p||!0===c.inputEventOnly?Y.removeAttribute("maxLength"):(re.on(Y,"keydown",oe.keydownEvent),re.on(Y,"keypress",oe.keypressEvent)),re.on(Y,"compositionstart",e.noop),re.on(Y,"compositionupdate",e.noop),re.on(Y,"compositionend",e.noop),re.on(Y,"keyup",e.noop),re.on(Y,"input",oe.inputFallBackEvent),re.on(Y,"beforeinput",e.noop)),re.on(Y,"setvalue",oe.setValueEvent),Q=M().join(""),""!==Y.inputmask._valueGet(!0)||!1===c.clearMaskOnLostFocus||i.activeElement===Y)){var r=e.isFunction(c.onBeforeMask)&&c.onBeforeMask.call(J,Y.
7019inputmask._valueGet(!0),c)||Y.inputmask._valueGet(!0);""!==r&&G(Y,!0,!1,X?r.split("").reverse():r.split(""));var s=E().slice();Q=s.join(""),!1===V(s)&&c.clearIncomplete&&g(),c.clearMaskOnLostFocus&&i.activeElement!==Y&&(-1===v()?s=[]:H(s)),R(Y,s),i.activeElement===Y&&I(Y,F(v()))}}(Y);break;case"format":return Z=(e.isFunction(c.onBeforeMask)&&c.onBeforeMask.call(J,r.value,c)||r.value).split(""),G(n,!0,!1,X?Z.reverse():Z),r.metadata?{value:X?E().slice().reverse().join(""):E().join(""),metadata:u.call(this,{action:"getmetadata"},s,c)}:X?E().slice().reverse().join(""):E().join("");case"isValid":r.value?(Z=r.value.split(""),G(n,!0,!0,X?Z.reverse():Z)):r.value=E().join("");for(var se=E(),le=L(),ue=se.length-1;ue>le&&!j(ue);ue--);return se.splice(le,ue+1-le),V(se)&&r.value===E().join("");case"getemptymask":return M().join("");case"remove":return Y&&Y.inputmask&&(W=e(Y),Y.inputmask._valueSet(c.autoUnmask?B(Y):Y.inputmask._valueGet(!0)),re.off(Y),Y.inputmask.colorMask&&((q=Y.inputmask.colorMask).removeChild(Y),q.parentNode.insertBefore(Y,q),q.parentNode.removeChild(q)),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Y),"value")&&Y.inputmask.__valueGet&&Object.defineProperty(Y,"value",{get:Y.inputmask.__valueGet,set:Y.inputmask.__valueSet,configurable:!0}):i.__lookupGetter__&&Y.__lookupGetter__("value")&&Y.inputmask.__valueGet&&(Y.__defineGetter__("value",Y.inputmask.__valueGet),Y.__defineSetter__("value",Y.inputmask.__valueSet)),Y.inputmask=n),Y;case"getmetadata":if(e.isArray(s.metadata)){var ce=d(!0,0,!1).join("");return e.each(s.metadata,function(e,t){if(t.mask===ce)return ce=t,!1}),ce}return s.metadata}}var c=navigator.userAgent,p=l("touchstart"),f=/iemobile/i.test(c),m=/iphone/i.test(c)&&!f;return a.prototype={dataAttribute:"data-inputmask",defaults:{placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:e.noop,onincomplete:e.noop,oncleared:e.noop,repeat:0,greedy:!0,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,clearIncomplete:!1,alias:null,onKeyDown:e.noop,onBeforeMask:null,onBeforePaste:function(t,i){return e.isFunction(i.onBeforeMask)?i.onBeforeMask.call(this,t,i):t},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:e.noop,skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",radixPointDefinitionSymbol:n,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","password","search"],ignorables:[8,9,13,19,27,33,34,35,36,37,38,39,40,45,46,93,112,113,114,115,116,117,118,119,120,121,122,123,0,229],isComplete:null,canClearPosition:e.noop,preValidation:null,postValidation:null,staticDefinitionSymbol:n,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"verbatim",colorMask:!1,disablePredictiveText:!1,importDataAttributes:!0},definitions:{9:{validator:"[0-91-9]",definitionSymbol:"*"},a:{validator:"[A-Za-zÀ-ÿ¨¸A-yµ]",definitionSymbol:"*"},"*":{validator:"[0-91-9A-Za-zÀ-ÿ¨¸A-yµ]"}},aliases:{},masksCache:{},mask:function(o){var l=this;return"string"==typeof o&&(o=i.getElementById(o)||i.querySelectorAll(o)),o=o.nodeName?[o]:o,e.each(o,function(i,o){var c=e.extend(!0,{},l.opts);if(function(i,a,o,s){if(!0===a.importDataAttributes){var l,u,c,p,f=function(e,a){null!==(a=a!==n?a:i.getAttribute(s+"-"+e))&&("string"==typeof a&&(0===e.indexOf("on")?a=t[a]:"false"===a?a=!1:"true"===a&&(a=!0)),o[e]=a)},m=i.getAttribute(s);if(m&&""!==m&&(m=m.replace(/'/g,'"'),u=JSON.parse("{"+m+"}")),u){c=n;for(p in u)if("alias"===p.toLowerCase()){c=u[p];break}}f("alias",c),o.alias&&r(o.alias,o,a);for(l in a){if(u){c=n;for(p in u)if(p.toLowerCase()===l.toLowerCase()){c=u[p];break}}f(l,c)}}return e.extend(!0,a,o),("rtl"===i.dir||a.rightAlign)&&(i.style.textAlign="right"),("rtl"===i.dir||a.numericInput)&&(i.dir="ltr",i.removeAttribute("dir"),a.isRTL=!0),Object.keys(o).length}(o,c,e.extend(!0,{},l.userOptions),l.dataAttribute)){var p=s(c,l.noMasksCache);p!==n&&(o.inputmask!==n&&(o.inputmask.opts.autoUnmask=!0,o.inputmask.remove()),o.inputmask=new a(n,n,!0),o.inputmask.opts=c,o.inputmask.noMasksCache=l.noMasksCache,o.inputmask.userOptions=e.extend(!0,{},l.userOptions),o.inputmask.isRTL=c.isRTL||c.numericInput,o.inputmask.el=o,o.inputmask.maskset=p,e.data(o,"_inputmask_opts",c),u.call(o.inputmask,{action:"mask"}))}}),o&&o[0]&&o[0].inputmask||this},option:function(t,i){return"string"==typeof t?this.opts[t]:"object"===(void 0===t?"undefined":o(t))?(e.extend(this.userOptions,t),this.el&&!0!==i&&this.mask(this.el),this):void 0},unmaskedvalue:function(e){return this.maskset=this.maskset||s(this.opts,this.noMasksCache),u.call(this,{action:"unmaskedvalue",value:e})},remove:function(){return u.call(this,{action:"remove"})},getemptymask:function(){return this.maskset=this.maskset||s(this.opts,this.noMasksCache),u.call(this,{action:"getemptymask"})},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||s(this.opts,this.noMasksCache),u.call(this,{action:"isComplete"})},getmetadata:function(){return this.maskset=this.maskset||s(this.opts,this.noMasksCache),u.call(this,{action:"getmetadata"})},isValid:function(e){return this.maskset=this.maskset||s(this.opts,this.noMasksCache),u.call(this,{action:"isValid",value:e})},format:function(e,t){return this.maskset=this.maskset||s(this.opts,this.noMasksCache),u.call(this,{action:"format",value:e,metadata:t})},analyseMask:function(t,i,r){function o(e,t,i,n){this.matches=[],this.openGroup=e||!1,this.alternatorGroup=!1,this.isGroup=e||!1,this.isOptional=t||!1,this.isQuantifier=i||!1,this.isAlternator=n||!1,this.quantifier={min:1,max:1}}function s(t,o,s){s=s!==n?s:t.matches.length;var l=t.matches[s-1];if(i)0===o.indexOf("[")||k&&/\\d|\\s|\\w]/i.test(o)||"."===o?t.matches.splice(s++,0,{fn:new RegExp(o,r.casing?"i":""),optionality:t.isOptional,newBlockMarker:l===n||l.def!==o,casing:null,def:o,placeholder:n,nativeDef:o}):(k&&(o=o[o.length-1]),e.each(o.split(""),function(e,i){l=t.matches[s-1],t.matches.splice(s++,0,{fn:null,optionality:t.isOptional,newBlockMarker:l===n||l.def!==i&&null!==l.fn,casing:null,def:r.staticDefinitionSymbol||i,placeholder:r.staticDefinitionSymbol!==n?i:n,nativeDef:i})})),k=!1;else{var u=(r.definitions?r.definitions[o]:n)||a.prototype.definitions[o];u&&!k?t.matches.splice(s++,0,{fn:u.validator?"string"==typeof u.validator?new RegExp(u.validator,r.casing?"i":""):new function(){this.test=u.validator}:new RegExp("."),optionality:t.isOptional,newBlockMarker:l===n||l.def!==(u.definitionSymbol||o),casing:u.casing,def:u.definitionSymbol||o,placeholder:u.placeholder,nativeDef:o}):(t.matches.splice(s++,0,{fn:null,optionality:t.isOptional,newBlockMarker:l===n||l.def!==o&&null!==l.fn,casing:null,def:r.staticDefinitionSymbol||o,placeholder:r.staticDefinitionSymbol!==n?o:n,nativeDef:o}),k=!1)}}function l(){if(b.length>0){if(s(f=b[b.length-1],c),f.isAlternator){m=b.pop();for(var e=0;e<m.matches.length;e++)m.matches[e].isGroup=!1;b.length>0?(f=b[b.length-1]).matches.push(m):y.matches.push(m)}}else s(y,c)}var u,c,p,f,m,d,h,g=/(?:[?*+]|\{[0-9\+\*]+(?:,[0-9\+\*]*)?\})|[^.?*+^${[]()|\\]+|./g,v=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,k=!1,y=new o,b=[],x=[];for(i&&(r.optionalmarker[0]=n,r.optionalmarker[1]=n);u=i?v.exec(t):g.exec(t);){if(c=u[0],i)switch(c.charAt(0)){case"?":c="{0,1}";break;case"+":case"*":c="{"+c+"}"}if(k)l();else switch(c.charAt(0)){case r.escapeChar:k=!0,i&&l();break;case r.optionalmarker[1]:case r.groupmarker[1]:if((p=b.pop()).openGroup=!1,p!==n)if(b.length>0){if((f=b[b.length-1]).matches.push(p),f.isAlternator){m=b.pop();for(var P=0;P<m.matches.length;P++)m.matches[P].isGroup=!1,m.matches[P].alternatorGroup=!1;b.length>0?(f=b[b.length-1]).matches.push(m):y.matches.push(m)}}else y.matches.push(p);else l();break;case r.optionalmarker[0]:b.push(new o(!1,!0));break;case r.groupmarker[0]:b.push(new o(!0));break;case r.quantifiermarker[0]:var S=new o(!1,!1,!0),A=(c=c.replace(/[{}]/g,"")).split(","),C=isNaN(A[0])?A[0]:parseInt(A[0]),M=1===A.length?C:isNaN(A[1])?A[1]:parseInt(A[1]);if("*"!==M&&"+"!==M||(C="*"===M?0:1),S.quantifier={min:C,max:M},b.length>0){var E=b[b.length-1].matches;(u=E.pop()).isGroup||((h=new o(!0)).matches.push(u),u=h),E.push(u),E.push(S)}else(u=y.matches.pop()).isGroup||(i&&null===u.fn&&"."===u.def&&(u.fn=new RegExp(u.def,r.casing?"i":"")),(h=new o(!0)).matches.push(u),u=h),y.matches.push(u),y.matches.push(S);break;case r.alternatormarker:if(b.length>0){var w=(f=b[b.length-1]).matches[f.matches.length-1];
7019d=f.openGroup&&(w.matches===n||!1===w.isGroup&&!1===w.isAlternator)?b.pop():f.matches.pop()}else d=y.matches.pop();if(d.isAlternator)b.push(d);else if(d.alternatorGroup?(m=b.pop(),d.alternatorGroup=!1):m=new o(!1,!1,!1,!0),m.matches.push(d),b.push(m),d.openGroup){d.openGroup=!1;var D=new o(!0);D.alternatorGroup=!0,b.push(D)}break;default:l()}}for(;b.length>0;)p=b.pop(),y.matches.push(p);return y.matches.length>0&&(function t(a){a&&a.matches&&e.each(a.matches,function(e,o){var l=a.matches[e+1];(l===n||l.matches===n||!1===l.isQuantifier)&&o&&o.isGroup&&(o.isGroup=!1,i||(s(o,r.groupmarker[0],0),!0!==o.openGroup&&s(o,r.groupmarker[1]))),t(o)})}(y),x.push(y)),(r.numericInput||r.isRTL)&&function e(t){t.matches=t.matches.reverse();for(var i in t.matches)if(t.matches.hasOwnProperty(i)){var a=parseInt(i);if(t.matches[i].isQuantifier&&t.matches[a+1]&&t.matches[a+1].isGroup){var o=t.matches[i];t.matches.splice(i,1),t.matches.splice(a+1,0,o)}t.matches[i].matches!==n?t.matches[i]=e(t.matches[i]):t.matches[i]=function(e){return e===r.optionalmarker[0]?e=r.optionalmarker[1]:e===r.optionalmarker[1]?e=r.optionalmarker[0]:e===r.groupmarker[0]?e=r.groupmarker[1]:e===r.groupmarker[1]&&(e=r.groupmarker[0]),e}(t.matches[i])}return t}(x[0]),x}},a.extendDefaults=function(t){e.extend(!0,a.prototype.defaults,t)},a.extendDefinitions=function(t){e.extend(!0,a.prototype.definitions,t)},a.extendAliases=function(t){e.extend(!0,a.prototype.aliases,t)},a.format=function(e,t,i){return a(t).format(e,i)},a.unmask=function(e,t){return a(t).unmaskedvalue(e)},a.isValid=function(e,t){return a(t).isValid(e)},a.remove=function(t){e.each(t,function(e,t){t.inputmask&&t.inputmask.remove()})},a.escapeRegex=function(e){return e.replace(new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim"),"\\$1")},a.keyCode={BACKSPACE:8,BACKSPACE_SAFARI:127,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,SPACE:32,TAB:9,UP:38,X:88,CONTROL:17},a})?n.apply(t,a):n)&&(e.exports=r)},function(e,t){e.exports=jQuery},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}i(4),i(7),i(8),i(9);var a=n(i(1)),r=n(i(0)),o=n(i(2));r.default===o.default&&i(10),window.Inputmask=a.default},function(e,t,i){"use strict";var n,a,r;"function"==typeof Symbol&&Symbol.iterator,a=[i(0),i(1)],void 0!==(r="function"==typeof(n=function(e,t){function i(e){if(!e.tokenizer){var t=[];for(var i in o)-1===t.indexOf(i[0])&&t.push(i[0]);e.tokenizer="("+t.join("+|")+")+?|.",e.tokenizer=new RegExp(e.tokenizer,"g")}return e.tokenizer}function n(e,n,a){for(var r,s="";r=i(a).exec(e);)void 0===n?s+=o[r[0]]?"("+o[r[0]][0]+")":t.escapeRegex(r[0]):o[r[0]]?s+=o[r[0]][3].call(n.date):s+=r[0];return s}function a(e,t){for(e=String(e),t=t||2;e.length<t;)e="0"+e;return e}function r(e,t,n){var a,r,s,l,u,c,p,f,m={date:new Date(1,0,1)},d=e;if("string"==typeof d){for(;r=i(n).exec(t);){var h=d.slice(0,r[0].length);o.hasOwnProperty(r[0])&&(a=o[r[0]][2],s=o[r[0]][1],l=m,u=h,c=n,p=void 0,f=void 0,"year"===a?(l[a]=(f=4===(p=u).length?p:(new Date).getFullYear().toString().substr(0,4-p.length)+p,n.min&&n.min.year&&n.max&&n.max.year?(f=f.replace(/[^0-9]/g,""),f=p.charAt(0)===n.max.year.charAt(0)?p.replace(/[^0-9]/g,"0"):f+n.min.year.substr(f.length)):f=f.replace(/[^0-9]/g,"0"),f),l["raw"+a]=u):l[a]=c.min&&u.match(/[^0-9]/)?c.min[a]:u,void 0!==s&&s.call(l.date,"month"==a?parseInt(l[a])-1:l[a])),d=d.slice(h.length)}return m}}var o={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return a(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",Date.prototype.setMonth,"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",Date.prototype.setMonth,"month",function(){return a(Date.prototype.getMonth.call(this)+1,2)}],mmm:[""],mmmm:[""],yy:["[0-9]{2}",Date.prototype.setFullYear,"year",function(){return a(Date.prototype.getFullYear.call(this),2)}],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return a(Date.prototype.getFullYear.call(this),4)}],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return a(Date.prototype.getHours.call(this),2)}],hhh:["[0-9]+",Date.prototype.setHours,"hours",Date.prototype.getHours],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["[01][0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return a(Date.prototype.getHours.call(this),2)}],HHH:["[0-9]+",Date.prototype.setHours,"hours",Date.prototype.getHours],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["[0-5][0-9]",Date.prototype.setMinutes,"minutes",function(){return a(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["[0-5][0-9]",Date.prototype.setSeconds,"seconds",function(){return a(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return a(Date.prototype.getMilliseconds.call(this),3)}],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return a(Date.prototype.getMilliseconds.call(this),2)}],t:[""],tt:[""],T:[""],TT:[""],Z:[""],o:[""],S:[""]},s={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};return t.extendAliases({datetime:{mask:function(e){return e.inputFormat=s[e.inputFormat]||e.inputFormat,e.displayFormat=s[e.displayFormat]||e.displayFormat||e.inputFormat,e.outputFormat=s[e.outputFormat]||e.outputFormat||e.inputFormat,e.placeholder=e.placeholder!==t.prototype.defaults.placeholder?e.placeholder:e.inputFormat,e.min=r(e.min,e.inputFormat,e),e.max=r(e.max,e.inputFormat,e),e.regex=n(e.inputFormat,void 0,e),null},inputFormat:"isoDateTime",displayFormat:void 0,outputFormat:void 0,min:null,max:null,i18n:{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Frid
7019ay","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},postValidation:function(e,t,i){var n,a,o,s,l,u=t,c=r(e.join(""),i.inputFormat,i);return u&&c.date.getTime()==c.date.getTime()&&(s=c,l=u,u=(u=(!isFinite(s.day)||"29"==s.day&&!isFinite(s.rawyear)||new Date(s.date.getFullYear(),isFinite(s.month)?s.month:s.date.getMonth()+1,0).getDate()>=s.day)&&l)&&(n=c.date,o=!0,(a=i).min&&a.min.date.getTime()==a.min.date.getTime()&&(o=o&&a.min.date.getTime()<=n.getTime()),a.max&&a.max.date.getTime()==a.max.date.getTime()&&(o=o&&a.max.date.getTime()>=n.getTime()),o)),u},onKeyDown:function(n,r,o,s){if(n.ctrlKey&&n.keyCode===t.keyCode.RIGHT){for(var l,u=new Date,c="";l=i(s).exec(s.inputFormat);)"d"===l[0].charAt(0)?c+=a(u.getDate(),l[0].length):"m"===l[0].charAt(0)?c+=a(u.getMonth()+1,l[0].length):"yyyy"===l[0]?c+=u.getFullYear().toString():"y"===l[0].charAt(0)&&(c+=a(u.getYear(),l[0].length));this.inputmask._valueSet(c),e(this).trigger("setvalue")}},onUnMask:function(e,t,i){return n(i.outputFormat,r(e,i.inputFormat,i),i)},insertMode:!1}}),t})?n.apply(t,a):n)&&(e.exports=r)},function(e,t,i){"use strict";var n;"function"==typeof Symbol&&Symbol.iterator,void 0!==(n=function(){return window}.call(t,i,t,e))&&(e.exports=n)},function(e,t,i){"use strict";var n;"function"==typeof Symbol&&Symbol.iterator,void 0!==(n=function(){return document}.call(t,i,t,e))&&(e.exports=n)},function(e,t,i){"use strict";var n,a,r;"function"==typeof Symbol&&Symbol.iterator,a=[i(0),i(1)],void 0!==(r="function"==typeof(n=function(e,t){return t.extendDefinitions({A:{validator:"[A-Za-zÀ-ÿ¨¸A-yµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zÀ-ÿ¨¸A-yµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}}),t.extendAliases({url:{definitions:{i:{validator:"."}},mask:"(\\http://)|(\\http\\s://)|(ftp://)|(ftp\\s://)i{+}",insertMode:!1,autoUnmask:!1,inputmode:"url"},ip:{mask:"i[i[i]].i[i[i]].i[i[i]].i[i[i]]",definitions:{i:{validator:function(e,t,i,n,a){return i-1>-1&&"."!==t.buffer[i-1]?(e=t.buffer[i-1]+e,e=i-2>-1&&"."!==t.buffer[i-2]?t.buffer[i-2]+e:"0"+e):e="00"+e,new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]").test(e)}}},onUnMask:function(e,t,i){return e},inputmode:"numeric"},email:{mask:"*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",greedy:!1,onBeforePaste:function(e,t){return(e=e.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-9A-Za-z!#$%&'*+/=?^_`{|}~-]",casing:"lower"},"-":{validator:"[0-9A-Za-z-]",casing:"lower"}},onUnMask:function(e,t,i){return e},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:!0,autoUnmask:!0}}),t})?n.apply(t,a):n)&&(e.exports=r)},function(e,t,i){"use strict";var n,a,r;"function"==typeof Symbol&&Symbol.iterator,a=[i(0),i(1)],void 0!==(r="function"==typeof(n=function(e,t,i){function n(e,i){for(var n="",a=0;a<e.length;a++)t.prototype.definitions[e.charAt(a)]||i.definitions[e.charAt(a)]||i.optionalmarker.start===e.charAt(a)||i.optionalmarker.end===e.charAt(a)||i.quantifiermarker.start===e.charAt(a)||i.quantifiermarker.end===e.charAt(a)||i.groupmarker.start===e.charAt(a)||i.groupmarker.end===e.charAt(a)||i.alternatormarker===e.charAt(a)?n+="\\"+e.charAt(a):n+=e.charAt(a);return n}return t.extendAliases({numeric:{mask:function(e){if(0!==e.repeat&&isNaN(e.integerDigits)&&(e.integerDigits=e.repeat),e.repeat=0,e.groupSeparator===e.radixPoint&&e.digits&&"0"!==e.digits&&("."===e.radixPoint?e.groupSeparator=",":","===e.radixPoint?e.groupSeparator=".":e.groupSeparator="")," "===e.groupSeparator&&(e.skipOptionalPartCharacter=i),e.autoGroup=e.autoGroup&&""!==e.groupSeparator,e.autoGroup&&("string"==typeof e.groupSize&&isFinite(e.groupSize)&&(e.groupSize=parseInt(e.groupSize)),isFinite(e.integerDigits))){var t=Math.floor(e.integerDigits/e.groupSize),a=e.integerDigits%e.groupSize;e.integerDigits=parseInt(e.integerDigits)+(0===a?t-1:t),e.integerDigits<1&&(e.integerDigits="*")}e.placeholder.length>1&&(e.placeholder=e.placeholder.charAt(0)),"radixFocus"===e.positionCaretOnClick&&""===e.placeholder&&!1===e.integerOptional&&(e.positionCaretOnClick="lvp"),e.definitions[";"]=e.definitions["~"],e.definitions[";
7019"].definitionSymbol="~",!0===e.numericInput&&(e.positionCaretOnClick="radixFocus"===e.positionCaretOnClick?"lvp":e.positionCaretOnClick,e.digitsOptional=!1,isNaN(e.digits)&&(e.digits=2),e.decimalProtect=!1);var r="[+]";if(r+=n(e.prefix,e),!0===e.integerOptional?r+="~{1,"+e.integerDigits+"}":r+="~{"+e.integerDigits+"}",e.digits!==i){e.radixPointDefinitionSymbol=e.decimalProtect?":":e.radixPoint;var o=e.digits.toString().split(",");isFinite(o[0]&&o[1]&&isFinite(o[1]))?r+=e.radixPointDefinitionSymbol+";{"+e.digits+"}":(isNaN(e.digits)||parseInt(e.digits)>0)&&(e.digitsOptional?r+="["+e.radixPointDefinitionSymbol+";{1,"+e.digits+"}]":r+=e.radixPointDefinitionSymbol+";{"+e.digits+"}")}return r+=n(e.suffix,e),r+="[-]",e.greedy=!1,r},placeholder:"",greedy:!1,digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",groupSize:3,groupSeparator:"",autoGroup:!1,allowMinus:!0,negationSymbol:{front:"-",back:""},integerDigits:"+",integerOptional:!0,prefix:"",suffix:"",rightAlign:!0,decimalProtect:!0,min:null,max:null,step:1,insertMode:!0,autoUnmask:!1,unmaskAsNumber:!1,inputmode:"numeric",preValidation:function(t,n,a,r,o){if("-"===a||a===o.negationSymbol.front)return!0===o.allowMinus&&(o.isNegative=o.isNegative===i||!o.isNegative,""===t.join("")||{caret:n,dopost:!0});if(!1===r&&a===o.radixPoint&&o.digits!==i&&(isNaN(o.digits)||parseInt(o.digits)>0)){var s=e.inArray(o.radixPoint,t);if(-1!==s)return!0===o.numericInput?n===s:{caret:s+1}}return!0},postValidation:function(n,a,r){var o=r.suffix.split(""),s=r.prefix.split("");if(a.pos===i&&a.caret!==i&&!0!==a.dopost)return a;var l=a.caret!==i?a.caret:a.pos,u=n.slice();r.numericInput&&(l=u.length-l-1,u=u.reverse());var c=u[l];if(c===r.groupSeparator&&(c=u[l+=1]),l===u.length-r.suffix.length-1&&c===r.radixPoint)return a;c!==i&&c!==r.radixPoint&&c!==r.negationSymbol.front&&c!==r.negationSymbol.back&&(u[l]="?",r.prefix.length>0&&l>=(!1===r.isNegative?1:0)&&l<r.prefix.length-1+(!1===r.isNegative?1:0)?s[l-(!1===r.isNegative?1:0)]="?":r.suffix.length>0&&l>=u.length-r.suffix.length-(!1===r.isNegative?1:0)&&(o[l-(u.length-r.suffix.length-(!1===r.isNegative?1:0))]="?")),s=s.join(""),o=o.join("");var p=u.join("").replace(s,"");if(p=(p=(p=(p=p.replace(o,"")).replace(new RegExp(t.escapeRegex(r.groupSeparator),"g"),"")).replace(new RegExp("[-"+t.escapeRegex(r.negationSymbol.front)+"]","g"),"")).replace(new RegExp(t.escapeRegex(r.negationSymbol.back)+"$"),""),isNaN(r.placeholder)&&(p=p.replace(new RegExp(t.escapeRegex(r.placeholder),"g"),"")),p.length>1&&1!==p.indexOf(r.radixPoint)&&("0"===c&&(p=p.replace(/^\?/g,"")),p=p.replace(/^0/g,"")),p.charAt(0)===r.radixPoint&&""!==r.radixPoint&&!0!==r.numericInput&&(p="0"+p),""!==p){if(p=p.split(""),(!r.digitsOptional||r.enforceDigitsOnBlur&&"blur"===a.event)&&isFinite(r.digits)){var f=e.inArray(r.radixPoint,p),m=e.inArray(r.radixPoint,u);-1===f&&(p.push(r.radixPoint),f=p.length-1);for(var d=1;d<=r.digits;d++)r.digitsOptional&&(!r.enforceDigitsOnBlur||"blur"!==a.event)||p[f+d]!==i&&p[f+d]!==r.placeholder.charAt(0)?-1!==m&&u[m+d]!==i&&(p[f+d]=p[f+d]||u[m+d]):p[f+d]=a.placeholder||r.placeholder.charAt(0)}if(!0!==r.autoGroup||""===r.groupSeparator||c===r.radixPoint&&a.pos===i&&!a.dopost)p=p.join("");else{var h=p[p.length-1]===r.radixPoint&&a.c===r.radixPoint;p=t(function(e,t){var i="";if(i+="("+t.groupSeparator+"*{"+t.groupSize+"}){*}",""!==t.radixPoint){var n=e.join("").split(t.radixPoint);n[1]&&(i+=t.radixPoint+"*{"+n[1].match(/^\d*\??\d*/)[0].length+"}")}return i}(p,r),{numericInput:!0,jitMasking:!0,definitions:{"*":{validator:"[0-9?]",cardinality:1}}}).format(p.join("")),h&&(p+=r.radixPoint),p.charAt(0)===r.groupSeparator&&p.substr(1)}}if(r.isNegative&&"blur"===a.event&&(r.isNegative="0"!==p),p=s+p,p+=o,r.isNegative&&(p=r.negationSymbol.front+p,p+=r.negationSymbol.back),p=p.split(""),c!==i)if(c!==r.radixPoint&&c!==r.negationSymbol.front&&c!==r.negationSymbol.back)(l=e.inArray("?",p))>-1?p[l]=c:l=a.caret||0;else if(c===r.radixPoint||c===r.negationSymbol.front||c===r.negationSymbol.back){var g=e.inArray(c,p);-1!==g&&(l=g)}r.numericInput&&(l=p.length-l-1,p=p.reverse());var v={caret:c===i||a.pos!==i?l+(r.numericInput?-1:1):l,buffer:p,refreshFromBuffer:a.dopost||n.join("")!==p.join("")};return v.refreshFromBuffer?v:a},onBeforeWrite:function(n,a,r,o){if(n)switch(n.type){case"keydown":return o.postValidation(a,{caret:r,dopost:!0},o);case"blur":case"checkval":var s;if((l=o).parseMinMaxOptions===i&&(null!==l.min&&(l.min=l.min.toString().replace(new RegExp(t.escapeRegex(l.groupSeparator),"g"),""),","===l.radixPoint&&(l.min=l.min.replace(l.radixPoint,".")),l.min=isFinite(l.min)?parseFloat(l.min):NaN,isNaN(l.min)&&(l.min=Number.MIN_VALUE)),null!==l.max&&(l.max=l.max.toString().replace(new RegExp(t.escapeRegex(l.groupSeparator),"g"),""),","===l.radixPoint&&(l.max=l.max.replace(l.radixPoint,".")),l.max=isFinite(l.max)?parseFloat(l.max):NaN,isNaN(l.max)&&(l.max=Number.MAX_VALUE)),l.parseMinMaxOptions="done"),null!==o.min||null!==o.max){if(s=o.onUnMask(a.join(""),i,e.extend({},o,{unmaskAsNumber:!0})),null!==o.min&&s<o.min)return o.isNegative=o.min<0,o.postValidation(o.min.toString().replace(".",o.radixPoint).split(""),{caret:r,dopost:!0,placeholder:"0"},o);if(null!==o.max&&s>o.max)return o.isNegative=o.max<0,o.postValidation(o.max.toString().replace(".",o.radixPoint).split(""),{caret:r,dopost:!0,placeholder:"0"},o)}return o.postValidation(a,{caret:r,placeholder:"0",event:"blur"},o);case"_checkval":return{caret:r}}var l},regex:{integerPart:function(e,i){return i?new RegExp("["+t.escapeRegex(e.negationSymbol.front)+"+]?"):new RegExp("["+t.escapeRegex(e.negationSymbol.front)+"+]?\\d+")},integerNPart:function(e){return new RegExp("[\\d"+t.escapeRegex(e.groupSeparator)+t.escapeRegex(e.placeholder.charAt(0))+"]+")}},definitions:{"~":{validator:function(e,n,a,r,o,s){var l=r?new RegExp("[0-9"+t.escapeRegex(o.groupSeparator)+"]").test(e):new RegExp("[0-9]").test(e);
7019if(!0===l){if(!0!==o.numericInput&&n.validPositions[a]!==i&&"~"===n.validPositions[a].match.def&&!s){var u=n.buffer.join(""),c=(u=(u=u.replace(new RegExp("[-"+t.escapeRegex(o.negationSymbol.front)+"]","g"),"")).replace(new RegExp(t.escapeRegex(o.negationSymbol.back)+"$"),"")).split(o.radixPoint);c.length>1&&(c[1]=c[1].replace(/0/g,o.placeholder.charAt(0))),"0"===c[0]&&(c[0]=c[0].replace(/0/g,o.placeholder.charAt(0))),u=c[0]+o.radixPoint+c[1]||"";var p=n._buffer.join("");for(u===o.radixPoint&&(u=p);null===u.match(t.escapeRegex(p)+"$");)p=p.slice(1);l=(u=(u=u.replace(p,"")).split(""))[a]===i?{pos:a,remove:a}:{pos:a}}}else r||e!==o.radixPoint||n.validPositions[a-1]!==i||(n.buffer[a]="0",l={pos:a+1});return l},cardinality:1},"+":{validator:function(e,t,i,n,a){return a.allowMinus&&("-"===e||e===a.negationSymbol.front)},cardinality:1,placeholder:""},"-":{validator:function(e,t,i,n,a){return a.allowMinus&&e===a.negationSymbol.back},cardinality:1,placeholder:""},":":{validator:function(e,i,n,a,r){var o="["+t.escapeRegex(r.radixPoint)+"]",s=new RegExp(o).test(e);return s&&i.validPositions[n]&&i.validPositions[n].match.placeholder===r.radixPoint&&(s={caret:n+1}),s},cardinality:1,placeholder:function(e){return e.radixPoint}}},onUnMask:function(e,i,n){if(""===i&&!0===n.nullable)return i;var a=e.replace(n.prefix,"");return a=(a=a.replace(n.suffix,"")).replace(new RegExp(t.escapeRegex(n.groupSeparator),"g"),""),""!==n.placeholder.charAt(0)&&(a=a.replace(new RegExp(n.placeholder.charAt(0),"g"),"0")),n.unmaskAsNumber?(""!==n.radixPoint&&-1!==a.indexOf(n.radixPoint)&&(a=a.replace(t.escapeRegex.call(this,n.radixPoint),".")),a=(a=a.replace(new RegExp("^"+t.escapeRegex(n.negationSymbol.front)),"-")).replace(new RegExp(t.escapeRegex(n.negationSymbol.back)+"$"),""),Number(a)):a},isComplete:function(e,i){var n=e.join("");if(e.slice().join("")!==n)return!1;var a=n.replace(i.prefix,"");return a=(a=a.replace(i.suffix,"")).replace(new RegExp(t.escapeRegex(i.groupSeparator)+"([0-9]{3})","g"),"$1"),","===i.radixPoint&&(a=a.replace(t.escapeRegex(i.radixPoint),".")),isFinite(a)},onBeforeMask:function(e,n){if(n.isNegative=i,e=e.toString().charAt(e.length-1)===n.radixPoint?e.toString().substr(0,e.length-1):e.toString(),""!==n.radixPoint&&isFinite(e)){var a=e.split("."),r=""!==n.groupSeparator?parseInt(n.groupSize):0;2===a.length&&(a[0].length>r||a[1].length>r||a[0].length<=r&&a[1].length<r)&&(e=e.replace(".",n.radixPoint))}var o=e.match(/,/g),s=e.match(/\./g);if(e=s&&o?s.length>o.length?(e=e.replace(/\./g,"")).replace(",",n.radixPoint):o.length>s.length?(e=e.replace(/,/g,"")).replace(".",n.radixPoint):e.indexOf(".")<e.indexOf(",")?e.replace(/\./g,""):e.replace(/,/g,""):e.replace(new RegExp(t.escapeRegex(n.groupSeparator),"g"),""),0===n.digits&&(-1!==e.indexOf(".")?e=e.substring(0,e.indexOf(".")):-1!==e.indexOf(",")&&(e=e.substring(0,e.indexOf(",")))),""!==n.radixPoint&&isFinite(n.digits)&&-1!==e.indexOf(n.radixPoint)){var l=e.split(n.radixPoint)[1].match(new RegExp("\\d*"))[0];if(parseInt(n.digits)<l.toString().length){var u=Math.pow(10,parseInt(n.digits));e=e.replace(t.escapeRegex(n.radixPoint),"."),e=(e=Math.round(parseFloat(e)*u)/u).toString().replace(".",n.radixPoint)}}return e},canClearPosition:function(e,t,i,n,a){var r=e.validPositions[t],o=r.input!==a.radixPoint||null!==e.validPositions[t].match.fn&&!1===a.decimalProtect||r.input===a.radixPoint&&e.validPositions[t+1]&&null===e.validPositions[t+1].match.fn||isFinite(r.input)||t===i||r.input===a.groupSeparator||r.input===a.negationSymbol.front||r.input===a.negationSymbol.back;return!o||"+"!==r.match.nativeDef&&"-"!==r.match.nativeDef||(a.isNegative=!1),o},onKeyDown:function(i,n,a,r){var o=e(this);if(i.ctrlKey)switch(i.keyCode){case t.keyCode.UP:o.val(parseFloat(this.inputmask.unmaskedvalue())+parseInt(r.step)),o.trigger("setvalue");break;case t.keyCode.DOWN:o.val(parseFloat(this.inputmask.unmaskedvalue())-parseInt(r.step)),o.trigger("setvalue")}}},currency:{prefix:"$ ",groupSeparator:",",alias:"numeric",placeholder:"0",autoGroup:!0,digits:2,digitsOptional:!1,clearMaskOnLostFocus:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",digits:0,radixPoint:""},percentage:{alias:"numeric",digits:2,digitsOptional:!0,radixPoint:".",placeholder:"0",autoGroup:!1,min:0,max:100,suffix:" %",allowMinus:!1}}),t})?n.apply(t,a):n)&&(e.exports=r)},function(e,t,i){"use strict";var n,a,r;"function"==typeof Symbol&&Symbol.iterator,a=[i(0),i(1)],void 0!==(r="function"==typeof(n=function(e,t){function i(e,t){var i=(e.mask||e).replace(/#/g,"0").replace(/\)/,"0").replace(/[+()#-]/g,""),n=(t.mask||t).replace(/#/g,"0").replace(/\)/,"0").replace(/[+()#-]/g,"");return i.localeCompare(n)}
7019var n=t.prototype.analyseMask;return t.prototype.analyseMask=function(t,i,a){var r={};return a.phoneCodes&&(a.phoneCodes&&a.phoneCodes.length>1e3&&(function e(i,n,a){n=n||"",a=a||r,""!==n&&(a[n]={});for(var o="",s=a[n]||a,l=i.length-1;l>=0;l--)s[o=(t=i[l].mask||i[l]).substr(0,1)]=s[o]||[],s[o].unshift(t.substr(1)),i.splice(l,1);for(var u in s)s[u].length>500&&e(s[u].slice(),u,s)}((t=t.substr(1,t.length-2)).split(a.groupmarker[1]+a.alternatormarker+a.groupmarker[0])),t=function t(i){var n="",r=[];for(var o in i)e.isArray(i[o])?1===i[o].length?r.push(o+i[o]):r.push(o+a.groupmarker[0]+i[o].join(a.groupmarker[1]+a.alternatormarker+a.groupmarker[0])+a.groupmarker[1]):r.push(o+t(i[o]));return 1===r.length?n+=r[0]:n+=a.groupmarker[0]+r.join(a.groupmarker[1]+a.alternatormarker+a.groupmarker[0])+a.groupmarker[1],n}(r)),t=t.replace(/9/g,"\\9")),n.call(this,t,i,a)},t.extendAliases({abstractphone:{groupmarker:["<",">"],countrycode:"",phoneCodes:[],keepStatic:"auto",mask:function(e){return e.definitions={"#":t.prototype.definitions[9]},e.phoneCodes.sort(i)},onBeforeMask:function(e,t){var i=e.replace(/^0{1,2}/,"").replace(/[\s]/g,"");return(i.indexOf(t.countrycode)>1||-1===i.indexOf(t.countrycode))&&(i="+"+t.countrycode+i),i},onUnMask:function(e,t,i){return e.replace(/[()#-]/g,"")},inputmode:"tel"}}),t})?n.apply(t,a):n)&&(e.exports=r)},function(e,t,i){"use strict";var n,a,r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};a=[i(2),i(1)],void 0!==(r="function"==typeof(n=function(e,t){return void 0===e.fn.inputmask&&(e.fn.inputmask=function(i,n){var a,r=this[0];if(void 0===n&&(n={}),"string"==typeof i)switch(i){case"unmaskedvalue":return r&&r.inputmask?r.inputmask.unmaskedvalue():e(r).val();case"remove":return this.each(function(){this.inputmask&&this.inputmask.remove()});case"getemptymask":return r&&r.inputmask?r.inputmask.getemptymask():"";case"hasMaskedValue":return!(!r||!r.inputmask)&&r.inputmask.hasMaskedValue();case"isComplete":return!r||!r.inputmask||r.inputmask.isComplete();case"getmetadata":return r&&r.inputmask?r.inputmask.getmetadata():void 0;case"setvalue":e(r).val(n),r&&void 0===r.inputmask&&e(r).triggerHandler("setvalue");break;case"option":if("string"!=typeof n)return this.each(function(){if(void 0!==this.inputmask)return this.inputmask.option(n)});if(r&&void 0!==r.inputmask)return r.inputmask.option(n);break;default:return n.alias=i,a=new t(n),this.each(function(){a.mask(this)})}else{if("object"==(void 0===i?"undefined":o(i)))return a=new t(i),void 0===i.mask&&void 0===i.alias?this.each(function(){if(void 0!==this.inputmask)return this.inputmask.option(i);a.mask(this)}):this.each(function(){a.mask(this)});if(void 0===i)return this.each(function(){(a=new t(n)).mask(this)})}}),e.fn.inputmask})?n.apply(t,a):n)&&(e.exports=r)}]);
7020/* End */
7021;; /* /local/templates/aspro-allcorp3/libs/cppay_widget/main.js?17853387899094*/
7022; /* /local/templates/aspro-allcorp3/js/swiper-bundle.min.js?1786447464155147*/
7023; /* /local/templates/aspro-allcorp3/js/observer.min.js?17780775673650*/
7024; /* /local/templates/aspro-allcorp3/vendor/jquery.easing.min.js?17780775673372*/
7025; /* /local/templates/aspro-allcorp3/vendor/jquery.cookie.min.js?17780775671613*/
7026; /* /local/templates/aspro-allcorp3/vendor/bootstrap.js?177807756727908*/
7027; /* /local/templates/aspro-allcorp3/vendor/jquery.validate.min.js?177807756722254*/
7028; /* /local/templates/aspro-allcorp3/vendor/js/ripple.min.js?17780775671624*/
7029; /* /local/templates/aspro-allcorp3/vendor/js/jquery.mousewheel.min.js?17780775672771*/
7030; /* /local/templates/aspro-allcorp3/js/detectmobilebrowser.js?17780775672203*/
7031; /* /local/templates/aspro-allcorp3/js/matchMedia.min.js?1778077567931*/
7032; /* /local/templates/aspro-allcorp3/js/jquery.actual.min.js?17780775671239*/
7033; /* /local/templates/aspro-allcorp3/js/jquery-ui.min.js?177807756732162*/
7034; /* /local/templates/aspro-allcorp3/js/jquery.plugin.min.js?17780775673356*/
7035;
7035 /* /local/templates/aspro-allcorp3/js/jquery.alphanumeric.min.js?1778077567942*/
7036; /* /local/templates/aspro-allcorp3/js/jquery.autocomplete.min.js?177807756712531*/
7037; /* /local/templates/aspro-allcorp3/js/jquery.mobile.custom.touch.min.js?17780775677743*/
7038; /* /local/templates/aspro-allcorp3/js/jquery.mCustomScrollbar.min.js?177807756755533*/
7039; /* /local/templates/aspro-allcorp3/js/jqModal.min.js?17780775673197*/
7040; /* /local/templates/aspro-allcorp3/js/jquery.uniform.min.js?17780775678308*/
7041; /* /local/templates/aspro-allcorp3/js/jquery.countdown.min.js?177807756721419*/
7042; /* /local/templates/aspro-allcorp3/js/jquery.countdown-ru.min.js?17780775671487*/
7043; /* /local/templates/aspro-allcorp3/js/scrollTabs.min.js?177807756710482*/
7044; /* /local/templates/aspro-allcorp3/js/blocks/controls.min.js?17780775674806*/
7045; /* /local/templates/aspro-allcorp3/js/blocks/hover-block.min.js?1778077567715*/
7046; /* /local/templates/aspro-allcorp3/js/blocks/mobile.min.js?17780775675334*/
7047; /* /local/templates/aspro-allcorp3/js/blocks/selectOffer.min.js?17780775672069*/
7048; /* /local/templates/aspro-allcorp3/js/blocks/tabs-history.min.js?17780775671129*/
7049; /* /local/templates/aspro-allcorp3/js/video_banner.min.js?177807756716078*/
7050; /* /local/templates/aspro-allcorp3/js/jquery.counterup.js?17780775671069*/
7051; /* /local/templates/aspro-allcorp3/js/general.js?1778077569194775*/
7052; /* /local/templates/aspro-allcorp3/js/custom.js?1778077569100*/
7053; /* /local/templates/aspro-allcorp3/vendor/js/carousel/owl/owl.carousel.min.js?177807756754160*/
7054; /* /local/templates/aspro-allcorp3/js/logo.min.js?17780775674160*/
7055; /* /bitrix/components/aspro/eyed.allcorp3/templates/.default/script.min.js?178522554512357*/
7056; /* /local/templates/aspro-allcorp3/js/phones.min.js?1778077567633*/
7057; /* /local/templates/aspro-allcorp3/components/bitrix/menu/mega_menu/script.min.js?17780775671471*/
7058; /* /local/templates/aspro-allcorp3/components/bitrix/menu/menu_new/script.min.js?17780775672205*/
7059; /* /bitrix/components/aspro/com.banners.allcorp3/templates/.default/script.min.js?17852255452467*/
7060; /* /local/templates/aspro-allcorp3/js/slider.swiper.min.js?17780775671566*/
7061; /* /local/templates/aspro-allcorp3/vendor/js/carousel/swiper/swiper-bundle.min.js?1778077567158093*/
7062; /* /local/templates/aspro-allcorp3/components/bitrix/news.list/brands-list/script.min.js?1778077567545*/
7063; /* /bitrix/components/aspro/marketing.popup.allcorp3/templates/.default/script.min.js?1785225545947*/
7064; /* /bitrix/components/bitrix/search.title/script.min.js?17852255466573*/
7065; /* /local/templates/aspro-allcorp3/components/bitrix/search.title/fixed/script.min.js?17780775677482*/
7066; /* /local/templates/aspro-allcorp3/js/logo_depend_banners.min.js?17780775671839*/
7067; /* /local/templates/aspro-allcorp3/js/jquery.inputmask.bundle.min.js?177807756770933*/
7068
7069//# sourceMappingURL=template_d840ed779dface0f76cc4fcad0548e89.map.js

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.