PageSourceSearch

https://www.laconservancy.org/wp-content/themes/laconservancy/assets/dist/js/app.js

js laconservancy.org collected 2026-09-24 17:36:46 UTC 363,152 bytes, 1 lines download raw bytes

1!function(){"use strict";function t(e){9===e.keyCode&&(document.body.classList.add("u-keyboard-user"),window.removeEventListener("keydown",t))}function e(){const t=document.getElementsByClassName("js-select-custom");[].forEach.call(t,(()=>{const e=t[0],i=e.previousElementSibling,n=e.children[0],s=e.children[1],o=Array.from(s.children),a=o.length;let r="",l=-1;function h(){e.classList.remove("is-open"),e.setAttribute("aria-hidden",!0),c(-1),document.removeEventListener("click",u),document.removeEventListener("keydown",p)}function c(t){const e=s.children[l],i=s.children[t];e&&e.classList.remove("isHover"),i&&i.classList.add("isHover"),l=t}function d(t,e){const i=r,o=s.querySelector(`[data-value="${i}"`),a=s.querySelector(`[data-value="${t}"`);o&&o.classList.remove("is-open"),a&&a.classList.add("is-open"),n.textContent=e,r=t}function u(){!e.contains(event.target)&&h()}function p(t){if(40===event.keyCode&&l<a-1&&(t.preventDefault(),c(l+1)),38===event.keyCode&&l>0&&(t.preventDefault(),c(l-1)),13===event.keyCode||32===event.keyCode){t.preventDefault();const e=s.children[l],n=e&&e.getAttribute("data-value");n&&(i.value=n,d(n,e.textContent)),h()}27===event.keyCode&&h()}n.addEventListener("click",(()=>{!e.classList.contains("is-open")?function(){if(e.classList.add("is-open"),e.setAttribute("aria-hidden",!1),r){c(o.findIndex((t=>t.getAttribute("data-value")===r)))}document.addEventListener("click",u),document.addEventListener("keydown",p)}():h()})),i.addEventListener("change",(t=>{const e=t.target.value;d(e,s.querySelectorAll(`[data-value="${e}"]`)[0].textContent)})),o.forEach((function(t,e){t.addEventListener("click",(t=>{const e=t.target.getAttribute("data-value");i.value=e,d(e,t.target.textContent),h()})),t.addEventListener("mouseenter",(()=>{c(e)}))}))}))}!function(){const t={NODE_ENV:"production"};try{if(process)return process.env=Object.assign({},process.env),void Object.assign(process.env,t)}catch(t){}globalThis.process={env:t}}();const i="c-modal",n="c-modal--is-open",s="c-modal--is-ready",o="c-modal--will-focus";let a=null,r=null,l=null;function h(t,e){if(window.siteHasOpenModal)return!1;window.siteHasOpenModal=!0;const i=document.getElementById(t);if(i.classList.contains("c-modal--newsletter-signup")&&!function(t,e){const i=e.getAttribute("data-soapbox-url"),n=e.getAttribute("data-soapbox-form-url"),s=e.getAttribute("data-email-form-id"),o=e.getAttribute("data-content-id");if(!i||!n)return!1;const a=document.getElementById(o);a.innerHTML="";let r=i+"/index2.php?option=com_jsfsubmit&form_ID="+n;if(s){let t=document.getElementById(s).value;t&&(r=r+"&Contact_Email="+encodeURIComponent(t))}var l=document.createElement("iframe");return l.setAttribute("src",r),a.appendChild(l),!0}(0,e))return!1;i.classList.contains("c-modal--align-to-header")&&function(t){const e=document.getElementById("site-header").getBoundingClientRect(),i=e.bottom<0?0:e.bottom;t.style.top=`${i}px`}(i),i.classList.contains("c-modal--scroll-top")&&window.scrollTo(0,0),i.classList.add(n),i.setAttribute("aria-modal",!0),i.setAttribute("aria-hidden",!1),setTimeout((()=>{i.classList.add(s)}),1),document.body.classList.add("is-locked"),document.body.classList.add(`${t}--open`),e.classList.add(o),a=[];i.querySelectorAll('button, [href], input, select, textarea, iframe, [tabindex]:not([tabindex="-1"])').forEach((t=>{t.offsetWidth>0&&t.offsetHeight>0&&a.push(t)})),r=a[0],l=a[a.length-1],r.focus()}function c(t,e,i=240){const a=document.getElementById(t);let r=void 0!==e&&e.getAttribute("data-modalclosedelay")?parseInt(e.getAttribute("data-modalclosedelay")):i;a.classList.remove(s),a.setAttribute("aria-modal",!1),a.setAttribute("aria-hidden",!0);const l=document.querySelector(`.${o}`);l.focus(),l.classList.remove(o),window.siteHasOpenModal=!1,document.body.classList.remove("is-locked"),document.body.classList.remove(`${t}--open`),setTimeout((()=>{a.classList.remove(n)}),r),a.classList.contains("c-modal--newsletter-signup")&&(document.getElementById("c-modal--newsletter-signup--wrapper").innerHTML="")}function d(t){if(!window.siteHasOpenModal)return!1;if(27===t.keyCode){c(document.querySelector(`.${i}.${n}`).getAttribute("id"))}else"Tab"!==t.key&&9!==t.keyCode||(console.log(document.activeElement,t.target,r,l),t.shiftKey?document.activeElement===r&&(l.focus(),t.preventDefault()):document.activeElement===l&&(r.focus(),t.preventDefault()))}function u(){document.querySelectorAll(`.${i}`).forEach((t=>document.body.appendChild(t)));document.querySelectorAll(".js-modal-toggle").forEach((t=>{t.addEventListener("click",(()=>{const e=t.dataset.modalid,i=document.getElementById(e);if(null==i)return!1;i.classList.contains(n)?c(e,t):h(e,t)}))}));document.querySelectorAll(".c-modal--mobile-only").forEach((t=>function(t){window.addEventListener("resize",(()=>{if(window.innerWidth>1e3&&t.classList.contains(n)){const e=t.querySelector(".c-modal__close");c(t.getAttribute("id"),e)}}))}(t)));document.querySelectorAll(".c-modal--close-bkg-click").forEach((t=>{t.addEventListener("click",(e=>{if(console.log(e.target.classList),e.target===t||e.target.classList.contains("c-modal__contents")){const e=t.querySelector(".c-modal__close");c(t.getAttribute("id"),e)}}))})),window.addEventListener("keydown",d,!0)}window.siteHasOpenModal=!1;const p={toggleClass:".js-accordion-toggle",openClass:"is-open",autoCloseClass:".js-accordion-auto-close",closeOutsideClickClass:"js-accordion-close-outside-click",animateClass:"can-animate",defaultDelay:240,hideOtherClass:"js-accordion-hide-other"},m=function(t){let e=[],i=t.parentNode.firstChild;for(;i;)1===i.nodeType&&i!==t&&e.push(i),i=i.nextSibling;return e};function f(t,e,i){const n=m(t.parentElement),s=m(t);t.classList.remove(p.openClass),e.classList.remove(p.animateClass),t.hasAttribute("data-animateheight")&&(e.style.height="0px"),n&&n.map((t=>{t.classList.contains("preview")&&t.classList.add(p.openClass)})),s&&s.map((t=>{t.classList.contains("preview")&&t.classList.remove(p.hideOtherClass)})),void 0!==t&&t.getAttribute("data-closedelay")?setTimeout((()=>{e.classList.remove(p.openClass),t.hasAttribute("data-animateheight")&&(e.style.height=null)}),t.getAttribute("data-closedelay")):setTimeout((()=>{e.classList.remove(p.openClass),t.hasAttribute("data-animateheight")&&(e.style.height=null)}),p.defaultDelay);const o=g(t);o&&o.scrollIntoView(!0),t.getAttribute("data-scrollBack")&&t.scrollIntoView({block:"center"}
1),t.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true")}function _(t){let e,i=t.getAttribute("data-targetid");if("next"!==i&&i)e=document.getElementById(i);else if(e=t.nextElementSibling,!e){e=t.parentElement.nextElementSibling}return e}function g(t){let e=t.getAttribute("data-scrolltargetid");return e?document.getElementById(e):null}function v(){const t=document.querySelectorAll(p.toggleClass),e=document.querySelectorAll(p.autoCloseClass);[].forEach.call(t,(t=>{const i=_(t);t.addEventListener("click",(()=>{const n=i.classList.contains(p.openClass);e.forEach((t=>{const e=_(t);e.classList.contains(p.openClass)&&f(t,e)})),n?f(t,i):function(t,e){const i=m(t.parentElement),n=m(t);let s;t.previousElementSibling&&t.previousElementSibling.classList.contains("js-accordion__hide-sibling")&&t.previousElementSibling.classList.add(p.openClass),i&&i.map((t=>{t.classList.contains("preview")&&(t.classList.add(p.hideOtherClass),t.classList.remove(p.openClass))})),n&&n.map((t=>{t.classList.contains("preview")&&(t.classList.add(p.hideOtherClass),t.classList.remove(p.openClass))})),t.hasAttribute("data-animateheight")&&(e.style.display="block",s=e.offsetHeight,e.style.display=null,e.style.height="0"),t.classList.add(p.openClass),e.classList.add(p.openClass);const o=g(t);o&&o.scrollIntoView(!0),t.setAttribute("aria-expanded","true"),e.setAttribute("aria-hidden","false"),t.getAttribute("data-isafter")&&e.focus(),setTimeout((()=>{e.classList.add(p.animateClass),t.hasAttribute("data-animateheight")&&(e.style.height=`${s}px`)}),1)}(t,i)})),t.classList.contains(p.closeOutsideClickClass)&&document.addEventListener("click",(e=>{!e.target.closest(".js-accordion")&&i.classList.contains(p.openClass)&&f(t,i)}))}))}function y(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function b(t={},e={}){Object.keys(e).forEach((i=>{void 0===t[i]?t[i]=e[i]:y(e[i])&&y(t[i])&&Object.keys(e[i]).length>0&&b(t[i],e[i])}))}const w={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function x(){const t="undefined"!=typeof document?document:{};return b(t,w),t}const C={document:w,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:t=>"undefined"==typeof setTimeout?(t(),null):setTimeout(t,0),cancelAnimationFrame(t){"undefined"!=typeof setTimeout&&clearTimeout(t)}};function E(){const t="undefined"!=typeof window?window:{};return b(t,C),t}class S extends Array{constructor(t){"number"==typeof t?super(t):(super(...t||[]),function(t){const e=t.__proto__;Object.defineProperty(t,"__proto__",{get:()=>e,set(t){e.__proto__=t}})}(this))}}function T(t=[]){const e=[];return t.forEach((t=>{Array.isArray(t)?e.push(...T(t)):e.push(t)})),e}function M(t,e){return Array.prototype.filter.call(t,e)}function P(t,e){const i=E(),n=x();let s=[];if(!e&&t instanceof S)return t;if(!t)return new S(s);if("string"==typeof t){const i=t.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){let t="div";0===i.indexOf("<li")&&(t="ul"),0===i.indexOf("<tr")&&(t="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(t="tr"),0===i.indexOf("<tbody")&&(t="table"),0===i.indexOf("<option")&&(t="select");const e=n.createElement(t);e.innerHTML=i;for(let t=0;t<e.childNodes.length;t+=1)s.push(e.childNodes[t])}else s=function(t,e){if("string"!=typeof t)return[t];const i=[],n=e.querySelectorAll(t);for(let t=0;t<n.length;t+=1)i.push(n[t]);return i}(t.trim(),e||n)}else if(t.nodeType||t===i||t===n)s.push(t);else if(Array.isArray(t)){if(t instanceof S)return t;s=t}return new S(function(t){const e=[];for(let i=0;i<t.length;i+=1)-1===e.indexOf(t[i])&&e.push(t[i]);return e}(s))}P.fn=S.prototype;const k={addClass:function(...t){const e=T(t.map((t=>t.split(" "))));return this.forEach((t=>{t.classList.add(...e)})),this},removeClass:function(...t){const e=T(t.map((t=>t.split(" "))));return this.forEach((t=>{t.classList.remove(...e)})),this},hasClass:function(...t){const e=T(t.map((t=>t.split(" "))));return M(this,(t=>e.filter((e=>t.classList.contains(e))).length>0)).length>0},toggleClass:function(...t){const e=T(t.map((t=>t.split(" "))));this.forEach((t=>{e.forEach((e=>{t.classList.toggle(e)}))}))},attr:function(t,e){if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(let i=0;i<this.length;i+=1)if(2===arguments.length)this[i].setAttribute(t,e);else for(const e in t)this[i][e]=t[e],this[i].setAttribute(e,t[e]);return this},removeAttr:function(t){for(let e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this},transform:function(t){for(let e=0;e<this.length;e+=1)this[e].style.transform=t;return this},transition:function(t){for(let e=0;e<this.length;e+=1)this[e].style.transitionDuration="string"!=typeof t?`${t}ms`:t;return this},on:function(...t){let[e,i,n,s]=t;function o(t){const e=t.target;if(!e)return;const s=t.target.dom7EventData||[];if(s.indexOf(t)<0&&s.unshift(t),P(e).is(i))n.apply(e,s);else{const t=P(e).parents();for(let e=0;e<t.length;e+=1)P(t[e]).is(i)&&n.apply(t[e],s)}}function a(t){const e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),n.apply(this,e)}"function"==typeof t[1]&&([e,n,s]=t,i=void 0),s||(s=!1);const r=e.split(" ");let l;for(let t=0;t<this.length;t+=1){const e=this[t];if(i)for(l=0;l<r.length;l+=1){const t=r[l];e.dom7LiveListeners||(e.dom7LiveListeners={}),e.dom7LiveListeners[t]||(e.dom7LiveListeners[t]=[]),e.dom7LiveListeners[t].push({listener:n,proxyListener:o}),e.addEventListener(t,o,s)}else for(l=0;l<r.length;l+=1){const t=r[l];e.dom7Listeners||(e.dom7Listeners={}),e.dom7Listeners[t]||(e.dom7Listeners[t]=[]),e.dom7Listeners[t].push({listener:n,proxyListener:a}),e.addEventListener(t,a,s)}}return this},off:function(...t){let[e,i,n,s]=t;"function"==typeof t[1]&&([e,n,s]=t,i=void 0),s||(s=!1);const o=e.split(" ");for(let t=0;t<o.length;t+=1){const e=o[t];for(let t=0;t<this.length;t+=1){const o=this[t];let a;if(!i&&o.dom7Listeners?a=o.dom7Listeners[e]:i&&o.dom7LiveListeners&&(a=o.dom7LiveListeners[e]),a&&a.length)for(let t=a.length-1;t>=0;t-=1){const i=a[t];n&&i.listener===n||n&&i.listener&&i.listener.dom7proxy&&i.listener.dom7proxy===n?(o.removeEventListener(e,i.proxyListener,s),a.splice(t,1)
vendor: 6,705 bytes, line 1
1):n||(o.removeEventListener(e,i.proxyListener,s),a.splice(t,1))}}}return this},trigger:function(...t){const e=E(),i=t[0].split(" "),n=t[1];for(let s=0;s<i.length;s+=1){const o=i[s];for(let i=0;i<this.length;i+=1){const s=this[i];if(e.CustomEvent){const i=new e.CustomEvent(o,{detail:n,bubbles:!0,cancelable:!0});s.dom7EventData=t.filter(((t,e)=>e>0)),s.dispatchEvent(i),s.dom7EventData=[],delete s.dom7EventData}}}return this},transitionEnd:function(t){const e=this;return t&&e.on("transitionend",(function i(n){n.target===this&&(t.call(this,n),e.off("transitionend",i))})),this},outerWidth:function(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){const t=E();return this[0]?t.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){const t=E(),e=x(),i=this[0],n=i.getBoundingClientRect(),s=e.body,o=i.clientTop||s.clientTop||0,a=i.clientLeft||s.clientLeft||0,r=i===t?t.scrollY:i.scrollTop,l=i===t?t.scrollX:i.scrollLeft;return{top:n.top+r-o,left:n.left+l-a}}return null},css:function(t,e){const i=E();let n;if(1===arguments.length){if("string"!=typeof t){for(n=0;n<this.length;n+=1)for(const e in t)this[n].style[e]=t[e];return this}if(this[0])return i.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(n=0;n<this.length;n+=1)this[n].style[t]=e;return this}return this},each:function(t){return t?(this.forEach(((e,i)=>{t.apply(e,[e,i])})),this):this},html:function(t){if(void 0===t)return this[0]?this[0].innerHTML:null;for(let e=0;e<this.length;e+=1)this[e].innerHTML=t;return this},text:function(t){if(void 0===t)return this[0]?this[0].textContent.trim():null;for(let e=0;e<this.length;e+=1)this[e].textContent=t;return this},is:function(t){const e=E(),i=x(),n=this[0];let s,o;if(!n||void 0===t)return!1;if("string"==typeof t){if(n.matches)return n.matches(t);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(t);if(n.msMatchesSelector)return n.msMatchesSelector(t);for(s=P(t),o=0;o<s.length;o+=1)if(s[o]===n)return!0;return!1}if(t===i)return n===i;if(t===e)return n===e;if(t.nodeType||t instanceof S){for(s=t.nodeType?[t]:t,o=0;o<s.length;o+=1)if(s[o]===n)return!0;return!1}return!1},index:function(){let t,e=this[0];if(e){for(t=0;null!==(e=e.previousSibling);)1===e.nodeType&&(t+=1);return t}},eq:function(t){if(void 0===t)return this;const e=this.length;if(t>e-1)return P([]);if(t<0){const i=e+t;return P(i<0?[]:[this[i]])}return P([this[t]])},append:function(...t){let e;const i=x();for(let n=0;n<t.length;n+=1){e=t[n];for(let t=0;t<this.length;t+=1)if("string"==typeof e){const n=i.createElement("div");for(n.innerHTML=e;n.firstChild;)this[t].appendChild(n.firstChild)}else if(e instanceof S)for(let i=0;i<e.length;i+=1)this[t].appendChild(e[i]);else this[t].appendChild(e)}return this},prepend:function(t){const e=x();let i,n;for(i=0;i<this.length;i+=1)if("string"==typeof t){const s=e.createElement("div");for(s.innerHTML=t,n=s.childNodes.length-1;n>=0;n-=1)this[i].insertBefore(s.childNodes[n],this[i].childNodes[0])}else if(t instanceof S)for(n=0;n<t.length;n+=1)this[i].insertBefore(t[n],this[i].childNodes[0]);else this[i].insertBefore(t,this[i].childNodes[0]);return this},next:function(t){return this.length>0?t?this[0].nextElementSibling&&P(this[0].nextElementSibling).is(t)?P([this[0].nextElementSibling]):P([]):this[0].nextElementSibling?P([this[0].nextElementSibling]):P([]):P([])},nextAll:function(t){const e=[];let i=this[0];if(!i)return P([]);for(;i.nextElementSibling;){const n=i.nextElementSibling;t?P(n).is(t)&&e.push(n):e.push(n),i=n}return P(e)},prev:function(t){if(this.length>0){const e=this[0];return t?e.previousElementSibling&&P(e.previousElementSibling).is(t)?P([e.previousElementSibling]):P([]):e.previousElementSibling?P([e.previousElementSibling]):P([])}return P([])},prevAll:function(t){const e=[];let i=this[0];if(!i)return P([]);for(;i.previousElementSibling;){const n=i.previousElementSibling;t?P(n).is(t)&&e.push(n):e.push(n),i=n}return P(e)},parent:function(t){const e=[];for(let i=0;i<this.length;i+=1)null!==this[i].parentNode&&(t?P(this[i].parentNode).is(t)&&e.push(this[i].parentNode):e.push(this[i].parentNode));return P(e)},parents:function(t){const e=[];for(let i=0;i<this.length;i+=1){let n=this[i].parentNode;for(;n;)t?P(n).is(t)&&e.push(n):e.push(n),n=n.parentNode}return P(e)},closest:function(t){let e=this;return void 0===t?P([]):(e.is(t)||(e=e.parents(t).eq(0)),e)},find:function(t){const e=[];for(let i=0;i<this.length;i+=1){const n=this[i].querySelectorAll(t);for(let t=0;t<n.length;t+=1)e.push(n[t])}return P(e)},children:function(t){const e=[];for(let i=0;i<this.length;i+=1){const n=this[i].children;for(let i=0;i<n.length;i+=1)t&&!P(n[i]).is(t)||e.push(n[i])}return P(e)},filter:function(t){return P(M(this,t))},remove:function(){for(let t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}};function I(t,e=0){return setTimeout(t,e)}function A(){return Date.now()}function O(t,e="x"){const i=E();let n,s,o;const a=function(t){const e=E();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}(t);return i.WebKitCSSMatrix?(s=a.transform||a.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map((t=>t.replace(",","."))).join(", ")),o=new i.WebKitCSSMatrix("none"===s?"":s)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=o.toString().split(",")),"x"===e&&(s=i.WebKitCSSMatrix?o.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===e&&(s=i.WebKitCSSMatrix?o.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),s||0}function z(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function D(...t){const e=Object(t[0]),i=["__proto__","constructor","prototype"];for(let s=1;s<t.length;s+=1){const o=t[s];if(null!=o&&(n=o,!("undefined"!=typeof window&&void 0!==window.HTMLElement?n instanceof HTMLElement:n&&(1===n.nodeType||11===n.nodeType)))){const t=Object.keys(Object(o)).filter((t=>i.indexOf(t)<0));for(let i=0,n=t.length;i<n;i+=1){const n=t[i],s=Object.getOwnPropertyDescriptor(o,n);void 0!==s&&s.enumerable&&(z(e[n])&&z(o[n])?o[n].__swiper__?e[n]=o[n]:D(e[n],o[n]):!z(e[
1n])&&z(o[n])?(e[n]={},o[n].__swiper__?e[n]=o[n]:D(e[n],o[n])):e[n]=o[n])}}}var n;return e}function B(t,e,i){t.style.setProperty(e,i)}function $({swiper:t,targetPosition:e,side:i}){const n=E(),s=-t.translate;let o,a=null;const r=t.params.speed;t.wrapperEl.style.scrollSnapType="none",n.cancelAnimationFrame(t.cssModeFrameID);const l=e>s?"next":"prev",h=(t,e)=>"next"===l&&t>=e||"prev"===l&&t<=e,c=()=>{o=(new Date).getTime(),null===a&&(a=o);const l=Math.max(Math.min((o-a)/r,1),0),d=.5-Math.cos(l*Math.PI)/2;let u=s+d*(e-s);if(h(u,e)&&(u=e),t.wrapperEl.scrollTo({[i]:u}),h(u,e))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[i]:u})})),void n.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=n.requestAnimationFrame(c)};c()}let N,j,Z;function F(){return N||(N=function(){const t=E(),e=x();return{smoothScroll:e.documentElement&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch),passiveListener:function(){let e=!1;try{const i=Object.defineProperty({},"passive",{get(){e=!0}});t.addEventListener("testPassiveListener",null,i)}catch(t){}return e}(),gestures:"ongesturestart"in t}}()),N}function G(t={}){return j||(j=function({userAgent:t}={}){const e=F(),i=E(),n=i.navigator.platform,s=t||i.navigator.userAgent,o={ios:!1,android:!1},a=i.screen.width,r=i.screen.height,l=s.match(/(Android);?[\s\/]+([\d.]+)?/);let h=s.match(/(iPad).*OS\s([\d_]+)/);const c=s.match(/(iPod)(.*OS\s([\d_]+))?/),d=!h&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),u="Win32"===n;let p="MacIntel"===n;return!h&&p&&e.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${r}`)>=0&&(h=s.match(/(Version)\/([\d.]+)/),h||(h=[0,1,"13_0_0"]),p=!1),l&&!u&&(o.os="android",o.android=!0),(h||d||c)&&(o.os="ios",o.ios=!0),o}(t)),j}function H(){return Z||(Z=function(){const t=E();return{isSafari:function(){const e=t.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}()),Z}Object.keys(k).forEach((t=>{Object.defineProperty(P.fn,t,{value:k[t],writable:!0})}));var R={on(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const s=i?"unshift":"push";return t.split(" ").forEach((t=>{n.eventsListeners[t]||(n.eventsListeners[t]=[]),n.eventsListeners[t][s](e)})),n},once(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;function s(...i){n.off(t,s),s.__emitterProxy&&delete s.__emitterProxy,e.apply(n,i)}return s.__emitterProxy=e,n.on(t,s,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const n=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[n](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed?i:i.eventsListeners?(t.split(" ").forEach((t=>{void 0===e?i.eventsListeners[t]=[]:i.eventsListeners[t]&&i.eventsListeners[t].forEach(((n,s)=>{(n===e||n.__emitterProxy&&n.__emitterProxy===e)&&i.eventsListeners[t].splice(s,1)}))})),i):i},emit(...t){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let i,n,s;"string"==typeof t[0]||Array.isArray(t[0])?(i=t[0],n=t.slice(1,t.length),s=e):(i=t[0].events,n=t[0].data,s=t[0].context||e),n.unshift(s);return(Array.isArray(i)?i:i.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(s,[t,...n])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((t=>{t.apply(s,n)}))})),e}};var q={updateSize:function(){const t=this;let e,i;const n=t.$el;e=void 0!==t.params.width&&null!==t.params.width?t.params.width:n[0].clientWidth,i=void 0!==t.params.height&&null!==t.params.height?t.params.height:n[0].clientHeight,0===e&&t.isHorizontal()||0===i&&t.isVertical()||
1(e=e-parseInt(n.css("padding-left")||0,10)-parseInt(n.css("padding-right")||0,10),i=i-parseInt(n.css("padding-top")||0,10)-parseInt(n.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))},updateSlides:function(){const t=this;function e(e){return t.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}function i(t,i){return parseFloat(t.getPropertyValue(e(i))||0)}const n=t.params,{$wrapperEl:s,size:o,rtlTranslate:a,wrongRTL:r}=t,l=t.virtual&&n.virtual.enabled,h=l?t.virtual.slides.length:t.slides.length,c=s.children(`.${t.params.slideClass}`),d=l?t.virtual.slides.length:c.length;let u=[];const p=[],m=[];let f=n.slidesOffsetBefore;"function"==typeof f&&(f=n.slidesOffsetBefore.call(t));let _=n.slidesOffsetAfter;"function"==typeof _&&(_=n.slidesOffsetAfter.call(t));const g=t.snapGrid.length,v=t.slidesGrid.length;let y=n.spaceBetween,b=-f,w=0,L=0;if(void 0===o)return;"string"==typeof y&&y.indexOf("%")>=0&&(y=parseFloat(y.replace("%",""))/100*o),t.virtualSize=-y,a?c.css({marginLeft:"",marginBottom:"",marginTop:""}):c.css({marginRight:"",marginBottom:"",marginTop:""}),n.centeredSlides&&n.cssMode&&(B(t.wrapperEl,"--swiper-centered-offset-before",""),B(t.wrapperEl,"--swiper-centered-offset-after",""));const x=n.grid&&n.grid.rows>1&&t.grid;let C;x&&t.grid.initSlides(d);const E="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter((t=>void 0!==n.breakpoints[t].slidesPerView)).length>0;for(let s=0;s<d;s+=1){C=0;const a=c.eq(s);if(x&&t.grid.updateSlide(s,a,d,e),"none"!==a.css("display")){if("auto"===n.slidesPerView){E&&(c[s].style[e("width")]="");const o=getComputedStyle(a[0]),r=a[0].style.transform,l=a[0].style.webkitTransform;if(r&&(a[0].style.transform="none"),l&&(a[0].style.webkitTransform="none"),n.roundLengths)C=t.isHorizontal()?a.outerWidth(!0):a.outerHeight(!0);else{const t=i(o,"width"),e=i(o,"padding-left"),n=i(o,"padding-right"),s=i(o,"margin-left"),r=i(o,"margin-right"),l=o.getPropertyValue("box-sizing");if(l&&"border-box"===l)C=t+s+r;else{const{clientWidth:i,offsetWidth:o}=a[0];C=t+e+n+s+r+(o-i)}}r&&(a[0].style.transform=r),l&&(a[0].style.webkitTransform=l),n.roundLengths&&(C=Math.floor(C))}else C=(o-(n.slidesPerView-1)*y)/n.slidesPerView,n.roundLengths&&(C=Math.floor(C)),c[s]&&(c[s].style[e("width")]=`${C}px`);c[s]&&(c[s].swiperSlideSize=C),m.push(C),n.centeredSlides?(b=b+C/2+w/2+y,0===w&&0!==s&&(b=b-o/2-y),0===s&&(b=b-o/2-y),Math.abs(b)<.001&&(b=0),n.roundLengths&&(b=Math.floor(b)),L%n.slidesPerGroup==0&&u.push(b),p.push(b)):(n.roundLengths&&(b=Math.floor(b)),(L-Math.min(t.params.slidesPerGroupSkip,L))%t.params.slidesPerGroup==0&&u.push(b),p.push(b),b=b+C+y),t.virtualSize+=C+y,w=C,L+=1}}if(t.virtualSize=Math.max(t.virtualSize,o)+_,a&&r&&("slide"===n.effect||"coverflow"===n.effect)&&s.css({width:`${t.virtualSize+n.spaceBetween}px`}),n.setWrapperSize&&s.css({[e("width")]:`${t.virtualSize+n.spaceBetween}px`}),x&&t.grid.updateWrapperSize(C,u,e),!n.centeredSlides){const e=[];for(let i=0;i<u.length;i+=1){let s=u[i];n.roundLengths&&(s=Math.floor(s)),u[i]<=t.virtualSize-o&&e.push(s)}u=e,Math.floor(t.virtualSize-o)-Math.floor(u[u.length-1])>1&&u.push(t.virtualSize-o)}if(0===u.length&&(u=[0]),0!==n.spaceBetween){const i=t.isHorizontal()&&a?"marginLeft":e("marginRight");c.filter(((t,e)=>!n.cssMode||e!==c.length-1)).css({[i]:`${y}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let t=0;m.forEach((e=>{t+=e+(n.spaceBetween?n.spaceBetween:0)})),t-=n.spaceBetween;const e=t-o;u=u.map((t=>t<0?-f:t>e?e+_:t))}if(n.centerInsufficientSlides){let t=0;if(m.forEach((e=>{t+=e+(n.spaceBetween?n.spaceBetween:0)})),t-=n.spaceBetween,t<o){const e=(o-t)/2;u.forEach(((t,i)=>{u[i]=t-e})),p.forEach(((t,i)=>{p[i]=t+e}))}}if(Object.assign(t,{slides:c,snapGrid:u,slidesGrid:p,slidesSizesGrid:m}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){B(t.wrapperEl,"--swiper-centered-offset-before",-u[0]+"px"),B(t.wrapperEl,"--swiper-centered-offset-after",t.size/2-m[m.length-1]/2+"px");const e=-t.snapGrid[0],i=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map((t=>t+e)),t.slidesGrid=t.slidesGrid.map((t=>t+i))}if(d!==h&&t.emit("slidesLengthChange"),u.length!==g&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==v&&t.emit("slidesGridLengthChange"),n.watchSlidesProgress&&t.updateSlidesOffset(),!(l||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const e=`${n.containerModifierClass}backface-hidden`,i=t.$el.hasClass(e);d<=n.maxBackfaceHiddenSlides?i||t.$el.addClass(e):i&&t.$el.removeClass(e)}},updateAutoHeight:function(t){const e=this,i=[],n=e.virtual&&e.params.virtual.enabled;let s,o=0;"number"==typeof t?e.setTransition(t):!0===t&&e.setTransition(e.params.speed);const a=t=>n?e.slides.filter((e=>parseInt(e.getAttribute("data-swiper-slide-index"),10)===t))[0]:e.slides.eq(t)[0];if("auto"!==e.params.slidesPerView&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||P([])).each((t=>{i.push(t)}));else for(s=0;s<Math.ceil(e.params.slidesPerView);s+=1){const t=e.activeIndex+s;if(t>e.slides.length&&!n)break;i.push(a(t))}else i.push(a(e.activeIndex));for(s=0;s<i.length;s+=1)if(void 0!==i[s]){const t=i[s].offsetHeight;o=t>
vendor: 10,859 bytes, line 1
1o?t:o}(o||0===o)&&e.$wrapperEl.css("height",`${o}px`)},updateSlidesOffset:function(){const t=this,e=t.slides;for(let i=0;i<e.length;i+=1)e[i].swiperSlideOffset=t.isHorizontal()?e[i].offsetLeft:e[i].offsetTop},updateSlidesProgress:function(t=this&&this.translate||0){const e=this,i=e.params,{slides:n,rtlTranslate:s,snapGrid:o}=e;if(0===n.length)return;void 0===n[0].swiperSlideOffset&&e.updateSlidesOffset();let a=-t;s&&(a=t),n.removeClass(i.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(let t=0;t<n.length;t+=1){const r=n[t];let l=r.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(l-=n[0].swiperSlideOffset);const h=(a+(i.centeredSlides?e.minTranslate():0)-l)/(r.swiperSlideSize+i.spaceBetween),c=(a-o[0]+(i.centeredSlides?e.minTranslate():0)-l)/(r.swiperSlideSize+i.spaceBetween),d=-(a-l),u=d+e.slidesSizesGrid[t];(d>=0&&d<e.size-1||u>1&&u<=e.size||d<=0&&u>=e.size)&&(e.visibleSlides.push(r),e.visibleSlidesIndexes.push(t),n.eq(t).addClass(i.slideVisibleClass)),r.progress=s?-h:h,r.originalProgress=s?-c:c}e.visibleSlides=P(e.visibleSlides)},updateProgress:function(t){const e=this;if(void 0===t){const i=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*i||0}const i=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:s,isBeginning:o,isEnd:a}=e;const r=o,l=a;0===n?(s=0,o=!0,a=!0):(s=(t-e.minTranslate())/n,o=s<=0,a=s>=1),Object.assign(e,{progress:s,isBeginning:o,isEnd:a}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),o&&!r&&e.emit("reachBeginning toEdge"),a&&!l&&e.emit("reachEnd toEdge"),(r&&!o||l&&!a)&&e.emit("fromEdge"),e.emit("progress",s)},updateSlidesClasses:function(){const t=this,{slides:e,params:i,$wrapperEl:n,activeIndex:s,realIndex:o}=t,a=t.virtual&&i.virtual.enabled;let r;e.removeClass(`${i.slideActiveClass} ${i.slideNextClass} ${i.slidePrevClass} ${i.slideDuplicateActiveClass} ${i.slideDuplicateNextClass} ${i.slideDuplicatePrevClass}`),r=a?t.$wrapperEl.find(`.${i.slideClass}[data-swiper-slide-index="${s}"]`):e.eq(s),r.addClass(i.slideActiveClass),i.loop&&(r.hasClass(i.slideDuplicateClass)?n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${o}"]`).addClass(i.slideDuplicateActiveClass):n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${o}"]`).addClass(i.slideDuplicateActiveClass));let l=r.nextAll(`.${i.slideClass}`).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=e.eq(0),l.addClass(i.slideNextClass));let h=r.prevAll(`.${i.slideClass}`).eq(0).addClass(i.slidePrevClass);i.loop&&0===h.length&&(h=e.eq(-1),h.addClass(i.slidePrevClass)),i.loop&&(l.hasClass(i.slideDuplicateClass)?n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass):n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass),h.hasClass(i.slideDuplicateClass)?n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${h.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass):n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${h.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass)),t.emitSlidesClasses()},updateActiveIndex:function(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{slidesGrid:n,snapGrid:s,params:o,activeIndex:a,realIndex:r,snapIndex:l}=e;let h,c=t;if(void 0===c){for(let t=0;t<n.length;t+=1)void 0!==n[t+1]?i>=n[t]&&i<n[t+1]-(n[t+1]-n[t])/2?c=t:i>=n[t]&&i<n[t+1]&&(c=t+1):i>=n[t]&&(c=t);o.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(s.indexOf(i)>=0)h=s.indexOf(i);else{const t=Math.min(o.slidesPerGroupSkip,c);h=t+Math.floor((c-t)/o.slidesPerGroup)}if(h>=s.length&&(h=s.length-1),c===a)return void(h!==l&&(e.snapIndex=h,e.emit("snapIndexChange")));const d=parseInt(e.slides.eq(c).attr("data-swiper-slide-index")||c,10);Object.assign(e,{snapIndex:h,realIndex:d,previousIndex:a,activeIndex:c}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),r!==d&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")},updateClickedSlide:function(t){const e=this,i=e.params,n=P(t).closest(`.${i.slideClass}`)[0];let s,o=!1;if(n)for(let t=0;t<e.slides.length;t+=1)if(e.slides[t]===n){o=!0,s=t;break}if(!n||!o)return e.clickedSlide=void 0,void(e.clickedIndex=void 0);e.clickedSlide=n,e.virtual&&e.params.virtual.enabled?e.clickedIndex=parseInt(P(n).attr("data-swiper-slide-index"),10):e.clickedIndex=s,i.slideToClickedSlide&&void 0!==e.clickedIndex&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}};var W={getTranslate:function(t=(this.isHorizontal()?"x":"y")){const{params:e,rtlTranslate:i,translate:n,$wrapperEl:s}=this;if(e.virtualTranslate)return i?-n:n;if(e.cssMode)return n;let o=O(s[0],t);return i&&(o=-o),o||0},setTranslate:function(t,e){const i=this,{rtlTranslate:n,params:s,$wrapperEl:o,wrapperEl:a,progress:r}=i;let l,h=0,c=0;i.isHorizontal()?h=n?-t:t:c=t,s.roundLengths&&(h=Math.floor(h),c=Math.floor(c)),s.cssMode?a[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-h:-c:s.virtualTranslate||o.transform(`translate3d(${h}px, ${c}px, 0px)`),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?h:c;const d=i.maxTranslate()-i.minTranslate();l=0===d?0:(t-i.minTranslate())/d,l!==r&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(t=0,e=this.params.speed,i=!0,n=!0,s){const o=this,{params:a,wrapperEl:r}=o;if(o.animating&&a.preventInteractionOnTransition)return!1;const l=o.minTranslate(),h=o.maxTranslate();let c;if(c=n&&t>l?l:n&&t<h?h:t,o.updateProgress(c),a.cssMode){const t=o.isHorizontal();if(0===e)r[t?"scrollLeft":"scrollTop"]=-c;else{if(!o.support.smoothScroll)return $({swiper:o,targetPosition:-c,side:t?"left":"top"}),!0;r.scrollTo({[t?"left":"top"]:-c,behavior:"smooth"})}return!0}return 0===e?(o.setTransition(0),o.setTranslate(c),i&&(o.emit("beforeTransitionStart",e,s),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(c),i&&(o.emit("beforeTransitionStart",e,s),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(t){o&&!o.destroyed&&t.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,i&&o.emit("transitionEnd"))}),o.$wrapperEl[0].addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onTranslateToWrapperTransitionEnd))),!0}};function V({swiper:t,runCallbacks:e,direction:i,step:n}){const{activeIndex:s,previousIndex:o}=t;let a=i;if(a||(a=s>o?"next":s<o?"prev":"reset"),t.emit(`transition${n}`),e&&s!==o){if("reset"===a)return void t.emit(`slideResetTransition${n}`);t.emit(`slideChangeTransition${n}`),"next"===a?t.emit(`slideNextTransition${n}`):t.emit(`slidePrevTransition${n}`)}}var U={slideTo:function(t=0,e=this.params.speed,i=!0,n,s){if("number"!=typeof t&&"string"!=typeof t)throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof t}] given.`);if("string"==typeof t){const e=parseInt(t,10);if(!isFinite(e))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${t}] given.`);t=e}const o=this;let a=t;a<0&&(a=0);const{params:r,snapGrid:l,slidesGrid:h,previousIndex:c,activeIndex:d,rtlTranslate:u,wrapperEl:p,enabled:m}=o;if(o.animating&&r.preventInteractionOnTransition||!m&&!n&&!s)return!1;const f=Math.min(o.params.slidesPerGroupSkip,a);let _=f+Math.floor((a-f)/o.params.slidesPerGroup);_>=l.length&&(_=l.length-1);const g=-l[_];if(r.normalizeSlideIndex)for(let t=0;t<h.length;t+=1){const e=-Math.floor(100*g),i=Math.floor(100*h[t]),n=Math.floor(100*h[t+1]);void 0!==h[t+1]?e>=i&&e<n-(n-i)/2?a=t:e>=i&&e<n&&(a=t+1):e>=i&&(a=t)}if(o.initialized&&a!==d){if(!o.allowSlideNext&&g<o.translate&&g<o.minTranslate())return!1;if(!o.allowSlidePrev&&g>o.translate&&g>o.maxTranslate()&&(d||0)!==a)return!1}let v;if(a!==(c||0)&&i&&o.emit("beforeSlideChangeStart"),o.updateProgress(g),v=a>d?"next":a<d?"prev":"reset",u&&-g===o.translate||!u&&g===o.translate)return o.updateActiveIndex(a),r.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==r.effect&&o.setTranslate(g),"reset"!==v&&(o.transitionStart(i,v),o.transitionEnd(i,v)),!1;if(r.cssMode){const t=o.isHorizontal(),i=u?g:-g;if(0===e){const e=o.virtual&&o.params.virtual.enabled;e&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),p[t?"scrollLeft":"scrollTop"]=i,e&&requestAnimationFrame((()=>{o.wrapperEl.style.scrollSnapType="",o._swiperImmediateVirtual=!1}))}else{if(!o.support.smoothScroll)return $({swiper:o,targetPosition:i,side:t?"left":"top"}),!0;p.scrollTo({[t?"left":"top"]:i,behavior:"smooth"})}return!0}return o.setTransition(e),o.setTranslate(g),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",e,n),o.transitionStart(i,v),0===e?o.transitionEnd(i,v):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(t){o&&!o.destroyed&&t.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(i,v))}),o.$wrapperEl[0].addEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(t=0,e=this.params.speed,i=!0,n){if("string"==typeof t){const e=parseInt(t,10);if(!isFinite(e))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${t}] given.`);t=e}const s=this;let o=t;return s.params.loop&&(o+=s.loopedSlides),s.slideTo(o,e,i,n)},slideNext:function(t=this.params.speed,e=!0,i){const n=this,{animating:s,enabled:o,params:a}=n;if(!o)return n;let r=a.slidesPerGroup;"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(r=Math.max(n.slidesPerViewDynamic("current",!0),1));const l=n.activeIndex<a.slidesPerGroupSkip?1:r;if(a.loop){if(s&&a.loopPreventsSlide)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}return a.rewind&&n.isEnd?n.slideTo(0,t,e,i):n.slideTo(n.activeIndex+l,t,e,i)},slidePrev:function(t=this.params.speed,e=!0,i){const n=this,{params:s,animating:o,snapGrid:a,slidesGrid:r,rtlTranslate:l,enabled:h}=n;
1if(!h)return n;if(s.loop){if(o&&s.loopPreventsSlide)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}function c(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}const d=c(l?n.translate:-n.translate),u=a.map((t=>c(t)));let p=a[u.indexOf(d)-1];if(void 0===p&&s.cssMode){let t;a.forEach(((e,i)=>{d>=e&&(t=i)})),void 0!==t&&(p=a[t>0?t-1:t])}let m=0;if(void 0!==p&&(m=r.indexOf(p),m<0&&(m=n.activeIndex-1),"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(m=m-n.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0))),s.rewind&&n.isBeginning){const s=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(s,t,e,i)}return n.slideTo(m,t,e,i)},slideReset:function(t=this.params.speed,e=!0,i){return this.slideTo(this.activeIndex,t,e,i)},slideToClosest:function(t=this.params.speed,e=!0,i,n=.5){const s=this;let o=s.activeIndex;const a=Math.min(s.params.slidesPerGroupSkip,o),r=a+Math.floor((o-a)/s.params.slidesPerGroup),l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[r]){const t=s.snapGrid[r];l-t>(s.snapGrid[r+1]-t)*n&&(o+=s.params.slidesPerGroup)}else{const t=s.snapGrid[r-1];l-t<=(s.snapGrid[r]-t)*n&&(o-=s.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,s.slidesGrid.length-1),s.slideTo(o,t,e,i)},slideToClickedSlide:function(){const t=this,{params:e,$wrapperEl:i}=t,n="auto"===e.slidesPerView?t.slidesPerViewDynamic():e.slidesPerView;let s,o=t.clickedIndex;if(e.loop){if(t.animating)return;s=parseInt(P(t.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?o<t.loopedSlides-n/2||o>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),o=i.children(`.${e.slideClass}[data-swiper-slide-index="${s}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),I((()=>{t.slideTo(o)}))):t.slideTo(o):o>t.slides.length-n?(t.loopFix(),o=i.children(`.${e.slideClass}[data-swiper-slide-index="${s}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),I((()=>{t.slideTo(o)}))):t.slideTo(o)}else t.slideTo(o)}};var Y={loopCreate:function(){const t=this,e=x(),{params:i,$wrapperEl:n}=t,s=n.children().length>0?P(n.children()[0].parentNode):n;s.children(`.${i.slideClass}.${i.slideDuplicateClass}`).remove();let o=s.children(`.${i.slideClass}`);if(i.loopFillGroupWithBlank){const t=i.slidesPerGroup-o.length%i.slidesPerGroup;if(t!==i.slidesPerGroup){for(let n=0;n<t;n+=1){const t=P(e.createElement("div")).addClass(`${i.slideClass} ${i.slideBlankClass}`);s.append(t)}o=s.children(`.${i.slideClass}`)}}"auto"!==i.slidesPerView||i.loopedSlides||(i.loopedSlides=o.length),t.loopedSlides=Math.ceil(parseFloat(i.loopedSlides||i.slidesPerView,10)),t.loopedSlides+=i.loopAdditionalSlides,t.loopedSlides>o.length&&t.params.loopedSlidesLimit&&(t.loopedSlides=o.length);const a=[],r=[];o.each(((t,e)=>{P(t).attr("data-swiper-slide-index",e)}));for(let e=0;e<t.loopedSlides;e+=1){const t=e-Math.floor(e/o.length)*o.length;r.push(o.eq(t)[0]),a.unshift(o.eq(o.length-t-1)[0])}for(let t=0;t<r.length;t+=1)s.append(P(r[t].cloneNode(!0)).addClass(i.slideDuplicateClass));for(let t=a.length-1;t>=0;t-=1)s.prepend(P(a[t].cloneNode(!0)).addClass(i.slideDuplicateClass))},loopFix:function(){const t=this;t.emit("beforeLoopFix");const{activeIndex:e,slides:i,loopedSlides:n,allowSlidePrev:s,allowSlideNext:o,snapGrid:a,rtlTranslate:r}=t;let l;t.allowSlidePrev=!0,t.allowSlideNext=!0;const h=-a[e]-t.getTranslate();if(e<n){l=i.length-3*n+e,l+=n;t.slideTo(l,0,!1,!0)&&0!==h&&t.setTranslate((r?-t.translate:t.translate)-h)}else if(e>=i.length-n){l=-i.length+e+n,l+=n;t.slideTo(l,0,!1,!0)&&0!==h&&t.setTranslate((r?-t.translate:t.translate)-h)}t.allowSlidePrev=s,t.allowSlideNext=o,t.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:t,params:e,slides:i}=this;t.children(`.${e.slideClass}.${e.slideDuplicateClass},.${e.slideClass}.${e.slideBlankClass}`).remove(),i.removeAttr("data-swiper-slide-index")}};function K(t){const e=this,i=x(),n=E(),s=e.touchEventsData,{params:o,touches:a,enabled:r}=e;if(!r)return;if(e.animating&&o.preventInteractionOnTransition)return;!e.animating&&o.cssMode&&o.loop&&e.loopFix();let l=t;l.originalEvent&&(l=l.originalEvent);let h=P(l.target);if("wrapper"===o.touchEventsTarget&&!h.closest(e.wrapperEl).length)return;if(s.isTouchEvent="touchstart"===l.type,!s.isTouchEvent&&"which"in l&&3===l.which)return;if(!s.isTouchEvent&&"button"in l&&l.button>0)return;if(s.isTouched&&s.isMoved)return;const c=!!o.noSwipingClass&&""!==o.noSwipingClass,d=t.composedPath?t.composedPath():t.path;c&&l.target&&l.target.shadowRoot&&d&&(h=P(d[0]));const u=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,p=!(!l.target||!l.target.shadowRoot);if(o.noSwiping&&(p?function(t,e=this){return function e(i){if(!i||i===x()||i===E())return null;i.assignedSlot&&(i=i.assignedSlot);
vendor: 4,526 bytes, line 1
1const n=i.closest(t);return n||i.getRootNode?n||e(i.getRootNode().host):null}(e)}(u,h[0]):h.closest(u)[0]))return void(e.allowClick=!0);if(o.swipeHandler&&!h.closest(o.swipeHandler)[0])return;a.currentX="touchstart"===l.type?l.targetTouches[0].pageX:l.pageX,a.currentY="touchstart"===l.type?l.targetTouches[0].pageY:l.pageY;const m=a.currentX,f=a.currentY,_=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,g=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(_&&(m<=g||m>=n.innerWidth-g)){if("prevent"!==_)return;t.preventDefault()}if(Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=m,a.startY=f,s.touchStartTime=A(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,o.threshold>0&&(s.allowThresholdMove=!1),"touchstart"!==l.type){let t=!0;h.is(s.focusableElements)&&(t=!1,"SELECT"===h[0].nodeName&&(s.isTouched=!1)),i.activeElement&&P(i.activeElement).is(s.focusableElements)&&i.activeElement!==h[0]&&i.activeElement.blur();const n=t&&e.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!n||h[0].isContentEditable||l.preventDefault()}e.params.freeMode&&e.params.freeMode.enabled&&e.freeMode&&e.animating&&!o.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",l)}function X(t){const e=x(),i=this,n=i.touchEventsData,{params:s,touches:o,rtlTranslate:a,enabled:r}=i;if(!r)return;let l=t;if(l.originalEvent&&(l=l.originalEvent),!n.isTouched)return void(n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",l));if(n.isTouchEvent&&"touchmove"!==l.type)return;const h="touchmove"===l.type&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),c="touchmove"===l.type?h.pageX:l.pageX,d="touchmove"===l.type?h.pageY:l.pageY;if(l.preventedByNestedSwiper)return o.startX=c,void(o.startY=d);if(!i.allowTouchMove)return P(l.target).is(n.focusableElements)||(i.allowClick=!1),void(n.isTouched&&(Object.assign(o,{startX:c,startY:d,currentX:c,currentY:d}),n.touchStartTime=A()));if(n.isTouchEvent&&s.touchReleaseOnEdges&&!s.loop)if(i.isVertical()){if(d<o.startY&&i.translate<=i.maxTranslate()||d>o.startY&&i.translate>=i.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else if(c<o.startX&&i.translate<=i.maxTranslate()||c>o.startX&&i.translate>=i.minTranslate())return;if(n.isTouchEvent&&e.activeElement&&l.target===e.activeElement&&P(l.target).is(n.focusableElements))return n.isMoved=!0,void(i.allowClick=!1);if(n.allowTouchCallbacks&&i.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;o.currentX=c,o.currentY=d;const u=o.currentX-o.startX,p=o.currentY-o.startY;if(i.params.threshold&&Math.sqrt(u**2+p**2)<i.params.threshold)return;if(void 0===n.isScrolling){let t;i.isHorizontal()&&o.currentY===o.startY||i.isVertical()&&o.currentX===o.startX?n.isScrolling=!1:u*u+p*p>=25&&(t=180*Math.atan2(Math.abs(p),Math.abs(u))/Math.PI,n.isScrolling=i.isHorizontal()?t>s.touchAngle:90-t>s.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",l),void 0===n.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(n.startMoving=!0)),n.isScrolling)return void(n.isTouched=!1);if(!n.startMoving)return;i.allowClick=!1,!s.cssMode&&l.cancelable&&l.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&l.stopPropagation(),n.isMoved||(s.loop&&!s.cssMode&&i.loopFix(),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating&&i.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,!s.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",l)),i.emit("sliderMove",l),n.isMoved=!0;let m=i.isHorizontal()?u:p;o.diff=m,m*=s.touchRatio,a&&(m=-m),i.swipeDirection=m>0?"prev":"next",n.currentTranslate=m+n.startTranslate;let f=!0,_=s.resistanceRatio;if(s.touchReleaseOnEdges&&(_=0),m>0&&n.currentTranslate>i.minTranslate()?(f=!1,s.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+m)**_)):m<0&&n.currentTranslate<i.maxTranslate()&&(f=!1,s.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-m)**_)),f&&(l.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),i.allowSlidePrev||i.allowSlideNext||(n.currentTranslate=n.startTranslate),s.threshold>0){if(!(Math.abs(m)>s.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);
1if(!n.allowThresholdMove)return n.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,n.currentTranslate=n.startTranslate,void(o.diff=i.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}s.followFinger&&!s.cssMode&&((s.freeMode&&s.freeMode.enabled&&i.freeMode||s.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),i.params.freeMode&&s.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function J(t){const e=this,i=e.touchEventsData,{params:n,touches:s,rtlTranslate:o,slidesGrid:a,enabled:r}=e;if(!r)return;let l=t;if(l.originalEvent&&(l=l.originalEvent),i.allowTouchCallbacks&&e.emit("touchEnd",l),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&n.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);n.grabCursor&&i.isMoved&&i.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);const h=A(),c=h-i.touchStartTime;if(e.allowClick){const t=l.path||l.composedPath&&l.composedPath();e.updateClickedSlide(t&&t[0]||l.target),e.emit("tap click",l),c<300&&h-i.lastClickTime<300&&e.emit("doubleTap doubleClick",l)}if(i.lastClickTime=A(),I((()=>{e.destroyed||(e.allowClick=!0)})),!i.isTouched||!i.isMoved||!e.swipeDirection||0===s.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let d;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,d=n.followFinger?o?e.translate:-e.translate:-i.currentTranslate,n.cssMode)return;if(e.params.freeMode&&n.freeMode.enabled)return void e.freeMode.onTouchEnd({currentPos:d});let u=0,p=e.slidesSizesGrid[0];for(let t=0;t<a.length;t+=t<n.slidesPerGroupSkip?1:n.slidesPerGroup){const e=t<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;void 0!==a[t+e]?d>=a[t]&&d<a[t+e]&&(u=t,p=a[t+e]-a[t]):d>=a[t]&&(u=t,p=a[a.length-1]-a[a.length-2])}let m=null,f=null;n.rewind&&(e.isBeginning?f=e.params.virtual&&e.params.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(m=0));const _=(d-a[u])/p,g=u<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(c>n.longSwipesMs){if(!n.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&(_>=n.longSwipesRatio?e.slideTo(n.rewind&&e.isEnd?m:u+g):e.slideTo(u)),"prev"===e.swipeDirection&&(_>1-n.longSwipesRatio?e.slideTo(u+g):null!==f&&_<0&&Math.abs(_)>n.longSwipesRatio?e.slideTo(f):e.slideTo(u))}else{if(!n.shortSwipes)return void e.slideTo(e.activeIndex);e.navigation&&(l.target===e.navigation.nextEl||l.target===e.navigation.prevEl)?l.target===e.navigation.nextEl?e.slideTo(u+g):e.slideTo(u):("next"===e.swipeDirection&&e.slideTo(null!==m?m:u+g),"prev"===e.swipeDirection&&e.slideTo(null!==f?f:u))}}function Q(){const t=this,{params:e,el:i}=t;if(i&&0===i.offsetWidth)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:s,snapGrid:o}=t;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.run(),t.allowSlidePrev=s,t.allowSlideNext=n,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}function tt(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function et(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:n}=t;if(!n)return;let s;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();const o=t.maxTranslate()-t.minTranslate();s=0===o?0:(t.translate-t.minTranslate())/o,s!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}let it=!1;function nt(){}const st=(t,e)=>{const i=x(),{params:n,touchEvents:s,el:o,wrapperEl:a,device:r,support:l}=t,h=!!n.nested,c="on"===e?"addEventListener":"removeEventListener",d=e;if(l.touch){const e=!("touchstart"!==s.start||!l.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};o[c](s.start,t.onTouchStart,e),o[c](s.move,t.onTouchMove,l.passiveListener?{passive:!1,capture:h}:h),o[c](s.end,t.onTouchEnd,e),s.cancel&&o[c](s.cancel,t.onTouchEnd,e)}else o[c](s.start,t.onTouchStart,!1),i[c](s.move,t.onTouchMove,h),i[c](s.end,t.onTouchEnd,!1);(n.preventClicks||n.preventClicksPropagation)&&o[c]("click",t.onClick,!0),n.cssMode&&a[c]("scroll",t.onScroll),n.updateOnWindowResize?t[d](r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate",Q,!0):t[d]("observerUpdate",Q,!0)};var ot={attachEvents:function(){const t=this,e=x(),{params:i,support:n}=t;t.onTouchStart=K.bind(t),t.onTouchMove=X.bind(t),t.onTouchEnd=J.bind(t),i.cssMode&&(t.onScroll=et.bind(t)),t.onClick=tt.bind(t),n.touch&&!it&&(e.addEventListener("touchstart",nt),it=!0),st(t,"on")},detachEvents:function(){st(this,"off")}};const at=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;var rt={addClasses:function(){const t=this,{classNames:e,params:i,rtl:n,$el:s,device:o,support:a}=t,r=function(t,e){const i=[];return t.forEach((t=>{"object"==typeof t?Object.keys(t).forEach((n=>{t[n]&&i.push(e+n)})):"string"==typeof t&&i.push(e+t)})),i}(["initialized",i.direction,{"pointer-events":!a.touch},{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:n},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&"column"===i.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...r),s.addClass([...e].join(" ")),t.emitContainerClasses()},removeClasses:function(){const{$el:t,classNames:e}=this;t.removeClass(e.join(" ")),this.emitContainerClasses()}};var lt={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",
vendor: 3,073 bytes, line 1
1spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function ht(t,e){return function(i={}){const n=Object.keys(i)[0],s=i[n];"object"==typeof s&&null!==s?(["navigation","pagination","scrollbar"].indexOf(n)>=0&&!0===t[n]&&(t[n]={auto:!0}),n in t&&"enabled"in s?(!0===t[n]&&(t[n]={enabled:!0}),"object"!=typeof t[n]||"enabled"in t[n]||(t[n].enabled=!0),t[n]||(t[n]={enabled:!1}),D(e,i)):D(e,i)):D(e,i)}}const ct={eventsEmitter:R,update:q,translate:W,transition:{setTransition:function(t,e){const i=this;i.params.cssMode||i.$wrapperEl.transition(t),i.emit("setTransition",t,e)},transitionStart:function(t=!0,e){const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),V({swiper:i,runCallbacks:t,direction:e,step:"Start"}))},transitionEnd:function(t=!0,e){const i=this,{params:n}=i;i.animating=!1,n.cssMode||(i.setTransition(0),V({swiper:i,runCallbacks:t,direction:e,step:"End"}))}},slide:U,loop:Y,grabCursor:{setGrabCursor:function(t){const e=this;if(e.support.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i="container"===e.params.touchEventsTarget?e.el:e.wrapperEl;i.style.cursor="move",i.style.cursor=t?"grabbing":"grab"},unsetGrabCursor:function(){const t=this;t.support.touch||t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t["container"===t.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:ot,breakpoints:{setBreakpoint:function(){const t=this,{activeIndex:e,initialized:i,loopedSlides:n=0,params:s,$el:o}=t,a=s.breakpoints;if(!a||a&&0===Object.keys(a).length)return;
1const r=t.getBreakpoint(a,t.params.breakpointsBase,t.el);if(!r||t.currentBreakpoint===r)return;const l=(r in a?a[r]:void 0)||t.originalParams,h=at(t,s),c=at(t,l),d=s.enabled;h&&!c?(o.removeClass(`${s.containerModifierClass}grid ${s.containerModifierClass}grid-column`),t.emitContainerClasses()):!h&&c&&(o.addClass(`${s.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===s.grid.fill)&&o.addClass(`${s.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((e=>{const i=s[e]&&s[e].enabled,n=l[e]&&l[e].enabled;i&&!n&&t[e].disable(),!i&&n&&t[e].enable()}));const u=l.direction&&l.direction!==s.direction,p=s.loop&&(l.slidesPerView!==s.slidesPerView||u);u&&i&&t.changeDirection(),D(t.params,l);const m=t.params.enabled;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),d&&!m?t.disable():!d&&m&&t.enable(),t.currentBreakpoint=r,t.emit("_beforeBreakpoint",l),p&&i&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(e-n+t.loopedSlides,0,!1)),t.emit("breakpoint",l)},getBreakpoint:function(t,e="window",i){if(!t||"container"===e&&!i)return;let n=!1;const s=E(),o="window"===e?s.innerHeight:i.clientHeight,a=Object.keys(t).map((t=>{if("string"==typeof t&&0===t.indexOf("@")){const e=parseFloat(t.substr(1));return{value:o*e,point:t}}return{value:t,point:t}}));a.sort(((t,e)=>parseInt(t.value,10)-parseInt(e.value,10)));for(let t=0;t<a.length;t+=1){const{point:o,value:r}=a[t];"window"===e?s.matchMedia(`(min-width: ${r}px)`).matches&&(n=o):r<=i.clientWidth&&(n=o)}return n||"max"}},checkOverflow:{checkOverflow:function(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:n}=i;if(n){const e=t.slides.length-1,i=t.slidesGrid[e]+t.slidesSizesGrid[e]+2*n;t.isLocked=t.size>i}else t.isLocked=1===t.snapGrid.length;!0===i.allowSlideNext&&(t.allowSlideNext=!t.isLocked),!0===i.allowSlidePrev&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}},classes:rt,images:{loadImage:function(t,e,i,n,s,o){const a=E();let r;function l(){o&&o()}P(t).parent("picture")[0]||t.complete&&s?l():e?(r=new a.Image,r.onload=l,r.onerror=l,n&&(r.sizes=n),i&&(r.srcset=i),e&&(r.src=e)):l()},preloadImages:function(){const t=this;function e(){null!=t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}t.imagesToLoad=t.$el.find("img");for(let i=0;i<t.imagesToLoad.length;i+=1){const n=t.imagesToLoad[i];t.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),!0,e)}}}},dt={};class ut{constructor(...t){let e,i;if(1===t.length&&t[0].constructor&&"Object"===Object.prototype.toString.call(t[0]).slice(8,-1)?i=t[0]:[e,i]=t,i||(i={}),i=D({},i),e&&!i.el&&(i.el=e),i.el&&P(i.el).length>1){const t=[];return P(i.el).each((e=>{const n=D({},i,{el:e});t.push(new ut(n))})),t}const n=this;n.__swiper__=!0,n.support=F(),n.device=G({userAgent:i.userAgent}),n.browser=H(),n.eventsListeners={},n.eventsAnyListeners=[],n.modules=[...n.__modules__],i.modules&&Array.isArray(i.modules)&&n.modules.push(...i.modules);const s={};n.modules.forEach((t=>{t({swiper:n,extendParams:ht(i,s),on:n.on.bind(n),once:n.once.bind(n),off:n.off.bind(n),emit:n.emit.bind(n)})}));const o=D({},lt,s);return n.params=D({},o,dt,i),n.originalParams=D({},n.params),n.passedParams=D({}
1,i),n.params&&n.params.on&&Object.keys(n.params.on).forEach((t=>{n.on(t,n.params.on[t])})),n.params&&n.params.onAny&&n.onAny(n.params.onAny),n.$=P,Object.assign(n,{enabled:n.params.enabled,el:e,classNames:[],slides:P(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===n.params.direction,isVertical:()=>"vertical"===n.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev,touchEvents:function(){const t=["touchstart","touchmove","touchend","touchcancel"],e=["pointerdown","pointermove","pointerup"];return n.touchEventsTouch={start:t[0],move:t[1],end:t[2],cancel:t[3]},n.touchEventsDesktop={start:e[0],move:e[1],end:e[2]},n.support.touch||!n.params.simulateTouch?n.touchEventsTouch:n.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:n.params.focusableElements,lastClickTime:A(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:n.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),n.emit("_swiper"),n.params.init&&n.init(),n}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,e){const i=this;t=Math.min(Math.max(t,0),1);const n=i.minTranslate(),s=(i.maxTranslate()-n)*t+n;i.translateTo(s,void 0===e?0:e),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const e=t.el.className.split(" ").filter((e=>0===e.indexOf("swiper")||0===e.indexOf(t.params.containerModifierClass)));t.emit("_containerClasses",e.join(" "))}getSlideClasses(t){const e=this;return e.destroyed?"":t.className.split(" ").filter((t=>0===t.indexOf("swiper-slide")||0===t.indexOf(e.params.slideClass))).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const e=[];t.slides.each((i=>{const n=t.getSlideClasses(i);e.push({slideEl:i,classNames:n}),t.emit("_slideClass",i,n)})),t.emit("_slideClasses",e)}slidesPerViewDynamic(t="current",e=!1){const{params:i,slides:n,slidesGrid:s,slidesSizesGrid:o,size:a,activeIndex:r}=this;let l=1;if(i.centeredSlides){let t,e=n[r].swiperSlideSize;for(let i=r+1;i<n.length;i+=1)n[i]&&!t&&(e+=n[i].swiperSlideSize,l+=1,e>a&&(t=!0));for(let i=r-1;i>=0;i-=1)n[i]&&!t&&(e+=n[i].swiperSlideSize,l+=1,e>a&&(t=!0))}else if("current"===t)for(let t=r+1;t<n.length;t+=1){(e?s[t]+o[t]-s[r]<a:s[t]-s[r]<a)&&(l+=1)}else for(let t=r-1;t>=0;t-=1){s[r]-s[t]<a&&(l+=1)}return l}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:e,params:i}=t;function n(){const e=t.rtlTranslate?-1*t.translate:t.translate,i=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(i),t.updateActiveIndex(),t.updateSlidesClasses()}let s;i.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.params.freeMode&&t.params.freeMode.enabled?(n(),t.params.autoHeight&&t.updateAutoHeight()):(s=("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),s||n()),i.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,e=!0){const i=this,n=i.params.direction;return t||(t="horizontal"===n?"vertical":"horizontal"),t===n||"horizontal"!==t&&"vertical"!==t||(i.$el.removeClass(`${i.params.containerModifierClass}${n}`).addClass(`${i.params.containerModifierClass}${t}`),i.emitContainerClasses(),i.params.direction=t,i.slides.each((e=>{"vertical"===t?e.style.width="":e.style.height=""})),i.emit("changeDirection"),e&&i.update()),i}changeLanguageDirection(t){const e=this;e.rtl&&"rtl"===t||!e.rtl&&"ltr"===t||(e.rtl="rtl"===t,e.rtlTranslate="horizontal"===e.params.direction&&e.rtl,e.rtl?(e.$el.addClass(`${e.params.containerModifierClass}rtl`),e.el.dir="rtl"):(e.$el.removeClass(`${e.params.containerModifierClass}
1rtl`),e.el.dir="ltr"),e.update())}mount(t){const e=this;if(e.mounted)return!0;const i=P(t||e.params.el);if(!(t=i[0]))return!1;t.swiper=e;const n=()=>`.${(e.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=(()=>{if(t&&t.shadowRoot&&t.shadowRoot.querySelector){const e=P(t.shadowRoot.querySelector(n()));return e.children=t=>i.children(t),e}return i.children?i.children(n()):P(i).children(n())})();if(0===s.length&&e.params.createElements){const t=x().createElement("div");s=P(t),t.className=e.params.wrapperClass,i.append(t),i.children(`.${e.params.slideClass}`).each((t=>{s.append(t)}))}return Object.assign(e,{$el:i,el:t,$wrapperEl:s,wrapperEl:s[0],mounted:!0,rtl:"rtl"===t.dir.toLowerCase()||"rtl"===i.css("direction"),rtlTranslate:"horizontal"===e.params.direction&&("rtl"===t.dir.toLowerCase()||"rtl"===i.css("direction")),wrongRTL:"-webkit-box"===s.css("display")}),!0}init(t){const e=this;if(e.initialized)return e;return!1===e.mount(t)||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.enabled&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit,!1,!0):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit,!1,!0),e.attachEvents(),e.initialized=!0,e.emit("init"),e.emit("afterInit")),e}destroy(t=!0,e=!0){const i=this,{params:n,$el:s,$wrapperEl:o,slides:a}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),n.loop&&i.loopDestroy(),e&&(i.removeClasses(),s.removeAttr("style"),o.removeAttr("style"),a&&a.length&&a.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach((t=>{i.off(t)})),!1!==t&&(i.$el[0].swiper=null,function(t){const e=t;Object.keys(e).forEach((t=>{try{e[t]=null}catch(t){}try{delete e[t]}catch(t){}}))}(i)),i.destroyed=!0),null}static extendDefaults(t){D(dt,t)}static get extendedDefaults(){return dt}static get defaults(){return lt}static installModule(t){ut.prototype.__modules__||(ut.prototype.__modules__=[]);const e=ut.prototype.__modules__;"function"==typeof t&&e.indexOf(t)<0&&e.push(t)}static use(t){return Array.isArray(t)?(t.forEach((t=>ut.installModule(t))),ut):(ut.installModule(t),ut)}}function pt(t,e,i,n){const s=x();return t.params.createElements&&Object.keys(n).forEach((o=>{if(!i[o]&&!0===i.auto){let a=t.$el.children(`.${n[o]}`)[0];a||(a=s.createElement("div"),a.className=n[o],t.$el.append(a)),i[o]=a,e[o]=a}})),i}function mt({swiper:t,extendParams:e,on:i,emit:n}){function s(e){let i;return e&&(i=P(e),t.params.uniqueNavElements&&"string"==typeof e&&i.length>1&&1===t.$el.find(e).length&&(i=t.$el.find(e))),i}function o(e,i){const n=t.params.navigation;e&&e.length>0&&(e[i?"addClass":"removeClass"](n.disabledClass),e[0]&&"BUTTON"===e[0].tagName&&(e[0].disabled=i),t.params.watchOverflow&&t.enabled&&e[t.isLocked?"addClass":"removeClass"](n.lockClass))}function a(){if(t.params.loop)return;const{$nextEl:e,$prevEl:i}=t.navigation;o(i,t.isBeginning&&!t.params.rewind),o(e,t.isEnd&&!t.params.rewind)}function r(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),n("navigationPrev"))}function l(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),n("navigationNext"))}function h(){const e=t.params.navigation;if(t.params.navigation=pt(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;const i=s(e.nextEl),n=s(e.prevEl);i&&i.length>0&&i.on("click",l),n&&n.length>0&&n.on("click",r),Object.assign(t.navigation,{$nextEl:i,nextEl:i&&i[0],$prevEl:n,prevEl:n&&n[0]}),t.enabled||(i&&i.addClass(e.lockClass),n&&n.addClass(e.lockClass))}function c(){const{$nextEl:e,$prevEl:i}=t.navigation;e&&e.length&&(e.off("click",l),e.removeClass(t.params.navigation.disabledClass)),i&&i.length&&(i.off("
1click",r),i.removeClass(t.params.navigation.disabledClass))}e({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},i("init",(()=>{!1===t.params.navigation.enabled?d():(h(),a())})),i("toEdge fromEdge lock unlock",(()=>{a()})),i("destroy",(()=>{c()})),i("enable disable",(()=>{const{$nextEl:e,$prevEl:i}=t.navigation;e&&e[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass),i&&i[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass)})),i("click",((e,i)=>{const{$nextEl:s,$prevEl:o}=t.navigation,a=i.target;if(t.params.navigation.hideOnClick&&!P(a).is(o)&&!P(a).is(s)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===a||t.pagination.el.contains(a)))return;let e;s?e=s.hasClass(t.params.navigation.hiddenClass):o&&(e=o.hasClass(t.params.navigation.hiddenClass)),n(!0===e?"navigationShow":"navigationHide"),s&&s.toggleClass(t.params.navigation.hiddenClass),o&&o.toggleClass(t.params.navigation.hiddenClass)}}));const d=()=>{t.$el.addClass(t.params.navigation.navigationDisabledClass),c()};Object.assign(t.navigation,{enable:()=>{t.$el.removeClass(t.params.navigation.navigationDisabledClass),h(),a()},disable:d,update:a,init:h,destroy:c})}function ft(t=""){return`.${t.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function _t({swiper:t,extendParams:e,on:i,emit:n}){const s="swiper-pagination";let o;e({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:t=>t,formatFractionTotal:t=>t,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),t.pagination={el:null,$el:null,bullets:[]};let a=0;function r(){return!t.params.pagination.el||!t.pagination.el||!t.pagination.$el||0===t.pagination.$el.length}function l(e,i){const{bulletActiveClass:n}=t.params.pagination;e[i]().addClass(`${n}-${i}`)[i]().addClass(`${n}-${i}-${i}`)}function h(){const e=t.rtl,i=t.params.pagination;if(r())return;const s=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,h=t.pagination.$el;let c;const d=t.params.loop?Math.ceil((s-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(c=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),c>s-1-2*t.loopedSlides&&(c-=s-2*t.loopedSlides),c>d-1&&(c-=d),c<0&&"bullets"!==t.params.paginationType&&(c=d+c)):c=void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===i.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const n=t.pagination.bullets;let s,r,d;if(i.dynamicBullets&&(o=n.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),h.css(t.isHorizontal()?"width":"height",o*(i.dynamicMainBullets+4)+"px"),i.dynamicMainBullets>1&&void 0!==t.previousIndex&&(a+=c-(t.previousIndex-t.loopedSlides||0),a>i.dynamicMainBullets-1?a=i.dynamicMainBullets-1:a<0&&(a=0)),s=Math.max(c-a,0),r=s+(Math.min(n.length,i.dynamicMainBullets)-1),d=(r+s)/2),n.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map((t=>`${i.bulletActiveClass}${t}`)).join(" ")),h.length>1)n.each((t=>{const e=P(t),n=e.index();n===c&&e.addClass(i.bulletActiveClass),i.dynamicBullets&&(n>=s&&n<=r&&e.addClass(`${i.bulletActiveClass}-main`),n===s&&l(e,"prev"),n===r&&l(e,"next"))}));else{const e=n.eq(c),o=e.index();if(e.addClass(i.bulletActiveClass),i.dynamicBullets){const e=n.eq(s),a=n.eq(r);for(let t=s;t<=r;t+=1)n.eq(t).addClass(`${i.bulletActiveClass}-main`);if(t.params.loop)if(o>=n.length){for(let t=i.dynamicMainBullets;t>=0;t-=1)n.eq(n.length-t).addClass(`${i.bulletActiveClass}-main`);n.eq(n.length-i.dynamicMainBullets-1).addClass(`${i.bulletActiveClass}-prev`)}else l(e,"prev"),l(a,"next");else l(e,"prev"),l(a,"next")}}if(i.dynamicBullets){const s=Math.min(n.length,i.dynamicMainBullets+4),a=(o*s-o)/2-d*o,r=e?"right":"left";n.css(t.isHorizontal()?r:"top",`${a}px`)}}
1if("fraction"===i.type&&(h.find(ft(i.currentClass)).text(i.formatFractionCurrent(c+1)),h.find(ft(i.totalClass)).text(i.formatFractionTotal(d))),"progressbar"===i.type){let e;e=i.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const n=(c+1)/d;let s=1,o=1;"horizontal"===e?s=n:o=n,h.find(ft(i.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${s}) scaleY(${o})`).transition(t.params.speed)}"custom"===i.type&&i.renderCustom?(h.html(i.renderCustom(t,c+1,d)),n("paginationRender",h[0])):n("paginationUpdate",h[0]),t.params.watchOverflow&&t.enabled&&h[t.isLocked?"addClass":"removeClass"](i.lockClass)}function c(){const e=t.params.pagination;if(r())return;const i=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,s=t.pagination.$el;let o="";if("bullets"===e.type){let n=t.params.loop?Math.ceil((i-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&!t.params.loop&&n>i&&(n=i);for(let i=0;i<n;i+=1)e.renderBullet?o+=e.renderBullet.call(t,i,e.bulletClass):o+=`<${e.bulletElement} class="${e.bulletClass}"></${e.bulletElement}>`;s.html(o),t.pagination.bullets=s.find(ft(e.bulletClass))}"fraction"===e.type&&(o=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`,s.html(o)),"progressbar"===e.type&&(o=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`,s.html(o)),"custom"!==e.type&&n("paginationRender",t.pagination.$el[0])}function d(){t.params.pagination=pt(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let i=P(e.el);0!==i.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&i.length>1&&(i=t.$el.find(e.el),i.length>1&&(i=i.filter((e=>P(e).parents(".swiper")[0]===t.el)))),"bullets"===e.type&&e.clickable&&i.addClass(e.clickableClass),i.addClass(e.modifierClass+e.type),i.addClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(i.addClass(`${e.modifierClass}${e.type}-dynamic`),a=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&i.addClass(e.progressbarOppositeClass),e.clickable&&i.on("click",ft(e.bulletClass),(function(e){e.preventDefault();let i=P(this).index()*t.params.slidesPerGroup;t.params.loop&&(i+=t.loopedSlides),t.slideTo(i)})),Object.assign(t.pagination,{$el:i,el:i[0]}),t.enabled||i.addClass(e.lockClass))}function u(){const e=t.params.pagination;if(r())return;const i=t.pagination.$el;i.removeClass(e.hiddenClass),i.removeClass(e.modifierClass+e.type),i.removeClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),t.pagination.bullets&&t.pagination.bullets.removeClass&&t.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&i.off("click",ft(e.bulletClass))}i("init",(()=>{!1===t.params.pagination.enabled?p():(d(),c(),h())})),i("activeIndexChange",(()=>{(t.params.loop||void 0===t.snapIndex)&&h()})),i("snapIndexChange",(()=>{t.params.loop||h()})),i("slidesLengthChange",(()=>{t.params.loop&&(c(),h())})),i("snapGridLengthChange",(()=>{t.params.loop||(c(),h())})),i("destroy",(()=>{u()})),i("enable disable",(()=>{const{$el:e}=t.pagination;e&&e[t.enabled?"removeClass":"addClass"](t.params.pagination.lockClass)})),i("lock unlock",(()=>{h()})),i("click",((e,i)=>{const s=i.target,{$el:o}=t.pagination;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&o&&o.length>0&&!P(s).hasClass(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&s===t.navigation.nextEl||t.navigation.prevEl&&s===t.navigation.prevEl))return;const e=o.hasClass(t.params.pagination.hiddenClass);n(!0===e?"paginationShow":"paginationHide"),o.toggleClass(t.params.pagination.hiddenClass)}}));const p=()=>{t.$el.addClass(t.params.pagination.paginationDisabledClass),t.pagination.$el&&t.pagination.$el.addClass(t.params.pagination.paginationDisabledClass),u()};Object.assign(t.pagination,{enable:()=>{t.$el.removeClass(t.params.pagination.paginationDisabledClass),t.pagination.$el&&t.pagination.$el.removeClass(t.params.pagination.paginationDisabledClass),d(),c(),h()},disable:p,render:c,update:h,init:d,destroy:u})}function gt({swiper:t,extendParams:e,on:i}){function n(t,e){const i=function(){let t,e,i;return(n,s)=>{for(e=-1,t=n.length;t-e>1;)i=t+e>>1,n[i]<=s?e=i:t=i;return t}}();let n,s;return this.x=t,this.y=e,this.lastIndex=t.length-1,this.interpolate=function(t){return t?(s=i(this.x,t),n=s-1,(t-this.x[n])*(this.y[s]-this.y[n])/(this.x[s]-this.x[n])+this.y[n]):0},this}function s(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}e({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},i("beforeInit",(()=>{t.controller.control=t.params.controller.control})),i("update",(()=>{s()})),i("resize",(()=>{s()})),i("observerUpdate",(()=>{s()})),i("setTranslate",((e,i,n)=>{t.controller.control&&t.controller.setTranslate(i,n)})),i("setTransition",((e,i,n)=>{t.controller.control&&t.controller.setTransition(i,n)})),Object.assign(t.controller,{setTranslate:function(e,i){const s=t.controller.control;let o,a;const r=t.constructor;function l(e){const i=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(!function(e){t.controller.spline||(t.controller.spline=t.params.loop?new n(t.slidesGrid,e.slidesGrid):new n(t.snapGrid,e.snapGrid))}(e),a=-t.controller.spline.interpolate(-i)),a&&"container"!==t.params.controller.by||(o=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),a=(i-t.minTranslate())*o+e.minTranslate()),t.params.controller.inverse&&(a=e.maxTranslate()-a),e.updateProgress(a),e.setTranslate(a,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(s))for(let t=0;t<s.length;t+=1)s[t]!==i&&s[t]instanceof r&&l(s[t]);else s instanceof r&&i!==s&&l(s)},setTransition:function(e,i){const n=t.constructor,s=t.controller.control;let o;function a(i){i.setTransition(e,t),0!==e&&(i.transitionStart(),i.params.autoHeight&&I((()=>{i.updateAutoHeight()})),i.$wrapperEl.transitionEnd((()=>{s&&(i.params.loop&&"slide"===t.params.controller.by&&i.loopFix(),i.transitionEnd())})))}if(Array.isArray(s))for(o=0;o<s.length;o+=1)s[o]!==i&&s[o]instanceof n&&a(s[o]);else s instanceof n&&i!==s&&a(s)}})}function vt({swiper:t,extendParams:e,on:i,emit:n}){let s;function o(){if(!t.size)return t.autoplay.running=!1,void(t.autoplay.paused=!1);const e=t.slides.eq(t.activeIndex);let i=t.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(i=e.attr("data-swiper-autoplay")||t.params.autoplay.delay),clearTimeout(s),s=I((()=>{let e;t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),e=t.slidePrev(t.params.speed,!0,
1!0),n("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?r():(e=t.slideTo(t.slides.length-1,t.params.speed,!0,!0),n("autoplay")):(e=t.slidePrev(t.params.speed,!0,!0),n("autoplay")):t.params.loop?(t.loopFix(),e=t.slideNext(t.params.speed,!0,!0),n("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?r():(e=t.slideTo(0,t.params.speed,!0,!0),n("autoplay")):(e=t.slideNext(t.params.speed,!0,!0),n("autoplay")),(t.params.cssMode&&t.autoplay.running||!1===e)&&o()}),i)}function a(){return void 0===s&&(!t.autoplay.running&&(t.autoplay.running=!0,n("autoplayStart"),o(),!0))}function r(){return!!t.autoplay.running&&(void 0!==s&&(s&&(clearTimeout(s),s=void 0),t.autoplay.running=!1,n("autoplayStop"),!0))}function l(e){t.autoplay.running&&(t.autoplay.paused||(s&&clearTimeout(s),t.autoplay.paused=!0,0!==e&&t.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach((e=>{t.$wrapperEl[0].addEventListener(e,c)})):(t.autoplay.paused=!1,o())))}function h(){const e=x();"hidden"===e.visibilityState&&t.autoplay.running&&l(),"visible"===e.visibilityState&&t.autoplay.paused&&(o(),t.autoplay.paused=!1)}function c(e){t&&!t.destroyed&&t.$wrapperEl&&e.target===t.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach((e=>{t.$wrapperEl[0].removeEventListener(e,c)})),t.autoplay.paused=!1,t.autoplay.running?o():r())}function d(){t.params.autoplay.disableOnInteraction?r():(n("autoplayPause"),l()),["transitionend","webkitTransitionEnd"].forEach((e=>{t.$wrapperEl[0].removeEventListener(e,c)}))}function u(){t.params.autoplay.disableOnInteraction||(t.autoplay.paused=!1,n("autoplayResume"),o())}t.autoplay={running:!1,paused:!1},e({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}}),i("init",(()=>{if(t.params.autoplay.enabled){a();x().addEventListener("visibilitychange",h),t.params.autoplay.pauseOnMouseEnter&&(t.$el.on("mouseenter",d),t.$el.on("mouseleave",u))}})),i("beforeTransitionStart",((e,i,n)=>{t.autoplay.running&&(n||!t.params.autoplay.disableOnInteraction?t.autoplay.pause(i):r())})),i("sliderFirstMove",(()=>{t.autoplay.running&&(t.params.autoplay.disableOnInteraction?r():l())})),i("touchEnd",(()=>{t.params.cssMode&&t.autoplay.paused&&!t.params.autoplay.disableOnInteraction&&o()})),i("destroy",(()=>{t.$el.off("mouseenter",d),t.$el.off("mouseleave",u),t.autoplay.running&&r();x().removeEventListener("visibilitychange",h)})),Object.assign(t.autoplay,{pause:l,run:o,start:a,stop:r})}function yt(t){const{effect:e,swiper:i,on:n,setTranslate:s,setTransition:o,overwriteParams:a,perspective:r,recreateShadows:l,getEffectParams:h}=t;let c;n("beforeInit",(()=>{if(i.params.effect!==e)return;i.classNames.push(`${i.params.containerModifierClass}${e}`),r&&r()&&i.classNames.push(`${i.params.containerModifierClass}3d`);const t=a?a():{};Object.assign(i.params,t),Object.assign(i.originalParams,t)})),n("setTranslate",(()=>{i.params.effect===e&&s()})),n("setTransition",((t,n)=>{i.params.effect===e&&o(n)})),n("transitionEnd",(()=>{if(i.params.effect===e&&l){if(!h||!h().slideShadows)return;i.slides.each((t=>{i.$(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").remove()})),l()}})),n("virtualUpdate",(()=>{i.params.effect===e&&(i.slides.length||(c=!0),requestAnimationFrame((()=>{c&&i.slides&&i.slides.length&&(s(),c=!1)})))}))}function bt(t,e){return t.transformEl?e.find(t.transformEl).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):e}function wt({swiper:t,extendParams:e,on:i}){e({fadeEffect:{crossFade:!1,transformEl:null}});yt({effect:"fade",swiper:t,on:i,setTranslate:()=>{const{slides:e}=t,i=t.params.fadeEffect;for(let n=0;n<e.length;n+=1){const e=t.slides.eq(n);let s=-e[0].swiperSlideOffset;t.params.virtualTranslate||(s-=t.translate);let o=0;t.isHorizontal()||(o=s,s=0);const a=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e[0].progress),0):1+Math.min(Math.max(e[0].progress,-1),0);bt(i,e).css({opacity:a}).transform(`translate3d(${s}px, ${o}px, 0px)`)}},setTransition:e=>{const{transformEl:i}=t.params.fadeEffect;(i?t.slides.find(i):t.slides).transition(e),function({swiper:t,duration:e,transformEl:i,allSlides:n}){const{slides:s,activeIndex:o,$wrapperEl:a}=t;if(t.params.virtualTranslate&&0!==e){let e,r=!1;e=n?i?s.find(i):s:i?s.eq(o).find(i):s.eq(o),e.transitionEnd((()=>
1{if(r)return;if(!t||t.destroyed)return;r=!0,t.animating=!1;const e=["webkitTransitionEnd","transitionend"];for(let t=0;t<e.length;t+=1)a.trigger(e[t])}))}}({swiper:t,duration:e,transformEl:i,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})}function Lt(t,e,i){const n="swiper-slide-shadow"+(i?`-${i}`:""),s=t.transformEl?e.find(t.transformEl):e;let o=s.children(`.${n}`);return o.length||(o=P(`<div class="swiper-slide-shadow${i?`-${i}`:""}"></div>`),s.append(o)),o}function xt({swiper:t,extendParams:e,on:i}){e({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0,transformEl:null}});yt({effect:"coverflow",swiper:t,on:i,setTranslate:()=>{const{width:e,height:i,slides:n,slidesSizesGrid:s}=t,o=t.params.coverflowEffect,a=t.isHorizontal(),r=t.translate,l=a?e/2-r:i/2-r,h=a?o.rotate:-o.rotate,c=o.depth;for(let t=0,e=n.length;t<e;t+=1){const e=n.eq(t),i=s[t],r=(l-e[0].swiperSlideOffset-i/2)/i,d="function"==typeof o.modifier?o.modifier(r):r*o.modifier;let u=a?h*d:0,p=a?0:h*d,m=-c*Math.abs(d),f=o.stretch;"string"==typeof f&&-1!==f.indexOf("%")&&(f=parseFloat(o.stretch)/100*i);let _=a?0:f*d,g=a?f*d:0,v=1-(1-o.scale)*Math.abs(d);Math.abs(g)<.001&&(g=0),Math.abs(_)<.001&&(_=0),Math.abs(m)<.001&&(m=0),Math.abs(u)<.001&&(u=0),Math.abs(p)<.001&&(p=0),Math.abs(v)<.001&&(v=0);const y=`translate3d(${g}px,${_}px,${m}px)  rotateX(${p}deg) rotateY(${u}deg) scale(${v})`;if(bt(o,e).transform(y),e[0].style.zIndex=1-Math.abs(Math.round(d)),o.slideShadows){let t=a?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),i=a?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===t.length&&(t=Lt(o,e,a?"left":"top")),0===i.length&&(i=Lt(o,e,a?"right":"bottom")),t.length&&(t[0].style.opacity=d>0?d:0),i.length&&(i[0].style.opacity=-d>0?-d:0)}}},setTransition:e=>{const{transformEl:i}=t.params.coverflowEffect;(i?t.slides.find(i):t.slides).transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}Object.keys(ct).forEach((t=>{Object.keys(ct[t]).forEach((e=>{ut.prototype[e]=ct[t][e]}))})),ut.use([function({swiper:t,on:e,emit:i}){const n=E();let s=null,o=null;const a=()=>{t&&!t.destroyed&&t.initialized&&(i("beforeResize"),i("resize"))},r=()=>{t&&!t.destroyed&&t.initialized&&i("orientationchange")};e("init",(()=>{t.params.resizeObserver&&void 0!==n.ResizeObserver?t&&!t.destroyed&&t.initialized&&(s=new ResizeObserver((e=>{o=n.requestAnimationFrame((()=>{const{width:i,height:n}=t;let s=i,o=n;e.forEach((({contentBoxSize:e,contentRect:i,target:n})=>{n&&n!==t.el||(s=i?i.width:(e[0]||e).inlineSize,o=i?i.height:(e[0]||e).blockSize)})),s===i&&o===n||a()}))})),s.observe(t.el)):(n.addEventListener("resize",a),n.addEventListener("orientationchange",r))})),e("destroy",(()=>{o&&n.cancelAnimationFrame(o),s&&s.unobserve&&t.el&&(s.unobserve(t.el),s=null),n.removeEventListener("resize",a),n.removeEventListener("orientationchange",r)}))},function({swiper:t,extendParams:e,on:i,emit:n}){const s=[],o=E(),a=(t,e={})=>{const i=new(o.MutationObserver||o.WebkitMutationObserver)((t=>{if(1===t.length)return void n("observerUpdate",t[0]);const e=function(){n("observerUpdate",t[0])};o.requestAnimationFrame?o.requestAnimationFrame(e):o.setTimeout(e,0)}));i.observe(t,{attributes:void 0===e.attributes||e.attributes,childList:void 0===e.childList||e.childList,characterData:void 0===e.characterData||e.characterData}),s.push(i)};e({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=t.$el.parents();for(let t=0;t<e.length;t+=1)a(e[t])}a(t.$el[0],{childList:t.params.observeSlideChildren}),a(t.$wrapperEl[0],{attributes:!1})}})),i("destroy",(()=>{s.forEach((t=>{t.disconnect()})),s.splice(0,s.length)}))}]);var Ct="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Et(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var St,Tt,Mt={exports:{}},Pt={exports:{}};function kt(){return St||(St=1,t=Pt,function(e,i){t.exports?t.exports=i():e.EvEmitter=i()}("undefined"!=typeof window?window:Ct,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},n=i[t]=i[t]||[];return n.includes(e)||n.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let n=i.indexOf(e);return-1!=n&&i.splice(n,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let n=this._onceEvents&&this._onceEvents[t];for(let s of i)n&&n[s]&&(this.off(t,s),delete n[s]),s.apply(this,e);return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t}))),Pt.exports;var t}Tt=Mt,function(t,e){Tt.exports?Tt.exports=e(t,kt()):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:Ct,(function(t,e){let i=t.jQuery,n=t.console;
vendor: 4,252 bytes, line 1
1function s(t,e,o){if(!(this instanceof s))return new s(t,e,o);let a=t;var r;"string"==typeof t&&(a=document.querySelectorAll(t)),a?(this.elements=(r=a,Array.isArray(r)?r:"object"==typeof r&&"number"==typeof r.length?[...r]:[r]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):n.error(`Bad element for imagesLoaded ${a||t}`)}s.prototype=Object.create(e.prototype),s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];s.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const a=/url\((['"])?(.*?)\1\)/gi;function r(t){this.img=t}function l(t,e){this.url=t,this.element=e,this.img=new Image}return s.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=a.exec(e.backgroundImage);for(;null!==i;){let n=i&&i[2];n&&this.addBackground(n,t),i=a.exec(e.backgroundImage)}},s.prototype.addImage=function(t){let e=new r(t);this.images.push(e)},s.prototype.addBackground=function(t,e){let i=new l(t,e);this.images.push(i)},s.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},s.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&n&&n.log(`progress: ${i}`,t,e)},s.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},r.prototype=Object.create(e.prototype),r.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},r.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},r.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,n="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,n,e])},r.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype=Object.create(r.prototype),l.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},l.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},s.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new s(this,t,e).jqDeferred.promise(i(this))})},s.makeJQueryPlugin(),s}));var It=Et(Mt.exports);let At=0;function Ot(t){At+=1;const e=`swiper-el-${At}`;return t.classList.add(e),e}
1function zt(t){t.slides.forEach((t=>{t.classList.contains("swiper-slide-active")?t.removeAttribute("aria-hidden"):t.setAttribute("aria-hidden",!0);t.querySelectorAll('a, button, input, select, textarea, [tabindex="0"]').forEach((e=>{t.classList.contains("swiper-slide-active")?(e.removeAttribute("tabindex"),e.removeAttribute("aria-hidden")):(e.setAttribute("tabindex",-1),e.setAttribute("aria-hidden",!0))}))}))}function Dt(t){t.slides.forEach((e=>{if(e.classList.contains("swiper-slide-active")){const i=e.querySelector(".js-testimonials-read-more");i&&i.addEventListener("click",(()=>{t.updateAutoHeight(300)}))}}))}function Bt(t){const e=Ot(t[0]),i=Ot(t[1]),n=function(t){At+=1;const e=`autoplay-btn-el-${At}`;return t.classList.add(e),e}(t[2]),s=document.getElementsByClassName(n)[0],o=new ut(`.${e}`,{modules:[mt,gt],slidesPerView:1,loop:!0}),a=new ut(`.${i}`,{slidesPerView:1,modules:[mt,gt,wt,vt],navigation:{nextEl:".c-feature-slider__swiper-button-next",prevEl:".c-feature-slider__swiper-button-prev"},effect:"fade",fadeEffect:{crossFade:!0},autoplay:{delay:5e3,disableOnInteraction:!1},loop:!0});o.on("slideChange",zt(a)),o.on("transitionEnd",(function(){zt(a)})),a.on("slideChange",zt(a)),a.on("transitionEnd",(function(){zt(a)})),o.controller.control=a,a.controller.control=o,s.addEventListener("click",(()=>{a.autoplay.running?(s.classList.add("paused"),s.setAttribute("aria-pressed","true"),a.autoplay.stop()):(s.classList.remove("paused"),s.setAttribute("aria-pressed","false"),a.autoplay.start())})),o.init(),a.init()}function $t(){document.querySelectorAll(".js-text-card-slider").forEach((t=>function(t){const e=Ot(t),i=new ut(`.${e}`,{modules:[mt,xt],slidesPerView:"auto",spaceBetween:5,centeredSlides:!0,effect:"coverflow",coverflowEffect:{rotate:0,scale:.8,slideShadows:!1},navigation:{nextEl:".c-text-card-slideshow__swiper-button-next",prevEl:".c-text-card-slideshow__swiper-button-prev"}});i.on("slideChange",zt(i)),i.on("transitionEnd",(function(){zt(i)})),i.init()}(t)));document.querySelectorAll(".js-mobile-content-grid-slider").forEach((t=>function(t){const e=Ot(t),i=new ut(`.${e}`,{modules:[mt],navigation:{nextEl:".c-content-grid__swiper-button-next",prevEl:".c-content-grid__swiper-button-prev"},slidesPerView:"auto",spaceBetween:18});i.on("transitionEnd",(function(){zt(i)})),i.init()}(t)));document.querySelectorAll(".js-membership-slider").forEach((t=>function(t){const e=Ot(t),i=new ut(`.${e}`,{init:!1,modules:[mt],slidesPerView:"auto",spaceBetween:34,centeredSlides:!0,grabCursor:!0,navigation:{nextEl:".c-membership-levels__swiper-button-next",prevEl:".c-membership-levels__swiper-button-prev"}});i.on("afterInit",(function(t){Dt(t)})),i.on("slideChange",zt(i)),i.on("transitionEnd",(function(){zt(i)})),i.init()}(t)));document.querySelectorAll(".js-content-grid-slider").forEach((t=>function(t){const e=Ot(t),i=t.closest(".c-content-grid-slider"),n=i.querySelector(".c-content-grid-slider__swiper-button-next"),s=i.querySelector(".c-content-grid-slider__swiper-button-prev");console.log(n);const o=new ut(`.${e}`,{modules:[mt],navigation:{nextEl:n,prevEl:s},slidesPerView:"auto",spaceBetween:32});o.on("transitionEnd",(function(){zt(o)})),o.init()}(t)));document.querySelectorAll(".js-testimonials-slider").forEach((t=>function(t){const e=Ot(t),i=new ut(`.${e}`,{init:!1,modules:[mt],slidesPerView:1,centeredSlides:!0,navigation:{nextEl:".c-testimonials__swiper-button-next",prevEl:".c-testimonials__swiper-button-prev"}});i.on("afterInit",(function(t){Dt(t)})),i.on("slideChange",zt(i)),i.on("transitionEnd",(function(){zt(i)})),i.init()}(t)));document.querySelectorAll(".js-slideshow-slider").forEach((t=>function(t){const e=Ot(t),i=new ut(`.${e}`,{modules:[mt,xt],init:!1,observer:!0,observeParents:!0,slidesPerView:"auto",spaceBetween:31,centeredSlides:!0,loopedSlides:8,activeIndex:0,loop:!0,preloadImages:!0,updateOnImagesReady:!0,navigation:{nextEl:".c-slideshow__swiper-button-next",prevEl:".c-slideshow__swiper-button-prev"},effect:"coverflow",coverflowEffect:{rotate:0,scale:.8,slideShadows:!1}});i.on("slideChange",zt(i)),i.on("transitionEnd",(function(){zt(i)})),It(t,(function(){i.init()}))}(t)));const t=document.querySelectorAll(".js-feature-slider__images"),e=Array.apply(null,t),i=document.querySelectorAll(".js-feature-slider__text"),n=Array.apply(null,i),s=document.querySelectorAll(".js-feature-autoplay-button"),o=Array.apply(null,s),a=e.map((function(t,e){return[t,n[e],o[e]]}));a.forEach((t=>Bt(t)));document.querySelectorAll(".js-feature-list-slider").forEach((t=>function(t){const e=Ot(t);new ut(`.${e}`,{modules:[mt,_t],spaceBetween:31,loop:!1,navigation:{nextEl:".c-half-feature-with-list__slide-button-next",prevEl:".c-half-feature-with-list__slide-button-prev"},pagination:{el:".c-half-feature-with-list__pagination",type:"bullets",clickable:!0}}).init()}(t)))}function Nt(t,e,i){var n=new Date;n.setTime(n.getTime()+864e5*i),document.cookie=t+"="+e+";path=/;expires="+n.toGMTString()}function jt(t,e,i,n,s){t.setAttribute("aria-label",i),t.classList.add(n),t.classList.remove(s),e.classList.add(n),e.classList.remove(s)}function Zt(t,e,i){const n=t.getAttribute("data-pauselabel")?t.getAttribute("data-pauselabel"):"Pause";jt(t,i,n,"c-ambient-video--is-playing","c-ambient-video--is-paused"),Nt("BC_Ambient_Video_Opt","play",1),e.play()}function Ft(t,e,i){const n=t.getAttribute("data-playlabel")?t.getAttribute("data-pauselabel"):"Play";jt(t,i,n,"c-ambient-video--is-paused","c-ambient-video--is-playing"),Nt("BC_Ambient_Video_Opt","pause",1),e.pause()}
1function Gt(t){const e=t.closest(".js-video-parent");if(e){const n=e.querySelector("video");if(!n)return;const s=!!((i=n).currentTime>0&&!i.paused&&!i.ended&&i.readyState>2);console.log(s),s?Ft(t,n,e):Zt(t,n,e)}var i}function Ht(){const t=document.querySelectorAll(".c-ambient-video"),e=matchMedia("(prefers-reduced-motion)").matches;t.forEach((t=>{const i=t.querySelector("video"),n=t.querySelector(".js-video-toggle");if(e)t.classList.add("c-ambient-video--no-motion"),n.addEventListener("click",(()=>{Gt(n)}));else if(i){t.classList.add("c-ambient-video--loading");let e=!1;i.addEventListener("loadeddata",(function s(){if(!e&&i.readyState>=2){e=!0,t.classList.remove("c-ambient-video--loading"),t.classList.add("c-ambient-video--is-ready");const r=(o="BC_Ambient_Video_Opt",(a=document.cookie.match("(^|;) ?"+o+"=([^;]*)(;|$)"))?a[2]:null);"pause"===r?i.pause():i.play(),setTimeout((()=>{t.classList.add("c-ambient-video--can-animate")}),1),n&&("pause"===r?Ft(n,i,t):Zt(n,i,t),n.addEventListener("click",(()=>{Gt(n)}))),i.removeEventListener("loadeddata",s(),!1)}var o,a}),!1),i.addEventListener("error",(e=>{t.classList.add("c-ambient-video--video-error"),console.log(e)}),!0)}}))}const Rt={buttonClass:".js-play-video",openClass:"toggle-play",defaultDelay:10};function qt(){const t=document.querySelectorAll(Rt.buttonClass);[].forEach.call(t,(t=>{const e=function(t){let e,i=t.getAttribute("data-targetid");"next"!==i&&i?e=document.getElementById(i):(e=t.nextElementSibling,e||(e=t.parentElement.nextElementSibling));return e}(t);t.addEventListener("click",(()=>{!function(t,e){t.classList.add(Rt.openClass),e.classList.add(Rt.openClass),e.setAttribute("aria-hidden","false"),t.setAttribute("aria-hidden","true");const i=e.firstElementChild,n=i.getAttribute("data-src"),s=n.includes("?")?"&":"?",o=n.includes("vimeo")?"1":"true";i.setAttribute("src",n+s+"autoplay="+o),i.focus()}(t,e)}))}))}const Wt=".js-donation-amount-button",Vt=".js-donation-amount-panel",Ut=".js-panel-wrapper";function Yt(){const t=document.querySelectorAll(Wt),e=document.querySelectorAll(Vt),i=document.querySelector(Ut),n=[];if(t&&t.forEach((i=>{const s=function(t){let e=t.getAttribute("data-targetid");return document.getElementById(e)}(i);s&&n.push(function(t){return t.offsetHeight}(s)),i.addEventListener("click",(()=>{[].forEach.call(e,(t=>{t.classList.remove("is-active")})),s.classList.add("is-active"),[].forEach.call(t,(t=>{t.setAttribute("aria-pressed",!1)})),i.setAttribute("aria-pressed",!0)}))})),n.length>0&&i){const t=Math.max(...n);i.style.height=t+"px"}}function Kt(){document.querySelectorAll(".js-form-item").forEach((t=>{if(t.classList.contains("fieldgroup"))return;let e=t.querySelector("input"),i=!1,n=!1,s=!1;e&&"checkbox"===e.getAttribute("type")&&(n=!0),e&&"radio"===e.getAttribute("type")&&(s=!0),e||(e=t.querySelector("textarea")),e||(e=t.querySelector("select"),e&&(i=!0)),e&&function(t,e,i=!1,n=!1,s=!1){t.addEventListener("focus",(()=>{e.classList.add("o-form-item--has-focus")})),t.addEventListener("blur",(()=>{e.classList.remove("o-form-item--has-focus"),n||s||(t.value?e.classList.add("o-form-item--has-value"):e.classList.remove("o-form-item--has-value"))})),t.addEventListener("change",(()=>{if(i&&(""!==t.value?e.classList.add("o-form-item--has-value"):e.classList.remove("o-form-item--has-value")),n&&(t.checked?e.classList.add("o-form-item--has-value"):e.classList.remove("o-form-item--has-value")),s)if(t.checked){const t=e.closest(".fieldset-wrapper");t&&t.querySelectorAll('input[type="radio"]').forEach((t=>{const e=t.closest(".js-form-item");e&&e.classList.remove("o-form-item--has-value")})),e.classList.add("o-form-item--has-value")}else e.classList.remove("o-form-item--has-value")}))}(e,t,i,n,s)}))}const Xt={header:document.getElementById("site-header"),nav:document.getElementById("js-sticky-nav"),headerHeight:0,headerHeightOffset:0,scrollWas:0};function Jt(){let t=document.body.classList.contains("u-sticky-nav");t&&(document.body.classList.remove("u-sticky-nav"),document.body.classList.remove("u-sticky-nav-animate")),Xt.header.style=null,Xt.headerHeight=Xt.header.offsetHeight,Xt.headerHeightOffset=2*Xt.headerHeight+100,Xt.header.style.height=`${Xt.headerHeight}px`,t&&(document.body.classList.add("u-sticky-nav"),document.body.classList.add("u-sticky-nav-animate"))}function Qt(){const t=document.documentElement.scrollTop||document.body.scrollTop;t+100>Xt.headerHeightOffset?(document.body.classList.add("u-sticky-nav"),setTimeout((()=>{document.body.classList.add("u-sticky-nav-animate")}),1)):(document.body.classList.remove("u-sticky-nav-animate"),setTimeout((()=>{document.body.classList.remove("u-sticky-nav")}),400)),t>Xt.scrollWas?document.body.classList.remove("u-sticky-nav--visible"):document.body.classList.add("u-sticky-nav--visible"),Xt.scrollWas=t}function te(){const t=document.getElementById("site-alert");if(!t)return!1;const e=`lac-alert-dismissed-${t.getAttribute("data-iteration")}`;if(console.log(e),function(t){for(var e=t+"=",i=document.cookie.split(";"),n=0;n<i.length;n++){for(var s=i[n];" "==s.charAt(0);)s=s.substring(1,s.length);if(0==s.indexOf(e))return s.substring(e.length,s.length)}return null}(e))return t.classList.add("was-dismissed"),window.dispatchEvent(new Event("resize")),!1;t.classList.add("is-visible"),window.dispatchEvent(new Event("resize"));document.getElementById("site-alert-close").addEventListener("click",(()=>{var i,n,s,o,a;t.classList.remove("is-visible"),t.classList.add("was-dismissed"),window.dispatchEvent(new Event("resize")),i=e,n="was-dismissed",s=1,(a=new Date).setTime(a.getTime()+24*s*60*60*1e3),o="; expires="+a.toGMTString(),document.cookie=i+"="+n+o+"; path=/"}))}var ee={exports:{}};(function(t){var e="1.9.4";function i(t){var e,i,n,s;for(i=1,n=arguments.length;i<n;i++)for(e in s=arguments[i])t[e]=s[e];return t}var n=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function s(t,e){var i=Array.prototype.slice;
vendor: 11,176 bytes, line 1
1if(t.bind)return t.bind.apply(t,i.call(arguments,1));var n=i.call(arguments,2);return function(){return t.apply(e,n.length?n.concat(i.call(arguments)):arguments)}}var o=0;function a(t){return"_leaflet_id"in t||(t._leaflet_id=++o),t._leaflet_id}function r(t,e,i){var n,s,o,a;return a=function(){n=!1,s&&(o.apply(i,s),s=!1)},o=function(){n?s=arguments:(t.apply(i,arguments),setTimeout(a,e),n=!0)},o}function l(t,e,i){var n=e[1],s=e[0],o=n-s;return t===n&&i?t:((t-s)%o+o)%o+s}function h(){return!1}function c(t,e){if(!1===e)return t;var i=Math.pow(10,void 0===e?6:e);return Math.round(t*i)/i}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 i in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?n(t.options):{}),e)t.options[i]=e[i];return t.options}function m(t,e,i){var n=[];for(var s in t)n.push(encodeURIComponent(i?s.toUpperCase():s)+"="+encodeURIComponent(t[s]));return(e&&-1!==e.indexOf("?")?"&":"?")+n.join("&")}var f=/\{ *([\w_ -]+) *\}/g;function _(t,e){return t.replace(f,(function(t,i){var n=e[i];if(void 0===n)throw new Error("No value provided for variable "+t);return"function"==typeof n&&(n=n(e)),n}))}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,E=window.cancelAnimationFrame||b("CancelAnimationFrame")||b("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function S(t,e,i){if(!i||C!==x)return C.call(window,s(t,e));t.call(e)}function T(t){t&&E.call(window,t)}var M={__proto__:null,extend:i,create:n,bind:s,get lastId(){return o},stamp:a,throttle:r,wrapNum:l,falseFn:h,formatNum:c,trim:d,splitWords:u,setOptions:p,getParamString:m,template:_,isArray:g,indexOf:v,emptyImageUrl:y,requestFn:C,cancelFn:E,requestAnimFrame:S,cancelAnimFrame:T};function P(){}function k(t){if("undefined"!=typeof L&&L&&L.Mixin){t=g(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===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.",(new Error).stack)}}P.extend=function(t){var e=function(){p(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},s=e.__super__=this.prototype,o=n(s);for(var a in o.constructor=e,e.prototype=o,this)Object.prototype.hasOwnProperty.call(this,a)&&"prototype"!==a&&"__super__"!==a&&(e[a]=this[a]);return t.statics&&i(e,t.statics),t.includes&&(k(t.includes),i.apply(null,[o].concat(t.includes))),i(o,t),delete o.statics,delete o.includes,o.options&&(o.options=s.options?n(s.options):{},i(o.options,t.options)),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){s.callInitHooks&&s.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=o._initHooks.length;t<e;t++)o._initHooks[t].call(this)}},e},P.include=function(t){var e=this.prototype.options;return i(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this},P.mergeOptions=function(t){return i(this.prototype.options,t),this},P.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};var I={on:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e);else for(var s=0,o=(t=u(t)).length;s<o;s++)this._on(t[s],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 s=1===arguments.length,o=0,a=t.length;o<a;o++)s?this._off(t[o]):this._off(t[o],e,i)}else delete this._events;return this},_on:function(t,e,i,n){if("function"==typeof e){if(!1===this._listens(t,e,i)){i===this&&(i=void 0);var s={fn:e,ctx:i};n&&(s.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(s)}}else console.warn("wrong listener type: "+typeof e)},_off:function(t,e,i){var n,s,o;if(this._events&&(n=this._events[t]))if(1!==arguments.length)if("function"==typeof e){var a=this._listens(t,e,i);if(!1!==a){var r=n[a];this._firingCount&&(r.fn=h,this._events[t]=n=n.slice()),n.splice(a,1)}}else console.warn("wrong listener type: "+typeof e);else{if(this._firingCount)for(s=0,o=n.length;s<o;s++)n[s].fn=h;delete this._events[t]}},fire:function(t,e,n){if(!this.listens(t,n))return this;var s=i({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(var a=0,r=o.length;a<r;a++){var l=o[a],h=l.fn;l.once&&this.off(t,h,l.ctx),h.call(l.ctx||this,s)}this._firingCount--}}return n&&this._propagateEvent(s),this},listens:function(t,e,i,n){"string"!=typeof t&&console.warn('"string" type argument expected');var s=e;"function"!=typeof e&&(n=!!e,s=void 0,i=void 0);var o=this._events&&this._events[t];if(o&&o.length&&!1!==this._listens(t,s,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)return!1;var n=this._events[t]||[];if(!e)return!!n.length;i===this&&(i=void 0);for(var s=0,o=n.length;s<o;s++)if(n[s].fn===e&&n[s].ctx===i)return s;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 s=0,o=(t=u(t)).length;s<o;s++)this._on(t[s],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 e in this._eventParents)this._eventParents[e].fire(t.type,i({layer:t.target,propagatedFrom:t.target},t),!0)}};I.addEventListener=I.on,I.removeEventListener=I.clearAllEventListeners=I.off,I.addOneTimeEventListener=I.once,I.fireEvent=I.fire,I.hasEventListeners=I.listens;var A=P.extend(I);function O(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}var z=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function D(t,e,i){return t instanceof O?t:g(t)?new O(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new O(t.x,t.y):new O(t,e,i)}function B(t,e){if(t)for(var i=e?[t,e]:t,n=0,s=i.length;n<s;n++)this.extend(i[n])}function $(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,s=i.length;n<s;n++)this.extend(i[n])}function j(t,e){return t instanceof N?t:new N(t,e)}function Z(t,e,i){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==i&&(this.alt=+i)}function F(t,e,i){return t instanceof Z?t:g(t)&&"object"!=typeof t[0]?3===t.length?new Z(t[0],t[1],t[2]):2===t.length?new Z(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new Z(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new Z(t,e,i)}O.prototype={clone:function(){return new O(this.x,this.y)},add:function(t){return this.clone()._add(D(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(D(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 O(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new O(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=z(this.x),this.y=z(this.y),this},distanceTo:function(t){var e=(t=D(t)).x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return(t=D(t)).x===this.x&&t.y===this.y},contains:function(t){return t=D(t),Math.abs(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)return this;if(t instanceof O||"number"==typeof t[0]||"x"in t)e=i=D(t);else if(e=(t=$(t)).min,i=t.max,!e||!i)return this;return 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()),this},getCenter:function(t){return D((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return D(this.min.x,this.max.y)},getTopRight:function(){return D(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 O?D(t):$(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=$(t);var e=this.min,i=this.max,n=t.min,s=t.max,o=s.x>=e.x&&n.x<=i.x,a=s.y>=e.y&&n.y<=i.y;return o&&a},overlaps:function(t){t=$(t);var e=this.min,i=this.max,n=t.min,s=t.max,o=s.x>e.x&&n.x<i.x,a=s.y>e.y&&n.y<i.y;return o&&a},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,s=Math.abs(e.y-i.y)*t;return $(D(e.x-n,e.y-s),D(i.x+n,i.y+s))},equals:function(t){return!!t&&(t=$(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},N.prototype={extend:function(t){var e,i,n=this._southWest,s=this._northEast;if(t instanceof Z)e=t,i=t;else{if(!(t instanceof N))return t?this.extend(F(t)||j(t)):this;if(e=t._southWest,i=t._northEast,!e||!i)return this}return n||s?(n.lat=Math.min(e.lat,n.lat),n.lng=Math.min(e.lng,n.lng),s.lat=Math.max(i.lat,s.lat),s.lng=Math.max(i.lng,s.lng)):(this._southWest=new Z(e.lat,e.lng),this._northEast=new Z(i.lat,i.lng)),this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,s=Math.abs(e.lng-i.lng)*t;return new N(new Z(e.lat-n,e.lng-s),new Z(i.lat+n,i.lng+s))},getCenter:function(){return new Z((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 Z(this.getNorth(),this.getWest())},getSouthEast:function(){return new Z(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat}
vendor: 2,435 bytes, line 1
1,getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof Z||"lat"in t?F(t):j(t);var e,i,n=this._southWest,s=this._northEast;return t instanceof N?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=n.lat&&i.lat<=s.lat&&e.lng>=n.lng&&i.lng<=s.lng},intersects:function(t){t=j(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),s=t.getNorthEast(),o=s.lat>=e.lat&&n.lat<=i.lat,a=s.lng>=e.lng&&n.lng<=i.lng;return o&&a},overlaps:function(t){t=j(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),s=t.getNorthEast(),o=s.lat>e.lat&&n.lat<i.lat,a=s.lng>e.lng&&n.lng<i.lng;return o&&a},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)}},Z.prototype={equals:function(t,e){return!!t&&(t=F(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 R.distance(this,F(t))},wrap:function(){return R.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return j([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new Z(this.lat,this.lng,this.alt)}};var G,H={latLngToPoint:function(t,e){var i=this.projection.project(t),n=this.scale(e);return this.transformation._transform(i,n)},pointToLatLng:function(t,e){var i=this.scale(e),n=this.transformation.untransform(t,i);return this.projection.unproject(n)},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){if(this.infinite)return null;var e=this.projection.bounds,i=this.scale(t);return new B(this.transformation.transform(e.min,i),this.transformation.transform(e.max,i))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?l(t.lng,this.wrapLng,!0):t.lng;return new Z(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,s=e.lng-i.lng;if(0===n&&0===s)return t;
vendor: 8,739 bytes, line 1
1var o=t.getSouthWest(),a=t.getNorthEast();return new N(new Z(o.lat-n,o.lng-s),new Z(a.lat-n,a.lng-s))}},R=i({},H,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,s=e.lat*i,o=Math.sin((e.lat-t.lat)*i/2),a=Math.sin((e.lng-t.lng)*i/2),r=o*o+Math.cos(n)*Math.cos(s)*a*a,l=2*Math.atan2(Math.sqrt(r),Math.sqrt(1-r));return this.R*l}}),q=6378137,W={R:q,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),s=Math.sin(n*e);return new O(this.R*t.lng*e,this.R*Math.log((1+s)/(1-s))/2)},unproject:function(t){var e=180/Math.PI;return new Z((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(G=q*Math.PI,new B([-G,-G],[G,G]))};function V(t,e,i,n){if(g(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=i,this._d=n}function U(t,e,i,n){return new V(t,e,i,n)}V.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new O((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var Y=i({},R,{code:"EPSG:3857",projection:W,transformation:function(){var t=.5/(Math.PI*W.R);return U(t,.5,-t,.5)}()}),K=i({},Y,{code:"EPSG:900913"});function X(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function J(t,e){var i,n,s,o,a,r,l="";for(i=0,s=t.length;i<s;i++){for(n=0,o=(a=t[i]).length;n<o;n++)l+=(n?"L":"M")+(r=a[n]).x+" "+r.y;l+=e?Nt.svg?"z":"x":""}return l||"M0 0"}var Q,tt=document.documentElement.style,et="ActiveXObject"in window,it=et&&!document.addEventListener,nt="msLaunchUri"in navigator&&!("documentMode"in document),st=$t("webkit"),ot=$t("android"),at=$t("android 2")||$t("android 3"),rt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),lt=ot&&$t("Google")&&rt<537&&!("AudioNode"in window),ht=!!window.opera,ct=!nt&&$t("chrome"),dt=$t("gecko")&&!st&&!ht&&!et,ut=!ct&&$t("safari"),pt=$t("phantom"),mt="OTransition"in tt,ft=0===navigator.platform.indexOf("Win"),_t=et&&"transition"in tt,gt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!at,vt="MozPerspective"in tt,yt=!window.L_DISABLE_3D&&(_t||gt||vt)&&!mt&&!pt,bt="undefined"!=typeof orientation||$t("mobile"),wt=bt&&st,Lt=bt&&gt,xt=!window.PointerEvent&&window.MSPointerEvent,Ct=!(!window.PointerEvent&&!xt),Et="ontouchstart"in window||!!window.TouchEvent,St=!window.L_NO_TOUCH&&(Et||Ct),Tt=bt&&ht,Mt=bt&&dt,Pt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,kt=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}(),It=!!document.createElement("canvas").getContext,At=!(!document.createElementNS||!X("svg").createSVGRect),Ot=!!At&&((Q=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(Q.firstChild&&Q.firstChild.namespaceURI)),zt=!At&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),Dt=0===navigator.platform.indexOf("Mac"),Bt=0===navigator.platform.indexOf("Linux");function $t(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Nt={ie:et,ielt9:it,edge:nt,webkit:st,android:ot,android23:at,androidStock:lt,opera:ht,chrome:ct,gecko:dt,safari:ut,phantom:pt,opera12:mt,win:ft,ie3d:_t,webkit3d:gt,gecko3d:vt,any3d:yt,mobile:bt,mobileWebkit:wt,mobileWebkit3d:Lt,msPointer:xt,pointer:Ct,touch:St,touchNative:Et,mobileOpera:Tt,mobileGecko:Mt,retina:Pt,passiveEvents:kt,canvas:It,svg:At,vml:zt,inlineSvg:Ot,mac:Dt,linux:Bt},jt=Nt.msPointer?"MSPointerDown":"pointerdown",Zt=Nt.msPointer?"MSPointerMove":"pointermove",Ft=Nt.msPointer?"MSPointerUp":"pointerup",Gt=Nt.msPointer?"MSPointerCancel":"pointercancel",Ht={touchstart:jt,touchmove:Zt,touchend:Ft,touchcancel:Gt},Rt={touchstart:te,touchmove:Qt,touchend:Qt,touchcancel:Qt},qt={},Wt=!1;function Vt(t,e,i){return"touchstart"===e&&Jt(),Rt[e]?(i=Rt[e].bind(this,i),t.addEventListener(Ht[e],i,!1),i):(console.warn("wrong event specified:",e),h)}function Ut(t,e,i){Ht[e]?t.removeEventListener(Ht[e],i,!1):console.warn("wrong event specified:",e)}function Yt(t){qt[t.pointerId]=t}function Kt(t){qt[t.pointerId]&&(qt[t.pointerId]=t)}function Xt(t){delete qt[t.pointerId]}function Jt(){Wt||(document.addEventListener(jt,Yt,!0),document.addEventListener(Zt,Kt,!0),document.addEventListener(Ft,Xt,!0),document.addEventListener(Gt,Xt,!0),Wt=!0)}function Qt(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var i in e.touches=[],qt)e.touches.push(qt[i]);e.changedTouches=[e],t(e)}}function te(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Ye(e),Qt(t,e)}function ee(t){var e,i,n={};for(i in t)e=t[i],n[i]=e&&e.bind?e.bind(t):e;return t=n,n.type="dblclick",n.detail=2,n.isTrusted=!1,n._simulated=!0,n}var ie=200;function ne(t,e){t.addEventListener("dblclick",e);var i,n=0;function s(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var s=Xe(t);if(!s.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))||s.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){var o=Date.now();o-n<=ie?2==++i&&e(ee(t)):i=1,n=o}}}else i=t.detail}return t.addEventListener("click",s),{dblclick:e,simDblclick:s}}function se(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var oe,ae,re,le,he,ce=Te(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),de=Te(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ue="webkitTransition"===de||"OTransition"===de?de+"End":"transitionend";function pe(t){return"string"==typeof t?document.getElementById(t):t}function me(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||"auto"===i)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return"auto"===i?null:i}function fe(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}function _e(t){var e=t.parentNode;e&&e.removeChild(t)}function ge(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ve(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ye(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function be(t,e){if(void 0!==t.classList)return t.classList.contains(e);var i=Ce(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function we(t,e){if(void 0!==t.classList)for(var i=u(e),n=0,s=i.length;n<s;n++)t.classList.add(i[n]);else if(!be(t,e)){var o=Ce(t);xe(t,(o?o+" ":"")+e)}}function Le(t,e){void 0!==t.classList?t.classList.remove(e):xe(t,d((" "+Ce(t)+" ").replace(" "+e+" "," ")))}function xe(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function Ce(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function Ee(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&Se(t,e)}function Se(t,e){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 Te(t){for(var e=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1}function Me(t,e,i){var n=e||new O(0,0);t.style[ce]=(Nt.ie3d?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(i?" scale("+i+")":"")}function Pe(t,e){t._leaflet_pos=e,Nt.any3d?Me(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function ke(t){return t._leaflet_pos||new O(0,0)}if("onselectstart"in document)oe=function(){je(window,"selectstart",Ye)},ae=function(){Fe(window,"selectstart",Ye)};else{var Ie=Te(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);oe=function(){if(Ie){var t=document.documentElement.style;re=t[Ie],t[Ie]="none"}},ae=function(){Ie&&(document.documentElement.style[Ie]=re,re=void 0)}}function Ae(){je(window,"dragstart",Ye)}function Oe(){Fe(window,"dragstart",Ye)}function ze(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(De(),le=t,he=t.style.outlineStyle,t.style.outlineStyle="none",je(window,"keydown",De))}function De(){le&&(le.style.outlineStyle=he,le=void 0,he=void 0,Fe(window,"keydown",De))}function Be(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function $e(t){var e=t.getBoundingClientRect();
vendor: 1,066 bytes, line 1
1return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Ne={__proto__:null,TRANSFORM:ce,TRANSITION:de,TRANSITION_END:ue,get:pe,getStyle:me,create:fe,remove:_e,empty:ge,toFront:ve,toBack:ye,hasClass:be,addClass:we,removeClass:Le,setClass:xe,getClass:Ce,setOpacity:Ee,testProp:Te,setTransform:Me,setPosition:Pe,getPosition:ke,get disableTextSelection(){return oe},get enableTextSelection(){return ae},disableImageDrag:Ae,enableImageDrag:Oe,preventOutline:ze,restoreOutline:De,getSizedParentNode:Be,getScale:$e};function je(t,e,i,n){if(e&&"object"==typeof e)for(var s in e)Re(t,s,e[s],i);else for(var o=0,a=(e=u(e)).length;o<a;o++)Re(t,e[o],i,n);return this}var Ze="_leaflet_events";function Fe(t,e,i,n){if(1===arguments.length)Ge(t),delete t[Ze];else if(e&&"object"==typeof e)for(var s in e)qe(t,s,e[s],i);else if(e=u(e),2===arguments.length)Ge(t,(function(t){return-1!==v(e,t)}));else for(var o=0,a=e.length;o<a;o++)qe(t,e[o],i,n);return this}function Ge(t,e){for(var i in t[Ze]){var n=i.split(/\d/)[0];e&&!e(n)||qe(t,n,null,null,i)}}
vendor: 67,370 bytes, line 1
1var He={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Re(t,e,i,n){var s=e+a(i)+(n?"_"+a(n):"");if(t[Ze]&&t[Ze][s])return this;var o=function(e){return i.call(n||t,e||window.event)},r=o;!Nt.touchNative&&Nt.pointer&&0===e.indexOf("touch")?o=Vt(t,e,o):Nt.touch&&"dblclick"===e?o=ne(t,o):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(He[e]||e,o,!!Nt.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(o=function(e){e=e||window.event,ei(t,e)&&r(e)},t.addEventListener(He[e],o,!1)):t.addEventListener(e,r,!1):t.attachEvent("on"+e,o),t[Ze]=t[Ze]||{},t[Ze][s]=o}function qe(t,e,i,n,s){s=s||e+a(i)+(n?"_"+a(n):"");var o=t[Ze]&&t[Ze][s];if(!o)return this;!Nt.touchNative&&Nt.pointer&&0===e.indexOf("touch")?Ut(t,e,o):Nt.touch&&"dblclick"===e?se(t,o):"removeEventListener"in t?t.removeEventListener(He[e]||e,o,!1):t.detachEvent("on"+e,o),t[Ze][s]=null}function We(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Ve(t){return Re(t,"wheel",We),this}function Ue(t){return je(t,"mousedown touchstart dblclick contextmenu",We),t._leaflet_disable_click=!0,this}function Ye(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ke(t){return Ye(t),We(t),this}function Xe(t){if(t.composedPath)return t.composedPath();for(var e=[],i=t.target;i;)e.push(i),i=i.parentNode;return e}function Je(t,e){if(!e)return new O(t.clientX,t.clientY);var i=$e(e),n=i.boundingClientRect;return new O((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)}var Qe=Nt.linux&&Nt.chrome?window.devicePixelRatio:Nt.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function ti(t){return Nt.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Qe: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&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function ei(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 ii={__proto__:null,on:je,off:Fe,stopPropagation:We,disableScrollPropagation:Ve,disableClickPropagation:Ue,preventDefault:Ye,stop:Ke,getPropagationPath:Xe,getMousePosition:Je,getWheelDelta:ti,isExternalTarget:ei,addListener:je,removeListener:Fe},ni=A.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=ke(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=S(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){var i=this._startPos.add(this._offset.multiplyBy(t));e&&i._round(),Pe(this._el,i),this.fire("step")},_complete:function(){T(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),si=A.extend({options:{crs:Y,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=s(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(F(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=de&&Nt.any3d&&!Nt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),je(this._proxy,ue,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,n){return e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(F(t),e,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&!0!==n&&(void 0!==n.animate&&(n.zoom=i({animate:n.animate},n.zoom),n.pan=i({animate:n.animate,duration:n.duration},n.pan)),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,e,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||(Nt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(Nt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),s=this.getSize().divideBy(2),o=(t instanceof O?t:this.latLngToContainerPoint(t)).subtract(s).multiplyBy(1-1/n),a=this.containerPointToLatLng(s.add(o));return this.setView(a,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():j(t);var i=D(e.paddingTopLeft||e.padding||[0,0]),n=D(e.paddingBottomRight||e.padding||[0,0]),s=this.getBoundsZoom(t,!1,i.add(n));if((s="number"==typeof e.maxZoom?Math.min(e.maxZoom,s):s)===1/0)return{center:t.getCenter(),zoom:s};var o=n.subtract(i).divideBy(2),a=this.project(t.getSouthWest(),s),r=this.project(t.getNorthEast(),s);return{center:this.unproject(a.add(r).divideBy(2).add(o),s),zoom:s}},fitBounds:function(t,e){if(!(t=j(t)).isValid())throw new Error("Bounds are not valid.");var i=this._getBoundsCenterZoom(t,e);return this.setView(i.center,i.zoom,e)},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){if(e=e||{},!(t=D(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new ni,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){we(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,i){if(!1===(i=i||{}).animate||!Nt.any3d)return this.setView(t,e,i);this._stop();var n=this.project(this.getCenter()),s=this.project(t),o=this.getSize(),a=this._zoom;t=F(t),e=void 0===e?a:e;var r=Math.max(o.x,o.y),l=r*this.getZoomScale(a,e),h=s.distanceTo(n)||1,c=1.42,d=c*c;function u(t){var e=(l*l-r*r+(t?-1:1)*d*d*h*h)/(2*(t?l:r)*d*h),i=Math.sqrt(e*e+1)-e;return i<1e-9?-18:Math.log(i)}function p(t){return(Math.exp(t)-Math.exp(-t))/2}function m(t){return(Math.exp(t)+Math.exp(-t))/2}function f(t){return p(t)/m(t)}var _=u(0);function g(t){return r*(m(_)/m(_+c*t))}function v(t){return r*(m(_)*f(_+c*t)-p(_))/d}function y(t){return 1-Math.pow(1-t,1.5)}var b=Date.now(),w=(u(1)-_)/c,L=i.duration?1e3*i.duration:1e3*w*.8;function x(){var i=(Date.now()-b)/L,o=y(i)*w;i<=1?(this._flyToFrame=S(x,this),this._move(this.unproject(n.add(s.subtract(n).multiplyBy(v(o)/h)),a),this.getScaleZoom(r/g(o),a),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}return this._moveStart(!0,i.noMoveStart),x.call(this),this},flyToBounds:function(t,e){var i=this._getBoundsCenterZoom(t,e);return this.flyTo(i.center,i.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(),n=this._limitCenter(i,this._zoom,j(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},panInside:function(t,e){var i=D((e=e||{}).paddingTopLeft||e.padding||[0,0]),n=D(e.paddingBottomRight||e.padding||[0,0]),s=this.project(this.getCenter()),o=this.project(t),a=this.getPixelBounds(),r=$([a.min.add(i),a.max.subtract(n)]),l=r.getSize();if(!r.contains(o)){this._enforcingBounds=!0;var h=o.subtract(r.getCenter()),c=r.extend(o).getSize().subtract(l);s.x+=h.x<0?-c.x:c.x,s.y+=h.y<0?-c.y:c.y,this.panTo(this.unproject(s),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=i({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var n=this.getSize(),o=e.divideBy(2).round(),a=n.divideBy(2).round(),r=o.subtract(a);return r.x||r.y?(t.animate&&t.pan?this.panBy(r):(t.pan&&this._rawPanBy(r),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=i({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=s(this._handleGeolocationResponse,this),n=s(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,n,t):navigator.geolocation.getCurrentPosition(e,n,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,i=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: "+i+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=new Z(t.coords.latitude,t.coords.longitude),i=e.toBounds(2*t.coords.accuracy),n=this._locateOptions;if(n.setView){var s=this.getBoundsZoom(i);this.setView(e,n.maxZoom?Math.min(s,n.maxZoom):s)}var o={latlng:e,bounds:i,timestamp:t.timestamp};for(var a in t.coords)"number"==typeof t.coords[a]&&(o[a]=t.coords[a]);this.fire("locationfound",o)}},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new 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}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),_e(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(T(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)_e(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i=fe("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=i),i},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._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=j(t),i=D(i||[0,0]);var n=this.getZoom()||0,s=this.getMinZoom(),o=this.getMaxZoom(),a=t.getNorthWest(),r=t.getSouthEast(),l=this.getSize().subtract(i),h=$(this.project(r,n),this.project(a,n)).getSize(),c=Nt.any3d?this.options.zoomSnap:1,d=l.x/h.x,u=l.y/h.y,p=e?Math.max(d,u):Math.min(d,u);return n=this.getScaleZoom(p,n),c&&(n=Math.round(n/(c/100))*(c/100),n=e?Math.ceil(n/c)*c:Math.floor(n/c)*c),Math.max(s,Math.min(o,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new O(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new B(i,i.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;e=void 0===e?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(F(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(D(t),e)},layerPointToLatLng:function(t){var e=D(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(F(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(F(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(j(t))},distance:function(t,e){return this.options.crs.distance(F(t),F(e))},containerPointToLayerPoint:function(t){return D(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return D(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(D(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(F(t)))},mouseEventToContainerPoint:function(t){return Je(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=pe(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");je(e,"scroll",this._onScroll,this),this._containerId=a(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Nt.any3d,we(t,"leaflet-container"+(Nt.touch?" leaflet-touch":"")+(Nt.retina?" leaflet-retina":"")+(Nt.ielt9?" leaflet-oldie":"")+(Nt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=me(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),Pe(this._mapPane,new O(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(we(t.markerPane,"leaflet-zoom-hide"),we(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,i){Pe(this._mapPane,new O(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var s=this._zoom!==e;this._moveStart(s,i)._move(t,e)._moveEnd(s),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 s=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?i&&i.pinch&&this.fire("zoom",i):((s||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 T(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Pe(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 new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[a(this._container)]=this;var e=t?Fe:je;e(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),Nt.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){T(this._resizeRequest),this._resizeRequest=S((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=[],s="mouseout"===e||"mouseover"===e,o=t.target||t.srcElement,r=!1;o;){if((i=this._targets[a(o)])&&("click"===e||"preclick"===e)&&this._draggableMoved(i)){r=!0;break}if(i&&i.listens(e,!0)){if(s&&!ei(o,t))break;if(n.push(i),s)break}if(o===this._container)break;o=o.parentNode}return n.length||r||s||!this.listens(e,!0)||(n=[this]),n},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e))){var i=t.type;"mousedown"===i&&ze(e),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if("click"===t.type){var s=i({},t);s.type="preclick",this._fireDOMEvent(s,s.type,n)}var o=this._findEventTargets(t,e);if(n){for(var a=[],r=0;r<n.length;r++)n[r].listens(e,!0)&&a.push(n[r]);o=a.concat(o)}if(o.length){"contextmenu"===e&&Ye(t);var l=o[0],h={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var c=l.getLatLng&&(!l._radius||l._radius<=10);h.containerPoint=c?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t),h.layerPoint=this.containerPointToLayerPoint(h.containerPoint),h.latlng=c?l.getLatLng():this.layerPointToLatLng(h.layerPoint)}for(r=0;r<o.length;r++)if(o[r].fire(e,h,!0),h.originalEvent._stopped||!1===o[r].options.bubblingMouseEvents&&-1!==v(this._mouseEvents,e))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 ke(this._mapPane)||new O(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){var n=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return $([this.project(t.getSouthWest(),e)._subtract(n),this.project(t.getNorthWest(),e)._subtract(n),this.project(t.getSouthEast(),e)._subtract(n),this.project(t.getNorthEast(),e)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i)return t;var n=this.project(t,e),s=this.getSize().divideBy(2),o=new B(n.subtract(s),n.add(s)),a=this._getBoundsOffset(o,i,e);return Math.abs(a.x)<=1&&Math.abs(a.y)<=1?t:this.unproject(n.add(a),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),n=new B(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=$(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),s=n.min.subtract(t.min),o=n.max.subtract(t.max);return new O(this._rebound(s.x,-o.x),this._rebound(s.y,-o.y))},_rebound:function(t,e){return t+e>0?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=Nt.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(){Le(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(i)||(this.panBy(i,e),0))},_createAnimProxy:function(){var t=this._proxy=fe("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=ce,i=this._proxy.style[e];Me(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),i===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){_e(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Me(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;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),s=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==i.animate&&!this.getSize().contains(s)||(S((function(){this._moveStart(!0,i.noMoveStart||!1)._animateZoom(t,e,!0)}),this),0))},_animateZoom:function(t,e,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,we(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(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Le(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 oi(t,e){return new si(t,e)}var ai=P.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(),n=t._controlCorners[i];return we(e,"leaflet-control"),-1!==i.indexOf("bottom")?n.insertBefore(e,n.firstChild):n.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(_e(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),ri=function(t){return new ai(t)};si.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=fe("div",e+"control-container",this._container);function n(n,s){var o=e+n+" "+e+s;t[n+s]=fe("div",o,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)_e(this._controlCorners[t]);_e(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var li=ai.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,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 ai.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){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(a(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){we(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?(we(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):Le(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Le(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=fe("div",t),i=this.options.collapsed;e.setAttribute("aria-haspopup",!0),Ue(e),Ve(e);var n=this._section=fe("section",t+"-list");i&&(this._map.on("click",this.collapse,this),je(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var s=this._layersLink=fe("a",t+"-toggle",e);s.href="#",s.title="Layers",s.setAttribute("role","button"),je(s,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){Ye(t),this._expandSafely()}},this),i||this.expand(),this._baseLayersList=fe("div",t+"-base",n),this._separator=fe("div",t+"-separator",n),this._overlaysList=fe("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(s((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)return this;ge(this._baseLayersList),ge(this._overlaysList),this._layerControlInputs=[];var t,e,i,n,s=0;for(i=0;i<this._layers.length;i++)n=this._layers[i],this._addItem(n),e=e||n.overlay,t=t||!n.overlay,s+=n.overlay?0:1;return this.options.hideSingleBase&&(t=t&&s>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(a(t.target)),i=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;i&&this._map.fire(i,e)},_createRadioElement:function(t,e){var i='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",n=document.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var e,i=document.createElement("label"),n=this._map.hasLayer(t.layer);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),je(e,"click",this._onInputClick,this);var s=document.createElement("span");s.innerHTML=" "+t.name;var o=document.createElement("span");return i.appendChild(o),o.appendChild(e),o.appendChild(s),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){if(!this._preventClick){var t,e,i=this._layerControlInputs,n=[],s=[];this._handlingClick=!0;for(var o=i.length-1;o>=0;o--)t=i[o],e=this._getLayer(t.layerId).layer,t.checked?n.push(e):t.checked||s.push(e);for(o=0;o<s.length;o++)this._map.hasLayer(s[o])&&this._map.removeLayer(s[o]);for(o=0;o<n.length;o++)this._map.hasLayer(n[o])||this._map.addLayer(n[o]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t,e,i=this._layerControlInputs,n=this._map.getZoom(),s=i.length-1;s>=0;s--)t=i[s],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;this._preventClick=!0,je(t,"click",Ye),this.expand();var e=this;setTimeout((function(){Fe(t,"click",Ye),e._preventClick=!1}))}}),hi=function(t,e,i){return new li(t,e,i)},ci=ai.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=fe("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,s){var o=fe("a",i,n);return o.innerHTML=t,o.href="#",o.title=e,o.setAttribute("role","button"),o.setAttribute("aria-label",e),Ue(o),je(o,"click",Ke),je(o,"click",s,this),je(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";Le(this._zoomInButton,e),Le(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(we(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(we(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});si.mergeOptions({zoomControl:!0}),si.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new ci,this.addControl(this.zoomControl))}));var di=function(t){return new ci(t)},ui=ai.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=fe("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=fe("div",e,i)),t.imperial&&(this._iScale=fe("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_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),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e,i,n,s=3.2808399*t;s>5280?(e=s/5280,i=this._getRoundNum(e),this._updateScale(this._iScale,i+" mi",i/e)):(n=this._getRoundNum(s),this._updateScale(this._iScale,n+" ft",n/s))},_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),i=t/e;return e*(i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1)}}),pi=function(t){return new ui(t)},mi='<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>',fi=ai.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Nt.inlineSvg?mi+" ":"")+"Leaflet</a>"},initialize:function(t){p(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=fe("div","leaflet-control-attribution"),Ue(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):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(' <span aria-hidden="true">|</span> ')}}});si.mergeOptions({attributionControl:!0}),si.addInitHook((function(){this.options.attributionControl&&(new fi).addTo(this)}));var _i=function(t){return new fi(t)};ai.Layers=li,ai.Zoom=ci,ai.Scale=ui,ai.Attribution=fi,ri.layers=hi,ri.zoom=di,ri.scale=pi,ri.attribution=_i;var gi=P.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):this},enabled:function(){return!!this._enabled}});gi.addTo=function(t,e){return t.addHandler(e,this),this};var vi={Events:I},yi=Nt.touch?"touchstart mousedown":"mousedown",bi=A.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||(je(this._dragStartTarget,yi,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(bi._dragging===this&&this.finishDrag(!0),Fe(this._dragStartTarget,yi,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!be(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)bi._dragging===this&&this.finishDrag();else if(!(bi._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(bi._dragging=this,this._preventOutline&&ze(this._element),Ae(),oe(),this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,i=Be(this._element);this._startPoint=new O(e.clientX,e.clientY),this._startPos=ke(this._element),this._parentScale=$e(i);var n="mousedown"===t.type;je(document,n?"mousemove":"touchmove",this._onMove,this),je(document,n?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,i=new O(e.clientX,e.clientY)._subtract(this._startPoint);(i.x||i.y)&&(Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance||(i.x/=this._parentScale.x,i.y/=this._parentScale.y,Ye(t),this._moved||(this.fire("dragstart"),this._moved=!0,we(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),we(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(i),this._moving=!0,this._lastEvent=t,this._updatePosition()))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),Pe(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){Le(document.body,"leaflet-dragging"),this._lastTarget&&(Le(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Fe(document,"mousemove touchmove",this._onMove,this),Fe(document,"mouseup touchend touchcancel",this._onUp,this),Oe(),ae();var e=this._moved&&this._moving;this._moving=!1,bi._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function wi(t,e,i){var n,s,o,a,r,l,h,c,d,u=[1,4,2,8];for(s=0,h=t.length;s<h;s++)t[s]._code=zi(t[s],e);for(a=0;a<4;a++){for(c=u[a],n=[],s=0,o=(h=t.length)-1;s<h;o=s++)r=t[s],l=t[o],r._code&c?l._code&c||((d=Oi(l,r,c,e,i))._code=zi(d,e),n.push(d)):(l._code&c&&((d=Oi(l,r,c,e,i))._code=zi(d,e),n.push(d)),n.push(r));t=n}return t}function Li(t,e){var i,n,s,o,a,r,l,h,c;if(!t||0===t.length)throw new Error("latlngs not passed");$i(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var d=F([0,0]),u=j(t);u.getNorthWest().distanceTo(u.getSouthWest())*u.getNorthEast().distanceTo(u.getNorthWest())<1700&&(d=xi(t));var p=t.length,m=[];for(i=0;i<p;i++){var f=F(t[i]);m.push(e.project(F([f.lat-d.lat,f.lng-d.lng])))}for(r=l=h=0,i=0,n=p-1;i<p;n=i++)s=m[i],o=m[n],a=s.y*o.x-o.y*s.x,l+=(s.x+o.x)*a,h+=(s.y+o.y)*a,r+=3*a;c=0===r?m[0]:[l/r,h/r];var _=e.unproject(D(c));return F([_.lat+d.lat,_.lng+d.lng])}function xi(t){for(var e=0,i=0,n=0,s=0;s<t.length;s++){var o=F(t[s]);e+=o.lat,i+=o.lng,n++}return F([e/n,i/n])}var Ci,Ei={__proto__:null,clipPolygon:wi,polygonCenter:Li,centroid:xi};function Si(t,e){if(!e||!t.length)return t.slice();var i=e*e;return t=Pi(t=Ii(t,i),i)}function Ti(t,e,i){return Math.sqrt(Bi(t,e,i,!0))}function Mi(t,e,i){return Bi(t,e,i)}function Pi(t,e){var i=t.length,n=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(i);n[0]=n[i-1]=1,ki(t,n,e,0,i-1);var s,o=[];for(s=0;s<i;s++)n[s]&&o.push(t[s]);return o}function ki(t,e,i,n,s){var o,a,r,l=0;for(a=n+1;a<=s-1;a++)(r=Bi(t[a],t[n],t[s],!0))>l&&(o=a,l=r);l>i&&(e[o]=1,ki(t,e,i,n,o),ki(t,e,i,o,s))}function Ii(t,e){for(var i=[t[0]],n=1,s=0,o=t.length;n<o;n++)Di(t[n],t[s])>e&&(i.push(t[n]),s=n);return s<o-1&&i.push(t[o-1]),i}function Ai(t,e,i,n,s){var o,a,r,l=n?Ci:zi(t,i),h=zi(e,i);for(Ci=h;;){if(!(l|h))return[t,e];if(l&h)return!1;r=zi(a=Oi(t,e,o=l||h,i,s),i),o===l?(t=a,l=r):(e=a,h=r)}}function Oi(t,e,i,n,s){var o,a,r=e.x-t.x,l=e.y-t.y,h=n.min,c=n.max;return 8&i?(o=t.x+r*(c.y-t.y)/l,a=c.y):4&i?(o=t.x+r*(h.y-t.y)/l,a=h.y):2&i?(o=c.x,a=t.y+l*(c.x-t.x)/r):1&i&&(o=h.x,a=t.y+l*(h.x-t.x)/r),new O(o,a,s)}function zi(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 Di(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function Bi(t,e,i,n){var s,o=e.x,a=e.y,r=i.x-o,l=i.y-a,h=r*r+l*l;return h>0&&((s=((t.x-o)*r+(t.y-a)*l)/h)>1?(o=i.x,a=i.y):s>0&&(o+=r*s,a+=l*s)),r=t.x-o,l=t.y-a,n?r*r+l*l:new O(o,a)}function $i(t){return!g(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function Ni(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),$i(t)}function ji(t,e){var i,n,s,o,a,r,l,h;if(!t||0===t.length)throw new Error("latlngs not passed");$i(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var c=F([0,0]),d=j(t);d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest())<1700&&(c=xi(t));var u=t.length,p=[];for(i=0;i<u;i++){var m=F(t[i]);p.push(e.project(F([m.lat-c.lat,m.lng-c.lng])))}for(i=0,n=0;i<u-1;i++)n+=p[i].distanceTo(p[i+1])/2;if(0===n)h=p[0];else for(i=0,o=0;i<u-1;i++)if(a=p[i],r=p[i+1],(o+=s=a.distanceTo(r))>n){l=(o-n)/s,h=[r.x-l*(r.x-a.x),r.y-l*(r.y-a.y)];break}var f=e.unproject(D(h));return F([f.lat+c.lat,f.lng+c.lng])}var Zi={__proto__:null,simplify:Si,pointToSegmentDistance:Ti,closestPointOnSegment:Mi,clipSegment:Ai,_getEdgeIntersection:Oi,_getBitCode:zi,_sqClosestPointOnSegment:Bi,isFlat:$i,_flat:Ni,polylineCenter:ji},Fi={project:function(t){return new O(t.lng,t.lat)},unproject:function(t){return new Z(t.y,t.x)},bounds:new B([-180,-90],[180,90])},Gi={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,s=this.R_MINOR/i,o=Math.sqrt(1-s*s),a=o*Math.sin(n),r=Math.tan(Math.PI/4-n/2)/Math.pow((1-a)/(1+a),o/2);return n=-i*Math.log(Math.max(r,1e-10)),new O(t.lng*e*i,n)},unproject:function(t){for(var e,i=180/Math.PI,n=this.R,s=this.R_MINOR/n,o=Math.sqrt(1-s*s),a=Math.exp(-t.y/n),r=Math.PI/2-2*Math.atan(a),l=0,h=.1;l<15&&Math.abs(h)>1e-7;l++)e=o*Math.sin(r),e=Math.pow((1-e)/(1+e),o/2),r+=h=Math.PI/2-2*Math.atan(a*e)-r;return new Z(r*i,t.x*i/n)}},Hi={__proto__:null,LonLat:Fi,Mercator:Gi,SphericalMercator:W},Ri=i({},R,{code:"EPSG:3395",projection:Gi,transformation:function(){var t=.5/(Math.PI*Gi.R);return U(t,.5,-t,.5)}()}),qi=i({},R,{code:"EPSG:4326",projection:Fi,transformation:U(1/180,1,-1/180,.5)}),Wi=i({},H,{projection:Fi,transformation:U(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,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:!0});H.Earth=R,H.EPSG3395=Ri,H.EPSG3857=Y,H.EPSG900913=K,H.EPSG4326=qi,H.Simple=Wi;var Vi=A.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,this},removeInteractiveTarget:function(t){return delete this._map._targets[a(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var i=this.getEvents();e.on(i,this),this.once("remove",(function(){e.off(i,this)}),this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});si.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=a(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},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):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){var e=a(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,i=this._getZoomSpan();for(var n in this._zoomBoundLayers){var s=this._zoomBoundLayers[n].options;t=void 0===s.minZoom?t:Math.min(t,s.minZoom),e=void 0===s.maxZoom?e:Math.max(e,s.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,i!==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)}});var Ui=Vi.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){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],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:function(t){return a(t)}}),Yi=function(t,e){return new Ui(t,e)},Ki=Ui.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Ui.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Ui.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=new N;for(var e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}}),Xi=function(t,e){return new Ki(t,e)},Ji=P.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){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var n=this._createImg(i,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(n,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n},_setIconStyles:function(t,e){var i=this.options,n=i[e+"Size"];"number"==typeof n&&(n=[n,n]);var s=D(n),o=D("shadow"===e&&i.shadowAnchor||i.iconAnchor||s&&s.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),o&&(t.style.marginLeft=-o.x+"px",t.style.marginTop=-o.y+"px"),s&&(t.style.width=s.x+"px",t.style.height=s.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Nt.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Qi(t){return new Ji(t)}var tn=Ji.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 tn.imagePath&&(tn.imagePath=this._detectIconPath()),(this.options.imagePath||tn.imagePath)+Ji.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,i){var n=e.exec(t);return n&&n[i]};return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=fe("div","leaflet-default-icon-path",document.body),e=me(t,"background-image")||me(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e))return e;var i=document.querySelector('link[href$="leaflet.css"]');return i?i.href.substring(0,i.href.length-11-1):""}}),en=gi.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new bi(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),we(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&&Le(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,s=this._marker.options.autoPanPadding,o=ke(e._icon),a=i.getPixelBounds(),r=i.getPixelOrigin(),l=$(a.min._subtract(r).add(s),a.max._subtract(r).subtract(s));if(!l.contains(o)){var h=D((Math.max(l.max.x,o.x)-l.max.x)/(a.max.x-l.max.x)-(Math.min(l.min.x,o.x)-l.min.x)/(a.min.x-l.min.x),(Math.max(l.max.y,o.y)-l.max.y)/(a.max.y-l.max.y)-(Math.min(l.min.y,o.y)-l.min.y)/(a.min.y-l.min.y)).multiplyBy(n);i.panBy(h,{animate:!1}),this._draggable._newPos._add(h),this._draggable._startPos._add(h),Pe(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=S(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&&(T(this._panRequest),this._panRequest=S(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,i=e._shadow,n=ke(e._icon),s=e._map.layerPointToLatLng(n);i&&Pe(i,n),e._latlng=s,t.latlng=s,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){T(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),nn=Vi.extend({options:{icon:new tn,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=F(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=F(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(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),i=t.icon.createIcon(this._icon),n=!1;i!==this._icon&&(this._icon&&this._removeIcon(),n=!0,t.title&&(i.title=t.title),"IMG"===i.tagName&&(i.alt=t.alt||"")),we(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&&je(i,"focus",this._panOnFocus,this);var s=t.icon.createShadow(this._shadow),o=!1;s!==this._shadow&&(this._removeShadow(),o=!0),s&&(we(s,e),s.alt=""),this._shadow=s,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),s&&o&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Fe(this._icon,"focus",this._panOnFocus,this),_e(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&_e(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&Pe(this._icon,t),this._shadow&&Pe(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){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(we(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),en)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new en(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&&Ee(this._icon,t),this._shadow&&Ee(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,i=e.iconSize?D(e.iconSize):D(0,0),n=e.iconAnchor?D(e.iconAnchor):D(0,0);t.panInside(this._latlng,{paddingTopLeft:n,paddingBottomRight:i.subtract(n)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function sn(t,e){return new nn(t,e)}var on=Vi.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)}}),an=on.extend({options:{fill:!0,radius:10},initialize:function(t,e){p(this,e),this._latlng=F(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=F(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 on.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(),n=[t+i,e+i];this._pxBounds=new B(this._point.subtract(n),this._point.add(n))},_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()}});function rn(t,e){return new an(t,e)}var ln=an.extend({initialize:function(t,e,n){if("number"==typeof e&&(e=i({},n,{radius:e})),p(this,e),this._latlng=F(t),isNaN(this.options.radius))throw new 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:on.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,i=this._map,n=i.options.crs;if(n.distance===R.distance){var s=Math.PI/180,o=this._mRadius/R.R/s,a=i.project([e+o,t]),r=i.project([e-o,t]),l=a.add(r).divideBy(2),h=i.unproject(l).lat,c=Math.acos((Math.cos(o*s)-Math.sin(e*s)*Math.sin(h*s))/(Math.cos(e*s)*Math.cos(h*s)))/s;(isNaN(c)||0===c)&&(c=o/Math.cos(Math.PI/180*e)),this._point=l.subtract(i.getPixelOrigin()),this._radius=isNaN(c)?0:l.x-i.project([h,t-c]).x,this._radiusY=l.y-a.y}else{var d=n.unproject(n.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng),this._radius=this._point.x-i.latLngToLayerPoint(d).x}this._updateBounds()}});function hn(t,e,i){return new ln(t,e,i)}var cn=on.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,i,n=1/0,s=null,o=Bi,a=0,r=this._parts.length;a<r;a++)for(var l=this._parts[a],h=1,c=l.length;h<c;h++){var d=o(t,e=l[h-1],i=l[h],!0);d<n&&(n=d,s=o(t,e,i))}return s&&(s.distance=Math.sqrt(n)),s},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return ji(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=F(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 $i(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],i=$i(t),n=0,s=t.length;n<s;n++)i?(e[n]=F(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(),e=new O(t,t);this._rawPxBounds&&(this._pxBounds=new B([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,i){var n,s,o=t[0]instanceof Z,a=t.length;if(o){for(s=[],n=0;n<a;n++)s[n]=this._map.latLngToLayerPoint(t[n]),i.extend(s[n]);e.push(s)}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{var e,i,n,s,o,a,r,l=this._parts;for(e=0,n=0,s=this._rings.length;e<s;e++)for(i=0,o=(r=this._rings[e]).length;i<o-1;i++)(a=Ai(r[i],r[i+1],t,i,!0))&&(l[n]=l[n]||[],l[n].push(a[0]),a[1]===r[i+1]&&i!==o-2||(l[n].push(a[1]),n++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,i=0,n=t.length;i<n;i++)t[i]=Si(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,s,o,a,r,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,o=this._parts.length;i<o;i++)for(n=0,s=(a=(r=this._parts[i]).length)-1;n<a;s=n++)if((e||0!==n)&&Ti(t,r[s],r[n])<=l)return!0;return!1}});function dn(t,e){return new cn(t,e)}cn._flat=Ni;var un=cn.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Li(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=cn.prototype._convertLatLngs.call(this,t),i=e.length;return i>=2&&e[0]instanceof Z&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){cn.prototype._setLatLngs.call(this,t),$i(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return $i(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new O(e,e);if(t=new B(t.min.subtract(i),t.max.add(i)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var n,s=0,o=this._rings.length;s<o;s++)(n=wi(this._rings[s],t,!0)).length&&this._parts.push(n)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,i,n,s,o,a,r,l,h=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(s=0,r=this._parts.length;s<r;s++)for(o=0,a=(l=(e=this._parts[s]).length)-1;o<l;a=o++)i=e[o],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||cn.prototype._containsPoint.call(this,t,!0)}});function pn(t,e){return new un(t,e)}var mn=Ki.extend({initialize:function(t,e){p(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,s=g(t)?t:t.features;if(s){for(e=0,i=s.length;e<i;e++)((n=s[e]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var o=this.options;if(o.filter&&!o.filter(t))return this;var a=fn(t,o);return a?(a.feature=Ln(t),a.defaultOptions=a.options,this.resetStyle(a),o.onEachFeature&&o.onEachFeature(t,a),this.addLayer(a)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=i({},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 fn(t,e){var i,n,s,o,a="Feature"===t.type?t.geometry:t,r=a?a.coordinates:null,l=[],h=e&&e.pointToLayer,c=e&&e.coordsToLatLng||gn;if(!r&&!a)return null;switch(a.type){case"Point":return _n(h,t,i=c(r),e);case"MultiPoint":for(s=0,o=r.length;s<o;s++)i=c(r[s]),l.push(_n(h,t,i,e));return new Ki(l);case"LineString":case"MultiLineString":return n=vn(r,"LineString"===a.type?0:1,c),new cn(n,e);case"Polygon":case"MultiPolygon":return n=vn(r,"Polygon"===a.type?1:2,c),new un(n,e);case"GeometryCollection":for(s=0,o=a.geometries.length;s<o;s++){var d=fn({geometry:a.geometries[s],type:"Feature",properties:t.properties},e);d&&l.push(d)}return new Ki(l);case"FeatureCollection":for(s=0,o=a.features.length;s<o;s++){var u=fn(a.features[s],e);u&&l.push(u)}return new Ki(l);default:throw new Error("Invalid GeoJSON object.")}}function _n(t,e,i,n){return t?t(e,i):new nn(i,n&&n.markersInheritOptions&&n)}function gn(t){return new Z(t[1],t[0],t[2])}function vn(t,e,i){for(var n,s=[],o=0,a=t.length;o<a;o++)n=e?vn(t[o],e-1,i):(i||gn)(t[o]),s.push(n);return s}function yn(t,e){return void 0!==(t=F(t)).alt?[c(t.lng,e),c(t.lat,e),c(t.alt,e)]:[c(t.lng,e),c(t.lat,e)]}function bn(t,e,i,n){for(var s=[],o=0,a=t.length;o<a;o++)s.push(e?bn(t[o],$i(t[o])?0:e-1,i,n):yn(t[o],n));return!e&&i&&s.length>0&&s.push(s[0].slice()),s}function wn(t,e){return t.feature?i({},t.feature,{geometry:e}):Ln(e)}function Ln(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var xn={toGeoJSON:function(t){return wn(this,{type:"Point",coordinates:yn(this.getLatLng(),t)})}};function Cn(t,e){return new mn(t,e)}nn.include(xn),ln.include(xn),an.include(xn),cn.include({toGeoJSON:function(t){var e=!$i(this._latlngs);return wn(this,{type:(e?"Multi":"")+"LineString",coordinates:bn(this._latlngs,e?1:0,!1,t)})}}),un.include({toGeoJSON:function(t){var e=!$i(this._latlngs),i=e&&!$i(this._latlngs[0]),n=bn(this._latlngs,i?2:e?1:0,!0,t);return e||(n=[n]),wn(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}}),Ui.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(i){e.push(i.toGeoJSON(t).geometry.coordinates)})),wn(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var i="GeometryCollection"===e,n=[];return this.eachLayer((function(e){if(e.toGeoJSON){var s=e.toGeoJSON(t);if(i)n.push(s.geometry);else{var o=Ln(s);"FeatureCollection"===o.type?n.push.apply(n,o.features):n.push(o)}}})),i?wn(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});var En=Cn,Sn=Vi.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""}
vendor: 2,528 bytes, line 1
1,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&&(we(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){_e(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&&ve(this._image),this},bringToBack:function(){return this._map&&ye(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:fe("img");we(e,"leaflet-image-layer"),this._zoomAnimated&&we(e,"leaflet-zoom-animated"),this.options.className&&we(e,this.options.className),e.onselectstart=h,e.onmousemove=h,e.onload=s(this.fire,this,"load"),e.onerror=s(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),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Me(this._image,i,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();Pe(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){Ee(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()}}
vendor: 19,015 bytes, line 1
1),Tn=function(t,e,i){return new Sn(t,e,i)},Mn=Sn.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:fe("video");if(we(e,"leaflet-image-layer"),this._zoomAnimated&&we(e,"leaflet-zoom-animated"),this.options.className&&we(e,this.options.className),e.onselectstart=h,e.onmousemove=h,e.onloadeddata=s(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),n=[],o=0;o<i.length;o++)n.push(i[o].src);this._url=i.length>0?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=fe("source");r.src=this._url[a],e.appendChild(r)}}}});function Pn(t,e,i){return new Mn(t,e,i)}var kn=Sn.extend({_initImage:function(){var t=this._image=this._url;we(t,"leaflet-image-layer"),this._zoomAnimated&&we(t,"leaflet-zoom-animated"),this.options.className&&we(t,this.options.className),t.onselectstart=h,t.onmousemove=h}});function In(t,e,i){return new kn(t,e,i)}var An=Vi.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof Z||g(t))?(this._latlng=F(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&&Ee(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&Ee(this._container,1),this.bringToFront(),this.options.interactive&&(we(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(Ee(this._container,0),this._removeTimeout=setTimeout(s(_e,void 0,this._container),200)):_e(this._container),this.options.interactive&&(Le(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=F(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&&ve(this._container),this},bringToBack:function(){return this._map&&ye(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof Ki){e=null;var i=this._source._layers;for(var n in i)if(i[n]._map){e=i[n];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else{if(!e.getBounds)throw new Error("Unable to get source layer LatLng.");t=e.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(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=D(this.options.offset),i=this._getAnchor();this._zoomAnimated?Pe(this._container,t.add(i)):e=e.add(t).add(i);var n=this._containerBottom=-e.y,s=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=n+"px",this._container.style.left=s+"px"}},_getAnchor:function(){return[0,0]}});si.include({_initOverlay:function(t,e,i,n){var s=e;return s instanceof t||(s=new t(n).setContent(e)),i&&s.setLatLng(i),s}}),Vi.include({_initOverlay:function(t,e,i,n){var s=i;return s instanceof t?(p(s,n),s._source=this):(s=e&&!n?e:new t(n,this)).setContent(i),s}});var On=An.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,An.prototype.openOn.call(this,t)},onAdd:function(t){An.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof on||this._source.on("preclick",We))},onRemove:function(t){An.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof on||this._source.off("preclick",We))},getEvents:function(){var t=An.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=fe("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),i=this._wrapper=fe("div",t+"-content-wrapper",e);if(this._contentNode=fe("div",t+"-content",i),Ue(e),Ve(this._contentNode),je(e,"contextmenu",We),this._tipContainer=fe("div",t+"-tip-container",e),this._tip=fe("div",t+"-tip",this._tipContainer),this.options.closeButton){var n=this._closeButton=fe("a",t+"-close-button",e);n.setAttribute("role","button"),n.setAttribute("aria-label","Close popup"),n.href="#close",n.innerHTML='<span aria-hidden="true">&#215;</span>',je(n,"click",(function(t){Ye(t),this.close()}),this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var i=t.offsetWidth;i=Math.min(i,this.options.maxWidth),i=Math.max(i,this.options.minWidth),e.width=i+1+"px",e.whiteSpace="",e.height="";var n=t.offsetHeight,s=this.options.maxHeight,o="leaflet-popup-scrolled";s&&n>s?(e.height=s+"px",we(t,o)):Le(t,o),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();Pe(this._container,e.add(i))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(me(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,s=new O(this._containerLeft,-i-this._containerBottom);s._add(ke(this._container));var o=t.layerPointToContainerPoint(s),a=D(this.options.autoPanPadding),r=D(this.options.autoPanPaddingTopLeft||a),l=D(this.options.autoPanPaddingBottomRight||a),h=t.getSize(),c=0,d=0;o.x+n+l.x>h.x&&(c=o.x+n-h.x+l.x),o.x-c-r.x<0&&(c=o.x-r.x),o.y+i+l.y>h.y&&(d=o.y+i-h.y+l.y),o.y-d-r.y<0&&(d=o.y-r.y),(c||d)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([c,d]))}},_getAnchor:function(){return D(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),zn=function(t,e){return new On(t,e)};si.mergeOptions({closePopupOnClick:!0}),si.include({openPopup:function(t,e,i){return this._initOverlay(On,t,e,i).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),Vi.include({bindPopup:function(t,e){return this._popup=this._initOverlay(On,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 Ki||(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){if(this._popup&&this._map){Ke(t);var e=t.layer||t.target;this._popup._source!==e||e instanceof on?(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)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var Dn=An.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){An.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){An.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=An.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=fe("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,n=this._map,s=this._container,o=n.latLngToContainerPoint(n.getCenter()),a=n.layerPointToContainerPoint(t),r=this.options.direction,l=s.offsetWidth,h=s.offsetHeight,c=D(this.options.offset),d=this._getAnchor();"top"===r?(e=l/2,i=h):"bottom"===r?(e=l/2,i=0):"center"===r?(e=l/2,i=h/2):"right"===r?(e=0,i=h/2):"left"===r?(e=l,i=h/2):a.x<o.x?(r="right",e=0,i=h/2):(r="left",e=l+2*(c.x+d.x),i=h/2),t=t.subtract(D(e,i,!0)).add(c).add(d),Le(s,"leaflet-tooltip-right"),Le(s,"leaflet-tooltip-left"),Le(s,"leaflet-tooltip-top"),Le(s,"leaflet-tooltip-bottom"),we(s,"leaflet-tooltip-"+r),Pe(s,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&Ee(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return D(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Bn=function(t,e){return new Dn(t,e)};si.include({openTooltip:function(t,e,i){return this._initOverlay(Dn,t,e,i).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),Vi.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Dn,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){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?i.add=this._openTooltip:(i.mouseover=this._openTooltip,i.mouseout=this.closeTooltip,i.click=this._openTooltip,this._map?this._addFocusListeners():i.add=this._addFocusListeners),this._tooltip.options.sticky&&(i.mousemove=this._moveTooltip),this[e](i),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof Ki||(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&&(je(e,"focus",(function(){this._tooltip._source=t,this.openTooltip()}),this),je(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(this._tooltip&&this._map)if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var e=this;this._map.once("moveend",(function(){e._openOnceFlag=!1,e._openTooltip(t)}))}else this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,i,n=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),i=this._map.containerPointToLayerPoint(e),n=this._map.layerPointToLatLng(i)),this._tooltip.setLatLng(n)}});var $n=Ji.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),i=this.options;if(i.html instanceof Element?(ge(e),e.appendChild(i.html)):e.innerHTML=!1!==i.html?i.html:"",i.bgPos){var n=D(i.bgPos);e.style.backgroundPosition=-n.x+"px "+-n.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});function Nn(t){return new $n(t)}Ji.Default=tn;var jn=Vi.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Nt.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(),_e(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ve(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ye(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(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return 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 O?t:new O(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),s=0,o=i.length;s<o;s++)e=i[s].style.zIndex,i[s]!==this._container&&e&&(n=t(n,+e));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Nt.ielt9){Ee(this._container,this.options.opacity);var t=+new Date,e=!1,i=!1;for(var n in this._tiles){var s=this._tiles[n];if(s.current&&s.loaded){var o=Math.min(1,(t-s.loaded)/200);Ee(s.el,o),o<1?e=!0:(s.active?i=!0:this._onOpaqueTile(s),s.active=!0)}}i&&!this._noPrune&&this._pruneTiles(),e&&(T(this._fadeFrame),this._fadeFrame=S(this._updateOpacity,this))}},_onOpaqueTile:h,_initContainer:function(){this._container||(this._container=fe("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)):(_e(this._levels[i].el),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);var n=this._levels[t],s=this._map;return n||((n=this._levels[t]={}).el=fe("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=e,n.origin=s.project(s.unproject(s.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,s.getCenter(),s.getZoom()),h(n.el.offsetWidth),this._onCreateLevel(n)),this._level=n,n}},_onUpdateLevel:h,_onRemoveLevel:h,_onCreateLevel:h,_pruneTiles:function(){if(this._map){var t,e,i=this._map.getZoom();if(i>this.options.maxZoom||i<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var n=e.coords;this._retainParent(n.x,n.y,n.z,n.z-5)||this._retainChildren(n.x,n.y,n.z,n.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)_e(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0}
vendor: 4,957 bytes, line 1
1,_retainParent:function(t,e,i,n){var s=Math.floor(t/2),o=Math.floor(e/2),a=i-1,r=new O(+s,+o);r.z=+a;var l=this._tileCoordsToKey(r),h=this._tiles[l];return h&&h.active?(h.retain=!0,!0):(h&&h.loaded&&(h.retain=!0),a>n&&this._retainParent(s,o,a,n))},_retainChildren:function(t,e,i,n){for(var s=2*t;s<2*t+2;s++)for(var o=2*e;o<2*e+2;o++){var a=new O(s,o);a.z=i+1;var r=this._tileCoordsToKey(a),l=this._tiles[r];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),i+1<n&&this._retainChildren(s,o,i+1,n))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_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 s=Math.round(e);s=void 0!==this.options.maxZoom&&s>this.options.maxZoom||void 0!==this.options.minZoom&&s<this.options.minZoom?void 0:this._clampZoom(s);var o=this.options.updateWhenZooming&&s!==this._tileZoom;n&&!o||(this._tileZoom=s,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==s&&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),s=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,i)).round();Nt.any3d?Me(t.el,s,n):Pe(t.el,s)},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),n=this._tileZoom,s=this._map.getPixelWorldBounds(this._tileZoom);s&&(this._globalTileRange=this._pxBoundsToTileRange(s)),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(),n=e.getZoomScale(i,this._tileZoom),s=e.project(t,this._tileZoom).floor(),o=e.getSize().divideBy(2*n);return new B(s.subtract(o),s.add(o))},_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=this._getTiledPixelBounds(t),s=this._pxBoundsToTileRange(n),o=s.getCenter(),a=[],r=this.options.keepBuffer,l=new B(s.getBottomLeft().subtract([r,-r]),s.getTopRight().add([r,-r]));if(!(isFinite(s.min.x)&&isFinite(s.min.y)&&isFinite(s.max.x)&&isFinite(s.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var h in this._tiles){var c=this._tiles[h].coords;c.z===this._tileZoom&&l.contains(new O(c.x,c.y))||(this._tiles[h].current=!1)}if(Math.abs(i-this._tileZoom)>1)this._setView(t,i);else{for(var d=s.min.y;d<=s.max.y;d++)for(var u=s.min.x;u<=s.max.x;u++){var p=new O(u,d);if(p.z=this._tileZoom,this._isValidTile(p)){var m=this._tiles[this._tileCoordsToKey(p)];m?m.current=!0:a.push(p)}}if(a.sort((function(t,e){return t.distanceTo(o)-e.distanceTo(o)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var f=document.createDocumentFragment();for(u=0;u<a.length;u++)this._addTile(a[u],f);this._level.el.appendChild(f)}}}}},_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}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return j(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),s=n.add(i);return[e.unproject(n,t.z),e.unproject(s,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new N(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new O(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(_e(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){we(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,Nt.ielt9&&this.options.opacity<1&&Ee(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),s(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&S(s(this._tileReady,this,t,null,o)),Pe(o,i),this._tiles[n]={el:o,c
vendor: 6,108 bytes, line 1
1oords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,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?(Ee(i.el,0),T(this._fadeFrame),this._fadeFrame=S(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(we(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Nt.ielt9||!this._map._fadeAnimated?S(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new O(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}});function Zn(t){return new jn(t)}var Fn=jn.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&&Nt.retina&&e.maxZoom>0?(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 je(i,"load",s(this._tileOnLoad,this,e,i)),je(i,"error",s(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 e={r:Nt.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=n),e["-y"]=n}return _(this._url,i(e,this.options))},_tileOnLoad:function(t,e){Nt.ielt9?setTimeout(s(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 this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=h,e.onerror=h,!e.complete)){e.src=y;var i=this._tiles[t].coords;_e(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:i})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",y),jn.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(this._map&&(!i||i.getAttribute("src")!==y))return jn.prototype._tileReady.call(this,t,e,i)}});function Gn(t,e){return new Fn(t,e)}var Hn=Fn.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,e){this._url=t;var n=i({},this.defaultWmsParams);for(var s in e)s in this.options||(n[s]=e[s]);var o=(e=p(this,e)).detectRetina&&Nt.retina?2:1,a=this.getTileSize();n.width=a.x*o,n.height=a.y*o,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,Fn.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=$(i.project(e[0]),i.project(e[1])),s=n.min,o=n.max,a=(this._wmsVersion>=1.3&&this._crs===qi?[s.y,s.x,o.y,o.x]:[s.x,s.y,o.x,o.y]).join(","),r=Fn.prototype.getTileUrl.call(this,t);return r+m(this.wmsParams,r,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(t,e){return i(this.wmsParams,t),e||this.redraw(),this}});function Rn(t,e){return new Hn(t,e)}Fn.WMS=Hn,Gn.wms=Rn;var qn=Vi.extend({options:{padding:.1},initialize:function(t){p(this,t),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),we(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),s=this._map.project(this._center,e),o=n.multiplyBy(-i).add(s).subtract(this._map._getNewPixelOrigin(t,e));Nt.any3d?Me(this._container,o,i):Pe(this._container,o)},_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)).roun
vendor: 5,441 bytes, line 1
1d();this._bounds=new B(i,i.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Wn=qn.extend({options:{tolerance:0},getEvents:function(){var t=qn.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){qn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");je(t,"mousemove",this._onMouseMove,this),je(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),je(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){T(this._redrawRequest),delete this._ctx,_e(this._container),Fe(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(){if(!this._map._animatingZoom||!this._bounds){qn.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=Nt.retina?2:1;Pe(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",Nt.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){qn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[a(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,i=e.next,n=e.prev;i?i.prev=n:this._drawLast=n,n?n.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){var e,i,n=t.options.dashArray.split(/[, ]+/),s=[];for(i=0;i<n.length;i++){if(e=Number(n[i]),isNaN(e))return;s.push(e)}t.options._dashArray=s}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||S(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var 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=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else 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=this._redrawBounds;if(this._ctx.save(),e){var i=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,i.x,i.y),this._ctx.clip()}this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var i,n,s,o,a=t._parts,r=a.length,l=this._ctx;if(r){for(l.beginPath(),i=0;i<r;i++){for(n=0,s=a[i].length;n<s;n++)o=a[i][n],l[n?"lineTo":"moveTo"](o.x,o.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,i=this._ctx,n=Math.max(Math.round(t._radius),1),s=(Math.max(Math.round(t._radiusY),1)||n)/n;1!==s&&(i.save(),i.scale(1,s)),i.beginPath(),i.arc(e.x,e.y/s,n,0,2*Math.PI,!1),1!==s&&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),s=this._drawFirst;s;s=s.next)(e=s.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){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(Le(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,o=this._drawFirst;o;o=o.next)(i=o.layer).options.interactive&&i._containsPoint(e)&&(n=i);n!==this._hoveredLayer&&(this._handleMouseOut(t),n&&(we(this._container,"leaflet-interactive"),this._fireEvent([n],t,"mouseover"),this._hoveredLayer=n)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(s((function(){this._mouseHoverThrottled=!1}),this),32)}}
vendor: 17,662 bytes, line 1
1,_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var i=e.next,n=e.prev;i&&(i.prev=n,n?n.next=i:i&&(this._drawFirst=i),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var i=e.next,n=e.prev;n&&(n.next=i,i?i.prev=n:n&&(this._drawLast=n),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function Vn(t){return Nt.canvas?new Wn(t):null}var Un=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">')}}(),Yn={_initContainer:function(){this._container=fe("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(qn.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Un("shape");we(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Un("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;_e(e),t.removeInteractiveTarget(e),delete this._layers[a(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,s=t._container;s.stroked=!!n.stroke,s.filled=!!n.fill,n.stroke?(e||(e=t._stroke=Un("stroke")),s.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&&(s.removeChild(e),t._stroke=null),n.fill?(i||(i=t._fill=Un("fill")),s.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(s.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){ve(t._container)},_bringToBack:function(t){ye(t._container)}},Kn=Nt.vml?Un:X,Xn=qn.extend({_initContainer:function(){this._container=Kn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Kn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){_e(this._container),Fe(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){qn.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),Pe(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=Kn("path");t.options.className&&we(e,t.options.className),t.options.interactive&&we(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){_e(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,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,J(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 ",s=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+n+2*i+",0 "+n+2*-i+",0 ";this._setPath(t,s)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ve(t._path)},_bringToBack:function(t){ye(t._path)}});function Jn(t){return Nt.svg||Nt.vml?new Xn(t):null}Nt.vml&&Xn.include(Yn),si.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Vn(t)||Jn(t)}});var Qn=un.extend({initialize:function(t,e){un.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()]}});function ts(t,e){return new Qn(t,e)}Xn.create=Kn,Xn.pointsToPath=J,mn.geometryToLayer=fn,mn.coordsToLatLng=gn,mn.coordsToLatLngs=vn,mn.latLngToCoords=yn,mn.latLngsToCoords=bn,mn.getFeature=wn,mn.asFeature=Ln,si.mergeOptions({boxZoom:!0});var es=gi.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(){je(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Fe(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){_e(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(),oe(),Ae(),this._startPoint=this._map.mouseEventToContainerPoint(t),je(document,{contextmenu:Ke,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=fe("div","leaflet-zoom-box",this._container),we(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new B(this._point,this._startPoint),i=e.getSize();Pe(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(_e(this._box),Le(this._container,"leaflet-crosshair")),ae(),Oe(),Fe(document,{contextmenu:Ke,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var e=new N(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});si.addInitHook("addHandler","boxZoom",es),si.mergeOptions({doubleClickZoom:!0});var is=gi.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,s=t.originalEvent.shiftKey?i-n:i+n;"center"===e.options.doubleClickZoom?e.setZoom(s):e.setZoomAround(t.containerPoint,s)}});si.addInitHook("addHandler","doubleClickZoom",is),si.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var ns=gi.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new bi(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))}we(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Le(this._map._container,"leaflet-grab"),Le(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=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=j(this._map.options.maxBounds);this._offsetLimit=$(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var 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(;this._positions.length>1&&t-this._times[0]>50;)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(){if(this._viscosity&&this._offsetLimit){var 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,s=(n-e+i)%t+e-i,o=(n+e+i)%t-e-i,a=Math.abs(s+i)<Math.abs(o+i)?s:o;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=a},_onDragEnd:function(t){var e=this._map,i=e.options,n=!i.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),n)e.fire("moveend");else{this._prunePositions(+new Date);var s=this._lastPos.subtract(this._positions[0]),o=(this._lastTime-this._times[0])/1e3,a=i.easeLinearity,r=s.multiplyBy(a/o),l=r.distanceTo([0,0]),h=Math.min(i.inertiaMaxSpeed,l),c=r.multiplyBy(h/l),d=h/(i.inertiaDeceleration*a),u=c.multiplyBy(-d/2).round();u.x||u.y?(u=e._limitOffset(u,e.options.maxBounds),S((function(){e.panBy(u,{duration:d,easeLinearity:a,noMoveStart:!0,animate:!0})}))):e.fire("moveend")}}});si.addInitHook("addHandler","dragging",ns),si.mergeOptions({keyboard:!0,keyboardPanDelta:80});var ss=gi.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"),je(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(),Fe(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(){if(!this._focused){var t=document.body,e=document.documentElement,i=t.scrollTop||e.scrollTop,n=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(n,i)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,i,n=this._panKeys={},s=this.keyCodes;for(e=0,i=s.left.length;e<i;e++)n[s.left[e]]=[-1*t,0];for(e=0,i=s.right.length;e<i;e++)n[s.right[e]]=[t,0];for(e=0,i=s.down.length;e<i;e++)n[s.down[e]]=[0,t];for(e=0,i=s.up.length;e<i;e++)n[s.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,i,n=this._zoomKeys={},s=this.keyCodes;for(e=0,i=s.zoomIn.length;e<i;e++)n[s.zoomIn[e]]=t;for(e=0,i=s.zoomOut.length;e<i;e++)n[s.zoomOut[e]]=-t},_addHooks:function(){je(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Fe(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,i=t.keyCode,n=this._map;if(i in this._panKeys){if(!n._panAnim||!n._panAnim._inProgress)if(e=this._panKeys[i],t.shiftKey&&(e=D(e).multiplyBy(3)),n.options.maxBounds&&(e=n._limitOffset(D(e),n.options.maxBounds)),n.options.worldCopyJump){var s=n.wrapLatLng(n.unproject(n.project(n.getCenter()).add(e)));n.panTo(s)}else n.panBy(e)}else if(i in this._zoomKeys)n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i]);else{if(27!==i||!n._popup||!n._popup.options.closeOnEscapeKey)return;n.closePopup()}Ke(t)}}});si.addInitHook("addHandler","keyboard",ss),si.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var os=gi.extend({addHooks:function(){je(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Fe(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=ti(t),i=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var n=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s(this._performZoom,this),n),Ke(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0;t._stop();var n=this._delta/(4*this._map.options.wheelPxPerZoomLevel),s=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,o=i?Math.ceil(s/i)*i:s,a=t._limitZoom(e+(this._delta>0?o:-o))-e;this._delta=0,this._startTime=null,a&&("center"===t.options.scrollWheelZoom?t.setZoom(e+a):t.setZoomAround(this._lastMousePos,e+a))}});si.addInitHook("addHandler","scrollWheelZoom",os);var as=600;si.mergeOptions({tapHold:Nt.touchNative&&Nt.safari&&Nt.mobile,tapTolerance:15});var rs=gi.extend({addHooks:function(){je(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Fe(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new O(e.clientX,e.clientY),this._holdTimeout=setTimeout(s((function(){this._cancel(),this._isTapValid()&&(je(document,"touchend",Ye),je(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))}),this),as),je(document,"touchend touchcancel contextmenu",this._cancel,this),je(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){Fe(document,"touchend",Ye),Fe(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),Fe(document,"touchend touchcancel contextmenu",this._cancel,this),Fe(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new O(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var i=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=!0,e.target.dispatchEvent(i)}});si.addInitHook("addHandler","tapHold",rs),si.mergeOptions({touchZoom:Nt.touch,bounceAtZoomLimits:!0});var ls=gi.extend({addHooks:function(){we(this._map._container,"leaflet-touch-zoom"),je(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Le(this._map._container,"leaflet-touch-zoom"),Fe(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))),this._startDist=i.distanceTo(n),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),je(document,"touchmove",this._onTouchMove,this),je(document,"touchend touchcancel",this._onTouchEnd,this),Ye(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]),o=i.distanceTo(n)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMin
1Zoom()&&o<1||this._zoom>e.getMaxZoom()&&o>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===o)return}else{var a=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(1===o&&0===a.x&&0===a.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),T(this._animRequest);var r=s(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=S(r,this,!0),Ye(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,T(this._animRequest),Fe(document,"touchmove",this._onTouchMove,this),Fe(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}});si.addInitHook("addHandler","touchZoom",ls),si.BoxZoom=es,si.DoubleClickZoom=is,si.Drag=ns,si.Keyboard=ss,si.ScrollWheelZoom=os,si.TapHold=rs,si.TouchZoom=ls,t.Bounds=B,t.Browser=Nt,t.CRS=H,t.Canvas=Wn,t.Circle=ln,t.CircleMarker=an,t.Class=P,t.Control=ai,t.DivIcon=$n,t.DivOverlay=An,t.DomEvent=ii,t.DomUtil=Ne,t.Draggable=bi,t.Evented=A,t.FeatureGroup=Ki,t.GeoJSON=mn,t.GridLayer=jn,t.Handler=gi,t.Icon=Ji,t.ImageOverlay=Sn,t.LatLng=Z,t.LatLngBounds=N,t.Layer=Vi,t.LayerGroup=Ui,t.LineUtil=Zi,t.Map=si,t.Marker=nn,t.Mixin=vi,t.Path=on,t.Point=O,t.PolyUtil=Ei,t.Polygon=un,t.Polyline=cn,t.Popup=On,t.PosAnimation=ni,t.Projection=Hi,t.Rectangle=Qn,t.Renderer=qn,t.SVG=Xn,t.SVGOverlay=kn,t.TileLayer=Fn,t.Tooltip=Dn,t.Transformation=V,t.Util=M,t.VideoOverlay=Mn,t.bind=s,t.bounds=$,t.canvas=Vn,t.circle=hn,t.circleMarker=rn,t.control=ri,t.divIcon=Nn,t.extend=i,t.featureGroup=Xi,t.geoJSON=Cn,t.geoJson=En,t.gridLayer=Zn,t.icon=Qi,t.imageOverlay=Tn,t.latLng=F,t.latLngBounds=j,t.layerGroup=Yi,t.map=oi,t.marker=sn,t.point=D,t.polygon=pn,t.polyline=dn,t.popup=zn,t.rectangle=ts,t.setOptions=p,t.stamp=a,t.svg=Jn,t.svgOverlay=In,t.tileLayer=Gn,t.tooltip=Bn,t.transformation=U,t.version=e,t.videoOverlay=Pn;var hs=window.L;t.noConflict=function(){return window.L=hs,this},window.L=t})(ee.exports);var ie=Et(ee.exports);function ne(t,e,i=!1){return""!==t.value&&t.value?i?(e[t.name]=[t.value],e):(t.name in e?e[t.name].includes(t.value)||e[t.name].push(t.value):e[t.name]=[t.value],e):e=se(t,e)}function se(t,e,i=!1){return i&&t.name in e?(delete e[t.name],e):(t.name in e&&e[t.name].includes(t.value)&&(e[t.name].filter((e=>e!==t.value)),0===e[t.name].length&&delete e[t.name]),e)}function oe(t){if(Object.keys(t).length<=0)return"";let e="?";return Object.entries(t).forEach(((t,i)=>{const[n,s]=t;s.length>0&&(e+=`${i>0?"&":""}${n}=${s.join(",")}`)})),e}L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(t){L.Util.setOptions(this,t),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var e=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,e?this._withAnimation:this._noAnimation),this._markerCluster=e?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(t){if(t instanceof L.LayerGroup)return this.addLayers([t]);if(!t.getLatLng)return this._nonPointGroup.addLayer(t),this.fire("layeradd",{layer:t}),this;if(!this._map)return this._needsClustering.push(t),this.fire("layeradd",{layer:t}),this;if(this.hasLayer(t))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(t,this._maxZoom),this.fire("layeradd",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var e=t,i=this._zoom;if(t.__parent)for(;e.__parent._zoom>=i;)e=e.__parent;
1return this._currentShownBounds.contains(e.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(t,e):this._animationAddLayerNonAnimated(t,e)),this},removeLayer:function(t){return t instanceof L.LayerGroup?this.removeLayers([t]):t.getLatLng?this._map?t.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(t)),this._removeLayer(t,!0),this.fire("layerremove",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),t.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(t)&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,t)&&this.hasLayer(t)&&this._needsRemoving.push({layer:t,latlng:t._latlng}),this.fire("layerremove",{layer:t}),this):(this._nonPointGroup.removeLayer(t),this.fire("layerremove",{layer:t}),this)},addLayers:function(t,e){if(!L.Util.isArray(t))return this.addLayer(t);var i,n=this._featureGroup,s=this._nonPointGroup,o=this.options.chunkedLoading,a=this.options.chunkInterval,r=this.options.chunkProgress,l=t.length,h=0,c=!0;if(this._map){var d=(new Date).getTime(),u=L.bind((function(){var p=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();h<l;h++){if(o&&h%200==0)if((new Date).getTime()-p>a)break;if((i=t[h])instanceof L.LayerGroup)c&&(t=t.slice(),c=!1),this._extractNonGroupLayers(i,t),l=t.length;else if(i.getLatLng){if(!this.hasLayer(i)&&(this._addLayer(i,this._maxZoom),e||this.fire("layeradd",{layer:i}),i.__parent&&2===i.__parent.getChildCount())){var m=i.__parent.getAllChildMarkers(),f=m[0]===i?m[1]:m[0];n.removeLayer(f)}}else s.addLayer(i),e||this.fire("layeradd",{layer:i})}r&&r(h,l,(new Date).getTime()-d),h===l?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(u,this.options.chunkDelay)}),this);u()}else for(var p=this._needsClustering;h<l;h++)(i=t[h])instanceof L.LayerGroup?(c&&(t=t.slice(),c=!1),this._extractNonGroupLayers(i,t),l=t.length):i.getLatLng?this.hasLayer(i)||p.push(i):s.addLayer(i);return this},removeLayers:function(t){var e,i,n=t.length,s=this._featureGroup,o=this._nonPointGroup,a=!0;if(!this._map){for(e=0;e<n;e++)(i=t[e])instanceof L.LayerGroup?(a&&(t=t.slice(),a=!1),this._extractNonGroupLayers(i,t),n=t.length):(this._arraySplice(this._needsClustering,i),o.removeLayer(i),this.hasLayer(i)&&this._needsRemoving.push({layer:i,latlng:i._latlng}),this.fire("layerremove",{layer:i}));return this}if(this._unspiderfy){this._unspiderfy();var r=t.slice(),l=n;for(e=0;e<l;e++)(i=r[e])instanceof L.LayerGroup?(this._extractNonGroupLayers(i,r),l=r.length):this._unspiderfyLayer(i)}for(e=0;e<n;e++)(i=t[e])instanceof L.LayerGroup?(a&&(t=t.slice(),a=!1),this._extractNonGroupLayers(i,t),n=t.length):i.__parent?(this._removeLayer(i,!0,!0),this.fire("layerremove",{layer:i}),s.hasLayer(i)&&(s.removeLayer(i),i.clusterShow&&i.clusterShow())):(o.removeLayer(i),this.fire("layerremove",{layer:i}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer((function(t){t.off(this._childMarkerEventHandlers,this),delete t.__parent}),this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var t=new L.LatLngBounds;this._topClusterLevel&&t.extend(this._topClusterLevel._bounds);for(var e=this._needsClustering.length-1;e>=0;e--)t.extend(this._needsClustering[e].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,e){var i,n,s,o=this._needsClustering.slice(),a=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(o),n=o.length-1;n>=0;n--){for(i=!0,s=a.length-1;s>=0;s--)if(a[s].layer===o[n]){i=!1;break}i&&t.call(e,o[n])}this._nonPointGroup.eachLayer(t,e)},getLayers:function(){var t=[];return this.eachLayer((function(e){t.push(e)})),t},getLayer:function(t){var e=null;return t=parseInt(t,10),this.eachLayer((function(i){L.stamp(i)===t&&(e=i)})),e},hasLayer:function(t){if(!t)return!1;var e,i=this._needsClustering;for(e=i.length-1;e>=0;e--)if(i[e]===t)return!0;for(e=(i=this._needsRemoving).length-1;e>=0;e--)if(i[e].layer===t)return!1;return!(!t.__parent||t.__parent._group!==this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,e){var i=this._map;"function"!=typeof e&&(e=function(){});var n=function(){!i.hasLayer(t)&&!i.hasLayer(t.__parent)||this._inZoomAnimation||(this._map.off("moveend",n,this),this.off("animationend",n,this),i.hasLayer(t)?e():t.__parent._icon&&(this.once("spiderfied",e,this),t.__parent.spiderfy()))};t._icon&&this._map.getBounds().contains(t.getLatLng())?e():t.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",n,this),this._map.panTo(t.getLatLng())):(this._map.on("moveend",n,this),this.on("animationend",n,this),t.__parent.zoomToBounds())},onAdd:function(t){var e,i,n;if(this._map=t,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";
vendor: 9,947 bytes, line 1
1for(this._featureGroup.addTo(t),this._nonPointGroup.addTo(t),this._gridClusters||this._generateInitialClusters(),this._maxLat=t.options.crs.projection.MAX_LATITUDE,e=0,i=this._needsRemoving.length;e<i;e++)(n=this._needsRemoving[e]).newlatlng=n.layer._latlng,n.layer._latlng=n.latlng;for(e=0,i=this._needsRemoving.length;e<i;e++)n=this._needsRemoving[e],this._removeLayer(n.layer,!0),n.layer._latlng=n.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),i=this._needsClustering,this._needsClustering=[],this.addLayers(i,!0)},onRemove:function(t){t.off("zoomend",this._zoomEnd,this),t.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(t){for(var e=t;e&&!e._icon;)e=e.__parent;return e||null},_arraySplice:function(t,e){for(var i=t.length-1;i>=0;i--)if(t[i]===e)return t.splice(i,1),!0},_removeFromGridUnclustered:function(t,e){for(var i=this._map,n=this._gridUnclustered,s=Math.floor(this._map.getMinZoom());e>=s&&n[e].removeObject(t,i.project(t.getLatLng(),e));e--);},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var e=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng),e&&t.target.openPopup()}},_moveChild:function(t,e,i){t._latlng=e,this.removeLayer(t),t._latlng=i,this.addLayer(t)},_childMarkerDragEnd:function(t){var e=t.target.__dragStart;delete t.target.__dragStart,e&&this._moveChild(t.target,e,t.target._latlng)},_removeLayer:function(t,e,i){var n=this._gridClusters,s=this._gridUnclustered,o=this._featureGroup,a=this._map,r=Math.floor(this._map.getMinZoom());e&&this._removeFromGridUnclustered(t,this._maxZoom);var l,h=t.__parent,c=h._markers;for(this._arraySplice(c,t);h&&(h._childCount--,h._boundsNeedUpdate=!0,!(h._zoom<r));)e&&h._childCount<=1?(l=h._markers[0]===t?h._markers[1]:h._markers[0],n[h._zoom].removeObject(h,a.project(h._cLatLng,h._zoom)),s[h._zoom].addObject(l,a.project(l.getLatLng(),h._zoom)),this._arraySplice(h.__parent._childClusters,h),h.__parent._markers.push(l),l.__parent=h.__parent,h._icon&&(o.removeLayer(h),i||o.addLayer(l))):h._iconNeedsUpdate=!0,h=h.__parent;delete t.__parent},_isOrIsParent:function(t,e){for(;e;){if(t===e)return!0;e=e.parentNode}return!1},fire:function(t,e,i){if(e&&e.layer instanceof L.MarkerCluster){if(e.originalEvent&&this._isOrIsParent(e.layer._icon,e.originalEvent.relatedTarget))return;t="cluster"+t}L.FeatureGroup.prototype.fire.call(this,t,e,i)},listens:function(t,e){return L.FeatureGroup.prototype.listens.call(this,t,e)||L.FeatureGroup.prototype.listens.call(this,"cluster"+t,e)},_defaultIconCreateFunction:function(t){var e=t.getChildCount(),i=" marker-cluster-";return i+=e<10?"small":e<100?"medium":"large",new L.DivIcon({html:"<div><span>"+e+"</span></div>",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,e=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,n=this.options.zoomToBoundsOnClick,s=this.options.spiderfyOnEveryZoom;(e||n||s)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){var e=t.layer,i=e;if("clusterkeypress"!==t.type||!t.originalEvent||13===t.originalEvent.keyCode){for(;1===i._childClusters.length;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===e._childCount&&this.options.spiderfyOnMaxZoom?e.spiderfy():this.options.zoomToBoundsOnClick&&e.zoomToBounds(),this.options.spiderfyOnEveryZoom&&e.spiderfy(),t.originalEvent&&13===t.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(t){var e=this._map;this._inZoomAnimation||(this._shownPolygon&&e.removeLayer(this._shownPolygon),t.layer.getChildCount()>2&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),e.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,n=this.options.spiderfyOnEveryZoom,s=this._map;(t||i||n)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),e&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),s.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var t=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),t),this._currentShownBounds=t}},_generateInitialClusters:function(){var t=Math.ceil(this._map.getMaxZoom()),e=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,n=i;"function"!=typeof i&&(n=function(){return i}),null!==this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var s=t;s>=e;s--)this._gridClusters[s]=new L.DistanceGrid(n(s)),this._gridUnclustered[s]=new L.DistanceGrid(n(s));this._topClusterLevel=new this._markerCluster(this,e-1)},_addLayer:function(t,e){var i,n,s=this._gridClusters,o=this._gridUnclustered,a=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t),t.on(this._childMarkerEventHandlers,this);e>=a;e--){i=this._map.project(t.getLatLng(),e);var r=s[e].getNearObject(i);if(r)return r._addChild(t),void(t.__parent=r);if(r=o[e].getNearObject(i)){var l=r.__parent;l&&this._removeLayer(r,!1);var h=new this._markerCluster(this,e,r,t);s[e].addObject(h,this._map.project(h._cLatLng,e)),r.__parent=h,t.__parent=h;var c=h;for(n=e-1;n>l._zoom;n--)c=new this._markerCluster(this,n,c),s[n].addObject(c,this._map.project(r.getLatLng(),n));return l._addChild(c),void this._removeFromGridUnclustered(r,e)}o[e].addObject(t,i)}this._topClusterLevel._addChild(t),t.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()}))},_enqueue:function(t){this._queue.push(t),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var t=0;t<this._queue.length;t++)this._queue[t].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var t=Math.round(this._map._zoom);this._processQueue(),this._zoom<t&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,t)):this._zoom>t?(this._animationStart(),this._animationZoomOut(this._zoom,t)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(t){var e=this._maxLat;return void 0!==e&&(t.getNorth()>=e&&(t._northEast.lat=1/0),t.getSouth()<=-e&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,e){if(e===t)this._featureGroup.addLayer(t);else if(2===e._childCount){e._addToMap();var i=e.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else e._updateIcon()},_extractNonGroupLayers:function(t,e){var i,n=t.getLayers(),s=0;for(e=e||[];s<n.length;s++)(i=n[s])instanceof L.LayerGroup?this._extractNonGroupLayers(i,e):e.push(i);return e},_overrideMarkerIcon:function(t){return t.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[t]}})}}),L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(t,e){this._animationAddLayerNonAnimated(t,e)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(t,e){var i,n=this._getExpandedVisibleBounds(),s=this._featureGroup,o=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(n,t,o,(function(o){var a,r=o._latlng,l=o._markers;
1for(n.contains(r)||(r=null),o._isSingleParent()&&t+1===e?(s.removeLayer(o),o._recursivelyAddChildrenToMap(null,e,n)):(o.clusterHide(),o._recursivelyAddChildrenToMap(r,e,n)),i=l.length-1;i>=0;i--)a=l[i],n.contains(a._latlng)||s.removeLayer(a)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(n,e),s.eachLayer((function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()})),this._topClusterLevel._recursively(n,t,e,(function(t){t._recursivelyRestoreChildPositions(e)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(n,t,o,(function(t){s.removeLayer(t),t.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(t,e){this._animationZoomOutSingle(this._topClusterLevel,t-1,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,e){var i=this,n=this._featureGroup;n.addLayer(t),e!==t&&(e._childCount>2?(e._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(e.getLatLng())),t.clusterHide(),this._enqueue((function(){n.removeLayer(t),t.clusterShow(),i._animationEnd()}))):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(e,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,e,i){var n=this._getExpandedVisibleBounds(),s=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(n,s,e+1,i);var o=this;this._forceLayout(),t._recursivelyBecomeVisible(n,i),this._enqueue((function(){if(1===t._childCount){var a=t._markers[0];this._ignoreMove=!0,a.setLatLng(a.getLatLng()),this._ignoreMove=!1,a.clusterShow&&a.clusterShow()}else t._recursively(n,i,s,(function(t){t._recursivelyRemoveChildrenFromMap(n,s,e+1)}));o._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)},L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,e,i,n){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane}),this._group=t,this._zoom=e,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,i&&this._addChild(i),n&&this._addChild(n)},getAllChildMarkers:function(t,e){t=t||[];for(var i=this._childClusters.length-1;i>=0;i--)this._childClusters[i].getAllChildMarkers(t,e);for(var n=this._markers.length-1;n>=0;n--)e&&this._markers[n].__dragStart||t.push(this._markers[n]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){for(var e,i=this._childClusters.slice(),n=this._group._map,s=n.getBoundsZoom(this._bounds),o=this._zoom+1,a=n.getZoom();i.length>0&&s>o;){o++;var r=[];for(e=0;e<i.length;e++)r=r.concat(i[e]._childClusters);i=r}s>
vendor: 10,868 bytes, line 1
1o?this._group._map.setView(this._latlng,o):s<=a?this._group._map.setView(this._latlng,a+1):this._group._map.fitBounds(this._bounds,t)},getBounds:function(){var t=new L.LatLngBounds;return t.extend(this._bounds),t},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(t,e){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(t),t instanceof L.MarkerCluster?(e||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(e||this._markers.push(t),this._childCount++),this.__parent&&this.__parent._addChild(t,!0)},_setClusterCenter:function(t){this._cLatLng||(this._cLatLng=t._cLatLng||t._latlng)},_resetBounds:function(){var t=this._bounds;t._southWest&&(t._southWest.lat=1/0,t._southWest.lng=1/0),t._northEast&&(t._northEast.lat=-1/0,t._northEast.lng=-1/0)},_recalculateBounds:function(){var t,e,i,n,s=this._markers,o=this._childClusters,a=0,r=0,l=this._childCount;if(0!==l){for(this._resetBounds(),t=0;t<s.length;t++)i=s[t]._latlng,this._bounds.extend(i),a+=i.lat,r+=i.lng;for(t=0;t<o.length;t++)(e=o[t])._boundsNeedUpdate&&e._recalculateBounds(),this._bounds.extend(e._bounds),i=e._wLatLng,n=e._childCount,a+=i.lat*n,r+=i.lng*n;this._latlng=this._wLatLng=new L.LatLng(a/l,r/l),this._boundsNeedUpdate=!1}},_addToMap:function(t){t&&(this._backupLatlng=this._latlng,this.setLatLng(t)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(t,e,i){this._recursively(t,this._group._map.getMinZoom(),i-1,(function(t){var i,n,s=t._markers;for(i=s.length-1;i>=0;i--)(n=s[i])._icon&&(n._setPos(e),n.clusterHide())}),(function(t){var i,n,s=t._childClusters;for(i=s.length-1;i>=0;i--)(n=s[i])._icon&&(n._setPos(e),n.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,e,i,n){this._recursively(t,n,e,(function(s){s._recursivelyAnimateChildrenIn(t,s._group._map.latLngToLayerPoint(s.getLatLng()).round(),i),s._isSingleParent()&&i-1===n?(s.clusterShow(),s._recursivelyRemoveChildrenFromMap(t,e,i)):s.clusterHide(),s._addToMap()}))},_recursivelyBecomeVisible:function(t,e){this._recursively(t,this._group._map.getMinZoom(),e,null,(function(t){t.clusterShow()}))},_recursivelyAddChildrenToMap:function(t,e,i){this._recursively(i,this._group._map.getMinZoom()-1,e,(function(n){if(e!==n._zoom)for(var s=n._markers.length-1;s>=0;s--){var o=n._markers[s];i.contains(o._latlng)&&(t&&(o._backupLatlng=o.getLatLng(),o.setLatLng(t),o.clusterHide&&o.clusterHide()),n._group._featureGroup.addLayer(o))}}),(function(e){e._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var e=this._markers.length-1;e>=0;e--){var i=this._markers[e];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(t-1===this._zoom)for(var n=this._childClusters.length-1;n>=0;n--)this._childClusters[n]._restorePosition();else for(var s=this._childClusters.length-1;s>=0;s--)this._childClusters[s]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,e,i,n){var s,o;this._recursively(t,e-1,i-1,(function(t){for(o=t._markers.length-1;o>=0;o--)s=t._markers[o],n&&n.contains(s._latlng)||(t._group._featureGroup.removeLayer(s),s.clusterShow&&s.clusterShow())}),(function(t){for(o=t._childClusters.length-1;o>=0;o--)s=t._childClusters[o],n&&n.contains(s._latlng)||(t._group._featureGroup.removeLayer(s),s.clusterShow&&s.clusterShow())}))},_recursively:function(t,e,i,n,s){var o,a,r=this._childClusters,l=this._zoom;if(e<=l&&(n&&n(this),s&&l===i&&s(this)),l<e||l<i)for(o=r.length-1;o>=0;o--)(a=r[o])._boundsNeedUpdate&&a._recalculateBounds(),t.intersects(a._bounds)&&a._recursively(t,e,i,n,s)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}}),L.Marker.include({clusterHide:function(){var t=this.options.opacity;return this.setOpacity(0),this.options.opacity=t,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(t,e){var i=this._getCoord(e.x),n=this._getCoord(e.y),s=this._grid,o=s[n]=s[n]||{},a=o[i]=o[i]||[],r=L.Util.stamp(t);this._objectPoint[r]=e,a.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,e){var i,n,s=this._getCoord(e.x),o=this._getCoord(e.y),a=this._grid,r=a[o]=a[o]||{},l=r[s]=r[s]||[];for(delete this._objectPoint[L.Util.stamp(t)],i=0,n=l.length;i<n;i++)if(l[i]===t)return l.splice(i,1),1===n&&delete r[s],!0},eachObject:function(t,e){var i,n,s,o,a,r,l=this._grid;for(i in l)for(n in a=l[i])for(s=0,o=(r=a[n]).length;s<o;s++)t.call(e,r[s])&&(s--,o--)},getNearObject:function(t){var e,i,n,s,o,a,r,l,h=this._getCoord(t.x),c=this._getCoord(t.y),d=this._objectPoint,u=this._sqCellSize,p=null;for(e=c-1;e<=c+1;e++)if(s=this._grid[e])for(i=h-1;i<=h+1;i++)if(o=s[i])for(n=0,a=o.length;n<a;n++)r=o[n],((l=this._sqDist(d[L.Util.stamp(r)],t))<u||l<=u&&null===p)&&(u=l,p=r);return p},_getCoord:function(t){var e=Math.floor(t/this._cellSize);return isFinite(e)?e:t},_sqDist:function(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}},L.QuickHull={getDistant:function(t,e){var i=e[1].lat-e[0].lat;return(e[0].lng-e[1].lng)*(t.lat-e[0].lat)+i*(t.lng-e[0].lng)},findMostDistantPointFromBaseLine:function(t,e){var i,n,s,o=0,a=null,r=[];for(i=e.length-1;i>=0;i--)n=e[i],(s=this.getDistant(n,t))>0&&(r.push(n),s>o&&(o=s,a=n));return{maxPoint:a,newPoints:r}},buildConvexHull:function(t,e){var i=[],n=this.findMostDistantPointFromBaseLine(t,e);return n.maxPoint?i=(i=i.concat(this.buildConvexHull([t[0],n.maxPoint],n.newPoints))).concat(this.buildConvexHull([n.maxPoint,t[1]],n.newPoints)):[t[0]]},getConvexHull:function(t){var e,i=!1,n=!1,s=!1,o=!1,a=null,r=null,l=null,h=null,c=null,d=null;for(e=t.length-1;e>=0;e--){var u=t[e];(!1===i||u.lat>i)&&(a=u,i=u.lat),(!1===n||u.lat<n)&&(r=u,n=u.lat),(!1===s||u.lng>s)&&(l=u,s=u.lng),(!1===o||u.lng<o)&&(h=u,o=u.lng)}return n!==i?(d=r,c=a):(d=h,c=l),[].concat(this.buildConvexHull([d,c],t),this.buildConvexHull([c,d],t))}},L.MarkerCluster.include({getConvexHull:function(){var t,e,i=this.getAllChildMarkers(),n=[];for(e=i.length-1;e>=0;e--)t=i[e].getLatLng(),n.push(t);return L.QuickHull.getConvexHull(n)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var t,e=this.getAllChildMarkers(null,!0),i=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),this._group._spiderfied=this,this._group.options.spiderfyShapePositions?t=this._group.options.spiderfyShapePositions(e.length,i):e.length>=this._circleSpiralSwitchover?t=this._generatePointsSpiral(e.length,i):(i.y+=10,t=this._generatePointsCircle(e.length,i)),this._animationSpiderfy(e,t)}},unspiderfy:function(t){this._group._inZoomAnimation||(this._animationUnspiderfy(t),this._group._spiderfied=null)},_generatePointsCircle:function(t,e){var i,n,s=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,o=this._2PI/t,a=[];for(s=Math.max(s,35),a.length=t,i=0;i<t;i++)n=this._circleStartAngle+i*o,a[i]=new L.Point(e.x+s*Math.cos(n),e.y+s*Math.sin(n))._round();return a},_generatePointsSpiral:function(t,e){var i,n=this._group.options.spiderfyDistanceMultiplier,s=n*this._spiralLengthStart,o=n*this._spiralFootSeparation,a=n*this._spiralLengthFactor*this._2PI,r=0,l=[];for(l.length=t,i=t;i>=0;i--)i<t&&(l[i]=new L.Point(e.x+s*Math.cos(r),e.y+s*Math.sin(r))._round()),s+=a/(r+=o/s+5e-4*i);return l},_noanimationUnspiderfy:function(){var t,e,i=this._group,n=i._map,s=i._featureGroup,o=this.getAllChildMarkers(null,!0);for(i._ignoreMove=!0,this.setOpacity(1),e=o.length-1;e>=0;e--)t=o[e],s.removeLayer(t),t._preSpiderfyLatlng&&(t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng),t.setZIndexOffset&&t.setZIndexOffset(0),t._spiderLeg&&(n.removeLayer(t._spiderLeg),delete t._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:o}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,e){var i,n,s,o,a=this._group,r=a._map,l=a._featureGroup,h=this._group.options.spiderLegPolylineOptions;for(a._ignoreMove=!0,i=0;i<t.length;i++)o=r.layerPointToLatLng(e[i]),n=t[i],s=new L.Polyline([this._latlng,o],h),r.addLayer(s),n._spiderLeg=s,n._preSpiderfyLatlng=n._latlng,n.setLatLng(o),n.setZIndexOffset&&n.setZIndexOffset(1e6),l.addLayer(n);this.setOpacity(.3),a._ignoreMove=!1,a.fire("spiderfied",{cluster:this,markers:t})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(t,e){var i,n,s,o,a,r,l=this,h=this._group,c=h._map,d=h._featureGroup,u=this._latlng,p=c.latLngToLayerPoint(u),m=L.Path.SVG,f=L.extend({},this._group.options.spiderLegPolylineOptions),_=f.opacity;for(void 0===_&&(_=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),m?(f.opacity=0,f.className=(f.className||"")+" leaflet-cluster-spider-leg"):f.opacity=_,h._ignoreMove=!0,i=0;i<t.length;i++)n=t[i],r=c.layerPointToLatLng(e[i]),s=new L.Polyline([u,r],f),c.addLayer(s),n._spiderLeg=s,m&&(a=(o=s._path).getTotalLength()+.1,o.style.strokeDasharray=a,o.style.strokeDashoffset=a),n.setZIndexOffset&&n.setZIndexOffset(1e6),n.clusterHide&&n.clusterHide(),d.addLayer(n),n._setPos&&n._setPos(p);for(h._forceLayout(),h._animationStart(),i=t.length-1;i>=0;i--)r=c.layerPointToLatLng(e[i]),(n=t[i])._preSpiderfyLatlng=n._latlng,n.setLatLng(r),n.clusterShow&&n.clusterShow(),m&&((o=(s=n._spiderLeg)._path).style.strokeDashoffset=0,s.setStyle({opacity:_}));this.setOpacity(.3),h._ignoreMove=!1,setTimeout((function(){h._animationEnd(),h.fire("spiderfied",{cluster:l,markers:t})}),200)},_animationUnspiderfy:function(t){var e,i,n,s,o,a,r=this,l=this._group,h=l._map,c=l._featureGroup,d=t?h._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):h.latLngToLayerPoint(this._latlng),u=this.getAllChildMarkers(null,!0),p=L.Path.SVG;for(l._ignoreMove=!0,l._animationStart(),this.setOpacity(1),i=u.length-1;i>=0;i--)(e=u[i])._preSpiderfyLatlng&&(e.closePopup(),e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng,a=!0,e._setPos&&(e._setPos(d),a=!1),e.clusterHide&&(e.clusterHide(),a=!1),a&&c.removeLayer(e),p&&(o=(s=(n=e._spiderLeg)._path).getTotalLength()+.1,s.style.strokeDashoffset=o,n.setStyle({opacity:0}
1)));l._ignoreMove=!1,setTimeout((function(){var t=0;for(i=u.length-1;i>=0;i--)(e=u[i])._spiderLeg&&t++;for(i=u.length-1;i>=0;i--)(e=u[i])._spiderLeg&&(e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),t>1&&c.removeLayer(e),h.removeLayer(e._spiderLeg),delete e._spiderLeg);l._animationEnd(),l.fire("unspiderfied",{cluster:r,markers:u})}),200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(t){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(t))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(t){this._spiderfied&&this._spiderfied.unspiderfy(t)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(t){t._spiderLeg&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),this._map.removeLayer(t._spiderLeg),delete t._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(t){return t?t instanceof L.MarkerClusterGroup?t=t._topClusterLevel.getAllChildMarkers():t instanceof L.LayerGroup?t=t._layers:t instanceof L.MarkerCluster?t=t.getAllChildMarkers():t instanceof L.Marker&&(t=[t]):t=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(t),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(t),this},_flagParentsIconsNeedUpdate:function(t){var e,i;for(e in t)for(i=t[e].__parent;i;)i._iconNeedsUpdate=!0,i=i.__parent},_refreshSingleMarkerModeMarkers:function(t){var e,i;for(e in t)i=t[e],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(t,e){var i=this.options.icon;return L.setOptions(i,t),this.setIcon(i),e&&this.__parent&&this.__parent._group.refreshClusters(this),this}});class ae{constructor(t){this.CONFIG={mapTilerAPIKey:"qmZB81ixX8k1DrbKY60H",mapTilerMapID:"b25332f8-e3ea-4a04-8b9e-1dac0c45d08e",cmsEndpointUrl:"",markerUrl:"",useClusters:!1,mapContainer:t.querySelector(".js-interactive-map-map"),optInButton:t.querySelector(".js-interactive-map-opt-in"),markerLayerGroup:null,searcMarkerLayerGroup:null,moreOptionsButton:t.querySelector(".js-interactive-map-more-button"),moreOptionsPanel:t.querySelector(".js-interactive-map-more-panel"),form:t.querySelector(".js-interactive-map-form"),fields:document.querySelectorAll(".js-map-form-watch-input"),defaultFieldValues:{},currentFieldValues:{},allMarkerLatLng:[],map:null,resultsContainer:t.querySelector(".js-interactive-map-results"),resultsList:t.querySelector(".js-interactive-map-results-list"),resultsTitle:t.querySelector(".js-interactive-map-results-title"),resultsPaginationList:t.querySelector(".js-interactive-map-pagination-list ul.o-pagination__items"),paginatedListItems:[],currentPage:!1,resultsPerPage:10,maxPaginationLinks:4,failCount:0},this.params=function(){const t=window.location.search,e=new URLSearchParams(t);let i=[];return e.forEach(((t,e)=>{i=ne({name:e,value:t},i,!0)})),i}(),this.responseData=[],this.init()}init(){if(this.CONFIG.mapContainer){this.CONFIG.resultsContainer&&this.CONFIG.resultsContainer.getAttribute("data-results-per-page")&&(this.CONFIG.resultsPerPage=this.CONFIG.resultsContainer.getAttribute("data-results-per-page")),this.CONFIG.cmsEndpointUrl=this.CONFIG.mapContainer.getAttribute("data-endpoint-url"),this.CONFIG.ignoreParams=this.CONFIG.mapContainer.hasAttribute("data-ignore-params"),this.CONFIG.markerUrl=this.CONFIG.mapContainer.getAttribute("data-marker-url"),this.CONFIG.secondaryMarkerUrl=this.CONFIG.mapContainer.getAttribute("data-secondary-marker-url"),this.CONFIG.useClusters=this.CONFIG.mapContainer.getAttribute("data-use-clusters"),this.CONFIG.map=ie.map(this.CONFIG.mapContainer,{minZoom:4,maxZoom:17,zoomSnap:.1,maxBounds:[[48,-140],[25,-95]]}
1).setView(new ie.latLng(34.0522,-118.2437),6);var t=this;this.CONFIG.map.on("contextmenu",(function(e){var i="Coordinates:<br>"+e.latlng.toString();ie.popup({maxWidth:100}).setLatLng(e.latlng).setContent(i).openOn(t.CONFIG.map)})),this.CONFIG.useClusters?this.CONFIG.markerLayerGroup=ie.markerClusterGroup({spiderLegPolylineOptions:{weight:1.5,color:"#FFBC00",opacity:.5},maxClusterRadius:50,iconCreateFunction:function(t){var e=t.getChildCount(),i=" marker-cluster-";return i+=e<10?"small":e<100?"medium":"large",new ie.divIcon({html:"<div><span>"+e+"</span></div>",className:"marker-cluster"+i,iconSize:new ie.Point(40,40)})},polygonOptions:{stroke:!0,color:"#648c1a",weight:3,opacity:0,fill:!0,fillColor:"#BBDF6E",fillOpacity:0},disableClusteringAtZoom:16,zoomToBoundsOnClick:!0,spiderfyOnMaxZoom:!1}).addTo(this.CONFIG.map):this.CONFIG.markerLayerGroup=ie.layerGroup().addTo(this.CONFIG.map),this.CONFIG.searcMarkerLayerGroup=ie.layerGroup().addTo(this.CONFIG.map),ie.tileLayer(`https://api.maptiler.com/maps/${this.CONFIG.mapTilerMapID}/{z}/{x}/{y}.png?key=${this.CONFIG.mapTilerAPIKey}`,{tileSize:512,zoomOffset:-1,minZoom:1,attribution:'<a href="https://www.maptiler.com/copyright/" target="_blank">&copy; MapTiler</a> <a href="https://www.openstreetmap.org/copyright" target="_blank">&copy; OpenStreetMap contributors</a>',crossOrigin:!0,scrollWheelZoom:!1}).addTo(this.CONFIG.map),this.CONFIG.optInButton&&this.CONFIG.optInButton.addEventListener("click",(()=>{document.body.classList.add("allow-interaction")})),this.CONFIG.form&&(this.CONFIG.moreOptionsButton&&this.CONFIG.moreOptionsPanel&&this.setupMoreOptionsButton(),this.CONFIG.fields&&(this.loadDefaultFieldParamValues(),this.listenForFieldChanges())),this.isIntialLoad=!0,this.handleInitialResultsList(),this.updateMarkers(),this.isIntialLoad=!1,document.addEventListener("click",(t=>this.handlePaginationClick(t))),window.addEventListener("ajax-wrapper-make-request",(()=>{document.removeEventListener("click",(t=>this.handlePaginationClick(t)))}))}else this.CONFIG.resultsList&&(this.CONFIG.cmsEndpointUrl=this.CONFIG.resultsContainer.getAttribute("data-endpoint-url"),this.updateMarkers(!0))}centerMapToMarkers(){if(this.CONFIG.allMarkerLatLng.length>0){const t=new ie.LatLngBounds(this.CONFIG.allMarkerLatLng);this.CONFIG.map.flyToBounds(t,{duration:1,padding:[70,70]})}}async updateMarkers(t=!1){document.body.classList.add("is-loading"),document.body.classList.remove("no-results-found"),this.isIntialLoad||(this.CONFIG.resultsContainer&&(this.CONFIG.resultsList.classList.add("loading-results"),this.CONFIG.resultsList.style.height=`${this.CONFIG.resultsList.offsetHeight}px`),this.params=se({name:"pl"},this.params,!0),this.params=se({name:"single-place"},this.params,!0),this.params=se({name:"issue-type"},this.params,!0)),console.log(this.CONFIG.ignoreParams);const e=oe(this.params),i=this.CONFIG.ignoreParams?this.CONFIG.cmsEndpointUrl:`${this.CONFIG.cmsEndpointUrl}${e}`;console.log(e),console.log(i),this.isIntialLoad||(""===e?window.history.replaceState({params:this.params},document.title,location.pathname):window.history.pushState({params:this.params},document.title,e)),this.CONFIG.allMarkerLatLng=[],this.clearMarkers(),this.handleFetch(i).then((e=>{this.updateResultsListData(e),0===e.count?document.body.classList.add("no-results-found"):t||(this.addMarkers(e.data),this.centerMapToMarkers(),e.polys&&this.addPolys(e.polys),e.search_point&&this.addSearchPoint(e.search_point)),document.body.classList.remove("is-loading")}))}async handleFetch(t){const e=await fetch(t),i=await e.json();if(i.next_page){const e=[...Array(i.max_num_pages-1)].map(((e,i)=>{const n=t.includes("?")?"&":"?";return`${t}${n}page=${i+2}`}));(await Promise.all(e.map((async t=>{const e=await fetch(t),n=await e.json();return i.count=i.count+n.count,n.data})))).forEach((t=>{i.data=[...i.data,...t]}))}return i}addMarkers(t){t.forEach((t=>{const e=[t.lat,t.lng];this.CONFIG.allMarkerLatLng.push(e),ie.marker(e,{icon:ie.icon({iconUrl:this.CONFIG.markerUrl,iconSize:[31,39],iconAnchor:[26,60],popupAnchor:[0,-65]})}
1).bindPopup(`\n        <div class="lac-map-popup">\n          ${t.image?`<div class="lac-map-popup__image"><img src="${t.image}" alt="${t.imageAlt}" /></div>`:'<div class="lac-map-popup__image lac-map-popup__image--placeholder"></div>'}\n          <div class="lac-map-popup__content">\n            <h3 class="lac-map-popup__content-title">${t.title}</h3>\n            ${t.url?`<a href="${t.url}" class="o-btn o-btn--small">Read More</a>`:""}\n          </div>\n        </div>\n        `).addTo(this.CONFIG.markerLayerGroup)}))}addSearchPoint(t){const e=[t[0],t[1]];this.CONFIG.allMarkerLatLng.push(e);let i=ie.marker(e,{icon:ie.icon({iconUrl:this.CONFIG.secondaryMarkerUrl,iconSize:[34,42],iconAnchor:[26,60],popupAnchor:[0,-65]})});t[4]&&t[5]&&"zip"!=t[5]&&i.bindPopup(`\n        <div class="lac-map-popup">\n          <div class="lac-map-popup__content">\n            <h3 class="lac-map-popup__content-title">Search:</h3>\n            ${t[4]}\n          </div>\n        </div>\n        `),i.addTo(this.CONFIG.searcMarkerLayerGroup)}addPolys(t){t.forEach((t=>{if(t.map_objects){var e=t.map_objects.map((t=>t.map_coordinates.map((t=>[t.lat,t.lon]))));let i=null;i=!0===t.map_closed_shape?ie.polygon(e,{stroke:t.map_stroke,color:t.map_color,weight:t.map_weight,opacity:t.map_opacity,fill:t.map_fill,fillColor:t.map_fill_color,fillOpacity:t.map_fill_opacity,fillRule:t.map_fill_rule}).addTo(this.CONFIG.markerLayerGroup):ie.polyline(e,{stroke:t.map_stroke,color:t.map_color,weight:t.map_weight,opacity:t.map_opacity}).addTo(this.CONFIG.markerLayerGroup),t.map_tooltip&&i.bindTooltip(t.map_tooltip)}}))}clearMarkers(){this.CONFIG.markerLayerGroup&&this.CONFIG.markerLayerGroup.clearLayers(),this.CONFIG.searcMarkerLayerGroup&&this.CONFIG.searcMarkerLayerGroup.clearLayers()}loadDefaultFieldParamValues(){this.CONFIG.fields.forEach((t=>{if(""!==t.value){const e=t.getAttribute("data-param");this.params=ne({name:e,value:t.value},this.params,!0)}}))}listenForFieldChanges(){this.CONFIG.fields.forEach((t=>{t.addEventListener("change",(()=>{const e=t.getAttribute("data-param");""===t.value?delete this.params[e]:this.params=ne({name:e,value:t.value},this.params,!0),this.updateMarkers()}))}))}setupMoreOptionsButton(){this.CONFIG.moreOptionsButton&&this.CONFIG.moreOptionsButton.addEventListener("click",(()=>{var t="true"===this.CONFIG.moreOptionsButton.getAttribute("aria-expanded"),e=document.querySelector(`#${this.CONFIG.moreOptionsButton.getAttribute("aria-controls")}`);t?jQuery(e).slideUp():jQuery(e).slideDown(),this.CONFIG.moreOptionsButton.setAttribute("aria-expanded",!t)}))}handleInitialResultsList(){if(!this.CONFIG.resultsList)return;this.CONFIG.resultsList.innerHTML='\n    <li class="o-list-card o-list-card--placeholder">\n      <div class="o-list-card__text">\n        <div class="o-list-card__eyebrow f-text--subheader"></div>\n        <div class="o-list-card__title f-title--h2"></div>\n        <div class="o-list-card__image-wrapper o-list-card__image-wrapper-mobile"></div>\n        <div class="u-wysiwyg o-list-card__description"></div>\n        <div class="o-list-card__button-wrapper">\n          <span class="o-btn u-btn-grow-arrow o-btn--fill o-list-card__button">\n            <span class="o-btn__inner">\n              <span class="o-btn__text">---- ----</span>\n              <span class="o-btn__icon">\n                <svg width="26" height="13" viewBox="0 0 26 13" fill="none" xmlns="http://www.w3.org/2000/svg" class="u-btn-grow-arrow__svg">\n                  <path fill-rule="evenodd" clip-rule="evenodd" d="M0 6.49965C0 6.68908 0.0752501 6.87075 0.209196 7.00469C0.343142 7.13864 0.524812 7.21389 0.71424 7.21389H17.5603L13.0649 11.7079C12.9308 11.842 12.8554 12.0239 12.8554 12.2136C12.8554 12.4032 12.9308 12.5851 13.0649 12.7193C13.199 12.8534 13.3809 12.9287 13.5706 12.9287C13.7602 12.9287 13.9421 12.8534 14.0762 12.7193L19.7902 7.00533C19.8567 6.93898 19.9095 6.86017 19.9455 6.77339C19.9815 6.68662 20 6.5936 20 6.49965C20 6.4057 19.9815 6.31268 19.9455 6.2259C19.9095 6.13913 19.8567 6.06031 19.7902 5.99397L14.0762 0.280046C13.9421 0.14593 13.7602 0.0705862 13.5706 0.0705862C13.3809 0.0705862 13.199 0.14593 13.0649 0.280046C12.9308 0.414161 12.8554 0.596061 12.8554 0.785728C12.8554 0.975395 12.9308 1.15729 13.0649 1.29141L17.5603 5.78541H0.71424C0.524812 5.78541 0.343142 5.86066 0.209196 5.9946C0.0752501 6.12855 0 6.31022 0 6.49965Z" fill="currentColor" />\n                </svg>\n              </span>\n            </span>\n          </span>\n        </div>\n      </div>\n      <div class="o-list-card__image-wrapper o-list-card__image-wrapper-desktop"></div>\n    </li>\n    '}updateResultsListData(t){if(this.CONFIG.resultsContainer)if(this.CONFIG.resultsContainer.classList.remove("no-results"),this.CONFIG.paginatedListItems=[],0===t.count)this.CONFIG.currentPage=!1,this.CONFIG.resultsContainer.classList.add("no-results");else{const e=t.data;let i=0,n=[];e.forEach(((t,s)=>{i+=1,i>this.CONFIG.resultsPerPage&&(i=1,this.CONFIG.paginatedListItems.push(n),n=[]),n.push(this.resultListItemMarkup(t)),s===e.length-1&&this.CONFIG.paginatedListItems.push(n)})),this.displayResults()}}resultListItemMarkup(t){return`\n    <li class="o-list-card">\n      <div class="o-list-card__text">\n        <p class="o-list-card__eyebrow f-text--subheader">Place</p>\n        <h3 class="o-list-card__title f-title--h2">${t.title}</h3>\n        ${t.imageTeaser?`<div class="o-list-card__image-wrapper o-list-card__image-wrapper-mobile">\n          <picture><img src="${t.imageTeaser}" alt="${t.imageAlt}" /></picture>\n        </div>`:""}\n        ${t.desc?`<div class="u-wysiwyg o-list-card__description">${t.desc}</div>`:""}\n        ${t.url?`<div class="o-list-card__button-wrapper">\n          <a href="${t.url}" class="o-btn u-btn-grow-arrow o-btn--fill o-list-card__button">
1\n            <span class="o-btn__inner">\n              <span class="o-btn__text">Read More</span>\n              <span class="o-btn__icon">\n                <svg width="26" height="13" viewBox="0 0 26 13" fill="none" xmlns="http://www.w3.org/2000/svg" class="u-btn-grow-arrow__svg">\n                  <path fill-rule="evenodd" clip-rule="evenodd" d="M0 6.49965C0 6.68908 0.0752501 6.87075 0.209196 7.00469C0.343142 7.13864 0.524812 7.21389 0.71424 7.21389H17.5603L13.0649 11.7079C12.9308 11.842 12.8554 12.0239 12.8554 12.2136C12.8554 12.4032 12.9308 12.5851 13.0649 12.7193C13.199 12.8534 13.3809 12.9287 13.5706 12.9287C13.7602 12.9287 13.9421 12.8534 14.0762 12.7193L19.7902 7.00533C19.8567 6.93898 19.9095 6.86017 19.9455 6.77339C19.9815 6.68662 20 6.5936 20 6.49965C20 6.4057 19.9815 6.31268 19.9455 6.2259C19.9095 6.13913 19.8567 6.06031 19.7902 5.99397L14.0762 0.280046C13.9421 0.14593 13.7602 0.0705862 13.5706 0.0705862C13.3809 0.0705862 13.199 0.14593 13.0649 0.280046C12.9308 0.414161 12.8554 0.596061 12.8554 0.785728C12.8554 0.975395 12.9308 1.15729 13.0649 1.29141L17.5603 5.78541H0.71424C0.524812 5.78541 0.343142 5.86066 0.209196 5.9946C0.0752501 6.12855 0 6.31022 0 6.49965Z" fill="currentColor" />\n                </svg>\n              </span>\n            </span>\n          </a>\n        </div>`:""}\n      </div>\n      ${t.imageTeaser?`<div class="o-list-card__image-wrapper o-list-card__image-wrapper-desktop">\n        <picture><img src="${t.imageTeaser}" alt="${t.imageAlt}" /></picture>\n      </div>`:""}\n    </li>\n    `}displayResults(t=1){this.CONFIG.resultsList.innerHTML="",this.CONFIG.resultsPaginationList.innerHTML="",this.CONFIG.currentPage=t;const e=this.CONFIG.paginatedListItems[t-1];this.CONFIG.paginatedListItems.length>1?(this.displayPagination(t),this.CONFIG.resultsPaginationList.classList.remove("no-pagination")):this.CONFIG.resultsPaginationList.classList.add("no-pagination"),e.forEach((t=>{this.CONFIG.resultsList.innerHTML+=t})),this.CONFIG.resultsList.style.height=null,this.CONFIG.resultsList.classList.remove("loading-results")}displayPagination(t){const e=this.CONFIG.paginatedListItems.length,i=this.CONFIG.maxPaginationLinks/2,n=t-i<=0,s=t+i>=e,o=n?1:t-i,a=s?e:t<this.CONFIG.maxPaginationLinks?this.CONFIG.maxPaginationLinks:t+i;let r="";t>1&&(r+=`<li class="o-pagination__item o-pagination__item--prev">\n        <button class="js-map-page o-pagination__item-link o-pagination__item-link--direct" data-val="${t-1}">\n          <span class="o-pagination__link-icon" aria-hidden="true">\n            <svg width="26" height="13" viewBox="0 0 26 13" fill="none" xmlns="http://www.w3.org/2000/svg" class="u-btn-grow-arrow__svg">\n              <path fill-rule="evenodd" clip-rule="evenodd" d="M0 6.49965C0 6.68908 0.0752501 6.87075 0.209196 7.00469C0.343142 7.13864 0.524812 7.21389 0.71424 7.21389H17.5603L13.0649 11.7079C12.9308 11.842 12.8554 12.0239 12.8554 12.2136C12.8554 12.4032 12.9308 12.5851 13.0649 12.7193C13.199 12.8534 13.3809 12.9287 13.5706 12.9287C13.7602 12.9287 13.9421 12.8534 14.0762 12.7193L19.7902 7.00533C19.8567 6.93898 19.9095 6.86017 19.9455 6.77339C19.9815 6.68662 20 6.5936 20 6.49965C20 6.4057 19.9815 6.31268 19.9455 6.2259C19.9095 6.13913 19.8567 6.06031 19.7902 5.99397L14.0762 0.280046C13.9421 0.14593 13.7602 0.0705862 13.5706 0.0705862C13.3809 0.0705862 13.199 0.14593 13.0649 0.280046C12.9308 0.414161 12.8554 0.596061 12.8554 0.785728C12.8554 0.975395 12.9308 1.15729 13.0649 1.29141L17.5603 5.78541H0.71424C0.524812 5.78541 0.343142 5.86066 0.209196 5.9946C0.0752501 6.12855 0 6.31022 0 6.49965Z" fill="currentColor"/>\n            </svg>\n          </span>\n          Previous</button>\n      </li>`),n||(r+='<li class="o-pagination__item o-pagination__item--elipsis">\n        <button class="js-map-page o-pagination__item-link o-pagination__item-link--direct" data-val="1">1</button>\n      </li>\n      <li class="o-pagination__item o-pagination__item--elipsis">\n        <span class="o-pagination__item-text">&#8230;</span>\n      </li>');for(let e=o;e<a+1;e++)r+=`<li class="o-pagination__item o-pagination__item--link">\n        ${e===t?'<span class="o-pagination__item-link o-pagination__item-link--page" aria-current="page">':`<button class="js-map-page o-pagination__item-link o-pagination__item-link--page" data-val="${e}">`}
1\n        <span class="u-sr-only">Page&nbsp;</span><span class="o-pagination__item-text">${e}</span>\n        ${e===t?"</span>":"</button>"}\n      </li>`;s||(r+=`<li class="o-pagination__item o-pagination__item--elipsis">\n        <span class="o-pagination__item-text">&#8230;</span>\n      </li>\n      <li class="o-pagination__item o-pagination__item--elipsis">\n        <button class="js-map-page o-pagination__item-link o-pagination__item-link--direct" data-val="${e}">${e}</button>\n      </li>`),t<e&&(r+=`<li class="o-pagination__item o-pagination__item--next">\n        <button class="js-map-page o-pagination__item-link o-pagination__item-link--direct" data-val="${t+1}">Next\n          <span class="o-pagination__link-icon" aria-hidden="true">\n          <svg width="26" height="13" viewBox="0 0 26 13" fill="none" xmlns="http://www.w3.org/2000/svg" class="u-btn-grow-arrow__svg">\n            <path fill-rule="evenodd" clip-rule="evenodd" d="M0 6.49965C0 6.68908 0.0752501 6.87075 0.209196 7.00469C0.343142 7.13864 0.524812 7.21389 0.71424 7.21389H17.5603L13.0649 11.7079C12.9308 11.842 12.8554 12.0239 12.8554 12.2136C12.8554 12.4032 12.9308 12.5851 13.0649 12.7193C13.199 12.8534 13.3809 12.9287 13.5706 12.9287C13.7602 12.9287 13.9421 12.8534 14.0762 12.7193L19.7902 7.00533C19.8567 6.93898 19.9095 6.86017 19.9455 6.77339C19.9815 6.68662 20 6.5936 20 6.49965C20 6.4057 19.9815 6.31268 19.9455 6.2259C19.9095 6.13913 19.8567 6.06031 19.7902 5.99397L14.0762 0.280046C13.9421 0.14593 13.7602 0.0705862 13.5706 0.0705862C13.3809 0.0705862 13.199 0.14593 13.0649 0.280046C12.9308 0.414161 12.8554 0.596061 12.8554 0.785728C12.8554 0.975395 12.9308 1.15729 13.0649 1.29141L17.5603 5.78541H0.71424C0.524812 5.78541 0.343142 5.86066 0.209196 5.9946C0.0752501 6.12855 0 6.31022 0 6.49965Z" fill="currentColor"/>\n          </svg>\n          </span>\n          </button>\n      </li>`),this.CONFIG.resultsPaginationList.innerHTML=r}handlePaginationClick(t){const e=t.target.closest(".js-map-page");if(e&&e.getAttribute("data-val")){const t=parseInt(e.getAttribute("data-val")),i=window.scrollX,n=window.scrollY,s=Math.round(this.CONFIG.resultsTitle.getBoundingClientRect().top+document.documentElement.scrollTop);this.CONFIG.resultsTitle.focus(),window.scrollTo(i,n),window.scrollTo({top:s-100,behavior:"smooth"}),this.displayResults(t)}}}function re(){document.querySelectorAll(".c-interactive-map").forEach((t=>{t.classList.contains("initialized")||(t.classList.add("initialized"),new ae(t))}))}class le{constructor(){this.elements={nav:document.getElementById("anchor-links"),anchorLinks:document.querySelectorAll(".js-anchor-scroll-to")},this.config={activeOffset:0,anchorPanelData:[]},this.handleAnchorLinks(),this.handleConfigUpdates(),this.handleScroll(),window.addEventListener("resize",(()=>this.handleConfigUpdates())),window.addEventListener("scroll",(()=>this.handleScroll()))}handleAnchorLinks(){this.elements.anchorLinks.forEach((t=>{const e=t.getAttribute("href").replace("#",""),i=document.getElementById(e);i&&(this.config.anchorPanelData.push({panel:i,anchor:t}),t.addEventListener("click",(t=>{t.preventDefault();const e=document.body.getBoundingClientRect().top,n=i.getBoundingClientRect().top;window.scrollTo({top:n-e-this.elements.nav.offsetHeight-20,left:0,behavior:"smooth"})})))}))}handleConfigUpdates(){this.config.activeOffset=window.innerHeight/2,this.handleScroll()}handleScroll(){window.requestAnimationFrame((()=>{const t=[];if(this.config.anchorPanelData.forEach((e=>{e.panel.getBoundingClientRect().top<this.config.activeOffset&&t.push(e)})),t.length>0){const e=t.pop();this.elements.anchorLinks.forEach((t=>t.classList.remove("is-active"))),e.anchor.classList.add("is-active")}}))}}class he{static getDescendantProperty(t,e,i=[]){let n,s,o,a,r,l;if(e){if(o=e.indexOf("."),-1===o?n=e:(n=e.slice(0,o),s=e.slice(o+1)),a=t[n],null!=a)if(s||"string"!=typeof a&&"number"!=typeof a)if("[object Array]"===Object.prototype.toString.call(a))for(r=0,l=a.length;r<l;r++)he.getDescendantProperty(a[r],s,i);else s&&he.getDescendantProperty(a,s,i);else i.push(a)}else i.push(t);return i}}class ce{constructor(t=[],e=[],i={}){Array.isArray(e)||(i=e,e=[]),this.haystack=t,this.keys=e,this.options=Object.assign({caseSensitive:!1,sort:!1},i)}search(t=""){if(""===t)return this.haystack;const e=[];for(let i=0;i<this.haystack.length;i++){const n=this.haystack[i];if(0===this.keys.length){const i=ce.isMatch(n,t,this.options.caseSensitive);i&&e.push({item:n,score:i})}else for(let i=0;i<this.keys.length;i++){const s=he.getDescendantProperty(n,this.keys[i]);let o=!1;for(let i=0;i<s.length;i++){const a=ce.isMatch(s[i],t,this.options.caseSensitive);if(a){o=!0,e.push({item:n,score:a});break}}if(o)break}}return this.options.sort&&e.sort(((t,e)=>t.score-e.score)),e.map((t=>t.item))}static isMatch(t,e,i){t=String(t),e=String(e),i||(t=t.toLocaleLowerCase(),e=e.toLocaleLowerCase());const n=ce.nearestIndexesFor(t,e);return!!n&&(t===e?1:n.length>1?n[n.length-1]-n[0]+2:2+n[0])}static nearestIndexesFor(t,e){const i=e.split("");let n=[];return ce.indexesOfFirstLetter(t,e).forEach(((e,s)=>{let o=e+1;n[s]=[e];for(let e=1;e<i.length;e++){const a=i[e];if(o=t.indexOf(a,o),-1===o){n[s]=!1;break}n[s].push(o),o++}})),n=n.filter((t=>!1!==t)),!!n.length&&n.sort(((t,e)=>1===t.length?t[0]-e[0]:(t=t[t.length-1]-t[0])-(e=e[e.length-1]-e[0])))[0]}static indexesOfFirstLetter(t,e){const i=e[0];return t.split("").map(((t,e)=>t===i&&e)).filter((t=>!1!==t))}}class de{constructor(t,e){this.config={rootElementClass:"js-checkbox-list",multiselectClass:"js-checkbox-list--multiselect",triggerClass:"js-checkbox-list-trigger",initialLabelClass:"js-checkbox-list-trigger-label",panelClass:"js-checkbox-list-panel",itemClass:"js-checkbox-list-item",inputClass:"js-checkbox-list-input",clearButtonClass:"js-checkbox-list-clear",showClearButtonClass:"is-visible",searchInputClass:"js-checkbox-list-search",searchNoResultsClass:"js-checkbox-list-no-results",searchHiddenItemClass:"is-hidden",searchInputActiveClass:"has-search-value",searchInputFocusClass:"has-search-focus",openClass:"o-checkbox-list--open",animateClass:"o-checkbox-list--animate",animateDelay:240,hasSelectionsClass:"has-selections",valueType:"comma-seperated",...e},this.elements={rootEl:t,rootElID:t.getAttribute("id"),trigger:t.querySelector(`.${this.config.triggerClass}`),label:t.querySelector(`.${this.config.initialLabelClass}`),panel:t.querySelector(`.${this.config.panelClass}`),searchInput:t.querySelector(`.${this.config.searchInputClass}`),searchNoResults:t.querySelector(`.${this.config.searchNoResultsClass}`),clearButton:t.querySelector(`.${this.config.clearButtonClass}`),inputs:t.querySelectorAll(`.${this.config.inputClass}`),items:t.querySelectorAll(`.${this.config.itemClass}`)},this.elements.rootEl.classList.contains(this.config.multiselectClass)&&(this.config.isMultiselect=!0),this.elements.searchInput&&(this.config.hasSearch=!0),this.store={selectedValues:[],initialLabel:this.elements.label.getAttribute("data-initialtext"),panelOpen:!1,typeahead:"",search:"",optionSearchValues:[],delayChangeEvent:!1}
1,this.elements.inputs.forEach((t=>{const e=this.setInputValue(t);this.store.optionSearchValues.push(e)})),this.store.fuzzySearch=new ce(this.store.optionSearchValues,["value","title"],{caseSensitive:!1}),this.init()}init(){this.handleInitialLoad(),this.handleDisclosureTrigger(),this.handlePanelEvents(),this.handleInputs(),this.config.hasSearch&&this.handleSearch(),this.elements.clearButton&&this.handleClearButton()}handleDisclosureTrigger(){this.elements.trigger.addEventListener("click",(()=>{this.store.panelOpen?this.closePanel():this.openPanel()})),document.addEventListener("click",(t=>{this.store.panelOpen&&!t.target.closest(`#${this.elements.rootElID}`)&&this.closePanel()}))}closePanel(){this.elements.panel.setAttribute("aria-hidden","true"),this.elements.rootEl.classList.remove(this.config.animateClass),setTimeout((()=>{this.elements.rootEl.classList.remove(this.config.openClass)}),this.config.animateDelay),this.store.panelOpen=!1}openPanel(){this.elements.clearButton&&(this.store.selectedValues.length>0?this.elements.clearButton.classList.add(this.config.showClearButtonClass):this.elements.clearButton.classList.remove(this.config.showClearButtonClass)),this.elements.panel.setAttribute("aria-hidden","false"),this.elements.rootEl.classList.add(this.config.openClass),setTimeout((()=>{this.elements.rootEl.classList.add(this.config.animateClass)}),1),this.store.panelOpen=!0}handlePanelEvents(){this.elements.panel.addEventListener("keydown",(t=>{"Escape"===t.code?(this.closePanel(),this.elements.trigger.focus()):"Backspace"!==t.code&&"Delete"!==t.code||this.config.hasSearch&&this.focusedEl===this.config.searchInput||(this.store.typeahead=this.store.typeahead.slice(0,-1),this.handleTypeAheadValue())})),this.elements.panel.addEventListener("keypress",(t=>{if(t.target.closest(`.${this.config.searchInputClass}`))return!1;this.handleTypeAhead(t)}))}handleInputs(){this.elements.inputs.forEach((t=>{"radio"===t.type&&t.addEventListener("click",(()=>{t.checked&&(t.hasAttribute("data-checked")?(t.removeAttribute("data-checked"),t.checked=!1,t.dispatchEvent(new Event("change"))):t.setAttribute("data-checked",""))})),t.addEventListener("change",(()=>{if(this.store.delayChangeEvent)return;const e=this.setInputValue(t);this.config.isMultiselect?t.checked?this.store.selectedValues.push(e):this.store.selectedValues=this.store.selectedValues.filter((e=>e.value!==t.value)):(this.store.selectedValues=[],t.checked&&this.store.selectedValues.push(e)),this.updateValues()}))}))}setInputValue(t){return{value:t.value,title:t.getAttribute("data-title")}}updateValues(){const t=new Event("change");if("value-title"===this.config.valueType)0===this.store.selectedValues.length?this.elements.rootEl.value="":this.elements.rootEl.value=this.store.selectedValues;else if("array"===this.config.valueType)if(0===this.store.selectedValues.length)this.elements.rootEl.value=[];else{let t=[];this.store.selectedValues.forEach((e=>{t.push(e.value)})),this.elements.rootEl.value=t}else if(0===this.store.selectedValues.length)this.elements.rootEl.value="";else{let t="";this.store.selectedValues.forEach(((e,i)=>{t+=`${i>0?",":""}${e.value}`})),this.elements.rootEl.value=t}if(this.store.selectedValues.length>0){let t="";this.store.selectedValues.forEach(((e,i)=>{t+=`${i>0?", ":""}${e.title}`})),this.elements.label.textContent=t,this.elements.trigger.title=`${this.store.initialLabel}: ${t}`,this.elements.rootEl.classList.add(this.config.hasSelectionsClass)}else this.elements.label.textContent=this.store.initialLabel,this.elements.trigger.title=this.store.initialLabel,this.elements.rootEl.classList.remove(this.config.hasSelectionsClass);this.elements.rootEl.dispatchEvent(t)}
1handleTypeAhead(t){if(!("Enter"===t.code||"Space"===t.code&&"INPUT"===document.activeElement.tagName||document.activeElement&&document.activeElement.classList.contains(this.config.searchInputClass))&&1==t.key.length){let e=String.fromCharCode(t.keyCode);this.store.typeahead=this.store.typeahead+e,this.handleTypeAheadValue()}}handleTypeAheadValue(){const t=this.store.fuzzySearch.search(this.store.typeahead);if(t.length>0){const e=this.elements.panel.querySelector(`input[value="${t[0].value}"]`);e&&e.focus()}}handleSearch(){this.elements.searchInput.addEventListener("keyup",(t=>{if("Enter"===t.code&&t.preventDefault(),this.store.search=this.elements.searchInput.value,console.log(this.elements.searchInput.value),""===this.store.search)this.elements.items.forEach((t=>this.handleShowItem(t))),this.elements.rootEl.classList.remove(this.config.searchInputActiveClass),this.handleHideItem(this.elements.searchNoResults);else{const t=this.store.fuzzySearch.search(this.store.search);if(this.elements.rootEl.classList.add(this.config.searchInputActiveClass),t.length<=0)this.elements.items.forEach((t=>{t.querySelector("input").checked?this.handleShowItem(t):this.handleHideItem(t)})),this.handleShowItem(this.elements.searchNoResults);else{const e=t.map((t=>t.value.toString()));this.handleHideItem(this.elements.searchNoResults),this.elements.items.forEach((t=>{const i=t.querySelector("input"),n=i.value;i.checked||e.includes(n)?this.handleShowItem(t):this.handleHideItem(t)}))}}})),this.elements.searchInput.addEventListener("focus",(()=>{this.elements.rootEl.classList.add(this.config.searchInputFocusClass),""==this.elements.searchInput.value?this.elements.rootEl.classList.remove(this.config.searchInputActiveClass):this.elements.rootEl.classList.add(this.config.searchInputActiveClass),setTimeout((()=>{this.elements.searchInput.selectionStart=this.elements.searchInput.selectionEnd=1e4}),0)})),this.elements.searchInput.addEventListener("blur",(()=>{this.elements.rootEl.classList.remove(this.config.searchInputFocusClass),""==this.elements.searchInput.value?this.elements.rootEl.classList.remove(this.config.searchInputActiveClass):this.elements.rootEl.classList.add(this.config.searchInputActiveClass)}))}handleShowItem(t){t.classList.remove(this.config.searchHiddenItemClass)}handleHideItem(t){t.classList.add(this.config.searchHiddenItemClass)}handleClearButton(){const t=document.getElementById("js-report-card-clear");t&&t.addEventListener("click",(()=>{this.store.selectedValues.length>0&&(this.store.delayChangeEvent=!0,this.elements.inputs.forEach((t=>t.checked=!1)),this.store.selectedValues=[],this.updateValues(),this.store.delayChangeEvent=!1)})),this.elements.clearButton.addEventListener("click",(()=>{this.store.selectedValues.length>0&&(this.store.delayChangeEvent=!0,this.elements.inputs.forEach((t=>t.checked=!1)),this.store.selectedValues=[],this.updateValues(),this.store.delayChangeEvent=!1)}))}handleInitialLoad(){this.store.delayChangeEvent=!0,this.elements.inputs.forEach((t=>{if(t.checked){const e=this.setInputValue(t);this.store.selectedValues.push(e)}})),this.updateValues(),this.store.delayChangeEvent=!1}}var ue={exports:{}};!function(t,e){t.exports=function(){var t=1e3,e=6e4,i=36e5,n="millisecond",s="second",o="minute",a="hour",r="day",l="week",h="month",c="quarter",d="year",u="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,_={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],i=t%100;return"["+t+(e[(i-20)%10]||e[i]||e[0])+"]"}},g=function(t,e,i){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(i)+t},v={s:g,z:function(t){var e=-t.utcOffset(),i=Math.abs(e),n=Math.floor(i/60),s=i%60;return(e<=0?"+":"-")+g(n,2,"0")+":"+g(s,2,"0")},m:function t(e,i){if(e.date()<i.date())return-t(i,e);var n=12*(i.year()-e.year())+(i.month()-e.month()),s=e.clone().add(n,h),o=i-s<0,a=e.clone().add(n+(o?-1:1),h);return+(-(n+(i-s)/(o?s-a:a-s))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:h,y:d,w:l,d:r,D:u,h:a,m:o,s:s,ms:n,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",b={};b[y]=_;var w="$isDayjsObject",L=function(t){return t instanceof S||!(!t||!t[w])},x=function t(e,i,n){var s;if(!e)return y;if("string"==typeof e){var o=e.toLowerCase();b[o]&&(s=o),i&&(b[o]=i,s=o);var a=e.split("-");if(!s&&a.length>1)return t(a[0])}else{var r=e.name;b[r]=e,s=r}return!n&&s&&(y=s),s||!n&&y},C=function(t,e){if(L(t))return t.clone();var i="object"==typeof e?e:{};return i.date=t,i.args=arguments,new S(i)},E=v;E.l=x,E.i=L,E.w=function(t,e){return C(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function _(t){this.$L=x(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[w]=!0}var g=_.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,i=t.utc;if(null===e)return new Date(NaN);if(E.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(m);if(n){var s=n[2]-1||0,o=(n[7]||"0").substring(0,3);return i?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(e)}(t),this.init()},g.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},g.$utils=function(){return E},g.isValid=function(){return!(this.$d.toString()===p)},g.isSame=function(t,e){var i=C(t);return this.startOf(e)<=i&&i<=this.endOf(e)},g.isAfter=function(t,e){return C(t)<this.startOf(e)},g.isBefore=function(t,e){return this.endOf(e)<C(t)}
vendor: 5,131 bytes, line 1
1,g.$g=function(t,e,i){return E.u(t)?this[e]:this.set(i,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,e){var i=this,n=!!E.u(e)||e,c=E.p(t),p=function(t,e){var s=E.w(i.$u?Date.UTC(i.$y,e,t):new Date(i.$y,e,t),i);return n?s:s.endOf(r)},m=function(t,e){return E.w(i.toDate()[t].apply(i.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),i)},f=this.$W,_=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(c){case d:return n?p(1,0):p(31,11);case h:return n?p(1,_):p(0,_+1);case l:var y=this.$locale().weekStart||0,b=(f<y?f+7:f)-y;return p(n?g-b:g+(6-b),_);case r:case u:return m(v+"Hours",0);case a:return m(v+"Minutes",1);case o:return m(v+"Seconds",2);case s:return m(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(t){return this.startOf(t,!1)},g.$set=function(t,e){var i,l=E.p(t),c="set"+(this.$u?"UTC":""),p=(i={},i[r]=c+"Date",i[u]=c+"Date",i[h]=c+"Month",i[d]=c+"FullYear",i[a]=c+"Hours",i[o]=c+"Minutes",i[s]=c+"Seconds",i[n]=c+"Milliseconds",i)[l],m=l===r?this.$D+(e-this.$W):e;if(l===h||l===d){var f=this.clone().set(u,1);f.$d[p](m),f.init(),this.$d=f.set(u,Math.min(this.$D,f.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},g.set=function(t,e){return this.clone().$set(t,e)},g.get=function(t){return this[E.p(t)]()},g.add=function(n,c){var u,p=this;n=Number(n);var m=E.p(c),f=function(t){var e=C(p);return E.w(e.date(e.date()+Math.round(t*n)),p)};if(m===h)return this.set(h,this.$M+n);if(m===d)return this.set(d,this.$y+n);if(m===r)return f(1);if(m===l)return f(7);var _=(u={},u[o]=e,u[a]=i,u[s]=t,u)[m]||1,g=this.$d.getTime()+n*_;return E.w(g,this)},g.subtract=function(t,e){return this.add(-1*t,e)},g.format=function(t){var e=this,i=this.$locale();if(!this.isValid())return i.invalidDate||p;var n=t||"YYYY-MM-DDTHH:mm:ssZ",s=E.z(this),o=this.$H,a=this.$m,r=this.$M,l=i.weekdays,h=i.months,c=i.meridiem,d=function(t,i,s,o){return t&&(t[i]||t(e,n))||s[i].slice(0,o)},u=function(t){return E.s(o%12||12,t,"0")},m=c||function(t,e,i){var n=t<12?"AM":"PM";return i?n.toLowerCase():n};return n.replace(f,(function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return E.s(e.$y,4,"0");case"M":return r+1;case"MM":return E.s(r+1,2,"0");case"MMM":return d(i.monthsShort,r,h,3);case"MMMM":return d(h,r);case"D":return e.$D;case"DD":return E.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return d(i.weekdaysMin,e.$W,l,2);case"ddd":return d(i.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(o);case"HH":return E.s(o,2,"0");case"h":return u(1);case"hh":return u(2);case"a":return m(o,a,!0);case"A":return m(o,a,!1);case"m":return String(a);case"mm":return E.s(a,2,"0");case"s":return String(e.$s);case"ss":return E.s(e.$s,2,"0");case"SSS":return E.s(e.$ms,3,"0");case"Z":return s}return null}(t)||s.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,u,p){var m,f=this,_=E.p(u),g=C(n),v=(g.utcOffset()-this.utcOffset())*e,y=this-g,b=function(){return E.m(f,g)};switch(_){case d:m=b()/12;break;case h:m=b();break;case c:m=b()/3;break;case l:m=(y-v)/6048e5;break;case r:m=(y-v)/864e5;break;case a:m=y/i;break;case o:m=y/e;break;case s:m=y/t;break;default:m=y}return p?m:E.a(m)},g.daysInMonth=function(){return this.endOf(h).$D},g.$locale=function(){return b[this.$L]},g.locale=function(t,e){if(!t)return this.$L;var i=this.clone(),n=x(t,e,!0);return n&&(i.$L=n),i},g.clone=function(){return E.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},_}(),T=S.prototype;return C.prototype=T,[["$ms",n],["$s",s],["$m",o],["$H",a],["$W",r],["$M",h],["$y",d],["$D",u]].forEach((function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),C.extend=function(t,e){return t.$i||(t(e,S,C),t.$i=!0),C},C.locale=x,C.isDayjs=L,C.unix=function(t){return C(1e3*t)},C.en=b[y],C.Ls=b,C.p={},C}()}(ue);var pe=Et(ue.exports);function me(t,e){const i=e.baseClass+"__nav",n=e.baseClass+"__help",s=e.baseClass+"--"+Math.floor(4e3*Math.random()+1e3),o=e.navTitle?e.navTitle:"Calendar Navigation",a=e.dialogCloseTitle?e.dialogCloseTitle:"Close",r=!!e.dialogCloseLabel&&e.dialogCloseLabel,l=e.instructionsBefore?e.instructionsBefore:"",h=e.instructionsAfter?e.instructionsAfter:"";let c,d=e.prevTitle?e.prevTitle?e.prevTitle:"❮":"",u=e.nextTitle?e.nextTitle?e.nextTitle:"❮":"",p=e.prevLabel?e.prevLabel?e.prevLabel:"Previous month":"",m=e.nextLabel?e.nextLabel?e.nextLabel:"Next month":"";if(e.useSelects)c=`<div class="${i}-title ${i}-title--selects">\n      <div class="${i}-select">\n        <select class="js-cal-month" aria-label="month">\n        </select>\n      </div>\n      <div class="${i}-select">\n        <select class="js-cal-year" aria-label="year">\n        </select>\n      </div>\n    </div>`;else{const t=pe().set("month",e.displayDate.$M).set("year",e.displayDate.$y);c=`<div class="${i}-title">
1\n        <span class="visually-hidden u-sr-only">Current month&nbsp;</span>\n        ${e.useMonthButton?'<button type="button" ':"<span "}\n          class="${i}-current-title js-date-header-title"           data-month="${e.displayDate.$M}"\n          data-year="${e.displayDate.$y}"\n          data-first="${t.startOf("month").format("MMMM D, YYYY")}"\n          data-last="${t.endOf("month").format("MMMM D, YYYY")}"\n        >\n          ${t.format("MMMM YYYY")}\n        ${e.useMonthButton?"</button>":"</span>"}\n      </div>`}const f=`<div class="${e.baseClass}__wrapper">\n      <nav aria-label="${o}" class="${i}">\n        ${c}\n        <div class="${i}--month-buttons">\n          <button class="${i}-button ${i}-button--prev js-cal-previous" type="button" aria-label="${p}">${d}</button>\n          <button class="${i}-button ${i}-button--next js-cal-next" type="button" aria-label="${m}">${u}</button>\n        </div>\n      </nav>\n\n      <div class="mini-cal__grid">\n\n        <div class="${n}">\n          <button id="${s}" type="button" class="${n}-trigger js-cal-help-trigger" aria-label="Keyboard shortcuts">Keyboard Shortcuts</button>\n        </div>\n\n        <div class="${e.baseClass}__row mini-cal__days js-cal-days" aria-hidden="true">\n          <span class="${e.baseClass}__item ${e.baseClass}__day-title">Su</span>\n          <span class="${e.baseClass}__item ${e.baseClass}__day-title">Mo</span>\n          <span class="${e.baseClass}__item ${e.baseClass}__day-title">Tu</span>\n          <span class="${e.baseClass}__item ${e.baseClass}__day-title">We</span>\n          <span class="${e.baseClass}__item ${e.baseClass}__day-title">Th</span>\n          <span class="${e.baseClass}__item ${e.baseClass}__day-title">Fr</span>\n          <span class="${e.baseClass}__item ${e.baseClass}__day-title">Sa</span>\n        </div>\n\n        <section class="${e.baseClass}__dates js-cal-dates" aria-label="Calendar dates" role="application">\n        </section>\n\n      </div>\n\n\n      <span class="u-sr-only js-cal-updates" aria-live="assertive"></span>\n    </div>`;t.innerHTML=f;let _=`<div id="${s}" class="${n}-dialog js-cal-help-dialog" role="dialog" aria-modal="false" aria-labelledby="${s}" aria-hidden="true" tabindex="-1">\n      ${l}\n      <p tabindex="-1">The following keyboard shortcuts are available:</p>\n      <ul>\n        <li><kbd>LEFT</kbd> / <kbd>RIGHT</kbd> to move day to day.</li>\n        <li><kbd>UP</kbd> / <kbd>DOWN</kbd> to move week to week.</li>\n        <li><kbd>HOME</kbd> to move to the first day of the month.</li>\n        <li><kbd>END</kbd> to move to the last day of the month.</li>\n        <li><kbd>PAGE UP</kbd> to move to the same day in the previous month.</li>\n        <li><kbd>PAGE DOWN</kbd> to move to the same day in the next month.</li>\n        <li><kbd>SPACE</kbd> to select a date.</li>\n      </ul>\n      ${h}\n      <button class="${n}-close js-cal-help-close" type="button"${r?' aria-label="'+r+'"':""}>${a}</button>\n    </div>`,g=document.createElement("div");g.innerHTML=_,g.classList.add(n+"-dialog-wrapper"),document.body.appendChild(g)}class fe{constructor(t){this.calendar=t.el,this.prevButton=t.el.querySelector(".js-cal-previous"),this.nextButton=t.el.querySelector(".js-cal-next"),this.monthSelect=t.el.querySelector(".js-cal-month"),this.yearSelect=t.el.querySelector(".js-cal-year"),this.calendarPlainTitle=t.el.querySelector(".js-date-header-title"),this.calendarSection=t.el.querySelector(".js-cal-dates"),this.calendarHelpTrigger=t.el.querySelector(".js-cal-help-trigger"),this.calendarHelpDialog=document.querySelector(".js-cal-help-dialog"),this.calendarHelpClose=document.querySelector(".js-cal-help-close"),this.calendarUpdates=t.el.querySelector(".js-cal-updates"),this.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"],this.calItemClass=t.baseClass+"__item",this.initialDate=t.intiialDate,this.eventDates=!1,this.markActiveDate=!1,this.selectedDate=!1,this.selectedMonth=!1,this.events={prev:new Event("mini-cal-previous"),next:new Event("mini-cal-next"),change:new Event("mini-cal-ui-update"),date:new Event("mini-cal-date-selected")},delete t.el,this.config=t,this.config.useSelects&&this.populateSelects(),this.config.fetchEndpoint?fetch(this.config.fetchEndpoint).then((t=>t.json())).then((t=>{"success"===t.status&&(this.eventDates=t),this.handleEvents(),this.updateUI(!0,this.config.displayDate)})).catch((t=>{console.error("Error fetching event API",t),this.handleEvents(),this.updateUI(!0,this.config.displayDate)})):(this.handleEvents(),this.updateUI(!0,this.config.displayDate)),window.addEventListener("mini-cal-reset-initial",this.resetInitialView.bind(this)),this.calendar.setMarkActiveDate=this.handleSetMarkActiveDate.bind(this),this.calendar.removeMarkActiveDate=this.handleRemoveMarkActiveDate.bind(this),this.calendar.removeSelectedDate=this.handleRemoveSelectedDate.bind(this)}handleSetMarkActiveDate(t){this.markActiveDate=pe(t),this.updateUI()}handleRemoveMarkActiveDate(){this.markActiveDate=!1,this.updateUI()}
1handleRemoveSelectedDate(){this.selectedDate=!1,this.updateUI()}populateSelects(){const t=this.yearSelect.options.length,e=this.config.displayDate.$y,i=this.config.yearOptsPast?this.config.displayDate.$y-10:e;for(let e=0;e<t;e++)this.yearSelect.options[e]=null;for(let t=i;t<e+10;t++){let i=document.createElement("option");i.value=t,i.innerHTML=t,i.selected=t===e?"selected":"",this.yearSelect.appendChild(i)}let n;n="num"===this.config.navMonthFormat?["1","2","3","4","5","6","7","8","9","10","11","12"]:"abbr"===this.config.navMonthFormat?["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"]:typeof this.config.navMonthFormat===Array?this.config.navMonthFormat:this.monthNames;const s=this.monthSelect.options.length,o=this.config.displayDate.$M;for(let t=0;t<s;t++)this.monthSelect.options[t]=null;n.forEach(((t,e)=>{let i=document.createElement("option");i.value=e,i.innerHTML=t,this.monthSelect.appendChild(i),e===o&&(this.monthSelect.options[e].selected="selected")}))}handleEvents(){this.config.useSelects&&(this.monthSelect.addEventListener("change",(()=>{this.updateUI()})),this.yearSelect.addEventListener("change",(()=>{this.updateUI()}))),this.prevButton.addEventListener("click",(()=>{this.previousMonth()})),this.nextButton.addEventListener("click",(()=>{this.nextMonth()})),this.calendarSection.addEventListener("click",(t=>{this.handleDateClickEvent(t)})),this.calendarSection.addEventListener("keydown",(t=>{this.handleDateKeydownEvent(t)})),this.calendarHelpTrigger.addEventListener("click",(()=>{this.showDialog()})),this.calendarHelpClose.addEventListener("click",(()=>{this.closeDialog()})),this.config.useMonthButton&&this.calendarPlainTitle.addEventListener("click",(t=>{this.handleMonthClickEvent(t)}))}getIndex(t,e,i){return(t+e+i)%e}getPlainTitleMonth(){return parseInt(this.calendarPlainTitle.getAttribute("data-month"),10)}getPlainTitleYear(){return parseInt(this.calendarPlainTitle.getAttribute("data-year"),10)}setPlainTitle(t,e){const i=pe().set("month",t).set("year",e),n="MMMM D, YYYY";this.calendarPlainTitle.setAttribute("data-month",t),this.calendarPlainTitle.setAttribute("data-year",e),this.calendarPlainTitle.setAttribute("data-first",i.startOf("month").format(n)),this.calendarPlainTitle.setAttribute("data-last",i.endOf("month").format(n)),this.calendarPlainTitle.innerHTML=`${pe().month(t).format("MMMM")} ${pe().year(e).format("YYYY")}`}getDisplayedMonth(){return this.config.useSelects?pe(new Date(this.yearSelect.item(this.yearSelect.selectedIndex).value,this.monthSelect.selectedIndex,"1")):pe(new Date(this.calendarPlainTitle.getAttribute("data-year"),this.calendarPlainTitle.getAttribute("data-month"),"1"))}getFirstDate(){var t=this.calendarSection.querySelectorAll("button."+this.calItemClass);t=[].slice.call(t);for(let e=0;e<t.length;e++)if(!t[e].classList.contains(this.calItemClass+"--empty")&&!t[e].disabled)return t[e];return!1}getLastDate(){var t=this.calendarSection.querySelectorAll("button."+this.calItemClass);t=(t=[].slice.call(t)).reverse();for(let e=0;e<t.length;e++)if(!t[e].classList.contains(this.calItemClass+"--empty")&&!t[e].disabled)return t[e];return!1}announce(t){this.setText(this.calendarUpdates,t),setTimeout((()=>{this.setText(this.calendarUpdates,"")}),1e3)}setText(t,e){let i=t.firstChild;i&&!i.nextSibling&&3===i.nodeType?i.data=e:t.textContent=e}showDialog(){document.body.classList.add(this.config.baseClass+"__dialog-open"),this.calendar.classList.add(this.config.baseClass+"__dialog-open"),this.calendarHelpDialog.setAttribute("aria-hidden","false"),this.calendarHelpDialog.setAttribute("aria-modal","true"),this.calendarHelpDialog.firstElementChild.focus(),this.calendarHelpDialog.addEventListener("keydown",(t=>{this.onDialogKeydown(t)})),this.calendarHelpDialog.addEventListener("click",(()=>{this.onDialogUx})),document.documentElement.setAttribute("tabindex","-1"),document.addEventListener("focus",(()=>{this.onDialogUx}),!0)}closeDialog(){this.calendar.classList.remove(this.config.baseClass+"__dialog-open"),this.calendarHelpDialog.removeEventListener("keydown",(()=>{this.onDialogKeydown})),this.calendarHelpDialog.removeEventListener("click",(()=>{this.onDialogUx})),document.removeEventListener("focus",(()=>{this.onDialogUx}),!0),document.body.classList.remove(this.config.baseClass+"__dialog-open"),document.documentElement.removeAttribute("tabindex"),this.calendarHelpDialog.setAttribute("aria-hidden","true"),this.calendarHelpDialog.setAttribute("aria-modal","false"),this.calendarHelpTrigger.focus()}onDialogKeydown(t){const e=t.target;"Escape"!==t.key?"Tab"===t.key&&(event.shiftKey&&e===this.calendarHelpDialog?(event.preventDefault(),this.calendarHelpClose.focus()):e===this.calendarHelpClose&&(event.preventDefault(),this.calendarHelpDialog.focus())):this.closeDialog()}updateUI(t=!1){this.calendar.classList.add(this.config.baseClass+"--active-render");let e,i,n,s,o,a="Previous Month, ",r="Next month, ";if(this.config.useSelects)e=this.getIndex(this.monthSelect.selectedIndex,this.monthSelect.length,-1),i=e===this.monthSelect.length-1?this.yearSelect.selectedIndex-1:this.yearSelect.selectedIndex,n=this.getIndex(this.monthSelect.selectedIndex,this.monthSelect.length,1),s=0===n?this.yearSelect.selectedIndex+1:this.yearSelect.selectedIndex,a+=`${pe().month(e).format("MMMM")} ${this.yearSelect.item(i).value}`,r+=`${pe().month(n).format("MMMM")} ${this.yearSelect.item(s).value}`,o=`${this.monthSelect.value} ${this.yearSelect.value}`;else{let t=this.getPlainTitleMonth(),l=this.getPlainTitleYear();e=t-1<0?11:t-1,i=11===e?l-1:l,n=t+1>11?0:t+1,s=0===n?l+1:l,a+=`${pe().month(e).format("MMMM")}
1 ${pe().year(i).format("YYYY")}`,r+=`${pe().month(n).format("MMMM")} ${pe().year(s).format("YYYY")}`,o=`${pe().month(t).format("MMMM")} ${pe().year(l).format("YYYY")}`}0===e&&0===i?this.prevButton.disabled=!0:(this.prevButton.disabled=!1,this.prevButton.setAttribute("aria-label",a)),this.nextButton.setAttribute("aria-label",r),!t&&this.config.announceChanges&&this.announce(o),this.renderDates(this.getDisplayedMonth()),this.calendar.classList.contains(this.config.baseClass+"--rendered")||this.calendar.classList.add(this.config.baseClass+"--rendered")}renderDates(t){let e=pe(t).startOf("month").startOf("week").subtract(1,"day"),i=pe(t).endOf("month").endOf("week").subtract(1,"day"),n=pe().set("hour",0).set("minute",0).set("second",0).set("millisecond",0),s=[],o=t,a=!!this.config.currentDate&&pe(this.config.currentDate);for(;e.isBefore(i);)s.push(Array(7).fill(0).map((()=>(e=e.add(1,"day"),e))));let r=s.reduce(((t,e)=>{let i=e.reduce(((t,e)=>(e=e.set("hour",0).set("minute",0).set("second",0).set("millisecond",0)).$M!==o.$M?`${t}<span class="${this.calItemClass} ${this.calItemClass}--empty"></span>`:`${t}${function(t,e,i,n,s,o=!1,a=!1,r=!1){const l=function(t,e){if(!e)return!1;if(e.data[t.$y]){let i=t.$M+1;if(i=i<10?"0"+i:i,e.data[t.$y][i]&&e.data[t.$y][i].includes(t.$D))return!0}return!1}(t,o),h=t.isSame(i),c=t.isSame(a),d=t.isBefore(i);let u,p;return u=!!n&&t.$y===n.$y&&t.$M===n.$M&&t.$D===n.$D,p=!!r&&t.$y===r.$y&&t.$M===r.$M&&t.$D===r.$D,`<button\n            class="${s} ${s}--day ${s+"--active"} ${l?s+"--event-scheduled":""} ${h?s+"--current":""} ${c?s+"--marked":""} ${d?s+"--past":""} ${u||p?s+"--selected":""}"\n            type="button"\n            aria-pressed="${u}"\n            aria-label="${pe(t).format("D, dddd MMMM YYYY")}${l?", events scheduled":""}"\n            data-announcelabel="${pe(t).format("dddd MMMM D, YYYY")}"\n            ${h?'aria-current="date"':""}\n            ${u||h?"":'tabindex="-1"'}\n            ${l?`data-EventDate="${l.label}"`:""}\n            data-timestamp="${t.unix()}">\n              <span>${t.$D}</span>\n          </button>`}(e,0,n,this.selectedDate,this.calItemClass,this.eventDates,this.markActiveDate,a)}`),"");return`${t}<div class="${this.config.baseClass}__row">${i}</div>`}),"");this.calendarSection.innerHTML="",this.calendarSection.insertAdjacentHTML("beforeEnd",r),this.config.onRenderDates&&"function"==typeof this.config.onRenderDates&&this.config.onRenderDates(this.calendar,t),window.dispatchEvent(this.events.change);let l=this.calendarSection.querySelector(`.${this.calItemClass}--selected, .${this.calItemClass}--selected`);l||(l=this.calendarSection.querySelector(`.${this.calItemClass}:not(.${this.calItemClass}--empty)`),l&&l.hasAttribute("tabindex")&&l.removeAttribute("tabindex")),this.calendar.classList.remove(this.config.baseClass+"--active-render")}previousMonth(){if(this.config.useSelects){const t=this.getIndex(this.monthSelect.selectedIndex,this.monthSelect.length,-1);this.monthSelect.selectedIndex=t,t===this.monthSelect.length-1&&(this.yearSelect.selectedIndex-=1)}else{let t=this.getPlainTitleMonth(),e=this.getPlainTitleYear(),i=t-1<0?11:t-1,n=11===i?e-1:e;this.setPlainTitle(i,n)}this.updateUI(),window.dispatchEvent(this.events.prev)}nextMonth(){if(this.config.useSelects){let t=this.getIndex(this.monthSelect.selectedIndex,this.monthSelect.length,1);this.monthSelect.selectedIndex=t,0===t&&(this.yearSelect.selectedIndex+=1)}else{let t=this.getPlainTitleMonth(),e=this.getPlainTitleYear(),i=t+1>11?0:t+1,n=0===i?e+1:e;this.setPlainTitle(i,n)}this.updateUI(),window.dispatchEvent(this.events.next)}selectDate(t){const e=t.getAttribute("data-timestamp");if(this.selectedDate=pe.unix(e),this.updateUI(),this.config.announceChanges&&(this.config.fetchEndpoint?t.classList.contains("mini-cal__item--current")&&t.classList.contains("mini-cal__item--selected")||(t.classList.contains(this.calItemClass+"--event-scheduled")?this.announce(`Displaying events on ${t.getAttribute("data-announcelabel")}`):this.announce(`No events to display for ${t.getAttribute("data-announcelabel")}`)):this.announce(`Displaying events on ${t.getAttribute("data-announcelabel")}`)),this.config.onDateSelect&&"function"==typeof this.config.onDateSelect){let i={"mm/dd/yyyy":this.selectedDate.format("MM/DD/YYYY"),"M_d,_yyyy":this.selectedDate.format("MMMM D, YYYY"),"yyyy-mm-dd_HH:MM:SS":this.selectedDate.format("YYYY-MM-DD HH:mm:ss"),"yyyy-mm-dd":this.selectedDate.format("YYYY-MM-DD"),unix:e};this.config.onDateSelect(this.calendar,t,i)}window.dispatchEvent(this.events.date)}selectMonth(t){const e=this.calendarSection.querySelector('[aria-pressed="true"]');
1e&&(e.setAttribute("aria-pressed","false"),e.setAttribute("tabindex","-1"),e.classList.remove(this.calItemClass+"--selected")),t.setAttribute("aria-pressed","true"),t.removeAttribute("tabindex"),t.classList.add(this.calItemClass+"--selected"),this.selectedDate=!1,this.updateUI();const i={},n=t.getAttribute("data-first"),s=t.getAttribute("data-last");if(n){const t=pe(n);i.start={"mm/dd/yyyy":t.format("MM/DD/YYYY"),"M_d,_yyyy":t.format("MMMM D, YYYY"),"yyyy-mm-dd_HH:MM:SS":t.format("YYYY-MM-DD HH:mm:ss"),"yyyy-mm-dd":t.format("YYYY-MM-DD"),unix:t.unix}}if(s){const t=pe(s);i.end={"mm/dd/yyyy":t.format("MM/DD/YYYY"),"M_d,_yyyy":t.format("MMMM D, YYYY"),"yyyy-mm-dd_HH:MM:SS":t.format("YYYY-MM-DD HH:mm:ss"),"yyyy-mm-dd":t.format("YYYY-MM-DD"),unix:t.unix}}this.config.onMonthSelect&&"function"==typeof this.config.onMonthSelect&&this.config.onMonthSelect(this.calendar,t,i),window.dispatchEvent(this.events.date)}handleDateClickEvent(t){let e="SPAN"===t.target.tagName?t.target.closest("."+this.calItemClass):t.target;e&&e.classList.contains(this.calItemClass+"--active")&&this.selectDate(e)}handleMonthClickEvent(t){const e=t.target;e.classList.contains("js-date-header-title")&&this.selectMonth(e)}getRightButton(t){var e=t.nextElementSibling||t.parentElement.nextElementSibling.firstElementChild;return e.disabled&&(e=this.getRightButton(e)),e}getLeftButton(t){var e=t.previousElementSibling||t.parentElement.previousElementSibling.lastElementChild;return e.disabled&&(e=this.getRightButton(e)),e}getDownNextWeekInNextMonth(t){this.nextMonth();var e=[].slice.call(this.calendarSection.querySelectorAll(`.${this.config.baseClass}__row`));if(e[0]){var i=e[0].children.item(t);return"SPAN"===i.tagName?e[1].children.item(t):i}return!1}getUpPrevWeekInPrevMonth(t){this.previousMonth();var e=[].slice.call(this.calendarSection.querySelectorAll(`.${this.config.baseClass}__row`));if((e=e.reverse())[0]){var i=e[0].children.item(t);return"SPAN"===i.tagName?e[1].children.item(t):i}return!1}handleDateKeydownEvent(t){const e=t.target,i=t.key.replace("Arrow","");let n="";if(e.classList.contains(this.calItemClass)&&i.match(/Up|Down|Left|Right|Home|End|PageUp|PageDown/)){switch(i){case"Right":e===this.getLastDate()?(this.nextMonth(),n=this.getFirstDate()):n=this.getRightButton(e);break;case"Left":e===this.getFirstDate()?(this.previousMonth(),n=this.getLastDate()):n=this.getLeftButton(e);break;case"Up":if(e===this.getFirstDate())this.previousMonth(),n=this.getLastDate();else{const t=e.parentElement,i=Array.from(t.children).indexOf(e),s=t.previousElementSibling;n=s?"SPAN"===s.children.item(i).tagName?this.getUpPrevWeekInPrevMonth(i):s.children.item(i):this.getUpPrevWeekInPrevMonth(i)}break;case"Down":if(e===this.getLastDate())this.nextMonth(),n=this.getFirstDate();else{const t=e.parentElement,i=Array.from(t.children).indexOf(e),s=t.nextElementSibling;n=s?"SPAN"===s.children.item(i).tagName?this.getDownNextWeekInNextMonth(i):s.children.item(i):this.getDownNextWeekInNextMonth(i)}break;case"Home":n=this.getFirstDate();break;case"End":n=this.getLastDate();break;case"PageUp":case"PageDown":"PageUp"===i?this.previousMonth():this.nextMonth(),n=Array.from(this.calendarSection.querySelectorAll("."+this.calItemClass)).find((t=>t.textContent===e.textContent))}t.preventDefault(),n?n.focus():this.announce("Calendar boundary. Try another directional key.")}}resetInitialView(){const t=this.calendarSection.querySelector('[aria-pressed="true"]');t&&(t.setAttribute("aria-pressed","false"),t.setAttribute("tabindex","-1"),t.classList.remove(this.calItemClass+"--selected")),this.config.initialDate?this.markActiveDate=pe(this.config.initialDate):this.markActiveDate=pe(),this.updateUI}}const _e={setParams:[],taxonomies:[],weekOf:""};function ge(t=!1,e=!1){t&&(_e.setParams=_e.setParams.filter((e=>e.param!==t.param)),t.value&&_e.setParams.push(t)),e&&(_e.setParams=_e.setParams.filter((t=>t.param!==e)));if(_e.setParams.filter((t=>"day-of"==t.param)).length<=0){const t=window.location.search;if(!new URLSearchParams(t).get("week-of")){const t=document.getElementById("week-of-placeholder");if(t){const e=t.getAttribute("data-weekof");_e.setParams.push({param:"week-of",value:e}),_e.weekOf=e}}}else _e.setParams=_e.setParams.filter((t=>"week-of"!==t.param));let i=!1;_e.setParams.length>
10&&(i="?",_e.setParams.forEach(((t,e)=>{e>0&&(i+="&"),i+=`${t.param}=${t.value}`}))),i?window.history.pushState(_e.setParams,"",i):window.history.replaceState({},"",location.pathname),function(){const t={checkDate:!1,now:!1,desc:!1,title:!1};_e.setParams.forEach((e=>{if("week-of"===e.param){const i=pe(e.value),n=i.format("dddd");t.now=pe().startOf("day").day(0).unix(),t.checkDate="Sunday"===n?i.unix():i.day(0).unix(),t.desc="Week of "+i.format("MMMM, D, YYYY")}if("day-of"===e.param){const i=pe(e.value);t.now=pe().startOf("day").unix(),t.checkDate=i.unix(),t.desc=i.format("MMMM, D, YYYY")}if("event_type"===e.param){const i=e.value.split(",");t.eType="",i.forEach(((e,i)=>{const n=document.querySelector(`option[value="${e}"]`);if(n){const e=0===i&&t.desc?"<br>":"",s=`${i>0?", ":`${e}Filtered by Event Types: `}${n.innerHTML}`;t.desc=t.desc?t.desc+s:s}}))}})),t.checkDate&&(t.now>t.checkDate?t.title="Past Events":t.title="Upcoming Events");if(t.desc){const e=document.getElementById("event-filters-desc");e&&(e.innerHTML=t.desc)}if(t.title){const e=document.getElementById("event-filters-title");e&&(e.innerHTML=t.title)}}(),window.dispatchEvent(new Event("ajax-wrapper-make-request"))}function ve(){document.querySelectorAll(".js-event-filter").forEach((t=>{const e=t.getAttribute("data-param");_e.taxonomies.push({param:e,value:!1});const i=_e.setParams.filter((t=>t.param==e));if(i.length>0&&"SELECT"===t.tagName){Array.from(t.options).find((t=>t.value===i[0].value)).selected=!0}t.addEventListener("change",(()=>{""==t.value||"all"==t.value?_e.taxonomies.forEach((t=>{t.param===e&&(t.value=!1)})):_e.taxonomies.forEach((i=>{i.param===e&&(i.value=t.value)})),_e.taxonomies.forEach((t=>{ge({param:t.param,value:t.value})}))}))}))}function ye(t,e,i){t.calToggle.classList.add("has-date"),t.clearDateBtn.classList.add("has-date"),t.dateLabel.innerHTML=e,t.dateInput.value=i}function be(t){const e=t.getAttribute("data-endpoint"),i=e||!1,n=_e.setParams.filter((t=>"day-of"==t.param)),s={dateInput:document.getElementById("event-filter-date"),dateLabel:document.querySelector(".c-event-filters__datepicker-toggle--date"),calToggle:document.querySelector(".c-event-filters__datepicker-toggle"),clearDateBtn:document.querySelector(".c-event-filters__datepicker-clear")};let o=!1;n.length>0&&n[0].value&&(o=pe(n[0].value),ye(s,o.format("MMMM D, YYYY"),o.format("YYYY-MM-DD"))),function(t,e={}){let i={baseClass:t.startsWith(".")?t.substr(1):"mini-cal",eventDates:!1,selectEventDatesOnly:!1,useDayHeaders:!0,dayHeaderFormat:"abbr",buttonLabelDateFormat:"D, Tuesday January 2019",useMonthButton:!1,onDateSelect:!1,onMonthSelect:!1,onRenderDates:!1,currentDate:!1,initialDate:!1,navMonthFormat:"full",yearOptsPast:!1,prevButtonContent:"",nextButtonContent:"",useSelects:!0,prevTitle:"❮",nextTitle:"❯",dialogCloseText:"Close",dialogCloseLabel:!1,navTitle:"Calendar Navigation",instructionsBefore:!1,instructionsAfter:!1,announceChanges:!0,fetchEndpoint:!1};"object"==typeof e&&null!==e&&(i={...i,...e}),i.displayDate=i.currentDate?pe(i.currentDate):pe();let n=!1;if(t.startsWith(".")){const e=document.querySelectorAll(t);e&&[].forEach.call(e,(t=>{let e=i;e.el=t,me(t,e),n=new fe(e)}))}else{const e=document.getElementById(t);let s=i;s.el=e,me(e,s),n=new fe(s)}}(".mini-cal",{useSelects:!1,fetchEndpoint:i,currentDate:o,prevTitle:'<svg width="17" height="30" viewBox="0 0 17 30" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 1L2 15L16 29" stroke="currentColor" stroke-width="1.5"/></svg>',nextTitle:'<svg width="17" height="31" viewBox="0 0 17 31" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.999998 30L15 15.5L1 1" stroke="currentColor" stroke-width="1.5"/></svg>',onDateSelect:(t,e,i)=>{console.log(i),ye(s,i["M_d,_yyyy"],i["yyyy-mm-dd"]),ge({param:"day-of",value:i["yyyy-mm-dd"]})}}),s.clearDateBtn.addEventListener("click",(()=>{var t;(t=s).calToggle.classList.remove("has-date"),t.clearDateBtn.classList.remove("has-date"),t.dateLabel.innerHTML="",t.dateInput.value="",window.dispatchEvent(new Event("mini-cal-reset-initial")),ge(!1,"day-of")}))}function we(){const t=document.getElementById("event-filter-mini-cal");if(!t)return!1;!function(){const t=window.location.search,e=new URLSearchParams(t).entries();for(const t of e)_e.setParams.push({param:t[0],value:t[1]})}(),ve(),be(t)}class Le{#t;constructor(t){return this.ajaxWrapper=t,this.ajaxForm=this.ajaxWrapper.querySelector(".js-ajax-wrapper-form"),this.ajaxResults=this.ajaxWrapper.querySelector(".js-ajax-wrapper-results"),this.announcer=this.ajaxWrapper.querySelector(".js-ajax-announcer"),this.ajaxResults?(this.resultsID=this.ajaxResults.getAttribute("id"),this.resultsID?(this.initAjaxEventName="ajax-wrapper-make-request",this.completeAjaxEventName="ajax-wrapper-request-complete",this.#t=this.#e.bind(this),this.ajaxForm&&(this.params={},this.handleForm(),this.handleFormInputs()),this.handleAjaxPagination(),void window.addEventListener(this.initAjaxEventName,(t=>{this.runAjaxRequest(t)}))):(console.error("Ajax results missing id"),!1)):(console.error("Ajax results container is missing"),!1)}runAjaxRequest(t,e=!1){e?this.useEndpoint=e:(this.htmlEndpoint=this.ajaxResults.getAttribute("data-htmlendpoint"),this.defaultEndpoint=window.location.href,this.useEndpoint=t?.detail?.endpointUrl?t.detail.endpointUrl:this.htmlEndpoint?this.htmlEndpoint:this.defaultEndpoint),this.showLoader(),fetch(this.useEndpoint).then((t=>t.text())).then((t=>{const e=(new DOMParser).parseFromString(t,"text/html").getElementById(this.resultsID);console.log(this.useEndpoint),window.history.pushState("","",this.useEndpoint),this.ajaxResults.innerHTML=e.innerHTML,e.hasAttribute("data-htmlendpoint")&&this.ajaxResults.setAttribute("data-htmlendpoint",e.getAttribute("data-htmlendpoint")),this.handleAjaxPagination(),this.hideLoader()})).catch((t=>{console.warn("An error occurred",t),this.hideLoader()}))}
1showLoader(){const t=this.ajaxWrapper.offsetHeight;this.ajaxWrapper.style.height=`${t}px`,this.ajaxWrapper.classList.add("is-loading"),document.body.classList.add("ajax-wrapper-loading");const e=this.ajaxWrapper.querySelector(".js-ajax-loader-title");e&&(e.focus(),window.addEventListener("keydown",this.#t)),this.announcer&&this.#i("Loading new results"),setTimeout((()=>{this.ajaxWrapper.classList.add("can-animate"),this.ajaxWrapper.scrollIntoView(!0,{behavior:"smooth"})}),1)}hideLoader(){this.ajaxWrapper.style.height=null,window.dispatchEvent(new Event("ajax-wrapper-request-complete")),this.ajaxWrapper.classList.remove("can-animate"),document.body.classList.add("ajax-wrapper-loading"),window.removeEventListener("keydown",this.#t);const t=this.ajaxResults.querySelectorAll("a");if(t.length)t[0].focus(),this.announcer&&this.#i(`${t.length} results have been updated`,!0);else{document.getElementById("ajax-wrapper-title").focus(),this.announcer&&this.#i("No results found",!0)}setTimeout((()=>{this.ajaxWrapper.classList.remove("is-loading")}),300)}#e(t){t.preventDefault()}#i(t,e=!1){this.announcer.innerHTML=`<p>${t}</p>`,e&&setTimeout((()=>{this.announcer.innerHTML=""}),3e3)}handleForm(){this.ajaxForm.addEventListener("submit",(t=>{t.preventDefault(),this.runAjaxRequest(t)}))}handleFormInputs(){this.ajaxForm.querySelectorAll(".js-ajax-wrapper-radio-single-url").forEach((t=>{this.handleSingleUrlInput(t)})),this.formWatchEls=this.ajaxForm.querySelectorAll(".js-ajax-form-watch"),this.formWatchEls.forEach((t=>{this.handleWatchInput(t)}))}handleSingleUrlInput(t){t.addEventListener("change",(()=>{document.querySelectorAll(".js-ajax-wrapper-radio-single-url").forEach((e=>{e.value===t.value?e.checked=!0:e.checked=!1}));const e=new CustomEvent(this.initAjaxEventName,{detail:{endpointUrl:t.value}});window.dispatchEvent(e)}))}handleWatchInput(t){if(!t.hasAttribute("data-param"))return;const e=t.getAttribute("data-param");t.addEventListener("change",(()=>{""===t.value?delete this.params[e]:this.params=ne({name:e,value:t.value},this.params,!0);const i=oe(this.params),n=location.pathname.replace(/\/page\/[0-9]+/,"");""===i?window.history.replaceState({ajaxForm:!0,params:this.params},"",n):(console.log(i),window.history.replaceState({ajaxForm:!0,params:this.params},"",n+i)),this.runAjaxRequest(null)}))}handleAjaxPagination(){if(this.ajaxPagination=this.ajaxResults.querySelector(".js-pagination"),this.ajaxPagination){this.ajaxPagination.querySelectorAll("a").forEach((t=>{t.addEventListener("click",(e=>{e.preventDefault(),this.runAjaxRequest(null,t.getAttribute("href"))}))}))}}}class xe{constructor(t){this.el=t,this.rootEndpoint=t.getAttribute("data-endpoint"),this.activeEndpoint=t.getAttribute("data-endpoint"),this.tableData=!1,this.handleInitialization()}handleInitialization(){this.requestData()}requestData(){fetch(this.activeEndpoint).then((t=>t.json())).then((t=>{if(404===t.status)console.error("No results found");else if(200===t.status){this.tableData=t.data;const i=this.tableData.rows;let n=[{title:"Community",field:"url",frozen:!0,formatter:"link",formatterParams:{labelField:"title"}},{title:"Report Card Grade",field:"grade",minWidth:150,sorter:function(t,e){if(t.length>0&&e.length>0){const i={"+":-1,"-":1,undefined:0};return t[0].localeCompare(e[0])||i[t[1]]-i[e[1]]}}},{title:"Historic Preservation Ordinance (150) / Honorary Ordinance (10)",field:"preservation_ordinance",maxWidth:240},{title:"Dedicated Historic Preservation Commission (5)",field:"preservation_commission",maxWidth:240},{title:"Dedicated Preservation Staff (15)",field:"preservation_staff",maxWidth:240},{title:"Ability to Designate Historic Districts (15)",field:"historic_districts",maxWidth:240},{title:"Owner Consent Not Required for Designation (10)",field:"owner_
1consent",maxWidth:240},{title:"Active Landmark Designation (at least annually) (5)",field:"landmark_designation",maxWidth:240},{title:"Survey of Historic Resources: Citywide (15) / Partial (10)",field:"survey_resources",maxWidth:240},{title:"Survey Updated Within Past 5 Years (5)",field:"survey_updated",maxWidth:240},{title:"Mills Act Incentive Program (10)",field:"mills_act",maxWidth:240},{title:"Additional Incentives (5)",field:"additional_incentives",maxWidth:240},{title:"Certified Local Government (5)",field:"certified_local_government",maxWidth:240},{title:"Historic Preservation Element or Plan (5)",field:"preservation_element",maxWidth:240},{title:"Demerit",field:"demerit"},{title:"Extra Credit (1-25)",field:"extra_credit"}];var e=new Tabulator("#report-card-table",{data:i,layout:"fitDataTable",maxHeight:"100%",initialSort:[{column:"Community",dir:"asc"}],columns:n,selectable:!1});const s=document.getElementById("js-scroll-icon-right");s.style.opacity="1",setTimeout((()=>{const t=document.querySelector(".tabulator-tableholder");t.addEventListener("scroll",(function(){Math.abs(t.scrollLeft)===t.scrollWidth-t.clientWidth?s.style.opacity="0":s.style.opacity="1"})),s.addEventListener("click",(function(){t.scrollLeft+=260,Math.abs(t.scrollLeft)===t.scrollWidth-t.clientWidth?s.style.opacity="0":s.style.opacity="1"}));let i=[];function o(t){if(i=[],!t)return e.setFilter(n);{const n=t.split(",");i=n,e.setFilter("title","in",i)}}const a=document.getElementById("js-report-card-multiselect");o(a.value),a.addEventListener("change",(()=>{o(a.value)}));const r=document.getElementById("js-report-card-filters"),l=r.querySelectorAll('input[type="checkbox"]:not(checked)');let h=[];r.addEventListener("change",(()=>{const i=r.querySelectorAll('input[type="checkbox"]:not(:checked)');if(h=[],i.forEach((t=>{h.push(t.value)})),0===h.length)e.setColumns(n);else{const i=new Set(h),o=n.filter((t=>!i.has(t.field)));e.setColumns(o),t.scrollWidth<=window.innerWidth&&(s.style.visibility="hidden"),t.scrollWidth>window.innerWidth&&(s.style.visibility="visible")}})),document.getElementById("js-report-card-clear").addEventListener("click",(function(){i=[],h=[];document.querySelectorAll(".js-checkbox-list-input").forEach((t=>{t.checked=!1})),l.forEach((t=>{t.checked=!0})),e.setColumns(n),e.clearFilter(),s.style.visibility="visible",s.style.opacity="1"}))}),"2000")}}))}}window.addEventListener("keydown",t),function(){const t=document.querySelectorAll(".js-dropdown-trigger");t.forEach((e=>{const i=e.closest(".js-dropdown-trigger-parent");if(i){const n=i.querySelector(".js-dropdown-panel");e.addEventListener("click",(()=>{t.forEach((t=>{if(t!==e){const e=t.closest(".js-dropdown-trigger-parent");e&&e.classList.contains("is-open")&&(i.querySelector(".js-dropdown-panel").setAttribute("aria-hidden","false"),e.classList.toggle("is-open"))}})),i.classList.toggle("is-open"),n.classList.toggle("is-open"),i.classList.contains("is-open")?n.setAttribute("aria-hidden","false"):n.setAttribute("aria-hidden","true")}))}}))}(),u(),v(),$t(),window.addEventListener("ajax-wrapper-request-complete",(()=>{$t()})),Ht(),qt(),document.querySelectorAll(".js-checkbox-list").forEach((t=>{new de(t,{})})),e(),Yt(),Kt(),function(){if(!Xt.header)return!1;Jt(),Xt.scrollWas=document.documentElement.scrollTop||document.body.scrollTop,Qt(),window.addEventListener("resize",(()=>{Jt(),Qt()})),window.addEventListener("scroll",(()=>requestAnimationFrame((()=>{Qt()}))))}(),te(),re(),window.addEventListener("ajax-wrapper-request-complete",(()=>{re()})),document.getElementById("anchor-links")&&new le,we(),document.querySelectorAll(".js-ajax-wrapper").forEach((t=>{new Le(t)})),document.querySelectorAll(".js-report-card-table").forEach((t=>{new xe(t)})),document.querySelectorAll(".js-tooltip").forEach((t=>{const e=t.getAttribute("aria-describedby");if(e){const i=document.getElementById(e);t.addEventListener("touchstart",(e=>{e.preventDefault(),i.style.display="block",document.addEventListener("touchstart",(e=>{t.contains(e.target)||"block"==i.style.display&&(i.style.display="none")}))}))}})),document.querySelectorAll("a").forEach((t=>{t.host!==window.location.host&&t.setAttribute("target","_blank")}))}();

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.