1/* 2 FastClick: polyfill to remove click delays on browsers with touch UIs. 3 4 @version 1.0.3 5 @codingstandard ftlabs-jsv2 6 @copyright The Financial Times Limited [All Rights Reserved] 7 @license MIT License 8*/(function(){"use strict";function e2(t2,r2){function s2(e3,t3){return function(){return e3.apply(t3,arguments)}}var i2;if(r2=r2||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=r2.touchBoundary||10,this.layer=t2,this.tapDelay=r2.tapDelay||200,this.tapTimeout=r2.tapTimeout||700,!e2.notNeeded(t2)){for(var o2=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],u=this,a=0,f=o2.length;a<f;a++)u[o2[a]]=s2(u[o2[a]],u);n&&(t2.addEventListener("mouseover",this.onMouse,!0),t2.addEventListener("mousedown",this.onMouse,!0),t2.addEventListener("mouseup",this.onMouse,!0)),t2.addEventListener("click",this.onClick,!0),t2.addEventListener("touchstart",this.onTouchStart,!1),t2.addEventListener("touchmove",this.onTouchMove,!1),t2.addEventListener("touchend",this.onTouchEnd,!1),t2.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(t2.removeEventListener=function(e3,n2,r3){var i3=Node.prototype.removeEventListener;e3==="click"?i3.call(t2,e3,n2.hijacked||n2,r3):i3.call(t2,e3,n2,r3)},t2.addEventListener=function(e3,n2,r3){var i3=Node.prototype.addEventListener;e3==="click"?i3.call(t2,e3,n2.hijacked||(n2.hijacked=function(e4){e4.propagationStopped||n2(e4)}),r3):i3.call(t2,e3,n2,r3)}),typeof t2.onclick=="function"&&(i2=t2.onclick,t2.addEventListener("click",function(e3){i2(e3)},!1),t2.onclick=null)}}var t=navigator.userAgent.indexOf("Windows Phone")>=0,n=navigator.userAgent.indexOf("Android")>0&&!t,r=/iP(ad|hone|od)/.test(navigator.userAgent)&&!t,i=r&&/OS 4_\d(_\d)?/.test(navigator.userAgent),s=r&&/OS ([6-9]|\d{2})_\d/.test(navigator.userAgent),o=navigator.userAgent.indexOf("BB10")>0;e2.prototype.needsClick=function(e3){switch(e3.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(e3.disabled)return!0;break;case"input":if(r&&e3.type==="file"||e3.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(e3.className)},e2.prototype.needsFocus=function(e3){switch(e3.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!n;case"input":switch(e3.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!e3.disabled&&!e3.readOnly;default:return/\bneedsfocus\b/.test(e3.className)}},e2.prototype.sendClick=function(e3,t2){var n2,r2;document.activeElement&&document.activeElement!==e3&&document.activeElement.blur(),r2=t2.changedTouches[0],n2=document.createEvent("MouseEvents"),n2.initMouseEvent(this.determineEventType(e3),!0,!0,window,1,r2.screenX,r2.screenY,r2.clientX,r2.clientY,!1,!1,!1,!1,0,null),n2.forwardedTouchEvent=!0,e3.dispatchEvent(n2)},e2.prototype.determineEventType=function(e3){return n&&e3.tagName.toLowerCase()==="select"?"mousedown":"click"},e2.prototype.focus=function(e3){var t2;r&&e3.setSelectionRange&&e3.type.indexOf("date")!==0&&e3.type!=="time"&&e3.type!=="month"?(t2=e3.value.length,e3.setSelectionRange(t2,t2)):e3.focus()},e2.prototype.updateScrollParent=function(e3){var t2,n2;if(t2=e3.fastClickScrollParent,!t2||!t2.contains(e3)){n2=e3;do{if(n2.scrollHeight>n2.offsetHeight){t2=n2,e3.fastClickScrollParent=n2;break}n2=n2.parentElement}while(n2)}t2&&(t2.fastClickLastScrollTop=t2.scrollTop)},e2.prototype.getTargetElementFromEventTarget=function(e3){return e3.nodeType===Node.TEXT_NODE?e3.parentNode:e3},e2.prototype.onTouchStart=function(e3){var t2,n2,s2;if(e3.targetTouches.length>1)return!0;if(t2=this.getTargetElementFromEventTarget(e3.target),n2=e3.targetTouches[0],r){if(s2=window.getSelection(),s2.rangeCount&&!s2.isCollapsed)return!0;if(!i){if(n2.identifier&&n2.identifier===this.lastTouchIdentifier)return e3.preventDefault(),!1;this.lastTouchIdentifier=n2.identifier,this.updateScrollParent(t2)}}return this.trackingClick=!0,this.trackingClickStart=e3.timeStamp,this.targetElement=t2,this.touchStartX=n2.pageX,this.touchStartY=n2.pageY,e3.timeStamp-this.lastClickTime<this.tapDelay&&e3.preventDefault(),!0},e2.prototype.touchHasMoved=function(e3){var t2=e3.changedTouches[0],n2=this.touchBoundary;return Math.abs(t2.pageX-this.touchStartX)>n2||Math.abs(t2.pageY-this.touchStartY)>n2},e2.prototype.onTouchMove=function(e3){return this.trackingClick&&(this.targetElement!==this.getTargetElementFromEventTarget(e3.target)||this.touchHasMoved(e3))&&(this.trackingClick=!1,this.targetElement=null),!0},e2.prototype.findControl=function(e3){return e3.control!==void 0?e3.control:e3.htmlFor?document.getElementById(e3.htmlFor):e3.querySelector("button, input
8:not([type=hidden]), keygen, meter, output, progress, select, textarea")},e2.prototype.onTouchEnd=function(e3){var t2,o2,u,a,f,l=this.targetElement;if(!this.trackingClick)return!0;if(e3.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(e3.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=e3.timeStamp,o2=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,s&&(f=e3.changedTouches[0],l=document.elementFromPoint(f.pageX-window.pageXOffset,f.pageY-window.pageYOffset)||l,l.fastClickScrollParent=this.targetElement.fastClickScrollParent),u=l.tagName.toLowerCase(),u==="label"){if(t2=this.findControl(l),t2){if(this.focus(l),n)return!1;l=t2}}else if(this.needsFocus(l))return e3.timeStamp-o2>100||r&&window.top!==window&&u==="input"?(this.targetElement=null,!1):(this.focus(l),this.sendClick(l,e3),(!r||u!=="select")&&(this.targetElement=null,e3.preventDefault()),!1);return r&&!i&&(a=l.fastClickScrollParent,a&&a.fastClickLastScrollTop!==a.scrollTop)?!0:(this.needsClick(l)||(e3.preventDefault(),this.sendClick(l,e3)),!1)},e2.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},e2.prototype.onMouse=function(e3){return!this.targetElement||e3.forwardedTouchEvent||!e3.cancelable?!0:!this.needsClick(this.targetElement)||this.cancelNextClick?(e3.stopImmediatePropagation?e3.stopImmediatePropagation():e3.propagationStopped=!0,e3.stopPropagation(),e3.preventDefault(),!1):!0},e2.prototype.onClick=function(e3){var t2;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):e3.target.type==="submit"&&e3.detail===0?!0:(t2=this.onMouse(e3),t2||(this.targetElement=null),t2)},e2.prototype.destroy=function(){var e3=this.layer;n&&(e3.removeEventListener("mouseover",this.onMouse,!0),e3.removeEventListener("mousedown",this.onMouse,!0),e3.removeEventListener("mouseup",this.onMouse,!0)),e3.removeEventListener("click",this.onClick,!0),e3.removeEventListener("touchstart",this.onTouchStart,!1),e3.removeEventListener("touchmove",this.onTouchMove,!1),e3.removeEventListener("touchend",this.onTouchEnd,!1),e3.removeEventListener("touchcancel",this.onTouchCancel,!1)},e2.notNeeded=function(e3){var t2,r2,i2;if(typeof window.ontouchstart>"u")return!0;if(r2=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1],r2)if(n){if(t2=document.querySelector("meta[name=viewport]"),t2&&(t2.content.indexOf("user-scalable=no")!==-1||r2>31&&document.documentElement.scrollWidth<=window.outerWidth))return!0}else return!0;return!!(o&&(i2=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/),i2[1]>=10&&i2[2]>=3&&(t2=document.querySelector("meta[name=viewport]"),t2&&(t2.content.indexOf("user-scalable=no")!==-1||document.documentElement.scrollWidth<=window.outerWidth)))||e3.style.msTouchAction==="none"||e3.style.touchAction==="none")},e2.attach=function(t2,n2){return new e2(t2,n2)},typeof define=="function"&&typeof define.amd=="object"&&define.amd?define(function(){return e2}):typeof module<"u"&&module.exports?(module.exports=e2.attach,module.exports.FastClick=e2):window.FastClick=e2})(),(function(n,t){"$:nomunge";var o,u=n.jQuery||n.Cowboy||(n.Cowboy={});u.throttle=o=function(n2,o2,e2,i){var r,a=0;function c(){var u2=this,c2=+new Date-a,f=arguments;function d(){a=+new Date,e2.apply(u2,f)}i&&!r&&d(),r&&clearTimeout(r),i===t&&c2>n2?d():o2!==!0&&(r=setTimeout(i?function(){r=t}:d,i===t?n2-c2:n2))}return typeof o2!="boolean"&&(i=e2,e2=o2,o2=t),u.guid&&(c.guid=e2.guid=e2.guid||u.guid++),c},u.debounce=function(n2,u2,e2){return e2===t?o(n2,u2,!1):o(n2,e2,u2!==!1)}})(this),(function(){function n(n2){var i2=window.innerWidth||document.documentElement.clientWidth,r2=window.innerHeight||document.documentElement.clientHeight,t2=n2.getBoundingClientRect();return t2.top>=0&&t2.bottom<=r2&&t2.left>=0&&t2.right<=i2}function t(n2){var i2=window.innerWidth||document.documentElement.clientWidth,r2=window.innerHeight||document.documentElement.clientHeight,t2=n2.getBoundingClientRect(),u=t2.left>=0&&t2.left<=i2||t2.right>=0&&t2.right<=i2,f=t2.top>=0&&t2.top<=r2||t2.bottom>=0&&t2.bottom<=r2;return u&&f}function i(n2,i2){function r2(){var r3=t(n2);r3!=u&&(u=r3,typeof i2=="function"&&i2(r3,n2))}var u=t(n2);window.addEventListener("load",r2),window.addEventListener("resize",r2),window.addEventListener("scroll",r2)}function r(t2,i2){function r2(){var r3=n(t2);r3!=u&&(u=r3,typeof i2=="function"&&i2(r3,t2))}var u=n(t2);window.addEventListener("load",r2),window.addEventListener("resize",r2),window.addEventListener("scroll",r2)}window.visibilityHelper={isElementTotallyVisible:n,isElementPartiallyVisible:t,inViewportPartially:i,inViewportTotally:r}})(),isYoutubeAPILoaded=!1;function loadYoutubeAPI(){if(!isYoutubeAPILoaded){var tag=document.createElement("script");tag.src="https://www.youtube.com/iframe_api";var firstScriptTag=document.getElementsByTagName("script")[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag)}}function onYouTubeIframeAPIReady(){isYoutubeAPILoaded=!0,$("body").trigger("youtubeAPIReady")}PaloAlto.FeaturedVideo=(function(){var players=[],isYoutubeAPIReady=!1,enableSound=!1,$playBtn,defaultYoutubeOptions={height:"720",width:"1280",playerVars:{showinfo:0,controls:0,fs:0,rel:0,height:"100%",width:"100%",iv_load_policy:3,html5:1,loop:1,playsinline:1,modestbranding:1,disablekb:1,wmode:"opaque"},events:{onReady:onPlayerReady,onStateChange:onPlayerStateChange}};function FeaturedVideo(container){var $container=this.$container=$(container),$player=$container.find(".video__iframe");enableSound=$container.find(".video").data("enable-sound"),$playBtn=$container.find(".play-button-mobile"),$player.length&&(this.playerID=$player.attr("id"),this.videoID=$player.data("video-id"),this.init()),$container.on("touchstart",".video-wrapper",function(e2){var playerID=$(this).find(".video__iframe").attr("id");players[playerID].playVideo()}),setVideoFullscreenSize(),$(window).on("resize",setVideoFullscreenSize);function setVideoFullscreenSize(){var $playerContainer=$container.find(".video"),$player2=$container.find(".video__iframe"),videoAspectRatio=16/9,containerAspectRatio=$playerContainer.width()/$playerContainer.height(),videoWidth,videoHeight;videoAspectRatio>containerAspectRatio?(videoWidth=$playerContainer.height()*videoAspectRatio,videoHeight=$playerContainer.height()):(videoWidth=$playerContainer.width(),videoHeight=$playerContainer.width()/videoAspectRatio),$player2.css({width:videoWidth,height:videoHeight})}}function onPlayerReady(event){var id=$(event.target.a).attr("id");id&&($(event.target.a).attr("tabindex","-1"),enableSound?event.target.unMute():event.target.mute(),event.target.playVideo(),$(event.target.a).parent().addClass("loaded"),checkPlayerVisibility(id),$(window).on("scroll."+id,{id},$.throttle(150,checkPlayerVisibility)))}function onPlayerStateChange(event){event.data==0?(event.target.playVideo(),$playBtn.addClass("visually-hidden")):event.data==1&&$playBtn.addClass("visually-hidden")}function checkPlayerVisibility(id){if(typeof id=="string")var playerID=id;else if(id.data!=null)var playerID=id.data.id;else return!1;var playerElement=document.getElementById(playerID+"-container"),player=players[playerID],isVisible=visibilityHelper.isElementPartiallyVisible(playerElement)||visibilityHelper.isElementTotallyVisible(playerElement);isVisible&&player&&typeof player.playVideo=="function"?player.playVideo():!isVisible&&player&&typeof player.pauseVideo=="function"&&player.pauseVideo()}return FeaturedVideo.prototype=$.extend({},FeaturedVideo.prototype,{init:function(){isYoutubeAPIReady?this.loadYoutubePlayer():(window.loadYoutubeAPI(),$("body").on("youtubeAPIReady",this.loadYoutubePlayer.bind(this)))},loadYoutubePlayer:function(){var currentYoutubeOptions=$.extend({},defaultYoutubeOptions);currentYoutubeOptions.videoId=this.videoID,players[this.playerID]=new YT.Player(this.playerID,currentYoutubeOptions),isYoutubeAPIReady=!0},onUnload:function(evt){var playerID="video-"+this.$container.data("section-id");players[playerID].destroy()}}),FeaturedVideo})();/* ===================================================================================== @preserve = 9 ___ _ _ _ 10/ || | | | | | 11\__ | | | | | | __ 12/ |/ |/_) |/ / \_/\/ 13\___/|__/| \_/|__/\__/ /\_/ 14 |\ 15 |/ 16Ajaxinate 17version v2.0.11 18https://github.com/Elkfox/Ajaxinate 19Copyright (c) 2017 Elkfox Co Pty Ltd 20https://elkfox.com 21MIT License 22================================================================================================= */var Ajaxinate=function(config){var settings=config||{},defaultSettings={pagination:".AjaxinatePagination",method:"scroll",container:".AjaxinateLoop",offset:0,loadingText:"Loading",callback:null};this.settings=Object.assign(defaultSettings,settings),this.addScrollListeners=this.addScrollListeners.bind(this),this.addClickListener=this.addClickListener.bind(this),this.checkIfPaginationInView=this.checkIfPaginationInView.bind(this),this.stopMultipleClicks=this.stopMultipleClicks.bind(this),this.destroy=this.destroy.bind(this),this.containerElement=document.querySelector(this.settings.container),this.paginationElement=document.querySelector(this.settings.pagination),this.initialize()};Ajaxinate.prototype.initialize=function(){if(this.containerElement){var initializer
22s={click:this.addClickListener,scroll:this.addScrollListeners};initializers[this.settings.method]()}},Ajaxinate.prototype.addScrollListeners=function(){this.paginationElement&&(document.addEventListener("scroll",this.checkIfPaginationInView),window.addEventListener("resize",this.checkIfPaginationInView),window.addEventListener("orientationchange",this.checkIfPaginationInView))},Ajaxinate.prototype.addClickListener=function(){this.paginationElement&&(this.nextPageLinkElement=this.paginationElement.querySelector("a"),this.clickActive=!0,this.nextPageLinkElement!==null&&this.nextPageLinkElement.addEventListener("click",this.stopMultipleClicks))},Ajaxinate.prototype.stopMultipleClicks=function(event){event.preventDefault(),this.clickActive&&(this.nextPageLinkElement.innerHTML=this.settings.loadingText,this.nextPageUrl=this.nextPageLinkElement.href,this.clickActive=!1,this.loadMore())},Ajaxinate.prototype.checkIfPaginationInView=function(){var top=this.paginationElement.getBoundingClientRect().top-this.settings.offset,bottom=this.paginationElement.getBoundingClientRect().bottom+this.settings.offset;top<=window.innerHeight&&bottom>=0&&(this.nextPageLinkElement=this.paginationElement.querySelector("a"),this.removeScrollListener(),this.nextPageLinkElement&&(this.nextPageLinkElement.innerHTML=this.settings.loadingText,this.nextPageUrl=this.nextPageLinkElement.href,this.loadMore()))},Ajaxinate.prototype.loadMore=function(){this.request=new XMLHttpRequest,this.request.onreadystatechange=function(){if(this.request.readyState===4&&this.request.status===200){var newContainer=$(this.request.response).find(this.settings.container),newPagination=$(this.request.response).find(this.settings.pagination);this.containerElement.insertAdjacentHTML("beforeend",newContainer.html()),this.paginationElement.innerHTML=newPagination.html(),this.settings.callback&&typeof this.settings.callback=="function"&&this.settings.callback(this.request.response),this.initialize()}}.bind(this),this.request.open("GET",this.nextPageUrl),this.request.send()},Ajaxinate.prototype.removeClickListener=function(){this.nextPageLinkElement.addEventListener("click",this.stopMultipleClicks)},Ajaxinate.prototype.removeScrollListener=function(){document.removeEventListener("scroll",this.checkIfPaginationInView),window.removeEventListener("resize",this.checkIfPaginationInView),window.removeEventListener("orientationchange",this.checkIfPaginationInView)},Ajaxinate.prototype.destroy=function(){var destroyers={click:this.removeClickListener,scroll:this.removeScrollListener};return destroyers[this.settings.method](),this};/*! 23 * Flickity PACKAGED v2.1.2 24 * Touch, responsive, flickable carousels 25 * 26 * Licensed GPLv3 for open source use 27 * or Flickity Commercial License for commercial use 28 * 29 * https://flickity.metafizzy.co 30 * Copyright 2015-2018 Metafizzy 31 */(function(t,e2){typeof define=="function"&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e2(t,i)}):typeof module=="object"&&module.exports?module.exports=e2(t,require("jquery")):t.jQueryBridget=e2(t,t.jQuery)})(window,function(t,e2){"use strict";function i(i2,o2,a){function l(t2,e3,n2){var s2,o3="$()."+i2+'("'+e3+'")';return t2.each(function(t3,l2){var h2=a.data(l2,i2);if(!h2)return void r(i2+" not initialized. Cannot call methods, i.e. "+o3);var c=h2[e3];if(!c||e3.charAt(0)=="_")return void r(o3+" is not a valid method");var d=c.apply(h2,n2);s2=s2===void 0?d:s2}),s2!==void 0?s2:t2}function h(t2,e3){t2.each(function(t3,n2){var s2=a.data(n2,i2);s2?(s2.option(e3),s2._init()):(s2=new o2(n2,e3),a.data(n2,i2,s2))})}a=a||e2||t.jQuery,a&&(o2.prototype.option||(o2.prototype.option=function(t2){a.isPlainObject(t2)&&(this.options=a.extend(!0,this.options,t2))}),a.fn[i2]=function(t2){if(typeof t2=="string"){var e3=s.call(arguments,1);return l(this,t2,e3)}return h(this,t2),this},n(a))}function n(t2){!t2||t2&&t2.bridget||(t2.bridget=i)}var s=Array.prototype.slice,o=t.console,r=typeof o>"u"?function(){}:function(t2){o.error(t2)};return n(e2||t.jQuery),i}),(function(t,e2){typeof define=="function"&&define.amd?define("ev-emitter/ev-emitter",e2):typeof module=="object"&&module.exports?module.exports=e2():t.EvEmitter=e2()})(typeof window<"u"?window:this,function(){function t(){}var e2=t.prototype;return e2.on=function(t2,e3){if(t2&&e3){var i=this._events=this._events||{},n=i[t2]=i[t2]||[];return n.indexOf(e3)==-1&&n.push(e3),this}},e2.once=function(t2,e3){if(t2&&e3){this.on(t2,e3);var i=this._onceEvents=this._onceEvents||{},n=i[t2]=i[t2]||{};return n[e3]=!0,this}},e2.off=function(t2,e3){var i=this._events&&this._events[t2];if(i&&i.length){var n=i.indexOf(e3);return n!=-1&&i.splice(n,1),this}},e2.emitEvent=function(t2,e3){var i=this._events&&this._events[t2];if(i&&i.length){i=i.slice(0),e3=e3||[];for(var n=this._onceEvents&&this._onceEvents[t2],s=0;s<i.length;s++){var o=i[s],r=n&&n[o];r&&(this.off(t2,o),delete n[o]),o.apply(this,e3)}return this}},e2.allOff=function(){delete this._events,delete this._onceEvents},t}),(function(t,e2){typeof define=="function"&&define.amd?define("get-size/get-size",e2):typeof module=="object"&&module.exports?module.exports=e2():t.getSize=e2()})(window,function(){"use strict";function t(t2){var e3=parseFloat(t2),i2=t2.indexOf("%")==-1&&!isNaN(e3);return i2&&e3}function e2(){}function i(){for(var t2={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e3=0;e3<h;e3++){var i2=l[e3];t2[i2]=0}return t2}function n(t2){var e3=getComputedStyle(t2);return e3||a("Style returned "+e3+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e3}function s(){if(!c){c=!0;var e3=document.createElement("div");e3.style.width="200px",e3.style.padding="1px 2px 3px 4px",e3.style.borderStyle="solid",e3.style.borderWidth="1px 2px 3px 4px",e3.style.boxSizing="border-box";var i2=document.body||document.documentElement;i2.appendChild(e3);var s2=n(e3);r=Math.round(t(s2.width))==200,o.isBoxSizeOuter=r,i2.removeChild(e3)}}function o(e3){if(s(),typeof e3=="string"&&(e3=document.querySelector(e3)),e3&&typeof e3=="object"&&e3.nodeType){var o2=n(e3);if(o2.display=="none")return i();var a2={};a2.width=e3.offsetWidth,a2.height=e3.offsetHeight;for(var c2=a2.isBorderBox=o2.boxSizing=="border-box",d=0;d<h;d++){var u=l[d],f=o2[u],p=parseFloat(f);a2[u]=isNaN(p)?0:p}var g=a2.paddingLeft+a2.paddingRight,v=a2.paddingTop+a2.paddingBottom,m=a2.marginLeft+a2.marginRight,y=a2.marginTop+a2.marginBottom,b=a2.borderLeftWidth+a2.borderRightWidth,E=a2.borderTopWidth+a2.borderBottomWidth,S=c2&&r,C=t(o2.width);C!==!1&&(a2.width=C+(S?0:g+b));var x=t(o2.height);return x!==!1&&(a2.height=x+(S?0:v+E)),a2.innerWidth=a2.width-(g+b),a2.innerHe
31ight=a2.height-(v+E),a2.outerWidth=a2.width+m,a2.outerHeight=a2.height+y,a2}}var r,a=typeof console>"u"?e2:function(t2){console.error(t2)},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],h=l.length,c=!1;return o}),(function(t,e2){"use strict";typeof define=="function"&&define.amd?define("desandro-matches-selector/matches-selector",e2):typeof module=="object"&&module.exports?module.exports=e2():t.matchesSelector=e2()})(window,function(){"use strict";var t=(function(){var t2=window.Element.prototype;if(t2.matches)return"matches";if(t2.matchesSelector)return"matchesSelector";for(var e2=["webkit","moz","ms","o"],i=0;i<e2.length;i++){var n=e2[i],s=n+"MatchesSelector";if(t2[s])return s}})();return function(e2,i){return e2[t](i)}}),(function(t,e2){typeof define=="function"&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return e2(t,i)}):typeof module=="object"&&module.exports?module.exports=e2(t,require("desandro-matches-selector")):t.fizzyUIUtils=e2(t,t.matchesSelector)})(window,function(t,e2){var i={};i.extend=function(t2,e3){for(var i2 in e3)t2[i2]=e3[i2];return t2},i.modulo=function(t2,e3){return(t2%e3+e3)%e3};var n=Array.prototype.slice;i.makeArray=function(t2){if(Array.isArray(t2))return t2;if(t2==null)return[];var e3=typeof t2=="object"&&typeof t2.length=="number";return e3?n.call(t2):[t2]},i.removeFrom=function(t2,e3){var i2=t2.indexOf(e3);i2!=-1&&t2.splice(i2,1)},i.getParent=function(t2,i2){for(;t2.parentNode&&t2!=document.body;)if(t2=t2.parentNode,e2(t2,i2))return t2},i.getQueryElement=function(t2){return typeof t2=="string"?document.querySelector(t2):t2},i.handleEvent=function(t2){var e3="on"+t2.type;this[e3]&&this[e3](t2)},i.filterFindElements=function(t2,n2){t2=i.makeArray(t2);var s2=[];return t2.forEach(function(t3){if(t3 instanceof HTMLElement){if(!n2)return void s2.push(t3);e2(t3,n2)&&s2.push(t3);for(var i2=t3.querySelectorAll(n2),o=0;o<i2.length;o++)s2.push(i2[o])}}),s2},i.debounceMethod=function(t2,e3,i2){i2=i2||100;var n2=t2.prototype[e3],s2=e3+"Timeout";t2.prototype[e3]=function(){var t3=this[s2];clearTimeout(t3);var e4=arguments,o=this;this[s2]=setTimeout(function(){n2.apply(o,e4),delete o[s2]},i2)}},i.docReady=function(t2){var e3=document.readyState;e3=="complete"||e3=="interactive"?setTimeout(t2):document.addEventListener("DOMContentLoaded",t2)},i.toDashed=function(t2){return t2.replace(/(.)([A-Z])/g,function(t3,e3,i2){return e3+"-"+i2}).toLowerCase()};var s=t.console;return i.htmlInit=function(e3,n2){i.docReady(function(){var o=i.toDashed(n2),r="data-"+o,a=document.querySelectorAll("["+r+"]"),l=document.querySelectorAll(".js-"+o),h=i.makeArray(a).concat(i.makeArray(l)),c=r+"-options",d=t.jQuery;h.forEach(function(t2){var i2,o2=t2.getAttribute(r)||t2.getAttribute(c);try{i2=o2&&JSON.parse(o2)}catch(a2){return void(s&&s.error("Error parsing "+r+" on "+t2.className+": "+a2))}var l2=new e3(t2,i2);d&&d.data(t2,n2,l2)})})},i}),(function(t,e2){typeof define=="function"&&define.amd?define("flickity/js/cell",["get-size/get-size"],function(i){return e2(t,i)}):typeof module=="object"&&module.exports?module.exports=e2(t,require("get-size")):(t.Flickity=t.Flickity||{},t.Flickity.Cell=e2(t,t.getSize))})(window,function(t,e2){function i(t2,e3){this.element=t2,this.parent=e3,this.create()}var n=i.prototype;return n.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-selected","false"),this.x=0,this.shift=0},n.destroy=function(){this.element.style.position="";var t2=this.parent.originSide;this.element.removeAttribute("aria-selected"),this.element.style[t2]=""},n.getSize=function(){this.size=e2(this.element)},n.setPosition=function(t2){this.x=t2,this.updateTarget(),this.renderPosition(t2)},n.updateTarget=n.setDefaultTarget=function(){var t2=this.parent.originSide=="left"?"marginLeft":"marginRight";this.target=this.x+this.size[t2]+this.size.width*this.parent.cellAlign},n.renderPosition=function(t2){var e3=this.parent.originSide;this.element.style[e3]=this.parent.getPositionValue(t2)},n.wrapShift=function(t2){this.shift=t2,this.renderPosition(this.x+this.parent.slideableWidth*t2)},n.remove=function(){this.element.parentNode.removeChild(this.element)},i}),(function(t,e2){typeof define=="function"&&define.amd?define("flickity/js/slide",e2):typeof module=="object"&&module.exports?module.exports=e2():(t.Flickity=t.Flickity||{},t.Flickity.Slide=e2())})(window,function(){"use strict";function t(t2){this.parent=t2,this.isOriginLeft=t2.originSide=="left",this.cells=[],this.outerWidth=0,this.height=0}var e2=t.prototype;return e2.addCell=function(t2){if(this.cells.push(t2),this.outerWidth+=t2.size.outerWidth,this.height=Math.max(t2.size.outerHeight,this.height),this.cells.length==1){this.x=t2.x;var e3=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=t2.size[e3]}},e2.updateTarget=function(){var t2=this.isOriginLeft?"marginRight":"marginLeft",e3=this.getLastCell(),i=e3?e3.size[t2]:0,n=this.outerWidth-(this.firstMargin+i);this.target=this.x+this.firstMargin+n*this.parent.cellAlign},e2.getLastCell=function(){return this.cells[this.cells.length-1]},e2.select=function(){this.changeSelected(!0)},e2.unselect=function(){this.changeSelected(!1)},e2.changeSelected=function(t2){var e3=t2?"add":"remove";
31this.cells.forEach(function(i){i.element.classList[e3]("is-selected"),i.element.setAttribute("aria-selected",t2.toString())})},e2.getCellElements=function(){return this.cells.map(function(t2){return t2.element})},t}),(function(t,e2){typeof define=="function"&&define.amd?define("flickity/js/animate",["fizzy-ui-utils/utils"],function(i){return e2(t,i)}):typeof module=="object"&&module.exports?module.exports=e2(t,require("fizzy-ui-utils")):(t.Flickity=t.Flickity||{},t.Flickity.animatePrototype=e2(t,t.fizzyUIUtils))})(window,function(t,e2){var i={};return i.startAnimation=function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},i.animate=function(){this.applyDragForce(),this.applySelectedAttraction();var t2=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(t2),this.isAnimating){var e3=this;requestAnimationFrame(function(){e3.animate()})}},i.positionSlider=function(){var t2=this.x;this.options.wrapAround&&this.cells.length>1&&(t2=e2.modulo(t2,this.slideableWidth),t2-=this.slideableWidth,this.shiftWrapCells(t2)),t2+=this.cursorPosition,t2=this.options.rightToLeft?-t2:t2;var i2=this.getPositionValue(t2);this.slider.style.transform=this.isAnimating?"translate3d("+i2+",0,0)":"translateX("+i2+")";var n=this.slides[0];if(n){var s=-this.x-n.target,o=s/this.slidesWidth;this.dispatchEvent("scroll",null,[o,s])}},i.positionSliderAtSelected=function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},i.getPositionValue=function(t2){return this.options.percentPosition?.01*Math.round(t2/this.size.innerWidth*1e4)+"%":Math.round(t2)+"px"},i.settle=function(t2){this.isPointerDown||Math.round(100*this.x)!=Math.round(100*t2)||this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},i.shiftWrapCells=function(t2){var e3=this.cursorPosition+t2;this._shiftCells(this.beforeShiftCells,e3,-1);var i2=this.size.innerWidth-(t2+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,i2,1)},i._shiftCells=function(t2,e3,i2){for(var n=0;n<t2.length;n++){var s=t2[n],o=e3>0?i2:0;s.wrapShift(o),e3-=s.size.outerWidth}},i._unshiftCells=function(t2){if(t2&&t2.length)for(var e3=0;e3<t2.length;e3++)t2[e3].wrapShift(0)},i.integratePhysics=function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},i.applyForce=function(t2){this.velocity+=t2},i.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},i.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())},i.applyDragForce=function(){if(this.isDraggable&&this.isPointerDown){var t2=this.dragX-this.x,e3=t2-this.velocity;this.applyForce(e3)}},i.applySelectedAttraction=function(){var t2=this.isDraggable&&this.isPointerDown;if(!t2&&!this.isFreeScrolling&&this.slides.length){var e3=this.selectedSlide.target*-1-this.x,i2=e3*this.options.selectedAttraction;this.applyForce(i2)}},i}),(function(t,e2){if(typeof define=="function"&&define.amd)define("flickity/js/flickity",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./cell","./slide","./animate"],function(i2,n,s,o,r,a){return e2(t,i2,n,s,o,r,a)});else if(typeof module=="object"&&module.exports)module.exports=e2(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./sli
vendor: 5,726 bytes, line 31
31de"),require("./animate"));else{var i=t.Flickity;t.Flickity=e2(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,i.Cell,i.Slide,i.animatePrototype)}})(window,function(t,e2,i,n,s,o,r){function a(t2,e3){for(t2=n.makeArray(t2);t2.length;)e3.appendChild(t2.shift())}function l(t2,e3){var i2=n.getQueryElement(t2);if(!i2)return void(d&&d.error("Bad element for Flickity: "+(i2||t2)));if(this.element=i2,this.element.flickityGUID){var s2=f[this.element.flickityGUID];return s2.option(e3),s2}h&&(this.$element=h(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e3),this._create()}var h=t.jQuery,c=t.getComputedStyle,d=t.console,u=0,f={};l.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},l.createMethods=[];var p=l.prototype;n.extend(p,e2.prototype),p._create=function(){var e3=this.guid=++u;this.element.flickityGUID=e3,f[e3]=this,this.selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),(this.options.resize||this.options.watchCSS)&&t.addEventListener("resize",this);for(var i2 in this.options.on){var n2=this.options.on[i2];this.on(i2,n2)}l.createMethods.forEach(function(t2){this[t2]()},this),this.options.watchCSS?this.watchCSS():this.activate()},p.option=function(t2){n.extend(this.options,t2)},p.activate=function(){if(!this.isActive){this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize();var t2=this._filterFindCellElements(this.element.children);a(t2,this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate");var e3,i2=this.options.initialIndex;e3=this.isInitActivated?this.selectedIndex:i2!==void 0&&this.cells[i2]?i2:0,this.select(e3,!1,!0),this.isInitActivated=!0,this.dispatchEvent("ready")}},p._createSlider=function(){var t2=document.createElement("div");t2.className="flickity-slider",t2.style[this.originSide]=0,this.slider=t2},p._filterFindCellElements=function(t2){return n.filterFindElements(t2,this.options.cellSelector)},p.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},p._makeCells=function(t2){var e3=this._filterFindCellElements(t2),i2=e3.map(function(t3){return new s(t3,this)},this);return i2},p.getLastCell=function(){return this.cells[this.cells.length-1]},p.getLastSlide=function(){return this.slides[this.slides.length-1]},p.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},p._positionCells=function(t2){t2=t2||0,this.maxCellHeight=t2&&this.maxCellHeight||0;var e3=0;if(t2>0){var i2=this.cells[t2-1];e3=i2.x+i2.size.outerWidth}for(var n2=this.cells.length,s2=t2;s2<n2;s2++){var o2=this.cells[s2];o2.setPosition(e3),e3+=o2.size.outerWidth,this.maxCellHeight=Math.max(o2.size.outerHeight,this.maxCellHeight)}this.slideableWidth=e3,this.updateSlides(),this._containSlides(),this.slidesWidth=n2?this.getLastSlide().target-this.slides[0].target:0},p._sizeCells=function(t2){t2.forEach(function(t3){t3.getSize()})},p.updateSlides=function(){if(this.slides=[],this.cells.length){var t2=new o(this);this.slides.push(t2);var e3=this.originSide=="left",i2=e3?"marginRight":"marginLeft",n2=this._getCanCellFit();this.cells.forEach(function(e4,s2){if(!t2.cells.length)return void t2.addCell(e4);var r2=t2.outerWidth-t2.firstMargin+(e4.size.outerWidth-e4.size[i2]);n2.call(this,s2,r2)||(t2.updateTarget(),t2=new o(this),this.slides.push(t2)),t2.addCell(e4)},this),t2.updateTarget(),this.updateSelectedSlide()}},p._getCanCellFit=function(){var t2=this.options.groupCells;if(!t2)return function(){return!1};if(typeof t2=="number"){var e3=parseInt(t2,10);return function(t3){return t3%e3!==0}}var i2=typeof t2=="string"&&t2.match(/^(\d+)%$/),n2=i2?parseInt(i2[1],10)/100:1;return function(t3,e4){return e4<=(this.size.innerWidth+1)*n2}},p._init=p.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},p.getSize=function(){this.size=i(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var g={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return p.setCellAlign=function(){var t2=g[this.options.cellAlign];this.cellAlign=t2?t2[this.originSide]:this.options.cellAlign},p.setGallerySize=function(){if(this.options.setGallerySize){var t2=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=t2+"px"}},p._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var t2=this.cursorPosition,e3=this.cells.length-1;this.beforeShiftCells=this._getGapCells(t2,e3,-1),t2=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(t2,0,1)}},p._getGapCells=function(t2,e3,i2){for(var n2=[];t2>0;){var s2=this.cells[e3];if(!s2)break;n2.push(s2),e3+=i2,t2-=s2.size.outerWidth}return n2},p._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var t2=this.options.rightToLeft,e3=t2?"marginRight":"marginLeft",i2=t2?"marginLeft":"marginRight",n2=this.slideableWidth-this.getLastCell().size[i2],s2=n2<this.size.innerWidth,o2=this.cursorPosition+this.cells[0].size[e3],r2=n2-this.size.innerWidth*(1-this.cellAlign);
31this.slides.forEach(function(t3){s2?t3.target=n2*this.cellAlign:(t3.target=Math.max(t3.target,o2),t3.target=Math.min(t3.target,r2))},this)}},p.dispatchEvent=function(t2,e3,i2){var n2=e3?[e3].concat(i2):i2;if(this.emitEvent(t2,n2),h&&this.$element){t2+=this.options.namespaceJQueryEvents?".flickity":"";var s2=t2;if(e3){var o2=h.Event(e3);o2.type=t2,s2=o2}this.$element.trigger(s2,i2)}},p.select=function(t2,e3,i2){if(this.isActive&&(t2=parseInt(t2,10),this._wrapSelect(t2),(this.options.wrapAround||e3)&&(t2=n.modulo(t2,this.slides.length)),this.slides[t2])){var s2=this.selectedIndex;this.selectedIndex=t2,this.updateSelectedSlide(),i2?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[t2]),t2!=s2&&this.dispatchEvent("change",null,[t2]),this.dispatchEvent("cellSelect")}},p._wrapSelect=function(t2){var e3=this.slides.length,i2=this.options.wrapAround&&e3>1;if(!i2)return t2;var s2=n.modulo(t2,e3),o2=Math.abs(s2-this.selectedIndex),r2=Math.abs(s2+e3-this.selectedIndex),a2=Math.abs(s2-e3-this.selectedIndex);!this.isDragSelect&&r2<o2?t2+=e3:!this.isDragSelect&&a2<o2&&(t2-=e3),t2<0?this.x-=this.slideableWidth:t2>=e3&&(this.x+=this.slideableWidth)},p.previous=function(t2,e3){this.select(this.selectedIndex-1,t2,e3)},p.next=function(t2,e3){this.select(this.selectedIndex+1,t2,e3)},p.updateSelectedSlide=function(){var t2=this.slides[this.selectedIndex];t2&&(this.unselectSelectedSlide(),this.selectedSlide=t2,t2.select(),this.selectedCells=t2.cells,this.selectedElements=t2.getCellElements(),this.selectedCell=t2.cells[0],this.selectedElement=this.selectedElements[0])},p.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},p.selectCell=function(t2,e3,i2){var n2=this.queryCell(t2);if(n2){var s2=this.getCellSlideIndex(n2);this.select(s2,e3,i2)}},p.getCellSlideIndex=function(t2){for(var e3=0;e3<this.slides.length;e3++){var i2=this.slides[e3],n2=i2.cells.indexOf(t2);if(n2!=-1)return e3}},p.getCell=function(t2){for(var e3=0;e3<this.cells.length;e3++){var i2=this.cells[e3];if(i2.element==t2)return i2}},p.getCells=function(t2){t2=n.makeArray(t2);var e3=[];return t2.forEach(function(t3){var i2=this.getCell(t3);i2&&e3.push(i2)},this),e3},p.getCellElements=function(){return this.cells.map(function(t2){return t2.element})},p.getParentCell=function(t2){var e3=this.getCell(t2);return e3||(t2=n.getParent(t2,".flickity-slider > *"),this.getCell(t2))},p.getAdjacentCellElements=function(t2,e3){if(!t2)return this.selectedSlide.getCellElements();e3=e3===void 0?this.selectedIndex:e3;var i2=this.slides.length;if(1+2*t2>=i2)return this.getCellElements();for(var s2=[],o2=e3-t2;o2<=e3+t2;o2++){var r2=this.options.wrapAround?n.modulo(o2,i2):o2,a2=this.slides[r2];a2&&(s2=s2.concat(a2.getCellElements()))}return s2},p.queryCell=function(t2){return typeof t2=="number"?this.cells[t2]:(typeof t2=="string"&&(t2=this.element.querySelector(t2)),this.getCell(t2))},p.uiChange=function(){this.emitEvent("uiChange")},p.childUIPointerDown=function(t2){this.emitEvent("childUIPointerDown",[t2])},p.onresize=function(){this.watchCSS(),this.resize()},n.debounceMethod(l,"onresize",150),p.resize=function(){if(this.isActive){this.getSize(),this.options.wrapAround&&(this.x=n.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var t2=this.selectedElements&&this.selectedElements[0];this.selectCell(t2,!1,!0)}},p.watchCSS=function(){var t2=this.options.watchCSS;if(t2){var e3=c(this.element,":after").content;e3.indexOf("flickity")!=-1?this.activate():this.deactivate()}},p.onkeydown=function(t2){var e3=document.activeElement&&document.activeElement!=this.element;if(this.options.accessibility&&!e3){var i2=l.keyboardHandlers[t2.keyCode];i2&&i2.call(this)}},l.keyboardHandlers={37:function(){var t2=this.options.rightToLeft?"next":"previous";this.uiChange(),this[t2]()},39:function(){var t2=this.options.rightToLeft?"previous":"next";this.uiChange(),this[t2]()}},p.focus=function(){var e3=t.pageYOffset;this.element.focus({preventScroll:!0}),t.pageYOffset!=e3&&t.scrollTo(t.pageXOffset,e3)},p.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEac
31h(function(t2){t2.destroy()}),this.element.removeChild(this.viewport),a(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},p.destroy=function(){this.deactivate(),t.removeEventListener("resize",this),this.emitEvent("destroy"),h&&this.$element&&h.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete f[this.guid]},n.extend(p,r),l.data=function(t2){t2=n.getQueryElement(t2);var e3=t2&&t2.flickityGUID;return e3&&f[e3]},n.htmlInit(l,"flickity"),h&&h.bridget&&h.bridget("flickity",l),l.setJQuery=function(t2){h=t2},l.Cell=s,l}),(function(t,e2){typeof define=="function"&&define.amd?define("unipointer/unipointer",["ev-emitter/ev-emitter"],function(i){return e2(t,i)}):typeof module=="object"&&module.exports?module.exports=e2(t,require("ev-emitter")):t.Unipointer=e2(t,t.EvEmitter)})(window,function(t,e2){function i(){}function n(){}var s=n.prototype=Object.create(e2.prototype);s.bindStartEvent=function(t2){this._bindStartEvent(t2,!0)},s.unbindStartEvent=function(t2){this._bindStartEvent(t2,!1)},s._bindStartEvent=function(e3,i2){i2=i2===void 0||i2;var n2=i2?"addEventListener":"removeEventListener",s2="mousedown";t.PointerEvent?s2="pointerdown":"ontouchstart"in t&&(s2="touchstart"),e3[n2](s2,this)},s.handleEvent=function(t2){var e3="on"+t2.type;this[e3]&&this[e3](t2)},s.getTouch=function(t2){for(var e3=0;e3<t2.length;e3++){var i2=t2[e3];if(i2.identifier==this.pointerIdentifier)return i2}},s.onmousedown=function(t2){var e3=t2.button;e3&&e3!==0&&e3!==1||this._pointerDown(t2,t2)},s.ontouchstart=function(t2){this._pointerDown(t2,t2.changedTouches[0])},s.onpointerdown=function(t2){this._pointerDown(t2,t2)},s._pointerDown=function(t2,e3){t2.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=e3.pointerId!==void 0?e3.pointerId:e3.identifier,this.pointerDown(t2,e3))},s.pointerDown=function(t2,e3){this._bindPostStartEvents(t2),this.emitEvent("pointerDown",[t2,e3])};var o={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return s._bindPostStartEvents=function(e3){if(e3){var i2=o[e3.type];i2.forEach(function(e4){t.addEventListener(e4,this)},this),this._boundPointerEvents=i2}},s._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(e3){t.removeEventListener(e3,this)},this),delete this._boundPointerEvents)},s.onmousemove=function(t2){this._pointerMove(t2,t2)},s.onpointermove=function(t2){t2.pointerId==this.pointerIdentifier&&this._pointerMove(t2,t2)},s.ontouchmove=function(t2){var e3=this.getTouch(t2.changedTouches);e3&&this._pointerMove(t2,e3)},s._pointerMove=function(t2,e3){this.pointerMove(t2,e3)},s.pointerMove=function(t2,e3){this.emitEvent("pointerMove",[t2,e3])},s.onmouseup=function(t2){this._pointerUp(t2,t2)},s.onpointerup=function(t2){t2.pointerId==this.pointerIdentifier&&this._pointerUp(t2,t2)},s.ontouchend=function(t2){var e3=this.getTouch(t2.changedTouches);e3&&this._pointerUp(t2,e3)},s._pointerUp=function(t2,e3){this._pointerDone(),this.pointerUp(t2,e3)},s.pointerUp=function(t2,e3){this.emitEvent("pointerUp",[t2,e3])},s._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},s._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},s.pointerDone=i,s.onpointercancel=function(t2){t2.pointerId==this.pointerIdentifier&&this._pointerCancel(t2,t2)},s.ontouchcancel=function(t2){var e3=this.getTouch(t2.changedTouches);e3&&this._pointerCancel(t2,e3)},s._pointerCancel=function(t2,e3){this._pointerDone(),this.pointerCancel(t2,e3)},s.pointerCancel=function(t2,e3){this.emitEvent("pointerCancel",[t2,e3])},n.getPointerPoint=function(t2){return{x:t2.pageX,y:t2.pageY}},n}),(function(t,e2){typeof define=="function"&&define.amd?define("unidragger/unidragger",["unipointer/unipointer"],function(i){return e2(t,i)}):typeof module=="object"&&module.exports?module.exports=e2(t,require("unipointer")):t.Unidragger=e2(t,t.Unipointer)})(window,function(t,e2){function i(){}var n=i.prototype=Object.create(e2.prototype);n.bindHandles=function(){this._bindHandles(!0)},n.unbindHandles=function(){this._bindHandles(!1)},n._bindHandles=function(e3){e3=e3===void 0||e3;
31for(var i2=e3?"addEventListener":"removeEventListener",n2=e3?this._touchActionValue:"",s2=0;s2<this.handles.length;s2++){var o2=this.handles[s2];this._bindStartEvent(o2,e3),o2[i2]("click",this),t.PointerEvent&&(o2.style.touchAction=n2)}},n._touchActionValue="none",n.pointerDown=function(t2,e3){var i2=this.okayPointerDown(t2);i2&&(this.pointerDownPointer=e3,t2.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(t2),this.emitEvent("pointerDown",[t2,e3]))};var s={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},o={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return n.okayPointerDown=function(t2){var e3=s[t2.target.nodeName],i2=o[t2.target.type],n2=!e3||i2;return n2||this._pointerReset(),n2},n.pointerDownBlur=function(){var t2=document.activeElement,e3=t2&&t2.blur&&t2!=document.body;e3&&t2.blur()},n.pointerMove=function(t2,e3){var i2=this._dragPointerMove(t2,e3);this.emitEvent("pointerMove",[t2,e3,i2]),this._dragMove(t2,e3,i2)},n._dragPointerMove=function(t2,e3){var i2={x:e3.pageX-this.pointerDownPointer.pageX,y:e3.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(i2)&&this._dragStart(t2,e3),i2},n.hasDragStarted=function(t2){return Math.abs(t2.x)>3||Math.abs(t2.y)>3},n.pointerUp=function(t2,e3){this.emitEvent("pointerUp",[t2,e3]),this._dragPointerUp(t2,e3)},n._dragPointerUp=function(t2,e3){this.isDragging?this._dragEnd(t2,e3):this._staticClick(t2,e3)},n._dragStart=function(t2,e3){this.isDragging=!0,this.isPreventing
31Clicks=!0,this.dragStart(t2,e3)},n.dragStart=function(t2,e3){this.emitEvent("dragStart",[t2,e3])},n._dragMove=function(t2,e3,i2){this.isDragging&&this.dragMove(t2,e3,i2)},n.dragMove=function(t2,e3,i2){t2.preventDefault(),this.emitEvent("dragMove",[t2,e3,i2])},n._dragEnd=function(t2,e3){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(t2,e3)},n.dragEnd=function(t2,e3){this.emitEvent("dragEnd",[t2,e3])},n.onclick=function(t2){this.isPreventingClicks&&t2.preventDefault()},n._staticClick=function(t2,e3){this.isIgnoringMouseUp&&t2.type=="mouseup"||(this.staticClick(t2,e3),t2.type!="mouseup"&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},n.staticClick=function(t2,e3){this.emitEvent("staticClick",[t2,e3])},i.getPointerPoint=e2.getPointerPoint,i}),(function(t,e2){typeof define=="function"&&define.amd?define("flickity/js/drag",["./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(i,n,s){return e2(t,i,n,s)}):typeof module=="object"&&module.exports?module.exports=e2(t,require("./flickity"),require("unidragger"),require("fizzy-ui-utils")):t.Flickity=e2(t,t.Flickity,t.Unidragger,t.fizzyUIUtils)})(window,function(t,e2,i,n){function s(){return{x:t.pageXOffset,y:t.pageYOffset}}n.extend(e2.defaults,{draggable:">1",dragThreshold:3}),e2.createMethods.push("_createDrag");var o=e2.prototype;n.extend(o,i.prototype),o._touchActionValue="pan-y";var r="createTouch"in document,a=!1;o._createDrag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("childUIPointerDown",this._childUIPointerDownDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable),r&&!a&&(t.addEventListener("touchmove",function(){}),a=!0)},o.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},o.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},o.updateDraggable=function(){this.options.draggable==">1"?this.isDraggable=this.slides.length>1:this.isDraggable=this.options.draggable,this.isDraggable?this.element.classList.add("is-draggable"):this.element.classList.remove("is-draggable")},o.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},o.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},o._uiChangeDrag=function(){delete this.isFreeScrolling},o._childUIPointerDownDrag=function(t2){t2.preventDefault(),this.pointerDownFocus(t2)},o.pointerDown=function(e3,i2){if(!this.isDraggable)return void this._pointerDownDefault(e3,i2);var n2=this.okayPointerDown(e3);n2&&(this._pointerDownPreventDefault(e3),this.pointerDownFocus(e3),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=s(),t.addEventListener("scroll",this),this._pointerDownDefault(e3,i2))},o._pointerDownDefault=function(t2,e3){this.pointerDownPointer=e3,this._bindPostStartEvents(t2),this.dispatchEvent("pointerDown",t2,[e3])};var l={INPUT:!0,TEXTAREA:!0,SELECT:!0};return o.pointerDownFocus=function(t2){var e3=l[t2.target.nodeName];e3||this.focus()},o._pointerDownPreventDefault=function(t2){var e3=t2.type=="touchstart",i2=t2.pointerType=="touch",n2=l[t2.target.nodeName];e3||i2||n2||t2.preventDefault()},o.hasDragStarted=function(t2){return Math.abs(t2.x)>this.options.dragThreshold},o.pointerUp=function(t2,e3){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",t2,[e3]),this._dragPointerUp(t2,e3)},o.pointerDone=function(){t.removeEventListener("scroll",this),delete this.pointerDownScroll},o.dragStart=function(e3,i2){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),t.removeEventListener("scroll",this),this.dispatchEvent("dragStart",e3,[i2]))},o.pointerMove=function(t2,e3){var i2=this._dragPointerMove(t2,e3);this.dispatchEvent("pointerMove",t2,[e3,i2]),this._dragMove(t2,e3,i2)},o.dragMove=function(t2,e3,i2){if(this.isDraggable){t2.preventDefault(),this.previousDragX=this.dragX;var n2=this.options.rightToLeft?-1:1;this.options.wrapAround&&(i2.x=i2.x%this.slideableWidth);var s2=this.dragStartPosition+i2.x*n2;if(!this.options.wrapAround&&this.slides.length){var o2=Math.max(-this.slides[0].target,this.dragStartPosition);s2=s2>o2?.5*(s2+o2):s2;var r2=Math.min(-this.getLastSlide().target,this.dragStartPosition);s2=s2<r2?.5*(s2+r2):s2}this.dragX=s2,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",t2,[e3,i2])}},o.dragEnd=function(t2,e3){if(this.isDraggable){this.options.freeScroll&&(this.isFreeScrolling=!0);var i2=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var n2=this.getRestingPosition();this.isFreeScrolling=-n2>this.slides[0].target&&-n2<this.getLastSlide().target}else this.options.freeScroll||i2!=this.selectedIndex||(i2+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(i2),delete this.isDragSelect,this.dispatchEvent("dragEnd",t2,[e3])}},o.dragEndRestingSelect=function(){var t2=this.getRestingPosition(),e3=Math.abs(this.getSlideDistance(-t2,this.selectedIndex)),i2=this._getClosestResting(t2,e3,1),n2=this._getClosestResting(t2,e3,-1),s2=i2.distance<n2.distance?i2.index:n2.index;return s2},o._getClosestResting=function(t2,e3,i2){for(var n2=this.selectedIndex,s2=1/0,o2=this.options.contain&&!this.options.wrapAround?function(t3,e4){return t3<=e4}:function(t3,e4){return t3<e4};o2(e3,s2)&&(n2+=i2,s2=e3,e3=this.getSlideDistance(-t2,n2),e3!==null);)e3=Math.abs(e3);return{distance:s2,index:n2-i2}},o.getSlideDistance=function(t2,e3){var i2=this.slides.length,s2=this.options.wrapAround&&i2>1,o2=s2?n.modulo(e3,i2):e3,r2=this.slides[o2];if(!r2)return null;var a2=s2?this.slideableWidth*Math.floor(e3/i2):0;return t2-(r2.target+a2)},o.dragEndBoostSelect=function(){if(this.previousDragX===void 0||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;var t2=this.getSlideDistance(-this.dragX,this.selectedIndex),e3=this.previousDragX-this.dragX;return t2>0&&e3>0?1:t2<0&&e3<0?-1:0},o.staticClick=function(t2,e3){var i2=this.getParentCell(t2.target),n2=i2&&i2.element,s2=i2&&this.cells.indexOf(i2);this.dispatchEvent("staticClick",t2,[e3,n2,s2])},o.onscroll=function(){var t2=s(),e3=this.pointerDownScroll.x-t2.x,i2=this.pointerDownScroll.y-t2.y;(Math.abs(e3)>3||Math.abs(i2)>3)&&this._pointerDone()},e2}),(function(t,e2){typeof define=="function"&&define.amd?define("tap-listener/tap-listener",["unipointer/unipointer"],function(i){return e2(t,i)}):typeof module=="object"&&module.exports?module.exports=e2(t,require("unipointer")):t.TapListener=e2(t,t.Unipointer)})(window,function(t,e2){function i(t2){this.bindTap(t2)}var n=i.prototype=Object.create(e2.prototype);return n.bindTap=function(t2){t2&&(this.unbindTap(),this.tapElement=t2,this._bindStartEvent(t2,!0))},n.unbindTap=function(){this.tapElement&&(this._bindStartEvent(this.tapElement,!0),delete this.tapElement)},n.pointerUp=function(i2,n2){if(!this.isIgnoringMouseUp||i2.type!="mouseup"){var s=e2.getPointerPoint(n2),o=this.tapElement.getBoundingClientRect(),r=t.pageXOffset,a=t.pageYOffset,l=s.x>=o.left+r&&s.x<=o.right+r&&s.y>=o.top+a&&s.y<=o.bottom+a;if(l&&this.emitEvent("tap",[i2,n2]),i2.type!="mouseup"){this.isIgnoringMouseUp=!0;var h=this;setTimeout(function(){delete h.isIgnoringMouseUp},400)}}},n.destroy=function(){this.pointerDone(),this.unbindTap()},i}),(function(t,e2){typeof define=="function"&&define.amd?define("flickity/js/prev-next-button",["./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(i,n,s){return e2(t,i,n,s)}):typeof module=="object"&&module.exports?module.exports=e2(t,require("./flickity"),require("tap-listener"),require("fizzy-ui-utils")):e2(t,t.Flickity,t.TapListener,t.fizzyUIUtils)})(window,function(t,e2,i,n){"use strict";function s(t2,e3){this.direction=t2,this.parent=e3,this._create()}function o(t2){return typeof t2=="string"?t2:"M "+t2.x0+",50 L "+t2.x1+","+(t2.y1+50)+" L "+t2.x2+","+(t2.y2+50)+" L "+t2.x3+",50 L "+t2.x2+","+(50-t2.y2)+" L "+t2.x1+","+(50-t2.y1)+" Z"}var r="http://www.w3.org/2000/svg";s.prototype=Object.create(i.prototype),s.prototype._create=function(){this.isEnabled=!0,this.isPrevious=this.direction==-1;var t2=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==t2;var e3=this.element=document.createElement("button");e3.className="flickity-button flickity-prev-next-button",e3.className+=this.isPrevious?" previous":" next",e3.setAttribute("type","button"),this.disable(),e3.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var i2=this.createSVG();e3.appendChild(i2),this.on("tap",this.onTap),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},s.prototype.activate=function(){this.bindTap(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},s.prototype.deactivate=function(){this.parent.element.removeChild(this.element),i.prototype.destroy.call(this),this.element.removeEventListener("click",this)},s.prototype.createSVG=function(){var t2=document.createElementNS(r,"svg");t2.setAttribute("class","flickity-button-icon"),t2.setAttribute("viewBox","0 0 100 100");var e3=document.createElementNS(r,"path"),i2=o(this.parent.options.arrowShape);return e3.setAttribute("d",i2),e3.setAttribute("class","arrow"),this.isLeft||e3.setAttribute("transform","translate(100, 100) rotate(180) "),t2.appendChild(e3),t2},s.prototype.onTap=function(){if(this.isEnabled){this.parent.uiChange();var t2=this.isPrevious?"previous":"next";this.parent[t2]()}},s.prototype.handleEvent=n.handleEvent,s.prototype.onclick=function(t2){var e3=document.activeElement;e3&&e3==this.element&&this.onTap(t2,t2)},s.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},s.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},s.prototype.update=function(){var t2=this.parent.slides;if(this.parent.options.wrapAround&&t2.length>1)return void this.enable();var e3=t2.length?t2.length-1:0,i2=this.isPrevious?0:e3,n2=this.parent.selectedIndex==i2?"disable":"enable";this[n2]()},s.prototype.destroy=function(){this.deactivate()},n.extend(e2.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),e2.createMethods.push("_createPrevNextButtons");var a=e2.prototype;return a._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new s(-1,this),this.nextButton=new s(1,this),this.on("activate",this.activatePrevNextButtons))},a.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},a.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},e2.PrevNextButton=s,e2}),(function(t,e2){typeof define=="function"&&define.amd?define("flickity/js/page-dots",["./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(i,n,s){return e2(t,i,n,s)}):typeof module=="object"&&module.exports?module.exports=e2(t,require("./flickity"),require("tap-listener"),require("fizzy-ui-utils")):e2(t,t.Flickity,t.TapListener,t.fizzyUIUtils)})(window,function(t,e2,i,n){function s(t2){this.parent=t2,this._create()}s.prototype=new i,s.prototype._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.on("tap",this.onTap),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},s.prototype.activate=function(){this.setDots(),this.bindTap(this.holder),this.parent.element.appendChild(this.holder)},s.prototype.deactivate=function(){this.parent.element.removeChild(this.holder),i.prototype.destroy.call(this)},s.prototype.setDots=function(){var t2=this.parent.slides.length-this.dots.length;t2>0?this.addDots(t2):t2<0&&this.removeDots(-t2)},s.prototype.addDots=function(t2){for(var e3=document.createDocumentFragment(),i2=[],n2=this.dots.length,s2=n2+t2,o2=n2;o2<s2;o2++){var r=document.createElement("li");r.className="dot",r.setAttribute("aria-label","Page dot "+(o2+1)),e3.appendChild(r),i2.push(r)}this.holder.appendChild(e3),this.dots=this.dots.concat(i2)},s.prototype.removeDots=function(t2){var e3=this.dots.splice(this.dots.length-t2,t2);e3.forEach(function(t3){this.holder.removeChild(t3)},this)},s.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot",this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected",this.selectedDot.setAttribute("aria-current","step"))},s.prototype.onTap=function(t2){var e3=t2.target;
31if(e3.nodeName=="LI"){this.parent.uiChange();var i2=this.dots.indexOf(e3);this.parent.select(i2)}},s.prototype.destroy=function(){this.deactivate()},e2.PageDots=s,n.extend(e2.defaults,{pageDots:!0}),e2.createMethods.push("_createPageDots");var o=e2.prototype;return o._createPageDots=function(){this.options.pageDots&&(this.pageDots=new s(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},o.activatePageDots=function(){this.pageDots.activate()},o.updateSelectedPageDots=function(){this.pageDots.updateSelected()},o.updatePageDots=function(){this.pageDots.setDots()},o.deactivatePageDots=function(){this.pageDots.deactivate()},e2.PageDots=s,e2}),(function(t,e2){typeof define=="function"&&define.amd?define("flickity/js/player",["ev-emitter/ev-emitter","fizzy-ui-utils/utils","./flickity"],function(t2,i,n){return e2(t2,i,n)}):typeof module=="object"&&module.exports?module.exports=e2(require("ev-emitter"),require("fizzy-ui-utils"),require("./flickity")):e2(t.EvEmitter,t.fizzyUIUtils,t.Flickity)})(window,function(t,e2,i){function n(t2){this.parent=t2,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}n.prototype=Object.create(t.prototype),n.prototype.play=function(){if(this.state!="playing"){var t2=document.hidden;if(t2)return void document.addEventListener("visibilitychange",this.onVisibilityPlay);this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()}},n.prototype.tick=function(){if(this.state=="playing"){var t2=this.parent.options.autoPlay;t2=typeof t2=="number"?t2:3e3;var e3=this;this.clear(),this.timeout=setTimeout(function(){e3.parent.next(!0),e3.tick()},t2)}},n.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},n.prototype.clear=function(){clearTimeout(this.timeout)},n.prototype.pause=function(){this.state=="playing"&&(this.state="paused",this.clear())},n.prototype.unpause=function(){this.state=="paused"&&this.play()},n.prototype.visibilityChange=function(){var t2=document.hidden;this[t2?"pause":"unpause"]()},n.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},e2.extend(i.defaults,{pauseAutoPlayOnHover:!0}),i.createMethods.push("_createPlayer");var s=i.prototype;return s._createPlayer=function(){this.player=new n(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},s.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},s.playPlayer=function(){this.player.play()},s.stopPlayer=function(){this.player.stop()},s.pausePlayer=function(){this.player.pause()},s.unpausePlayer=function(){this.player.unpause()},s.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},s.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},s.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},i.Player=n,i}),(function(t,e2){typeof define=="function"&&define.amd?define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(i,n){return e2(t,i,n)}):typeof module=="object"&&module.exports?module.exports=e2(t,require("./flickity"),require("fizzy-ui-utils")):e2(t,t.Flickity,t.fizzyUIUtils)})(window,function(t,e2,i){function n(t2){var e3=document.createDocumentFragment();return t2.forEach(function(t3){e3.appendChild(t3.element)}),e3}var s=e2.prototype;return s.insert=function(t2,e3){var i2=this._makeCells(t2);
31if(i2&&i2.length){var s2=this.cells.length;e3=e3===void 0?s2:e3;var o=n(i2),r=e3==s2;if(r)this.slider.appendChild(o);else{var a=this.cells[e3].element;this.slider.insertBefore(o,a)}if(e3===0)this.cells=i2.concat(this.cells);else if(r)this.cells=this.cells.concat(i2);else{var l=this.cells.splice(e3,s2-e3);this.cells=this.cells.concat(i2).concat(l)}this._sizeCells(i2),this.cellChange(e3,!0)}},s.append=function(t2){this.insert(t2,this.cells.length)},s.prepend=function(t2){this.insert(t2,0)},s.remove=function(t2){var e3=this.getCells(t2);if(e3&&e3.length){var n2=this.cells.length-1;e3.forEach(function(t3){t3.remove();var e4=this.cells.indexOf(t3);n2=Math.min(e4,n2),i.removeFrom(this.cells,t3)},this),this.cellChange(n2,!0)}},s.cellSizeChange=function(t2){var e3=this.getCell(t2);if(e3){e3.getSize();var i2=this.cells.indexOf(e3);this.cellChange(i2)}},s.cellChange=function(t2,e3){var i2=this.selectedElement;this._positionCells(t2),this._getWrapShiftCells(),this.setGallerySize();var n2=this.getCell(i2);n2&&(this.selectedIndex=this.getCellSlideIndex(n2)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[t2]),this.select(this.selectedIndex),e3&&this.positionSliderAtSelected()},e2}),(function(t,e2){typeof define=="function"&&define.amd?define("flickity/js/lazyload",["./flickity","fizzy-ui-utils/utils"],function(i,n){return e2(t,i,n)}):typeof module=="object"&&module.exports?module.exports=e2(t,require("./flickity"),require("fizzy-ui-utils")):e2(t,t.Flickity,t.fizzyUIUtils)})(window,function(t,e2,i){"use strict";function n(t2){if(t2.nodeName=="IMG"){var e3=t2.getAttribute("data-flickity-lazyload"),n2=t2.getAttribute("data-flickity-lazyload-src"),s2=t2.getAttribute("data-flickity-lazyload-srcset");if(e3||n2||s2)return[t2]}var o2="img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]",r=t2.querySelectorAll(o2);return i.makeArray(r)}function s(t2,e3){this.img=t2,this.flickity=e3,this.load()}e2.createMethods.push("_createLazyload");var o=e2.prototype;return o._createLazyload=function(){this.on("select",this.lazyLoad)},o.lazyLoad=function(){var t2=this.options.lazyLoad;if(t2){var e3=typeof t2=="number"?t2:0,i2=this.getAdjacentCellElements(e3),o2=[];i2.forEach(function(t3){var e4=n(t3);o2=o2.concat(e4)}),o2.forEach(function(t3){new s(t3,this)},this)}},s.prototype.handleEvent=i.handleEvent,s.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var t2=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),e3=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t2,e3&&this.img.setAttribute("srcset",e3),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},s.prototype.onload=function(t2){this.complete(t2,"flickity-lazyloaded")},s.prototype.onerror=function(t2){this.complete(t2,"flickity-lazyerror")},s.prototype.complete=function(t2,e3){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var i2=this.flickity.getParentCell(this.img),n2=i2&&i2.element;this.flickity.cellSizeChange(n2),this.img.classList.add(e3),this.flickity.dispatchEvent("lazyLoad",t2,n2)},e2.LazyLoader=s,e2}),(function(t,e2){typeof define=="function"&&define.amd?define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],e2):typeof module=="object"&&module.exports&&(module.exports=e2(require("./flickity"),require("./drag"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./add-remove-cell"),require("./lazyload")))})(window,function(t){return t}),(function(t,e2){typeof define=="function"&&define.amd?define("flickity-as-nav-for/as-nav-for",["flickity/js/index","fizzy-ui-utils/utils"],e2):typeof module=="object"&&module.exports?module.exports=e2(require("flickity"),require("fizzy-ui-utils")):t.Flickity=e2(t.Flickity,t.fizzyUIUtils)})(window,function(t,e2){function i(t2,e3,i2){return(e3-t2)*i2+t2}t.createMethods.push("_createAsNavFor");var n=t.prototype;return n._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var t2=this.options.asNavFor;if(t2){var e3=this;setTimeout(function(){e3.setNavCompanion(t2)}
31)}},n.setNavCompanion=function(i2){i2=e2.getQueryElement(i2);var n2=t.data(i2);if(n2&&n2!=this){this.navCompanion=n2;var s=this;this.onNavCompanionSelect=function(){s.navCompanionSelect()},n2.on("select",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect(!0)}},n.navCompanionSelect=function(t2){if(this.navCompanion){var e3=this.navCompanion.selectedCells[0],n2=this.navCompanion.cells.indexOf(e3),s=n2+this.navCompanion.selectedCells.length-1,o=Math.floor(i(n2,s,this.navCompanion.cellAlign));if(this.selectCell(o,!1,t2),this.removeNavSelectedElements(),!(o>=this.cells.length)){var r=this.cells.slice(n2,s+1);this.navSelectedElements=r.map(function(t3){return t3.element}),this.changeNavSelectedClass("add")}}},n.changeNavSelectedClass=function(t2){this.navSelectedElements.forEach(function(e3){e3.classList[t2]("is-nav-selected")})},n.activateAsNavFor=function(){this.navCompanionSelect(!0)},n.removeNavSelectedElements=function(){this.navSelectedElements&&(this.changeNavSelectedClass("remove"),delete this.navSelectedElements)},n.onNavStaticClick=function(t2,e3,i2,n2){typeof n2=="number"&&this.navCompanion.selectCell(n2)},n.deactivateAsNavFor=function(){this.removeNavSelectedElements()},n.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("select",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},t}),(function(t,e2){"use strict";typeof define=="function"&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(i){return e2(t,i)}):typeof module=="object"&&module.exports?module.exports=e2(t,require("ev-emitter")):t.imagesLoaded=e2(t,t.EvEmitter)})(typeof window<"u"?window:this,function(t,e2){function i(t2,e3){for(var i2 in e3)t2[i2]=e3[i2];return t2}function n(t2){if(Array.isArray(t2))return t2;var e3=typeof t2=="object"&&typeof t2.length=="number";return e3?h.call(t2):[t2]}function s(t2,e3,o2){if(!(this instanceof s))return new s(t2,e3,o2);var r2=t2;return typeof t2=="string"&&(r2=document.querySelectorAll(t2)),r2?(this.elements=n(r2),this.options=i({},this.options),typeof e3=="function"?o2=e3:i(this.options,e3),o2&&this.on("always",o2),this.getImages(),a&&(this.jqDeferred=new a.Deferred),void setTimeout(this.check.bind(this))):void l.error("Bad element for imagesLoaded "+(r2||t2))}function o(t2){this.img=t2}function r(t2,e3){this.url=t2,this.element=e3,this.img=new Image}var a=t.jQuery,l=t.console,h=Array.prototype.slice;s.prototype=Object.create(e2.prototype),s.prototype.options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(t2){t2.nodeName=="IMG"&&this.addImage(t2),this.options.background===!0&&this.addElementBackgroundImages(t2);var e3=t2.nodeType;if(e3&&c[e3]){for(var i2=t2.querySelectorAll("img"),n2=0;n2<i2.length;n2++){var s2=i2[n2];this.addImage(s2)}if(typeof this.options.background=="string"){var o2=t2.querySelectorAll(this.options.background);for(n2=0;n2<o2.length;n2++){var r2=o2[n2];this.addElementBackgroundImages(r2)}}}};var c={1:!0,9:!0,11:!0};return s.prototype.addElementBackgroundImages=function(t2){var e3=getComputedStyle(t2);if(e3)for(var i2=/url\((['"])?(.*?)\1\)/gi,n2=i2.exec(e3.backgroundImage);n2!==null;){var s2=n2&&n2[2];s2&&this.addBackground(s2,t2),n2=i2.exec(e3.backgroundImage)}},s.prototype.addImage=function(t2){var e3=new o(t2);this.images.push(e3)},s.prototype.addBackground=function(t2,e3){var i2=new r(t2,e3);this.images.push(i2)},s.prototype.check=function(){function t2(t3,i2,n2){setTimeout(function(){e3.progress(t3,i2,n2)})}var e3=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(e4){e4.once("progress",t2),e4.check()}):void this.complete()},s.prototype.progress=function(t2,e3,i2){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t2.isLoaded,this.emitEvent("progress",[this,t2,e3]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t2),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&l&&l.log("progress: "+i2,t2,e3)},s.prototype.complete=function(){var t2=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t2,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e3=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e3](this)}},o.prototype=Object.create(e2.prototype),o.prototype.check=function(){var t2=this.getIsImageComplete();
31return t2?void this.confirm(this.img.naturalWidth!==0,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},o.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},o.prototype.confirm=function(t2,e3){this.isLoaded=t2,this.emitEvent("progress",[this,this.img,e3])},o.prototype.handleEvent=function(t2){var e3="on"+t2.type;this[e3]&&this[e3](t2)},o.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},o.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},o.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},r.prototype=Object.create(o.prototype),r.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var t2=this.getIsImageComplete();t2&&(this.confirm(this.img.naturalWidth!==0,"naturalWidth"),this.unbindEvents())},r.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},r.prototype.confirm=function(t2,e3){this.isLoaded=t2,this.emitEvent("progress",[this,this.element,e3])},s.makeJQueryPlugin=function(e3){e3=e3||t.jQuery,e3&&(a=e3,a.fn.imagesLoaded=function(t2,e4){var i2=new s(this,t2,e4);return i2.jqDeferred.promise(a(this))})},s.makeJQueryPlugin(),s}),(function(t,e2){typeof define=="function"&&define.amd?define(["flickity/js/index","imagesloaded/imagesloaded"],function(i,n){return e2(t,i,n)}):typeof module=="object"&&module.exports?module.exports=e2(t,require("flickity"),require("imagesloaded")):t.Flickity=e2(t,t.Flickity,t.imagesLoaded)})(window,function(t,e2,i){"use strict";e2.createMethods.push("_createImagesLoaded");var n=e2.prototype;return n._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},n.imagesLoaded=function(){function t2(t3,i2){var n2=e3.getParentCell(i2.img);e3.cellSizeChange(n2&&n2.element),e3.options.freeScroll||e3.positionSliderAtSelected()}if(this.options.imagesLoaded){var e3=this;i(this.slider).on("progress",t2)}},e2}),(function(o){var t=null;o.modal=function(e2,i){o.modal.close();var s,l;if(this.$body=o("body"),this.options=o.extend({},o.modal.defaults,i),this.options.doFade=!isNaN(parseInt(this.options.fadeDuration,10)),e2.is("a"))if(l=e2.attr("href"),/^#/.test(l)){if(this.$elm=o(l),this.$elm.length!==1)return null;this.$body.append(this.$elm),this.open()}else this.$elm=o("<div>"),this.$body.append(this.$elm),s=function(o2,t2){t2.elm.remove()},this.showSpinner(),e2.trigger(o.modal.AJAX_SEND),o.get(l).done(function(i2){t&&(e2.trigger(o.modal.AJAX_SUCCESS),t.$elm.empty().append(i2).on(o.modal.CLOSE,s),t.hideSpinner(),t.open(),e2.trigger(o.modal.AJAX_COMPLETE))}).fail(function(){e2.trigger(o.modal.AJAX_FAIL),t.hideSpinner(),e2.trigger(o.modal.AJAX_COMPLETE)});else this.$elm=e2,this.$body.append(this.$elm),this.open()},o.modal.prototype={constructor:o.modal,open:function(){var t2=this;this.options.doFade?(this.block(),setTimeout(function(){t2.show()},this.options.fadeDuration*this.options.fadeDelay)):(this.block(),this.show()),this.options.escapeClose&&o(document).on("keydown.modal",function(t3){t3.which==27&&o.modal.close()}),this.options.clickClose&&this.blocker.click(function(t3){t3.target==this&&o.modal.close()})},close:function(){this.unblock(),this.hide(),o(document).off("keydown.modal")},block:function(){this.$elm.trigger(o.modal.BEFORE_BLOCK,[this._ctx()]),this.blocker=o('<div class="jquery-modal blocker"></div>'),this.$body.css("overflow","hidden"),this.$body.append(this.blocker),this.options.doFade&&this.blocker.css("opacity",0).animate({opacity:1},this.options.fadeDuration),this.$elm.trigger(o.modal.BLOCK,[this._ctx()])},unblock:function(){if(this.options.doFade){var o2=this;this.blocker.fadeOut(this.options.fadeDuration,function(){o2.blocker.children().appendTo(o2.$body),o2.blocker.remove(),o2.$body.css("overflow","")})}else this.blocker.children().appendTo(this.$body),this.blocker.remove(),this.$body.css("overflow","")},show:function(){this.$elm.trigger(o.modal.BEFORE_OPEN,[this._ctx()]),this.options.showClose&&(this.closeButton=o('<a href="#close-modal" rel="modal:close" class="close-modal '+this.options.closeClass+'">'+this.options.closeText+"</a>"),this.$elm.append(this.closeButton)),this.$elm.addClass(this.options.modalClass+" current"),this.$elm.appendTo(this.blocker),this.options.doFade?this.$elm.css("opacity",0).show().animate({opacity:1},this.options.fadeDuration):this.$elm.show(),this.$elm.trigger(o.modal.OPEN,[this._ctx()])},hide:function(){this.$elm.trigger(o.modal.BEFORE_CLOSE,[this._ctx()]),this.closeButton&&this.closeButton.remove(),this.$elm.removeClass("current");var t2=this;this.options.doFade?this.$elm.fadeOut(this.options.fadeDuration,function(){t2.$elm.trigger(o.modal.AFTER_CLOSE,[t2._ctx()])}):this.$elm.hide(0,function(){t2.$elm.trigger(o.modal.AFTER_CLOSE,[t2._ctx()])}),this.$elm.trigger(o.modal.CLOSE,[this._ctx()])},showSpinner:function(){this.options.showSpinner&&(this.spinner=this.spinner||o('<div class="'+this.options.modalClass+'-spinner"></div>').append(this.options.spinnerHtml),this.$body.append(this.spinner),this.spinner.show())},hideSpinner:function(){this.spinner&&this.spinner.remove()},_ctx:function(){return{elm:this.$elm,blocker:this.blocker,options:this.options}}},o.modal.close=function(o2){if(t){o2&&o2.preventDefault(),t.close();var e2=t.$elm;return t=null,e2}},o.modal.isActive=function(){return!!t},o.modal.defaults={escapeClose:!0,clickClose:!0,closeText:"",closeClass:"",modalClass:"modal",spinnerHtml:null,showSpinner:!0,showClose:!0,fadeDuration:null,fadeDelay:1},o.modal.BEFORE_BLOCK="modal:before-block",o.modal.BLOCK="modal:block",o.modal.BEFORE_OPEN="modal:before-open",o.modal.OPEN="modal:open",o.modal.BEFORE_CLOSE="modal:before-close",o.modal.CLOSE="modal:close",o.modal.AFTER_CLOSE="modal:after-close",o.modal.AJAX_SEND="modal:ajax:send",o.modal.AJAX_SUCCESS="modal:ajax:success",o.modal.AJAX_FAIL="modal:ajax:fail",o.modal.AJAX_COMPLETE="modal:ajax:complete",o.fn.modal=function(e2){return this.length===1&&(t=new o.modal(this,e2)),this},o(document).on("click.modal",'a[rel="modal:close"]',o.modal.close),o(document).on("click.modal",'a[rel="modal:open"]',function(t2){t2.preventDefault(),o(this).modal()})})(jQuery);/*! 32 * JavaScript Cookie v2.1.0 33 * https://github.com/js-cookie/js-cookie 34 * 35 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack 36 * Released under the MIT license 37 */(function(e2){if(typeof define=="function"&&define.amd)define(e2);else if(typeof exports=="object")module.exports=e2();else{var n=window.Cookies,t=window.Cookies=e2();
37t.noConflict=function(){return window.Cookies=n,t}}})(function(){function e2(){for(var e3=0,n2={};e3<arguments.length;e3++){var t=arguments[e3];for(var o in t)n2[o]=t[o]}return n2}function n(t){function o(n2,r,i){var c;if(arguments.length>1){if(i=e2({path:"/"},o.defaults,i),typeof i.expires=="number"){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*i.expires),i.expires=s}try{c=JSON.stringify(r),/^[\{\[]/.test(c)&&(r=c)}catch{}return r=t.write?t.write(r,n2):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n2=encodeURIComponent(String(n2)),n2=n2.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),n2=n2.replace(/[\(\)]/g,escape),document.cookie=[n2,"=",r,i.expires&&"; expires="+i.expires.toUTCString(),i.path&&"; path="+i.path,i.domain&&"; domain="+i.domain,i.secure?"; secure":""].join("")}n2||(c={});for(var p=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,u=0;u<p.length;u++){var f=p[u].split("="),l=f[0].replace(d,decodeURIComponent),m=f.slice(1).join("=");m.charAt(0)==='"'&&(m=m.slice(1,-1));try{if(m=t.read?t.read(m,l):t(m,l)||m.replace(d,decodeURIComponent),this.json)try{m=JSON.parse(m)}catch{}if(n2===l){c=m;break}n2||(c[l]=m)}catch{}}return c}return o.get=o.set=o,o.getJSON=function(){return o.apply({json:!0},[].slice.call(arguments))},o.defaults={},o.remove=function(n2,t2){o(n2,"",e2(t2,{expires:-1}))},o.withConverter=n,o}return n(function(){})});/*! Magnific Popup - v1.1.0 - 2016-02-20 38* http://dimsemenov.com/plugins/magnific-popup/ 39* Copyright (c) 2016 Dmitry Semenov; 40*/(function(a){typeof define=="function"&&define.amd?define(["jquery"],a):a(typeof exports=="object"?require("jquery"):window.jQuery||window.Zepto)})(function(a){var b,c,d,e2,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a2,c2){b.ev.on(o+a2+p,c2)},x=function(b2,c2,d2,e3){var f2=document.createElement("div");return f2.className="mfp-"+b2,d2&&(f2.innerHTML=d2),e3?c2&&c2.appendChild(f2):(f2=a(f2),c2&&f2.appendTo(c2)),f2},y=function(c2,d2){b.ev.triggerHandler(o+c2,d2),b.st.callbacks&&(c2=c2.charAt(0).toLowerCase()+c2.slice(1),b.st.callbacks[c2]&&b.st.callbacks[c2].apply(b,a.isArray(d2)?d2:[d2]))},z=function(c2){return c2===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c2),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a2=document.createElement("p").style,b2=["ms","O","Moz","Webkit"];if(a2.transition!==void 0)return!0;for(;b2.length;)if(b2.pop()+"Transition"in a2)return!0;return!1};t.prototype={constructor:t,init:function(){var c2=navigator.appVersion;b.isLowIE=b.isIE8=document.all&&!document.addEventListener,b.isAndroid=/android/gi.test(c2),b.isIOS=/iphone|ipad|ipod/gi.test(c2),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c2){var e3;if(c2.isObj===!1){b.items=c2.items.toArray(),b.index=0;var g2,h2=c2.items;for(e3=0;e3<h2.length;e3++)if(g2=h2[e3],g2.parsed&&(g2=g2.el[0]),g2===c2.el[0]){b.index=e3;break}}else b.items=a.isArray(c2.items)?c2.items:[c2.items],b.index=c2.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c2.mainEl&&c2.mainEl.length?b.ev=c2.mainEl.eq(0):b.ev=d,c2.key?(b.popupsCache[c2.key]||(b.popupsCache[c2.key]={}),b.currTemplate=b.popupsCache[c2.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c2),b.fixedContentPos=b.st.fixedContentPos==="auto"?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x("bg").on("click"+p,function(){b.close()}),b.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(a2){b._checkIfClose(a2.target)&&b.close()}),b.container=x("container",b.wrap)),b.contentContainer=x("content"),b.st.preloader&&(b.preloader=x("preloader",b.container,b.st.tLoading));var i2=a.magnificPopup.modules;for(e3=0;e3<i2.length;e3++){var j2=i2[e3];j2=j2.charAt(0).toUpperCase()+j2.slice(1),b["init"+j2].call(b)}y("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a2,b2,c3,d2){c3.close_replaceWith=z(d2.type)}),f+=" mfp-close-btn-in"):b.wrap.append(z())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.
40st.overflowY}):b.wrap.css({top:v.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||b.st.fixedBgPos==="auto"&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup"+p,function(a2){a2.keyCode===27&&b.close()}),v.on("resize"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var k2=b.wH=v.height(),n2={};if(b.fixedContentPos&&b._hasScrollBar(k2)){var o2=b._getScrollbarSize();o2&&(n2.marginRight=o2)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):n2.overflow="hidden");var r2=b.st.mainClass;return b.isIE7&&(r2+=" mfp-ie7"),r2&&b._addClassToMFP(r2),b.updateItemHTML(),y("BuildControls"),a("html").css(n2),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on("focusin"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k2),y(m),c2},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c2=r+" "+q+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c2+=b.st.mainClass+" "),b._removeClassFromMFP(c2),b.fixedContentPos){var e3={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e3.overflow="",a("html").css(e3)}d.off("keyup"+p+" focusin"+p),b.ev.off(p),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b.st.autoFocusLast&&b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a2){if(b.isIOS){var c2=document.documentElement.clientWidth/window.innerWidth,d2=window.innerHeight*c2;b.wrap.css("height",d2),b.wH=d2}else b.wH=a2||v.height();b.fixedContentPos||b.wrap.css("height",b.wH),y("Resize")},updateItemHTML:function(){var c2=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c2.parsed||(c2=b.parseEl(b.index));var d2=c2.type;if(y("BeforeChange",[b.currItem?b.currItem.type:"",d2]),b.currItem=c2,!b.currTemplate[d2]){var f2=b.st[d2]?b.st[d2].markup:!1;y("FirstMarkupParse",f2),f2?b.currTemplate[d2]=a(f2):b.currTemplate[d2]=!0}e2&&e2!==c2.type&&b.container.removeClass("mfp-"+e2+"-holder");var g2=b["get"+d2.charAt(0).toUpperCase()+d2.slice(1)](c2,b.currTemplate[d2]);b.appendContent(g2,d2),c2.preloaded=!0,y(n,c2),e2=c2.type,b.container.prepend(b.contentContainer),y("AfterChange")},appendContent:function(a2,c2){b.content=a2,a2?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c2]===!0?b.content.find(".mfp-close").length||b.content.append(z()):b.content=a2:b.content="",y(k),b.container.addClass("mfp-"+c2+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c2){var d2,e3=b.items[c2];if(e3.tagName?e3={el:a(e3)}:(d2=e3.type,e3={data:e3,src:e3.src}),e3.el){for(var f2=b.types,g2=0;g2<f2.length;g2++)if(e3.el.hasClass("mfp-"+f2[g2])){d2=f2[g2];break}e3.src=e3.el.attr("data-mfp-src"),e3.src||(e3.src=e3.el.attr("href"))}return e3.type=d2||b.st.type||"inline",e3.index=c2,e3.parsed=!0,b.items[c2]=e3,y("ElementParse",e3),b.items[c2]},addGroup:function(a2,c2){var d2=function(d3){d3.mfpEl=this,b._openClick(d3,a2,c2)};c2||(c2={});var e3="click.magnificPopup";c2.mainEl=a2,c2.items?(c2.isObj=!0,a2.off(e3).on(e3,d2)):(c2.isObj=!1,c2.delegate?a2.off(e3).on(e3,c2.delegate,d2):(c2.items=a2,a2.off(e3).on(e3,d2)))},_openClick:function(c2,d2,e3){var f2=e3.midClick!==void 0?e3.midClick:a.magnificPopup.defaults.midClick;if(f2||!(c2.which===2||c2.ctrlKey||c2.metaKey||c2.altKey||c2.shiftKey)){var g2=e3.disableOn!==void 0?e3.disableOn:a.magnificPopup.defaults.disableOn;if(g2){if(a.isFunction(g2)){if(!g2.call(b))return!0}else if(v.width()<g2)return!0}c2.type&&(c2.preventDefault(),b.isOpen&&c2.stopPropagation()),e3.el=a(c2.mfpEl),e3.delegate&&(e3.items=d2.find(e3.delegate)),b.open(e3)}},updateStatus:function(a2,d2){if(b.preloader){c!==a2&&b.container.removeClass("mfp-s-"+c),d2||a2!=="loading"||(d2=b.st.tLoading);var e3={status:a2,text:d2};y("UpdateStatus",e3),a2=e3.status,d2=e3.text,b.preloader.html(d2),b.preloader.find("a").on("click",function(a3){a3.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a2),c=a2}},_checkIfClose:function(c2){if(!a(c2).hasClass(s)){var d2=b.st.closeOnContentClick,e3=b.st.closeOnBgClick;if(d2&&e3||!b.content||a(c2).hasClass("mfp-close")||b.preloader&&c2===b.preloader[0])return!0;
40if(c2===b.content[0]||a.contains(b.content[0],c2)){if(d2)return!0}else if(e3&&a.contains(document,c2))return!0;return!1}},_addClassToMFP:function(a2){b.bgOverlay.addClass(a2),b.wrap.addClass(a2)},_removeClassFromMFP:function(a2){this.bgOverlay.removeClass(a2),b.wrap.removeClass(a2)},_hasScrollBar:function(a2){return(b.isIE7?d.height():document.body.scrollHeight)>(a2||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c2){return c2.target===b.wrap[0]||a.contains(b.wrap[0],c2.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b2,c2,d2){var e3;d2.data&&(c2=a.extend(d2.data,c2)),y(l,[b2,c2,d2]),a.each(c2,function(c3,d3){if(d3===void 0||d3===!1)return!0;if(e3=c3.split("_"),e3.length>1){var f2=b2.find(p+"-"+e3[0]);if(f2.length>0){var g2=e3[1];g2==="replaceWith"?f2[0]!==d3[0]&&f2.replaceWith(d3):g2==="img"?f2.is("img")?f2.attr("src",d3):f2.replaceWith(a("<img>").attr("src",d3).attr("class",f2.attr("class"))):f2.attr(e3[1],d3)}}else b2.find(p+"-"+c3).html(d3)})},_getScrollbarSize:function(){if(b.scrollbarSize===void 0){var a2=document.createElement("div");a2.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a2),b.scrollbarSize=a2.offsetWidth-a2.clientWidth,document.body.removeChild(a2)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b2,c2){return A(),b2=b2?a.extend(!0,{},b2):{},b2.isObj=!0,b2.index=c2||0,this.instance.open(b2)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b2,c2){c2.options&&(a.magnificPopup.defaults[b2]=c2.options),a.extend(this.proto,c2.proto),this.modules.push(b2)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},a.fn.magnificPopup=function(c2){A();var d2=a(this);if(typeof c2=="string")if(c2==="open"){var e3,f2=u?d2.data("magnificPopup"):d2[0].magnificPopup,g2=parseInt(arguments[1],10)||0;f2.items?e3=f2.items[g2]:(e3=d2,f2.delegate&&(e3=e3.find(f2.delegate)),e3=e3.eq(g2)),b._openClick({mfpEl:e3},d2,f2)}else b.isOpen&&b[c2].apply(b,Array.prototype.slice.call(arguments,1));else c2=a.extend(!0,{},c2),u?d2.data("magnificPopup",c2):d2[0].magnificPopup=c2,b.addGroup(d2,c2);return d2};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c2,d2){if(G(),c2.src){var e3=b.st.inline,f2=a(c2.src);if(f2.length){var g2=f2[0].parentNode;g2&&g2.tagName&&(D||(C=e3.hiddenClass,D=x(C),C="mfp-"+C),E=f2.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e3.tNotFound),f2=a("<div>");return c2.inlineElement=f2,f2}return b.updateStatus("ready"),b._parseMarkup(d2,{},c2),d2}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c2){H&&a(document.body).addClass(H),b.updateStatus("loading");var d2=a.extend({url:c2.src,success:function(d3,e3,f2){var g2={data:d3,xhr:f2};y("ParseAjax",g2),b.appendContent(a(g2.data),I),c2.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c2.finished=c2.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c2.src))}},b.st.ajax.settings);return b.req=a.ajax(d2),""}}});var L,M=function(c2){if(c2.data&&c2.data.title!==void 0)return c2.data.title;
40var d2=b.st.image.titleSrc;if(d2){if(a.isFunction(d2))return d2.call(b,c2);if(c2.el)return c2.el.attr(d2)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c2=b.st.image,d2=".image";b.types.push("image"),w(m+d2,function(){b.currItem.type==="image"&&c2.cursor&&a(document.body).addClass(c2.cursor)}),w(h+d2,function(){c2.cursor&&a(document.body).removeClass(c2.cursor),v.off("resize"+p)}),w("Resize"+d2,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a2=b.currItem;if(a2&&a2.img&&b.st.image.verticalFit){var c2=0;b.isLowIE&&(c2=parseInt(a2.img.css("padding-top"),10)+parseInt(a2.img.css("padding-bottom"),10)),a2.img.css("max-height",b.wH-c2)}},_onImageHasSize:function(a2){a2.img&&(a2.hasSize=!0,L&&clearInterval(L),a2.isCheckingImgSize=!1,y("ImageHasSize",a2),a2.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a2.imgHidden=!1))},findImageSize:function(a2){var c2=0,d2=a2.img[0],e3=function(f2){L&&clearInterval(L),L=setInterval(function(){return d2.naturalWidth>0?void b._onImageHasSize(a2):(c2>200&&clearInterval(L),c2++,void(c2===3?e3(10):c2===40?e3(50):c2===100&&e3(500)))},f2)};e3(1)},getImage:function(c2,d2){var e3=0,f2=function(){c2&&(c2.img[0].complete?(c2.img.off(".mfploader"),c2===b.currItem&&(b._onImageHasSize(c2),b.updateStatus("ready")),c2.hasSize=!0,c2.loaded=!0,y("ImageLoadComplete")):(e3++,200>e3?setTimeout(f2,100):g2()))},g2=function(){c2&&(c2.img.off(".mfploader"),c2===b.currItem&&(b._onImageHasSize(c2),b.updateStatus("error",h2.tError.replace("%url%",c2.src))),c2.hasSize=!0,c2.loaded=!0,c2.loadError=!0)},h2=b.st.image,i2=d2.find(".mfp-img");if(i2.length){var j2=document.createElement("img");j2.className="mfp-img",c2.el&&c2.el.find("img").length&&(j2.alt=c2.el.find("img").attr("alt")),c2.img=a(j2).on("load.mfploader",f2).on("error.mfploader",g2),j2.src=c2.src,i2.is("img")&&(c2.img=c2.img.clone()),j2=c2.img[0],j2.naturalWidth>0?c2.hasSize=!0:j2.width||(c2.hasSize=!1)}return b._parseMarkup(d2,{title:M(c2),img_replaceWith:c2.img},c2),b.resizeImage(),c2.hasSize?(L&&clearInterval(L),c2.loadError?(d2.addClass("mfp-loading"),b.updateStatus("error",h2.tError.replace("%url%",c2.src))):(d2.removeClass("mfp-loading"),b.updateStatus("ready")),d2):(b.updateStatus("loading"),c2.loading=!0,c2.hasSize||(c2.imgHidden=!0,d2.addClass("mfp-loading"),b.findImageSize(c2)),d2)}}});var N,O=function(){return N===void 0&&(N=document.createElement("p").style.MozTransform!==void 0),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a2){return a2.is("img")?a2:a2.find("img")}},proto:{initZoom:function(){var a2,c2=b.st.zoom,d2=".zoom";if(c2.enabled&&b.supportsTransition){var e3,f2,g2=c2.duration,j2=function(a3){var b2=a3.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d3="all "+c2.duration/1e3+"s "+c2.easing,e4={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f3="transition";return e4["-webkit-"+f3]=e4["-moz-"+f3]=e4["-o-"+f3]=e4[f3]=d3,b2.css(e4),b2},k2=function(){b.content.css("visibility","visible")};w("BuildControls"+d2,function(){if(b._allowZoom()){if(clearTimeout(e3),b.content.css("visibility","hidden"),a2=b._getItemToZoom(),!a2)return void k2();f2=j2(a2),f2.css(b._getOffset()),b.wrap.append(f2),e3=setTimeout(function(){f2.css(b._getOffset(!0)),e3=setTimeout(function(){k2(),setTimeout(function(){f2.remove(),a2=f2=null,y("ZoomAnimationEnded")},16)},g2)},16)}}),w(i+d2,function(){if(b._allowZoom()){if(clearTimeout(e3),b.st.removalDelay=g2,!a2){if(a2=b._getItemToZoom(),!a2)return;f2=j2(a2)}f2.css(b._getOffset(!0)),b.wrap.append(f2),b.content.css("visibility","hidden"),setTimeout(function(){f2.css(b._getOffset())},16)}}),w(h+d2,function(){b._allowZoom()&&(k2(),f2&&f2.remove(),a2=null)})}},_allowZoom:function(){return b.currItem.type==="image"},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c2){var d2;d2=c2?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e3=d2.offset(),f2=parseInt(d2.css("padding-top"),10),g2=parseInt(d2.css("padding-bottom"),10);e3.top-=a(window).scrollTop()-f2;
40var h2={width:d2.width(),height:(u?d2.innerHeight():d2[0].offsetHeight)-g2-f2};return O()?h2["-moz-transform"]=h2.transform="translate("+e3.left+"px,"+e3.top+"px)":(h2.left=e3.left,h2.top=e3.top),h2}}});var P="iframe",Q="//about:blank",R=function(a2){if(b.currTemplate[P]){var c2=b.currTemplate[P].find("iframe");c2.length&&(a2||(c2[0].src=Q),b.isIE8&&c2.css("display",a2?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a2,b2,c2){b2!==c2&&(b2===P?R():c2===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c2,d2){var e3=c2.src,f2=b.st.iframe;a.each(f2.patterns,function(){return e3.indexOf(this.index)>-1?(this.id&&(e3=typeof this.id=="string"?e3.substr(e3.lastIndexOf(this.id)+this.id.length,e3.length):this.id.call(this,e3)),e3=this.src.replace("%id%",e3),!1):void 0});var g2={};return f2.srcAction&&(g2[f2.srcAction]=e3),b._parseMarkup(d2,g2,c2),b.updateStatus("ready"),d2}}});var S=function(a2){var c2=b.items.length;return a2>c2-1?a2-c2:0>a2?c2+a2:a2},T=function(a2,b2,c2){return a2.replace(/%curr%/gi,b2+1).replace(/%total%/gi,c2)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c2=b.st.gallery,e3=".mfp-gallery";return b.direction=!0,c2&&c2.enabled?(f+=" mfp-gallery",w(m+e3,function(){c2.navigateByImgClick&&b.wrap.on("click"+e3,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e3,function(a2){a2.keyCode===37?b.prev():a2.keyCode===39&&b.next()})}),w("UpdateStatus"+e3,function(a2,c3){c3.text&&(c3.text=T(c3.text,b.currItem.index,b.items.length))}),w(l+e3,function(a2,d2,e4,f2){var g2=b.items.length;e4.counter=g2>1?T(c2.tCounter,f2.index,g2):""}),w("BuildControls"+e3,function(){if(b.items.length>1&&c2.arrows&&!b.arrowLeft){var d2=c2.arrowMarkup,e4=b.arrowLeft=a(d2.replace(/%title%/gi,c2.tPrev).replace(/%dir%/gi,"left")).addClass(s),f2=b.arrowRight=a(d2.replace(/%title%/gi,c2.tNext).replace(/%dir%/gi,"right")).addClass(s);e4.click(function(){b.prev()}),f2.click(function(){b.next()}),b.container.append(e4.add(f2))}}),w(n+e3,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e3,function(){d.off(e3),b.wrap.off("click"+e3),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a2){b.direction=a2>=b.index,b.index=a2,b.updateItemHTML()},preloadNearbyImages:function(){var a2,c2=b.st.gallery.preload,d2=Math.min(c2[0],b.items.length),e3=Math.min(c2[1],b.items.length);for(a2=1;a2<=(b.direction?e3:d2);a2++)b._preloadItem(b.index+a2);for(a2=1;a2<=(b.direction?d2:e3);a2++)b._preloadItem(b.index-a2)},_preloadItem:function(c2){if(c2=S(c2),!b.items[c2].preloaded){var d2=b.items[c2];d2.parsed||(d2=b.parseEl(c2)),y("LazyLoad",d2),d2.type==="image"&&(d2.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d2.hasSize=!0}).on("error.mfploader",function(){d2.hasSize=!0,d2.loadError=!0,y("LazyLoadError",d2)}).attr("src",d2.src)),d2.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a2){return a2.src.replace(/\.\w+$/,function(a3){return"@2x"+a3})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a2=b.st.retina,c2=a2.ratio;c2=isNaN(c2)?c2():c2,c2>1&&(w("ImageHasSize."+U,function(a3,b2){b2.img.css({"max-width":b2.img[0].naturalWi
40dth/c2,width:"100%"})}),w("ElementParse."+U,function(b2,d2){d2.src=a2.replaceSrc(d2,c2)}))}}}}),A()});/*! 41smooth-scroll.js 42The MIT License (MIT) 43Copyright (c) Anthony Garand 44*/(function(e2,t){typeof define=="function"&&define.amd?define([],t(e2)):typeof exports=="object"?module.exports=t(e2):e2.smoothScroll=t(e2)})(typeof global<"u"?global:this.window||this.global,function(e2){"use strict";var t,n,r,o,a,c={},u="querySelector"in document&&"addEventListener"in e2,i={selector:"[data-scroll]",selectorHeader:"[data-scroll-header]",speed:500,easing:"easeInOutCubic",offset:0,updateURL:!0,callback:function(){}},l=function(){var e3={},t2=!1,n2=0,r2=arguments.length;Object.prototype.toString.call(arguments[0])==="[object Boolean]"&&(t2=arguments[0],n2++);for(var o2=function(n3){for(var r3 in n3)Object.prototype.hasOwnProperty.call(n3,r3)&&(t2&&Object.prototype.toString.call(n3[r3])==="[object Object]"?e3[r3]=l(!0,e3[r3],n3[r3]):e3[r3]=n3[r3])};r2>n2;n2++){var a2=arguments[n2];o2(a2)}return e3},s=function(e3){return Math.max(e3.scrollHeight,e3.offsetHeight,e3.clientHeight)},f=function(e3,t2){var n2,r2,o2=t2.charAt(0),a2="classList"in document.documentElement;for(o2==="["&&(t2=t2.substr(1,t2.length-2),n2=t2.split("="),n2.length>1&&(r2=!0,n2[1]=n2[1].replace(/"/g,"").replace(/'/g,"")));e3&&e3!==document&&e3.nodeType===1;e3=e3.parentNode){if(o2==="."){if(a2){if(e3.classList.contains(t2.substr(1)))return e3}else if(new RegExp("(^|\\s)"+t2.substr(1)+"(\\s|$)").test(e3.className))return e3}if(o2==="#"&&e3.id===t2.substr(1)||o2==="["&&e3.hasAttribute(n2[0])&&(!r2||e3.getAttribute(n2[0])===n2[1])||e3.tagName.toLowerCase()===t2)return e3}return null};c.escapeCharacters=function(e3){e3.charAt(0)==="#"&&(e3=e3.substr(1));for(var t2,n2=String(e3),r2=n2.length,o2=-1,a2="",c2=n2.charCodeAt(0);++o2<r2;){if(t2=n2.charCodeAt(o2),t2===0)throw new InvalidCharacterError("Invalid character: the input contains U+0000.");a2+=t2>=1&&31>=t2||t2==127||o2===0&&t2>=48&&57>=t2||o2===1&&t2>=48&&57>=t2&&c2===45?"\\"+t2.toString(16)+" ":t2>=128||t2===45||t2===95||t2>=48&&57>=t2||t2>=65&&90>=t2||t2>=97&&122>=t2?n2.charAt(o2):"\\"+n2.charAt(o2)}return"#"+a2};var d=function(e3,t2){var n2;return e3==="easeInQuad"&&(n2=t2*t2),e3==="easeOutQuad"&&(n2=t2*(2-t2)),e3==="easeInOutQuad"&&(n2=.5>t2?2*t2*t2:-1+(4-2*t2)*t2),e3==="easeInCubic"&&(n2=t2*t2*t2),e3==="easeOutCubic"&&(n2=--t2*t2*t2+1),e3==="easeInOutCubic"&&(n2=.5>t2?4*t2*t2*t2:(t2-1)*(2*t2-2)*(2*t2-2)+1),e3==="easeInQuart"&&(n2=t2*t2*t2*t2),e3==="easeOutQuart"&&(n2=1- --t2*t2*t2*t2),e3==="easeInOutQuart"&&(n2=.5>t2?8*t2*t2*t2*t2:1-8*--t2*t2*t2*t2),e3==="easeInQuint"&&(n2=t2*t2*t2*t2*t2),e3==="easeOutQuint"&&(n2=1+--t2*t2*t2*t2*t2),e3==="easeInOutQuint"&&(n2=.5>t2?16*t2*t2*t2*t2*t2:1+16*--t2*t2*t2*t2*t2),n2||t2},m=function(e3,t2,n2){var r2=0;if(e3.offsetParent)do r2+=e3.offsetTop,e3=e3.offsetParent;while(e3);return r2=Math.max(r2-t2-n2,0),Math.min(r2,p()-h())},h=function(){return Math.max(document.documentElement.clientHeight,window.innerHeight||0)},p=function(){return Math.max(e2.document.body.scrollHeight,e2.document.documentElement.scrollHeight,e2.document.body.offsetHeight,e2.document.documentElement.offsetHeight,e2.document.body.clientHeight,e2.document.documentElement.clientHeight)},g=function(e3){return e3&&typeof JSON=="object"&&typeof JSON.parse=="function"?JSON.parse(e3):{}},b=function(t2,n2){e2.history.pushState&&(n2||n2==="true")&&e2.location.protocol!=="file:"&&e2.history.pushState(null,null,[e2.location.protocol,"//",e2.location.host,e2.location.pathname,e2.location.search,t2].join(""))},v=function(e3){return e3===null?0:s(e3)+e3.offsetTop};c.animateScroll=function(n2,c2,u2){var s2=g(c2?c2.getAttribute("data-options"):null),f2=l(t||i,u2||{},s2),h2=Object.prototype.toString.call(n2)==="[object Number]",y2=h2?null:n2==="#"?e2.document.documentElement:e2.document.querySelector(n2);if(h2||y2){var O2=e2.pageYOffset;r||(r=e2.document.querySelector(f2.selectorHeader)),o||(o=v(r));var S,I,H=h2?n2:m(y2,o,parseInt(f2.offset,10)),E=H-O2,j=p(),w=0;h2||b(n2,f2.updateURL);var C=function(t2,r2,o2){var a2=e2.pageYOffset;
44(t2==r2||a2==r2||e2.innerHeight+a2>=j)&&(clearInterval(o2),h2||y2.focus(),f2.callback(n2,c2))},L=function(){w+=16,S=w/parseInt(f2.speed,10),S=S>1?1:S,I=O2+E*d(f2.easing,S),e2.scrollTo(0,Math.floor(I)),C(I,H,a)},A=function(){clearInterval(a),a=setInterval(L,16)};e2.pageYOffset===0&&e2.scrollTo(0,0),A()}};var y=function(e3){if(e3.button===0&&!e3.metaKey&&!e3.ctrlKey){var n2=f(e3.target,t.selector);if(n2&&n2.tagName.toLowerCase()==="a"){e3.preventDefault();var r2=c.escapeCharacters(n2.hash);c.animateScroll(r2,n2,t)}}},O=function(e3){n||(n=setTimeout(function(){n=null,o=v(r)},66))};return c.destroy=function(){t&&(e2.document.removeEventListener("click",y,!1),e2.removeEventListener("resize",O,!1),t=null,n=null,r=null,o=null,a=null)},c.init=function(n2){u&&(c.destroy(),t=l(i,n2||{}),r=e2.document.querySelector(t.selectorHeader),o=v(r),e2.document.addEventListener("click",y,!1),r&&e2.addEventListener("resize",O,!1))},c});/*! 45 * instafeed.js v1.4.1 - A simple Instagram javascript plugin 46 * http://instafeedjs.com 47 * repo: https://github.com/stevenschobert/instafeed.js 48 * License: MIT (https://github.com/stevenschobert/instafeed.js/blob/master/LICENSE) 49 */(function(){var a;a=(function(){function a2(a3,b){var c,d;if(this.options={target:"instafeed",get:"popular",resolution:"thumbnail",sortBy:"none",links:!0,mock:!1,useHttp:!1},typeof a3=="object")for(c in a3)d=a3[c],this.options[c]=d;this.context=b??this,this.unique=this._genKey()}return a2.prototype.hasNext=function(){return typeof this.context.nextUrl=="string"&&this.context.nextUrl.length>0},a2.prototype.next=function(){return!!this.hasNext()&&this.run(this.context.nextUrl)},a2.prototype.run=function(b){var c,d,e2;if(typeof this.options.clientId!="string"&&typeof this.options.accessToken!="string")throw new Error("Missing clientId or accessToken.");if(typeof this.options.accessToken!="string"&&typeof this.options.clientId!="string")throw new Error("Missing clientId or accessToken.");return this.options.before!=null&&typeof this.options.before=="function"&&this.options.before.call(this),typeof document<"u"&&document!==null&&(e2=document.createElement("script"),e2.id="instafeed-fetcher",e2.src=b||this._buildUrl(),c=document.getElementsByTagName("head"),c[0].appendChild(e2),d="instafeedCache"+this.unique,window[d]=new a2(this.options,this),window[d].unique=this.unique),!0},a2.prototype.parse=function(a3){var b,c,d,e2,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H;if(typeof a3!="object"){if(this.options.error!=null&&typeof this.options.error=="function")return this.options.error.call(this,"Invalid JSON data"),!1;throw new Error("Invalid JSON response")}if(a3.meta.code!==200){if(this.options.error!=null&&typeof this.options.error=="function")return this.options.error.call(this,a3.meta.error_message),!1;throw new Error("Error from Instagram: "+a3.meta.error_message)}if(a3.data.length===0){if(this.options.error!=null&&typeof this.options.error=="function")return this.options.error.call(this,"No images were returned from Instagram"),!1;throw new Error("No images were returned from Instagram")}if(this.options.success!=null&&typeof this.options.success=="function"&&this.options.success.call(this,a3),this.context.nextUrl="",a3.pagination!=null&&(this.context.nextUrl=a3.pagination.next_url),this.options.sortBy!=="none")switch(F=this.options.sortBy==="random"?["","random"]:this.options.sortBy.split("-"),E=F[0]==="least",F[1]){case"random":a3.data.sort(function(){return .5-Math.random()});break;case"recent":a3.data=this._sortBy(a3.data,"created_time",E);break;case"liked":a3.data=this._sortBy(a3.data,"likes.count",E);break;case"commented":a3.data=this._sortBy(a3.data,"comments.count",E);break;default:throw new Error("Invalid option for sortBy: '"+this.options.sortBy+"'.")}if(typeof document<"u"&&document!==null&&this.options.mock===!1){if(q=a3.data,D=parseInt(this.options.limit,10),this.options.limit!=null&&q.length>D&&(q=q.slice(0,D)),h=document.createDocumentFragment(),this.options.filter!=null&&typeof this.options.filter=="function"&&(q=this._filter(q,this.options.filter)),this.options.template!=null&&typeof this.options.template=="string"){for(j="",o="",u="",H=document.createElement("div"),l=0,z=q.length;l<z;l++){if(m=q[l],n=m.images[this.options.resolution],typeof n!="object")throw g="No image found for resolution: "+this.options.resolution+".",new Error(g);v=n.width,s=n.height,t="square",v>s&&(t="landscape"),v<s&&(t="portrait"),p=n.url,k=window.location.protocol.indexOf("http")>=0,k&&!this.options.useHttp&&(p=p.replace(/https?:\/\//,"//")),o=this._makeTemplate(this.options.template,{model:m,id:m.id,link:m.link,type:m.type,image:p,width:v,height:s,orientation:t,caption:this._getObjectProperty(m,"caption.text"),likes:m.likes.count,comments:m.comments.count,location:this._getObjectProperty(m,"location.name")}
49),j+=o}for(H.innerHTML=j,e2=[],d=0,c=H.childNodes.length;d<c;)e2.push(H.childNodes[d]),d+=1;for(x=0,A=e2.length;x<A;x++)C=e2[x],h.appendChild(C)}else for(y=0,B=q.length;y<B;y++){if(m=q[y],r=document.createElement("img"),n=m.images[this.options.resolution],typeof n!="object")throw g="No image found for resolution: "+this.options.resolution+".",new Error(g);p=n.url,k=window.location.protocol.indexOf("http")>=0,k&&!this.options.useHttp&&(p=p.replace(/https?:\/\//,"//")),r.src=p,this.options.links===!0?(b=document.createElement("a"),b.href=m.link,b.appendChild(r),h.appendChild(b)):h.appendChild(r)}if(G=this.options.target,typeof G=="string"&&(G=document.getElementById(G)),G==null)throw g='No element with id="'+this.options.target+'" on page.',new Error(g);G.appendChild(h),i=document.getElementsByTagName("head")[0],i.removeChild(document.getElementById("instafeed-fetcher")),w="instafeedCache"+this.unique,window[w]=void 0;try{delete window[w]}catch(a4){f=a4}}return this.options.after!=null&&typeof this.options.after=="function"&&this.options.after.call(this),!0},a2.prototype._buildUrl=function(){var a3,b,c;switch(a3="https://api.instagram.com/v1",this.options.get){case"popular":b="media/popular";break;case"tagged":if(!this.options.tagName)throw new Error("No tag name specified. Use the 'tagName' option.");b="tags/"+this.options.tagName+"/media/recent";break;case"location":if(!this.options.locationId)throw new Error("No location specified. Use the 'locationId' option.");b="locations/"+this.options.locationId+"/media/recent";break;case"user":if(!this.options.userId)throw new Error("No user specified. Use the 'userId' option.");b="users/"+this.options.userId+"/media/recent";break;default:throw new Error("Invalid option for get: '"+this.options.get+"'.")}return c=a3+"/"+b,c+=this.options.accessToken!=null?"?access_token="+this.options.accessToken:"?client_id="+this.options.clientId,this.options.limit!=null&&(c+="&count="+this.options.limit),c+="&callback=instafeedCache"+this.unique+".parse"},a2.prototype._genKey=function(){var a3;return a3=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)},""+a3()+a3()+a3()+a3()},a2.prototype._makeTemplate=function(a3,b){var c,d,e2,f,g;for(d=/(?:\{{2})([\w\[\]\.]+)(?:\}{2})/,c=a3;d.test(c);)f=c.match(d)[1],g=(e2=this._getObjectProperty(b,f))!=null?e2:"",c=c.replace(d,function(){return""+g});return c},a2.prototype._getObjectProperty=function(a3,b){var c,d;for(b=b.replace(/\[(\w+)\]/g,".$1"),d=b.split(".");d.length;){if(c=d.shift(),!(a3!=null&&c in a3))return null;a3=a3[c]}return a3},a2.prototype._sortBy=function(a3,b,c){var d;return d=function(a4,d2){var e2,f;return e2=this._getObjectProperty(a4,b),f=this._getObjectProperty(d2,b),c?e2>f?1:-1:e2<f?1:-1},a3.sort(d.bind(this)),a3},a2.prototype._filter=function(a3,b){var c,d,e2,f,g;for(c=[],d=function(a4){if(b(a4))return c.push(a4)},e2=0,g=a3.length;e2<g;e2++)f=a3[e2],d(f);return c},a2})(),(function(a2,b){return typeof define=="function"&&define.amd?define([],b):typeof module=="object"&&module.exports?module.exports=b():a2.Instafeed=b()})(this,function(){return a})}).call(this);/** 50 * @license 51 * lodash 4.5.1 (Custom Build) lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE 52 * Build: `lodash core -o ./dist/lodash.core.js` 53 */(function(){function n(n2,t2){for(var r2=-1,e3=t2.length,u2=n2.length;++r2<e3;)n2[u2+r2]=t2[r2];return n2}function t(n2,t2,r2){for(var e3=-1,u2=n2.length;++e3<u2;){var o2=n2[e3],i2=t2(o2);if(i2!=null&&(c2===an?i2===i2:r2(i2,c2)))var c2=i2,f2=o2}return f2}function r(n2,t2,r2){var e3;return r2(n2,function(n3,r3,u2){return t2(n3,r3,u2)?(e3=n3,!1):void 0}),e3}function e2(n2,t2,r2,e3,u2){return u2(n2,function(n3,u3,o2){r2=e3?(e3=!1,n3):t2(r2,n3,u3,o2)}),r2}function u(n2,t2){return O(t2,function(t3){return n2[t3]})}function o(n2){return n2&&n2.Object===Object?n2:null}function i(n2){return vn[n2]}function c(n2){var t2=!1;if(n2!=null&&typeof n2.toString!="function")try{t2=!!(n2+"")}catch{}return t2}function f(n2,t2){return n2=typeof n2=="number"||hn.test(n2)?+n2:-1,n2>-1&&n2%1==0&&(t2??9007199254740991)>n2}function a(n2){if(Y(n2)&&!Pn(n2)){if(n2 instanceof l)return n2;if(En.call(n2,"__wrapped__")){var t2=new l(n2.__wrapped__,n2.__chain__);return t2.__actions__=N(n2.__actions__),t2}}return new l(n2)}function l(n2,t2){this.__wrapped__=n2,this.__actions__=[],this.__chain__=!!t2}function p(n2,t2,r2,e3){var u2;return(u2=n2===an)||(u2=xn[r2],u2=(n2===u2||n2!==n2&&u2!==u2)&&!En.call(e3,r2)),u2?t2:n2}function s(n2){return X(n2)?Fn(n2):{}}function h(n2,t2,r2){if(typeof n2!="function")throw new TypeError("Expected a function");return setTimeout(function(){n2.apply(an,r2)},t2)}function v(n2,t2){var r2=!0;return $n(n2,function(n3,e3,u2){return r2=!!t2(n3,e3,u2)}),r2}function y(n2,t2){var r2=[];return $n(n2,function(n3,e3,u2){t2(n3,e3,u2)&&r2.push(n3)}),r2}function _2(t2,r2,e3,u2){u2||(u2=[]);for(var o2=-1,i2=t2.length;++o2<i2;){var c2=t2[o2];r2>0&&Y(c2)&&L(c2)&&(e3||Pn(c2)||K(c2))?r2>1?_2(c2,r2-1,e3,u2):n(u2,c2):e3||(u2[u2.length]=c2)}return u2}function g(n2,t2){return n2&&qn(n2,t2,en)}function b(n2,t2){return y(t2,function(t3){return Q(n2[t3])})}function j(n2,t2,r2,e3,u2){return n2===t2?!0:n2==null||t2==null||!X(n2)&&!Y(t2)?n2!==n2&&t2!==t2:m(n2,t2,j,r2,e3,u2)}function m(n2,t2,r2,e3,u2,o2){var i2=Pn(n2),f2=Pn(t2),a2="[object Array]",l2="[object Array]";i2||(a2=kn.call(n2),a2=="[object Arguments]"&&(a2="[object Object]")),f2||(l2=kn.call(t2),l2=="[object Arguments]"&&(l2="[object Object]"));var p2=a2=="[object Object]"&&!c(n2),f2=l2=="[object Object]"&&!c(t2);return!(l2=a2==l2)||i2||p2?2&u2||(a2=p2&&En.call(n2,"__wrapped__"),f2=f2&&En.call(t2,"__wrapped__"),!a2&&!f2)?l2?(o2||(o2=[]),(a2=J(o2,function(t3){return t3[0]===n2}))&&a2[1]?a2[1]==t2:(o2.push([n2,t2]),t2=(i2?I:q)(n2,t2,r2,e3,u2,o2),o2.pop(),t2)):!1:r2(a2?n2.value():n2,f2?t2.value():t2,e3,u2,o2):$2(n2,t2,a2)}function d(n2){var t2=typeof n2;return t2=="function"?n2:n2==null?cn:(t2=="object"?x:A)(n2)}function w(n2){n2=n2==null?n2:Object(n2);var t2,r2=[];
53for(t2 in n2)r2.push(t2);return r2}function O(n2,t2){var r2=-1,e3=L(n2)?Array(n2.length):[];return $n(n2,function(n3,u2,o2){e3[++r2]=t2(n3,u2,o2)}),e3}function x(n2){var t2=en(n2);return function(r2){var e3=t2.length;if(r2==null)return!e3;for(r2=Object(r2);e3--;){var u2=t2[e3];if(!(u2 in r2&&j(n2[u2],r2[u2],an,3)))return!1}return!0}}function E(n2,t2){return n2=Object(n2),P(t2,function(t3,r2){return r2 in n2&&(t3[r2]=n2[r2]),t3},{})}function A(n2){return function(t2){return t2==null?an:t2[n2]}}function k(n2,t2,r2){var e3=-1,u2=n2.length;for(0>t2&&(t2=-t2>u2?0:u2+t2),r2=r2>u2?u2:r2,0>r2&&(r2+=u2),u2=t2>r2?0:r2-t2>>>0,t2>>>=0,r2=Array(u2);++e3<u2;)r2[e3]=n2[e3+t2];return r2}function N(n2){return k(n2,0,n2.length)}function S(n2,t2){var r2;return $n(n2,function(n3,e3,u2){return r2=t2(n3,e3,u2),!r2}),!!r2}function T(t2,r2){return P(r2,function(t3,r3){return r3.func.apply(r3.thisArg,n([t3],r3.args))},t2)}function F(n2,t2,r2,e3){r2||(r2={});for(var u2=-1,o2=t2.length;++u2<o2;){var i2=t2[u2],c2=e3?e3(r2[i2],n2[i2],i2,r2,n2):n2[i2],f2=r2,a2=f2[i2];En.call(f2,i2)&&(a2===c2||a2!==a2&&c2!==c2)&&(c2!==an||i2 in f2)||(f2[i2]=c2)}return r2}function R(n2){return V(function(t2,r2){var e3=-1,u2=r2.length,o2=u2>1?r2[u2-1]:an,o2=typeof o2=="function"?(u2--,o2):an;for(t2=Object(t2);++e3<u2;){var i2=r2[e3];i2&&n2(t2,i2,e3,o2)}return t2})}function B(n2){return function(){var t2=arguments,r2=s(n2.prototype),t2=n2.apply(r2,t2);return X(t2)?t2:r2}}function D(n2,t2,r2){function e3(){for(var o2=-1,i2=arguments.length,c2=-1,f2=r2.length,a2=Array(f2+i2),l2=this&&this!==wn&&this instanceof e3?u2:n2;++c2<f2;)a2[c2]=r2[c2];for(;i2--;)a2[c2++]=arguments[++o2];return l2.apply(t2,a2)}if(typeof n2!="function")throw new TypeError("Expected a function");var u2=B(n2);return e3}function I(n2,t2,r2,e3,u2,o2){var i2=-1,c2=1&u2,f2=n2.length,a2=t2.length;if(f2!=a2&&!(2&u2&&a2>f2))return!1;for(a2=!0;++i2<f2;){var l2=n2[i2],p2=t2[i2];if(an!==void 0){a2=!1;break}if(c2){if(!S(t2,function(n3){return l2===n3||r2(l2,n3,e3,u2,o2)})){a2=!1;break}}else if(l2!==p2&&!r2(l2,p2,e3,u2,o2)){a2=!1;break}}return a2}function $2(n2,t2,r2){switch(r2){case"[object Boolean]":case"[object Date]":return+n2==+t2;case"[object Error]":return n2.name==t2.name&&n2.message==t2.message;case"[object Number]":return n2!=+n2?t2!=+t2:n2==+t2;case"[object RegExp]":case"[object String]":return n2==t2+""}return!1}function q(n2,t2,r2,e3,u2,o2){var i2=2&u2,c2=en(n2),f2=c2.length,a2=en(t2).length;if(f2!=a2&&!i2)return!1;for(var l2=f2;l2--;){var p2=c2[l2];if(!(i2?p2 in t2:En.call(t2,p2)))return!1}for(a2=!0;++l2<f2;){var p2=c2[l2],s2=n2[p2],h2=t2[p2];if(an!==void 0||s2!==h2&&!r2(s2,h2,e3,u2,o2)){a2=!1;break}i2||(i2=p2=="constructor")}return a2&&!i2&&(r2=n2.constructor,e3=t2.constructor,r2!=e3&&"constructor"in n2&&"constructor"in t2&&!(typeof r2=="function"&&r2 instanceof r2&&typeof e3=="function"&&e3 instanceof e3)&&(a2=!1)),a2}function z(n2){var t2=n2?n2.length:an;if(W(t2)&&(Pn(n2)||nn(n2)||K(n2))){n2=String;for(var r2=-1,e3=Array(t2);++r2<t2;)e3[r2]=n2(r2);t2=e3}else t2=null;return t2}function C(n2){var t2=n2&&n2.constructor,t2=Q(t2)&&t2.prototype||xn;return n2===t2}function G(n2){return n2?n2[0]:an}function J(n2,t2){return r(n2,d(t2),$n)}function M(n2,t2){return $n(n2,typeof t2=="function"?t2:cn)}function P(n2,t2,r2){return e2(n2,d(t2),r2,3>arguments.length,$n)}function U(n2,t2){var r2;if(typeof t2!="function")throw new TypeError("Expected a function");return n2=Un(n2),function(){return 0<--n2&&(r2=t2.apply(this,arguments)),1>=n2&&(t2=an),r2}}function V(n2){var t2;if(typeof n2!="function")throw new TypeError("Expected a function");return t2=In(t2===an?n2.length-1:Un(t2),0),function(){for(var r2=arguments,e3=-1,u2=In(r2.length-t2,0),o2=Array(u2);++e3<u2;)o2[e3]=r2[t2+e3];for(u2=Array(t2+1),e3=-1;++e3<t2;)u2[e3]=r2[e3];return u2[t2]=o2,n2.apply(this,u2)}}function H(n2,t2){return n2>t2}function K(n2){return Y(n2)&&L(n2)&&En.call(n2,"callee")&&(!Rn.call(n2,"callee")||kn.call(n2)=="[object Arguments]")}function L(n2){return n2!=null&&!(typeof n2=="function"&&Q(n2))&&W(zn(n2))}function Q(n2){return n2=X(n2)?kn.call(n2):"",n2=="[object Function]"||n2=="[object GeneratorFunction]"}function W(n2){return typeof n2=="number"&&n2>-1&&n2%1==0&&9007199254740991>=n2}function X(n2){var t2=typeof n2;return!!n2&&(t2=="object"||t2=="function")}function Y(n2){return!!n2&&typeof n2=="object"}function Z(n2){return typeof n2=="number"||Y(n2)&&kn.call(n2)=="[object Number]"}function nn(n2){return typeof n2=="string"||!Pn(n2)&&Y(n2)&&kn.call(n2)=="[object String]"}function tn(n2,t2){return t2>n2}function rn(n2){return typeof n2=="string"?n2:n2==null?"":n2+""}function en(n2){var t2=C(n2);if(!t2&&!L(n2))return Dn(Object(n2));var r2,e3=z(n2),u2=!!e3,e3=e3||[],o2=e3.length;for(r2 in n2)!En.call(n2,r2)||u2&&(r2=="length"||f(r2,o2))||t2&&r2=="constructor"||e3.push(r2);return e3}function un(n2){for(var t2=-1,r2=C(n2),e3=w(n2),u2=e3.length,o2=z(n2),i2=!!o2,o2=o2||[],c2=o2.length;++t2<u2;){var a2=e3[t2];
53i2&&(a2=="length"||f(a2,c2))||a2=="constructor"&&(r2||!En.call(n2,a2))||o2.push(a2)}return o2}function on(n2){return n2?u(n2,en(n2)):[]}function cn(n2){return n2}function fn(t2,r2,e3){var u2=en(r2),o2=b(r2,u2);e3!=null||X(r2)&&(o2.length||!u2.length)||(e3=r2,r2=t2,t2=this,o2=b(r2,en(r2)));var i2=X(e3)&&"chain"in e3?e3.chain:!0,c2=Q(t2);return $n(o2,function(e4){var u3=r2[e4];t2[e4]=u3,c2&&(t2.prototype[e4]=function(){var r3=this.__chain__;if(i2||r3){var e5=t2(this.__wrapped__);return(e5.__actions__=N(this.__actions__)).push({func:u3,args:arguments,thisArg:t2}),e5.__chain__=r3,e5}return u3.apply(t2,n([this.value()],arguments))})}),t2}var an,ln=1/0,pn=/[&<>"'`]/g,sn=RegExp(pn.source),hn=/^(?:0|[1-9]\d*)$/,vn={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},yn={function:!0,object:!0},_n=yn[typeof exports]&&exports&&!exports.nodeType?exports:an,gn=yn[typeof module]&&module&&!module.nodeType?module:an,bn=gn&&gn.exports===_n?_n:an,jn=o(yn[typeof self]&&self),mn=o(yn[typeof window]&&window),dn=o(yn[typeof this]&&this),wn=o(_n&&gn&&typeof global=="object"&&global)||mn!==(dn&&dn.window)&&mn||jn||dn||Function("return this")(),On=Array.prototype,xn=Object.prototype,En=xn.hasOwnProperty,An=0,kn=xn.toString,Nn=wn._,Sn=wn.Reflect,Tn=Sn?Sn.f:an,Fn=Object.create,Rn=xn.propertyIsEnumerable,Bn=wn.isFinite,Dn=Object.keys,In=Math.max,$n=(function(n2,t2){return function(r2,e3){if(r2==null)return r2;if(!L(r2))return n2(r2,e3);for(var u2=r2.length,o2=t2?u2:-1,i2=Object(r2);(t2?o2--:++o2<u2)&&e3(i2[o2],o2,i2)!==!1;);return r2}})(g),qn=(function(n2){return function(t2,r2,e3){var u2=-1,o2=Object(t2);e3=e3(t2);for(var i2=e3.length;i2--;){var c2=e3[n2?i2:++u2];if(r2(o2[c2],c2,o2)===!1)break}return t2}})();Tn&&!Rn.call({valueOf:1},"valueOf")&&(w=function(n2){n2=Tn(n2);for(var t2,r2=[];!(t2=n2.next()).done;)r2.push(t2.value);return r2});var zn=A("length"),Cn=V(function(t2,r2){return Pn(t2)||(t2=t2==null?[]:[Object(t2)]),_2(r2,1),n(N(t2),on)}),Gn=V(function(n2,t2,r2){return D(n2,t2,r2)}),Jn=V(function(n2,t2){return h(n2,1,t2)}),Mn=V(function(n2,t2,r2){return h(n2,Vn(t2)||0,r2)}),Pn=Array.isArray,Un=Number,Vn=Number,Hn=R(function(n2,t2){F(t2,en(t2),n2)}),Kn=R(function(n2,t2){F(t2,un(t2),n2)}),Ln=R(function(n2,t2,r2,e3){F(t2,un(t2),n2,e3)}),Qn=V(function(n2){return n2.push(an,p),Ln.apply(an,n2)}),Wn=V(function(n2,t2){return n2==null?{}:E(n2,_2(t2,1))}),Xn=d;l.prototype=s(a.prototype),l.prototype.constructor=l,a.assignIn=Kn,a.before=U,a.bind=Gn,a.chain=function(n2){return n2=a(n2),n2.__chain__=!0,n2},a.compact=function(n2){return y(n2,Boolean)},a.concat=Cn,a.create=function(n2,t2){var r2=s(n2);return t2?Hn(r2,t2):r2},a.defaults=Qn,a.defer=Jn,a.delay=Mn,a.filter=function(n2,t2){return y(n2,d(t2))},a.flatten=function(n2){return n2&&n2.length?_2(n2,1):[]},a.flattenDeep=function(n2){return n2&&n2.length?_2(n2,ln):[]},a.iteratee=Xn,a.keys=en,a.map=function(n2,t2){return O(n2,d(t2))},a.matches=function(n2){return x(Hn({},n2))},a.mixin=fn,a.negate=function(n2){if(typeof n2!="function")throw new TypeError("Expected a function");return function(){return!n2.apply(this,arguments)}},a.once=function(n2){return U(2,n2)},a.pick=Wn,a.slice=function(n2,t2,r2){var e3=n2?n2.length:0;return r2=r2===an?e3:+r2,e3?k(n2,t2==null?0:+t2,r2):[]},a.sortBy=function(n2,t2){var r2=0;return t2=d(t2),O(O(n2,function(n3,e3,u2){return{c:n3,b:r2++,a:t2(n3,e3,u2)}}).sort(function(n3,t3){var r3;n:{r3=n3.a;var e3=t3.a;if(r3!==e3){var u2=r3===null,o2=r3===an,i2=r3===r3,c2=e3===null,f2=e3===an,a2=e3===e3;if(r3>e3&&!c2||!i2||u2&&!f2&&a2||o2&&a2){r3=1;break n}if(e3>r3&&!u2||!a2||c2&&!o2&&i2||f2&&i2){r3=-1;break n}}r3=0}return r3||n3.b-t3.b}),A("c"))},a.tap=function(n2,t2){return t2(n2),n2},a.thru=function(n2,t2){return t2(n2)},a.toArray=function(n2){return L(n2)?n2.length?N(n2):[]:on(n2)},a.values=on,a.extend=Kn,fn(a,a),a.clone=function(n2){return X(n2)?Pn(n2)?N(n2):F(n2,en(n2)):n2},a.escape=function(n2){return(n2=rn(n2))&&sn.test(n2)?n2.replace(pn,i):n2},a.every=function(n2,t2,r2){return t2=r2?an:t2,v(n2,d(t2))},a.find=J,a.forEach=M,a.has=function(n2,t2){return n2!=null&&En.call(n2,t2)},a.head=G,a.identity=cn,a.indexOf=function(n2,t2,r2){var e3=n2?n2.length:0;r2=typeof r2=="number"?0>
53r2?In(e3+r2,0):r2:0,r2=(r2||0)-1;for(var u2=t2===t2;++r2<e3;){var o2=n2[r2];if(u2?o2===t2:o2!==o2)return r2}return-1},a.isArguments=K,a.isArray=Pn,a.isBoolean=function(n2){return n2===!0||n2===!1||Y(n2)&&kn.call(n2)=="[object Boolean]"},a.isDate=function(n2){return Y(n2)&&kn.call(n2)=="[object Date]"},a.isEmpty=function(n2){if(L(n2)&&(Pn(n2)||nn(n2)||Q(n2.splice)||K(n2)))return!n2.length;for(var t2 in n2)if(En.call(n2,t2))return!1;return!0},a.isEqual=function(n2,t2){return j(n2,t2)},a.isFinite=function(n2){return typeof n2=="number"&&Bn(n2)},a.isFunction=Q,a.isNaN=function(n2){return Z(n2)&&n2!=+n2},a.isNull=function(n2){return n2===null},a.isNumber=Z,a.isObject=X,a.isRegExp=function(n2){return X(n2)&&kn.call(n2)=="[object RegExp]"},a.isString=nn,a.isUndefined=function(n2){return n2===an},a.last=function(n2){var t2=n2?n2.length:0;return t2?n2[t2-1]:an},a.max=function(n2){return n2&&n2.length?t(n2,cn,H):an},a.min=function(n2){return n2&&n2.length?t(n2,cn,tn):an},a.noConflict=function(){return wn._===this&&(wn._=Nn),this},a.noop=function(){},a.reduce=P,a.result=function(n2,t2,r2){return t2=n2==null?an:n2[t2],t2===an&&(t2=r2),Q(t2)?t2.call(n2):t2},a.size=function(n2){return n2==null?0:(n2=L(n2)?n2:en(n2),n2.length)},a.some=function(n2,t2,r2){return t2=r2?an:t2,S(n2,d(t2))},a.uniqueId=function(n2){var t2=++An;return rn(n2)+t2},a.each=M,a.first=G,fn(a,(function(){var n2={};return g(a,function(t2,r2){En.call(a.prototype,r2)||(n2[r2]=t2)}),n2})(),{chain:!1}),a.VERSION="4.5.1",$n("pop join replace reverse split push shift sort splice unshift".split(" "),function(n2){var t2=(/^(?:replace|split)$/.test(n2)?String.prototype:On)[n2],r2=/^(?:push|sort|unshift)$/.test(n2)?"tap":"thru",e3=/^(?:pop|join|replace|shift)$/.test(n2);a.prototype[n2]=function(){var n3=arguments;return e3&&!this.__chain__?t2.apply(this.value(),n3):this[r2](function(r3){return t2.apply(r3,n3)})}}),a.prototype.toJSON=a.prototype.valueOf=a.prototype.value=function(){return T(this.__wrapped__,this.__actions__)},(mn||jn||{})._=a,typeof define=="function"&&typeof define.amd=="object"&&define.amd?define(function(){return a}):_n&&gn?(bn&&((gn.exports=a)._=a),_n._=a):wn._=a}).call(this),(function(t,e2){typeof define=="function"&&define.amd?define(["jquery"],e2):typeof module=="object"&&module.exports?e2(require("jquery")):e2(t.jQuery)})(this,function(t){var e2,n,r="center",i="left",a="right",s={auto:"auto"};function o(e3){this.$element=t(e3),this.original_text=t.trim(this.$element.html()),this.settings=t.extend({},t.fn.trunk8.defaults)}function l(t2){var e3=document.createElement("DIV");return e3.innerHTML=t2,e3.textContent!==void 0?e3.textContent:e3.innerText}function u(e3,n2,r2){e3=e3.replace(r2,"");var i2=function(n3,a3){var s2,o2,l2,u2,h2="";for(u2=0;u2<n3.length;u2++)s2=n3[u2],l2=t.trim(e3).split(" ").length,t.trim(e3).length&&(typeof s2=="string"?(/<br\s*\/?>/i.test(s2)||(l2===1&&t.trim(e3).length<=s2.length?(s2=e3,a3!=="p"&&a3!=="div"||(s2+=r2),e3=""):e3=e3.replace(s2,"")),h2+=t.trim(s2)+(u2===n3.length-1||l2<=1?"":" ")):(o2=i2(s2.content,s2.tag),s2.after&&(e3=e3.replace(s2.after,"")),o2&&(s2.after||(s2.after=" "),h2+="<"+s2.tag+s2.attribs+">"+o2+"</"+s2.tag+">"+s2.after)));return h2},a2=i2(n2);return a2.slice(a2.length-r2.length)!==r2&&(a2+=r2),a2}function h(){var e3,r2,i2,a2,o2,h2,c=this.data("trunk8"),f=c.settings,g=f.width,d=f.side,p=f.fill,m=f.parseHTML,v=n.getLineHeight(this)*f.lines,y=c.original_text,S=y.length,x="";if(this.html(y),o2=this.text(),m&&l(y)!==y&&(h2=(function t2(e4){if(l(e4)===e4)return e4.split(/\s/g);for(var n2,r3,i3=[],a3=/<([a-z]+)([^<]*)(?:>([\S\s]*?(?!<\1>))<\/\1>|\s+\/>)(['.?!,]*)|((?:[^<>\s])+['.?!,]*\w?|<br\s?\/?>)/gi,s2=a3.exec(e4);s2&&n2!==a3.lastIndex;)n2=a3.lastIndex,s2[5]?i3.push(s2[5]):s2[1]&&i3.push({tag:s2[1],attribs:s2[2],content:s2[3],after:s2[4]}),s2=a3.exec(e4);for(r3=0;r3<i3.length;r3++)typeof i3[r3]!="string"&&i3[r3].content&&(i3[r3].content=t2(i3[r3].content));return i3})(y),S=(y=l(y)).length),g===s.auto){if(this.height()<=v)return;for(e3=0,r2=S-1;e3<=r2;)i2=e3+(r2-e3>>
531),a2=n.eatStr(y,d,S-i2,p),m&&h2&&(a2=u(a2,h2,p)),this.html(a2),this.height()>v?r2=i2-1:(e3=i2+1,x=x.length>a2.length?x:a2);this.html(""),this.html(x),f.tooltip&&this.attr("title",o2)}else{if(isNaN(g))return void t.error('Invalid width "'+g+'".');i2=S-g,a2=n.eatStr(y,d,i2,p),this.html(a2),f.tooltip&&this.attr("title",y)}f.onTruncate()}o.prototype.updateSettings=function(e3){this.settings=t.extend(this.settings,e3)},e2={init:function(e3){return this.each(function(){var n2=t(this),r2=n2.data("trunk8");r2||n2.data("trunk8",r2=new o(this)),r2.updateSettings(e3),h.call(n2)})},update:function(e3){return this.each(function(){var n2=t(this);e3&&(n2.data("trunk8").original_text=e3),h.call(n2)})},revert:function(){return this.each(function(){var e3=t(this).data("trunk8").original_text;t(this).html(e3)})},getSettings:function(){return t(this.get(0)).data("trunk8").settings}},(n={eatStr:function(e3,s2,o2,l2){var u2,h2,c=e3.length,f=n.eatStr.generateKey.apply(null,arguments);if(n.eatStr.cache[f])return n.eatStr.cache[f];if(typeof e3=="string"&&c!==0||t.error('Invalid source string "'+e3+'".'),o2<0||o2>c)t.error('Invalid bite size "'+o2+'".');else if(o2===0)return e3;switch(typeof(l2+"")!="string"&&t.error("Fill unable to be converted to a string."),s2){case a:return n.eatStr.cache[f]=t.trim(e3.substr(0,c-o2))+l2;case i:return n.eatStr.cache[f]=l2+t.trim(e3.substr(o2));case r:return u2=c>>1,h2=o2>>1,n.eatStr.cache[f]=t.trim(n.eatStr(e3.substr(0,c-u2),a,o2-h2,""))+l2+t.trim(n.eatStr(e3.substr(c-u2),i,h2,""));default:t.error('Invalid side "'+s2+'".')}},getLineHeight:function(e3){var n2=t(e3).css("float");n2!=="none"&&t(e3).css("float","none");var r2=t(e3).css("position");r2==="absolute"&&t(e3).css("position","static");var i2,a2=t(e3).html(),s2="line-height-test";return t(e3).html("i").wrap('<div id="'+s2+'" />'),i2=t("#"+s2).innerHeight(),t(e3).html(a2).css({float:n2,position:r2}).unwrap(),i2}}).eatStr.cache={},n.eatStr.generateKey=function(){return Array.prototype.join.call(arguments,"")},t.fn.trunk8=function(n2){return e2[n2]?e2[n2].apply(this,Array.prototype.slice.call(arguments,1)):typeof n2!="object"&&n2?void t.error("Method "+n2+" does not exist on jQuery.trunk8"):e2.init.a
53pply(this,arguments)},t.fn.trunk8.defaults={fill:"…",lines:1,side:a,tooltip:!0,width:s.auto,parseHTML:!1,onTruncate:function(){}}}),(function(a,b){typeof exports=="object"?module.exports=b():typeof define=="function"&&define.amd?define(["jquery","googlemaps!"],b):a.GMaps=b()})(this,function(){var a=function(a2,b2){var c2;if(a2===b2)return a2;for(c2 in b2)b2[c2]!==void 0&&(a2[c2]=b2[c2]);return a2},b=function(a2,b2){var c2,d2=Array.prototype.slice.call(arguments,2),e2=[],f2=a2.length;if(Array.prototype.map&&a2.map===Array.prototype.map)e2=Array.prototype.map.call(a2,function(a3){var c3=d2.slice(0);return c3.splice(0,0,a3),b2.apply(this,c3)});else for(c2=0;c2<f2;c2++)callback_params=d2,callback_params.splice(0,0,a2[c2]),e2.push(b2.apply(this,callback_params));return e2},c=function(a2){var b2,c2=[];for(b2=0;b2<a2.length;b2++)c2=c2.concat(a2[b2]);return c2},d=function(a2,b2){var c2=a2[0],d2=a2[1];return b2&&(c2=a2[1],d2=a2[0]),new google.maps.LatLng(c2,d2)},f=function(a2,b2){var c2;for(c2=0;c2<a2.length;c2++)a2[c2]instanceof google.maps.LatLng||(a2[c2].length>0&&typeof a2[c2][0]=="object"?a2[c2]=f(a2[c2],b2):a2[c2]=d(a2[c2],b2));return a2},g=function(a2,b2){var c2=a2.replace(".","");return"jQuery"in this&&b2?$("."+c2,b2)[0]:document.getElementsByClassName(c2)[0]},h=function(a2,b2){var a2=a2.replace("#","");return"jQuery"in window&&b2?$("#"+a2,b2)[0]:document.getElementById(a2)},i=function(a2){var b2=0,c2=0;if(a2.getBoundingClientRect){var d2=a2.getBoundingClientRect(),e2=-(window.scrollX?window.scrollX:window.pageXOffset),f2=-(window.scrollY?window.scrollY:window.pageYOffset);return[d2.left-e2,d2.top-f2]}if(a2.offsetParent)do b2+=a2.offsetLeft,c2+=a2.offsetTop;while(a2=a2.offsetParent);return[b2,c2]},j=(function(b2){var c2=document,d2=function(b3){if(typeof window.google!="object"||!window.google.maps)return typeof window.console=="object"&&window.console.error&&console.error("Google Maps API is required. Please register the following JavaScript library https://maps.googleapis.com/maps/api/js."),function(){};if(!this)return new d2(b3);b3.zoom=b3.zoom||15,b3.mapType=b3.mapType||"roadmap";var e2,f2=function(a2,b4){return a2===void 0?b4:a2},j2=this,k2=["bounds_changed","center_changed","click","dblclick","drag","dragend","dragstart","idle","maptypeid_changed","projection_changed","resize","tilesloaded","zoom_changed"],l2=["mousemove","mouseout","mouseover"],m=["el","lat","lng","mapType","width","height","markerClusterer","enableNewStyle"],n=b3.el||b3.div,o=b3.markerClusterer,p=google.maps.MapTypeId[b3.mapType.toUpperCase()],q=new google.maps.LatLng(b3.lat,b3.lng),r=f2(b3.zoomControl,!0),s=b3.zoomControlOpt||{style:"DEFAULT",position:"TOP_LEFT"},t=s.style||"DEFAULT",u=s.position||"TOP_LEFT",v=f2(b3.panControl,!0),w=f2(b3.mapTypeControl,!0),x=f2(b3.scaleControl,!0),y=f2(b3.streetViewControl,!0),z=f2(z,!0),A={},B={zoom:this.zoom,center:q,mapTypeId:p},C={panControl:v,zoomControl:r,zoomControlOptions:{style:google.maps.ZoomControlStyle[t],position:google.maps.ControlPosition[u]},mapTypeControl:w,scaleControl:x,streetViewControl:y,overviewMapControl:z};if(typeof b3.el=="string"||typeof b3.div=="string"?n.indexOf("#")>-1?this.el=h(n,b3.context):this.el=g.apply(this,[n,b3.context]):this.el=n,this.el===void 0||this.el===null)throw"No element defined.";for(window.context_menu=window.context_menu||{},window.context_menu[j2.el.id]={},this.controls=[],this.overlays=[],this.layers=[],this.singleLayers={},this.markers=[],this.polylines=[],this.routes=[],this.polygons=[],this.infoWindow=null,this.overlay_el=null,this.zoom=b3.zoom,this.registered_events={},this.el.style.width=b3.width||this.el.scrollWidth||this.el.offsetWidth,this.el.style.height=b3.height||this.el.scrollHeight||this.el.offsetHeight,google.maps.visualRefresh=b3.enableNewStyle,e2=0;e2<m.length;e2++)delete b3[m[e2]];for(b3.disableDefaultUI!=1&&(B=a(B,C)),A=a(B,b3),e2=0;e2<k2.length;e2++)delete A[k2[e2]];for(e2=0;e2<l2.length;e2++)delete A[l2[e2]];this.map=new google.maps.Map(this.el,A),o&&(this.markerClusterer=o.apply(this,[this.map]));var D=function(a2,b4){var c3="",d3=window.context_menu[j2.el.id][a2];for(var e3 in d3)if(d3.hasOwnProperty(e3)){var f3=d3[e3];c3+='<li><a id="'+a2+"_"+e3+'" href="#">'+f3.title+"</a></li>"}if(h("gmaps_context_menu")){var g2=h("gmaps_context_menu");g2.innerHTML=c3;var e3,k3=g2.getElementsByTagName("a"),l3=k3.length;for(e3=0;e3<l3;e3++){var m2=k3[e3],n2=function(c4){c4.preventDefault(),d3[this.id.replace(a2+"_","")].action.apply(j2,[b4]),j2.hideContextMenu()};google.maps.event.clearListeners(m2,"click"),google.maps.event.addDomListenerOnce(m2,"click",n2,!1)}var o2=i.apply(this,[j2.el]),p2=o2[0]+b4.pixel.x-15,q2=o2[1]+b4.pixel.y-15;g2.style.left=p2+"px",g2.style.top=q2+"px"}};this.buildContextMenu=function(a2,b4){if(a2==="marker"){b4.pixel={};var c3=new google.maps.OverlayView;c3.setMap(j2.map),c3.draw=function(){var d4=c3.getProjection(),e3=b4.marker.getPosition();b4.pixel=d4.fromLatLngToContainerPixel(e3),D(a2,b4)}}else D(a2,b4);var d3=h("gmaps_context_menu");setTimeout(function(){d3.style.display="block"},0)},this.setContextMenu=function(a2){window.context_menu[j2.el.id][a2.control]={};var b4,d3=c2.createElement("ul");for(b4 in a2.options)if(a2.options.hasOwnProperty(b4)){var e3=a2.options[b4];window.context_menu[j2.el.id][a2.control][e3.name]={title:e3.title,action:e3.action}}d3.id="gmaps_context_menu",d3.style.display="none",d3.style.position="absolute",d3.style.minWidth="100px",d3.style.background="white",d3.style.listStyle="none",d3.style.padding="8px",d3.style.boxShadow="2px 2px 6px #ccc",h("gmaps_context_menu")||c2.body.appendChild(d3);var f3=h("gmaps_context_menu");google.maps.event.addDomListener(f3,"mouseout",function(a3){a3.relatedTarget&&this.contains(a3.relatedTarget)||window.setTimeout(function(){f3.style.display="none"},400)},!1)},this.hideContextMenu=function(){var a2=h("gmaps_context_menu");
53a2&&(a2.style.display="none")};var E=function(a2,c3){google.maps.event.addListener(a2,c3,function(a3){a3==null&&(a3=this),b3[c3].apply(this,[a3]),j2.hideContextMenu()})};google.maps.event.addListener(this.map,"zoom_changed",this.hideContextMenu);for(var F=0;F<k2.length;F++){var G=k2[F];G in b3&&E(this.map,G)}for(var F=0;F<l2.length;F++){var G=l2[F];G in b3&&E(this.map,G)}google.maps.event.addListener(this.map,"rightclick",function(a2){b3.rightclick&&b3.rightclick.apply(this,[a2]),window.context_menu[j2.el.id].map!=null&&j2.buildContextMenu("map",a2)}),this.refresh=function(){google.maps.event.trigger(this.map,"resize")},this.fitZoom=function(){var a2,b4=[],c3=this.markers.length;for(a2=0;a2<c3;a2++)typeof this.markers[a2].visible=="boolean"&&this.markers[a2].visible&&b4.push(this.markers[a2].getPosition());this.fitLatLngBounds(b4)},this.fitLatLngBounds=function(a2){var b4,c3=a2.length,d3=new google.maps.LatLngBounds;for(b4=0;b4<c3;b4++)d3.extend(a2[b4]);this.map.fitBounds(d3)},this.setCenter=function(a2,b4,c3){this.map.panTo(new google.maps.LatLng(a2,b4)),c3&&c3()},this.getElement=function(){return this.el},this.zoomIn=function(a2){a2=a2||1,this.zoom=this.map.getZoom()+a2,this.map.setZoom(this.zoom)},this.zoomOut=function(a2){a2=a2||1,this.zoom=this.map.getZoom()-a2,this.map.setZoom(this.zoom)};var H,I=[];for(H in this.map)typeof this.map[H]!="function"||this[H]||I.push(H);for(e2=0;e2<I.length;e2++)(function(a2,b4,c3){a2[c3]=function(){return b4[c3].apply(b4,arguments)}})(this,this.map,I[e2])};return d2})(this);j.prototype.createControl=function(a2){var b2=document.createElement("div");b2.style.cursor="pointer",a2.disableDefaultStyles!==!0&&(b2.style.fontFamily="Roboto, Arial, sans-serif",b2.style.fontSize="11px",b2.style.boxShadow="rgba(0, 0, 0, 0.298039) 0px 1px 4px -1px");for(var c2 in a2.style)b2.style[c2]=a2.style[c2];a2.id&&(b2.id=a2.id),a2.title&&(b2.title=a2.title),a2.classes&&(b2.className=a2.classes),a2.content&&(typeof a2.content=="string"?b2.innerHTML=a2.content:a2.content instanceof HTMLElement&&b2.appendChild(a2.content)),a2.position&&(b2.position=google.maps.ControlPosition[a2.position.toUpperCase()]);for(var d2 in a2.events)(function(b3,c3){google.maps.event.addDomListener(b3,c3,function(){a2.events[c3].apply(this,[this])})})(b2,d2);return b2.index=1,b2},j.prototype.addControl=function(a2){var b2=this.createControl(a2);return this.controls.push(b2),this.map.controls[b2.position].push(b2),b2},j.prototype.removeControl=function(a2){var b2,c2=null;for(b2=0;b2<this.controls.length;b2++)this.controls[b2]==a2&&(c2=this.controls[b2].position,this.controls.splice(b2,1));if(c2)for(b2=0;b2<this.map.controls.length;b2++){var d2=this.map.controls[a2.position];if(d2.getAt(b2)==a2){d2.removeAt(b2);break}}return a2},j.prototype.createMarker=function(b2){if(b2.lat==null&&b2.lng==null&&b2.position==null)throw"No latitude or longitude defined.";var c2=this,d2=b2.details,e2=b2.fences,f2=b2.outside,g2={position:new google.maps.LatLng(b2.lat,b2.lng),map:null},h2=a(g2,b2);delete h2.lat,delete h2.lng,delete h2.fences,delete h2.outside;var i2=new google.maps.Marker(h2);if(i2.fences=e2,b2.infoWindow){i2.infoWindow=new google.maps.InfoWindow(b2.infoWindow);for(var j2=["closeclick","content_changed","domready","position_changed","zindex_changed"],k2=0;k2<j2.length;k2++)(function(a2,c3){b2.infoWindow[c3]&&google.maps.event.addListener(a2,c3,function(a3){b2.infoWindow[c3].apply(this,[a3])})})(i2.infoWindow,j2[k2])}for(var l2=["animation_changed","clickable_changed","cursor_changed","draggable_changed","flat_changed","icon_changed","position_changed","shadow_changed","shape_changed","title_changed","visible_changed","zindex_changed"],m=["dblclick","drag","dragend","dragstart","mousedown","mouseout","mouseover","mouseup"],k2=0;k2<l2.length;k2++)(function(a2,c3){b2[c3]&&google.maps.event.addListener(a2,c3,function(){b2[c3].apply(this,[this])})})(i2,l2[k2]);for(var k2=0;k2<m.length;k2++)(function(a2,c3,d3){b2[d3]&&google.maps.event.addListener(c3,d3,function(c4){c4.pixel||(c4.pixel=a2.getProjection().fromLatLngToPoint(c4.latLng)),b2[d3].apply(this,[c4])})})(this.map,i2,m[k2]);return google.maps.event.addListener(i2,"click",function(){this.details=d2,b2.click&&b2.click.apply(this,[this]),i2.infoWindow&&(c2.hideInfoWindows(),i2.infoWindow.open(c2.map,i2))}),google.maps.event.addListener(i2,"rightclick",function(a2){a2.marker=this,b2.rightclick&&b2.rightclick.apply(this,[a2]),window.context_menu[c2.el.id].marker!=null&&c2.buildContextMenu("marker",a2)}),i2.fences&&google.maps.event.addListener(i2,"dragend",function(){c2.checkMarkerGeofence(i2,function(a2,b3){f2(a2,b3)})}),i2},j.prototype.addMarker=function(a2){var b2;if(a2.hasOwnProperty("gm_accessors_"))b2=a2;else{if(!(a2.hasOwnProperty("lat")&&a2.hasOwnProperty("lng")||a2.position))throw"No latitude or longitude defined.";b2=this.createMarker(a2)}return b2.setMap(this.map),this.markerClusterer&&this.markerClusterer.addMarker(b2),this.markers.push(b2),j.fire("marker_added",b2,this),b2},j.prototype.addMarkers=function(a2){for(var b2,c2=0;b2=a2[c2];c2++)this.addMarker(b2);return this.markers},j.prototype.hideInfoWindows=function(){for(var a2,b2=0;a2=this.markers[b2];b2++)a2.infoWindow&&a2.infoWindow.close()},j.prototype.removeMarker=function(a2){for(var b2=0;b2<this.markers.length;b2++)if(this.markers[b2]===a2){this.markers[b2].setMap(null),this.markers.splice(b2,1),this.markerClusterer&&this.markerClusterer.removeMarker(a2),j.fire("marker_removed",a2,this);break}return a2},j.prototype.removeMarkers=function(a2){var b2=[];if(a2===void 0){for(var c2=0;c2<this.markers.length;c2++){var d2=this.markers[c2];d2.setMap(null),j.fire("marker_removed",d2,this)}this.markerClusterer&&this.markerClusterer.clearMarkers&&this.markerClusterer.clearMarkers(),this.markers=b2}else{for(var c2=0;c2<a2.length;c2++){var e2=this.markers.indexOf(a2[c2]);if(e2>-1){var d2=this.markers[e2];d2.setMap(null),this.markerClusterer&&this.markerClusterer.removeMarker(d2),j.fire("marker_removed",d2,this)}}for(var c2=0;c2<this.markers.length;c2++){var d2=this.markers[c2];d2.getMap()!=null&&b2.push(d2)}this.markers=b2}},j.prototype.drawOverlay=function(a2){var b2=new google.maps.OverlayView,c2=!0;return b2.setMap(this.map),a2.auto_show!=null&&(c2=a2.auto_show),b2.onAdd=function(){var c3=document.createElement("div");c3.style.borderStyle="none",c3.style.borderWidth="0px",c3.style.position="absolute",c3.style.zIndex=100,c3.innerHTML=a2.content,b2.el=c3,a2.layer||(a2.layer="overlayLayer");var d2=this.getPanes(),e2=d2[a2.layer],f2=["contextmenu","DOMMouseScroll","dblclick","mousedown"];e2.appendChild(c3);for(var g2=0;g2<f2.length;g2++)(function(a3,b3){google.maps.event.addDomListener(a3,b3,function(a4){navigator.userAgent.toLowerCase().indexOf("msie")!=-1&&document.all?(a4.cancelBubble=!0,a4.returnValue=!1):a4.stopPropagation()})})(c3,f2[g2]);a2.click&&(d2.overlayMouseTarget.appendChild(b2.el),google.maps.event.addDomListener(b2.el,"click",function(){a2.click.apply(b2,[b2])})),google.maps.event.trigger(this,"ready")},b2.draw=function(){var d2=this.getProjection(),e2=d2.fromLatLngToDivPixel(new google.maps.LatLng(a2.lat,a2.lng));a2.horizontalOffset=a2.horizontalOffset||0,a2.verticalOffset=a2.verticalOffset||0;var f2=b2.el,g2=f2.children[0],h2=g2.clientHeight,i2=g2.clientWidth;switch(a2.verticalAlign){case"top":f2.style.top=e2.y-h2+a2.verticalOffset+"px";break;default:case"middle":f2.style.top=e2.y-h2/2+a2.verticalOffset+"px";break;case"bottom":f2.style.top=e2.y+a2.verticalOffset+"px"}switch(a2.horizontalAlign){case"left":f2.style.left=e2.x-i2+a2.horizontalOffset+"px";break;default:case"center":f2.style.left=e2.x-i2/2+a2.horizontalOffset+"px";break;case"right":f2.style.left=e2.x+a2.horizontalOffset+"px"}f2.style.display=c2?"block":"none",c2||a2.show.apply(this,[f2])},b2.onRemove=function(){var c3=b2.el;a2.remove?a2.remove.apply(this,[c3]):(b2.el.parentNode.removeChild(b2.el),b2.el=null)},this.overlays.push(b2),b2},j.prototype.removeOverlay=function(a2){for(var b2=0;b2<this.overlays.length;b2++)if(this.overlays[b2]===a2){this.overlays[b2].setMap(null),this.overlays.splice(b2,1);break}},j.prototype.removeOverlays=function(){for(var a2,b2=0;a2=this.overlays[b2];b2++)a2.setMap(null);this.overlays=[]},j.prototype.drawPolyline=function(a2){var b2=[],c2=a2.path;if(c2.length)if(c2[0][0]===void 0)b2=c2;else for(var d2,e2=0;d2=c2[e2];
vendor: 4,680 bytes, line 53
53e2++)b2.push(new google.maps.LatLng(d2[0],d2[1]));var f2={map:this.map,path:b2,strokeColor:a2.strokeColor,strokeOpacity:a2.strokeOpacity,strokeWeight:a2.strokeWeight,geodesic:a2.geodesic,clickable:!0,editable:!1,visible:!0};a2.hasOwnProperty("clickable")&&(f2.clickable=a2.clickable),a2.hasOwnProperty("editable")&&(f2.editable=a2.editable),a2.hasOwnProperty("icons")&&(f2.icons=a2.icons),a2.hasOwnProperty("zIndex")&&(f2.zIndex=a2.zIndex);for(var g2=new google.maps.Polyline(f2),h2=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],i2=0;i2<h2.length;i2++)(function(b3,c3){a2[c3]&&google.maps.event.addListener(b3,c3,function(b4){a2[c3].apply(this,[b4])})})(g2,h2[i2]);return this.polylines.push(g2),j.fire("polyline_added",g2,this),g2},j.prototype.removePolyline=function(a2){for(var b2=0;b2<this.polylines.length;b2++)if(this.polylines[b2]===a2){this.polylines[b2].setMap(null),this.polylines.splice(b2,1),j.fire("polyline_removed",a2,this);break}},j.prototype.removePolylines=function(){for(var a2,b2=0;a2=this.polylines[b2];b2++)a2.setMap(null);this.polylines=[]},j.prototype.drawCircle=function(b2){b2=a({map:this.map,center:new google.maps.LatLng(b2.lat,b2.lng)},b2),delete b2.lat,delete b2.lng;for(var c2=new google.maps.Circle(b2),d2=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],e2=0;e2<d2.length;e2++)(function(a2,c3){b2[c3]&&google.maps.event.addListener(a2,c3,function(a3){b2[c3].apply(this,[a3])})})(c2,d2[e2]);return this.polygons.push(c2),c2},j.prototype.drawRectangle=function(b2){b2=a({map:this.map},b2);var c2=new google.maps.LatLngBounds(new google.maps.LatLng(b2.bounds[0][0],b2.bounds[0][1]),new google.maps.LatLng(b2.bounds[1][0],b2.bounds[1][1]));b2.bounds=c2;for(var d2=new google.maps.Rectangle(b2),e2=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],f2=0;f2<e2.length;f2++)(function(a2,c3){b2[c3]&&google.maps.event.addListener(a2,c3,function(a3){b2[c3].apply(this,[a3])})})(d2,e2[f2]);return this.polygons.push(d2),d2},j.prototype.drawPolygon=function(d2){var e2=!1;d2.hasOwnProperty("useGeoJSON")&&(e2=d2.useGeoJSON),delete d2.useGeoJSON,d2=a({map:this.map},d2),e2==0&&(d2.paths=[d2.paths.slice(0)]),d2.paths.length>0&&d2.paths[0].length>0&&(d2.paths=c(b(d2.paths,f,e2)));for(var g2=new google.maps.Polygon(d2),h2=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],i2=0;i2<h2.length;i2++)(function(a2,b2){d2[b2]&&google.maps.event.addListener(a2,b2,function(a3){d2[b2].apply(this,[a3])})})(g2,h2[i2]);return this.polygons.push(g2),j.fire("polygon_added",g2,this),g2},j.prototype.removePolygon=function(a2){for(var b2=0;b2<this.polygons.length;b2++)if(this.polygons[b2]===a2){this.polygons[b2].setMap(null),this.polygons.splice(b2,1),j.fire("polygon_removed",a2,this);break}},j.prototype.removePolygons=function(){for(var a2,b2=0;a2=this.polygons[b2];b2++)a2.setMap(null);this.polygons=[]},j.prototype.getFromFusionTables=function(a2){var b2=a2.events;delete a2.events;var c2=a2,d2=new google.maps.FusionTablesLayer(c2);for(var e2 in b2)(function(a3,c3){google.maps.event.addListener(a3,c3,function(a4){b2[c3].apply(this,[a4])})})(d2,e2);return this.layers.push(d2),d2},j.prototype.loadFromFusionTables=function(a2){var b2=this.getFromFusionTables(a2);return b2.setMap(this.map),b2},j.prototype.getFromKML=function(a2){var b2=a2.url,c2=a2.events;delete a2.url,delete a2.events;var d2=a2,e2=new google.maps.KmlLayer(b2,d2);for(var f2 in c2)(function(a3,b3){google.maps.event.addListener(a3,b3,function(a4){c2[b3].apply(this,[a4])})})(e2,f2);return this.layers.push(e2),e2},j.prototype.loadFromKML=function(a2){var b2=this.getFromKML(a2);return b2.setMap(this.map),b2},j.prototype.addLayer=function(a2,b2){b2=b2||{};var c2;switch(a2){case"weather":this.singleLayers.weather=c2=new google.maps.weather.WeatherLayer;break;case"clouds":this.singleLayers.clouds=c2=new google.maps.weather.CloudLayer;break;case"traffic":this.singleLayers.traffic=c2=new google.maps.TrafficLayer;break;case"transit":this.singleLayers.transit=c2=new google.maps.TransitLayer;break;case"bicycling":this.singleLayers.bicycling=c2=new google.maps.BicyclingLayer;break;case"panoramio":this.singleLayers.panoramio=c2=new google.maps.panoramio.PanoramioLayer,c2.setTag(b2.filter),delete b2.filter,b2.click&&google.maps.event.addListener(c2,"click",function(a3){b2.click(a3),delete b2.click});break;case"places":if(this.singleLayers.places=c2=new google.maps.places.PlacesService(this.map),b2.search||b2.nearbySearch||b2.radarSearch){var d2={bounds:b2.bounds||null,keyword:b2.keyword||null,location:b2.location||null,
53name:b2.name||null,radius:b2.radius||null,rankBy:b2.rankBy||null,types:b2.types||null};b2.radarSearch&&c2.radarSearch(d2,b2.radarSearch),b2.search&&c2.search(d2,b2.search),b2.nearbySearch&&c2.nearbySearch(d2,b2.nearbySearch)}if(b2.textSearch){var e2={bounds:b2.bounds||null,location:b2.location||null,query:b2.query||null,radius:b2.radius||null};c2.textSearch(e2,b2.textSearch)}}if(c2!==void 0)return typeof c2.setOptions=="function"&&c2.setOptions(b2),typeof c2.setMap=="function"&&c2.setMap(this.map),c2},j.prototype.removeLayer=function(a2){if(typeof a2=="string"&&this.singleLayers[a2]!==void 0)this.singleLayers[a2].setMap(null),delete this.singleLayers[a2];else for(var b2=0;b2<this.layers.length;b2++)if(this.layers[b2]===a2){this.layers[b2].setMap(null),this.layers.splice(b2,1);break}};var k,l;return j.prototype.getRoutes=function(b2){switch(b2.travelMode){case"bicycling":k=google.maps.TravelMode.BICYCLING;break;case"transit":k=google.maps.TravelMode.TRANSIT;break;case"driving":k=google.maps.TravelMode.DRIVING;break;default:k=google.maps.TravelMode.WALKING}l=b2.unitSystem==="imperial"?google.maps.UnitSystem.IMPERIAL:google.maps.UnitSystem.METRIC;var c2={avoidHighways:!1,avoidTolls:!1,optimizeWaypoints:!1,waypoints:[]},d2=a(c2,b2);d2.origin=/string/.test(typeof b2.origin)?b2.origin:new google.maps.LatLng(b2.origin[0],b2.origin[1]),d2.destination=/string/.test(typeof b2.destination)?b2.destination:new google.maps.LatLng(b2.destination[0],b2.destination[1]),d2.travelMode=k,d2.unitSystem=l,delete d2.callback,delete d2.error;var e2=[];new google.maps.DirectionsService().route(d2,function(a2,c3){if(c3===google.maps.DirectionsStatus.OK){for(var d3 in a2.routes)a2.routes.hasOwnProperty(d3)&&e2.push(a2.routes[d3]);b2.callback&&b2.callback(e2,a2,c3)}else b2.error&&b2.error(a2,c3)})},j.prototype.removeRoutes=function(){this.routes.length=0},j.prototype.getElevations=function(d2){d2=a({locations:[],path:!1,samples:256},d2),d2.locations.length>0&&d2.locations[0].length>0&&(d2.locations=c(b([d2.locations],f,!1)));var e2=d2.callback;delete d2.callback;var g2=new google.maps.ElevationService;if(d2.path){var h2={path:d2.locations,samples:d2.samples};g2.getElevationAlongPath(h2,function(a2,b2){e2&&typeof e2=="function"&&e2(a2,b2)})}else delete d2.path,delete d2.samples,g2.getElevationForLocations(d2,function(a2,b2){e2&&typeof e2=="function"&&e2(a2,b2)})},j.prototype.cleanRoute=j.prototype.removePolylines,j.prototype.renderRoute=function(b2,c2){var d2,e2=typeof c2.panel=="string"?document.getElementById(c2.panel.replace("#","")):c2.panel;c2.panel=e2,c2=a({map:this.map},c2),d2=new google.maps.DirectionsRenderer(c2),this.getRoutes({origin:b2.origin,destination:b2.destination,travelMode:b2.travelMode,waypoints:b2.waypoints,unitSystem:b2.unitSystem,error:b2.error,avoidHighways:b2.avoidHighways,avoidTolls:b2.avoidTolls,optimizeWaypoints:b2.optimizeWaypoints,callback:function(a2,b3,c3){c3===google.maps.DirectionsStatus.OK&&d2.setDirections(b3)}})},j.prototype.drawRoute=function(a2){var b2=this;this.getRoutes({origin:a2.origin,destination:a2.destination,travelMode:a2.travelMode,waypoints:a2.waypoints,unitSystem:a2.unitSystem,error:a2.error,avoidHighways:a2.avoidHighways,avoidTolls:a2.avoidTolls,optimizeWaypoints:a2.optimizeWaypoints,callback:function(c2){if(c2.length>0){var d2={path:c2[c2.length-1].overview_path,strokeColor:a2.strokeColor,strokeOpacity:a2.strokeOpacity,strokeWeight:a2.strokeWeight};a2.hasOwnProperty("icons")&&(d2.icons=a2.icons),b2.drawPolyline(d2),a2.callback&&a2.callback(c2[c2.length-1])}}})},j.prototype.travelRoute=function(a2){if(a2.origin&&a2.destination)this.getRoutes({origin:a2.origin,destination:a2.destination,travelMode:a2.travelMode,waypoints:a2.waypoints,unitSystem:a2.unitSystem,error:a2.error,callback:function(b3){if(b3.length>0&&a2.start&&a2.start(b3[b3.length-1]),b3.length>0&&a2.step){var c3=b3[b3.length-1];if(c3.legs.length>0)for(var d3,e2=c3.legs[0].steps,f2=0;d3=e2[f2];f2++)d3.step_number=f2,a2.step(d3,c3.legs[0].steps.length-1)}b3.length>0&&a2.end&&a2.end(b3[b3.length-1])}});else if(a2.route&&a2.route.legs.length>0)for(var b2,c2=a2.route.legs[0].steps,d2=0;b2=c2[d2];d2++)b2.step_number=d2,a2.step(b2)},j.prototype.drawSteppedRoute=function(a2){var b2=this;if(a2.origin&&a2.destination)this.getRoutes({origin:a2.origin,destination:a2.destination,travelMode:a2.travelMode,waypoints:a2.waypoints,error:a2.error,callback:function(c3){if(c3.length>0&&a2.start&&a2.start(c3[c3.length-1]),c3.length>0&&a2.step){var d3=c3[c3.length-1];if(d3.legs.length>0)for(var e3,f3=d3.legs[0].steps,g2=0;e3=f3[g2];g2++){e3.step_number=g2;var h2={path:e3.path,strokeColor:a2.strokeColor,strokeOpacity:a2.strokeOpacity,strokeWeight:a2.strokeWeight};a2.hasOwnProperty("icons")&&(h2.icons=a2.icons),b2.drawPolyline(h2),a2.step(e3,d3.legs[0].steps.length-1)}}c3.length>0&&a2.end&&a2.end(c3[c3.length-1])}});else if(a2.route&&a2.route.legs.length>0)for(var c2,d2=a2.route.legs[0].steps,e2=0;c2=d2[e2];e2++){c2.step_number=e2;var f2={path:c2.path,strokeColor:a2.strokeColor,strokeOpacity:a2.strokeOpacity,strokeWeight:a2.strokeWeight};a2.hasOwnProperty("icons")&&(f2.icons=a2.icons),b2.drawPolyline(f2),a2.step(c2)}},j.Route=function(a2){this.origin=a2.origin,this.destination=a2.destination,this.waypoints=a2.waypoints,this.map=a2.map,this.route=a2.route,this.step_count=0,this.steps=this.route.legs[0].steps,this.steps_length=this.steps.length;var b2={path:new google.maps.MVCArray,strokeColor:a2.strokeColor,strokeOpacity:a2.strokeOpacity,strokeWeight:a2.strokeWeight};a2.hasOwnProperty("icons")&&(b2.icons=a2.icons),this.polyline=this.map.drawPolyline(b2).getPath()},j.Route.prototype.getRoute=function(a2){var b2=this;this.map.getRoutes({origin:this.origin,destination:this.destination,travelMode:a2.travelMode,waypoints:this.waypoints||[],error:a2.error,callback:function(){b2.route=e[0],a2.callback&&a2.callback.call(b2)}})},j.Route.prototype.back=function(){if(this.step_count>0){this.step_count--;var a2=this.route.legs[0].steps[this.step_count].path;for(var b2 in a2)a2.hasOwnProperty(b2)&&this.polyline.pop()}},j.Route.prototype.forward=function(){if(this.step_count<this.steps_length){var a2=this.route.legs[0].steps[this.step_count].path;for(var b2 in a2)a2.hasOwnProperty(b2)&&this.polyline.push(a2[b2]);this.step_count++}},j.prototype.checkGeofence=function(a2,b2,c2){return c2.containsLatLng(new google.maps.LatLng(a2,b2))},j.prototype.checkMarkerGeofence=function(a2,b2){if(a2.fences)for(var c2,d2=0;c2=a2.fences[d2];d2++){var e2=a2.getPosition();this.checkGeofence(e2.lat(),e2.lng(),c2)||b2(a2,c2)}},j.prototype.toImage=function(a2){var a2=a2||{},b2={};if(b2.size=a2.size||[this.el.clientWidth,this.el.clientHeight],b2.lat=this.getCenter().lat(),b2.lng=this.getCenter().lng(),this.markers.length>0){b2.markers=[];for(var c2=0;c2<this.markers.length;c2++)b2.markers.push({lat:this.markers[c2].getPosition().lat(),lng:this.markers[c2].getPosition().lng()})}if(this.polylines.length>0){var d2=this.polylines[0];b2.polyline={},b2.polyline.path=google.maps.geometry.encoding.encodePath(d2.getPath()),b2.polyline.strokeColor=d2.strokeColor,b2.polyline.strokeOpacity=d2.strokeOpacity,b2.polyline.strokeWeight=d2.strokeWeight}return j.staticMapURL(b2)},j.staticMapURL=function(a2){function b2(a3,b3){if(a3[0]==="#"&&(a3=a3.replace("#","0x"),b3)){if(b3=parseFloat(b3),(b3=Math.min(1,Math.max(b3,0)))===0)return"0x00000000";b3=(255*b3).toString(16),b3.length===1&&(b3+=b3),a3=a3.slice(0,8)+b3}return a3}var c2,d2=[],e2=(location.protocol==="file:"?"http:":location.protocol)+"//maps.googleapis.com/ma
53ps/api/staticmap";a2.url&&(e2=a2.url,delete a2.url),e2+="?";var f2=a2.markers;delete a2.markers,!f2&&a2.marker&&(f2=[a2.marker],delete a2.marker);var g2=a2.styles;delete a2.styles;var h2=a2.polyline;if(delete a2.polyline,a2.center)d2.push("center="+a2.center),delete a2.center;else if(a2.address)d2.push("center="+a2.address),delete a2.address;else if(a2.lat)d2.push(["center=",a2.lat,",",a2.lng].join("")),delete a2.lat,delete a2.lng;else if(a2.visible){var i2=encodeURI(a2.visible.join("|"));d2.push("visible="+i2)}var j2=a2.size;j2?(j2.join&&(j2=j2.join("x")),delete a2.size):j2="630x300",d2.push("size="+j2),a2.zoom||a2.zoom===!1||(a2.zoom=15);var k2=!a2.hasOwnProperty("sensor")||!!a2.sensor;delete a2.sensor,d2.push("sensor="+k2);for(var l2 in a2)a2.hasOwnProperty(l2)&&d2.push(l2+"="+a2[l2]);if(f2)for(var m,n,o=0;c2=f2[o];o++){m=[],c2.size&&c2.size!=="normal"?(m.push("size:"+c2.size),delete c2.size):c2.icon&&(m.push("icon:"+encodeURI(c2.icon)),delete c2.icon),c2.color&&(m.push("color:"+c2.color.replace("#","0x")),delete c2.color),c2.label&&(m.push("label:"+c2.label[0].toUpperCase()),delete c2.label),n=c2.address?c2.address:c2.lat+","+c2.lng,delete c2.address,delete c2.lat,delete c2.lng;for(var l2 in c2)c2.hasOwnProperty(l2)&&m.push(l2+":"+c2[l2]);m.length||o===0?(m.push(n),m=m.join("|"),d2.push("markers="+encodeURI(m))):(m=d2.pop()+encodeURI("|"+n),d2.push(m))}if(g2)for(var o=0;o<g2.length;o++){var p=[];g2[o].featureType&&p.push("feature:"+g2[o].featureType.toLowerCase()),g2[o].elementType&&p.push("element:"+g2[o].elementType.toLowerCase());for(var q=0;q<g2[o].stylers.length;q++)for(var r in g2[o].stylers[q]){var s=g2[o].stylers[q][r];r!="hue"&&r!="color"||(s="0x"+s.substring(1)),p.push(r+":"+s)}var t=p.join("|");t!=""&&d2.push("style="+t)}if(h2){if(c2=h2,h2=[],c2.strokeWeight&&h2.push("weight:"+parseInt(c2.strokeWeight,10)),c2.strokeColor){var u=b2(c2.strokeColor,c2.strokeOpacity);h2.push("color:"+u)}if(c2.fillColor){var v=b2(c2.fillColor,c2.fillOpacity);h2.push("fillcolor:"+v)}var w=c2.path;if(w.join)for(var x,q=0;x=w[q];q++)h2.push(x.join(","));else h2.push("enc:"+w);h2=h2.join("|"),d2.push("path="+encodeURI(h2))}var y=window.devicePixelRatio||1;return d2.push("scale="+y),d2=d2.join("&"),e2+d2},j.prototype.addMapType=function(a2,b2){if(!b2.hasOwnProperty("getTileUrl")||typeof b2.getTileUrl!="function")throw"'getTileUrl' function required.";b2.tileSize=b2.tileSize||new google.maps.Size(256,256);var c2=new google.maps.ImageMapType(b2);this.map.mapTypes.set(a2,c2)},j.prototype.addOverlayMapType=function(a2){if(!a2.hasOwnProperty("getTile")||typeof a2.getTile!="function")throw"'getTile' function required.";var b2=a2.index;delete a2.index,this.map.overlayMapTypes.insertAt(b2,a2)},j.prototype.removeOverlayMapType=function(a2){this.map.overlayMapTypes.removeAt(a2)},j.prototype.addStyle=function(a2){var b2=new google.maps.StyledMapType(a2.styles,{name:a2.styledMapName});this.map.mapTypes.set(a2.mapTypeId,b2)},j.prototype.setStyle=function(a2){this.map.setMapTypeId(a2)},j.prototype.createPanorama=function(a2){return a2.hasOwnProperty("lat")&&a2.hasOwnProperty("lng")||(a2.lat=this.getCenter().lat(),a2.lng=this.getCenter().lng()),this.panorama=j.createPanorama(a2),this.map.setStreetView(this.panorama),this.panorama},j.createPanorama=function(b2){var c2=h(b2.el,b2.context);b2.position=new google.maps.LatLng(b2.lat,b2.lng),delete b2.el,delete b2.context,delete b2.lat,delete b2.lng;for(var d2=["closeclick","links_changed","pano_changed","position_changed","pov_changed","resize","visible_changed"],e2=a({visible:!0},b2),f2=0;f2<d2.length;f2++)delete e2[d2[f2]];for(var g2=new google.maps.StreetViewPanorama(c2,e2),f2=0;f2<d2.length;f2++)(function(a2,c3){b2[c3]&&google.maps.event.addListener(a2,c3,function(){b2[c3].apply(this)})})(g2,d2[f2]);return g2},j.prototype.on=function(a2,b2){return j.on(a2,this,b2)},j.prototype.off=function(a2){j.off(a2,this)},j.prototype.once=function(a2,b2){return j.once(a2,this,b2)},j.custom_events=["marker_added","marker_removed","polyline_added","polyline_removed","polygon_added","polygon_removed","geolocated","geolocation_failed"],j.on=function(a2,b2,c2){if(j.custom_events.indexOf(a2)==-1)return b2 instanceof j&&(b2=b2.map),google.maps.event.addListener(b2,a2,c2);var d2={handler:c2,eventName:a2};return b2.registered_events[a2]=b2.registered_events[a2]||[],b2.registered_events[a2].push(d2),d2},j.off=function(a2,b2){j.custom_events.indexOf(a2)==-1?(b2 instanceof j&&(b2=b2.map),google.maps.event.clearListeners(b2,a2)):b2.registered_events[a2]=[]},j.once=function(a2,b2,c2){if(j.custom_events.indexOf(a2)==-1)return b2 instanceof j&&(b2=b2.map),google.maps.event.addListenerOnce(b2,a2,c2)},j.fire=function(a2,b2,c2){if(j.custom_events.indexOf(a2)==-1)google.maps.event.trigger(b2,a2,Array.prototype.slice.apply(arguments).slice(2));else if(a2 in c2.registered_events)for(var d2=c2.registered_events[a2],e2=0;e2<d2.length;e2++)(function(a3,b3,c3){a3.apply(b3,[c3])})(d2[e2].handler,c2,b2)},j.geolocate=function(a2){var b2=a2.always||a2.complete;navigator.geolocation?navigator.geolocation.getCurrentPosition(function(c2){a2.success(c2),b2&&b2()},function(c2){a2.error(c2),b2&&b2()},a2.options):(a2.not_supported(),b2&&b2())},j.geocode=function(a2){this.geocoder=new google.maps.Geocoder;var b2=a2.callback;a2.hasOwnProperty("lat")&&a2.hasOwnProperty("lng")&&(a2.latLng=new google.maps.LatLng(a2.lat,a2.lng)),delete a2.lat,delete a2.lng,delete a2.callback,this.geocoder.geocode(a2,function(a3,c2){b2(a3,c2)})},typeof window.google=="object"&&window.google.maps&&(google.maps.Polygon.prototype.getBounds||(google.maps.Polygon.prototype.getBounds=function(a2){for(var b2,c2=new google.maps.LatLngBounds,d2=this.getPaths(),e2=0;e2<d2.getLength();e2++){b2=d2.getAt(e2);for(var f2=0;f2<b2.getLength();f2++)c2.extend(b2.getAt(f2))}return c2}),google.maps.Polygon.prototype.containsLatLng||(google.maps.Polygon.prototype.containsLatLng=function(a2){var b2=this.getBounds();if(b2!==null&&!b2.contains(a2))return!1;for(var c2=!1,d2=this.getPaths().getLength(),e2=0;e2<d2;e2++)for(var f2=this.getPaths().getAt(e2),g2=f2.getLength(),h2=g2-1,i2=0;i2<g2;i2++){var j2=f2.getAt(i2),k2=f2.getAt(h2);(j2.lng()<a2.lng()&&k2.lng()>=a2.lng()||k2.lng()<a2.lng()&&j2.lng()>=a2.lng())&&j2.lat()+(a2.lng()-j2.lng())/(k2.lng()-j2.lng())*(k2.lat()-j2.lat())<a2.lat()&&(c2=!c2),h2=i2}return c2}),google.maps.Circle.prototype.containsLatLng||(google.maps.Circle.prototype.containsLatLng=function(a2){return!google.maps.geometry||google.maps.geometry.spherical.computeDistanceBetween(this.getCenter(),a2)<=this.getRadius()}),google.maps.Rectangle.prototype.containsLatLng=function(a2){return this.getBounds().contains(a2)},google.maps.LatLngBounds.prototype.containsLatLng=function(a2){return this.contains(a2)},google.maps.Marker.prototype.setFences=function(a2){this.fences=a2},google.maps.Marker.prototype.addFence=function(a2){this.fences.push(a2)},google.maps.Marker.prototype.getId=function(){return this.__gm_id}),Array.prototype.indexOf||(Array.prototype.indexOf=function(a2){if(this==null)throw new TypeError;var b2=Object(this),c2=b2.length>>>0;if(c2===0)return-1;var d2=0;if(arguments.length>1&&(d2=Number(arguments[1]),d2!=d2?d2=0:d2!=0&&d2!=1/0&&d2!=-1/0&&(d2=(d2>0||-1)*Math.floor(Math.abs(d2)))),d2>=c2)return-1;for(var e2=d2>=0?d2:Math.max(c2-Math.abs(d2),0);e2<c2;e2++)if(e2 in b2&&b2[e2]===a2)return e2;return-1}),j});/*! 54 Zoom 1.7.20 55 license: MIT 56 http://www.jacklmoore.com/zoom 57*/(function(o){var t={url:!1,callback:!1,target:!1,duration:120,on:"mouseover",touch:!0,onZoomIn:!1,onZoomOut:!1,magnify:1};o.zoom=function(t2,n,e2,i){var u,c,r,a,m,l,s,f=o(t2),h=f.css("position"),d=o(n);return t2.style.position=/(absolute|fixed)/.test(h)?h:"relative",t2.style.overflow="hidden",e2.style.width=e2.style.height="",o(e2).addClass("zoomImg").css({position:"absolute",top:0,left:0,opacity:0,width:e2.width*i,height:e2.height*i,border:"none",maxWidth:"none",maxHeight:"none"}).appendTo(t2),{init:function(){c=f.outerWidth(),u=f.outerHeight(),n===t2?(a=c,r=u):(a=d.outerWidth(),r=d.outerHeight()),m=(e2.width-c)/a,l=(e2.height-u)/r,s=d.offset()},move:function(o2){var t3=o2.pageX-s.left,n2=o2.pageY-s.top;n2=Math.max(Math.min(n2,r),0),t3=Math.max(Math.min(t3,a),0),e2.style.left=t3*-m+"px",e2.style.top=n2*-l+"px"}}},o.fn.zoom=function(n){return this.each(function(){var e2=o.extend({},t,n||{}),i=e2.target&&o(e2.target)[0]||this,u=this,c=o(u),r=document.createElement("img"),a=o(r),m="mousemove.zoom",l=!1,s=!1;if(!e2.url){var f=u.querySelector("img");if(f&&(e2.url=f.getAttribute("data-src")||f.currentSrc||f.src),!e2.url)return}c.one("zoom.destroy",function(o2,t2){c.off(".zoom"),i.style.position=o2,i.style.overflow=t2,r.onload=null,a.remove()}.bind(this,i.style.position,i.style.overflow)),r.onload=function(){function t2(t3){f2.init(),f2.move(t3),a.stop().fadeTo(o.support.opacity?e2.duration:0,1,o.isFunction(e2.onZoomIn)?e2.onZoomIn.call(r):!1)}function n2(){a.stop().fadeTo(e2.duration,0,o.isFunction(e2.onZoomOut)?e2.onZoomOut.call(r):!1)}var f2=o.zoom(i,u,r,e2.magnify);e2.on==="grab"?c.on("mousedown.zoom",function(e3){e3.which===1&&(o(document).one("mouseup.zoom",function(){n2(),o(document).off(m,f2.move)}),t2(e3),o(document).on(m,f2.move),e3.preventDefault())}):e2.on==="click"?c.on("click.zoom",function(e3){return l?void 0:(l=!0,t2(e3),o(document).on(m,f2.move),o(document).one("click.zoom",function(){n2(),l=!1,o(document).off(m,f2.move)}),!1)}):e2.on==="toggle"?c.on("click.zoom",function(o2){l?n2():t2(o2),l=!l}):e2.on==="mouseover"&&(f2.init(),c.on("mouseenter.zoom",t2).on("mouseleave.zoom",n2).on(m,f2.move)),e2.touch&&c.on("touchstart.zoom",function(o2){o2.preventDefault(),s?(s=!1,n2
57()):(s=!0,t2(o2.originalEvent.touches[0]||o2.originalEvent.changedTouches[0]))}).on("touchmove.zoom",function(o2){o2.preventDefault(),f2.move(o2.originalEvent.touches[0]||o2.originalEvent.changedTouches[0])}).on("touchend.zoom",function(o2){o2.preventDefault(),s&&(s=!1,n2())}),o.isFunction(e2.callback)&&e2.callback.call(r)},r.setAttribute("role","presentation"),r.src=e2.url})},o.fn.zoom.defaults=t})(window.jQuery);/*! 58 Truncate 59 license: MIT 60 https://github.com/pathable/truncate 61*/(function($2){var chop=/(\s*\S+|\s)$/,start=/^(\S*)/;$2.truncate=function(html,options){return $2("<div></div>").append(html).truncate(options).html()},$2.fn.truncate=function(options){$2.isNumeric(options)&&(options={length:options});var o=$2.extend({},$2.truncate.defaults,options);return this.each(function(){var self2=$2(this);o.noBreaks&&self2.find("br").replaceWith(" ");var text=self2.text(),excess=text.length-o.length;if(o.stripTags&&self2.text(text),o.words&&excess>0){var truncated=text.slice(0,o.length).replace(chop,"").length;o.keepFirstWord&&truncated===0?excess=text.length-start.exec(text)[0].length-1:excess=text.length-truncated-1}excess<0||!excess&&!o.truncated||$2.each(self2.contents().get().reverse(),function(i,el){var $el=$2(el),text2=$el.text(),length=text2.length;if(length<=excess){o.truncated=!0,excess-=length,$el.remove();return}return el.nodeType===3?(o.finishBlock?$2(el.splitText(length)).replaceWith(o.ellipsis):$2(el.splitText(length-excess-1)).replaceWith(o.ellipsis),!1):($el.truncate($2.extend(o,{length:length-excess})),!1)})})},$2.truncate.defaults={stripTags:!1,words:!1,keepFirstWord:!1,noBreaks:!1,finishBlock:!1,length:1/0,ellipsis:"\u2026"}})(jQuery),window.isLTie9=$("html").hasClass("lt-ie9"),window.is_ie=/MSIE|Trident/i.test(navigator.userAgent),window.is_iphone=/iPhone|iPod/i.test(navigator.userAgent),window.is_ios=/iPad|iPhone|iPod/.test(navigator.userAgent),window.isTouchDevice="ontouchstart"in document.documentElement,PaloAlto.Sections=function(){this.constructors={},this.instances=[],$(document).on("shopify:section:load",this._onSectionLoad.bind(this)).on("shopify:section:unload",this._onSectionUnload.bind(this)).on("shopify:section:select",this._onSelect.bind(this)).on("shopify:section:deselect",this._onDeselect.bind(this)).on("shopify:block:select",this._onBlockSelect.bind(this)).on("shopify:block:deselect",this._onBlockDeselect.bind(this))},PaloAlto.Sections.prototype=_.assignIn({},PaloAlto.Sections.prototype,{_createInstance:function(container,constructor){var $container=$(container),id=$container.attr("data-section-id"),type=$container.attr("data-section-type");if(constructor=constructor||this.constructors[type],!_.isUndefined(constructor)){var instance=_.assignIn(new constructor(container),{id,type,container});this.instances.push(instance)}},_onSectionLoad:function(evt){var container=$("[data-section-id]",evt.target)[0];container&&this._createInstance(container)},_onSectionUnload:function(evt){this.instances=_.filter(this.instances,function(instance){var isEventInstance=instance.id===evt.detail.sectionId;return isEventInstance&&_.isFunction(instance.onUnload)&&instance.onUnload(evt),!isEventInstance})},_onSelect:function(evt){var instance=_.find(this.instances,function(instance2){return instance2.id===evt.detail.sectionId});!_.isUndefined(instance)&&_.isFunction(instance.onSelect)&&instance.onSelect(evt)},_onDeselect:function(evt){var instance=_.find(this.instances,function(instance2){return instance2.id===evt.detail.sectionId});!_.isUndefined(instance)&&_.isFunction(instance.onDeselect)&&instance.onDeselect(evt)},_onBlockSelect:function(evt){var instance=_.find(this.instances,function(instance2){return instance2.id===evt.detail.sectionId});!_.isUndefined(instance)&&_.isFunction(instance.onBlockSelect)&&instance.onBlockSelect(evt)},_onBlockDeselect:function(evt){var instance=_.find(this.instances,function(instance2){return instance2.id===evt.detail.sectionId});!_.isUndefined(instance)&&_.isFunction(instance.onBlockDeselect)&&instance.onBlockDeselect(evt)},register:function(type,constructor){this.constructors[type]=constructor,$("[data-section-type="+type+"]").each(function(index,container){this._createInstance(container,constructor)}.bind(this))}}),PaloAlto.init=function(){$(".block-body").hide(),smoothScroll.init(),PaloAlto.initIE(),PaloAlto.initProductGrid()},PaloAlto.initIE=function(){window.is_ie||$("html").addClass("not-ie"),window.isLTie9=$("html").hasClass("lt-ie9"),(navigator.userAgent.indexOf("MSIE ")>0||navigator.userAgent.match(/Trident.*rv\:11\./))&&$("html").addClass("ie")},PaloAlto.initListeners=function(){$(document).off("keydown","body").off("ajaxCart.afterCartLoad").off("
61change",".template-cart .js-qty input").off("click",".template-cart .cart__remove"),$(document).on("keydown","body",function(e2){e2.which==9&&$("body").removeClass("no-outlines").one("mousedown",function(){$(this).addClass("no-outlines")})}).on("ajaxCart.afterCartLoad",function(evt,cart){var isDrawerOpen=$("body").hasClass("js-drawer-open");isDrawerOpen||timber.RightDrawer.open()}).on("change",".template-cart .js-qty input",function(e2){var $this=$(this),$form=$("form.cart");$this.prop("disabled",!0).parents(".js-qty").end().siblings().prop("disabled",!0),$form.addClass("is-loading");var $cart=$(".cart"),qty=$this.val(),id=$this.attr("id"),product_id=id.substring(parseInt(id.indexOf("_")+1)),line=parseInt($this.closest(".cart__row").index()+1),moneyFormat=window.monies;$.ajax({type:"post",url:"/cart/change.js",dataType:"json",data:{quantity:qty,line},success:function(data){var $cartItems=$cart.find(".cart__items"),updatedItems="",hasNewItems=!1;data.items.length!=$cartItems.find(".cart__row").length&&(hasNewItems=!0);for(var i=0;i<data.items.length;i++){var currentItem=data.items[i],discountsArray=data.items[i].discounts,discounts="",price="",unitPrice="",totalPrice="",image=currentItem.image!=null?currentItem.image.replace(/(\.[^.]*)$/,"_large$1").replace("http:",""):"//cdn.shopify.com/s/assets/admin/no-image-medium-cc9732cb976dd349a0df1d39816fbcc7.gif";if(discountsArray.length){discounts+='<div class="cart__row-discounts">';for(var j=0;j<discountsArray.length;j++)discounts+="<p>"+discountsArray[j].title+" (-"+Shopify.formatMoney(discountsArray[j].amount,moneyFormat)+")</p>";discounts+="</div>"}if(currentItem.unit_price_measurement&&(unitPrice=Shopify.formatMoney(currentItem.unit_price,moneyFormat)+" ",currentItem.unit_price_measurement.reference_value!=1&&(unitPrice+=currentItem.unit_price_measurement.reference_value),unitPrice+=currentItem.unit_price_measurement.reference_unit),price+='<span class="price">',currentItem.original_price>currentItem.final_price&&(price+="<s>"+Shopify.formatMoney(currentItem.original_price,moneyFormat)+"</s> "),price+=Shopify.formatMoney(currentItem.final_price,moneyFormat),price+="</span>",unitPrice&&(price+='<span class="unit-price">'+unitPrice+"</span>"),totalPrice+='<span class="price price--total">',currentItem.original_line_price>currentItem.final_line_price&&(totalPrice+="<s>"+Shopify.formatMoney(currentItem.original_line_price,moneyFormat)+"</s> "),totalPrice+=Shopify.formatMoney(currentItem.final_line_price,moneyFormat),totalPrice+="</span>"+discounts,hasNewItems)updatedItems+='<tr class="cart__row table__section" data-variant-id="'+currentItem.variant_id+'" data-total-price="'+currentItem.final_line_price+'"> <td> <a href="/cart/change?line='+i+'&quantity=0" class="cart__remove"> <i class="custom-icon-x"></i> </a> </td> <td data-label="Product" class="product-name-label"> <a href="'+currentItem.url+'" class="cart__image"> <img width="240" class="lazyload fade-in" data-srcset="'+image+'" alt="'+escape(currentItem.title)+'"> <span class="loader"></span> </a> </td> <td> <a href="'+currentItem.url+'" class="size--18">'+currentItem.title+'</a> </td> <td data-label="Price" class="text-center">'+price+'</td> <td data-label="Quantity"> <div class="js-qty"> <button type="button" class="js-qty__adjust js-qty__adjust--minus icon-fallback-text" data-id="updates_'+currentItem.id+'" data-qty="'+parseInt(currentItem.quantity-1)+'"> <span class="icon icon-minus" aria-hidden="true"></span>
61 <span class="fallback-text">\u2212</span> </button> <input type="text" class="js-qty__num" value="'+currentItem.quantity+'" min="1" data-id="updates_'+currentItem.id+'" aria-label="quantity" pattern="[0-9]*" name="updates[]" id="updates_'+currentItem.id+'"> <button type="button" class="js-qty__adjust js-qty__adjust--plus icon-fallback-text" data-id="updates_'+currentItem.id+'" data-qty="'+parseInt(currentItem.quantity+1)+'"> <span class="icon icon-plus" aria-hidden="true"></span> <span class="fallback-text">+</span> </button> </div> </td> <td data-label="Total" class="text-right">'+totalPrice+"</td> </tr>",$cartItems.empty().append(updatedItems);else{var $currentRow=$(".cart__row").eq(i);$currentRow.find('[data-label="Quantity"]').find(".js-qty__num").val(currentItem.quantity),$currentRow.find('[data-label="Price"]').empty().append(price),$currentRow.find('[data-label="Total"]').empty().append(totalPrice)}for(var totalDiscount="",cartDiscounts=data.cart_level_discount_applications,j=0;j<cartDiscounts.length;j++)totalDiscount+="<span>"+cartDiscounts[j].title+"</span><span>-"+Shopify.formatMoney(cartDiscounts[j].total_allocated_amount,moneyFormat)+"</span>";$cart.find(".cart__discounts").empty().append(totalDiscount),$cart.find(".cart__subtotal-price").empty().append(Shopify.formatMoney(data.total_price,moneyFormat)),updateCartTotal(),typeof Currency<"u"&&typeof Currency.convertAll<"u"&&Currency&&Currency.convertAll(shopCurrency,$("[name=currencies]").val()),$this.prop("disabled",!1).parents(".js-qty").end().siblings().prop("disabled",!1),$form.removeClass("is-loading")}},error:function(){$this.prop("disabled",!1).parents(".js-qty").end().siblings().prop("disabled",!1),$form.removeClass("is-loading")}}),qty==0&&$(this).closest(".cart__row").fadeOut(function(){$(this).remove(),updateCartTotal()});function updateCartTotal(){$.getJSON("/cart.js",function(cart){$("#CartCount").html(cart.item_count)})}}).on("click",".template-cart .cart__remove",function(e2){e2.preventDefault(),$(this).closest(".cart__row").find(".js-qty__num").prop("value",0).change()})},PaloAlto.fitNav=function(){var $window=$(window),$body=$("body"),$header=$(".site-header"),$siteNav=$(".site-nav"),$page=$("#PageContainer");controlNav(),dropdownFix(),$window.on("load",controlNav).on("resize",PaloAlto.debounce(controlNav,20)).on("resize",PaloAlto.debounce(dropdownFix,20));function controlNav(){$siteNav.removeClass("site-nav--compress"),$header.removeClass("site-header--force-nav-right");var navWidth=$siteNav.parent().outerWidth()-20,navWidthCentered=0,navItemWidth=0;$header.data("nav-position")=="center"&&(navWidthCentered=$header.find(".wrapper").width()-$(".site-header__logo").outerWidth()*2-20),$siteNav.find("> li").each(function(){var $el=$(this);$el.hasClass("site-nav--compress__menu")||(navItemWidth+=Math.ceil($(this).width()))}),navItemWidth>navWidthCentered?$header.addClass("site-header--force-nav-right"):$header.removeClass("site-header--force-nav-right"),navItemWidth>navWidth?$siteNav.addClass("site-nav--compress"):$siteNav.removeClass("site-nav--compress")}function dropdownFix(){$header.find(".site-nav--has-dropdown").each(function(){var $el=$(this),$dropdownMenu=$el.find(".site-nav__dropdown"),$dropdownSubmenu=$dropdownMenu.find(".sub-sub-links"),elementOffset=$el.offset().left,dropdownMenuWidth=$dropdownMenu.outerWidth(),dropdownSubMenuWidth=$dropdownSubmenu.length?$dropdownSubmenu.outerWidth():0,windowWidth=$(window).width();parseInt(elementOffset+dropdownMenuWidth+dropdownSubMenuWidth)>windowWidth&&$dropdownMenu.addClass("site-nav__dropdown--right")})}},PaloAlto.NavSearch={init:function(){var self2=this,doc=this.doc=$(document),html=this.html=$("html"),body=this.body=$("body"),header=this.header=$(".site-header"),searchOpen=this.searchOpen=$(".nav-search__open"),searchClose=this.searchClose=$(".
61nav-search__close"),searchPopup=this.searchPopup=$(".nav-search"),searchForm=this.searchForm=$(".nav-search .search-form"),searchContainer=this.searchContainer=$(".nav-search__container"),searchScroller=this.searchScroller=$(".nav-search__scroller"),searchResultsContainer=this.searchResultsContainer=$("#search-results"),searchType=this.searchType=this.searchForm.find('input[name="type"]').val(),searchRequest=this.searchRequest=null;this.searchForm.on("keyup",".nav-search__input",function(e2){self2.searchContainer.addClass("push-up");var query=$(this).val();query.length?(query+="*",self2.request(query)):self2.reset()}),this.searchOpen.on("click",function(e2){e2.preventDefault(),self2.open()}),this.searchClose.on("click",function(e2){e2.preventDefault(),self2.close()}),this.doc.on("click",function(e2){self2.searchPopup.hasClass("nav-search--is-visible")&&!$(e2.target).is(".nav-search, .nav-search *, .nav-search__open, .nav-search__open *")&&self2.close()}),this.doc.on("keyup",function(e2){e2.keyCode===27&&self2.close()}),this.searchContainer.on("click",".js-loadMore",function(e2){e2.preventDefault();var requestedURL=this.href;this.classList.add("loading"),self2.loadMore(requestedURL)}),this.searchContainer.on("click",".results__popular-links a",function(e2){e2.preventDefault();var searchText=$(this).text();self2.searchForm.find(".nav-search__input").val(searchText),self2.request(searchText)}),this.infiniteScroll()},open:function(){var self2=this,scrollbarWidth=window.innerWidth-document.documentElement.clientWidth,scrollPosition=$(window).scrollTop(),pageOffset=$(".top-bar").length?$(".top-bar").outerHeight():0;self2.body.addClass("lock-body"),self2.html.css("margin-right",scrollbarWidth),self2.searchPopup.addClass("nav-search--is-visible"),self2.header.addClass("is-search-visible"),setTimeout(function(){self2.searchForm.find(".nav-search__input").focus().select()},100),self2.header.hasClass("relative")&&scrollPosition>pageOffset&&$("html, body").animate({scrollTop:pageOffset},250)},close:function(){var self2=this;self2.reset(),self2.header.removeClass("is-search-visible"),self2.searchPopup.removeClass("nav-search--is-visible"),setTimeout(function(){self2.html.css("margin-right",0),self2.body.removeClass("lock-body")},200)},reset:function(){var self2=this;self2.searchResultsContainer.empty(),self2.searchForm[0].reset(),self2.searchContainer.removeClass("is-searching push-up")},request:function(query){var self2=this;self2.searchResultsContainer.empty(),self2.searchContainer.addClass("is-searching"),self2.searchRequest!=null&&self2.searchRequest.abort(),self2.searchRequest=$.ajax({method:"GET",url:"/search?view=json",dataType:"json",data:{q:query,type:self2.searchType}}).done(function(data){var searchResultsContent="",pagination="";if(data.results_count){var resultsText=data.results_count==1?data.results_count+" result":data.results_count+" results",nextPage=data.next_page;searchResultsContent+='<div class="results__count">'+resultsText+'</div> <ul class="results__list">'+self2.getResultsContent(data)+"</ul>",nextPage&&(pagination='<div class="pagination u-center"><a href="'+nextPage+'" class="js-loadMore loadMore loadMore--endlessScroll button">Load more</a><div class="load-more-icon"></div></div>')}else searchResultsContent='<p class="no-results">No results found</p>';self2.searchResultsContainer.html(searchResultsContent),self2.searchResultsContainer.append(pagination),self2.searchContainer.removeClass("is-searching"),self2.infiniteScroll()})},infiniteScroll:function(){var self2=this;self2.searchScroller.off("scroll"),self2.searchScroller.on("scroll",$.throttle(150,function(){var scrolled=self2.searchScroller.scrollTop(),scrollTriggerPoint=self2.searchContainer.height()-self2.searchScroller.height()*2,isSearching=self2.searchContainer.hasClass("is-searching");scrolled>=scrollTriggerPoint&&!isSearching&&(self2.searchContainer.find(".js-loadMore").trigger("click"),self2.searchScroller.off("scroll"))}))},loadMore:function(requestedURL){var self2=this;self2.searchRequest=$.ajax({method:"GET",url:requestedURL,dataType:"json"}).done(function(data){var pagination="",searchResultsContent="",nextPage=data.next_page;data.results_count&&(searchResultsContent=self2.getResultsContent(data),nextPage&&(pagination+='<div class="pagination u-center">
61<a href="'+nextPage+'" class="js-loadMore loadMore loadMore--endlessScroll button">Load more</a><div class="load-more-icon"></div></div>')),self2.searchResultsContainer.find(".pagination").remove(),self2.searchResultsContainer.find(".results__list").append(searchResultsContent),self2.searchResultsContainer.append(pagination),self2.infiniteScroll()})},getResultsContent:function(data){for(var searchResultsContent="",i=0;i<data.results.length;i++){var title=data.results[i].title,url=data.results[i].url,image=data.results[i].featured_image,imageWidths="295,394,590,700,800,1000,1200,1500,1800,2000,2400",imageAspectRatio=data.results[i].image_aspectratio;searchResultsContent+='<li class="result"> <div class="result__image" data-aspectratio="'+imageAspectRatio+'"> <a href="'+url+'" tabindex="3"> <img class="lazyload fade-in" alt="'+title+'" data-src="'+image.replace("_1x1.","_{width}x.")+'" data-widths="['+imageWidths+']" data-aspectratio="'+imageAspectRatio+'" data-sizes="auto" /> </a> </div> <p class="result__title"><a href="'+url+'">'+title+"</a></p> </li>"}return searchResultsContent}},PaloAlto.debounce=function(n,t,u){var e2;return function(){var a=this,r=arguments,i=function(){e2=null,u||n.apply(a,r)},o=u&&!e2;clearTimeout(e2),e2=setTimeout(i,t),o&&n.apply(a,r)}},PaloAlto.initStickyNav=function(forceFullHeader,sectionUpdated){var $window=$(window),$body=$("body"),$header=$(".site-header"),$headerSection=$("#shopify-section-header"),$pageContainer=$("#PageContainer"),$logoImage=$(".site-header__logo img"),hasLogoImage=$logoImage.length,position=$header.attr("data-position"),hasCollectionFilters=$('[data-section-type="collection-template"][data-filters="true"]').length&&$("#collection__filters").length,pageLoaded=!1,isHeaderHeightSet=!1,firstSection=$(".main-content").children().first(),isFullHeader=forceFullHeader??($(firstSection).find(".slider-text-block").length||$(firstSection).find(".text-inside").length||$(firstSection).find(".featured-image-section-inner").length||$(firstSection).not("#shopify-section-product-template").find(".banner").length);if(isFullHeader?$body.addClass("has-slideshow").removeClass("has-no-slideshow"):$body.removeClass("has-slideshow").addClass("has-no-slideshow"),position=="fixed"&&!hasCollectionFilters){if($headerSection.addClass("fixed"),hasLogoImage){var $logoLink=$body.hasClass("has-slideshow")&&$(".site-header__logo-link--home").length?$(".site-header__logo-link--home"):$(".site-header__logo-link--other");$logoLink.find("img").on("load",function(e2){pageLoaded=!0,setHeaderHeight()})}else $window.on("load",function(){pageLoaded=!0,setHeaderHeight()});sectionUpdated&&(pageLoaded=!0,setHeaderHeight()),$window.on("scroll",$.throttle(20,headerState))}else $headerSection.removeClass("fixed"),$body.removeClass("has-scrolled");setMainSpacing(),$window.on("resize",PaloAlto.debounce(setHeaderHeight,10));function setHeaderHeight(){if(pageLoaded){$logoImage.css("height","auto"),$header.add($headerSection).css("height","auto");var headerHeight=$header.find("> .wrapper").outerHeight(),logoMargins=30;$header.add($headerSection).css("height",headerHeight),$logoImage.css("height",headerHeight-logoMargins),isHeaderHeightSet=!0,headerState(),setMainSpacing()}}function headerState(){if(hasCollectionFilters=$('[data-section-type="collection-template"][data-filters="true"]').length&&$("#collection__filters").length,!(!pageLoaded||!isHeaderHeightSet||hasCollectionFilters)){var scrolled=window.scrollY,pageOffset=$("#PageContainer").offset().top;scrolled>pageOffset?$body.addClass("has-scrolled"):$body.removeClass("has-scrolled")}}function setMainSpacing(){if(!isFullHeader&&position=="fixed"&&!hasCollectionFilters){var headerHeight=$header.outerHeight();$pageContainer.css("paddingTop",headerHeight)}else $pageContainer.css("paddingTop","0")}},PaloAlto.initProductGrid=function(){($("body").hasClass("template-collection")||$("body").hasClass("template-index")||$("body").hasClass("template-list-collections")||$("body").hasClass("template-product"))&&PaloAlto.initTags()}
61,PaloAlto.initProductThumbnails=function(container,sectionId){var $container=$(container);$container.on("click","[data-action=show-product-image][data-id]",function(e2){e2.preventDefault();var scope=$(".frame--"+sectionId);$(".featured-image",scope).each(function(){$(this).addClass("hide")}),$("#"+$(this).data("id")).removeClass("hide")})},PaloAlto.initLightbox=function(){$(".product-images").each(function(){var $productImage=$(this),hasZoom=$(".featured-image",$productImage).hasClass("hover-zoom"),hasLightbox=$(".featured-image",$productImage).hasClass("mfp-zoom-in-cur");hasLightbox?$("[data-mfp-src]",$productImage).magnificPopup({type:"image",mainClass:"mfp-fade",closeOnBgClick:!0,closeBtnInside:!1,closeOnContentClick:!1,tClose:"Close (Esc)",removalDelay:300,closeMarkup:'<button title="%title%" class="mfp-close"><i class="custom-icon-x mfp-icon-x"></i></button>',disableOn:function(){return!($(window).width()<768)},gallery:{enabled:!0,navigateByImgClick:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"><span class="mfp-chevron mfp-chevron-%dir%"></span></button>',tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)"}}):hasZoom&&$(".hover-zoom",$productImage).each(function(){var $image=$(this);enquire.register("screen and (min-width: 768px)",{match:function(){$image.parent().zoom({duration:300,url:$image.data("zoom"),target:$image.parent().find(".zoom-container"),callback:function(){var forceZoomRatio=1.5,originalImgWidth=this.width,originalImgHeight=this.height,imageAspectRatio=$image.data("aspectratio"),containerWidth=$image.parent().width(),containerHeight=$image.parent().height();originalImgWidth<containerWidth?($(this).width(containerWidth*forceZoomRatio),$(this).height(containerWidth/imageAspectRatio*forceZoomRatio)):originalImgHeight<containerHeight&&($(this).width(containerHeight/imageAspectRatio*forceZoomRatio),$(this).height(containerHeight*forceZoomRatio))},onZoomIn:function(){$(this).parent().addClass("zoomed")},onZoomOut:function(){$(this).parent().removeClass("zoomed")}})}})})})},PaloAlto.initTags=function(){$(".has-tag").each(function(){var hasTag=this,$image=$(this).find(".product-image"),parent=$(hasTag),tag=$(hasTag).find(".tag");$(tag).css("visibility")=="hidden"&&PaloAlto.circlifyTag(tag)})},PaloAlto.initAccessibleDropdowns=function(){$(".mobile-nav__toggle").on("click",function(){var dropdown=$(this).parent().next();$(dropdown).toggle(200),$(this).find("button:eq(0)").toggleClass("is-expanded"),checkAriaStatus(dropdown)}),$(".dropdown-sub-links__toggle").on("click",function(){var dropdown=$(this).parent().next();$(dropdown).toggle(200),$(this).toggleClass("is-expanded"),checkAriaStatus(dropdown)}),$(".site-nav--has-dropdown > div > a").mouseenter(function(){var $header=$(".site-header"),dropdown=$(this).closest(".site-nav--has-dropdown").find(".site-nav__dropdown");checkAriaStatus(dropdown);var subsub=$(this).closest(".site-nav--has-dropdown").find(".sub-sub-links");$header.hasClass("is-search-visible")&&PaloAlto.NavSearch.close()}),$(".site-nav--has-dropdown").mouseleave(function(){var dropdown=$(this).find(".site-nav__dropdown");checkAriaStatus(dropdown)}),$(".has-sub-links").mouseenter(function(){var target=$(this).next();$(target).attr("aria-expanded","true"),$(target).mouseenter(function(){$(this).attr("aria-expanded","true")})}),$(".has-sub-links").mouseleave(function(){var target=$(this).next();$(target).attr("aria-expanded","false"),$(target).mouseleave(function(){$(this).attr("aria-expanded","false")})});function checkAriaStatus(el){var ariaExpanded=$(el).attr("aria-expanded"),state=$(el).css("display");state=="block"?$(el).attr("aria-expanded","true"):$(el).attr("aria-expanded","false")}},PaloAlto.onPriceAdded=function(){typeof Currency<"u"&&typeof Currency.convertAll<"u"&&Currency&&(Currency.convertAll(shopCurrency,$("[name=currencies]").val()),onCurrencySet())},PaloAlto.InitPopup=(function(){function InitPopup(container){var $container=this.$container=$(container),$popup=$container.find("#popup"),modalDelay=parseInt($popup.data("delay")),reappearTime=parseInt($popup.data("reappear-time")),popupEnabled=$popup.data("enabled"),testMode=$popup.data("testmode"),showModalDelayed2=this.showModalDelayed;truncateText(),testMode?showModal(modalDelay):(Cookies.get("newsletter_delay")===void 0||reappearTime==0)&&(showModal(modalDelay),createCookie(reappearTime));function showModal(modalDelay2){if(this.showModalDelayed!=null&&clearTimeout(this.showModalDelayed),sessionStorage.name!="popup_shown"&&$("html").hasClass("lt-ie9")==!1){if(this.showModalDelayed=setTimeout(function(){$("#popup").modal(),$("#popup").css("display","inline-block")},modalDelay2),$(".close-modal").append('<i class="custom-icon-x"></i>'),typeof localStorage=="object")try{localStorage.setItem("localStorage",1),localStorage.removeItem("localStorage"),sessionStorage.name="popup_shown"}catch{Storage.prototype._setItem=Storage.prototype.setItem,Storage.prototype.setItem=function(){}}}else testMode&&(this.showModalDelayed=setTimeout(function(){$("#popup").modal(),$("#popup").css("display","inline-block")},modalDelay2),$(".close-modal").append('<i class="custom-icon-x"></i>'))}function createCookie(reappearTime2){reappearTime2!=0&&Cookies.set("newsletter_delay","value",{expires:reappearTime2})}function truncateText(){$popup.find(".popup__text").truncate({length:300})}$(document).on("modal:block",function(){$("body").css("overflow","")}),$.modal.defaults={escapeClose:!0,clickClose:!0,closeText:" ",closeClass:"close-modal",showClose:!0,modalClass:"modal",spinnerHtml:null,showSpinner:!0,fadeDuration:250,fadeDelay:.5}}return InitPopup.prototype=$.extend({},InitPopup.prototype,{onUnload:function(){$(".jquery-modal").remove(),this.showModalDelayed!=null&&clearTimeout(showModalDelayed)}}),InitPopup})(),PaloAlto.circlifyTag=function(tag){var isCircle=tag.hasClass("tag--circle"),tagWidthPadding=tag.width(),tagHeightPadding=tag.height(),tagSize=0;tagWidthPadding>tagHeightPadding?tagSize=tagWidthPadding:tagSize=tagHeightPadding,tagSize=tagSize+20,isCircle?$(tag).css({width:tagSize,height:tagSize,borderRadius:"50%",visibility:"visible"}):$(tag).css({visibility:"visible"})},PaloAlto.RichText=(function(){function RichText(container){var playButton=$(container).find(".play-button");$(playButton).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",noPulse);function noPulse(){$(this).removeClass("animated fadeInLeftBig _1")}var stroke=$(playButton).find(".stroke-circle");$(playButton).on({mouseenter:function(){$(this).css("animation-name",""),$(stroke).addClass("pulsate")},mouseleave:function(){$(stroke).removeClass("pulsate")}}),$(playButton).magnificPopup({disableOn:200,type:"iframe",mainClass:"mfp-fade",removalDelay:160,preloader:!1,fixedContentPos:!1,preloader:!1,fixedContentPos:!1,closeMarkup:'<button title="%title%" class="mfp-close"><i class="custom-icon-x mfp-icon-x"></i></button>',closeOnBgClick:!0,tClose:"Close (Esc)",iframe:{patterns:{youtube_short:{index:"youtu.be/",id:"youtu.be/",src:"//www.youtube.com/embed/%id%?autoplay=1&autohide=0&branding=0&cc_load_policy=0&controls=0&fs=0&iv_load_policy=3&modestbranding=1&playsinline=1&quality=hd720&rel=0&showinfo=0&wmode=opaque"}}}})}return RichText})(),PaloAlto.Instagram=(function(){function Instagram(container){var accessToken=$("#instafeed").attr("data-access-token"),numPhotos=$("#instafeed").attr("data-num-photos");if(numPhotos>18&&(numPhotos=18),accessToken){var userFeed=new Instafeed({get:"user",userId:"self",accessToken,sortBy:"most-recent",resolution:"standard_resolution",limit:numPhotos,template:'<a class="instafeed-photo animation instaimg large--one-sixth medium--one-half small--one-half lazyload" href="{{link}}" data-bgset="{{image}}" data-sizes="auto" data-parent-fit="cover"><div class="insta-comment-table"><span class="insta-comment"><i class="icon icon-instagram"></i><br>{{caption}}</span></div></a>',after:function(){setHeights(),$(window).resize(function(){setHeights()}),truncateDescriptions()}});userFeed.run()}function setHeights(){var image=$(".instaimg"),height=$(image).width();
61$(image).css("height",height)}function truncateDescriptions(){$(".insta-comment").each(function(){if(!$(this).text().length)$(this).html("<i class = 'icon icon-instagram'></i>");else{var shortText=$(this).html().substr(0,120);if(shortText.length==120){for(;shortText.slice(-1)!=" ";)shortText=shortText.substring(0,shortText.length-1);shortText=shortText+"..."}$(this).html(shortText)}})}}return Instagram})(),PaloAlto.Slider=(function(){function Slider(container){var $container=this.$container=$(container),slider=$container.find(".flickity"),slidesCount=$container.attr("data-slides-count"),autoplay=$container.data("autoplay"),duration=$container.data("duration"),textPosition=$container.data("text-position"),imageHeight=$container.data("image-height"),prevNextButtons=slider.find(".item").length>1&&$container.data("nav-arrows"),pageDots=slider.find(".item").length>1&&$container.data("page-dots"),selectedAttraction=$container.data("transition")?.1:1;autoplay&&(autoplay=duration),initSlider(slider,autoplay,prevNextButtons),snapToSlide(slider,autoplay),textPosition=="slider-text-block-outside"&&imageHeight=="original-height"&&(initArrows(container),$(slider).on("scroll.flickity",function(event,progress){initArrows(container)})),initMagnific(container);function initArrows(){$(container).imagesLoaded(function(){var buttons=$(container).find(".flickity-prev-next-button"),activeSlide=$(container).find(".is-selected"),activeSlideImg=$(activeSlide).find("img"),offset=$(activeSlideImg).height()/2-44/2;$(buttons).css("bottom",offset),$(buttons).css("top","initial"),$(buttons).css("transform","initial"),$(buttons).css("-webkit-transform","initial")})}function initSlider(slider2,autoplay2,prevNextButtons2){slider2.on("ready.flickity",function(){var currentStyle=$(this).find('.item[data-slide-position="1"]').data("style");$(this).parents(".slider").attr("data-current-style",currentStyle),$(this).find(".initial-slide").removeClass("initial-slide")}),slider2.on("change.flickity",function(event,index){var activeSlide=parseInt(index+1),currentStyle=$(this).find('.item[data-slide-position="'+activeSlide+'"]').data("style");$(this).parents(".slider").attr("data-current-style",currentStyle)}),slider2.flickity({autoPlay:autoplay2,wrapAround:!0,adaptiveHeight:!0,setGallerySize:!0,imagesLoaded:!0,lazyLoad:!0,pageDots,prevNextButtons:!1,friction:1,selectedAttraction}),prevNextButtons2&&($(container).on("click",".slider__arrow--previous",function(){slider2.flickity("previous")}),$(container).on("click",".slider__arrow--next",function(){slider2.flickity("next")}))}function snapToSlide(slider2,autoplay2){$(document).on("shopify:block:select",function(event){var target=$(event.target),position=$(target).attr("data-slide-position")-1;$(slider2).flickity("select",position),$(slider2).flickity("pausePlayer")}),$(document).on("shopify:block:deselect",function(event){autoplay2&&$(slider2).flickity("playPlayer")})}function initMagnific(container2){var magnificAnchor=$(container2).find(".secondary-call-to-action");$(magnificAnchor).magnificPopup({disableOn:200,type:"iframe",mainClass:"mfp-fade",removalDelay:160,preloader:!1,fixedContentPos:!1,closeMarkup:'<button title="%title%" class="mfp-close"><i class="custom-icon-x mfp-icon-x"></i></button>',closeOnBgClick:!0,tClose:"Close (Esc)",iframe:{patterns:{youtube:{index:"youtube.com/",src:"//www.youtube.com/embed/%id%?autoplay=1&mute=1"}}}})}$(container).on("click",".js-scroll-down",function(e2){e2.preventDefault();var $header=$(".site-header"),headerHeight=$header.hasClass("fixed")?$header.outerHeight():0,scrollToPosition=parseInt(Math.ceil(slider.offset().top)+slider.outerHeight()-headerHeight);$("html, body").animate({scrollTop:scrollToPosition},500)})}return Slider.prototype=$.extend({},Slider.prototype,{onUnload:function(evt){var isFirstSection=$(".main-content").children().first().hasClass("slideshow");isFirstSection&&PaloAlto.initStickyNav(!1)}}),Slider})(),PaloAlto.Header=(function(){function Header(container){var isDrawerOpen=$("body").hasClass("js-drawer-open");if($(".drawer--left").css("display")=="block")var leftDrawer="opened";else var leftDrawer="closed";timber.init(),isDrawerOpen&&timber.LeftDrawer.close(),isDrawerOpen=$("body").hasClass("js-drawer-open"),isDrawerOpen&&timber.RightDrawer.close(),$(document).ready(function(){$(document).on("shopify:section:load",function(event){ajaxCart.init({cartCountSelector:".CartCount",moneyFormat:window.monies})})}),PaloAlto.fitNav(),PaloAlto.initAccessibleDropdowns(),PaloAlto.initListeners(),PaloAlto.initStickyNav(),$(document).on("shopify:section:load shopify:section:reorder",function(event){PaloAlto.initStickyNav(null,!0)}),$(".site-header__search").length&&PaloAlto.NavSearch.init()}return Header})(),PaloAlto.FeaturedProduct=(function(){function FeaturedProduct(container){var $container=this.$container=$(container);
61if(!$container.hasClass("onboarding-fp")){var sectionId=$container.attr("data-section-id"),enableSwatches=$container.data("swatches"),product=JSON.parse(document.getElementById("ProductJson-"+sectionId).innerHTML);PaloAlto.initProductVariants(container,product,sectionId),PaloAlto.initProductThumbnails(container,sectionId),PaloAlto.initListeners(),$container.find(".product-form").css("visibility","visible"),$(timber.init),initFeaturedProductTag(),enableSwatches&&PaloAlto.ColorSwatches.bind()}function initFeaturedProductTag(){var featuredProduct=$(container).find(".featured-product"),tag=$(container).find(".tag-fp");!$(featuredProduct).hasClass("fp-has-tag")&&!$(featuredProduct).hasClass("tag-added")&&($(container).imagesLoaded(function(){PaloAlto.circlifyTag(tag)}),$(featuredProduct).addClass("tag-added"))}typeof Currency<"u"&&typeof Currency.convertAll<"u"&&Currency&&Currency.convertAll(shopCurrency,$("[name=currencies]").val())}return FeaturedProduct.prototype=$.extend({},FeaturedProduct.prototype,{onSelect:function(){var enableReviews=this.$container.data("reviews");enableReviews&&typeof window.SPR=="function"&&(window.SPR.initDomEls(),window.SPR.loadBadges())}}),FeaturedProduct})(),PaloAlto.QuickViewPopup=(function($selector){$selector.magnificPopup({type:"ajax",cache:!1,alignTop:!0,removalDelay:300,mainClass:"popup-quick-buy mfp-fade",autoFocusLast:!1,callbacks:{parseAjax:function(mfpResponse){var $mfpContent=$(mfpResponse.data),$mfpData=$mfpContent.find(".product-single").add($mfpContent.find('[id^="ProductJson-"]')),$productContainer=$mfpData.filter(".product-single"),sectionId=$productContainer.data("section-id"),product=JSON.parse($mfpData.filter("#ProductJson-"+sectionId)[0].innerHTML),enableSwatches=$selector.closest("[data-section-type]").data("swatches"),showReviews=$selector.closest("[data-section-type]").data("reviews"),$dynamicButton=$productC
61ontainer.find(".shopify-payment-button"),isSoldout=$productContainer.find("#AddToCart--"+sectionId).hasClass("disabled");return $productContainer.addClass("is-loading"),setTimeout(function(){PaloAlto.initProductVariants($mfpData,product,sectionId),enableSwatches?PaloAlto.ColorSwatches.bind():PaloAlto.ColorSwatches.destroy(),showReviews&&typeof window.SPR=="function"&&(window.SPR.initDomEls(),window.SPR.loadBadges()),initSlider($productContainer),Shopify.PaymentButton.init(),$(document).off("click",".mfp-wrap .spr-badge *"),$(document).on("click",".mfp-wrap .spr-badge *",function(e2){return e2.preventDefault(),e2.stopPropagation(),!1}),isSoldout?$dynamicButton.hide():$dynamicButton.show(),$productContainer.removeClass("is-loading")},250),mfpResponse.data=$mfpData},ajaxContentAdded:function(){typeof Currency<"u"&&typeof Currency.convertAll<"u"&&Currency&&Currency.convertAll(shopCurrency,$("[name=currencies]:eq(0)").val())}}});var initSlider=function($productContainer){var $slider=$(".product-images__slider",$productContainer),$thumbs=$(".product-images__thumbs",$productContainer),hasSlides=$slider.find(".product-images__slide").length>1;hasSlides&&($slider.flickity({cellSelector:".product-images__slide",wrapAround:!0,imagesLoaded:!0,lazyLoad:!0,pageDots:!1,arrowShape:{x0:0,x1:45,y1:50,x2:50,y2:50,x3:5}}),$thumbs.flickity({asNavFor:".product-images__slider",cellSelector:".product-images__thumbs-slide",contain:!0,pageDots:!1,prevNextButtons:!1}),$slider.on("lazybeforeunveil",function(){$slider.flickity("resize")}))},magnificPopup=$.magnificPopup,isSubmitting=!1;$(document).off("click",'.mfp-wrap button[type="submit"]'),$(document).on("click",'.mfp-wrap button[type="submit"]',function(event){var $qtyInput=$(this).closest("form").find('[name="quantity"]').val(),qty=$qtyInput.val();if(!isSubmitting&&qty>0)isSubmitting=!0,$(this).attr("disabled",!0).closest(".product-form").submit().addClass("is-loading"),$qtyInput.removeClass("field-error").siblings(".qty-error-message").remove();else return $qtyInput.parent().find(".qty-error-message").remove(),$qtyInput.addClass("field-error").parent().append('<small class="qty-error-message">Quantity must be greater than 0.</small>'),setTimeout(function(){$qtyInput.parent().find(".qty-error-message").fadeOut("fast",function(){$(this).remove()})},3e3),!1}).on("ajaxCart.afterCartLoad",function(){magnificPopup.close(),setTimeout(function(){isSubmitting=!1,$(".mfp-wrap .product-form").removeClass("is-loading").find('button[type="submit"]').attr("disabled",!1)},500)}).on("ajaxCart.errorAddItem",function(){setTimeout(function(){isSubmitting=!1,$(".mfp-wrap .product-form").removeClass("is-loading").find('button[type="submit"]').attr("disabled",!1)},500)})}),PaloAlto.QuickBuy=(function($selector){var product,isSubmitting=!1;$selector.off("click"),$selector.on("click",function(e2){e2.preventDefault();var $imageContainer=$(this).closest(".grid__image"),variantId=$(this).data("variant-id"),qty=$(this).closest("form").find('[name="quantity"]').val();if(!isSubmitting)isSubmitting=!0,$(this).attr("disabled",!0).addClass("is-loading"),$.ajax({type:"POST",url:"/cart/add.js",data:{quantity:1,id:variantId},dataType:"json",success:function(line_item){updateCartTotal(),ajaxCart.load()},error:function(XMLHttpRequest2,textStatus){$(document).trigger("ajaxCart.errorAddItem")}}).always(function(){setTimeout(function(){isSubmitting=!1,$selector.removeClass("is-loading").attr("disabled",!1)},500)}).fail(function(response){var productTitle=$imageContainer.closest(".product-item-parent").find(".product-grid-item__title").text(),errorText="All %%productTitle%% are in your cart.";errorText=errorText.replace("%%productTitle%%",productTitle),$imageContainer.remove(".error").append('<div class="error">'+errorText+"</div>"),$imageContainer.find(".error").css("opacity",1),setTimeout(function(){$imageContainer.find(".error").fadeOut("fast",function(){$(this).remove()})},3e3)});else return!1}),$(timber.init);function updateCartTotal(){$.getJSON("/cart.js",function(cart){$("#CartCount, .CartCount").html(cart.item_count)})}}),PaloAlto.ProductTemplate=(function(){function ProductTemplate(container){var $container=this.$container=$(container),sectionId=$(container).attr("data-section-id"),product=JSON.parse(document.getElementById("ProductJson-"+sectionId).innerHTML),enableSwatches=$container.data("swatches"),enableReviews=this.$container.data("reviews");PaloAlto.initProductVariants(container,product,sectionId),PaloAlto.initProductThumbn
61ails(container,sectionId),PaloAlto.initLightbox(),PaloAlto.initListeners(),$container.find(".product-form").css("visibility","visible"),$(timber.init),enableSwatches&&PaloAlto.ColorSwatches.bind(),typeof Currency<"u"&&typeof Currency.convertAll<"u"&&Currency&&Currency.convertAll(shopCurrency,$("[name=currencies]").val()),this.productSlider(),this.productTabs(),this.checkButtons(),$("body").hasClass("quick-view-enabled")?PaloAlto.QuickViewPopup($(".quick_view_button")):$("body").hasClass("quick-buy-enabled")&&PaloAlto.QuickBuy($(".add_to_cart_button")),enableReviews&&typeof window.SPR=="function"&&(window.SPR.initDomEls(),window.SPR.loadBadges(),window.SPR.loadProducts())}return ProductTemplate.prototype=$.extend({},ProductTemplate.prototype,{productSlider:function(){var $slider=$(".product-images__slider",this.$container),$thumbs=$(".product-images__thumbs",this.$container),hasSlides=$slider.find(".product-images__slide").length>1,draggable=$slider.data("gallery")!="lightbox";hasSlides&&($slider.flickity({cellSelector:".product-images__slide",draggable,wrapAround:!0,pageDots:!1,adaptiveHeight:!0,arrowShape:{x0:0,x1:45,y1:50,x2:50,y2:50,x3:5}}),$thumbs.flickity({asNavFor:".product-images__slider",cellSelector:".product-images__thumbs-slide",imagesLoaded:!0,contain:!0,pageDots:!1,prevNextButtons:!1}),$slider.on("lazybeforeunveil",".product-images__slide",function(){$slider.flickity("resize")}))},productTabs:function(){var $productTab=$(".js-product-tabs .product-tab");$productTab.on("click",".product-tab-title",function(){$(this).parent(".product-tab").toggleClass("is-active")}),$(document).on("click",".product-single .star-clickable, .product-single .spr-badge",function(e2){if(e2.preventDefault(),e2.stopPropagation(),$("#product-tab--reviews").length){var $header=$(".site-header"),headerHeight=$header.hasClass("fixed")?$header.outerHeight():0,reviewsTop=$("#product-tab--reviews").offset().top-headerHeight;$("#product-tab--reviews").addClass("is-active").siblings().removeClass("is-active"),$("html, body").stop(!0).animate({scrollTop:reviewsTop},300)}})},checkButtons:function(){var $dynamicButton=this.$container.find(".shopify-payment-button"),isSoldout=this.$container.find("#AddToCart--"+this.$container.data("section-id")).hasClass("disabled");isSoldout?$dynamicButton.hide():$dynamicButton.show()}}),ProductTemplate})(),PaloAlto.RelatedProducts=(function(){function RelatedProducts(container){var $relatedSection=this.$relatedSection=$("[data-related-products]");this.init()}return RelatedProducts.prototype=$.extend({},RelatedProducts.prototype,{init:function(){var self2=this,$relatedSection=this.$relatedSection,productId=$relatedSection.data("product-id"),limit=$relatedSection.data("limit"),enableSwatches=$relatedSection.data("swatches"),enableReviews=$relatedSection.data("reviews"),productGridSlideshow=$relatedSection.data("product-grid-slideshow"),requestUrl="/recommendations/products?section_id=related-products&limit="+limit+"&product_id="+productId;$.get(requestUrl).done(function(data){var inner=$(data).find("[data-related-products]").html();$relatedSection.hide().html(inner).slideDown("slow"),PaloAlto.initTags(),$("body").hasClass("quick-view-enabled")?PaloAlto.QuickViewPopup($relatedSection.find(".quick_view_button")):$("body").hasClass("quick-buy-enabled")&&PaloAlto.QuickBuy($relatedSection.find(".add_to_cart_button")),productGridSlideshow&&self2.productGridSlideshow(),enableSwatches&&PaloAlto.ColorSwatches.bind(),enableReviews&&typeof window.SPR=="function"&&(window.SPR.initDomEls(),window.SPR.loadBadges()),typeof Currency<"u"&&typeof Currency.convertAll<"u"&&Currency&&Currency.convertAll(shopCurrency,$("[name=currencies]").val())})},productGridSlideshow:function(){var $productGridSlider=this.$relatedSection.find(".product-image__slider");$productGridSlider.each(function(){var countImages=$(this).find(".product-image").length;if(countImages>1)var $imageSlider=$(this).flickity({cellSelector:".product-image__slide",contain:!0,wrapAround:!0,imagesLoaded:!0,lazyLoad:!0,pageDots:!1,adaptiveHeight:!1,arrowShape:{x0:0,x1:45,y1:50,x2:50,y2:50,x3:5}})}),this.$relatedSection.on("click",".grid__image",function(e2){$(e2.target).is(".flickity-button, .flickity-button *")&&e2.preventDefault()})}}),RelatedProducts})(),PaloAlto.CollectionTemplate=(function(){var constants={SORT_BY:"sort_by",DEFAULT_SORT:"title-ascending"},selectors={filterSelection:".filters-toolbar__input--filter",sortSelection:".filters-toolbar__input--sort",defaultSort:".filters-toolbar__default-sort"};function CollectionTemplate(container){var self2=this,$container=this.$container=$(container),sectionId=$container.data("section-id"),enableSubCollections=$container.data("subcollections"),enableSwatches=$container.data("swatches"),enableReviews=$container.data("reviews"),enableFilters=$container.data("filters")&&$container.find("#collection__filters").length,productGridSlideshow=$container.data("product-grid-slideshow"),isBannerImageHeight=$container.find(".banner-img--original").length;this.$filterSelect=$(selectors.filterSelection,$container),this.$sortSelect=$(selectors.sortSelection,$container),this.$selects=$(selectors.filterSelection,$container).add($(selectors.sortSelection,$container)),this.defaultSort=this._getDefaultSortValue(),this.$filterSelect.on("change",this._onFilterChange.bind(this)),this.$sortSelect.on("change",this._onSortChange.bind(this)),this.$selects.removeClass("hidden"),$("body").hasClass("quick-view-enabled")?PaloAlto.QuickViewPopup($(".quick_view_button")):$("body").hasClass("quick-buy-enabled")&&PaloAlto.QuickBuy($(".add_to_cart_button")),enableSubCollections!="hidden"&&this.subCollectionsSlideshow(),enableSwatches&&this._stripSwatches(),productGridSlideshow&&this.productGridSlideshow(),enableFilters&&this.filters(),isBannerImageHeight&&(this.fixBannerOnMobile(),$(window).on("resize",PaloAlto.debounce(self2.fixBannerOnMobile.bind(self2),250)));var self2=this;const endlessCollection=this.endlessCollection=new Ajaxinate({container:"#AjaxinateLoop",pagination:"#AjaxinatePagination",method:"scroll",callback:function(){$("body").hasClass("quick-view-enabled")?PaloAlto.QuickViewPopup($(".quick_view_button")):$("body").hasClass("quick-buy-enabled")&&PaloAlto.QuickBuy($(".add_to_cart_button")),productGridSlideshow&&self2.productGridSlideshow(),enableReviews&&typeof window.SPR=="function"&&(window.SPR.initDomEls(),window.SPR.loadBadges()),$(window).trigger("scroll"),$(window).trigger("resize"),typeof Currency<"u"&&typeof Currency.convertAll<"u"&&Currency&&Currency.convertAll(shopCurrency,$("[name=currencies]").val())}})}return CollectionTemplate.prototype=$.extend({},CollectionTemplate.prototype,{fixBannerOnMobile:function(){var $bannerImage=this.$container.find(".banner-img--original"),$bannerContent=this.$container.find(".collection-header"),bannerImageHeight=$bannerImage.height(),bannerContentHeight=$bannerContent.height(),headerHeight=$(".site-header").outerHeight(),additionalPadding=100,bannerMinHeight=bannerContentHeight+headerHeight+additionalPadding;bannerImageHeight<bannerMinHeight&&($bannerImage.css("min-height",bannerMinHeight),$bannerContent.css("padding-top",headerHeight))},productGridSlideshow:function(){var $productGridSlider=this.$container.find(".product-image__slider");$productGridSlider.each(function(){var countImages=$(this).find(".product-image").length;if(countImages>1)var $imageSlider=$(this).flickity({cellSelector:".product-image__slide",contain:!0,wrapAround:!0,imagesLoaded:!0,lazyLoad:!0,pageDots:!1,adaptiveHeight:!1,arrowShape:{x0:0,x1:45,y1:50,x2:50,y2:50,x3:5}})}),this.$container.on("click",".grid__image",function(e2){$(e2.target).is(".flickity-button, .flickity-button *")&&e2.preventDefault()})},subCollectionsSlideshow:function(){var self2=this,$slider=this.$container.find(".subcollections__list");enquire.register("screen and (max-width: 767px)",{match:function(){runSlider()}
61,unmatch:function(){var hasSlider=$slider.hasClass("flickity-enabled");hasSlider&&$slider.flickity("destroy")}});function runSlider(){$slider.flickity({cellSelector:".subcollection__item",imagesLoaded:!0,lazyLoad:!0,pageDots:!1,contain:!0,groupCells:!0,freeScroll:!0,prevNextButtons:!1})}},filters:function(){var self2=this,$collectionWrapper=this.$container.find(".collection__wrapper"),$collectionProducts=this.$container.find(".collection__products"),$filtersContainer=this.$container.find(".collection__filters-wrapper"),$filtersContainerParent=this.$container.find("#collection__filters");if(!$filtersContainerParent.length)return;var tags=this.$container.data("tags"),collection=this.$container.data("collection"),sort=this.$container.data("sort");setCollectionContainerHeight(),$filtersContainer.on("click",".collection__filter-title",function(){var isTopPosition=$(window).width()<1024||$(".collection__filters--top").length;isTopPosition&&($(this).parent().toggleClass("is-expanded").attr("aria-expanded",!0).siblings().removeClass("is-expanded").attr("aria-expanded",!1),$filtersContainer.find(".collection__filter.is-expanded").length?$filtersContainerParent.addClass("has-tags-expanded"):$filtersContainerParent.removeClass("has-tags-expanded"))}),$(document).on("click",function(e2){$(e2.target).is("#collection__filters *")||($filtersContainer.find(".collection__filter").removeClass("is-expanded").attr("aria-expanded",!1),$filtersContainerParent.removeClass("has-tags-expanded"))}),$filtersContainer.on("click",".collection__filter button",function(e2){e2.preventDefault();var selectedTag=$(this).data("tag"),isTagSelected=$(this).parent().hasClass("is-active");if(isTagSelected){var tagIndex=tags.indexOf(selectedTag);$(this).parent().removeClass("is-active"),tagIndex>-1&&tags.splice(tagIndex,1)}else $(this).parent().addClass("is-active"),tags.push(selectedTag);self2.$container.attr("data-tags",tags);var requestedURL=collection+"/"+tags.join("+")+"?sort_by="+sort;requestFilteredProducts(requestedURL,tags)});var bindResetButton=function(e2){var requestedURL=collection+"/?sort_by="+sort;$filtersContainer.find(".collection__filter-tags > li").removeClass("is-active"),$filtersContainer.find(".collection__filter").removeClass("is-expanded"),$filtersContainerParent.removeClass("has-tags-expanded"),tags=[],self2.$container.attr("data-tags",!1),requestFilteredProducts(requestedURL,tags)};self2.$container.find(".js-reset-filters").on("click",bindResetButton),$(window).on("resize",PaloAlto.debounce(setCollectionContainerHeight,50));function requestFilteredProducts(requestedURL,tags2){var subcollectionsHeight=self2.$container.find(".subcollections--top").length?self2.$container.find(".subcollections").outerHeight():0,productsTop=self2.$container.find(".collection__wrapper").offset().top+subcollectionsHeight,enableReviews=self2.$container.data("reviews"),productGridSlideshow=self2.$container.data("product-grid-slideshow"),enableSubCollections=self2.$container.data("subcollections");self2.filterProductsRequest!=null&&self2.filterProductsRequest.abort(),tags2.length||(self2.$container.find(".js-reset-filters").removeClass("is-visible").slideUp(300),self2.$container.find(".collection__filters").removeClass("collection__filters--has-tags-selected")),self2.$container.addClass("is-loading"),self2.endlessCollection.destroy(),$("html, body").stop().animate({scrollTop:productsTop}),self2.filterProductsRequest=$.ajax({method:"GET",url:requestedURL,dataType:"html"}).done(function(data){var filteredItems=$(data).find(".collection__products").html(),$pagination=$(data).find(".pagination"),productsFound=$(data).find(".products-found").html();self2.$container.find(".collection__products").html(filteredItems),self2.$container.find(".products-found").html(productsFound),self2.$container.find(".js-reset-filters").on("click",bindResetButton),$pagination.length?self2.$container.find(".pagination").html($pagination.html()):self2.$container.find(".pagination").empty(),self2._stripSwatches(),self2.endlessCollection=new Ajaxinate({container:"#AjaxinateLoop",pagination:"#AjaxinatePagination",method:"scroll",callback:function(){$("body").hasClass("quick-view-enabled")?PaloAlto.QuickViewPopup($(".quick_view_button")):$("body").hasClass("quick-buy-enabled")&&PaloAlto.QuickBuy($(".add_to_cart_button")),enableReviews&&typeof window.SPR=="function"&&(window.SPR.initDomEls(),window.SPR.loadBadges()),productGridSlideshow&&self2.productGridSlideshow(),$(window).trigger("scroll"),$(window).trigger("resize")}}),tags2.length&&(self2.$container.find(".js-reset-filters").addClass("is-visible").slideDown(300,function(){var subcollectionsHeight2=self2.$container.find(".subcollections--top").length?self2.$container.find(".subcollections").outerHeight():0,productsTop2=self2.$container.find(".collection__wrapper").offset().top+subcollectionsHeight2;$("html, body").stop().animate({scrollTop:productsTop2})}),self2.$container.find(".collection__filters").addClass("collection__filters--has-tags-selected")),$("body").hasClass("quick-view-enabled")?PaloAlto.QuickViewPopup($(".quick_view_button")):$("body").hasClass("quick-buy-enabled")&&PaloAlto.QuickBuy($(".add_to_cart_button")),enableReviews&&typeof window.SPR=="function"&&(window.SPR.initDomEls(),window.SPR.loadBadges()),productGridSlideshow&&self2.productGridSlideshow(),enableSubCollections!="hidden"&&self2.subCollectionsSlideshow(),setTimeout(function(){self2.$container.removeClass("is-loading"),setCollectionContainerHeight()},450),history.replaceState&&window.history.pushState({path:requestedURL},"",requestedURL)}).fail(function(jqXHR,textStatus,errorThrown){self2.$container.removeClass("is-loading")})}function setCollectionContainerHeight(){var isLeftPosition=$filtersContainerParent.hasClass("collection__filters--left")&&$(window).width()>=1024,newContainerHeight=$collectionProducts.outerHeight();isLeftPosition?$collectionWrapper.css("height",newContainerHeight):$collectionWrapper.css("height","initial")}},onSelect:function(){var enableReviews=this.$container.data("reviews");enableReviews&&typeof window.SPR=="function"&&(window.SPR.initDomEls(),window.SPR.loadBadges()),$("body").hasClass("quick-view-enabled")?PaloAlto.QuickViewPopup($(".quick_view_button")):$("body").hasClass("quick-buy-enabled")&&PaloAlto.QuickBuy($(".add_to_cart_button"))},onDeselect:function(){$.magnificPopup.close()},_onSortChange:function(evt){var query="";this.sort=this._getSortValue(),query=[constants.SORT_BY+"="+this.sort];var search=document.location.search=query.length?"?"+query:"";document.location.href=this.$filterSelect.val()+search},_onFilterChange:function(evt){document.location.href=this.$filterSelect.val()},_getSortValue:function(){return this.$sortSelect.val()||this.defaultSort},_getDefaultSortValue:function(){return $(selectors.defaultSort,this.$container).val()||constants.DEFAULT_SORT},_stripSwatches:function(){var $swatches=this.$container.find(".collection__products .swatch"),$swatchesFake=this.$container.find(".collection__products .swatches-fake");$swatches.each(function(){$(this).find("input, style, script, .header").remove()}),$swatchesFake.each(function(){var swatchesCount=$(this).find(".swatch-element").length;swatchesCount==1&&$(this).remove()})},onUnload:function(evt){this.$filterSelect.off("change",this._onFilterChange),this.$sortSelect.off("change",this._onSortChange),$.magnificPopup.close()}}),CollectionTemplate})(),PaloAlto.FeaturedCollection=(function(){var constants={SORT_BY:"sort_by",DEFAULT_SORT:"title-ascending"},selectors={filterSelection:".filters-toolbar__input--filter",sortSelection:".filters-toolbar__input--sort",defaultSort:".filters-toolbar__default-sort"};function FeaturedCollection(container){var self2=this,$container=this.$container=$(container),$collectionSlider=this.$collectionSlider=$container.find(".js-featured-collection--slider"),$productSliders=this.$productSliders=$container.find(".product-image__slider"),enableSwatches=$container.data("swatches"),enableReviews=$container.data("reviews"),enableSlider=$container.data("slider"),productGridSlideshow=$container.data("product-grid-slideshow");this.$filterSelect=$(selectors.filterSelection,$container),this.$sortSelect=$(selectors.sortSelection,$container),this.$selects=$(selectors.filterSelection,$container).add($(selectors.sortSelection,$container)),this.defaultSort=this._getDefaultSortValue(),this.$filterSelect.on("change",this._onFilterChange.bind(this)),this.$sortSelect.on("change",this._onSortChange.bind(this)),this.$selects.removeClass("hidden"),enableSwatches&&this._stripSwatches(),enableSlider&&(this.checkSlider(),$(window).on("resize",$.throttle(150,self2.checkSlider.bind(self2)))),productGridSlideshow&&this.productGridSlideshow(),typeof Currency<"u"&&typeof Currency.convertAll<"u"&&Currency&&Currency.convertAll(shopCurrency,$("[name=currencies]").val()),this.init()}return FeaturedCollection.prototype=$.extend({},FeaturedCollection.prototype,{init:function(){$("body").hasClass("quick-view-enabled")?PaloAlto.QuickViewPopup($(".quick_view_button",this.$container)):$("body").hasClass("quick-buy-enabled")&&PaloAlto.QuickBuy($(".add_to_cart_button",this.$container))},checkSlider:function(){var windowWidth=window.innerWidth||document.documentElement.clientWidth,isDesktop=windowWidth>=768,isTablet=windowWidth<768&&windowWidth>480,isMobile=windowWidth<=480,slidesCount=this.$collectionSlider.find(".grid__item").length,productC
61olumns=this.$container.data("product-columns");isDesktop&&slidesCount>productColumns||isTablet&&slidesCount>2||isMobile&&slidesCount>1?(this.initSlider(),this.setSliderArrowsPosition()):this.destroySlider()},initSlider:function(){var self2=this,$slider=this.$collectionSlider,dragThreshold=this.$productSliders.length?90:3;$slider.removeClass("slider--disabled"),$slider.data("flickity")||($slider.on("ready.flickity",function(){self2.setSliderArrowsPosition()}),$slider.flickity({cellSelector:".featured-collection__item",contain:!0,groupCells:!0,imagesLoaded:!0,lazyLoad:!0,pageDots:!1,adaptiveHeight:!1,dragThreshold,wrapAround:!0,prevNextButtons:!1}),this.$container.on("click",".slider__arrow--previous",function(){$slider.flickity("previous")}),this.$container.on("click",".slider__arrow--next",function(){$slider.flickity("next")}))},destroySlider:function(){var $slider=this.$collectionSlider;$slider.addClass("slider--disabled"),$slider.data("flickity")&&$slider.flickity("destroy")},setSliderArrowsPosition:function(){var $slider=this.$collectionSlider,$arrows=$slider.find(".slider__arrow"),imageHeight=$slider.find(".grid__image").outerHeight();$arrows.css("top",imageHeight/2)},productGridSlideshow:function(){var $productGridSlider=this.$container.find(".product-image__slider");$productGridSlider.each(function(){var countImages=$(this).find(".product-image").length;if(countImages>1)var $imageSlider=$(this).flickity({cellSelector:".product-image__slide",contain:!0,wrapAround:!0,imagesLoaded:!0,lazyLoad:!0,pageDots:!1,adaptiveHeight:!1,dragThreshold:3,arrowShape:{x0:0,x1:45,y1:50,x2:50,y2:50,x3:5}})}),this.$container.on("click",".grid__image",function(e2){$(e2.target).is(".flickity-button, .flickity-button *")&&e2.preventDefault()})},_onSortChange:function(evt){var query="";this.sort=this._getSortValue(),query=[constants.SORT_BY+"="+this.sort];var search=document.location.search=query.length?"?"+query:"";document.location.href=this.$filterSelect.val()+search},_onFilterChange:function(evt){document.location.href=this.$filterSelect.val()},_getSortValue:function(){return this.$sortSelect.val()||this.defaultSort},_getDefaultSortValue:function(){return $(selectors.defaultSort,this.$container).val()||constants.DEFAULT_SORT},_stripSwatches:function(){var $swatches=this.$container.find(".swatch"),$swatchesFake=this.$container.find(".collection__products .swatches-fake");$swatches.each(function(){$(this).find("input, style, script, .header").remove()}),$swatchesFake.each(function(){var swatchesCount=$(this).find(".swatch-element").length;swatchesCount==1&&$(this).remove()})},onSelect:function(){var enableReviews=this.$container.data("reviews");enableReviews&&typeof window.SPR=="function"&&(window.SPR.initDomEls(),window.SPR.loadBadges()),$("body").hasClass("quick-view-enabled")?PaloAlto.QuickViewPopup($(".quick_view_button",this.$container)):$("body").hasClass("quick-buy-enabled")&&PaloAlto.QuickBuy($(".add_to_cart_button",this.$container))},onDeselect:function(){$.magnificPopup.close()},onBlockSelect:function(evt){var $slider=$(evt.target).parents(".js-featured-collection--slider"),index=$(evt.target).index();$slider.data("flickity")&&$slider.flickity("select",index)},onUnload:function(evt){this.$filterSelect.off("change",this._onFilterChange),this.$sortSelect.off("change",this._onSortChange),$.magnificPopup.close();var $slider=$(evt.target).parents(".js-featured-collection--slider");$slider.data("flickity")&&$slider.flickity("destroy")}}),FeaturedCollection})(),PaloAlto.TabbedCollections=(function(){function TabbedCollections(container){var self2=this,$container=this.$container=$(container),$productSliders=this.$productSliders=$container.find(".product-image__slider"),enableSwatches=$container.data("swatches"),enableReviews=$container.data("reviews"),enableSlider=$container.data("slider"),productGridSlideshow=$container.data("product-grid-slideshow"),productColumns=$container.data("product-columns");enableSwatches&&this._stripSwatches(),enableSlider&&(this.checkSlider(),$(window).on("resize",$.throttle(150,self2.checkSlider.bind(self2)))),productGridSlideshow&&this.productGridSlideshow(),typeof Currency<"u"&&typeof Currency.convertAll<"u"&&Currency&&Currency.convertAll(shopCurrency,$("[name=currencies]").val()),this.init()}return TabbedCollections.prototype=$.extend({},TabbedCollections.prototype,{init:function(){var self2=this;$(".collection__tabs-nav",this.$container).on("click","button",function(e2){e2.preventDefault();var $tabs=self2.$container.find(".collection__tab"),currentTab="#"+$(this).data("tab"),$currentSlider=$(currentTab).find(".js-featured-collection--slider");$(this).parent().addClass("is-active").siblings().removeClass("is-active"),$tabs.removeClass("is-active").filter($(currentTab)).addClass("is-active"),$currentSlider.addClass("is-loading"),$currentSlider.data("flickity")?$currentSlider.flickity("resize"):self2.checkSlider(),self2.$productSliders.filter(":visible").flickity("resize"),$(currentTab).find(".product-image").addClass("lazyload"),$currentSlider.removeClass("is-loading")}),$("body").hasClass("quick-view-enabled")?PaloAlto.QuickViewPopup($(".quick_view_button",this.$container)):$("body").hasClass("quick-buy-enabled")&&PaloAlto.QuickBuy($(".add_to_cart_button",this.$container))},checkSlider:function(){var windowWidth=window.innerWidth||document.documentElement.clientWidth,isDesktop=windowWidth>=768,isTablet=windowWidth<768&&windowWidth>480,isMobile=windowWidth<=480,$collectionSlider=this.$container.find(".
61is-active .js-featured-collection--slider"),slidesCount=$collectionSlider.find(".grid__item").length,productColumns=this.$container.data("product-columns");isDesktop&&slidesCount>productColumns||isTablet&&slidesCount>2||isMobile&&slidesCount>1?(this.initSlider(),this.setSliderArrowsPosition()):this.destroySlider()},initSlider:function(){var self2=this,$slider=this.$container.find(".is-active .js-featured-collection--slider"),dragThreshold=this.$productSliders.length?90:3;$slider.removeClass("slider--disabled"),$slider.data("flickity")||($slider.on("ready.flickity",function(){self2.setSliderArrowsPosition()}),$slider.flickity({cellSelector:".featured-collection__item",contain:!0,groupCells:!0,imagesLoaded:!0,lazyLoad:!0,pageDots:!1,adaptiveHeight:!1,dragThreshold,wrapAround:!0,prevNextButtons:!1}),$slider.on("click",".slider__arrow--previous",function(){$slider.flickity("previous")}),$slider.on("click",".slider__arrow--next",function(){$slider.flickity("next")}))},destroySlider:function(){var $slider=this.$container.find(".is-active .js-featured-collection--slider");$slider.addClass("slider--disabled"),$slider.data("flickity")&&$slider.flickity("destroy")},setSliderArrowsPosition:function(){var $slider=this.$container.find(".is-active .js-featured-collection--slider"),$arrows=$slider.find(".slider__arrow"),imageHeight=$slider.find(".grid__image").outerHeight();$arrows.css("top",imageHeight/2)},productGridSlideshow:function(){var $productGridSlider=this.$container.find(".product-image__slider");$productGridSlider.each(function(){var countImages=$(this).find(".product-image").length;if(countImages>1)var $imageSlider=$(this).flickity({cellSelector:".product-image__slide",contain:!0,wrapAround:!0,imagesLoaded:!0,lazyLoad:!0,pageDots:!1,adaptiveHeight:!1,dragThreshold:3,arrowShape:{x0:0,x1:45,y1:50,x2:50,y2:50,x3:5}})}),this.$container.on("click",".grid__image",function(e2){$(e2.target).is(".flickity-button, .flickity-button *")&&e2.preventDefault()})},_stripSwatches:function(){var $swatches=this.$container.find(".swatch"),$swatchesFake=this.$container.find(".collection__products .swatches-fake");$swatches.each(function(){$(this).find("input, style, script, .header").remove()}),$swatchesFake.each(function(){var swatchesCount=$(this).find(".swatch-element").length;swatchesCount==1&&$(this).remove()})},onSelect:function(){var enableReviews=this.$container.data("reviews");enableReviews&&typeof window.SPR=="function"&&(window.SPR.initDomEls(),window.SPR.loadBadges()),$("body").hasClass("quick-view-enabled")?PaloAlto.QuickViewPopup($(".quick_view_button",this.$container)):$("body").hasClass("quick-buy-enabled")&&PaloAlto.QuickBuy($(".add_to_cart_button",this.$container))},onDeselect:function(){$.magnificPopup.close()},onBlockSelect:function(evt){$(evt.target).find("button").trigger("click")},onUnload:function(evt){$.magnificPopup.close();var $slider=$(evt.target).find(".is-active .js-featured-collection--slider");$slider.data("flickity")&&$slider.flickity("destroy")}}),TabbedCollections})(),PaloAlto.ListCollections=(function(){function ListCollections(container){var self2=this,$container=this.$container=$(container),$slider=$container.find(".js-list-collections__slider");this.checkSlidesSize($slider),$(window).on("resize",PaloAlto.debounce(function(){self2.checkSlidesSize($slider)},250))}return ListCollections.prototype=$.extend({},ListCollections.prototype,{checkSlidesSize:function($slider){var windowWidth=$(window).width(),columns=$slider.data("columns"),slidesCount=$slider.find(".list-collections__slide").length;columns>=slidesCount&&windowWidth>=768?($slider.addClass("list-collections__slider--center"),$slider.data("flickity")&&$slider.flickity("destroy")):($slider.removeClass("list-collections__slider--center"),$slider.data("flickity")||$slider.flickity({pageDots:!1,cellAlign:"left",groupCells:!0,arrowShape:{x0:0,x1:45,y1:50,x2:50,y2:50,x3:5}}))},onBlockSelect:function(evt){var $slider=$(evt.target).parents(".js-list-collections__slider"),sliderData=$slider.data("flickity"),index=parseInt($(evt.target).index()),slidesPerPage=parseInt(sliderData.slides[0].cells.length),groupIndex=Math.floor(index/slidesPerPage);$slider.data("flickity")&&$slider.flickity("select",groupIndex)}}),ListCollections})(),PaloAlto.FeaturedImage=(function(){function FeaturedImage(container){window.isTouchDevice&&$(container).css("background-attachment","scroll"),$(container).hasClass("original-height")&&(proportionize(container),$(window).resize(function(){proportionize(container)}));function proportionize(container2){var aspectRatio=$(container2).data("aspect-ratio"),windowWidth=$(window).width(),newHeight=windowWidth/aspectRatio;$(container2).css("height",newHeight),enquire.register("screen and (max-width: 991px)",{match:function(){$(container2).css("background-size",windowWidth),$(container2).addClass("original-height--position")},unmatch:function(){$(container2).css("background-size","cover"),$(container2).removeClass("original-height--position")}}),$(container2).css("opacity","1")}}return FeaturedImage})(),PaloAlto.BlogPosts=(function(){function BlogPosts(container){var self2=this,$container=self2.$container=$(container),title=$
61(container).find(".h4"),excerpt=$(container).find(".excerpt");$(title).each(function(){$(this).trunk8({lines:2})}),this.setHeights(container),this.checkMobile(),$(window).on("resize",$.throttle(150,function(){self2.setHeights(container),self2.checkMobile()}))}return BlogPosts.prototype=$.extend({},BlogPosts.prototype,{setHeights:function(container){var content=$(container).find(".featured-blog__content");if(!$(content).hasClass("onboarding-blog-content")){var tallestContent=0;$(content).each(function(){var titleHeight=$(this).find(".h5").height(),dateHeight=$(this).find(".featured-blog__date").height(),excerptHeight=$(this).find(".excerpt").height(),currentContent=titleHeight+dateHeight+excerptHeight;currentContent>tallestContent&&(tallestContent=currentContent)}),tallestContent=tallestContent+75,$(content).css("height",tallestContent)}},checkMobile:function(){var windowWidth=$(window).width();windowWidth<768?this.initSlider():this.destroySlider()},initSlider:function(){var $slider=this.$container.find(".featured-blog__slider-mobile");$slider.data("flickity")||$slider.flickity({contain:!0,wrapAround:!0,arrowShape:{x0:0,x1:45,y1:50,x2:50,y2:50,x3:5}})},destroySlider:function(){var $slider=this.$container.find(".featured-blog__slider-mobile");$slider.data("flickity")&&$slider.flickity("destroy")},onBlockSelect:function(evt){var $slider=$(evt.target).parents(".featured-blog__slider-mobile"),index=$(evt.target).index();$slider.data("flickity")&&$slider.flickity("select",index)},onUnload:function(evt){var $slider=$(evt.target).parents(".featured-blog__slider-mobile");$slider.data("flickity")&&$slider.flickity("destroy")}}),BlogPosts})(),PaloAlto.LogoList=(function(){function LogoList(container){var self2=this,$container=self2.$container=$(container),$slider=self2.$slider=$container.find(".logo-list__slider");self2.checkSlides(self2),$(window).on("resize",$.throttle(150,function(){self2.checkSlides(self2)}))}return LogoList.prototype=$.extend({},LogoList.prototype,{checkSlides:function(self2){var sliderWidth=self2.$slider.width(),slideWidth=self2.$slider.find(".logo-list__slide").outerWidth(),slideCount=self2.$slider.find(".logo-list__slide").length;slideCount*slideWidth>sliderWidth?self2.initSlider(self2):self2.destroySlider(self2)},initSlider:function(self2){self2.$slider.data("flickity")||self2.$slider.flickity({contain:!0,wrapAround:!0,pageDots:!1,arrowShape:{x0:0,x1:45,y1:50,x2:50,y2:50,x3:5}})},destroySlider:function(self2){self2.$slider.data("flickity")&&self2.$slider.flickity("destroy")},onBlockSelect:function(evt){var $slider=$(evt.target).parents(".logo-list__slider"),index=$(evt.target).index();$slider.data("flickity")&&$slider.flickity("select",index)},onUnload:function(evt){var $slider=$(evt.target).parents(".logo-list__slider");$slider.data("flickity")&&$slider.flickity("destroy")}}),LogoList})(),PaloAlto.IconsRow=(function(){function IconsRow(container){var self2=this,$container=self2.$container=$(container),$slider=self2.$slider=$container.find(".icons-row__slider");self2.checkSlides(self2),$(window).on("resize",$.throttle(150,function(){self2.checkSlides(self2)}))}return IconsRow.prototype=$.extend({},IconsRow.prototype,{checkSlides:function(self2){var isMobile=$(window).width()<768;isMobile?self2.initSlider(self2):self2.destroySlider(self2)},initSlider:function(self2){self2.$slider.data("flickity")||self2.$slider.flickity({contain:!0,wrapAround:!0,pageDots:!1,arrowShape:{x0:0,x1:45,y1:50,x2:50,y2:50,x3:5}})},destroySlider:function(self2){self2.$slider.data("flickity")&&self2.$slider.flickity("destroy")},onBlockSelect:function(evt){var $slider=$(evt.target).parents(".icons-row__slider"),index=$(evt.target).index();$slider.data("flickity")&&$slider.flickity("select",index)},onUnload:function(evt){var $slider=$(evt.target).parents(".icons-row__slider");$slider.data("flickity")&&$slider.flickity("destroy")}}),IconsRow})(),PaloAlto.Map=(function(){function Map(container){var key=$(container).data("key"),style=$(container).data("style");$.getScript("https://maps.googleapis.com/maps/api/js?key="+key).then(function(){createMap(container)});function createMap(container2){var zoom=$(container2).data("zoom"),id=$(container2).data("section-id"),address=$(container2).data("address"),map=new GMaps({div:".map--"+id,lat:37.4439064,lng:-122.1639733,navigationControl:!1,mapTypeControl:!1,scaleControl:!1,draggable:!1,zoom}),standard=[],silver=[{elementType:"geometry",stylers:[{color:"#f5f5f5"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#dadada"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9c9c9"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]}],retro=[{elementType:"geometry",stylers:[{color:"#ebe3cd"}]},{elementType:"labels.text.fill",stylers:[{color:"#523735"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f1e6"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#c9b2a6"}]},{featureType:"administrative.land_parcel",elementType:"geometry.stroke",stylers:[{color:"#dcd2be"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#ae9e90"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#93817c"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#a5b076"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#447530"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#f5f1e6"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#fdfcf8"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#f8c967"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#e9bc62"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#e98d
6158"}]},{featureType:"road.highway.controlled_access",elementType:"geometry.stroke",stylers:[{color:"#db8555"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#806b63"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"transit.line",elementType:"labels.text.fill",stylers:[{color:"#8f7d77"}]},{featureType:"transit.line",elementType:"labels.text.stroke",stylers:[{color:"#ebe3cd"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#b9d3c2"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#92998d"}]}],dark=[{elementType:"geometry",stylers:[{color:"#212121"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{elementType:"labels.text.stroke",stylers:[{color:"#212121"}]},{featureType:"administrative",elementType:"geometry",stylers:[{color:"#757575"}]},{featureType:"administrative.country",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#181818"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"poi.park",elementType:"labels.text.stroke",stylers:[{color:"#1b1b1b"}]},{featureType:"road",elementType:"geometry.fill",stylers:[{color:"#2c2c2c"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#8a8a8a"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#373737"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#3c3c3c"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#4e4e4e"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#000000"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#3d3d3d"}]}],night=[{elementType:"geometry",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.fill",stylers:[{color:"#746855"}]},{elementType:"labels.text.stroke",stylers:[{color:"#242f3e"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#263c3f"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#6b9a76"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#38414e"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#212a37"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#9ca5b3"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#746855"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#1f2835"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#f3d19c"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#2f3948"}]},{featureType:"transit.station",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#17263c"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#515c6d"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#17263c"}]}],aubergine=[{elementType:"geometry",stylers:[{color:"#1d2c4d"}]},{elementType:"labels.text.fill",stylers:[{color:"#8ec3b9"}]},{elementType:"labels.text.stroke",stylers:[{color:"#1a3646"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#64779e"}]},{featureType:"administrative.province",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"landscape.man_made",elementType:"geometry.stroke",stylers:[{color:"#334e87"}
61]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#023e58"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#283d6a"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#6f9ba5"}]},{featureType:"poi",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#023e58"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#3C7680"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#304a7d"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#2c6675"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#255763"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#b0d5ce"}]},{featureType:"road.highway",elementType:"labels.text.stroke",stylers:[{color:"#023e58"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"transit",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"transit.line",elementType:"geometry.fill",stylers:[{color:"#283d6a"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#3a4762"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#0e1626"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#4e6d70"}]}],styles="";style=="standard"?styles=standard:style=="silver"?styles=silver:style=="retro"?styles=retro:style=="dark"?styles=dark:style=="night"?styles=night:styles=aubergine,map.addStyle({styledMapName:"Styled Map",styles,mapTypeId:"map_style"}),map.setStyle("map_style"),GMaps.geocode({address,callback:function(results,status){if(status=="OK"){var latlng=results[0].geometry.location;map.setCenter(latlng.lat(),latlng.lng()),map.addMarker({lat:latlng.lat(),lng:latlng.lng()})}}})}}return Map})(),PaloAlto.ColorSwatches={init:function(variant,selector){var form=$("#"+selector.domIdPrefix).closest("form"),enableColorSwatches=form.data("swatches");if(enableColorSwatches&&variant)for(var form=$("#"+selector.domIdPrefix).closest("form"),i=0,length=variant.options.length;i<length;i++){var radioButton=form.find('.swatch[data-option-index="'+i+'"] :radio[value="'+escape(variant.options[i])+'"]');radioButton.size()&&(radioButton.get(0).checked=!0)}},bind:function(){$(".product-form").on("change",".swatch :radio",function(){var optionIndex=$(this).closest(".swatch").attr("data-option-index"),optionValue=$(this).val();$(this).closest("form").find(".single-option-selector").eq(optionIndex).val(optionValue).trigger("change")})},unbind:function(){$(".product-form").off("change",".swatch :radio")},destroy:function(){this.unbind(),$(".product-form").find(".swatch, style").remove()}},PaloAlto.Testimonials=(function(){function Testimonials(container){var $container=this.$container=$(container),sectionId=$(container).attr("data-section-id");this.initSlider()}return Testimonials.prototype=$.extend({},Testimonials.prototype,{initSlider:function(){var $slider=$(".testimonials__slider",this.$container),slidesCount=$slider.find(".testimonial__item").length;slidesCount>3&&runSlider(),slidesCount>1&&enquire.register("screen and (max-width: 767px)",{match:function(){runSlider()},unmatch:function(){var hasSlider=$slider.hasClass("flickity-enabled");slidesCount<=3&&hasSlider&&$slider.flickity("destroy")}});function runSlider(){$slider.flickity({cellSelector:".testimonial__item",imagesLoaded:!0,lazyLoad:!0,pageDots:!0,contain:!0,groupCells:!0,arrowShape:{x0:0,x1:45,y1:50,x2:50,y2:50,x3:5}})}},onBlockSelect:function(evt){var $slider=$(evt.target).parents(".testimonials__slider"),sliderData=$slider.data("flickity"),index=parseInt($(evt.target).index()),slidesPerPage=parseInt(sliderData.slides[0].cells.length),groupIndex=Math.floor(index/slidesPerPage);$slider.data("flickity")&&$slider.flickity("select",groupIndex)}}),Testimonials})(),PaloAlto.Faq=(function(){function Faq(container){var $container=this.$container=$(container),sectionId=$(container).attr("data-section-id");this.initFaq()}return Faq.prototype=$.extend({},Faq.prototype,{initFaq:function(){var $faqItem=$(".faq-list__item",this.container);$faqItem.on("click",".faq-list__item-question",function(){$(this).parent().toggleClass("is-active")})}}),Faq})(),PaloAlto.Press=(function(){function Press(container){var $container=this.$container=$(container),$slider=this.$slider=$container.find(".press__items"),$sliderNav=this.$sliderNav=$container.find(".press__logos-slider");this.initSlider()}return Press.prototype=$.extend({},Press.prototype,{initSlider:function(){var $slider=this.$slider,$sliderNav=this.$sliderNav,slidesCount=$slider.data("count");$slider.flickity({wrapAround:!0,adaptiveHeight:!0,prevNextButtons:!1,pageDots:!1}),slidesCount>2?($sliderNav.flickity({wrapAround:!0,initialIndex:2,imagesLoaded:!0,lazyLoad:!0,asNavFor:$slider[0],prevNextButtons:!1,pageDots:!1}),$sliderNav.on("change.flickity",function(event,pointer){var flkty=$sliderNav.data("flickity"),index=flkty.selectedIndex;$slider.flickity("selectCell",index)}),$slider.on("change.flickity",function(event,pointer){var flkty=$slider.data("flickity"),index=flkty.selectedIndex;$sliderNav.flickity("selectCell",index)}),this.$container.on("click",".slider__arrow",function(){$(this).hasClass("slider__arrow--previous")?$slider.flickity("previous",!0):$slider.flickity("next",!0)})):($sliderNav.on("click",".press__logo",function(){var index=$(this).index();$(this).addClass("is-selected").siblings().removeClass("is-selected"),$slider.flickity("selectCell",index)}),$slider.on("change.flickity",function(event,pointer){var flkty=$slider.data("flickity"),index=flkty.selectedIndex;$sliderNav.find(".press__logo").eq(index).addClass("is-selected").siblings().removeClass("is-selected")}))},onBlockSelect:function(evt){var $slider=$(evt.target).parents(".press__items"),$sliderNav=$(evt.target).parents(".press__logos-slider"),index=$(evt.target).index();$slider.data("flickity")&&$slider.flickity("select",index),$sliderNav.data("flickity")&&$sliderNav.flickity("select",index)}}),Press})(),PaloAlto.onVariantSelected=function(variant,selector){if(variant){for(var form=$("#"+selector.domIdPrefix).closest("form"),i=0,length=variant.options.length;i<length;i++){var radioButton=form.find('.swatch[data-option-index="'+i+'"] :radio[value="'+escape(variant.options[i])+'"]');radioButton.length&&(radioButton.get(0).checked=!0)}var variantImageID=variant.featured_image?variant.featured_image.id:!1,$slider=$(".product-images__slider"),flick=$slider.data("flickity"),$featuredProduct=$(".featured-product").has(".featured-image#"+variantImageID);if(flick&&flick.isActive){var $variantSlide=$slider.find('[data-image-id="'+variantImageID+'"]');$variantSlide.index()!=-1&&flick.select($variantSlide.index())}else $featuredProduct.length&&$featuredProduct.find(".featured-image").addClass("hide").filter(".featured-image#"+variantImageID).removeClass("hide")}},PaloAlto.AnnouncementBar=(function(){function AnnouncementBar(container){var $container=this.$container=$(container),sectionId=$(container).attr("data-section-id");this.initSlider()}return AnnouncementBar.prototype=$.extend({},AnnouncementBar.prototype,{initSlider:function(){var $slider=$(".top-bar__slider",this.$container);$slider.flickity({cellSelector:".top-bar__slide",pageDots:!1,prevNextButtons:!1,wrapAround:!0,autoPlay:5e3})},onBlockSelect:function(evt){var $slider=$(evt.target).parents(".top-bar__slider"),index=$(evt.target).index();$slider.data("flickity")&&($slider.flickity("select",index),$slider.flickity("pausePlayer"))},onBlockDeselect:function(evt){var $slider=$(evt.target).parents(".top-bar__slider");$slider.data("flickity")&&$slider.flickity("unpausePlayer")}}),AnnouncementBar})(),PaloAlto.initSections=function(){var sections=new PaloAlto.Sections;sections.register("header",PaloAlto.Header),sections.register("announcement-bar",PaloAlto.AnnouncementBar),sections.register("product-template",PaloAlto.ProductTemplate),sections.register("related-products",PaloAlto.RelatedProducts),sections.register("collection-template",PaloAlto.CollectionTemplate),sections.register("list-collections",PaloAlto.ListCollections),sections.register("featured-collection",PaloAlto.FeaturedCollection),sections.register("tabbed-collections",PaloAlto.TabbedCollections),sections.register("featured-product",PaloAlto.FeaturedProduct),sections.register("slider",PaloAlto.Slider),sections.register("rich-text-with-media",PaloAlto.RichText),sections.register("instagram",PaloAlto.Instagram),sections.register("featured-image",PaloAlto.FeaturedImage),sections.register("blog-posts",PaloAlto.BlogPosts),sections.register("featured-video",PaloAlto.FeaturedVideo),sections.register("logo-list",PaloAlto.LogoList),sections.register("icons-row",PaloAlto.IconsRow),sections.register("map",PaloAlto.Map),sections.register("testimonials",PaloAlto.Testimonials),sections.register("faq",PaloAlto.Faq),sections.register("press",PaloAlto.Press),sections.register("popup",PaloAlto.InitPopup),$(document).on("shopify:section:unload",function(){setTimeout(function(){PaloAlto.initStickyNav()},300)})},(function(a){a.fn.prepareTransition=function(){return this.each(function(){var b=a(this);b.one("TransitionEnd webkitTransitionEnd transitionend oTransitionEnd",function(){b.removeClass("is-transitioning")});var c=["transition-duration","-moz-transition-duration","-webkit-transition-duration","-o-transition-duration"],d=0;a.each(c,function(a2,c2){d=parseFloat(b.css(c2))||d}),d!=0&&(b.addClass("is-transitioning"),b[0].offsetWidth)})}})(jQuery);function replaceUrlParam(e2,r,a){var n=new RegExp("("+r+"=).*?(&|$)"),c=e2;return c=e2.search(n)>=0?e2.replace(n,"$1"+a+"$2"):c+(c.indexOf("?")>0?"&":"?")+r+"="+a}typeof Shopify>"u"&&(Shopify={}),Shopify.formatMoney||(Shopify.formatMoney=function(cents,format){var value="",placeholderRegex=/\{\{\s*(\w+)\s*\}\}/,formatString=format||this.money_format;typeof cents=="string"&&(cents=cents.replace(".",""));function defaultOption(opt,def){return typeof opt>"u"?def:opt}function formatWithDelimiters(number,precision,thousands,decimal){if(precision=defaultOption(precision,2),thousands=defaultOption(thousands,","),decimal=defaultOption(decimal,"."),isNaN(number)||number==null)return 0;number=(number/100).toFixed(precision);var parts=number.split("."),dollars=parts[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+thousands),cents2=parts[1]?decimal+parts[1]:"";return dollars+cents2}switch(formatString.match(placeholderRegex)[1]){case"amount":value=formatWithDelimiters(cents,2);break;case"amount_no_decimals":value=formatWithDelimiters(cents,0);break;case"amount_with_comma_separator":value=formatWithDelimiters(cents,2,".",",");break;case"amount_no_decimals_with_comma_separator":value=formatWithDelimiters(cents,0,".",",");break}return formatString.replace(placeholderRegex,value)}),window.timber=window.timber||{},timber.cacheSelectors=function(){timber.cache={$html:$("html"),$body:$("body"),$header:$(".site-header"),$navigation:$("#AccessibleNav"),$mobileSubNavToggle:$(".mobile-nav__toggle"),$productImage:$("#ProductPhotoImg"),$thumbImages:$("#ProductThumbs").find("a.product-single__thumbnail"),$recoverPasswordLink:$("#RecoverPassword"),$hideRecoverPasswordLink:$("#HideRecoverPasswordLink"),$recoverPasswordForm:$("#RecoverPasswordForm"),$customerLoginForm:$("#CustomerLoginForm"),$passwordResetSuccess:$("#ResetSuccess")}},timber.init=function(){FastClick.attach(document.body),timber.cacheSelectors(),timber.accessibleNav(),timber.drawersInit(),timber.mobileNavToggle(),timber.loginForms()},timber.accessibleNav=function(){var $nav=timber.cache.$navigation,$header=timber.cache.$header,$allLinks=$nav.find("a"),$topLevel=$nav.children("li").find("a"),$parents=$nav.find(".site-nav--has-dropdown"),$subMenuLinks=$nav.find(".site-nav__dropdown").find("a"),megamenuClass="site-nav__item--has-meganav",activeClass="nav-hover",focu
61sClass="nav-focus";$parents.off("mouseleave"),$parents.off("mouseenter touchstart","> div > a"),$allLinks.off("blur focus"),$parents.on("mouseenter touchstart","> div > a",function(evt){var $el=$(this).closest(".site-nav--has-dropdown");$el.hasClass(activeClass)||evt.preventDefault(),showDropdown($el)}),$parents.on("mouseleave",function(){hideDropdown($(this))}),$subMenuLinks.on("touchstart",function(evt){evt.stopImmediatePropagation()}),$allLinks.on("focus",function(){handleFocus($(this))}),$allLinks.on("blur",function(){removeFocus($topLevel)});function handleFocus($el){var $subMenu=$el.next("ul"),hasSubMenu=!!$subMenu.hasClass("sub-nav"),isSubItem=$(".site-nav__dropdown").has($el).length,$newFocus=null;isSubItem?($newFocus=$el.closest(".site-nav--has-dropdown").find("a"),addFocus($newFocus)):(removeFocus($topLevel),addFocus($el))}function showDropdown($el){$el.addClass(activeClass),$el.hasClass(megamenuClass)&&$header.addClass("is-meganav-visible"),setTimeout(function(){timber.cache.$body.on("touchstart",function(){hideDropdown($el)})},250)}function hideDropdown($el){$el.removeClass(activeClass),timber.cache.$body.off("touchstart"),$header.removeClass("is-meganav-visible")}function addFocus($el){$el.addClass(focusClass)}function removeFocus($el){$el.removeClass(focusClass)}},timber.drawersInit=function(){timber.LeftDrawer=new timber.Drawers("NavDrawer","left"),timber.RightDrawer=new timber.Drawers("CartDrawer","right",{onDrawerOpen:function(){var isCartLoaded=!!$("#CartContainer").html();isCartLoaded||ajaxCart.load()}}),$(".js-drawer-open-left").on("click",function(){var isDrawerOpen=$("body").hasClass(".js-drawer-open");isDrawerOpen&&timber.RightDrawer.close()}),$(".js-drawer-open-right").on("click",function(){var isDrawerOpen=$("body").hasClass(".js-drawer-open");isDrawerOpen&&timber.LeftDrawer.close()})},timber.mobileNavToggle=function(){timber.cache.$mobileSubNavToggle.on("click",function(){$(this).parent().toggleClass("mobile-nav--expanded")})},timber.getHash=function(){return window.location.hash},timber.updateHash=function(hash){window.location.hash="#"+hash,$("#"+hash).attr("tabindex",-1).focus()},timber.productPage=function(options){var moneyFormat=options.money_format,variant=options.variant,selector=options.selector,container=options.container,$productImage=$(container).find("#ProductPhotoImg"),$productVarImage=$(container).find(".productvarimg"),$addToCart=$(container).find("#AddToCart--"+$(container).data("section-id")),$productPrice=$(container).find("#ProductPrice"),$comparePrice=$(container).find("#ComparePrice"),$unitPrice=$(container).find("#UnitPrice"),$quantityElements=$(container).find(".qtydiv, .quantity-selector, label + .js-qty"),$addToCartText=$(container).find("#AddToCartText");if(variant){if(variant.available?($addToCart.removeClass("disabled").prop("disabled",!1),$addToCartText.html("Add to Cart"),$quantityElements.show()):($addToCart.addClass("disabled").prop("disabled",!0),$addToCartText.html("Sold Out"),$quantityElements.hide()),variant.unit_price_measurement){var unitPrice=Shopify.formatMoney(variant.unit_price,moneyFormat)+" ";variant.unit_price_measurement.reference_value!=1&&(unitPrice+=variant.unit_price_measurement.reference_value),unitPrice+=variant.unit_price_measurement.reference_unit,$unitPrice.html(unitPrice)}$productPrice.html(Shopify.formatMoney(variant.price,moneyFormat)),variant.compare_at_price>variant.price?$comparePrice.html("<s>"+Shopify.formatMoney(variant.compare_at_price,moneyFormat)+"</s>").show():$comparePrice.hide(),typeof Currency<"u"&&typeof Currency.convertAll<"u"&&Currency&&Currency.convertAll(shopCurrency,$("[name=currencies]").val())}else $addToCart.addClass("disabled").prop("disabled",!0),$addToCartText.html("Unavailable"),$quantityElements.hide();checkButtons();function checkButtons(){var $dynamicButton=$(container).find(".shopify-payment-button"),isSoldout=$addToCart.hasClass("disabled");isSoldout?$dynamicButton.hide():$dynamicButton.show()}},timber.loginForms=function(){function showRecoverPasswordForm(){timber.cache.$recoverPasswordForm.show(),timber.cache.$customerLoginForm.hide()}
61function hideRecoverPasswordForm(){timber.cache.$recoverPasswordForm.hide(),timber.cache.$customerLoginForm.show()}timber.cache.$recoverPasswordLink.on("click",function(evt){evt.preventDefault(),showRecoverPasswordForm()}),timber.cache.$hideRecoverPasswordLink.on("click",function(evt){evt.preventDefault(),hideRecoverPasswordForm()}),timber.getHash()=="#recover"&&showRecoverPasswordForm()},timber.resetPasswordSuccess=function(){timber.cache.$passwordResetSuccess.show()},timber.Drawers=(function(){var Drawer=function(id,position,options){var defaults={close:".js-drawer-close",open:".js-drawer-open-"+position,openClass:"js-drawer-open",dirOpenClass:"js-drawer-open-"+position};if(this.$nodes={parent:$("body, html"),page:$("#PageContainer"),moved:$(".is-moved-by-drawer")},this.config=$.extend(defaults,options),this.position=position,this.$drawer=$("#"+id),!this.$drawer.length)return!1;this.drawerIsOpen=!1,this.init()};return Drawer.prototype.init=function(){$(this.config.open).off("click"),this.$drawer.find(this.config.close).off("click"),$(this.config.open).on("click",$.proxy(this.open,this)),this.$drawer.find(this.config.close).on("click",$.proxy(this.close,this))},Drawer.prototype.open=function(evt){var externalCall=!1;if(evt?evt.preventDefault():externalCall=!0,evt&&evt.stopPropagation&&(evt.stopPropagation(),this.$activeSource=$(evt.currentTarget)),this.drawerIsOpen&&!externalCall)return this.close();this.$nodes.moved.addClass("is-transitioning"),this.$drawer.prepareTransition(),this.$nodes.parent.addClass(this.config.openClass+" "+this.config.dirOpenClass),this.drawerIsOpen=!0,this.trapFocus(this.$drawer,"drawer_focus"),this.config.onDrawerOpen&&typeof this.config.onDrawerOpen=="function"&&(externalCall||this.config.onDrawerOpen()),this.$activeSource&&this.$activeSource.attr("aria-expanded")&&this.$activeSource.attr("aria-expanded","true"),this.$nodes.page.on("touchmove.drawer",function(){return!1}),this.$nodes.page.on("click.drawer",$.proxy(function(){return this.close(),!1},this))},Drawer.prototype.close=function(){this.drawerIsOpen&&($(document.activeElement).trigger("blur"),this.$nodes.moved.prepareTransition({disableExisting:!0}),this.$drawer.prepareTransition({disableExisting:!0}),this.$nodes.parent.removeClass(this.config.dirOpenClass+" "+this.config.openClass),this.drawerIsOpen=!1,this.removeTrapFocus(this.$drawer,"drawer_focus"),this.$nodes.page.off(".drawer"))},Drawer.prototype.trapFocus=function($container,eventNamespace){var eventName=eventNamespace?"focusin."+eventNamespace:"focusin";$container.attr("tabindex","-1")},Drawer.prototype.removeTrapFocus=function($container,eventNamespace){var eventName=eventNamespace?"focusin."+eventNamespace:"focusin";$container.removeAttr("tabindex"),$(document).off(eventName)},Drawer})(),$(document).ready(function(){$(timber.init),PaloAlto.init(),PaloAlto.initSections()}); 62//# sourceMappingURL=/cdn/shop/t/10/assets/theme.js.map?v=22789296176117645671607348510
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.