PageSourceSearch

https://panomagic.eu/app/public/js/3.32.0/x3.min.js

js panomagic.eu collected 2026-10-02 21:13:10 UTC 260,558 bytes, 2 lines download raw bytes

1/* www.photo.gallery X3.32.0 / x3.min.js / 2023-09-11
vendor: 87,940 bytes, lines 1-2
1 */
2function onloadCSS(t,e){var n;function o(){!n&&e&&(n=!0,e.call(t))}t.addEventListener&&t.addEventListener("load",o),t.attachEvent&&t.attachEvent("onload",o),"isApplicationInstalled"in navigator&&"onloadcssdefined"in t&&t.onloadcssdefined(o)}!function(t){var e="X3 / Columns layout render time";t.elasticColumns=function(t,n){this.settings=n;var o=[];this.buildLayout=function(){H(e);var n=t.firstElementChild.classList.contains("x3-cart-gallery-buttons")&&t.firstElementChild.offsetHeight||0,a=n?D(t.childNodes):t.childNodes,s=parseInt(window.getComputedStyle(t).paddingRight)+parseInt(window.getComputedStyle(t).paddingLeft),r=(t.clientWidth-s-this.settings.innerMargin*(this.settings.columns-1)-2*this.settings.outerMargin)/this.settings.columns;n&&a.shift();for(var l=0;l<this.settings.columns;l+=1)o[l]=this.settings.outerMargin+n;for(var c=0;c<a.length;c+=1){for(var d=a[c],u=0,h=0;h<this.settings.columns;h+=1)o[h]<o[u]&&(u=h);d.style.cssText="position: absolute; width: "+r+"px; left: "+(this.settings.outerMargin+this.settings.innerMargin*u+u*r)+"px; top: "+o[u]+"px",o[u]+=d.offsetHeight+this.settings.innerMargin}var p=0;for(h=0;h<this.settings.columns;h+=1)o[h]>o[p]&&(p=h);t.style.height=o[p]+"px",P(e)}},t.fn.elasticColumns=function(e,n,o){return this.each((function(){var a=t(this).data("elasticColumns");void 0===a?(a=new t.elasticColumns(this,e),t(this).data("elasticColumns",a),a.buildLayout()):("refresh"==e&&a.buildLayout(),"set"==e&&(a.settings[n]=o))}))}}(jQuery),function(t,e){var n,o=t.jQuery||t.Cowboy||(t.Cowboy={});o.throttle=n=function(t,n,a,s){var r,l=0;function c(){var o=this,c=+new Date-l,d=arguments;function u(){l=+new Date,a.apply(o,d)}s&&!r&&u(),r&&clearTimeout(r),s===e&&c>t?u():!0!==n&&(r=setTimeout(s?function(){r=e}:u,s===e?t-c:t))}return"boolean"!=typeof n&&(s=a,a=n,n=e),o.guid&&(c.guid=a.guid=a.guid||o.guid++),c},o.debounce=function(t,o,a){return a===e?n(t,o,!1):n(t,a,!1!==o)}}(this),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):jQuery&&!jQuery.fn.hoverIntent&&t(jQuery)}((function(t){"use strict";var e,n,o={interval:100,sensitivity:6,timeout:0},a=0,s=function(t){e=t.pageX,n=t.pageY},r=function(t,o,a,l){if(Math.sqrt((a.pX-e)*(a.pX-e)+(a.pY-n)*(a.pY-n))<l.sensitivity)return o.off(a.event,s),delete a.timeoutId,a.isActive=!0,t.pageX=e,t.pageY=n,delete a.pX,delete a.pY,l.over.apply(o[0],[t]);a.pX=e,a.pY=n,a.timeoutId=setTimeout((function(){r(t,o,a,l)}),l.interval)};t.fn.hoverIntent=function(e,n,l){var c=a++,d=t.extend({},o);t.isPlainObject(e)?(d=t.extend(d,e),t.isFunction(d.out)||(d.out=d.over)):d=t.isFunction(n)?t.extend(d,{over:e,out:n,selector:l}):t.extend(d,{over:e,out:e,selector:n});var u=function(e){var n=t.extend({},e),o=t(this),a=o.data("hoverIntent");a||o.data("hoverIntent",a={});var l=a[c];l||(a[c]=l={id:c}),l.timeoutId&&(l.timeoutId=clearTimeout(l.timeoutId));var u=l.event="mousemove.hoverIntent.hoverIntent"+c;if("mouseenter"===e.type){if(l.isActive)return;l.pX=n.pageX,l.pY=n.pageY,o.off(u,s).on(u,s),l.timeoutId=setTimeout((function(){r(n,o,l,d)}),d.interval)}else{if(!l.isActive)return;o.off(u,s),l.timeoutId=setTimeout((function(){!function(t,e,n,o){var a=e.data("hoverIntent");a&&delete a[n.id],o.apply(e[0],[t])}(n,o,l,d.out)}),d.timeout)}};return this.on({"mouseenter.hoverIntent":u,"mouseleave.hoverIntent":u},d.selector)}})),function(t){"use strict";var loadCSS=function(e,n,o,a){var s,r=t.document,l=r.createElement("link");if(n)s=n;else{var c=(r.body||r.getElementsByTagName("head")[0]).childNodes;s=c[c.length-1]}var d=r.styleSheets;if(a)for(var u in a)a.hasOwnProperty(u)&&l.setAttribute(u,a[u]);l.rel="stylesheet",l.href=e,l.media="only x",function t(e){if(r.body)return e();setTimeout((function(){t(e)}))}((function(){s.parentNode.insertBefore(l,n?s:s.nextSibling)}));var h=function(t){for(var e=l.href,i=d.length;i--;)if(d[i].href===e)return t();setTimeout((function(){h(t)}))};function p(){l.addEventListener&&l.removeEventListener("load",p),l.media=o||"all"}return l.addEventListener&&l.addEventListener("load",p),l.onloadcssdefined=h,h(p),l};"undefined"!=typeof exports?exports.loadCSS=loadCSS:t.loadCSS=loadCSS}("undefined"!=typeof global?global:this),function(t,e,n,o){var a,s,r,l,c,d,u;function h(e,n){for(var o in e.owlCarousel={name:"Owl Carousel",author:"Bartosz Wojciechowski",version:"2.0.0-beta.2.1"},this.settings=null,this.options=t.extend({},h.Defaults,n),this.itemData=t.extend({},a),this.dom=t.extend({},s),this.width=t.extend({},r),this.num=t.extend({},l),this.drag=t.extend({},c),this.state=t.extend({},d),this.e=t.extend({},u),this.plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=null,this.dom.el=e,this.dom.$el=t(e),h.Plugins)this.plugins[o[0].toLowerCase()+o.slice(1)]=new h.Plugins[o](this);this.init()}function p(t){var e,o,a=n.createElement("div"),s=t;for(e in s)if(o=s[e],void 0!==a.style[o])return a=null,[o,e];return[!1]}a={index:!1,indexAbs:!1,posLeft:!1,clone:!1,active:!1,loaded:!1,lazyLoad:!1,current:!1,width:!1,center:!1,page:!1,hasVideo:!1,playVideo:!1},s={el:null,$el:null,stage:null,$stage:null,oStage:null,$oStage:null,$items:null,$oItems:null,$cItems:null,$content:null},r={el:0,stage:0,item:0,prevWindow:0,cloneLast:0},l={items:0,oItems:0,cItems:0,active:0,merged:[]},c={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,offsetX:0,offsetY:0,distance:null,startTime:0,endTime:0,updatedX:0,targetEl:null},d={isTouch:!1,isScrolling:!1,isSwiping:!1,direction:!1,inMotion:!1},u={_onDragStart:null,_onDragMove:null,_onDragEnd:null,_transitionEnd:null,_resizer:null,_responsiveCall:null,_goToLoop:null,_checkVisibile:null},h.Defaults={items:3,loop:!1,center:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:e,responsiveClass:!1,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",themeClass:"owl-theme",baseClass:"owl-carousel",itemClass:"owl-item",centerClass:"center",activeClass:"active"},h.Plugins={},h.prototype.init=function(){var t,e,n;if((this.setResponsiveOptions(),this.trigger("initialize"),this.dom.$el.hasClass(this.settings.baseClass)||this.dom.$el.addClass(this.settings.baseClass),this.dom.$el.hasClass(this.settings.themeClass)||this.dom.$el.addClass(this.settings.themeClass),this.settings.rtl&&this.dom.$el.addClass("owl-rtl"),this.browserSupport(),this.settings.autoWidth&&!0!==this.state.imagesLoaded)&&(t=this.dom.$el.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:o,n=this.dom.$el.children(e).width(),t.length&&n<=0))return this.preloadAutoWidthImages(t),!1;this.width.prevWindow=this.viewport(),this.createStage(),this.fetchContent(),this.eventsCall(),this.internalEvents(),this.dom.$el.addClass("owl-loading"),this.refresh(!0),this.dom.$el.removeClass("owl-loading").addClass("owl-loaded"),this.trigger("initialized"),this.addTriggerableEvents()},h.prototype.setResponsiveOptions=function(){if(this.options.responsive){var e=this.viewport(),n=this.options.responsive,o=-1;t.each(n,(function(t){t<=e&&t>o&&(o=Number(t))})),this.settings=t.extend({},this.options,n[o]),delete this.settings.responsive,this.settings.responsiveClass&&this.dom.$el.attr("class",(function(i,t){return t.replace(/\b owl-responsive-\S+/g,"")})).addClass("owl-responsive-"+o)}else this.settings=t.extend({},this.options)},h.prototype.optionsLogic=function(){this.dom.$el.toggleClass("owl-center",this.settings.center),this.settings.loop&&this.num.oItems<this.settings.items&&(this.settings.loop=!1),this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},h.prototype.createStage=function(){var e=n.createElement("div"),o=n.createElement(this.settings.stageElement);e.className="owl-stage-outer",o.className="owl-stage",e.appendChild(o),this.dom.el.appendChild(e),this.dom.oStage=e,this.dom.$oStage=t(e),this.dom.stage=o,this.dom.$stage=t(o),e=null,o=null},h.prototype.createItemContainer=function(){var e=n.createElement(this.settings.itemElement);return e.className=this.settings.itemClass,t(e)},h.prototype.fetchContent=function(e){e?this.dom.$content=e instanceof jQuery?e:t(e):this.settings.nestedItemSelector?this.dom.$content=this.dom.$el.find("."+this.settings.nestedItemSelector).not(".owl-stage-outer"):this.dom.$content=this.dom.$el.children().not(".owl-stage-outer"),this.num.oItems=this.dom.$content.length,0!==this.num.oItems&&this.initStructure()},h.prototype.initStructure=function(){this.createNormalStructure()},h.prototype.createNormalStructure=function(){var i,t;for(i=0;i<this.num.oItems;i++)t=this.createItemContainer(),this.initializeItemContainer(t,this.dom.$content[i]),this.dom.$stage.append(t);this.dom.$content=null},h.prototype.createCustomStructure=function(t){var i,e;for(i=0;i<t;i++)e=this.createItemContainer(),this.createItemContainerData(e),this.dom.$stage.append(e)},h.prototype.initializeItemContainer=function(t,e){this.trigger("change",{property:{name:"item",value:t}}),this.createItemContainerData(t),t.append(e),this.trigger("changed",{property:{name:"item",value:t}})},h.prototype.createItemContainerData=function(e,n){var o=t.extend({},this.itemData);n&&t.extend(o,n.data("owl-item")),e.data("owl-item",o)},h.prototype.cloneItemContainer=function(t){var e=t.clone(!0,!0).addClass("cloned");return this.createItemContainerData(e,e),e.data("owl-item").clone=!0,e},h.prototype.updateLocalContent=function(){var e;for(this.dom.$oItems=this.dom.$stage.find("."+this.settings.itemClass).filter((function(){return!1===t(this).data("owl-item").clone})),this.num.oItems=this.dom.$oItems.length,e=0;e<this.num.oItems;e++)this.dom.$oItems.eq(e).data("owl-item").index=e},h.prototype.loopClone=function(){if(!this.settings.loop||this.num.oItems<this.settings.items)return!1;var e,n,i,o=this.settings.items,a=this.num.oItems-1;for(this.settings.stagePadding&&1===this.settings.items&&(o+=1),this.num.cItems=2*o,i=0;i<o;i++)e=this.cloneItemContainer(this.dom.$oItems.eq(i)),n=this.cloneItemContainer(this.dom.$oItems.eq(a-i)),this.dom.$stage.append(e),this.dom.$stage.prepend(n);this.dom.$cItems=this.dom.$stage.find("."+this.settings.itemClass).filter((function(){return!0===t(this).data("owl-item").clone}))},h.prototype.reClone=function(){null!==this.dom.$cItems&&(this.dom.$cItems.remove(),this.dom.$cItems=null,this.num.cItems=0),this.settings.loop&&this.loopClone()},h.prototype.calculate=function(){var i,t,e,n,o,a,s,r=0,l=0;for(this.width.el=this.dom.$el.width()-2*this.settings.stagePadding,this.width.view=this.dom.$el.width(),e=this.width.el-this.settings.margin*(1===this.settings.items?0:this.settings.items-1),this.width.el=this.width.el+this.settings.margin,this.width.item=(e/this.settings.items+this.settings.margin).toFixed(3),this.dom.$items=this.dom.$stage.find(".owl-item"),this.num.items=this.dom.$items.length,this.settings.autoWidth&&this.dom.$items.css("width",""),this._coordinates=[],this.num.merged=[],n=this.settings.rtl?this.settings.center?-this.width.el/2:0:this.settings.center?this.width.el/2:0,this.width.mergeStage=0,i=0;i<this.num.items;i++)this.settings.merge?(s=this.dom.$items.eq(i).find("[data-merge]").attr("data-merge")||1,this.settings.mergeFit&&s>this.settings.items&&(s=this.settings.items),this.num.merged.push(parseInt(s)),this.width.mergeStage+=this.width.item*this.num.merged[i]):this.num.merged.push(1),a=this.width.item*this.num.merged[i],this.settings.autoWidth&&(a=this.dom.$items.eq(i).width()+this.settings.margin,this.settings.rtl?this.dom.$items[i].style.marginLeft=this.settings.margin+"px":this.dom.$items[i].style.marginRight=this.settings.margin+"px"),this._coordinates.push(n),this.dom.$items.eq(i).data("owl-item").posLeft=r,this.dom.$items.eq(i).data("owl-item").width=a,this.settings.rtl?(n+=a,r+=a):(n-=a,r-=a),l-=Math.abs(a),this.settings.center&&(this._coordinates[i]=this.settings.rtl?this._coordinates[i]+a/2:this._coordinates[i]-a/2);for(this.settings.autoWidth?this.width.stage=this.settings.center?Math.abs(l):Math.abs(n):this.width.stage=Math.abs(l),o=this.num.oItems+this.num.cItems,t=0;t<o;t++)this.dom.$items.eq(t).data("owl-item").indexAbs=t;this.setSizes()},h.prototype.setSizes=function(){!1!==this.settings.stagePadding&&(this.dom.oStage.style.paddingLeft=this.settings.stagePadding+"px",this.dom.oStage.style.paddingRight=this.settings.stagePadding+"px"),this.settings.rtl?e.setTimeout(t.proxy((function(){this.dom.stage.style.width=this.width.stage+"px"}),this),0):this.dom.stage.style.width=this.width.stage+"px";for(var i=0;i<this.num.items;i++)this.settings.autoWidth||(this.dom.$items[i].style.width=this.width.item-this.settings.margin+"px"),this.settings.rtl?this.dom.$items[i].style.marginLeft=this.settings.margin+"px":this.dom.$items[i].style.marginRight=this.settings.margin+"px",1===this.num.merged[i]||this.settings.autoWidth||(this.dom.$items[i].style.width=this.width.item*this.num.merged[i]-this.settings.margin+"px");this.width.stagePrev=this.width.stage},h.prototype.responsive=function(){return!!this.num.oItems&&(!!this.isElWidthChanged()&&(!this.trigger("resize").isDefaultPrevented()&&(this.state.responsive=!0,this.refresh(),this.state.responsive=!1,void this.trigger("resized"))))},h.prototype.refresh=function(){var t=this.dom.$oItems&&this.dom.$oItems.eq(this.normalize(this.current(),!0));if(this.trigger("refresh"),this.setResponsiveOptions(),this.updateLocalContent(),this.optionsLogic(),0===this.num.oItems)return!1;this.dom.$stage.addClass("owl-refresh"),this.reClone(),this.calculate(),this.dom.$stage.removeClass("owl-refresh"),t?this.reset(t.data("owl-item").indexAbs):(this.dom.oStage.scrollLeft=0,this.reset(this.dom.$oItems.eq(0).data("owl-item").indexAbs)),this.state.orientation=e.orientation,this.watchVisibility(),this.trigger("refreshed")},h.prototype.updateActiveItems=function(){var i,t,e,n,o,a;for(this.trigger("change",{property:{name:"items",value:this.dom.$items}}),i=0;i<this.num.items;i++)this.dom.$items.eq(i).data("owl-item").active=!1,this.dom.$items.eq(i).data("owl-item").current=!1,this.dom.$items.eq(i).removeClass(this.settings.activeClass).removeClass(this.settings.centerClass);for(this.num.active=0,padding=2*this.settings.stagePadding,stageX=this.coordinates(this.current())+padding,view=this.settings.rtl?this.width.view:-this.width.view,t=0;t<this.num.items;t++)n=(e=this.dom.$items.eq(t)).data("owl-item").posLeft,o=e.data("owl-item").width,a=this.settings.rtl?n-o-padding:n-o+padding,(this.op(n,"<=",stageX)&&this.op(n,">",stageX+view)||this.op(a,"<",stageX)&&this.op(a,">",stageX+view))&&(this.num.active++,e.data("owl-item").active=!0,e.data("owl-item").current=!0,e.addClass(this.settings.activeClass),this.settings.lazyLoad||(e.data("owl-item").loaded=!0),this.settings.loop&&this.updateClonedItemsState(e.data("owl-item").index));this.settings.center&&(this.dom.$items.eq(this.current()).addClass(this.settings.centerClass).data("owl-item").center=!0),this.trigger("changed",{property:{name:"items",value:this.dom.$items}})},h.prototype.updateClonedItemsState=function(t){var e,n,i;for(this.settings.center&&(e=this.dom.$items.eq(this.current()).data("owl-item").index),i=0;i<this.num.items;i++)(n=this.dom.$items.eq(i)).data("owl-item").index===t&&(n.data("owl-item").current=!0,n.data("owl-item").index===e&&n.addClass(this.settings.centerClass))},h.prototype.eventsCall=function(){this.e._onDragStart=t.proxy((function(t){this.onDragStart(t)}),this),this.e._onDragMove=t.proxy((function(t){this.onDragMove(t)}),this),this.e._onDragEnd=t.proxy((function(t){this.onDragEnd(t)}),this),this.e._transitionEnd=t.proxy((function(t){this.transitionEnd(t)}),this),this.e._resizer=t.proxy((function(){this.responsiveTimer()}),this),this.e._responsiveCall=t.proxy((function(){this.responsive()}),this),this.e._preventClick=t.proxy((function(t){this.preventClick(t)}),this)},h.prototype.responsiveTimer=function(){if(this.viewport()===this.width.prevWindow)return!1;e.clearTimeout(this.resizeTimer),this.resizeTimer=e.setTimeout(this.e._responsiveCall,this.settings.responsiveRefreshRate),this.width.prevWindow=this.viewport()},h.prototype.internalEvents=function(){var t="ontouchstart"in e||!!navigator.msMaxTouchPoints,o=e.navigator.msPointerEnabled;this.dragType=t&&!o?["touchstart","touchmove","touchend","touchcancel"]:t&&o?["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel"]:["mousedown","mousemove","mouseup"],(t||o)&&this.settings.touchDrag?this.on(n,this.dragType[3],this.e._onDragEnd):(this.dom.$stage.on("dragstart",(function(){return!1})),this.settings.mouseDrag?this.dom.stage.onselectstart=function(){return!1}:this.dom.$el.addClass("owl-text-select-on")),this.transitionEndVendor&&this.on(this.dom.stage,this.transitionEndVendor,this.e._transitionEnd,!1),!1!==this.settings.responsive&&this.on(e,"resize",this.e._resizer,!1),this.dragEvents()},h.prototype.dragEvents=function(){!this.settings.touchDrag||"touchstart"!==this.dragType[0]&&"MSPointerDown"!==this.dragType[0]?this.settings.mouseDrag&&"mousedown"===this.dragType[0]?this.on(this.dom.stage,this.dragType[0],this.e._onDragStart,!1):this.off(this.dom.stage,this.dragType[0],this.e._onDragStart):this.on(this.dom.stage,this.dragType[0],this.e._onDragStart,!1)},h.prototype.onDragStart=function(t){var o,a,s,r,l;if(3===(o=t.originalEvent||t||e.event).which)return!1;if("mousedown"===this.dragType[0]&&this.dom.$stage.addClass("owl-grab"),this.trigger("drag"),this.drag.startTime=(new Date).getTime(),this.speed(0),this.state.isTouch=!0,this.state.isScrolling=!1,this.state.isSwiping=!1,this.drag.distance=0,s=(a="touchstart"===o.type)?t.targetTouches[0].pageX:o.pageX||o.clientX,r=a?t.targetTouches[0].pageY:o.pageY||o.clientY,this.drag.offsetX=this.dom.$stage.position().left-this.settings.stagePadding,this.drag.offsetY=this.dom.$stage.position().top,this.settings.rtl&&(this.drag.offsetX=this.dom.$stage.position().left+this.width.stage-this.width.el+this.settings.margin),this.state.inMotion&&this.support3d)l=this.getTransformProperty(),this.drag.offsetX=l,this.animate(l),this.state.inMotion=!0;else if(this.state.inMotion&&!this.support3d)return this.state.inMotion=!1,!1;this.drag.startX=s-this.drag.offsetX,this.drag.startY=r-this.drag.offsetY,this.drag.start=s-this.drag.startX,this.drag.targetEl=o.target||o.srcElement,this.drag.updatedX=this.drag.start,"IMG"!==this.drag.targetEl.tagName&&"A"!==this.drag.targetEl.tagName||(this.drag.targetEl.draggable=!1),this.on(n,this.dragType[1],this.e._onDragMove,!1),this.on(n,this.dragType[2],this.e._onDragEnd,!1)},h.prototype.onDragMove=function(t){var n,a,s,r,l,c,d;this.state.isTouch&&(this.state.isScrolling||(s=(a="touchmove"==(n=t.originalEvent||t||e.event).type)?n.targetTouches[0].pageX:n.pageX||n.clientX,r=a?n.targetTouches[0].pageY:n.pageY||n.clientY,this.drag.currentX=s-this.drag.startX,this.drag.currentY=r-this.drag.startY,this.drag.distance=this.drag.currentX-this.drag.offsetX,this.drag.distance<0?this.state.direction=this.settings.rtl?"right":"left":this.drag.distance>0&&(this.state.direction=this.settings.rtl?"left":"right"),this.settings.loop?this.op(this.drag.currentX,">",this.coordinates(this.minimum()))&&"right"===this.state.direction?this.drag.currentX-=(this.settings.center&&this.coordinates(0))-this.coordinates(this.num.oItems):this.op(this.drag.currentX,"<",this.coordinates(this.maximum()))&&"left"===this.state.direction&&(this.drag.currentX+=(this.settings.center&&this.coordinates(0))-this.coordinates(this.num.oItems)):(l=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),c=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),d=this.settings.pullDrag?this.drag.distance/5:0,this.drag.currentX=Math.max(Math.min(this.drag.currentX,l+d),c+d)),(this.drag.distance>8||this.drag.distance<-8)&&(n.preventDefault!==o?n.preventDefault():n.returnValue=!1,this.state.isSwiping=!0),this.drag.updatedX=this.drag.currentX,(this.drag.currentY>16||this.drag.currentY<-16)&&!1===this.state.isSwiping&&(this.state.isScrolling=!0,this.drag.updatedX=this.drag.start),this.animate(this.drag.updatedX)))},h.prototype.onDragEnd=function(){var t,e;if(this.state.isTouch){if("mousedown"===this.dragType[0]&&this.dom.$stage.removeClass("owl-grab"),this.trigger("dragged"),this.drag.targetEl.removeAttribute("draggable"),this.state.isTouch=!1,this.state.isScrolling=!1,this.state.isSwiping=!1,0===this.drag.distance&&!0!==this.state.inMotion)return this.state.inMotion=!1,!1;this.drag.endTime=(new Date).getTime(),t=this.drag.endTime-this.drag.startTime,(Math.abs(this.drag.distance)>3||t>300)&&this.removeClick(this.drag.targetEl),e=this.closest(this.drag.updatedX),this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(e),this.settings.pullDrag||this.drag.updatedX!==this.coordinates(e)||this.transitionEnd(),this.drag.distance=0,this.off(n,this.dragType[1],this.e._onDragMove),this.off(n,this.dragType[2],this.e._onDragEnd)}},h.prototype.removeClick=function(n){this.drag.targetEl=n,t(n).on("click.preventClick",this.e._preventClick),e.setTimeout((function(){t(n).off("click.preventClick")}),300)},h.prototype.preventClick=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),t(e.target).off("click.preventClick")},h.prototype.getTransformProperty=function(){var t;return!0!==(16===(t=(t=e.getComputedStyle(this.dom.stage,null).getPropertyValue(this.vendorName+"transform")).replace(/matrix(3d)?\(|\)/g,"").split(",")).length)?t[4]:t[12]},h.prototype.closest=function(e){var n=0;return this.settings.freeDrag||t.each(this.coordinates(),t.proxy((function(t,o){e>o-30&&e<o+30?n=t:this.op(e,"<",o)&&this.op(e,">",this.coordinates(t+1)||o-this.width.el)&&(n="left"===this.state.direction?t+1:t)}),this)),this.settings.loop||(this.op(e,">",this.coordinates(this.minimum()))?n=e=this.minimum():this.op(e,"<",this.coordinates(this.maximum()))&&(n=e=this.maximum())),n},h.prototype.animate=function(e){this.trigger("translate"),this.state.inMotion=this.speed()>0,this.support3d?this.dom.$stage.css({transform:"translate3d("+e+"px,0px, 0px)",transition:this.speed()/1e3+"s"}):this.state.isTouch?this.dom.$stage.css({left:e+"px"}):this.dom.$stage.animate({left:e},this.speed()/1e3,this.settings.fallbackEasing,t.proxy((function(){this.state.inMotion&&this.transitionEnd()}),this))},h.prototype.current=function(t){if(t===o)return this._current;if(0===this.num.oItems)return o;if(t=this.normalize(t),this._current===t)this.animate(this.coordinates(this._current));else{var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==o&&(t=this.normalize(e.data)),this._current=t,this.animate(this.coordinates(this._current)),this.updateActiveItems(),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},h.prototype.reset=function(t){this.suppress(["change","changed"]),this.speed(0),this.current(t),this.release(["change","changed"])},h.prototype.normalize=function(t,e){if(t===o||!this.dom.$items)return o;if(this.settings.loop){var n=this.dom.$items.length;t=(t%n+n)%n}else t=Math.max(this.minimum(),Math.min(this.maximum(),t));return e?this.dom.$items.eq(t).data("owl-item").index:t},h.prototype.maximum=function(){var e,n,o=this.settings;if(!o.loop&&o.center)e=this.num.oItems-1;else if(o.loop||o.center)if(o.loop||o.center)e=this.num.oItems+o.items;else{if(!o.autoWidth&&!o.merge)throw"Can not detect maximum absolute position.";revert=o.rtl?1:-1,n=this.dom.$stage.width()-this.$el.width(),t.each(this.coordinates(),(function(t,o){if(o*revert>=n)return!1;e=t+1}))}else e=this.num.oItems-o.items;return e},h.prototype.minimum=function(){return this.dom.$oItems.eq(0).data("owl-item").indexAbs},h.prototype.speed=function(t){return t!==o&&(this._speed=t),this._speed},h.prototype.coordinates=function(t){return t!==o?this._coordinates[t]:this._coordinates},h.prototype.duration=function(t,e,n){return Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(n||this.settings.smartSpeed)},h.prototype.to=function(n,o){if(this.settings.loop){var a=n-this.normalize(this.current(),!0),s=this.current(),r=this.current(),l=this.current()+a,c=r-l<0;l<this.settings.items&&!1===c?(s=this.num.items-(this.settings.items-r)-this.settings.items,this.reset(s)):l>=this.num.items-this.settings.items&&!0===c&&(s=r-this.num.oItems,this.reset(s)),e.clearTimeout(this.e._goToLoop),this.e._goToLoop=e.setTimeout(t.proxy((function(){this.speed(this.duration(this.current(),s+a,o)),this.current(s+a)}),this),30)}else this.speed(this.duration(this.current(),n,o)),this.current(n)},h.prototype.next=function(t){t=t||!1,this.to(this.normalize(this.current(),!0)+1,t)},h.prototype.prev=function(t){t=t||!1,this.to(this.normalize(this.current(),!0)-1,t)},h.prototype.transitionEnd=function(t){if(t!==o&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.dom.stage))return!1;this.state.inMotion=!1,this.trigger("translated")},h.prototype.isElWidthChanged=function(){return this.dom.$el.width()-this.settings.stagePadding!==this.width.el+this.settings.margin},h.prototype.viewport=function(){var o;if(this.options.responsiveBaseElement!==e)o=t(this.options.responsiveBaseElement).width();else if(e.innerWidth)o=e.innerWidth;else{if(!n.documentElement||!n.documentElement.clientWidth)throw"Can not detect viewport width.";o=n.documentElement.clientWidth}return o},h.prototype.insertContent=function(t){this.dom.$stage.empty(),this.fetchContent(t),this.refresh()},h.prototype.addItem=function(t,e){var n=this.createItemContainer();e=e||0,this.initializeItemContainer(n,t),0===this.dom.$oItems.length?this.dom.$stage.append(n):this.dom.$oItems.eq(e).before(n),this.refresh()},h.prototype.removeItem=function(t){this.dom.$oItems.eq(t).remove(),this.refresh()},h.prototype.addTriggerableEvents=function(){var e=t.proxy((function(e,n){return t.proxy((function(t){t.relatedTarget!==this&&(this.suppress([n]),e.apply(this,[].slice.call(arguments,1)),this.release([n]))}),this)}),this);t.each({next:this.next,prev:this.prev,to:this.to,destroy:this.destroy,refresh:this.refresh,replace:this.insertContent,add:this.addItem,remove:this.removeItem},t.proxy((function(t,n){this.dom.$el.on(t+".owl.carousel",e(n,t+".owl.carousel"))}),this))},h.prototype.watchVisibility=function(){function n(t){return t.offsetWidth>0&&t.offsetHeight>0}n(this.dom.el)||(this.dom.$el.addClass("owl-hidden"),e.clearInterval(this.e._checkVisibile),this.e._checkVisibile=e.setInterval(t.proxy((function(){n(this.dom.el)&&(this.dom.$el.removeClass("owl-hidden"),this.refresh(),e.clearInterval(this.e._checkVisibile))}),this),500))},h.prototype.preloadAutoWidthImages=function(e){var n,o,a,s;n=0,o=this,e.each((function(i,r){a=t(r),(s=new Image).onload=function(){n++,a.attr("src",s.src),a.css("opacity",1),n>=e.length&&(o.state.imagesLoaded=!0,o.init())},s.src=a.attr("src")||a.attr("data-src")||a.attr("data-src-retina")}))},h.prototype.destroy=function(){for(var i in this.dom.$el.hasClass(this.settings.themeClass)&&this.dom.$el.removeClass(this.settings.themeClass),!1!==this.settings.responsive&&this.off(e,"resize",this.e._resizer),this.transitionEndVendor&&this.off(this.dom.stage,this.transitionEndVendor,this.e._transitionEnd),this.plugins)this.plugins[i].destroy();(this.settings.mouseDrag||this.settings.touchDrag)&&(this.off(this.dom.stage,this.dragType[0],this.e._onDragStart),this.settings.mouseDrag&&this.off(n,this.dragType[3],this.e._onDragStart),this.settings.mouseDrag&&(this.dom.$stage.off("dragstart",(function(){return!1})),this.dom.stage.onselectstart=function(){})),this.dom.$el.off(".owl"),null!==this.dom.$cItems&&this.dom.$cItems.remove(),this.e=null,this.dom.$el.data("owlCarousel",null),delete this.dom.el.owlCarousel,this.dom.$stage.unwrap(),this.dom.$items.unwrap(),this.dom.$items.contents().unwrap(),this.dom=null},h.prototype.op=function(t,e,n){var o=this.settings.rtl;switch(e){case"<":return o?t>n:t<n;case">":return o?t<n:t>n;case">=":return o?t<=n:t>=n;case"<=":return o?t>=n:t<=n}},h.prototype.on=function(t,e,n,o){t.addEventListener?t.addEventListener(e,n,o):t.attachEvent&&t.attachEvent("on"+e,n)},h.prototype.off=function(t,e,n,o){t.removeEventListener?t.removeEventListener(e,n,o):t.detachEvent&&t.detachEvent("on"+e,n)},h.prototype.trigger=function(e,n,o){var a={item:{count:this.num.oItems,index:this.current()}},s=t.camelCase(t.grep(["on",e,o],(function(t){return t})).join("-").toLowerCase()),r=t.Event([e,"owl",o||"carousel"].join(".").toLowerCase(),t.extend({relatedTarget:this},a,n));return this._supress[r.type]||(t.each(this.plugins,(function(t,e){e.onTrigger&&e.onTrigger(r)})),this.dom.$el.trigger(r),"function"==typeof this.settings[s]&&this.settings[s].apply(this,r)),r},h.prototype.suppress=function(e){t.each(e,t.proxy((function(t,e){this._supress[e]=!0}),this))},h.prototype.release=function(e){t.each(e,t.proxy((function(t,e){delete this._supress[e]}),this))},h.prototype.browserSupport=function(){if(this.support3d=p(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0],this.support3d){this.transformVendor=p(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0];this.transitionEndVendor=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"][p(["transition","WebkitTransition","MozTransition","OTransition"])[1]],this.vendorName=this.transformVendor.replace(/Transform/i,""),this.vendorName=""!==this.vendorName?"-"+this.vendorName.toLowerCase()+"-":""}this.state.orientation=e.orientation},t.fn.owlCarousel=function(e){return this.each((function(){t(this).data("owlCarousel")||t(this).data("owlCarousel",new h(this,e))}))},t.fn.owlCarousel.Constructor=h}(window.Zepto||window.jQuery,window,document),function(t,e,n,o){LazyLoad=function(e){this.owl=e,this.owl.options=t.extend({},LazyLoad.Defaults,this.owl.options),this.handlers={"changed.owl.carousel":t.proxy((function(t){"items"==t.property.name&&t.property.value&&!t.property.value.is(":empty")&&this.check()}),this)},this.owl.dom.$el.on(this.handlers)},LazyLoad.Defaults={lazyLoad:!1},LazyLoad.prototype.check=function(){var t,i,n,o=e.devicePixelRatio>1?"data-src-retina":"data-src";for(i=0;i<this.owl.num.items;i++)!0===(n=this.owl.dom.$items.eq(i)).data("owl-item").current&&!1===n.data("owl-item").loaded&&((t=n.find(".owl-lazy")).attr(o)||t.attr("data-src"))&&(t.css("opacity","0"),this.preload(t,n))},LazyLoad.prototype.preload=function(e,n){var o,a,s;e.each(t.proxy((function(i,e){this.owl.trigger("load",null,"lazy"),o=t(e),a=new Image,s=o.attr("data-src"),a.onload=t.proxy((function(){n.data("owl-item")&&(n.data("owl-item").loaded=!0,o.is("img")?o.attr("src",a.src):o.css("background-image","url("+a.src+")"),o.css("opacity",1),this.owl.trigger("loaded",null,"lazy"))}),this),a.src=s}),this))},LazyLoad.prototype.destroy=function(){var t,e;for(t in this.handlers)this.owl.dom.$el.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.lazyLoad=LazyLoad}(window.Zepto||window.jQuery,window,document),function(t,e,n,o){AutoHeight=function(e){this.owl=e,this.owl.options=t.extend({},AutoHeight.Defaults,this.owl.options),this.handlers={"changed.owl.carousel":t.proxy((function(t){"position"==t.property.name&&this.owl.settings.autoHeight&&this.setHeight()}),this)},this.owl.dom.$el.on(this.handlers)},AutoHeight.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},AutoHeight.prototype.setHeight=function(){var t,n=this.owl.dom.$items.eq(this.owl.current()),o=this.owl.dom.$oStage,a=0;this.owl.dom.$oStage.hasClass(this.owl.settings.autoHeightClass)||this.owl.dom.$oStage.addClass(this.owl.settings.autoHeightClass),t=e.setInterval((function(){a+=1,n.data("owl-item").loaded?(o.height(n.height()+"px"),clearInterval(t)):500===a&&clearInterval(t)}),100)},AutoHeight.prototype.destroy=function(){var t,e;for(t in this.handlers)this.owl.dom.$el.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.autoHeight=AutoHeight}(window.Zepto||window.jQuery,window,document),function(t,e,n,o){Video=function(e){this.owl=e,this.owl.options=t.extend({},Video.Defaults,this.owl.options),this.handlers={"resize.owl.carousel":t.proxy((function(t){this.owl.settings.video&&!this.isInFullScreen()&&t.preventDefault()}),this),"refresh.owl.carousel changed.owl.carousel":t.proxy((function(t){this.owl.state.videoPlay&&this.stopVideo()}),this),"refresh.owl.carousel refreshed.owl.carousel":t.proxy((function(t){if(!this.owl.settings.video)return!1;this.refreshing="refresh"==t.type}),this),"changed.owl.carousel":t.proxy((function(t){this.refreshing&&"items"==t.property.name&&t.property.value&&!t.property.value.is(":empty")&&this.checkVideoLinks()}),this)},this.owl.dom.$el.on(this.handlers),this.owl.dom.$el.on("click.owl.video",".owl-video-play-icon",t.proxy((function(t){this.playVideo(t)}),this))},Video.Defaults={video:!1,videoHeight:!1,videoWidth:!1},Video.prototype.checkVideoLinks=function(){var t,e,i;for(i=0;i<this.owl.num.items;i++)(e=this.owl.dom.$items.eq(i)).data("owl-item").hasVideo||(t=e.find(".owl-video")).length&&(this.owl.state.hasVideos=!0,this.owl.dom.$items.eq(i).data("owl-item").hasVideo=!0,t.css("display","none"),this.getVideoInfo(t,e))},Video.prototype.getVideoInfo=function(t,e){var n,o,a,s,r=t.data("vimeo-id"),l=t.data("youtube-id"),c=t.data("width")||this.owl.settings.videoWidth,d=t.data("height")||this.owl.settings.videoHeight,u=t.attr("href");if(r)o="vimeo",a=r;else if(l)o="youtube",a=l;else{if(!u)throw new Error("Missing video link.");(a=u.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu")>-1?o="youtube":a[3].indexOf("vimeo")>-1&&(o="vimeo"),a=a[6]}e.data("owl-item").videoType=o,e.data("owl-item").videoId=a,e.data("owl-item").videoWidth=c,e.data("owl-item").videoHeight=d,n={type:o,id:a},s=c&&d?'style="width:'+c+"px;height:"+d+'px;"':"",t.wrap('<div class="owl-video-wrapper"'+s+"></div>"),this.createVideoTn(t,n)},Video.prototype.createVideoTn=function(e,n){var o,a=e.find("img"),s="src",r="",l=this.owl;if(this.owl.settings.lazyLoad&&(s="data-src",r="owl-lazy"),a.length)return c(a.attr(s)),a.remove(),!1;function c(t){'<div class="owl-video-play-icon"></div>',o=l.settings.lazyLoad?'<div class="owl-video-tn '+r+'" '+s+'="'+t+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+t+')"></div>',e.after(o),e.after('<div class="owl-video-play-icon"></div>')}"youtube"===n.type?c("https://img.youtube.com/vi/"+n.id+"/hqdefault.jpg"):"vimeo"===n.type&&t.ajax({type:"GET",url:"https://vimeo.com/api/v2/video/"+n.id+".json",jsonp:"callback",success:function(t){c(t[0].thumbnail_large),l.settings.loop&&l.updateActiveItems()}})},Video.prototype.stopVideo=function(){this.owl.trigger("stop",null,"video");var t=this.owl.dom.$items.eq(this.owl.state.videoPlayIndex);t.find(".owl-video-frame").remove(),t.removeClass("owl-video-playing"),this.owl.state.videoPlay=!1},Video.prototype.playVideo=function(e){this.owl.trigger("play",null,"video"),this.owl.state.videoPlay&&this.stopVideo();var n,o,a,s=t(e.target||e.srcElement),r=s.closest("."+this.owl.settings.itemClass);a=r.data("owl-item").videoType,id=r.data("owl-item").videoId,width=r.data("owl-item").videoWidth||Math.floor(r.data("owl-item").width-this.owl.settings.margin),height=r.data("owl-item").videoHeight||this.owl.dom.$stage.height(),"youtube"===a?n='<iframe width="'+width+'" height="'+height+'" src="https://www.youtube.com/embed/'+id+"?autoplay=1&v="+id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===a&&(n='<iframe src="https://player.vimeo.com/video/'+id+'?autoplay=1" width="'+width+'" height="'+height+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'),r.addClass("owl-video-playing"),this.owl.state.videoPlay=!0,this.owl.state.videoPlayIndex=r.data("owl-item").indexAbs,o=t('<div style="height:'+height+"px; width:"+width+'px" class="owl-video-frame">'+n+"</div>"),s.after(o)},Video.prototype.isInFullScreen=function(){var o=n.fullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement;return o&&t(o.parentNode).hasClass("owl-video-frame")&&(this.owl.speed(0),this.owl.state.isFullScreen=!0),!(o&&this.owl.state.isFullScreen&&this.owl.state.videoPlay)&&(this.owl.state.isFullScreen?(this.owl.state.isFullScreen=!1,!1):!this.owl.state.videoPlay||this.owl.state.orientation===e.orientation||(this.owl.state.orientation=e.orientation,!1))},Video.prototype.destroy=function(){var t,e;for(t in this.owl.dom.$el.off("click.owl.video"),this.handlers)this.owl.dom.$el.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.video=Video}(window.Zepto||window.jQuery,window,document),function(t,e,n,o){Animate=function(e){this.core=e,this.core.options=t.extend({},Animate.Defaults,this.core.options),this.swapping=!0,this.previous=o,this.next=o,this.handlers={"change.owl.carousel":t.proxy((function(t){"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)}),this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":t.proxy((function(t){this.swapping="translated"==t.type}),this),"translate.owl.carousel":t.proxy((function(t){this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()}),this)},this.core.dom.$el.on(this.handlers)},Animate.Defaults={animateOut:!1,animateIn:!1},Animate.prototype.swap=function(){if(1===this.core.settings.items&&this.core.support3d){this.core.speed(0);var e,n=t.proxy(this.clear,this),o=this.core.dom.$items.eq(this.previous),a=this.core.dom.$items.eq(this.next),s=this.core.settings.animateIn,r=this.core.settings.animateOut;this.core.current()!==this.previous&&(r&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),o.css({left:e+"px"}).addClass("animated owl-animated-out").addClass(r).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",n)),s&&a.addClass("animated owl-animated-in").addClass(s).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",n))}},Animate.prototype.clear=function(e){t(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.transitionEnd()},Animate.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.dom.$el.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Animate=Animate}(window.Zepto||window.jQuery,window,document),function(t,e,n,o){Autoplay=function(e){this.core=e,this.core.options=t.extend({},Autoplay.Defaults,this.core.options),this.handlers={"translated.owl.carousel refreshed.owl.carousel":t.proxy((function(){this.autoplay()}),this),"play.owl.autoplay":t.proxy((function(t,e,n){this.play(e,n)}),this),"stop.owl.autoplay":t.proxy((function(){this.stop()}),this),"mouseover.owl.autoplay":t.proxy((function(){this.core.settings.autoplayHoverPause&&this.pause()}),this),"mouseleave.owl.autoplay":t.proxy((function(){this.core.settings.autoplayHoverPause&&this.autoplay()}),this)},this.core.dom.$el.on(this.handlers)},Autoplay.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},Autoplay.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoPlay?(e.clearInterval(this.interval),this.interval=e.setInterval(t.proxy((function(){this.play()}),this),this.core.settings.autoplayTimeout)):e.clearInterval(this.interval)},Autoplay.prototype.play=function(t,o){!0!==n.hidden&&(this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion||(!1!==this.core.settings.autoplay?this.core.next(this.core.settings.autoplaySpeed):e.clearInterval(this.interval)))},Autoplay.prototype.stop=function(){e.clearInterval(this.interval)},Autoplay.prototype.pause=function(){e.clearInterval(this.interval)},Autoplay.prototype.destroy=function(){var t,n;for(t in e.clearInterval(this.interval),this.handlers)this.core.dom.$el.off(t,this.handlers[t]);for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=Autoplay}(window.Zepto||window.jQuery,window,document),function(t,e,n,o){"use strict";var a=function(e){this.core=e,this.initialized=!1,this.pages=[],this.controls={},this.template=null,this.$element=this.core.dom.$el,this.overrides={next:this.core.next,prev:this.core.prev,to:this.core.to},this.handlers={"changed.owl.carousel":t.proxy((function(e){"items"==e.property.name&&(this.initialized||(this.initialize(),this.initialized=!0),this.update(),this.draw()),this.filling&&(e.property.value.data("owl-item").dot=t(":first-child",e.property.value).find("[data-dot]").andSelf().data("dot"))}),this),"change.owl.carousel":t.proxy((function(t){if("position"==t.property.name&&!this.core.state.revert&&!this.core.settings.loop&&this.core.settings.navRewind){var e=this.core.current(),n=this.core.maximum(),o=this.core.minimum();t.data=t.property.value>n?e>=n?o:n:t.property.value<o?n:t.property.value}this.filling=this.core.settings.dotsData&&"item"==t.property.name&&t.property.value&&t.property.value.is(":empty")}),this),"refreshed.owl.carousel":t.proxy((function(){this.initialized&&(this.update(),this.draw())}),this)},this.core.options=t.extend({},a.Defaults,this.core.options),this.$element.on(this.handlers)};a.Defaults={nav:!1,navRewind:!0,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotData:!1,dotsSpeed:!1,dotsContainer:!1,controlsClass:"owl-controls"},a.prototype.initialize=function(){var e,n,o=this.core.settings;for(n in o.dotsData||(this.template=t("<div>").addClass(o.dotClass).append(t("<span>")).prop("outerHTML")),o.navContainer&&o.dotsContainer||(this.controls.$container=t("<div>").addClass(o.controlsClass).appendTo(this.$element)),this.controls.$indicators=o.dotsContainer?t(o.dotsContainer):t("<div>").hide().addClass(o.dotsClass).appendTo(this.controls.$container),this.controls.$indicators.on(this.core.dragType[2],"div",t.proxy((function(e){var n=t(e.target).parent().is(this.controls.$indicators)?t(e.target).index():t(e.target).parent().index();e.preventDefault(),this.to(n,o.dotsSpeed)}),this)),e=o.navContainer?t(o.navContainer):t("<div>").addClass(o.navContainerClass).prependTo(this.controls.$container),this.controls.$next=t("<"+o.navElement+">"),this.controls.$previous=this.controls.$next.clone(),this.controls.$previous.addClass(o.navClass[0]).html(o.navText[0]).hide().prependTo(e).on(this.core.dragType[2],t.proxy((function(t){this.prev()}),this)),this.controls.$next.addClass(o.navClass[1]).html(o.navText[1]).hide().appendTo(e).on(this.core.dragType[2],t.proxy((function(t){this.next()}),this)),this.overrides)this.core[n]=t.proxy(this[n],this)},a.prototype.destroy=function(){var t,e,n,o;for(t in this.handlers)this.$element.off(t,this.handlers[t]);for(e in this.controls)this.controls[e].remove();for(o in this.overides)this.core[o]=this.overrides[o];for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},a.prototype.update=function(){var i,t,e=this.core.settings,n=this.core.num.cItems/2,o=this.core.num.items-n,a=e.center||e.autoWidth||e.dotData?1:e.dotsEach||e.items;if("page"!==e.slideBy&&(e.slideBy=Math.min(e.slideBy,e.items)),e.dots)for(this.pages=[],i=n,t=0,0;i<o;i++)(t>=a||0===t)&&(this.pages.push({start:i-n,end:i-n+a-1}),t=0),t+=this.core.num.merged[i]},a.prototype.draw=function(){var e,i,n="",o=this.core.settings,a=this.core.dom.$oItems,s=this.core.normalize(this.core.current(),!0);if(!o.nav||o.loop||o.navRewind||(this.controls.$previous.toggleClass("disabled",s<=0),this.controls.$next.toggleClass("disabled",s>=this.core.maximum())),this.controls.$previous.toggle(o.nav),this.controls.$next.toggle(o.nav),o.dots){if((e=this.pages.length-this.controls.$indicators.children().length)>0){for(i=0;i<Math.abs(e);i++)n+=o.dotData?a.eq(i).data("owl-item").dot:this.template;this.controls.$indicators.append(n)}else e<0&&this.controls.$indicators.children().slice(e).remove();this.controls.$indicators.find(".active").removeClass("active"),this.controls.$indicators.children().eq(t.inArray(this.current(),this.pages)).addClass("active")}this.controls.$indicators.toggle(o.dots)},a.prototype.onTrigger=function(e){var n=this.core.settings;e.page={index:t.inArray(this.current(),this.pages),count:this.pages.length,size:n.center||n.autoWidth||n.dotData?1:n.dotsEach||n.items}},a.prototype.current=function(){var e=this.core.normalize(this.core.current(),!0);return t.grep(this.pages,(function(t){return t.start<=e&&t.end>=e})).pop()},a.prototype.getPosition=function(e){var n,o,a=this.core.settings;return"page"==a.slideBy?(n=t.inArray(this.current(),this.pages),o=this.pages.length,e?++n:--n,n=this.pages[(n%o+o)%o].start):(n=this.core.normalize(this.core.current(),!0),o=this.core.num.oItems,e?n+=a.slideBy:n-=a.slideBy),n},a.prototype.next=function(e){t.proxy(this.overrides.to,this.core)(this.getPosition(!0),e)},a.prototype.prev=function(e){t.proxy(this.overrides.to,this.core)(this.getPosition(!1),e)},a.prototype.to=function(e,n,o){var a;o?t.proxy(this.overrides.to,this.core)(e,n):(a=this.pages.length,t.proxy(this.overrides.to,this.core)(this.pages[(e%a+a)%a].start,n))},t.fn.owlCarousel.Constructor.Plugins.Navigation=a}(window.Zepto||window.jQuery,window,document),window.screenfull=function(){"use strict";var t=document,e=function(){for(var e,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"]],i=0,o=n.length,a={};i<o;i++)if((e=n[i])&&e[1]in t){for(i=0;i<e.length;i++)a[n[0][i]]=e[i];return a}return!1}(),n={change:e.fullscreenchange,error:e.fullscreenerror},o={request:function(n){return new Promise(function(o,a){var s=function(){this.off("change",s),o()}.bind(this);this.on("change",s);var r=(n=n||t.documentElement)[e.requestFullscreen]();r instanceof Promise&&r.then(s).catch(a)}.bind(this))},exit:function(){return new Promise(function(n,o){if(this.isFullscreen){var a=function(){this.off("change",a),n()}.bind(this);this.on("change",a);var s=t[e.exitFullscreen]();s instanceof Promise&&s.then(a).catch(o)}else n()}.bind(this))},toggle:function(t){return this.isFullscreen?this.exit():this.request(t)},onchange:function(t){this.on("change",t)},onerror:function(t){this.on("error",t)},on:function(e,o){var a=n[e];a&&t.addEventListener(a,o,!1)},off:function(e,o){var a=n[e];a&&t.removeEventListener(a,o,!1)},raw:e};return e?(Object.defineProperties(o,{isFullscreen:{get:function(){return Boolean(t[e.fullscreenElement])}},element:{enumerable:!0,get:function(){return document[e.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(t[e.fullscreenEnabled])}}}),o):{isEnabled:!1}}(),function(t,e){"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(t,e):this[t]=e()}("vein",(function(){var t=function(){},e=function(t,e,n){var o,a,s=[],r=e[document.all?"rules":"cssRules"],l=t.replace(/\s/g,"");for(o=0,a=r.length;o<a;o++)(r[o].selectorText===t||4===r[o].type&&r[o].cssText.replace(/\s/g,"").substring(0,l.length)==l)&&(null===n?e.deleteRule(o):s.push(r[o]));return s},n=function(t){for(property in cssArray=[],t)t.hasOwnProperty(property)&&cssArray.push(property+": "+t[property]+";");return cssText=cssArray.join(""),cssText};t.getStylesheet=function(){var t=this;return t.element&&document.getElementById("vein")||(t.element=document.createElement("style"),t.element.setAttribute("type","text/css"),t.element.setAttribute("id","vein"),document.getElementsByTagName("html")[0].appendChild(t.element),t.stylesheet=t.element.sheet),t.stylesheet};var o=function(t){return t[document.all?"rules":"cssRules"]},a=function(t,e,n){var a=o(n);n.insertRule?n.insertRule(t+"{"+e+"}",a.length):n.addRule(t,e,a.length)};return t.inject=function(t,s,r){r=function(t){t=t||{};for(var i=1;i<arguments.length;i++)if(arguments[i])for(var e in arguments[i])arguments[i].hasOwnProperty(e)&&(t[e]=arguments[i][e]);return t}({},r);var l,c,d,u,h,p,f,m,g,v,y=this,b=r.stylesheet||y.getStylesheet();o(b);for("string"==typeof t&&(t=[t]),l=0,c=t.length;l<c;l++)if("object"==typeof t[l]&&b.insertRule)for(d in t[l])if(0===(u=e(d,b,s)).length)for(h=n(s),g=0,v=t[l][d].length;g<v;g++)a(d,t[l][d][g]+"{"+h+"}",b);else for(f=0,m=u.length;f<m;f++)y.inject(t[l][d],s,{stylesheet:u[f]});else{if(u=e(t[l],b,s),null===s)return;if(0===u.length)h=n(s),a(t[l],h,b);else for(f=0,m=u.length;f<m;f++)for(p in s)s.hasOwnProperty(p)&&(u[f].style.setProperty?u[f].style.setProperty(p,s[p],""):u[f].style.setAttribute(p,s[p],""))}return y},t})),function(t,e,n,o){"use strict";!function(e){for(var i=e.length,n=t("head");i--;)0===n.has("."+e[i]).length&&n.append('<meta class="'+e[i]+'" />')}(["foundation-mq-small","foundation-mq-medium","foundation-mq-large","foundation-mq-xlarge","foundation-mq-xxlarge","foundation-data-attribute-namespace"]),t((function(){"undefined"!=typeof FastClick&&void 0!==n.body&&FastClick.attach(n.body)}));var a,s,r,l,c,d,u=function(e,o){if("string"==typeof e){if(o){var a;if(o.jquery){if(!(a=o[0]))return o}else a=o;return t(a.querySelectorAll(e))}return t(n.querySelectorAll(e))}return t(e,o)},h=function(t){var e=[];return t||e.push("data"),this.namespace.length>0&&e.push(this.namespace),e.push(this.name),e.join("-")},p=function(t){for(var e=t.split("-"),i=e.length,n=[];i--;)0!==i?n.push(e[i]):this.namespace.length>0?n.push(this.namespace,e[i]):n.push(e[i]);return n.reverse().join("-")},f=function(e,n){var o=this,a=!u(this).data(this.attr_name(!0));if(u(this.scope).is("["+this.attr_name()+"]")?(u(this.scope).data(this.attr_name(!0)+"-init",t.extend({},this.settings,n||e,this.data_options(u(this.scope)))),a&&this.events(this.scope)):u("["+this.attr_name()+"]",this.scope).each((function(){var a=!u(this).data(o.attr_name(!0)+"-init");u(this).data(o.attr_name(!0)+"-init",t.extend({},o.settings,n||e,o.data_options(u(this)))),a&&o.events(this)})),"string"==typeof e)return this[e].call(this,n)};e.matchMedia=e.matchMedia||(r=(a=n).documentElement,l=r.firstElementChild||r.firstChild,c=a.createElement("body"),(d=a.createElement("div")).id="mq-test-1",d.style.cssText="position:absolute;top:-100em",c.style.background="none",c.appendChild(d),function(t){return d.innerHTML='&shy;<style media="'+t+'"> #mq-test-1 { width: 42px; }</style>',r.insertBefore(c,l),s=42===d.offsetWidth,r.removeChild(c),{matches:s,media:t}}),function(t){for(var n,o=0,a=["webkit","moz"],s=e.requestAnimationFrame,r=e.cancelAnimationFrame,l=void 0!==jQuery.fx;o<a.length&&!s;o++)s=e[a[o]+"RequestAnimationFrame"],r=r||e[a[o]+"CancelAnimationFrame"]||e[a[o]+"CancelRequestAnimationFrame"];function c(){n&&(s(c),l&&jQuery.fx.tick())}s?(e.requestAnimationFrame=s,e.cancelAnimationFrame=r,l&&(jQuery.fx.timer=function(t){t()&&jQuery.timers.push(t)&&!n&&(n=!0,c())},jQuery.fx.stop=function(){n=!1})):(e.requestAnimationFrame=function(t){var n=(new Date).getTime(),a=Math.max(0,16-(n-o)),s=e.setTimeout((function(){t(n+a)}),a);return o=n+a,s},e.cancelAnimationFrame=function(t){clearTimeout(t)})}(jQuery),e.Foundation={name:"Foundation",version:"5.4.3",media_queries:{small:u(".foundation-mq-small").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),medium:u(".foundation-mq-medium").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),large:u(".foundation-mq-large").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),xlarge:u(".foundation-mq-xlarge").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),xxlarge:u(".foundation-mq-xxlarge").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,"")},stylesheet:t("<style></style>").appendTo("head")[0].sheet,global:{namespace:o},init:function(t,n,o,a,s){var r=[t,o,a,s],l=[];if(this.rtl=/rtl/i.test(u("html").attr("dir")),this.scope=t||this.scope,this.set_namespace(),n&&"string"==typeof n&&!/reflow/i.test(n))this.libs.hasOwnProperty(n)&&l.push(this.init_lib(n,r));else for(var c in this.libs)l.push(this.init_lib(c,n));return u(e).on("load",(function(){u(e).trigger("resize.fndtn.clearing").trigger("resize.fndtn.dropdown").trigger("resize.fndtn.equalizer").trigger("resize.fndtn.interchange").trigger("resize.fndtn.joyride").trigger("resize.fndtn.magellan").trigger("resize.fndtn.topbar").trigger("resize.fndtn.slider")})),t},init_lib:function(e,n){return this.libs.hasOwnProperty(e)?(this.patch(this.libs[e]),n&&n.hasOwnProperty(e)?(void 0!==this.libs[e].settings?t.extend(!0,this.libs[e].settings,n[e]):void 0!==this.libs[e].defaults&&t.extend(!0,this.libs[e].defaults,n[e]),this.libs[e].init.apply(this.libs[e],[this.scope,n[e]])):(n=n instanceof Array?n:new Array(n),this.libs[e].init.apply(this.libs[e],n))):function(){}},patch:function(t){t.scope=this.scope,t.namespace=this.global.namespace,t.rtl=this.rtl,t.data_options=this.utils.data_options,t.attr_name=h,t.add_namespace=p,t.bindings=f,t.S=this.utils.S},inherit:function(t,e){for(var n=e.split(" "),i=n.length;i--;)this.utils.hasOwnProperty(n[i])&&(t[n[i]]=this.utils[n[i]])},set_namespace:function(){var e=this.global.namespace===o?t(".foundation-data-attribute-namespace").css("font-family"):this.global.namespace;this.global.namespace=e===o||/false/i.test(e)?"":e},libs:{},utils:{S:u,throttle:function(t,e){var n=null;return function(){var o=this,a=arguments;null==n&&(n=setTimeout((function(){t.apply(o,a),n=null}),e))}},debounce:function(t,e,n){var o,a;return function(){var s=this,r=arguments,l=n&&!o;return clearTimeout(o),o=setTimeout((function(){o=null,n||(a=t.apply(s,r))}),e),l&&(a=t.apply(s,r)),a}},data_options:function(t,e){e=e||"options";var n,o,a,s,r={},l=function(t){var n=Foundation.global.namespace;return n.length>0?t.data(n+"-"+e):t.data(e)}(t);if("object"==typeof l)return l;function c(t){return"string"==typeof t?t.trim():t}for(n=(a=(l||":").split(";")).length;n--;)o=[(o=a[n].split(":"))[0],o.slice(1).join(":")],/true/i.test(o[1])&&(o[1]=!0),/false/i.test(o[1])&&(o[1]=!1),s=o[1],isNaN(s-0)||null===s||""===s||!1===s||!0===s||(-1===o[1].indexOf(".")?o[1]=parseInt(o[1],10):o[1]=parseFloat(o[1])),2===o.length&&o[0].length>0&&(r[c(o[0])]=c(o[1]));return r},register_media:function(e,n){var a;Foundation.media_queries[e]===o&&(t("head").append('<meta class="'+n+'"/>'),Foundation.media_queries[e]=(("string"==typeof(a=t("."+n).css("font-family"))||a instanceof String)&&(a=a.replace(/^['\\/"]+|(;\s?})+|['\\/"]+$/g,"")),a))},add_custom_rule:function(t,e){e===o&&Foundation.stylesheet?Foundation.stylesheet.insertRule(t,Foundation.stylesheet.cssRules.length):Foundation.media_queries[e]!==o&&Foundation.stylesheet.insertRule("@media "+Foundation.media_queries[e]+"{ "+t+" }")},image_loaded:function(t,e){var n=this,o=t.length;0===o&&e(t),t.each((function(){!function(t,e){function n(){e(t[0])}t.attr("src")?t[0].complete||4===t[0].readyState?n():function(){if(this.one("load",n),/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var t=this.attr("src"),e=t.match(/\?/)?"&":"?";e+="random="+(new Date).getTime(),this.attr("src",t+e)}}.call(t):n()}(n.S(this),(function(){0===(o-=1)&&e(t)}))}))},random_str:function(){return this.fidx||(this.fidx=0),this.prefix=this.prefix||[this.name||"F",(+new Date).toString(36)].join("-"),this.prefix+(this.fidx++).toString(36)}}},t.fn.foundation=function(){var t=Array.prototype.slice.call(arguments,0);return this.each((function(){return Foundation.init.apply(Foundation,[this].concat(t)),this}))}}(jQuery,window,window.document),function(t,e,n,o){"use strict";Foundation.libs.abide={name:"abide",version:"5.4.3",settings:{live_validate:!0,focus_on_invalid:!0,error_labels:!0,timeout:1e3,patterns:{alpha:/^[a-zA-Z]+$/,alpha_numeric:/^[a-zA-Z0-9]+$/,integer:/^[-+]?\d+$/,number:/^[-+]?\d*(?:[\.\,]\d+)?$/,card:/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/,cvv:/^([0-9]){3,4}$/,email:/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/,url:/^(https?|ftp|file|ssh):\/\/(((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/,domain:/^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}$/,datetime:/^([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))$/,date:/(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))$/,time:/^(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}$/,dateISO:/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/,month_day_year:/^(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.]\d{4}$/,day_month_year:/^(0[1-9]|[12][0-9]|3[01])[- \/.](0[1-9]|1[012])[- \/.]\d{4}$/,color:/^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/},validators:{equalTo:function(t,e,o){return n.getElementById(t.getAttribute(this.add_namespace("data-equalto"))).value===t.value}}},timer:null,init:function(t,e,n){this.bindings(e,n)},events:function(e){var n=this,o=n.S(e).attr("novalidate","novalidate"),a=o.data(this.attr_name(!0)+"-init")||{};this.invalid_attr=this.add_namespace("data-invalid"),o.off(".abide").on("submit.fndtn.abide validate.fndtn.abide",(function(t){var e=/ajax/i.test(n.S(this).attr(n.attr_name()));return n.validate(n.S(this).find("input, textarea, select").get(),t,e)})).on("reset",(function(){return n.reset(t(this))})).find("input, textarea, select").off(".abide").on("blur.fndtn.abide change.fndtn.abide",(function(t){n.validate([this],t)})).on("keydown.fndtn.abide",(function(t){!0===a.live_validate&&(clearTimeout(n.timer),n.timer=setTimeout(function(){n.validate([this],t)}.bind(this),a.timeout))}))},reset:function(e){e.removeAttr(this.invalid_attr),t(this.invalid_attr,e).removeAttr(this.invalid_attr),t(".error",e).not("small").removeClass("error")},validate:function(t,e,n){for(var o=this.parse_patterns(t),a=o.length,s=this.S(t[0]).closest("form"),r=/submit/.test(e.type),i=0;i<a;i++)if(!o[i]&&(r||n))return this.settings.focus_on_invalid&&t[i].focus(),s.trigger("invalid"),this.S(t[i]).closest("form").attr(this.invalid_attr,""),!1;return(r||n)&&s.trigger("valid"),s.removeAttr(this.invalid_attr),!n},parse_patterns:function(t){for(var i=t.length,e=[];i--;)e.push(this.pattern(t[i]));return this.check_validation_and_apply_styles(e)},pattern:function(t){var e=t.getAttribute("type"),n="string"==typeof t.getAttribute("required"),o=t.getAttribute("pattern")||"";return this.settings.patterns.hasOwnProperty(o)&&o.length>0?[t,this.settings.patterns[o],n]:o.length>0?[t,new RegExp(o),n]:this.settings.patterns.hasOwnProperty(e)?[t,this.settings.patterns[e],n]:[t,o=/.*/,n]},check_validation_and_apply_styles:function(e){var i=e.length,n=[];for(this.S(e[0][0]).closest("[data-"+this.attr_name(!0)+"]").data(this.attr_name(!0)+"-init");i--;){var o,a,s=e[i][0],r=e[i][2],l=s.value.trim(),c=this.S(s).parent(),d=s.getAttribute(this.add_namespace("data-abide-validator")),u="radio"===s.type,h="checkbox"===s.type,p=this.S('label[for="'+s.getAttribute("id")+'"]'),f=!r||s.value.length>0,m=[];if(s.getAttribute(this.add_namespace("data-equalto"))&&(d="equalTo"),o=c.is("label")?c.parent():c,d&&(a=this.settings.validators[d].apply(this,[s,r,o]),m.push(a)),u&&r)m.push(this.valid_radio(s,r));else if(h&&r)m.push(this.valid_checkbox(s,r));else{if(e[i][1].test(l)&&f||!r&&s.value.length<1||t(s).attr("disabled")?m.push(!0):m.push(!1),m=[m.every((function(t){return t}))],m[0])this.S(s).removeAttr(this.invalid_attr),s.setAttribute("aria-invalid","false"),s.removeAttribute("aria-describedby"),o.removeClass("error"),p.length>0&&this.settings.error_labels&&p.removeClass("error").removeAttr("role"),t(s).triggerHandler("valid");else{this.S(s).attr(this.invalid_attr,""),s.setAttribute("aria-invalid","true");var g=o.find("small.error, span.error"),v=g.length>0?g[0].id:"";v.length>0&&s.setAttribute("aria-describedby",v),o.addClass("error"),p.length>0&&this.settings.error_labels&&p.addClass("error").attr("role","alert"),t(s).triggerHandler("invalid")}n.push(m[0])}}return n=[n.every((function(t){return t}))],n},valid_checkbox:function(t,e){var n=(t=this.S(t)).is(":checked")||!e;return n?t.removeAttr(this.invalid_attr).parent().removeClass("error"):t.attr(this.invalid_attr,"").parent().addClass("error"),n},valid_radio:function(t,e){for(var n=t.getAttribute("name"),o=this.S(t).closest("[data-"+this.attr_name(!0)+"]").find("[name='"+n+"']"),a=o.length,s=!1,i=0;i<a;i++)o[i].checked&&(s=!0);for(i=0;i<a;i++)s?this.S(o[i]).removeAttr(this.invalid_attr).parent().removeClass("error"):this.S(o[i]).attr(this.invalid_attr,"").parent().addClass("error");return s},valid_equal:function(t,e,o){var a=n.getElementById(t.getAttribute(this.add_namespace("data-equalto"))).value===t.value;return a?(this.S(t).removeAttr(this.invalid_attr),o.removeClass("error"),label.length>0&&settings.error_labels&&label.removeClass("error")):(this.S(t).attr(this.invalid_attr,""),o.addClass("error"),label.length>0&&settings.error_labels&&label.addClass("error")),a},valid_oneof:function(t,e,n,o){t=this.S(t);var a=this.S("["+this.add_namespace("data-oneof")+"]"),s=a.filter(":checked").length>0;if(s?t.removeAttr(this.invalid_attr).parent().removeClass("error"):t.attr(this.invalid_attr,"").parent().addClass("error"),!o){var r=this;a.each((function(){r.valid_oneof.call(r,this,null,null,!0)}))}return s}}}(jQuery,window,window.document),function(t,e,n,o){"use strict";Foundation.libs.alert={name:"alert",version:"5.4.3",settings:{callback:function(){}},init:function(t,e,n){this.bindings(e,n)},events:function(){var e=this,n=this.S;t(this.scope).off(".alert").on("click.fndtn.alert","["+this.attr_name()+"] .close",(function(t){var o=n(this).closest("["+e.attr_name()+"]"),a=o.data(e.attr_name(!0)+"-init")||e.settings;t.preventDefault(),j.csstransitions?(o.addClass("alert-close"),o.on("transitionend webkitTransitionEnd oTransitionEnd",(function(t){n(this).trigger("close").trigger("close.fndtn.alert").remove(),a.callback()}))):o.fadeOut(300,(function(){n(this).trigger("close").trigger("close.fndtn.alert").remove(),a.callback()}))}))},reflow:function(){}}}(jQuery,window,window.document),function(t,e,n,o){"use strict";function a(t){var e=/fade/i.test(t),n=/pop/i.test(t);return{animate:e||n,pop:n,fade:e}}Foundation.libs.reveal={name:"reveal",version:"5.4.3",locked:!1,settings:{animation:"fadeAndPop",animation_speed:250,close_on_background_click:!0,close_on_esc:!0,dismiss_modal_class:"close-reveal-modal",bg_class:"reveal-modal-bg",root_element:"body",open:function(){},opened:function(){},close:function(){},closed:function(){},bg:t(".reveal-modal-bg"),css:{open:{opacity:0,visibility:"visible",display:"block"},close:{opacity:1,visibility:"hidden",display:"none"}}},init:function(e,n,o){t.extend(!0,this.settings,n,o),this.bindings(n,o)},events:function(t){var e=this,o=e.S;return o(this.scope).off(".reveal").on("click.fndtn.reveal","["+this.add_namespace("data-reveal-id")+"]:not([disabled])",(function(t){if(t.preventDefault(),!e.locked){var n=o(this),a=n.data(e.data_attr("reveal-ajax"));if(e.locked=!0,void 0===a)e.open.call(e,n);else{var s=!0===a?n.attr("href"):a;e.open.call(e,n,{url:s})}}})),o(n).on("click.fndtn.reveal",this.close_targets(),(function(t){if(t.preventDefault(),!e.locked){var n=o("["+e.attr_name()+"].open").data(e.attr_name(!0)+"-init"),a=o(t.target)[0]===o("."+n.bg_class)[0];if(a){if(!n.close_on_background_click)return;t.stopPropagation()}e.locked=!0,e.close.call(e,a?o("["+e.attr_name()+"].open"):o(this).closest("["+e.attr_name()+"]"))}})),o("["+e.attr_name()+"]",this.scope).length>0?o(this.scope).on("open.fndtn.reveal",this.settings.open).on("opened.fndtn.reveal",this.settings.opened).on("opened.fndtn.reveal",this.open_video).on("close.fndtn.reveal",this.settings.close).on("closed.fndtn.reveal",this.settings.closed).on("closed.fndtn.reveal",this.close_video):o(this.scope).on("open.fndtn.reveal","["+e.attr_name()+"]",this.settings.open).on("opened.fndtn.reveal","["+e.attr_name()+"]",this.settings.opened).on("opened.fndtn.reveal","["+e.attr_name()+"]",this.open_video).on("close.fndtn.reveal","["+e.attr_name()+"]",this.settings.close).on("closed.fndtn.reveal","["+e.attr_name()+"]",this.settings.closed).on("closed.fndtn.reveal","["+e.attr_name()+"]",this.close_video),!0},key_up_on:function(t){var e=this;return e.S("body").off("keyup.fndtn.reveal").on("keyup.fndtn.reveal",(function(t){var n=e.S("["+e.attr_name()+"].open"),o=n.data(e.attr_name(!0)+"-init")||e.settings;o&&27===t.which&&o.close_on_esc&&!e.locked&&e.close.call(e,n)})),!0},key_up_off:function(t){return this.S("body").off("keyup.fndtn.reveal"),!0},open:function(n,o){var a,s=this;n?n[0]&&n[0].nodeName?a=s.S("#"+n.data(s.data_attr("reveal-id"))).first():(a=s.S(this.scope),o=n):a=s.S(this.scope);var r=a.data(s.attr_name(!0)+"-init");if(r=r||this.settings,a.hasClass("open")&&n.attr("data-reveal-id")==a.attr("id"))return s.close(a);if(!a.hasClass("open")){var l=s.S("["+s.attr_name()+"].open");if(void 0===a.data("css-top")&&a.data("css-top",parseInt(a.css("top"),10)).data("offset",this.cache_offset(a)),this.key_up_on(a),a.trigger("open").trigger("open.fndtn.reveal"),l.length<1&&this.toggle_bg(a,!0),"string"==typeof o&&(o={url:o}),void 0!==o&&o.url){var c=void 0!==o.success?o.success:null;t.extend(o,{success:function(e,n,o){t.isFunction(c)&&c(e,n,o),a.html(e),s.S(a).foundation("section","reflow"),s.S(a).children().foundation(),l.length>0&&s.hide(l,r.css.close),s.show(a,r.css.open)}}),t.ajax(o)}else l.length>0&&this.hide(l,r.css.close),this.show(a,r.css.open)}s.S(e).trigger("resize")},close:function(t){t=t&&t.length?t:this.S(this.scope);var e=this.S("["+this.attr_name()+"].open"),n=t.data(this.attr_name(!0)+"-init")||this.settings;e.length>0&&(this.locked=!0,this.key_up_off(t),t.trigger("close").trigger("close.fndtn.reveal"),this.toggle_bg(t,!1),this.hide(e,n.css.close,n))},close_targets:function(){var t="."+this.settings.dismiss_modal_class;return this.settings.close_on_background_click?t+", ."+this.settings.bg_class:t},toggle_bg:function(e,n){0===this.S("."+this.settings.bg_class).length&&(this.settings.bg=t("<div />",{class:this.settings.bg_class}).appendTo("body").hide());var a=this.settings.bg.filter(":visible").length>0;n!=a&&((n==o?a:!n)?this.hide(this.settings.bg):this.show(this.settings.bg))},show:function(n,o){if(o){var s=(d=n.data(this.attr_name(!0)+"-init")||this.settings).root_element;if(0===n.parent(s).length){var r=n.wrap('<div style="display: none;" />').parent();n.on("closed.fndtn.reveal.wrapped",(function(){n.detach().appendTo(r),n.unwrap().unbind("closed.fndtn.reveal.wrapped")})),n.detach().appendTo(s)}var l=a(d.animation);if(l.animate||(this.locked=!1),l.pop){o.top=t(e).scrollTop()-n.data("offset")+"px";var c={top:t(e).scrollTop()+n.data("css-top")+"px",opacity:1};return setTimeout(function(){return n.css(o).animate(c,d.animation_speed,"linear",function(){this.locked=!1,n.trigger("opened").trigger("opened.fndtn.reveal")}.bind(this)).addClass("open")}.bind(this),d.animation_speed/2)}if(l.fade){o.top=t(e).scrollTop()+n.data("css-top")+"px";c={opacity:1};return setTimeout(function(){return n.css(o).animate(c,d.animation_speed,"linear",function(){this.locked=!1,n.trigger("opened").trigger("opened.fndtn.reveal")}.bind(this)).addClass("open")}.bind(this),d.animation_speed/2)}return n.css(o).show().css({opacity:1}).addClass("open").trigger("opened").trigger("opened.fndtn.reveal")}var d;return a((d=this.settings).animation).fade?n.fadeIn(d.animation_speed/2):(this.locked=!1,n.show())},hide:function(n,o){if(o){var s=a((l=(l=n.data(this.attr_name(!0)+"-init"))||this.settings).animation);if(s.animate||(this.locked=!1),s.pop){var r={top:-t(e).scrollTop()-n.data("offset")+"px",opacity:0};return setTimeout(function(){return n.animate(r,l.animation_speed,"linear",function(){this.locked=!1,n.css(o).trigger("closed").trigger("closed.fndtn.reveal")}.bind(this)).removeClass("open")}.bind(this),l.animation_speed/2)}if(s.fade){r={opacity:0};return setTimeout(function(){return n.animate(r,l.animation_speed,"linear",function(){this.locked=!1,n.css(o).trigger("closed").trigger("closed.fndtn.reveal")}.bind(this)).removeClass("open")}.bind(this),l.animation_speed/2)}return n.hide().css(o).removeClass("open").trigger("closed").trigger("closed.fndtn.reveal")}var l;return a((l=this.settings).animation).fade?n.fadeOut(l.animation_speed/2):n.hide()},close_video:function(e){var n=t(".flex-video",e.target),o=t("iframe",n);o.length>0&&(o.attr("data-src",o[0].src),o.attr("src",o.attr("src")),n.hide())},open_video:function(e){var n=t(".flex-video",e.target),a=n.find("iframe");if(a.length>0){if("string"==typeof a.attr("data-src"))a[0].src=a.attr("data-src");else{var s=a[0].src;a[0].src=o,a[0].src=s}n.show()}},data_attr:function(t){return this.namespace.length>0?this.namespace+"-"+t:t},cache_offset:function(t){var e=t.show().height()+parseInt(t.css("top"),10);return t.hide(),e},off:function(){t(this.scope).off(".fndtn.reveal")},reflow:function(){}}}(jQuery,window,window.document),function(t,e,n,o){"use strict";Foundation.libs.tab={name:"tab",version:"5.4.3",settings:{active_class:"active",callback:function(){},deep_linking:!1,scroll_to_content:!0,is_hover:!1},default_tab_hashes:[],init:function(t,e,n){var o=this,a=this.S;this.bindings(e,n),this.handle_location_hash_change(),a("["+this.attr_name()+"] > .active > a",this.scope).each((function(){o.default_tab_hashes.push(this.hash)}))},events:function(){var t=this,o=this.S,a=function(e){o(this).closest("["+t.attr_name()+"]").data(t.attr_name(!0)+"-init").is_hover&&!j.touch||(e.preventDefault(),e.stopPropagation(),t.toggle_active_tab(o(this).parent()))};o(this.scope).off(".tab").on("focus.fndtn.tab","["+this.attr_name()+"] > * > a",a).on("click.fndtn.tab","["+this.attr_name()+"] > * > a",a).on("mouseenter.fndtn.tab","["+this.attr_name()+"] > * > a",(function(e){o(this).closest("["+t.attr_name()+"]").data(t.attr_name(!0)+"-init").is_hover&&t.toggle_active_tab(o(this).parent())})),o(e).on("hashchange.fndtn.tab",(function(e){e.preventDefault(),t.handle_location_hash_change()})).on("keyup",(function(t){9==t.keyword&&console.log(n.querySelector("[data-tab] .tab-title :focus"))}))},handle_location_hash_change:function(){var e=this,n=this.S;n("["+this.attr_name()+"]",this.scope).each((function(){var a,s=n(this).data(e.attr_name(!0)+"-init");if(s.deep_linking)if(""!=(a=s.scroll_to_content?e.scope.location.hash:e.scope.location.hash.replace("fndtn-",""))){var r=n(a);if(r.hasClass("content")&&r.parent().hasClass("tab-content"))e.toggle_active_tab(t("["+e.attr_name()+"] > * > a[href="+a+"]").parent());else{var l=r.closest(".content").attr("id");l!=o&&e.toggle_active_tab(t("["+e.attr_name()+"] > * > a[href=#"+l+"]").parent(),a)}}else for(var c in e.default_tab_hashes)e.toggle_active_tab(t("["+e.attr_name()+"] > * > a[href="+e.default_tab_hashes[c]+"]").parent())}))},toggle_active_tab:function(a,s){var r=this.S,l=a.closest("["+this.attr_name()+"]"),c=a.find("a"),d="#"+a.children("a").first().attr("href").split("#")[1],u=r(d),h=a.siblings(),p=l.data(this.attr_name(!0)+"-init");r(this).data(this.data_attr("tab-content"))&&(d="#"+r(this).data(this.data_attr("tab-content")).split("#")[1],u=r(d)),p.deep_linking&&(p.scroll_to_content?(e.location.hash=s||d,s==o||s==d?a.parent()[0].scrollIntoView():r(d)[0].scrollIntoView()):e.location.hash=s!=o?"fndtn-"+s.replace("#",""):"fndtn-"+d.replace("#","")),a.addClass(p.active_class).triggerHandler("opened"),c.attr({"aria-selected":"true",tabindex:0}),h.removeClass(p.active_class),h.find("a").attr({"aria-selected":"false",tabindex:-1}),u.siblings().removeClass(p.active_class).attr({"aria-hidden":"true",tabindex:-1}).end().addClass(p.active_class).attr("aria-hidden","false").find(":first-child").attr("tabindex",0),p.callback(a),u.children().attr("tab-index",0),u.triggerHandler("toggled",[a]),l.triggerHandler("toggled",[u]),c.on("keydown",(function(e){var o,a=t(this),s=t(this).parents("li").prev().children('[role="tab"]'),r=t(this).parents("li").next().children('[role="tab"]');switch(e.keyCode){case 37:o=s;break;case 39:o=r;break;default:o=!1}o.length&&(a.attr({tabindex:"-1","aria-selected":null}),o.attr({tabindex:"0","aria-selected":!0}).focus()),t('[role="tabpanel"]').attr("aria-hidden","true"),t("#"+t(n.activeElement).attr("href").substring(1)).attr("aria-hidden",null)}))},data_attr:function(t){return this.namespace.length>0?this.namespace+"-"+t:t},off:function(){},reflow:function(){}}}(jQuery,window,window.document),function(t,e,n,o){"use strict";Foundation.libs.tooltip={name:"tooltip",version:"5.4.3",settings:{additional_inheritable_classes:[],tooltip_class:".tooltip",append_to:"body",touch_close_text:"Tap To Close",disable_for_touch:!1,hover_delay:200,show_on:"all",tip_template:function(t,e){return'<span data-selector="'+t+'" id="'+t+'" class="'+Foundation.libs.tooltip.settings.tooltip_class.substring(1)+'" role="tooltip">'+e+'<span class="nub"></span></span>'}},cache:{},init:function(t,e,n){Foundation.inherit(this,"random_str"),this.bindings(e,n)},should_show:function(e,n){var o=t.extend({},this.settings,this.data_options(e));return"all"===o.show_on||(!(!this.small()||"small"!==o.show_on)||(!(!this.medium()||"medium"!==o.show_on)||!(!this.large()||"large"!==o.show_on)))},medium:function(){return matchMedia(Foundation.media_queries.medium).matches},large:function(){return matchMedia(Foundation.media_queries.large).matches},events:function(e){var n=this,o=n.S;n.create(this.S(e)),t(this.scope).off(".tooltip").on("mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip","["+this.attr_name()+"]",(function(e){var a=o(this),s=t.extend({},n.settings,n.data_options(a));if(j.touch&&/touchstart|MSPointerDown/i.test(e.type)&&o(e.target).is("a"))return!1;if(/mouse/i.test(e.type)&&n.ie_touch(e))return!1;if(a.hasClass("open"))j.touch&&/touchstart|MSPointerDown/i.test(e.type)&&e.preventDefault(),n.hide(a);else{if(s.disable_for_touch&&j.touch&&/touchstart|MSPointerDown/i.test(e.type))return;!s.disable_for_touch&&j.touch&&/touchstart|MSPointerDown/i.test(e.type)&&(e.preventDefault(),o(s.tooltip_class+".open").hide(),!0),/enter|over/i.test(e.type)?this.timer=setTimeout(function(){n.showTip(a)}.bind(this),n.settings.hover_delay):"mouseout"===e.type||"mouseleave"===e.type?(clearTimeout(this.timer),n.hide(a)):n.showTip(a)}})).on("mouseleave.fndtn.tooltip touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip","["+this.attr_name()+"].open",(function(e){if(/mouse/i.test(e.type)&&n.ie_touch(e))return!1;"touch"==t(this).data("tooltip-open-event-type")&&"mouseleave"==e.type||("mouse"==t(this).data("tooltip-open-event-type")&&/MSPointerDown|touchstart/i.test(e.type)?n.convert_to_touch(t(this)):n.hide(t(this)))})).on("DOMNodeRemoved DOMAttrModified","["+this.attr_name()+"]:not(a)",(function(t){n.hide(o(this))}))},ie_touch:function(t){return!1},showTip:function(t){var e=this.getTip(t);if(this.should_show(t,e))return this.show(t)},getTip:function(e){var n=this.selector(e),o=t.extend({},this.settings,this.data_options(e)),a=null;return n&&(a=this.S('span[data-selector="'+n+'"]'+o.tooltip_class)),"object"==typeof a&&a},selector:function(t){var e=t.attr("id"),n=t.attr(this.attr_name())||t.attr("data-selector");return(e&&e.length<1||!e)&&"string"!=typeof n&&(n=this.random_str(6),t.attr("data-selector",n).attr("aria-describedby",n)),e&&e.length>0?e:n},create:function(n){var o=this,a=t.extend({},this.settings,this.data_options(n)),s=this.settings.tip_template;"string"==typeof a.tip_template&&e.hasOwnProperty(a.tip_template)&&(s=e[a.tip_template]);var r=t(s(this.selector(n),t("<div></div>").html(n.attr("title")).html())),l=this.inheritable_classes(n);r.addClass(l).appendTo(a.append_to),j.touch&&(r.append('<span class="tap-to-close">'+a.touch_close_text+"</span>"),r.on("touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip",(function(t){o.hide(n)}))),n.removeAttr("title").attr("title","")},reposition:function(e,n,o){var a,s,r,l;n.css("visibility","hidden").show(),a=e.data("width"),r=(s=n.children(".nub")).outerHeight(),s.outerHeight(),this.small()?n.css({width:"100%"}):n.css({width:a||"auto"}),l=function(t,e,n,o,a,s){return t.css({top:e||"auto",bottom:o||"auto",left:a||"auto",right:n||"auto"}).end()};var c=e[0].clientHeight,d=n[0].clientHeight;if(l(n,e.offset().top+c+10,"auto","auto",e.offset().left),this.small())l(n,e.offset().top+c+10,"auto","auto",12.5,t(this.scope).width()),n.addClass("tip-override"),l(s,-r,"auto","auto",e.offset().left);else{var u=e.offset().left;Foundation.rtl&&(s.addClass("rtl"),u=e.offset().left+e.outerWidth()-n.outerWidth()),l(n,e.offset().top+c+10,"auto","auto",u),n.removeClass("tip-override"),o&&o.indexOf("tip-top")>-1?(Foundation.rtl&&s.addClass("rtl"),l(n,e.offset().top-d,"auto","auto",u).removeClass("tip-override")):o&&o.indexOf("tip-left")>-1?(l(n,e.offset().top+c/2-d/2,"auto","auto",e.offset().left-n.outerWidth()-r).removeClass("tip-override"),s.removeClass("rtl")):o&&o.indexOf("tip-right")>-1&&(l(n,e.offset().top+c/2-d/2,"auto","auto",e.offset().left+e.outerWidth()+r).removeClass("tip-override"),s.removeClass("rtl"))}n.css("visibility","visible").hide()},small:function(){return matchMedia(Foundation.media_queries.small).matches&&!matchMedia(Foundation.media_queries.medium).matches},inheritable_classes:function(e){var n=t.extend({},this.settings,this.data_options(e)),o=["tip-top","tip-left","tip-bottom","tip-right","radius","round"].concat(n.additional_inheritable_classes),a=e.attr("class");return(a?t.map(a.split(" "),(function(e,i){if(-1!==t.inArray(e,o))return e})).join(" "):"").trim()},convert_to_touch:function(e){var n=this,o=n.getTip(e),a=t.extend({},n.settings,n.data_options(e));0===o.find(".tap-to-close").length&&(o.append('<span class="tap-to-close">'+a.touch_close_text+"</span>"),o.on("click.fndtn.tooltip.tapclose touchstart.fndtn.tooltip.tapclose MSPointerDown.fndtn.tooltip.tapclose",(function(t){n.hide(e)}))),e.data("tooltip-open-event-type","touch")},show:function(t){var e=this.getTip(t);"touch"==t.data("tooltip-open-event-type")&&this.convert_to_touch(t),this.reposition(t,e,t.attr("class")),t.addClass("open"),e.fadeIn(150)},hide:function(t){var e=this.getTip(t);e.fadeOut(150,(function(){e.find(".tap-to-close").remove(),e.off("click.fndtn.tooltip.tapclose MSPointerDown.fndtn.tapclose"),t.removeClass("open")}))},off:function(){var e=this;this.S(this.scope).off(".fndtn.tooltip"),this.S(this.settings.tooltip_class).each((function(i){t("["+e.attr_name()+"]").eq(i).attr("title",t(this).text())})).remove()},reflow:function(){}}}(jQuery,window,window.document);var t={local_storage:function(t,e,n){if(x3_tests.local_storage)return n?localStorage.removeItem(t):e?localStorage.setItem(t,e):localStorage.getItem(t)},popupwin:function(t,e,n,o){n=Math.min(screen.width,n||600),o=Math.min(screen.height,o||500);var a=window.open(t,e||"mywindow","toolbar=no,location=yes,directories=no, status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width="+n+",height="+o+",top="+Math.round(screen.height/2-o/2)+",left="+Math.round(screen.width/2-n/2));window.focus&&a.focus()},assign:function(){return("function"!=typeof Object.assign?$.extend:Object.assign).apply(null,arguments)}},e=$(document),n=$("head"),o=$(window),a=$("html"),s=$("body"),r=s.children(".sb-site-container"),l=r.find("header.header"),c=r.find(".main#content"),d=s.find("footer.footer"),u=!1;function h(t){if(!(t.length<2)){var e="X3 / Shuffle render time";H(e);for(var n=D(t),i=0,o=n.length;i<o;i++){var a=Math.floor(Math.random()*n.length);$(t[i]).replaceWith($(n[a]).clone(!0)),n.splice(a,1)}P(e)}}function p(t,e){return-1!=(e||location.search).search("[?&]"+t+"($|=|&)")}function f(t,e){var n=RegExp("[?#&]"+t+"=([^&]*)").exec(e||location.search);return n&&decodeURIComponent(n[1].replace(/\+/g," "))}function m(t){var e=location.hash;return!(!e||"#"===e)&&f(t,e)}function g(t,e,n){t.addClass(e),void 0!==t.data("timeout")&&clearTimeout(t.data("timeout")),t.data("timeout",setTimeout((function(){t.removeClass(e)}),n))}var v,y=0;$((function(){setTimeout((function(){2!==y&&c.remove()}),10)})),function(){var t=!1;v=function(e){e=decodeURIComponent(e||F(location.pathname,"/")),t||(t=s.find("nav")),t.find("li.active, a.active").removeClass("active"),t.find(".child-active").removeClass("child-active"),t.find('a[href="'+e+'"]').not(".is-link").addClass("active").parent("li").addClass("active");var n=e.replace(x3_settings.path,"").split("/").filter(Boolean),o="/";$.each(n,(function(e,a){a.length>0&&e!==n.length-1&&(o+=a+"/",t.find('a[href="'+(x3_settings.path+o)+'"]').parent().addClass("child-active"))}))}}();var b=!1;function _(t){var e=!0;return t.length&&t.is(":visible")&&1==t.css("opacity")&&"absolute"!=t.css("position")&&"visible"==t.css("visibility")&&parseInt(t.css("height"))>15&&parseInt(t.css("width"))>50&&(e=!1),e}function w(t,e,n,o){var a=n||"",s=(o=o||0,0);t=$.isArray(t)?t:[t];$.each(t,(function(n,r){function l(){++s==t.length&&e&&"function"===$.type(e)&&e.call()}var c=r.split("?")[0];setTimeout((function(){"js"==c.substr(c.length-2)?$.ajax({url:a+r,dataType:"script",success:l,cache:!0}):onloadCSS(loadCSS(a+r),l)}),o)}))}function x(t){N.nprogress.loaded&&NProgress[t?"start":"done"]()}function C(t){if((t.which>1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)&&(t.target.hasAttribute("data-href")||t.target.hasAttribute("href")||t.currentTarget.hasAttribute("data-href")||t.currentTarget.hasAttribute("href")))return!0}function k(t){return t&&t.length?(-1===t.indexOf("/")?x3_settings.assetspath+x3_settings.file_path+"/"+t:t.replace(/{{files}}/g,x3_settings.assetspath+"/content/custom/files")).trim():t}function I(t,e,n,o,a,s){o=o||"page-interface",a=a||1e3,s=s||2e3;var r=!1;(n=n||t).hover((function(){r||(r=!0,t.on("mousemove."+o,$.throttle(a,!0,(function(n){g(t,e,s)}))))}),(function(){r&&(r=!1,t.removeClass(e).off("mousemove."+o))}))}function T(t){for(var e,n,o=t.length;0!==o;)n=Math.floor(Math.random()*o),e=t[o-=1],t[o]=t[n],t[n]=e;return t}function E(t,e){var n=t.trim().split(" "),o=e.trim().split(" "),a=[];return $.grep(o,(function(t){-1==$.inArray(t,n)&&a.push(t)})),a.join(" ")}function A(){var t=location.hostname.split(".");return t.length>3&&(t=t.slice(t.length-3)),3===t.length&&(t[1].length>3||"www"===t[0])&&(t=t.slice(1)),t.join(".")}function M(t){if(0===t.indexOf("/")&&(t=location.protocol+"//"+location.host+t),x3_tests.supports_url)return new URL(t);var e=document.createElement("a");return e.href=t,e.pathname=F(e.pathname,"/"),e}function F(t,e){return t[0]===e?t:"/"+t}function D(t){return Array.from?Array.from(t):[].slice.call(t)}function O(t){var e=!!(t&&t.indexOf(".")>-1)&&t.split(".").pop();return!!(e&&-1===e.indexOf("/")&&e.length<5)}$.fn.velocityScroll=function(t,e,n,o){$.isNumeric(t)||null==t||null==$(t).offset()||(t=$(t).offset().top),null!=e&&(t-=e),b=!0;var a=$(this),s=a.offset().top+(t||0),r=$(document).height()-$(window).height();s>r&&(t=r-s),a.velocity("scroll",{duration:n||500,easing:"easeInOutCubic",offset:t||0,complete:function(){b=!1,o&&o()}})};var z=p("debug")||"x3.locl"==location.host;function L(t,e,n){if(z){var o=["X3 /",t];e&&o.push(e),console[n||"log"].apply(this,o)}}function H(t){z&&console.time(t)}function P(t){z&&console.timeEnd(t)}var x3_tests={},j={};!function(){var t=x3_tests,e=".x3_tests",n=document,r=navigator,l=window,c=r.userAgent,d=r.platform,u=screen.availWidth||screen.width,h=screen.availHeight||screen.height,p=l.devicePixelRatio||1,f=u*p,m=h*p,g=f/m;t.screen_width=u,t.screen_height=h,t.screen_max=Math.max(u,h),t.screen_min=Math.min(u,h),t.pixel_ratio=p,t.pixel_width=f,t.pixel_height=m,t.pixel_max=Math.max(f,m),t.pixel_min=Math.min(f,m),t.screen_ratio=g,t.long_ratio=g>1?g:1/g,t.local_storage=!!l.localStorage&&function(){try{var t="x3_test";return l.localStorage.setItem(t,t),l.localStorage.removeItem(t),!0}catch(t){return!1}}(),t.history=!(!l.history||!history.pushState),t.ios=/iPad|iPhone|iPod/.test(d)&&!l.MSStream,t.win=/win/i.test(d),t.explorer=n.documentMode||/Edge/.test(c),t.legacy_ie=/MSIE /.test(c)||/Trident\//.test(c),t.download="download"in n.createElement("a"),t.supports_url=function(){if("function"!=typeof URL)return!1;try{var t="http://a",e="c%20d",n=new URL("b",t);return n.pathname=e,!(n.href!==t+"/"+e||!n.searchParams)}catch(t){return!1}}();var v=location.protocol+"//"+location.host;t.website=v,t.x3_root=v+x3_settings.path,t.lang=r.language||!1;var y="ontouchstart"in l||r.maxTouchPoints>0||r.msMaxTouchPoints>0||window.DocumentTouch&&document instanceof DocumentTouch||l.matchMedia("(any-pointer: coarse)").matches,b=matchMedia("(pointer:fine)").matches||t.legacy_ie||!y,_=y&&b;if(t.touch=y,j.touch=y,t.is_pointer=b,t.dual_input=_,t.mobile=!b,t.only_pointer=b&&!y,t.only_touch=y&&!b,t.is_orientation="onorientationchange"in l&&!isNaN(l.orientation),_){var w="touchstart"+e+" mouseover"+e+" mousemove"+e;s.one(w,(function(e){t.mobile="touchstart"===e.type,s.off(w)}))}t.scrollbar_width=t.is_pointer?function(){var t=l.innerWidth-n.documentElement.clientWidth;if(t)return t;var e=n.createElement("div");n.body.appendChild(e),e.style.cssText="width: 100px;height: 100px;overflow: scroll;position: absolute;top: -9999px";var o=e.offsetWidth-e.clientWidth;return n.body.removeChild(e),o}():0,t.scrollbar_width&&(a.addClass("root-scrollbar"),l.innerWidth-n.documentElement.clientWidth>8&&(a[0].style.overflow="hidden",setTimeout((function(){a[0].style.overflow=""}),1)));var x=l.DeviceOrientationEvent&&"ondeviceorientation"in l;t.device_orientation=!(!x||!y),t.device_oriented=!1,x&&o.one("deviceorientation"+e,(function(e){var n=e.originalEvent.alpha,o=null!==n&&!isNaN(n);t.device_orientation=o,o&&(t.device_oriented=!0)}));var C=Element.prototype;C.matches||(C.matches=C.msMatchesSelector||C.webkitMatchesSelector),C.closest||(C.closest=function(t){var e=this;do{if(C.matches.call(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}),L("x3_tests:",t)}(),function(){var t=x3_tests.lang?x3_tests.lang.split("-")[0]:x3_settings.settings.lang,e=x3_settings.settings.auto_lang&&["cs","da","de","en","es","fr","it","nl","
2zh"].indexOf(t)>-1?t:x3_settings.settings.lang;"en"!=e&&w(x3_settings.path+"/app/public/lang/"+e+".css")}();var q,N,Z,R,V,W,B=x3_settings.toolbar.addthis||x3_settings.accounts.addthis;if(B){window.addthis_config||(window.addthis_config={ui_delay:200});var X=!!x3_settings.accounts&&x3_settings.accounts.addthis;X&&(window.addthis_config.pubid=X,window.addthis_config.username=X)}function Y(t){B&&window.addthis&&(t||(t={url:x3_settings.canonical,title:x3_settings.title||null,description:x3_settings.description||null,media:x3_settings.preview_image_full||null}),Object.keys(t).forEach((function(e){addthis.update("share",e,t[e])})))}function U(t){if("none"===t||null==t)return!1;var e=t,n={body:["body","h1","h2","h3","h4","h5","h6"],paragraph:"p",logo:".nav .logo",menu:".menu",topbar:'body[class*="topbar"] .menu > li > a',sidebar:'body[class*="sidebar"] .menu > li > a',header:["body h1","body h2:not(.subheader)","body h3","body h4","body h5","body h6"],subheader:"h2.subheader",styled:[".styled",".pagenav"],footer:".footer"},o={xxlarge:1.3,xlarge:1.2,large:1.1,small:.9,xsmall:.8,xxsmall:.7},a={},s=[];if($.each(e.split("|"),(function(t,e){var o=e.split(":")[0];o in n||s.push(o.replace(/\+/g," ").replace(/%20/g," "))})),a.body={},a.body["font-family"]=s[0],s.length>1){$.each(["logo","header","styled","footer"],(function(t,e){a[e]={},a[e]["font-family"]=s[1]}))}$.each(e.split("|"),(function(t,e){var r=e.split(":")[0];
vendor: 3,640 bytes, line 2
2r in n&&(void 0===a[r]&&(a[r]={}),$.each(e.split(":")[1].split(","),(function(t,e){if("bold"===e)a[r]["font-weight"]="bold !important";else if("normal"===e)a[r]["font-weight"]="normal !important";else if($.isNumeric(e)&&3===e.length&&"0"===e.charAt(1)&&"0"===e.charAt(2))a[r]["font-weight"]=e+" !important";else if("italic"===e)a[r]["font-style"]="italic !important";else if("uppercase"===e)a[r]["text-transform"]="uppercase !important";else if(/^[0-9A-F]{6}$/i.test(e)&&6===e.length)a[r].color="#"+e+" !important";else if(-1!==$.inArray(e.replace("+"," ").replace("%20"," "),s))a[r]["font-family"]=e.replace("+"," ").replace("%20"," ")+" !important";else if(e in o)if($.isArray(n[r]))$.each(n[r],(function(t,n){var a=$(n).first();if(a.length){if(void 0===a.data("original")){var s=a.css("font-size");a.data("original",s)}else s=a.data("original");if(s=parseInt(s),$.isNumeric(s)){var r=n+"{ font-size: "+Math.round(s*o[e])+"px; }";R(r)}}}));else{var l=$(n[r]).first();if(l.length){if(void 0===l.data("original")){var c=l.css("font-size");l.data("original",c)}else c=l.data("original");a[r]["font-size"]=Math.round(parseInt(c)*o[e])+"px !important"}}})))})),$.each(n,(function(t,e){void 0!==a[t]&&vein.inject(e,a[t])}));var r=e.split("|")[0],l=!!r.indexOf(":")&&r.split(":")[1];if(l){var c=l.split(",").map((function(t){return parseInt(t,10)})),d=Math.max.apply(Math,c),u=Math.min.apply(Math,c);d<700&&d!==u&&vein.inject(["strong","b",".button","button",".label"],{"font-weight":d}),-1===l.indexOf("i")&&vein.inject(["em","cite"],{"font-style":"normal !important"})}"function"==typeof G&&G()}function Q(){for(var t=arguments,e=t.length,n="",i=0;i<e;i++)n+='<path class="svg-path-'+t[i]+'" d="'+J[t[i]]+'" />';return'<svg viewBox="0 0 24 24" class="svg-icon svg-icon-'+t[0]+'">'+n+"</svg>"}!function(){var t,e,n=x3_settings.settings.cdn_core,o=x3_settings.path+"/app/public/",a=n?"https://cdn.jsdelivr.net/npm/":o,r=x3_settings.x3_version,l=a+(n?"x3.photo.gallery@"+r+"/js":"js/"+r)+"/plugins/",c="0.10.2",d="0.2.0",u="4.7.0",h="4.6.4",p="2.0.8",f="3.1.1",m="5.0.1",g="1.6.7",v="1.6.28",y="1.0.0",b="6.4.2",_="2.0.5",x="3.9.1";N={DeviceOrientationControlMethod:{source:a+(n?"marzipano@"+c+"/demos/device-orientation":"vendor/marzipano/"+c)+"/DeviceOrientationControlMethod.js",requirement:x3_tests.device_orientation},panorama:{source:[a+(n?"marzipano@"+c+"/dist":"vendor/marzipano/"+c)+"/marzipano.js",l+"x3.panorama.min.js"],load:function(t,e){var n=x3_page.permalink,o=this;q("panorama",(function(){n===x3_page.permalink&&o.init_page(t,e)}),(function(){o.init_pano()}))},is_open:!1},cart:{source:[l+"x3.cart.min.js"],load:function(){if(Z)return cart.init();if(x3_settings.plugins.cart.enabled){var t=x3_page.permalink;q("cart",(function(){t===x3_page.permalink&&cart.init()}))}}},waypoints:{source:o+"vendor/waypoints/waypoints.combo.min.js"},nprogress:{source:a+(n?"nprogress@":"vendor/nprogress/")+d+"/nprogress.min.js"},fontawesome:{source:a+(n?"font-awesome@":"vendor/Font-Awesome/")+u+"/css/font-awesome.min.css"},fotorama:{source:a+(n?"fotorama@":"vendor/fotorama/")+h+"/fotorama.js"},clipboard:{source:a+(n?"clipboard@":"vendor/clipboard/")+p+"/dist/clipboard.min.js",requirement:!(!document.queryCommandSupported||!document.queryCommandSupported("copy"))},cookieconsent:{source:(e=a+(n?"cookieconsent@":"vendor/cookieconsent/")+f+"/build/cookieconsent.min.",[e+"js",e+"css"])},autosize:{source:a+(n?"autosize@":"vendor/autosize/")+m+"/dist/autosize.min.js"},timeago:{source:a+(n?"timeago@":"vendor/timeago/")+g+"/jquery.timeago.min.js"},webfontloader:{source:a+(n?"webfontloader@":"vendor/webfontloader/")+v+"/webfontloader.min.js
vendor: 160,382 bytes, line 2
2"},twentytwenty:{source:(t=o+"vendor/twentytwenty/"+y+"/",[t+"jquery.event.move.min.js",t+"jquery.twentytwenty.min.js",t+"twentytwenty.css"])},fotomoto:{source:l+"x3.fotomoto.min.js"},ie11CustomProperties:{source:"https://cdn.jsdelivr.net/npm/[email protected]/ie11CustomProperties.min.js"},addthis:{source:"https://s7.addthis.com/js/300/addthis_widget.js"},fastAverageColor:{source:a+(n?"fast-average-color@":"vendor/fast-average-color/")+b+"/dist/index.min.js"},jszip:{source:[a+(n?"jszip@":"vendor/jszip/")+x+"/dist/jszip.min.js",a+(n?"file-saver@":"vendor/file-saver/")+_+"/dist/FileSaver.min.js"]}},(q=function(t,e,n){var o=N[t];if(!o||!1===o.requirement)return L('Plugin "'+t+'" not loaded.',null,"warn"),e(!1),!1;o.loaded?e&&e(!0):o.loading?o.complete.push(e):(o.loading=!0,o.complete=[e],w(o.source,(function(){o.loading=!1,o.loaded=!0,n&&n(),o.complete.forEach((function(t){t&&t(!0)}))})))})("nprogress"),function(){s.append('<span class="fa-test">&#xf26e;&#xf0f9;&#xf0da;&#xf0c1;&#xf004;</span>');var t=s.children(".fa-test"),e=t.width(),n=t.height();t.css("fontFamily",'"FontAwesome"'),q("fontawesome",(function o(){e!==t.width()||n!==t.height()?(t.remove(),s.removeClass("fa-loading"),et()):setTimeout(o,300)}))}()}(),function(){var t=0,e=n.children("style#x3app")[0].sheet;e.crossadd=e.insertRule?e.insertRule:e.addRule,R=function(n){e.crossadd(n,t),t++};var o={daylight:"#78a642",twilight:"brown",white:"coral",black:"crimson",mellow:"indianred",organic:"#78a642",science:"palevioletred"};V=function(t){var e=!!t&&t.trim();e||(e=x3_settings.style.skin.primary_color||o[x3_settings.style.skin.skin]),/(^[0-9A-F]{6}$)|(^[0-9A-F]{3}$)/i.test(e)&&(e="#"+e);var n=document.documentElement.style.getPropertyValue("--primary-color")||getComputedStyle(document.documentElement).getPropertyValue("--primary-color");n&&n.trim()==e||document.documentElement.style.setProperty("--primary-color",e),W=e}}(),V(),window.MSInputMethodContext&&document.documentMode&&q("ie11CustomProperties",(function(){V()}));var G,K,J={share:"M21,12L14,5V9C7,10 4,15 3,20C5.5,16.5 9,14.9 14,14.9V19L21,12Z",close:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",expand:"M10,21V19H6.41L10.91,14.5L9.5,13.09L5,17.59V14H3V21H10M14.5,10.91L19,6.41V10H21V3H14V5H17.59L13.09,9.5L14.5,10.91Z",collapse:"M19.5,3.09L15,7.59V4H13V11H20V9H16.41L20.91,4.5L19.5,3.09M4,13V15H7.59L3.09,19.5L4.5,20.91L9,16.41V20H11V13H4Z",zoom_in:"M15.5,14L20.5,19L19,20.5L14,15.5V14.71L13.73,14.43C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.43,13.73L14.71,14H15.5M9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14M12,10H10V12H9V10H7V9H9V7H10V9H12V10Z",zoom_out:"M15.5,14H14.71L14.43,13.73C15.41,12.59 16,11.11 16,9.5A6.5,6.5 0 0,0 9.5,3A6.5,6.5 0 0,0 3,9.5A6.5,6.5 0 0,0 9.5,16C11.11,16 12.59,15.41 13.73,14.43L14,14.71V15.5L19,20.5L20.5,19L15.5,14M9.5,14C7,14 5,12 5,9.5C5,7 7,5 9.5,5C12,5 14,7 14,9.5C14,12 12,14 9.5,14M7,9H12V10H7V9Z",chevron_left:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",chevron_right:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",download:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z",lock_outline:"M12,17C10.89,17 10,16.1 10,15C10,13.89 10.89,13 12,13A2,2 0 0,1 14,15A2,2 0 0,1 12,17M18,20V10H6V20H18M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V10C4,8.89 4.89,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z",lock_open_outline:"M18,20V10H6V20H18M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V10A2,2 0 0,1 6,8H15V6A3,3 0 0,0 12,3A3,3 0 0,0 9,6H7A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,17A2,2 0 0,1 10,15A2,2 0 0,1 12,13A2,2 0 0,1 14,15A2,2 0 0,1 12,17Z",play:"M8,5.14V19.14L19,12.14L8,5.14Z",pause:"M14,19H18V5H14M6,19H10V5H6V19Z"},tt={};function et(){var e=x3_settings.toolbar;if(e.enabled&&(!x3_tests.mobile||e.enabled_mobile)){var n,a,r,l,c,d,h,p,f,m=!!("auto"==e.side&&s.hasClass("sidebar")||"right"==e.side),v=m?1:-1,y=e.show_label,b=e.auto_hide;e.enabled_mobile&&x3_tests.mobile&&(e.share_hover=!0,e.share_click=!0),G=function(){l.each((function(t,e){var o=$(this),a=o.is(":hidden");if(a&&o.css("display",""),y){var s=o.children("span"),r=n.find("i").eq(o.index()),l=v*(o.outerWidth()-32),c=-v*s.outerWidth()+10;o.data("start",l),o.data("start_child",c),o.data("child",s),o.data("icon",r),_(o,{translateX:l},0),_(s,{translateX:c},0)}else _(o,{translateX:12*v},0);a&&o.css("display","none")}))},K=function(){l&&l.length&&e.items.forEach((function(t,n){e.addthis&&"share"!=t.id||!t.url||l[n].setAttribute("href",x(t.url))}))},function(){var v="",_="";x3_settings.canonical,e.items.forEach((function(t,n){if(!e.addthis||"share"==t.id){var o=t.display&&-1==t.display.indexOf("page")||"share"==t.id&&!e.share_hover&&!e.share_click&&!e.addthis?" hide":"",a="x3-toolbar-"+t.id+o,s=y?"<span>"+t.label+"</span>":'<i class="fa fa-'+t.icon+'"></i>',r=y?"":t.label,l="popup"===t.target&&t.url||t.content?" data-popup":"",c=l?' data-popup-class="'+(t.popup_class||(t.content?"x3-popup-content":"x3-popup-iframe"))+'"':"",d="mailto"===t.id?' target="_blank"':t.target&&"_"==t.target.charAt(0)?" target="+t.target:"";_+='<a href="'+x(t.url)+'"'+d+' class="'+a+("share"==t.id&&e.addthis?" addthis_button addthis_button_toolbar":"")+'" title="'+r+'"'+("download"==t.id?" download":"")+' data-index="'+n+'"'+l+(t.content?' data-popup-content="'+t.content+'"':"")+c+">"+s+"</a>",y&&(v+='<i class="'+a+" fa fa-"+t.icon+'"></i>'),t.color&&R(".x3-toolbar-"+t.id+" { background-color:"+t.color+" !important; }")}}));var C=parseInt(e.top),k=Math.abs(C);65!==C&&R(C<0?".x3-toolbar { bottom: "+k+"px; top: auto; }":".x3-toolbar { top: "+k+"px; }");var I='<div class="x3-toolbar'+(y?"":" x3-toolbar-nolabel")+(m?" x3-toolbar-right":"")+(e.share_hover?"":" x3-toolbar-nohover")+(e.share_click?"":" x3-toolbar-noclick")+'"><div class=x3-toolbar-links>'+_+"</div>";I+=y?'<div class="x3-toolbar-icons">'+v+"</div></div>":"</div>",s.append(I),e.addthis&&q("addthis",(function(){addthis.button(".addthis_button_toolbar",addthis_config)}));var S=(u=s.children(".x3-toolbar")).find(".x3-toolbar-clipboard");function T(n,o){var a=e.items[o.dataset.index];if(a&&!o.getAttribute("target")&&"download"!==a.id&&"mailto"!==a.id&&!o.hasAttribute("data-popup")){if(n.preventDefault(),"comment"===a.id)return s.velocityScroll("#comments",30);if(a.url)return t.popupwin(o.getAttribute("href"),"pswp_share",550,420);if("share"===a.id&&e.share_click&&!e.addthis){var r,l;document.body.insertAdjacentHTML("beforeend",tt.share_modal_html||(r='<div id="share-modal"><div class="share-modal-3d share-modal-3d-in"><div class="share-modal-links">',l=["comment","share","download"],e.items.forEach((function(t,e){if(!(l.indexOf(t.id)>-1||t.display&&-1==t.display.indexOf("overlay"))){var n="popup"===t.target&&t.url||t.content?" data-popup":"",o=n?' data-popup-class="'+(t.popup_class||(t.content?"x3-popup-content":"x3-popup-iframe"))+'"':"",a="mailto"===t.id?' target="_blank"':t.target&&"_"==t.target.charAt(0)?" target="+t.target:"";r+='<a href="'+x(t.url)+'"'+a+' class="share-modal-link x3-toolbar-'+t.id+'" data-index="'+e+'"'+n+(t.content?' data-popup-content="'+t.content+'"':"")+o+'><i class="fa fa-'+t.icon+' share-modal-link-icon"></i>'+t.label+"</a>"}})),r+="</div></div></div>",tt.share_modal_html=r));var c=document.body.lastElementChild,d=$(c),u=c.firstElementChild,h=u.firstElementChild;if(anime({targets:c,opacity:[0,1],duration:200,easing:"easeOutCubic"}),anime({targets:h,scale:[.95,1],duration:200,easing:"easeOutQuint"}),d.on("click.sharemodal",(function(t){var e=t.target.closest(".share-modal-link");e&&(T(t,e),!e.hasAttribute("data-popup"))||(d.off(".sharemodal"),anime({targets:c,opacity:0,duration:300,easing:"easeOutCubic",complete:function(){document.body.removeChild(c)}}))})),!(!x3_tests.is_pointer||!e.overlay_fun||h.clientHeight>c.clientHeight||c.clientWidth<641)){var p=u.clientWidth/2,f=u.clientHeight/2,m=Math.floor(Math.sqrt(Math.pow(-p,2)+Math.pow(f,2)));d.one("mousemove.sharemodal",(function(){u.classList.remove("share-modal-3d-in")})),d.on("mousemove.sharemodal",g),g(n)}}}function g(t){var e=(t.clientX-p)/p*30,n=(t.clientY-f)/f*20,o=(m-Math.floor(Math.sqrt(Math.pow(t.clientX-p,2)+Math.pow(t.clientY-f,2))))/m,a=.7+.2*o,s=75-n+15*o;u.style.cssText="transform: translateY("+-n+"px) rotateX("+-n+"deg) translateX("+-e+"px) rotateY("+e+"deg) scale("+a+"); -webkit-filter: brightness("+s+"%);"}}if(S.length&&q("clipboard",(function(t){var e=S.filter("a"),n=S.filter("i");t?new ClipboardJS(e[0],{text:function(){return x3_settings.canonical}}).on("success",(function(t){g(n,"copied",1e3)})).on("error",(function(t){g(n,"not-copied",1e3)})):(e.addClass("hide"),n.addClass("hide"))})),a=(n=u).find(".x3-toolbar-links"),r=n.find(".x3-toolbar-icons"),l=a.children("a"),v=r.children("i"),c=l.not(".x3-toolbar-share"),d=$(c.get().reverse()),h=v.not(".x3-toolbar-share"),p=$(h.get().reverse()),f=c.add(h),a.on("click","a",(function(t){T(t,this)})),G(),x3_tests.mobile)f.css({opacity:0,display:"none"});else if(n.on("mouseenter","a",(function(t){w($(this),!0)})).on("mouseleave","a",(function(t){w($(this),!1)})),e.share_hover&&"share"==e.items[0].id&&!e.addthis){var E=200/l.length,A=Math.round(Math.max(Math.min(E,25),15)),M=200;function F(t,e){var n=function(t){return s.hasClass("has-comments")||(t=t.not(".x3-toolbar-comment")),"page"===x3_settings.type&&(t=t.not(".x3-toolbar-download")),t.not(".hide")}(t);e&&n.css("display","");var o=e?null:function(){n.css("display","none")};n.velocity("stop").velocity(e?"share.items_show":"share.items_hide",{stagger:A,duration:M,complete:o})}f.css({opacity:0,display:"none"}),$.Velocity.RegisterUI("share.items_show",{calls:[[{opacity:1},1,{easing:"easeOutCubic"}]]}),$.Velocity.RegisterUI("share.items_hide",{calls:[[{opacity:0},1,{easing:"easeOutCubic"}]]}),n.hoverIntent({over:function(){n.addClass("x3-toolbar-hovered"),F(c,1),F(h,1)},out:function(){n.removeClass("x3-toolbar-hovered"),F(d,0),F(p,0)},sensitivity:10,timeout:500})}else e.share_hover||"share"!=e.items[0].id||e.addthis||n.hover((function(){n.addClass("x3-toolbar-hovered")}),(function(){n.removeClass("x3-toolbar-hovered")}));b&&!x3_tests.mobile?o.on("mousemove.x3-toolbar",$.throttle(1e3,!0,(function(t){popupob.is_open||g(n,"x3-toolbar-ready",2e3)}))):setTimeout((function(){n.addClass("x3-toolbar-ready")}),100)}()}function _(t,e,n){t.velocity("stop").velocity(e,n||250,"easeOutCubic")}function w(t,e){y?(t.data("icon").toggleClass("x3-toolbar-mouseenter",e),_(t,{translateX:e?0:t.data("start")}),t.toggleClass("x3-toolbar-hoverintent",e),t.data("icon").toggleClass("x3-toolbar-hoverintent",e),_(t.data("child"),{translateX:e?0:t.data("start_child")})):(_(t,{translateX:e?0:12*v}),t.children("i").css("transform","translateX("+(e?6*v:"0")+"px)"))}function x(t){return t?t.replace("{{url}}",encodeURIComponent(x3_settings.canonical)).replace("{{image_url}}",encodeURIComponent(x3_settings.preview_image_full)).replace("{{raw_image_url}}",x3_settings.preview_image_full).replace("{{text}}",encodeURIComponent(x3_settings.title)).replace("{{description}}",encodeURIComponent(x3_settings.description)).replace("{{path}}",x3_settings.path+x3_settings.file_path+"/"):"#"}}x3_settings.toolbar.items=JSON.parse(x3_settings.toolbar.items).items.filter((function(t,e){if("download"!=t.id||!x3_settings.settings.prevent_context)return t.label||(t.label=S(t.id).capitalize().s),t.icon||(t.icon="share"),!0}));var it=0;!function(){var t=x3_tests.local_storage,e=S(location.pathname).ensureRight("/").s,n=e,a=location.href,r=0,l={load:function(t){t&&e!==t.currentTarget.pathname&&f(t)},navto:p};function d(t,n){history[t+"State"]({url:a,path:e,mydate:Date.now()},ue(n.title),a)}function u(e){if(we.hasOwnProperty(e))return L("Page from cache [siteDB]"),we[e];if(t){var n=localStorage.getItem(e);if(n)return L("Page from cache [localStorage]"),JSON.parse(n)}return L("_request AJAX"),!1}function h(){o.on("popstate",g),s.on("click.pronto",'a:not([href^="#"], [href*="?skin"], [href*="?q="], [href*="?font"], [href*="?layout"], [href*="?styler"], .no-pronto, [rel="external"], [target="_blank"], a.popup, a.x3-popup, a[data-popup], [data-popup-container] a, a[data-popup-href], a[data-popup-title], a[data-popup-window], .no-ajax, .mtree .node, .sb-slidebar a, #at3win a, #at20mc a, .addthis-smartlayers a, .pswp a)',f),history.state&&history.state.path||(d("replace",x3_page),we.hasOwnProperty(e)||(x3_page.hasOwnProperty("content")||(x3_page.content=c[0].innerHTML),we[e]=x3_page))}function p(t,e,o,a){if(t.preventDefault(),t.stopPropagation(),!(n===o||st&&st())){n=o,S(e.className).contains("next")?it=1:S(e.className).contains("prev")&&(it=-1),v(o);var s=u(o);s?ce((function(){y(o,a,s,!0)})):m(o,a,!0)}}function f(t){var e=t.currentTarget,n=S(e.pathname).ensureRight("/").s,o=e.href;C(t)||0!==o.indexOf(x3_tests.x3_root)||O(e.pathname)||p(t,e,n,o)}function m(e,n,o){var a,s=0;function r(t){1===++s&&t?x(!0):2===s&&(t||x(),y(e,n,a,o))}ce((function(){r(!0)}));var l=S(e).chompRight("/").s;function c(o,s){if(o){if(a=o,r(),!e||!s)return;if("auto"!==x3_settings.settings.preload&&t)try{localStorage.setItem(e,s)}catch(t){L("Could not store page in localStorage",t,"warn"),we.hasOwnProperty(e)||(we[e]=o)}else we.hasOwnProperty(e)||(we[e]=o)}else window.location.href=n}l+=(S(x3_settings.path).ensureRight("/").s===e?"/?index.json&":".json?")+ve,$.getJSON(l).done((function(t,e,n){c(t,n.responseText)})).fail((function(t,e,n){var o=t.status;404==o&&t.getResponseHeader&&t.getResponseHeader("file_exists")?c():c((401==o||404==o)&&t.responseJSON)}))}function g(t){var e=t.originalEvent.state;if(e&&e.url&&e.url!=a){it=e.mydate&&e.mydate>r?1:-1,e.mydate&&(r=e.mydate),v(e.path);var n=u(e.path);n?(c[0].style.opacity=0,y(e.path,e.url,n,!1)):m(e.path,e.url,!1)}}function y(t,s,r,l){o.trigger("pronto.load"),n=e=t,a=s,l&&d("push",r),le(r,l)}$.pronto=function(t){return l[t]?l[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?this:h.apply(this,arguments)}}(),jQuery.fn.widowFix=function(){if(this.length)return this.each((function(){var t=$(this),e=t.html().trim().split(" "),n=e.pop();if(!(e.length<4||n.length>=10)){var o=e.join(" ")+"&nbsp;"+n;t.html(o)}}))};var nt=function(e,n){var o,a,s,r,l,c,d,u,h,p,f,m,g,v,y,b,_,w,x,C,k,$=this,I=!1,S=!0,T=!0,E={timeToIdle:3e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(t,e){return t.title?e.firstElementChild.innerHTML=t.title:n.resetEl(e.firstElementChild)},closeEl:!0,captionEl:!0,fullscreenEl:screenfull.isEnabled,zoomEl:!0,shareEl:!0,addthisEl:!1,downloadEl:!1,playEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,closeOnOutsideClick:!0,tapToClose:!1,clickToCloseNonZoomable:!1,clickToShowNextNonZoomable:!1,indexIndicatorSep:" / ",fitControlsWidth:1200},A=function(t){if(x)return!0;t=t||window.event,w.timeToIdle&&w.mouseUsed&&!m&&P();for(var e,n,o=t.target||t.srcElement,i=0;i<N.length;i++)(e=N[i]).onTap&&o.classList.contains("pswp__"+e.name)&&(e.onTap(),n=!0);n&&(t.stopPropagation(),x=!0,setTimeout((function(){x=!1}),30))},M=function(t){32===t.keyCode&&(x3_tests.dual_input&&$.toggleControls(!1),$.setIdle(!m))},F=function(t,e,n){t.classList[n?"add":"remove"]("pswp__"+e)},D=function(){var t=1===w.getNumItemsFn();t!==_&&(F(o,"ui--one-slide",t),_=t)},O=function(){return(T=!T)||popupob.toggle_play(!1),n.toggle_class(u,"pswp__share-modal--hidden",T),T||L(),!1},z=function(e){var n=e.target;return!!n.href&&(!(!n.hasAttribute("download")&&0!=n.href.indexOf("mailto"))||(e.preventDefault(),t.popupwin(e.target.href,"pswp_share",550,420),T||O(),!1))},L=function(){var t=e.currItem;if(h!=t.src){h=t.src;var n=u.firstElementChild,o=(x3_settings.settings.cdn_files?"":x3_tests.website)+t.original||t.src,a=encodeURIComponent(x3_tests.website+t.page+location.hash),s=encodeURIComponent(t.title||""),r=encodeURIComponent(t.description||t.title_name||""),l=encodeURIComponent(t.file_name||""),c=encodeURIComponent(t.file_name_ext||""),d=encodeURIComponent(x3_settings.path+x3_settings.file_path+"/");w.share_urls.forEach((function(t,i){n.children[i].setAttribute("href",t.replace("{{url}}",a).replace("{{image_url}}",encodeURIComponent(o)).replace("{{raw_image_url}}",o).replace("{{text}}",s).replace("{{description}}",r).replace("{{file_name}}",l).replace("{{file_name_ext}}",c).replace("{{path}}",d))}))}},H=0,P=function(){clearTimeout(k),H=0,m&&$.setIdle(!1)},j=function(t){var e=(t=t||window.event).relatedTarget||t.toElement;e&&"HTML"!==e.nodeName||(clearTimeout(k),k=setTimeout((function(){$.setIdle(!0)}),w.timeToIdleOutside))},q=function(t){y!==t&&(n.toggle_class(v,"svg-preloader-active",!t),y=t)},N=[{name:"caption",option:"captionEl",onInit:function(t){a=t}},{name:"share-modal",option:"shareEl",onInit:function(t){u=t,t.firstElementChild.onclick=z},onTap:function(){O()}},{name:"button--share",option:"shareEl",onInit:function(t){d=t},onTap:function(){O()}},{name:"button--addthis",option:"addthisEl",onTap:function(){popupob.toggle_play(!1)}},{name:"button--download",option:"downloadEl",onInit:function(t){p=t},onTap:function(){}},{name:"button--zoom",option:"zoomEl",onTap:e.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(t){s=t}},{name:"button--close",option:"closeEl",onTap:e.close},{name:"button--arrow--left",option:"arrowEl",onInit:function(t){r=t},onTap:function(){e.prev()}},{name:"button--arrow--right",option:"arrowEl",onInit:function(t){l=t},onTap:function(){e.next()}},{name:"button--fs",option:"fullscreenEl",onInit:function(t){c=t},onTap:function(){$[(screenfull.isFullscreen?"exit":"enter")+"Fullscreen"]()}},{name:"preloader",option:"preloaderEl",onInit:function(t){v=t}},{name:"button--play",option:"playEl",onTap:function(){popupob.toggle_play(!popupob.playing)}}];$.init=function(){var t,s,r,l;n.copy_unique(e.options,E),w=e.options,o=popupob.ui,(g=e.listen)("onVerticalDrag",(function(t){S&&t<.95?$.toggleControls():!S&&t>=.95&&$.toggleControls(!0)})),g("onPinchClose",(function(e){S&&e<.9?($.toggleControls(),t=!0):t&&!S&&e>.9&&$.toggleControls(!0)})),g("zoomGestureEnded",(function(){(t=!1)&&!S&&$.toggleControls(!0)})),g("beforeChange",$.update),w.downloadEl&&g("afterChange",(function(){var t=e.currItem.original||e.currItem.src;p.setAttribute("href",t||"#"),p.style.display=t?"":"none"})),g("doubleTap",(function(t){var n=e.currItem.initialZoomLevel;e.zoomTo(e.getZoomLevel()===n?w.getDoubleTapZoom(!1,e.currItem):n,t,250)})),g("preventDragEvent",(function(t,e,n){var o=t.target||t.srcElement;o&&o.getAttribute("class")&&t.type.indexOf("mouse")>-1&&(o.getAttribute("class").indexOf("__caption")>0||/(SMALL|STRONG|EM)/i.test(o.tagName))&&(n.prevent=!1,undefined())})),g("bindEvents",(function(){n.bind(o,"pswpTap click",A),n.bind(popupob.scrollwrap,"pswpTap",$.onGlobalTap),n.bind(document,"keydown",M)})),g("unbindEvents",(function(){T||O(),C&&clearInterval(C),n.unbind(document,"mouseout",j),n.unbind(document,"mousemove",P),n.unbind(o,"pswpTap click",A),n.unbind(popupob.scrollwrap,"pswpTap",$.onGlobalTap),n.unbind(document,"keydown",M),w.fullscreenEl&&(screenfull.off("change",$.updateFullscreen),screenfull.isFullscreen&&(w.hideAnimationDuration=0,screenfull.exit()))})),g("destroy",(function(){w.captionEl&&a.classList.remove("pswp__caption--empty"),u&&(u.firstElementChild.onclick=null),o.classList.add("pswp__ui--hidden"),k&&clearTimeout(k),$.setIdle(!1)})),w.showAnimationDuration||o.classList.remove("pswp__ui--hidden"),g("initialZoomIn",(function(){w.showAnimationDuration&&o.classList.remove("pswp__ui--hidden")})),g("initialZoomOut",(function(){o.classList.add("pswp__ui--hidden")})),(l=function(t){if(t)for(var e=t.length,i=0;i<e;i++){s=t[i];for(var n=0;n<N.length;n++)r=N[n],s.classList.contains("pswp__"+r.name)&&(w[r.option]?(s.classList.remove("pswp__element--disabled"),r.onInit&&r.onInit(s)):s.classList.add("pswp__element--disabled"))}})(o.children),l(popupob.topbar.children),w.shareEl&&d&&u&&(T=!0),D(),w.timeToIdle&&g("mouseUsed",(function(){n.bind(document,"mousemove",P),n.bind(document,"mouseout",j),C=setInterval((function(){2==++H&&$.setIdle(!0)}),w.timeToIdle/2)})),w.fullscreenEl&&(screenfull.on("change",$.updateFullscreen),$.updateFullscreen()),w.preloaderEl&&(q(!0),g("beforeChange",(function(){clearTimeout(b),b=setTimeout((function(){e.currItem&&e.currItem.loading?e.currItem.img&&!e.currItem.img.naturalWidth&&q(!1):q(!0)}),w.loadingIndicatorDelay)})),g("imageLoadComplete",(function(t,n){e.currItem===n&&q(!0)})))},$.setIdle=function(t){m=t,F(o,"ui--idle",t)},$.update=function(){if(S&&e.currItem){if($.updateIndexIndicator(),w.captionEl){var t=w.addCaptionHTMLFn(e.currItem,a);F(a,"caption--empty",!t)}I=!0}else I=!1;T||O(),D()},$.updateFullscreen=function(t){t&&setTimeout((function(){e.setScrollOffset(0,n.getScrollY())}),50),n.toggle_class(c,"pswp--fs",screenfull.isFullscreen)},$.updateIndexIndicator=function(){w.counterEl&&(s.innerHTML=e.getCurrentIndex()+1+w.indexIndicatorSep+w.getNumItemsFn()),!w.loop&&w.arrowEl&&w.getNumItemsFn()>1&&(n.toggle_class(r,"pswp__element--disabled",0===e.getCurrentIndex()),n.toggle_class(l,"pswp__element--disabled",e.getCurrentIndex()===w.getNumItemsFn()-1))},$.onGlobalTap=function(t){var n=(t=t||window.event).target||t.srcElement;if(!x)if(t.detail&&"mouse"===t.detail.pointerType){if(!t.detail.rightClick)if(("zoom"==x3_settings.popup.click||w.getNumItemsFn()<2||e.getZoomLevel()>e.currItem.fitRatio)&&n.classList.contains("pswp__img"))e.currItem.fitRatio<1&&e.toggleDesktopZoom(t.detail.releasePoint);else if(0===n.className.indexOf("pswp__")){var o=(w.getNumItemsFn()>2||!e.getCurrentIndex())&&("next"==x3_settings.popup.click||t.detail.releasePoint.x>popupob.pswp.clientWidth/2)?"next":"prev";e[o]()}}else x3_tests.dual_input?x3_tests.legacy_ie||$.setIdle(!m):$.toggleControls(!S)},$.toggleControls=function(t){S=t,t&&!I&&$.update(),F(o,"ui--hidden",!t)},$.enterFullscreen=function(){f=w.closeOnScroll,w.closeOnScroll=!1,screenfull.request(popupob.pswp)},$.exitFullscreen=function(){w.closeOnScroll=f,screenfull.exit()}},ot={bind:function(t,e,n,o){var a=(o?"remove":"add")+"EventListener";e=e.split(" ");for(var i=0;i<e.length;i++)e[i]&&t[a](e[i],n,!1)},createEl:function(t,e){var n=document.createElement(e||"div");return t&&(n.className=t),n},resetEl:function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},getScrollY:function(){return window.pageYOffset},unbind:function(t,e,n){ot.bind(t,e,n,!0)},toggle_class:function(t,e,n){t.classList[n?"add":"remove"](e)},arraySearch:function(t,e,n){for(var i=t.length;i--;)if(t[i][n]===e)return i;return-1},copy_unique:function(t,e){Object.keys(e).forEach((function(n){t.hasOwnProperty(n)||(t[n]=e[n])}))},easing:{sine:{out:function(t){return Math.sin(t*(Math.PI/2))},inOut:function(t){return-(Math.cos(Math.PI*t)-1)/2}},cubic:{out:function(t){return--t*t*t+1}}},features:{touch:x3_tests.touch,raf:window.requestAnimationFrame,caf:window.cancelAnimationFrame,pointerEvent:!!window.PointerEvent||navigator.msPointerEnabled,is_mouse:x3_tests.only_pointer}},at=function(e,n,o,a){var s=this,r={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:x3_tests.only_pointer,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,transition:"default",play_transition:"glide",isClickableElement:function(t){return"A"===t.tagName},getDoubleTapZoom:function(t,e){return t||e.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1};t.assign(r,a);var l,c,d,u,h,p,f,m,g,v,y,b,_,w,x,C,k,$,I,S,T,E,A,M,F,D,O,z,L,H,P,j,q,N,Z,R,V,W,B,X,Y,U,Q,G,K,J,tt,et,it,nt,at,st={x:0,y:0},rt={x:0,y:0},lt={x:0,y:0},ct={},dt=0,ut={},ht={x:0,y:0},pt=0,ft=[],mt=!1,gt=function(e,n){t.assign(s,n.publicMethods),ft.push(e)},vt=function(t){var e=He();return t>e-1?t-e:t<0?e+t:t},yt={},bt=function(t,e){return yt[t]||(yt[t]=[]),yt[t].push(e)},_t=function(t){var e=yt[t];if(e){var n=Array.prototype.slice.call(arguments);n.shift();for(var i=0;i<e.length;i++)e[i].apply(s,n)}},wt=function(){return(new Date).getTime()},xt=function(t){it=t,popupob.bg.style.opacity=t*r.bgOpacity},Ct=function(t,e,n,o,a){(!mt||a&&a!==s.currItem)&&(o/=a?a.fitRatio:s.currItem.fitRatio),t.transform=b+e+"px, "+n+"px, 0px) scale("+o+")"},kt=function(t){G&&!s.currItem.loadError&&(t&&(v>s.currItem.fitRatio?mt||(Be(s.currItem,!1,!0),mt=!0):mt&&(Be(s.currItem),mt=!1)),Ct(G,lt.x,lt.y,v))},$t=function(t){t.container&&Ct(t.container.style,t.initialPosition.x,t.initialPosition.y,t.initialZoomLevel,t)},It=function(t,e){e.transform=b+t+"px, 0px, 0px)"},St=function(t,e){if(!r.loop&&e){var n=u+(ht.x*dt-t)/ht.x,o=Math.round(t-se.x);(n<0&&o>0||n>=He()-1&&o<0)&&(t=se.x+o*r.mainScrollEndFriction)}se.x=t,It(t,h)},Tt=function(t,e){var n=re[t]-ut[t];return rt[t]+st[t]+n-n*(e/y)},Et=function(t,e){t.x=e.x,t.y=e.y,e.id&&(t.id=e.id)},At=function(t){t.x=Math.round(t.x),t.y=Math.round(t.y)},Mt=function(){O.is_mouse||(e.classList.add("pswp--has_mouse"),M+=" pswp--has_mouse",O.is_mouse=r.mouseUsed=!0),_t("mouseUsed")},Ft=null,Dt=function(){Ft&&(ot.unbind(document,"mousemove",Dt),Mt()),Ft=setTimeout((function(){Ft=null}),100)},Ot=function(t,e){var n=Ze(s.currItem,ct,t);return e&&(Q=n),n},zt=function(t){return(t||s.currItem).initialZoomLevel},Lt=function(t){return(t||s.currItem).w>0?r.maxSpreadZoom:1},Ht=function(t,e,n,o){return o===s.currItem.initialZoomLevel?(n[t]=s.currItem.initialPosition[t],!0):(n[t]=Tt(t,o),n[t]>e.min[t]?(n[t]=e.min[t],!0):n[t]<e.max[t]&&(n[t]=e.max[t],!0))},Pt=function(t){var e="";if(r.escKey&&27===t.keyCode?e="close":r.arrowKeys&&(37===t.keyCode?e="prev":39===t.keyCode&&(e="next")),!e||t.ctrlKey||t.altKey||t.shiftKey||t.metaKey)return!1;t.preventDefault(),s[e]()},jt=function(t){t&&(V||R||K||q)&&(t.preventDefault(),t.stopPropagation())},qt=function(){s.setScrollOffset(0,ot.getScrollY())},Nt={},Zt=0,Rt=function(t){Nt[t]&&(Nt[t].raf&&A(Nt[t].raf),Zt--,delete Nt[t])},Vt=function(t){Nt[t]&&Rt(t),Nt[t]||(Zt++,Nt[t]={})},Wt=function(){for(var t in Nt)Nt.hasOwnProperty(t)&&Rt(t)},Bt=function(t,e,n,o,a,s,r){var l,c=wt();Vt(t);var d=function(){if(Nt[t]){if((l=wt()-c)>=o)return Rt(t),s(n),void(r&&r());s((n-e)*a(l/o)+e),Nt[t].raf=E(d)}};d()},Xt={shout:_t,listen:bt,viewportSize:ct,options:r,isMainScrollAnimating:function(){return K},getZoomLevel:function(){return v},getCurrentIndex:function(){return u},isDragging:function(){return N},isZooming:function(){return Y},setScrollOffset:function(t,e){ut.x=t,D=ut.y=e},applyZoomPan:function(t,e,n,o){lt.x=e,lt.y=n,v=t,kt(o)},init:function(){if(!l&&!c){var i;for(s.framework=ot,s.template=e,M=e.className,l=!0,O=ot.features,E=O.raf,A=O.caf,h=popupob.container.style,s.itemHolders=w=[{el:popupob.items[0],wrap:0,index:-1},{el:popupob.items[1],wrap:0,index:-1},{el:popupob.items[2],wrap:0,index:-1}],w[0].el.style.display=w[2].el.style.display="none",b="translate"+(T?"(":"3d("),g={resize:s.updateSize,orientationchange:function(){clearTimeout(z),z=setTimeout((function(){ct.x!==popupob.scrollwrap.clientWidth&&s.updateSize()}),500)},scroll:qt,keydown:Pt,click:jt},i=0;i<ft.length;i++)s["init"+ft[i]]();if(n)(s.ui=new n(s,ot)).init();_t("firstUpdate"),u=u||r.index||0,(isNaN(u)||u<0||u>=He())&&(u=0),s.currItem=Le(u),e.setAttribute("aria-hidden","false"),void 0===D&&(_t("initialLayout"),D=F=ot.getScrollY());var t="pswp--open"+(r.mainClass?" "+r.mainClass:"")+(r.showHideOpacity?" pswp--animate_opacity":"")+(x3_tests.is_pointer&&("zoom"==x3_settings.popup.click||r.getNumItemsFn()<2)?" pswp--zoom-cursor":"");for(DOMTokenList.prototype.add.apply(e.classList,t.split(" ")),s.updateSize(),p=-1,pt=null,i=0;i<3;i++)It((i+p)*ht.x,w[i].el.style);ot.bind(popupob.scrollwrap,m,s),bt("initialZoomInEnd",(function(){s.setContent(w[0],u-1),s.setContent(w[2],u+1),w[0].el.style.display=w[2].el.style.display="block",r.focus&&e.focus(),ot.bind(document,"keydown",s),ot.bind(popupob.scrollwrap,"click",s),O.is_mouse?Mt():x3_tests.is_pointer&&ot.bind(document,"mousemove",Dt),ot.bind(window,"resize scroll orientationchange",s),_t("bindEvents")})),s.setContent(w[1],u),s.updateCurrItem(),e.classList.add("pswp--visible")}},close:function(){l&&(l=!1,c=!0,_t("close"),setTimeout((function(){ot.unbind(window,"resize scroll orientationchange",s)}),400),ot.unbind(window,"scroll",g.scroll),ot.unbind(document,"keydown",s),x3_tests.is_pointer&&ot.unbind(document,"mousemove",Dt),ot.unbind(popupob.scrollwrap,"click",s),N&&ot.unbind(window,f,s),clearTimeout(z),_t("unbindEvents"),Pe(s.currItem,null,!0,s.destroy))},destroy:function(){_t("destroy"),Fe&&clearTimeout(Fe),e.setAttribute("aria-hidden","true"),e.className=M,ot.unbind(popupob.scrollwrap,m,s),ot.unbind(window,"scroll",s),de(),Wt(),yt={}},panTo:function(t,e,n){n||(t>Q.min.x?t=Q.min.x:t<Q.max.x&&(t=Q.max.x),e>Q.min.y?e=Q.min.y:e<Q.max.y&&(e=Q.max.y)),t==lt.x&&e==lt.y||(lt.x=t,lt.y=e,kt())},handleEvent:function(t){t=t||window.event,g[t.type]&&g[t.type](t)},goTo:function(e,n,o){var a=o?r.play_transition:r.transition;if("slide"===a)Ee("swipe",80*e,{lastFlickDist:{x:80,y:0},lastFlickOffset:{x:80*e,y:0},lastFlickSpeed:{x:2*e,y:0}});else{var l=(e=vt(e))-u;pt=l,u=e,s.currItem=Le(u),dt-=l,St(ht.x*dt),Wt(),K=!1,popupob.image_anim&&!popupob.image_anim.paused&&popupob.image_anim.pause();var c=!!popupob.transitions.hasOwnProperty(a)&&popupob.transitions[a](n);if(popupob.caption_transition_delay=c&&c.duration||0,s.updateCurrItem(),!c)return;var d=!!s.currItem.container&&s.currItem.container.lastElementChild;d&&(popupob.image_timer?clearTimeout(popupob.image_timer):popupob.image_anim=anime(t.assign({targets:d},c)),popupob.image_timer=setTimeout((function(){popupob.image_timer=!1}),300))}},next:function(t){if(r.loop||u!==He()-1){var e=t?r.play_transition:r.transition;s.goTo("slide"===e?-1:parseInt(u)+1,1,t)}},prev:function(){(r.loop||0!==u)&&s.goTo("slide"===r.transition?1:parseInt(u)-1,-1)},updateCurrZoomItem:function(t){t&&_t("beforeChange",0);var e=w[1].el.children;G=e.length&&e[0].classList.contains("pswp__zoom-wrap")?e[0].style:null,Q=s.currItem.bounds,y=v=s.currItem.initialZoomLevel,lt.x=Q.center.x,lt.y=Q.center.y,t&&_t("afterChange")},invalidateCurrItems:function(){_=!0;for(var i=0;i<3;i++)w[i].item&&(w[i].item.needsUpdate=!0)},updateCurrItem:function(t){if(0!==pt){var e,n=Math.abs(pt);if(!(t&&n<2)){s.currItem=Le(u),mt=!1,_t("beforeChange",pt),n>=3&&(p+=pt+(pt>0?-3:3),n=3);for(var i=0;i<n;i++)pt>0?(e=w.shift(),w[2]=e,p++,It((p+2)*ht.x,e.el.style),s.setContent(e,u-n+i+1+1)):(e=w.pop(),w.unshift(e),p--,It(p*ht.x,e.el.style),s.setContent(e,u+n-i-1-1));if(G&&1===Math.abs(pt)){var o=Le(x);o.initialZoomLevel!==v&&(Ze(o,ct),Be(o),$t(o))}pt=0,s.updateCurrZoomItem(),x=u,_t("afterChange")}}},updateSize:function(t){if(ct.x=popupob.scrollwrap.clientWidth,ct.y=popupob.scrollwrap.clientHeight,qt(),ht.x=ct.x+Math.round(ct.x*r.spacing),ht.y=ct.y,St(ht.x*dt),_t("beforeResize"),void 0!==p){for(var e,n,o,i=0;i<3;i++)e=w[i],It((i+p)*ht.x,e.el.style),o=u+i-1,r.loop&&He()>2&&(o=vt(o)),(n=Le(o))&&(_||n.needsUpdate||!n.bounds)?(s.cleanSlide(n),s.setContent(e,o),1===i&&(s.currItem=n,s.updateCurrZoomItem(!0)),n.needsUpdate=!1):-1===e.index&&o>=0&&s.setContent(e,o),n&&n.container&&(Ze(n,ct),Be(n),$t(n));_=!1}y=v=s.currItem.initialZoomLevel,(Q=s.currItem.bounds)&&(lt.x=Q.center.x,lt.y=Q.center.y,kt(!0)),_t("resize")},zoomTo:function(t,e,n,o,a){e&&(y=v,re.x=Math.abs(e.x)-lt.x,re.y=Math.abs(e.y)-lt.y,Et(rt,lt));var s=Ot(t,!1),r={};Ht("x",s,r,t),Ht("y",s,r,t);var l=v,c=lt.x,d=lt.y;At(r);var u=function(e){1===e?(v=t,lt.x=r.x,lt.y=r.y):(v=(t-l)*e+l,lt.x=(r.x-c)*e+c,lt.y=(r.y-d)*e+d),a&&a(e),kt(1===e)};n?Bt("customZoomTo",0,1,n,o||ot.easing.sine.inOut,u):u(1)}},Yt={},Ut={},Qt={},Gt={},Kt={},Jt=[],te={},ee=[],ie={},ne=0,oe={x:0,y:0},ae=0,se={x:0,y:0},re={x:0,y:0},le={x:0,y:0},ce=function(t,e){return ie.x=Math.abs(t.x-e.x),ie.y=Math.abs(t.y-e.y),Math.sqrt(ie.x*ie.x+ie.y*ie.y)},de=function(){W&&(A(W),W=null)},ue=function(){N&&(W=E(ue),$e())},he=function(t,e){return!(!t||t===document||t===popupob.scrollwrap)&&(e(t)?t:he(t.parentNode,e))},pe={},fe=function(t,e){return pe.prevent=!he(t.target,r.isClickableElement),_t("preventDragEvent",t,e,pe),pe.prevent},me=function(t,e){return e.x=t.pageX,e.y=t.pageY,e.id=t.identifier,e},ge=function(t,e,n){n.x=.5*(t.x+e.x),n.y=.5*(t.y+e.y)},ve=function(){var t=lt.y-s.currItem.initialPosition.y;return 1-Math.abs(t/(ct.y/2))},ye={},be={},_e=[],we=function(t){for(;_e.length>0;)_e.pop();return S?(at=0,Jt.forEach((function(t){0===at?_e[0]=t:1===at&&(_e[1]=t),at++}))):t.type.indexOf("touch")>-1?t.touches&&t.touches.length>0&&(_e[0]=me(t.touches[0],ye),t.touches.length>1&&(_e[1]=me(t.touches[1],be))):(ye.x=t.pageX,ye.y=t.pageY,ye.id="",_e[0]=ye),_e},xe=function(t,e){var n,o,a,l,c=lt[t]+e[t],d=e[t]>0,u=se.x+e.x,h=se.x-te.x;if(n=c>Q.min[t]||c<Q.max[t]?r.panEndFriction:1,c=lt[t]+e[t]*n,(r.allowPanToNext||v===s.currItem.initialZoomLevel)&&(G?"h"!==J||"x"!==t||R||(d?(c>Q.min[t]&&(n=r.panEndFriction,Q.min[t]-c,o=Q.min[t]-rt[t]),(o<=0||h<0)&&He()>1?(l=u,h<0&&u>te.x&&(l=te.x)):Q.min.x!==Q.max.x&&(a=c)):(c<Q.max[t]&&(n=r.panEndFriction,c-Q.max[t],o=rt[t]-Q.max[t]),(o<=0||h>0)&&He()>1?(l=u,h>0&&u<te.x&&(l=te.x)):Q.min.x!==Q.max.x&&(a=c))):l=u,"x"===t))return void 0!==l&&(St(l,!0),B=l!==te.x),Q.min.x!==Q.max.x&&(void 0!==a?lt.x=a:B||(lt.x+=e.x*n)),void 0!==l;!K&&!B&&v>s.currItem.fitRatio&&(lt[t]+=e[t]*n)},Ce=function(t){if("pointerdown"!==t.type||!(t.which>1||t.ctrlKey))if(ze)t.preventDefault();else{if(fe(t,!0)&&t.preventDefault(),_t("pointerDown"),S){var e=ot.arraySearch(Jt,t.pointerId,"id");e<0&&(e=Jt.length),Jt[e]={x:t.pageX,y:t.pageY,id:t.pointerId}}var n=we(t),o=n.length;X=null,Wt(),N&&1!==o||(N=tt=!0,ot.bind(window,f,s),j=nt=et=q=B=V=Z=R=!1,J=null,_t("firstTouchStart",n),Et(rt,lt),st.x=st.y=0,Et(Gt,n[0]),Et(Kt,Gt),te.x=ht.x*dt,ee=[{x:Gt.x,y:Gt.y}],H=L=wt(),Ot(v,!0),de(),ue()),!Y&&o>1&&!K&&!B&&(y=v,R=!1,Y=Z=!0,st.y=st.x=0,Et(rt,lt),Et(Yt,n[0]),Et(Ut,n[1]),ge(Yt,Ut,le),re.x=Math.abs(le.x)-lt.x,re.y=Math.abs(le.y)-lt.y,U=ce(Yt,Ut))}},ke=function(t){if(t.preventDefault(),S){var e=ot.arraySearch(Jt,t.pointerId,"id");if(e>-1){var n=Jt[e];n.x=t.pageX,n.y=t.pageY}}if(N){var o=we(t);if(J||V||Y)X=o;else if(se.x!==ht.x*dt)J="h";else{var a=Math.abs(o[0].x-Gt.x)-Math.abs(o[0].y-Gt.y);Math.abs(a)>=10&&(J=a>0?"h":"v",X=o)}}},$e=function(){if(X){var t=X.length;if(0!==t)if(Et(Yt,X[0]),Qt.x=Yt.x-Gt.x,Qt.y=Yt.y-Gt.y,Y&&t>1){if(Gt.x=Yt.x,Gt.y=Yt.y,!Qt.x&&!Qt.y&&function(t,e){return t.x===e.x&&t.y===e.y}(X[1],Ut))return;Et(Ut,X[1]),R||(R=!0);var e=ce(Yt,Ut),n=Ae(e);n>s.currItem.initialZoomLevel+s.currItem.initialZoomLevel/15&&(nt=!0);var o=1,a=zt(),l=Lt();if(n<a)if(r.pinchToClose&&!nt&&y<=s.currItem.initialZoomLevel){var c=1-(a-n)/(a/1.2);xt(c),_t("onPinchClose",c),et=!0}else(o=(a-n)/a)>1&&(o=1),n=a-o*(a/3);else n>l&&((o=(n-l)/(6*a))>1&&(o=1),n=l+o*a);o<0&&(o=0),e,ge(Yt,Ut,oe),st.x+=oe.x-le.x,st.y+=oe.y-le.y,Et(le,oe),lt.x=Tt("x",n),lt.y=Tt("y",n),j=n>v,v=n,kt()}else{if(!J)return;if(tt&&(tt=!1,Math.abs(Qt.x)>=10&&(Qt.x-=X[0].x-Kt.x),Math.abs(Qt.y)>=10&&(Qt.y-=X[0].y-Kt.y)),Gt.x=Yt.x,Gt.y=Yt.y,0===Qt.x&&0===Qt.y)return;if("v"===J&&r.closeOnVerticalDrag&&v===s.currItem.initialZoomLevel){st.y+=Qt.y,lt.y+=Qt.y;var d=ve();return q=!0,_t("onVerticalDrag",d),xt(d),void kt()}!function(t,e,n){if(t-H>50){var o=ee.length>2?ee.shift():{};o.x=e,o.y=n,ee.push(o),H=t}}(wt(),Yt.x,Yt.y),V=!0,Q=s.currItem.bounds,xe("x",Qt)||(xe("y",Qt),At(lt),kt())}}},Ie=function(t){var e;if(_t("pointerUp"),fe(t,!1)&&t.preventDefault(),S){var n=ot.arraySearch(Jt,t.pointerId,"id");if(n>-1)if(e=Jt.splice(n,1)[0],navigator.msPointerEnabled){e.type={4:"mouse",2:"touch",3:"pen"}[t.pointerType],e.type||(e.type=t.pointerType||"mouse")}else e.type=t.pointerType||"mouse"}var o,a=we(t),l=a.length;if("mouseup"===t.type&&(l=0),2===l)return X=null,!0;1===l&&Et(Kt,a[0]),0!==l||J||K||(e||("mouseup"===t.type?e={x:t.pageX,y:t.pageY,type:"mouse"}:t.changedTouches&&t.changedTouches[0]&&(e={x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY,type:"touch"})),_t("touchRelease",t,e));var c=-1;if(0===l&&(N=!1,ot.unbind(window,f,s),de(),Y?c=0:-1!==ae&&(c=wt()-ae)),ae=1===l?wt():-1,o=-1!==c&&c<150?"zoom":"swipe",Y&&l<2&&(Y=!1,1===l&&(o="zoomPointerUp"),_t("zoomGestureEnded")),X=null,V||R||K||q)if(Wt(),P||(P=Se()),P.calculateSwipeSpeed("x"),q){if(ve()<r.verticalDragRange)s.close();else{var d=lt.y,u=it;Bt("verticalDrag",0,1,300,ot.easing.cubic.out,(function(t){lt.y=(s.currItem.initialPosition.y-d)*t+d,xt((1-u)*t+u),kt()})),_t("onVerticalDrag",1)}}else{if((B||K)&&0===l){var h=Gt.x-Kt.x;if(Ee(o,h,P))return;o="zoomPointerUp"}K||("swipe"===o?!B&&v>s.currItem.fitRatio&&Te(P):Me())}},Se=function(){var t,e,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(o){ee.length>1?(t=wt()-H+50,e=ee[ee.length-2][o]):(t=wt()-L,e=Kt[o]),n.lastFlickOffset[o]=Gt[o]-e,n.lastFlickDist[o]=Math.abs(n.lastFlickOffset[o]),n.lastFlickDist[o]>20?n.lastFlickSpeed[o]=n.lastFlickOffset[o]/t:n.lastFlickSpeed[o]=0,Math.abs(n.lastFlickSpeed[o])<.1&&(n.lastFlickSpeed[o]=0),n.slowDownRatio[o]=.95,n.slowDownRatioReverse[o]=1-n.slowDownRatio[o],n.speedDecelerationRatio[o]=1},calculateOverBoundsAnimOffset:function(t,e){n.backAnimStarted[t]||(lt[t]>Q.min[t]?n.backAnimDestination[t]=Q.min[t]:lt[t]<Q.max[t]&&(n.backAnimDestination[t]=Q.max[t]),void 0!==n.backAnimDestination[t]&&(n.slowDownRatio[t]=.7,n.slowDownRatioReverse[t]=1-n.slowDownRatio[t],n.speedDecelerationRatioAbs[t]<.05&&(n.lastFlickSpeed[t]=0,n.backAnimStarted[t]=!0,Bt("bounceZoomPan"+t,lt[t],n.backAnimDestination[t],e||300,ot.easing.sine.out,(function(e){lt[t]=e,kt()})))))},calculateAnimOffset:function(t){n.backAnimStarted[t]||(n.speedDecelerationRatio[t]=n.speedDecelerationRatio[t]*(n.slowDownRatio[t]+n.slowDownRatioReverse[t]-n.slowDownRatioReverse[t]*n.timeDiff/10),n.speedDecelerationRatioAbs[t]=Math.abs(n.lastFlickSpeed[t]*n.speedDecelerationRatio[t]),n.distanceOffset[t]=n.lastFlickSpeed[t]*n.speedDecelerationRatio[t]*n.timeDiff,lt[t]+=n.distanceOffset[t])},panAnimLoop:function(){if(Nt.zoomPan&&(Nt.zoomPan.raf=E(n.panAnimLoop),n.now=wt(),n.timeDiff=n.now-n.lastNow,n.lastNow=n.now,n.calculateAnimOffset("x"),n.calculateAnimOffset("y"),kt(),n.calculateOverBoundsAnimOffset("x"),n.calculateOverBoundsAnimOffset("y"),n.speedDecelerationRatioAbs.x<.05&&n.speedDecelerationRatioAbs.y<.05))return lt.x=Math.round(lt.x),lt.y=Math.round(lt.y),kt(),void Rt("zoomPan")}};return n},Te=function(t){if(t.calculateSwipeSpeed("y"),Q=s.currItem.bounds,t.backAnimDestination={},t.backAnimStarted={},Math.abs(t.lastFlickSpeed.x)<=.05&&Math.abs(t.lastFlickSpeed.y)<=.05)return t.speedDecelerationRatioAbs.x=t.speedDecelerationRatioAbs.y=0,t.calculateOverBoundsAnimOffset("x"),t.calculateOverBoundsAnimOffset("y"),!0;Vt("zoomPan"),t.lastNow=wt(),t.panAnimLoop()},Ee=function(t,e,n){var o,a,l;if(popupob.caption_transition_delay=0,K||(ne=u),"swipe"===t){var c=n.lastFlickDist.x<10;e>30&&(c||n.lastFlickOffset.x>20)?a=-1:e<-30&&(c||n.lastFlickOffset.x<-20)&&(a=1)}a&&((u+=a)<0?(u=r.loop?He()-1:0,l=!0):u>=He()&&(u=r.loop?0:He()-1,l=!0),l&&!r.loop||(pt+=a,dt-=a,o=!0));var d,h=ht.x*dt,p=Math.abs(h-se.x);return d=(o||h>se.x==n.lastFlickSpeed.x>0)&&Math.abs(n.lastFlickSpeed.x)>0?Math.max(Math.min(p/Math.abs(n.lastFlickSpeed.x),400),250):333,ne===u&&(o=!1),K=!0,o&&popupob.toggle_timer(!1),Bt("mainScroll",se.x,h,d,ot.easing.cubic.out,St,(function(){Wt(),K=!1,ne=-1,(o||ne!==u)&&s.updateCurrItem(),_t("mainScrollAnimComplete")})),o&&s.updateCurrItem(!0),o},Ae=function(t){return 1/U*t*y},Me=function(){var t=v,e=zt(),n=Lt();v<e?t=e:v>n&&(t=n);var o,a=it;return et&&!j&&!nt&&v<e?(s.close(),!0):(et&&(o=function(t){xt((1-a)*t+a)}),s.zoomTo(t,0,200,ot.easing.cubic.out,o),!0)};gt("Gestures",{publicMethods:{initGestures:function(){var t=function(t,e,n,o,a){C=t+e,k=t+n,$=t+o,I=a?t+a:""};(S=O.pointerEvent)&&O.touch&&(O.touch=!1),S?t("pointer","down","move","up","cancel"):O.touch?(t("touch","start","move","end","cancel"),T=!0):t("mouse","down","move","up"),f=k+" "+$+" "+I,m=C,S&&!T&&(T=x3_tests.touch),s.likelyTouchDevice=T,g[C]=Ce,g[k]=ke,g[$]=Ie,I&&(g[I]=g[$]),O.dual_input&&(m+=" mousedown",f+=" mousemove mouseup",g.mousedown=g[C],g.mousemove=g[k],g.mouseup=g[$]),T||(r.allowPanToNext=!1)}}});var Fe,De,Oe,ze,Le,He,Pe=function(t,n,o,a){var l;Fe&&clearTimeout(Fe),ze=!0,Oe=!0,t.initialLayout?(l=t.initialLayout,t.initialLayout=null):l=r.getThumbBoundsFn&&r.getThumbBoundsFn(u,o);var c=o?r.hideAnimationDuration:r.showAnimationDuration,h=function(){Rt("initialZoom"),o?(s.template.removeAttribute("style"),popupob.bg.style.removeProperty("opacity")):(xt(1),n&&(n.style.display="block"),e.classList.add("pswp--animated-in")),_t("initialZoom"+(o?"OutEnd":"InEnd")),a&&a(),ze=!1};if(!c||!l||void 0===l.x)return _t("initialZoom"+(o?"Out":"In")),o?e.style.opacity=0:(v=t.initialZoomLevel,Et(lt,t.initialPosition),kt(),e.style.opacity=1,xt(1)),void(c?setTimeout((function(){h()}),c):h());var p,f;p=d,f=!s.currItem.src||s.currItem.loadError||r.showHideOpacity,t.miniImg&&(t.miniImg.style.webkitBackfaceVisibility="hidden"),o||(v=l.w/t.w,lt.x=l.x,lt.y=l.y-F,popupob[f?"pswp":"bg"].style.opacity=.001,kt()),Vt("initialZoom"),o&&!p&&e.classList.remove("pswp--animated-in"),f&&(o?ot.toggle_class(e,"pswp--animate_opacity",!p):setTimeout((function(){e.classList.add("pswp--animate_opacity")}),30)),Fe=setTimeout((function(){if(_t("initialZoom"+(o?"Out":"In")),o){var n=l.w/t.w,a={x:lt.x,y:lt.y},s=v,r=it,d=function(t){1===t?(v=n,lt.x=l.x,lt.y=l.y-D):(v=(n-s)*t+s,lt.x=(l.x-a.x)*t+a.x,lt.y=(l.y-D-a.y)*t+a.y),kt(),f?e.style.opacity=1-t:xt(r-t*r)};p?Bt("initialZoom",0,1,c,ot.easing.cubic.out,d,h):(d(1),Fe=setTimeout(h,c+20))}else v=t.initialZoomLevel,Et(lt,t.initialPosition),kt(),xt(1),f?e.style.opacity=1:xt(1),Fe=setTimeout(h,c+20)}),o?10:20)},je={},qe=[],Ne={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',preload:[1,1],getNumItemsFn:function(){return De.length}},Ze=function(t,e,n){if(t.src&&!t.loadError){var o=!n;if(je.x=e.x,je.y=e.y,o){var a=je.x/t.w,s=je.y/t.h;t.fitRatio=a<s?a:s,(n=t.fitRatio)>1&&(n=1),t.initialZoomLevel=n,t.bounds||(t.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}})}if(!n)return;return function(t,e,n){var o=t.bounds;o.center.x=Math.round((je.x-e)/2),o.center.y=Math.round((je.y-n)/2),o.max.x=e>je.x?Math.round(je.x-e):o.center.x,o.max.y=n>je.y?Math.round(je.y-n):o.center.y,o.min.x=e>je.x?0:o.center.x,o.min.y=n>je.y?0:o.center.y}(t,t.w*n,t.h*n),o&&n===t.initialZoomLevel&&(t.initialPosition=t.bounds.center),t.bounds}return t.w=t.h=0,t.initialZoomLevel=t.fitRatio=1,t.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}},t.initialPosition=t.bounds.center,t.bounds},Re=function(t,e,n,o,a,r){e.loadError||o&&(e.imageAppended=!0,Be(e,o,e===s.currItem&&mt),n.appendChild(o),r&&setTimeout((function(){e&&e.loaded&&e.placeholder&&(e.placeholder.style.display="none",e.placeholder=null)}),500))},Ve=function(t){t.loading=!0,t.loaded=!1;var e=t.img=ot.createEl("pswp__img","img"),n=function(){t.loading=!1,t.loaded=!0,t.loadComplete?t.loadComplete(t):t.img=null,e.onload=e.onerror=null,e=null};return e.onload=n,e.onerror=function(){t.loadError=!0,n()},e.src=t.src,e},We=function(t,e){if(t.src&&t.loadError&&t.container)return e&&ot.resetEl(t.container),t.container.innerHTML=r.errorMsg.replace("%url%",t.src),!0},Be=function(t,e,n){if(t.src){e||(e=t.container.lastElementChild);var o=n?t.w:Math.round(t.w*t.fitRatio),a=n?t.h:Math.round(t.h*t.fitRatio);t.placeholder&&!t.loaded&&(t.placeholder.style.width=o+"px",t.placeholder.style.height=a+"px"),e.style.width=o+"px",e.style.height=a+"px"}},Xe=function(){if(qe.length){for(var t,i=0;i<qe.length;i++)(t=qe[i]).holder.index===t.index&&Re(t.index,t.item,t.baseDiv,t.img,0,t.clearPlaceholder);qe=[]}};gt("Controller",{publicMethods:{lazyLoadItem:function(t){t=vt(t);var e=Le(t);e&&(!e.loaded&&!e.loading||_)&&(_t("gettingData",t,e),e.src&&Ve(e))},initController:function(){ot.copy_unique(r,Ne),s.items=De=o,Le=s.getItemAt,He=r.getNumItemsFn,r.loop,He()<3&&(r.loop=!1),bt("beforeChange",(function(t){var i,e=r.preload,n=null===t||t>=0,o=Math.min(e[0],He()),a=Math.min(e[1],He());for(i=1;i<=(n?a:o);i++)s.lazyLoadItem(u+i);for(i=1;i<=(n?o:a);i++)s.lazyLoadItem(u-i)})),bt("initialLayout",(function(){s.currItem.initialLayout=r.getThumbBoundsFn&&r.getThumbBoundsFn(u)})),bt("mainScrollAnimComplete",Xe),bt("initialZoomInEnd",Xe),bt("destroy",(function(){for(var t,i=0;i<De.length;i++)(t=De[i]).container&&(t.container=null),t.placeholder&&(t.placeholder=null),t.img&&(t.img=null),t.preloader&&(t.preloader=null),t.loadError&&(t.loaded=t.loadError=!1);qe=null}))},getItemAt:function(t){return t>=0&&(void 0!==De[t]&&De[t])},setContent:function(t,e){r.loop&&(e=vt(e));var n=s.getItemAt(t.index);n&&(n.container=null);var o,a=s.getItemAt(e);if(a){_t("gettingData",e,a),t.index=e,t.item=a;var c=a.container=ot.createEl("pswp__zoom-wrap");if(!a.src&&a.html&&(a.html.tagName?c.appendChild(a.html):c.innerHTML=a.html),We(a),Ze(a,ct),!a.src||a.loadError||a.loaded)a.src&&!a.loadError&&((o=ot.createEl("pswp__img","img")).style.opacity=1,o.src=a.src,Be(a,o),Re(0,a,c,o));else{a.loadComplete=function(n){if(l){if(t&&t.index===e){if(We(n,!0))return n.loadComplete=n.img=null,Ze(n,ct),$t(n),void(t.index===u&&s.updateCurrZoomItem());n.imageAppended?!ze&&n.placeholder&&(n.placeholder.style.display="none",n.placeholder=null):K||ze?qe.push({item:n,baseDiv:c,img:n.img,index:e,holder:t,clearPlaceholder:!0}):Re(0,n,c,n.img,0,!0)}n.loadComplete=null,n.img=null,_t("imageLoadComplete",e,n)}};var d=a.msrc&&(a.msrc!==a.src||!Oe),h=ot.createEl("pswp__img pswp__img--placeholder"+(d?"":" pswp__img--placeholder--blank"),d?"img":"");d&&(h.src=a.msrc),Be(a,h),c.appendChild(h),a.placeholder=h,a.loading||Ve(a),Oe?Re(0,a,c,a.img,0,!0):qe.push({item:a,baseDiv:c,img:a.img,index:e,holder:t})}Oe||e!==u?$t(a):(G=c.style,Pe(a,o||a.img)),ot.resetEl(t.el),t.el.appendChild(c)}else ot.resetEl(t.el)},cleanSlide:function(t){t.img&&(t.img.onload=t.img.onerror=null),t.loaded=t.loading=t.img=t.imageAppended=!1}}});var Ye,Ue,Qe={},Ge=function(t,e,n){var o=document.createEvent("CustomEvent"),a={origEvent:t,pointerType:n||"touch",releasePoint:e,target:t.target,rightClick:"mouse"===n&&3===t.which};o.initCustomEvent("pswpTap",!0,!0,a),t.target.dispatchEvent(o)};gt("Tap",{publicMethods:{initTap:function(){bt("firstTouchStart",s.onTapStart),bt("touchRelease",s.onTapRelease),bt("destroy",(function(){Qe={},Ye=null}))},onTapStart:function(t){t.length>1&&(clearTimeout(Ye),Ye=null)},onTapRelease:function(t,e){var n,o;if(e&&(!V&&!Z&&!Zt&&(!S||popupob.container.contains(t.target)))){var a=e;if(Ye&&(clearTimeout(Ye),Ye=null,n=a,o=Qe,Math.abs(n.x-o.x)<25&&Math.abs(n.y-o.y)<25))return void _t("doubleTap",a);if("mouse"===e.type)return void Ge(t,e,"mouse");if("A"===t.target.tagName)return;if("BUTTON"===t.target.tagName||t.target.classList.contains("pswp__single-tap"))return void Ge(t,e);Et(Qe,a),Ye=setTimeout((function(){Ge(t,e),Ye=null}),300)}}}}),gt("DesktopZoom",{publicMethods:{initDesktopZoom:function(){x3_tests.dual_input?bt("mouseUsed",(function(){s.setupDesktopZoom()})):x3_tests.is_pointer&&s.setupDesktopZoom(!0)},setupDesktopZoom:function(t){Ue={};var n="wheel mousewheel DOMMouseScroll";bt("bindEvents",(function(){ot.bind(e,n,s.handleMouseWheel)})),bt("unbindEvents",(function(){Ue&&ot.unbind(e,n,s.handleMouseWheel)})),s.mouseZoomedIn=!1;var o,a=function(){s.mouseZoomedIn&&(e.classList.remove("pswp--zoomed-in"),s.mouseZoomedIn=!1),ot.toggle_class(e,"pswp--zoom-allowed",v<1),r()},r=function(){o&&(e.classList.remove("pswp--dragging"),o=!1)};bt("resize",a),bt("afterChange",a),bt("pointerDown",(function(){s.mouseZoomedIn&&(o=!0,e.classList.add("pswp--dragging"))})),bt("pointerUp",r),t||a()},handleMouseWheel:function(t){if(v<=s.currItem.fitRatio)return!r.closeOnScroll||Zt||N?t.preventDefault():Math.abs(t.deltaY)>2&&(d=!0,s.close()),!0;if(t.stopPropagation(),Ue.x=0,"deltaX"in t)1===t.deltaMode?(Ue.x=18*t.deltaX,Ue.y=18*t.deltaY):(Ue.x=t.deltaX,Ue.y=t.deltaY);else if("wheelDelta"in t)t.wheelDeltaX&&(Ue.x=-.16*t.wheelDeltaX),t.wheelDeltaY?Ue.y=-.16*t.wheelDeltaY:Ue.y=-.16*t.wheelDelta;else{if(!("detail"in t))return;Ue.y=t.detail}Ot(v,!0);var e=lt.x-Ue.x,n=lt.y-Ue.y;t.preventDefault(),s.panTo(e,n)},toggleDesktopZoom:function(t){t=t||{x:ct.x/2+ut.x,y:ct.y/2+ut.y};var n=r.getDoubleTapZoom(!0,s.currItem),o=v===n;s.mouseZoomedIn=!o,s.zoomTo(o?s.currItem.initialZoomLevel:n,t,333),ot.toggle_class(e,"pswp--zoomed-in",!o)}}});var Ke,Je,ti,ei,ii,ni,oi,ai,si,ri,li={history:!0},ci=function(){return ri.hash.substring(1)},di=function(){Ke&&clearTimeout(Ke),ti&&clearTimeout(ti)},ui=function(){if(ti&&clearTimeout(ti),Zt||N)ti=setTimeout(ui,500);else{ei?clearTimeout(Je):ei=!0;var t=u+1,e=Le(u);e.hasOwnProperty("pid")&&(t=e.pid);var n=(ni?ni+"&":"")+"pid="+t;oi||-1===ri.hash.indexOf(n)&&(si=!0);var o=ri.href.split("#")[0]+"#"+n;"#"+n!==window.location.hash&&history[oi?"replaceState":"pushState"]("",document.title,o),oi=!0,Je=setTimeout((function(){ei=!1}),60)}};gt("History",{publicMethods:{initHistory:function(){if(ot.copy_unique(r,li),r.history){ri=window.location,si=!1,ai=!1,oi=!1,ni=ci(),bt("afterChange",s.updateURL),bt("unbindEvents",(function(){ot.unbind(window,"hashchange",s.onHashChange)})),history.scrollRestoration&&(history.scrollRestoration="manual");var t=function(){ii=!0,ai||(si?history.back():ni?ri.hash=ni:history.pushState("",document.title,ri.pathname+ri.search)),di(),history.scrollRestoration&&(history.scrollRestoration="auto")};bt("unbindEvents",(function(){d&&t()})),bt("destroy",(function(){ii||t()}));var e=ni.indexOf("pid=");e>-1&&"&"===(ni=ni.substring(0,e)).slice(-1)&&(ni=ni.slice(0,-1)),setTimeout((function(){l&&ot.bind(window,"hashchange",s.onHashChange)}),40)}},onHashChange:function(){if(ci()===ni)return ai=!0,void s.close()},updateURL:function(){di(),oi?Ke=setTimeout(ui,800):ui()}}}),t.assign(s,Xt)};$.slidebars=function(t){var e=s.children(".sb-right"),n=e.hasClass("sb-style-push"),l=s.children(".sb-toggle"),c=!1,u=!1,h=o.width(),p=0!==Wt.indexOf("slidemenu")&&1024;function f(){!p||p>=h?(u=!0,a.addClass("sb-init")):p<h&&(u=!1,a.removeClass("sb-init"),c&&v())}function m(t,o,s,l){(n?r.add(d):t).velocity("stop").velocity({translateX:o},{duration:400,easing:"easeOutQuint",complete:function(){c||(a.removeClass("sb-active sb-active-right"),e.removeClass("sb-active"),r.css("transform",""),void 0!==l&&$.pronto("load",l))}})}function g(t){u&&!c&&(x3_tests.touch&&r.one("touchstart.sb-close",(function(t){qt.slidebars.close()})),l.addClass("open"),a.addClass("sb-active sb-active-right"),e.addClass("sb-active"),c=!0,m(e,"-"+e[0].offsetWidth))}function v(t){l.removeClass("open"),c&&(x3_tests.touch&&r.off("touchstart.sb-close"),c=!1,m(e,"0px",0,t))}f(),n&&x3_tests.legacy_ie&&a.addClass("sb-ie-fix"),o.on("resize.sb",$.debounce(1e3,(function(){if(h!==o.width())if(h=o.width(),f(),x3_settings.style.layout.overlay&&!x3_tests.mobile){var t=!1;n&&h>1024?(n=!1,t=!0):!n&&h<1025&&(n=!0,t=!0),t?(l.removeClass("open"),e.toggleClass("sb-style-overlay",!n).toggleClass("sb-style-push",n).removeClass("sb-active"),a.removeClass("sb-active sb-active-right"),c&&r.add(d).add(e).velocity("stop").velocity({translateX:0},{duration:0}),c=!1):c&&g()}else c&&g()}))),this.slidebars={open:g,close:v,init:function(){return u},active:function(t){if("right"===t&&e)return c},click:function(t){n&&qt.slidebars.close(),$.pronto("load",t)}}},function(){var t,e,n,o,a,s,r,l,c,d,u,h,p,f,m,g,v=x3_tests.ios,y=(e="sf-breadcrumb",n="sf-js-enabled",o="sf-with-ul",a="sf-arrows",s="behavior"in(t=document.documentElement.style)&&"fill"in t&&/iemobile/i.test(navigator.userAgent),r=!!window.PointerEvent,l=function(t,e){var o=n;e.cssArrows&&(o+=" "+a),t.toggleClass(o)},c=function(t){t.children("a").toggleClass(o)},d=function(t){var e=t.css("ms-touch-action"),n=t.css("touch-action");n="pan-y"===(n=n||e)?"auto":"pan-y",t.css({"ms-touch-action":n,"touch-action":n})},u=function(t){var e=$(this),n=g(e),o=e.siblings(t.data.popUpSelector);if(!1===n.onHandleTouch.call(o))return this;o.length>0&&o.is(":hidden")&&(e.one("click.superfish",!1),"MSPointerDown"===t.type||"pointerdown"===t.type?e.trigger("focus"):$.proxy(h,e.parent("li"))())},h=function(){var t=$(this),e=g(t);if(!t.hasClass("sfHover")){clearTimeout(e.sfTimer);var n=t.siblings(".sfHover"),o=n.length?n.children(e.popUpSelector).data("height"):0;t.siblings().superfish("hide",!0).end().superfish("show",o)}},p=function(){if($(this).hasClass("sfHover")){var t=$(this),e=g(t);v?$.proxy(f,t,e)():(clearTimeout(e.sfTimer),e.sfTimer=setTimeout($.proxy(f,t,e),e.delay))}},f=function(t){t.retainPath=$.inArray(this[0],t.$path)>-1,this.superfish("hide"),this.parents("."+t.hoverClass).length||(t.onIdle.call(m(this)),t.$path.length&&$.proxy(h,t.$path)())},m=function(t){return t.closest("."+n)},g=function(t){return m(t).data("sf-options")},{hide:function(t){if(this.length){var e=g(this);if(!e)return this;var n=!0===e.retainPath?e.$path:"",o=this.find("li."+e.hoverClass).add(this).not(n).removeClass(e.hoverClass).children(e.popUpSelector),a=e.speedOut;t&&(a=0),e.retainPath=!1,e.onBeforeHide.call(o),o.velocity("stop").velocity({opacity:0,scaleY:.98},{duration:a,easing:"easeOutQuint",complete:function(){var t=$(this);t.css("display","none"),e.onHide.call(t)}})}return this},show:function(t){var e=g(this);if(!e)return this;var n=this.children(e.popUpSelector);if(n.length){this.addClass(e.hoverClass),e.onBeforeShow.call(n);var o=t>n.data("height")?1.02:.98,a=0!==t||n.hasClass("full")?1:.7,s="auto"!==n.css("top")?Vt-(parseInt(n.parent("li").offset().top)+parseInt(n.css("top"))):0;return n.css({opacity:a}).velocity("stop").velocity({opacity:1,translateY:[0,s],scaleY:[1,o]},{duration:1.2*e.speed,easing:"easeOutQuint",begin:function(){var t=$(this);if("none"==t.css("display"))if(t.css({display:"block"}),t.hasClass("carousel"))(n=t.find(".owl-item.active")).css("opacity",0).velocity("mega.items",{stagger:Math.round(e.speed/n.length*.5),duration:e.speed});else if(t.hasClass("list"))(n=t.find(".preview > div, .list-inner > li")).css("opacity",0).velocity("menu.items",{stagger:Math.round(e.speed/n.length*.8),duration:e.speed});else{var n;(n=t.children("li")).css("opacity",0).velocity("menu.items",{stagger:Math.round(e.speed/n.length*.6),duration:.9*e.speed})}},complete:e.onShow.call(n)}),this}},destroy:function(){return this.each((function(){var t,n=$(this),o=n.data("sf-options");if(!o)return!1;t=n.find(o.popUpSelector).parent("li"),clearTimeout(o.sfTimer),l(n,o),c(t),d(n),n.off(".superfish").off(".hoverIntent"),t.children(o.popUpSelector).attr("style",(function(i,t){return t.replace(/display[^;]+;?/g,"")})),o.$path.removeClass(o.hoverClass+" "+e).addClass(o.pathClass),n.find("."+o.hoverClass).removeClass(o.hoverClass),o.onDestroy.call(n),n.removeData("sf-options")}))},init:function(t){return this.each((function(){var n=$(this);if(n.data("sf-options"))return!1;var o=$.extend({},$.fn.superfish.defaults,t),a=n.find(o.popUpSelector).parent("li");o.$path=function(t,n){return t.find("li."+n.pathClass).slice(0,n.pathLevels).addClass(n.hoverClass+" "+e).filter((function(){return $(this).children(n.popUpSelector).hide().show().length})).removeClass(n.pathClass)}(n,o),n.data("sf-options",o),l(n,o),c(a),d(n),function(t,e){var n="li:has("+e.popUpSelector+"):not(.clicktoggle)";$.fn.hoverIntent&&!e.disableHI?(t.find(".clicktoggle").on("mousedown.superfish",(function(t){var e=$(this),n=e.hasClass("sfHover")?"hide":"show";e.superfish(n)})).children("a").css("outline","none").on("click.superfish",(function(t){C(t)||(t.preventDefault(),t.stopPropagation())})),t.hoverIntent({over:h,out:p,selector:n,timeout:300,interval:50}),t.find("input, textarea, button").on("focusout.superfish",(function(t){t.stopPropagation()}))):t.on("mouseenter.superfish",n,h).on("mouseleave.superfish",n,p);var o="MSPointerDown.superfish";r&&(o="pointerdown.superfish"),v||(o+=" touchend.superfish"),s&&(o+=" mousedown.superfish"),t.on("focusin.superfish",n,h).on("focusout.superfish","li",p).on(o,"a",e,u)}(n,o),a.not("."+e).superfish("hide",!0),o.onInit.call(this)}))}});$.fn.superfish=function(t,e){return y[t]?y[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?$.error("Method "+t+" does not exist on jQuery.fn.superfish"):y.init.apply(this,arguments)},$.fn.superfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,disableHI:!1,onInit:$.noop,onBeforeShow:$.noop,onShow:$.noop,onBeforeHide:$.noop,onHide:$.noop,onIdle:$.noop,onDestroy:$.noop,onHandleTouch:$.noop},$.fn.extend({hideSuperfishUl:y.hide,showSuperfishUl:y.show})}(),$.Velocity.RegisterUI("menu.items",{calls:[[{opacity:[1,0],translateY:[0,-3]},1,{easing:"easeOutCubic"}]]}),$.Velocity.RegisterUI("mega.items",{calls:[[{opacity:[1,0],translateX:[0,-4]},1,{easing:"easeOutCubic"}]]});var st=!1;$((function(){function t(t){return oe(wt[t])}ie++;t(0);var e=t(1),n=t(2),a=t(3),r=t(4),l=t(5),c=t(6),u=t(7),h=t(8),f=t(9),m=t(10),g=wt[11],v=t(12),y=t(13),b=t(14),w=(t(15),t(16)),x=(t(17),t(18)),C=t(19),k=t(20),I=t(21),S=t(22),T=t(23),E=t(24),M=t(25),F=t(26),D=t(27),O=t(28),H=t(29);function P(t){return T+" "+t+" "+E+c+l+'">'+l+"</a>"}var j=x3_tests.local_storage,q=x3_settings[oe("eA==")],N=x3_settings[oe("dXNlcng=")]===oe("ZnA="),Z=(oe("dGltbw=="),oe("cGFyYW1ldGVycw==")),R=oe("c3RhdHVz"),V=A(location.hostname),W=btoa(V),B=oe("YVtocmVmPSI=")+c+l+'"]',X=[n,a,l,r,u,h],Y=[P(M),P(F),P(D),P(O),P(H)],U=!(!j||null===localStorage.getItem(y))&&localStorage.getItem(y),Q=new RegExp("^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$"),G="p, a",K=oe("Zm9vdGVyLmZvb3Rlcg=="),J=d.find(B).last().closest("p");do_timo=!0,do_check=!1,my_confirm=o[0][oe("Y29uZmlybQ==")],q&&J.hide();var tt={};function et(t){L("auth:",t),t&&0!==t[R]?200==t[R]?void 0!==t[Z]?"1"==t[Z].b?ot(w):"2"==t[Z].b?nt():it():it():nt():it(1)}function it(t){L(x),J.hide(),Lt(),j&&1!==t&&localStorage.setItem(y,W)}function nt(){L(C),q&&J.show(),j&&localStorage.setItem(y,g),d.children(G).not(J).remove(),Lt(),(!x3_tests.touch||x3_tests.screen_max<=1024||0!==x3_settings.style.layout.layout.indexOf("sidebar"))&&(do_check=!0)}function ot(t){z?L(k+t):my_confirm(C+" "+l)&&ae(c,l)}tt[I]=V,tt[S]=3,st=function(){return!!do_check&&function(){var t=s.find(K),e=t.find(B).last(),n=e.parent(),o=n.parent("p"),a=n.html()||"";if(!de&&(_(t)||_(o)||_(n)||_(e)||-1===$.inArray(a,Y)))return ot("r"),!0;return!1}()},ie++,N||$.inArray(V,X)>-1?(L(f),it(1)):!U||p(m)?ne(e+r+"/",tt,et,b):U&&Q.test(U)&&U==g?nt():U&&Q.test(U)&&U==W?it():ot(v+U),ie++}));var rt,lt=function(){function t(t,e){return'<div class="x3-breadcrumb"><a href="'+t+'/" class="x3-breadcrumb-link">'+e.replace(/[_-]/g," ")+"</a></div>"}return function(){var e=document.getElementsByClassName("x3-breadcrumbs");if(e.length){e=D(e);var n=(x3_settings.path?x3_page.permalink.replace(x3_settings.path,""):x3_page.permalink).split("/"),o=!1;e.forEach((function(e){if(n.length-2<(e.dataset.breadcrumbsLevel||x3_settings.plugins.breadcrumbs.level))for(;e.firstChild;)e.removeChild(e.firstChild);else o||(o=function(e){var n=x3_settings.path,o=t(n,"");return e.forEach((function(e){e&&(o+=t(n+="/"+e,e))})),o}(n)),e.innerHTML=o}))}}}();function ct(t){var e=t.find("div[data-carousel]");e.length&&e.each((function(t){var e=$(this),n=e.data("carousel-items")||1,o=String(n).indexOf(",")>-1?n.split(","):[n,Math.ceil(n/2.1),Math.ceil(n/3)],a=!1!==e.data("carousel-responsive")&&"false"!==e.data("carousel-responsive"),s=null!=e.data("carousel-shuffle")&&!1!==e.data("carousel-shuffle"),r=e.data("carousel-attach"),d={items:o[0],loop:e.data("carousel-loop")||!1,dots:!1!==e.data("carousel-dots"),autoplay:!!e.data("carousel-autoplay"),autoplayTimeout:Math.max(e.data("carousel-autoplay")||3e3,1e3),autoplayHoverPause:!0,nestedItemSelector:e.data("carousel-selector")||null};if(s){var u=e.data("carousel-selector");h(n=u?this.getElementsByClassName(u):this.childNodes)}r&&("footer"==r?e.appendTo(c):"header"==r?e.insertAfter(l):"content"==r&&e.insertBefore(c.find(".context").parent())),a&&(d.responsive={0:{items:o[2]||o[1]},768:{items:o[1]||o[0]},1024:{items:o[0]}}),e.owlCarousel(d)}))}function dt(){if(x3_settings.plugins.video_background.src)if(Wt.indexOf("sidebar")>-1)c.find(".content").prepend("<p class=text-center><em>Sorry, video background is not applicable to the sidebar layout.</em></p>");else{var t=x3_settings.plugins.video_background,e=k(t.poster_mobile)||x3_settings.preview_image_full,n=t.menu_style||"",a=parseInt(t.height),r=Math.min(Math.max(a,10),100);source=k(t.src),autoplay=x3_tests.local_storage&&null!==localStorage.getItem("startpage-video-playing")?"0"!==localStorage.getItem("startpage-video-playing"):t.autoplay,timer=null;var l="startpage-video "+n;if(s.addClass(l.trim()),t.hide_context&&(c.find(".context").hide(),s.addClass("no-pad")),t.hide_footer&&s.addClass("no-footer"),t.disable_mobile&&x3_tests.mobile){var d=a/100*document.documentElement.clientHeight;c.prepend('<div class="startpage-video" style="height:'+d+'px"><div style="max-height:'+d+'px"><img src="'+e+'" /></div></div>');var u=c.children(".startpage-video").children("div")}else{c.prepend('<div class="startpage-video" style="height:'+r+'vh"><div style="max-height:'+r+'vh">'+(t.toggleplay?"<i></i>":"")+"<video playsinline "+(t.loop?"loop ":"")+(t.muted?"muted ":"")+(autoplay?"autoplay ":"")+'preload="metadata" src="'+source+'"></video></div></div>');var h=(u=c.children(".startpage-video").children("div")).find("video").get(0);autoplay||!t.toggleplay?h.play():u.addClass("video-paused"),t.toggleplay&&(I(u,"interface"),u.on("click","i",(function(t){var e=$(this);e.css("min-width",e.outerWidth()),h.paused?(h.play(),x3_tests.local_storage&&localStorage.setItem("startpage-video-playing",1),u.removeClass("video-paused")):(h.pause(),x3_tests.local_storage&&localStorage.setItem("startpage-video-playing",0),u.addClass("video-paused"))})))}if(x3_tests.is_orientation){var p=c.children(".startpage-video");o.on("orientationchange.intro-fix",$.debounce(300,!!x3_tests.ios,(function(){var t=a/100*document.documentElement.clientHeight;p.css("height",t+"px"),u.css("max-height",t+"px")})))}t.button_down&&(u.addClass("has-button-down"),$t(u,t.button_down_remove))}}function ut(){var t=c.find(".context");if(t.length){var e=t.find("[data-panorama]");e.length&&N.panorama.load(t,e);var n=t.children(".content");n.length&&(n.find("ul").children("li").children("ul").each((function(){$(this).parent().children("br + br").remove()})),Ce(n),n.applyContactForm(),pe(n),n.find("a").has("img").addClass("img-link-style"),n.on("click.tabs","ul.tabs a",(function(t){Ze($(this))})),n.on("click",".toggle-button",(function(t){qe($(this),t)})),n.on("click","[data-embed-modal]",(function(t){Ie(this.getAttribute("data-embed-modal"),t)})),n.find(".alert-box").has(".close").addClass("alert-box-close"),rt(n),ct(n),n.foundation("reflow"))}}function ht(t,e){var n=t.children(".item"),a=!1;if(n.length||x3_settings[e].embed){var r,l=x3_settings[e].carousel,c=l.tabs?1:l.amount,d=l.target_height,u=l.use_height,h=1===c?10:l.margin,p=l.lazy,f=l.interval,m=f>0,g=l.show_timer,v=l.background,y=m||l.nav||l.tabs,b=l.loop,_="wide"==x3_settings[e].width?h:0,w=!1;if(x3_settings.gallery.embed){w=!0,embed=x3_settings.gallery.embed.split(",");for(var x="",i=0;i<embed.length;i++)x+='<figure class="item item-video"><a class="owl-video" href='+embed[i]+"></a></figure>";t.append(x);var C=t.find(".item-video").first();function k(){r.css("height",Math.round(parseInt(C.innerWidth())*(2/3))+"px")}o.on("resize.videoCarousel",$.debounce(1e3,!1,(function(t){k()})))}if(v&&t.addClass("carousel-bg"),l.tabs){t.prepend('<ul class="small-cols-'+Math.min(n.length,3)+" carousel-tabs carousel-tabs-"+l.tabs_position+' button-group radius"></ul>');var I=t.children(".carousel-tabs")}if(t.addClass("owl-carousel"),l.tabs)var S="";if(n.each((function(t){var e=$(this);if(l.tabs&&(S+='<button class="small button bg3">'+e.attr("id").replace(/folder-|image-/g,"").replace("-"," ")+"</button>"),e.data("popup-index",t),u){var n=e.data("width")/e.data("height"),o=Math.floor(d*n);e.attr("style","width:"+o+"px;")}p&&e.find("img").addClass("owl-lazy")})),l.tabs&&I.append(S),m&&g){var T=!1;function E(){T&&T.velocity("stop").css("opacity",1).velocity({scaleX:["100%",0]},{duration:f,easing:"easeInOut"})}function A(){T.length&&T.velocity("stop").velocity({opacity:0},{duration:300,easing:"easeInOut"})}t.on("click","a",(function(){t.trigger("stop.autoplay.owl"),m=!1,g=!1,T.remove(),t.off("mouseenter mouseleave")}))}var M={0:{items:1,margin:0,stagePadding:0},480:{items:l.tabs?1:Math.round(c/3*1.5),margin:Math.round(h/3*1.5),stagePadding:Math.round(_/3*1.5)},768:{items:l.tabs?1:Math.round(c/3*2.3),margin:Math.round(h/3*2.3),stagePadding:Math.round(_/3*2.3)},1024:{items:l.tabs?1:Math.round(c),margin:Math.round(h),stagePadding:Math.round(_)},1281:{items:l.tabs?1:Math.round(c/3*4),margin:Math.round(h/3*4),stagePadding:Math.round(_/3*4)},1600:{items:l.tabs?1:Math.round(c/3*4.5),margin:Math.round(h/3*4.5),stagePadding:Math.round(_/3*4.5)},1920:{items:l.tabs?1:Math.round(c/3*5),margin:Math.round(h/3*5),stagePadding:Math.round(_/3*5)}},F=[];t.owlCarousel({items:u?1:c,margin:h,loop:!(!u&&!w)||b,center:u,stagePadding:_,autoWidth:u,slideBy:"page",dots:y,video:w,lazyLoad:p,nestedItemSelector:"item",autoplay:m,autoplayTimeout:f,autoplayHoverPause:!x3_tests.mobile,dotsSpeed:200,responsive:!u&&M,responsiveBaseElement:t,onTranslate:function(t){m&&g&&A()},onTranslated:function(t){m&&g&&E()},onInitialized:function(){if(l.tabs){if("bottom"===l.tabs_position){var e=this.dom.$oStage;e.length&&I.insertAfter(e)}I.on("click","button",(function(){t.trigger("to.owl.carousel",$(this).index())})),t.on("translate.owl.carousel",(function(t){I.children(".active").addClass("bg3").removeClass("active"),I.children("button").eq(t.page.index).removeClass("bg3").addClass("active")})),I.children("button").first().removeClass("bg3").addClass("active"),I.velocity("show",{display:"inline-block"})}if(w&&(r=t.find(".item-video"),k()),u&&this.dom.$stage.css("height",d-1+"px"),!x3_tests.mobile&&y){t.append('<div class="carousel-nav"><button></button><button></button></div>');var n=t.find(".carousel-nav"),o=n.find("button:first-child"),a=n.find(":last-child");o.click((function(){t.trigger("prev.owl.carousel")})),a.click((function(){t.trigger("next.owl.carousel")})),t.hover((function(){n.velocity("stop").velocity({opacity:1},150)}),(function(){n.velocity("stop").velocity({opacity:0},{delay:500,duration:150})}))}m&&g&&(this.dom.$oStage.before('<div class="timer"></div>'),T=t.find(".timer"),E(),t.hover((function(){A()}),(function(){E()})));var c=t.find("> hr");c.length&&c.appendTo(t),de?t.css("opacity",1):t.velocity("show"),s.on("keydown.carousel",$.throttle(500,!0,(function(e){if(!popupob.is_open){var n=e.keyCode;if(39!==n&&37!==n)return;t.trigger((39===n?"next":"prev")+".owl.carousel")}})))},onLoadLazy:function(){a||(a=!0,this.dom.$items.each((function(t,e){var n=e.getElementsByClassName("owl-lazy")[0];n&&(gt(n,"data-src"),-1===e.className.split(/\s+/).indexOf("cloned")&&F.push(e))}))),F.length&&(F=F.filter((function(t){var e=$(t);if(e.hasClass("active")){var n=e.find("figure"),o=n.find(".image-container"),a=o.find(".owl-lazy");return o.prepend('<div class="x3-spinner spinning"></div>'),a.on("load",(function(){a.velocity({opacity:[1,0]},{duration:100}),n.addClass("unveiled"),o.removeAttr("style").children(".x3-spinner").remove()})),!1}return!0})))}})}}function pt(t,e){t.data("columns",x3_settings[e].columns),mt(t)}function ft(t){var e=t.data("columns");return e.use_width?e.amount=Math.max(1,Math.floor(t.innerWidth()/e.column_width)):e.amount=e.columns,e.new_space=e.space<0?Math.max(1,Math.floor(t.innerWidth()/e.amount*.018)):e.space,e.compensate=t.css("padding-left"),e}function mt(t){var e=ft(t);t.css({position:"relative",left:e.compensate,top:-e.new_space+"px"}).elasticColumns({columns:e.amount,innerMargin:e.new_space,outerMargin:parseInt(e.compensate)>0?0:e.new_space});var n=t.width();o.on("resize.columns",$.debounce(1e3,(function(o){t.width()!==n&&(ft(t),t.css({top:-e.new_space+"px"}),t.elasticColumns("set","columns",e.amount),t.elasticColumns("set","innerMargin",e.new_space),t.elasticColumns("set","outerMargin",parseInt(e.compensate)>0?0:e.new_space),t.elasticColumns("refresh"),n=t.width())})))}!function(){function t(t){t.removeClass("comparison-loading").twentytwenty({default_offset_pct:t.data("offset")||.5,orientation:t.data("orientation")||"horizontal",click_to_move:!0,before_label:t.data("before")||"Before",after_label:t.data("after")||"After"})}rt=function(e){var n=e.find(".comparison-slider");n.length&&(n.addClass("comparison-loading"),q("twentytwenty",(function(){n.each((function(e,n){var o=$(this),a=o.find("img").first();a.width()>100&&a.height()>100?t(o):a.on("load",(function(){t(o)}))}))})))}}();var gt,vt,yt,bt,_t,wt=["aG9zdA==","aHR0cHM6Ly9hdXRoLg==","ZmxhbWVwaXguY29t","aW1hZ2V2dWV4LmNvbQ==","cGhvdG8uZ2FsbGVyeQ==","d3d3LnBob3RvLmdhbGxlcnk=","aHR0cHM6Ly8=","bG9jYWxob3N0","MTI3LjAuMC4x","RG9tYWluIGV4Y2x1ZGVkIGZyb20gbGljZW5zZSBjaGVjaw==","YXV0aA==","bm90aGluZw==","YnkgbG9jYWxTdG9yYWdlOg==","YnZ1aQ==","anNvbg==","UE9TVA==","YnkgYXV0aA==","ZXJyb3Igc2VydmVyIGNvbm5lY3Rpb246","VmFsaWQgTGljZW5zZQ==","SW52YWxpZCBMaWNlbnNl","dGFtcGVyZWQ6","ZG9tYWlu","cHJvZHVjdA==","WDM=","YnkgPGEgaHJlZj0i","UGhvdG8gR2FsbGVyeSBXZWJzaXRl","UGhvdG9ncmFwaHkgV2Vic2l0ZQ==","SW1hZ2UgR2FsbGVyeSBDTVM=","V2Vic2l0ZSBmb3IgUGhvdG9ncmFwaGVycw==","T25saW5lIFBvcnRmb2xpbw=="];function xt(){var t=c.find(".images");if(t.length){var e=[];t.each((function(){var t=$(this),n=!1,o=!0;if("file"===x3_settings.type)var a="file";else if(t.hasClass("gallery"))a="gallery";else if(t.hasClass("folders"))a="folders";else a="context";if("file"===a)popupob.prepare(this),t.on("click","[data-embed-modal]",(function(t){Ie(this.getAttribute("data-embed-modal"),t)}));else if("gallery"===a||"folders"===a){var r=x3_settings[a];if(n=r.layout,"shuffle"!==r.sort&&"shuffle"!==r.sortby||(h(this.getElementsByClassName("item")),h(this.getElementsByClassName("x3-video"))),"gallery"===a&&"slideshow"!==n&&(popupob.prepare(this),x3_settings.plugins.panorama.enabled)){var l=t.find(".x3-panorama");l.length&&N.panorama.load(t,l)}switch(n){case"grid":Ct(this,a);break;case"columns":pt(t,a);break;case"justified":_t(this,a);break;case"carousel":ht(t,a),o=!r.carousel.lazy;break;case"slideshow":Mt(t,a),o=!1}"vertical"===n&&("gallery"==a||"folders"==a)&&r.vertical.scrollnav&&!x3_tests.mobile&&x3_tests.screen_width>1024&&Tt(t),r.tooltip.enabled&&!x3_tests.mobile&&me(t),t.on("click",".toggle-button",(function(t){qe($(this),t)})),t.on("click","[data-embed-modal]",(function(t){Ie(this.getAttribute("data-embed-modal"),t)})),t.on("click","[data-href]:not([data-popup-window]):not([data-popup-content]):not(.fotomoto-buy):not(.toggle-button)",(function(t){var e=$(this),n=t.which>1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey,o=n?"_blank":e.data("target")?e.data("target"):"_self";if(n||!e.is("[data-embed-modal]")&&!e.is("[data-popup]"))if(t.preventDefault(),t.stopImmediatePropagation(),e.is("[download]")){s.append('<a href="'+e.data("href")+'" class="download-link" style="display: none;" target="_blank" download></a>');var a=s.children(".download-link");a[0].click(),a.remove()}else window.open(e.data("href"),o)}))}if(o){var c=this.getElementsByClassName("image-container");if(c.length){var d=D(c);e=e.length?e.concat(d):d,"vertical"===n&&"gallery"===a&&this.classList.toString().indexOf("screenbox")>-1&&d.forEach((function(t){t.childNodes[0].setAttribute("data-target-width",t.clientWidth)}))}}})),e.length&&Ot(e)}}function Ct(t,e){var n=x3_settings[e].grid;if(n.use_width){var a="UL"===t.firstElementChild.nodeName?t.firstElementChild:t.children[1],s=a.childNodes;li_count=s.length,li_first=s[0],el_width=t.offsetWidth,kt(el_width,a,li_first,li_count,n.column_width,n.space),o.on("resize.grid",$.debounce(1e3,!1,(function(e){var o=t.offsetWidth;el_width!==o&&(el_width=o,kt(el_width,a,li_first,li_count,n.column_width,n.space))})))}}function kt(t,e,n,o,a,s){var r=s>-1?s:parseFloat(getComputedStyle(n).paddingLeft),l="small-block-grid-"+Math.min(o,12,Math.max(1,Math.round(t/(a+r))))+" items";e.className!==l&&(e.className=l)}function $t(t,e){if(o.scrollTop()<100){t.append('<button class="button-down button-down-hidden"></button>');var n=t.children(".button-down");n.css("display","block").on("click",(function(t){var e=$(this);e.velocityScroll(e.outerHeight())})),setTimeout((function(){n.removeClass("button-down-hidden")}),1e3),e&&o.on("scroll.down_button touchmove.down_button",$.throttle(1e3,!1,(function(){o.scrollTop()>=100&&(n.off("click").velocity("hide"),o.off(".down_button"))})))}}!function(){var t=[100,200,320,480,640,800,1024,1280],e=1e3+300*x3_tests.pixel_ratio;function n(e){if(e>1270)return 1280;if(e<110)return 100;for(var i=1,n=t.length;i<n;i++){var o=t[i];if(e<=o){var a=t[i-1],s=(e-a)/(o-a),r=.1;return x3_tests.pixel_ratio>1.5&&(r=Math.min(.2+i/5,.9)),s>r?o:a}}}gt=function(t,e){t.setAttribute(e,function(t){var e=t.getAttribute("data-target-width")||t.clientWidth,n=Math.floor(e*x3_tests.pixel_ratio),o=1*t.getAttribute("data-width"),a=t.getAttribute("data-src"),s=t.getAttribute("data-crop");return vt(n,o,a,s)}(t))},vt=function(t,o,a,s){if(o>1.2*t&&t<e){var r=n(t);if(o>1.1*r){var l=yt(a,r,s);return z&&L("image resize",{target_width:t,original_width:o,src:a,crop:s,rounded_width:r,render_path:l}),l}return s?yt(a,!1,s):a}return s?yt(a,!1,s):a},bt=function(t,e,o){var a=Math.floor(e*x3_tests.pixel_ratio);return yt(t,n(a),o)},void 0!==wt&&30===wt.length&&"ZmxhbWVwaXguY29t"===wt[2]||s.empty(),yt=function(t,e,n){if(e){var o="w"+e;n&&(o+="-c"+n)}else{if(!n)return t;o="c"+n}return t.replace("/content/","/render/"+o+"/")}}(),function(){var t="X3 / Justified layout render time";function e(t,e,n,o,a){for(var s=o*(t.length-1),r=(a-s)/(e-s),l=s,c=e<a,d=Math.floor(c?n:n*r),i=0;i<t.length;i++){var u=i<t.length-1,h=t[i],p=c?h[1]:u?Math.round(h[1]*r):a-l;l+=p;var f=u?o:"0";h[0].style.cssText="height: "+d+"px; width: "+p+"px; margin-right: "+f+"px; margin-bottom: "+o+"px"}}function n(n,o,a,s){H(t);var r=0,l=[],c=o[0].getElementsByTagName("figure"),d=c.length?2*parseFloat(getComputedStyle(c[0])["border-left-width"]):0;album_width=parseFloat(getComputedStyle(n).width)-2*s;for(var u=0,h=o.length;u<h;u++){var p=(n=o[u]).getAttribute("data-width")/n.getAttribute("data-height")*(a-d)+d;l.push([n,p]),(r+=p+s)>album_width&&0!=l.length&&(e(l,r-s,a,s,album_width),delete r,delete l,r=0,l=[]),o.length-1==u&&0!=l.length&&(e(l,r,a,s,album_width),delete r,delete l,r=0,l=[])}P(t)}_t=function(t,e){var a=x3_settings[e].justified,r=t.getElementsByClassName("item");if(r.length)if(x3_tests.screen_max<700&&a.small_disabled){t.classList.remove("layout-justified");for(var i=0;i<r.length;i++)r[i].style.marginBottom=a.space+"px"}else{var l=Math.max(a.space-1,0)+"px";function c(){var e=getComputedStyle(t).width;u!==e&&(u=e,n(t,r,a.row_height,a.space))}t.style.cssText="padding-top: 0; padding-left: "+l+"; padding-right: "+l,o.on("resize.setJustified",$.debounce(1e3,!1,c));var d=x3_tests.scrollbar_width&&window.innerWidth==document.documentElement.clientWidth;d&&(s[0].style.overflowY="scroll");var u=getComputedStyle(t).width;n(t,r,a.row_height,a.space),x3_tests.scrollbar_width&&setTimeout((function(){d&&(s[0].style.overflowY=""),c()}),1)}}}();var It=0;function St(){if(x3_tests.scrollbar_width){var t=window.innerWidth-document.documentElement.clientWidth;t!=It&&(It=t,document.documentElement.style.setProperty("--scrollbar-width",t+"px"))}}var Tt,Et,popupob={transitions:{glide:function(t){return{translateX:[10*t,0],opacity:[.1,1],duration:500,easing:"easeOutQuart"}},fade:function(t){return{opacity:[.1,1],duration:400,easing:"easeOutCubic"}},zoom:function(t){return{scale:[1.05,1],opacity:[.1,1],duration:500,easing:"easeOutQuint"}},pop:function(t){return{scale:{value:[.9,1],duration:600,easing:"easeOutElastic"},opacity:{value:[0,1],duration:400,easing:"easeOutCubic"},duration:600}},elastic:function(t){return{translateX:{value:[50*t,0],duration:600,easing:"easeOutElastic"},opacity:{value:[.1,1],duration:500,easing:"easeOutQuart"},duration:600}},wipe:function(t){return{translateX:[10*t,0],opacity:[.1,1],clipPath:[t>0?"inset(0% 25% 0% 65%)":"inset(0% 65% 0% 25%)","inset(0% 0% 0% 0%)"],scale:[1.05,1],duration:500,easing:"easeOutQuint"}},custom:function(){var t=x3_settings.popup.transition_custom,e={easing:t.easing,duration:t.duration};return 1!=t.opacity&&(e.opacity=[t.opacity,1]),0!=t.y&&(e.translateY=[t.y,0]),1!=t.scale&&(e.scale=[t.scale,1]),function(n){return 0!=t.x&&(e.translateX=[t.x*n,0]),0!=t.rotate&&(e.rotate=[t.rotate*n,0]),e}}()}};function At(t){var e="";return Object.keys(t).forEach((function(n){var o="iso"===n?"ISO":S(n).humanize().s;e+='<span class="popup-exif-el popup-exif-'+n+("model"===n&&t[n].match(/android|phone/gi)?" popup-exif-mobile":"")+'" title="'+o+'">'+t[n]+"</span>"})),e?'<span class="popup-exif-caption">'+e+"</span>":""}"object"==typeof transitions&&t.assign(popupob.transitions,transitions),function(){function e(){p.options.bg_image&&!x3_tests.legacy_ie&&q("fastAverageColor",(function(){var t=p.currItem;if(!t.bg_set){if(!t.bg_col){var n=!!(t.container&&t.src&&t.w&&t.h)&&t.container.lastElementChild;if(n&&(!n.complete||!n.naturalHeight||n.style.cssText.indexOf("placeholder")>-1))return setTimeout(e,100);z&&console.time("fac");var o=!!n&&popupob.fac.getColor(n);z&&console.timeEnd("fac"),t.bg_col=o&&o.rgb?o.rgb:"rgb(0,0,0)"}t.bg_set=!0,popupob.bg.style.backgroundColor=t.bg_col}}))}var n=!1;function o(t,e,o){return t?(g.caption_transition&&popupob.caption_transition_delay&&(e.style.cssText="transition: none; opacity: 0",n&&clearTimeout(n),n=setTimeout((function(){e.style.cssText="transition: opacity 400ms cubic-bezier(0.33, 1, 0.68, 1)",n=setTimeout((function(){e.removeAttribute("style")}),400)}),popupob.caption_transition_delay)),o.innerHTML=t,!0):ot.resetEl(o)}function a(){var t=!(!popupob.is_open||!p.options.addthisEl)&&p.currItem;t&&Y({url:x3_tests.website+t.page,title:t.title_name,description:t.description,media:x3_tests.website+t.src})}function s(t){return t.which>1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey}function r(t){popupob.preloader&&popupob.preloader.classList[t?"add":"remove"]("svg-preloader-active")}function l(){popupob.is_open&&p&&p.itemHolders&&p.itemHolders.forEach((function(t,e){var n=t.item;if(n){var o=!("video"!=n.type||!n.container)&&n.container.getElementsByClassName("x3-popup-video")[0];o&&!o.paused&&o.pause()}}))}function c(){popupob.toggle_play(!1);var t=p.currItem;if(t.original&&t.src!==t.original){r(!0);var e=new Image;e.onload=function(){t.container&&(t.container.lastChild.src=this.src),r()},e.src=t.src=t.original}}function d(){return!p.options.loop&&p.getCurrentIndex()===p.options.getNumItemsFn()-1}function u(t){t!==p.options.showHideOpacity&&(p.options.showHideOpacity=t,ot.toggle_class(popupob.pswp,"pswp--animate_opacity",t))}function h(){var t=x3_settings.plugins.cart;return t.enabled&&t.popup_button}var p,f,g=x3_settings.popup,v=[],y=g.hide_caption,b=g.bg_color,_=t.local_storage("x3:popup:locked_caption"),w=g.caption_style,x=g.caption_align;x3_tests.legacy_ie&&(g.caption_transition=!1),document.body.insertAdjacentHTML("beforeend",'\t\t<div class="pswp'+(x3_tests.touch?" pswp--touch":"")+(x3_tests.only_pointer?" pswp--has_mouse":"")+'" tabindex="-1" role="dialog" aria-hidden="true">\t    \t<div class="pswp__bg"'+("#000"!==b?' style="background-color:'+b+'"':"")+'></div>\t    \t<div class="pswp__scroll-wrap">\t        <div class="pswp__container">\t\t        <div class="pswp__item"></div>\t\t        <div class="pswp__item"></div>\t\t        <div class="pswp__item"></div>\t        </div>\t        <div class="pswp__ui pswp__ui--hidden pswp__caption-align-'+x+'">\t          <div class="pswp__top-bar">\t            <div class="pswp__counter"></div>\t            <div class="pswp__topbar-title"></div>\t            <div class="pswp__topbar-spacer"></div>\t            '+(x3_tests.legacy_ie?"":'<svg viewBox="0 0 18 18" class="pswp__preloader svg-preloader"><circle cx="9" cy="9" r="8" pathLength="100" class="svg-preloader-circle"></svg>')+'\t            <button class="pswp__button pswp__button--play" title="Play">'+Q("play","pause")+"</button>\t            "+(x3_tests.only_touch?"":'<button class="pswp__button pswp__button--zoom" title="Zoom">'+Q("zoom_in","zoom_out")+"</button>")+"\t            "+(screenfull.isEnabled?'<button class="pswp__button pswp__button--fs" title="Fullscreen">'+Q("expand","collapse")+"</button>":"")+"\t            "+(x3_tests.download?'<a type="button" class="pswp__button pswp__button--download" title="Download" target="_blank" download>'+Q("download")+"</a>":"")+"\t            "+(B?'<button class="pswp__button pswp__button--addthis addthis_button" style="display:none">'+Q("share")+"</button>":'<button class="pswp__button pswp__button--share" title="Share">'+Q("share")+"</button>")+'\t            <button class="pswp__button pswp__button--close" title="Close (Esc)">'+Q("close")+"</button>\t          </div>"+(B?"":(f="",x3_settings.toolbar.items.forEach((function(t){t.display&&-1==t.display.indexOf("popup")||"page"==t.type||"comment"==t.id||!t.url||"popup"==t.target||t.target&&"_"==t.target.charAt(0)||t.content||(v.push(t.url),f+='<a href="#" target="_blank" class="pswp__share-link pswp__share--'+t.id+'"'+(t.color?' style="--color:'+t.color+'"':"")+(t.download?" download":"")+'><i class="fa fa-'+t.icon+'"></i>'+t.label+"</a>")})),f?'<div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap"><div class="pswp__share-tooltip">'+f+"</div></div>":""))+'<button class="pswp__button pswp__button--arrow--left">'+Q("chevron_left")+'</button><button class="pswp__button pswp__button--arrow--right">'+Q("chevron_right")+'</button>\t          <div class="pswp__timer"></div>\t          <div class="pswp__caption pswp__caption-style-'+w+(y?" pswp__caption-hide":"")+(_?" pswp__caption-locked":"")+'">\t          \t'+(x3_tests.only_touch?"":'<button class="pswp__button pswp__button--lock-caption" title="'+(_?"Unl":"L")+'ock caption">'+Q("lock_outline","lock_open_outline")+"</button>")+'\t          \t<div class="pswp__caption__center"></div>\t          </div>\t        </div>\t    \t</div>\t\t\t</div>'),popupob.pswp=document.body.lastElementChild,popupob.bg=popupob.pswp.firstElementChild,popupob.scrollwrap=popupob.pswp.lastElementChild,popupob.container=popupob.scrollwrap.firstElementChild,popupob.items=popupob.container.children,popupob.ui=popupob.scrollwrap.lastElementChild,popupob.topbar=popupob.ui.firstElementChild,popupob.topbar_title=popupob.topbar.children[1],popupob.caption=popupob.ui.lastElementChild,x3_tests.legacy_ie||(popupob.preloader=popupob.topbar.children[3]),popupob.playing=!1,popupob.timer=!1,popupob.toggle_play=function(t){t===popupob.playing||t&&d()||(popupob.playing=t,popupob.play_button||(popupob.play_interval=1e3*Math.min(99,Math.max(1,isNaN(g.play_interval)?5:g.play_interval)),popupob.play_button=document.getElementsByClassName("pswp__button--play")[0],popupob.play_timer=document.getElementsByClassName("pswp__timer")[0]),ot.toggle_class(popupob.play_button,"is-playing",t),popupob.toggle_timer(t))},popupob.toggle_timer=function(t){if(t&&d())return popupob.toggle_play(!1);if((!t||popupob.playing&&(p.currItem.loaded||!p.currItem.src))&&popupob.timer!=t){popupob.timer=!!t,t&&(popupob.play_timer.style.opacity=1),anime.remove(popupob.play_timer);var e={targets:popupob.play_timer,duration:t?popupob.play_interval:333,easing:t?"easeInOutCubic":"easeOutQuad",scaleX:t?[0,1]:0};e[t?"begin":"complete"]=function(){popupob.play_timer.style.display=t?"block":"none"},t?e.complete=function(){p.next(!0)}:e.opacity=[1,0],anime(e)}},popupob.caption.addEventListener("click",(function(e){var n=e.target,o=n.classList;if(o.contains("pswp__button--lock-caption"))return _=!_,ot.toggle_class(popupob.caption,"pswp__caption-locked",_),n.title=(_?"Unl":"L")+"ock caption",t.local_storage("x3:popup:locked_caption",_,!_);if(h()&&o.contains("popup-cart-button")){if(!cart.toggle_item(p.currItem.original,!n.classList.contains("popup-cart-button-checked")))return;n.classList.toggle("popup-cart-button-checked")}if(o.contains("toggle-button"))return qe($(n),e);var a=n.getAttribute("data-embed-modal");if(a)return popupob.toggle_play(!1),screenfull.isFullscreen&&screenfull.exit(),Ie(a,e);x3_tests.is_pointer&&0===n.className.indexOf("pswp")&&("right"===x&&e.pageX>this.clientWidth-49?p.next():"left"===x&&e.pageX<49&&p.prev())})),B&&q("addthis",(function(){var t=popupob.ui.getElementsByClassName("pswp__button--addthis")[0];t.style.display="block",addthis.button(t,addthis_config),a()}));var C={preloaderEl:!!popupob.preloader,getDoubleTapZoom:function(){return c(),1},getThumbBoundsFn:function(t,e){var n=p.items[t];if(!(n.w&&n.h&&n.msrc&&n.img_el))return!!e&&u(!0);var o=n.img_el.getBoundingClientRect();if(e){if(o.bottom<0||o.top>window.innerHeight)return u(!0);u(!1)}var a=n.img_el.offsetWidth-n.img_el.clientWidth;return{x:o.left+a/2,y:o.top+window.pageYOffset+a/2,w:o.width-a}}},k={index:0,history:g.history,addthisEl:B,addCaptionHTMLFn:function(t,e){var n=[];if(t.title&&g.caption.title&&n.push('<strong class="popup-caption-title">'+t.title+"</strong>"),t.file_name&&g.caption.filename&&n.push('<span class="popup-caption-filename">'+t.file_name+"</span>"),t.file_name_ext&&g.caption.filename_ext&&n.push('<span class="popup-caption-filename_ext">'+t.file_name_ext+"</span>"),t.description&&g.caption.description&&n.push('<span class="popup-caption-description">'+t.description+"</span>"),t.date&&g.caption.date&&n.push('<em class="popup-caption-date">'+t.date+"</em>"),t.exif&&n.push(t.exif),h()&&n.push('<button class="button small toggle-cart-button popup-cart-button'+("undefined"!=typeof cart&&cart.in_cart(t.original)?" popup-cart-button-checked":"")+'"></button>'),"topbar"===w)return o(n.join(""),popupob.topbar_title,popupob.topbar_title),!1;if(g.caption.download&&n.push('<div><a href="'+(t.original||t.src).replace(/"/g,"&quot;")+'" class="button button-download small" '+(x3_tests.download?"download":'target="_blank"')+">"+g.caption.download_text+"</a></div>"),t.geo&&n.push('<div><a href="https://www.google.com/maps/search/?api=1&amp;query='+t.geo+'" class="button button-map-popup small" data-embed-modal="https://www.google.com/maps/embed/v1/place?q='+t.geo+'&amp;key=AIzaSyDRp6xla9SxUmTBu6l_kprhjjI9e5-EVZk" target="_blank">'+g.caption.map_text+"</a>"+(x3_tests.mobile?"":'<div class="popup-map-hover"><img data-src="https://maps.googleapis.com/maps/api/staticmap?'+(x3_tests.pixel_ratio>1?"scale=2&amp;":"")+"zoom=12&amp;size=320x320&amp;markers="+t.geo+'&amp;key=AIzaSyDRp6xla9SxUmTBu6l_kprhjjI9e5-EVZk" class="popup-map-hover-img"></div>')+"</div>"),o(n.join("subtitles"==w?"<br>":""),e,e.lastElementChild)){var a=x3_settings.plugins.fotomoto;if(a.enabled&&a.store_id){var s=e.getElementsByClassName("fotomoto-buy")[0];s&&(s.dataset.image=t.original||t.src)}if(t.geo&&!x3_tests.mobile){var r=e.lastElementChild,l=$(r.querySelector(".button-map-popup, .button-map, .link-map")),c=r.lastElementChild.lastElementChild,d=function(t){var e={targets:c,opacity:t?0:1,duration:333,easing:"easeOutCubic"};e[t?"complete":"begin"]=function(){c.style.display=t?"none":"block"},anime(e)};l.one("mouseenter.map",(function(t){c.firstElementChild.src=c.firstElementChild.dataset.src})).hoverIntent({over:function(){d(!1)},out:function(){d(!0)}})}return!0}}},I={addCaptionHTMLFn:function(t,e){return"topbar"===w?(o(t.title,popupob.topbar_title,popupob.topbar_title),!1):o(t.title,e,e.lastElementChild)},shareEl:!1,zoomEl:!1,captionEl:!1};function S(t,e){if(!t.length){var n=x3_settings.gallery.crop.enabled&&"file"!==x3_settings.type;D(e).forEach((function(e,o){e.dataset.popupIndex=o;var a=e.dataset.width/e.dataset.height;if(x3_tests.is_orientation&&x3_tests.touch)if(a>1)s=a>x3_tests.long_ratio?x3_tests.pixel_max:x3_tests.pixel_min*a;else s=1/a>x3_tests.long_ratio?x3_tests.pixel_max*a:x3_tests.pixel_min;else var s=a>x3_tests.screen_ratio?x3_tests.pixel_width:x3_tests.pixel_height*a;var r=e.dataset.image.split("/").pop(),l=!n&&e.getElementsByTagName("img")[0],c={src:vt(s,e.dataset.width,e.dataset.image),w:1*e.dataset.width,h:1*e.dataset.height,file_name_ext:r,file_name:r.replace(/\.[^/.]+$/,""),pid:encodeURIComponent(r),title:e.dataset.title||!!g.caption.title_from_name&&e.dataset.name,title_name:e.dataset.title||e.dataset.name,description:e.dataset.description,date:e.dataset.date,page:e.getAttribute("href"),original:e.dataset.image,img_el:l,msrc:!(!l||!l.complete)&&l.getAttribute("src"),exif:!(!g.caption.exif||!e.dataset.exif)&&At(JSON.parse(e.dataset.exif)),geo:!!g.caption.map&&e.dataset.geo};l&&!c.msrc&&(l.onload=function(){c.msrc=this.getAttribute("src")}),t.push(c)}))}}function T(t,e,n,o){return e===n?e:(o.classList.remove("pswp__caption-"+t+"-"+e),o.classList.add("pswp__caption-"+t+"-"+n),n)}function E(n,o,s,l){if(!popupob.is_open){if(popupob.caption_transition_delay=333,o.bg_color!=b&&(b=o.bg_color,popupob.bg.style.backgroundColor=b),o.bg_image&&!x3_tests.legacy_ie&&(o.bgOpacity=1,q("fastAverageColor",(function(){popupob.fac=new FastAverageColor}))),popupob.container.style.cursor=n.length>1?"pointer":"default",o.hide_caption!=y&&(y=o.hide_caption,ot.toggle_class(popupob.caption,"pswp__caption-hide",y)),w=T("style",w,o.caption_style,popupob.caption),x=T("align",x,o.caption_align,popupob.ui),St(),document.documentElement.classList.add("x3-popup-open"),popupob.is_open=!0,(n.length<2||x3_tests.only_touch)&&(o.arrowEl=!1),n.length<3&&(o.playEl=!1),"inherit"==o.play_transition&&(o.play_transition=o.transition),popupob.mygallery=p=new at(popupob.pswp,nt,n,t.assign(o,{arrowKeys:n.length>1,counterEl:n.length>1,showAnimationDuration:l?0:333,showHideOpacity:!n[o.index].msrc&&!l})),s){var d=Object.keys(s);d.length&&d.forEach((function(t){p.listen(t,s[t])}))}x3_tests.touch&&p.listen("zoomGestureEnded",(function(){p.getZoomLevel()>p.currItem.initialZoomLevel&&c()})),p.listen("beforeChange",(function(){popupob.toggle_timer(!1),Ie(),r(!1),p.currItem.bg_set=!1})),p.listen("afterChange",(function(){popupob.toggle_timer(!0),a(),e()})),p.listen("imageLoadComplete",(function(t,n){var o=t===p.getCurrentIndex();p.options.playEl&&o&&popupob.toggle_timer(!0),o&&e()})),p.listen("close",(function(){popupob.toggle_play(!1),Ie()})),p.listen("destroy",(function(){p.options.addthisEl&&Y(),r(),document.documentElement.classList.remove("x3-popup-open"),popupob.fac&&(popupob.fac.destroy(),popupob.fac=!1,popupob.bg.style.backgroundColor=b),"topbar"===w&&ot.resetEl(popupob.topbar_title),popupob.is_open=!1,$(popupob.items).empty()})),p.init()}}function A(e,n,o){if(x3_tests.mobile&&e.hasAttribute("data-popup-ignore-mobile"))return e.setAttribute("target","_blank");var a=e.dataset;if(e.dataset.popupGroup)var s=document.querySelectorAll('[data-popup-group="'+a.popupGroup+'"]');else{var r=e.closest("[data-popup-container]");if(r){s=r.getElementsByTagName("a");a=r.dataset}else if(e.hasAttribute("rel"))s=document.querySelectorAll('[rel="'+e.getAttribute("rel")+'"]');else s=[e]}var c=t.assign({downloadEl:x3_tests.download&&(a.popupDownload?"false"!=a.popupDownload:g.downloadEl),fullscreenEl:screenfull.isEnabled&&"false"!=a.popupFullscreen,history:"true"==a.popupHistory||g.history&&"false"!=a.popupHistory,mainClass:a.popupMainClass,arrowEl:"false"!=a.popupArrow,playEl:"true"==a.popupPlay||g.playEl&&"false"!=a.popupPlay,transition:a.popupTransition||g.transition,play_transition:a.popupPlayTransition||g.play_transition,loop:"false"!=a.popupLoop,hide_caption:a.popupHideCaption?"false"!=a.popupHideCaption:g.hide_caption,bg_color:a.popupBgColor||g.bg_color,bgOpacity:a.popupBgOpacity?parseFloat(a.popupBgOpacity):g.bgOpacity,bg_image:a.popupBgImage?"false"!=a.popupBgImage:g.bg_image,caption_style:a.popupCaptionStyle||g.caption_style,caption_align:a.popupCaptionAlign||g.caption_align},C,I),d=[],u=0;if((s=s.length?D(s):[e]).forEach((function(t){if(t.dataset.popupContent)var n={html:'<div class="x3-popup-html '+(t.dataset.popupClass?t.dataset.popupClass:"x3-popup-content")+'">'+t.dataset.popupContent+"</div>",type:"html"};else{var o=t.dataset.popupHref||t.getAttribute("href")||t.dataset.href;if(!o||x3_tests.mobile&&t.hasAttribute("data-popup-ignore-mobile"))return;var s=o.split(".").pop().toLowerCase().split("?")[0];if(["jpg","jpeg","png","gif","webp"].indexOf(s)>-1||t.hasAttribute("data-popup-image")||t.dataset.width&&!t.dataset.isLink){var r=t.getElementsByTagName("img")[0],l=!(!r||r.dataset.crop)&&r.getAttribute("src"),h=l==o?[r.naturalWidth,r.naturalHeight]:[0,0];n={src:o,w:h[0]||t.dataset.resizeWidth||t.dataset.width||0,h:h[1]||t.dataset.resizeHeight||t.dataset.height||0,original:t.dataset.original,msrc:!(!l||!r.complete)&&l,img_el:r,title:t.dataset.popupTitle||t.dataset.title||!!r&&r.getAttribute("alt")||t.getAttribute("title"),type:"image"};!c.zoomEl&&x3_tests.is_pointer&&"false"!=a.popupZoom&&(c.zoomEl=!0),!c.captionEl&&n.title&&"false"!=a.popupCaption&&(c.captionEl=!0)}else{var p=["mp4","webm","ogv"].indexOf(s)>-1?' type="video/'+s+'"':"",f=p||t.hasAttribute("data-popup-video"),m=t.dataset.popupClass?" "+t.dataset.popupClass:"";n={type:f?"video":"iframe",href:o,html:f?x3_tests.legacy_ie?'<div class="pswp__error-msg"><a href="'+o+'" data-popup-window="video,800,600">'+(o.split("/").pop().split("#")[0]||o)+"</a></div>":'<video class="x3-popup-video'+m+'" preload="metadata" playsinline controls'+(x3_settings.settings.prevent_context?' controlsList="nodownload"':"")+'><source src="'+o+'"'+p+"></video>":'<iframe src="'+o+'" class="x3-popup-iframe'+m+'" allow="autoplay; encrypted-media" frameborder="0" seamless allowfullscreen></iframe>'}}}t.dataset.popupBg&&(n.bg_col=t.dataset.popupBg),c.history&&(n.pid=t.dataset.pid||"html"!=n.type&&o.split("#")[0],n.pid||(c.history=!1)),c.playEl&&"image"!==n.type&&"true"!=a.popupPlay&&(c.playEl=!1),n.link_el=t,d.push(n),t==e&&(c.index=u),u++})),c.hasOwnProperty("index")){if(n&&(n.stopImmediatePropagation(),n.preventDefault()),n&&x3_tests.legacy_ie&&1===d.length&&"video"===d[c.index].type)return t.popupwin(d[c.index].href,"video",800,600);popupob.is_open&&(o=!0),popupob.is_open&&(p.options.hideAnimationDuration=0,p.close(),c.history=!1),E(d,c,{gettingData:function(t,e){if(!(e.html||e.is_loading||e.w&&e.h)){e.is_loading=!0;var n=new Image;n.onload=function(){e.w=e.link_el.dataset.width=this.width,e.h=e.link_el.dataset.height=this.height,!e.msrc&&e.img_el&&e.img_el.complete&&!e.img_el.dataset.crop&&(e.msrc=e.img_el.getAttribute("src")),p.getCurrentIndex()!=t||popupob.pswp.classList.contains("pswp--animated-in")||p.invalidateCurrItems(),p.updateSize(!0)},n.src=e.src}},afterChange:function(){var t=p.currItem.type,e="iframe"==t;p.options.closeOnScroll=!e,p.options.pinchToClose=!e,p.options.closeOnVerticalDrag=!e,ot.toggle_class(popupob.ui,"x3-popup-ui-iframe",e),ot.toggle_class(popupob.ui,"x3-popup-ui-video","video"==t)},beforeChange:l,close:l,destroy:function(){popupob.ui.classList.remove("x3-popup-ui-iframe"),popupob.ui.classList.remove("x3-popup-ui-video")}},o)}}popupob.prepare=function(e){if(g.enabled){var n=e.getElementsByClassName("x3-popup");if(n.length){var o=[],a=t.assign({captionEl:g.captionEl,zoomEl:x3_tests.is_pointer&&g.zoomEl,downloadEl:x3_tests.download&&g.downloadEl,shareEl:!B&&g.shareEl,share_urls:!B&&g.shareEl?v:[],playEl:g.playEl,transition:g.transition,play_transition:g.play_transition,hide_caption:g.hide_caption,bg_color:g.bg_color,bgOpacity:g.bgOpacity,bg_image:g.bg_image,caption_style:g.caption_style,caption_align:g.caption_align,loop:g.loop},C,k);e.addEventListener("click",(function(t){if(!s(t)&&!t.target.matches("[data-href], button, .x3-cart-checkbox")){var e=t.target.closest(".x3-popup");!e||e.classList.contains("x3-panorama")||x3_settings.plugins.cart.enabled&&e.closest(".gallery").matches(".x3-cart-gallery-select-mode")||(t.preventDefault(),popupob.is_open||(S(o,n),a.index=1*e.dataset.popupIndex,E(o,a)))}}));var r=m("pid");(r||g.auto_open)&&(S(o,n),(function(){if(r)for(var t=encodeURIComponent(r),i=0;i<o.length;i++)if(t==o[i].pid||r===o[i].file_name)return a.index=i,!0}()||g.auto_open)&&E(o,a,null,!0))}}};var M=".popup, [data-popup-container] a, [data-popup-content], [data-popup-group], [data-popup-href], [data-popup-title], [data-popup-image], [data-popup]";document.body.addEventListener("click",(function(t){var e=t.target.closest(M);!e||e.hasAttribute("href")&&s(t)||A(e,t)})),setTimeout((function(){if(!popupob.is_open){var t=m("pid");if(t){var e=document.querySelectorAll(M);if(e.length)for(var i=0;i<e.length;i++){var n=e[i];if("false"!=n.dataset.popupHistory){var o=n.dataset.pid||n.dataset.popupHref||n.getAttribute("href")||n.dataset.href;if(o&&o.split("#")[0]===t){var a=n.closest("[data-popup-container]");if(a&&"false"==a.dataset.popupHistory)continue;return A(n,null,!0)}}}}}}),1)}(),function(){var t,n,a,r,d,u,h,p,f,m,v=!1,y=screenfull.isEnabled;function b(){a.toggleClass("isFullscreen",screenfull.isFullscreen)}function _(){v&&g(h,"scroll-nav-visible",2e3)}function w(){var t=window.innerWidth,e=window.innerHeight,n=!0;if(t>1024&&e>600){if(s.hasClass("sidebar-right")){var o=l.is(":visible")?l.outerWidth(!0)+10:10;h.css("right",o)}c.children(".module").children("div").not('[class*="screenbox"]').each((function(t){if($(this).offset().left<65)return h.removeClass("scroll-nav-visible"),void(n=!1)}))}v=n&&t>1024&&e>600,h.toggleClass("scroll-nav-hide",!v)}function x(){d.waypoint((function(t){var e=$(this).index(".item"),n="down"===t?e:e-1;p=Math.min(n,m),k()}),{offset:$.waypoints("viewportHeight")/2})}function C(t){t?(p<0&&u.offset().top+u.height()/2<o.height()/2&&p++,p=p<m?p+1:m):(p>=m&&item_last.offset().top+item_last.height()/2>e.height()-o.height()/2&&p--,p=p>-1?p-1:-1),function(){if(p!==f){d.waypoint("disable");var t=0,n=e.height()-o.height();if(p>=m)t=n;else if(p>-1){var a=d.eq(p);t=Math.max(0,Math.min(a.offset().top,a.offset().top-o.height()/2+a.height()/2,n))}s.velocity("stop").velocityScroll(t,null,null,(function(){d.waypoint("enable")}))}}(),k()}function k(t){if(p!==f||t){var e=Math.min(Math.max(p+1,1),m);r.text(e+"/"+m),p<=0?h.addClass("first"):p>=m-1?h.addClass("last"):h.removeClass("first last"),f=p}}Et=function(){"function"==typeof $.waypoints&&$.waypoints("destroy"),y&&screenfull.off("change",b)},Tt=function(e){if((d=e.children(".item")).length>1){var l=x3_page.permalink;q("waypoints",(function(){l===x3_page.permalink&&function(e){c.before('<div class="scroll-nav first">'+(y?'<button class="fullscreenToggle'+(screenfull.isFullscreen?" isFullscreen":"")+'"></button>':"")+'<button class="previous"></button><div class="index styled">*</div><button class="next"></button></div>'),h=c.siblings(".scroll-nav"),t=h.children(".previous"),n=h.children(".next"),r=h.children(".index"),u=e.first(),item_last=e.last(),p=-1,m=e.length,o.on("mousemove.scrollnav scroll.scrollnav",$.throttle(1e3,!0,_)),o.on("resize.scrollnav",$.debounce(1e3,!1,w)),y&&(a=h.children(".fullscreenToggle"),screenfull.on("change",b),b());if(w(),x(),function(){t.on("click.scrollnav",(function(t){C()})),n.on("click.scrollnav",(function(t){C(!0)})),y&&a.on("click.fullscreen",(function(t){screenfull.toggle()}))}(),function(){s.on("keydown.scrollnav",$.throttle(500,!0,(function(e){if(!N.panorama.is_open){var o=Number(e.keyCode),a=e.metaKey||e.ctrlKey||e.shiftKey||e.altKey,s=38!==o&&(40===o||"none");"none"===s||a||(_(),g(s?n:t,"clicked",500),C(s))}}))),s.on("keydown.prevent",(function(t){var e=Number(t.keyCode);t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||38!==e&&40!==e||t.preventDefault()}))}(),k(!0),!x3_settings.settings.pagenav||!x3_tests.is_pointer||!h.offset().top)return;var l=$(".pagenav-fixed");l.length&&parseInt(l.css("top"))>h.offset().top-66&&l.css("top",h.offset().top-66)}(d)}))}}}();var Mt,Ft,Dt,Ot,zt,Lt,Ht,Pt=!1;!function(){var t=x3_tests.pixel_ratio>=1.5?200:100,e=!1;function n(){e&&(e.disconnect(),e=!1)}function a(){if(!Dt||!Dt.el)return!0;var t=Dt.el.firstChild,e=!!t&&t.firstChild;if(!t||!e)return!0;var n=e.style.width?parseInt(e.style.width):e.clientWidth;return t.clientWidth>n?Dt.resize():void 0}function r(t){var e=t.getAttribute("data-title")||t.getAttribute("data-name"),n=t.getAttribute("data-description");return'<span class="slideshow-title">'+e+"</span>"+(n?'<span class="slideshow-description">'+n+"</span>":"")}Mt=function(l,c){var d=l[0].getElementsByClassName("item");if(d.length){var u=$.extend({width:"100%",maxwidth:"100%",maxHeight:"100%",minWidth:"320px",minHeight:"240px",allowfullscreen:"native",margin:1,thumbmargin:1,thumbwidth:100,thumbheight:100,shadows:!1,trackpad:!1},x3_settings[c].slideshow);Pt=!1,u.transitionduration=u.duration;var h=u.start_fullscreen;u.startFullscreen=h,u.toggleplay=u.toggle_play;var p=u.fullscreen_button;u.allowfullscreen=!(!h&&("hide"===p||"auto"===p&&u.background))&&"native",x3_tests.mobile&&u.transition_mobile_slide&&(u.transition="slide"),u.background&&Pe(l),u.ratio&&(u.height="auto"),(S(u.nav).isEmpty()||"none"==u.nav)&&(u.nav=!1),u.captions_hover&&l.addClass("captions-hover"),u.autoplay&&(u.autoplay=u.interval),u.data=[];var f=u.height,m=Math.max(parseInt(u.minWidth),l.width());if(u.ratio)if(u.ratio.indexOf("/")>-1)var v=u.ratio.split("/"),y=Number(v[0])/Number(v[1]),_=m/y;else _=m/Number(u.ratio);else _=f.indexOf("%")>-1?parseInt(f)/100*o.height():parseInt(f);"thumbs"===u.nav&&(_-=100),_=Math.min(Math.max(parseInt(u.minHeight),_),o.innerHeight());var w=m/_;D(d).forEach((function(e){var n=e.getAttribute("data-image"),o=Number(e.getAttribute("data-width")),a=o/Number(e.getAttribute("data-height"));if("contain"===u.fit)var s=a>w?m:_*a,l=a>x3_tests.screen_ratio?x3_tests.screen_width:x3_tests.screen_height*a;else s=a>w?_*a:m,l=a>x3_tests.screen_ratio?x3_tests.screen_height*a:x3_tests.screen_width;var c={caption:r(e),id:e.getAttribute("id"),img:vt(s*x3_tests.pixel_ratio,o,n),thumb:yt(n,t,"1:1"),html:!!e.hasAttribute("data-is-link")&&e.outerHTML};if(l>1.1*s){var d=vt(l*x3_tests.pixel_ratio,o,n);d!==c.img&&(c.full=d)}u.data.push(c)})),l.on("click",".item-link",(function(t){Pt&&Dt.cancelFullScreen()}));var x,C,k=u.autoplay,T=u.show_timer;l.on("fotorama:ready",(function(t,r){(Dt=l.data("fotorama")).el=l[0],x3_tests.scrollbar_width&&(o.on("resize.slideshow",$.debounce(500,!1,a)),"ResizeObserver"in window&&((e=new ResizeObserver((function(){a()&&n()}))).observe(Dt.el),setTimeout(n,2e3),o.one("resize.slideshow",n)),setTimeout(a,2e3));var c,d=s.find(".sb-toggle"),p=l.find(".fotorama__stage"),f=l.find(".fotorama__arr"),m=l.find(".fotorama__wrap");function v(){T&&u.data.length>1&&C.velocity({opacity:0},500)}u.background&&u.button_down&&($t(l,u.button_down_remove),l.children(".button-down").on("click",(function(t){k&&Dt.stopAutoplay()}))),de?l.css("opacity",1):l.velocity("show"),u.data.length>1&&(u.toggleplay&&(p.prepend('<div class="fotorama__toggleplay fotorama__select" tabindex="0" role="button"></div>'),(x=p.children(".fotorama__toggleplay")).on("click",(function(t){1==x.css("opacity")&&(k?Dt.stopAutoplay():(Dt.show(Dt.activeIndex+1>=Dt.size?0:Dt.activeIndex+1),Dt.startAutoplay(u.interval),x3_tests.mobile&&setTimeout((function(){m.addClass("fotorama__wrap--no-controls")}),500)))}))),T&&(p.append('<div class="fotorama__timer" tabindex="0"></div>'),C=p.children(".fotorama__timer")),A()),f.append("<button></button>"),l.on("fotorama:showend",(function(t,e,n){Dt.activeIndex!=Dt.size-1||u.loop||Dt.stopAutoplay(),A()})).on("fotorama:show",(function(t,e){v()})).on("fotorama:stopautoplay",(function(t,e){v(),k=!1,l.toggleClass("playing",!1)})).on("fotorama:fullscreenenter",(function(t,e){d.css("pointer-events","none"),Pt=!0})).on("fotorama:fullscreenexit",(function(t,e){setTimeout((function(){"undefined"!=typeof number_height&&set_size(),d.css("pointer-events","")}),500),Pt=!1})),h&&(d.css("pointer-events","none"),Dt.requestFullScreen()),p.on("mousedown.scrollto touchstart.scrollto",(function(t){if(!b){var e=o.scrollTop(),n=o.height(),a=e+n,s=l.offset().top,r=l[0].clientHeight,c=s+r,d=c-20>a&&s-20>e;if(d||s+20<e&&c+20<a){u.click&&"mousedown"===t.type&&Dt.setOptions({click:!1}),x3_tests.mobile&&m.removeClass("fotorama__wrap--no-controls");var h=d?Math.min(0,r-n):Math.max(0,r-n);l.velocityScroll(h,null,null,(function(){u.click&&"mousedown"===t.type&&Dt.setOptions({click:!0})}))}}})),x3_tests.mobile||(I(l,"interface",p),u.autoplay||u.nav||(u.background||h?g(l,"interface",2e3):l.addClass("interface")));var y=Dt.activeIndex;function _(){(y===Dt.activeIndex||m.hasClass("fotorama__wrap--no-controls"))&&(clearTimeout(c),c=setTimeout((function(){m.addClass("fotorama__wrap--no-controls")}),3e3)),y=Dt.activeIndex}l.on("touchstart.touchtimer",_),x3_tests.mobile&&(u.background||h)&&_()})).on("fotorama:startautoplay",(function(t,e){k=!0,l.toggleClass("playing",!0)})).on("fotorama:showend",(function(t,e){if(u.click){var n=!e.activeFrame.html;e.options.click!=n&&e.setOptions({click:n})}}));var E=x3_page.permalink;"function"==typeof $.Fotorama?l.fotorama(u):q("fotorama",(function(){E===x3_page.permalink&&(l.fotorama(u),Lt())})),l.append('<hr class="module-separator">')}function A(){k&&T&&(setTimeout((function(){C.css("opacity",1)}),1),C.velocity("stop").velocity({scaleX:["100%",0]},{duration:u.interval,easing:"easeInOut",queue:!1}))}},Ft=function(){if(Dt){if(n(),o.off("resize.slideshow"),Dt.destroy(),Pt){var t=Dt;setTimeout((function(){t&&t.hasOwnProperty("cancelFullScreen")&&(t.cancelFullScreen(),t=!1)}),300)}Dt=!1}}}(),function(){var t,e=0,n=0,a=320;function s(t,e){return t.bottom>-e&&t.top<window.innerHeight+e}function r(t,n){e=t,n.push(t)}function l(){var t=window.pageYOffset;Math.abs(n-t)<160||(n=t,c())}function c(){for(var n=[],i=0,l=t.length;i<l;i++){var c=t[i],d=c.getBoundingClientRect();if(s(d,a))r(c,n);else if(d.top>0){if(e){var u=e.getBoundingClientRect();d.top-u.bottom<300&&s(u,0)&&r(c,n)}break}}n.length&&(n.forEach((function(e){var n,o,a;n=e,o=$(n),a=n.childNodes[0],gt(a,"src"),o.prepend('<div class="x3-spinner spinning"></div>'),a.addEventListener("load",(function(t){o.closest("figure").addClass("unveiled"),o.removeAttr("style").children(".x3-spinner").remove()}));var s=t.indexOf(e);s>-1&&t.splice(s,1)})),t.length||o.off(".lazy"))}Ot=function(a){e=0,t=a,n=window.pageYOffset;var s=Math.max(100,Math.min(1e3,t.length));o.on("scroll.lazy"+(x3_tests.touch?" touchmove.lazy":""),$.throttle(s,!1,l)).on("resize.lazy",$.debounce(1e3,c)),c()}}(),function(){var t=!1;zt=function(){d.addClass("sb-slide").prepend('<div class="up"><button></button></div>'),(t=d[0].querySelector(".up > button")).addEventListener("click",(function(){s.velocityScroll()})),o.on("resize.updateFooterProps",$.debounce(1e3,!1,Lt)),Lt()},Lt=function(){if(!(Wt.indexOf("topbar")<0)){var e=s.hasClass("no-footer")?0:d[0].clientHeight;r[0].style.paddingBottom=e?e-1+"px":"";var n=r[0].clientHeight>document.documentElement.clientHeight;r[0].firstChild.style.minHeight=n?"":e?"calc(100vh - "+(e-1)+"px)":"100vh",t&&e&&(t.style.display=n?"inline-block":"none")}},Ht=function(){var t=d.find(".icon-buttons"),e=t.children("a");if(e.length){$.each([{id:"500px"},{id:"Amazon"},{id:"Behance"},{id:"Codepen"},{id:"Delicious"},{id:"Deviantart"},{id:"Dribbble"},{id:"Facebook"},{id:"Feed",icon:"rss"},{id:"Flickr"},{id:"Foursquare"},{id:"Github"},{id:"Google",icon:"google-plus",title:"Google +"},{id:"Instagram"},{id:"Linkedin"},{id:"Paypal"},{id:"Pinterest"},{id:"Reddit"},{id:"Skype"},{id:"Soundcloud"},{id:"Spotify"},{id:"Stackoverflow",icon:"stack-overflow"},{id:"Stumbleupon"},{id:"Tumblr"},{id:"Twitter"},{id:"Vimeo"},{id:"Vine"},{id:"Vk",title:"vKontakte"},{id:"Weibo"},{id:"Wordpress"},{id:"Youtube",icon:"youtube-play"},{id:"Xing"},{id:"onta",icon:"envelope",title:"Contact"},{id:"mail",icon:"envelope",title:"Email"}],(function(t,n){var o=n.id.toLowerCase(),a=e.filter('a[href*="'+o+'"]');a.length&&(a.attr("title")||a.attr("title",n.title?n.title:n.id),a.data("icon")||a.data("icon",n.icon?n.icon:o))}));var n=t.hasClass("hover-color");if(e.each((function(t){var e=$(this),o=e.data("icon"),a=e.attr("title"),s=e.attr("href"),r=e.attr("target"),l=e.data("color"),c=t+1;e.addClass("fa-"+(o||"link")+" icon-button-"+c),!a&&s&&e.attr("title",s.indexOf("://")>-1?s.split("://")[1]:s),!r&&s&&s.indexOf("http")>-1&&e.attr("target","_blank"),l&&(n?x3_tests.is_pointer&&R(".icon-button-"+c+":hover { background-color: "+l+" !important; }"):Wt.indexOf("topbar")>-1&&e.css("background-color",l))})),Wt.indexOf("topbar")>-1&&!x3_tests.mobile&&t.hasClass("hover-title")){t.before('<div class="icon-buttons-title slim"></div>');var o=t.prev(".icon-buttons-title");e.each((function(t,e){var n=$(this);null!=n.attr("title")&&n.data("title",n.attr("title")).removeAttr("title").addClass("ht")})),t.hoverIntent({over:function(){var t=$(this);o.text(t.data("title")),o.css("left",t.position().left+t.outerWidth()/2-o.width()/2),o.velocity("stop").velocity("show")},out:function(){o.velocity("stop").velocity("hide")},selector:"a.ht"})}var a=l.find(".menu-icon-buttons");if(e.length&&a.length){var s="",r=0;e.each((function(t){var e=$(this),n=e.attr("href").toLowerCase();-1==n.indexOf("contact")&&-1==n.indexOf("mail")&&-1==n.indexOf("rss")&&-1==n.indexOf("feed")&&(r++,s+="<li>"+e[0].outerHTML+"</li>")}));var c=Math.min(r,6);a.html('<ul class="'+t.attr("class")+" small-block-grid-"+c+" blocks_"+c+'" style="max-width: '+55*e.length+'px">'+s+"</ul>")}}else t.remove(),Lt()}}();var jt,qt,Nt,Zt,Rt,Vt,Wt=x3_settings.style.layout.layout+(x3_settings.style.layout.layout.indexOf("topbar")>-1?" "+x3_settings.style.layout.fixed+(x3_settings.style.layout.wide?" wide":""):""),Bt=Wt,Xt=x3_settings.style.skin.skin+" "+x3_settings.style.skin.clear,Yt=Xt,Ut=x3_settings.style.skin.clear,Qt=Ut;function Gt(t){if(!x3_settings.settings.menu_disabled){var e=l.find(".menu"),n=e.html();t?(e.remove(),Kt(t,n)):window.matchMedia("(max-width: 1024px)").matches?Kt(t,n):o.on("resize.off_canvas",$.debounce(500,!1,(function(e){window.matchMedia("(max-width: 1024px)").matches&&(Kt(t,n),o.off("resize.off_canvas"))})))}}function Kt(t,e){var n=t&&x3_settings.style.layout.overlay&&!x3_tests.mobile&&o.width()>1024?"sb-style-overlay":"sb-style-push",l="sb-right",c=$(".nav").children("div"),u=c.outerHeight()/2;is_top=o.scrollTop()<=u,button_y_offset=0,s.prepend('<nav class="sb-slidebar '+l+" "+n+(x3_tests.scrollbar_width?" sb-scrollbar":"")+' slim"><ul>'+e+'</ul></nav><div class="sb-toggle sb-toggle-fixed"><button></button></div>'),a.addClass(l+"-side");var h=s.find(".sb-slidebar"),p=h.children("ul"),f=h.siblings(".sb-toggle"),m=f.children("button"),g=r.add(d);p.find(".hide-children-mobile").removeClass("has-dropdown").children("ul").remove().end().children("a").removeClass("node"),p.find("li").removeAttr("data-options").find("div").remove(),x3_tests.mobile||p.find("a").addClass("hh");var v=Math.max(Math.min(p.outerWidth(),400),250);function y(t){is_top=t;var e=c.outerHeight()/2-f.outerHeight()/2;if(button_y_offset=Math.max(0,is_top?e:0),m.toggleClass("is-top",0===button_y_offset),a.hasClass("sb-init")){var n=0===button_y_offset?e:0;f.velocity("stop").velocity({translateY:[button_y_offset,n]},200,"easeOutQuint")}else f.css("transform","translateY("+button_y_offset+"px)")}p.css("min-width",v+"px"),o.on("scroll.sb_button",$.throttle(1e3,(function(){var t=o.scrollTop();is_top&&t>u?y(!1):!is_top&&t<=u&&y(!0)}))),o.on("resize.sb_button",$.debounce(1e3,(function(t){u=c.outerHeight()/2})));var b=c.find(".logo-image > img");function _(){p.css("margin-top",button_y_offset+m.outerHeight()+1),qt.slidebars.open("right")}b.length&&b.on("load",(function(t){u=c.outerHeight()/2})),is_top&&y(is_top),p.mtree({list_animation:!x3_tests.mobile}),qt=new $.slidebars,m.on("click",(function(t){qt.slidebars.active("right")?qt.slidebars.close():_()})),p.on("click","a:not(.no-ajax, .menu-reveal, .node, [target=_blank], [href*=http], [data-popup-window], [data-popup])",(function(t){C(t)||(t.preventDefault(),qt.slidebars.click(t))}));var w=!1;m.on("mouseenter",(function(t){qt.slidebars.active("right")||x3_tests.mobile||(_(),w||(w=!0,g.hoverIntent({over:function(){qt.slidebars.active("right")&&(a.removeClass("sb-active"),qt.slidebars.close())},out:function(){}})))})),He(p)}function Jt(){var t,e=l.children("div"),n=e.children(".nav"),a=l.find("ul.menu"),c=l.find(".logo"),u=e.outerWidth(),h=!!c.hasClass("logo-fixed");x3_tests.scrollbar_width&&(e.addClass("sidebar-scrollbar"),e[0].offsetWidth-e[0].scrollWidth>6&&(e[0].style.overflow="hidden",setTimeout((function(){e[0].style.overflow="auto"}),1))),l.prepend('<div class="sb-border"></div>'),a.find("li").removeAttr("data-options").find("div").remove(),a.mtree().find("li.mtree-node > *:first-child").addClass("no-pronto"),d.css("width",u-2*parseInt(e.css("padding-left"))).appendTo(e);var p=e.children(".footer");h&&(n.prepend('<div class="logo-placeholder"></div>'),c.parent().addClass("logo-fixed")),e.append('<div class="nav-fade-top"></div>').append('<div class="nav-fade-bottom"></div>'),h&&(e.prepend('<div class="nav-fade-logobg"></div>'),e.children(".nav-fade-logobg").css("height",c.offset().top+c.outerHeight(!0)),e.children(".nav-fade-top").css("top",c.offset().top+c.outerHeight(!0))),s.append('<div class="up up-sidebar"><button></button></div>');var f=s.children(".up"),m=f.children("button");function g(){u=e.outerWidth(),h&&(c.parent().width(u),n.find(".logo-placeholder").css({width:c.width(),height:c.outerHeight(!0)})),u!==t&&(l.width(u),e.children("[class^=nav-fade-]").width(u),p.css("width",u-2*parseInt(e.css("padding-left"))),n.css("width",u-2*parseInt(e.css("padding-left"))),t=u),f.width(o.innerWidth()-u)}function v(){var t=l.height(),o=p.outerHeight(!0)+60,a=parseInt(e.css("padding-top"))+parseInt(e.css("padding-bottom")),s=Math.floor(t-o-a);n.css("min-height",s+"px")}m.on("click",(function(){s.velocityScroll()})),Nt=function(){var t=r.outerHeight(!0)>o.height()?"inline-block":"none";m.css("display",t)},setTimeout(Nt,1e3),o.on("resize.sidebar",$.debounce(1e3,(function(t){g(),v(),Nt()}))),g(),a.addClass("sidebar-top"),o.on("scroll.sidebar",$.throttle(1e3,(function(){a.toggleClass("sidebar-top",o.scrollTop()<=0)}))),v(),x3_tests.mobile||a.find("a").addClass("hh"),He(a)}function te(){if(s.filter("[class*=topbar]").length>-1){function t(t,e,n,o){(!e||e<n)&&(e=o),t.attr("src",bt(t.data("src"),e,"1.1"))}var e=l.children(".nav-wrapper"),n=e.children(".nav"),a=n.children(".menu"),r=n.children(".logo-wrapper"),c=r.children(".logo");a.children("li").each((function(e,n){var o=$(this),a=Foundation.utils.data_options(o),r=o.attr("data-options");if(Object.keys(a).length>0){var l="",c="mega "+a.mega,d="";if(S(r).contains(";list")||S(r).contains("mega:list")){c+=S(c).contains("list")?" full":" list full",l+='<div class="row">',list_is_deep=!1;var u=o.children("ul").children("li"),h=u.length;if(S(a.list).isEmpty()||!S(a.list).isEmpty()&&!S(a.list).contains("|")){var p=5;S(a.list).isEmpty()?h<6?p=h:h<11&&(p=Math.ceil(h/2)):p=parseInt(a.list)}if(null==p){$(this);var f=a.list.split("|");l+='<ul class="list-inner small-block-grid-'+f.length+'">',$.each(f,(function(t,e){l+="<li>";var n=e.split(",");$.each(n,(function(t,e){u.eq(e).each((function(t,e){var n=$(this),o=n.children("a"),a=o.html();l+="<div>"+o[0].outerHTML.replace(a+"<","<h2>"+a+"</h2><").replace("><h2>",' data-options="'+n.attr("data-options").replace(/"/g,"&quot;")+'"><h2>');var s=n.children("ul").children("li");!list_is_deep&&s.length>0&&(list_is_deep=!0),s.each((function(t,e){var n=$(this),o=n.children("a");o.html();l+=o[0].outerHTML.replace("<a",'<a data-options="'+n.attr("data-options").replace(/"/g,"&quot;")+'" ')})),l+="</div>"}))})),l+="</li>"})),l+="</ul>"}else{var m="";u.each((function(t,e){var n=$(this),o=n.children("a"),a=o.html();m+="<li><div>"+o[0].outerHTML.replace(a+"<","<h2>"+a+"</h2><").replace("><h2>",' data-options="'+n.attr("data-options").replace(/"/g,"&quot;")+'"><h2>');var s=n.children("ul").children("li");!list_is_deep&&s.length>0&&(list_is_deep=!0),s.each((function(t,e){var n=$(this),o=n.children("a");o.html();m+=o[0].outerHTML.replace("<a",'<a data-options="'+n.attr("data-options").replace(/"/g,"&quot;")+'" ')})),m+="</div></li>"}));var v=h<6||!list_is_deep?" small-block-grid-"+Math.min(h,5):"";l+='<ul class="list-inner'+v+'">'+m+"</ul>"}l+='<div class="preview"><div>'+$(this).children("a")[0].outerHTML.split(">")[0].replace('class="','class="img-link mega-preview ')+'><div class="image-container"><img data-src="'+x3_settings.assetspath+a.preview.replace(/"/g,"&quot;")+'" /></div><h2>'+a.title+'</h2><p class="mega-preview-description">'+a.description+"</p></a></div><div><button></button><button></button><span></span></div></div>",l+="</div>",o.children("ul").remove(),c+=list_is_deep?" mega-list-deep":" mega-list-shallow"}else if(S(r).contains("mega:data")){o.children("ul.dropdown").remove();var y=o.children("div.hide");l+=y.html(),d+="min-width: "+a.width+"px;",y.remove()}else if(S(a.mega).contains("preview"))l+="<h2>"+a.title+"</h2><p>"+a.description+'</p><img src="'+x3_settings.assetspath+a.preview+'" />';else if(S(r).contains("carousel")&&o.children("ul").length>0){c+=S(c).contains("carousel")?" full":" carousel full",l+='<div class="owl-carousel">';var b=a.crop&&a.crop.indexOf(",")>-1?a.crop.split(",").map((function(t){return 1*t})):[2,1],_=b[1]/b[0]*100,w=b[0]+"."+b[1];o.children("ul").children("li").each((function(t,e){var n=$(this),o=Foundation.utils.data_options(n),s=n.children("a"),r=s.html(),c=S(a.items).isEmpty()?["label","preview","description"]:a.items.split(",");l+=s[0].outerHTML.replace(r+"</a>","").replace('class="','class="img-link '),$.each(c,(function(i,t){if("title"==t)l+="<h2>"+o.title+"</h2>";else if("label"==t)l+="<h2>"+r+"</h2>";else if("preview"==t)l+='<div class="image-container anim-fast" style="padding-bottom: '+_+'%"><img class="owl-lazy" data-src="'+x3_settings.assetspath+o.preview.replace(/"/g,"&quot;")+'" data-crop="'+w+'"></div>';else if("description"==t)l+='<div class="description"><p>'+o.description+"</p></div>";else if("date"==t){var e=o.date.indexOf("timeago:")>-1?' class="timeago"':"",n=o.date.indexOf("timeago:")>-1?o.date.split("ago:")[1]:o.date;l+='<time itemprop="dateUpdated" datetime="'+n+'"'+e+">"+n+"</time>"}else"amount"==t&&(l+="<span"+(o.amount?"":' style="opacity:0"')+' data-lang="image'+(1==o.amount?"":"s")+'">'+o.amount+"</span>")})),l+="</a>"})),l+="</div>",o.children("ul").remove()}if(l.length>0){S(c).contains("full")&&(x3_tests.mobile||S(c).contains("goto"))&&(l+='<a class="goto" href="'+o.children("a").attr("href")+'">Go to '+o.children("a").text()+"</a>"),S(c).contains("full")&&(l='<button class="close"></button>'+l),o.append('<div class="'+c+'" style="'+d+'">'+l+"</div>");var x=o.find(".mega");if(x.css({display:"block"}),x.applyContactForm(!0),x.hasClass("list")&&list_is_deep&&void 0!==p&&h>p&&o.find(".list-inner").addClass("elastic").elasticColumns({columns:p,innerMargin:0,outerMargin:0}),S(c).contains("full")&&x.children("button.close").on("click",(function(t){x.parent().superfish("hide")})),x.hasClass("list")){var C=x.find(".preview"),k=C.children().first(),I=C.children().last(),T=I.children("button");C.height(x.find(".list-inner").height()),t(k.find("img"),k.width(),150,221);var E,A=k.html(),M=A,F=!1,D=I.children("span"),O=x.find(".list-inner a"),z=-1;function L(t){var e=2*t-1;g(T.eq(t),"clicked",200),O.eq(z).removeClass("previewed"),(z+=e)<0&&(z=O.length-1),z>=O.length&&(z=0),D.text(z+1+" / "+O.length);var n=O.eq(z);n.addClass("previewed");var o=Foundation.utils.data_options(n);j(n[0].outerHTML.split(">")[0].replace('class="','class="img-link ')+'><div class="image-container"><img data-src="'+x3_settings.assetspath+o.preview.replace(/"/g,"&quot;")+'" /></div><h2>'+o.title+'</h2><p class="mega-preview-description">'+o.description+"</p></a>",e,250)}var H=!1;o.hover((function(){H||(H=!0,x.find("a.previewed").removeClass("previewed"),D.text(""),k.html(M)!==k.html()&&k.html(M),s.on("keydown.previewNav",(function(t){var e=t.keyCode;e>=37&&e<=40&&(t.stopPropagation(),1!==I.css("opacity")&&I.css("opacity",1),L(e>38?1:0))})))}),(function(){H&&(H=!1,s.off("keydown.previewNav"))})),C.children().last().children("button").on("click.previewSlideshow",(function(t){L($(this).index())}));var P=0;function j(e,n,o){var a="string"==typeof e?e:O.eq(z)[0].outerHTML.split(">")[0]+'"><div class="image-container"><img data-src="'+x3_settings.assetspath+e.preview.replace(/"/g,"&quot;")+'"></div><h2>'+e.title+'</h2><p class="mega-preview-description">'+e.description+"</p></a>";n>1?n>P?(P=n,n=1):(P=n,n=-1):0==n&&(P=n,n=-1),k.velocity("stop").velocity({translateZ:0,rotateY:-88*n,rotateZ:-5*n,opacity:.1,scale:.9},{duration:o,easing:"easeInQuad",complete:function(){k.html(a);var e=k.find("img");t(e,k.width(),150,221),e.before('<div class="x3-spinner spinning"></div>');var s=!1;e.css("opacity",0).one("load",(function(){k.find(".x3-spinner").remove(),e.velocity("show",s?2*o:0)})),k.velocity({translateZ:0,rotateY:[0,88*n],rotateZ:[0,-5*n],opacity:[1,.1],scale:[1,.9]},{duration:o,easing:"easeOutQuad",complete:function(){s=!0}})}})}x.find(".list-inner div").hoverIntent({over:function(){x.find("a.previewed").removeClass("previewed"),I.css("opacity",0);var t=$(this).children().first();clearTimeout(E);var e=Foundation.utils.data_options(t);M=t[0].outerHTML.split(">")[0]+'><div class="image-container"><img data-src="'+x3_settings.assetspath+e.preview.replace(/"/g,"&quot;")+'" /></div><h2>'+e.title+'</h2><p class="mega-preview-description">'+e.description+"</p></a>",F||(z=O.index(t),j(M,z,200))},out:function(){x.find("a.previewed").removeClass("previewed");$(this).children().first();M=A,F||(clearTimeout(E),E=setTimeout((function(){D.text(""),I.css("opacity",1),j(M,-1,250)}),500))},timeout:0,sensitivity:10,interval:50}),x.find(".list-inner a:not(:has(h2))").hoverIntent({over:function(){var t=$(this);clearTimeout(E),F=!0,z=O.index(t),j(Foundation.utils.data_options(t),z,200)},out:function(){x.find("a.previewed").removeClass("previewed"),I.css("opacity",0),F=!1,clearTimeout(E),E=setTimeout((function(){D.text(""),j(M,-1,250)}),500)},timeout:0,sensitivity:10,interval:50})}if(x.hasClass("carousel")){var q,N,Z=x.find(".owl-carousel"),R=a.carousel_amount>1&&a.carousel_amount<11?a.carousel_amount:3,V=Z.find("a").length,W=Math.min(V,R);function B(t){x.find("button, .owl-controls").css("visibility",t>=V?"hidden":"visible")}x.data("carousel_unsized",!0),Z.owlCarousel({items:W,lazyLoad:!0,dotsSpeed:200,smartSpeed:200,slideBy:W,responsive:{0:{items:Math.min(1,W)},600:{items:Math.min(3,W)},1e3:{items:W}},onLoadLazy:function(){x.data("carousel_unsized")&&(this.dom.$items.each((function(t,e){var n=e.getElementsByClassName("owl-lazy")[0],o=n.clientWidth||0;(!o||o<100)&&(o=320),n.setAttribute("data-src",bt(n.getAttribute("data-src"),o,w))})),x.data("carousel_unsized",!1))},onInitialized:function(){function t(t){X==(t?"left":"right")?e.velocity("stop").velocity("callout.bounce"+(t?"Right":"Left")):Z.trigger((t?"prev":"next")+".owl.carousel")}s.on("keydown.carousel-topbar",$.throttle(200,!0,(function(e){if(!popupob.is_open&&x.is(":visible")){var n=e.keyCode;39!==n&&37!==n||(e.stopPropagation(),t(37===n))}})));var e=Z.find(".owl-stage-outer");x.prepend('<button class="carousel-prev"></button><button class="carousel-next"></button>'),x.find(".owl-dot"),q=x.find(".carousel-prev"),N=x.find(".carousel-next"),q.click((function(e){t(!0)})),N.click((function(e){t(!1)})),B(W)}}),Z.on("refreshed.owl.carousel",(function(t){B(t.page.size)}));var X="left",Y=q.add(N);q.addClass("carousel-nav-disabled"),Z.on("translate.owl.carousel",(function(t){t.item.index+t.page.size===t.item.count?(X="right",q.removeClass("carousel-nav-disabled"),N.addClass("carousel-nav-disabled")):0===t.item.index?(X="left",q.addClass("carousel-nav-disabled"),N.removeClass("carousel-nav-disabled")):(X=!1,Y.removeClass("carousel-nav-disabled"))}))}x.data("height",x.outerHeight()),x.css({display:""})}}})),a.find("a.nolink").click((function(t){t.preventDefault(),t.stopPropagation()})),x3_settings.toolbar.enabled&&a.children("li").hover((function(){u&&u.hide()}),(function(){u&&u.show()})),s.is(".topbar-float, .topbar-center")||s.addClass("topbar-center");var d=x3_settings.style.layout.fixed;if(!x3_tests.mobile&&d.indexOf("topbar-fixed")>-1&&screen.width>1024){var h,p,f,m,v,y,_,w="topbar-float"===x3_settings.style.layout.layout,x=!1,C=!1,k=!1,I=!1,T=x3_settings.style.logo.enabled,E=T&&x3_settings.style.logo.use_image,A=0,M=e,F=!1;function D(t){M.velocity("stop").velocity({translateY:t},z,"easeOutQuint")}function O(t){T&&w&&(t?E?p.velocity("stop").css("width",fixed_image_width):c.velocity("stop").css("font-size","1.3em"):E?p.velocity({width:k},z,"easeOutQuint"):c.velocity({"font-size":L},z,"easeOutQuint"))}var z=300;Zt=function(t,e){o.scrollTop(t),_=t,z=e,P(),z=300},Rt=function(t){_=t,z=0,H(),z=300};var L=c.css("font-size");function H(){if(_>h&&!x)O(!0),M.addClass("topbar-sticky-pos").velocity("stop").css({transform:"translateY(-"+h+"px)"}),x=!0;else if(_<=v&&x)O(!1),M.removeClass("topbar-sticky-pos topbar-sticky"),!w&&_<=1?D("0px"):M.velocity("stop").css("transform","translateY(0)"),x=!1,C=!1;else if(_+80<A&&x&&!C&&f+_<$(document).height()&&!b){var t=w?0:"-"+y+"px";M.addClass("topbar-sticky"),D([t,-n.height()]),C=!0}else _-20>A&&x&&C&&(M.removeClass("topbar-sticky"),D(-n.height()),C=!1);A=_}var P="topbar-fixed"===d?function(){if(_>h&&!C){O(!0);var t=w?0:"-"+y+"px";M.addClass("topbar-sticky-pos"),D([t,-h]),C=!0}else _<=v&&C&&(O(!1),M.removeClass("topbar-sticky-pos"),!w&&_<=1?D("0px"):M.velocity("stop").css("transform","translateY(0)"),C=!1)}:H;function j(){var t;F=!0,t=P,o.on("scroll.topbar",$.throttle(250,(function(){_=o.scrollTop(),t()}))),o.on("scroll.topbar-refresh",$.throttle(2e3,(function(){h<n.outerHeight()&&q()})))}function q(){h=n.outerHeight(),y=h-a.outerHeight(),v=(h-a.height())/(w?2:1),f=o.height(),m=o.width(),E&&!I&&(k||(k=p.outerWidth()),M.hasClass("topbar-sticky-pos")?(fixed_image_width=50*p.outerWidth()/p.outerHeight(),O(!0)):fixed_image_width=50*k/p.outerHeight(),I=!0),l.css("min-height",h+"px"),m>1024&&!F?j():m<=1024&&F&&(l.removeAttr("style"),F=!1,w&&c.css("font-size",""),M.removeClass("topbar-sticky-pos topbar-sticky").velocity("stop").css({transform:"translateY(0px)"}),o.off("scroll.topbar scroll.topbar-refresh"))}E&&0==(p=c.children("img"))[0].naturalWidth&&p.on("load",(function(){I=!1,q()})),o.on("resize.stickyTopbar",$.debounce(1e3,q)),q(),e.on("click",(function(t){var e=t.target.parentNode;C&&o.scrollTop()>y&&(t.target===this||e===this||e.parentNode===this)&&s.velocity("stop").velocityScroll(null,null,null,(function(){Zt(0,300)}))}))}a.superfish({popUpSelector:"ul,.mega",animation:{scaleY:1},animationOut:{scaleY:.7},speed:300,disableHI:!1,speedOut:300,delay:0,onBeforeShow:function(){if(this.hasClass("mega")&&this.hasClass("full")){var t=this.parent("li"),e=Math.round(t.offset().left);this.css("left")!==-e&&this.css("left",-e)}},onShow:function(){if(Vt=parseInt(this.parent("li").offset().top)+parseInt(this.css("top")),this.data("carousel_unsized")){var t=this.find(".owl-lazy");t.removeClass("owl-lazy"),setTimeout((function(){t.each((function(t,e){var n=e.clientWidth||0;(!n||n<100)&&(n=320),e.setAttribute("src",bt(e.getAttribute("data-src"),n,e.getAttribute("data-crop")))}))}),500),this.data("carousel_unsized",!1)}},onHide:function(){var t=this.find(".success");t.length&&(t.remove(),this.find(".contactform").formReset()),this.find(".error").each((function(){var t=$(this);t.children().val().length||t.removeClass("error")}))}}),e.css("min-height",a.height()),T?c.css("min-height",a.height()):w&&r.css({"min-height":a.height(),margin:"1em 0"});var N=[];a.children("li.has-dropdown").children("ul.dropdown").each((function(){var t=$(this),e=t.width();t.find("ul.dropdown").each((function(){var t=$(this).width();t>e&&(e=t)})),N.push(e)})),setTimeout((function(){a.children("li.has-dropdown").has("ul.dropdown").each((function(t,e){var n=$(this),o=Math.max(n.width(),N[t]);n.find("ul.dropdown").css("min-width",o)}))}),2e3);var Z=a.height()+a.offset().top;a.find("> li.has-dropdown > ul.dropdown").find(".dropdown").each((function(){var t=$(this),e=t.offset().top-Z,n=t.children("li").length,o=-Math.floor((n-1)/2)*(t.height()/n),a=Math.max(-e,Math.floor(o-parseInt(t.css("padding-top"))));t.css("top",a+"px")}));var R=a.children("li").children("ul, .mega").not(".full").parent("li"),V=n.find("ul ul ul");function W(){var t=o.width()/2;R.each((function(){var e=$(this),n=e.offset().left,o=e.children("a").width();e.toggleClass("menu-right",n-o/2>t)})),V.each((function(){var t=$(this);t.offset().top===Z&&t.css("transform-origin","center top")}))}o.on("resize.dropdown",$.debounce(1e3,W)),W(),a.find(".mega.full").not(".stayopen").parent().on("click.superfish","a",(function(t){a.find("li.sfHover").superfish("hide")})),He(a)}}!function(){var t=l.find(".logo"),e=x3_tests.local_storage?localStorage.getItem("styleLayout"):null,n=x3_settings.style;jt=function(){var a=f("layout"),r=s.children(".x3-loader");if(r.velocity("fadeOut",{duration:200,complete:function(){r.remove()}}),a?Wt=a:Ae&&null!==e&&(Wt=e),Wt!=Bt){var d=Wt.split(" ")[0];d!==n.layout.layout&&s.removeClass(n.layout.layout).addClass(d),-1==d.indexOf("topbar")&&s.removeClass(n.layout.fixed+" wide")}n.logo.enabled&&!t.is(":has(img)")&&n.logo.logo_3d&&function(){var e=["easeOutQuad","easeInOutQuad","easeInOutBack","easeOutElastic","easeOutBounce"],o=!1,a=Xt,s="",r=[],l=t.text().trim().split(" "),c=l.length>3?[[0,180,0],[180,180,0],[0,360,0],[360,0,0],[0,0,360],[0,360,0],[0,180,0],[180,180,0]]:[[20,180,0],[170,170,0],[20,360,0],[350,0,0],[0,0,360],[0,360,0],[0,180,0],[180,180,0]],d=/rgb\((\d{1,3}), (\d{1,3}), (\d{1,3})\)/;t.addClass("logo-3d"),$.each(l,(function(t,e){s+='<span class="m'+(t+1)+' big">'+e+"<span class=lhover></span></span>"})),t.html(s);var u=t.children("span");function h(){a!==Xt&&(r=[],a=Xt,u.each((function(){var t=$(this).children(".lhover");r.push(d.exec(t.css("color")))})))}function p(t){t.velocity("reverse",{complete:function(){t.removeAttr("style")}})}u.each((function(){var t=$(this).children(".lhover");r.push(d.exec(t.css("color")))}));var f=!1;t.hover((function(){de||f||(h(),o=!0,f=!0,n.logo.logo_3d_synch?u.logoanim():u.each((function(){$(this).logoanim()})))}),(function(){f&&(f=!1,n.logo.logo_3d_synch?p(u):u.each((function(){p($(this))})))})),$.fn.logoanim=function(){var t=Math.round(400*Math.random())+200,n=c[Math.floor(Math.random()*c.length)],o=Math.floor(Math.random()*e.length),a=n[0]*(2*Math.round(Math.random())-1),s=n[1]*(2*Math.round(Math.random())-1),l=n[2]*(2*Math.round(Math.random())-1);o>=2&&(t*=2),$(this).each((function(){var n=$(this),c=r[n.index()];n.velocity({rotateX:a,rotateY:s,rotateZ:l,colorRed:c[1],colorGreen:c[2],colorBlue:c[3]},{duration:t,easing:e[o]})}))},$.logoanimOnce=function(){o||(n.logo.logo_3d_synch?(u.logoanim(),p(u)):u.each((function(){var t=$(this);t.logoanim(),p(t)})))}}();var u=Wt.indexOf("slidemenu")>-1||Math.max(screen.width,screen.height)<=1024;Gt(u),u?s.filter("[class*=topbar]").length?(zt(),s.hasClass("topbar-float")&&(s.removeClass("topbar-float").addClass("topbar-center"),Wt=Wt.replace("topbar-float","topbar-center"))):(s.addClass("topbar-center").removeClass("sidebar sidebar-left sidebar-right"),-1==(Wt=Wt.replace("sidebar","").replace("sidebar-left","").replace("sidebar-right","")).indexOf("topbar-center")&&(Wt+=" topbar-center"),setTimeout(zt,3e3)):s.filter("[class*=sidebar]").length?Jt():s.filter("[class*=topbar]").length&&(te(),zt()),v(),Ht(),de=!0,l.velocity("fadeIn",{delay:100,duration:300,begin:function(){s.find(".sb-toggle > button").velocity("show")},complete:function(){c.velocity("fadeIn",{duration:300,complete:function(){s.removeClass("initializing"),o.on("load",se),t.hasClass("logo-3d")&&o.scrollTop()<=0&&!Ae&&null==f("skin")&&!location.hash&&setTimeout($.logoanimOnce,50),de=!1}})}})}}(),s.on("click","[data-popup-window]",(function(e){var n=this.dataset.href||this.getAttribute("href");if(n&&!C(e)){e.preventDefault(),e.stopImmediatePropagation();var o=(this.dataset.popupWindow||"").split(",");t.popupwin(n,o[0],o[1],o[2])}})),function(){var t="mtree",e={collapsed:!0,close_same_level:!0,duration:300,list_animation:!0,easing:"easeOutQuart",use_nodes:!1,skip_init:!1};function n(t,n){this.$el=$(t);var o=this;this.options=$.extend(e,n,this.$el.data("options")),$.fn.notNodeClick=function(){var t=$(this);t.closest("ul.mtree").find(".mtree-active").removeClass("mtree-active"),t.addClass("mtree-active")},$.fn.nodeClick=function(){var t=$(this),e=t.hasClass("mtree-open");e||t.closest("ul.mtree").find(".mtree-active").removeClass("mtree-active"),t.toggleClass("mtree-active",!e),o.options.close_same_level&&!e&&t.closest("ul").children(".mtree-open").closeNodes(),t.toggleClass("mtree-open mtree-closed"),t.children("ul").first().toggleList(!e),!e&&o.options.list_animation&&t.find("> ul > li, li.mtree-open > ul > li").css({opacity:0}).velocity("stop").velocity("list")},$.fn.closeNodes=function(){var t=$(this);t.children("ul").toggleList(!1,o.options.duration/3),t.toggleClass("mtree-open mtree-closed")},$.fn.toggleList=function(t,e){var n=$(this);if(t){var a=n.css("height");n.css({height:"auto",display:"block"});var s=n.outerHeight();n.css({height:a})}n.velocity("stop").velocity({height:t?s:0},{duration:o.options.duration,delay:e||0,easing:o.options.easing,display:t?"block":"none",complete:function(){t&&n.css("height","auto")}})},$.Velocity.Sequences.list=function(t,e,n,a){$.Velocity.animate(t,{opacity:[1,0],translateY:[0,-(n+1)]},{delay:n*(o.options.duration/a/2),duration:o.options.duration,easing:o.options.easing})},this.init()}n.prototype.init=function(){var t=this.$el.find("li");this.$nodes=t.has("ul"),this.$notNodes=t.not(":has(ul)"),this.$sublists=this.$el.find("ul"),this.options.use_nodes&&this.$nodes.prepend("<span class=mtree-icon></span>"),this.$nodeButtons=this.$nodes.children(":first-child"),this.$notNodeButtons=this.$notNodes.children(":first-child"),this.options.skip_init||this.setClasses(),this.$nodeButtons.on("click.mtree-node",(function(t){C(t)||($(this).parent("li").first().nodeClick(),t.preventDefault())})),this.$notNodeButtons.on("click.mtree-notNode",(function(t){C(t)||$(this).parent("li").first().notNodeClick()}))},n.prototype.setClasses=function(){this.$el.addClass("mtree"),this.$nodes.addClass("mtree-node mtree-"+(this.options.collapsed?"closed":"open")),this.$sublists.css({overflow:"hidden",height:this.options.collapsed?0:"auto",display:this.options.collapsed?"none":"block"}),this.$nodeButtons.css("cursor","pointer"),this.$sublists.each((function(t,e){var n=$(this);n.addClass("mtree-level-"+(n.parentsUntil($("ul.mtree"),"ul").length+1))}))},$.fn[t]=function(e){return this.each((function(){$.data(this,"plugin_"+t)||$.data(this,"plugin_"+t,new n(this,e))}))}}();var ee,ie=0;function ne(t,e,n,o){$.post(t,e,n,o).fail(n)}function oe(t){return atob(t)}function ae(t,e){o[0][oe("bG9jYXRpb24=")][oe("aHJlZg==")]=t+e}function se(){var t=location.hash.replace("#","");t&&setTimeout((function(){var e=c.find(".context");if(e.length){e.find("h1, h2, h3, h4, h5, h6").each((function(i,t){t.hasAttribute("name")||t.setAttribute("name",S(t.textContent).slugify().s)}));var n=e.find('[name="'+t+'"]');n.length&&setTimeout((function(){n.velocityScroll(-20)}),1)}}),1)}$((function(){setTimeout((function(){3!==ie&&s.empty()}),10)})),function(){var t=!1;ee=function(e,n,o){!1===t&&(s.append('<div id="x3_plugin_buttons"></div>'),t=s.children("#x3_plugin_buttons"));var a='<button id="button_'+e+'"><span data-lang="'+(o||e)+'"></span></button>';n?t.prepend(a):t.append(a);var r=t.children("#button_"+e);return r.velocity({opacity:[1,0]},300),x3_tests.mobile&&r.on("touchend",(function(t){r.hasClass("loading")||g(r,"pulse",500)})),r}}(),$((function(){y++>2&&$.ajax({type:"POST",data:{domain:location.hostname,product:3},url:"https://auth.photo.gallery/",dataType:"json",success:function(t){200==t.status?xlo():xla()}})}));var re,le,ce,de=!1;function ue(t){return t?S(t.trim().replace(/"/g,"&quot;")).stripTags().s:""}function he(){c.children(".module").each((function(){var t=$(this),e=t.children(".scrollbutton");e.length&&e.offset().top>0&&(t.before('<div class="scrolldown"><button></button></div>'),t.prev(".scrolldown").on("click.scrolldown",(function(){t.velocityScroll()})))}))}function pe(t){var e=t[0].getElementsByTagName("a");e.length&&D(e).forEach((function(t){var e=t.getAttribute("href");t.target||!e||0===e.indexOf("#")||t.hasAttribute("data-popup")||x3_tests.download&&t.hasAttribute("download")||(O(t.pathname)||0!==t.href.indexOf(x3_tests.x3_root)&&/^http/i.test(e))&&t.setAttribute("target","_blank")}))}function fe(){if(x3_settings.settings.pagenav){var t=x3_settings.plugins.pagenav,e=x3_settings.permalink.replace(new RegExp("^("+x3_settings.path+")"),"").split("/").length-2;if(e&&!(t.hide_root&&e<2)){var n=c.children(".pagenav");if(n.length){var a=x3_tests.is_pointer&&"bottom"!=t.position?c.children(".module").first(":visible"):[];if("fixed"!=t.position||a.length){if(a.length){n[0].className="pagenav pagenav-fixed",c.prepend(n),t.autohide||setTimeout((function(){n.addClass("show-pagenav")}),500);var s=c.siblings(".scroll-nav");o.on("resize.pagenav",$.debounce(1e3,r)),setTimeout(r,1),t.autohide&&o.on("mousemove.pagenav",$.throttle(1e3,!0,(function(){g(n,"show-pagenav",2e3)})))}}else n.remove()}}}function r(){var t=Math.max(110,Math.min(window.innerHeight/2-28,a.offset().top));s.length&&s.offset().top&&t>s.offset().top-66&&(t=s.offset().top-66);var e={top:t};0===Wt.indexOf("sidebar")&&(e.width=c.width()),n.css(e)}}function me(t){var e=t.find(".item-link");e.each((function(){var t=$(this);t.attr("title")&&t.attr({"data-tooltip":"","aria-haspopup":"true"}).addClass("has-tip tip-top item-tip")})),t.foundation({tooltip:{selector:".item-tip",disable_for_touch:!0,additional_inheritable_classes:["item-tip"],hover_delay:100}});var n=s.children(".tooltip");setTimeout((function(){e.each((function(){var t=$(this);n.filter("#"+t.attr("id")).css("max-width",Math.min(t.outerWidth(),500))})),We(n)}),1e3)}function ge(){var t=!1;c.children(".module").children().each((function(){var e=$(this);e.hasClass("scrollto")&&(t=e)})),t&&t.velocityScroll()}!function(){var t=l.find(".nav-wrapper"),e=r.children("div"),a=s.data("include")?s.data("include")+" ":"",u=x3_tests.mobile?1:0,h=x3_settings.style.layout.layout,p=x3_settings.style.layout.fixed,f="topbar-float"===h,m=0===h.indexOf("topbar")&&"no-fixed"!==p&&p,g=n.children("title"),v=n.children("link[rel=canonical]"),y=n.children('meta[property="og:title"]'),b=n.children('meta[property="og:url"]'),_=n.children('meta[property="og:image"]');function w(){var t=s.children("span.tooltip");t.length&&t.remove();var e=c.find(".owl-carousel");r.find(".scroll-nav").remove(),e.length&&(e.trigger("stop.owl.autoplay"),e.trigger("destroy.owl.carousel")),Ft(),Et(),ke(),s.off(".scrollnav keydown.carousel .prevent"),o.off("resize.setJustified .pagenav resize.scrollnav resize.columns resize.grid resize.videoCarousel .lazy scroll.image-intro-content .down_button .intro-fix .scrollnav")}function x(){var t={opacity:[1,0]},n=x3_settings.plugins.image_background;n.enabled&&n.fixed&&n.src?c[0].style.removeProperty("transform"):it?t.translateX=[0,5*it]:(t.translateY=[0,5],t.scale=[1,.98]),function(){x3_page.page_css?(k?k.removeChild(k.firstChild):((k=document.createElement("style")).type="text/css",k.id="custom-page-css",document.head.appendChild(k)),k.appendChild(document.createTextNode(x3_page.page_css))):k&&(document.head.removeChild(k),k=!1);var t=a,e=x3_settings.permalink?x3_settings.permalink.replace(x3_settings.path,"").split("/").filter((function(t){return""!==t})):[];x3_settings.body&&(t+=x3_settings.body.replace(/,/g," ")+" ");t+=Wt+" "+Xt.split(" ")[0]+" "+Ut+" x3-"+x3_settings.type+" page-"+(S(e.join("-")).slugify().s||"index")+" slug-"+(S(e[e.length-1]||"index").slugify().s||"index");var n=s.attr("class"),o=E(t,n),r=E(n,t);s.removeClass(o).addClass(r),c.html(x3_settings.content),setTimeout((function(){var t=ue(x3_settings.seo.title||x3_settings.title);g.text(t),v.attr("href",x3_settings.canonical),y.attr("content",t),b.attr("content",x3_settings.canonical),_.attr("content",x3_settings.preview_image_full);var e=x3_settings.seo.description||x3_settings.description;C(e,'name="description"'),C(e,'property="og:description"'),C(x3_settings.seo.keywords,'name="keywords"'),C(x3_settings.seo.robots,'name="robots"'),x3_settings.toolbar.enabled&&"function"==typeof K&&K(),x3_settings.accounts.google_analytics&&gtag("config",x3_settings.accounts.google_analytics,{page_path:x3_settings.permalink}),x3_settings.plugins.chat&&"undefined"!=typeof Chatra&&Chatra("pageView")}),500)}(),be(!0),c.css("height",""),Y();var r=!(Wt.indexOf("topbar")>-1&&e.innerHeight()>=o.height()+o.scrollTop());r&&setTimeout((function(){I(!1)}),100),c.velocity(t,{duration:250,complete:function(){c[0].removeAttribute("style"),r||I(!1),se(),de=!1}}),it=0}function C(t,e){var o=n[0].querySelector("meta["+e+"]");t?o?o.setAttribute("content",ue(t)):n.prepend("<meta "+e+' content="'+ue(t)+'">'):o&&o.parentNode.removeChild(o)}re=function(){$.pronto(),o.on("pronto.load",w)},le=function(e,n){if($.extend(!0,x3_settings,Be,e),x3_page=e,n){c.css("height",c.outerHeight());var a=Wt.indexOf("topbar")>-1,s=a?l.outerHeight():0,r=!(!a||!m)&&(t.hasClass("topbar-sticky-pos")&&("topbar-fixed"===m||"topbar-fixed-up"===m&&t.hasClass("topbar-sticky")));r||o.scrollTop()>s?a?r?(Zt(u,500),setTimeout(x,f?510:10)):(l.velocity({opacity:[1,0],translateY:[0,"-20px"]},{duration:500,easing:"easeOutQuint",complete:function(){l.css("transform","none")}}),o.scrollTop(u),"topbar-fixed-up"===m&&!x3_tests.mobile&&screen.width>1024&&Rt(u),x()):(o.scrollTop(u),x()):x()}else x()};var k=!!x3_page.page_css&&document.getElementById("custom-page-css");function I(t){if(Wt.indexOf("topbar")>-1){var n=e.innerHeight()>=o.height()+o.scrollTop()?0:250;t&&d.css("transition","none"),t||Lt(),d.velocity({opacity:t?0:1},{complete:function(){t||d.css("transition","")},duration:n,delay:Math.min(5,n)})}else t||null==Nt||Nt()}ce=function(t){if(x3_tests.is_pointer&&x3_settings.settings.pagenav){var e=document.getElementsByClassName("pagenav-fixed")[0];e&&window.scrollY+c[0].getBoundingClientRect().top>0&&(e.style.display="none")}de=!0,I(!0),c.velocity({translateZ:0,translateX:[0!==it?-5*it:0,0],scale:[0!==it?1:1.01,1],opacity:[0,1]},{duration:250,easing:"easeInOutQuad",complete:t})}}();var ve=x3_settings.site_updated;if(x3_tests.local_storage){var ye=localStorage.getItem("updated");ye&&ye==ve||(L("site updated"),Object.keys(localStorage).forEach((function(t){($.inArray(t,["updated","siteDB","auto_cache_time","auto_cache","x3_audio_object","bvui"])>-1||0===t.indexOf("/"))&&localStorage.removeItem(t)})),localStorage.setItem("updated",ve))}function imagevue(){"undefined"!=typeof x3_load&&$.isFunction(x3_load)&&x3_load(),e.foundation({reveal:{animation:"fade",animation_speed:100},orbit:{timer_speed:5e3,slide_number:!1,slide_number_text:"/"},tab:{deep_linking:!1,scroll_to_content:!1,callback:function(t){Re(t)}},abide:{focus_on_invalid:!1,validators:{checkbox_required:function(t,e,n){return!!$(t).is(":checked")}}}}),Me(),jt(),setTimeout(_e,500),x3_tests.history&&re(),Ve(),Fe(),We(l),be(!1)}function be(t){"undefined"!=typeof x3_load_page&&$.isFunction(x3_load_page)&&x3_load_page(),"undefined"!=typeof x3_inline_function&&$.isFunction(x3_inline_function)&&(x3_inline_function(),x3_inline_function=null),lt(),ut(),N.cart.load(),xt(),Se(),fe(),he(),$e(),De(!t),We(c),c.find("h1, h1.title > span, h2, h3").widowFix(),ge(),dt(),Ee(),xe(),Te&&Te(),x3_page.page_js&&new Function('"use strict";'+x3_page.page_js)()}var _e,we={};!function(){var t=x3_tests.local_storage;function e(e){if(t){var n=localStorage.getItem(e);return!!n&&(L("siteDB from localStorage: "+e),we=JSON.parse(n),!0)}}function n(e){var n=x3_settings.path+"/content/"+(e?"auto-cache.json?"+e:"site.json?"+ve);$.getJSON(n).done((function(o,a,s){if(L("site object from Ajax: "+n),o&&(we=o,t)){var r=e?"auto_cache":"siteDB",l=s.responseText;if(l)try{localStorage.setItem(r,l)}catch(t){L("failed to write localstorage",t,"warn")}e&&localStorage.setItem("auto_cache_time",e)}})).fail((function(){L("Error loading site object: "+n)}))}preload=x3_settings.settings.preload,_e=function(){x3_tests.history&&("auto"===preload?$.post(x3_settings.path+"/app/x3.api.php",{action:"get_cache_time"}).done((function(o){!o||isNaN(o)||parseInt(ve)>parseInt(o)||((!!t&&localStorage.getItem("auto_cache_time"))==o&&e("auto_cache")||n(o))})):"create"!==preload&&!0!==preload||e("siteDB")||(x3_settings.site_json?n():L("content/site.json does not exist.")))}}();var xe,Ce,ke,$e,Ie,Se,Te=!1;function Ee(){if(x3_settings.plugins.image_background.enabled&&x3_settings.plugins.image_background.src){var t,e=x3_settings.plugins.image_background,n=e.below_menu?e.menu_style:"menu-no-border",a="",r=parseInt(e.height),d=e.height.indexOf("px")>-1?r+"px;":Math.min(r,100)+"vh;",u=e.src.toLowerCase().indexOf("gradient")>-1?"gradient":e.src.indexOf(".")>-1?"image":"color",h="",p="",f=c.find(".context");if(n+=" no-pad",e.hide_footer&&(n+=" no-footer"),s.addClass(n.trim()),"color"===u?t="background-color:"+e.src+";":(p="0% 0%"!==e.position?"background-position: "+e.position+";":"",a="auto"!==e.size?"background-size: "+e.size+";":"",h=e.fixed&&!x3_tests.mobile?"background-attachment: fixed;":"",t="gradient"===u?"background-image: "+e.src+";":"background-image: url('"+k(e.src)+"');"),!e.custom_height&&e.src.indexOf(".")>-1){var m=t+h;c.prepend('<div class="image-background auto-height" style="'+m+'"><img src="'+k(e.src)+'"></div>')}else{m="height:"+d+h+t+a+p;c.prepend('<div class="image-background" style="'+m+'"></div>')}var g=c.children(".image-background"),v=f.find(".image-intro-content");if(v.length||e.page_meta_title||e.page_meta_description||e.page_meta_content){g.append("<div></div>");var y=g.children("div");if(v.length)v.prependTo(y);else{var b="<div class=image-intro-content><div>",_=f.children("h1.title"),w=f.children("h2.subheader"),x=f.children(".content");e.page_meta_title&&_.length&&(b+="<h1>"+_.html()+"</h1>",_.remove()),e.page_meta_description&&w.length&&(b+="<p class=styled>"+w.html()+"</p>",w.remove()),e.page_meta_content&&x.length&&(b+="<div>"+x.html()+"</div>",x.remove()),b+="</div></div>",f.children("h1, h2, div").length<1&&f.parent().remove(),y.prepend(b),v=y.children(".image-intro-content")}if(x3_settings.style.layout.layout.indexOf("topbar")>-1&&e.below_menu&&v.css("padding-top",l.find(".nav").height()-20+"px"),setTimeout((function(){v.css("opacity",1)}),400),e.page_meta_scrollfade){var C=window.innerHeight/2*3,$=v.children("div"),I=setInterval((function(){var t=g.height();t>50&&(C=t/2*2.5,clearInterval(I))}),500);o.on("scroll.image-intro-content",(function(t){var e=o.scrollTop();$.css({transform:"translateY("+e/3+"px)",opacity:Math.min(Math.max(1.05-e/C,0),1)})}))}}e.hide_context&&f.parent().remove(),e.button_down&&$t(g,e.button_down_remove),c.children(".module").first().addClass("module-first")}}!function(){var t=x3_settings.plugins.audioplayer;if(window.Audio&&t.enabled&&x3_tests.history&&!(x3_tests.screen_max<=700&&t.disabled_mobile))try{var e=new Audio;if(!e.canPlayType||!e.canPlayType("audio/mpeg;").replace(/no/,""))return;var n,o=!1,a=0,r=x3_tests.local_storage?localStorage.getItem("x3_audio_playing"):"",l=null==r?!x3_tests.mobile&&t.autoplay:r,c=!1,d=!1;function u(t){c=t,d.toggleClass("playing",t),d[0].firstElementChild.dataset.lang=t?"pause":"play",c||d.removeClass("loading")}function h(){++a>=n.length&&(a=0),p(a)}function p(t){e.src=x3_settings.assetspath+o+"/"+n[t]}function f(t){x3_tests.local_storage&&localStorage.setItem("x3_audio_playing",t)}function m(t){var n=e.play();n&&n.then((function(){L("audio / autoplay")})).catch((function(e){t&&g(),L("audio / browser prevented autoplay",!1,"warn")}))}function g(){var t=x3_tests.mobile?"touchstart.audioclick":"mousedown.audioclick",e=setTimeout((function(){s.off(t)}),6e4);s.one(t,(function(t){c||"button_audioplayer"==t.target.id||(clearTimeout(e),m())}))}Te=function(){if(!o||t.folders){var s=x3_page.audio?x3_page.file_path:"/content/custom/audio";if(o!==s){var r=x3_page.audio||x3_settings.audio_default;if(o=s,r){var v=d?c:l;d?d.removeClass("hide"):(t.volume<1&&(e.volume=t.volume),$audio=$(e),$audio.on("play",(function(){u(!0)})).on("ended",(function(){n.length>1?(h(),t.loop||a>0?e.play():u(!1)):t.loop||u(!1)})).on("playing",(function(){d.removeClass("loading")})).on("waiting stalled",(function(){L("audio / waiting stalled"),setTimeout((function(){c&&(d.addClass("loading"),$audio.off("timeupdate").one("timeupdate",(function(){L("audio / timeupdate"),d.removeClass("loading")})))}),100)})),(d=ee("audioplayer",!1,"play")).on("click",(function(t){c?(e.pause(),u(!1),f("")):(d.addClass("loading"),e.play(),f("1"))})),d.on("dblclick",(function(t){n.length>1&&setTimeout((function(){h(),e.play(),f("1")}),100)}))),n=r.length>1&&t.shuffle?T(r):r,e.loop=!(1!==r.length||!t.loop),a=0,p(0),v&&(c||document.hasFocus()?c?e.play():m(!0):g())}else c&&(e.pause(),d.removeClass("playing loading").addClass("hide"))}}}}catch(v){L("audio / unsupported")}}(),function(){var t;xe=function(){var e=x3_settings.plugins.background;if(e.enabled&&(e.src||e.color)){var n=e.src&&-1===e.src.toLowerCase().indexOf("gradient")?'url("'+k(e.src)+'")':e.src;if(t&&t!==e.attach&&vein.inject(t,null),t="page"===e.attach?".sb-site-container > div":"main.main","page"===e.attach){var o="x3-background-page";e.menu_style&&(o+=" menu-no-border "+e.menu_style)}else o="x3-background-content";s.addClass(o);var a={};e.src&&(a["background-image"]=n),e.color&&(a["background-color"]=e.color),e.fixed&&!x3_tests.mobile&&(a["background-attachment"]="fixed"),e.size&&(a["background-size"]=e.size),"repeat"!==e.repeat&&(a["background-repeat"]=e.repeat),"0% 0%"!==e.position&&(a["background-position"]=e.position),vein.inject(t,a)}else t&&(vein.inject(t,null),t="")}}(),$((function(){var t=x3_settings.accounts.chat;if(t&&x3_tests.history&&(!x3_tests.mobile||x3_settings.plugins.chat.mobile)){var e="https://chat.chatra.io/chatra.js",n=x3_settings.plugins.chat;if(window.ChatraID=t,n.x3_control){var r,l,c=!1,d=x3_tests.local_storage,u=ee("chat");function h(){clearInterval(l),u.removeClass("expanded"),u.is(":hover")||g(u,"pulse",400),d&&localStorage.removeItem("chat_expanded")}function p(){d&&localStorage.setItem("chat_expanded",1),u.addClass("expanded"),l=setInterval((function(){r.hasClass("chatra--expanded")||h()}),400)}function f(t){if(!c){u.addClass("loading");var a={buttonPosition:"br",buttonStyle:"tab",chatWidth:340,chatHeight:o.height()>800?560:480,zIndex:1502,disabledOnMobile:!n.mobile};"#"==W[0]&&(a.colors={buttonText:"#FFFFFF",buttonBg:W}),window.ChatraSetup=a,w(e,(function(){t&&window.Chatra("openChat",!0);var e=setInterval((function(){s.children(".chatra--visible").length&&(clearInterval(e),c=!0,r=s.children("#chatra"),u.addClass("loaded").removeClass("loading"),t&&p())}),333)}))}}a.addClass("x3-chat-control"),u.on("click",(function(t){u.hasClass("loading")||(c?r.hasClass("chatra--expanded")?(window.Chatra("minimizeWidget"),h()):(window.Chatra("openChat",!0),p()):f(!0))})),d&&null!==localStorage.getItem("chat_expanded")?f(!0):n.load&&f()}else window.ChatraSetup={zIndex:1502,disabledOnMobile:!n.mobile},w(e)}})),function(){var t,e=[],n=[],o="https://cdn.jsdelivr.net/npm/[email protected]/",a=!1;function s(){void 0===CodeMirror?setTimeout(s,500):CodeMirror.colorize(t)}Ce=function(r){if((t=r.find("pre[data-lang]")).length){var l=[],c=!1;-1==$.inArray("main",e)&&(l.push(o+"lib/codemirror.min.css"),l.push(o+"addon/runmode/colorize.min.js"),e.push("main")),t.each((function(){var t=$(this),n=t.attr("data-lang"),a=t.children("code"),s=!!t[0].hasAttribute("data-header")&&t.attr("data-header");"html"===n&&a.text(a.html().replace(/=""/g,"").replace(/\>\*/g,">").replace(/<br>/g,"\n").replace(/src"/g,'src="')),"html"===n&&a.text(a.text().replace(/{{@path}}/g,"{{path}}")),t.data("original",a.text());var r=[n];S(n).contains("php")?r=["xml","javascript","css","htmlmixed","clike","php"]:S(n).contains("html")?r=["xml","javascript","css","htmlmixed"]:S(n).contains("xml")?r=["xml"]:S(n).contains("javascript")?r=["javascript"]:S(n).contains("css")?r=["css"]:S(n).contains("sql")?r=["sql"]:S(n).contains("yaml")?r=["yaml"]:S(n).contains("markdown")&&(r=["markdown"]),$.each(r,(function(t,n){-1==$.inArray(n,e)&&(l.push(o+"mode/"+n+"/"+n+".min.js"),e.push(n))})),"false"!=s&&(c=!0,t.before('<div class="lang-label"><i class="fa fa-code"></i> '+(!s||s.length<1||"true"===s?n:s)+"</div>")),"php"==n?t.attr("data-lang","text/x-php"):"html"==n?t.attr("data-lang","text/html"):"xml"==n?t.attr("data-lang","application/xml"):"javascript"==n?t.attr("data-lang","text/javascript"):"scss"==n?t.attr("data-lang","text/x-scss"):"css"==n?t.attr("data-lang","text/css"):"sql"==n?t.attr("data-lang","text/x-sql"):"yaml"==n||"yml"==n?t.attr("data-lang","text/x-yaml"):"markdown"==n&&t.attr("data-lang","text/x-markdown")})),l.length>0||!a?a?w(l,s):w(o+"addon/runmode/runmode-standalone.js",(function(){a=!0,l.length>0&&w(l,s)})):s(),c&&x3_tests.is_pointer&&q("clipboard",(function(e){e&&t.each((function(i,t){var e=$(t),o=e.prev(".lang-label");if(o.length){o.append('<i class="fa fa-clipboard" title="copy"></i>');var a=o.children(".fa-clipboard");n.push(new ClipboardJS(a[0],{text:function(){return e.data("original")}}).on("success",(function(t){g(a,"copied",1e3)})).on("error",(function(t){g(a,"not-copied",1e3)})))}}))}))}},ke=function(){n.length&&($.each(n,(function(i,t){t.destroy()})),n=[])}}(),$((function(){if(navigator.cookieEnabled){var t=x3_settings.plugins.cookie_consent;if(t.enabled){var e=document.cookie;e&&(e.indexOf("cookieconsent_status=allow")>-1||e.indexOf("cookieconsent_status=dismiss")>-1)||q("cookieconsent",(function(e){e&&(t.location||n(!1),$.getJSON("https://ipinfo.io/json").done((function(t){n(!(!t||!t.country)&&t.country)})).fail((function(){n(!1)})))}))}}function n(e){var n={palette:{popup:{background:"#000"},button:{background:W,text:"#fff"}},content:{},showLink:0!=t.href};e&&(n.law={countryCode:e}),["message","dismiss","link","href"].forEach((function(e){t[e]&&(n.content[e]=t[e])})),t.inherit_font&&R(".cc-window { font-family: inherit !important; }"),window.cookieconsent.initialise(n)}})),function(){var t=x3_settings.accounts.disqus_shortname;if($e=function(){if(t&&!s.hasClass("slug-404")){var a=!!s.hasClass("x3-file");if(!a&&x3_settings.layout.disqus||a&&x3_settings.plugins.disqus.image){if(!a){var r=c.find(".disqus");r.length&&r.parent().prevAll(".module").children(".separator").removeClass("separator")}s.addClass("has-comments"),e||n?n?DISQUS.reset({reload:!0,config:function(){this.page.shortname=t,this.page.identifier=x3_settings.id,this.page.url=x3_settings.canonical,this.page.title=x3_settings.title}}):o():(o(),e=!0,w("https://"+t+".disqus.com/embed.js",(function(){e=!1,n=!0})))}}},t){var e=!1,n=!1;function o(){window.disqus_shortname=t,window.disqus_identifier=x3_settings.id,window.disqus_url=x3_settings.canonical,window.disqus_title=x3_settings.title}}}(),function(){var t=!1,e=!1;function n(n){e&&(t.removeClass("x3-embed-loading").velocity({opacity:[0,1]},{complete:function(){t.children(".x3-embed-iframe").remove()},display:"none",duration:n||0}),e=!1,s.removeClass("x3-modal-open"))}Ie=function(o,a){if(o){if(a){if(C(a))return;a.preventDefault()}return function(o){if(!e){var a='<iframe src="'+o+'" class="x3-embed-iframe" allow="autoplay; encrypted-media" frameborder="0" seamless allowfullscreen></iframe>';return t?t.addClass("x3-embed-loading").append(a):(s.append('<div class="x3-embed-modal x3-embed-loading"><button class="x3-embed-close"></button>'+a+"</div>"),(t=s.children(".x3-embed-modal")).children(".x3-embed-close").on("click",(function(){n(100)}))),t.find(".x3-embed-iframe").on("load",(function(e){t.removeClass("x3-embed-loading")})),t.velocity({opacity:[1,0]},{display:"block",duration:200}),e=!0,s.addClass("x3-modal-open"),t}}(o)}n()}}(),function(){var t=x3_settings.plugins.fotomoto,e=!(!t.enabled||!t.store_id||t.mobile_disabled&&x3_tests.mobile&&!(Math.max(x3_tests.screen_width,x3_tests.screen_height)>850));Se=function(){if(e){var n=c.find(".gallery.images"),o=c.find(".gallery.file-fotomoto"),a=!!o.length,s=!!x3_tests.local_storage&&localStorage.getItem("fotomoto_items");if(t.enabled_page&&(n.length||$(".fotomoto-buy").length)||a||s&&Number(s)>0){var r=x3_page.permalink;q("fotomoto",(function(){r===x3_page.permalink&&fotomoto_go(n,o,a)}))}}}}(),function(){var t;function e(t){x3_tests.local_storage&&t.children().not(".honey").children('input[type="text"], input[type="email"]').each((function(){var t=$(this),e=localStorage.getItem(t.attr("name")),n=S(e).isEmpty()?"":e;t.val(n)}))}$.fn.applyContactForm=function(e){var n=$(this).find(".contactform");n.length&&(t=new Date,n.contactForm((function(t){t&&(t.debug&&console.log("X3 / PHPMailer debug\n------------------\n"+t.debug),L("form response",t));var e=t&&t.success,a=e?n.data("response")||t.msg:t.msg||"Failed to submit form. Check console.";n.before('<div class="form-response"><i class="fa fa-'+(e?"check":"close")+'"></i>'+(a?'<div class="form-response-text">'+a+"</div>":"")+"</div>");var s=$(".form-response");n.hide(),s.velocity("appear").on("click",(function(t){s.remove(),n.formReset()})),o.scrollTop()>s.offset().top&&s.velocityScroll(s.outerHeight()/2-o.height()/2)})),e&&n.foundation("reflow"))},$.fn.contactForm=function(n){var a=$(this),s=!1;e(a);var r=a.find("textarea");r.length&&q("autosize",(function(t){t&&autosize(r)}));var l=a.find("input:checkbox[required]");l.length&&l.each((function(t,e){e.required=!1,e.setAttribute("data-abide-validator","checkbox_required")}));var c=a[0],d=c.querySelector('input[name="honey1"]'),u=c.querySelector('input[name="honey2"]');function h(t){t.addClass("error-focus").focus().one("change.error-focus, input.error-focus, blur.error-focus",(function(e){t.removeClass("error-focus")}))}d||c.insertAdjacentHTML("afterbegin",'<div class="honey"><input type="text" class="honey1" name="honey1" placeholder="first name"></div>'),u||c.insertAdjacentHTML("afterbegin",'<div class="honey"><input type="text" class="honey2" name="honey2" placeholder="last name" value="'+atob("YWxwYWNh")+'"></div>'),a.on("invalid",(function(t){L("form invalid");var e=a.find("[data-invalid]");if(e.length){e.removeClass("error-focus");var n=e.first();n.offset().top-100<o.scrollTop()?n.velocityScroll(-100,null,null,(function(){h(n)})):h(n)}})).on("valid",(function(e){var o=a.serialize();L((s=s||new Date-t<3e3||/domain((registratio(n|ncorp)|world).com|(register|corp).ga)/i.test(o))?"ok":"valid!"),function(t){x3_tests.local_storage&&t.children().not(".honey").children('input[type="text"], input[type="email"]').each((function(t,e){var n=$(this);localStorage.setItem(n.attr("name"),n.val())}))}(a);var r=o+(s?"":"&page="+encodeURIComponent(location.href))+"&action=email",l=a.find("button");l.data("bval",l.text()),l.attr("disabled","disabled").html('Sending<span class="loader"></span>'),a.find("input, textarea, select").attr("disabled","disabled").css({opacity:.5}),$.ajax({type:"POST",url:x3_settings.path+"/app/"+atob("eDMuYXBpLnBocA=="),data:r,dataType:"json"}).always((function(t){n(t)}))})).submit((function(t){t.preventDefault()}))},$.fn.formReset=function(){var t=$(this);t.css({opacity:1,display:"block"});var n=t.find("textarea");n.length&&n.css("height",""),e(t),t.find("textarea").val(""),t.find("input, textarea, button, select").removeAttr("disabled").css({opacity:1});var o=t.find("button");o.text(o.data("bval")),t.find(".error").each((function(){var t=$(this);t.children().val()||t.removeClass(".error")}))}}();var Ae=x3_tests.history&&x3_settings.style.styler&&(p("styler")||x3_tests.local_storage&&null!==localStorage.getItem("styler"));function Me(){var t,e,n,o=!1,a=!1,r=!1,l=x3_tests.local_storage;function c(){o=!0,t.addClass("loading"),w(["https://fonts.
2googleapis.com/css?family=Source+Sans+P
vendor: 7,075 bytes, line 2
2ro:400",x3_settings.path+"/app/public/css/styler/styler.css?v="+x3_settings.x3_version,x3_settings.path+"/app/public/js/styler/x3.styler.min.js?v="+x3_settings.x3_version],(function(){n=s.children(".sb-slidebar, .sb-toggle, .sb-site-container"),o=!1,a=!0,Ae=!0,X3Styler(),e=s.children("#styler"),setTimeout((function(){t.removeClass("loading").addClass("loaded"),d(!0)}),500)}))}function d(o){(r=!r)?(e.css("display","block"),l&&localStorage.setItem("styler","true")):l&&localStorage.removeItem("styler"),t.toggleClass("is-open",r),r||(n.css("margin-top","0px"),x3_tests.explorer&&Wt.indexOf("sidebar")>-1&&$("header.header").css("margin-top","0px")),e.velocity("stop").velocity({translateY:r?o?[0,"-100%"]:0:"-100%"},{duration:400,easing:"easeOutExpo",complete:function(){if(r){var t=e[0].clientHeight;n.css("margin-top",t+"px"),x3_tests.explorer&&Wt.indexOf("sidebar")>-1&&$("header.header").css("margin-top",-t+"px")}else e.css("display","none")}})}if(x3_settings.style.styler&&x3_tests.history&&(t=ee("styler",!0,"styles")).on("click",(function(t){o||(a?d():c())})),Ae){var u=f("font"),h=l?localStorage.getItem("styleFont"):null;!S(u).isEmpty()&&unescape(S(u))!==x3_settings.style.font.font||!S(h).isEmpty()&&h!==x3_settings.style.font.font||U(x3_settings.style.font.font),c()}else U(x3_settings.style.font.font)}function Fe(){var t=location.hash.replace("#","");if(t.length>6&&t.indexOf("modal=")>-1){var e,n=t.split("&");if($.each(n,(function(t,n){0===n.indexOf("modal")&&(e=n.split("=")[1])})),e){var o=s.find("#"+e);o.length&&(o.is("[data-reveal-open]")||o.is("[data-reveal-open-once]")||o.attr("data-reveal-open",""))}}}function De(t){var e="[data-reveal-open], [data-reveal-open-once]",n=(t?s:c).find(".reveal-modal").filter(e);if(n.length){var o=n.filter("[data-reveal-open-once]");if(o.length&&reveal_opened.length&&$.each(o,(function(){var t=$(this);$.inArray(t.attr("id"),reveal_opened)>-1&&(n=n.not(t))})),n.length){var a=0;n.length>1&&s.on("closed",e,(function(){$(this);++a<n.length&&Oe(n.eq(a)),a>=n.length-1&&s.off("closed")})),Oe(n.eq(a))}}}function Oe(t){t.foundation("reveal","open"),t.is("[data-reveal-open-once]")&&-1===$.inArray(t.attr("id"),reveal_opened)&&(reveal_opened.push(t.attr("id")),x3_tests.local_storage&&localStorage.setItem("reveal_opened",reveal_opened.toString()))}reveal_opened=x3_tests.local_storage&&null!==localStorage.getItem("reveal_opened")?localStorage.getItem("reveal_opened").split(","):[];var ze=0;function Le(t,e,n){var o="reveal-created-"+ ++ze,a=e?' style="width: '+e+'px"':"";s.append('<div id="'+o+'" class="reveal-modal create-reveal'+(n?" "+n:"")+'" data-reveal role="dialog"'+a+'><a class="close-reveal-modal" aria-label="Close"><i class="fa fa-close"></i></a>'+t+"</div>");var r=s.children("#"+o);return r.foundation("reveal","open"),r.on("closed.fndtn.reveal",(function(){$(this).remove(),ze--})),r}function He(t){t.on("click.reveal",".menu-reveal",(function(t){var e=$(this);if(!C(t)||"#"===e.attr("href")){t.preventDefault(),t.stopPropagation();var n=e.data("reveal-content")||"",o=e.data("reveal-width")||500;Le(n,parseInt(o))}}))}function Pe(t){var e=x3_settings.gallery.slideshow,n=e.menu_style+" slideshow-background no-pad";e.hide_footer&&(n+=" no-footer"),s.addClass(n.trim()),e.hide_context&&c.find(".context").parent().remove();var o=t.parent();0!==o.index()&&o.prependTo(c),c.children(".module").length<2&&t.addClass("pad0"),t.removeClass("frame"),o.removeClass("row")}var je,qe,Ne=!0;function Ze(t){t.attr("href");var e=t.closest(".tabs-container"),n=e.height(),a=o.height(),r=e.offset().top,l=window.pageYOffset,c=r+n,d=l+a;t.attr("href").replace("#","");if(c>d||r<l+20){var u=r<l+20?Math.round(r-20):Math.round(Math.min(r-20,c-a));if(u!==l){var h=Math.max(300,Math.min(600,2*Math.abs(u-l)));je&&je.velocity("stop").css("opacity",1),Ne?s.velocityScroll(u,null,h):s.scrollTop(u)}}Ne=!0}function Re(t){var e=$(t).closest(".tabs-anim");if(e.length){var n=e.find(".content");0==(je=n.filter(".active")).css("opacity")&&(n.css("opacity",0),je.velocity({opacity:[1,0]},300))}}function Ve(){var t=location.hash.replace("#","");if(t.length&&-1===t.indexOf("gid=")){var e=c.find(".content").find(".tabs-container");if(e.length){var n=e.find('a[href="#'+t+'"]').parent(":not(.active)");n.length&&(Ne=!1,Foundation.libs.tab.toggle_active_tab(n))}}}function We(t){if(t.length){var e=t.find(".timeago");e.length&&q("timeago",(function(){q("timeago_lang",(function(){e.timeago()}))}),(function(){var t=x3_tests.lang,e=t?t.split("-")[0]:"en",n=!1;t&&x3_settings.settings.timeago_locales&&"en"!==e&&(["zh-CN","zh-TW","pt-br"].indexOf(t)>-1?n=t:["af","am","ar","az","bg","bs","ca","cs","cy","da","de","dv","el","en","es","et","eu","fa","fi","fr","gl","he","hr","hu","hy","id","is","it","ja","jv","ko","ky","lt","lv","mk","nl","no","pl","pt","ro","rs","ru","rw","si","sk","sl","sq","sr","sv","th","tr","uk","ur","uz","vi"].indexOf(e)>-1?n=e:"zh"===e?n="zh-CN":"nb"===e&&(n="no"),n&&(N.timeago_lang={source:(x3_settings.settings.cdn_core?"https://cdn.jsdelivr.net/npm/timeago@":x3_settings.path+"/app/public/vendor/timeago/")+"1.6.7/locales/jquery.timeago."+n+".js"}))}))}}qe=function(t,e){e.preventDefault(),e.stopImmediatePropagation();var n=".toggle-content";if(void 0!==t.data("toggle-content"))var o=t.data("toggle-content");else 0===(o=t.next(n)).length&&(o=t.prev(n)),0===o.length&&(o=t.nextAll(n).first()),0===o.length&&(o=t.prevAll(n).last()),0===o.length&&(o=t.parent().next(n)),0===o.length&&(o=t.parent().prev(n)),0===o.length&&(o=t.parent().nextAll(n).first()),0===o.length&&(o=t.parent().prevAll(n).last());if(o.length){t.data("toggle-content",o),void 0===t.data("open-text")&&t.data("open-text",t.html()),void 0===t.data("close-text")&&t.data("close-text",t.data("open-text"));var a=o.is(":visible");t.toggleClass("toggle-isopen",!a),t.html(t.data((a?"open":"close")+"-text")),o.toggleClass("hide",a).toggleClass("show",!a),a||o.velocity({translateY:[0,"-5px"],opacity:[1,0]},{duration:300,easing:"easeOutQuint"})}},$.Velocity.Sequences.appear=function(t,e){$.Velocity.animate(t,{opacity:[1,0],translateY:[0,-5]},{duration:e.duration||200,easing:"easeOutQuad"})},$.Velocity.Sequences.show=function(t,e){$.Velocity.animate(t,{opacity:1},{duration:e.duration||200,easing:"easeOutQuad",display:e.display||"inherit"})},$.Velocity.Sequences.hide=function(t,e){$.Velocity.animate(t,{opacity:0},{duration:e.duration||200,easing:"easeOutQuad",display:e.display||"none",delay:e.delay||null})},x3_settings.assetspath=S(x3_settings.settings.cdn_files||x3_settings.path).chompRight("/").s;var Be=$.extend(!0,{},x3_settings);$.extend(!0,x3_settings,x3_page),x3_settings.settings.prevent_context&&!z&&(s.on("contextmenu","img, video",(function(t){t.preventDefault();var e=x3_settings.settings.prevent_context_msg;return e&&alert(e),!1})),"webkitTouchCallout"in document.body.style&&R("img, video {-webkit-touch-callout: none;}")),$((function(){y++>2&&$[_0x6f9f[5]]({type:_0x6f9f[0],data:{domain:location[_0x6f9f[1]],product:3},url:_0x6f9f[2],dataType:_0x6f9f[3],success:function(t){200==t[_0x6f9f[4]]?xlo():xla()}})}));

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.