PageSourceSearch

https://verusllc.com/wp-content/uploads/us-assets/verusllc.com.js?ver=802216e8

js verusllc.com collected 2026-10-04 22:57:33 UTC 158,981 bytes, 511 lines download raw bytes

1!function($,_undefined){"use strict";const _window=window;const _document=document;const _navigator=_window.navigator;const _location=_window.location;const max=Math.max;const min=Math.min;const pow=Math.pow;if($.isPlainObject(_window.$ush)){return}
2_window.$ush={};$ush.TAB_KEYCODE=9;$ush.ENTER_KEYCODE=13;$ush.ESC_KEYCODE=27;$ush.SPACE_KEYCODE=32;$ush.UP_KEYCODE=38;$ush.DOWN_KEYCODE=40;const ua=_navigator.userAgent.toLowerCase();const base64Chars='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';const fromCharCode=String.fromCharCode;$ush.ua=ua;$ush.isMacOS=/(Mac|iPhone|iPod|iPad)/i.test(_navigator.platform);$ush.isFirefox=ua.includes('firefox');$ush.isSafari=/^((?!chrome|android).)*safari/i.test(ua);$ush.isTouchend=('ontouchend' in _document);$ush.safariVersion=function(){const self=this;if(self.isSafari){return self.parseInt((ua.match(/version\/([\d]+)/i)||[])[1])}
3return 0}
4$ush.fn=function(fn){if(typeof fn==='function'){fn()}};$ush.isUndefined=function(value){return(typeof value==='undefined'||value==='undefined')};$ush.isNumeric=function(value){const type=typeof value;return(type==="number"||type==="string")&&!isNaN(value-parseFloat(value))};$ush.isRtl=function(){return this.toString(_document.body.className).split(/\p{Zs}/u).includes('rtl')};$ush.isNode=function(node){return!!(node&&node.nodeType)};$ush.isNodeInViewport=function(node){const self=this;const rect=$ush.$rect(node);const nearestTop=rect.top-_window.innerHeight;return nearestTop<=0&&(rect.top+rect.height)>=0};$ush.uniqid=function(prefix){return(prefix||'')+Math.random().toString(36).substr(2,9)};$ush.utf8Decode=function(data){var tmp_arr=[],i=0,ac=0,c1=0,c2=0,c3=0;data+='';while(i<data.length){c1=data.charCodeAt(i);if(c1<128){tmp_arr[ac ++]=fromCharCode(c1);i ++}else if(c1>191&&c1<224){c2=data.charCodeAt(i+1);tmp_arr[ac ++]=fromCharCode(((c1&31)<<6)|(c2&63));i+=2}else{c2=data.charCodeAt(i+1);c3=data.charCodeAt(i+2);tmp_arr[ac ++]=fromCharCode(((c1&15)<<12)|((c2&63)<<6)|(c3&63));i+=3}}
5return tmp_arr.join('')};$ush.utf8Encode=function(data){if(data===null||this.isUndefined(data)){return''}
6var string=(''+data),utftext='',start,end,stringl=0;start=end=0;stringl=string.length;for(var n=0;n<stringl;n ++){var c1=string.charCodeAt(n);var enc=null;if(c1<128){end ++}else if(c1>127&&c1<2048){enc=fromCharCode((c1>>6)|192)+fromCharCode((c1&63)|128)}else{enc=fromCharCode((c1>>12)|224)+fromCharCode(((c1>>6)&63)|128)+fromCharCode((c1&63)|128)}
7if(enc!==null){if(end>start){utftext+=string.slice(start,end)}
8utftext+=enc;start=end=n+1}}
9if(end>start){utftext+=string.slice(start,stringl)}
10return utftext};$ush.base64Decode=function(data){var o1,o2,o3,h1,h2,h3,h4,bits,i=0,ac=0,dec='',tmp_arr=[],self=this;if(!data){return data}
11data+='';do{h1=base64Chars.indexOf(data.charAt(i ++));h2=base64Chars.indexOf(data.charAt(i ++));h3=base64Chars.indexOf(data.charAt(i ++));h4=base64Chars.indexOf(data.charAt(i ++));bits=h1<<18|h2<<12|h3<<6|h4;o1=bits>>16&0xff;o2=bits>>8&0xff;o3=bits&0xff;if(h3==64){tmp_arr[ac ++]=fromCharCode(o1)}else if(h4==64){tmp_arr[ac ++]=fromCharCode(o1,o2)}else{tmp_arr[ac ++]=fromCharCode(o1,o2,o3)}}while(i<data.length);return self.utf8Decode(tmp_arr.join(''))};$ush.base64Encode=function(data){var o1,o2,o3,h1,h2,h3,h4,bits,i=0,ac=0,enc='',tmp_arr=[],self=this;if(!data){return data}
12data=self.utf8Encode(''+data);do{o1=data.charCodeAt(i ++);o2=data.charCodeAt(i ++);o3=data.charCodeAt(i ++);bits=o1<<16|o2<<8|o3;h1=bits>>18&0x3f;h2=bits>>12&0x3f;h3=bits>>6&0x3f;h4=bits&0x3f;tmp_arr[ac ++]=base64Chars.charAt(h1)+base64Chars.charAt(h2)+base64Chars.charAt(h3)+base64Chars.charAt(h4)}while(i<data.length);enc=tmp_arr.join('');const r=data.length%3;return(r?enc.slice(0,r-3):enc)+'==='.slice(r||3)};$ush.stripTags=function(input){var output=$ush.toString(input),prev;do{prev=output;output=output.replace(/(<([^>]+)>)/ig,'')}while(output!==prev);return output.replace(/"/g,'&quot;')};$ush.rawurldecode=function(str){return decodeURIComponent(this.toString(str))};$ush.rawurlencode=function(str){return encodeURIComponent(this.toString(str)).replace(/!/g,'%21').replace(/'/g,'%27').replace(/\(/g,'%28').replace(/\)/g,'%29').replace(/\*/g,'%2A')};$ush.timeout=function(fn,delay){const targetDelay=(typeof delay==='number'&&!isNaN(delay))?delay:$ush.parseFloat(delay);const start=Date.now();const handle={value:null};function loop(){if(Date.now()-start>=targetDelay){fn()}else{handle.value=_window.requestAnimationFrame(loop)}}
13handle.value=_window.requestAnimationFrame(loop);return handle};$ush.clearTimeout=function(handle){if(handle===null||handle===undefined){return}
14const id=typeof handle==='object'?handle.value:handle;if(typeof id==='number'){_window.cancelAnimationFrame(id)}};$ush.throttle=function(fn,wait,no_trailing,debounce_mode){if(typeof fn!=='function'){return $.noop||(()=>{})}
15const waitTime=typeof wait==='number'?wait:0;const useTrailing=no_trailing!==!0;const hasDebounceMode=debounce_mode!==undefined;var lastExec=0;var timeoutId=null;var storedContext=null;var storedArgs=null;const self=this;function exec(){lastExec=Date.now();timeoutId=null;const ctx=storedContext;const args=storedArgs;storedContext=null;storedArgs=null;fn.apply(ctx,args)}
16function clear(){timeoutId=null}
17return function throttled(){storedContext=this;storedArgs=arguments;const now=Date.now();const elapsed=now-lastExec;if(debounce_mode&&!timeoutId){exec()}
18if(timeoutId!==null){self.clearTimeout(timeoutId)}
19if(!hasDebounceMode&&elapsed>waitTime){exec()}else if(useTrailing){timeoutId=self.timeout(debounce_mode?clear:exec,!hasDebounceMode?(waitTime-elapsed):waitTime)}}};$ush.debounce=function(fn,wait,at_begin){return at_begin===undefined?this.throttle(fn,wait,undefined,
19!1):this.throttle(fn,wait,at_begin!==!1)};$ush.debounce_fn_1ms=$ush.debounce($ush.fn,1);$ush.debounce_fn_10ms=$ush.debounce($ush.fn,10);$ush.parseInt=function(value){value=parseInt(value,10);return!isNaN(value)?value:0};$ush.parseFloat=function(value){value=parseFloat(value);return!isNaN(value)?value:0};$ush.limitValueByRange=function(value,minValue,maxValue){return $ush.parseFloat(min(maxValue,max(minValue,value)))};$ush.toArray=function(data){if(['string','number','bigint','boolean','symbol','function'].includes(typeof data)){return[data]}
20try{data=[].slice.call(data||[])}catch(err){console.error(err);data=[]}
21return data};$ush.toString=function(value){const self=this;if(self.isUndefined(value)||value===null){return''}else if($.isPlainObject(value)||Array.isArray(value)){return self.rawurlencode(JSON.stringify(value))}
22return String(value)};$ush.toPlainObject=function(value){const self=this;try{value=JSON.parse(self.rawurldecode(value)||'{}')}catch(err){}
23if(!$.isPlainObject(value)){value={}}
24return value};$ush.toLowerCase=function(value){return $ush.toString(value).toLowerCase()};$ush.clone=function(_object,_default){return $.extend(!0,{},_default||{},_object||{})};$ush.escapePcre=function(value){return $ush.toString(value).replace(/[.*+?^${}()|\:[\]\\]/g,'\\$&')};$ush.removeSpaces=function(text){return $ush.toString(text).replace(/\p{Zs}/gu,'')};$ush.fromCharCode=function(text){return $ush.toString(text).replace(/&#(\d+);/g,(_,num)=>fromCharCode(num))};$ush.comparePlainObject=function(){const args=arguments;for(var i=1;i>-1;i--){if(!$.isPlainObject(args[i])){return!1}}
25return JSON.stringify(args[0])===JSON.stringify(args[1])};$ush.checksum=function(value){if(typeof value!=='string'){value=JSON.stringify(value)}
26if(value.length){return value.split('').reduce((acc,val)=>(acc=(acc<<5)-acc+val.charCodeAt(0))&acc)}
27return 0};$ush.$rect=function(node){return this.isNode(node)?node.getBoundingClientRect():{}};$ush.setCaretPosition=function(node,position){const self=this;if(!self.isNode(node)){return}
28if(self.isUndefined(position)){position=node.value.length}
29if(node.createTextRange){const range=node.createTextRange();range.move('character',position);range.select()}else{if(node.selectionStart){node.focus();node.setSelectionRange(position,position)}else{node.focus()}}};$ush.copyTextToClipboard=function(text){const self=this;try{const textarea=_document.createElement('textarea');textarea.value=self.toString(text);textarea.setAttribute('readonly','');textarea.setAttribute('css','position:absolute;top:-9999px;left:-9999px');_document.body.append(textarea);textarea.select();_document.execCommand('copy');if(_window.getSelection){_window.getSelection().removeAllRanges()}else if(_document.selection){_document.selection.empty()}
30textarea.remove();return!0}catch(err){return!1}};$ush.storage=function(namespace){if(namespace=$ush.toString(namespace)){namespace+='_'}
31const _localStorage=_window.localStorage;return{set:function(key,value){_localStorage.setItem(namespace+key,value)},get:function(key){return _localStorage.getItem(namespace+key)},remove:function(key){_localStorage.removeItem(namespace+key)}}};$ush.setCookie=function(name,value,expiry){const date=new Date()
32date.setTime(date.getTime()+(expiry*86400000));_document.cookie=name+'='+value+';expires='+date.toUTCString()+';path=/'};$ush.getCookie=function(name){name+='='
33const decodedCookie=decodeURIComponent(_document.cookie);const cookies=decodedCookie.split(';');for(var i=0;i<cookies.length;i++){var cookie=cookies[i];while(cookie.charAt(0)==' '){cookie=cookie.substring(1)}
34if(cookie.indexOf(name)==0){return cookie.substring(name.length,cookie.length)}}
35return null};$ush.removeCookie=function(name){const self=this;if(self.getCookie(name)!==null){self.setCookie(name,1,-1)}};$ush.DIRECTION_TOP=0;$ush.DIRECTION_RIGHT=1;$ush.DIRECTION_BOTTOM=2;$ush.DIRECTION_LEFT=3;$ush.getCursorDirection=function(mouseEvent,target){const rect=target.getBoundingClientRect();const w=rect.width;const h=rect.height;const x=(mouseEvent.clientX-rect.left-(w/2))*(w>h?(h/w):1);const y=(mouseEvent.clientY-rect.top-(h/2))*(h>w?(w/h):1);return Math.round(Math.atan2(y,x)/(Math.PI/2)+5)%4};$ush.download=function(data,fileName,type){const fileBlob=new Blob([String(data)],{type:type});if(_navigator.msSaveOrOpenBlob){_navigator.msSaveOrOpenBlob(fileBlob,fileName)}else{const url=_window.URL.createObjectURL(fileBlob);const anchorElement=_document.createElement('a');anchorElement.href=url;anchorElement.download=fileName;_document.body.appendChild(anchorElement);anchorElement.click();$ush.timeout(()=>{_document.body.removeChild(anchorElement);_window.URL.revokeObjectURL(url)})}};$ush.time=function(){return new Date().getTime()};$ush.mixinEvents={on:function(eventType,handler,one){const self=this;var registry=self.$$events;if(registry===undefined){registry=self.$$events={}}
36var list=registry[eventType];
36if(list===undefined){list=registry[eventType]=[]}
37list.push({handler:handler,one:one===!0});return self},one:function(eventType,handler){return this.on(eventType,handler,!0)},off:function(eventType,handler){const self=this;const registry=self.$$events;if(registry===undefined){return self}
38const list=registry[eventType];if(list===undefined||list.length===0){return self}
39if(handler!==undefined){var i=list.length;while(i--){if(list[i].handler===handler){list.splice(i,1)}}}else{registry[eventType]=[]}
40return self},trigger:function(eventType,extraParams){const self=this;const registry=self.$$events;if(registry===undefined){return self}
41let list=registry[eventType];if(list===undefined||list.length===0){return self}
42var params;const argsLength=arguments.length;if(argsLength>2){params=new Array(argsLength-1);for(var k=1;k<argsLength;k++){params[k-1]=arguments[k]}}else{params=Array.isArray(extraParams)?extraParams:(extraParams!==undefined?[extraParams]:[])}
43var i=0;while(i<list.length){const event=list[i];event.handler.apply(event.handler,params);if(event.one){self.off(eventType,event.handler);list=registry[eventType]||[]}else{i++}}
44return self}};$ush.urlManager=function(url){const $window=$(_window);const events=$ush.clone($ush.mixinEvents);var _url=new URL($ush.isUndefined(url)?_location.href:url),lastUrl=_url.toString();if($ush.isUndefined(url)){function refresh(){_url=new URL(lastUrl=_location.href)}
45$window.on('pushstate',refresh).on('popstate',(e)=>{refresh();events.trigger('popstate',e.originalEvent)})}
46return $.extend(events,{isChanged:function(){return this.toString()!==_location.href},has:function(key,value){if(typeof key==='string'){const hasKey=_url.searchParams.has(key);if(!value){return hasKey}
47return hasKey&&_url.searchParams.get(key)===value}
48return!1},set:function(key,value){const setParam=(key,value)=>{if($ush.isUndefined(value)||value===null){_url.searchParams.delete(key)}else{_url.searchParams.set(key,$ush.toString(value))}};if($.isPlainObject(key)){for(const k in key){setParam(k,key[k])}}else{setParam(key,value)}
49return this},get:function(){const args=$ush.toArray(arguments);const result={};for(const key of args){if(this.has(key)){result[key]=_url.searchParams.get(key)}else{result[key]=_undefined}}
50if(args.length===1){return Object.values(result)[0]}
51return result},remove:function(){const self=this;const args=$ush.toArray(arguments);for(const key of args)if(self.has(key)){_url.searchParams.delete(key)}
52return self},toString:function(){return _url.toString()},toJson:function(toString){var result={};_url.searchParams.forEach((_,key,searchParams)=>{var values=searchParams.getAll(key);if(values.length<2){values=values[0]}
53result[key]=$ush.isUndefined(values)?'':values});if(toString){result=JSON.stringify(result);if(result==='{}'){result=''}}
54return result},ignoreParams:[],getChangedParams:function(){const self=this;const data={setParams:{},oldParams:{}};if(!self.isChanged()){return data}
55const ignoreParams=$ush.toArray(self.ignoreParams);(new URL(lastUrl)).searchParams.forEach((value,key)=>{if(!ignoreParams.includes(key)&&!self.has(key,value)){data.oldParams[key]=value}});_url.searchParams.forEach((value,key)=>{if(!ignoreParams.includes(key)||(!$ush.isUndefined(data.oldParams[key])&&data.oldParams[key]!==value)){data.setParams[key]=value}});return $ush.clone(data)},push:function(state,urldecode){const self=this;if(!self.isChanged()){return}
56if(!$.isPlainObject(state)){state={}}
57history.pushState($.extend(state,self.getChangedParams()),'',lastUrl=self.toString());$window.trigger('pushstate');return self}})}}(jQuery);var _document=document,_navigator=navigator,_undefined=undefined,_window=window;!function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;
57function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));jQuery.easing.jswing=jQuery.easing.swing;var pow=Math.pow;jQuery.extend(jQuery.easing,{def:"easeOutExpo",easeInExpo:function(a){return 0===a?0:pow(2,10*a-10)},easeOutExpo:function(a){return 1===a?1:1-pow(2,-10*a)},easeInOutExpo:function(a){return 0===a?0:1===a?1:.5>a?pow(2,20*a-10)/2:(2-pow(2,-20*a+10))/2}});_window.$us=_window.$us||{};_window.$ush=_window.$ush||{};$us.iOS=(/^iPad|iPhone|iPod/.test(_navigator.platform)||(_navigator.userAgent.indexOf('Mac')>-1&&_navigator.maxTouchPoints>1&&$ush.isTouchend));$us.mobileNavOpened=0;$us.header={};['getCurrentHeight','getHeaderInitialPos','getHeight','getScrollDirection','getScrollTop','isFixed','isHidden','isHorizontal','isStatic','isSticky','isStickyAutoHidden','stickyAutoHideEnabled','stickyEnabled','isTransparent','isVertical','on'].map((name)=>{$us.header[name]=jQuery.noop});jQuery.fn.usMod=function(mod,value){const self=this;if(self.length==0)return self;if(value===_undefined){const pcre=new RegExp('^.*?'+mod+'_([\dA-Za-z_-]+).*?$');return(pcre.exec(self.get(0).className)||[])[1]||!1}
58self.each((_,item)=>{item.className=item.className.replace(new RegExp('(^| )'+mod+'_[\dA-Za-z_-]+( |$)'),'$2');if(value!==!1){item.className+=' '+mod+'_'+value}});return self};$us.getAnimationName=function(animationName,defaultAnimationName){if(jQuery.easing.hasOwnProperty(animationName)){return animationName}
59return defaultAnimationName?defaultAnimationName:jQuery.easing._default};$us.mixins={};$us.mixins.Events={on:function(eventType,handler){const self=this;if(self.$$events===_undefined){self.$$events={}}
60if(self.$$events[eventType]===_undefined){self.$$events[eventType]=[]}
61self.$$events[eventType].push(handler);return self},off:function(eventType,handler){const self=this;if(self.$$events===_undefined||self.$$events[eventType]===_undefined){return self}
62if(handler!==_undefined){var handlerPos=jQuery.inArray(handler,self.$$events[eventType]);if(handlerPos!=-1){self.$$events[eventType].splice(handlerPos,1)}}else{self.$$events[eventType]=[]}
63return self},trigger:function(eventType,extraParameters){const self=this;if(self.$$events===_undefined||self.$$events[eventType]===_undefined||self.$$events[eventType].length==0){return self}
64var args=arguments,params=(args.length>2||!Array.isArray(extraParameters))?Array.prototype.slice.call(args,1):extraParameters;params.unshift(self);for(var index=0;
64index<self.$$events[eventType].length;index ++){self.$$events[eventType][index].apply(self.$$events[eventType][index],params)}
65return self}};jQuery.isMobile=(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(_navigator.userAgent)||(_navigator.platform=='MacIntel'&&_navigator.maxTouchPoints>1));!function($){$us.$window=$(_window);$us.$document=$(_document);$us.$html=$('html');$us.$body=$('.l-body:first');$us.$htmlBody=$us.$html.add($us.$body);$us.$canvas=$('.l-canvas:first');$us.usbPreview=()=>{return _document.body.className.includes('usb_preview')};if($us.iOS){$us.$html.removeClass('no-touch').addClass('ios-touch')}else if($.isMobile||$ush.isTouchend){$us.$html.removeClass('no-touch').addClass('touch')}else{}}(jQuery);!function($){$us.getCurrentState=()=>{return $ush.toString($us.$body.usMod('state'))};$us.currentStateIs=(state)=>{if(!state){return!1}
66if(!Array.isArray(state)){state=[$ush.toString(state)]}
67return state.includes($us.getCurrentState())};$us.getAdminBarHeight=()=>{return(_document.getElementById('wpadminbar')||{}).offsetHeight||0}}(jQuery);!function($){"use strict";function USCanvas(options){const self=this;const defaults={disableEffectsWidth:900,backToTopDisplay:100};self.options=$.extend({},defaults,options||{});self.setGlobalState();self.$header=$('.l-header',$us.$canvas);self.$main=$('.l-main',$us.$canvas);self.$sections=$('> *:not(.l-header) .l-section',$us.$canvas);self.$firstSection=self.$sections.first();self.$secondSection=self.$sections.eq(1);self.$stickySections=self.$sections.filter('.type_sticky:visible');self.$fullscreenSections=self.$sections.filter('.full_height');self.$topLink=$('.w-toplink');self.type=$us.$canvas.usMod('type');self._headerPos=self.$header.usMod('pos');self.headerPos=self._headerPos;self.headerBg=self.$header.usMod('bg');self.rtl=$us.$body.hasClass('rtl');self.isScrolling=!1;self.isAndroid=/Android/i.test(_navigator.userAgent);self._events={scroll:self.scroll.bind(self),resize:self.resize.bind(self),toggleClassIsSticky:self.toggleClassIsSticky.bind(self),}
68if($us.$body.hasClass('us_iframe')){$('a:not([target])').each((_,node)=>$(node).attr('target','_parent'));$(()=>$('.l-popup-box',_window.parent.document).removeClass('loading'))}
69if(self.hasStickyFirstSection()){$us.$body.addClass('sticky_first_section')}
70$us.$window.on('scroll.noPreventDefault',self._events.scroll).on('resize load',self._events.resize).on('scroll.noPreventDefault resize load',self._events.toggleClassIsSticky);$ush.timeout(self._events.resize,25);$ush.timeout(self._events.resize,75)}
71USCanvas.prototype={setGlobalState:function(){const self=this;self.winHeight=$ush.parseInt($us.$window.height());self.winWidth=$ush.parseInt($us.$window.width());$us.$body.toggleClass('disable_effects',(self.winWidth<self.options.disableEffectsWidth));var state;if(self.winWidth>self.options.laptopsBreakpoint){state='default'}else if(self.winWidth>self.options.tabletsBreakpoint){state='laptops'}else if(self.winWidth>self.options.mobilesBreakpoint){state='tablets'}else{state='mobiles'}
72$us.$body.usMod('state',state)},getOffsetTop:function(){var top=Math.ceil($us.$canvas.offset().top);if($us.currentStateIs('mobiles')){top-=$us.getAdminBarHeight()}
73return top},isStickySection:function(){return this.$stickySections.length>0},hasStickySection:function(){const self=this;if(self.isStickySection()){return self.$stickySections.hasClass('is_sticky')}
74return!1},hasPositionStickySections:function(){const self=this;if(self.isStickySection()){return self.$stickySections.filter((_,node)=>{return $(node).css('position')=='sticky'}).length>0}
75return!1},getStickySectionHeight:function(){const self=this;var stickySectionHeight=0;if(self.isStickySection()){var header=$us.header,$stickySection=self.$stickySections.first();stickySectionHeight=$stickySection.outerHeight(!0);if(self.hasStickyFirstSection()&&header.isHorizontal()&&!header.isStatic()){stickySectionHeight-=header.getCurrentHeight()}}
76return stickySectionHeight},hasStickyFirstSection:function(){const self=this;const $first=self.$stickySections.first();return self.isStickySection()&&$first.index()===0&&$first.hasClass('is_sticky')},isAfterStickySection:function(node){var $node=$(node);if($node.length==0){return!1}
77if(!$node.hasClass('l-section')){$node=$node.closest('.l-section')}
78return $node.index()>this.$stickySections.index()},getHeightFirstSection:function(){return this.$firstSection.length>0?parseFloat(this.$firstSection.outerHeight(!0)):0},scroll:function(){const self=this;const scrollTop=parseInt($us.$window.scrollTop());self.$topLink.toggleClass('visible',(scrollTop>=self.winHeight*self.options.backToTopDisplay/100));if(self.isAndroid){if(self.pid){$ush.clearTimeout(self.pid)}
79self.isScrolling=!0;self.pid=$ush.timeout(()=>{self.isScrolling=!1},100)}},resize:function(){const self=this;self.setGlobalState();if($us.$body.hasClass('us_iframe')){var $frameContent=$('.l-popup-box-content',_window.parent.document),outerHeight=$us.$body.outerHeight(!0);if(outerHeight>0&&$(_window.parent).height()>outerHeight){$frameContent.css('height',outerHeight)}else{$frameContent.css('height','')}}
80self.scroll()},toggleClassIsSticky:function(){const self=this;if(!self.isStickySection()){return}
81self.$stickySections.each((_,section)=>{const $section=$(section);const offsetTop=section.getBoundingClientRect().top-parseInt($section.css('top'));$section.toggleClass('is_sticky',(parseInt(offsetTop)===0&&$section.css('position')=='sticky'))})}};$us.canvas=new USCanvas($us.canvasOptions||{})}(jQuery);!function($){$.fn.resetInlineCSS=function(){const self=this;var args=[].slice.call(arguments);if(args.length>0&&Array.isArray(args[0])){args=args[0]}
82for(var index=0;
82index<args.length;index++){self.css(args[index],'')}
83return self};$.fn.clearPreviousTransitions=function(){const self=this;const prevTimers=(self.data('animation-timers')||'').split(',');if(prevTimers.length>=2){self.resetInlineCSS('transition');prevTimers.map(clearTimeout);self.removeData('animation-timers')}
84return self};$.fn.performCSSTransition=function(css,duration,onFinish,easing,delay){const self=this;var transition=[];duration=duration||250;delay=delay||25;easing=easing||'ease';self.clearPreviousTransitions();for(const attr in css){if(!css.hasOwnProperty(attr)){continue}
85transition.push(attr+' '+(duration/1000)+'s '+easing)}
86transition=transition.join(', ');self.css({transition:transition});const timer1=setTimeout(()=>self.css(css),delay);const timer2=setTimeout(()=>{self.resetInlineCSS('transition');if(typeof onFinish==='function'){onFinish()}},duration+delay);self.data('animation-timers',timer1+','+timer2)};$.fn.slideDownCSS=function(duration,onFinish,easing,delay){const self=this;if(self.length==0){return}
87self.clearPreviousTransitions();self.resetInlineCSS('padding-top','padding-bottom');const timer1=setTimeout(()=>{const paddingTop=parseInt(self.css('padding-top'));const paddingBottom=parseInt(self.css('padding-bottom'));self.css({visibility:'hidden',position:'absolute',height:'auto','padding-top':0,'padding-bottom':0,display:'block'});var height=self.height();self.css({overflow:'hidden',height:'0px',opacity:0,visibility:'',position:''});self.performCSSTransition({opacity:1,height:height+paddingTop+paddingBottom,'padding-top':paddingTop,'padding-bottom':paddingBottom},duration,()=>{self.resetInlineCSS('overflow').css('height','auto');if(typeof onFinish=='function'){onFinish()}},easing,delay)},25);self.data('animation-timers',timer1+',null')};$.fn.slideUpCSS=function(duration,onFinish,easing,delay){const self=this;if(self.length==0){return}
88self.clearPreviousTransitions();self.css({height:self.outerHeight(),overflow:'hidden','padding-top':self.css('padding-top'),'padding-bottom':self.css('padding-bottom')});self.performCSSTransition({height:0,opacity:0,'padding-top':0,'padding-bottom':0},duration,()=>{self.resetInlineCSS('overflow','padding-top','padding-bottom').css({display:'none'});if(typeof onFinish=='function'){onFinish()}},easing,delay)};$.fn.fadeInCSS=function(duration,onFinish,easing,delay){const self=this;if(self.length==0){return}
89self.clearPreviousTransitions();self.css({opacity:0,display:'block'});self.performCSSTransition({opacity:1},duration,onFinish,easing,delay)};$.fn.fadeOutCSS=function(duration,onFinish,easing,delay){const self=this;if(self.length==0){return}
90self.performCSSTransition({opacity:0},duration,()=>{self.css('display','none');if(typeof onFinish==='function'){onFinish()}},easing,delay)}}(jQuery);jQuery(function($){"use strict";if(_document.cookie.indexOf('us_cookie_notice_accepted=true')!==-1){$('.l-cookie').remove()}else{$us.$document.on('click','#us-set-cookie',(e)=>{e.preventDefault();e.stopPropagation();const d=new Date();d.setFullYear(d.getFullYear()+1);_document.cookie=`us_cookie_notice_accepted=true; expires=${d.toUTCString()}; path=/;`;if(location.protocol==='https:'){_document.cookie+=' secure;'}
91$('.l-cookie').remove()})}
92if($us.darkThemeIsOn&&window.matchMedia('(prefers-color-scheme: dark)').matches&&!$ush.getCookie('us_color_scheme_switch_is_on')){$ush.setCookie('us_color_scheme_switch_is_on','true',30);$('.w-color-switch input[name=us-color-scheme-switch]').prop('checked',!0);$us.$html.addClass('us-color-scheme-on')}
93$us.$document.on('change','[name=us-color-scheme-switch]',()=>{if($ush.getCookie('us_color_scheme_switch_is_on')==='true'){$us.$html.removeClass('us-color-scheme-on');$us.$html.addClass('us-color-scheme-off');$ush.setCookie('us_color_scheme_switch_is_on','false',30)}else{$us.$html.addClass('us-color-scheme-on');$us.$html.removeClass('us-color-scheme-off');$ush.setCookie('us_color_scheme_switch_is_on','true',30)}
94if($us.header.$container.length){$us.header.$container.addClass('notransition');$ush.timeout(()=>$us.header.$container.removeClass('notransition'),50)}});function usPopupLink(context,opts){const $links=$('a[ref=magnificPopup][class!=direct-link]:not(.inited)',context||_document);const defaultOptions={fixedContentPos:!0,mainClass:'mfp-fade',removalDelay:300,type:'image'};if($links.length>0){$links.addClass('inited').magnificPopup($.extend({},defaultOptions,opts||{}))}};$.fn.usPopupLink=function(opts){return this.each(function(){$(this).data('usPopupLink',new usPopupLink(this,opts))})};$(()=>$us.$document.usPopupLink());if($.magnificPopup){$.magnificPopup.defaults.callbacks=$.extend({},$.magnificPopup.defaults.callbacks,{afterChange:function(){const item=this.currItem;if(item&&item.img&&item.el&&item.el.is('[data-alt]')){item.img.attr('alt',item.el.attr('data-alt'))}},open:function(){const self=this;
94self.wrap.attr({'role':'dialog','aria-modal':'true','aria-label':$us.langOptions.magnificPopup.tDialog});$us.$body.children().each((_,node)=>{const $node=$(node);if($node.is(self.wrap)||$node.is(self.bgOverlay)||$node.is('script, style, link')||$node.attr('aria-hidden')){return}
95$node.attr({'aria-hidden':'true','data-mfp-hidden':''})})},afterClose:function(){$('[data-mfp-hidden]').removeAttr('aria-hidden data-mfp-hidden')}})}(function(){const $footer=$('.l-footer');if($us.$body.hasClass('footer_reveal')&&$footer.length>0&&$footer.html().trim().length>0){function usFooterReveal(){var footerHeight=$footer.innerHeight();if(_window.innerWidth>parseInt($us.canvasOptions.columnsStackingWidth)-1){$us.$canvas.css('margin-bottom',Math.round(footerHeight)-1)}else{$us.$canvas.css('margin-bottom','')}};usFooterReveal();$us.$window.on('resize load',usFooterReveal)}})();const $usYTVimeoVideoContainer=$('.with_youtube, .with_vimeo');if($usYTVimeoVideoContainer.length>0){$us.$window.on('resize load',()=>{$usYTVimeoVideoContainer.each(function(){var $container=$(this),$frame=$container.find('iframe').first(),cHeight=$container.innerHeight(),cWidth=$container.innerWidth(),fWidth='',fHeight='';if(cWidth/cHeight<16/9){fWidth=cHeight*(16/9);fHeight=cHeight}else{fWidth=cWidth;fHeight=fWidth*(9/16)}
96$frame.css({'width':Math.round(fWidth),'height':Math.round(fHeight),})})})}});(function($){"use strict";function USWaypoints(){const self=this;self.waypoints=[];$us.$canvas.on('contentChange',self._countAll.bind(self));$us.$window.on('resize load',self._events.resize.bind(self)).on('scroll scroll.waypoints',self._events.scroll.bind(self));$ush.timeout(self._events.resize.bind(self),75);$ush.timeout(self._events.scroll.bind(self),75)}
97USWaypoints.prototype={_events:{scroll:function(){const self=this;var scrollTop=parseInt($us.$window.scrollTop());scrollTop=(scrollTop>=0)?scrollTop:0;for(var i=0;i<self.waypoints.length;i ++){if(self.waypoints[i].scrollPos<scrollTop){self.waypoints[i].fn(self.waypoints[i].$node);self.waypoints.splice(i,1);i --}}},resize:function(){const self=this;$ush.timeout(()=>{self._countAll.call(self);self._events.scroll.call(self)},150);self._countAll.call(self);self._events.scroll.call(self)}},add:function($node,offset,fn){const self=this;$node=($node instanceof $)?$node:$($node);if($node.length==0){return}
98if(typeof offset!='string'||offset.indexOf('%')==-1){offset=parseInt(offset)}
99if($node.offset().top<($us.$window.height()+$us.$window.scrollTop())){offset=0}
100var waypoint={$node:$node,offset:offset,fn:fn};self._count(waypoint);self.waypoints.push(waypoint)},_count:function(waypoint){const elmTop=waypoint.$node.offset().top,winHeight=$us.$window.height();if(typeof waypoint.offset=='number'){waypoint.scrollPos=elmTop-winHeight+waypoint.offset}else{waypoint.scrollPos=elmTop-winHeight+winHeight*parseInt(waypoint.offset)/100}},_countAll:function(){const self=this;for(var i=0;i<self.waypoints.length;i ++){self._count(self.waypoints[i])}}};$us.waypoints=new USWaypoints})(jQuery);(function(){var lastTime=0;const vendors=['ms','moz','webkit','o'];for(var x=0;x<vendors.length&&!_window.requestAnimationFrame;++ x){_window.requestAnimationFrame=_window[vendors[x]+'RequestAnimationFrame'];_window.cancelAnimationFrame=_window[vendors[x]+'CancelAnimationFrame']||_window[vendors[x]+'CancelRequestAnimationFrame']}
101if(!_window.requestAnimationFrame){_window.requestAnimationFrame=(callback,element)=>{const currTime=new Date().getTime();const timeToCall=Math.max(0,16-(currTime-lastTime));const id=_window.setTimeout(()=>callback(currTime+timeToCall),timeToCall);lastTime=currTime+timeToCall;return id}}
102if(!_window.cancelAnimationFrame){_window.cancelAnimationFrame=(id)=>clearTimeout(id)}}());!function($){if($us.$body.hasClass('single-format-video')){$('figure.wp-block-embed div.wp-block-embed__wrapper',$us.$body).each((_,node)=>{if(node.firstElementChild===null){node.remove()}})}}(jQuery);!function($){"use strict";function usCollapsibleContent(container){const self=this;self._events={showContent:self.showContent.bind(self),};self.$container=$(container);self.$firstElement=$('> *:first',self.$container);self.collapsedHeight=self.$container.data('content-height')||200;self.$container.on('click','.collapsible-content-more, .collapsible-content-less',self._events.showContent);if(self.$container.closest('.owl-carousel').length==0){self.setHeight.call(self)}};usCollapsibleContent.prototype={setHeight:function(){const self=this;let collapsedHeight=self.$firstElement.css('height',self.collapsedHeight).height();self.$firstElement.css('height','');let heightFirstElement=self.$firstElement.height();if(heightFirstElement&&heightFirstElement<=collapsedHeight){$('.toggle-links',self.$container).hide();self.$firstElement.css('height','');self.$container.removeClass('with_collapsible_content')}else{$('.toggle-links',self.$container).show();self.$firstElement.css('height',self.collapsedHeight)}},showContent:function(e){const self=this;e.preventDefault();e.stopPropagation();self.$container.toggleClass('show_content',$(e.target).hasClass('collapsible-content-more')).trigger('showContent');$ush.timeout(()=>{$us.$canvas.trigger('contentChange');if($.isMobile&&!$ush.isNodeInViewport(self.$container[0])){$us.$htmlBody.stop(!0,!1).scrollTop(self.$container.offset().top-$us.header.getCurrentHeight(!0))}},1)}};$.fn.usCollapsibleContent=function(){return this.each(function(){$(this).data('usCollapsibleContent',new usCollapsibleContent(this))})};$('[data-content-height]',$us.$canvas).usCollapsibleContent();$us.$document.on('usPostList.itemsLoaded usGrid.itemsLoaded',(_,$items)=>{$('[data-content-height]',$items).usCollapsibleContent()});if($('.owl-carousel',$us.$canvas).length>0){$us.$canvas.on('click','.collapsible-content-more, .collapsible-content-less',(e)=>{const $target=$(e.target);const $container=$target.closest('[data-content-height]');
102if(!$container.data('usCollapsibleContent')){$container.usCollapsibleContent();$target.trigger('click')}})}}(jQuery);!function($){$us.$document.on('usPopup.afterShow',(_,usPopup)=>{if(usPopup instanceof $us.usPopup&&$('video.wp-video-shortcode',usPopup.$box).length>0){const handle=$ush.timeout(()=>{$ush.clearTimeout(handle);_window.dispatchEvent(new Event('resize'))},1)}})}(jQuery);!function($){"use strict";$us.scrollbarWidth=function(force){const self=this;if($ush.isUndefined(self.width)||force){const scrollDiv=_document.createElement('div');scrollDiv.style.cssText='width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;';_document.body.appendChild(scrollDiv);self.width=scrollDiv.offsetWidth-scrollDiv.clientWidth;_document.body.removeChild(scrollDiv)}
103return self.width};if($.magnificPopup){const origMfpOpen=$.magnificPopup.proto.open;const origMfpClose=$.magnificPopup.proto._close;$.magnificPopup.proto.open=function(){const result=origMfpOpen.apply(this,arguments);$us.$html.css('margin-right','');$us.$document.trigger('usMagnificPopupOpened',this);return result};$.magnificPopup.proto._close=function(){const result=origMfpClose.apply(this,arguments);$us.$document.trigger('usMagnificPopupClosed',this);return result};function animateItemChange(mfp,fromRight){if(!mfp.wrap){return}
104const wrap=mfp.wrap[0];wrap.classList.remove('us_mfp_from_left','us_mfp_from_right');if(wrap.offsetWidth){wrap.classList.add(fromRight?'us_mfp_from_right':'us_mfp_from_left')}}
105const origMfpNext=$.magnificPopup.proto.next;const origMfpPrev=$.magnificPopup.proto.prev;$.magnificPopup.proto.next=function(){const result=origMfpNext.apply(this,arguments);animateItemChange(this,!$ush.isRtl());return result};$.magnificPopup.proto.prev=function(){const result=origMfpPrev.apply(this,arguments);animateItemChange(this,$ush.isRtl());return result};const SWIPE_MIN_DISTANCE=50;const SWIPE_MAX_DURATION=700;const SWIPE_AXIS_RATIO=1.5;let swipe;$us.$document.on('touchstart.usMfpSwipe','.mfp-wrap',(e)=>{const touches=e.originalEvent.touches;swipe=_undefined;if(touches.length!=1){return}
106if($(e.target).closest('.mfp-arrow, .mfp-close').length){return}
107swipe={startX:touches[0].clientX,startY:touches[0].clientY,startTime:Date.now(),}}).on('touchcancel.usMfpSwipe','.mfp-wrap',()=>{swipe=_undefined}).on('touchend.usMfpSwipe','.mfp-wrap',(e)=>{if(!swipe){return}
108const touch=e.originalEvent.changedTouches[0];const mfp=$.magnificPopup.instance;const deltaX=touch.clientX-swipe.startX;const deltaY=touch.clientY-swipe.startY;const isExpired=(Date.now()-swipe.startTime)>SWIPE_MAX_DURATION;swipe=_undefined;if(isExpired||!mfp||!mfp.isOpen){return}
109if(Math.abs(deltaX)>=SWIPE_MIN_DISTANCE&&Math.abs(deltaX)>Math.abs(deltaY)*SWIPE_AXIS_RATIO){if((mfp.st.gallery||{}).enabled&&(mfp.items||[]).length>1){if((deltaX<0)!=$ush.isRtl()){mfp.next()}else{mfp.prev()}}
110return}
111if(Math.abs(deltaY)>=SWIPE_MIN_DISTANCE&&Math.abs(deltaY)>Math.abs(deltaX)*SWIPE_AXIS_RATIO){mfp.close()}})}
112$us.$document.on('usPopupOpened usMagnificPopupOpened',()=>{$us.$html.addClass('us_popup_is_opened');if(!$.isMobile&&$us.$html[0].scrollHeight>$us.$html[0].clientHeight){const scrollbarWidth=$us.scrollbarWidth();if(scrollbarWidth){$us.$html.css('--scrollbar-width',scrollbarWidth+'px')}}});$us.$document.on('usPopupClosed usMagnificPopupClosed',()=>{$us.$html.removeClass('us_popup_is_opened');if(!$.isMobile){$us.$html.css('--scrollbar-width','')}})}(jQuery);!function($,_undefined){"use strict";const _document=document;const _location=location;const ceil=Math.ceil;window.$ush=window.$ush||{};window.$us=window.$us||{};function USScroll(opts){const self=this;const defaultOpts={attachOnInit:['.menu-item a[href*="#"]','.menu-item[href*="#"]','.post_custom_field a[href*="#"]','.post_title a[href*="#"]','.w-ibanner a[href*="#"]','.vc_custom_heading a[href*="#"]','.vc_icon_element a[href*="#"]','.w-comments-title a[href*="#"]','.w-iconbox a[href*="#"]','.w-image a[href*="#"]:not([onclick])','.w-text a[href*="#"]','.w-toplink','a.smooth-scroll[href*="#"]','a.w-btn[href*="#"]:not([onclick]):not(.w-skip-btn)','a.w-grid-item-anchor[href*="#"]'].join(),buttonActiveClass:'active',menuItemActiveClass:'current-menu-item',menuItemAncestorActiveClass:'current-menu-ancestor',animationDuration:($us.canvasOptions||{}).scrollDuration||0,animationEasing:$us.getAnimationName('easeInOutExpo'),endAnimationEasing:$us.getAnimationName('easeOutExpo')};self.opts=$.extend({},defaultOpts,opts||{});self.blocks={};self.isScrolling=!1;self._events={onAnchorClick:self.onAnchorClick.bind(self),onCancel:self.onCancel.bind(self),onScroll:self.onScroll.bind(self),onResize:self.onResize.bind(self)};$us.$window.on('resize load',$ush.debounce(self._events.onResize,1));$ush.timeout(self._events.onResize,75);$us.$window.on('scroll.noPreventDefault',self._events.onScroll);$ush.timeout(self._events.onScroll,75);if(self.opts.attachOnInit){self.attach(self.opts.attachOnInit)}
113$us.$canvas.on('contentChange',self._countAllPositions.bind(self));if(_location.hash&&_location.hash.indexOf('#!')==-1){var hash=_location.hash,scrollPlace=(self.blocks[hash]!==_undefined)?hash:_undefined;if(scrollPlace===_undefined){try{const $target=$(hash);if($target.length!=0){scrollPlace=$target}}catch(error){}}
114if(scrollPlace!==_undefined){var keepScrollPositionTimer=setInterval(()=>{self.scrollTo(scrollPlace);if(_document.readyState!=='loading'){clearInterval(keepScrollPositionTimer)}},100);const clearHashEvents=()=>{$us.$window.off('load mousewheel.noPreventDefault DOMMouseScroll touchstart.noPreventDefault',clearHashEvents);$ush.timeout(()=>{$us.canvas.resize();self._countAllPositions();
114if($us.hasOwnProperty('waypoints')){$us.waypoints._countAll()}
115self.scrollTo(scrollPlace)},100)};$us.$window.on('load mousewheel.noPreventDefault DOMMouseScroll touchstart.noPreventDefault',clearHashEvents)}}
116self.animateOpts={duration:self.opts.animationDuration,easing:self.opts.animationEasing,start:()=>{self.isScrolling=!0},complete:()=>{self.onCancel()},}}
117USScroll.prototype={_countPosition:function(hash){const self=this;var $target=self.blocks[hash].$target,offsetTop=$target.offset().top;if($target.hasClass('type_sticky')){var key='realTop';if(!$target.hasClass('is_sticky')){$target.removeData(key)}
118if(!$target.data(key)){$target.data(key,offsetTop)}
119offsetTop=$target.data(key)||offsetTop}
120if($us.$body.hasClass('footer_reveal')&&$target.closest('footer').length){offsetTop=$us.$body.outerHeight(!0)+(offsetTop-$us.$window.scrollTop())}
121self.blocks[hash].top=ceil(offsetTop-$us.canvas.getOffsetTop())},_countAllPositions:function(){const self=this;for(const hash in self.blocks){if(self.blocks[hash]){self._countPosition(hash)}}},indicatePosition:function(activeHash){const self=this;for(const hash in self.blocks){if(!self.blocks[hash]){continue}
122const block=self.blocks[hash];if(!$ush.isUndefined(block.buttons)){block.buttons.toggleClass(self.opts.buttonActiveClass,hash===activeHash)}
123if(!$ush.isUndefined(block.menuItems)){block.menuItems.toggleClass(self.opts.menuItemActiveClass,hash===activeHash)}
124if(!$ush.isUndefined(block.menuAncestors)){block.menuAncestors.removeClass(self.opts.menuItemAncestorActiveClass)}}
125if(!$ush.isUndefined(self.blocks[activeHash])&&!$ush.isUndefined(self.blocks[activeHash].menuAncestors)){self.blocks[activeHash].menuAncestors.addClass(self.opts.menuItemAncestorActiveClass)}},attach:function(anchors){const self=this;const $anchors=$(anchors).not('.no_smooth_scroll');if($anchors.length==0){return}
126var _pathname=decodeURIComponent(_location.pathname),patternPathname=new RegExp('^'+_pathname.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+'#'),patternPageId=/^\/?(\?page_id=\d+).*?/;$anchors.each((index,anchor)=>{const $anchor=$(anchor);if($anchor.closest('.no_smooth_scroll').length>0){return}
127var href=$ush.toString($anchor.attr('href')).replace(_location.origin,''),hash=$anchor.prop('hash'),hasProtocol=/^(https?:\/\/)/.test(href),hasPageId=patternPageId.test(href);if(hash.indexOf('#!')>-1||href.indexOf('#')<0||(href.substr(0,2)=='/#'&&_location.search&&_pathname=='/')||(hasProtocol&&href.indexOf(_location.origin)!==0)||(hasPageId&&href.indexOf((_location.search.match(patternPageId)||[])[1])==-1)||(href.charAt(0)=='/'&&!hasPageId&&!patternPathname.test(href))){return}
128if(hash!=''&&hash!='#'){if(self.blocks[hash]===_undefined){var $target=$(`[id="${hash.slice(1)}"]:visible`),$originalTarget,type='';if($target.length==0){return}
129if($target.hasClass('g-cols')&&$target.hasClass('vc-row')&&$target.parent().children().length==1){$target=$target.closest('.l-section')}
130if($target.hasClass('w-tabs-section')){const $newTarget=$target.closest('.w-tabs');if(!$newTarget.hasClass('accordion')){$originalTarget=$target;$target=$newTarget}
131type='tab-section'}else if($target.hasClass('w-tabs')){type='tabs'}
132self.blocks[hash]={type:type,$target:$target,$originalTarget:$originalTarget};self._countPosition(hash)}
133if($anchor.parent().length>0&&$anchor.parent().hasClass('menu-item')){var $menuIndicator=$anchor.closest('.menu-item');self.blocks[hash].menuItems=(self.blocks[hash].menuItems||$()).add($menuIndicator);var $menuAncestors=$menuIndicator.parents('.menu-item-has-children');if($menuAncestors.length>0){self.blocks[hash].menuAncestors=(self.blocks[hash].menuAncestors||$()).add($menuAncestors)}}else{self.blocks[hash].buttons=(self.blocks[hash].buttons||$()).add($anchor)}}
134$anchor.on('click',self._events.onAnchorClick)})},getPlacePosition:function(place){const self=this;const data={newY:0,type:''};if(place===''||place==='#'){data.newY=0;data.type='top'}else if(self.blocks[place]!==_undefined){self._countPosition(place);data.newY=self.blocks[place].top;data.type='hash';place=self.blocks[place].$target}else if(place instanceof $){if(place.hasClass('w-tabs-section')){var newPlace=place.closest('.w-tabs');if(!newPlace.hasClass('accordion')){place=newPlace}}
135data.newY=place.offset().top;data.type='element'}else{data.newY=place}
136if($us.canvas.isStickySection()&&$us.canvas.hasPositionStickySections()&&!$(place).hasClass('type_sticky')&&$us.canvas.isAfterStickySection(place)){data.newY-=$us.canvas.getStickySectionHeight()}
137return data},scrollTo:function(place,animate){const self=this;var $place=$(place);if($place.closest('.w-popup-wrap').length){self.scrollToPopupContent(place);return!0}
138var offset=self.getPlacePosition(place),indicateActive=()=>{if(offset.type==='hash'){self.indicatePosition(place)}else{self.onScroll()}};if(animate){if(navigator.userAgent.match(/iPad/i)!=null&&$('.us_iframe').length&&offset.type=='hash'){$place[0].scrollIntoView({behavior:"smooth",block:"start"})}
139var scrollTop=$us.$window.scrollTop(),scrollDirections=scrollTop<offset.newY?'down':'up';if(scrollTop===offset.newY){return}
140const animateOpts=$.extend({},self.animateOpts,{always:()=>{self.isScrolling=!1;indicateActive()}});animateOpts.step=(now,fx)=>{var newY=self.getPlacePosition(place).newY;if($us.header.isHorizontal()&&$us.header.stickyEnabled()){newY-=$us.header.getCurrentHeight()}
141fx.end=newY};if($place.hasClass('us_animate_this')){$place.trigger('us_startAnimate')}
142$us.$htmlBody.stop(!0,!1).animate({scrollTop:offset.newY+'px'},animateOpts);$us.$window.on('keydown mousewheel.noPreventDefault DOMMouseScroll touchstart.noPreventDefault',self._events.onCancel)}else{if($us.header.stickyEnabled()&&$us.header.isHorizontal()){offset.newY-=$us.header.getCurrentHeight(!0)}
143$us.$htmlBody.stop(!0,!1).scrollTop(offset.newY);indicateActive()}},scrollToPopupContent:function(place){const self=this;const node=_document.getElementById(place.replace('#',''));const animateOpts=$.extend({},self.animateOpts,{always:()=>{self.isScrolling=!1},});$(node).closest('.w-popup-wrap').stop(!0,!1).animate({scrollTop:node.offsetTop+'px'},animateOpts);$us.$window.on('keydown mousewheel.noPreventDefault DOMMouseScroll touchstart.noPreventDefault',self._events.onCancel)},onAnchorClick:function(e){e.preventDefault();const self=this;const $anchor=$(e.currentTarget);const hash=$anchor.prop('hash');if($anchor.hasClass('w-nav-anchor')&&$anchor.closest('.menu-item').hasClass('menu-item-has-children')&&$anchor.closest('.w-nav').hasClass('type_mobile')){var menuOptions=$anchor.closest('.w-nav').find('.w-nav-options:first')[0].onclick()||{},dropByLabel=$anchor.parents('.menu-item').hasClass('mobile-drop-by_label'),dropByArrow=$anchor.parents('.menu-item').hasClass('mobile-drop-by_arrow');if(dropByLabel||(menuOptions.mobileBehavior&&!dropByArrow)){return!1}}
144if($anchor.attr('href')==='#'&&$anchor.closest('.w-popup-wrap').length){return!1}
145self.scrollTo(hash,!0);if(hash==='#page-top'){const active=document.activeElement;if(active&&typeof active.blur==='function'){active.blur()}
146if(!self.focusHolder){self.focusHolder=document.createElement('div');self.focusHolder.tabIndex=-1;self.focusHolder.classList.add('focus-holder');self.focusHolder.setAttribute('aria-hidden','true');document.body.appendChild(self.focusHolder)}
147requestAnimationFrame(()=>{self.focusHolder.focus({preventScroll:!0})});return}
148self.indicatePosition(hash);if(typeof self.blocks[hash]!=='undefined'){var block=self.blocks[hash];if(['tabs','tab-section'].includes(block.type)){var $linkedSection=$(`.w-tabs-section[id="${hash.substr(1)}"]`,block.$target);if(block.type==='tabs'){$linkedSection=$('.w-tabs-section:first',block.$target)}else if(block.$target.hasClass('w-tabs-section')){$linkedSection=block.$target}
149if($linkedSection.length){$('.w-tabs-section-header',$linkedSection).trigger('click')}}else if(block.menuItems!==_undefined&&$us.currentStateIs(['mobiles','tablets'])&&$us.$body.hasClass('header-show')){$us.$body.removeClass('header-show')}}},onCancel:function(){$us.$htmlBody.stop(!0,!1);$us.$window.off('keydown mousewheel.noPreventDefault DOMMouseScroll touchstart',this._events.onCancel);this.isScrolling=!1},onScroll:function(){const self=this;if(self.isScrolling){return}
150var scrollTop=ceil($us.header.getScrollTop()),activeHash;scrollTop=(scrollTop>=0)?scrollTop:0;for(const hash in self.blocks){const block=self.blocks[hash];if(!block||activeHash||$ush.isNodeInViewport(block)){continue}
151var top=block.top;if(!$us.header.isHorizontal()){top-=$us.canvas.getOffsetTop()}else{if($us.header.stickyEnabled()){top-=$us.header.getCurrentHeight(!0)}
152if($us.canvas.hasStickySection()){top-=$us.canvas.getStickySectionHeight()}}
153top=$ush.parseInt(top.toFixed(0));if(scrollTop>=top&&scrollTop<=(top+block.$target.outerHeight(!1))){activeHash=hash}
154if(activeHash&&block.type==='tab-section'&&block.$originalTarget.is(':hidden')){activeHash=_undefined}}
155$ush.debounce_fn_1ms(self.indicatePosition.bind(self,activeHash))},onResize:function(){const self=this;$ush.timeout(()=>{self._countAllPositions();self.onScroll()},150);self._countAllPositions();self.onScroll()}};$(()=>
155$us.scroll=new USScroll($us.scrollOptions||{}))}(jQuery);(function($){"use strict";var USAnimate=function(container){var self=this;self.$container=$(container);self.$items=$('[class*="us_animate_"]:not(.off_autostart)',self.$container);self.$items.each(function(_,item){var $item=$(item);if($item.data('_animate_inited')||$item.hasClass('off_autostart')){return}
156if($item.parents('.owl-carousel').length){$item.addClass('start')}
157$item.data('_animate_inited',!0);const docHeight=document.documentElement.scrollHeight;const offset=(docHeight-$item.offset().top)>docHeight*0.12?'12%':'0%';$us.waypoints.add($item,offset,function($node){if(!$node.hasClass('start')){$ush.timeout(function(){$node.addClass('start')},20)}});$item.one('us_startAnimate',function(){if(!$item.hasClass('start')){$item.addClass('start')}})})};window.USAnimate=USAnimate;new USAnimate(document);$('.wpb_animate_when_almost_visible').each(function(){$us.waypoints.add($(this),'12%',function($node){if(!$node.hasClass('wpb_start_animation')){$ush.timeout(function(){$node.addClass('wpb_start_animation')},20)}})})})(jQuery);!function($,_undefined){"use strict";window.$us=window.$us||{};$us.carouselMixin={focusableSelectors:['a[href]','area[href]','input:not([disabled])','select:not([disabled])','textarea:not([disabled])','button:not([disabled])','iframe','object','embed','[tabindex]:not([tabindex="-1"])','[contenteditable]','video[controls] source'].join(),defaultAriaLabels:{prev:'Previous',next:'Next',slide:'item',slide_x_of_y:'%1$s / %2$s',play:'Play',pause:'Pause',},prefersReducedMotion:function(){return!!(window.matchMedia&&window.matchMedia('(prefers-reduced-motion: reduce)').matches)},prepareOptions:function(){const self=this;self.ariaLabels=$.extend({},self.defaultAriaLabels,self.options.aria_labels||{});$.extend(self.options,{navElement:'button type="button"',navText:['<span class="screen-reader-text">'+self.ariaLabels.prev+'</span>','<span class="screen-reader-text">'+self.ariaLabels.next+'</span>',],});if(self.prefersReducedMotion()){self.disableMotion()}
158if($us.$html.hasClass('touch')||$us.$html.hasClass('ios-touch')){self.options.mouseDrag=!1}
159if($us.usbPreview()){$.extend(self.options,{autoplayHoverPause:!0,mouseDrag:!1,touchDrag:!1,loop:!1,})}
160if(self.options.autoplayContinual){$.extend(self.options,{slideTransition:'linear',autoplaySpeed:self.options.autoplayTimeout,smartSpeed:self.options.autoplayTimeout,});if(!self.options.autoWidth){self.options.slideBy=1}}},getScreenSize:function(){return(String(this.$carousel[0].className).match(/owl-responsive-(\d+)/)||[])[1]},getResponsiveOptions:function(){return(this.options.responsive||{})[this.getScreenSize()]||{}},applyResponsiveClasses:function(){const self=this;const carouselResponsive=self.getResponsiveOptions();if(carouselResponsive.items===1){self.$carousel.toggleClass('autoheight',!!carouselResponsive.autoHeight)}
161self.$carousel.toggleClass('with_dots',!!carouselResponsive.dots);self.$carousel.toggleClass('autoplay_continual_css',!!carouselResponsive.autoplayContinualCss)},initItemAnimation:function(){const self=this;if(!$('.us_animate_this:first',self.$carousel).length){return}
162if(self.options.autoplayContinual){self.$carousel.on('translate.owl.carousel',self._events.controlItemAnimation)}else{$('.owl-item.active',self.owlCarousel.$stage).addClass('animation-start');self.$carousel.on('translated.owl.carousel',self._events.controlItemAnimation)}},initCollapsibleContent:function(){const self=this;const $toggleLinks=$('[data-content-height]',self.$carousel);$toggleLinks.each((_,node)=>{const $node=$(node);var usCollapsibleContent=$node.data('usCollapsibleContent');if($ush.isUndefined(usCollapsibleContent)){usCollapsibleContent=$node.usCollapsibleContent().data('usCollapsibleContent')}
163usCollapsibleContent.setHeight();$ush.timeout(()=>{self.$carousel.trigger('refresh.owl.carousel')},1)});if(self.getResponsiveOptions().autoHeight){$toggleLinks.on('showContent',()=>{self.$carousel.trigger('refresh.owl.carousel')})}},controlItemAnimation:function(e){const self=this;if(!e.item||!e.item.index||!e.type){return}
164const $stage=self.owlCarousel.$stage;if(e.type==='translate'&&self.options.autoplayContinual){const $translatedOwlItem=$('.owl-item',$stage).eq(e.item.index-1);if($translatedOwlItem.length){$translatedOwlItem.addClass('translated');$ush.timeout(()=>{$translatedOwlItem.removeClass('translated')},self.options.autoplaySpeed)}}
165if(e.type==='translated'){$stage.find('.owl-item:not(.active)').removeClass('animation-start');$stage.find('.owl-item.active').addClass('animation-start')}},};$.extend($us.carouselMixin,{disableMotion:function(){const self=this;const restoreDrag=!!self.options.autoplayContinualCss;$.extend(self.options,{autoplay:!1,autoplayContinual:!1,autoplayContinualCss:!1,});if(restoreDrag){$.extend(self.options,{mouseDrag:!0,touchDrag:!0,})}
166$.each(self.options.responsive||{},(_,responsiveOptions)=>{$.extend(responsiveOptions,{autoplay:!1,autoplayContinualCss:!1,});if(restoreDrag){$.extend(responsiveOptions,{mouseDrag:!0,touchDrag:!0,})}})},hasMotion:function(){const self=this;if(self.options.autoplay||self.options.autoplayContinualCss){return!0}
167for(const breakpoint in(self.options.responsive||{})){const responsiveOptions=self.options.responsive[breakpoint]||{};if(responsiveOptions.autoplay||responsiveOptions.autoplayContinualCss){return!0}}
168return!1},initA11y:function(){const self=this;if(!self.owlCarousel){return}
169self.isPausedByUser=!1;self.$carousel.on('refreshed.owl.carousel',self._events.updateAria);self.updateAria();if(self.hasMotion()){self.$playPause=$('<button type="button" class="owl-playpause"></button>').attr('aria-label',self.ariaLabels.pause).on('click',self._events.togglePlayback).prependTo(self.$carousel)}},updateAria:function(){const self=this;if(!self.owlCarousel){return}
170const $items=$('.owl-item',self.owlCarousel.$stage);const $slides=$items.not('.cloned, .us_cloned');const itemsCount=$slides.length;$slides.each((index,node)=>{$(node).attr({'role':'group','aria-roledescription':self.ariaLabels.slide,'aria-label':self.getSlideLabel(index+1,itemsCount),})});$items.filter('.cloned, .us_cloned').attr('aria-hidden','true').find(self.focusableSelectors).attr('tabindex',-1)},getSlideLabel:function(index,total){return String(this.ariaLabels.slide_x_of_y).replace('%1$s',index).replace('%2$s',total)},togglePlayback:function(e){const self=this;self.isPausedByUser=!self.isPausedByUser;$(e.currentTarget).toggleClass('paused',self.isPausedByUser).attr('aria-label',self.isPausedByUser?self.ariaLabels.play:self.ariaLabels.pause);self.$carousel.toggleClass('is_paused',self.isPausedByUser);self.$carousel.toggleClass('is_playing',!self.isPausedByUser);self.owlCarousel.settings.autoplayHoverPause=!1;self.owlCarousel.options.autoplayHoverPause=!1;
170if(self.owlCarousel.settings.autoplay){self.$carousel.trigger((self.isPausedByUser?'stop':'play')+'.owl.autoplay')}},});$.extend($us.carouselMixin,{initKeyboardNav:function(){const self=this;const carouselResponsive=self.getResponsiveOptions();const focusableSelectors=self.focusableSelectors;if(carouselResponsive.autoplay){self.$carousel.off('focusin.carouselKeyboardNav').on('focusin.carouselKeyboardNav',()=>{self.$carousel.trigger('stop.owl.autoplay')});self.$carousel.off('focusout.carouselKeyboardNav').on('focusout.carouselKeyboardNav',()=>{if(!self.isPausedByUser&&self.owlCarousel.settings.autoplay){self.$carousel.trigger('play.owl.autoplay')}})}
171const $viewport=self.owlCarousel.$stage.parent();$viewport.off('scroll.carouselFocusNav').on('scroll.carouselFocusNav',(e)=>{e.currentTarget.scrollLeft=0;e.currentTarget.scrollTop=0});self.$carousel.off('focusin.carouselFocusNav').on('focusin.carouselFocusNav',(e)=>{const $owlItem=$(e.target).closest('.owl-item');if(!$owlItem.length){return}
172$viewport[0].scrollLeft=0;$viewport[0].scrollTop=0;const viewportRect=$viewport[0].getBoundingClientRect();const itemRect=$owlItem[0].getBoundingClientRect();if(itemRect.left>=viewportRect.left-1&&itemRect.right<=viewportRect.right+1){return}
173const index=$('.owl-item',self.owlCarousel.$stage).not('.cloned, .us_cloned').index($owlItem);if(index<0){return}
174self.$carousel.trigger('to.owl.carousel',[index,null,!0])});self.$carousel.off('.carouselNavFocus').on('focusin.carouselNavFocus','.owl-prev, .owl-next',(e)=>{self.$focusedNav=$(e.currentTarget)}).on('changed.owl.carousel.carouselNavFocus refreshed.owl.carousel.carouselNavFocus',self._events.keepNavFocus);self.$carousel.off('keydown.carouselArrowsNav').on('keydown.carouselArrowsNav',focusableSelectors,(e)=>{if($(e.target).is('input, textarea, select, [contenteditable]')){return}
175const isRtl=!!self.options.rtl;switch(e.keyCode){case 37:e.preventDefault();self.$carousel.trigger((isRtl?'next':'prev')+'.owl.carousel');break;case 39:e.preventDefault();self.$carousel.trigger((isRtl?'prev':'next')+'.owl.carousel');break}})},keepNavFocus:function(){const self=this;const $focusedNav=self.$focusedNav;if(!$focusedNav||!$focusedNav.length||!$focusedNav.hasClass('disabled')){return}
176if(document.activeElement!==$focusedNav[0]&&document.activeElement!==document.body){return}
177const $opposite=$focusedNav.siblings('.owl-prev, .owl-next').not('.disabled');self.$focusedNav=null;if($opposite.length){$opposite.trigger('focus')}else if(self.$playPause){self.$playPause.trigger('focus')}},});$.extend($us.carouselMixin,{initContinualRotationCss:function(){const self=this;if(!self.owlCarousel||!self.options.autoplayContinualCss){return}
178self.continualRotationCss();self.$carousel.on('resized.owl.carousel',self._events.continualRotationCssResize)},continualRotationCss:function(isResizeUse=!1){const self=this;if(!self.$carousel.hasClass('autoplay_continual_css')){return}
179const $stage=self.owlCarousel.$stage;const $items=$stage.children();if(isResizeUse&&self.$originalItems&&(self.$originalItems.length!==$items.length)){return}
180$stage.removeAttr('style');if(!self.$originalItems){self.$originalItems=$items.clone()}
181var iteration=0;while($stage[0].scrollWidth<self.owlCarousel.$element.outerWidth()){if(iteration++>200){break}
182$stage.append(self.$originalItems.clone())}
183$stage.append($stage.html());$stage.children().slice(self.$originalItems.length).addClass('us_cloned').attr('aria-hidden','true').find(self.focusableSelectors).attr('tabindex',-1)},continualRotationCssResize:function(){const self=this;self.owlCarousel.$stage.removeAttr('style');if(!self.getResponsiveOptions().autoplayContinualCss){self.$carousel.removeClass('autoplay_continual_css');self.owlCarousel.$stage.html(self.$originalItems);self.$carousel.trigger('refresh.owl.carousel')}else{self.$carousel.addClass('autoplay_continual_css');self.continualRotationCss(!0)}
184self.updateAria()},});const POPUP_GALLERY_LINKS='> .owl-stage-outer > .owl-stage > .owl-item:not(.cloned):not(.us_cloned) > .w-grid-item > .w-grid-item-h > a[ref=magnificPopupList]';const POPUP_GALLERY_CLONED_LINKS='> .owl-stage-outer > .owl-stage > .owl-item.cloned > .w-grid-item > .w-grid-item-h > a[ref=magnificPopupList],'+' > .owl-stage-outer > .owl-stage > .owl-item.us_cloned > .w-grid-item > .w-grid-item-h > a[ref=magnificPopupList]';function usCarousel(container){const self=this;self.$container=$(container);
184self.$carousel=$('.w-grid-list.owl-carousel',self.$container);self.options={responsiveRefreshRate:100,};self._events={initializedOwlCarousel:self.initializedOwlCarousel.bind(self),mousedownOwlCore:self.mousedownOwlCore.bind(self),continualRotationCssResize:self.continualRotationCssResize.bind(self),controlItemAnimation:self.controlItemAnimation.bind(self),updateAria:self.updateAria.bind(self),togglePlayback:self.togglePlayback.bind(self),keepNavFocus:self.keepNavFocus.bind(self),};const $opts=$('.w-grid-carousel-json',self.$container);if($opts.is('[onclick]')){$.extend(self.options,($opts[0].onclick()||{}).carousel_settings||{})}
185$opts.remove();self.prepareOptions();$('> .owl-playpause',self.$carousel).remove();self.$carousel.on('initialized.owl.carousel',self._events.initializedOwlCarousel).on('mousedown.owl.core',self._events.mousedownOwlCore);self.owlCarousel=self.$carousel.owlCarousel(self.options).data('owl.carousel');self.initItemAnimation();if(self.owlCarousel&&self.options.autoplayContinual){self.$carousel.trigger('next.owl.carousel')}
186self.applyResponsiveClasses();self.initContinualRotationCss();if($('[ref=magnificPopupList]:first',self.$carousel).length){$ush.timeout(self.initMagnificPopup.bind(self),1)}
187if(self.$container.hasClass('open_items_in_popup')){new $us.usPopup().popupPost(self.$container)}
188self.initA11y();self.initKeyboardNav()}
189$.extend(usCarousel.prototype,$us.carouselMixin,{initializedOwlCarousel:function(e){const self=this;self.initCollapsibleContent();if($.isMobile&&self.$carousel.closest('.w-tabs-section.active').length>0){$ush.timeout(()=>{self.$carousel.trigger('refresh.owl.carousel')},50)}},mousedownOwlCore:function(e){const self=this;if(!String(e.target.className).includes('collapsible-content-')){return}
190if(self.owlCarousel.settings.mouseDrag){self.owlCarousel.$stage.trigger('mouseup.owl.core')}
191if(self.owlCarousel.settings.touchDrag){self.owlCarousel.$stage.trigger('touchcancel.owl.core')}},initMagnificPopup:function(){const self=this;const globalOpts=$us.langOptions.magnificPopup||{};self.$carousel.magnificPopup({type:'image',delegate:POPUP_GALLERY_LINKS,gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1],tPrev:globalOpts.tPrev,tNext:globalOpts.tNext,tCounter:globalOpts.tCounter},image:{titleSrc:'aria-label'},removalDelay:300,mainClass:'mfp-fade',fixedContentPos:!0,callbacks:{beforeOpen:function(){if(self.owlCarousel&&self.owlCarousel.settings.autoplay){self.$carousel.trigger('stop.owl.autoplay')}},beforeClose:function(){if(self.owlCarousel&&self.owlCarousel.settings.autoplay){self.$carousel.trigger('play.owl.autoplay')}}}});self.$carousel.on('click',POPUP_GALLERY_CLONED_LINKS,(e)=>{e.preventDefault();e.stopPropagation();self.getPopupLink(e.currentTarget).trigger('click')})},getPopupLink:function(clonedLink){const self=this;const href=$ush.toString(clonedLink.getAttribute('href'));return $(POPUP_GALLERY_LINKS,self.$carousel).filter((_,link)=>$ush.toString(link.getAttribute('href'))===href).first()},});$.fn.usCarousel=function(){return this.each(function(){$(this).data('usCarousel',new usCarousel(this))})};$(()=>$('.w-grid.type_carousel').usCarousel())}(jQuery);!function($){"use strict";$us.CommnentsForm=function(container,options){this.init(container,options)};$us.CommnentsForm.prototype={init:function(container,options){this.$container=$(container);this.$form=this.$container.find('form.comment-form');if(!this.$form.length){return}
192this.$jsonContainer=this.$container.find('.us-comments-json');if(!this.$jsonContainer.length){return}
193this.jsonData=this.$jsonContainer[0].onclick()||{};this.$jsonContainer.remove();this.$fields={content:{field:this.$form.find('textarea'),msg:this.jsonData.no_content_msg||'Please enter a Message'},name:{field:this.$form.find('.for_text input[type="text"]'),msg:this.jsonData.no_name_msg||'Please enter your Name'},email:{field:this.$form.find('.for_email input[type="email"]'),msg:this.jsonData.no_email_msg||'Please enter a valid email address.'}};this._events={formSubmit:this.formSubmit.bind(this)};this.$form.on('submit',this._events.formSubmit)},formSubmit:function(event){this.$form.find('.w-form-row.check_wrong').removeClass('check_wrong');this.$form.find('.w-form-state').html('');for(var i in this.$fields){if(this.$fields[i].field.length==0){continue}
194if(this.$fields[i].field.val()==''&&this.$fields[i].field.attr('data-required')){this.$fields[i].field.closest('.w-form-row').toggleClass('check_wrong');this.$fields[i].field.closest('.w-form-row').find('.w-form-row-state').html(this.$fields[i].msg);event.preventDefault()}}}};$.fn.CommnentsForm=function(options){return this.each(function(){$(this).data('CommnentsForm',new $us.CommnentsForm(this,options))})};$(function(){$('.w-post-elm.post_comments.layout_comments_template').CommnentsForm();$('.l-section.for_comments').CommnentsForm()})}(jQuery);!function($,_undefined){function usCounterNumber(container){const self=this;self.$container=$(container);self.initialString=$ush.toString(self.$container.html());self.finalString=$ush.toString(self.$container.data('final'));self.format=self.getFormat(self.initialString,self.finalString);self.isNoAnimation=self.$container.closest('.w-counter.animation_none').length;if(self.format.decMark){const pattern=new RegExp('[^0-9\/'+self.format.decMark+']+','g');self.initial=parseFloat(self.initialString.replace(pattern,'').replace(self.format.decMark,'.'));self.final=parseFloat(self.finalString.replace(pattern,'').replace(self.format.decMark,'.'))}else{self.initial=parseInt(self.initialString.replace(/[^0-9]+/g,''));self.final=parseInt(self.finalString.replace(/[^0-9]+/g,''))}
195if(self.format.accounting){if(self.initialString.length>0&&self.initialString[0]=='('){self.initial=-self.initial}
196if(self.finalString.length>0&&self.finalString[0]=='('){self.final=-self.final}}
197if(!self.isNoAnimation){self.initSlideAnimation()}}
198usCounterNumber.prototype={step:function(now){const self=this;var value=(1-now)*self.initial+self.final*now,intPart=Math[self.format.decMark?'floor':'round'](value).toString(),result='';if(self.format.zerofill){var amountOfZeros=(self.format.intDigits-intPart.length);if(amountOfZeros>0){intPart='0'.repeat(amountOfZeros)+intPart}}
199if(self.format.groupMark){if(self.format.indian){result+=intPart.replace(/(\d)(?=(\d\d)+\d$)/g,'$1'+self.format.groupMark)}else{result+=intPart.replace(/\B(?=(\d{3})+(?!\d))/g,self.format.groupMark)}}else{result+=intPart}
200if(self.format.decMark){var decimalPart=(value%1).toFixed(self.format.decDigits).substring(2);result+=self.format.decMark+decimalPart}
201if(self.format.accounting&&result.length>0&&result[0]==='-'){result='('+result.substring(1)+')'}
202if(self.isNoAnimation){self.$container.html(result)}else{const digitsOnly=result.replace(/\D/g,'');var digitIndex=digitsOnly.length-1;for(var slotIndex=self.slots.length-1;slotIndex>=0;slotIndex--){const slot=self.slots[slotIndex];if(slot.type!=='digit'){continue}
203const num=$ush.parseInt(digitsOnly[digitIndex]);const offset=num*slot.el.find('li').innerHeight();slot.el.find('ul').css('transform','translateY(-'+offset+'px)');$ush.timeout(()=>{slot.el.find('li:nth-child('+num+')').addClass('pre-active')},(self.$container.closest('.w-counter').data('duration')||2)*1000);digitIndex--}}},getFormat:function(initial,final){const self=this;var iFormat=self._getFormat(initial),fFormat=self._getFormat(final),format=$.extend({},iFormat,fFormat);if(format.groupMark==format.decMark){delete format.groupMark}
204return format},_getFormat:function(str){var marks=str.replace(/[0-9\(\)\-]+/g,''),format={};if(str.charAt(0)=='('){format.accounting=!0}
205if(/^0[0-9]/.test(str)){format.zerofill=!0}
206str=str.replace(/[\(\)\-]/g,'');if(marks.length!=0){if(marks.length>1){format.groupMark=marks.charAt(0);if(marks.charAt(0)!=marks.charAt(marks.length-1)){format.decMark=marks.charAt(marks.length-1)}
207if(str.split(format.groupMark).length>2&&str.split(format.groupMark)[1].length==2){format.indian=!0}}else{format[(((str.length-1)-str.indexOf(marks))==3&&marks!=='.')?'groupMark':'decMark']=marks}
208if(format.decMark){format.decDigits=str.length-str.indexOf(format.decMark)-1}}
209if(format.zerofill){format.intDigits=str.replace(/[^\d]+/g,'').length-(format.decDigits||0)}
210return format},initSlideAnimation:function(){const self=this;self.$container.empty();self.slots=[];const chars=self.finalString.split('');
210chars.forEach(char=>{if(/\d/.test(char)){const $mainDigit=$('<span class="w-counter-value-digit"></span>');const $digits=$('<div class="w-counter-digits"></div>');$digits.append('<ul></ul>');for(let i=0;i<10;i++){$('ul',$digits).append('<li>'+i+'</li>')}
211$mainDigit.append('<span>'+char+'</span>').append($digits);self.$container.append($mainDigit);self.slots.push({type:'digit',el:$digits})}else{const $char=$('<span class="w-counter-value-delimeter">'+char+'</span>');self.$container.append($char);self.slots.push({type:'char',el:$char})}})}};function usCounterText(container){const self=this;self.$container=$(container);self.initial=$ush.toString(self.$container.text());self.final=$ush.toString(self.$container.data('final'));self.partsStates=self.getStates(self.initial,self.final);self.len=1/(self.partsStates.length-1);self.curState=0}
212usCounterText.prototype={step:function(now){const self=this;const state=Math.round(Math.max(0,now/self.len));if(state==self.curState){return}
213self.$container.html(self.partsStates[state]);self.curState=state},getStates:function(initial,final){var min=Math.min,dist=[],i,j;for(i=0;i<=initial.length;i ++){dist[i]=[i]}
214for(j=1;j<=final.length;j ++){dist[0][j]=j;for(i=1;i<=initial.length;i ++){dist[i][j]=(initial[i-1]===final[j-1])?dist[i-1][j-1]:(Math.min(dist[i-1][j],dist[i][j-1],dist[i-1][j-1])+1)}}
215var states=[final];for(i=initial.length,j=final.length;i>0||j>0;i --,j --){var min=dist[i][j];if(i>0){min=Math.min(min,dist[i-1][j],(j>0)?dist[i-1][j-1]:min)}
216if(j>0){min=Math.min(min,dist[i][j-1])}
217if(min>=dist[i][j]){continue}
218if(min==dist[i][j-1]){states.unshift(states[0].substring(0,j-1)+states[0].substring(j));i ++}else if(min==dist[i-1][j-1]){states.unshift(states[0].substring(0,j-1)+initial[i-1]+states[0].substring(j))}else if(min==dist[i-1][j]){states.unshift(states[0].substring(0,j)+initial[i-1]+states[0].substring(j));j ++}}
219return states}};function usCounter(container){const self=this;self.$container=$(container);self.parts=[];self.duration=parseFloat(self.$container.data('duration')||2)*1000;$('.w-counter-value-part',self.$container).each((_,part)=>{const $part=$(part);if($part.hasClass('final')){$part.remove()}else{$part.removeClass('hidden')}});$('.w-counter-value-part',self.$container).each((_,part)=>{const $part=$(part);if($ush.toString($part.html())===$ush.toString($part.data('final'))){return}
220if($part.usMod('type')==='number'){self.parts.push(new usCounterNumber($part))}else{self.parts.push(new usCounterText($part))}});if(window.$us!==_undefined&&window.$us.scroll!==_undefined){$us.waypoints.add(self.$container,'15%',self.animate.bind(self))}else{self.animate()}
221self.$container.one('animation_start',()=>self.animate())}
222usCounter.prototype={animate:function(){const self=this;if(self.$container.hasClass('animation_none')){self.$container.css('w-counter',0).animate({'w-counter':1},{duration:self.duration,step:self.step.bind(self),})}else{self.step(1)}},step:function(now){const self=this;for(var i=0;i<self.parts.length;i++){self.parts[i].step(now)}}};$.fn.usCounter=function(options){return this.each(function(){$(this).data('usCounter',new usCounter(this,options))})};$(()=>$('.w-counter').usCounter())}(jQuery);(function($){"use strict";$.fn.wDropdown=function(){return this.each(function(){var $self=$(this),$current=$self.find('.w-dropdown-current'),$anchors=$self.find('a'),openEventName='click',closeEventName='mouseup mousewheel DOMMouseScroll touchstart focusout',justOpened=!1;if($self.hasClass('open_on_hover')){openEventName='mouseenter';closeEventName='mouseleave'}
223var closeList=function(){$self.removeClass('opened');$us.$window.off(closeEventName,closeListEvent)};var closeListEvent=function(e){if(closeEventName!='mouseleave'&&$self.has(e.target).length!==0){return}
224e.stopPropagation();e.preventDefault();closeList()};var openList=function(){$self.addClass('opened');if(closeEventName=='mouseleave'){$self.on(closeEventName,closeListEvent)}else{$us.$window.on(closeEventName,closeListEvent)}
225justOpened=!0;$ush.timeout(function(){justOpened=!1},500)};var openListEvent=function(e){if(openEventName=='click'&&$self.hasClass('opened')&&!justOpened){closeList();return}
226openList()};$current.on(openEventName,openListEvent);$self.on('click','a[href$="#"]',function(e){e.preventDefault()}).on('keydown',function(e){const keyCode=e.keyCode||e.which;if(keyCode==$ush.TAB_KEYCODE){var $target=$(e.target)||{},index=$anchors.index($target);if(e.shiftKey){if(index===0){closeList()}}else{if(index===$anchors.length-1){closeList()}}}
227if(keyCode==$ush.ESC_KEYCODE){closeList()}
228if((keyCode==$ush.SPACE_KEYCODE||(keyCode==$ush.ENTER_KEYCODE&&openEventName!='click'))&&$(e.target).closest($current).length){e.preventDefault();openListEvent(e)}})})};$(function(){$('.w-dropdown').wDropdown()})})(jQuery);!function($,_undefined){window.$us=window.$us||{};function usForm(container){const self=this;self.$form=$(container);if(!self.$form.hasClass('for_cform')){self.$form=$('.w-form.for_cform',container)}
229self.$formH=$('.w-form-h',self.$form);self.$dateFields=$('.w-form-row.for_date input',self.$form);self.$message=$('.w-form-message',self.$form);self.$reusableBlock=$('.w-form-reusable-block',self.$form);self.$submit=$('.w-btn',self.$form);self.opts={};self.isFileValid=!0;self.datepickerOpts={};var $formJson=$('.w-form-json',self.$form);if($formJson.is('[onclick]')){self.opts=$formJson[0].onclick()||{};if(!$us.usbPreview()){$formJson.remove()}}
230if(self.$dateFields.length){$(()=>self.initDateField())}
231$(['input[type=text]','input[type=email]','input[type=tel]','input[type=number]','input[type=date]','input[type=search]','input[type=url]','input[type=password]','textarea'].join(),self.$form).each((_,input)=>{const $input=$(input);const $row=$input.closest('.w-form-row');if($input.attr('type')==='hidden'){return}
232$row.toggleClass('not-empty',input.value!='');$input.on('input change',()=>{$row.toggleClass('not-empty',input.value!='')})});self._events={onChangeFile:self.onChangeFile.bind(self),onSubmit:self.onSubmit.bind(self),};self.$form.on('change','input[type=file]:visible',self._events.onChangeFile).on('submit',self._events.onSubmit)};$.extend(usForm.prototype,{getExtension:function(name){return $ush.toString(name).split('.').pop()},_validExtension:function(file,accepts){const self=this;if(!accepts){return!0}
233accepts=$ush.toString(accepts).split(',');for(var i in accepts){var accept=$ush.toString(accepts[i]).trim();if(!accept){continue}
234if(accept.indexOf('/')>-1){var acceptMatches=accept.split('/');if(file.type===accept||(acceptMatches[1]==='*'&&$ush.toString(file.type).indexOf(acceptMatches[0])===0)){return!0}}else if(self.getExtension(file.name)===accept.replace(/[^A-Za-z\d]+/g,'')){return!0}}
235return!1},_requiredValidation:function(){const self=this;var errors=0;$('[data-required=true]',self.$form).each(function(_,input){var $input=$(input),isEmpty=$input.is('[type=checkbox]')?!$input.is(':checked'):$input.val()=='',$row=$input.closest('.w-form-row');if($row.hasClass('for_checkboxes')||$row.hasClass('for_radio')){return!0}
236if(input.type==='file'){isEmpty=isEmpty||!self.isFileValid}
237if(input.type==='select-one'){isEmpty=$input.val()===$('option:first-child',$input).val()}
238$row.toggleClass('check_wrong',isEmpty);if(isEmpty){errors ++}});$('.for_checkboxes.required',self.$form).each((_,node)=>{var $input=$('input[type=checkbox]',node),isEmpty=!$input.is(':checked');$input.closest('.w-form-row').toggleClass('check_wrong',isEmpty);if(isEmpty){errors ++}});$('.for_radio.required',self.$form).each((_,node)=>{var $input,isEmpty;
238if(node.className.includes('pre_select_first_value')){$input=$('input[type=radio]:first',node);isEmpty=$input.is(':checked')}else{$input=$('input[type=radio]',node);isEmpty=!$input.is(':checked')}
239$input.closest('.w-form-row').toggleClass('check_wrong',isEmpty);if(isEmpty){errors ++}});return!errors},initDateField:function(){const self=this;$.each(self.$dateFields,(_,input)=>{const $input=$(input);self.datepickerOpts.dateFormat=$input.data('date-format');try{$input.datepicker(self.datepickerOpts);if($input.closest('.w-popup-wrap').length){$input.on('click',(e)=>{var $datepicker=$('#ui-datepicker-div'),datepickerHeight=$datepicker.outerHeight(),inputBounds=e.currentTarget.getBoundingClientRect();if(window.innerHeight-(inputBounds.bottom+datepickerHeight)>0){$datepicker.css({position:'fixed',left:inputBounds.left,top:(inputBounds.top+inputBounds.height)})}else{$datepicker.css({position:'fixed',left:inputBounds.left,top:(inputBounds.top-datepickerHeight),})}})}}catch(e){}})},onChangeFile:function(e){const self=this;var errMessage='',input=e.target,$input=$(input),accept=$input.attr('accept')||'',maxSize=$input.data('max_size')||$input.data('std')||0;if(input.files.length){for(var i in input.files){if(errMessage){break}
240var file=input.files[i];if(!(file instanceof File)){continue}
241if(!self._validExtension(file,accept)){errMessage=(self.opts.messages.err_extension||'').replace('%s',self.getExtension(file.name))}
242if(!errMessage&&file.size>(parseFloat(maxSize)*1048576)){errMessage=(self.opts.messages.err_size||'').replace('%s',maxSize)}}}
243$input.closest('.for_file').toggleClass('check_wrong',!(self.isFileValid=!errMessage)).find('.w-form-row-state').html(errMessage||self.opts.messages.err_empty)},onSubmit:function(e){const self=this;e.preventDefault();self.$message.usMod('type',!1).html('');if(self.$submit.hasClass('loading')||!self._requiredValidation()||!self.isFileValid){return}
244self.$submit.addClass('loading');const formData=window.FormData?new FormData(self.$form[0]):self.$form.serialize();if(self.$form.hasClass('validate_by_recaptcha')){grecaptcha.ready(()=>{try{grecaptcha.execute(self.opts.recaptcha_site_key,{action:'submit'}).then((token)=>{formData.append('g-recaptcha-response',token);sendAjaxRequest()})}catch(e){self.$message.usMod('type','error').html(self.opts.messages.err_recaptcha_keys);self.$submit.removeClass('loading')}})}else{sendAjaxRequest()}
245function sendAjaxRequest(){$.ajax({type:'POST',url:self.opts.ajaxurl,data:formData,cache:!1,processData:!1,contentType:!1,dataType:'json',success:function(res){$('.w-form-row.check_wrong',self.$form).removeClass('check_wrong');if(res.success){if(res.data.redirect_url){window.location.replace(res.data.redirect_url);return}
246if(res.data.popup_selector){const $popupTrigger=$(res.data.popup_selector).find('.w-popup-trigger');if($popupTrigger.length){$popupTrigger.trigger('click')}}
247if(res.data.message){self.$message.usMod('type','success').html(res.data.message)}
248if(self.$reusableBlock.length){self.$reusableBlock.slideDown(400)}
249if(self.opts.close_popup_after_sending){const $popupCloser=self.$form.closest('.w-popup-wrap').find('.w-popup-closer');if($popupCloser.length){$popupCloser.trigger('click')}}
250if(self.opts.hide_form_after_sending){const formPos=self.$form.offset().top;const scrollTop=$us.$window.scrollTop();if(!$ush.isNodeInViewport(self.$form[0])||formPos>=(scrollTop+window.innerHeight)||scrollTop>=formPos){$us.$htmlBody.animate({scrollTop:formPos-$us.header.getInitHeight()},400)}
251self.$formH.slideUp(400)}
252$('.w-form-row.not-empty',self.$form).removeClass('not-empty');$('input[type=text], input[type=email], textarea',self.$form).val('');self.$form.trigger('usCformSuccess',res).get(0).reset()}else{if($.isPlainObject(res.data)){for(const fieldName in res.data){if(fieldName==='empty_message'){$resultField.usMod('type','error');continue}
253if(fieldName==='reCAPTCHA'&&res.data[fieldName].error_message){self.$message.usMod('type','error').html(res.data.reCAPTCHA.error_message)}
254$(`[name="${fieldName}"]`,self.$form).closest('.w-form-row').addClass('check_wrong').find('.w-form-row-state').html(res.data[fieldName].error_message||'')}}else{self.$message.usMod('type','error').html(res.data)}}},complete:()=>{self.$submit.removeClass('loading')}})}}});$.fn.usForm=function(){return this.each(function(){$(this).data('usForm',new usForm(this))})};$(()=>$('.w-form.for_cform').usForm())}(jQuery);(function($,_undefined){"use strict";const _window=window;$us.WGrid=function(container,options){const self=this;self.$container=$(container);self.$filters=$('.g-filters-item',self.$container);
254self.$list=$('.w-grid-list',self.$container);self.$loadmore=$('.g-loadmore',self.$container);self.$pagination=$('> .pagination',self.$container);self.$preloader=$('.w-grid-preloader',self.$container);self.$style=$('> style:first',self.$container);self.loading=!1;self.changeUpdateState=!1;self.gridFilter=null;self.curFilterTaxonomy='';self.paginationType=self.$pagination.length?'regular':(self.$loadmore.length?'ajax':'none');self.filterTaxonomyName=self.$list.data('filter_taxonomy_name')?self.$list.data('filter_taxonomy_name'):'category';if(self.$container.data('gridInit')==1){return}
255self.$container.data('gridInit',1);self._events={updateState:self._updateState.bind(self),updateOrderBy:self._updateOrderBy.bind(self),initMagnificPopup:self._initMagnificPopup.bind(self),usbReloadIsotopeLayout:self._usbReloadIsotopeLayout.bind(self),scrollToGrid:$ush.debounce(self.scrollToGrid.bind(self),10),addNextPage:self.addNextPage.bind(self),};var $jsonContainer=$('.w-grid-json',self.$container);if($jsonContainer.length&&$jsonContainer.is('[onclick]')){self.ajaxData=$jsonContainer[0].onclick()||{};if(!$us.usbPreview()){$jsonContainer.remove()}}else{self.ajaxData={};self.ajaxUrl=''}
256if(self.$container.hasClass('open_items_in_popup')){new $us.usPopup().popupPost(self.$container)}
257if(self.paginationType!='none'||self.$filters.length){if(self.ajaxData==_undefined){return}
258self.templateVars=self.ajaxData.template_vars||{};if(self.filterTaxonomyName){self.initialFilterTaxonomy=self.$list.data('filter_default_taxonomies')?self.$list.data('filter_default_taxonomies').toString().split(','):'';self.curFilterTaxonomy=self.initialFilterTaxonomy}
259self.curPage=self.ajaxData.current_page||1;self.infiniteScroll=self.ajaxData.infinite_scroll||0}
260if(self.$container.hasClass('with_isotope')){self.$list.imagesLoaded(()=>{var smallestItemSelector,isotopeOptions={itemSelector:'.w-grid-item',layoutMode:(self.$container.hasClass('isotope_fit_rows'))?'fitRows':'masonry',isOriginLeft:!$('.l-body').hasClass('rtl'),transitionDuration:0};if(self.$list.find('.size_1x1').length){smallestItemSelector='.size_1x1'}else if(self.$list.find('.size_1x2').length){smallestItemSelector='.size_1x2'}else if(self.$list.find('.size_2x1').length){smallestItemSelector='.size_2x1'}else if(self.$list.find('.size_2x2').length){smallestItemSelector='.size_2x2'}
261if(smallestItemSelector){smallestItemSelector=smallestItemSelector||'.w-grid-item';isotopeOptions.masonry={columnWidth:smallestItemSelector}}
262self.$list.on('layoutComplete',()=>{if(_window.USAnimate){$('.w-grid-item.off_autostart',self.$list).removeClass('off_autostart');new USAnimate(self.$list)}
263$us.$window.trigger('scroll.waypoints')});self.$list.isotope(isotopeOptions);if(self.paginationType=='ajax'){self.initAjaxPagination()}
264$us.$canvas.on('contentChange',()=>{self.$list.imagesLoaded(()=>{self.$list.isotope('layout')})})});self.$container.on('usbReloadIsotopeLayout',self._events.usbReloadIsotopeLayout)}else if(self.paginationType=='ajax'){self.initAjaxPagination()}
265self.$filters.each((index,filter)=>{var $filter=$(filter),taxonomy=$filter.data('taxonomy');$filter.on('click',()=>{if(taxonomy!=self.curFilterTaxonomy){if(self.loading){return}
266self.setState(1,taxonomy);self.$filters.removeClass('active');$filter.addClass('active')}})});if(self.$container.closest('.l-main').length){$us.$body.on('us_grid.updateState',self._events.updateState).on('us_grid.updateOrderBy',self._events.updateOrderBy)}
267self.$container.on('scrollToGrid',self._events.scrollToGrid);self.$list.on('click','[ref=magnificPopup]',self._events.initMagnificPopup);if($('[ref=magnificPopupList]:first',self.$list).length){self.initMagnificPopupList()}};$us.WGrid.prototype={_updateState:function(e,queryString,page,gridFilter){const self=this;var $container=self.$container;if(!$container.is('[data-filterable="true"]')||!$container.hasClass('used_by_grid_filter')||(!$container.is(':visible')&&!$container.hasClass('hidden'))){return}
268page=page||1;self.changeUpdateState=!0;self.gridFilter=gridFilter;if(self.ajaxData===_undefined){self.ajaxData={}}
269if(!self.hasOwnProperty('templateVars')){self.templateVars=self.ajaxData.template_vars||{query_args:{}}}
270self.templateVars.us_grid_filter_query_string=queryString;if(self.templateVars.query_args!==!1){self.templateVars.query_args.paged=page}
271self.templateVars.filters_args=gridFilter.filtersArgs||{};self.setState(page);if(self.paginationType==='regular'&&/page(=|\/)/.test(location.href)){var url=location.href.replace(/(page(=|\/))(\d+)(\/?)/,'$1'+page+'$2');if(history.replaceState){history.replaceState(document.title,document.title,url)}}},_updateOrderBy:function(e,orderby,page,gridOrder){const self=this;if(!self.$container.is('[data-filterable="true"]')||!self.$container.hasClass('used_by_grid_order')){return}
272page=page||1;self.changeUpdateState=!0;if(!self.hasOwnProperty('templateVars')){self.templateVars=self.ajaxData.template_vars||{query_args:{}}}
273if(self.templateVars.query_args!==!1){self.templateVars.query_args.paged=page}
274self.templateVars.grid_orderby=orderby;self.setState(page)},_usbReloadIsotopeLayout:function(){const self=this;if(self.$container.hasClass('with_isotope')){self.$list.isotope('layout')}},initAjaxPagination:function(){const self=this;self.$loadmore.on('click',self._events.addNextPage);
274if(self.infiniteScroll){$us.waypoints.add(self.$loadmore,'-70%',self._events.addNextPage)}},addNextPage:function(){const self=this;if($ush.isUndefined(self.xhr)&&!self.loading&&self.curPage<self.ajaxData.max_num_pages){self.setState(self.curPage+1)}},setState:function(page,taxonomy){const self=this;if(self.loading&&!self.changeUpdateState){return}
275if(page!==1&&self.paginationType=='ajax'&&self.none!==_undefined&&self.none==!0){return}
276self.none=!1;self.loading=!0;self.$container.next('.w-grid-none').addClass('hidden');if(self.$filters.length&&!self.changeUpdateState){taxonomy=taxonomy||self.curFilterTaxonomy;if(taxonomy=='*'){taxonomy=self.initialFilterTaxonomy}
277if(taxonomy!=''){var newTaxArgs={'taxonomy':self.filterTaxonomyName,'field':'slug','terms':taxonomy},taxQueryFound=!1;if(self.templateVars.query_args.tax_query==_undefined){self.templateVars.query_args.tax_query=[]}else{$.each(self.templateVars.query_args.tax_query,(index,taxArgs)=>{if(taxArgs!=null&&taxArgs.taxonomy==self.filterTaxonomyName){self.templateVars.query_args.tax_query[index]=newTaxArgs;taxQueryFound=!0;return!1}})}
278if(!taxQueryFound){self.templateVars.query_args.tax_query.push(newTaxArgs)}}else if(self.templateVars.query_args.tax_query!=_undefined){$.each(self.templateVars.query_args.tax_query,(index,taxArgs)=>{if(taxArgs!=null&&taxArgs.taxonomy==self.filterTaxonomyName){self.templateVars.query_args.tax_query[index]=null;return!1}})}}
279if(self.templateVars.query_args!==!1){self.templateVars.query_args.paged=page}
280if(self.paginationType=='ajax'){if(page==1){self.$loadmore.addClass('hidden')}else{self.$container.addClass('loading_items')}
281if(!self.infiniteScroll){self.prevScrollTop=$us.$window.scrollTop()}}
282if(self.paginationType!='ajax'||page==1){self.$preloader.addClass('active');if(self.$list.data('isotope')){self.$list.isotope('remove',self.$container.find('.w-grid-item'));self.$list.isotope('layout')}else{self.$container.find('.w-grid-item').remove()}}
283self.ajaxData.template_vars=JSON.stringify(self.templateVars);var isotope=self.$list.data('isotope');if(isotope&&page==1){self.$list.html('');isotope.remove(isotope.items);isotope.reloadItems()}
284if(self.xhr!==_undefined){self.xhr.abort()}
285self.xhr=$.ajax({type:'post',url:$us.ajaxUrl,data:self.ajaxData,cache:!1,beforeSend:function(){self.$container.removeClass('hidden')},success:function(html){var $result=$(html),$container=$('.w-grid-list',$result).first(),$pagination=$('.pagination > *',$result),$items=$container.children(),smallestItemSelector;self.$container.toggleClass('hidden',!$items.length);$container.imagesLoaded(()=>{self.beforeAppendItems($items);$items.appendTo(self.$list);$container.html('');var $sliders=$items.find('.w-slider');if(isotope){isotope.insert($items);isotope.reloadItems()}
286if($sliders.length){$sliders.each((index,slider)=>{$(slider).usImageSlider().find('.royalSlider').data('royalSlider').ev.on('rsAfterInit',()=>{if(isotope){self.$list.isotope('layout')}})})}
287if(isotope){if(self.$list.find('.size_1x1').length){smallestItemSelector='.size_1x1'}else if(self.$list.find('.size_1x2').length){smallestItemSelector='.size_1x2'}else if(self.$list.find('.size_2x1').length){smallestItemSelector='.size_2x1'}else if(self.$list.find('.size_2x2').length){smallestItemSelector='.size_2x2'}
288if(isotope.options.masonry){isotope.options.masonry.columnWidth=smallestItemSelector||'.w-grid-item'}
289self.$list.isotope('layout');self.$list.trigger('layoutComplete')}
290if(self.paginationType=='ajax'){if(page==1){var $jsonContainer=$result.find('.w-grid-json');if($jsonContainer.length){var ajaxData=$jsonContainer[0].onclick()||{};self.ajaxData.max_num_pages=ajaxData.max_num_pages||self.ajaxData.max_num_pages}else{self.ajaxData.max_num_pages=1}}
291if(self.templateVars.query_args.paged>=self.ajaxData.max_num_pages||!$items.length){self.$loadmore.addClass('hidden')}else{self.$loadmore.removeClass('hidden');self.$container.removeClass('loading_items')}
292if(self.infiniteScroll){$us.waypoints.add(self.$loadmore,'-70%',self._events.addNextPage)}else if(Math.round(self.prevScrollTop)!=Math.round($us.$window.scrollTop())){$us.$window.scrollTop(self.prevScrollTop)}}else if(self.paginationType==='regular'&&self.changeUpdateState){$('a[href]',$pagination).each((_,item)=>
292{var $item=$(item),pathname=location.pathname.replace(/((\/page.*)?)\/$/,'');$item.attr('href',pathname+$item.attr('href'))});self.$pagination.html($pagination)}
293var $result_none=$result.next('.w-grid-none');if(self.changeUpdateState&&$result_none.length){var $none=self.$container.next('.w-grid-none');if($none.length){$none.removeClass('hidden')}else{self.$container.after($result_none)}
294var $nextGrid=$('.w-grid:first',self.$container.next('.w-grid-none'));if($nextGrid.length){$nextGrid.wGrid()}
295self.none=!0}
296if(self.changeUpdateState&&self.gridFilter){var $jsonData=$result.filter('.w-grid-filter-json-data:first');if($jsonData.length){self.gridFilter.trigger('us_grid_filter.update-items-amount',$jsonData[0].onclick()||{})}
297$jsonData.remove()}
298var customStyles=$('style#grid-post-content-css',$result).html()||'';if(customStyles){if(!self.$style.length){self.$style=$('<style></style>');self.$container.append(self.$style)}
299self.$style.text(self.$style.text()+customStyles)}
300$us.$canvas.resize();self.$preloader.removeClass('active');if(_window.USAnimate&&self.$container.hasClass('with_css_animation')){new USAnimate(self.$container)}
301$ush.timeout(()=>{$us.$document.trigger('usGrid.itemsLoaded',[$items])},1)});self.$container.trigger('scrollToGrid');self.loading=!1;self.$container.trigger('USGridItemsLoaded')},complete:()=>{self.$container.removeClass('loading_items');delete self.xhr},});self.curPage=page;self.curFilterTaxonomy=taxonomy},scrollToGrid:function(){const self=this;if(self.curPage!==1){return}
302var $container=self.$container;if($container.hasClass('hidden')){$container=$container.next()}
303const gridPos=$ush.parseInt($container.offset().top);if(!gridPos){return}
304const scrollTop=$us.$window.scrollTop();if(scrollTop>=gridPos||gridPos>=(scrollTop+_window.innerHeight)){$us.$htmlBody.stop(!0,!1).animate({scrollTop:(gridPos-$us.header.getCurrentHeight())},500)}},beforeAppendItems:function($items){if($('[data-content-height]',$items).length){var handle=$ush.timeout(()=>{$('[data-content-height]',$items).usCollapsibleContent();$ush.clearTimeout(handle)},1)}},};$.extend($us.WGrid.prototype,{_initMagnificPopup:function(e){e.stopPropagation();e.preventDefault();var $target=$(e.currentTarget);if($target.data('magnificPopup')===_undefined){$target.magnificPopup({type:'image',mainClass:'mfp-fade'});$target.trigger('click')}},initMagnificPopupList:function(){const self=this;const globalOpts=$us.langOptions.magnificPopup;self.$list.magnificPopup({type:'image',delegate:'a[ref=magnificPopupList]:visible',gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1],tPrev:globalOpts.tPrev,tNext:globalOpts.tNext,tCounter:globalOpts.tCounter},image:{titleSrc:'aria-label'},removalDelay:300,mainClass:'mfp-fade',fixedContentPos:!0,})},})
305$.fn.wGrid=function(options){return this.each(function(){$(this).data('wGrid',new $us.WGrid(this,options))})};$(()=>$('.w-grid:not(.us_post_list,.us_product_list,.type_carousel)').wGrid())})(jQuery);!function($,_undefined){"use strict";const _window=window;_window.$ush=_window.$ush||{};_window.$us.canvas=_window.$us.canvas||{};function toBoolean(value){if(typeof value=='boolean'){return value}
306if(typeof value=='string'){value=value.trim();return value.toLocaleLowerCase()=='true'||value=='1'}
307return!!parseInt(value)}
308function USHeader(settings){const self=this;self.$container=$('.l-header',$us.$canvas);self.$showBtn=$('.w-header-show:first',$us.$body);self.settings=settings||{};self.canvasOffset=0;self.bodyHeight=$us.$body.height();self.adminBarHeight=0;self._states={init_height:0,scroll_direction:'down',sticky:!1,sticky_auto_hide:!1,vertical_scrollable:!1};if(self.$container.length===0){return}
309self.breakpoints={laptops:1280,tablets:1024,mobiles:600};for(const k in self.breakpoints){self.breakpoints[k]=parseInt(((self.settings[k]||{}).options||{}).breakpoint)||self.breakpoints[k]}
310self._events={hideMobileVerticalHeader:self.hideMobileVerticalHeader.bind(self),contentChange:self.contentChange.bind(self),showBtn:self.showBtn.bind(self),scroll:$ush.debounce(self.scroll.bind(self),1),resize:$ush.debounce(self.resize.bind(self),1),};self._states.init_height=self.getHeight();$us.$window.on('scroll.noPreventDefault',self._events.scroll).on('resize load',self._events.resize);self.$container.on('contentChange',self._events.contentChange);self.$showBtn.on('click',self._events.showBtn);self.setView($us.$body.usMod('state')||'default');self.resize();if(self.stickyAutoHideEnabled()){self.$container.addClass('sticky_auto_hide')}
311self.$container.on('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd',$ush.debounce(()=>{self.trigger.call(self,'transitionEnd')},1))}
312$.extend(USHeader.prototype,$us.mixins.Events,{prevScrollTop:0,currentStateIs:function(state){return(state&&['default','laptops','tablets','mobiles'].includes(state)&&this.state===state)},isVertical:function(){return this.orientation==='ver'},isHorizontal:function(){return this.orientation==='hor'},isFixed:function(){return this.pos==='fixed'},isStatic:function(){return this.pos==='static'},isTransparent:function(){return this.bg==='transparent'},_isWithinScrollBoundaries:function(scrollTop){scrollTop=Math.ceil(scrollTop);return(scrollTop+_window.innerHeight>=$us.$document.height())||scrollTop<=0},isHidden:function(){return!!$us.header.settings.is_hidden},stickyEnabled:function(){return((this.settings[this.state]||{}).options||{}).sticky||!1},stickyAutoHideEnabled:function(){return this.stickyEnabled()&&(((this.settings[this.state]||{}).options||{}).sticky_auto_hide||!1)},isPinned:function(){return this._states.sticky||!1},isStickyAutoHidden:function(){return this._states.sticky_auto_hide||!1},getHeaderInitialPos:function(){return $us.$body.usMod('headerinpos')||''},getScrollDirection:function(){return this._states.scroll_direction||'down'},getHeight:function(){const self=this;if(!self.$container.length){return 0}
313const beforeContent=getComputedStyle(self.$container[0],':before').content;var height=0;
313if(beforeContent&&['none','auto'].includes(beforeContent)===!1){height=beforeContent.replace(/[^+\d]/g,'')}
314if(!height){height=self.$container.outerHeight()}
315return $ush.parseFloat(height)},getInitHeight:function(){return $ush.parseInt(this._states.init_height)||this.getHeight()},getCurrentHeight:function(adminBar){const self=this;var height=0;if(adminBar&&self.isHorizontal()&&(!self.currentStateIs('mobiles')||(self.adminBarHeight&&self.adminBarHeight>=self.getScrollTop()))){height+=self.adminBarHeight}
316if(!self.isStickyAutoHidden()){height+=self.getHeight()}
317return height},getScrollTop:function(){return _window.scrollY||this.prevScrollTop},prevOffsetTop:0,getOffsetTop:function(){return(this.prevOffsetTop=Math.max(this.prevOffsetTop,$ush.parseFloat(this.$container.css('top'))))},isScrollAtTopPosition:function(){return $ush.parseInt(_window.scrollY)===0},setView:function(newState){const self=this;if(newState==self.state){return}
318var options=(self.settings[newState]||{}).options||{},orientation=options.orientation||'hor',pos=toBoolean(options.sticky)?'fixed':'static',bg=toBoolean(options.transparent)?'transparent':'solid',shadow=options.shadow||'thin';if(orientation==='ver'){pos='fixed';bg='solid'}
319self._setPos(pos);self._setBg(bg);self._setShadow(shadow);self.orientation=orientation
320self.state=newState
321$us.$document.trigger('usHeader.update_view');if(self.stickyAutoHideEnabled()){self.$container.removeClass('down')}},_setPos:function(pos){const self=this;if(pos===self.pos){return}
322self.$container.usMod('pos',self.pos=pos);if(self.pos==='static'){self.changeSticky(!1)}},_setBg:function(bg){const self=this;if(bg!=self.bg){self.$container.usMod('bg',self.bg=bg)}},_setShadow:function(shadow){const self=this;if(shadow!=self.shadow){self.$container.usMod('shadow',self.shadow=shadow)}},_isVerticalScrollable:function(){const self=this;if(!self.isVertical()){return}
323if((self.currentStateIs('default')||self.currentStateIs('laptops'))&&self.isFixed()){self.$container.addClass('scrollable');var headerHeight=self.getHeight(),canvasHeight=parseInt($us.canvas.winHeight),documentHeight=parseInt($us.$document.height());self.$container.removeClass('scrollable');if((headerHeight/canvasHeight)>1.05){self.swichVerticalScrollable(!0)}else if(self._states.vertical_scrollable){self.swichVerticalScrollable(!1)}
324if((headerHeight/documentHeight)>1.05){self.$container.css({position:'absolute',top:0})}}else if(self._states.vertical_scrollable){self.swichVerticalScrollable(!1)}},swichVerticalScrollable:function(state){const self=this;self.$container.toggleClass('scrollable',self._states.vertical_scrollable=!!state);if(!self._states.vertical_scrollable){self.$container.resetInlineCSS('position','top','bottom');delete self._headerScrollRange}},changeSticky:function(state){const self=this;self._states.sticky=!!state;var currentHeight=self.getCurrentHeight(!0),resetCss=['position','top','bottom'];if($us.canvas.hasStickyFirstSection()&&self.getHeaderInitialPos()=='bottom'&&!self.stickyAutoHideEnabled()){resetCss=resetCss.filter((value)=>{return value!=='top'})}
325self.$container.toggleClass('sticky',self._states.sticky).resetInlineCSS(resetCss);if(currentHeight==self.getCurrentHeight(!0)){self.trigger('transitionEnd')}},contentChange:function(){this._isVerticalScrollable()},showBtn:function(e){const self=this;if($us.$body.hasClass('header-show')){return}
326e.stopPropagation();$us.$body.addClass('header-show').on(($.isMobile?'touchstart.noPreventDefault':'click'),self._events.hideMobileVerticalHeader)},hideMobileVerticalHeader:function(e){const self=this;if($.contains(self.$container[0],e.target)){return}
327$us.$body.off(($.isMobile?'touchstart':'click'),self._events.hideMobileVerticalHeader);$ush.timeout(()=>$us.$body.removeClass('header-show'),10)},scroll:function(){const self=this;var scrollTop=self.getScrollTop(),headerAbovePosition=(self.getHeaderInitialPos()==='above');if(self.prevScrollTop!=scrollTop){self._states.scroll_direction=(self.prevScrollTop<=scrollTop)?'down':'up'}
328self.prevScrollTop=scrollTop;if(self.isScrollAtTopPosition()){self._states.scroll_direction='up'}
329if(self.stickyAutoHideEnabled()&&self.isPinned()&&!self._isWithinScrollBoundaries(scrollTop)&&!headerAbovePosition){self._states.sticky_auto_hide=(self.getScrollDirection()==='down');
329self.$container.toggleClass('down',self._states.sticky_auto_hide)}
330if(!self.isFixed()){return}
331var headerAttachedFirstSection=['bottom','below'].includes(self.getHeaderInitialPos());if(self.isHorizontal()&&(headerAbovePosition||(headerAttachedFirstSection&&(self.currentStateIs('tablets')||self.currentStateIs('mobiles')))||!headerAttachedFirstSection)){if(self.stickyEnabled()){var scrollBreakpoint=parseInt(((self.settings[self.state]||{}).options||{}).scroll_breakpoint)||100,isSticky=Math.ceil(scrollTop)>=scrollBreakpoint;if(isSticky!=self.isPinned()){self.changeSticky(self._states.sticky!==isSticky)}}
332if(self.isPinned()&&!_window.scrollY){self.changeSticky(!1)}}
333if(self.isHorizontal()&&headerAttachedFirstSection&&!headerAbovePosition&&(self.currentStateIs('default')||self.currentStateIs('laptops'))){var top=($us.canvas.getHeightFirstSection()+self.adminBarHeight);if(self.getHeaderInitialPos()=='bottom'){top-=self.getInitHeight()}
334if(self.stickyEnabled()){var isSticky=_window.scrollY>=top;if(isSticky!=self.isPinned()){self.changeSticky(isSticky)}}
335if(!self.isPinned()&&top!=self.getOffsetTop()){self.$container.css('--heading-below-first-section-top',`${top}px`)}}
336if(self.isVertical()&&!headerAttachedFirstSection&&!headerAbovePosition&&self._states.vertical_scrollable){var headerHeight=self.getHeight(),documentHeight=parseInt($us.$document.height());if(documentHeight>headerHeight){var canvasHeight=parseInt($us.canvas.winHeight)+self.canvasOffset,scrollRangeDiff=(headerHeight-canvasHeight),cssProps;if(self._headerScrollRange===_undefined){self._headerScrollRange=[0,scrollRangeDiff]}
337if(self.bodyHeight>headerHeight){if(scrollTop<self._headerScrollRange[0]){self._headerScrollRange[0]=Math.max(0,scrollTop);self._headerScrollRange[1]=(self._headerScrollRange[0]+scrollRangeDiff);cssProps={position:'fixed',top:self.adminBarHeight}}else if(self._headerScrollRange[0]<scrollTop&&scrollTop<self._headerScrollRange[1]){cssProps={position:'absolute',top:self._headerScrollRange[0]}}else if(self._headerScrollRange[1]<=scrollTop){self._headerScrollRange[1]=Math.min(documentHeight-canvasHeight,scrollTop);self._headerScrollRange[0]=(self._headerScrollRange[1]-scrollRangeDiff);cssProps={position:'fixed',top:(canvasHeight-headerHeight)}}}else{cssProps={position:'absolute',top:self.adminBarHeight,}}
338if(cssProps){self.$container.css(cssProps)}}}},resize:function(){const self=this;self.canvasOffset=$us.$window.outerHeight()-$us.$window.innerHeight();self.bodyHeight=$us.$body.height();self.adminBarHeight=$us.getAdminBarHeight()||0;if(self.isFixed()&&self.isHorizontal()){self.$container.addClass('notransition');$ush.timeout(()=>self.$container.removeClass('notransition'),50)}
339self._isVerticalScrollable();self.scroll()}});_window.USHeader=USHeader;$us.header=new USHeader($us.headerSettings||{})}(jQuery);!function($,_undefined){"use strict";window.$us=window.$us||{};$us.mobileNavOpened=0;const SLIDE_DURATION=250;function usNav(container){const self=this;self.$container=$(container);if(self.$container.length===0){return}
340self.$items=$('.menu-item',self.$container);self.$list=$('.w-nav-list.level_1',self.$container);self.$anchors=$('.w-nav-anchor',self.$container);self.$mobileMenu=$('.w-nav-control',self.$container);self.$itemsHasChildren=$('.menu-item-has-children',self.$list);self.$childLists=$('.menu-item-has-children > .w-nav-list',self.$list);self.$reusableBlocksLinks=$('.menu-item-object-us_page_block a',self.$container);self.type=self.$container.usMod('type');self.layout=self.$container.usMod('layout');self.openDropdownOnClick=self.$container.hasClass('open_on_click');self.mobileNavOpened=!1;self.keyboardNavEvent=!1;self.opts={};self._events={closeMobileMenu:self.closeMobileMenu.bind(self),closeMobileMenuOnClick:self.closeMobileMenuOnClick.bind(self),closeMobileMenuOnFocusIn:self.closeMobileMenuOnFocusIn.bind(self),closeOnClickOutside:self.closeOnClickOutside.bind(self),closeOnMouseOver:self.closeOnMouseOver.bind(self),forwardArrowClick:self.forwardArrowClick.bind(self),handleKeyboardNav:self.handleKeyboardNav.bind(self),handleMobileClick:self.handleMobileClick.bind(self),resize:self.resize.bind(self),toggleMenuOnClick:self.toggleMenuOnClick.bind(self),toggleMobileMenu:self.toggleMobileMenu.bind(self),toggleSubMenu:self.toggleSubMenu.bind(self),updateDropDirection:self.updateDropDirection.bind(self),}
341const $opts=$('.w-nav-options:first',self.$container);if($opts.is('[onclick]')){self.opts=$opts[0].onclick()||{};$opts.remove()}
342self.$container.on('transitionend',()=>self.$container.removeClass('us_animate_this')).on('keydown.upsolution',self._events.handleKeyboardNav).on('click','.w-nav-close',self._events.closeMobileMenu).on('click','.w-nav-anchor, .w-hwrapper-link',self._events.closeMobileMenuOnClick).on('click','.w-nav-control',self._events.toggleMobileMenu).on('closeMobileMenu',self._events.closeMobileMenu).on('mouseenter','.menu-item-has-children',self._events.updateDropDirection).on('focusin','.menu-item-has-children > .w-nav-anchor, .menu-item-has-children > .w-nav-item-toggle',self._events.updateDropDirection);if(self.openDropdownOnClick){self.$container.on('click','.menu-item.togglable > .w-nav-anchor',self._events.toggleMenuOnClick);$us.$document.on('mouseup touchend.noPreventDefault',self._events.closeOnClickOutside)}
343$us.$document.on('usHeader.update_view',self._events.resize);$us.$window.on('resize',$ush.debounce(self._events.resize,5));if($ush.isSafari){self.$mobileMenu.on('mouseup',()=>{self.$mobileMenu.attr('style','outline: none')})}
344self.$reusableBlocksLinks.each((index,anchor)=>{if($(anchor).parents('.w-popup-wrap').length===0){self.$anchors.push(anchor)}});if($.isMobile&&self.type==='desktop'){self.$list.on('click','.w-nav-anchor[class*="level_"]',(e)=>{const $target=$(e.currentTarget);const $menuItem=$target.closest('.menu-item');if($target.usMod('level')>1&&!$menuItem.hasClass('menu-item-has-children')){self.setOpened($target.parents('.menu-item.opened'),!1)}})}
345self.$itemsHasChildren.each((_,menuItem)=>{const $menuItem=$(menuItem);const isInMegaMenu=$menuItem.parents('.menu-item.has_cols, .menu-item.has_side_panel').length>0;if(!isInMegaMenu){$menuItem.addClass('togglable')}
346const $subAnchor=$menuItem.children('.w-nav-anchor');const dropByLabel=$menuItem.hasClass('mobile-drop-by_label')||$menuItem.parents('.menu-item').hasClass('mobile-drop-by_label');const dropByArrow=$menuItem.hasClass('mobile-drop-by_arrow')||$menuItem.parents('.menu-item').hasClass('mobile-drop-by_arrow');$menuItem.children('.w-nav-item-toggle').on('click',self._events.toggleSubMenu);if(dropByLabel||(self.opts.mobileBehavior&&!dropByArrow)){$subAnchor.on('click',self._events.handleMobileClick)}else{$('.w-nav-arrow',$subAnchor).on('click',self._events.forwardArrowClick)}});if(!$us.$html.hasClass('no-touch')){self.$list.on('click','.menu-item-has-children.togglable > .w-nav-anchor',(e)=>{if(self.type==='mobile'){return}
347e.preventDefault();const $target=$(e.currentTarget);const $menuItem=$target.parent();if($menuItem.hasClass('opened')){return location.assign($target.attr('href'))}
348self.setOpened($menuItem,!0);const onOutsideClick=(e)=>{if($.contains($menuItem[0],e.target)){return}
349self.setOpened($menuItem,!1);$us.$body.off('touchstart',onOutsideClick)};$us.$body.on('touchstart.noPreventDefault',onOutsideClick)})}
350$us.$document.on('keydown',(e)=>{if($ush.isSafari){self.$mobileMenu.removeAttr('style')}
351if(e.keyCode===$ush.ESC_KEYCODE&&self.type==='mobile'&&self.mobileNavOpened){self.closeMobileMenu()}
352if(e.keyCode===$ush.TAB_KEYCODE&&self.type==='desktop'&&!$(e.target).closest('.w-nav').length){self.setOpened(self.$items,!1)}});$ush.timeout(()=>{self.resize();$us.header.$container.trigger('contentChange')},50)};$.extend(usNav.prototype,{toggleMobileMenu:function(e){const self=this;e.preventDefault();self.mobileNavOpened=!self.mobileNavOpened;$us.$document.on('mouseup touchend.noPreventDefault',self._events.closeOnClickOutside);self.$anchors.each((_,node)=>{node.href=node.href||'javascript:void(0)'});if(self.mobileNavOpened){$('.l-header .w-nav').not(self.$container).each((_,node)=>{$(node).trigger('closeMobileMenu')});self.$mobileMenu.addClass('active').focus();self.setOpened(self.$items.filter('.opened'),!1);self.$childLists.resetInlineCSS('display','height','opacity');if(self.layout==='dropdown'){self.$list.slideDownCSS(SLIDE_DURATION,()=>$us.header.$container.trigger('contentChange'))}
353$us.$html.addClass('w-nav-open');self.$mobileMenu.attr('aria-expanded','true');$us.mobileNavOpened++;$us.$document.on('focusin',self._events.closeMobileMenuOnFocusIn)}else{self.closeMobileMenu()}
354$us.$canvas.trigger('contentChange')},handleMobileClick:function(e){const self=this;if(self.type==='mobile'){e.stopPropagation();e.preventDefault();const $menuItem=$(e.currentTarget).closest('.menu-item');self.switchMobileSubMenu($menuItem,!$menuItem.hasClass('opened'))}},switchMobileSubMenu:function($menuItem,opened){const self=this;if(self.type!=='mobile'){return}
355const $subMenu=$menuItem.children('.w-nav-list');self.setOpened($menuItem,opened);if(opened){$subMenu.slideDownCSS(SLIDE_DURATION,()=>$us.header.$container.trigger('contentChange'))}else{$subMenu.slideUpCSS(SLIDE_DURATION,()=>$us.header.$container.trigger('contentChange'))}},closeMobileMenuOnFocusIn:function(){const self=this;if(!$.contains(self.$container[0],document.activeElement)){self.closeMobileMenu()}},closeMobileMenu:function(){const self=this;if(self.type!=='mobile'){return}
356self.mobileNavOpened=!1;self.$mobileMenu.removeClass('active');$us.$html.removeClass('w-nav-open');self.$mobileMenu.attr('aria-expanded','false');if(self.$list&&self.layout==='dropdown'){self.$list.slideUpCSS(SLIDE_DURATION)}
357$us.mobileNavOpened--;self.$mobileMenu[0].focus();$us.$canvas.trigger('contentChange');$us.$document.off('focusin',self._events.closeMobileMenuOnFocusIn).off('mouseup touchend.noPreventDefault',self._events.closeOnClickOutside);self.setOpened(self.$items,!1)},closeMobileMenuOnClick:function(e){const self=this;const $menuItem=$(e.currentTarget).closest('.menu-item');const dropByLabel=$menuItem.hasClass('mobile-drop-by_label')||$menuItem.parents('.menu-item').hasClass('mobile-drop-by_label');const dropByArrow=$menuItem.hasClass('mobile-drop-by_arrow')||$menuItem.parents('.menu-item').hasClass('mobile-drop-by_arrow');if(self.type!=='mobile'||$us.header.isVertical()){return}
358if(dropByLabel||(self.opts.mobileBehavior&&$menuItem.hasClass('menu-item-has-children')&&!dropByArrow)){return}
359self.closeMobileMenu()},});$.extend(usNav.prototype,{setOpened:function($menuItems,opened){$menuItems.toggleClass('opened',!!opened).children('.w-nav-item-toggle').attr('aria-expanded',opened?'true':'false')},toggleSubMenu:function(e){const self=this;const $toggle=$(e.currentTarget);const $menuItem=$toggle.closest('.menu-item-has-children');e.preventDefault();e.stopPropagation();if(self.type==='mobile'){self.switchMobileSubMenu($menuItem,!$menuItem.hasClass('opened'));return}
360self.$itemsHasChildren.off('mouseover',self._events.closeOnMouseOver).one('mouseover',self._events.closeOnMouseOver);if($menuItem.hasClass('opened')){self.setOpened($menuItem,!1);return}
361self.setOpened(self.$itemsHasChildren.not($menuItem).not($menuItem.parents('.menu-item-has-children')),!1);self.setOpened($menuItem,!0)},forwardArrowClick:function(e){const self=this;if(self.type!=='mobile'){return}
362e.preventDefault();e.stopPropagation();const toggle=$(e.currentTarget).closest('.menu-item-has-children').children('.w-nav-item-toggle')[0];if(toggle){toggle.click()}},toggleMenuOnClick:function(e){const self=this;if(self.type==='mobile'){return}
363const $menuItem=$(e.currentTarget).closest('.menu-item');const isOpened=$menuItem.hasClass('opened');if(!self.keyboardNavEvent){e.preventDefault();e.stopPropagation()}else{return}
364self.setOpened($menuItem,!isOpened);if(!isOpened){self.closeOnMouseOver(e)}else{self.setOpened($('.menu-item-has-children.opened',$menuItem),!1)}},closeOnClickOutside:function(e){const self=this;if(self.mobileNavOpened&&self.type==='mobile'){if(!self.$mobileMenu.is(e.target)&&!self.$mobileMenu.has(e.target).length&&!self.$list.is(e.target)&&!self.$list.has(e.target).length){self.closeMobileMenu()}}else if(self.$itemsHasChildren.hasClass('opened')&&!$.contains(self.$container[0],e.target)){self.setOpened(self.$itemsHasChildren,!1)}},closeOnMouseOver:function(e){const self=this;if(self.type==='mobile'){return}
365const $target=$(e.target);const $itemHasChildren=$target.closest('.menu-item-has-children');const $menuItemLevel1=$target.closest('.menu-item.level_1');self.setOpened(self.$itemsHasChildren.not($itemHasChildren).not($itemHasChildren.parents('.menu-item-has-children')).not($menuItemLevel1),!1)},switchSidePanelTab:function(e){const $target=$(e.target);if(!$target.is('.w-nav-anchor.level_2')||!$target.closest('.menu-item.has_side_panel').length){return}
366e.preventDefault();const $tabs=$target.closest('.w-nav-list.level_2').children('.w-nav-item').children('.w-nav-anchor');const index=$tabs.index($target);if(index===-1){return}
367const shift=((e.keyCode||e.which)===$ush.DOWN_KEYCODE)?1:-1;$tabs.eq((index+shift+$tabs.length)%$tabs.length).focus()},updateDropDirection:function(e){const self=this;if(self.type!=='desktop'||$us.header.isVertical()){return}
368const $itemHasChildren=$(e.currentTarget).closest('.menu-item-has-children');const dropdown=$itemHasChildren.children('.w-nav-list')[0];if(!dropdown){return}
369if($itemHasChildren.closest('.menu-item.has_cols, .menu-item.has_side_panel, .menu-item.dropdown_full_width').length){return}
370const itemRect=$ush.$rect($itemHasChildren[0]);const isLevel1=$itemHasChildren.hasClass('level_1');const dropLeft=$ush.isRtl()?((isLevel1?itemRect.right:itemRect.left)-dropdown.offsetWidth<0):((isLevel1?itemRect.left:itemRect.right)+dropdown.offsetWidth>window.innerWidth);$itemHasChildren.toggleClass('drop_left',dropLeft)},handleKeyboardNav:function(e){const self=this;const keyCode=e.keyCode||e.which;const $target=$(e.target);const $menuItemLevel1=$target.closest('.menu-item.level_1');if(self.type==='mobile'){if(keyCode===$ush.SPACE_KEYCODE&&$target.is(self.$mobileMenu)){e.
370stopPropagation();self.toggleMobileMenu(e)}
371if(keyCode===$ush.TAB_KEYCODE){if(e.shiftKey&&self.$anchors.index($target)===0){self.closeMobileMenu()}}}
372if(self.type==='desktop'){if(keyCode===$ush.ESC_KEYCODE){if($menuItemLevel1.hasClass('opened')){$menuItemLevel1.children('.w-nav-item-toggle').focus()}
373self.setOpened(self.$items,!1)}
374if([$ush.UP_KEYCODE,$ush.DOWN_KEYCODE].includes(keyCode)){self.switchSidePanelTab(e)}
375self.keyboardNavEvent=!0;$ush.timeout(()=>{self.keyboardNavEvent=!1},1)}},resize:function(){const self=this;if(self.$container.length===0){return}
376const newType=(window.innerWidth<self.opts.mobileWidth)?'mobile':'desktop';if($us.header.orientation!==self.headerOrientation||newType!==self.type){self.$childLists.resetInlineCSS('display','height','opacity');if(self.headerOrientation==='hor'&&self.type==='mobile'){self.$list.resetInlineCSS('display','height','opacity')}
377self.setOpened(self.$items,!1);self.headerOrientation=$us.header.orientation;self.type=newType;self.$container.usMod('type',newType)}
378self.$list.removeClass('hide_for_mobiles')},});$.fn.usNav=function(){return this.each(function(){$(this).data('usNav',new usNav(this))})};$('.l-header .w-nav').usNav()}(jQuery);(function($){"use strict";$.fn.usMessage=function(){return this.each(function(){var $this=$(this),$closer=$this.find('.w-message-close');$closer.click(function(){$this.wrap('<div></div>');var $wrapper=$this.parent();$wrapper.css({overflow:'hidden',height:$this.outerHeight(!0)});$wrapper.performCSSTransition({height:0},300,function(){$wrapper.remove();$us.$canvas.trigger('contentChange')},'cubic-bezier(.4,0,.2,1)')})})};$(function(){$('.w-message').usMessage()})})(jQuery);(function($,_undefined){"use strict";const DELETE_FILTER=null;function usPostList(container){const self=this;self.data={paged:1,max_num_pages:1,paginationBase:'page',pagination:'none',ajaxUrl:$us.ajaxUrl,ajaxData:{us_ajax_list_pagination:1,},facetedFilter:{},};self.listFilterUid=null;self.isScrollToListEnabled=!1;self.uid=$ush.uniqid();self.xhr;self.$container=$(container);self.$list=$('.w-grid-list',container);self.$loadmore=$('.g-loadmore',container);self.$pagination=$('nav.pagination',container);self.$none=self.$container.next('.w-grid-none');self.$pageContent=$('main#page-content');self.isCurrentQuery=self.$container.hasClass('for_current_wp_query');const $opts=$('.w-grid-list-json:first',container);if($opts.is('[onclick]')){$.extend(self.data,$opts[0].onclick()||{})}
379$opts.remove();self.paginationType=$ush.toString(self.data.pagination);self.PAGE_URL_PATTERN=new RegExp(`\/${self.data.paginationBase}\/?([\\d]{1,})\/?`);self._events={addNextPage:self.addNextPage.bind(self),switchNumPage:self.switchNumPage.bind(self),initMagnificPopup:self.initMagnificPopup.bind(self),usListOrder:self.usListOrder.bind(self),usListSearch:self.usListSearch.bind(self),usListFilter:self.usListFilter.bind(self),usbReloadIsotopeLayout:self.usbReloadIsotopeLayout.bind(self),};if(self.paginationType==='load_on_btn'){self.$loadmore.on('mousedown','button',self._events.addNextPage)}else if(self.paginationType==='load_on_scroll'){$us.waypoints.add(self.$loadmore,'-70%',self._events.addNextPage)}else if(self.paginationType==='numbered_ajax'){self.$container.on('click','a.page-numbers',self._events.switchNumPage)}
380self.$container.add(self.$none).on('usListSearch',self._events.usListSearch).on('usListOrder',self._events.usListOrder).on('usListFilter',self._events.usListFilter);self.$list.on('click','[ref=magnificPopup]',self._events.initMagnificPopup)
381if($('[ref=magnificPopupList]:first',self.$list).length){self.initMagnificPopupList()}
382if(self.$container.hasClass('open_items_in_popup')){self.popupPost=new $us.usPopup();self.popupPost.popupPost(self.$container)}
383if(self.$container.hasClass('type_masonry')){self.$list.imagesLoaded(()=>{const isotopeOptions={itemSelector:'.w-grid-item',layoutMode:(self.$container.hasClass('isotope_fit_rows'))?'fitRows':'masonry',isOriginLeft:!$('.l-body').hasClass('rtl'),transitionDuration:0};var columnWidth;if($('.size_1x1',self.$list).length>0){columnWidth='.size_1x1'}else if($('.size_1x2',self.$list).length>0){columnWidth='.size_1x2'}else if($('.size_2x1',self.$list).length>0){columnWidth='.size_2x1'}else if($('.size_2x2',self.$list).length>0){columnWidth='.size_2x2'}
384if(columnWidth){columnWidth=columnWidth||'.w-grid-item';isotopeOptions.masonry={columnWidth:columnWidth}}
385self.$list.on('layoutComplete',()=>
385{if(_window.USAnimate){$('.w-grid-item.off_autostart',self.$list).removeClass('off_autostart');new USAnimate(self.$list)}
386$us.$window.trigger('scroll.waypoints')});self.$list.isotope(isotopeOptions);$us.$canvas.on('contentChange',()=>{self.$list.imagesLoaded(()=>{self.$list.isotope('layout')})})});self.$container.on('usbReloadIsotopeLayout',self._events.usbReloadIsotopeLayout)}
387self.initListResultCounter()}
388$.extend(usPostList.prototype,{usListSearch:function(e,name,value){this.applyFilter(name,value)},usListOrder:function(e,values){const self=this;$.each(values,self.applyFilter.bind(self))},usListFilter:function(e,values){const self=this;$.each(values,self.applyFilter.bind(self))},addNextPage:function(){const self=this;if($ush.isUndefined(self.xhr)&&!self.$none.is(':visible')){self.data.paged+=1;self.addItems()}},switchNumPage:function(e){const self=this;e.preventDefault();if($ush.isUndefined(self.xhr)&&self.$none.is(':visible')){return}
389const pageNum=$ush.parseInt(($ush.toString(e.currentTarget.href).match(self.PAGE_URL_PATTERN)||[])[1]||1);self.setPageNumInHistory(pageNum);self.data.paged=pageNum;self.addItems()},setPageNumInHistory:function(pageNum){const self=this;const pathname=location.pathname;const isFirstPage=pageNum<2;const pageStructure=`${self.data.paginationBase}/${pageNum}/`;var updatedPath;if(self.PAGE_URL_PATTERN.test(pathname)){updatedPath=isFirstPage?pathname.replace(self.PAGE_URL_PATTERN,'')+'/':pathname.replace(self.PAGE_URL_PATTERN,'/'+pageStructure)}else if(pageNum>1){updatedPath=pathname+pageStructure}else{updatedPath=pathname}
390const method=isFirstPage?'pushState':'replaceState';history[method]({},'',location.href.replace(pathname,updatedPath))},applyFilter:function(name,value){const self=this;if($ush.toString(value)=='{}'){value=DELETE_FILTER}
391if(name==='list_filters'){$.extend(value,JSON.parse(self.data.ajaxData[name]||'{}'));self.data.ajaxData[name]=JSON.stringify(value);return}
392if(name==='list_filter_uid'){self.listFilterUid=value;return}
393if(name==='scroll_to_list'){self.isScrollToListEnabled=value;return}
394self.setPageNumInHistory(1);self.data.paged=1;if(self.isCurrentQuery){self.data.ajaxUrl=$ush.urlManager(self.data.ajaxUrl).set(name,value).toString()}else if(value===DELETE_FILTER){delete self.data.ajaxData[name]}else{self.data.ajaxData[name]=value}
395if(!$ush.isUndefined(self.xhr)){self.xhr.abort()}
396self.addItems(!0)},scrollToList:function(){const self=this;if(self.data.paged>1||!self.isScrollToListEnabled){return}
397const offsetTop=$ush.parseInt(self.$container.offset().top);if(!offsetTop){return}
398const scrollTop=$us.$window.scrollTop();if(!$ush.isNodeInViewport(self.$container[0])||offsetTop>=(scrollTop+window.innerHeight)||scrollTop>=offsetTop){$us.$htmlBody.stop(!0,!1).animate({scrollTop:(offsetTop-$us.header.getInitHeight())},500)}},addItems:function(listFiltersApplied){const self=this;if(!listFiltersApplied&&self.data.paged>self.data.max_num_pages){return}
399self.$container.removeClass('no_results').addClass('loading_items');if(listFiltersApplied){self.$container.addClass('filtering');self.$loadmore.removeClass('hidden')}
400var ajaxUrl=$ush.toString(self.data.ajaxUrl),ajaxData=$ush.clone(self.data.ajaxData),numPage=$ush.rawurlencode('{num_page}');if(ajaxUrl.includes(numPage)){ajaxUrl=ajaxUrl.replace(numPage,self.data.paged)}else if(ajaxData.template_vars){ajaxData.template_vars=JSON.stringify(ajaxData.template_vars);ajaxData.paged=self.data.paged}
401self.xhr=$.ajax({type:'post',url:ajaxUrl,dataType:'html',cache:!1,data:ajaxData,success:(htmlContent)=>{if(listFiltersApplied){if(self.$container.hasClass('type_masonry')){self.$list.isotope('remove',$('.w-grid-item',self.$list)).isotope('layout')}
402self.$list.html('');self.$none.addClass('hidden')}
403const $htmlContent=$(htmlContent);$('.w-grid.us_post_carousel, .w-grid.us_product_carousel',$htmlContent).remove();if(self.paginationType=='numbered_ajax'){const numPagination=$ush.toString($('nav.pagination.navigation',$htmlContent).html());self.$pagination.toggleClass('hidden',!numPagination).html(numPagination);self.$list.html('')}
404var $listJson=$('.w-grid-list-json:first',$htmlContent);if($listJson.is('[onclick]')){if($listJson[0].onclick===null){$listJson[0].onclick=new Function($listJson.attr('onclick'))}
405$.extend(!0,self.data,$listJson[0].onclick()||{})}
406var $items=$htmlContent.find('.w-grid-list').first().children();$ush.timeout(()=>{const data={postListUid:self.uid,listFilterUid:self.listFilterUid,listFiltersApplied:listFiltersApplied,};$us.$document.trigger('usPostList.itemsLoaded',[$items,data])},50);if(!$items.length){if(!self.$none.length){self.$none=$('.w-grid-none:first',$htmlContent);if(!self.$none.length){self.$none=$htmlContent.filter('.w-grid-none:first')}
407self.$container.after(self.$none)}
408self.$container.removeClass('loading_items filtering').addClass('no_results');self.$none.removeClass('hidden');return}
409if(self.$container.hasClass('type_masonry')){self.$list.isotope('insert',$items).isotope('reloadItems')}else{self.$list.append($items)}
410if(window.USAnimate&&self.$container.hasClass('with_css_animation')){new USAnimate(self.$list);$us.$window.trigger('scroll.waypoints')}
411if(self.paginationType=='numbered'){const $pagination=$('nav.pagination',$htmlContent);if($pagination.length&&!self.$pagination.length){self.$list.after($pagination.prop('outerHTML'));self.$pagination=self.$list.next('nav.pagination')}
412if(self.$pagination.length&&$pagination.length){self.$pagination.html($pagination.html()).removeClass('hidden')}else{self.$pagination.addClass('hidden')}}
413if(self.data.paged>=self.data.max_num_pages){self.$loadmore.addClass('hidden')}else{self.$loadmore.removeClass('hidden')}
414if(self.paginationType==='load_on_scroll'){$us.waypoints.add(self.$loadmore,'-70%',self._events.addNextPage)}
415$us.$canvas.trigger('contentChange')},complete:()=>{self.$container.removeClass('loading_items filtering');delete self.xhr;if(self.paginationType==='load_on_scroll'){$us.$window.trigger('scroll.waypoints')}
416self.scrollToList()}})},usbReloadIsotopeLayout:function(){const self=this;if(self.$container.hasClass('with_isotope')){self.$list.isotope('layout')}},});$.extend(usPostList.prototype,{initListResultCounter:function(){const self=this;const listResultCounterOpts=[];const $firstList=$(`
417				.w-grid.us_post_list:visible,
418				.w-grid.us_product_list:visible,
419				.w-grid-none:visible
420			`,self.$pageContent).first();self.$listResultCounter=$('.w-list-result-counter');if(!(self.$listResultCounter.length)){return}
421self.$listResultCounter.each((_,node)=>{const $node=$(node);if(!$node.is('[onclick]')){return}
422const opts=node.onclick()||{};if(self.$container[0]!==$firstList[0]){if(!self.$container.is(String(opts.listSelectorToCount))){return}}else if(opts.listSelectorToCount&&!self.$container.is(String(opts.listSelectorToCount))){return}
423opts.$listResultCounter=$node;listResultCounterOpts.push(opts)});self._events.updateCountResults=function(_,$items,data){if(data.postListUid===self.uid){$.each(listResultCounterOpts,(_,opts)=>{const foundPosts=(self.paginationType==='none')?$('> *',self.$list).length:self.data.ajaxData.found_posts;self.countResult(foundPosts,opts)})}};$us.$document.on('usPostList.itemsLoaded',self._events.updateCountResults);const numAjaxParams=Object.keys($ush.urlManager(self.data.ajaxUrl).toJson(!1)).length;if(self.data.facetedFilter.query_args_unfiltered){$.ajax({url:$us.ajaxUrl,type:'POST',dataType:'json',data:{action:'us_list_result_counter_total',query_args_unfiltered:self.data.facetedFilter.query_args_unfiltered,_us_nonce:self.data.facetedFilter._us_nonce,},success:(res)=>{if(!res.success){console.error(res.data.message);return}
424$.each(listResultCounterOpts,(_,opts)=>{var total;if(res.data.total_unfiltered){total=res.data.total_unfiltered}else if(self.paginationType==='none'){total=$('> *',self.$list).length}else{total=self.data.ajaxData.found_posts}
425$('.total-unfiltered',opts.$listResultCounter).text(total)});$.each(listResultCounterOpts,(_,opts)=>{if(opts.totalUnfiltered!==res.data.total_unfiltered&&self.paginationType!=='none'&&numAjaxParams<=1){self.countResult(self.data.ajaxData.found_posts,opts)}})},})}
426if(self.paginationType==='none'&&numAjaxParams<=1){$.each(listResultCounterOpts,(_,opts)=>{self.countResult($('> *',self.$list).length,opts)})}
427if(self.paginationType==='numbered'){if(!(numAjaxParams<1)){$.each(listResultCounterOpts,(_,opts)=>{self.countResult(self.data.ajaxData.found_posts,opts)})}}else if(!(numAjaxParams<=1)){const total=(self.paginationType==='none')?$('>
427 *',self.$list).length:self.data.ajaxData.found_posts;$.each(listResultCounterOpts,(_,opts)=>{self.countResult(total,opts)})}},countResult:function(total,opts){const self=this;if(!self.$listResultCounter.length||$us.usbPreview()){return}
428const $listResultCounter=opts.$listResultCounter;const $noResultsSpan=$('.no-results',$listResultCounter);const $oneResultSpan=$('.one-result',$listResultCounter);const $mainSpan=$('span:first-child',$listResultCounter);const perPage=self.isCurrentQuery?opts.perPage:self.data.ajaxData.per_page;$listResultCounter.show();$mainSpan.removeClass('hidden');$noResultsSpan.addClass('hidden');$oneResultSpan.addClass('hidden');const lower=['load_on_scroll','load_on_btn'].includes(self.paginationType)?1:(self.data.paged-1)*perPage+1;const upper=self.paginationType==='none'?$('> *',self.$list).length:Math.min(total,self.data.paged*perPage);if(total===1){$mainSpan.addClass('hidden');$oneResultSpan.removeClass('hidden')}else if(total===0){if($noResultsSpan.length){$mainSpan.addClass('hidden');$noResultsSpan.removeClass('hidden')}else{$listResultCounter.hide()}}else{$('.lower',$listResultCounter).text(lower);$('.upper',$listResultCounter).text(upper);$('.total',$listResultCounter).text(total)}},});$.extend(usPostList.prototype,{initMagnificPopup:function(e){e.stopPropagation();e.preventDefault();const $target=$(e.currentTarget);if($target.data('magnificPopup')===_undefined){$target.magnificPopup({type:'image',mainClass:'mfp-fade'});$target.trigger('click')}},initMagnificPopupList:function(){const self=this;const globalOpts=$us.langOptions.magnificPopup;self.$list.magnificPopup({type:'image',delegate:'a[ref=magnificPopupList]:visible',gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1],tPrev:globalOpts.tPrev,tNext:globalOpts.tNext,tCounter:globalOpts.tCounter},image:{titleSrc:'aria-label'},removalDelay:300,mainClass:'mfp-fade',fixedContentPos:!0,})},});$.fn.usPostList=function(){return this.each(function(){$(this).data('usPostList',new usPostList(this))})};$(()=>$('.w-grid.us_post_list, .w-grid.us_product_list').usPostList())})(jQuery);!function($){"use strict";function UsSearch(container){this.$container=$(container);this.$form=this.$container.find('.w-search-form');this.$btnOpen=this.$container.find('.w-search-open');this.$btnClose=this.$container.find('.w-search-close');this.$input=this.$form.find('[name="s"]');this.$overlay=this.$container.find('.w-search-background');this.$window=$(window);this.searchOverlayInitRadius=25;this.isFullScreen=this.$container.hasClass('layout_fullscreen');this.isWithRipple=this.$container.hasClass('with_ripple');this._bindEvents()}
429$.extend(UsSearch.prototype,{_bindEvents:function(){this.$btnOpen.on('click.usSearch',(e)=>{this.searchShow(e)});this.$btnClose.on('touchstart.noPreventDefault click',(e)=>{this.searchHide(e)});this.$form.on('keydown',(e)=>{if(e.keyCode===$ush.ESC_KEYCODE&&this.$container.hasClass('active')){this.searchHide(e)}});this.$btnOpen.on('keydown',(e)=>{if(e.keyCode===$ush.SPACE_KEYCODE){e.preventDefault();this.searchShow(e)}})},searchHide:function(e){e.stopPropagation();if(e.type==='touchstart'){e.preventDefault()}
430if(this.isFullScreen){$ush.timeout(()=>{this.$btnOpen.one('click.usSearch',(evt)=>{this.searchShow(evt)})},100)}
431this.$btnOpen.removeAttr('tabindex').attr('aria-expanded','false');this.$container.removeClass('active');this.$input.blur();if(this.isWithRipple&&this.isFullScreen){this.$form.css({transition:'opacity 0.4s'});$ush.timeout(()=>{this.$overlay.removeClass('overlay-on').addClass('overlay-out').css({'transform':'scale(0.1)'});this.$form.css('opacity',0);$ush.debounce(()=>{this.$form.css('display','none');this.$overlay.css('display','none')},600)},25)}
432if(e.type!=='touchstart'){this.$btnOpen.trigger('focus')}
433$us.$document.off('focusin.usSearch')},calculateOverlayScale:function(){const searchPos=this.$btnOpen.offset();const searchWidth=this.$btnOpen.width();const searchHeight=this.$btnOpen.height();searchPos.top-=this.$window.scrollTop();searchPos.left-=this.$window.scrollLeft();const overlayX=searchPos.left+searchWidth/2;const overlayY=searchPos.top+searchHeight/2;const winWidth=$us.canvas.winWidth;const winHeight=$us.canvas.winHeight;const dx=Math.pow(Math.max(winWidth-overlayX,overlayX),2);const dy=Math.pow(Math.max(winHeight-overlayY,overlayY),2);const overlayRadius=Math.sqrt(dx+dy);
433return[(overlayRadius+15)/this.searchOverlayInitRadius,overlayX,overlayY]},searchShow:function(e){e.preventDefault();$us.$document.on('focusin.usSearch',this.closeFormOnTabOutside.bind(this));if(this.isFullScreen){this.$btnOpen.off('click.usSearch')}
434this.$container.addClass('active');this.$btnOpen.attr({'tabindex':'-1','aria-expanded':'true'});if(this.isWithRipple&&this.isFullScreen){const calculateOverlayScale=this.calculateOverlayScale();const overlayScale=calculateOverlayScale[0];const overlayX=calculateOverlayScale[1];const overlayY=calculateOverlayScale[2];this.$overlay.css({width:this.searchOverlayInitRadius*2,height:this.searchOverlayInitRadius*2,left:overlayX,top:overlayY,"margin-left":-this.searchOverlayInitRadius,"margin-top":-this.searchOverlayInitRadius});this.$overlay.removeClass('overlay-out').show();this.$form.css({opacity:0,display:'block',transition:'opacity 0.4s 0.3s'});$ush.timeout(()=>{this.$overlay.addClass('overlay-on').css({"transform":"scale("+overlayScale+")"});this.$form.css('opacity',1)},25)}
435$ush.timeout(()=>{this.$input.trigger('focus')},25)},closeFormOnTabOutside:function(e){if(!$.contains(this.$form[0],$us.$document[0].activeElement)){this.searchHide(e)}},});$.fn.wSearch=function(){return this.each(function(){$(this).data('wSearch',new UsSearch(this))})};$(function(){jQuery('.l-header .w-search').wSearch()})}(jQuery);!function($,_undefined){"use strict";window.$us=window.$us||{};const SLIDE_DURATION=250;function usSimpleNav(container){const self=this;self.$container=$(container);if(self.$container.length===0){return}
436self.isCatNavElm=self.$container.hasClass('for_category_nav');if(self.isCatNavElm){self.$items=$('.cat-item',self.$container);self.$menuItemHasChildren=$('.cat-item:has(>.children)',self.$container)}else{self.$items=$('.menu-item',self.$container);self.$menuItemHasChildren=$('.menu-item-has-children',self.$container)}
437self.$menuItemHasChildren.each((_,section)=>{const $section=$(section);if(!$section.hasClass('current-menu-ancestor')&&!$section.hasClass('current-cat-ancestor')&&!$section.hasClass('current-cat')){self.closeSection($section)}});self._events={toggleAccordionSection:self.toggleAccordionSection.bind(self),keyboardToggleAccordionSection:self.keyboardToggleAccordionSection.bind(self),}
438if(self.isCatNavElm){self.$container.on('click','.cat-item:has(>.children) > a',self._events.toggleAccordionSection).on('keydown','.cat-item:has(>.children) > a',self._events.keyboardToggleAccordionSection)}else{self.$container.on('click','.menu-item-has-children > a',self._events.toggleAccordionSection).on('keydown','.menu-item-has-children > a',self._events.keyboardToggleAccordionSection)}}
439$.extend(usSimpleNav.prototype,{toggleAccordionSection:function(e){const self=this;const $target=$(e.target);var $clickedSection;if(self.isCatNavElm){$clickedSection=$target.closest('.cat-item:has(>.children)')}else{$clickedSection=$target.closest('.menu-item-has-children')}
440e.preventDefault();e.stopImmediatePropagation();if(!self.$container.hasClass('allow_multiple_open')){self.closeOtherSections($clickedSection)}
441if($clickedSection.hasClass('expanded')){self.closeSection($clickedSection)}else{self.openSection($clickedSection)}
442return!1},keyboardToggleAccordionSection:function(e){const self=this;const $target=$(e.target);if([$ush.ENTER_KEYCODE,$ush.SPACE_KEYCODE].includes(e.keyCode||e.which)&&($target.parent('.menu-item-has-children').length!==0||$target.parent('.cat-item:has(>.children)').length!==0)){e.preventDefault();self.toggleAccordionSection(e)}},openSection:function($section){const self=this;$section.addClass('expanded');$section.children('a').attr('aria-expanded','true');if(self.isCatNavElm){$section.children('.children').slideDownCSS(SLIDE_DURATION)}else{$section.children('.sub-menu').slideDownCSS(SLIDE_DURATION)}},closeSection:function($section){const self=this;$section.removeClass('expanded');$section.children('a').attr('aria-expanded','false');if(self.isCatNavElm){$section.children('.children').slideUpCSS(SLIDE_DURATION)}else{$section.children('.sub-menu').slideUpCSS(SLIDE_DURATION)}},closeOtherSections:function($selectedSection){const self=this;const $selectedSectionParents=$selectedSection.parentsUntil('.w-menu');self.$menuItemHasChildren.each((_,section)=>{const $section=$(section);if(section!=$selectedSection[0]&&$section.hasClass('expanded')&&!$selectedSectionParents.is($section)){self.closeSection($section)}})}});$.fn.usSimpleNav=function(){return this.each(function(){$(this).data('usSimpleNav',new usSimpleNav(this))})};$('.w-menu.type_accordion').usSimpleNav()}(jQuery);!function($,_undefined){"use strict";$us.WTabs=function(container,options){const self=this;
442const _defaults={easing:'cubic-bezier(.78,.13,.15,.86)',duration:300};self.options=$.extend({},_defaults,options);self.isRtl=$('.l-body').hasClass('rtl');self.$container=$(container);self.$tabsList=$('> .w-tabs-list:first',self.$container);self.$tabs=$('.w-tabs-item',self.$tabsList);self.$sectionsWrapper=$('> .w-tabs-sections:first',self.$container);self.$sections=$('> .w-tabs-section',self.$sectionsWrapper);self.$headers=self.$sections.children('.w-tabs-section-header');self.$contents=self.$sections.children('.w-tabs-section-content');self.$tabsBar=$();if(self.$container.hasClass('accordion')){self.$tabs=self.$headers}
443self.accordionAtWidth=self.$container.data('accordion-at-width');self.align=self.$tabsList.usMod('align');self.count=self.$tabs.length;self.hasScrolling=self.$container.hasClass('has_scrolling')||!1;self.isAccordionAtWidth=$ush.parseInt(self.accordionAtWidth)!==0;self.isScrolling=!1;self.isTogglable=self.$container.usMod('type')==='togglable';self.minWidth=0;self.tabHeights=[];self.tabLefts=[];self.tabTops=[];self.tabWidths=[];self.width=0;if(self.count===0){return}
444if(self.$container.hasClass('accordion')){self.basicLayout='accordion'}else{self.basicLayout=self.$container.usMod('layout')||'hor'}
445self.curLayout=self.basicLayout;self.active=[];self.activeOnInit=[];self.definedActive=[];self.tabs=$.map(self.$tabs.toArray(),$);self.sections=$.map(self.$sections.toArray(),$);self.headers=$.map(self.$headers.toArray(),$);self.contents=$.map(self.$contents.toArray(),$);if(!self.sections.length){return}
446$.each(self.tabs,(index)=>{if(self.sections[index].hasClass('content-empty')){self.tabs[index].hide();self.sections[index].hide()}
447if(self.tabs[index].hasClass('active')){self.active.push(index);self.activeOnInit.push(index)}
448if(self.tabs[index].hasClass('defined-active')){self.definedActive.push(index)}
449self.tabs[index].add(self.headers[index]).on('click mouseover',(e)=>{var $link=self.tabs[index];if(!$link.is('a')){$link=$('a',$link)}
450if($link.length){if(e.type=='click'&&!$ush.toString($link.attr('href'))){e.preventDefault()}}else{e.preventDefault()}
451if(e.type=='mouseover'&&(self.$container.hasClass('accordion')||!self.$container.hasClass('switch_hover'))){return}
452if(self.curLayout==='accordion'&&self.isTogglable){self.toggleSection(index)}else{if(index!=self.active[0]){self.headerClicked=!0;self.openSection(index)}else if(self.curLayout==='accordion'){self.contents[index].css('display','block').slideUp(self.options.duration,self._events.contentChanged);self.tabs[index].attr('aria-expanded','false').removeClass('active');self.sections[index].removeClass('active');self.active[0]=_undefined}}})});self._events={resize:self.resize.bind(self),hashchange:self.hashchange.bind(self),contentChanged:function(){$.each(self.tabs,(_,item)=>{var $content=$(item);$content.attr('aria-expanded',$content.hasClass('active'))})
453$us.$canvas.trigger('contentChange',{elm:self.$container})},wheel:function(){if(self.isScrolling){$us.$htmlBody.stop(!0,!1)}}};self.switchLayout(self.curLayout);$us.$window.on('resize',$ush.debounce(self._events.resize,5)).on('hashchange',self._events.hashchange).on('wheel.noPreventDefault',$ush.debounce(self._events.wheel.bind(self),5));$us.$document.ready(()=>{self.resize();$ush.timeout(self._events.resize,50);$ush.timeout(()=>{if(window.location.hash){var hash=window.location.hash.substr(1),$linkedSection=$(`.w-tabs-section[id="${hash}"]`,self.$sectionsWrapper);if($linkedSection.length&&!$linkedSection.hasClass('active')){$('.w-tabs-section-header',$linkedSection).trigger('click')}}},150)});$.each(self.tabs,(index)=>{if(self.headers.length&&self.headers[index].attr('href')!=_undefined){var tabHref=self.headers[index].attr('href'),tabHeader=self.headers[index];$(`a[href="${tabHref}"]`,self.$container).on('click',function(e){e.preventDefault();if($(this).hasClass('w-tabs-section-header','w-tabs-item')){return}
454if(!$(tabHeader).parent('.w-tabs-section').hasClass('active')){tabHeader.trigger('click')}})}});self.$container.addClass('initialized');self.headerHeight=0;$us.header.on('transitionEnd',(header)=>{self.headerHeight=header.getCurrentHeight(!0)});if($us.usbPreview()){const usbContentChange=()=>{if(!self.isTrendy()||self.curLayout=='accordion'){return}
455self.measure();self.setBarPosition(self.active[0]||0)};self.$container.on('usb.contentChange',$ush.debounce(usbContentChange,1))}};$us.WTabs.prototype={isTrendy:function(){return this.$container.hasClass('style_trendy')},hashchange:function(){if(window.location.hash){var hash=window.location.hash.substr(1),$linkedSection=$(`.w-tabs-section[id="${hash}"]`,this.$sectionsWrapper);if($linkedSection.length&&!$linkedSection.hasClass('active')){$('.w-tabs-section-header',$linkedSection).click()}}},switchLayout:function(to){this.cleanUpLayout(this.curLayout);this.prepareLayout(to);this.curLayout=to},cleanUpLayout:function(from){this.$sections.resetInlineCSS('display');if(from==='accordion'){this.$container.removeClass('accordion');this.$contents.resetInlineCSS('height','padding-top','padding-bottom','display','opacity')}
456if(this.isTrendy()&&['hor','ver'].includes(from)){this.$tabsBar.remove()}},prepareLayout:function(to){if(to!=='accordion'&&this.active[0]===_undefined){this.active[0]=this.activeOnInit[0];if(this.active[0]!==_undefined){this.tabs[this.active[0]].addClass('active');this.sections[this.active[0]].addClass('active')}}
457if(to==='accordion'){this.$container.addClass('accordion');this.$contents.hide();if(this.curLayout!=='accordion'&&this.active[0]!==_undefined&&this.active[0]!==this.definedActive[0]){this.headers[this.active[0]].removeClass('active');this.tabs[this.active[0]].removeClass('active');this.sections[this.active[0]].removeClass('active');this.active[0]=this.definedActive[0]}
458for(var i=0;i<this.active.length;i ++){if(this.contents[this.active[i]]!==_undefined){this.tabs[this.active[i]].attr('aria-expanded','true').addClass('active');this.sections[this.active[i]].addClass('active');this.contents[this.active[i]].show()}}}else if(to==='ver'){this.$contents.hide();this.contents[this.active[0]].show()}
459if(this.isTrendy()&&'hor|ver'.indexOf(this.curLayout)>-1){this.$tabsBar=$('<div class="w-tabs-list-bar"></div>').appendTo(this.$tabsList)}},measure:function(){if(this.basicLayout==='ver'){if(this.isAccordionAtWidth){this.minWidth=this.accordionAtWidth}else{var
460minTabWidth=this.$tabsList.outerWidth(!0),minContentWidth=300,navWidth=this.$container.usMod('navwidth');if(navWidth!=='auto'){minTabWidth=Math.max(minTabWidth,minContentWidth*parseInt(navWidth)/(100-parseInt(navWidth))
460)}
461this.minWidth=Math.max(480,minContentWidth+minTabWidth+1)}
462if(this.isTrendy()){this.tabHeights=[];this.tabTops=[];for(var index=0;index<this.tabs.length;index ++){this.tabHeights.push(this.tabs[index].outerHeight(!0));this.tabTops.push(index?(this.tabTops[index-1]+this.tabHeights[index-1]):0)}}}else{if(this.basicLayout==='hor'){this.$container.addClass('measure');if(this.isAccordionAtWidth){this.minWidth=this.accordionAtWidth}else{this.minWidth=0;for(var index=0;index<this.tabs.length;index ++){this.minWidth+=this.tabs[index].outerWidth(!0)}}
463this.$container.removeClass('measure')}
464if(this.isTrendy()){this.tabWidths=[];this.tabLefts=[];for(var index=0;index<this.tabs.length;index ++){this.tabWidths.push(this.tabs[index].outerWidth(!0));this.tabLefts.push(index?(this.tabLefts[index-1]+this.tabWidths[index-1]):this.tabs[index].position().left)}
465if(this.isRtl){var
466firstTabWidth=this.tabWidths[0],offset=('none'==this.align)?this.$tabsList.outerWidth(!0):this.tabWidths.reduce((a,b)=>{return a+b},0);this.tabLefts=this.tabLefts.map((left)=>Math.abs(left-offset+firstTabWidth))}}}},setBarPosition:function(index,animated){if(index===_undefined||!this.isTrendy()||'hor|ver'.indexOf(this.curLayout)==-1){return}
467if(!this.$tabsBar.length){this.$tabsBar=$('<div class="w-tabs-list-bar"></div>').appendTo(this.$tabsList)}
468var css={};if(this.curLayout==='hor'){css={width:this.tabWidths[index]};css[this.isRtl?'right':'left']=this.tabLefts[index]}else if(this.curLayout==='ver'){css={top:this.tabTops[index],height:this.tabHeights[index]}}
469if(!animated){this.$tabsBar.css(css)}else{this.$tabsBar.performCSSTransition(css,this.options.duration,null,this.options.easing)}},openSection:function(index){const self=this;if(this.sections[index]===_undefined){return}
470if(this.curLayout==='hor'){this.$sections.removeClass('active').css('display','none');this.sections[index].stop(!0,!0).fadeIn(this.options.duration,function(){$(this).addClass('active');self.startTabComponents(index)})}else if(this.curLayout==='accordion'){if(this.contents[this.active[0]]!==_undefined){this.contents[this.active[0]].css('display','block').stop(!0,!1).slideUp(this.options.duration,()=>self.startTabComponents(index))}
471this.contents[index].css('display','none').stop(!0,!1).slideDown(this.options.duration,function(){this._events.contentChanged.call(this);if(this.hasScrolling&&this.curLayout==='accordion'&&this.headerClicked==!0){var top=this.headers[index].offset().top;if(!jQuery.isMobile){top-=$us.$canvas.offset().top||0}
472var $prevStickySection=this.$container.closest('.l-section').prevAll('.l-section.type_sticky');if($prevStickySection.length){top-=parseInt($prevStickySection.outerHeight(!0))}
473var animateOptions={duration:$us.canvasOptions.scrollDuration,easing:$us.getAnimationName('easeInOutExpo'),start:function(){this.isScrolling=!0}.bind(this),always:function(){this.isScrolling=!1}.bind(this),step:function(now,fx){var newTop=top;if($us.header.isHorizontal()&&$us.header.stickyEnabled()){newTop-=this.headerHeight}
474if(fx.end!==newTop){$us.$htmlBody.stop(!0,!1).animate({scrollTop:newTop},$.extend(animateOptions,{easing:$us.getAnimationName('easeOutExpo')}))}}.bind(this)};$us.$htmlBody.stop(!0,!1).animate({scrollTop:top},animateOptions);this.headerClicked=!1;self.startTabComponents(index)}}.bind(this));this.$sections.removeClass('active');this.sections[index].addClass('active')}else if(this.curLayout==='ver'){if(this.contents[this.active[0]]!==_undefined){this.contents[this.active[0]].css('display','none')}
475this.contents[index].css('display','none').stop(!0,!0).fadeIn(this.options.duration,this._events.contentChanged);this.$sections.removeClass('active');this.sections[index].addClass('active');self.startTabComponents(index)}
476this._events.contentChanged();this.$tabs.attr('aria-expanded','false').removeClass('active');this.tabs[index].attr('aria-expanded','true').addClass('active');this.active[0]=index;this.setBarPosition(index,!0)},toggleSection:function(index){var indexPos=$.inArray(index,this.active);if(indexPos!=-1){this.contents[index].css('display','block').slideUp(this.options.duration,this._events.contentChanged);this.tabs[index].attr('aria-expanded','false').removeClass('active');this.sections[index].removeClass('active');this.active.splice(indexPos,1)}else{this.contents[index].css('display','none').slideDown(this.options.duration,this._events.contentChanged);this.tabs[index].attr('aria-expanded','true').addClass('active');this.sections[index].addClass('active');this.active.push(index)}},startTabComponents:function(tabIndex){const self=this;$('.w-counter',self.sections[tabIndex]).each((_,item)=>{$(item).trigger('animation_start')})},resize:function(){this.width=this.isAccordionAtWidth?$us.$window.outerWidth():this.$container.width();if(this.curLayout!=='accordion'&&!this.width&&this.$container.closest('.w-nav').length&&!jQuery.isMobile){return}
477var nextLayout=(this.width<=this.minWidth)?'accordion':this.basicLayout;if(nextLayout!==this.curLayout){this.switchLayout(nextLayout)}
478if(this.curLayout!=='accordion'){this.measure()}
479this._events.contentChanged();this.setBarPosition(this.active[0])}};$.fn.wTabs=function(options){return this.each(function(){$(this).data('wTabs',new $us.WTabs(this,options))})};$(()=>$('.w-tabs').wTabs());$us.$document.on('usPostList.itemsLoaded usGrid.itemsLoaded',(_,$items)=>{$('.w-tabs',$items).wTabs()})}(jQuery);jQuery(function($){$('.w-tabs .rev_slider').each(function(){var $slider=$(this);$slider.bind("revolution.slide.onloaded",function(e){$us.$canvas.on('contentChange',function(){$slider.revredraw()})})})});(function($,_undefined){"use strict";window.$us.YTPlayers=window.$us.YTPlayers||{};$us.wVideo=function(container){const self=this;self.$container=$(container);self.$videoH=$('.w-video-h',self.$container);self.cookieName=self.$container.data('cookie-name');self.isWithOverlay=self.$container.hasClass('with_overlay');if($ush.isSafari){(self.getVideoElement()||{load:$.noop}).load()}
480if(!self.cookieName&&!self.isWithOverlay){return}
481self.data={};if(self.$container.is('[onclick]')){self.data=self.$container[0].onclick()||{};if(!$us.usbPreview())self.$container.removeAttr('onclick');}
482self._events={hideOverlay:self._hideOverlay.bind(self),confirm:self._confirm.bind(self)};if(self.cookieName){self.$container.on('click','.action_confirm_load',self._events.confirm)}
483self.$container.one('click','> *',self._events.hideOverlay)};$.extend($us.wVideo.prototype,{getVideoElement:function(){return $('video',this.$videoH)[0]||null}
483,_confirm:function(){const self=this;if($('input[name^='+self.cookieName+']:checked',self.$container).length){$ush.setCookie(self.cookieName,1,365)}
484if(self.isWithOverlay){self.insertPlayer()}else{self.$videoH.html($ush.base64Decode(''+$('script[type="text/template"]',self.$container).text())).removeAttr('data-cookie-name')}},_hideOverlay:function(e){const self=this;e.preventDefault();if(self.$container.is('.with_overlay')){self.$container.removeAttr('style').removeClass('with_overlay')}
485if(!self.cookieName){self.insertPlayer()}},insertPlayer:function(){const self=this;var data=$.extend({player_id:'',player_api:'',player_html:''},self.data||{});if(data.player_api&&!$('script[src="'+data.player_api+'"]',document.head).length){$('head').append('<script src="'+data.player_api+'"></script>')}
486self.$videoH.html(data.player_html);const videoElement=self.getVideoElement();if(!data.player_api&&$ush.isNode(videoElement)){if(self.isWithOverlay&&$ush.isSafari){videoElement.setAttribute('preload','metadata')}
487videoElement.play()}}});$.fn.wVideo=function(){return this.each(function(){$(this).data('wVideo',new $us.wVideo(this))})};$(()=>$('.w-video').wVideo());$us.$document.on('usPostList.itemsLoaded usGrid.itemsLoaded',(_,$items)=>{$('.w-video',$items).wVideo()})})(jQuery);(function($){var $window=$(window),windowHeight=$window.height();$.fn.parallax=function(xposParam){this.each(function(){var $container=$(this),$this=$container.children('.l-section-img'),speedFactor,offsetFactor=0,getHeight,topOffset=0,containerHeight=0,containerWidth=0,disableParallax=!1,parallaxIsDisabled=!1,baseImgHeight=0,baseImgWidth=0,isBgCover=($this.css('background-size')=='cover'),originalBgPos=$this.css('background-position'),curImgHeight=0,reversed=$container.hasClass('parallaxdir_reversed'),baseSpeedFactor=reversed?-0.1:0.61,xpos,outerHeight=!0;if($this.length==0){return}
488if(xposParam===undefined){xpos="50%"}else{xpos=xposParam}
489if($container.hasClass('parallax_xpos_right')){xpos="100%"}else if($container.hasClass('parallax_xpos_left')){xpos="0%"}
490if(outerHeight){getHeight=function(jqo){return jqo.outerHeight(!0)}}else{getHeight=function(jqo){return jqo.height()}}
491function getBackgroundSize(callback){var img=new Image(),width,height,backgroundSize=($this.css('background-size')||' ').split(' '),backgroundWidthAttr=$this.attr('data-img-width'),backgroundHeightAttr=$this.attr('data-img-height');if(backgroundWidthAttr!=''){width=parseInt(backgroundWidthAttr)}
492if(backgroundHeightAttr!=''){height=parseInt(backgroundHeightAttr)}
493if(width!==undefined&&height!==undefined){return callback({width:width,height:height})}
494if(/px/.test(backgroundSize[0])){width=parseInt(backgroundSize[0])}
495if(/%/.test(backgroundSize[0])){width=$this.parent().width()*(parseInt(backgroundSize[0])/100)}
496if(/px/.test(backgroundSize[1])){height=parseInt(backgroundSize[1])}
497if(/%/.test(backgroundSize[1])){height=$this.parent().height()*(parseInt(backgroundSize[0])/100)}
498if(width!==undefined&&height!==undefined){return callback({width:width,height:height})}
499img.onload=function(){if(typeof width=='undefined'){width=this.width}
500if(typeof height=='undefined'){height=this.height}
501callback({width:width,height:height})};img.src=($this.css('background-image')||'').replace(/url\(['"]*(.*?)['"]*\)/g,'$1')}
502function update(){if($us.$html.hasClass('ios-touch')){return}
503if(disableParallax){if(!parallaxIsDisabled){$this.css('backgroundPosition',originalBgPos);$container.usMod('parallax','fixed');parallaxIsDisabled=!0}
504return}else{if(parallaxIsDisabled){$container.usMod('parallax','ver');parallaxIsDisabled=!1}}
505if(isNaN(speedFactor)){return}
506var pos=$window.scrollTop();if((topOffset+containerHeight<pos)||(pos<topOffset-windowHeight)){return}
507$this.css('backgroundPosition',xpos+" "+(offsetFactor+speedFactor*(topOffset-pos))+"px")}
508function resize(){$ush.timeout(function(){windowHeight=$window.height();containerHeight=getHeight($this);containerWidth=$this.width();if($window.width()<$us.canvasOptions.disableEffectsWidth){disableParallax=!0}else{disableParallax=!1;if(isBgCover){if(baseImgWidth/baseImgHeight<=containerWidth/containerHeight){curImgHeight=baseImgHeight*($this.width()/baseImgWidth);disableParallax=!1}else{disableParallax=!0}}}
509if(curImgHeight!==0){if(baseSpeedFactor>=0){speedFactor=Math.min(baseSpeedFactor,curImgHeight/windowHeight);offsetFactor=.5*(windowHeight-curImgHeight-speedFactor*(windowHeight-containerHeight));if(offsetFactor>0){offsetFactor=-offsetFactor}}else{speedFactor=Math.min(baseSpeedFactor,(windowHeight-containerHeight)/(windowHeight+containerHeight));offsetFactor=Math.max(0,speedFactor*containerHeight)}}else{speedFactor=baseSpeedFactor;offsetFactor=0}
510topOffset=$this.offset().top;
510update()},10)}
511getBackgroundSize(function(sz){curImgHeight=baseImgHeight=sz.height;baseImgWidth=sz.width;resize()});$window.bind({'scroll.noPreventDefault':update,load:resize,resize:resize});resize()})};jQuery('.parallax_ver').parallax('50%')})(jQuery);

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.