PageSourceSearch

https://eyeworldvision.com/storage/opt/1d9ca6fc9b542493c335d00a06bb92c4.opt-min.co.js

js eyeworldvision.com collected 2026-09-29 15:19:07 UTC 289,492 bytes, 13 lines download raw bytes

1function navigationSublevelWrap(t,e){t.each(function(){var t=$(this),i=t.parents("ul").length;i>0&&t.wrap(function(){return'<div class="'+e+i+'"></div>'})})}function menuPrepare(){origMenuContent.length||(origMenuContent=menu.html()),menuHolder.css("width",menuHolderMaxWidth),allMenus.push([currentMenu.html(),Math.round(calcTotalMenuItemsWidth())]);for(var t=0;t<=menuChildrenCount;t++){moreButton.length&&moreButton.remove();var e=currentMenu.children("li:last").remove();currentMenu.append(moreButton);var i=calcTotalMenuItemsWidth();moreButton.children("ul").prepend($(e)),allMenus.push([currentMenu.html(),Math.round(i)])}menuHolder.css("width","")}function calcTotalMenuItemsWidth(){var t=0;return currentMenu.children().each(function(){t+=$(this)[0].getBoundingClientRect().width}),t}function addMoreButton(){for(var t=0;t<=menuChildrenCount;t++){if(currentMenuWidth<=allMenus[0][1]&&currentMenuWidth>=allMenus[t][1]){currentMenu.empty(),currentMenu.append(allMenus[t][0]);return}if(currentMenuWidth>allMenus[0][1]){currentMenu.empty(),currentMenu.append(origMenuContent);return}}}function disableLinks(t){$(t).each(function(){("#"===$(this).attr("href")||"javascript.void(0)"===$(this).attr("href"))&&$(this).click(function(t){t.preventDefault()})})}!function(t){var e,i,n,o,s="mmenu",a="5.6.4";t[s]&&t[s].version>a||(t[s]=function(t,e,i){this.$menu=t,this._api=["bind","init","update","setSelected","getInstance","openPanel","closePanel","closeAllPanels"],this.opts=e,this.conf=i,this.vars={},this.cbck={},"function"==typeof this.___deprecated&&this.___deprecated(),this._initMenu(),this._initAnchors();var n=this.$pnls.children();return this._initAddons(),this.init(n),"function"==typeof this.___debug&&this.___debug(),this},t[s].version=a,t[s].addons={},t[s].uniqueId=0,t[s].defaults={extensions:[],navbar:{add:!0,title:"Menu",titleLink:"panel"},onClick:{setSelected:!0},slidingSubmenus:!0},t[s].configuration={classNames:{divider:"Divider",inset:"Inset",panel:"Panel",selected:"Selected",spacer:"Spacer",vertical:"Vertical"},clone:!1,openingInterval:25,panelNodetype:"ul, ol, div",transitionDuration:400},t[s].prototype={init:function(t){t=t.not("."+e.nopanel),t=this._initPanels(t),this.trigger("init",t),this.trigger("update")},update:function(){this.trigger("update")},setSelected:function(t){this.$menu.find("."+e.listview).children().removeClass(e.selected),t.addClass(e.selected),this.trigger("setSelected",t)},openPanel:function(i){var n=i.parent(),o=this;if(n.hasClass(e.vertical)){var a=n.parents("."+e.subopened);if(a.length)return void this.openPanel(a.first());n.addClass(e.opened),this.trigger("openPanel",i),this.trigger("openingPanel",i),this.trigger("openedPanel",i)}else{if(i.hasClass(e.current))return;var r=this.$pnls.children("."+e.panel),l=r.filter("."+e.current);r.removeClass(e.highest).removeClass(e.current).not(i).not(l).not("."+e.vertical).addClass(e.hidden),t[s].support.csstransitions||l.addClass(e.hidden),i.hasClass(e.opened)?i.nextAll("."+e.opened).addClass(e.highest).removeClass(e.opened).removeClass(e.subopened):(i.addClass(e.highest),l.addClass(e.subopened)),i.removeClass(e.hidden).addClass(e.current),o.trigger("openPanel",i),setTimeout(function(){i.removeClass(e.subopened).addClass(e.opened),o.trigger("openingPanel",i),o.__transitionend(i,function(){o.trigger("openedPanel",i)},o.conf.transitionDuration)},this.conf.openingInterval)}},closePanel:function(t){var i=t.parent();i.hasClass(e.vertical)&&(i.removeClass(e.opened),this.trigger("closePanel",t),this.trigger("closingPanel",t),this.trigger("closedPanel",t))},closeAllPanels:function(){this.$menu.find("."+e.listview).children().removeClass(e.selected).filter("."+e.vertical).removeClass(e.opened);var t=this.$pnls.children("."+e.panel).first();this.$pnls.children("."+e.panel).not(t).removeClass(e.subopened).removeClass(e.opened).removeClass(e.current).removeClass(e.highest).addClass(e.hidden),this.openPanel(t)},togglePanel:function(t){var i=t.parent();i.hasClass(e.vertical)&&this[i.hasClass(e.opened)?"closePanel":"openPanel"](t)},getInstance:function(){return this},bind:function(t,e){this.cbck[t]=this.cbck[t]||[],this.cbck[t].push(e)},trigger:function(){var t=Array.prototype.slice.call(arguments),e=t.shift();if(this.cbck[e])for(var i=0,n=this.cbck[e].length;n>i;i++)this.cbck[e][i].apply(this,t)},_initMenu:function(){this.$menu.attr("id",this.$menu.attr("id")||this.__getUniqueId()),this.conf.clone&&(this.$menu=this.$menu.clone(!0),this.$menu.add(this.$menu.find("[id]")).filter("[id]").each(function(){t(this).attr("id",e.mm(t(this).attr("id")))})),this.$menu.contents().each(function(){3==t(this)[0].nodeType&&t(this).remove()}),this.$pnls=t('<div class="'+e.panels+'" />').append(this.$menu.children(this.conf.panelNodetype)).prependTo(this.$menu),this.$menu.parent().addClass(e.wrapper);var i=[e.menu];this.opts.slidingSubmenus||i.push(e.vertical),this.opts.extensions=this.opts.extensions.length?"mm-"+this.opts.extensions.join(" mm-"):"",this.opts.extensions&&i.push(this.opts.extensions),this.$menu.addClass(i.join(" "))},_initPanels:function(n){var o=this,s=this.__findAddBack(n,"ul, ol");this.__refactorClass(s,this.conf.classNames.inset,"inset").addClass(e.nolistview+" "+e.nopanel),s.not("."+e.nolistview).addClass(e.listview);var a=this.__findAddBack(n,"."+e.listview).children();this.__refactorClass(a,this.conf.classNames.selected,"selected"),this.__refactorClass(a,this.conf.classNames.divider,"divider"),this.__refactorClass(a,this.conf.classNames.spacer,"spacer"),this.__refactorClass(this.__findAddBack(n,"."+this.conf.classNames.panel),this.conf.classNames.panel,"panel");var r=t(),l=n.add(n.find("."+e.panel)).add(this.__findAddBack(n,"."+e.listview).children().children(this.conf.panelNodetype)).not("."+e.nopanel);this.__refactorClass(l,this.conf.classNames.vertical,"vertical"),this.opts.slidingSubmenus||l.addClass(e.vertical),l.each(function(){var i=t(this),n=i;i.is("ul, ol")?(i.wrap('<div class="'+e.panel+'" />'),n=i.parent()):n.addClass(e.panel);var s=i.attr("id");i.removeAttr("id"),n.attr("id",s||o.__getUniqueId()),i.hasClass(e.vertical)&&(i.removeClass(o.conf.classNames.vertical),n.add(n.parent()).addClass(e.vertical)),r=r.add(n)});var h=t("."+e.panel,this.$menu);r.each(function(n){var s,a,r=t(this),l=r.parent(),h=l.children("a, span").first();if(l.is("."+e.panels)||(l.data(i.sub,r),r.data(i.parent,l)),l.children("."+e.next).length||l.parent().is("."+e.listview)&&(s=r.attr("id"),a=t('<a class="'+e.next+'" href="#'+s+'" data-target="#'+s+'" />').insertBefore(h),h.is("span")&&a.addClass(e.fullsubopen)),!r.children("."+e.navbar).length&&!l.hasClass(e.vertical)){l=l.parent().is("."+e.listview)?l.closest("."+e.panel):(h=l.closest("."+e.panel).find('a[href="#'+r.attr("id")+'"]').first()).closest("."+e.panel);var c=!1,d=t('<div class="'+e.navbar+'" />');if(l.length){switch(s=l.attr("id"),o.opts.navbar.titleLink){case"anchor":c=h.attr("href");break;case"panel":case"parent":c="#"+s;break;default:c=!1}
1d.append('<a class="'+e.btn+" "+e.prev+'" href="#'+s+'" data-target="#'+s+'" />').append(t('<a class="'+e.title+'"'+(c?' href="'+c+'"':"")+" />").text(h.text())).prependTo(r),o.opts.navbar.add&&r.addClass(e.hasnavbar)}else o.opts.navbar.title&&(d.append('<a class="'+e.title+'">'+o.opts.navbar.title+"</a>").prependTo(r),o.opts.navbar.add&&r.addClass(e.hasnavbar))}});var c=this.__findAddBack(n,"."+e.listview).children("."+e.selected).removeClass(e.selected).last().addClass(e.selected);c.add(c.parentsUntil("."+e.menu,"li")).filter("."+e.vertical).addClass(e.opened).end().each(function(){t(this).parentsUntil("."+e.menu,"."+e.panel).not("."+e.vertical).first().addClass(e.opened).parentsUntil("."+e.menu,"."+e.panel).not("."+e.vertical).first().addClass(e.opened).addClass(e.subopened)}),c.children("."+e.panel).not("."+e.vertical).addClass(e.opened).parentsUntil("."+e.menu,"."+e.panel).not("."+e.vertical).first().addClass(e.opened).addClass(e.subopened);var d=h.filter("."+e.opened);return d.length||(d=r.first()),d.addClass(e.opened).last().addClass(e.current),r.not("."+e.vertical).not(d.last()).addClass(e.hidden).end().filter(function(){return!t(this).parent().hasClass(e.panels)}).appendTo(this.$pnls),r},_initAnchors:function(){var i=this;o.$body.on(n.click+"-oncanvas","a[href]",function(n){var o=t(this),a=!1,r=i.$menu.find(o).length;for(var l in t[s].addons)if(t[s].addons[l].clickAnchor.call(i,o,r)){a=!0;break}var h=o.attr("href");if(!a&&r&&h.length>1&&"#"==h.slice(0,1))try{var c=t(h,i.$menu);c.is("."+e.panel)&&(a=!0,i[o.parent().hasClass(e.vertical)?"togglePanel":"openPanel"](c))}catch(t){}if(a&&n.preventDefault(),!a&&r&&o.is("."+e.listview+" > li > a")&&!o.is('[rel="external"]')&&!o.is('[target="_blank"]')){i.__valueOrFn(i.opts.onClick.setSelected,o)&&i.setSelected(t(n.target).parent());var d=i.__valueOrFn(i.opts.onClick.preventDefault,o,"#"==h.slice(0,1));d&&n.preventDefault(),i.__valueOrFn(i.opts.onClick.close,o,d)&&i.close()}})},_initAddons:function(){var e;for(e in t[s].addons)t[s].addons[e].add.call(this),t[s].addons[e].add=function(){};for(e in t[s].addons)t[s].addons[e].setup.call(this)},_getOriginalMenuId:function(){var t=this.$menu.attr("id");return t&&t.length&&this.conf.clone&&(t=e.umm(t)),t},__api:function(){var e=this,i={};return t.each(this._api,function(t){var n=this;i[n]=function(){var t=e[n].apply(e,arguments);return void 0===t?i:t}}),i},__valueOrFn:function(t,e,i){return"function"==typeof t?t.call(e[0]):void 0===t&&void 0!==i?i:t},__refactorClass:function(t,i,n){return t.filter("."+i).removeClass(i).addClass(e[n])},__findAddBack:function(t,e){return t.find(e).add(t.filter(e))},__filterListItems:function(t){return t.not("."+e.divider).not("."+e.hidden)},__transitionend:function(t,e,i){var o=!1,s=function(){o||e.call(t[0]),o=!0};t.one(n.transitionend,s),t.one(n.webkitTransitionEnd,s),setTimeout(s,1.1*i)},__getUniqueId:function(){return e.mm(t[s].uniqueId++)}},t.fn[s]=function(a,r){return t[s].glbl||(o={$wndw:t(window),$docu:t(document),$html:t("html"),$body:t("body")},e={},i={},n={},t.each([e,i,n],function(t,e){e.add=function(t){t=t.split(" ");for(var i=0,n=t.length;n>i;i++)e[t[i]]=e.mm(t[i])}}),e.mm=function(t){return"mm-"+t},e.add("wrapper menu panels panel nopanel current highest opened subopened navbar hasnavbar title btn prev next listview nolistview inset vertical selected divider spacer hidden fullsubopen"),e.umm=function(t){return"mm-"==t.slice(0,3)&&(t=t.
1slice(3)),t},i.mm=function(t){return"mm-"+t},i.add("parent sub"),n.mm=function(t){return t+".mm"},n.add("transitionend webkitTransitionEnd click scroll keydown mousedown mouseup touchstart touchmove touchend orientationchange"),t[s]._c=e,t[s]._d=i,t[s]._e=n,t[s].glbl=o),a=t.extend(!0,{},t[s].defaults,a),r=t.extend(!0,{},t[s].configuration,r),this.each(function(){var e=t(this);if(!e.data(s)){var i=new t[s](e,a,r);i.$menu.data(s,i.__api())}})},t[s].support={touch:"ontouchstart"in window||navigator.msMaxTouchPoints||!1,csstransitions:function(){if("undefined"!=typeof Modernizr&&void 0!==Modernizr.csstransitions)return Modernizr.csstransitions;var t=(document.body||document.documentElement).style,e="transition";if("string"==typeof t[e])return!0;var i=["Moz","webkit","Webkit","Khtml","O","ms"];e=e.charAt(0).toUpperCase()+e.substr(1);for(var n=0;n<i.length;n++)if("string"==typeof t[i[n]+e])return!0;return!1}()})}(jQuery),function(t){var e,i,n,o,s="mmenu",a="offCanvas";t[s].addons[a]={setup:function(){if(this.opts[a]){var i=this.opts[a],n=this.conf[a
1];o=t[s].glbl,this._api=t.merge(this._api,["open","close","setPage"]),("top"==i.position||"bottom"==i.position)&&(i.zposition="front"),"string"!=typeof n.pageSelector&&(n.pageSelector="> "+n.pageNodetype),o.$allMenus=(o.$allMenus||t()).add(this.$menu),this.vars.opened=!1;var r=[e.offcanvas];"left"!=i.position&&r.push(e.mm(i.position)),"back"!=i.zposition&&r.push(e.mm(i.zposition)),this.$menu.addClass(r.join(" ")).parent().removeClass(e.wrapper),this.setPage(o.$page),this._initBlocker(),this["_initWindow_"+a](),this.$menu[n.menuInjectMethod+"To"](n.menuWrapperSelector);var l=window.location.hash;if(l){var h=this._getOriginalMenuId();h&&h==l.slice(1)&&this.open()}}},add:function(){e=t[s]._c,i=t[s]._d,n=t[s]._e,e.add("offcanvas slideout blocking modal background opening blocker page"),i.add("style"),n.add("resize")},clickAnchor:function(t,e){if(!this.opts[a])return!1;var i=this._getOriginalMenuId();return i&&t.is('[href="#'+i+'"]')?(this.open(),!0):o.$page?!!((i=o.$page.first().attr("id"))&&t.is('[href="#'+i+'"]'))&&(this.close(),!0):void 0}},t[s].defaults[a]={position:"left",zposition:"back",blockUI:!0,moveBackground:!0},t[s].configuration[a]={pageNodetype:"div",pageSelector:null,noPageSelector:[],wrapPageIfNeeded:!0,menuWrapperSelector:"body",menuInjectMethod:"prepend"},t[s].prototype.open=function(){if(!this.vars.opened){var t=this;this._openSetup(),setTimeout(function(){t._openFinish()},this.conf.openingInterval),this.trigger("open")}},t[s].prototype._openSetup=function(){var s=this,r=this.opts[a];this.closeAllOthers(),o.$page.each(function(){t(this).data(i.style,t(this).attr("style")||"")}),o.$wndw.trigger(n.resize+"-"+a,[!0]);var l=[e.opened];r.blockUI&&l.push(e.blocking),"modal"==r.blockUI&&l.push(e.modal),r.moveBackground&&l.push(e.background),"left"!=r.position&&l.push(e.mm(this.opts[a].position)),"back"!=r.zposition&&l.push(e.mm(this.opts[a].zposition)),this.opts.extensions&&l.push(this.opts.extensions),o.$html.addClass(l.join(" ")),setTimeout(function(){s.vars.opened=!0},this.conf.openingInterval),this.$menu.addClass(e.current+" "+e.opened)},t[s].prototype._openFinish=function(){var t=this;this.__transitionend(o.$page.first(),function(){t.trigger("opened")},this.conf.transitionDuration),o.$html.addClass(e.opening),this.trigger("opening")},t[s].prototype.close=function(){if(this.vars.opened){var n=this;this.__transitionend(o.$page.first(),function(){n.$menu.removeClass(e.current).removeClass(e.opened),o.$html.removeClass(e.opened).removeClass(e.blocking).removeClass(e.modal).removeClass(e.background).removeClass(e.mm(n.opts[a].position)).removeClass(e.mm(n.opts[a].zposition)),n.opts.extensions&&o.$html.removeClass(n.opts.extensions),o.$page.each(function(){t(this).attr("style",t(this).data(i.style))}),n.vars.opened=!1,n.trigger("closed")},this.conf.transitionDuration),o.$html.removeClass(e.opening),this.trigger("close"),this.trigger("closing")}},t[s].prototype.closeAllOthers=function(){o.$allMenus.not(this.$menu).each(function(){var e=t(this).data(s);e&&e.close&&e.close()})}
1,t[s].prototype.setPage=function(i){var n=this,s=this.conf[a];i&&i.length||(i=o.$body.find(s.pageSelector),s.noPageSelector.length&&(i=i.not(s.noPageSelector.join(", "))),i.length>1&&s.wrapPageIfNeeded&&(i=i.wrapAll("<"+this.conf[a].pageNodetype+" />").parent())),i.each(function(){t(this).attr("id",t(this).attr("id")||n.__getUniqueId())}),i.addClass(e.page+" "+e.slideout),o.$page=i,this.trigger("setPage",i)},t[s].prototype["_initWindow_"+a]=function(){o.$wndw.off(n.keydown+"-"+a).on(n.keydown+"-"+a,function(t){return o.$html.hasClass(e.opened)&&9==t.keyCode?(t.preventDefault(),!1):void 0});var t=0;o.$wndw.off(n.resize+"-"+a).on(n.resize+"-"+a,function(i,n){if(1==o.$page.length&&(n||o.$html.hasClass(e.opened))){var s=o.$wndw.height();(n||s!=t)&&(t=s,o.$page.css("minHeight",s))}})},t[s].prototype._initBlocker=function(){var i=this;this.opts[a].blockUI&&(o.$blck||(o.$blck=t('<div id="'+e.blocker+'" class="'+e.slideout+'" />')),o.$blck.appendTo(o.$body).off(n.touchstart+"-"+a+" "+n.touchmove+"-"+a).on(n.touchstart+"-"+a+" "+n.touchmove+"-"+a,function(t){t.preventDefault(),t.stopPropagation(),o.$blck.trigger(n.mousedown+"-"+a)}).off(n.mousedown+"-"+a).on(n.mousedown+"-"+a,function(t){t.preventDefault(),o.$html.hasClass(e.modal)||(i.closeAllOthers(),i.close())}))}}(jQuery),function(t){var e,i,n,o="mmenu",s="scrollBugFix";t[o].addons[s]={setup:function(){var a=this,r=this.opts[s];if(this.conf[s],n=t[o].glbl,t[o].support.touch&&this.opts.offCanvas&&this.opts.offCanvas.blockUI&&("boolean"==typeof r&&(r={fix:r}),"object"!=typeof r&&(r={}),(r=this.opts[s]=t.extend(!0,{},t[o].defaults[s],r)).fix)){var l=this.$menu.attr("id"),h=!1;this.bind("opening",function(){this.$pnls.children("."+e.current).scrollTop(0)}),n.$docu.on(i.touchmove,function(t){a.vars.opened&&t.preventDefault()}),n.$body.on(i.touchstart,"#"+l+"> ."+e.panels+"> ."+e.current,function(t){a.vars.opened&&(h||(h=!0,0===t.currentTarget.scrollTop?t.currentTarget.scrollTop=1:t.currentTarget.scrollHeight===t.currentTarget.scrollTop+t.currentTarget.offsetHeight&&(t.currentTarget.scrollTop-=1),h=!1))}).on(i.touchmove,"#"+l+"> ."+e.panels+"> ."+e.current,function(e){a.vars.opened&&t(this)[0].scrollHeight>t(this).innerHeight()&&e.stopPropagation()}),n.$wndw.on(i.orientationchange,function(){a.$pnls.children("."+e.current).scrollTop(0).css({"-webkit-overflow-scrolling":"auto"}).css({"-webkit-overflow-scrolling":"touch"})})}},add:function(){e=t[o]._c,t[o]._d,i=t[o]._e},clickAnchor:function(t,e){}},t[o].defaults[s]={fix:!0}}(jQuery),function(t){var e,i,n="mmenu",o="autoHeight";t[n].addons[o]={setup:function(){if(this.opts.offCanvas){var i=this.opts[o];if(this.conf[o],t[n].glbl,"boolean"==typeof i&&i&&(i={height:"auto"}),"string"==typeof i&&(i={height:i}),"object"!=typeof i&&(i={}),"auto"==(i=this.opts[o]=t.extend(!0,{},t[n].defaults[o],i)).height||"highest"==i.height){this.$menu.addClass(e.autoheight);var s=function(n){if(this.vars.opened){var o=parseInt(this.$pnls.css("top"),10)||0,s=parseInt(this.$pnls.css("bottom"),10)||0,a=0;this.$menu.addClass(e.measureheight),"auto"==i.height?((n=n||this.$pnls.children("."+e.current)).is("."+e.vertical)&&(n=n.parents("."+e.panel).not("."+e.vertical).first()),a=n.outerHeight()):"highest"==i.height&&this.$pnls.children().each(function(){var i=t(this);i.is("."+e.vertical)&&(i=i.parents("."+e.panel).not("."+e.vertical).first()),a=Math.max(a,i.outerHeight())}),this.$menu.height(a+o+s).removeClass(e.measureheight)}};this.bind("opening",s),"highest"==i.height&&this.bind("init",s),"auto"==i.height&&(this.bind("update",s),this.bind("openPanel",s),this.bind("closePanel",s))}}},add:function(){e=t[n]._c,t[n]._d,i=t[n]._e,e.add("autoheight measureheight"),i.add("resize")},clickAnchor:function(t,e){}},t[n].defaults[o]={height:"default"}}(jQuery),function(t){var e,i,n="mmenu",o="backButton";t[n].addons[o]={setup:function(){if(this.opts.offCanvas){var s=this,a=this.opts[o];if(this.conf[o],i=t[n].glbl,"boolean"==typeof a&&(a={close:a}),"object"!=typeof a&&(a={}),(a=t.extend(!0,{},t[n].defaults[o],a)).close){var r="#"+s.$menu.attr("id");this.bind("opened",function(t){location.hash!=r&&history.pushState(null,document.title,r)}),t(window).on("popstate",function(t){i.$html.hasClass(e.opened)?(t.stopPropagation(),s.close()):location.hash==r&&(t.stopPropagation(),s.open())})}}},add:function(){return window.history&&window.history.pushState?(e=t[n]._c,t[n]._d,void t[n]._e):void(t[n].addons[o].setup=function(){})},clickAnchor:function(t,e){}},t[n].defaults[o]={close:!1}}(jQuery),function(t){var e,i,n="mmenu",o="columns";t[n].addons[o]={setup:function(){var s=this.opts[o];if(this.conf[o],i=t[n].glbl,"boolean"==typeof s&&(s={add:s}),"number"==typeof s&&(s={add:!0,visible:s}),"object"!=typeof s&&(s={}),"number"==typeof s.visible&&(s.visible={min:s.visible,max:s.visible}),(s=this.opts[o]=t.extend(!0,{},t[n].defaults[o],s)).add){s.visible.min=Math.max(1,Math.min(6,s.visible.min)),s.visible.max=Math.max(s.visible.min,Math.min(6,s.visible.max)),this.$menu.addClass(e.columns);for(var a=this.opts.offCanvas?this.$menu.add(i.$html):this.$menu,r=[],l=0;l<=s.visible.max;l++)r.push(e.columns+"-"+l);r=r.join(" ");var h=function(){var t=this.$pnls.children("."+e.panel).filter("."+e.opened).length;t=Math.min(s.visible.max,Math.max(s.visible.min,t)),a.removeClass(r).addClass(e.columns+"-"+t)},c=function(i){this.$pnls.children("."+e.panel).removeClass(r).filter("."+e.subopened).removeClass(e.hidden).add(i).slice(-s.visible.max).each(function(i){t(this).addClass(e.columns+"-"+i)})};this.bind("open",h),this.bind("close",function(){this.opts.offCanvas&&i.$html.removeClass(r)}),this.bind("init",function(t){c.call(this,this.$pnls.children("."+e.current)),s.hideNavbars&&t.removeClass(e.hasnavbar)}),this.bind("openPanel",c),this.bind("openingPanel",h),this.bind("openedPanel",h),this.opts.offCanvas||h.call(this)}},add:function(){e=t[n]._c,t[n]._d,t[n]._e,e.add("columns")},clickAnchor:function(i,n){if(!this.opts[o].add)return!1;if(n){var s=i.attr("href");if(s.length>
11&&"#"==s.slice(0,1))try{if(t(s,this.$menu).is("."+e.panel))for(var a=parseInt(i.closest("."+e.panel).attr("class").split(e.columns+"-")[1].split(" ")[0],10)+1;!1!==a;){var r=this.$pnls.children("."+e.columns+"-"+a);if(!r.length){a=!1;break}a++,r.removeClass(e.subopened).removeClass(e.opened).removeClass(e.current).removeClass(e.highest).addClass(e.hidden)}}catch(t){}}}},t[n].defaults[o]={add:!1,visible:{min:1,max:3},hideNavbars:!1}}(jQuery),function(t){var e,i,n="mmenu",o="counters";t[n].addons[o]={setup:function(){var s=this,a=this.opts[o];this.conf[o],t[n].glbl,"boolean"==typeof a&&(a={add:a,update:a}),"object"!=typeof a&&(a={}),a=this.opts[o]=t.extend(!0,{},t[n].defaults[o],a),this.bind("init",function(e){this.__refactorClass(t("em",e),this.conf.classNames[o].counter,"counter")}),a.add&&this.bind("init",function(n){var o;("panels"===a.addTo?n:n.filter(a.addTo)).each(function(){var n=t(this).data(i.parent);n&&(n.children("em."+e.counter).length||n.prepend(t('<em class="'+e.counter+'" />')))})}),a.update&&this.bind("update",function(){this.$pnls.children("."+e.panel).each(function(){var n=t(this),o=n.data(i.parent);if(o){var a=o.children("em."+e.counter);a.length&&(n=n.children("."+e.listview)).length&&a.html(s.__filterListItems(n.children()).length)}})})},add:function(){e=t[n]._c,i=t[n]._d,t[n]._e,e.add("counter search noresultsmsg")},clickAnchor:function(t,e){}},t[n].defaults[o]={add:!1,addTo:"panels",update:!1},t[n].configuration.classNames[o]={counter:"Counter"}}(jQuery),function(t){var e,i,n="mmenu",o="dividers";t[n].addons[o]={setup:function(){var s=this,a=this.opts[o];if(this.conf[o],t[n].glbl,"boolean"==typeof a&&(a={add:a,fixed:a}),"object"!=typeof a&&(a={}),a=this.opts[o]=t.extend(!0,{},t[n].defaults[o],a),this.bind("init",function(e){this.__refactorClass(t("li",this.$menu),this.conf.classNames[o].collapsed,"collapsed")}),a.add&&this.bind("init",function(i){var n;n="panels"===a.addTo?i:i.filter(a.addTo),t("."+e.divider,n).remove(),n.find("."+e.listview).not("."+e.vertical).each(function(){var i="";s.__filterListItems(t(this).children()).each(function(){var n=t.trim(t(this).children("a, span").text()).slice(0,1).toLowerCase();n!=i&&n.length&&(i=n,t('<li class="'+e.divider+'">'+n+"</li>").insertBefore(this))})})}),a.collapse&&this.bind("init",function(i){t("."+e.divider,i).each(function(){var i=t(this);i.nextUntil("."+e.divider,"."+e.collapsed).length&&(i.children("."+e.subopen).length||(i.wrapInner("<span />"),i.prepend('<a href="#" class="'+e.subopen+" "+e.fullsubopen+'" />')))})}),a.fixed){var r=function(i){if((i=i||this.$pnls.children("."+e.current)).find("."+e.divider).not("."+e.hidden).length){this.$menu.addClass(e.hasdividers);var n=i.scrollTop()||0,o="";i.is(":visible")&&i.find("."+e.divider).not("."+e.hidden).each(function(){t(this).position().top+n<n+1&&(o=t(this).text())}),this.$fixeddivider.text(o)}else this.$menu.removeClass(e.hasdividers)};this.$fixeddivider=t('<ul class="'+e.listview+" "+e.fixeddivider+'"><li class="'+e.divider+'"></li></ul>').prependTo(this.$pnls).children(),this.bind("openPanel",r),this.bind("update",r),this.bind("init",function(e){e.off(i.scroll+"-dividers "+i.touchmove+"-dividers").on(i.scroll+"-dividers "+i.touchmove+"-dividers",function(e){r.call(s,t(this))})})}},add:function(){e=t[n]._c,t[n]._d,i=t[n]._e,e.add("collapsed uncollapsed fixeddivider hasdividers"),i.add("scroll")},clickAnchor:function(t,i){if(this.opts[o].collapse&&i){var n=t.parent();if(n.is("."+e.divider)){var s=n.nextUntil("."+e.divider,"."+e.collapsed);return n.toggleClass(e.opened),s[n.hasClass(e.opened)?"addClass":"removeClass"](e.uncollapsed),!0}}return!1}},t[n].defaults[o]={add:!1,addTo:"panels",fixed:!1,collapse:!1},t[n].configuration.classNames[o]={collapsed:"Collapsed"}}(jQuery),function(t){function e(t,e,i){return e>t&&(t=e),t>i&&(t=i),t}var i,n,o="mmenu",s="dragOpen";t[o].addons[s]={setup:function(){if(this.opts.offCanvas){var a=this,r=this.opts[s],l=this.conf[s];if(n=t[o].glbl,"boolean"==typeof r&&(r={open:r}),"object"!=typeof r&&(r={}),(r=this.opts[s]=t.extend(!0,{},t[o].defaults[s],r)).open){var h,c,d,u,p,f={},m=0,_=!1,g=!1,v=0,y=0;switch(this.opts.offCanvas.position){case"left":case"right":f.events="panleft panright",f.typeLower="x",f.typeUpper="X",g="width";break;case"top":case"bottom":f.events="panup pandown",f.typeLower="y",f.typeUpper="Y",g="height"}switch(this.opts.offCanvas.position){case"right":case"bottom":f.
1negative=!0,u=function(t){t>=n.$wndw[g]()-r.maxStartPos&&(m=1)};break;default:f.negative=!1,u=function(t){t<=r.maxStartPos&&(m=1)}}switch(this.opts.offCanvas.position){case"left":f.open_dir="right",f.close_dir="left";break;case"right":f.open_dir="left",f.close_dir="right";break;case"top":f.open_dir="down",f.close_dir="up";break;case"bottom":f.open_dir="up",f.close_dir="down"}p="front"===this.opts.offCanvas.zposition?function(){return this.$menu}:function(){return t("."+i.slideout)};var b=this.__valueOrFn(r.pageNode,this.$menu,n.$page);"string"==typeof b&&(b=t(b)),new Hammer(b[0],r.vendors.hammer).on("panstart",function(t){u(t.center[f.typeLower]),n.$slideOutNodes=p(),_=f.open_dir}).on(f.events+" panend",function(t){m>0&&t.preventDefault()}).on(f.events,function(t){if(h=t["delta"+f.typeUpper],f.negative&&(h=-h),h!=v&&(_=h>=v?f.open_dir:f.close_dir),(v=h)>r.threshold&&1==m){if(n.$html.hasClass(i.opened))return;m=2,a._openSetup(),a.trigger("opening"),n.$html.addClass(i.dragging),y=e(n.$wndw[g]()*l[g].perc,l[g].min,l[g].max)}2==m&&(c=e(v,10,y)-("front"==a.opts.offCanvas.zposition?y:0),f.negative&&(c=-c),d="translate"+f.typeUpper+"("+c+"px )",n.$slideOutNodes.css({"-webkit-transform":"-webkit-"+d,transform:d}))}).on("panend",function(t){2==m&&(n.$html.removeClass(i.dragging),n.$slideOutNodes.css("transform",""),a[_==f.open_dir?"_openFinish":"close"]()),m=0})}}},add:function(){return"function"!=typeof Hammer||Hammer.VERSION<2?void(t[o].addons[s].setup=function(){}):(i=t[o]._c,t[o]._d,t[o]._e,void i.add("dragging"))},clickAnchor:function(t,e){}},t[o].defaults[s]={open:!1,maxStartPos:100,threshold:50,vendors:{hammer:{}}},t[o].configuration[s]={width:{perc:.8,min:140,max:440},height:{perc:.8,min:140,max:880}}}(jQuery),function(t){var e,i,n,o,s="mmenu",a="dropdown";t[s].addons[a]={setup:function(){if(this.opts.offCanvas){var r=this,l=this.opts[a],h=this.conf[a
1];if(o=t[s].glbl,"boolean"==typeof l&&l&&(l={drop:l}),"object"!=typeof l&&(l={}),"string"==typeof l.position&&(l.position={of:l.position}),(l=this.opts[a]=t.extend(!0,{},t[s].defaults[a],l)).drop){if("string"!=typeof l.position.of){var c=this.$menu.attr("id");c&&c.length&&(this.conf.clone&&(c=e.umm(c)),l.position.of='[href="#'+c+'"]')}if("string"==typeof l.position.of){var d=t(l.position.of);if(d.length){this.$menu.addClass(e.dropdown),l.tip&&this.$menu.addClass(e.tip),l.event=l.event.split(" "),1==l.event.length&&(l.event[1]=l.event[0]),"hover"==l.event[0]&&d.on(n.mouseenter+"-dropdown",function(){r.open()}),"hover"==l.event[1]&&this.$menu.on(n.mouseleave+"-dropdown",function(){r.close()}),this.bind("opening",function(){this.$menu.data(i.style,this.$menu.attr("style")||""),o.$html.addClass(e.dropdown)}),this.bind("closed",function(){this.$menu.attr("style",this.$menu.data(i.style)),o.$html.removeClass(e.dropdown)});var u=function(i,n){var r,c,u=n[0],p=n[1],f="x"==i?"left":"top",m="x"==i?"right":"bottom",_="x"==i?"width":"height",g=null,v=o.$wndw["x"==i?"scrollLeft":"scrollTop"](),y=d.offset()[f]-=v,b=y+d["x"==i?"outerWidth":"outerHeight"](),w=o.$wndw[_](),x=h.offset.button[i]+h.offset.viewport[i];if(l.position[i])switch(l.position[i]){case"left":case"bottom":g="after";break;case"right":case"top":g="before"}return null===g&&(g=w/2>y+(b-y)/2?"after":"before"),"after"==g?(c=w-((r="x"==i?y:b)+x),u[f]=r+h.offset.button[i],u[m]="auto",p.push(e["x"==i?"tipleft":"tiptop"])):(c=(r="x"==i?b:y)-x,u[m]="calc( 100% - "+(r-h.offset.button[i])+"px )",u[f]="auto",p.push(e["x"==i?"tipright":"tipbottom"])),u["x"==i?"maxWidth":"maxHeight"]=Math.min(t[s].configuration[a][_].max,c),[u,p]},p=function(t){if(this.vars.opened){this.$menu.attr("style",this.$menu.data(i.style));var n=[{},[]];n=u.call(this,"y",n),n=u.call(this,"x",n),this.$menu.css(n[0]),l.tip&&this.$menu.removeClass(e.tipleft+" "+e.tipright+" "+e.tiptop+" "+e.tipbottom).addClass(n[1].join(" "))}};this.bind("opening",p),o.$wndw.on(n.resize+"-dropdown",function(t){p.call(r)}),this.opts.offCanvas.blockUI||o.$wndw.on(n.scroll+"-dropdown",function(t){p.call(r)})}}}}},add:function(){e=t[s]._c,i=t[s]._d,n=t[s]._e,e.add("dropdown tip tipleft tipright tiptop tipbottom"),n.add("mouseenter mouseleave resize scroll")},clickAnchor:function(t,e){}},t[s].defaults[a]={drop:!1,event:"click",position:{},tip:!0},t[s].configuration[a]={offset:{button:{x:-10,y:10},viewport:{x:20,y:20}},height:{max:880},width:{max:440}}}(jQuery),function(t){var e,i,n="mmenu",o="fixedElements";t[n].addons[o]={setup:function(){if(this.opts.offCanvas){var e=this.opts[o];this.conf[o],i=t[n].glbl,e=this.opts[o]=t.extend(!0,{},t[n].defaults[o],e);var s=function(t){var e=this.conf.classNames[o].fixed;this.__refactorClass(t.find("."+e),e,"slideout").appendTo(i.$body)};s.call(this,i.$page),this.bind("setPage",s)}},add:function(){e=t[n]._c,t[n]._d,t[n]._e,e.add("fixed")},clickAnchor:function(t,e){}},t[n].configuration.classNames[o]={fixed:"Fixed"}}(jQuery),function(t){var e,i="mmenu",n="iconPanels";t[i].addons[n]={setup:function(){var o=this,s=this.opts[n];if(this.conf[n],t[i].glbl,"boolean"==typeof s&&(s={add:s}),"number"==typeof s&&(s={add:!0,visible:s}),"object"!=typeof s&&(s={}),s=this.opts[n]=t.extend(!0,{},t[i].defaults[n],s),s.visible++,s.add){this.$menu.addClass(e.iconpanel);for(var a=[],r=0;r<=s.visible;r++)a.push(e.iconpanel+"-"+r);a=a.join(" ");var l=function(i){i.hasClass(e.vertical)||o.$pnls.children("."+e.panel).removeClass(a).filter("."+e.subopened).removeClass(e.hidden).add(i).not("."+e.vertical).slice(-s.visible).each(function(i){t(this).addClass(e.iconpanel+"-"+i)})};this.bind("openPanel",l),this.bind("init",function(i){l.call(o,o.$pnls.children("."+e.current)),s.hideNavbars&&i.removeClass(e.hasnavbar),i.not("."+e.vertical).each(function(){t(this).children("."+e.subblocker).length||t(this).prepend('<a href="#'+t(this).closest("."+e.panel).attr("id")+'" class="'+e.subblocker+'" />')})})}},add:function(){e=t[i]._c,t[i]._d,t[i]._e,e.add("iconpanel subblocker")},clickAnchor:function(t,e){}},t[i].defaults[n]={add:!1,visible:3,hideNavbars:!1}}(jQuery),function(t){var e,i="mmenu",n="navbars";t[i].addons[n]={setup:function(){var o=this,s=this.opts[n],a=this.conf[n];if(t[i].glbl,void 0!==s){s instanceof Array||(s=[s]);var r={};for(var l in t.each(s,function(l){var h=s[l];"boolean"==typeof h&&h&&(h={}),"object"!=typeof h&&(h={}
1),void 0===h.content&&(h.content=["prev","title"]),h.content instanceof Array||(h.content=[h.content]);var c=(h=t.extend(!0,{},o.opts.navbar,h)).position,d=h.height;"number"!=typeof d&&(d=1),d=Math.min(4,Math.max(1,d)),"bottom"!=c&&(c="top"),r[c]||(r[c]=0),r[c]++;var u=t("<div />").addClass(e.navbar+" "+e.navbar+"-"+c+" "+e.navbar+"-"+c+"-"+r[c]+" "+e.navbar+"-size-"+d);r[c]+=d-1;for(var p=0,f=0,m=h.content.length;m>f;f++){var _=t[i].addons[n][h.content[f]]||!1;_?p+=_.call(o,u,h,a):((_=h.content[f])instanceof t||(_=t(h.content[f])),u.append(_))}(p+=Math.ceil(u.children().not("."+e.btn).not("."+e.title+"-prev").length/d))>1&&u.addClass(e.navbar+"-content-"+p),u.children("."+e.btn).length&&u.addClass(e.hasbtns),u.prependTo(o.$menu)}),r)o.$menu.addClass(e.hasnavbar+"-"+l+"-"+r[l])}},add:function(){e=t[i]._c,t[i]._d,t[i]._e,e.add("close hasbtns")},clickAnchor:function(t,e){}},t[i].configuration[n]={breadcrumbSeparator:"/"},t[i].configuration.classNames[n]={}}(jQuery),function(t){var e="mmenu";t[e].addons.navbars.breadcrumbs=function(i,n,o){var s=t[e]._c,a=t[e]._d;s.add("breadcrumbs separator");var r=t('<span class="'+s.breadcrumbs+'" />').appendTo(i);this.bind("init",function(e){e.removeClass(s.hasnavbar).each(function(){for(var e=[],i=t(this),n=t('<span class="'+s.breadcrumbs+'"></span>'),r=t(this).children().first(),l=!0;r&&r.length;){r.is("."+s.panel)||(r=r.closest("."+s.panel));var h=r.children("."+s.navbar).children("."+s.title).text();e.unshift(l?"<span>"+h+"</span>":'<a href="#'+r.attr("id")+'">'+h+"</a>"),l=!1,r=r.data(a.parent)}n.append(e.join('<span class="'+s.separator+'">'+o.breadcrumbSeparator+"</span>")).appendTo(i.children("."+s.navbar))})});var l=function(){r.html(this.$pnls.children("."+s.current).children("."+s.navbar).children("."+s.breadcrumbs).html())};return this.bind("openPanel",l),this.bind("init",l),0}}(jQuery),function(t){var e="mmenu";t[e].addons.navbars.close=function(i,n){var o=t[e]._c,s=t[e].glbl,a=t('<a class="'+o.close+" "+o.btn+'" href="#" />').appendTo(i),r=function(t){a.attr("href","#"+t.attr("id"))};return r.call(this,s.$page),this.bind("setPage",r),-1}}(jQuery),function(t){var e="mmenu",i="navbars";t[e].addons[i].next=function(n,o){var s,a,r=t[e]._c,l=t('<a class="'+r.next+" "+r.btn+'" href="#" />').appendTo(n),h=function(t){var e=(t=t||this.$pnls.children("."+r.current)).find("."+this.conf.classNames[i].panelNext);s=e.attr("href"),a=e.html(),l[s?"attr":"removeAttr"]("href",s),l[s||a?"removeClass":"addClass"](r.hidden),l.html(a)};return this.bind("openPanel",h),this.bind("init",function(){h.call(this)}),-1},t[e].configuration.classNames[i].panelNext="Next"}(jQuery),function(t){var e="mmenu",i="navbars";t[e].addons[i].prev=function(n,o){var s=t[e]._c,a=t('<a class="'+s.prev+" "+s.btn+'" href="#" />').appendTo(n);this.bind("init",function(t){t.removeClass(s.hasnavbar).children("."+s.navbar).addClass(s.hidden)});var r,l,h=function(t){if(!(t=t||this.$pnls.children("."+s.current)).hasClass(s.vertical)){var e=t.find("."+this.conf.classNames[i].panelPrev);e.length||(e=t.children("."+s.navbar).children("."+s.prev)),r=e.attr("href"),l=e.html(),a[r?"attr":"removeAttr"]("href",r),a[r||l?"removeClass":"addClass"](s.hidden),a.html(l)}};return this.bind("openPanel",h),this.bind("init",function(){h.call(this)}),-1},t[e].configuration.classNames[i].panelPrev="Prev"}(jQuery),function(t){var e="mmenu";t[e].addons.navbars.searchfield=function(i,n){var o=t[e]._c,s=t('<div class="'+o.search+'" />').appendTo(i);return"object"!=typeof this.opts.searchfield&&(this.opts.searchfield={}),this.opts.searchfield.add=!0,this.opts.searchfield.addTo=s,0}}(jQuery),function(t){var e="mmenu",i="navbars";t[e].addons[i].title=function(n,o){var s,a,r=t[e]._c,l=t('<a class="'+r.title+'" />').appendTo(n),h=function(t){if(!(t=t||this.$pnls.children("."+r.current)).hasClass(r.vertical)){var e=t.find("."+this.conf.classNames[i].panelTitle);e.length||(e=t.children("."+r.navbar).children("."+r.title)),s=e.attr("href"),a=e.html()||o.title,l[s?"attr":"removeAttr"]("href",s),l[s||a?"removeClass":"addClass"](r.hidden),l.html(a)}};return this.bind("openPanel",h),this.bind("init",function(t){h.call(this)}),0},t[e].configuration.classNames[i].panelTitle="Title"}(jQuery),function(t){function e(t,e,i){t.prop("aria-"+e,i)[i?"attr":"removeAttr"]("aria-"+e,"true")}function i(t){return'<span class="'+n.sronly+'">'+t+"</span>"}var n,o="mmenu",s="screenReader";t[o].addons[s]={setup:function(){var a=this.opts[s],r=this.conf[s];if(t[o].glbl,"boolean"==typeof a&&(a={aria:a,text:a}),"object"!=typeof a&&(a={}),(a=this.opts[s]=t.extend(!0,{},t[o].defaults[s],a)).aria){if(this.opts.offCanvas){var l=function(){e(this.$menu,"hidden",!0)};this.bind("open",function(){e(this.$menu,"hidden",!1)}),this.bind("close",l),l.call(this)}var h=function(){e(this.$menu.find("."+n.hidden),"hidden",!0),e(this.$menu.find('[aria-hidden="true"]').not("."+n.hidden),"hidden",!1)};this.bind("update",h),this.bind("openPanel",h),this.bind("openPanel",function(t){e(this.$pnls.children("."+n.panel).not(t).not("."+n.hidden),"hidden",!0),e(t,"hidden",!1)});var c=function(t){e(t.find("."+n.prev+", ."+n.next),"haspopup",!0)};this.bind("init",c),c.call(this,this.$menu.children("."+n.navbar))}if(a.text){var d=function(e){e.children("."+n.navbar).children("."+n.prev).html(i(r.text.closeSubmenu)).end().children("."+n.next).html(i(r.text.openSubmenu)).end().children("."+n.close).html(i(r.text.closeMenu)),e.is("."+n.panel)&&e.find("."+n.listview).find("."+n.next).each(function(){t(this).html(i(r.text[t(this).parent().is("."+n.vertical)?"toggleSubmenu":"openSubmenu"]))})};this.bind("init",d),d.call(this,this.$menu)}},add:function(){n=t[o]._c,t[o]._d,t[o]._e,n.add("sronly")},clickAnchor:function(t,e){}},t[o].defaults[s]={aria:!1,text:!1},t[o].configuration[s]={text:{closeMenu:"Close menu",closeSubmenu:"Close submenu",openSubmenu:"Open submenu",toggleSubmenu:"Toggle submenu"}}}(jQuery),function(t){var e,i,n,o="mmenu",s="searchfield";t[o].addons[s]={setup:function(){var a=this,r=this.opts[s],l=this.conf[s];t[o].glbl,"boolean"==typeof r&&(r={add:r}),"object"!=typeof r&&(r={}),"boolean"==typeof r.resultsPanel&&(r.resultsPanel={add:r.resultsPanel}),r=this.opts[s]=t.extend(!0,{},t[o].defaults[s],r),l=this.conf[s]=t.extend(!0,{},t[o].configuration[s],l),this.bind("close",function(){this.$menu.find("."+e.search).find("input").blur()}
1),this.bind("init",function(o){if(r.add){var h;if(("panels"===r.addTo?o:this.$menu.find(r.addTo)).each(function(){var i=t(this);if(!i.is("."+e.panel)||!i.is("."+e.vertical)){if(!i.children("."+e.search).length){var o,s=a.__valueOrFn(l.clear,i),h=a.__valueOrFn(l.form,i),c=a.__valueOrFn(l.input,i),d=a.__valueOrFn(l.submit,i),u=t("<"+(h?"form":"div")+' class="'+e.search+'" />'),p=t('<input placeholder="'+r.placeholder+'" type="text" autocomplete="off" />');if(u.append(p),c)for(o in c)p.attr(o,c[o]);if(s&&t('<a class="'+e.btn+" "+e.clear+'" href="#" />').appendTo(u).on(n.click+"-searchfield",function(t){t.preventDefault(),p.val("").trigger(n.keyup+"-searchfield")}),h){for(o in h)u.attr(o,h[o]);d&&!s&&t('<a class="'+e.btn+" "+e.next+'" href="#" />').appendTo(u).on(n.click+"-searchfield",function(t){t.preventDefault(),u.submit()})}i.hasClass(e.search)?i.replaceWith(u):i.prepend(u).addClass(e.hassearch)}if(r.noResults&&(i.closest("."+e.panel).length||(i=a.$pnls.children("."+e.panel).first()),!i.children("."+e.noresultsmsg).length)){var f=i.children("."+e.listview).first();t('<div class="'+e.noresultsmsg+" "+e.hidden+'" />').append(r.noResults)[f.length?"insertAfter":"prependTo"](f.length?f:i)}}}),r.search){if(r.resultsPanel.add){r.showSubPanels=!1;var c=this.$pnls.children("."+e.resultspanel);c.length||(c=t('<div class="'+e.panel+" "+e.resultspanel+" "+e.hidden+'" />').appendTo(this.$pnls).append('<div class="'+e.navbar+" "+e.hidden+'"><a class="'+e.title+'">'+r.resultsPanel.title+"</a></div>").append('<ul class="'+e.listview+'" />').append(this.$pnls.find("."+e.noresultsmsg).first().clone()),this.init(c))}this.$menu.find("."+e.search).each(function(){var o,l,h=t(this),d=h.closest("."+e.panel).length;d?l=o=h.closest("."+e.panel):(o=t("."+e.panel,a.$menu),l=a.$menu),r.resultsPanel.add&&(o=o.not(c));var u=h.children("input"),p=a.__findAddBack(o,"."+e.listview).children("li"),f=p.filter("."+e.divider),m=a.__filterListItems(p),_="",g=function(){var n=u.val().toLowerCase();if(n!=_){if(_=n,r.resultsPanel.add&&c.children("."+e.listview).empty(),o.scrollTop(0),m.add(f).addClass(e.hidden).find("."+e.fullsubopensearch).removeClass(e.fullsubopen+" "+e.fullsubopensearch),m.each(function(){var n=t(this),o="a";(r.showTextItems||r.showSubPanels&&n.find("."+e.next))&&(o="a, span"),(n.data(i.searchtext)||n.children(o).text()).toLowerCase().indexOf(_)>-1&&n.add(n.prevAll("."+e.divider).first()).removeClass(e.hidden)}),r.showSubPanels&&o.each(function(n){var o=t(this);a.__filterListItems(o.find("."+e.listview).children()).each(function(){var n=t(this),o=n.data(i.sub);n.removeClass(e.nosubresults),o&&o.find("."+e.listview).children().removeClass(e.hidden)})}),r.resultsPanel.add){if(""===_)this.closeAllPanels(),this.openPanel(this.$pnls.children("."+e.subopened).last());else{var s=t();o.each(function(){var i=a.__filterListItems(t(this).find("."+e.listview).children()).not("."+e.hidden).clone(!0);i.length&&(r.resultsPanel.dividers&&(s=s.add('<li class="'+e.divider+'">'+t(this).children("."+e.navbar).text()+"</li>")),s=s.add(i))}),s.find("."+e.next).remove(),c.children("."+e.listview).append(s),this.openPanel(c)}}else t(o.get().reverse()).each(function(n){var o=t(this),s=o.data(i.parent);s&&(a.__filterListItems(o.find("."+e.listview).children()).length?(s.hasClass(e.hidden)&&s.children("."+e.next).not("."+e.fullsubopen).addClass(e.fullsubopen).addClass(e.fullsubopensearch),s.removeClass(e.hidden).removeClass(e.nosubresults).prevAll("."+e.divider).first().removeClass(e.hidden)):d||(o.hasClass(e.opened)&&setTimeout(function(){a.openPanel(s.closest("."+e.panel))},(n+1)*(1.5*a.conf.openingInterval)),s.addClass(e.nosubresults)))});l.find("."+e.noresultsmsg)[m.not("."+e.hidden).length?"addClass":"removeClass"](e.hidden),this.update()}};u.off(n.keyup+"-"+s+" "+n.change+"-"+s).on(n.keyup+"-"+s,function(t){(function(t){switch(t){case 9:case 16:case 17:case 18:case 37:case 38:case 39:case 40:return!0}return!1})(t.keyCode)||g.call(a)}).on(n.change+"-"+s,function(t){g.call(a)});var v=h.children("."+e.btn);v.length&&u.on(n.keyup+"-"+s,function(t){v[u.val().length?"removeClass":"addClass"](e.hidden)}),u.trigger(n.keyup+"-"+s)})}}})},add:function(){e=t[o]._c,i=t[o]._d,n=t[o]._e,e.add("clear search hassearch resultspanel noresultsmsg noresults nosubresults fullsubopensearch"),i.add("searchtext"),n.add("change keyup")},clickAnchor:function(t,e){}},t[o].defaults[s]={add:!1,addTo:"panels",placeholder:"Search",noResults:"No results found.",resultsPanel:{add:!1,dividers:!0,title:"Search results"},search:!0,showTextItems:!1,showSubPanels:!0},t[o].configuration[s]={clear:!1,form:!1,input:!1,submit:!1}}(jQuery),function(t){var e,i,n="mmenu",o="sectionIndexer";t[n].addons[o]={setup:function(){var s=this,a=this.opts[o];this.conf[o],t[n].glbl,"boolean"==typeof a&&(a={add:a}),"object"!=typeof a&&(a={}),a=this.opts[o]=t.extend(!0,{},t[n].defaults[o],a),this.bind("init",function(n){if(a.add){var o;("panels"===a.addTo?n:t(a.addTo,this.$menu).filter("."+e.panel)).find("."+e.divider).closest("."+e.panel).addClass(e.hasindexer)}if(!this.$indexer&&this.$pnls.children("."+e.hasindexer).length){this.$indexer=t('<div class="'+e.indexer+'" />').prependTo(this.$pnls).append('<a href="#a">a</a><a href="#b">b</a><a href="#c">c</a><a href="#d">d</a><a href="#e">e</a><a href="#f">f</a><a href="#g">g</a><a href="#h">h</a><a href="#i">i</a><a href="#j">j</a><a href="#k">k</a><a href="#l">l</a><a href="#m">m</a><a href="#n">n</a><a href="#o">o</a><a href="#p">p</a><a href="#q">q</a><a href="#r">r</a><a href="#s">s</a><a href="#t">t</a><a href="#u">u</a><a href="#v">v</a><a href="#w">w</a><a href="#x">x</a><a href="#y">y</a><a href="#z">z</a>'),this.$indexer.children().on(i.mouseover+"-sectionindexer "+e.touchstart+"-sectionindexer",function(i){var n=t(this).attr("href").slice(1),o=s.$pnls.children("."+e.current),a=o.find("."+e.listview),r=!1,l=o.scrollTop();o.scrollTop(0),a.children("."+e.divider).not("."+e.hidden).each(function(){!1===r&&n==t(this).text().slice(0,1).toLowerCase()&&(r=t(this).position().top)}),o.scrollTop(!1!==r?r:l)});var r=function(t){s.$menu[(t.hasClass(e.hasindexer)?"add":"remove")+"Class"](e.hasindexer)};this.bind("openPanel",r),r.call(this,this.$pnls.children("."+e.current))}})},add:function(){e=t[n]._c,t[n]._d,i=t[n]._e,e.add("indexer hasindexer"),i.add("mouseover touchstart")},clickAnchor:function(t,i){return!!t.parent().is("."+e.indexer)||void 0}},t[n].defaults[o]={add:!1,addTo:"panels"}}(jQuery),function(t){var e,i,n="mmenu",o="setSelected";t[n].addons[o]={setup:function(){var s=this.opts[o];if(this.conf[o],t[n].glbl,"boolean"==typeof s&&(s={hover:s,parent:s}),"object"!=typeof s&&(s={}),(s=this.opts[o]=t.extend(!0,{},t[n].defaults[o],s)).current||this.bind("init",function(t){t.find("."+e.listview).children("."+e.selected).removeClass(e.selected)}),s.hover&&this.$menu.addClass(e.hoverselected),s.parent){this.$menu.addClass(e.parentselected);var a=function(t){this.$pnls.find("."+e.listview).find("."+e.next).removeClass(e.selected);for(var n=t.data(i.parent);n&&n.length;)n=n.children("."+e.next).addClass(e.selected).closest("."+e.panel).data(i.parent)};this.bind("openedPanel",a),this.bind("init",function(t){a.call(this,this.$pnls.children("."+e.current))})}},add:function(){e=t[n]._c,i=t[n]._d,t[n]._e,e.add("hoverselected parentselected")},clickAnchor:function(t,e){}},t[n].defaults[o]={current:!0,hover:!1,parent:!1}}(jQuery),function(t){var e,i="mmenu",n="toggles";t[i].addons[n]={setup:function(){var o=this;this.opts[n],this.conf[n],t[i].glbl,this.bind("init",function(i){this.__refactorClass(t("input",i),this.conf.classNames[n].toggle,"toggle"),this.__refactorClass(t("input",i),this.conf.classNames[n].check,"check"),t("input."+e.toggle+", input."+e.check,i).each(function(){var i=t(this),n=i.
1closest("li"),s=i.hasClass(e.toggle)?"toggle":"check",a=i.attr("id")||o.__getUniqueId();n.children('label[for="'+a+'"]').length||(i.attr("id",a),n.prepend(i),t('<label for="'+a+'" class="'+e[s]+'"></label>').insertBefore(n.children("a, span").last()))})})},add:function(){e=t[i]._c,t[i]._d,t[i]._e,e.add("toggle check")},clickAnchor:function(t,e){}},t[i].configuration.classNames[n]={toggle:"Toggle",check:"Check"}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){var e=Array.prototype.slice,i=Array.prototype.splice,n={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",widthFromWrapper:!0,responsiveWidth:!1,zIndex:1e3},o=t(window),s=t(document),a=[],r=o.height(),l=function(){for(var e=o.scrollTop(),i=s.height(),n=i-r,l=e>n?n-e:0,h=0,c=a.length;h<c;h++){var d=a[h],u=d.stickyWrapper.offset().top-d.topSpacing-l;if(d.stickyWrapper.css("height",d.stickyElement.outerHeight()),e<=u)null!==d.currentTop&&(d.stickyElement.css({width:"",position:"",top:"","z-index":""}),d.stickyElement.parent().removeClass(d.className),d.stickyElement.trigger("sticky-end",[d]),d.currentTop=null);else{var p,f=i-d.stickyElement.outerHeight()-d.topSpacing-d.bottomSpacing-e-l;f<0?f+=d.topSpacing:f=d.topSpacing,d.currentTop!==f&&(d.getWidthFrom?p=t(d.getWidthFrom).width()||null:d.widthFromWrapper&&(p=d.stickyWrapper.width()),null==p&&(p=d.stickyElement.width()),d.stickyElement.css("width",p).css("position","fixed").css("top",f).css("z-index",d.zIndex),d.stickyElement.parent().addClass(d.className),null===d.currentTop?d.stickyElement.trigger("sticky-start",[d]):d.stickyElement.trigger("sticky-update",[d]),d.currentTop===d.topSpacing&&d.currentTop>f||null===d.currentTop&&f<d.topSpacing?d.stickyElement.trigger("sticky-bottom-reached",[d]):null!==d.currentTop&&f===d.topSpacing&&d.currentTop<f&&d.stickyElement.trigger("sticky-bottom-unreached",[d]),d.currentTop=f);var m=d.stickyWrapper.parent();d.stickyElement.offset().top+d.stickyElement.outerHeight()>=m.offset().top+m.outerHeight()&&d.stickyElement.offset().top<=d.topSpacing?d.stickyElement.css("position","absolute").css("top","").css("bottom",0).css("z-index",""):d.stickyElement.css("position","fixed").css("top",f).css("bottom","").css("z-index",d.zIndex)}}},h=function(){r=o.height();for(var e=0,i=a.length;e<i;e++){var n=a[e],s=null;n.getWidthFrom?n.responsiveWidth&&(s=t(n.getWidthFrom).width()):n.widthFromWrapper&&(s=n.stickyWrapper.width()),null!=s&&n.stickyElement.css("width",s)}},c={init:function(e){var i=t.extend({},n,e);return this.each(function(){var e=t(this),o=e.attr("id"),s=o?o+"-"+n.wrapperClassName:n.wrapperClassName,r=t("<div></div>").attr("id",s).addClass(i.wrapperClassName);e.wrapAll(function(){if(0==t(this).parent("#"+s).length)return r});var l=e.parent();i.center&&l.css({width:e.outerWidth(),marginLeft:"auto",marginRight:"auto"}),"right"===e.css("float")&&e.css({float:"none"}).parent().css({float:"right"}),i.stickyElement=e,i.stickyWrapper=l,i.currentTop=null,a.push(i),c.setWrapperHeight(this),c.setupChangeListeners(this)})},setWrapperHeight:function(e){var i=t(e),n=i.parent();n&&n.css("height",i.outerHeight())},setupChangeListeners:function(t){window.MutationObserver?new window.MutationObserver(function(e){(e[0].addedNodes.length||e[0].removedNodes.length)&&c.setWrapperHeight(t)}).observe(t,{subtree:!0,childList:!0}):window.addEventListener?(t.addEventListener("DOMNodeInserted",function(){c.setWrapperHeight(t)},!1),t.addEventListener("DOMNodeRemoved",function(){c.setWrapperHeight(t)},!1)):window.attachEvent&&(t.attachEvent("onDOMNodeInserted",function(){c.setWrapperHeight(t)}),t.attachEvent("onDOMNodeRemoved",function(){c.setWrapperHeight(t)}))},update:l,unstick:function(e){return this.each(function(){for(var e=t(this),n=-1,o=a.length;o-- >0;)a[o].stickyElement.get(0)===this&&(i.call(a,o,1),n=o);-1!==n&&(e.unwrap(),e.css({width:"",position:"",top:"",float:"","z-index":""}))})}};window.addEventListener?(window.addEventListener("scroll",l,!1),window.addEventListener("resize",h,!1)):window.attachEvent&&(window.attachEvent("onscroll",l),window.attachEvent("onresize",h)),t.fn.sticky=function(i){return c[i]?c[i].apply(this,e.call(arguments,1
1)):"object"!=typeof i&&i?void t.error("Method "+i+" does not exist on jQuery.sticky"):c.init.apply(this,arguments)},t.fn.unstick=function(i){return c[i]?c[i].apply(this,e.call(arguments,1)):"object"!=typeof i&&i?void t.error("Method "+i+" does not exist on jQuery.sticky"):c.unstick.apply(this,arguments)},t(function(){setTimeout(l,0)})}),function(t,e,i,n){"use strict";var o=i("html"),s=i(t),a=i(e),r=i.fancybox=function(){r.open.apply(this,arguments)},l=navigator.userAgent.match(/msie/i),h=null,c=n!==e.createTouch,d=function(t){return t&&t.hasOwnProperty&&t instanceof i},u=function(t){return t&&"string"===i.type(t)},p=function(t){return u(t)&&t.indexOf("%")>0},f=function(t,e){var i=parseInt(t,10)||0;return e&&p(t)&&(i=r.getViewport()[e]/100*i),Math.ceil(i)},m=function(t,e){return f(t,e)+"px"};i.extend(r,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!c,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(l?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:i.noop,beforeLoad:i.noop,afterLoad:i.noop,beforeShow:i.noop,afterShow:i.noop,beforeChange:i.noop,beforeClose:i.noop,afterClose:i.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(t,e){if(t&&(i.isPlainObject(e)||(e={}),!1!==r.close(!0)))return i.isArray(t)||(t=d(t)?i(t).get():[t]),i.each(t,function(o,s){var a,l,h,c,p,f,m,_={};"object"===i.type(s)&&(s.nodeType&&(s=i(s)),d(s)?(_={href:s.data("fancybox-href")||s.attr("href"),title:s.data("fancybox-title")||s.attr("title"),isDom:!0,element:s},i.metadata&&i.extend(!0,_,s.metadata())):_=s),a=e.href||_.href||(u(s)?s:null),l=n!==e.title?e.title:_.title||"",(c=(h=e.content||_.content)?"html":e.type||_.type)||!_.isDom||(c=s.data("fancybox-type"))||(c=(p=s.prop("class").match(/fancybox\.(\w+)/))?p[1]:null),u(a)&&(!c&&(r.isImage(a)?c="image":r.isSWF(a)?c="swf":"#"===a.charAt(0)?c="inline":u(s)&&(c="html",h=s)),"ajax"===c&&(a=(f=a.split(/\s+/,2)).shift(),m=f.shift())),h||("inline"===c?a?h=i(u(a)?a.replace(/.*(?=#[^\s]+$)/,""):a):_.isDom&&(h=s):"html"===c?h=a:c||a||!_.isDom||(c="inline",h=s)),i.extend(_,{href:a,type:c,content:h,title:l,selector:m}),t[o]=_}),r.opts=i.extend(!0,{}
1,r.defaults,e),n!==e.keys&&(r.opts.keys=!!e.keys&&i.extend({},r.defaults.keys,e.keys)),r.group=t,r._start(r.opts.index)},cancel:function(){var t=r.coming;t&&!1!==r.trigger("onCancel")&&(r.hideLoading(),r.ajaxLoad&&r.ajaxLoad.abort(),r.ajaxLoad=null,r.imgPreload&&(r.imgPreload.onload=r.imgPreload.onerror=null),t.wrap&&t.wrap.stop(!0,!0).trigger("onReset").remove(),r.coming=null,r.current||r._afterZoomOut(t))},close:function(t){r.cancel(),!1!==r.trigger("beforeClose")&&(r.unbindEvents(),r.isActive&&(r.isOpen&&!0!==t?(r.isOpen=r.isOpened=!1,r.isClosing=!0,i(".fancybox-item, .fancybox-nav").remove(),r.wrap.stop(!0,!0).removeClass("fancybox-opened"),r.transitions[r.current.closeMethod]()):(i(".fancybox-wrap").stop(!0).trigger("onReset").remove(),r._afterZoomOut())))},play:function(t){var e=function(){clearTimeout(r.player.timer)},i=function(){e(),r.current&&r.player.isActive&&(r.player.timer=setTimeout(r.next,r.current.playSpeed))},n=function(){e(),a.unbind(".player"),r.player.isActive=!1,r.trigger("onPlayEnd")};!0!==t&&(r.player.isActive||!1===t)?n():r.current&&(r.current.loop||r.current.index<r.group.length-1)&&(r.player.isActive=!0,a.bind({"onCancel.player beforeClose.player":n,"onUpdate.player":i,"beforeLoad.player":e}),i(),r.trigger("onPlayStart"))},next:function(t){var e=r.current;e&&(u(t)||(t=e.direction.next),r.jumpto(e.index+1,t,"next"))},prev:function(t){var e=r.current;e&&(u(t)||(t=e.direction.prev),r.jumpto(e.index-1,t,"prev"))},jumpto:function(t,e,i){var o=r.current;o&&(t=f(t),r.direction=e||o.direction[t>=o.index?"next":"prev"],r.router=i||"jumpto",o.loop&&(t<0&&(t=o.group.length+t%o.group.length),t%=o.group.length),n!==o.group[t]&&(r.cancel(),r._start(t)))},reposition:function(t,e){var n,o=r.current,s=o?o.wrap:null;s&&(n=r._getPosition(e),t&&"scroll"===t.type?(delete n.position,s.stop(!0,!0).animate(n,200)):(s.css(n),o.pos=i.extend({},o.dim,n)))},update:function(t){var e=t&&t.type,i=!e||"orientationchange"===e;i&&(clearTimeout(h),h=null),r.isOpen&&!h&&(h=setTimeout(function(){var n=r.current;n&&!r.isClosing&&(r.wrap.removeClass("fancybox-tmp"),(i||"load"===e||"resize"===e&&n.autoResize)&&r._setDimension(),"scroll"===e&&n.canShrink||r.reposition(t),r.trigger("onUpdate"),h=null)},i&&!c?0:300))},toggle:function(t){r.isOpen&&(r.current.fitToView="boolean"===i.type(t)?t:!r.current.fitToView,c&&(r.wrap.removeAttr("style").addClass("fancybox-tmp"),r.trigger("onUpdate")),r.update())},hideLoading:function(){a.unbind(".loading"),i("#fancybox-loading").remove()},showLoading:function(){var t,e;r.hideLoading(),t=i('<div id="fancybox-loading"><div></div></div>').click(r.cancel).appendTo("body"),a.bind("keydown.loading",function(t){27===(t.which||t.keyCode)&&(t.preventDefault(),r.cancel())}),r.defaults.fixed||(e=r.getViewport(),t.css({position:"absolute",top:.5*e.h+e.y,left:.5*e.w+e.x}))},getViewport:function(){var e=r.current&&r.current.locked||!1,i={x:s.scrollLeft(),y:s.scrollTop()};return e?(i.w=e[0].clientWidth,i.h=e[0].clientHeight):(i.w=c&&t.innerWidth?t.innerWidth:s.width(),i.h=c&&t.innerHeight?t.innerHeight:s.height()),i},unbindEvents:function(){r.wrap&&d(r.wrap)&&r.wrap.unbind(".fb"),a.unbind(".fb"),s.unbind(".fb")},bindEvents:function(){var t,e=r.current;e&&(s.bind("orientationchange.fb"+(c?"":" resize.fb")+(e.autoCenter&&!e.locked?" scroll.fb":""),r.update),(t=e.keys)&&a.bind("keydown.fb",function(o){var s=o.which||o.keyCode,a=o.target||o.srcElement;if(27===s&&r.coming)return!1;o.ctrlKey||o.altKey||o.shiftKey||o.metaKey||a&&(a.type||i(a).is("[contenteditable]"))||i.each(t,function(t,a){return e.group.length>1&&n!==a[s]?(r[t](a[s]),o.preventDefault(),!1):i.inArray(s,a)>-1?(r[t](),o.preventDefault(),!1):void 0})}),i.fn.mousewheel&&e.mouseWheel&&r.wrap.bind("mousewheel.fb",function(t,n,o,s){for(var a,l=i(t.target||null),h=!1;l.length&&!(h||l.is(".fancybox-skin")||l.is(".fancybox-wrap"));)h=(a=l[0])&&!(a.style.overflow&&"hidden"===a.style.overflow)&&(a.clientWidth&&a.scrollWidth>a.clientWidth||a.clientHeight&&a.scrollHeight>a.clientHeight),l=i(l).parent();0===n||h||!(r.group.length>1)||e.canShrink||(s>0||o>0?r.prev(s>0?"down":"left"):(s<0||o<0)&&r.next(s<0?"up":"right"),t.preventDefault())}))},trigger:function(t,e){var n,o=e||r.coming||r.current;if(o){if(i.isFunction(o[t])&&(n=o[t].apply(o,Array.prototype.slice.call(arguments,1
1))),!1===n)return!1;o.helpers&&i.each(o.helpers,function(e,n){n&&r.helpers[e]&&i.isFunction(r.helpers[e][t])&&r.helpers[e][t](i.extend(!0,{},r.helpers[e].defaults,n),o)}),a.trigger(t)}},isImage:function(t){return u(t)&&t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(t){return u(t)&&t.match(/\.(swf)((\?|#).*)?$/i)},_start:function(t){var e,n,o,s,a,l={};if(t=f(t),!(e=r.group[t]||null))return!1;if(s=(l=i.extend(!0,{},r.opts,e)).margin,a=l.padding,"number"===i.type(s)&&(l.margin=[s,s,s,s]),"number"===i.type(a)&&(l.padding=[a,a,a,a]),l.modal&&i.extend(!0,l,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),l.autoSize&&(l.autoWidth=l.autoHeight=!0),"auto"===l.width&&(l.autoWidth=!0),"auto"===l.height&&(l.autoHeight=!0),l.group=r.group,l.index=t,r.coming=l,!1===r.trigger("beforeLoad")){r.coming=null;return}if(o=l.type,n=l.href,!o)return r.coming=null,!!r.current&&!!r.router&&"jumpto"!==r.router&&(r.current.index=t,r[r.router](r.direction));if(r.isActive=!0,("image"===o||"swf"===o)&&(l.autoHeight=l.autoWidth=!1,l.scrolling="visible"),"image"===o&&(l.aspectRatio=!0),"iframe"===o&&c&&(l.scrolling="scroll"),l.wrap=i(l.tpl.wrap).addClass("fancybox-"+(c?"mobile":"desktop")+" fancybox-type-"+o+" fancybox-tmp "+l.wrapCSS).appendTo(l.parent||"body"),i.extend(l,{skin:i(".fancybox-skin",l.wrap),outer:i(".fancybox-outer",l.wrap),inner:i(".fancybox-inner",l.wrap)}),i.each(["Top","Right","Bottom","Left"],function(t,e){l.skin.css("padding"+e,m(l.padding[t]))}),r.trigger("onReady"),"inline"===o||"html"===o){if(!l.content||!l.content.length)return r._error("content")}else if(!n)return r._error("href");"image"===o?r._loadImage():"ajax"===o?r._loadAjax():"iframe"===o?r._loadIframe():r._afterLoad()},_error:function(t){i.extend(r.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:t,content:r.coming.tpl.error}),r._afterLoad()},_loadImage:function(){var t=r.imgPreload=new Image;t.onload=function(){this.onload=this.onerror=null,r.coming.width=this.width/r.opts.pixelRatio,r.coming.height=this.height/r.opts.pixelRatio,r._afterLoad()},t.onerror=function(){this.onload=this.onerror=null,r._error("image")},t.src=r.coming.href,!0!==t.complete&&r.showLoading()},_loadAjax:function(){var t=r.coming;r.showLoading(),r.ajaxLoad=i.ajax(i.extend({},t.ajax,{url:t.href,error:function(t,e){r.coming&&"abort"!==e?r._error("ajax",t):r.hideLoading()},success:function(e,i){"success"===i&&(t.content=e,r._afterLoad())}}))},_loadIframe:function(){var t=r.coming,e=i(t.tpl.iframe.replace(/\{rnd\}/g,new Date().getTime())).attr("scrolling",c?"auto":t.iframe.scrolling).attr("src",t.href);i(t.wrap).bind("onReset",function(){try{i(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(t){}}),t.iframe.preload&&(r.showLoading(),e.one("load",function(){i(this).data("ready",1),c||i(this).bind("load.fb",r.update),i(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),r._afterLoad()})),t.content=e.appendTo(t.inner),t.iframe.preload||r._afterLoad()},_preloadImages:function(){var t,e,i=r.group,n=r.current,o=i.length,s=n.preload?Math.min(n.preload,o-1):0;for(e=1;e<=s;e+=1)"image"===(t=i[(n.index+e)%o]).type&&t.href&&(new Image().src=t.href)},_afterLoad:function(){var t,e,n,o,s,a=r.coming,l=r.current,h="fancybox-placeholder";if(r.hideLoading(),a&&!1!==r.isActive){if(!1===r.trigger("afterLoad",a,l)){a.wrap.stop(!0).trigger("onReset").remove(),r.coming=null;return}switch(l&&(r.trigger("beforeChange",l),l.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),r.unbindEvents(),t=a.content,e=a.type,n=a.scrolling,i.extend(r,{wrap:a.wrap,skin:a.skin,outer:a.outer,inner:a.inner,current:a,previous:l}),o=a.href,e){case"inline":case"ajax":case"html":a.selector?t=i("<div>").html(t).find(a.selector):d(t)&&(t.data(h)||t.data(h,i('<div class="'+h+'"></div>').insertAfter(t).hide()),t=t.show().detach(),a.wrap.bind("onReset",function(){i(this).find(t).length&&t.hide().replaceAll(t.data(h)).data(h,!1)}));break;case"image":t=a.tpl.image.replace("{href}",o);break;case"swf":t='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+o+'"></param>',s="",i.each(a.swf,function(e,i){t+='<param name="'+e+'" value="'+i+'"></param>',s+=" "+e+'="'+i+'"'}),t+='<embed src="'+o+'" type="application/x-shockwave-flash" width="100%" height="100%"'+s+"></embed></object>"}d(t)&&t.parent().is(a.inner)||a.inner.append(t),r.trigger("beforeShow"),a.inner.css("overflow","yes"===n?"scroll":"no"===n?"hidden":n),r._setDimension(),r.reposition(),r.isOpen=!1,r.coming=null,r.bindEvents(),r.isOpened?l.prevMethod&&r.transitions[l.prevMethod]():i(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove(),r.transitions[r.isOpened?a.nextMethod:a.openMethod](),r._preloadImages()}},_setDimension:function(){var t,e,n,o,s,a,l,h,c,d,u,_,g,v,y,b=r.getViewport(),w=0,x=!1,C=!1,T=r.wrap,P=r.skin,k=r.inner,M=r.current,S=M.width,z=M.height,E=M.minWidth,I=M.minHeight,A=M.maxWidth,O=M.maxHeight,B=M.scrolling,Z=M.scrollOutside?M.scrollbarWidth:0,N=M.margin,j=f(N[1]+N[3]),R=f(N[0]+N[2]);if(T.add(P).add(k).width("auto").height("auto").removeClass("fancybox-tmp"),t=f(P.outerWidth(!0)-P.width()),e=f(P.outerHeight(!0)-P.height()),n=j+t,o=R+e,s=p(S)?(b.w-n)*f(S)/100:S,a=p(z)?(b.h-o)*f(z)/100:z,"iframe"===M.type){if(v=M.content,M.autoHeight&&1===v.data("ready"))try{v[0].contentWindow.document.location&&(k.width(s).height(9999),y=v.contents().find("body"),Z&&y.css("overflow-x","hidden"),a=y.outerHeight(!0))}catch(t){}}else(M.autoWidth||M.autoHeight)&&(k.addClass("fancybox-tmp"),M.autoWidth||k.width(s),M.autoHeight||k.height(a),M.autoWidth&&(s=k.width()),M.autoHeight&&(a=k.height()),k.removeClass("fancybox-tmp"));if(S=f(s),z=f(a),c=s/a,E=f(p(E)?f(E,"w")-n:E),A=f(p(A)?f(A,"w")-n:A),I=f(p(I)?f(I,"h")-o:I),O=f(p(O)?f(O,"h")-o:O),l=A,h=O,M.fitToView&&
1(A=Math.min(b.w-n,A),O=Math.min(b.h-o,O)),_=b.w-j,g=b.h-R,M.aspectRatio?(S>A&&(z=f((S=A)/c)),z>O&&(S=f((z=O)*c)),S<E&&(z=f((S=E)/c)),z<I&&(S=f((z=I)*c))):(S=Math.max(E,Math.min(S,A)),M.autoHeight&&"iframe"!==M.type&&(k.width(S),z=k.height()),z=Math.max(I,Math.min(z,O))),M.fitToView){if(k.width(S).height(z),T.width(S+t),d=T.width(),u=T.height(),M.aspectRatio)for(;(d>_||u>g)&&S>E&&z>I&&!(w++>19);)(S=f((z=Math.max(I,Math.min(O,z-10)))*c))<E&&(z=f((S=E)/c)),S>A&&(z=f((S=A)/c)),k.width(S).height(z),T.width(S+t),d=T.width(),u=T.height();else S=Math.max(E,Math.min(S,S-(d-_))),z=Math.max(I,Math.min(z,z-(u-g)))}Z&&"auto"===B&&z<a&&S+t+Z<_&&(S+=Z),k.width(S).height(z),T.width(S+t),d=T.width(),u=T.height(),x=(d>_||u>g)&&S>E&&z>I,C=M.aspectRatio?S<l&&z<h&&S<s&&z<a:(S<l||z<h)&&(S<s||z<a),i.extend(M,{dim:{width:m(d),height:m(u)},origWidth:s,origHeight:a,canShrink:x,canExpand:C,wPadding:t,hPadding:e,wrapSpace:u-P.outerHeight(!0),skinSpace:P.height()-z}),!v&&M.autoHeight&&z>I&&z<O&&!C&&k.height("auto")},_getPosition:function(t){var e=r.current,i=r.getViewport(),n=e.margin,o=r.wrap.width()+n[1]+n[3],s=r.wrap.height()+n[0]+n[2],a={position:"absolute",top:n[0],left:n[3]};return e.autoCenter&&e.fixed&&!t&&s<=i.h&&o<=i.w?a.position="fixed":e.locked||(a.top+=i.y,a.left+=i.x),a.top=m(Math.max(a.top,a.top+(i.h-s)*e.topRatio)),a.left=m(Math.max(a.left,a.left+(i.w-o)*e.leftRatio)),a},_afterZoomIn:function(){var t=r.current;t&&(r.isOpen=r.isOpened=!0,r.wrap.css("overflow","visible").addClass("fancybox-opened"),r.update(
1),(t.closeClick||t.nextClick&&r.group.length>1)&&r.inner.css("cursor","pointer").bind("click.fb",function(e){i(e.target).is("a")||i(e.target).parent().is("a")||(e.preventDefault(),r[t.closeClick?"close":"next"]())}),t.closeBtn&&i(t.tpl.closeBtn).appendTo(r.skin).bind("click.fb",function(t){t.preventDefault(),r.close()}),t.arrows&&r.group.length>1&&((t.loop||t.index>0)&&i(t.tpl.prev).appendTo(r.outer).bind("click.fb",r.prev),(t.loop||t.index<r.group.length-1)&&i(t.tpl.next).appendTo(r.outer).bind("click.fb",r.next)),r.trigger("afterShow"),t.loop||t.index!==t.group.length-1?r.opts.autoPlay&&!r.player.isActive&&(r.opts.autoPlay=!1,r.play()):r.play(!1))},_afterZoomOut:function(t){t=t||r.current,i(".fancybox-wrap").trigger("onReset").remove(),i.extend(r,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null}),r.trigger("afterClose",t)}}),r.transitions={getOrigPosition:function(){var t=r.current,e=t.element,i=t.orig,n={},o=50,s=50,a=t.hPadding,l=t.wPadding,h=r.getViewport();return!i&&t.isDom&&e.is(":visible")&&!(i=e.find("img:first")).length&&(i=e),d(i)?(n=i.offset(),i.is("img")&&(o=i.outerWidth(),s=i.outerHeight())):(n.top=h.y+(h.h-s)*t.topRatio,n.left=h.x+(h.w-o)*t.leftRatio),("fixed"===r.wrap.css("position")||t.locked)&&(n.top-=h.y,n.left-=h.x),n={top:m(n.top-a*t.topRatio),left:m(n.left-l*t.leftRatio),width:m(o+l),height:m(s+a)}},step:function(t,e){var i,n,o=e.prop,s=r.current,a=s.wrapSpace,l=s.skinSpace;("width"===o||"height"===o)&&(i=e.end===e.start?1:(t-e.start)/(e.end-e.start),r.isClosing&&(i=1-i),n=t-("width"===o?s.wPadding:s.hPadding),r.skin[o](f("width"===o?n:n-a*i)),r.inner[o](f("width"===o?n:n-a*i-l*i)))},zoomIn:function(){var t=r.current,e=t.pos,n=t.openEffect,o="elastic"===n,s=i.extend({opacity:1},e);delete s.position,o?(e=this.getOrigPosition(),t.openOpacity&&(e.opacity=.1)):"fade"===n&&(e.opacity=.1),r.wrap.css(e).animate(s,{duration:"none"===n?0:t.openSpeed,easing:t.openEasing,step:o?this.step:null,complete:r._afterZoomIn})},zoomOut:function(){var t=r.current,e=t.closeEffect,i="elastic"===e,n={opacity:.1};i&&(n=this.getOrigPosition(),t.closeOpacity&&(n.opacity=.1)),r.wrap.animate(n,{duration:"none"===e?0:t.closeSpeed,easing:t.closeEasing,step:i?this.step:null,complete:r._afterZoomOut})},changeIn:function(){var t,e=r.current,i=e.nextEffect,n=e.pos,o={opacity:1},s=r.direction;n.opacity=.1,"elastic"===i&&(t="down"===s||"up"===s?"top":"left","down"===s||"right"===s?(n[t]=m(f(n[t])-200),o[t]="+=200px"):(n[t]=m(f(n[t])+200),o[t]="-=200px")),"none"===i?r._afterZoomIn():r.wrap.css(n).animate(o,{duration:e.nextSpeed,easing:e.nextEasing,complete:r._afterZoomIn})},changeOut:function(){var t=r.previous,e=t.prevEffect,n={opacity:.1},o=r.direction;"elastic"===e&&(n["down"===o||"up"===o?"top":"left"]=("up"===o||"left"===o?"-":"+")+"=200px"),t.wrap.animate(n,{duration:"none"===e?0:t.prevSpeed,easing:t.prevEasing,complete:function(){i(this).trigger("onReset").remove()}})}},r.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!c,fixed:!0},overlay:null,fixed:!1,el:i("html"),create:function(t){t=i.extend({},this.defaults,t),this.overlay&&this.close(),this.overlay=i('<div class="fancybox-overlay"></div>').appendTo(r.coming?r.coming.parent:t.parent),this.fixed=!1,t.fixed&&r.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(t){var e=this;t=i.extend({},this.defaults,t),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(t),this.fixed||(s.bind("resize.overlay",i.proxy(this.update,this)),this.update()),t.closeClick&&this.overlay.bind("click.overlay",function(t){if(i(t.target).hasClass("fancybox-overlay"))return r.isActive?r.close():e.close(),!1}),this.overlay.css(t.css).show()},close:function(){var t,e;s.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(i(".fancybox-margin").removeClass("fancybox-margin"),t=s.scrollTop(),e=s.scrollLeft(),this.el.removeClass("fancybox-lock"),s.scrollTop(t).scrollLeft(e)),i(".fancybox-overlay").remove().hide(),i.extend(this,{overlay:null,fixed:!1})},update:function(){var t,i="100%";this.overlay.width(i).height("100%"),l?(t=Math.max(e.documentElement.offsetWidth,e.body.offsetWidth),a.width()>t&&(i=a.width())):a.width()>s.width()&&(i=a.width()),this.overlay.width(i).height(a.height())},onReady:function(t,e){var n=this.overlay;i(".fancybox-overlay").stop(!0,!0),n||this.create(t),t.locked&&this.fixed&&e.fixed&&(n||(this.margin=a.height()>s.height()&&i("html").css("margin-right").replace("px","")),e.locked=this.overlay.append(e.wrap),e.fixed=!1),!0===t.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(t,e){var n,o;e.locked&&(!1!==this.margin&&(i("*").filter(function(){return"fixed"===i(this).css("position")&&!i(this).hasClass("fancybox-overlay")&&!i(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),n=s.scrollTop(),o=s.scrollLeft(),this.el.addClass("fancybox-lock"),s.scrollTop(n).scrollLeft(o)),this.open(t)},onUpdate:function(){this.fixed||this.update()},afterClose:function(t){this.overlay&&!r.coming&&this.overlay.fadeOut(t.speedOut,i.proxy(this.close,this))}},r.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(t){var e,n,o=r.current,s=o.title,a=t.type;if(i.isFunction(s)&&(s=s.call(o.element,o)),u(s)&&""!==i.trim(s)){switch(e=i('<div class="fancybox-title fancybox-title-'+a+'-wrap">'+s+"</div>"),a){case"inside":n=r.skin;break;case"outside":n=r.wrap;break;case"over":n=r.inner;break;default:n=r.skin,e.appendTo("body"),l&&e.width(e.width()),e.wrapInner('<span class="child"></span>'),r.current.margin[2]+=Math.abs(f(e.css("margin-bottom")))}
1e["top"===t.position?"prependTo":"appendTo"](n)}}},i.fn.fancybox=function(t){var e,n=i(this),o=this.selector||"",s=function(s){var a,l,h=i(this).blur(),c=e;s.ctrlKey||s.altKey||s.shiftKey||s.metaKey||h.is(".fancybox-wrap")||(a=t.groupAttr||"data-fancybox-group",(l=h.attr(a))||(a="rel",l=h.get(0)[a]),l&&""!==l&&"nofollow"!==l&&(c=(h=(h=o.length?i(o):n).filter("["+a+'="'+l+'"]')).index(this)),t.index=c,!1!==r.open(h,t)&&s.preventDefault())};return e=(t=t||{}).index||0,o&&!1!==t.live?a.undelegate(o,"click.fb-start").delegate(o+":not('.fancybox-item, .fancybox-nav')","click.fb-start",s):n.unbind("click.fb-start").bind("click.fb-start",s),this.filter("[data-fancybox-start=1]").trigger("click"),this},a.ready(function(){var e,s,a,l;n===i.scrollbarWidth&&(i.scrollbarWidth=function(){var t=i('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),e=t.children(),n=e.innerWidth()-e.height(99).innerWidth();return t.remove(),n}),n===i.support.fixedPosition&&(i.support.fixedPosition=(l=20===(a=i('<div style="position:fixed;top:20px;"></div>').appendTo("body"))[0].offsetTop||15===a[0].offsetTop,a.remove(),l)),i.extend(r.defaults,{scrollbarWidth:i.scrollbarWidth(),fixed:i.support.fixedPosition,parent:i("body")}),e=i(t).width(),o.addClass("fancybox-lock-test"),s=i(t).width(),o.removeClass("fancybox-lock-test"),i("<style type='text/css'>.fancybox-margin{margin-right:"+(s-e)+"px;}</style>").appendTo("head")})}(window,document,jQuery),ResponsiveHelper=function(t){var e,i=[],n=t(window),o=!1;function s(){var o=n.width();o!==e&&(e=o,t.each(i,function(e,i){t.each(i.data,function(t,e){e.currentActive&&!a(e.range[0],e.range[1])&&(e.currentActive=!1,"function"==typeof e.disableCallback&&e.disableCallback())}),t.each(i.data,function(t,e){!e.currentActive&&a(e.range[0],e.range[1])&&(e.currentActive=!0,"function"==typeof e.enableCallback&&e.enableCallback())})}))}function a(t,i){var n,s="";return t>0&&(s+="(min-width: "+t+"px)"),i<1/0&&(s+=(s?" and ":"")+"(max-width: "+i+"px)"),n=s,window.matchMedia&&o?matchMedia(n).matches:window.styleMedia?styleMedia.matchMedium(n):window.media?media.matchMedium(n):e>=t&&e<=i}return window.matchMedia&&(window.Window&&window.matchMedia===Window.prototype.matchMedia?o=!0:window.matchMedia.toString().indexOf("native")>-1&&(o=!0)),n.bind("load resize orientationchange",s),{addRange:function(n){var o={data:{}};t.each(n,function(t,e){var i;o.data[t]={range:[parseInt((i=t.split(".."))[0],10)||-1/0,parseInt(i[1],10)||1/0].sort(function(t,e){return t-e}),enableCallback:e.on,disableCallback:e.off}}),i.push(o),e=null,s()}}}(jQuery),function(t,e){function i(t,e){return t.innerHeight()>e.maxHeight}function n(e,i){for(;t.inArray(e.slice(-1),i.lastCharacter.remove)>-1;)e=e.slice(0,-1);return 0>t.inArray(e.slice(-1),i.lastCharacter.noEllipsis)&&(e+=i.ellipsis),e}function o(t){return{width:t.innerWidth(),height:t.innerHeight()}}function s(t,e){t.innerText?t.innerText=e:t.nodeValue?t.nodeValue=e:t.textContent&&(t.textContent=e)}function a(t){return t.innerText?t.innerText:t.nodeValue?t.nodeValue:t.textContent?t.textContent:""}function r(t){do t=t.previousSibling;while(t&&1!==t.nodeType&&3!==t.nodeType);return t}function l(e,i,n){var o,s=e&&e[0];if(s){if(!n){if(3===s.nodeType)return s;if(t.trim(e.text()))return l(e.contents().last(),i)}for(o=r(s);!o;){if((e=e.parent()).is(i)||!e.length)return!1;o=r(e[0])}if(o)return l(t(o),i)}return!1}if(!t.fn.dotdotdot){t.fn.dotdotdot=function(e){if(0==this.length)return t.fn.dotdotdot.debug('No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){t(this).dotdotdot(e)});var r,c=this,d=c.contents();c.data("dotdotdot")&&c.trigger("destroy.dot"),c.data("dotdotdot-style",c.attr("style")||""),c.css("word-wrap","break-word"),"nowrap"===c.css("white-space")&&c.css("white-space","normal"),c.bind_events=function(){return c.bind("update.dot",function(e,o){switch(c.removeClass("is-truncated"),e.preventDefault(),e.stopPropagation(),typeof u.height){case"number":u.maxHeight=u.height;break;case"function":u.maxHeight=u.height.call(c[0]);break;
1default:u.maxHeight=function(t){for(var e=t.innerHeight(),i=["paddingTop","paddingBottom"],n=0,o=i.length;o>n;n++){var s=parseInt(t.css(i[n]),10);isNaN(s)&&(s=0),e-=s}return e}(c)}u.maxHeight+=u.tolerance,void 0!==o&&(("string"==typeof o||"nodeType"in o&&1===o.nodeType)&&(o=t("<div />").append(o).contents()),o instanceof t&&(d=o)),(_=c.wrapInner('<div class="dotdotdot" />').children()).contents().detach().end().append(d.clone(!0)).find("br").replaceWith("  <br />  ").end().css({height:"auto",width:"auto",border:"none",padding:0,margin:0});var r=!1,h=!1;return p.afterElement&&((r=p.afterElement.clone(!0)).show(),p.afterElement.detach()),i(_,u)&&(h="children"==u.wrap?function(t,e,n){var o=t.children(),s=!1;t.empty();for(var a=0,r=o.length;r>a;a++){var l=o.eq(a);if(t.append(l),n&&t.append(n),i(t,e)){l.remove(),s=!0;break}n&&n.detach()}return s}(_,u,r):function e(o,r,h,c,d){var u=!1;return o.contents().detach().each(function(){var p=t(this);if(void 0===this)return!0;if(p.is("script, .dotdotdot-keep"))o.append(p);else{if(u)return!0;o.append(p),!d||p.is(c.after)||p.find(c.after).length||o[o.is("a, table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, blockquote, select, optgroup, option, textarea, script, style")?"after":"append"](d),i(h,c)&&(u=3==this.nodeType?function(e,o,r,h,c){var d=e[0];if(!d)return!1;var u=a(d),p=-1!==u.indexOf(" ")?" ":" ",f="letter"==h.wrap?"":p,m=u.split(f),_=-1,g=-1,v=0,y=m.length-1;for(h.fallbackToLetter&&0==v&&0==y&&(f="",y=(m=u.split(f)).length-1);y>=v&&(0!=v||0!=y);){var b=Math.floor((v+y)/2);if(b==g)break;g=b,s(d,m.slice(0,g+1).join(f)+h.ellipsis),r.children().each(function(){t(this).toggle().toggle()}),i(r,h)?(y=g,h.fallbackToLetter&&0==v&&0==y&&(f="",m=m[0].split(f),_=-1,g=-1,v=0,y=m.length-1)):(_=g,v=g)}if(-1==_||1==m.length&&0==m[0].length){var w=e.parent();e.detach();var x=c&&c.closest(w).length?c.length:0;if(w.contents().length>x?d=l(w.contents().eq(-1-x),o):(d=l(w,o,!0),x||w.detach()),d&&(u=n(a(d),h),s(d,u),x&&c)){var C=c.parent();t(d).parent().append(c),t.trim(C.html())||C.remove()}}else s(d,u=n(m.slice(0,_+1).join(f),h));return!0}(p,r,h,c,d):e(p,r,h,c,d)),u||d&&d.detach()}}),r.addClass("is-truncated"),u}(_,c,_,u,r)),_.replaceWith(_.contents()),_=null,t.isFunction(u.callback)&&u.callback.call(c[0],h,d),p.isTruncated=h,h}).bind("isTruncated.dot",function(t,e){return t.preventDefault(),t.stopPropagation(),"function"==typeof e&&e.call(c[0],p.isTruncated),p.isTruncated}).bind("originalContent.dot",function(t,e){return t.preventDefault(),t.stopPropagation(),"function"==typeof e&&e.call(c[0],d),d}).bind("destroy.dot",function(t){t.preventDefault(),t.stopPropagation(),c.unwatch().unbind_events().contents().detach().end().append(d).attr("style",c.data("dotdotdot-style")||"").removeClass("is-truncated").data("dotdotdot",!1)}),c},c.unbind_events=function(){return c.unbind(".dot"),c},c.watch=function(){if(c.unwatch(),"window"==u.watch){var e=t(window),i=e.width(),n=e.height();e.bind("resize.dot"+p.dotId,function(){i==e.width()&&n==e.height()&&u.windowResizeFix||(i=e.width(),n=e.height(),m&&clearInterval(m),m=setTimeout(function(){c.trigger("update.dot")},100))})}else f=o(c),m=setInterval(function(){if(c.is(":visible")){var t=o(c);f.width==t.width&&f.height==t.height||(c.trigger("update.dot"),f=t)}},500);return c},c.unwatch=function(){return t(window).unbind("resize.dot"+p.dotId),m&&clearInterval(m),c};var u=t.extend(!0,{},t.fn.dotdotdot.defaults,e),p={},f={},m=null,_=null;return u.lastCharacter.remove instanceof Array||(u.lastCharacter.remove=t.fn.dotdotdot.defaultArrays.lastCharacter.remove),u.lastCharacter.noEllipsis instanceof Array||(u.lastCharacter.noEllipsis=t.fn.dotdotdot.defaultArrays.lastCharacter.noEllipsis),p.afterElement=!!(r=u.after)&&("string"==typeof r?!!(r=t(r,c)).length&&r:!!r.jquery&&r),p.isTruncated=!1,p.dotId=h++,c.data("dotdotdot",!0).bind_events().trigger("update.dot"),u.watch&&c.watch(),c},t.fn.dotdotdot.defaults={ellipsis:"... ",wrap:"word",fallbackToLetter:!0,lastCharacter:{},tolerance:0,callback:null,after:null,height:null,watch:!1,windowResizeFix:!0}
1,t.fn.dotdotdot.defaultArrays={lastCharacter:{remove:[" "," ",",",";",".","!","?"],noEllipsis:[]}},t.fn.dotdotdot.debug=function(t){};var h=1,c=t.fn.html;t.fn.html=function(i){return i!=e&&!t.isFunction(i)&&this.data("dotdotdot")?this.trigger("update",[i]):c.apply(this,arguments)};var d=t.fn.text;t.fn.text=function(i){return i!=e&&!t.isFunction(i)&&this.data("dotdotdot")?(i=t("<div />").text(i).html(),this.trigger("update",[i])):d.apply(this,arguments)}}}(jQuery),jQuery(document).ready(function(t){t(".dot-ellipsis").each(function(){var e=t(this).hasClass("dot-resize-update"),i=t(this).hasClass("dot-timer-update"),n=0,o=t(this).attr("class").split(/\s+/);t.each(o,function(t,e){var i=e.match(/^dot-height-(\d+)$/);null!==i&&(n=Number(i[1]))});var s={};i&&(s.watch=!0),e&&(s.watch="window"),n>0&&(s.height=n),t(this).dotdotdot(s)})}),jQuery(window).on("load",function(){jQuery(".dot-ellipsis.dot-load-update").trigger("update.dot")}),function(t){function e(e){this.options=t.extend({place:"",move:"inside",setClass:!1},e),this.init()}e.prototype={init:function(){this.options.holder&&(this.findElements(),this.setAnchor(),this.move(),this.setClass())},findElements:function(){this.elements={holder:t(this.options.holder),place:t(this.options.place)}},setAnchor:function(){this.anchorElem=t("<span>"),this.anchorElem.attr("data-anchor-id",this.elements.holder.data("moved-id")).insertBefore(this.elements.holder).css("display","none")},move:function(){var t=this,e={after:function(){t.elements.holder.insertAfter(t.elements.place)},before:function(){t.elements.holder.insertBefore(t.elements.place)},inside:function(){t.elements.place.prepend(t.elements.holder)}};void 0!==e[this.options.move]?e[this.options.move]():e.inside()},setClass:function(){this.options.setClass&&this.elements.holder.addClass(this.options.setClass)},destroy:function(){this.elements.holder.insertAfter(this.anchorElem).removeClass(this.options.setClass).removeData("moveElement"),this.anchorElem.remove(),i=[]}},t.fn.moveElement=function(n){return this.each(function(){i.push(this),t.each(i,function(e,n){e===i.length-1&&t(n).attr("data-moved-id",e+1)}),t(this).data("moveElement",new e(t.extend(n,{holder:this})))})};var i=[]}(jQuery),/*!
2* FitText.js 1.2
3*
4* Copyright 2011, Dave Rupert http://daverupert.com
5* Released under the WTFPL license
6* http://sam.zoy.org/wtfpl/
7*
8* Date: Thu May 05 14:23:00 2011 -0600
9*/function(t){t.fn.fitText=function(e,i){var n=e||1,o=t.extend({minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY},i);return this.each(function(){var e=t(this),i=function(){e.css("font-size",Math.max(Math.min(e.width()/(10*n),parseFloat(o.maxFontSize)),parseFloat(o.minFontSize)))};i(),t(window).on("resize.fittext orientationchange.fittext",i)})}}(jQuery),function(t){var e=/Windows Phone/.test(navigator.userAgent)||"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch;function i(e){this.options=t.extend({heightProp:"height",recalcOnPageScroll:!1,setScrollTo:"",extraSpacing:0},e),this.init()}i.prototype={init:function(){for(var t,e=["height","max-height","maxHeight"],i=0;i<e.length;i++)e[i]===this.options.heightProp&&(t=!0);this.options.holder&&void 0!==t&&(this.findElements(),this.attachEvents(),this.setHeight())},findElements:function(){this.scrollAreaWrapper=t(this.options.holder),this.scrollArea=this.options.setScrollTo?this.scrollAreaWrapper.find(this.options.setScrollTo):this.scrollAreaWrapper},attachEvents:function(){if(!this.destroyed){var i=this,n=null;this.onResize=function(){i.setHeight()},this.onScroll=function(){clearTimeout(n),n=setTimeout(function(){i.setHeight()},2e3)},e?(t(window).on("orientationchange",this.onResize),t(window).on("touchend",this.onScroll)):(t(window).on("resize",this.onResize),this.options.recalcOnPageScroll&&t(window).on("scroll",this.onScroll))}},calcHeight:function(){var e=t(window),i=Math.round(this.scrollAreaWrapper.offset().top),n=(window.innerHeight,window.innerHeight),o=e.scrollTop();this.scrollAreaWrapperHeight=0,i>=o?this.scrollAreaWrapperHeight=n-(i-o)-this.options.extraSpacing:this.scrollAreaWrapperHeight=n-(i-this.options.extraSpacing)},setHeight:function(){this.destroyed||(this.calcHeight(),this.scrollArea.css(this.options.heightProp,this.scrollAreaWrapperHeight),this.scrollArea.css("overflow","auto"))},destroy:function(){var i=this;i.destroyed=!0,e?(t(window).off("orientationchange",this.onResize),t(window).off("touchend",this.onScroll)):(t(window).off("resize",this.onResize),this.options.recalcOnPageScroll&&t(window).off("scroll",this.onScroll)),this.scrollArea.css(this.options.heightProp,""),this.scrollArea.css("overflow",""),this.scrollAreaWrapper.removeData("scrollArea")}},t.fn.scrollArea=function(e){return this.each(function(){t(this).data("scrollArea",new i(t.extend(e,{holder:this})))})}}(jQuery),/*!
10  Colorbox 1.6.4
11  license: MIT
12  http://www.jacklmoore.com/colorbox
13*/function(t,e,i){function n(i,n,o){var s=e.createElement(i);return n&&(s.id=J+n),o&&(s.style.cssText=o),t(s)}function o(){return i.innerHeight?i.innerHeight:t(i).height()}function s(e,i){i!==Object(i)&&(i={}),this.cache={},this.el=e,this.value=function(e){var n;return void 0===this.cache[e]&&(void 0!==(n=t(this.el).attr("data-cbox-"+e))?this.cache[e]=n:void 0!==i[e]?this.cache[e]=i[e]:void 0!==Q[e]&&(this.cache[e]=Q[e])),this.cache[e]},this.get=function(e){var i=this.value(e);return t.isFunction(i)?i.call(this.el,this):i}}function a(t){var e=C.length,i=(H+t)%e;return 0>i?e+i:i}function r(t,e){return Math.round((/%/.test(t)?("x"===e?T.width():o())/100:1)*parseInt(t,10))}function l(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function h(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function c(t){"contains"in _[0]&&!_[0].contains(t.target)&&t.target!==m[0]&&(t.stopPropagation(),_.focus())}function d(t){d.str!==t&&(_.add(m).removeClass(d.str).addClass(t),d.str=t)}function u(i){t(e).trigger(i),ta.triggerHandler(i)}function p(o){var a;if(!q){if(a=t(o).data(Y),Z=new s(o,a),H=0,(p=Z.get("rel"))&&!1!==p&&"nofollow"!==p?-1===(H=(C=t("."+X).filter(function(){var e=t.data(this,Y);return new s(this,e).get("rel")===p})).index(Z.el))&&(H=(C=C.add(Z.el)).length-1):C=t(Z.el),!F){F=U=!0,d(Z.get("className")),_.css({visibility:"hidden",display:"block",opacity:""}),P=n(tr,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),v.css({width:"",height:""}).append(P),N=y.height()+x.height()+v.outerHeight(!0)-v.height(),j=b.width()+w.width()+v.outerWidth(!0)-v.width(),R=P.outerHeight(!0),D=P.outerWidth(!0);var p,f=r(Z.get("initialWidth"),"x"),g=r(Z.get("initialHeight"),"y"),T=Z.get("maxWidth"),z=Z.get("maxHeight");Z.w=Math.max((!1!==T?Math.min(f,r(T,"x")):f)-D-j,0),Z.h=Math.max((!1!==z?Math.min(g,r(z,"y")):g)-R-N,0),P.css({width:"",height:Z.h}),K.position(),u(tt),Z.get("onOpen"),B.add(S).hide(),_.focus(),Z.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",c,!0),ta.one(to,function(){e.removeEventListener("focus",c,!0)})),Z.get("returnFocus")&&ta.one(to,function(){t(Z.el).focus()})}var E=parseFloat(Z.get("opacity"));m.css({opacity:E==E?E:"",cursor:Z.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),Z.get("closeButton")?O.html(Z.get("close")).appendTo(v):O.appendTo("<div/>"),function(){var e,o,s,a=K.prep,c=++tl;if(U=!0,W=!1,u(ts),u(te),Z.get("onLoad"),Z.h=Z.get("height")?r(Z.get("height"),"y")-R-N:Z.get("innerHeight")&&r(Z.get("innerHeight"),"y"),Z.w=Z.get("width")?r(Z.get("width"),"x")-D-j:Z.get("innerWidth")&&r(Z.get("innerWidth"),"x"),Z.mw=Z.w,Z.mh=Z.h,Z.get("maxWidth")&&(Z.mw=r(Z.get("maxWidth"),"x")-D-j,Z.mw=Z.w&&Z.w<Z.mw?Z.w:Z.mw),Z.get("maxHeight")&&(Z.mh=r(Z.get("maxHeight"),"y")-R-N,Z.mh=Z.h&&Z.h<Z.mh?Z.h:Z.mh),e=Z.get("href"),V=setTimeout(function(){M.show()},100),Z.get("inline")){var d=t(e).eq(0);s=t("<div>").hide().insertBefore(d),ta.one(ts,function(){s.replaceWith(d)}),a(d)}else Z.get("iframe")?a(" "):Z.get("html")?a(Z.get("html")):l(Z,e)?(e=h(Z,e),t(W=Z.get("createImg")).addClass(J+"Photo").bind("error."+J,function(){a(n(tr,"Error").html(Z.get("imgError")))}).one("load",function(){c===tl&&setTimeout(function(){var e;Z.get("retinaImage")&&i.devicePixelRatio>1&&(W.height=W.height/i.devicePixelRatio,W.width=W.width/i.devicePixelRatio),Z.get("scalePhotos")&&(o=function(){W.height-=W.height*e,W.width-=W.width*e},Z.mw&&W.width>Z.mw&&(e=(W.width-Z.mw)/W.width,o()),Z.mh&&W.height>Z.mh&&(e=(W.height-Z.mh)/W.height,o())),Z.h&&(W.style.marginTop=Math.max(Z.mh-W.height,0)/2+"px"),C[1]&&(Z.get("loop")||C[H+1])&&(W.style.cursor="pointer",t(W).bind("click."+J,function(){K.next()})),W.style.width=W.width+"px",W.style.height=W.height+"px",a(W)},1)}),W.src=e):e&&k.load(e,Z.get("data"),function(e,i){c===tl&&a("error"===i?n(tr,"Error").html(Z.get("xhrError")):t(this).contents())})}()}}function f(){_||(G=!1,T=t(i),_=n(tr).attr({id:Y,class:!1===t.support.opacity?J+"IE":"",role:"dialog",tabindex:"-1"}).hide(),m=n(tr,"Overlay").hide(),M=t([n(tr,"LoadingOverlay")[0],n(tr,"LoadingGraphic")[0]]),g=n(tr,"Wrapper"),v=n(tr,"Content").append(S=n(tr,"Title"),z=n(tr,"Current"),A=t('<button type="button"/>').attr({id:J+"Previous"}),I=t('<button type="button"/>').attr({id:J+"Next"}),E=t('<button type="button"/>').attr({id:J+"Slideshow"}),M),O=t('<button type="button"/>').attr({id:J+"Close"}),g.append(n(tr).append(n(tr,"TopLeft"),y=n(tr,"TopCenter"),n(tr,"TopRight")),n(tr,!1,"clear:left").append(b=n(tr,"MiddleLeft"),v,w=n(tr,"MiddleRight")),n(tr,!1,"clear:left").append(n(tr,"BottomLeft"),x=n(tr,"BottomCenter"),n(tr,"BottomRight"))).find("div div").css({float:"left"}),k=n(tr,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),B=I.add(A).add(z).add(E)),e.body&&!_.parent().length&&t(e.body).append(m,_.append(g,k))}var m,_,g,v,y,b,w,x,C,T,P,k,M,S,z,E,I,A,O,B,Z,N,j,R,D,H,W,F,U,q,V,K,G,Q={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHe
13ight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return t(this).attr("href")},title:function(){return this.title},createImg:function(){var e=new Image,i=t(this).data("cbox-img-attrs");return"object"==typeof i&&t.each(i,function(t,i){e[t]=i}),e},createIframe:function(){var i=e.createElement("iframe"),n=t(this).data("cbox-iframe-attrs");return"object"==typeof n&&t.each(n,function(t,e){i[t]=e}),"frameBorder"in i&&(i.frameBorder=0),"allowTransparency"in i&&(i.allowTransparency="true"),i.name=(new Date).getTime(),i.allowFullscreen=!0,i}},Y="colorbox",J="cbox",X=J+"Element",tt=J+"_open",te=J+"_load",ti=J+"_complete",tn=J+"_cleanup",to=J+"_closed",ts=J+"_purge",ta=t("<a/>"),tr="div",tl=0,th={},tc=function(){function t(){clearTimeout(a)}function e(){(Z.get("loop")||C[H+1])&&(t(),a=setTimeout(K.next,Z.get("slideshowSpeed")))}function i(){E.html(Z.get("slideshowStop")).unbind(l).one(l,n),ta.bind(ti,e).bind(te,t),_.removeClass(r+"off").addClass(r+"on")}function n(){t(),ta.unbind(ti,e).unbind(te,t),E.html(Z.get("slideshowStart")).unbind(l).one(l,function(){K.next(),i()}),_.removeClass(r+"on").addClass(r+"off")}function o(){s=!1,E.hide(),t(),ta.unbind(ti,e).unbind(te,t),_.removeClass(r+"off "+r+"on")}var s,a,r=J+"Slideshow_",l="click."+J;return function(){s?Z.get("slideshow")||(ta.unbind(tn,o),o()):Z.get("slideshow")&&C[1]&&(s=!0,ta.one(tn,o),Z.get("slideshowAuto")?i():n(),E.show())}}();t[Y]||(t(f),(K=t.fn[Y]=t[Y]=function(i,n){var o=this;return i=i||{},t.isFunction(o)&&(o=t("<a/>"),i.open=!0),o[0]&&(f(),function(){function i(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),p(this))}return!!_&&(G||(G=!0,I.click(function(){K.next()}),A.click(function(){K.prev()}),O.click(function(){K.close()}),m.click(function(){Z.get("overlayClose")&&K.close()}),t(e).bind("keydown."+J,function(t){var e=t.keyCode;F&&Z.get("escKey")&&27===e&&(t.preventDefault(),K.close()),F&&Z.get("arrowKey")&&C[1]&&!t.altKey&&(37===e?(t.preventDefault(),A.click()):39===e&&(t.preventDefault(),I.click()))}),t.isFunction(t.fn.on)?t(e).on("click."+J,"."+X,i):t("."+X).live("click."+J,i)),!0)}()&&(n&&(i.onComplete=n),o.each(function(){var e=t.data(this,Y)||{};t.data(this,Y,t.extend(e,i))}).addClass(X),new s(o[0],i).get("open")&&p(o[0]))),o}).position=function(e,i){function n(){y[0].style.width=x[0].style.width=v[0].style.width=parseInt(_[0].style.width,10)-j+"px",v[0].style.height=b[0].style.height=w[0].style.height=parseInt(_[0].style.height,10)-N+"px"}var s,a,l,h=0,c=0,d=_.offset();if(T.unbind("resize."+J),_.css({top:-9e4,left:-9e4}),a=T.scrollTop(),l=T.scrollLeft(),Z.get("fixed")?(d.top-=a,d.left-=l,_.css({position:"fixed"})):(h=a,c=l,_.css({position:"absolute"})),c+=!1!==Z.get("right")?Math.max(T.width()-Z.w-D-j-r(Z.get("right"),"x"),0):!1!==Z.get("left")?r(Z.get("left"),"x"):Math.round(Math.max(T.width()-Z.w-D-j,0)/2),h+=!1!==Z.get("bottom")?Math.max(o()-Z.h-R-N-r(Z.get("bottom"),"y"),0):!1!==Z.get("top")?r(Z.get("top"),"y"):Math.round(Math.max(o()-Z.h-R-N,0)/2),_.css({top:d.top,left:d.left,visibility:"visible"}),g[0].style.width=g[0].style.height="9999px",s={width:Z.w+D+j,height:Z.h+R+N,top:h,left:c},e){var u=0;t.each(s,function(t){return s[t]!==th[t]?void(u=e):void 0}),e=u}th=s,e||_.css(s),_.dequeue().animate(s,{duration:e||0,complete:function(){n(),U=!1,g[0].style.width=Z.w+D+j+"px",g[0].style.height=Z.h+R+N+"px",Z.get("reposition")&&setTimeout(function(){T.bind("resize."+J,K.position)},1),t.isFunction(i)&&i()},step:n})},K.resize=function(t){var e;F&&((t=t||{}).width&&(Z.w=r(t.width,"x")-D-j),t.innerWidth&&(Z.w=r(t.innerWidth,"x")),P.css({width:Z.w}
13),t.height&&(Z.h=r(t.height,"y")-R-N),t.innerHeight&&(Z.h=r(t.innerHeight,"y")),t.innerHeight||t.height||(e=P.scrollTop(),P.css({height:"auto"}),Z.h=P.height()),P.css({height:Z.h}),e&&P.scrollTop(e),K.position("none"===Z.get("transition")?0:Z.get("speed")))},K.prep=function(i){if(F){var o,r="none"===Z.get("transition")?0:Z.get("speed");P.remove(),(P=n(tr,"LoadedContent").append(i)).hide().appendTo(k.show()).css({width:(Z.w=Z.w||P.width(),Z.w=Z.mw&&Z.mw<Z.w?Z.mw:Z.w,Z.w),overflow:Z.get("scrolling")?"auto":"hidden"}).css({height:(Z.h=Z.h||P.height(),Z.h=Z.mh&&Z.mh<Z.h?Z.mh:Z.h,Z.h)}).prependTo(v),k.hide(),t(W).css({float:"none"}),d(Z.get("className")),o=function(){function i(){!1===t.support.opacity&&_[0].style.removeAttribute("filter")}var n,o,c=C.length;F&&(o=function(){clearTimeout(V),M.hide(),u(ti),Z.get("onComplete")},S.html(Z.get("title")).show(),P.show(),c>1?("string"==typeof Z.get("current")&&z.html(Z.get("current").replace("{current}",H+1).replace("{total}",c)).show(),I[Z.get("loop")||c-1>H?"show":"hide"]().html(Z.get("next")),A[Z.get("loop")||H?"show":"hide"]().html(Z.get("previous")),tc(),Z.get("preloading")&&t.each([a(-1),a(1)],function(){var i=C[this],n=new s(i,t.data(i,Y)),o=n.get("href");o&&l(n,o)&&(o=h(n,o),e.createElement("img").src=o)})):B.hide(),Z.get("iframe")?(n=Z.get("createIframe"),Z.get("scrolling")||(n.scrolling="no"),t(n).attr({src:Z.get("href"),class:J+"Iframe"}).one("load",o).appendTo(P),ta.one(ts,function(){n.src="//about:blank"}),Z.get("fastIframe")&&t(n).trigger("load")):o(),"fade"===Z.get("transition")?_.fadeTo(r,1,i):i())},"fade"===Z.get("transition")?_.fadeTo(r,0,function(){K.position(0,o)}):K.position(r,o)}},K.next=function(){!U&&C[1]&&(Z.get("loop")||C[H+1])&&p(C[H=a(1)])},K.prev=function(){!U&&C[1]&&(Z.get("loop")||H)&&p(C[H=a(-1)])},K.close=function(){F&&!q&&(q=!0,F=!1,u(tn),Z.get("onCleanup"),T.unbind("."+J),m.fadeTo(Z.get("fadeOut")||0,0),_.stop().fadeTo(Z.get("fadeOut")||0,0,function(){_.hide(),m.hide(),u(ts),P.remove(),setTimeout(function(){q=!1,u(to),Z.get("onClosed")},1)}))},K.remove=function(){_&&(_.stop(),t[Y].close(),_.stop(!1,!0).remove(),m.remove(),q=!1,_=null,t("."+X).removeData(Y).removeClass(X),t(e).unbind("click."+J).unbind("keydown."+J))},K.element=function(){return t(Z.el)},K.settings=Q)}(jQuery,document,window),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).leaflet={})}(this,function(t){"use strict";function e(t){for(var e,i,n=1,o=arguments.length;n<o;n++)for(e in i=arguments[n])t[e]=i[e];return t}var i=Object.create||function(t){return n.prototype=t,new n};function n(){}function o(t,e){var i,n=Array.prototype.slice;return t.bind?t.bind.apply(t,n.call(arguments,1)):(i=n.call(arguments,2),function(){return t.apply(e,i.length?i.concat(n.call(arguments)):arguments)})}var s=0;function a(t){return"_leaflet_id"in t||(t._leaflet_id=++s),t._leaflet_id}function r(t,e,i){var n,o,s=function(){n=!1,o&&(a.apply(i,o),o=!1)},a=function(){n?o=arguments:(t.apply(i,arguments),setTimeout(s,e),n=!0)};return a}function l(t,e,i){var n=e[1],e=e[0],o=n-e;return t===n&&i?t:((t-e)%o+o)%o+e}function h(){return!1}function c(t,e){return!1===e?t:Math.round(t*(e=Math.pow(10,void 0===e?6:e)))/e}function d(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function u(t){return d(t).split(/\s+/)}function p(t,e){for(var n in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?i(t.options):{}),e)t.options[n]=e[n];return t.options}function f(t,e,i){var n,o=[];for(n in t)o.push(encodeURIComponent(i?n.toUpperCase():n)+"="+encodeURIComponent(t[n]));return(e&&-1!==e.indexOf("?")?"&":"?")+o.join("&")}var m=/\{ *([\w_ -]+) *\}/g;function _(t,e){return t.replace(m,function(t,i){if(void 0===(i=e[i]))throw Error("No value provided for variable "+t);return i="function"==typeof i?i(e):i})}var g=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function v(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return -1}var y="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function b(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var w=0;function x(t){var e=+new Date,i=Math.max(0,16-(e-w));return w=e+i,window.setTimeout(t,i)}var C=window.requestAnimationFrame||b("RequestAnimationFrame")||x,T=window.cancelAnimationFrame||b("C
13ancelAnimationFrame")||b("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function P(t,e,i){if(!i||C!==x)return C.call(window,o(t,e));t.call(e)}function k(t){t&&T.call(window,t)}var M={__proto__:null,extend:e,create:i,bind:o,get lastId(){return s},stamp:a,throttle:r,wrapNum:l,falseFn:h,formatNum:c,trim:d,splitWords:u,setOptions:p,getParamString:f,template:_,isArray:g,indexOf:v,emptyImageUrl:y,requestFn:C,cancelFn:T,requestAnimFrame:P,cancelAnimFrame:k};function S(){}S.extend=function(t){function n(){p(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()}var o,s=n.__super__=this.prototype,a=i(s);for(o in(a.constructor=n).prototype=a,this)Object.prototype.hasOwnProperty.call(this,o)&&"prototype"!==o&&"__super__"!==o&&(n[o]=this[o]);if(t.statics&&e(n,t.statics),t.includes){var r=t.includes;if("undefined"!=typeof L&&L&&L.Mixin){r=g(r)?r:[r];for(var l=0;l<r.length;l++)r[l]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",Error().stack)}e.apply(null,[a].concat(t.includes))}return e(a,t),delete a.statics,delete a.includes,a.options&&(a.options=s.options?i(s.options):{},e(a.options,t.options)),a._initHooks=[],a.callInitHooks=function(){if(!this._initHooksCalled){s.callInitHooks&&s.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=a._initHooks.length;t<e;t++)a._initHooks[t].call(this)}},n},S.include=function(t){var i=this.prototype.options;return e(this.prototype,t),t.options&&(this.prototype.options=i,this.mergeOptions(t.options)),this},S.mergeOptions=function(t){return e(this.prototype.options,t),this},S.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1);return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push("function"==typeof t?t:function(){this[t].apply(this,e)}),this};var z={on:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e);else for(var o=0,s=(t=u(t)).length;o<s;o++)this._on(t[o],e,i);return this},off:function(t,e,i){if(arguments.length){if("object"==typeof t)for(var n in t)this._off(n,t[n],e);else{t=u(t);for(var o=1==arguments.length,s=0,a=t.length;s<a;s++)o?this._off(t[s]):this._off(t[s],e,i)}}else delete this._events;return this},_on:function(t,e,i,n){"function"!=typeof e?console.warn("wrong listener type: "+typeof e):!1===this._listens(t,e,i)&&(e={fn:e,ctx:i=i===this?void 0:i},n&&(e.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(e))},_off:function(t,e,i){var n,o,s;if(this._events&&(n=this._events[t])){if(1==arguments.length){if(this._firingCount)for(o=0,s=n.length;o<s;o++)n[o].fn=h;delete this._events[t]}else"function"!=typeof e?console.warn("wrong listener type: "+typeof e):!1!==(e=this._listens(t,e,i))&&(i=n[e],this._firingCount&&(i.fn=h,this._events[t]=n=n.slice()),n.splice(e,1))}},fire:function(t,i,n){if(this.listens(t,n)){var o=e({},i,{type:t,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var s=this._events[t];if(s){this._firingCount=this._firingCount+1||1;for(var a=0,r=s.length;a<r;a++){var l=s[a],h=l.fn;l.once&&this.off(t,h,l.ctx),h.call(l.ctx||this,o)}this._firingCount--}}n&&this._propagateEvent(o)}return this},listens:function(t,e,i,n){"string"!=typeof t&&console.warn('"string" type argument expected');var o=e,s=("function"!=typeof e&&(n=!!e,i=o=void 0),this._events&&this._events[t]);if(s&&s.length&&!1!==this._listens(t,o,i))return!0;if(n){for(var a in this._eventParents)if(this._eventParents[a].listens(t,e,i,n))return!0}return!1},_listens:function(t,e,i){if(this._events){var n=this._events[t]||[];if(!e)return!!n.length;i===this&&(i=void 0);for(var o=0,s=n.length;o<s;o++)if(n[o].fn===e&&n[o].ctx===i)return o}return!1},once:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e,!0);else for(var o=0,s=(t=u(t)).length;o<s;o++)this._on(t[o],e,i,!0);return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[a(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[a(t)],this},_propagateEvent:function(t){for(var i in this._eventParents)this._eventParents[i].fire(t.type,e({layer:t.target,propagatedFrom:t.target},t),!0)}},E=(z.addEventListener=z.on,z.removeEventListener=z.clearAllEventListeners=z.off,z.addOneTimeEventListener=z.once,z.f
vendor: 4,907 bytes, line 13
13ireEvent=z.fire,z.hasEventListeners=z.listens,S.extend(z));function I(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}var A=Math.trunc||function(t){return 0<t?Math.floor(t):Math.ceil(t)};function O(t,e,i){return t instanceof I?t:g(t)?new I(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new I(t.x,t.y):new I(t,e,i)}function B(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])}function Z(t,e){return!t||t instanceof B?t:new B(t,e)}function N(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])}function j(t,e){return t instanceof N?t:new N(t,e)}function R(t,e,i){if(isNaN(t)||isNaN(e))throw Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==i&&(this.alt=+i)}function D(t,e,i){return t instanceof R?t:g(t)&&"object"!=typeof t[0]?3===t.length?new R(t[0],t[1],t[2]):2===t.length?new R(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new R(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new R(t,e,i)}I.prototype={clone:function(){return new I(this.x,this.y)},add:function(t){return this.clone()._add(O(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(O(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new I(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new I(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=A(this.x),this.y=A(this.y),this},distanceTo:function(t){var e=(t=O(t)).x-this.x,t=t.y-this.y;return Math.sqrt(e*e+t*t)},equals:function(t){return(t=O(t)).x===this.x&&t.y===this.y},contains:function(t){return Math.abs((t=O(t)).x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+c(this.x)+", "+c(this.y)+")"}},B.prototype={extend:function(t){var e,i;if(t){if(t instanceof I||"number"==typeof t[0]||"x"in t)e=i=O(t);else if(e=(t=Z(t)).min,i=t.max,!e||!i)return this;this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(i.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(i.y,this.max.y)):(this.min=e.clone(),this.max=i.clone())}return this},getCenter:function(t){return O((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return O(this.min.x,this.max.y)},getTopRight:function(){return O(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;return(t=("number"==typeof t[0]||t instanceof I?O:Z)(t))instanceof B?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=Z(t);var e=this.min,i=this.max,n=t.min,t=t.max,o=t.x>=e.x&&n.x<=i.x,t=t.y>=e.y&&n.y<=i.y;return o&&t},overlaps:function(t){t=Z(t);var e=this.min,i=this.max,n=t.min,t=t.max,o=t.x>e.x&&n.x<i.x,t=t.y>e.y&&n.y<i.y;return o&&t},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var e=this.min,i=this.max,n=Math.abs(e.x-i.x)*t,t=Math.abs(e.y-i.y)*t;return Z(O(e.x-n,e.y-t),O(i.x+n,i.y+t))},equals:function(t){return!!t&&(t=Z(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},N.prototype={extend:function(t){var e,i,n=this._southWest,o=this._northEast;if(t instanceof R)i=e=t;else{if(!(t instanceof N))return t?this.extend(D(t)||j(t)):this;if(e=t._southWest,i=t._northEast,!e||!i)return this}return n||o?(n.lat=Math.min(e.lat,n.lat),n.lng=Math.min(e.lng,n.lng),o.lat=Math.max(i.lat,o.lat),o.lng=Math.max(i.lng,o.lng)):(this._southWest=new R(e.lat,e.lng),this._northEast=new R(i.lat,i.lng)),this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,t=Math.abs(e.lng-i.lng)*t;return new N(new R(e.lat-n,e.lng-t),new R(i.lat+n,i.lng+t))},getCenter:function(){return new R((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new R(this.getNorth(),this.getWest())},getSouthEast:function(){return new R(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat}
vendor: 2,395 bytes, line 13
13,getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t=("number"==typeof t[0]||t instanceof R||"lat"in t?D:j)(t);var e,i,n=this._southWest,o=this._northEast;return t instanceof N?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=n.lat&&i.lat<=o.lat&&e.lng>=n.lng&&i.lng<=o.lng},intersects:function(t){t=j(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),t=t.getNorthEast(),o=t.lat>=e.lat&&n.lat<=i.lat,t=t.lng>=e.lng&&n.lng<=i.lng;return o&&t},overlaps:function(t){t=j(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),t=t.getNorthEast(),o=t.lat>e.lat&&n.lat<i.lat,t=t.lng>e.lng&&n.lng<i.lng;return o&&t},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=j(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}};var H={latLngToPoint:function(t,e){return t=this.projection.project(t),e=this.scale(e),this.transformation._transform(t,e)},pointToLatLng:function(t,e){return e=this.scale(e),t=this.transformation.untransform(t,e),this.projection.unproject(t)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){var e;return this.infinite?null:(e=this.projection.bounds,t=this.scale(t),new B(this.transformation.transform(e.min,t),this.transformation.transform(e.max,t)))},infinite:(R.prototype={equals:function(t,e){return!!t&&(t=D(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+c(this.lat,t)+", "+c(this.lng,t)+")"},distanceTo:function(t){return W.distance(this,D(t))},wrap:function(){return W.wrapLatLng(this)},toBounds:function(t){var t=180*t/40075017,e=t/Math.cos(Math.PI/180*this.lat);return j([this.lat-t,this.lng-e],[this.lat+t,this.lng+e])},clone:function(){return new R(this.lat,this.lng,this.alt)}},!1),wrapLatLng:function(t){var e=this.wrapLng?l(t.lng,this.wrapLng,!0):t.lng;return new R(this.wrapLat?l(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),n=e.lat-i.lat,e=e.lng-i.lng;
vendor: 7,053 bytes, line 13
13return 0==n&&0==e?t:(i=t.getSouthWest(),t=t.getNorthEast(),new N(new R(i.lat-n,i.lng-e),new R(t.lat-n,t.lng-e)))}},W=e({},H,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,o=e.lat*i,s=Math.sin((e.lat-t.lat)*i/2),e=Math.sin((e.lng-t.lng)*i/2),t=s*s+Math.cos(n)*Math.cos(o)*e*e,i=2*Math.atan2(Math.sqrt(t),Math.sqrt(1-t));return this.R*i}}),F=6378137,F={R:F,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,i=Math.max(Math.min(i,t.lat),-i),i=Math.sin(i*e);return new I(this.R*t.lng*e,this.R*Math.log((1+i)/(1-i))/2)},unproject:function(t){var e=180/Math.PI;return new R((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:new B([-(F*=Math.PI),-F],[F,F])};function U(t,e,i,n){g(t)?(this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3]):(this._a=t,this._b=e,this._c=i,this._d=n)}function q(t,e,i,n){return new U(t,e,i,n)}U.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return t.x=(e=e||1)*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return new I((t.x/(e=e||1)-this._b)/this._a,(t.y/e-this._d)/this._c)}};var V=e({},W,{code:"EPSG:3857",projection:F,transformation:q(V=.5/(Math.PI*F.R),.5,-V,.5)}),K=e({},V,{code:"EPSG:900913"});function G(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Q(t,e){for(var i,n,o,s,a="",r=0,l=t.length;r<l;r++){for(i=0,n=(o=t[r]).length;i<n;i++)a+=(i?"L":"M")+(s=o[i]).x+" "+s.y;a+=e?tz.svg?"z":"x":""}return a||"M0 0"}var Y=document.documentElement.style,J="ActiveXObject"in window,X=J&&!document.addEventListener,tt="msLaunchUri"in navigator&&!("documentMode"in document),te=tS("webkit"),ti=tS("android"),tn=tS("android 2")||tS("android 3"),to=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),to=ti&&tS("Google")&&to<537&&!("AudioNode"in window),ts=!!window.opera,ta=!tt&&tS("chrome"),tr=tS("gecko")&&!te&&!ts&&!J,tl=!ta&&tS("safari"),th=tS("phantom"),tc="OTransition"in Y,td=0===navigator.platform.indexOf("Win"),tu=J&&"transition"in Y,tp="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!tn,Y="MozPerspective"in Y,tf=!window.L_DISABLE_3D&&(tu||tp||Y)&&!tc&&!th,tm="undefined"!=typeof orientation||tS("mobile"),t_=tm&&te,tg=tm&&tp,tv=!window.PointerEvent&&window.MSPointerEvent,ty=!(!window.PointerEvent&&!tv),tb="ontouchstart"in window||!!window.TouchEvent,tw=!window.L_NO_TOUCH&&(tb||ty),tx=tm&&ts,tC=tm&&tr,tT=1<(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI),tP=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",h,e),window.removeEventListener("testPassiveEventSupport",h,e)}catch(t){}return t}(),tk=!!document.createElement("canvas").getContext,tL=!(!document.createElementNS||!G("svg").createSVGRect),tM=!!tL&&((tM=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(tM.firstChild&&tM.firstChild.namespaceURI));function tS(t){return 0<=navigator.userAgent.toLowerCase().indexOf(t)}var tz={ie:J,ielt9:X,edge:tt,webkit:te,android:ti,android23:tn,androidStock:to,opera:ts,chrome:ta,gecko:tr,safari:tl,phantom:th,opera12:tc,win:td,ie3d:tu,webkit3d:tp,gecko3d:Y,any3d:tf,mobile:tm,mobileWebkit:t_,mobileWebkit3d:tg,msPointer:tv,pointer:ty,touch:tw,touchNative:tb,mobileOpera:tx,mobileGecko:tC,retina:tT,passiveEvents:tP,canvas:tk,svg:tL,vml:!tL&&function(){try{var t=document.createElement("div"),e=(t.innerHTML='<v:shape adj="1"/>',t.firstChild);return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),inlineSvg:tM,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},tE=tz.msPointer?"MSPointerDown":"pointerdown",tI=tz.msPointer?"MSPointerMove":"pointermove",tA=tz.msPointer?"MSPointerUp":"pointerup",tO=tz.msPointer?"MSPointerCancel":"pointercancel",tB={touchstart:tE,touchmove:tI,touchend:tA,touchcancel:tO},tZ={touchstart:function(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&ew(e),tH(t,e)},touchmove:tH,touchend:tH,touchcancel:tH},tN={},tj=!1;function tR(t){tN[t.pointerId]=t}function tD(t){tN[t.pointerId]&&(tN[t.pointerId]=t)}function t$(t){delete tN[t.pointerId]}function tH(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var i in e.touches=[],tN)e.touches.push(tN[i]);e.changedTouches=[e],t(e)}}var tW,tF,tU,tq,tV,tK,tG=ee(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),tQ=ee(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),tY="webkitTransition"===tQ||"OTransition"===tQ?tQ+"End":"transitionend";function tJ(t){return"string"==typeof t?document.getElementById(t):t}function tX(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];return"auto"===(i=i&&"auto"!==i||!document.defaultView?i:(t=document.defaultView.getComputedStyle(t,null))?t[e]:null)?null:i}function t0(t,e,i){return(t=document.createElement(t)).className=e||"",i&&i.appendChild(t),t}function t1(t){var e=t.parentNode;e&&e.removeChild(t)}function t2(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function t3(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function t5(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function t4(t,e){return void 0!==t.classList?t.classList.contains(e):0<(t=t6(t)).length&&RegExp("(^|\\s)"+e+"(\\s|$)").test(t)}function t8(t,e){var i;if(void 0!==t.classList)for(var n=u(e),o=0,s=n.length;o<s;o++)t.classList.add(n[o]);else t4(t,e)||t7(t,((i=t6(t))?i+" ":"")+e)}function t9(t,e){void 0!==t.classList?t.classList.remove(e):t7(t,d((" "+t6(t)+" ").replace(" "+e+" "," ")))}function t7(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function t6(t){return void 0===(t=t.correspondingElement?t.correspondingElement:t).className.baseVal?t.className:t.className.baseVal}function et(t,e){if("opacity"in t.style)t.style.opacity=e;else if("filter"in t.style){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(t){if(1===e)return}e=Math.round(100*e),i?(i.Enabled=100!==e,i.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}}function ee(t){for(var e=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1}function ei(t,e,i){e=e||new I(0,0),t.style[tG]=(tz.ie3d?"translate("+e.x+"px,"+e.y+"px)":"translate3d("+e.x+"px,"+e.y+"px,0)")+(i?" scale("+i+")":"")}function en(t,e){t._leaflet_pos=e,tz.any3d?ei(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function eo(t){return t._leaflet_pos||new I(0,0)}function es(){ed(window,"dragstart",ew)}function ea(){ep(window,"dragstart",ew)}function er(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(el(),tK=(tV=t).style.outlineStyle,t.style.outlineStyle="none",ed(window,"keydown",el))}function el(){tV&&(tV.style.outlineStyle=tK,tK=tV=void 0,ep(window,"keydown",el))}function eh(t){for(;!((t=t.parentNode).offsetWidth&&t.offsetHeight||t===document.body););return t}function ec(t){var e=t.getBoundingClientRect();
13return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}function ed(t,e,i,n){if(e&&"object"==typeof e)for(var o in e)e_(t,o,e[o],i);else for(var s=0,a=(e=u(e)).length;s<a;s++)e_(t,e[s],i,n);return this}tq="onselectstart"in document?(tU=function(){ed(window,"selectstart",ew)},function(){ep(window,"selectstart",ew)}):(tF=ee(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]),tU=function(){var t;tF&&(tW=(t=document.documentElement.style)[tF],t[tF]="none")},function(){tF&&(document.documentElement.style[tF]=tW,tW=void 0)}),J={__proto__:null,TRANSFORM:tG,TRANSITION:tQ,TRANSITION_END:tY,get:tJ,getStyle:tX,create:t0,remove:t1,empty:t2,toFront:t3,toBack:t5,hasClass:t4,addClass:t8,removeClass:t9,setClass:t7,getClass:t6,setOpacity:et,testProp:ee,setTransform:ei,setPosition:en,getPosition:eo,get disableTextSelection(){return tU},get enableTextSelection(){return tq},disableImageDrag:es,enableImageDrag:ea,preventOutline:er,restoreOutline:el,getSizedParentNode:eh,getScale:ec};var eu="_leaflet_events";function ep(t,e,i,n){if(1==arguments.length)ef(t),delete t[eu];else if(e&&"object"==typeof e)for(var o in e)eg(t,o,e[o],i);else if(e=u(e),2==arguments.length)ef(t,function(t){return -1!==v(e,t)});else for(var s=0,a=e.length;s<a;s++)eg(t,e[s],i,n);return this}function ef(t,e){for(var i in t[eu]){var n=i.split(/\d/)[0];e&&!e(n)||eg(t,n,null,null,i)}}
13var em={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function e_(t,e,i,n){var o,s,r=e+a(i)+(n?"_"+a(n):"");t[eu]&&t[eu][r]||(s=o=function(e){return i.call(n||t,e||window.event)},!tz.touchNative&&tz.pointer&&0===e.indexOf("touch")?o=function(t,e,i){return"touchstart"!==e||tj||(document.addEventListener(tE,tR,!0),document.addEventListener(tI,tD,!0),document.addEventListener(tA,t$,!0),document.addEventListener(tO,t$,!0),tj=!0),tZ[e]?(i=tZ[e].bind(this,i),t.addEventListener(tB[e],i,!1),i):(console.warn("wrong event specified:",e),h)}(t,e,o):tz.touch&&"dblclick"===e?o=function(t,e){t.addEventListener("dblclick",e);var i,n=0;function o(t){var o;1!==t.detail?i=t.detail:"mouse"===t.pointerType||t.sourceCapabilities&&!t.sourceCapabilities.firesTouchEvents||(o=eC(t)).some(function(t){return t instanceof HTMLLabelElement&&t.attributes.for})&&!o.some(function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement})||((o=Date.now())-n<=200?2==++i&&e(function(t){var e,i,n={};for(i in t)e=t[i],n[i]=e&&e.bind?e.bind(t):e;return(t=n).type="dblclick",n.detail=2,n.isTrusted=!1,n._simulated=!0,n}(t)):i=1,n=o)}return t.addEventListener("click",o),{dblclick:e,simDblclick:o}}(t,o):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(em[e]||e,o,!!tz.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?t.addEventListener(em[e],o=function(e){e=e||window.event,eL(t,e)&&s(e)},!1):t.addEventListener(e,s,!1):t.attachEvent("on"+e,o),t[eu]=t[eu]||{},t[eu][r]=o)}function eg(t,e,i,n,o){o=o||e+a(i)+(n?"_"+a(n):"");var s,i=t[eu]&&t[eu][o];i&&(!tz.touchNative&&tz.pointer&&0===e.indexOf("touch")?(n=t,s=i,tB[e]?n.removeEventListener(tB[e],s,!1):console.warn("wrong event specified:",e)):tz.touch&&"dblclick"===e?(n=i,(s=t).removeEventListener("dblclick",n.dblclick),s.removeEventListener("click",n.simDblclick)):"removeEventListener"in t?t.removeEventListener(em[e]||e,i,!1):t.detachEvent("on"+e,i),t[eu][o]=null)}function ev(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function ey(t){return e_(t,"wheel",ev),this}function eb(t){return ed(t,"mousedown touchstart dblclick contextmenu",ev),t._leaflet_disable_click=!0,this}function ew(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function ex(t){return ew(t),ev(t),this}function eC(t){if(t.composedPath)return t.composedPath();for(var e=[],i=t.target;i;)e.push(i),i=i.parentNode;return e}function eT(t,e){var i,n;return e?(n=(i=ec(e)).boundingClientRect,new I((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)):new I(t.clientX,t.clientY)}var eP=tz.linux&&tz.chrome?window.devicePixelRatio:tz.mac?3*window.devicePixelRatio:0<window.devicePixelRatio?2*window.devicePixelRatio:1;function ek(t){return tz.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/eP:t.deltaY&&1===t.deltaMode?-(20*t.deltaY):t.deltaY&&2===t.deltaMode?-(60*t.deltaY):t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&32765>Math.abs(t.detail)?-(20*t.detail):t.detail?-(60*(t.detail/32765)):0}function eL(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(t){return!1}return i!==t}var X={__proto__:null,on:ed,off:ep,stopPropagation:ev,disableScrollPropagation:ey,disableClickPropagation:eb,preventDefault:ew,stop:ex,getPropagationPath:eC,getMousePosition:eT,getWheelDelta:ek,isExternalTarget:eL,addListener:ed,removeListener:ep},eM=E.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=eo(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=P(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=1e3*this._duration;e<i?this._runFrame(this._easeOut(e/i),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){t=this._startPos.add(this._offset.multiplyBy(t)),e&&t._round(),en(this._el,t),this.fire("step")},_complete:function(){k(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),eS=E.extend({options:{crs:V,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=p(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(D(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=tQ&&tz.any3d&&!tz.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),ed(this._proxy,tY,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
vendor: 1,332 bytes, line 13
13,setView:function(t,i,n){return(i=void 0===i?this._zoom:this._limitZoom(i),t=this._limitCenter(D(t),i,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&!0!==n&&(void 0!==n.animate&&(n.zoom=e({animate:n.animate},n.zoom),n.pan=e({animate:n.animate,duration:n.duration},n.pan)),this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,n.zoom):this._tryAnimatedPan(t,n.pan)))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,i,n.pan&&n.pan.noMoveStart),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(tz.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(tz.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),o=this.getSize().divideBy(2),t=(t instanceof I?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/n),n=this.containerPointToLatLng(o.add(t));return this.setView(n,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():j(t);var i=O(e.paddingTopLeft||e.padding||[0,0]),n=O(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,i.add(n));return(o="number"==typeof e.maxZoom?Math.min(e.maxZoom,o):o)===1/0?{center:t.getCenter(),zoom:o}
13:(e=n.subtract(i).divideBy(2),n=this.project(t.getSouthWest(),o),i=this.project(t.getNorthEast(),o),{center:this.unproject(n.add(i).divideBy(2).add(e),o),zoom:o})},fitBounds:function(t,e){if((t=j(t)).isValid())return t=this._getBoundsCenterZoom(t,e),this.setView(t.center,t.zoom,e);throw Error("Bounds are not valid.")},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){var i;return e=e||{},(t=O(t).round()).x||t.y?(!0===e.animate||this.getSize().contains(t)?(this._panAnim||(this._panAnim=new eM,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate?(t8(this._mapPane,"leaflet-pan-anim"),i=this._getMapPanePos().subtract(t).round(),this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)):(this._rawPanBy(t),this.fire("move").fire("moveend"))):this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this):this.fire("moveend")},flyTo:function(t,e,i){if(!1===(i=i||{}).animate||!tz.any3d)return this.setView(t,e,i);this._stop();var n=this.project(this.getCenter()),o=this.project(t),s=this.getSize(),a=this._zoom,r=(t=D(t),e=void 0===e?a:e,Math.max(s.x,s.y)),l=r*this.getZoomScale(a,e),h=o.distanceTo(n)||1;function c(t){return(t=Math.sqrt((t=(l*l-r*r+(t?-1:1)*2.0164*2.0164*h*h)/(2*(t?l:r)*2.0164*h))*t+1)-t)<1e-9?-18:Math.log(t)}function d(t){return(Math.exp(t)-Math.exp(-t))/2}function u(t){return(Math.exp(t)+Math.exp(-t))/2}var p=c(0),f=Date.now(),m=(c(1)-p)/1.42,_=i.duration?1e3*i.duration:1e3*m*.8;return this._moveStart(!0,i.noMoveStart),(function i(){var s,l=(Date.now()-f)/_,c=(1-Math.pow(1-l,1.5))*m;l<=1?(this._flyToFrame=P(i,this),this._move(this.unproject(n.add(o.subtract(n).multiplyBy((s=c,r*(u(p)*(d(s=p+1.42*s)/u(s))-d(p))/2.0164/h))),a),this.get
vendor: 5,050 bytes, line 13
13ScaleZoom(r/(l=c,r*(u(p)/u(p+1.42*l))),a),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}).call(this),this},flyToBounds:function(t,e){return t=this._getBoundsCenterZoom(t,e),this.flyTo(t.center,t.zoom,e)},setMaxBounds:function(t){return t=j(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),t=this._limitCenter(i,this._zoom,j(t));return i.equals(t)||this.panTo(t,e),this._enforcingBounds=!1,this},panInside:function(t,e){var i=O((e=e||{}).paddingTopLeft||e.padding||[0,0]),n=O(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),t=this.project(t),s=this.getPixelBounds(),i=Z([s.min.add(i),s.max.subtract(n)]),s=i.getSize();return i.contains(t)||(this._enforcingBounds=!0,n=t.subtract(i.getCenter()),i=i.extend(t).getSize().subtract(s),o.x+=n.x<0?-i.x:i.x,o.y+=n.y<0?-i.y:i.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1),this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var i=this.getSize(),n=(this._sizeChanged=!0,this._lastCenter=null,this.getSize()),s=i.divideBy(2).round(),a=n.divideBy(2).round(),s=s.subtract(a);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,newSize:n})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){var i,n;return t=this._locateOptions=e({timeout:1e4,watch:!1},t),"geolocation"in navigator?(i=o(this._handleGeolocationResponse,this),n=o(this._handleGeolocationError,this),t.watch?this._locationWatchId=navigator.geolocation.watchPosition(i,n,t):navigator.geolocation.getCurrentPosition(i,n,t)):this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e;this._container._leaflet_id&&(e=t.code,t=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout"),this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+t+"."}))},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e,i,n=new R(t.coords.latitude,t.coords.longitude),o=n.toBounds(2*t.coords.accuracy),s=this._locateOptions,a=(s.setView&&(e=this.getBoundsZoom(o),this.setView(n,s.maxZoom?Math.min(e,s.maxZoom):e)),{latlng:n,bounds:o,timestamp:t.timestamp});for(i in t.coords)"number"==typeof t.coords[i]&&(a[i]=t.coords[i]);this.fire("locationfound",a)}},addHandler:function(t,e){return e&&(e=this[t]=new e(this),this._handlers.push(e),this.options[t]&&e.enable()),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}for(var e in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),t1(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(k(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[e].remove();for(t in this._panes)t1(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){return e=t0("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane),t&&(this._panes[t]=e),e},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new N(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZo
vendor: 6,192 bytes, line 13
13om?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=j(t),i=O(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),a=t.getNorthWest(),t=t.getSouthEast(),i=this.getSize().subtract(i),t=Z(this.project(t,n),this.project(a,n)).getSize(),a=tz.any3d?this.options.zoomSnap:1,r=i.x/t.x,i=i.y/t.y,t=e?Math.max(r,i):Math.min(r,i),n=this.getScaleZoom(t,n);return a&&(n=Math.round(n/(a/100))*(a/100),n=e?Math.ceil(n/a)*a:Math.floor(n/a)*a),Math.max(o,Math.min(s,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new I(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){return t=this._getTopLeftPoint(t,e),new B(t,t.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=void 0===e?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs,t=(e=void 0===e?this._zoom:e,i.zoom(t*i.scale(e)));return isNaN(t)?1/0:t},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(D(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(O(t),e)},layerPointToLatLng:function(t){return t=O(t).add(this.getPixelOrigin()),this.unproject(t)},latLngToLayerPoint:function(t){return this.project(D(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(D(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(j(t))},distance:function(t,e){return this.options.crs.distance(D(t),D(e))},containerPointToLayerPoint:function(t){return O(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return O(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){return t=this.containerPointToLayerPoint(O(t)),this.layerPointToLatLng(t)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(D(t)))},mouseEventToContainerPoint:function(t){return eT(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){if(!(t=this._container=tJ(t)))throw Error("Map container not found.");if(t._leaflet_id)throw Error("Map container is already initialized.");ed(t,"scroll",this._onScroll,this),this._containerId=a(t)},_initLayout:function(){var t=this._container,e=(this._fadeAnimated=this.options.fadeAnimation&&tz.any3d,t8(t,"leaflet-container"+(tz.touch?" leaflet-touch":"")+(tz.retina?" leaflet-retina":"")+(tz.ielt9?" leaflet-oldie":"")+(tz.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":"")),tX(t,"position"));"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),en(this._mapPane,new I(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(t8(t.markerPane,"leaflet-zoom-hide"),t8(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,i){en(this._mapPane,new I(0,0));var n=!this._loaded,o=(this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset"),this._zoom!==e);this._moveStart(o,i)._move(t,e)._moveEnd(o),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,n){void 0===e&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?i&&i.pinch&&this.fire("zoom",i):((o||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return k(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){en(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={};var e=t?ep:ed;e((this._targets[a(this._container)]=this)._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),tz.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){k(this._resizeRequest),this._resizeRequest=P(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i,n=[],o="mouseout"===e||"mouseover"===e,s=t.target||t.srcElement,r=!1;s;){if((i=this._targets[a(s)])&&("click"===e||"preclick"===e)&&this._draggableMoved(i)){r=!0;break}if(i&&i.listens(e,!0)&&(o&&!eL(s,t)||(n.push(i),o))||s===this._container)break;s=s.parentNode}return n.length||r||o||!this.listens(e,!0)?n:[this]},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e,i=t.target||t.srcElement;!this._loaded||i._leaflet_disable_events||"click"===t.type&&this._isCl
vendor: 6,430 bytes, line 13
13ickDisabled(i)||("mousedown"===(e=t.type)&&er(i),this._fireDOMEvent(t,e))},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,n){"click"===t.type&&((l=e({},t)).type="preclick",this._fireDOMEvent(l,l.type,n));var o=this._findEventTargets(t,i);if(n){for(var s=[],a=0;a<n.length;a++)n[a].listens(i,!0)&&s.push(n[a]);o=s.concat(o)}if(o.length){"contextmenu"===i&&ew(t);var r,l=o[0],h={originalEvent:t};for("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type&&(r=l.getLatLng&&(!l._radius||l._radius<=10),h.containerPoint=r?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t),h.layerPoint=this.containerPointToLayerPoint(h.containerPoint),h.latlng=r?l.getLatLng():this.layerPointToLatLng(h.layerPoint)),a=0;a<o.length;a++)if(o[a].fire(i,h,!0),h.originalEvent._stopped||!1===o[a].options.bubblingMouseEvents&&-1!==v(this._mouseEvents,i))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return eo(this._mapPane)||new I(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,i){return i=this._getNewPixelOrigin(i,e),this.project(t,e)._subtract(i)},_latLngBoundsToNewLayerBounds:function(t,e,i){return i=this._getNewPixelOrigin(i,e),Z([this.project(t.getSouthWest(),e)._subtract(i),this.project(t.getNorthWest(),e)._subtract(i),this.project(t.getSouthEast(),e)._subtract(i),this.project(t.getNorthEast(),e)._subtract(i)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){var n,o;return!i||(n=this.project(t,e),o=this.getSize().divideBy(2),o=new B(n.subtract(o),n.add(o)),1>=Math.abs((o=this._getBoundsOffset(o,i,e)).x)&&1>=Math.abs(o.y))?t:this.unproject(n.add(o),e)},_limitOffset:function(t,e){var i;return e?(i=new B((i=this.getPixelBounds()).min.add(t),i.max.add(t)),t.add(this._getBoundsOffset(i,e))):t},_getBoundsOffset:function(t,e,i){return i=(e=Z(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i))).min.subtract(t.min),e=e.max.subtract(t.max),new I(this._rebound(i.x,-e.x),this._rebound(i.y,-e.y))},_rebound:function(t,e){return 0<t+e?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=tz.any3d?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){t9(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){return t=this._getCenterOffset(t)._trunc(),!(!0!==(e&&e.animate)&&!this.getSize().contains(t))&&(this.panBy(t,e),!0)},_createAnimProxy:function(){var t=this._proxy=t0("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(t){var e=this._proxy.style[tG];ei(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),e===this._proxy.style[tG]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){t1(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();ei(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&0<=t.propertyName.indexOf("transform")&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(!this._animatingZoom){if(i=i||{},!this._zoomAnimated||!1===i.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),n=this._getCenterOffset(t)._divideBy(1-1/n);if(!0!==i.animate&&!this.getSize().contains(n))return!1;P(function(){this._moveStart(!0,i.noMoveStart||!1)._animateZoom(t,e,!0)},this)}return!0},_animateZoom:function(t,e,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,t8(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&t9(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function ez(t){return new eE(t)}var eE=S.extend({options:{position:"topright"},initialize:function(t){p(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),t=t._controlCorners[i];return t8(e,"leaflet-control"),-1!==i.indexOf("bottom")?t.insertBefore(e,t.firstChild):t.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(t1(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(t){this._map&&t&&0<t.screenX&&0<t.screenY&&this._map.getContainer().focus()}}),eI=(eS.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this}
vendor: 14,312 bytes, line 13
13,_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=t0("div",e+"control-container",this._container);function n(n,o){t[n+o]=t0("div",e+n+" "+e+o,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)t1(this._controlCorners[t]);t1(this._controlContainer),delete this._controlCorners,delete this._controlContainer}}),eE.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i<n?-1:n<i?1:0}},initialize:function(t,e,i){for(var n in p(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,t)this._addLayer(t[n],n);for(n in e)this._addLayer(e[n],n,!0)},onAdd:function(t){this._initLayout(),this._update(),(this._map=t).on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return eE.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){return t.off("add remove",this._onLayerChange,this),(t=this._getLayer(a(t)))&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand:function(){t8(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(t8(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):t9(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return t9(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=t0("div",t),i=this.options.collapsed,n=(e.setAttribute("aria-haspopup",!0),eb(e),ey(e),this._section=t0("section",t+"-list")),o=(i&&(this._map.on("click",this.collapse,this),ed(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this)),this._layersLink=t0("a",t+"-toggle",e));o.href="#",o.title="Layers",o.setAttribute("role","button"),ed(o,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){ew(t),this._expandSafely()}},this),i||this.expand(),this._baseLayersList=t0("div",t+"-base",n),this._separator=t0("div",t+"-separator",n),this._overlaysList=t0("div",t+"-overlays",n),e.appendChild(n)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&a(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,i){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:i}),this.options.sortLayers&&this._layers.sort(o(function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(this._container){t2(this._baseLayersList),t2(this._overlaysList),this._layerControlInputs=[];for(var t,e,i,n=0,o=0;o<this._layers.length;o++)i=this._layers[o],this._addItem(i),e=e||i.overlay,t=t||!i.overlay,n+=i.overlay?0:1;this.options.hideSingleBase&&(this._baseLayersList.style.display=(t=t&&1<n)?"":"none"),this._separator.style.display=e&&t?"":"none"}return this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(a(t.target)),t=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;t&&this._map.fire(t,e)},_createRadioElement:function(t,e){return t='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",(e=document.createElement("div")).innerHTML=t,e.firstChild},_addItem:function(t){var e,i=document.createElement("label"),n=this._map.hasLayer(t.layer),n=(t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=n):e=this._createRadioElement("leaflet-base-layers_"+a(this),n),this._layerControlInputs.push(e),e.layerId=a(t.layer),ed(e,"click",this._onInputClick,this),document.createElement("span")),o=(n.innerHTML=" "+t.name,document.createElement("span"));return i.appendChild(o),o.appendChild(e),o.appendChild(n),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){if(!this._preventClick){var t,e,i=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var s=i.length-1;0<=s;s--)t=i[s],e=this._getLayer(t.layerId).layer,t.checked?n.push(e):t.checked||o.push(e);for(s=0;s<o.length;s++)this._map.hasLayer(o[s])&&this._map.removeLayer(o[s]);for(s=0;s<n.length;s++)this._map.hasLayer(n[s])||this._map.addLayer(n[s]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t,e,i=this._layerControlInputs,n=this._map.getZoom(),o=i.length-1;0<=o;o--)t=i[o],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&n<e.options.minZoom||void 0!==e.options.maxZoom&&n>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section,e=(this._preventClick=!0,ed(t,"click",ew),this.expand(),this);setTimeout(function(){ep(t,"click",ew),e._preventClick=!1})}})),eA=eE.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=t0("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,n,o){return(i=t0("a",i,n)).innerHTML=t,i.href="#",i.title=e,i.setAttribute("role","button"),i.setAttribute("aria-label",e),eb(i),ed(i,"click",ex),ed(i,"click",o,this),ed(i,"click",this._refocusOnMap,this),i},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";t9(this._zoomInButton,e),t9(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(t8(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(t8(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}}),eO=(eS.mergeOptions({zoomControl:!0}),eS.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new eA,this.addControl(this.zoomControl))}),eE.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=t0("div",e),n=this.options;return this._addScales(n,e+"-line",i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=t0("div",e,i)),t.imperial&&(this._iScale=t0("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,t=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(t)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t);this._updateScale(this._mScale,e<1e3?e+" m":e/1e3+" km",e/t)},_updateImperial:function(t){var e,i,t=3.2808399*t;5280<t?(i=this._getRoundNum(e=t/5280),this._updateScale(this._iScale,i+" mi",i/e)):(i=this._getRoundNum(t),this._updateScale(this._iScale,i+" ft",i/t))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),t=t/e;return e*(t=10<=t?10:5<=t?5:3<=t?3:2<=t?2:1)}})),eB=eE.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(tz.inlineSvg?'<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> ':"")+"Leaflet</a>"},initialize:function(t){p(this,t),this._attributions={}},onAdd:function(t){for(var e in(t.attributionControl=this)._container=t0("div","leaflet-control-attribution"),eb(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t&&(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update()),this},removeAttribution:function(t){return t&&this._attributions[t]&&(this._attributions[t]--,this._update()),this},_update:function(){if(this._map){var t,e=[];for(t in this._attributions)this._attributions[t]&&e.push(t);var i=[];this.options.prefix&&i.push(this.options.prefix),e.length&&i.push(e.join(", ")),this._container.innerHTML=i.join(' <span aria-hidden="true">|</span> ')}}}),tt=(eS.mergeOptions({attributionControl:!0}),eS.addInitHook(function(){this.options.attributionControl&&(new eB).addTo(this)}),eE.Layers=eI,eE.Zoom=eA,eE.Scale=eO,eE.Attribution=eB,ez.layers=function(t,e,i){return new eI(t,e,i)},ez.zoom=function(t){return new eA(t)},ez.scale=function(t){return new eO(t)},ez.attribution=function(t){return new eB(t)},S.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled:function(){return!!this._enabled}})),te=(tt.addTo=function(t,e){return t.addHandler(e,this),this},{Events:z}),eZ=tz.touch?"touchstart mousedown":"mousedown",eN=E.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){p(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(ed(this._dragStartTarget,eZ,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(eN._dragging===this&&this.finishDrag(!0),ep(this._dragStartTarget,eZ,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){var e,i;this._enabled&&(this._moved=!1,t4(this._element,"leaflet-zoom-anim")||(t.touches&&1!==t.touches.length?eN._dragging===this&&this.finishDrag():eN._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||((eN._dragging=this)._preventOutline&&er(this._element),es(),tU(),this._moving||(this.fire("down"),i=t.touches?t.touches[0]:t,e=eh(this._element),this._startPoint=new I(i.clientX,i.clientY),this._startPos=eo(this._element),this._parentScale=ec(e),i="mousedown"===t.type,ed(document,i?"mousemove":"touchmove",this._onMove,this),ed(document,i?"mouseup":"touchend touchcancel",this._onUp,this)))))},_onMove:function(t){var e;this._enabled&&(t.touches&&1<t.touches.length?this._moved=!0:!(e=new I((e=t.touches&&1===t.touches.length?t.touches[0]:t).clientX,e.clientY)._subtract(this._startPoint)).x&&!e.y||Math.abs(e.x)+Math.abs(e.y)<this.options.clickTolerance||(e.x/=this._parentScale.x,e.y/=this._parentScale.y,ew(t),this._moved||(this.fire("dragstart"),this._moved=!0,t8(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),t8(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(e),this._moving=!0,this._lastEvent=t,this._updatePosition()))},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),en(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){t9(document.body,"leaflet-dragging"),this._lastTarget&&(t9(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),ep(document,"mousemove touchmove",this._onMove,this),ep(document,"mouseup touchend touchcancel",this._onUp,this),ea(),tq();var e=this._moved&&this._moving;this._moving=!1,eN._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function ej(t,e,i){for(var n,o,s,a,r,l,h,c=[1,4,2,8],d=0,u=t.length;d<u;d++)t[d]._code=eq(t[d],e);for(s=0;s<4;s++){for(l=c[s],n=[],d=0,o=(u=t.length)-1;d<u;o=d++)a=t[d],r=t[o],a._code&l?r._code&l||((h=eU(r,a,l,e,i))._code=eq(h,e),n.push(h)):(r._code&l&&((h=eU(r,a,l,e,i))._code=eq(h,e),n.push(h)),n.push(a));t=n}return t}function eR(t,e){var i,n,o,s,a,r,l;if(!t||0===t.length)throw Error("latlngs not passed");eK(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);for(var h=D([0,0]),c=j(t),d=(c.getNorthWest().distanceTo(c.getSouthWest
13())*c.getNorthEast().distanceTo(c.getNorthWest())<1700&&(h=eD(t)),t.length),u=[],p=0;p<d;p++){var f=D(t[p]);u.push(e.project(D([f.lat-h.lat,f.lng-h.lng])))}for(p=a=r=l=0,i=d-1;p<d;i=p++)n=u[p],o=u[i],s=n.y*o.x-o.y*n.x,r+=(n.x+o.x)*s,l+=(n.y+o.y)*s,a+=3*s;return c=0===a?u[0]:[r/a,l/a],D([(c=e.unproject(O(c))).lat+h.lat,c.lng+h.lng])}function eD(t){for(var e=0,i=0,n=0,o=0;o<t.length;o++){var s=D(t[o]);e+=s.lat,i+=s.lng,n++}return D([e/n,i/n])}var e$,ti={__proto__:null,clipPolygon:ej,polygonCenter:eR,centroid:eD};function eH(t,e){if(e&&t.length){var i=t=function(t,e){for(var i=[t[0]],n=1,o=0,s=t.length;n<s;n++)(function(t,e){var i=e.x-t.x,e=e.y-t.y;return i*i+e*e})(t[n],t[o])>e&&(i.push(t[n]),o=n);return o<s-1&&i.push(t[s-1]),i}(t,e*=e),n=i.length,o=new("undefined"!=typeof Uint8Array?Uint8Array:Array)(n);o[0]=o[n-1]=1,function t(e,i,n,o,s){var a,r,l,h=0;for(r=o+1;r<=s-1;r++)h<(l=eV(e[r],e[o],e[s],!0))&&(a=r,h=l);n<h&&(i[a]=1,t(e,i,n,o,a),t(e,i,n,a,s))}(i,o,e,0,n-1);var s,a=[];for(s=0;s<n;s++)o[s]&&a.push(i[s]);return a}return t.slice()}function eW(t,e,i){return Math.sqrt(eV(t,e,i,!0))}function eF(t,e,i,n,o){var s,a,r,l=n?e$:eq(t,i),h=eq(e,i);for(e$=h;;){if(!(l|h))return[t,e];if(l&h)return!1;r=eq(a=eU(t,e,s=l||h,i,o),i),s===l?(t=a,l=r):(e=a,h=r)}}function eU(t,e,i,n,o){var s,a,r=e.x-t.x,e=e.y-t.y,l=n.min,n=n.max;return 8&i?(s=t.x+r*(n.y-t.y)/e,a=n.y):4&i?(s=t.x+r*(l.y-t.y)/e,a=l.y):2&i?(s=n.x,a=t.y+e*(n.x-t.x)/r):1&i&&(s=l.x,a=t.y+e*(l.x-t.x)/r),new I(s,a,o)}function eq(t,e){var i=0;return t.x<e.min.x?i|=1:t.x>e.max.x&&(i|=2),t.y<e.min.y?i|=4:t.y>e.max.y&&(i|=8),i}function eV(t,e,i,n){var o=e.x,e=e.y,s=i.x-o,a=i.y-e,r=s*s+a*a;return 0<r&&(1<(r=((t.x-o)*s+(t.y-e)*a)/r)?(o=i.x,e=i.y):0<r&&(o+=s*r,e+=a*r)),s=t.x-o,a=t.y-e,n?s*s+a*a:new I(o,e)}function eK(t){return!g(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function eG(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),eK(t)}function eQ(t,e){var i,n,o,s,a,r;if(!t||0===t.length)throw Error("latlngs not passed");eK(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);for(var l=D([0,0]),h=j(t),c=(h.getNorthWest().distanceTo(h.getSouthWest
vendor: 3,652 bytes, line 13
13())*h.getNorthEast().distanceTo(h.getNorthWest())<1700&&(l=eD(t)),t.length),d=[],u=0;u<c;u++){var p=D(t[u]);d.push(e.project(D([p.lat-l.lat,p.lng-l.lng])))}for(i=u=0;u<c-1;u++)i+=d[u].distanceTo(d[u+1])/2;if(0===i)r=d[0];else for(n=u=0;u<c-1;u++)if(o=d[u],s=d[u+1],i<(n+=a=o.distanceTo(s))){r=[s.x-(a=(n-i)/a)*(s.x-o.x),s.y-a*(s.y-o.y)];break}return D([(h=e.unproject(O(r))).lat+l.lat,h.lng+l.lng])}var tn={__proto__:null,simplify:eH,pointToSegmentDistance:eW,closestPointOnSegment:function(t,e,i){return eV(t,e,i)},clipSegment:eF,_getEdgeIntersection:eU,_getBitCode:eq,_sqClosestPointOnSegment:eV,isFlat:eK,_flat:eG,polylineCenter:eQ},to={project:function(t){return new I(t.lng,t.lat)},unproject:function(t){return new R(t.y,t.x)},bounds:new B([-180,-90],[180,90])},ts={R:6378137,R_MINOR:6356752.314245179,bounds:new B([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,o=this.R_MINOR/i,o=Math.sqrt(1-o*o),s=o*Math.sin(n),s=Math.tan(Math.PI/4-n/2)/Math.pow((1-s)/(1+s),o/2),n=-i*Math.log(Math.max(s,1e-10));return new I(t.lng*e*i,n)},unproject:function(t){for(var e,i=180/Math.PI,n=this.R,o=this.R_MINOR/n,s=Math.sqrt(1-o*o),a=Math.exp(-t.y/n),r=Math.PI/2-2*Math.atan(a),l=0,h=.1;l<15&&1e-7<Math.abs(h);l++)e=Math.pow((1-(e=s*Math.sin(r)))/(1+e),s/2),r+=h=Math.PI/2-2*Math.atan(a*e)-r;return new R(r*i,t.x*i/n)}},ta={__proto__:null,LonLat:to,Mercator:ts,SphericalMercator:F},tl=e({},W,{code:"EPSG:3395",projection:ts,transformation:q(tr=.5/(Math.PI*ts.R),.5,-tr,.5)}),eY=e({},W,{code:"EPSG:4326",projection:to,transformation:q(1/180,1,-1/180,.5)}),th=e({},H,{projection:to,transformation:q(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,e=e.lat-t.lat;return Math.sqrt(i*i+e*e)},infinite:!0}),tc=(H.Earth=W,H.EPSG3395=tl,H.EPSG3857=V,H.EPSG900913=K,H.EPSG4326=eY,H.Simple=th,E.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[a(t)]=this},removeInteractiveTarget:function(t){return delete this._map._targets[a(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e,i=t.target;i.hasLayer(this)&&(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents&&(e=this.getEvents(),i.on(e,this),this.once("remove",function(){i.off(e,this)},this)),this.onAdd(i),this.fire("add"),i.fire("layeradd",{layer:this}))}})),eJ=(eS.include({addLayer:function(t){var e;if(t._layerAdd)return e=a(t),this._layers[e]||((this._layers[e]=t)._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this;throw Error("The provided object is not a Layer.")},removeLayer:function(t){var e=a(t);return this._layers[e]&&(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null),this},hasLayer:function(t){return a(t) in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){for(var e=0,i=(t=t?g(t)?t:[t]:[]).length;e<i;e++)this.addLayer(t[e])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[a(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){t=a(t),this._zoomBoundLayers[t]&&(
vendor: 4,035 bytes, line 13
13delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var t,e=1/0,i=-1/0,n=this._getZoomSpan();for(t in this._zoomBoundLayers)var o=this._zoomBoundLayers[t].options,e=void 0===o.minZoom?e:Math.min(e,o.minZoom),i=void 0===o.maxZoom?i:Math.max(i,o.maxZoom);this._layersMaxZoom=i===-1/0?void 0:i,this._layersMinZoom=e===1/0?void 0:e,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}}),tc.extend({initialize:function(t,e){var i,n;if(p(this,e),this._layers={},t)for(i=0,n=t.length;i<n;i++)this.addLayer(t[i])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){return t=t in this._layers?t:this.getLayerId(t),this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,i,n=Array.prototype.slice.call(arguments,1);for(e in this._layers)(i=this._layers[e])[t]&&i[t].apply(i,n);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:a})),eX=eJ.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),eJ.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?((t=t in this._layers?this._layers[t]:t).removeEventParent(this),eJ.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t,e=new N;for(t in this._layers){var i=this._layers[t];e.extend(i.getBounds?i.getBounds():i.getLatLng())}return e}}),e0=S.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){p(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(i)return i=this._createImg(i,e&&"IMG"===e.tagName?e:null),this._setIconStyles(i,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),i;if("icon"===t)throw Error("iconUrl not set in Icon options (see the docs).");return null},_setIconStyles:function(t,e){var i=this.options,n=i[e+"Size"],n=O(n="number"==typeof n?[n,n]:n),o=O("shadow"===e&&i.shadowAnchor||i.iconAnchor||n&&n.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),o&&(t.style.marginLeft=-o.x+"px",t.style.marginTop=-o.y+"px"),n&&(t.style.width=n.x+"px",t.style.height=n.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return tz.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}}),e1=e0.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof e1.imagePath&&(e1.imagePath=this._detectIconPath()),(this.options.imagePath||e1.imagePath)+e0.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){function e(t,e,i){return(e=e.exec(t))&&e[i]}return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)}
vendor: 23,812 bytes, line 13
13,_detectIconPath:function(){var t=t0("div","leaflet-default-icon-path",document.body),e=tX(t,"background-image")||tX(t,"backgroundImage");return document.body.removeChild(t),(e=this._stripUrl(e))?e:(t=document.querySelector('link[href$="leaflet.css"]'))?t.href.substring(0,t.href.length-11-1):""}}),e2=tt.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new eN(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),t8(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&t9(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,i=e._map,n=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,s=eo(e._icon),a=i.getPixelBounds(),r=i.getPixelOrigin(),r=Z(a.min._subtract(r).add(o),a.max._subtract(r).subtract(o));r.contains(s)||(o=O((Math.max(r.max.x,s.x)-r.max.x)/(a.max.x-r.max.x)-(Math.min(r.min.x,s.x)-r.min.x)/(a.min.x-r.min.x),(Math.max(r.max.y,s.y)-r.max.y)/(a.max.y-r.max.y)-(Math.min(r.min.y,s.y)-r.min.y)/(a.min.y-r.min.y)).multiplyBy(n),i.panBy(o,{animate:!1}),this._draggable._newPos._add(o),this._draggable._startPos._add(o),en(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=P(this._adjustPan.bind(this,t)))},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(k(this._panRequest),this._panRequest=P(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,i=e._shadow,n=eo(e._icon),o=e._map.layerPointToLatLng(n);i&&en(i,n),e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){k(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),e3=tc.extend({options:{icon:new e1,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){p(this,e),this._latlng=D(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=D(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){var t;return this._icon&&this._map&&(t=this._map.latLngToLayerPoint(this._latlng).round(),this._setPos(t)),this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),i=t.icon.createIcon(this._icon),n=!1,i=(i!==this._icon&&(this._icon&&this._removeIcon(),n=!0,t.title&&(i.title=t.title),"IMG"===i.tagName&&(i.alt=t.alt||"")),t8(i,e),t.keyboard&&(i.tabIndex="0",i.setAttribute("role","button")),this._icon=i,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&ed(i,"focus",this._panOnFocus,this),t.icon.createShadow(this._shadow)),o=!1;i!==this._shadow&&(this._removeShadow(),o=!0),i&&(t8(i,e),i.alt=""),this._shadow=i,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),i&&o&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&ep(this._icon,"focus",this._panOnFocus,this),t1(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&t1(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&en(this._icon,t),this._shadow&&en(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round(),this._setPos(t)},_initInteraction:function(){var t;this.options.interactive&&(t8(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),e2&&(t=this.options.draggable,this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new e2(this),t&&this.dragging.enable()))},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&et(this._icon,t),this._shadow&&et(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t,e,i=this._map;i&&(t=(e=this.options.icon.options).iconSize?O(e.iconSize):O(0,0),e=e.iconAnchor?O(e.iconAnchor):O(0,0),i.panInside(this._latlng,{paddingTopLeft:e,paddingBottomRight:t.subtract(e)}))},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),e5=tc.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return p(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),e4=e5.extend({options:{fill:!0,radius:10},initialize:function(t,e){p(this,e),this._latlng=D(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=D(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return e5.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,i=this._clickTolerance(),t=[t+i,e+i];this._pxBounds=new B(this._point.subtract(t),this._point.add(t))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),e8=e4.extend({initialize:function(t,i,n){if(p(this,i="number"==typeof i?e({},n,{radius:i}):i),this._latlng=D(t),isNaN(this.options.radius))throw Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new N(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:e5.prototype.setStyle,_project:function(){var t,e,i,n,o,s=this._latlng.lng,a=this._latlng.lat,r=this._map,l=r.options.crs;l.distance===W.distance?(n=Math.PI/180,o=this._mRadius/W.R/n,t=r.project([a+o,s]),e=r.project([a-o,s]),e=t.add(e).divideBy(2),(isNaN(n=Math.acos((Math.cos(o*n)-Math.sin(a*n)*Math.sin((i=r.unproject(e).lat)*n))/(Math.cos(a*n)*Math.cos(i*n)))/n)||0===n)&&(n=o/Math.cos(Math.PI/180*a)),this._point=e.subtract(r.getPixelOrigin()),this._radius=isNaN(n)?0:e.x-r.project([i,s-n]).x,this._radiusY=e.y-t.y):(o=l.unproject(l.project(this._latlng).subtract([this._mRadius,0])),this._point=r.latLngToLayerPoint(this._latlng),this._radius=this._point.x-r.latLngToLayerPoint(o).x),this._updateBounds()}}),e9=e5.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){p(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e=1/0,i=null,n=eV,o=0,s=this._parts.length;o<s;o++)for(var a=this._parts[o],r=1,l=a.length;r<l;r++){var h,c,d=n(t,h=a[r-1],c=a[r],!0);d<e&&(e=d,i=n(t,h,c))}return i&&(i.distance=Math.sqrt(e)),i},getCenter:function(){if(this._map)return eQ(this._defaultShape(),this._map.options.crs);throw Error("Must add layer to map before using getCenter()")},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=D(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new N,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return eK(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],i=eK(t),n=0,o=t.length;n<o;n++)i?(e[n]=D(t[n]),this._bounds.extend(e[n])):e[n]=this._convertLatLngs(t[n]);return e},_project:function(){var t=new B;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),t=new I(t,t);this._rawPxBounds&&(this._pxBounds=new B([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)]))},_projectLatlngs:function(t,e,i){var n,o,s=t[0]instanceof R,a=t.length;if(s){for(o=[],n=0;n<a;n++)o[n]=this._map.latLngToLayerPoint(t[n]),i.extend(o[n]);e.push(o)}else for(n=0;n<a;n++)this._projectLatlngs(t[n],e,i)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t)){if(this.options.noClip)this._parts=this._rings;else for(var e,i,n,o,s=this._parts,a=0,r=0,l=this._rings.length;a<l;a++)for(e=0,i=(o=this._rings[a]).length;e<i-1;e++)(n=eF(o[e],o[e+1],t,e,!0))&&(s[r]=s[r]||[],s[r].push(n[0]),n[1]===o[e+1]&&e!==i-2||(s[r].push(n[1]),r++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,i=0,n=t.length;i<n;i++)t[i]=eH(t[i],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var i,n,o,s,a,r,l=this._clickTolerance();if(this._pxBounds&&this._pxBounds.contains(t)){for(i=0,s=this._parts.length;i<s;i++)for(n=0,o=(a=(r=this._parts[i]).length)-1;n<a;o=n++)if((e||0!==n)&&eW(t,r[o],r[n])<=l)return!0}return!1}});e9._flat=eG;var e7=e9.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(this._map)return eR(this._defaultShape(),this._map.options.crs);throw Error("Must add layer to map before using getCenter()")},_convertLatLngs:function(t){var t=e9.prototype._convertLatLngs.call(this,t),e=t.length;return 2<=e&&t[0]instanceof R&&t[0].equals(t[e-1])&&t.pop(),t},_setLatLngs:function(t){e9.prototype._setLatLngs.call(this,t),eK(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return(eK(this._latlngs[0])?this._latlngs:this._latlngs[0])[0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,e=new I(e,e),t=new B(t.min.subtract(e),t.max.add(e));if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t)){if(this.options.noClip)this._parts=this._rings;else for(var i,n=0,o=this._rings.length;n<o;n++)(i=ej(this._rings[n],t,!0)).length&&this._parts.push(i)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,i,n,o,s,a,r,l,h=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(o=0,r=this._parts.length;o<r;o++)for(s=0,a=(l=(e=this._parts[o]).length)-1;s<l;a=s++)i=e[s],n=e[a],i.y>t.y!=n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(h=!h);return h||e9.prototype._containsPoint.call(this,t,!0)}}),e6=eX.extend({initialize:function(t,e){p(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,o=g(t)?t:t.features;if(o){for(e=0,i=o.length;e<i;e++)((n=o[e]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var s,a=this.options;return(!a.filter||a.filter(t))&&(s=it(t,a))?(s.feature=il(t),s.defaultOptions=s.options,this.resetStyle(s),a.onEachFeature&&a.onEachFeature(t,s),this.addLayer(s)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=e({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function it(t,e){var i,n,o,s,a="Feature"===t.type?t.geometry:t,r=a?a.coordinates:null,l=[],h=e&&e.pointToLayer,c=e&&e.coordsToLatLng||ii;if(!r&&!a)return null;switch(a.type){case"Point":return ie(h,t,i=c(r),e);case"MultiPoint":for(o=0,s=r.length;o<s;o++)i=c(r[o]),l.push(ie(h,t,i,e));return new eX(l);case"LineString":case"MultiLineString":return n=io(r,"LineString"===a.type?0:1,c),new e9(n,e);case"Polygon":case"MultiPolygon":return n=io(r,"Polygon"===a.type?1:2,c),new e7(n,e);case"GeometryCollection":for(o=0,s=a.geometries.length;o<s;o++){var d=it({geometry:a.geometries[o],type:"Feature",properties:t.properties},e);d&&l.push(d)}return new eX(l);case"FeatureCollection":for(o=0,s=a.features.length;o<s;o++){var u=it(a.features[o],e);u&&l.push(u)}return new eX(l);default:throw Error("Invalid GeoJSON object.")}}function ie(t,e,i,n){return t?t(e,i):new e3(i,n&&n.markersInheritOptions&&n)}function ii(t){return new R(t[1],t[0],t[2])}function io(t,e,i){for(var n=[],o=0,s=t.length;o<s;o++)n.push(e?io(t[o],e-1,i):(i||ii)(t[o]));return n}function is(t,e){return void 0!==(t=D(t)).alt?[c(t.lng,e),c(t.lat,e),c(t.alt,e)]:[c(t.lng,e),c(t.lat,e)]}function ia(t,e,i,n){for(var o=[],s=0,a=t.length;s<a;s++)o.push(e?ia(t[s],eK(t[s])?0:e-1,i,n):is(t[s],n));return!e&&i&&0<o.length&&o.push(o[0].slice()),o}function ir(t,i){return t.feature?e({},t.feature,{geometry:i}):il(i)}function il(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}function ih(t,e){return new e6(t,e)}td={toGeoJSON:function(t){return ir(this,{type:"Point",coordinates:is(this.getLatLng(),t)})}},e3.include(td),e8.include(td),e4.include(td),e9.include({toGeoJSON:function(t){var e=!eK(this._latlngs);return ir(this,{type:(e?"Multi":"")+"LineString",coordinates:ia(this._latlngs,e?1:0,!1,t)})}}),e7.include({toGeoJSON:function(t){var e=!eK(this._latlngs),i=e&&!eK(this._latlngs[0]),t=ia(this._latlngs,i?2:e?1:0,!0,t);return ir(this,{type:(i?"Multi":"")+"Polygon",coordinates:t=e?t:[t]})}}),eJ.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(i){e.push(i.toGeoJSON(t).geometry.coordinates)}),ir(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e,i,n=this.feature&&this.feature.geometry&&this.feature.geometry.type;return"MultiPoint"===n?this.toMultiPoint(t):(e="GeometryCollection"===n,i=[],this.eachLayer(function(n){n.toGeoJSON&&(n=n.toGeoJSON(t),e?i.push(n.geometry):"FeatureCollection"===(n=il(n)).type?i.push.apply(i,n.features):i.push(n))}),e?ir(this,{geometries:i,type:"GeometryCollection"}):{type:"FeatureCollection",features:i})}});var tu=ih,ic=tc.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=j(e),p(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(t8(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){t1(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&t3(this._image),this},bringToBack:function(){return this._map&&t5(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=j(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:t0("img");t8(e,"leaflet-image-layer"),this._zoomAnimated&&t8(e,"leaflet-zoom-animated"),this.options.className&&t8(e,this.options.className),e.onselectstart=h,e.onmousemove=h,e.onload=o(this.fire,this,"load"),e.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),t=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;ei(this._image,t,e)},_reset:function(){var t=this._image,e=new B(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();en(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){et(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),id=ic.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:t0("video");if(t8(e,"leaflet-image-layer"),this._zoomAnimated&&t8(e,"leaflet-zoom-animated"),this.options.className&&t8(e,this.options.className),e.onselectstart=h,e.onmousemove=h,e.onloadeddata=o(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),n=[],s=0;s<i.length;s++)n.push(i[s].src);this._url=0<i.length?n:[e.src]}else{g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var a=0;a<this._url.length;a++){var r=t0("source");r.src=this._url[a],e.appendChild(r)}}}}),iu=ic.extend({_initImage:function(){var t=this._image=this._url;t8(t,"leaflet-image-layer"),this._zoomAnimated&&t8(t,"leaflet-zoom-animated"),this.options.className&&t8(t,this.options.className),t.onselectstart=h,t.onmousemove=h}}),ip=tc.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof R||g(t))?(this._latlng=D(t),p(this,e)):(p(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&et(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&et(this._container,1),this.bringToFront(),this.options.interactive&&(t8(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(et(this._container,0),this._removeTimeout=setTimeout(o(t1,void 0,this._container),200)):t1(this._container),this.options.interactive&&(t9(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=D(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&t3(this._container),this},bringToBack:function(){return this._map&&t5(this._container),this},_prepareOpen:function(t){if(!(i=this._source)._map)return!1;if(i instanceof eX){var e,i=null,n=this._source._layers;for(e in n)if(n[e]._map){i=n[e];break}if(!i)return!1;this._source=i}if(!t){if(i.getCenter)t=i.getCenter();else if(i.getLatLng)t=i.getLatLng();else{if(!i.getBounds)throw Error("Unable to get source layer LatLng.");t=i.getBounds().getCenter()}}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){var t,e,i;this._map&&(e=this._map.latLngToLayerPoint(this._latlng),t=O(this.options.offset),i=this._getAnchor(),this._zoomAnimated?en(this._container,e.add(i)):t=t.add(e).add(i),e=this._containerBottom=-t.y,i=this._containerLeft=-Math.round(this._containerWidth/2)+t.x,this._container.style.bottom=e+"px",this._container.style.left=i+"px")},_getAnchor:function(){return[0,0]}}
vendor: 4,900 bytes, line 13
13),im=(eS.include({_initOverlay:function(t,e,i,n){var o=e;return o instanceof t||(o=new t(n).setContent(e)),i&&o.setLatLng(i),o}}),tc.include({_initOverlay:function(t,e,i,n){var o=i;return o instanceof t?(p(o,n),o._source=this):(o=e&&!n?e:new t(n,this)).setContent(i),o}}),ip.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,ip.prototype.openOn.call(this,t)},onAdd:function(t){ip.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof e5||this._source.on("preclick",ev))},onRemove:function(t){ip.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof e5||this._source.off("preclick",ev))},getEvents:function(){var t=ip.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=t0("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),i=this._wrapper=t0("div",t+"-content-wrapper",e);this._contentNode=t0("div",t+"-content",i),eb(e),ey(this._contentNode),ed(e,"contextmenu",ev),this._tipContainer=t0("div",t+"-tip-container",e),this._tip=t0("div",t+"-tip",this._tipContainer),this.options.closeButton&&((i=this._closeButton=t0("a",t+"-close-button",e)).setAttribute("role","button"),i.setAttribute("aria-label","Close popup"),i.href="#close",i.innerHTML='<span aria-hidden="true">&#215;</span>',ed(i,"click",function(t){ew(t),this.close()},this))},_updateLayout:function(){var t=this._contentNode,e=t.style,i=(e.width="",e.whiteSpace="nowrap",t.offsetWidth),i=Math.min(i,this.options.maxWidth),i=(i=Math.max(i,this.options.minWidth),e.width=i+1+"px",e.whiteSpace="",e.height="",t.offsetHeight),n=this.options.maxHeight;(n&&n<i?(e.height=n+"px",t8):t9)(t,"leaflet-popup-scrolled"),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),e=this._getAnchor();en(this._container,t.add(e))},_adjustPan:function(){var t,e,i,n,o,s,a,r;this.options.autoPan&&(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning?this._autopanning=!1:(t=this._map,e=parseInt(tX(this._container,"marginBottom"),10)||0,e=this._container.offsetHeight+e,r=this._containerWidth,(i=new I(this._containerLeft,-e-this._containerBottom))._add(eo(this._container)),i=t.layerPointToContainerPoint(i),o=O(this.options.autoPanPadding),n=O(this.options.autoPanPaddingTopLeft||o),o=O(this.options.autoPanPaddingBottomRight||o),s=t.getSize(),a=0,i.x+r+o.x>s.x&&(a=i.x+r-s.x+o.x),i.x-a-n.x<(r=0)&&(a=i.x-n.x),i.y+e+o.y>s.y&&(r=i.y+e-s.y+o.y),i.y-r-n.y<0&&(r=i.y-n.y),(a||r)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([a,r]))))},_getAnchor:function(){return O(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}})),i_=(eS.mergeOptions({closePopupOnClick:!0}),eS.include({openPopup:function(t,e,i){return this._initOverlay(im,t,e,i).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),tc.include({bindPopup:function(t,e){return this._popup=this._initOverlay(im,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof eX||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e;this._popup&&this._map&&(ex(t),e=t.layer||t.target,this._popup._source!==e||e instanceof e5?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)}
vendor: 37,318 bytes, line 13
13,_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}}),ip.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){ip.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){ip.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=ip.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=t0("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+a(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i=this._map,n=this._container,o=i.latLngToContainerPoint(i.getCenter()),i=i.layerPointToContainerPoint(t),s=this.options.direction,a=n.offsetWidth,r=n.offsetHeight,l=O(this.options.offset),h=this._getAnchor(),i="top"===s?(e=a/2,r):"bottom"===s?(e=a/2,0):(e="center"===s?a/2:"right"===s?0:"left"===s?a:i.x<o.x?(s="right",0):(s="left",a+2*(l.x+h.x)),r/2);t=t.subtract(O(e,i,!0)).add(l).add(h),t9(n,"leaflet-tooltip-right"),t9(n,"leaflet-tooltip-left"),t9(n,"leaflet-tooltip-top"),t9(n,"leaflet-tooltip-bottom"),t8(n,"leaflet-tooltip-"+s),en(n,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&et(this._container,t)},_animateZoom:function(t){t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),this._setPosition(t)},_getAnchor:function(){return O(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}})),ig=(eS.include({openTooltip:function(t,e,i){return this._initOverlay(i_,t,e,i).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),tc.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(i_,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){var e;!t&&this._tooltipHandlersAdded||(e={remove:this.closeTooltip,move:this._moveTooltip},this._tooltip.options.permanent?e.add=this._openTooltip:(e.mouseover=this._openTooltip,e.mouseout=this.closeTooltip,e.click=this._openTooltip,this._map?this._addFocusListeners():e.add=this._addFocusListeners),this._tooltip.options.sticky&&(e.mousemove=this._moveTooltip),this[t?"off":"on"](e),this._tooltipHandlersAdded=!t)},openTooltip:function(t){return this._tooltip&&(this instanceof eX||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&(ed(e,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),ed(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){(t="function"==typeof t.getElement&&t.getElement())&&t.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){var e;this._tooltip&&this._map&&(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag?(this._openOnceFlag=!0,(e=this)._map.once("moveend",function(){e._openOnceFlag=!1,e._openTooltip(t)})):(this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)))},_moveTooltip:function(t){var e=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(t=this._map.mouseEventToContainerPoint(t.originalEvent),t=this._map.containerPointToLayerPoint(t),e=this._map.layerPointToLatLng(t)),this._tooltip.setLatLng(e)}}),e0.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var t=t&&"DIV"===t.tagName?t:document.createElement("div"),e=this.options;return e.html instanceof Element?(t2(t),t.appendChild(e.html)):t.innerHTML=!1!==e.html?e.html:"",e.bgPos&&(e=O(e.bgPos),t.style.backgroundPosition=-e.x+"px "+-e.y+"px"),this._setIconStyles(t,"icon"),t},createShadow:function(){return null}}));e0.Default=e1;var iv=tc.extend({options:{tileSize:256,opacity:1,updateWhenIdle:tz.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){p(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),t1(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(t3(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(t5(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){var t;return this._map&&(this._removeAllTiles(),(t=this._clampZoom(this._map.getZoom()))!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()),this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=r(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof I?t:new I(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,i=this.getPane().children,n=-t(-1/0,1/0),o=0,s=i.length;o<s;o++)e=i[o].style.zIndex,i[o]!==this._container&&e&&(n=t(n,+e));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!tz.ielt9){et(this._container,this.options.opacity);var t,e=+new Date,i=!1,n=!1;for(t in this._tiles){var o,s=this._tiles[t];s.current&&s.loaded&&(o=Math.min(1,(e-s.loaded)/200),et(s.el,o),o<1?i=!0:(s.active?n=!0:this._onOpaqueTile(s),s.active=!0))}n&&!this._noPrune&&this._pruneTiles(),i&&(k(this._fadeFrame),this._fadeFrame=P(this._updateOpacity,this))}},_onOpaqueTile:h,_initContainer:function(){this._container||(this._container=t0("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var i in this._levels)i=Number(i),this._levels[i].el.children.length||i===t?(this._levels[i].el.style.zIndex=e-Math.abs(t-i),this._onUpdateLevel(i)):(t1(this._levels[i].el),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);var n=this._levels[t],o=this._map;return n||((n=this._levels[t]={}).el=t0("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=e,n.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,o.getCenter(),o.getZoom()),h(n.el.offsetWidth),this._onCreateLevel(n)),this._level=n}},_onUpdateLevel:h,_onRemoveLevel:h,_onCreateLevel:h,_pruneTiles:function(){if(this._map){var t,e,i,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(i=this._tiles[t]).retain=i.current;for(t in this._tiles)(i=this._tiles[t]).current&&!i.active&&(e=i.coords,this._retainParent(e.x,e.y,e.z,e.z-5)||this._retainChildren(e.x,e.y,e.z,e.z+2));for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)t1(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,i,n){var t=Math.floor(t/2),e=Math.floor(e/2),i=i-1,o=new I(+t,+e),o=(o.z=i,this._tileCoordsToKey(o)),o=this._tiles[o];return o&&o.active?o.retain=!0:(o&&o.loaded&&(o.retain=!0),n<i&&this._retainParent(t,e,i,n))},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++)for(var s=2*e;s<2*e+2;s++){var a=new I(o,s),a=(a.z=i+1,this._tileCoordsToKey(a)),a=this._tiles[a];a&&a.active?a.retain=!0:(a&&a.loaded&&(a.retain=!0),i+1<n&&this._retainChildren(o,s,i+1,n))}},_resetView:function(t){t=t&&(t.pinch||t.flyTo),this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,i,n){var o=Math.round(e),o=void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom?void 0:this._clampZoom(o),s=this.options.updateWhenZooming&&o!==this._tileZoom;n&&!s||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),i||this._pruneTiles(),this._noPrune=!!i),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var i in this._levels)this._setZoomTransform(this._levels[i],t,e)},_setZoomTransform:function(t,e,i){var n=this._map.getZoomScale(i,t.zoom),e=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,i)).round();tz.any3d?ei(t.el,e,n):en(t.el,e)},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),n=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],n).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],n).x/i.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],n).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],n).y/i.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,i=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),i=e.getZoomScale(i,this._tileZoom),t=e.project(t,this._tileZoom).floor(),e=e.getSize().divideBy(2*i);return new B(t.subtract(e),t.add(e))},_update:function(t){var e=this._map;if(e){var i=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var n,e=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(e),s=o.getCenter(),a=[],e=this.options.keepBuffer,r=new B(o.getBottomLeft().subtract([e,-e]),o.getTopRight().add([e,-e]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw Error("Attempted to load an infinite number of tiles");for(n in this._tiles){var l=this._tiles[n].coords;l.z===this._tileZoom&&r.contains(new I(l.x,l.y))||(this._tiles[n].current=!1)}if(1<Math.abs(i-this._tileZoom))this._setView(t,i);else{for(var h=o.min.y;h<=o.max.y;h++)for(var c=o.min.x;c<=o.max.x;c++){var d,u=new I(c,h);u.z=this._tileZoom,this._isValidTile(u)&&((d=this._tiles[this._tileCoordsToKey(u)])?d.current=!0:a.push(u))}if(a.sort(function(t,e){return t.distanceTo(s)-e.distanceTo(s)}),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));for(var p=document.createDocumentFragment(),c=0;c<a.length;c++)this._addTile(a[c],p);this._level.el.appendChild(p)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var i=this._globalTileRange;if(!e.wrapLng&&(t.x<i.min.x||t.x>i.max.x)||!e.wrapLat&&(t.y<i.min.y||t.y>i.max.y))return!1}return!this.options.bounds||(e=this._tileCoordsToBounds(t),j(this.options.bounds).overlaps(e))},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),i=n.add(i);return[e.unproject(n,t.z),e.unproject(i,t.z)]},_tileCoordsToBounds:function(t){return t=this._tileCoordsToNwSe(t),t=new N(t[0],t[1]),t=this.options.noWrap?t:this._map.wrapLatLngBounds(t)},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var t=t.split(":"),e=new I(+t[0],+t[1]);return e.z=+t[2],e},_removeTile:function(t){var e=this._tiles[t];e&&(t1(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){t8(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=h,t.onmousemove=h,tz.ielt9&&this.options.opacity<1&&et(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),s=this.createTile(this._wrapCoords(t),o(this._tileReady,this,t));this._initTile(s),this.createTile.length<2&&P(o(this._tileReady,this,t,null,s)),en(s,i),this._tiles[n]={el:s,coords:t,current:!0},e.appendChild(s),this.fire("tileloadstart",{tile:s,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var n=this._tileCoordsToKey(t);(i=this._tiles[n])&&(i.loaded=+new Date,this._map._fadeAnimated?(et(i.el,0),k(this._fadeFrame),this._fadeFrame=P(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(t8(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),tz.ielt9||!this._map._fadeAnimated?P(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new I(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new B(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),iy=iv.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=p(this,e)).detectRetina&&tz.retina&&0<e.maxZoom?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return ed(i,"load",o(this._tileOnLoad,this,e,i)),ed(i,"error",o(this._tileOnError,this,e,i)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.src=this.getTileUrl(t),i},getTileUrl:function(t){var i={r:tz.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};return this._map&&!this._map.options.crs.infinite&&(t=this._globalTileRange.max.y-t.y,this.options.tms&&(i.y=t),i["-y"]=t),_(this._url,e(i,this.options))},_tileOnLoad:function(t,e){tz.ielt9?setTimeout(o(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return(t=this.options.zoomReverse?e-t:t)+this.options.zoomOffset},_getSubdomain:function(t){return t=Math.abs(t.x+t.y)%this.options.subdomains.length,this.options.subdomains[t]},_abortLoading:function(){var t,e,i;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((i=this._tiles[t].el).onload=h,i.onerror=h,i.complete||(i.src=y,e=this._tiles[t].coords,t1(i),delete this._tiles[t],this.fire("tileabort",{tile:i,coords:e})))},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",y),iv.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(this._map&&(!i||i.getAttribute("src")!==y))return iv.prototype._tileReady.call(this,t,e,i)}});function ib(t,e){return new iy(t,e)}var iw=iy.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,i){this._url=t;var n,o=e({},this.defaultWmsParams);for(n in i)n in this.options||(o[n]=i[n]);var t=(i=p(this,i)).detectRetina&&tz.retina?2:1,s=this.getTileSize();o.width=s.x*t,o.height=s.y*t,this.wmsParams=o},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=1.3<=this._wmsVersion?"crs":"srs";this.wmsParams[e]=this._crs.code,iy.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,i=Z(i.project(e[0]),i.project(e[1])),e=i.min,i=i.max,e=(1.3<=this._wmsVersion&&this._crs===eY?[e.y,e.x,i.y,i.x]:[e.x,e.y,i.x,i.y]).join(","),i=iy.prototype.getTileUrl.call(this,t);return i+f(this.wmsParams,i,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+e},setParams:function(t,i){return e(this.wmsParams,t),i||this.redraw(),this}});iy.WMS=iw,ib.wms=function(t,e){return new iw(t,e)};var ix=tc.extend({options:{padding:.1},initialize:function(t){p(this,t),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),t8(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),n=n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t,e));tz.any3d?ei(this._container,n,i):en(this._container,n)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new B(i,i.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),iC=ix.extend({options:{tolerance:0},getEvents:function(){var t=ix.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ix.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");ed(t,"mousemove",this._onMouseMove,this),ed(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),ed(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){k(this._redrawRequest),delete this._ctx,t1(this._container),ep(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){var t,e,i,n;this._map._animatingZoom&&this._bounds||(ix.prototype._update.call(this),t=this._bounds,e=this._container,i=t.getSize(),n=tz.retina?2:1,en(e,t.min),e.width=n*i.x,e.height=n*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",tz.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update"))},_reset:function(){ix.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),t=(this._layers[a(t)]=t)._order={layer:t,prev:this._drawLast,next:null},this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,i=e.next,e=e.prev;i?i.prev=e:this._drawLast=e,e?e.next=i:this._drawFirst=i,delete t._order,delete this._layers[a(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){for(var e,i=t.options.dashArray.split(/[, ]+/),n=[],o=0;o<i.length;o++){if(isNaN(e=Number(i[o])))return;n.push(e)}t.options._dashArray=n}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||P(this._redraw,this))},_extendRedrawBounds:function(t){var e;t._pxBounds&&(e=(t.options.weight||0)+1,this._redrawBounds=this._redrawBounds||new B,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e])))},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t,e=this._redrawBounds;e?(t=e.getSize(),this._ctx.clearRect(e.min.x,e.min.y,t.x,t.y)):(this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore())},_draw:function(){var t,e,i=this._redrawBounds;this._ctx.save(),i&&(e=i.getSize(),this._ctx.beginPath(),this._ctx.rect(i.min.x,i.min.y,e.x,e.y),this._ctx.clip()),this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!i||t._pxBounds&&t._pxBounds.intersects(i))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var i,n,o,s,a=t._parts,r=a.length,l=this._ctx;if(r){for(l.beginPath(),i=0;i<r;i++){for(n=0,o=a[i].length;n<o;n++)s=a[i][n],l[n?"lineTo":"moveTo"](s.x,s.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){var e,i,n,o;this._drawing&&!t._empty()&&(e=t._point,i=this._ctx,n=Math.max(Math.round(t._radius),1),1!=(o=(Math.max(Math.round(t._radiusY),1)||n)/n)&&(i.save(),i.scale(1,o)),i.beginPath(),i.arc(e.x,e.y/o,n,0,2*Math.PI,!1),1!=o&&i.restore(),this._fillStroke(i,t))},_fillStroke:function(t,e){var i=e.options;i.fill&&(t.globalAlpha=i.fillOpacity,t.fillStyle=i.fillColor||i.color,t.fill(i.fillRule||"evenodd")),i.stroke&&0!==i.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=i.opacity,t.lineWidth=i.weight,t.strokeStyle=i.color,t.lineCap=i.lineCap,t.lineJoin=i.lineJoin,t.stroke())},_onClick:function(t){for(var e,i,n=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)(e=o.layer).options.interactive&&e._containsPoint(n)&&(("click"===t.type||"preclick"===t.type)&&this._map._draggableMoved(e)||(i=e));this._fireEvent(!!i&&[i],t)},_onMouseMove:function(t){var e;!this._map||this._map.dragging.moving()||this._map._animatingZoom||(e=this._map.mouseEventToLayerPoint(t),this._handleMouseHover(t,e))},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(t9(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var i,n,s=this._drawFirst;s;s=s.next)(i=s.layer).options.interactive&&i._containsPoint(e)&&(n=i);n!==this._hoveredLayer&&(this._handleMouseOut(t),n&&(t8(this._container,"leaflet-interactive"),this._fireEvent([n],t,"mouseover"),this._hoveredLayer=n)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(o(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront:function(t){var e,i,n=t._order;n&&(e=n.next,i=n.prev,e&&((e.prev=i)?i.next=e:e&&(this._drawFirst=e),n.prev=this._drawLast,(this._drawLast.next=n).next=null,this._drawLast=n,this._requestRedraw(t)))},_bringToBack:function(t){var e,i,n=t._order;n&&(e=n.next,(i=n.prev)&&((i.next=e)?e.prev=i:i&&(this._drawLast=i),n.prev=null,n.next=this._drawFirst,this._drawFirst.prev=n,this._drawFirst=n,this._requestRedraw(t)))}});function iT(t){return tz.canvas?new iC(t):null}var iP=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),tp={_initContainer:function(){this._container=t0("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ix.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=iP("shape");t8(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=iP("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;t1(e),t.removeInteractiveTarget(e),delete this._layers[a(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(e=e||(t._stroke=iP("stroke")),o.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=g(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(o.removeChild(e),t._stroke=null),n.fill?(i=i||(t._fill=iP("fill")),o.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(o.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){t3(t._container)},_bringToBack:function(t){t5(t._container)}},ik=tz.vml?iP:G,iL=ix.extend({_initContainer:function(){this._container=ik("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ik("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){t1(this._container),ep(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){var t,e,i;this._map._animatingZoom&&this._bounds||(ix.prototype._update.call(this),e=(t=this._bounds).getSize(),i=this._container,this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),en(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update"))},_initPath:function(t){var e=t._path=ik("path");t.options.className&&t8(e,t.options.className),t.options.interactive&&t8(e,"leaflet-interactive"),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){t1(t._path),t.removeInteractiveTarget(t._path),delete this._layers[a(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,t=t.options;e&&(t.stroke?(e.setAttribute("stroke",t.color),e.setAttribute("stroke-opacity",t.opacity),e.setAttribute("stroke-width",t.weight),e.setAttribute("stroke-linecap",t.lineCap),e.setAttribute("stroke-linejoin",t.lineJoin),t.dashArray?e.setAttribute("stroke-dasharray",t.dashArray):e.removeAttribute("stroke-dasharray"),t.dashOffset?e.setAttribute("stroke-dashoffset",t.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),t.fill?(e.setAttribute("fill",t.fillColor||t.color),e.setAttribute("fill-opacity",t.fillOpacity),e.setAttribute("fill-rule",t.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,Q(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n="a"+i+","+(Math.max(Math.round(t._radiusY),1)||i)+" 0 1,0 ",e=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+n+2*i+",0 "+n+-(2*i)+",0 ";this._setPath(t,e)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){t3(t._path)},_bringToBack:function(t){t5(t._path)}});function iM(t){return tz.svg||tz.vml?new iL(t):null}tz.vml&&iL.include(tp),eS.include({getRenderer:function(t){return t=(t=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer)||(this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(t){var e;return"overlayPane"!==t&&void 0!==t&&(void 0===(e=this._paneRenderers[t])&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e)},_createRenderer:function(t){return this.options.preferCanvas&&iT(t)||iM(t)}});var iS=e7.extend({initialize:function(t,e){e7.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=j(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});iL.create=ik,iL.pointsToPath=Q,e6.geometryToLayer=it,e6.coordsToLatLng=ii,e6.coordsToLatLngs=io,e6.latLngToCoords=is,e6.latLngsToCoords=ia,e6.getFeature=ir,e6.asFeature=il,eS.mergeOptions({boxZoom:!0});var Y=tt.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){ed(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){ep(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){t1(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),tU(),es(),this._startPoint=this._map.mouseEventToContainerPoint(t),ed(document,{contextmenu:ex,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=t0("div","leaflet-zoom-box",this._container),t8(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var t=new B(this._point,this._startPoint),e=t.getSize();en(this._box,t.min),this._box.style.width=e.x+"px",this._box.style.height=e.y+"px"},_finish:function(){this._moved&&(t1(this._box),t9(this._container,"leaflet-crosshair")),tq(),ea(),ep(document,{contextmenu:ex,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){1!==t.which&&1!==t.button||(this._finish(),this._moved&&(this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0),t=new N(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point)),this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})))},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}}),tf=(eS.addInitHook("addHandler","boxZoom",Y),eS.mergeOptions({doubleClickZoom:!0}),tt.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,i=t.originalEvent.shiftKey?i-n:i+n;"center"===e.options.doubleClickZoom?e.setZoom(i):e.setZoomAround(t.containerPoint,i)}})),tm=(eS.addInitHook("addHandler","doubleClickZoom",tf),eS.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0}),tt.extend({addHooks:function(){var t;this._draggable||(t=this._map,this._draggable=new eN(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))),t8(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){t9(this._map._container,"leaflet-grab"),t9(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t,e=this._map;e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity?(t=j(this._map.options.maxBounds),this._offsetLimit=Z(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))):this._offsetLimit=null,e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){var e,i;this._map.options.inertia&&(e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos,this._positions.push(i),this._times.push(e),this._prunePositions(e)),this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;1<this._positions.length&&50<t-this._times[0];)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){var t,e;this._viscosity&&this._offsetLimit&&(t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit,t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t))},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,n=(n+e+i)%t-e-i,t=Math.abs(o+i)<Math.abs(n+i)?o:n;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=t},_onDragEnd:function(t){var e,i,n,o,s=this._map,a=s.options,r=!a.inertia||t.noInertia||this._times.length<2;s.fire("dragend",t),!r&&(this._prunePositions(+new Date),t=this._lastPos.subtract(this._positions[0]),r=(this._lastTime-this._times[0])/1e3,e=a.easeLinearity,r=(t=t.multiplyBy(e/r)).distanceTo([0,0]),i=Math.min(a.inertiaMaxSpeed,r),t=t.multiplyBy(i/r),n=i/(a.inertiaDeceleration*e),(o=t.multiplyBy(-n/2).round()).x||o.y)?(o=s._limitOffset(o,s.options.maxBounds),P(function(){s.panBy(o,{duration:n,easeLinearity:e,noMoveStart:!0,animate:!0})}
vendor: 5,270 bytes, line 13
13)):s.fire("moveend")}})),t_=(eS.addInitHook("addHandler","dragging",tm),eS.mergeOptions({keyboard:!0,keyboardPanDelta:80}),tt.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),ed(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),ep(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){var t,e,i;this._focused||(i=document.body,t=document.documentElement,e=i.scrollTop||t.scrollTop,i=i.scrollLeft||t.scrollLeft,this._map._container.focus(),window.scrollTo(i,e))},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){for(var e=this._panKeys={},i=this.keyCodes,n=0,o=i.left.length;n<o;n++)e[i.left[n]]=[-1*t,0];for(n=0,o=i.right.length;n<o;n++)e[i.right[n]]=[t,0];for(n=0,o=i.down.length;n<o;n++)e[i.down[n]]=[0,t];for(n=0,o=i.up.length;n<o;n++)e[i.up[n]]=[0,-1*t]},_setZoomDelta:function(t){for(var e=this._zoomKeys={},i=this.keyCodes,n=0,o=i.zoomIn.length;n<o;n++)e[i.zoomIn[n]]=t;for(n=0,o=i.zoomOut.length;n<o;n++)e[i.zoomOut[n]]=-t},_addHooks:function(){ed(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){ep(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,i,n=t.keyCode,o=this._map;if(n in this._panKeys)o._panAnim&&o._panAnim._inProgress||(i=this._panKeys[n],t.shiftKey&&(i=O(i).multiplyBy(3)),o.options.maxBounds&&(i=o._limitOffset(O(i),o.options.maxBounds)),o.options.worldCopyJump?(e=o.wrapLatLng(o.unproject(o.project(o.getCenter()).add(i))),o.panTo(e)):o.panBy(i));else if(n in this._zoomKeys)o.setZoom(o.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!o._popup||!o._popup.options.closeOnEscapeKey)return;o.closePopup()}ex(t)}}})),tg=(eS.addInitHook("addHandler","keyboard",t_),eS.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60}),tt.extend({addHooks:function(){ed(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){ep(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=ek(t),i=this._map.options.wheelDebounceTime,e=(this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date),Math.max(i-(+new Date-this._startTime),0));clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),e),ex(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0,n=(t._stop(),this._delta/(4*this._map.options.wheelPxPerZoomLevel)),n=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,i=i?Math.ceil(n/i)*i:n,n=t._limitZoom(e+(0<this._delta?i:-i))-e;this._delta=0,this._startTime=null,n&&("center"===t.options.scrollWheelZoom?t.setZoom(e+n):t.setZoomAround(this._lastMousePos,e+n))}})),tv=(eS.addInitHook("addHandler","scrollWheelZoom",tg),eS.mergeOptions({tapHold:tz.touchNative&&tz.safari&&tz.mobile,tapTolerance:15}),tt.extend({addHooks:function(){ed(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){ep(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){var e;clearTimeout(this._holdTimeout),1===t.touches.length&&(e=t.touches[0],this._startPos=this._newPos=new I(e.clientX,e.clientY),this._holdTimeout=setTimeout(o(function(){this._cancel(),this._isTapValid()&&(ed(document,"touchend",ew),ed(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),600),ed(document,"touchend touchcancel contextmenu",this._cancel,this),ed(document,"touchmove",this._onMove,this))},_cancelClickPrevent:function t(){ep(document,"touchend",ew),ep(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),ep(document,"touchend touchcancel contextmenu",this._cancel,this),ep(document,"touchmove",this._onMove,this)},_onMove:function(t){t=t.touches[0],this._newPos=new I(t.clientX,t.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){(t=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY}))._simulated=!0,e.target.dispatchEvent(t)}})),ty=(eS.addInitHook("addHandler","tapHold",tv),eS.mergeOptions({touchZoom:tz.touch,bounceAtZoomLimits:!0}),tt.extend({addHooks:function(){t8(this._map._container,"leaflet-touch-zoom"),ed(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){t9(this._map._container,"leaflet-touch-zoom"),ep(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e,i,n=this._map;!t.touches||2!==t.touches.length||n._animatingZoom||this._zooming||(e=n.mouseEventToContainerPoint(t.touches[0]),i=n.mou
13seEventToContainerPoint(t.touches[1]),this._centerPoint=n.getSize()._divideBy(2),this._startLatLng=n.containerPointToLatLng(this._centerPoint),"center"!==n.options.touchZoom&&(this._pinchStartLatLng=n.containerPointToLatLng(e.add(i)._divideBy(2))),this._startDist=e.distanceTo(i),this._startZoom=n.getZoom(),this._moved=!1,this._zooming=!0,n._stop(),ed(document,"touchmove",this._onTouchMove,this),ed(document,"touchend touchcancel",this._onTouchEnd,this),ew(t))},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),s=i.distanceTo(n)/this._startDist;if(this._zoom=e.getScaleZoom(s,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&s<1||this._zoom>e.getMaxZoom()&&1<s)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1==s)return}else{if(i=i._add(n)._divideBy(2)._subtract(this._centerPoint),1==s&&0===i.x&&0===i.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(i),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),k(this._animRequest),n=o(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0),this._animRequest=P(n,this,!0),ew(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,k(this._animRequest),ep(document,"touchmove",this._onTouchMove,this),ep(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}})),iz=(eS.addInitHook("addHandler","touchZoom",ty),eS.BoxZoom=Y,eS.DoubleClickZoom=tf,eS.Drag=tm,eS.Keyboard=t_,eS.ScrollWheelZoom=tg,eS.TapHold=tv,eS.TouchZoom=ty,t.Bounds=B,t.Browser=tz,t.CRS=H,t.Canvas=iC,t.Circle=e8,t.CircleMarker=e4,t.Class=S,t.Control=eE,t.DivIcon=ig,t.DivOverlay=ip,t.DomEvent=X,t.DomUtil=J,t.Draggable=eN,t.Evented=E,t.FeatureGroup=eX,t.GeoJSON=e6,t.GridLayer=iv,t.Handler=tt,t.Icon=e0,t.ImageOverlay=ic,t.LatLng=R,t.LatLngBounds=N,t.Layer=tc,t.LayerGroup=eJ,t.LineUtil=tn,t.Map=eS,t.Marker=e3,t.Mixin=te,t.Path=e5,t.Point=I,t.PolyUtil=ti,t.Polygon=e7,t.Polyline=e9,t.Popup=im,t.PosAnimation=eM,t.Projection=ta,t.Rectangle=iS,t.Renderer=ix,t.SVG=iL,t.SVGOverlay=iu,t.TileLayer=iy,t.Tooltip=i_,t.Transformation=U,t.Util=M,t.VideoOverlay=id,t.bind=o,t.bounds=Z,t.canvas=iT,t.circle=function(t,e,i){return new e8(t,e,i)},t.circleMarker=function(t,e){return new e4(t,e)},t.control=ez,t.divIcon=function(t){return new ig(t)},t.extend=e,t.featureGroup=function(t,e){return new eX(t,e)},t.geoJSON=ih,t.geoJson=tu,t.gridLayer=function(t){return new iv(t)},t.icon=function(t){return new e0(t)},t.imageOverlay=function(t,e,i){return new ic(t,e,i)},t.latLng=D,t.latLngBounds=j,t.layerGroup=function(t,e){return new eJ(t,e)},t.map=function(t,e){return new eS(t,e)},t.marker=function(t,e){return new e3(t,e)},t.point=O,t.polygon=function(t,e){return new e7(t,e)},t.polyline=function(t,e){return new e9(t,e)},t.popup=function(t,e){return new im(t,e)},t.rectangle=function(t,e){return new iS(t,e)},t.setOptions=p,t.stamp=a,t.svg=iM,t.svgOverlay=function(t,e,i){return new iu(t,e,i)},t.tileLayer=ib,t.tooltip=function(t,e){return new i_(t,e)},t.transformation=q,t.version="1.9.4",t.videoOverlay=function(t,e,i){return new id(t,e,i)},window.L);t.noConflict=function(){return window.L=iz,this},window.L=t}),function(t){"use strict";var e=function(t,e){this.$el=t,this.$parent=t.closest(".cta"),this.options=e,this.ctaVideo="",this.initColorbox()};e.prototype.initColorbox=function(){this.$parent.find(".lb-class").each(function(){t(this).colorbox(t.extend(e.defaults,t(t(this).attr("href")).data()))}),t(document).bind("cbox_complete",{context:this},this.cboxOpenCallBack),t(document).bind("cbox_closed",{context:this},this.cboxClosedCallBack)},e.prototype.cboxOpenCallBack=function(t){t.data.context.formSizeHandler(t),t.data.context.videoLoadHandler(t)},e.prototype.cboxClosedCallBack=function(e){var i=t.colorbox.element
13().attr("href");t(i+" [data-setup-run]").each(function(){t(this).remove()})},e.prototype.formSizeHandler=function(e){var i=t.colorbox.element().attr("href"),n=t(i).find("form"),o=new MutationObserver(function(e){t.colorbox.resize()}),s=document.querySelector(n.selector);null!=s&&o.observe(s,{attributes:!0})},e.prototype.videoLoadHandler=function(e){var i=t.colorbox.element().attr("href");if(t(i+" [data-setup-run]").length&&(e.data.context.ctaVideo=t(i+" [data-setup-run]")[0].outerHTML,t(i+" [data-setup-run]").remove()),e.data.context.ctaVideo){t(i+" .video").append(t(e.data.context.ctaVideo));var n=t(i+" [data-setup-run]");videojs(n[0],n.data("setupRun"),function(){})}},e.defaults={inline:!0,width:"50%",transition:"fade",returnFocus:!1,className:"ctaColorBox"},t.fn.colorBoxModal=function(i){var n;return arguments,this.each(function(){var o=t(this),s=t.extend({},o.data(),"object"==typeof i&&i);if(o.data("ColorBoxModal",new e(o,s)),void 0!==n)return!1}),n||this},t.fn.colorBoxModal.Constructor=e,t.fn.colorBoxModal.noConflict=function(){return t.fn.colorBoxModal=old,this},t(document).ready(function(){t('[data-control="colorbox-modal"]').colorBoxModal({})})}(window.jQuery),function(t){var e=function(e,i){this.$el=t(e),this.inputAttributes=i.attributes,this.options=i||{},this.config={fail:'<span class="error"><i class="la-cicon-exclamation" aria-hidden="true"></i>Oops! Upload failed</span>',notSupported:'<span class="error"><i class="la-cicon-exclamation" aria-hidden="true"></i>File type not supported</span>',maxSize:'<span class="error"><i class="la-cicon-exclamation" aria-hidden="true"></i>File exceeds max size</span>',fileSize:10485760,fileTypes:i.fileTypes,defaultLabel:""==this.options.label?this.options.label:this.options.helpText},this.itemInfo={},this.insertHTML(this.inputAttributes),this.$uploadFieldInput=this.$el.find(":file"),this.$label=this.$el.find(".labelHolder"),this.$close=this.$el.find(".la-cicon-close"),this.init(this.$el)};e.prototype.init=function(t){this.attachEvents()},e.prototype.attachEvents=function(){var e=this;e.$el.on("change",":file",function(){var e=t(this),i=e.get(0).files?e.get(0).files.length:1,n=e.val().replace(/\\/g,"/").replace(/.*\//,""),o=document.getElementById(e.attr("id")).files[0];o&&e.trigger("fileselect",[i,n,o])}),e.$uploadFieldInput.on("fileselect",function(t,i,n,o){e.validateFiles(t,i,n,o)}),e.$uploadFieldInput.on("focus",function(){e.$uploadFieldInput.addClass("has-focus")}).on("blur",function(){e.$uploadFieldInput.removeClass("has-focus")}),e.$close.on("click",function(t){t.preventDefault(),e.toggleInputState("reset"),e.uploadItems("removeLastUploaded"),e.$uploadFieldInput.val("")})},e.prototype.uploadItems=function(t){"object"!=typeof t?this.$uploadFieldInput.data("item",""):(this.$uploadFieldInput.data("item",JSON.stringify(t)),this.toggleInputState("close"))},e.prototype.toggleInputState=function(t){"reset"===t&&(t="upload",this.$label.html(this.config.defaultLabel)),this.$el.find(".la-cicon-"+t).show(),this.$el.find(".la-cicon-"+t).siblings("i").hide(),"upload"===t?this.$el.find(".status-label").show():this.$el.find(".status-label").hide()},e.prototype.encodeBaseSF=function(t,e,i){var n=this,o=new FileReader,s={};o.readAsDataURL(t),o.onload=function(){return s.id=e,s.string=o.result,s.size=t.size,s.extension=n.itemInfo.extension,s.icon=n.itemInfo.icon,i(s)},o.onerror=function(t){}},e.prototype.insertHTML=function(e){this.options.required;var i='<label for="'+e.id+'"><span class="labelHolder">'+this.config.defaultLabel+'</span><span class="btnS"><span class=""><i class="la-cicon-spinner icon-pulse icon-fw icon-load" style="display:none;"></i><i class="la-cicon-upload"></i><i class="la-cicon-close" style="display:none;"></i><span class="status-label"> Browse</span></span></span></label><span class="form-input-info">Maximum file size allowed: 10MB</label>',n=t("<input>",e).addClass("fileUpload");this.$el.append(n).append(i)},e.prototype.validateFiles=function(e,i,n,o){var s=this,a=s.$label.html(),r="",l=!1;t("label",s.$el).removeClass("has-error"),t(".error_container",s.$el.parent().parent()).remove(),s.itemInfo.extension=o.name.split(".").pop().toUpperCase(),s.itemInfo.icon="other",t.each(s.options.fileTypes,function(t,e){e.ext===s.itemInfo.extension&&(l=!0,s.itemInfo.icon=e.icon)}),e.target.value&&(r=e.target.value.split("\\").pop());var h='<span class="success"><i class="la-cicon-file-'+s.itemInfo.icon+'"></i>'+r+"</span>";r?(o.size>s.config.fileSize?s.updateLabel(s.config.maxSize):l?s.encodeBaseSF(o,r,function(t){s.uploadItems(t),s.updateLabel(h)}):s.updateLabel(s.config.notSupported),s.toggleInputState("close")):(s.$label.html(a),s.toggleInputState("load"))},e.prototype.updateLabel=function(t){void 0!==t&&this.$label.html(t)}
13;var i=t.fn.uploadField;t.fn.uploadField=function(i){i=t.extend({},t(this).data(),"object"==typeof i&&i),new e(this,i)},t.fn.uploadField.Constructor=e,t.fn.uploadField.noConflict=function(){return t.fn.uploadField=i,this}}(jQuery),function(t){"use strict";t(document).ready(function(){t("body").on("SMBLeadsFormReady",function(){var e=t('[data-control="form"]');if(e.length){e.each(function(){""!=t(this).data("mhorgid")&&(t("<input>").attr({type:"hidden",name:"mh_orgId",value:t(this).data("mhorgid")}).appendTo(t("form",t(this))),t("<input>").attr({type:"hidden",name:"mh_template_id",value:t(this).data("templateId")}).appendTo(t("form",t(this))))});var i=e.find("form");i.find("input[type=submit]").on("click",function(e){var n=i.serializeArray(),o={};t.each(n,function(t,e){o[e.name]=e.value});let s=document.getElementById("error-form-dialog"),a=document.getElementById("p-error-message"),r=document.getElementById("close-dialog");r.addEventListener("click",()=>{s.close(),document.body.style.overflow="auto"}),function(t){if(!("comments"in t))return!1;var e=RegExp("((https?|ftp):\\/\\/)?([a-z0-9+!*(),;?&=$_.-]+(:[a-z0-9+!*(),;?&=$_.-]+)?@)?([a-z0-9-.]*)\\.([a-z]{2,3})(:[0-9]{2,5})?(\\/([a-z0-9+$_-]\\.?)+)*\\/?(\\?[a-z+&$_.-][a-z0-9;:@&%=+\\/$_.-]*)?(#[a-z_.-][a-z0-9+$_.-]*)?","i");return!!t.comments.match(e)}(o)&&(a.innerHTML="Error: Your message could not be delivered because it contains a link to an external website. Please review your message and try again.",s.showModal(),document.body.style.overflow="hidden",s.style.display="block",e.preventDefault())})}t(".leadForm .hasDatepicker").each(function(){t(this).attr({type:"text",readonly:"readonly"})})});var e=t(".form.isPleForm");e.length&&e.each(function(){var e=t(this).closest(".section");e.hasClass("section-form")||e.addClass("section-form")});var i=t(".section-form:not(.newsletter-2-fields):not(.newsletter-3-fields):not(.contact-us-im):not(.appointment-request):not(.exclusive-offer):not(.pet-memorial):not(.form-default)");i.length&&e.length&&i.each(function(){t(this).find(e).addClass("form-themeExtras"),t("body").on("SMBLeadsFormReady",function(){var i=t(".forms--2col-textarea:not(.newsletter-2-fields):not(.newsletter-3-fields):not(.contact-us-im):not(.appointment-request):not(.exclusive-offer):not(.pet-memorial):not(.form-default)"),n=t(".forms-option--b .leadForm .form__group:not(.checkbox__group):not(.radio__group)");i.find(e).each(function(){t(this).find(".form__group").not(".form-input-comments").wrapAll("<div class='groupWrap' />")}),n.each(function(){t(this).hasClass("hasLabel")&&t(this).addClass("optionB-enabled")})})})})}(window.jQuery),$(document).ready(function(){var t=$(".editable__container");t.length&&t.each(function(){var t=$(this),e=t.find(".contentExpandWrap"),i=t.find("#readMoreLink");i.length&&("SPAN"==i[0].nodeName&&(i.attr("href","#editableAnimateShowLess"),function(t,e){$(t).each(function(){var t=$(e,{html:$(this).html()});$.each(this.attributes,function(){t.attr(this.name,this.value)}),$(this).replaceWith(t)})}(i,"<a></a>")),e.add(i).removeClass("expand"),e.hide(),i.text("Show More"),t.on("click","#readMoreLink",function(i){i.preventDefault();var n=$(this),o=$("body .redactor-link-tooltip .redactor-link-tooltip-action:first-child");o.length&&o.parent().css("visibility","hidden"),"Show More"===n.text()?(t.removeAttr("id"),n.text("Show Less")):(t.attr("id","editableAnimateShowLess"),n.text("Show More")),e.add(n).toggleClass("expand")}))})}),(t=>{"use strict";class e{constructor(t){this.$el=t,this.init()}init(){this.bindToOffsetToAnchors()}bindToOffsetToAnchors(){this.$el.on("click",'a[href^="#"]',e=>{let i=e.target;if(!i)return;let n=decodeURI(i.hash).slice(1);if(!n)return;let o=document.getElementById(n);o&&this.animateToAnchor(t(o))})}animateToAnchor(e,i){i??=this.getStickySectionsHeight(),t("html, body").animate({scrollTop:e.offset().top-i},"slow")}getStickySectionsHeight(){return PLEStickyState?.getStickySectionsHeight()??0}static dataAttribute="linkToSection"}t(()=>{for(let i of document.querySelectorAll(".editable__container")){let n=t(i);n.data(e.dataAttribute,new e(n))}})})(window.jQuery),function(t){"use strict";let e=t('<style type="text/css">.mm-menu.mm-offcanvas { display: none; }</style>');function i(){t("nav.mm-menu a.mm-prev").each(function(){let e=t(this).parent().find("a.mm-title").text();t(this).attr("title",e)}),t("nav.mm-menu a.mm-next").each(function(){let e=t("> a[data-title]",t(this).parent()).data("title");t(this).attr("title",e)}),t("nav.mm-menu a.mm-close").length>0&&t("nav.mm-menu a.mm-close").attr("title","Close"),function(){let e=t(".navigation-a");e.length&&t(".navigation-a > .navigation__list > .navigation__item.has-drop-down").on("mouseenter mouseleave",function(e){let i=t(this),n=i.find("> .navigation__list--sub"),o=n.find("> .navigation__item.has-drop-down > .navigation__list--sub"),s=o.find("> .navigation__item.has-drop-down > .navigation__list--sub"),a=n.outerWidth(!0),r=i.offset().left,l=0,h=0;t(o).each(function(){let e=t(this).outerWidth(!0);e>
13h&&(h=e)});let c=0;t(s).each(function(){let e=t(this).outerWidth(!0);e>c&&(c=e)}),l=a+h+c-i.outerWidth(!0);let d=t(document).width()-(r+i.outerWidth(!0)+60),u=d>l;u?i.removeClass("near-edge"):i.addClass("near-edge")})}()}t("html > head").append(e),t(document).ready(function(){t("[data-sticky-header]").closest(".js-sticky-nav").sticky({topSpacing:0}),t(".navigation__item.more").click(function(t){t.preventDefault()}),t(".more_nav--loading").removeClass("more_nav--loading"),i()}),t(window).load(function(){i()})}(window.jQuery),function(t){"use strict";var e=function(){this.confData={},this.selfCount={},this.mapInstance={},this.mapMarkers={},this.activeMap=null,t(".js-mapComponent").length&&this.initialize()};e.prototype.getAddressForPostcode=function(t,e,i){for(var n="",o=this.confData[t].locations,s=0;s<o.length;s++)if(-1!==o[s].address.indexOf(e)){if(null!==i){if(-1!==o[s].address.indexOf(i)){n=o[s].address;break}}else{n=o[s].address;break}}return n},e.prototype.initialize=function(){var e=this,i=t(".js-mapComponent");window.mapPopupTriggered=!1,i.each(function(){var i=t(this).closest("[data-component-name]").data("componentName");e.mapInstance[i]=L.map(this),L.tileLayer("//smbmaps.ibsrv.net/world_tiles/{z}/{x}/{y}.png",{attribution:'Map data provided by <a href="http://www.internetbrands.com/">Internet Brands</a>',maxZoom:18}).addTo(e.mapInstance[i]),e.mapInstance[i].scrollWheelZoom.disable(),e.confData[i]=JSON.parse(t(this).closest("[data-component-name]").find("input[type=hidden]").val()),e.setupMap(e.mapInstance[i],e.confData[i]),e.mapSize(this,e.confData[i],i),e.attachEvents(this,e.confData[i],i),e.searchByZipCode(this,e.confData[i],e.mapInstance[i],i,!1);var n=e.confData[i].locations;n.length>1&&!e.confData[i].fitBounds&&(n=n.reverse());for(var o=0;o<n.length;o++)if(null!=n[o].cta&&(2==n[o].cta.buttonStyle&&(n[o].cta.iconHtm='\n<span aria-label="'+n[o].cta.iconClass.replace(/-/g," ")+'">\n<span class="'+n[o].cta.iconClass+' icon" aria-hidden="true"></span>\n</span>\n'),3==n[o].cta.buttonStyle&&(n[o].cta.iconHtm='\n<span class="'+n[o].cta.iconClass+' icon" aria-hidden="true"></span>\n'+n[o].cta.buttonText+"\n")),null!=n[o].latitude&&null!=n[o].longitude){var s=[{lat:n[o].latitude,lon:n[o].longitude,address:{name:n[o].address}}];e.applyData(s,i,this,o)}else e.geolocateLocation(n[o],i,this);var a=e.confData[i].xaxis,r=e.confData[i].yaxis;t(window).width()>768&&(0!=a||0!=r)&&e.mapInstance[i].panBy([a,r])}),t("body").click(function(i){if(t(i.target).hasClass("js-mapComponent")){var n=t(i.target).closest("[data-component-name]").data("componentName");null!==e.activeMap&&e.mapInstance[e.activeMap].scrollWheelZoom.disable(),e.activeMap=n,e.confData[n].zoomControl&&e.mapInstance[n].scrollWheelZoom.enable()}else null!==e.activeMap&&(e.mapInstance[e.activeMap].scrollWheelZoom.disable(),e.activeMap=null)})},e.prototype.attachEvents=function(e,i,n){var o,s=this;t(window).resize(function(){s.mapSize(e,i,n),clearTimeout(o),o=setTimeout(function(){if(s.mapMarkers[n].length>1&&s.confData[n].fitBounds){var t=L.featureGroup(s.mapMarkers[n]);s.mapCenter(n,t)}},250)})},e.prototype.setupMap=function(e,i){i.zoomControl||(e.boxZoom.disable(),e.doubleClickZoom.disable(),e.keyboard.disable(),e.scrollWheelZoom.disable(),e.tap&&e.tap.disable(),e.touchZoom.disable(),t(".leaflet-control-zoom").css("visibility","hidden"))},e.prototype.mapCenter=function(t,e){this.mapInstance[t].fitBounds(e.getBounds().pad(.5)),this.confData[t].alwaysShowInfoWindow&&this.mapMarkers[t][this.mapMarkers[t].length-1].isPopupOpen()&&!window.mapPopupTriggered&&(this.mapMarkers[t][this.mapMarkers[t].length-1].closePopup(),this.mapMarkers[t][this.mapMarkers[t].length-1].openPopup(),window.mapPopupTriggered=!0)},e.prototype.mapSize=function(e,i,n){var o=t(e).parent();if(i.autoFit){this.confData[n].isPle?a=o.find(".map__wrap").outerHeight(!0):s=o.children(".component__title-caption-wrap").outerHeight(!0),o.css("height","100%");var s,a,r=o.height();this.confData[n].isPle||null===s?768>=t(window).width()&&null!==a&&(r-=a):r-=s,t(e).css({width:o.width(),height:r}),t(e).trigger("map.resize")}
13else t(e).css({width:i.width,height:i.height})},e.prototype.geocodeURL="https://nominatim.openstreetmap.org/search?[QUERY]&format=json&polygon=1&addressdetails=1&limit=1",e.prototype.geolocateLocation=function(e,i,n){var o=this,s=this.geocodeURL;s=s.replace("[QUERY]",e.query),t.ajax({url:s,dataType:"jsonp",jsonp:"json_callback",success:function(t){o.applyData(t,i,n)}})},e.prototype.searchByZipCode=function(e,i,n,o,s){var a=this,r=this.geocodeURL;t("#location-zip").submit(function(e){e.preventDefault();var l=t("#location-search").val();if(!l||"Enter your zip code and state"==l){alert("Please enter your current city or ZIP code.");return}r="https://nominatim.openstreetmap.org/search?q="+l+"&format=json",t.ajax({url:r,dataType:"jsonp",jsonp:"json_callback",success:function(t){a.getDistance(t,i,n,o,s)}})})},e.prototype.getDistance=function(e,i,n,o,s){var a=this;if(a.markerTemp,0!==Object.keys(e).length){var r=i.locations,l=e[0].lat,h=e[0].lon,c=new L.Icon({iconUrl:i.assetsPath+"css/images/marker-icon-green.png",shadowUrl:i.assetsPath+"images/marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]}),d=new L.marker([l,h],{icon:c});d.addTo(n),void 0!==a.markerTemp&&(a.markerTemp.removeFrom(n),this.mapMarkers[o].pop(d)),null!=d&&(a.markerTemp=d),this.mapMarkers[o].push(d),n.closePopup();var u=L.featureGroup(this.mapMarkers[o]).addTo(n);n.fitBounds(u.getBounds().pad(.5));for(var p=0;p<r.length;p++)if(null!=r[p].latitude&&null!=r[p].longitude)for(var f=Math.round(621371e-9*L.latLng([r[p].latitude,r[p].longitude]).distanceTo([l,h])),m=t(".gmap-location b"),_=t(".gmap-location .gmap-distance"),g=0;g<m.length;g++)-1!==m[g].innerText.indexOf(r[p].title)&&(t(m[g]).closest(".gmap-location").data("distanceMiles",f),f=f.toLocaleString(),_.show(),_[g].innerHTML=f+" mi");t(".gmap-location-list li").sort(function(e,i){return t(i).data("distanceMiles")<t(e).data("distanceMiles")?1:-1}).appendTo(".gmap-location-list"),s=!0,t(".gmap-location-list li").first().children().trigger("click",[s])}else{for(var m=t(".gmap-location b"),v=t(".map-search__location-distance > b"),_=t(".gmap-location .gmap-distance"),p=0;p<_.length;p++)_.show(),_[p].innerHTML=" -- mi";for(var p=0;p<v.length;p++)v.show(),v[p].innerHTML=" -- mi";for(var p=0;p<m.length;p++)t(m[p]).closest(".gmap-location").data("distanceMiles","--")}},e.prototype.applyData=function(e,i,n,o){var s=this;if(e.length>0){s.selfCount[i]=s.selfCount[i]||0;var a=e[0],r=a.lat,l=a.lon;s.mapInstance[i].setView([r,l],s.confData[i].zoom,{animation:!0}),s.selfCount[i]++;var h=[];h.alt="Map Marker";var c=s.confData[i].assetsPath;if(s.confData[i].iconUrl){var d=s.confData[i].iconUrl,u=new L.Icon({iconUrl:d,shadowUrl:c+"images/marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]});h.icon=u}var p=L.marker([r,l],h);if(s.confData[i].alwaysShowInfoWindow||s.confData[i].showAddressOnHover){var f=a.display_name||null,m=null;if("postcode"in a.address){var _="house_number"in a.address?a.address.house_number:null;f=""!=(m=s.getAddressForPostcode(i,a.address.postcode,_))?m:f}else a.address.name&&(f=a.address.name);f&&p.bindPopup(f)}if(s.mapMarkers[i]=s.mapMarkers[i]||[],s.mapMarkers[i].push(p),s.confData[i].hue){var g=s.confData[i].hue.stylers,v=(g[0].gama,g[1].lightness,g[2].hue);"none"!==v&&(t(n).css("background-color",v),t("div.leaflet-tile-pane",n).css("opacity","0.9"))}if(s.selfCount[i]>=s.confData[i].locations.length){var y=L.featureGroup(s.mapMarkers[i]).addTo(s.mapInstance[i]);s.mapMarkers[i].length>1&&s.confData[i].fitBounds&&s.mapCenter(i,y),s.confData[i].alwaysShowInfoWindow&&(s.mapMarkers[i][s.mapMarkers[i].length-1].closePopup(),s.mapMarkers[i][s.mapMarkers[i].length-1].openPopup())}}else console.log("No data found.")},t(document).ready(function(){if(window.webManagerMap=new e,t(".map-a").length>0){var i;i=[{selector:".map-search__location-distance h3 b",property:"title",type:"text"},{selector:".map-search__location-address p",property:"address_format",type:"text"},{selector:".map-search__location-phone",property:"phone",type:"text"},{selector:".map-search__location-phone2",property:"phone2",type:"text"},{selector:".map-search__location-fax",property:"fax",type:"text"},{selector:".map-search__location-directions a",property:["cta","buttonText"],type:"text"},{selector:".map-search__location-directions a",property:["cta","linkPage"],type:"href"},{selector:".map-search__email",property:"email",type:"text"}],t("#gmap-location-list").on("click",".gmap-location a",function(e,n){e.preventDefault();
13var o=t(this).closest("[data-component-name]").data("componentName"),s=window.webManagerMap.confData[o].locations,a=t(this).parent().attr("id"),r=s.find(function(t){return t.ID===a}),l=window.webManagerMap.mapMarkers[o].find(function(t){return t._latlng.lat==r.latitude&&t._latlng.lng==r.longitude}),h=window.webManagerMap.mapInstance[o],c=window.webManagerMap.confData[o];void 0===n&&(h.setView([r.latitude,r.longitude],c.zoom,{animation:!0}),void 0!==l&&l.openPopup());var d=t(this).closest(".gmap-location").data("distanceMiles"),u=t(".map-search__location-distance > b");void 0!==d?(u.show(),d=d.toLocaleString(),u[0].innerHTML=d+" mi"):u[0].innerHTML=" -- mi",i.forEach(function(e,i){var n={},o=e.property;if(".map-search__location-directions a"==e.selector){for(var s="",i=0;i<=3;i++)if(r.cta.buttonStyle==i){switch(r.cta.buttonStyle){case"0":s="cta__link component__link--";break;case"1":s="cta__button component__button--";break;case"2":s="cta__link--icon ";break;case"3":s="cta__button--icon component__button--"}2==r.cta.buttonStyle||3==r.cta.buttonStyle?t(e.selector).html(r.cta.iconHtm):t(e.selector).text(r.cta.buttonText),t(e.selector).removeClass().addClass(s+r.cta.displayStyle),2==r.cta.linkType?t(e.selector).attr("href","#"):1==r.cta.linkType?t(e.selector).attr("href",r.cta.linkUrl):t(e.selector).attr("href",r.cta.linkPage),r.cta.openInNew?t(e.selector).attr("target","_blank"):t(e.selector).attr("target",""),r.cta.openInNew&&1==r.cta.linkType?t(e.selector).attr("rel","noopener"):t(e.selector).attr("rel","")}}else{if("string"==typeof o||o instanceof String)n=r[o];else{var a=r;o.forEach(function(t){a=a[t]}),n=a}if("string"==typeof n||n instanceof String)"text"===e.type?(t(e.selector).text(n),(".map-search__location-phone"==e.selector||".map-search__location-phone2"==e.selector)&&t(e.selector).attr("href","tel:"+n)):"href"===e.type&&t(e.selector).attr("href",n),n.length>0?t(e.selector).show():t(e.selector).hide();else{var l=Object.values(Object.keys(r[o]).map(function(t){return r[o][t]}));t(e.selector).html(l.join("<br>"))}}})})}})}(window.jQuery),function(t){"use strict";var e,i,n,o,s,a,r,l=!0,h="",c=0,d="",u=null,p="",f=!1,m={resize:1,click:1},_=!0,g=1,v="bodyOffset",y=v,b=!0,w="",x={},C=32,T=null,P=!1,k="[iFrameSizer]",M=k.length,S="",z={max:1,min:1,bodyScroll:1,documentElementScroll:1},E="child",I=!0,A=t.parent,O="*",B=0,Z=!1,N=null,j=16,R=1,D="scroll",H=D,W=t,F=function(){X("MessageCallback function not defined")},U=function(){},q=function(){};function V(e,i,n){"addEventListener"in t?e.addEventListener(i,n,!1):"attachEvent"in t&&e.attachEvent("on"+i,n)}function K(e,i,n){"removeEventListener"in t?e.removeEventListener(i,n,!1):"detachEvent"in t&&e.detachEvent("on"+i,n)}function G(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Q=Date.now||function(){return new Date().getTime()};function Y(t){return k+"["+S+"] "+t}function J(e){P&&"object"==typeof t.console&&console.log(Y(e))}function X(e){"object"==typeof t.console&&console.warn(Y(e))}function tt(t,e){void 0!==e&&""!==e&&"null"!==e&&(document.body.style[t]=e,J("Body "+t+' set to "'+e+'"'))}function te(e){function i(){tg(e.eventName,e.eventType)}var n={add:function(e){V(t,e,i)},remove:function(e){K(t,e,i)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(n[e.method])):n[e.method](e.eventName),J(G(e.method)+" event listener: "+e.eventType)}function ti(t){te({method:t,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),te({method:t,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),te({method:t,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),te({method:t,eventType:"Input",eventName:"input"}),te({method:t,eventType:"Mouse Up",eventName:"mouseup"}),te({method:t,eventType:"Mouse Down",eventName:"mousedown"}),te({method:t,eventType:"Orientation Change",eventName:"orientationchange"}),te({method:t,eventType:"Print",eventName:["afterprint","beforeprint"]}),te({method:t,eventType:"Ready State Change",eventName:"readystatechange"}),te({method:t,eventType:"Touch Start",eventName:"touchstart"}),te({method:t,eventType:"Touch End",eventName:"touchend"}),te({method:t,eventType:"Touch Cancel",eventName:"touchcancel"}),te({method:t,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),te({method:t,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),te({method:t,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}
13),"child"===E&&te({method:t,eventType:"IFrame Resized",eventName:"resize"})}function tn(t,e,i,n){return e!==t&&(t in i||(X(t+" is not a valid option for "+n+"CalculationMethod."),t=e),J(n+' calculation method set to "'+t+'"')),t}function to(){y=tn(y,v,tf,"height")}function ts(){H=tn(H,D,tm,"width")}function ta(){var e;!0===l?(ti("add"),e=0>C,t.MutationObserver||t.WebKitMutationObserver?e?tl():u=function(){function e(t){function e(t){!1===t.complete&&(J("Attach listeners to "+t.src),t.addEventListener("load",o,!1),t.addEventListener("error",s,!1),r.push(t))}"attributes"===t.type&&"src"===t.attributeName?e(t.target):"childList"===t.type&&Array.prototype.forEach.call(t.target.querySelectorAll("img"),e)}function i(t){J("Remove listeners from "+t.src),t.removeEventListener("load",o,!1),t.removeEventListener("error",s,!1),r.splice(r.indexOf(t),1)}function n(t,e,n){i(t.target),tg(e,n+": "+t.target.src,void 0,void 0)}function o(t){n(t,"imageLoad","Image loaded")}function s(t){n(t,"imageLoadFailed","Image load failed")}var a,r=[],l=t.MutationObserver||t.WebKitMutationObserver,h=(a=document.querySelector("body"),h=new l(function(t){tg("mutationObserver","mutationObserver: "+t[0].target+" "+t[0].type),t.forEach(e)}),J("Create body MutationObserver"),h.observe(a,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),h);return{disconnect:function(){"disconnect"in h&&(J("Disconnect body MutationObserver"),h.disconnect(),r.forEach(i))}}}():(J("MutationObserver not supported in this browser!"),tl())):J("Auto Resize disabled")}function tr(){ti("remove"),null!==u&&u.disconnect(),clearInterval(T)}function tl(){0!==C&&(J("setInterval: "+C+"ms"),T=setInterval(function(){tg("interval","setInterval: "+C)},Math.abs(C)))}function th(t,e){var i=0;return e=e||document.body,parseInt(i="defaultView"in document&&"getComputedStyle"in document.defaultView?null!==(i=document.defaultView.getComputedStyle(e,null))?i[t]:0:function(t){if(/^\d+(px)?$/i.test(t))return parseInt(t,10);var i=e.style.left,n=e.runtimeStyle.left;return e.runtimeStyle.left=e.currentStyle.left,e.style.left=t||0,t=e.style.pixelLeft,e.style.left=i,e.runtimeStyle.left=n,t}(e.currentStyle[t]),10)}function tc(t,e){for(var i,n=e.length,o=0,s=0,a=G(t),r=Q(),l=0;l<n;l++)(o=e[l].getBoundingClientRect()[t]+th("margin"+a,e[l]))>s&&(s=o);return r=Q()-r,J("Parsed "+n+" HTML elements"),J("Element position calculated in "+r+"ms"),(i=r)>j/2&&J("Event throttle increased to "+(j=2*i)+"ms"),s}function td(t){return[t.bodyOffset(),t.bodyScroll(),t.documentElementOffset(),t.documentElementScroll()]}function tu(t,e){var i=document.querySelectorAll("["+e+"]");return 0===i.length?(X("No tagged elements ("+e+") found on page"),g):tc(t,i)}function tp(){return document.querySelectorAll("body *")}var tf={bodyOffset:function(){return document.body.offsetHeight+th("marginTop")+th("marginBottom")},offset:function(){return tf.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,td(tf))},min:function(){return Math.min.apply(null,td(tf))},grow:function(){return tf.max()},lowestElement:function(){return Math.max(tf.bodyOffset(),tc("bottom",tp()))},taggedElement:function(){return tu("bottom","data-iframe-height")}},tm={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(tm.bodyScroll(),tm.documentElementScroll())},max:function(){return Math.max.apply(null,td(tm))},min:function(){return Math.min.apply(null,td(tm))},rightMostElement:function(){return tc("right",tp())},taggedElement:function(){return tu("right","data-iframe-width")}},t_=(e=function(t,e,i,n){var o,s;(function(){function t(t,e){return!(Math.abs(t-e)<=B)}return o=void 0!==i?i:tf[y](),s=void 0!==n?n:tm[H](),t(g,o)||f&&t(R,s)})()||"init"===t?(tv(),tw(g=o,R=s,t)):!(t in{init:1,interval:1,size:1}
13)&&(y in z||f&&H in z)?tb(e):t in{interval:1}||J("No change in size detected")},s=null,a=0,r=function(){a=Q(),s=null,o=e.apply(i,n),s||(i=n=null)},function(){var t=Q();a||(a=t);var l=j-(t-a);return i=this,n=arguments,l<=0||l>j?(s&&(clearTimeout(s),s=null),a=t,o=e.apply(i,n),s||(i=n=null)):s||(s=setTimeout(r,l)),o});function tg(t,e,i,n){Z&&t in m?J("Trigger event cancelled: "+t):(t in{reset:1,resetPage:1,init:1}||J("Trigger event: "+e),t_(t,e,i,n))}function tv(){Z||(Z=!0,J("Trigger event lock on")),clearTimeout(N),N=setTimeout(function(){Z=!1,J("Trigger event lock off"),J("--")},128)}function ty(t){g=tf[y](),R=tm[H](),tw(g,R,t)}function tb(t){var e=y;y=v,J("Reset trigger event: "+t),tv(),ty("reset"),y=e}function tw(t,e,i,n,o){if(!0===I){var s;void 0===o?o=O:J("Message targetOrigin: "+o),J("Sending message to host page ("+(s=S+":"+t+":"+e+":"+i+(void 0!==n?":"+n:""))+")"),A.postMessage(k+s,o)}}V(t,"message",function e(i){var n,o;function s(){return i.data.split("]")[1].split(":")[0]}function a(){return i.data.substr(i.data.indexOf(":")+1)}function r(){return i.data.split(":")[2]in{true:1,false:1}}k===(""+i.data).substr(0,M)&&(!1===_?function(){var e,n,o;switch(s()){case"reset":b?J("Page reset ignored by init"):(J("Page size reset by host page"),ty("resetPage"));break;case"resize":tg("resizeParent","Parent window requested size check");break;case"moveToAnchor":e=a(),x.findTarget(e);break;case"message":J("MessageCallback called from parent: "+(n=a())),F(JSON.parse(n)),J(" --");break;case"pageInfo":J("PageInfoFromParent called from parent: "+(o=a())),q(JSON.parse(o)),J(" --");break;default:"iFrameResize"in t||r()||X("Unexpected message ("+i.data+")")}}():r()?(w=i.data,A=i.source,function(){function t(t){return"true"===t}var e=w.substr(M).split(":");S=e[0],c=void 0!==e[1]?Number(e[1]):c,f=void 0!==e[2]?t(e[2]):f,P=void 0!==e[3]?t(e[3]):P,C=void 0!==e[4]?Number(e[4]):C,l=void 0!==e[6]?t(e[6]):l,d=e[7],y=void 0!==e[8]?e[8]:y,h=e[9],p=e[10],B=void 0!==e[11]?Number(e[11]):B,x.enable=void 0!==e[12]&&t(e[12]),E=void 0!==e[13]?e[13]:E,H=void 0!==e[14]?e[14]:H}(),J("Initialising iFrame ("+location.href+")"),function(){if("iFrameResizer"in t&&Object===t.iFrameResizer.constructor){var e;J("Reading data from page: "+JSON.stringify(e=t.iFrameResizer)),F="messageCallback"in e?e.messageCallback:F,U="readyCallback"in e?e.readyCallback:U,O="targetOrigin"in e?e.targetOrigin:O,y="heightCalculationMethod"in e?e.heightCalculationMethod:y,H="widthCalculationMethod"in e?e.widthCalculationMethod:H}J("TargetOrigin for parent set to: "+O)}(),void 0===d&&(d=c+"px"),tt("margin",(-1!==(n=d).indexOf("-")&&(X("Negative CSS value ignored for margin"),n=""),n)),tt("background",h),tt("padding",p),(o=document.createElement("div")).style.clear="both",o.style.display="block",document.body.appendChild(o),to(),ts(),document.documentElement.style.height="",document.body.style.height="",J('HTML & body height set to "auto"'),J("Enable public methods"),W.parentIFrame={autoResize:function(t){return!0===t&&!1===l?(l=!0,ta()):!1===t&&!0===l&&(l=!1,tr()),l},close:function(){tw(0,0,"close"),J("Disable outgoing messages"),I=!1,J("Remove event listener: Message"),K(t,"message",e),!0===l&&tr()},getId:function(){return S},getPageInfo:function(t){"function"==typeof t?(q=t,tw(0,0,"pageInfo")):(q=function(){},tw(0,0,"pageInfoStop"))},moveToAnchor:function(t){x.findTarget(t)},reset:function(){tb("parentIFrame.reset")},scrollTo:function(t,e){tw(e,t,"scrollTo")},scrollToOffset:function(t,e){tw(e,t,"scrollToOffset")},sendMessage:function(t,e){tw(0,0,"message",JSON.stringify(t),e)},setHeightCalculationMethod:function(t){y=t,to()},setWidthCalculationMethod:function(t){H=t,ts()},setTargetOrigin:function(t){J("Set targetOrigin: "+t),O=t},size:function(t,e){tg("size","parentIFrame.size("+(t||"")+(e?","+e:"")+")",t,e)}},ta(),x=function(){function e(e){var i,n,o,s=e.split("#")[1]||e,a=decodeURIComponent(s),r=document.getElementById(a)||document.getElementsByName(a)[0];void 0!==r?(i=r.getBoundingClientRect(),n={x:void 0!==t.pageXOffset?t.pageXOffset:document.documentElement.scrollLeft,y:void 0!==t.pageYOffset?t.pageYOffset:document.documentElement.scrollTop},J("Moving to in page link (#"+s+") at x: "+(o={x:parseInt(i.left,10)+parseInt(n.x,10),y:parseInt(i.top,10)+parseInt(n.y,10)}).x+" y: "+o.y),tw(o.y,o.x,"scrollToOffset")):(J("In page link (#"+s+") not found in iFrame, so sending to parent"),tw(0,0,"inPageLink","#"+s))}function i(){""!==location.hash&&"#"!==location.hash&&e(location.href)}return x.enable?Array.prototype.forEach&&document.querySelectorAll?(J("Setting up location.hash handlers"),Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),function(t){"#"!==t.getAttribute("href")&&V(t,"click",function(t){t.preventDefault(),e(this.getAttribute("href"))})}
13),V(t,"hashchange",i),setTimeout(i,128)):X("In page linking not fully supported in this browser! (See README.md for IE8 workaround)"):J("In page linking not enabled"),{findTarget:e}}(),tg("init","Init message from host page"),U(),_=!1,setTimeout(function(){b=!1},128)):J('Ignored message of type "'+s()+'". Received before initialization.'))}),"loading"!==document.readyState&&t.parent.postMessage("[iFrameResizerChild]Ready","*")}(window||{}),function(t){var e=!1;if("function"==typeof define&&define.amd&&(define(t),e=!0),"object"==typeof exports&&(module.exports=t(),e=!0),!e){var i=window.Cookies,n=window.Cookies=t();n.noConflict=function(){return window.Cookies=i,n}}}(function(){function t(){for(var t=0,e={};t<arguments.length;t++){var i=arguments[t];for(var n in i)e[n]=i[n]}return e}return function e(i){function n(e,o,s){if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(s=t({path:"/"},n.defaults,s)).expires){var a,r=new Date;r.setMilliseconds(r.getMilliseconds()+864e5*s.expires),s.expires=r}try{a=JSON.stringify(o),/^[\{\[]/.test(a)&&(o=a)}catch(t){}return o=i.write?i.write(o,e):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[e,"=",o,s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("")}e||(a={});for(var l=document.cookie?document.cookie.split("; "):[],h=/(%[0-9A-Z]{2})+/g,c=0;c<l.length;c++){var d=l[c].split("="),u=d.slice(1).join("=");'"'===u.charAt(0)&&(u=u.slice(1,-1));try{var p=d[0].replace(h,decodeURIComponent);if(u=i.read?i.read(u,p):i(u,p)||u.replace(h,decodeURIComponent),this.json)try{u=JSON.parse(u)}catch(t){}if(e===p){a=u;break}e||(a[p]=u)}catch(t){}}return a}}return n.set=n,n.get=function(t){return n.call(n,t)},n.getJSON=function(){return n.apply({json:!0},[].slice.call(arguments))},n.defaults={},n.remove=function(e,i){n(e,"",t(i,{expires:-1}))},n.withConverter=e,n}(function(){})}),$(document).ready(function(){window.menuHolder=$(".navigation").not(".mm-menu"),window.menuHolderMaxWidth=100,window.menu=$(".more_nav").not(".mm-listview"),window.currentMenu=menu,window.currentMenuWidth=window.menuHolder.outerWidth(),window.menuChildrenCount=currentMenu.children().length,window.origMenuContent="",window.moreButton=$('<li class="navigation__item has-child more"> <a href="#">More</a> <ul class="navigation__list--sub"></ul> </li>'),window.allMenus=[]}),$(()=>{"use strict";let t=document.querySelectorAll("#shapePnl a"),e=({currentTarget:t})=>{let e=t.classList.item(0),i=t.parentElement.querySelectorAll(":scope > .selected");for(let t of i)t.classList.remove("selected");t.classList.add("selected");let n=document.querySelectorAll("#facePnl");for(let t of n)t.setAttribute("class",e);let o=document.querySelectorAll(`#infoPnl div.${e}`);for(let t of o)for(let e of t.parentElement.children)e.style.display=e===t?"block":"none"};for(let i of t)i.addEventListener("click",e);let i=document.querySelectorAll('#framePnl span[class*="frm"]'),n=({currentTarget:t})=>{let e=t.getAttribute("class"),i=document.querySelectorAll("#framePnl a.selected");for(let t of i)t.classList.remove("selected");t.parentElement.classList.add("selected");let n=document.querySelectorAll("#lrgFrame");for(let t of n)t.setAttribute("class",e)};for(let t of i)t.addEventListener("click",n);let o=1,s=document.querySelectorAll("ul#frameSets li").length,a=document.querySelectorAll("a.prvSet"),r=t=>{t.stopPropagation(),t.preventDefault();let e=$("ul#frameSets li");if(o>1){e.animate({left:"+=720px"},500),o-=1;return}e.animate({left:`-${(s-1)*720}px`},500),o=s};for(let t of a)t.addEventListener("click",r);let l=document.querySelectorAll("a.nxtSet"),h=t=>{t.stopPropagation(),t.preventDefault();let e=$("ul#frameSets li");if(o<s){e.animate({left:"-=720px"},500),o+=1;return}e.animate({left:"0px"},500),o=1};for(let t of l)t.addEventListener("click",h);let c=document.querySelectorAll("a.lnchFrmSlctr"),d=t=>{t.preventDefault(),t.stopPropagation(),$.fancybox({autoSize:!1,speedIn:600,speedOut:200,transitionIn:"elastic",type:"inline",href:"#frameSelector",width:"815",height:"508"})};for(let t of c)t.addEventListener("click",d);let u=document.querySelectorAll("button.lnch3dspine"),p=t=>{t.stopPropagation(),t.preventDefault(),$.fancybox({autoSize:!1,speedIn:600,speedOut:200,transitionIn:"elastic",type:"inline",href:"#frameSelector",width:"902",height:"833"})};for(let t of u)t.addEventListener("click",p);let f=document.querySelectorAll("button.lnchpetselector"),m=t=>{t.preventDefault(),t.stopPropagation(),$.fancybox({autoSize:!1,speedIn:600,speedOut:200,transitionIn:"elastic",type:"inline",href:"#frameSelector",width:"940",height:"750"})};for(let t of f)t.addEventListener("click",m)}),function(t){"use strict";function e(){var e=t(".map__display"),i=0,n=t(".wrap__map .component__title-caption-wrap"),o=n.outerHeight(!0),s=t(".wrap__hours .component__title-caption-wrap"),a=s.outerHeight(!0),r=0;r=o>a?o:a,t(".hours__wrapper").each(function(){i+=t(this).outerHeight(!0)}),window.innerWidth>1140?(o>0?(e.height(i),null===a&&e.height(i-o)):e.height(i+a),n.add(s).css({height:r+"px"}),null===a&&0===t(".hours__wrapper").length&&e.height(300)):(e.height(500),n.add(s).css({height:"auto"}))}function i(){var e=window.innerWidth,i=t("#navigation_header"),n=t("#mm-navigation_header");if(n.add(i).find(".navigation__list--sub").find("ul").removeClass("navigation__list--sub").addClass("navigation__list--sub--sub"),e>=1200){for(var o=i.find('li:has("ul")'),s=i.find('ul li ul li:has("ul")'),a=0;a<o.length;a++)o[a].onmouseover=null,o[a].onmouseout=null;i.find("ul:first").children("li.has-child").mouseover(function(){var e=t(this).find("ul:first");e.show(),e.find("li").mouseover(function(){e.show()})}).mouseout(function(){t(this).find("ul:first").hide()}),s.each(function(){var e=t(this);0>=e.find("> a > span").size()&&e.find("> a").append("<span></span>")}),s.find("span").hover(function(){t(this).parent("a").toggleClass("hoveredSpan")}),s.find("span").click(function(e){var i=t(this).closest("li");i.hasClass("open")?(i.removeClass("open"),i.find("li").removeClass("open"),i.find("ul").slideUp(200)):(i.addClass("open"),i.children("div").find("ul").slideDown(200),i.siblings("li").children("div").find("ul").slideUp(200),i.siblings("li").removeClass("open"),i.siblings("li").find("li").removeClass("open"),i.siblings("li").find("ul").slideUp(200)),e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()}),n.removeClass("mm-opened mm-current"),t("html").removeClass("mm-opened mm-blocking mm-background mm-opening")}else t("#hamburger").on("click",function(){n.addClass("mm-opened mm-current"),t("html").addClass("mm-opened mm-blocking mm-background mm-opening")})}function n(){var e=window.innerWidth,i=0;if(e>750){var n=t(".wrap__exclusiveOfferForm--inner").outerHeight(!0),o=t(".wrap__ctaExclusiveOffer .cta__link").outerWidth(!0);i=n>o?n:o,t(".wrap__exclusiveOfferForm").css({"min-height":i+"px"}),t(".wrap__ctaExclusiveOffer, .wrap__ctaExclusiveOffer--inner .cta").css({"min-height":i+"px"})}var s=t(".featuredblock__item"),a=0,r=0,l=0,h=0,c=0,d=0,u=0,p=0;e>=750?(s.each(function(){u=t(this).find(".featuredblock__image").height(),c=t(this).find(".featuredblock__icon").height(),p<=u&&(p=u),d<=c&&(d=c),d>=p||(d=p),r<=(a=t(this).find(".featuredblock__title").height())&&
13(r=a),h<=(l=t(this).find(".featuredblock__description").height())&&(h=l)}),s.each(function(){t(this).find(".featuredblock__title").height(r),t(this).find(".featuredblock__description").height(h),t(this).find(".featuredblock__image").height(d),t(this).find(".featuredblock__icon").height(d)}),r=0,h=0,d=0):s.each(function(){t(this).find(".featuredblock__title").css("height","auto"),t(this).find(".featuredblock__description").css("height","auto"),t(this).find(".featuredblock__image").css("height","auto"),t(this).find(".featuredblock__icon").css("height","auto")})}function o(){var e=window.innerWidth,i=t(".slider__text"),n=0;i.each(function(){var e,i=t(this).parent();"none"==i.css("display")?(i.css({display:"block"}),e=t(this).outerHeight(!0),i.css({display:"none"})):e=t(this).outerHeight(!0),e>n&&(n=e)}),e>=1200&&t("<style>.wrap__slider .bx-wrapper:before, .wrap__slider .bx-wrapper .bx-viewport:before {height: "+n+"px !important;}</style>").appendTo("head")}e(),t(window).resize(function(){e()}),t(document).ready(function(){window.myOptiscrollInstance=null,t(".fancybox").fancybox(),t("#navigation_header").mmenu({},{clone:!0}),t(".stickyHeader").sticky(),jQuery(".preview_iframe, #desktop_iframe").height(jQuery(window).height()-jQuery("#header").outerHeight()-jQuery("#main .nav-panel").outerHeight()-jQuery("#main .preview-section .preview-panel").outerHeight()-jQuery("#footer").outerHeight()-5),t(".featuredblock__description, .staff__item .staff-member__description").each(function(){var e=t(this),i=parseInt(e.css("line-height"));e.css({maxHeight:4*i}).dotdotdot({tolerance:10,watch:!0})}),t(".featuredarticles__list--slider .featuredarticles__item").each(function(){var e=t(this),i=0===e.find(".featuredarticle__image-wrapper").length,n=e.find(".featuredarticle__text .featuredarticle__title a");!0===i&&n.css({position:"relative",width:"100%",top:"0"})});var e,s,a,r,l,h=t("#navigation_header"),c=h.parent();t("#hamburger").moveElement({place:c});var d=t(".wrap__logoHeader"),u=t(".slider__text");d.moveElement({place:u}),1===t(".navigation").not(".mm-menu").data("more-button")&&(window.moreButton=t('<li class="navigation__item has-child more"> <a href="#">More</a> <ul class="navigation__list--sub"></ul> </li>'));var h=t("#navigation_header"),c=h.parent(),p=h.find("ul"),f="sublevel-";function m(){window.currentMenuWidth=window.menuHolder.outerWidth(),addMoreButton(),i(),p=h.find("ul"),navigationSublevelWrap(p,f),t(".navigation:not(.mm-menu) .sublevel-1").each(function(){t(this).scrollArea({heightProp:"maxHeight",setScrollTo:"> .navigation__list--sub"})})}t(".cta__link").click(function(t){t.preventDefault()}),e=t(".wrap__ctaExclusiveOffer"),s=t(".wrap__exclusiveOfferForm"),t("body").click(function(i){t(i.target).closest(".wrap__exclusiveOfferForm").length>0?i.stopPropagation():t(i.target).closest(".wrap__ctaExclusiveOffer").length>0?(e.toggleClass("exclusiveOfferCtaTransform"),s.toggleClass("exclusiveOfferFormShow")):(e.removeClass("exclusiveOfferCtaTransform"),s.removeClass("exclusiveOfferFormShow"))}),n(),(l=t(".mm-menu")).find(".navigation__list--sub").each(function(e,i){void 0!==(r=t(i).find(".has-child").find("a").attr("href"))&&(a=r.substring(1)),l.find(".mm-panel").filter(function(e){return t(this).attr("id")==a}).addClass("grandchild").find("ul").removeClass("navigation__list--sub").addClass("navigation__list--sub--sub")}),o(),!t(".wrap__slider").hasClass("text-only")&&t(".slider__image").length&&t(".slider__image").css("background-image").length&&!t(".slider__image--fixed").length&&t(".slider__image").each(function(){var e=t(this),i=e.css("background-image").replace(/(url\(|\)|'|")/gi,"");t(this).css("background-image","none"),e.prepend('<div class="slider__image--fixed" style="background-image: url('+i+')">')}),ResponsiveHelper.addRange({"1200..":{on:function(){1===t(".navigation").not(".mm-menu").data("more-button")&&(menuPrepare(),window.currentMenuWidth=window.menuHolder.outerWidth(),addMoreButton(),t(window).on("resize orientationchange",m)),i(),p=h.find("ul"),navigationSublevelWrap(p,f),t(".navigation:not(.mm-menu) .sublevel-1").each(function(){t(this).scrollArea({heightProp:"maxHeight",setScrollTo:"> .navigation__list--sub"})})},off:function(){1===t(".navigation").not(".mm-menu").data("more-button")&&t(window).off("resize orientationchange",m),setTimeout(function(){t(".navigation:not(.mm-menu) .sublevel-1").each(function(){void 0!==t(this).data("scrollArea")&&t(this).data("scrollArea").destroy()})},100)}}}),t(".form").length&&t("body").on("SMBLeadsFormReady",function(){t(".form").each(function(){t(this).find(".form__group").not(".form-input-comments").wrapAll("<div class='outerWrap' />")}),n(),o()})}),t(window).load(function(){n(),o(),window.dispatchEvent(new Event("resize"))}),t(window).resize(function(){t(".stickyHeader").unstick(),t(".stickyHeader").sticky(),n(),o()})}(window.jQuery),$(document).ready(function(){disableLinks(".wrap__page-content a, .wrap__editable-content a"),$(".form").length&&$("body").on("SMBLeadsFormReady",function(){void 0!==$("body").data("FixedScrollBlock")&&$("body").data("FixedScrollBlock").refresh()}),setTimeout(function(){$("body").removeClass("mm-slideout mm-page")},1e3),$("a.dd-lightbox").fancybox()});

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.