!function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){"use strict";function n(t,e){e=e||et;var n=e.createElement("script");n.text=t,e.head.appendChild(n).parentNode.removeChild(n)}function i(t){var e=!!t&&"length"in t&&t.length,n=ft.type(t);return"function"!==n&&!ft.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function o(t,e,n){return ft.isFunction(e)?ft.grep(t,function(t,i){return!!e.call(t,i,t)!==n}):e.nodeType?ft.grep(t,function(t){return t===e!==n}):"string"!=typeof e?ft.grep(t,function(t){return at.call(e,t)>-1!==n}):Ct.test(e)?ft.filter(e,t,n):(e=ft.filter(e,t),ft.grep(t,function(t){return at.call(e,t)>-1!==n&&1===t.nodeType}))}function r(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function a(t){var e={};return ft.each(t.match(Et)||[],function(t,n){e[n]=!0}),e}function s(t){return t}function l(t){throw t}function u(t,e,n){var i;try{t&&ft.isFunction(i=t.promise)?i.call(t).done(e).fail(n):t&&ft.isFunction(i=t.then)?i.call(t,e,n):e.call(void 0,t)}catch(t){n.call(void 0,t)}}function c(){et.removeEventListener("DOMContentLoaded",c),t.removeEventListener("load",c),ft.ready()}function h(){this.expando=ft.expando+h.uid++}function d(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:Ot.test(t)?JSON.parse(t):t)}function p(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(jt,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=d(n)}catch(t){}Dt.set(t,e,n)}else n=void 0;return n}function f(t,e,n,i){var o,r=1,a=20,s=i?function(){return i.cur()}:function(){return ft.css(t,e,"")},l=s(),u=n&&n[3]||(ft.cssNumber[e]?"":"px"),c=(ft.cssNumber[e]||"px"!==u&&+l)&&Rt.exec(ft.css(t,e));if(c&&c[3]!==u){u=u||c[3],n=n||[],c=+l||1;do{r=r||".5",c/=r,ft.style(t,e,c+u)}while(r!==(r=s()/l)&&1!==r&&--a)}return n&&(c=+c||+l||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=o)),o}function m(t){var e,n=t.ownerDocument,i=t.nodeName,o=qt[i];return o||(e=n.body.appendChild(n.createElement(i)),o=ft.css(e,"display"),e.parentNode.removeChild(e),"none"===o&&(o="block"),qt[i]=o,o)}function g(t,e){for(var n,i,o=[],r=0,a=t.length;r<a;r++)i=t[r],i.style&&(n=i.style.display,e?("none"===n&&(o[r]=Nt.get(i,"display")||null,o[r]||(i.style.display="")),""===i.style.display&&Zt(i)&&(o[r]=m(i))):"none"!==n&&(o[r]="none",Nt.set(i,"display",n)));for(r=0;r<a;r++)null!=o[r]&&(t[r].style.display=o[r]);return t}function v(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&ft.nodeName(t,e)?ft.merge([t],n):n}function _(t,e){for(var n=0,i=t.length;n<i;n++)Nt.set(t[n],"globalEval",!e||Nt.get(e[n],"globalEval"))}function y(t,e,n,i,o){for(var r,a,s,l,u,c,h=e.createDocumentFragment(),d=[],p=0,f=t.length;p<f;p++)if((r=t[p])||0===r)if("object"===ft.type(r))ft.merge(d,r.nodeType?[r]:r);else if(Gt.test(r)){for(a=a||h.appendChild(e.createElement("div")),s=(Vt.exec(r)||["",""])[1].toLowerCase(),l=Ut[s]||Ut._default,a.innerHTML=l[1]+ft.htmlPrefilter(r)+l[2],c=l[0];c--;)a=a.lastChild;ft.merge(d,a.childNodes),a=h.firstChild,a.textContent=""}else d.push(e.createTextNode(r));for(h.textContent="",p=0;r=d[p++];)if(i&&ft.inArray(r,i)>-1)o&&o.push(r);else if(u=ft.contains(r.ownerDocument,r),a=v(h.appendChild(r),"script"),u&&_(a),n)for(c=0;r=a[c++];)$t.test(r.type||"")&&n.push(r);return h}function b(){return!0}function x(){return!1}function w(){try{return et.activeElement}catch(t){}}function T(t,e,n,i,o,r){var a,s;if("object"==typeof e){"string"!=typeof n&&(i=i||n,n=void 0);for(s in e)T(t,s,n,i,e[s],r);return t}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=x;else if(!o)return t;return 1===r&&(a=o,o=function(t){return ft().off(t),a.apply(this,arguments)},o.guid=a.guid||(a.guid=ft.guid++)),t.each(function(){ft.event.add(this,e,o,i,n)})}function C(t,e){return ft.nodeName(t,"table")&&ft.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t:t}function P(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function L(t){var e=ne.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function k(t,e){var n,i,o,r,a,s,l,u;if(1===e.nodeType){if(Nt.hasData(t)&&(r=Nt.access(t),a=Nt.set(e,r),u=r.events)){delete a.handle,a.events={};for(o in u)for(n=0,i=u[o].length;n<i;n++)ft.event.add(e,o,u[o][n])}Dt.hasData(t)&&(s=Dt.access(t),l=ft.extend({},s),Dt.set(e,l))}}function S(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Wt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function E(t,e,i,o){e=ot.apply([],e);var r,a,s,l,u,c,h=0,d=t.length,p=d-1,f=e[0],m=ft.isFunction(f);if(m||d>1&&"string"==typeof f&&!dt.checkClone&&ee.test(f))return t.each(function(n){var r=t.eq(n);m&&(e[0]=f.call(this,n,r.html())),E(r,e,i,o)});if(d&&(r=y(e,t[0].ownerDocument,!1,t,o),a=r.firstChild,1===r.childNodes.length&&(r=a),a||o)){for(s=ft.map(v(r,"script"),P),l=s.length;h<d;h++)u=r,h!==p&&(u=ft.clone(u,!0,!0),l&&ft.merge(s,v(u,"script"))),i.call(t[h],u,h);if(l)for(c=s[s.length-1].ownerDocument,ft.map(s,L),h=0;h<l;h++)u=s[h],$t.test(u.type||"")&&!Nt.access(u,"globalEval")&&ft.contains(c,u)&&(u.src?ft._evalUrl&&ft._evalUrl(u.src):n(u.textContent.replace(ie,""),c))}return t}function A(t,e,n){for(var i,o=e?ft.filter(e,t):t,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||ft.cleanData(v(i)),i.parentNode&&(n&&ft.contains(i.ownerDocument,i)&&_(v(i,"script")),i.parentNode.removeChild(i));return t}function M(t,e,n){var i,o,r,a,s=t.style;return n=n||ae(t),n&&(a=n.getPropertyValue(e)||n[e],""!==a||ft.contains(t.ownerDocument,t)||(a=ft.style(t,e)),!dt.pixelMarginRight()&&re.test(a)&&oe.test(e)&&(i=s.width,o=s.minWidth,r=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=o,s.maxWidth=r)),void 0!==a?a+"":a}function z(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function I(t){if(t in he)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=ce.length;n--;)if((t=ce[n]+e)in he)return t}function N(t,e,n){var i=Rt.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function D(t,e,n,i,o){var r,a=0;for(r=n===(i?"border":"content")?4:"width"===e?1:0;r<4;r+=2)"margin"===n&&(a+=ft.css(t,n+Ft[r],!0,o)),i?("content"===n&&(a-=ft.css(t,"padding"+Ft[r],!0,o)),"margin"!==n&&(a-=ft.css(t,"border"+Ft[r]+"Width",!0,o))):(a+=ft.css(t,"padding"+Ft[r],!0,o),"padding"!==n&&(a+=ft.css(t,"border"+Ft[r]+"Width",!0,o)));return a}function O(t,e,n){var i,o=!0,r=ae(t),a="border-box"===ft.css(t,"boxSizing",!1,r);if(t.getClientRects().length&&(i=t.getBoundingClientRect()[e]),i<=0||null==i){if(i=M(t,e,r),(i<0||null==i)&&(i=t.style[e]),re.test(i))return i;o=a&&(dt.boxSizingReliable()||i===t.style[e]),i=parseFloat(i)||0}return i+D(t,e,n||(a?"border":"content"),o,r)+"px"}function j(t,e,n,i,o){return new j.prototype.init(t,e,n,i,o)}function B(){pe&&(t.requestAnimationFrame(B),ft.fx.tick())}function R(){return t.setTimeout(function(){de=void 0}),de=ft.now()}function F(t,e){var n,i=0,o={height:t};for(e=e?1:0;i<4;i+=2-e)n=Ft[i],o["margin"+n]=o["padding"+n]=t;return e&&(o.opacity=o.width=t),o}function Z(t,e,n){for(var i,o=(W.tweeners[e]||[]).concat(W.tweeners["*"]),r=0,a=o.length;r<a;r++)if(i=o[r].call(n,e,t))return i}function H(t,e,n){var i,o,r,a,s,l,u,c,h="width"in e||"height"in e,d=this,p={},f=t.style,m=t.nodeType&&Zt(t),v=Nt.get(t,"fxshow");n.queue||(a=ft._queueHooks(t,"fx"),null==a.unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always(function(){d.always(function(){a.unqueued--,ft.queue(t,"fx").length||a.empty.fire()})}));for(i in e)if(o=e[i],fe.test(o)){if(delete e[i],r=r||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||!v||void 0===v[i])continue;m=!0}p[i]=v&&v[i]||ft.style(t,i)}if((l=!ft.isEmptyObject(e))||!ft.isEmptyObject(p)){h&&1===t.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],u=v&&v.display,null==u&&(u=Nt.get(t,"display")),c=ft.css(t,"display"),"none"===c&&(u?c=u:(g([t],!0),u=t.style.display||u,c=ft.css(t,"display"),g([t]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===ft.css(t,"float")&&(l||(d.done(function(){f.display=u}),null==u&&(c=f.display,u="none"===c?"":c)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",d.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),l=!1;for(i in p)l||(v?"hidden"in v&&(m=v.hidden):v=Nt.access(t,"fxshow",{display:u}),r&&(v.hidden=!m),m&&g([t],!0),d.done(function(){m||g([t]),Nt.remove(t,"fxshow");for(i in p)ft.style(t,i,p[i])})),l=Z(m?v[i]:0,i,d),i in v||(v[i]=l.start,m&&(l.end=l.start,l.start=0))}}function q(t,e){var n,i,o,r,a;for(n in t)if(i=ft.camelCase(n),o=e[i],r=t[n],ft.isArray(r)&&(o=r[1],r=t[n]=r[0]),n!==i&&(t[i]=r,delete t[n]),(a=ft.cssHooks[i])&&"expand"in a){r=a.expand(r),delete t[i];for(n in r)n in t||(t[n]=r[n],e[n]=o)}else e[i]=o}function W(t,e,n){var i,o,r=0,a=W.prefilters.length,s=ft.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var e=de||R(),n=Math.max(0,u.startTime+u.duration-e),i=n/u.duration||0,r=1-i,a=0,l=u.tweens.length;a<l;a++)u.tweens[a].run(r);return s.notifyWith(t,[u,r,n]),r<1&&l?n:(s.resolveWith(t,[u]),!1)},u=s.promise({elem:t,props:ft.extend({},e),opts:ft.extend(!0,{specialEasing:{},easing:ft.easing._default},n),originalProperties:e,originalOptions:n,startTime:de||R(),duration:n.duration,tweens:[],createTween:function(e,n){var i=ft.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(i),i},stop:function(e){var n=0,i=e?u.tweens.length:0;if(o)return this;for(o=!0;n<i;n++)u.tweens[n].run(1);return e?(s.notifyWith(t,[u,1,0]),s.resolveWith(t,[u,e])):s.rejectWith(t,[u,e]),this}}),c=u.props;for(q(c,u.opts.specialEasing);r<a;r++)if(i=W.prefilters[r].call(u,t,c,u.opts))return ft.isFunction(i.stop)&&(ft._queueHooks(u.elem,u.opts.queue).stop=ft.proxy(i.stop,i)),i;return ft.map(c,Z,u),ft.isFunction(u.opts.start)&&u.opts.start.call(t,u),ft.fx.timer(ft.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function V(t){return(t.match(Et)||[]).join(" ")}function $(t){return t.getAttribute&&t.getAttribute("class")||""}function U(t,e,n,i){var o;if(ft.isArray(e))ft.each(e,function(e,o){n||Pe.test(t)?i(t,o):U(t+"["+("object"==typeof o&&null!=o?e:"")+"]",o,n,i)});else if(n||"object"!==ft.type(e))i(t,e);else for(o in e)U(t+"["+o+"]",e[o],n,i)}function G(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,o=0,r=e.toLowerCase().match(Et)||[];if(ft.isFunction(n))for(;i=r[o++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function X(t,e,n,i){function o(s){var l;return r[s]=!0,ft.each(t[s]||[],function(t,s){var u=s(e,n,i);return"string"!=typeof u||a||r[u]?a?!(l=u):void 0:(e.dataTypes.unshift(u),o(u),!1)}),l}var r={},a=t===je;return o(e.dataTypes[0])||!r["*"]&&o("*")}function Y(t,e){var n,i,o=ft.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((o[n]?t:i||(i={}))[n]=e[n]);return i&&ft.extend(!0,t,i),t}function K(t,e,n){for(var i,o,r,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(o in s)if(s[o]&&s[o].test(i)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||t.converters[o+" "+l[0]]){r=o;break}a||(a=o)}r=r||a}if(r)return r!==l[0]&&l.unshift(r),n[r]}function J(t,e,n,i){var o,r,a,s,l,u={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)u[a.toLowerCase()]=t.converters[a];for(r=c.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=c.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(a=u[l+" "+r]||u["* "+r]))for(o in u)if(s=o.split(" "),s[1]===r&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[o]:!0!==u[o]&&(r=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}}function Q(t){return ft.isWindow(t)?t:9===t.nodeType&&t.defaultView}var tt=[],et=t.document,nt=Object.getPrototypeOf,it=tt.slice,ot=tt.concat,rt=tt.push,at=tt.indexOf,st={},lt=st.toString,ut=st.hasOwnProperty,ct=ut.toString,ht=ct.call(Object),dt={},pt="3.1.1",ft=function(t,e){return new ft.fn.init(t,e)},mt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,gt=/^-ms-/,vt=/-([a-z])/g,_t=function(t,e){return e.toUpperCase()};ft.fn=ft.prototype={jquery:pt,constructor:ft,length:0,toArray:function(){return it.call(this)},get:function(t){return null==t?it.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=ft.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return ft.each(this,t)},map:function(t){return this.pushStack(ft.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(it.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:rt,sort:tt.sort,splice:tt.splice},ft.extend=ft.fn.extend=function(){var t,e,n,i,o,r,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||ft.isFunction(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)n=a[e],i=t[e],a!==i&&(u&&i&&(ft.isPlainObject(i)||(o=ft.isArray(i)))?(o?(o=!1,r=n&&ft.isArray(n)?n:[]):r=n&&ft.isPlainObject(n)?n:{},a[e]=ft.extend(u,r,i)):void 0!==i&&(a[e]=i));return a},ft.extend({expando:"jQuery"+(pt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===ft.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=ft.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==lt.call(t)||(e=nt(t))&&("function"!=typeof(n=ut.call(e,"constructor")&&e.constructor)||ct.call(n)!==ht))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?st[lt.call(t)]||"object":typeof t},globalEval:function(t){n(t)},camelCase:function(t){return t.replace(gt,"ms-").replace(vt,_t)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var n,o=0;if(i(t))for(n=t.length;o<n&&!1!==e.call(t[o],o,t[o]);o++);else for(o in t)if(!1===e.call(t[o],o,t[o]))break;return t},trim:function(t){return null==t?"":(t+"").replace(mt,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(i(Object(t))?ft.merge(n,"string"==typeof t?[t]:t):rt.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:at.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,o=t.length;i<n;i++)t[o++]=e[i];return t.length=o,t},grep:function(t,e,n){for(var i=[],o=0,r=t.length,a=!n;o<r;o++)!e(t[o],o)!==a&&i.push(t[o]);return i},map:function(t,e,n){var o,r,a=0,s=[];if(i(t))for(o=t.length;a<o;a++)null!=(r=e(t[a],a,n))&&s.push(r);else for(a in t)null!=(r=e(t[a],a,n))&&s.push(r);return ot.apply([],s)},guid:1,proxy:function(t,e){var n,i,o;if("string"==typeof e&&(n=t[e],e=t,t=n),ft.isFunction(t))return i=it.call(arguments,2),o=function(){return t.apply(e||this,i.concat(it.call(arguments)))},o.guid=t.guid=t.guid||ft.guid++,o},now:Date.now,support:dt}),"function"==typeof Symbol&&(ft.fn[Symbol.iterator]=tt[Symbol.iterator]),ft.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){st["[object "+e+"]"]=e.toLowerCase()});var yt=function(t){function e(t,e,n,i){var o,r,a,s,l,c,d,p=e&&e.ownerDocument,f=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==f&&9!==f&&11!==f)return n;if(!i&&((e?e.ownerDocument||e:R)!==M&&A(e),e=e||M,I)){if(11!==f&&(l=mt.exec(t)))if(o=l[1]){if(9===f){if(!(a=e.getElementById(o)))return n;if(a.id===o)return n.push(a),n}else if(p&&(a=p.getElementById(o))&&j(e,a)&&a.id===o)return n.push(a),n}else{if(l[2])return Y.apply(n,e.getElementsByTagName(t)),n;if((o=l[3])&&b.getElementsByClassName&&e.getElementsByClassName)return Y.apply(n,e.getElementsByClassName(o)),n}if(b.qsa&&!W[t+" "]&&(!N||!N.test(t))){if(1!==f)p=e,d=t;else if("object"!==e.nodeName.toLowerCase()){for((s=e.getAttribute("id"))?s=s.replace(yt,bt):e.setAttribute("id",s=B),c=C(t),r=c.length;r--;)c[r]="#"+s+" "+h(c[r]);d=c.join(","),p=gt.test(t)&&u(e.parentNode)||e}if(d)try{return Y.apply(n,p.querySelectorAll(d)),n}catch(t){}finally{s===B&&e.removeAttribute("id")}}}return L(t.replace(rt,"$1"),e,n,i)}function n(){function t(n,i){return e.push(n+" ")>x.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[B]=!0,t}function o(t){var e=M.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function r(t,e){for(var n=t.split("|"),i=n.length;i--;)x.attrHandle[n[i]]=e}function a(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function s(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&wt(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function l(t){return i(function(e){return e=+e,i(function(n,i){for(var o,r=t([],n.length,e),a=r.length;a--;)n[o=r[a]]&&(n[o]=!(i[o]=n[o]))})})}function u(t){return t&&void 0!==t.getElementsByTagName&&t}function c(){}function h(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function d(t,e,n){var i=e.dir,o=e.next,r=o||i,a=n&&"parentNode"===r,s=Z++;return e.first?function(e,n,o){for(;e=e[i];)if(1===e.nodeType||a)return t(e,n,o);return!1}:function(e,n,l){var u,c,h,d=[F,s];if(l){for(;e=e[i];)if((1===e.nodeType||a)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||a)if(h=e[B]||(e[B]={}),c=h[e.uniqueID]||(h[e.uniqueID]={}),o&&o===e.nodeName.toLowerCase())e=e[i]||e;else{if((u=c[r])&&u[0]===F&&u[1]===s)return d[2]=u[2];if(c[r]=d,d[2]=t(e,n,l))return!0}return!1}}function p(t){return t.length>1?function(e,n,i){for(var o=t.length;o--;)if(!t[o](e,n,i))return!1;return!0}:t[0]}function f(t,n,i){for(var o=0,r=n.length;o<r;o++)e(t,n[o],i);return i}function m(t,e,n,i,o){for(var r,a=[],s=0,l=t.length,u=null!=e;s<l;s++)(r=t[s])&&(n&&!n(r,i,o)||(a.push(r),u&&e.push(s)));return a}function g(t,e,n,o,r,a){return o&&!o[B]&&(o=g(o)),r&&!r[B]&&(r=g(r,a)),i(function(i,a,s,l){var u,c,h,d=[],p=[],g=a.length,v=i||f(e||"*",s.nodeType?[s]:s,[]),_=!t||!i&&e?v:m(v,d,t,s,l),y=n?r||(i?t:g||o)?[]:a:_;if(n&&n(_,y,s,l),o)for(u=m(y,p),o(u,[],s,l),c=u.length;c--;)(h=u[c])&&(y[p[c]]=!(_[p[c]]=h));if(i){if(r||t){if(r){for(u=[],c=y.length;c--;)(h=y[c])&&u.push(_[c]=h);r(null,y=[],u,l)}for(c=y.length;c--;)(h=y[c])&&(u=r?J(i,h):d[c])>-1&&(i[u]=!(a[u]=h))}}else y=m(y===a?y.splice(g,y.length):y),r?r(null,a,y,l):Y.apply(a,y)})}function v(t){for(var e,n,i,o=t.length,r=x.relative[t[0].type],a=r||x.relative[" "],s=r?1:0,l=d(function(t){return t===e},a,!0),u=d(function(t){return J(e,t)>-1},a,!0),c=[function(t,n,i){var o=!r&&(i||n!==k)||((e=n).nodeType?l(t,n,i):u(t,n,i));return e=null,o}];s<o;s++)if(n=x.relative[t[s].type])c=[d(p(c),n)];else{if(n=x.filter[t[s].type].apply(null,t[s].matches),n[B]){for(i=++s;i<o&&!x.relative[t[i].type];i++);return g(s>1&&p(c),s>1&&h(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(rt,"$1"),n,s<i&&v(t.slice(s,i)),i<o&&v(t=t.slice(i)),i<o&&h(t))}c.push(n)}return p(c)}function _(t,n){var o=n.length>0,r=t.length>0,a=function(i,a,s,l,u){var c,h,d,p=0,f="0",g=i&&[],v=[],_=k,y=i||r&&x.find.TAG("*",u),b=F+=null==_?1:Math.random()||.1,w=y.length;for(u&&(k=a===M||a||u);f!==w&&null!=(c=y[f]);f++){if(r&&c){for(h=0,a||c.ownerDocument===M||(A(c),s=!I);d=t[h++];)if(d(c,a||M,s)){l.push(c);break}u&&(F=b)}o&&((c=!d&&c)&&p--,i&&g.push(c))}if(p+=f,o&&f!==p){for(h=0;d=n[h++];)d(g,v,a,s);if(i){if(p>0)for(;f--;)g[f]||v[f]||(v[f]=G.call(l));v=m(v)}Y.apply(l,v),u&&!i&&v.length>0&&p+n.length>1&&e.uniqueSort(l)}return u&&(F=b,k=_),g};return o?i(a):a}var y,b,x,w,T,C,P,L,k,S,E,A,M,z,I,N,D,O,j,B="sizzle"+1*new Date,R=t.document,F=0,Z=0,H=n(),q=n(),W=n(),V=function(t,e){return t===e&&(E=!0),0},$={}.hasOwnProperty,U=[],G=U.pop,X=U.push,Y=U.push,K=U.slice,J=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},Q="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",tt="[\\x20\\t\\r\\n\\f]",et="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",nt="\\["+tt+"*("+et+")(?:"+tt+"*([*^$|!~]?=)"+tt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+et+"))|)"+tt+"*\\]",it=":("+et+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+nt+")*)|.*)\\)|)",ot=new RegExp(tt+"+","g"),rt=new RegExp("^"+tt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+tt+"+$","g"),at=new RegExp("^"+tt+"*,"+tt+"*"),st=new RegExp("^"+tt+"*([>+~]|"+tt+")"+tt+"*"),lt=new RegExp("="+tt+"*([^\\]'\"]*?)"+tt+"*\\]","g"),ut=new RegExp(it),ct=new RegExp("^"+et+"$"),ht={ID:new RegExp("^#("+et+")"),CLASS:new RegExp("^\\.("+et+")"),TAG:new RegExp("^("+et+"|[*])"),ATTR:new RegExp("^"+nt),PSEUDO:new RegExp("^"+it),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+tt+"*(even|odd|(([+-]|)(\\d*)n|)"+tt+"*(?:([+-]|)"+tt+"*(\\d+)|))"+tt+"*\\)|)","i"),bool:new RegExp("^(?:"+Q+")$","i"),needsContext:new RegExp("^"+tt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+tt+"*((?:-\\d)?\\d*)"+tt+"*\\)|)(?=[^-]|$)","i")},dt=/^(?:input|select|textarea|button)$/i,pt=/^h\d$/i,ft=/^[^{]+\{\s*\[native \w/,mt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,gt=/[+~]/,vt=new RegExp("\\\\([\\da-f]{1,6}"+tt+"?|("+tt+")|.)","ig"),_t=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},yt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,bt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},xt=function(){A()},wt=d(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{Y.apply(U=K.call(R.childNodes),R.childNodes),U[R.childNodes.length].nodeType}catch(t){Y={apply:U.length?function(t,e){X.apply(t,K.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}b=e.support={},T=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},A=e.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:R;return i!==M&&9===i.nodeType&&i.documentElement?(M=i,z=M.documentElement,I=!T(M),R!==M&&(n=M.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",xt,!1):n.attachEvent&&n.attachEvent("onunload",xt)),b.attributes=o(function(t){return t.className="i",!t.getAttribute("className")}),b.getElementsByTagName=o(function(t){return t.appendChild(M.createComment("")),!t.getElementsByTagName("*").length}),b.getElementsByClassName=ft.test(M.getElementsByClassName),b.getById=o(function(t){return z.appendChild(t).id=B,!M.getElementsByName||!M.getElementsByName(B).length}),b.getById?(x.filter.ID=function(t){var e=t.replace(vt,_t);return function(t){return t.getAttribute("id")===e}},x.find.ID=function(t,e){if(void 0!==e.getElementById&&I){var n=e.getElementById(t);return n?[n]:[]}}):(x.filter.ID=function(t){var e=t.replace(vt,_t);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},x.find.ID=function(t,e){if(void 0!==e.getElementById&&I){var n,i,o,r=e.getElementById(t);if(r){if((n=r.getAttributeNode("id"))&&n.value===t)return[r];for(o=e.getElementsByName(t),i=0;r=o[i++];)if((n=r.getAttributeNode("id"))&&n.value===t)return[r]}return[]}}),x.find.TAG=b.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):b.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],o=0,r=e.getElementsByTagName(t);if("*"===t){for(;n=r[o++];)1===n.nodeType&&i.push(n);return i}return r},x.find.CLASS=b.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&I)return e.getElementsByClassName(t)},D=[],N=[],(b.qsa=ft.test(M.querySelectorAll))&&(o(function(t){z.appendChild(t).innerHTML="<a id='"+B+"'></a><select id='"+B+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&N.push("[*^$]="+tt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||N.push("\\["+tt+"*(?:value|"+Q+")"),t.querySelectorAll("[id~="+B+"-]").length||N.push("~="),t.querySelectorAll(":checked").length||N.push(":checked"),t.querySelectorAll("a#"+B+"+*").length||N.push(".#.+[+~]")}),o(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=M.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&N.push("name"+tt+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&N.push(":enabled",":disabled"),z.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&N.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),N.push(",.*:")})),(b.matchesSelector=ft.test(O=z.matches||z.webkitMatchesSelector||z.mozMatchesSelector||z.oMatchesSelector||z.msMatchesSelector))&&o(function(t){b.disconnectedMatch=O.call(t,"*"),O.call(t,"[s!='']:x"),D.push("!=",it)}),N=N.length&&new RegExp(N.join("|")),D=D.length&&new RegExp(D.join("|")),e=ft.test(z.compareDocumentPosition),j=e||ft.test(z.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},V=e?function(t,e){if(t===e)return E=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!b.sortDetached&&e.compareDocumentPosition(t)===n?t===M||t.ownerDocument===R&&j(R,t)?-1:e===M||e.ownerDocument===R&&j(R,e)?1:S?J(S,t)-J(S,e):0:4&n?-1:1)}:function(t,e){if(t===e)return E=!0,0;var n,i=0,o=t.parentNode,r=e.parentNode,s=[t],l=[e];if(!o||!r)return t===M?-1:e===M?1:o?-1:r?1:S?J(S,t)-J(S,e):0;if(o===r)return a(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)l.unshift(n);for(;s[i]===l[i];)i++;return i?a(s[i],l[i]):s[i]===R?-1:l[i]===R?1:0},M):M},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==M&&A(t),n=n.replace(lt,"='$1']"),b.matchesSelector&&I&&!W[n+" "]&&(!D||!D.test(n))&&(!N||!N.test(n)))try{var i=O.call(t,n);if(i||b.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return e(n,M,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==M&&A(t),j(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==M&&A(t);var n=x.attrHandle[e.toLowerCase()],i=n&&$.call(x.attrHandle,e.toLowerCase())?n(t,e,!I):void 0;return void 0!==i?i:b.attributes||!I?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},e.escape=function(t){return(t+"").replace(yt,bt)},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],i=0,o=0;if(E=!b.detectDuplicates,S=!b.sortStable&&t.slice(0),t.sort(V),E){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)t.splice(n[i],1)}return S=null,t},w=e.getText=function(t){var e,n="",i=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=w(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[i++];)n+=w(e);return n},x=e.selectors={cacheLength:50,createPseudo:i,match:ht,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(vt,_t),t[3]=(t[3]||t[4]||t[5]||"").replace(vt,_t),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return ht.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ut.test(n)&&(e=C(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(vt,_t).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=H[t+" "];return e||(e=new RegExp("(^|"+tt+")"+t+"("+tt+"|$)"))&&H(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(o){var r=e.attr(o,t);return null==r?"!="===n:!n||(r+="","="===n?r===i:"!="===n?r!==i:"^="===n?i&&0===r.indexOf(i):"*="===n?i&&r.indexOf(i)>-1:"$="===n?i&&r.slice(-i.length)===i:"~="===n?(" "+r.replace(ot," ")+" ").indexOf(i)>-1:"|="===n&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,n,i,o){var r="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===o?function(t){return!!t.parentNode}:function(e,n,l){var u,c,h,d,p,f,m=r!==a?"nextSibling":"previousSibling",g=e.parentNode,v=s&&e.nodeName.toLowerCase(),_=!l&&!s,y=!1;if(g){if(r){for(;m;){for(d=e;d=d[m];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;f=m="only"===t&&!f&&"nextSibling"}return!0}if(f=[a?g.firstChild:g.lastChild],a&&_){for(d=g,h=d[B]||(d[B]={}),c=h[d.uniqueID]||(h[d.uniqueID]={}),u=c[t]||[],p=u[0]===F&&u[1],y=p&&u[2],d=p&&g.childNodes[p];d=++p&&d&&d[m]||(y=p=0)||f.pop();)if(1===d.nodeType&&++y&&d===e){c[t]=[F,p,y];break}}else if(_&&(d=e,h=d[B]||(d[B]={}),c=h[d.uniqueID]||(h[d.uniqueID]={}),u=c[t]||[],p=u[0]===F&&u[1],y=p),!1===y)for(;(d=++p&&d&&d[m]||(y=p=0)||f.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++y||(_&&(h=d[B]||(d[B]={}),c=h[d.uniqueID]||(h[d.uniqueID]={}),c[t]=[F,y]),d!==e)););return(y-=o)===i||y%i==0&&y/i>=0}}},PSEUDO:function(t,n){var o,r=x.pseudos[t]||x.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return r[B]?r(n):r.length>1?(o=[t,t,"",n],x.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,o=r(t,n),a=o.length;a--;)i=J(t,o[a]),t[i]=!(e[i]=o[a])}):function(t){return r(t,0,o)}):r}},pseudos:{not:i(function(t){var e=[],n=[],o=P(t.replace(rt,"$1"));return o[B]?i(function(t,e,n,i){for(var r,a=o(t,null,i,[]),s=t.length;s--;)(r=a[s])&&(t[s]=!(e[s]=r))}):function(t,i,r){return e[0]=t,o(e,null,r,n),e[0]=null,!n.pop()}}),has:i(function(t){return function(n){return e(t,n).length>0}}),contains:i(function(t){return t=t.replace(vt,_t),function(e){return(e.textContent||e.innerText||w(e)).indexOf(t)>-1}}),lang:i(function(t){return ct.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(vt,_t).toLowerCase(),function(e){var n;do{if(n=I?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===z},focus:function(t){return t===M.activeElement&&(!M.hasFocus||M.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:s(!1),disabled:s(!0),checked:function(t){var e=t.nodeName.toLowerCase()
;return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!x.pseudos.empty(t)},header:function(t){return pt.test(t.nodeName)},input:function(t){return dt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:l(function(){return[0]}),last:l(function(t,e){return[e-1]}),eq:l(function(t,e,n){return[n<0?n+e:n]}),even:l(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:l(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:l(function(t,e,n){for(var i=n<0?n+e:n;--i>=0;)t.push(i);return t}),gt:l(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}},x.pseudos.nth=x.pseudos.eq;for(y in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[y]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(y);for(y in{submit:!0,reset:!0})x.pseudos[y]=function(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}(y);return c.prototype=x.filters=x.pseudos,x.setFilters=new c,C=e.tokenize=function(t,n){var i,o,r,a,s,l,u,c=q[t+" "];if(c)return n?0:c.slice(0);for(s=t,l=[],u=x.preFilter;s;){i&&!(o=at.exec(s))||(o&&(s=s.slice(o[0].length)||s),l.push(r=[])),i=!1,(o=st.exec(s))&&(i=o.shift(),r.push({value:i,type:o[0].replace(rt," ")}),s=s.slice(i.length));for(a in x.filter)!(o=ht[a].exec(s))||u[a]&&!(o=u[a](o))||(i=o.shift(),r.push({value:i,type:a,matches:o}),s=s.slice(i.length));if(!i)break}return n?s.length:s?e.error(t):q(t,l).slice(0)},P=e.compile=function(t,e){var n,i=[],o=[],r=W[t+" "];if(!r){for(e||(e=C(t)),n=e.length;n--;)r=v(e[n]),r[B]?i.push(r):o.push(r);r=W(t,_(o,i)),r.selector=t}return r},L=e.select=function(t,e,n,i){var o,r,a,s,l,c="function"==typeof t&&t,d=!i&&C(t=c.selector||t);if(n=n||[],1===d.length){if(r=d[0]=d[0].slice(0),r.length>2&&"ID"===(a=r[0]).type&&9===e.nodeType&&I&&x.relative[r[1].type]){if(!(e=(x.find.ID(a.matches[0].replace(vt,_t),e)||[])[0]))return n;c&&(e=e.parentNode),t=t.slice(r.shift().value.length)}for(o=ht.needsContext.test(t)?0:r.length;o--&&(a=r[o],!x.relative[s=a.type]);)if((l=x.find[s])&&(i=l(a.matches[0].replace(vt,_t),gt.test(r[0].type)&&u(e.parentNode)||e))){if(r.splice(o,1),!(t=i.length&&h(r)))return Y.apply(n,i),n;break}}return(c||P(t,d))(i,e,!I,n,!e||gt.test(t)&&u(e.parentNode)||e),n},b.sortStable=B.split("").sort(V).join("")===B,b.detectDuplicates=!!E,A(),b.sortDetached=o(function(t){return 1&t.compareDocumentPosition(M.createElement("fieldset"))}),o(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||r("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),b.attributes&&o(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||r("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),o(function(t){return null==t.getAttribute("disabled")})||r(Q,function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),e}(t);ft.find=yt,ft.expr=yt.selectors,ft.expr[":"]=ft.expr.pseudos,ft.uniqueSort=ft.unique=yt.uniqueSort,ft.text=yt.getText,ft.isXMLDoc=yt.isXML,ft.contains=yt.contains,ft.escapeSelector=yt.escape;var bt=function(t,e,n){for(var i=[],o=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&ft(t).is(n))break;i.push(t)}return i},xt=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},wt=ft.expr.match.needsContext,Tt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Ct=/^.[^:#\[\.,]*$/;ft.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?ft.find.matchesSelector(i,t)?[i]:[]:ft.find.matches(t,ft.grep(e,function(t){return 1===t.nodeType}))},ft.fn.extend({find:function(t){var e,n,i=this.length,o=this;if("string"!=typeof t)return this.pushStack(ft(t).filter(function(){for(e=0;e<i;e++)if(ft.contains(o[e],this))return!0}));for(n=this.pushStack([]),e=0;e<i;e++)ft.find(t,o[e],n);return i>1?ft.uniqueSort(n):n},filter:function(t){return this.pushStack(o(this,t||[],!1))},not:function(t){return this.pushStack(o(this,t||[],!0))},is:function(t){return!!o(this,"string"==typeof t&&wt.test(t)?ft(t):t||[],!1).length}});var Pt,Lt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(ft.fn.init=function(t,e,n){var i,o;if(!t)return this;if(n=n||Pt,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:Lt.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof ft?e[0]:e,ft.merge(this,ft.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:et,!0)),Tt.test(i[1])&&ft.isPlainObject(e))for(i in e)ft.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return o=et.getElementById(i[2]),o&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):ft.isFunction(t)?void 0!==n.ready?n.ready(t):t(ft):ft.makeArray(t,this)}).prototype=ft.fn,Pt=ft(et);var kt=/^(?:parents|prev(?:Until|All))/,St={children:!0,contents:!0,next:!0,prev:!0};ft.fn.extend({has:function(t){var e=ft(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(ft.contains(this,e[t]))return!0})},closest:function(t,e){var n,i=0,o=this.length,r=[],a="string"!=typeof t&&ft(t);if(!wt.test(t))for(;i<o;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&ft.find.matchesSelector(n,t))){r.push(n);break}return this.pushStack(r.length>1?ft.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?at.call(ft(t),this[0]):at.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(ft.uniqueSort(ft.merge(this.get(),ft(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),ft.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return bt(t,"parentNode")},parentsUntil:function(t,e,n){return bt(t,"parentNode",n)},next:function(t){return r(t,"nextSibling")},prev:function(t){return r(t,"previousSibling")},nextAll:function(t){return bt(t,"nextSibling")},prevAll:function(t){return bt(t,"previousSibling")},nextUntil:function(t,e,n){return bt(t,"nextSibling",n)},prevUntil:function(t,e,n){return bt(t,"previousSibling",n)},siblings:function(t){return xt((t.parentNode||{}).firstChild,t)},children:function(t){return xt(t.firstChild)},contents:function(t){return t.contentDocument||ft.merge([],t.childNodes)}},function(t,e){ft.fn[t]=function(n,i){var o=ft.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=ft.filter(i,o)),this.length>1&&(St[t]||ft.uniqueSort(o),kt.test(t)&&o.reverse()),this.pushStack(o)}});var Et=/[^\x20\t\r\n\f]+/g;ft.Callbacks=function(t){t="string"==typeof t?a(t):ft.extend({},t);var e,n,i,o,r=[],s=[],l=-1,u=function(){for(o=t.once,i=e=!0;s.length;l=-1)for(n=s.shift();++l<r.length;)!1===r[l].apply(n[0],n[1])&&t.stopOnFalse&&(l=r.length,n=!1);t.memory||(n=!1),e=!1,o&&(r=n?[]:"")},c={add:function(){return r&&(n&&!e&&(l=r.length-1,s.push(n)),function e(n){ft.each(n,function(n,i){ft.isFunction(i)?t.unique&&c.has(i)||r.push(i):i&&i.length&&"string"!==ft.type(i)&&e(i)})}(arguments),n&&!e&&u()),this},remove:function(){return ft.each(arguments,function(t,e){for(var n;(n=ft.inArray(e,r,n))>-1;)r.splice(n,1),n<=l&&l--}),this},has:function(t){return t?ft.inArray(t,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return o=s=[],r=n="",this},disabled:function(){return!r},lock:function(){return o=s=[],n||e||(r=n=""),this},locked:function(){return!!o},fireWith:function(t,n){return o||(n=n||[],n=[t,n.slice?n.slice():n],s.push(n),e||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},ft.extend({Deferred:function(e){var n=[["notify","progress",ft.Callbacks("memory"),ft.Callbacks("memory"),2],["resolve","done",ft.Callbacks("once memory"),ft.Callbacks("once memory"),0,"resolved"],["reject","fail",ft.Callbacks("once memory"),ft.Callbacks("once memory"),1,"rejected"]],i="pending",o={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},catch:function(t){return o.then(null,t)},pipe:function(){var t=arguments;return ft.Deferred(function(e){ft.each(n,function(n,i){var o=ft.isFunction(t[i[4]])&&t[i[4]];r[i[1]](function(){var t=o&&o.apply(this,arguments);t&&ft.isFunction(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[i[0]+"With"](this,o?[t]:arguments)})}),t=null}).promise()},then:function(e,i,o){function r(e,n,i,o){return function(){var u=this,c=arguments,h=function(){var t,h;if(!(e<a)){if((t=i.apply(u,c))===n.promise())throw new TypeError("Thenable self-resolution");h=t&&("object"==typeof t||"function"==typeof t)&&t.then,ft.isFunction(h)?o?h.call(t,r(a,n,s,o),r(a,n,l,o)):(a++,h.call(t,r(a,n,s,o),r(a,n,l,o),r(a,n,s,n.notifyWith))):(i!==s&&(u=void 0,c=[t]),(o||n.resolveWith)(u,c))}},d=o?h:function(){try{h()}catch(t){ft.Deferred.exceptionHook&&ft.Deferred.exceptionHook(t,d.stackTrace),e+1>=a&&(i!==l&&(u=void 0,c=[t]),n.rejectWith(u,c))}};e?d():(ft.Deferred.getStackHook&&(d.stackTrace=ft.Deferred.getStackHook()),t.setTimeout(d))}}var a=0;return ft.Deferred(function(t){n[0][3].add(r(0,t,ft.isFunction(o)?o:s,t.notifyWith)),n[1][3].add(r(0,t,ft.isFunction(e)?e:s)),n[2][3].add(r(0,t,ft.isFunction(i)?i:l))}).promise()},promise:function(t){return null!=t?ft.extend(t,o):o}},r={};return ft.each(n,function(t,e){var a=e[2],s=e[5];o[e[1]]=a.add,s&&a.add(function(){i=s},n[3-t][2].disable,n[0][2].lock),a.add(e[3].fire),r[e[0]]=function(){return r[e[0]+"With"](this===r?void 0:this,arguments),this},r[e[0]+"With"]=a.fireWith}),o.promise(r),e&&e.call(r,r),r},when:function(t){var e=arguments.length,n=e,i=Array(n),o=it.call(arguments),r=ft.Deferred(),a=function(t){return function(n){i[t]=this,o[t]=arguments.length>1?it.call(arguments):n,--e||r.resolveWith(i,o)}};if(e<=1&&(u(t,r.done(a(n)).resolve,r.reject),"pending"===r.state()||ft.isFunction(o[n]&&o[n].then)))return r.then();for(;n--;)u(o[n],a(n),r.reject);return r.promise()}});var At=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ft.Deferred.exceptionHook=function(e,n){t.console&&t.console.warn&&e&&At.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,n)},ft.readyException=function(e){t.setTimeout(function(){throw e})};var Mt=ft.Deferred();ft.fn.ready=function(t){return Mt.then(t).catch(function(t){ft.readyException(t)}),this},ft.extend({isReady:!1,readyWait:1,holdReady:function(t){t?ft.readyWait++:ft.ready(!0)},ready:function(t){(!0===t?--ft.readyWait:ft.isReady)||(ft.isReady=!0,!0!==t&&--ft.readyWait>0||Mt.resolveWith(et,[ft]))}}),ft.ready.then=Mt.then,"complete"===et.readyState||"loading"!==et.readyState&&!et.documentElement.doScroll?t.setTimeout(ft.ready):(et.addEventListener("DOMContentLoaded",c),t.addEventListener("load",c));var zt=function(t,e,n,i,o,r,a){var s=0,l=t.length,u=null==n;if("object"===ft.type(n)){o=!0;for(s in n)zt(t,e,s,n[s],!0,r,a)}else if(void 0!==i&&(o=!0,ft.isFunction(i)||(a=!0),u&&(a?(e.call(t,i),e=null):(u=e,e=function(t,e,n){return u.call(ft(t),n)})),e))for(;s<l;s++)e(t[s],n,a?i:i.call(t[s],s,e(t[s],n)));return o?t:u?e.call(t):l?e(t[0],n):r},It=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};h.uid=1,h.prototype={cache:function(t){var e=t[this.expando];return e||(e={},It(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,o=this.cache(t);if("string"==typeof e)o[ft.camelCase(e)]=n;else for(i in e)o[ft.camelCase(i)]=e[i];return o},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][ft.camelCase(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){ft.isArray(e)?e=e.map(ft.camelCase):(e=ft.camelCase(e),e=e in i?[e]:e.match(Et)||[]),n=e.length;for(;n--;)delete i[e[n]]}(void 0===e||ft.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!ft.isEmptyObject(e)}};var Nt=new h,Dt=new h,Ot=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,jt=/[A-Z]/g;ft.extend({hasData:function(t){return Dt.hasData(t)||Nt.hasData(t)},data:function(t,e,n){return Dt.access(t,e,n)},removeData:function(t,e){Dt.remove(t,e)},_data:function(t,e,n){return Nt.access(t,e,n)},_removeData:function(t,e){Nt.remove(t,e)}}),ft.fn.extend({data:function(t,e){var n,i,o,r=this[0],a=r&&r.attributes;if(void 0===t){if(this.length&&(o=Dt.get(r),1===r.nodeType&&!Nt.get(r,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(i=a[n].name,0===i.indexOf("data-")&&(i=ft.camelCase(i.slice(5)),p(r,i,o[i])));Nt.set(r,"hasDataAttrs",!0)}return o}return"object"==typeof t?this.each(function(){Dt.set(this,t)}):zt(this,function(e){var n;if(r&&void 0===e){if(void 0!==(n=Dt.get(r,t)))return n;if(void 0!==(n=p(r,t)))return n}else this.each(function(){Dt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Dt.remove(this,t)})}}),ft.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=Nt.get(t,e),n&&(!i||ft.isArray(n)?i=Nt.access(t,e,ft.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=ft.queue(t,e),i=n.length,o=n.shift(),r=ft._queueHooks(t,e),a=function(){ft.dequeue(t,e)};"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===e&&n.unshift("inprogress"),delete r.stop,o.call(t,a,r)),!i&&r&&r.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Nt.get(t,n)||Nt.access(t,n,{empty:ft.Callbacks("once memory").add(function(){Nt.remove(t,[e+"queue",n])})})}}),ft.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?ft.queue(this[0],t):void 0===e?this:this.each(function(){var n=ft.queue(this,t,e);ft._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&ft.dequeue(this,t)})},dequeue:function(t){return this.each(function(){ft.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,o=ft.Deferred(),r=this,a=this.length,s=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=Nt.get(r[a],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),o.promise(e)}});var Bt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Rt=new RegExp("^(?:([+-])=|)("+Bt+")([a-z%]*)$","i"),Ft=["Top","Right","Bottom","Left"],Zt=function(t,e){return t=e||t,"none"===t.style.display||""===t.style.display&&ft.contains(t.ownerDocument,t)&&"none"===ft.css(t,"display")},Ht=function(t,e,n,i){var o,r,a={};for(r in e)a[r]=t.style[r],t.style[r]=e[r];o=n.apply(t,i||[]);for(r in e)t.style[r]=a[r];return o},qt={};ft.fn.extend({show:function(){return g(this,!0)},hide:function(){return g(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Zt(this)?ft(this).show():ft(this).hide()})}});var Wt=/^(?:checkbox|radio)$/i,Vt=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,$t=/^$|\/(?:java|ecma)script/i,Ut={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ut.optgroup=Ut.option,Ut.tbody=Ut.tfoot=Ut.colgroup=Ut.caption=Ut.thead,Ut.th=Ut.td;var Gt=/<|&#?\w+;/;!function(){var t=et.createDocumentFragment(),e=t.appendChild(et.createElement("div")),n=et.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),dt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",dt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Xt=et.documentElement,Yt=/^key/,Kt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Jt=/^([^.]*)(?:\.(.+)|)/;ft.event={global:{},add:function(t,e,n,i,o){var r,a,s,l,u,c,h,d,p,f,m,g=Nt.get(t);if(g)for(n.handler&&(r=n,n=r.handler,o=r.selector),o&&ft.find.matchesSelector(Xt,o),n.guid||(n.guid=ft.guid++),(l=g.events)||(l=g.events={}),(a=g.handle)||(a=g.handle=function(e){return void 0!==ft&&ft.event.triggered!==e.type?ft.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(Et)||[""],u=e.length;u--;)s=Jt.exec(e[u])||[],p=m=s[1],f=(s[2]||"").split(".").sort(),p&&(h=ft.event.special[p]||{},p=(o?h.delegateType:h.bindType)||p,h=ft.event.special[p]||{},c=ft.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&ft.expr.match.needsContext.test(o),namespace:f.join(".")},r),(d=l[p])||(d=l[p]=[],d.delegateCount=0,h.setup&&!1!==h.setup.call(t,i,f,a)||t.addEventListener&&t.addEventListener(p,a)),h.add&&(h.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),o?d.splice(d.delegateCount++,0,c):d.push(c),ft.event.global[p]=!0)},remove:function(t,e,n,i,o){var r,a,s,l,u,c,h,d,p,f,m,g=Nt.hasData(t)&&Nt.get(t);if(g&&(l=g.events)){for(e=(e||"").match(Et)||[""],u=e.length;u--;)if(s=Jt.exec(e[u])||[],p=m=s[1],f=(s[2]||"").split(".").sort(),p){for(h=ft.event.special[p]||{},p=(i?h.delegateType:h.bindType)||p,d=l[p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=r=d.length;r--;)c=d[r],!o&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(d.splice(r,1),c.selector&&d.delegateCount--,h.remove&&h.remove.call(t,c));a&&!d.length&&(h.teardown&&!1!==h.teardown.call(t,f,g.handle)||ft.removeEvent(t,p,g.handle),delete l[p])}else for(p in l)ft.event.remove(t,p+e[u],n,i,!0);ft.isEmptyObject(l)&&Nt.remove(t,"handle events")}},dispatch:function(t){var e,n,i,o,r,a,s=ft.event.fix(t),l=new Array(arguments.length),u=(Nt.get(this,"events")||{})[s.type]||[],c=ft.event.special[s.type]||{};for(l[0]=s,e=1;e<arguments.length;e++)l[e]=arguments[e];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(a=ft.event.handlers.call(this,s,u),e=0;(o=a[e++])&&!s.isPropagationStopped();)for(s.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(r.namespace)||(s.handleObj=r,s.data=r.data,void 0!==(i=((ft.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,l))&&!1===(s.result=i)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(t,e){var n,i,o,r,a,s=[],l=e.delegateCount,u=t.target;if(l&&u.nodeType&&!("click"===t.type&&t.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(r=[],a={},n=0;n<l;n++)i=e[n],o=i.selector+" ",void 0===a[o]&&(a[o]=i.needsContext?ft(o,this).index(u)>-1:ft.find(o,this,null,[u]).length),a[o]&&r.push(i);r.length&&s.push({elem:u,handlers:r})}return u=this,l<e.length&&s.push({elem:u,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(ft.Event.prototype,t,{enumerable:!0,configurable:!0,get:ft.isFunction(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[ft.expando]?t:new ft.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==w()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===w()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&ft.nodeName(this,"input"))return this.click(),!1},_default:function(t){return ft.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},ft.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},ft.Event=function(t,e){return this instanceof ft.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?b:x,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&ft.extend(this,e),this.timeStamp=t&&t.timeStamp||ft.now(),void(this[ft.expando]=!0)):new ft.Event(t,e)},ft.Event.prototype={constructor:ft.Event,isDefaultPrevented:x,isPropagationStopped:x,isImmediatePropagationStopped:x,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=b,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=b,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=b,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},ft.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&Yt.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&Kt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},ft.event.addProp),ft.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){ft.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,o=t.relatedTarget,r=t.handleObj;return o&&(o===i||ft.contains(i,o))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}}),ft.fn.extend({on:function(t,e,n,i){return T(this,t,e,n,i)},one:function(t,e,n,i){return T(this,t,e,n,i,1)},off:function(t,e,n){var i,o;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,ft(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(o in t)this.off(o,e,t[o]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=x),this.each(function(){ft.event.remove(this,t,n,e)})}});var Qt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,te=/<script|<style|<link/i,ee=/checked\s*(?:[^=]|=\s*.checked.)/i,ne=/^true\/(.*)/,ie=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;ft.extend({htmlPrefilter:function(t){return t.replace(Qt,"<$1></$2>")},clone:function(t,e,n){var i,o,r,a,s=t.cloneNode(!0),l=ft.contains(t.ownerDocument,t);if(!(dt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||ft.isXMLDoc(t)))for(a=v(s),r=v(t),i=0,o=r.length;i<o;i++)S(r[i],a[i]);if(e)if(n)for(r=r||v(t),a=a||v(s),i=0,o=r.length;i<o;i++)k(r[i],a[i]);else k(t,s);return a=v(s,"script"),a.length>0&&_(a,!l&&v(t,"script")),s},cleanData:function(t){for(var e,n,i,o=ft.event.special,r=0;void 0!==(n=t[r]);r++)if(It(n)){if(e=n[Nt.expando]){if(e.events)for(i in e.events)o[i]?ft.event.remove(n,i):ft.removeEvent(n,i,e.handle);n[Nt.expando]=void 0}n[Dt.expando]&&(n[Dt.expando]=void 0)}}}),ft.fn.extend({detach:function(t){return A(this,t,!0)},remove:function(t){return A(this,t)},text:function(t){return zt(this,function(t){return void 0===t?ft.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return E(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){C(this,t).appendChild(t)}})},prepend:function(){return E(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=C(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return E(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return E(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(ft.cleanData(v(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return ft.clone(this,t,e)})},html:function(t){return zt(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!te.test(t)&&!Ut[(Vt.exec(t)||["",""])[1].toLowerCase()]){t=ft.htmlPrefilter(t);try{for(;n<i;n++)e=this[n]||{},1===e.nodeType&&(ft.cleanData(v(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return E(this,arguments,function(e){var n=this.parentNode;ft.inArray(this,t)<0&&(ft.cleanData(v(this)),n&&n.replaceChild(e,this))},t)}}),ft.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){ft.fn[t]=function(t){for(var n,i=[],o=ft(t),r=o.length-1,a=0;a<=r;a++)n=a===r?this:this.clone(!0),ft(o[a])[e](n),rt.apply(i,n.get());return this.pushStack(i)}});var oe=/^margin/,re=new RegExp("^("+Bt+")(?!px)[a-z%]+$","i"),ae=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)};!function(){function e(){if(s){s.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",s.innerHTML="",Xt.appendChild(a);var e=t.getComputedStyle(s);n="1%"!==e.top,r="2px"===e.marginLeft,i="4px"===e.width,s.style.marginRight="50%",o="4px"===e.marginRight,Xt.removeChild(a),s=null}}var n,i,o,r,a=et.createElement("div"),s=et.createElement("div");s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",dt.clearCloneStyle="content-box"===s.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(s),ft.extend(dt,{pixelPosition:function(){return e(),n},boxSizingReliable:function(){return e(),i},pixelMarginRight:function(){return e(),o},reliableMarginLeft:function(){return e(),r}}))}();var se=/^(none|table(?!-c[ea]).+)/,le={position:"absolute",visibility:"hidden",display:"block"},ue={letterSpacing:"0",fontWeight:"400"},ce=["Webkit","Moz","ms"],he=et.createElement("div").style;ft.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=M(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,r,a,s=ft.camelCase(e),l=t.style;return e=ft.cssProps[s]||(ft.cssProps[s]=I(s)||s),a=ft.cssHooks[e]||ft.cssHooks[s],void 0===n?a&&"get"in a&&void 0!==(o=a.get(t,!1,i))?o:l[e]:(r=typeof n,"string"===r&&(o=Rt.exec(n))&&o[1]&&(n=f(t,e,o),r="number"),void(null!=n&&n===n&&("number"===r&&(n+=o&&o[3]||(ft.cssNumber[s]?"":"px")),dt.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,i))||(l[e]=n))))}},css:function(t,e,n,i){var o,r,a,s=ft.camelCase(e);return e=ft.cssProps[s]||(ft.cssProps[s]=I(s)||s),a=ft.cssHooks[e]||ft.cssHooks[s],a&&"get"in a&&(o=a.get(t,!0,n)),void 0===o&&(o=M(t,e,i)),"normal"===o&&e in ue&&(o=ue[e]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),ft.each(["height","width"],function(t,e){ft.cssHooks[e]={get:function(t,n,i){if(n)return!se.test(ft.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?O(t,e,i):Ht(t,le,function(){return O(t,e,i)})},set:function(t,n,i){var o,r=i&&ae(t),a=i&&D(t,e,i,"border-box"===ft.css(t,"boxSizing",!1,r),r);return a&&(o=Rt.exec(n))&&"px"!==(o[3]||"px")&&(t.style[e]=n,n=ft.css(t,e)),N(t,n,a)}}}),ft.cssHooks.marginLeft=z(dt.reliableMarginLeft,function(t,e){if(e)return(parseFloat(M(t,"marginLeft"))||t.getBoundingClientRect().left-Ht(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),ft.each({margin:"",padding:"",border:"Width"},function(t,e){ft.cssHooks[t+e]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];i<4;i++)o[t+Ft[i]+e]=r[i]||r[i-2]||r[0];return o}},oe.test(t)||(ft.cssHooks[t+e].set=N)}),ft.fn.extend({css:function(t,e){return zt(this,function(t,e,n){var i,o,r={},a=0;if(ft.isArray(e)){for(i=ae(t),o=e.length;a<o;a++)r[e[a]]=ft.css(t,e[a],!1,i);return r}return void 0!==n?ft.style(t,e,n):ft.css(t,e)},t,e,arguments.length>1)}}),ft.Tween=j,j.prototype={constructor:j,init:function(t,e,n,i,o,r){this.elem=t,this.prop=n,this.easing=o||ft.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=r||(ft.cssNumber[n]?"":"px")},cur:function(){var t=j.propHooks[this.prop];return t&&t.get?t.get(this):j.propHooks._default.get(this)},run:function(t){var e,n=j.propHooks[this.prop];return this.options.duration?this.pos=e=ft.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):j.propHooks._default.set(this),this}},j.prototype.init.prototype=j.prototype,j.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=ft.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){ft.fx.step[t.prop]?ft.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[ft.cssProps[t.prop]]&&!ft.cssHooks[t.prop]?t.elem[t.prop]=t.now:ft.style(t.elem,t.prop,t.now+t.unit)}}},j.propHooks.scrollTop=j.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},ft.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},ft.fx=j.prototype.init,ft.fx.step={};var de,pe,fe=/^(?:toggle|show|hide)$/,me=/queueHooks$/;ft.Animation=ft.extend(W,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return f(n.elem,t,Rt.exec(e),n),n}]},tweener:function(t,e){ft.isFunction(t)?(e=t,t=["*"]):t=t.match(Et);for(var n,i=0,o=t.length;i<o;i++)n=t[i],W.tweeners[n]=W.tweeners[n]||[],W.tweeners[n].unshift(e)},prefilters:[H],prefilter:function(t,e){e?W.prefilters.unshift(t):W.prefilters.push(t)}}),ft.speed=function(t,e,n){var i=t&&"object"==typeof t?ft.extend({},t):{complete:n||!n&&e||ft.isFunction(t)&&t,duration:t,easing:n&&e||e&&!ft.isFunction(e)&&e};return ft.fx.off||et.hidden?i.duration=0:"number"!=typeof i.duration&&(i.duration in ft.fx.speeds?i.duration=ft.fx.speeds[i.duration]:i.duration=ft.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){ft.isFunction(i.old)&&i.old.call(this),i.queue&&ft.dequeue(this,i.queue)},i},ft.fn.extend({fadeTo:function(t,e,n,i){return this.filter(Zt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var o=ft.isEmptyObject(t),r=ft.speed(e,n,i),a=function(){var e=W(this,ft.extend({},t),r);(o||Nt.get(this,"finish"))&&e.stop(!0)};return a.finish=a,o||!1===r.queue?this.each(a):this.queue(r.queue,a)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,o=null!=t&&t+"queueHooks",r=ft.timers,a=Nt.get(this);if(o)a[o]&&a[o].stop&&i(a[o]);else for(o in a)a[o]&&a[o].stop&&me.test(o)&&i(a[o])
;for(o=r.length;o--;)r[o].elem!==this||null!=t&&r[o].queue!==t||(r[o].anim.stop(n),e=!1,r.splice(o,1));!e&&n||ft.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=Nt.get(this),i=n[t+"queue"],o=n[t+"queueHooks"],r=ft.timers,a=i?i.length:0;for(n.finish=!0,ft.queue(this,t,[]),o&&o.stop&&o.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===t&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<a;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),ft.each(["toggle","show","hide"],function(t,e){var n=ft.fn[e];ft.fn[e]=function(t,i,o){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(F(e,!0),t,i,o)}}),ft.each({slideDown:F("show"),slideUp:F("hide"),slideToggle:F("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){ft.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),ft.timers=[],ft.fx.tick=function(){var t,e=0,n=ft.timers;for(de=ft.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||ft.fx.stop(),de=void 0},ft.fx.timer=function(t){ft.timers.push(t),t()?ft.fx.start():ft.timers.pop()},ft.fx.interval=13,ft.fx.start=function(){pe||(pe=t.requestAnimationFrame?t.requestAnimationFrame(B):t.setInterval(ft.fx.tick,ft.fx.interval))},ft.fx.stop=function(){t.cancelAnimationFrame?t.cancelAnimationFrame(pe):t.clearInterval(pe),pe=null},ft.fx.speeds={slow:600,fast:200,_default:400},ft.fn.delay=function(e,n){return e=ft.fx?ft.fx.speeds[e]||e:e,n=n||"fx",this.queue(n,function(n,i){var o=t.setTimeout(n,e);i.stop=function(){t.clearTimeout(o)}})},function(){var t=et.createElement("input"),e=et.createElement("select"),n=e.appendChild(et.createElement("option"));t.type="checkbox",dt.checkOn=""!==t.value,dt.optSelected=n.selected,t=et.createElement("input"),t.value="t",t.type="radio",dt.radioValue="t"===t.value}();var ge,ve=ft.expr.attrHandle;ft.fn.extend({attr:function(t,e){return zt(this,ft.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){ft.removeAttr(this,t)})}}),ft.extend({attr:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===t.getAttribute?ft.prop(t,e,n):(1===r&&ft.isXMLDoc(t)||(o=ft.attrHooks[e.toLowerCase()]||(ft.expr.match.bool.test(e)?ge:void 0)),void 0!==n?null===n?void ft.removeAttr(t,e):o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:(t.setAttribute(e,n+""),n):o&&"get"in o&&null!==(i=o.get(t,e))?i:(i=ft.find.attr(t,e),null==i?void 0:i))},attrHooks:{type:{set:function(t,e){if(!dt.radioValue&&"radio"===e&&ft.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,o=e&&e.match(Et);if(o&&1===t.nodeType)for(;n=o[i++];)t.removeAttribute(n)}}),ge={set:function(t,e,n){return!1===e?ft.removeAttr(t,n):t.setAttribute(n,n),n}},ft.each(ft.expr.match.bool.source.match(/\w+/g),function(t,e){var n=ve[e]||ft.find.attr;ve[e]=function(t,e,i){var o,r,a=e.toLowerCase();return i||(r=ve[a],ve[a]=o,o=null!=n(t,e,i)?a:null,ve[a]=r),o}});var _e=/^(?:input|select|textarea|button)$/i,ye=/^(?:a|area)$/i;ft.fn.extend({prop:function(t,e){return zt(this,ft.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[ft.propFix[t]||t]})}}),ft.extend({prop:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&ft.isXMLDoc(t)||(e=ft.propFix[e]||e,o=ft.propHooks[e]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:t[e]=n:o&&"get"in o&&null!==(i=o.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=ft.find.attr(t,"tabindex");return e?parseInt(e,10):_e.test(t.nodeName)||ye.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),dt.optSelected||(ft.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),ft.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ft.propFix[this.toLowerCase()]=this}),ft.fn.extend({addClass:function(t){var e,n,i,o,r,a,s,l=0;if(ft.isFunction(t))return this.each(function(e){ft(this).addClass(t.call(this,e,$(this)))});if("string"==typeof t&&t)for(e=t.match(Et)||[];n=this[l++];)if(o=$(n),i=1===n.nodeType&&" "+V(o)+" "){for(a=0;r=e[a++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");s=V(i),o!==s&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,i,o,r,a,s,l=0;if(ft.isFunction(t))return this.each(function(e){ft(this).removeClass(t.call(this,e,$(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(Et)||[];n=this[l++];)if(o=$(n),i=1===n.nodeType&&" "+V(o)+" "){for(a=0;r=e[a++];)for(;i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");s=V(i),o!==s&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):ft.isFunction(t)?this.each(function(n){ft(this).toggleClass(t.call(this,n,$(this),e),e)}):this.each(function(){var e,i,o,r;if("string"===n)for(i=0,o=ft(this),r=t.match(Et)||[];e=r[i++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||(e=$(this),e&&Nt.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":Nt.get(this,"__className__")||""))})},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+V($(n))+" ").indexOf(e)>-1)return!0;return!1}});var be=/\r/g;ft.fn.extend({val:function(t){var e,n,i,o=this[0];return arguments.length?(i=ft.isFunction(t),this.each(function(n){var o;1===this.nodeType&&(o=i?t.call(this,n,ft(this).val()):t,null==o?o="":"number"==typeof o?o+="":ft.isArray(o)&&(o=ft.map(o,function(t){return null==t?"":t+""})),(e=ft.valHooks[this.type]||ft.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))})):o?(e=ft.valHooks[o.type]||ft.valHooks[o.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(o,"value"))?n:(n=o.value,"string"==typeof n?n.replace(be,""):null==n?"":n)):void 0}}),ft.extend({valHooks:{option:{get:function(t){var e=ft.find.attr(t,"value");return null!=e?e:V(ft.text(t))}},select:{get:function(t){var e,n,i,o=t.options,r=t.selectedIndex,a="select-one"===t.type,s=a?null:[],l=a?r+1:o.length;for(i=r<0?l:a?r:0;i<l;i++)if(n=o[i],(n.selected||i===r)&&!n.disabled&&(!n.parentNode.disabled||!ft.nodeName(n.parentNode,"optgroup"))){if(e=ft(n).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var n,i,o=t.options,r=ft.makeArray(e),a=o.length;a--;)i=o[a],(i.selected=ft.inArray(ft.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(t.selectedIndex=-1),r}}}}),ft.each(["radio","checkbox"],function(){ft.valHooks[this]={set:function(t,e){if(ft.isArray(e))return t.checked=ft.inArray(ft(t).val(),e)>-1}},dt.checkOn||(ft.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var xe=/^(?:focusinfocus|focusoutblur)$/;ft.extend(ft.event,{trigger:function(e,n,i,o){var r,a,s,l,u,c,h,d=[i||et],p=ut.call(e,"type")?e.type:e,f=ut.call(e,"namespace")?e.namespace.split("."):[];if(a=s=i=i||et,3!==i.nodeType&&8!==i.nodeType&&!xe.test(p+ft.event.triggered)&&(p.indexOf(".")>-1&&(f=p.split("."),p=f.shift(),f.sort()),u=p.indexOf(":")<0&&"on"+p,e=e[ft.expando]?e:new ft.Event(p,"object"==typeof e&&e),e.isTrigger=o?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),n=null==n?[e]:ft.makeArray(n,[e]),h=ft.event.special[p]||{},o||!h.trigger||!1!==h.trigger.apply(i,n))){if(!o&&!h.noBubble&&!ft.isWindow(i)){for(l=h.delegateType||p,xe.test(l+p)||(a=a.parentNode);a;a=a.parentNode)d.push(a),s=a;s===(i.ownerDocument||et)&&d.push(s.defaultView||s.parentWindow||t)}for(r=0;(a=d[r++])&&!e.isPropagationStopped();)e.type=r>1?l:h.bindType||p,c=(Nt.get(a,"events")||{})[e.type]&&Nt.get(a,"handle"),c&&c.apply(a,n),(c=u&&a[u])&&c.apply&&It(a)&&(e.result=c.apply(a,n),!1===e.result&&e.preventDefault());return e.type=p,o||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(d.pop(),n)||!It(i)||u&&ft.isFunction(i[p])&&!ft.isWindow(i)&&(s=i[u],s&&(i[u]=null),ft.event.triggered=p,i[p](),ft.event.triggered=void 0,s&&(i[u]=s)),e.result}},simulate:function(t,e,n){var i=ft.extend(new ft.Event,n,{type:t,isSimulated:!0});ft.event.trigger(i,null,e)}}),ft.fn.extend({trigger:function(t,e){return this.each(function(){ft.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return ft.event.trigger(t,e,n,!0)}}),ft.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){ft.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),ft.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),dt.focusin="onfocusin"in t,dt.focusin||ft.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){ft.event.simulate(e,t.target,ft.event.fix(t))};ft.event.special[e]={setup:function(){var i=this.ownerDocument||this,o=Nt.access(i,e);o||i.addEventListener(t,n,!0),Nt.access(i,e,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this,o=Nt.access(i,e)-1;o?Nt.access(i,e,o):(i.removeEventListener(t,n,!0),Nt.remove(i,e))}}});var we=t.location,Te=ft.now(),Ce=/\?/;ft.parseXML=function(e){var n;if(!e||"string"!=typeof e)return null;try{n=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||ft.error("Invalid XML: "+e),n};var Pe=/\[\]$/,Le=/\r?\n/g,ke=/^(?:submit|button|image|reset|file)$/i,Se=/^(?:input|select|textarea|keygen)/i;ft.param=function(t,e){var n,i=[],o=function(t,e){var n=ft.isFunction(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(ft.isArray(t)||t.jquery&&!ft.isPlainObject(t))ft.each(t,function(){o(this.name,this.value)});else for(n in t)U(n,t[n],e,o);return i.join("&")},ft.fn.extend({serialize:function(){return ft.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=ft.prop(this,"elements");return t?ft.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!ft(this).is(":disabled")&&Se.test(this.nodeName)&&!ke.test(t)&&(this.checked||!Wt.test(t))}).map(function(t,e){var n=ft(this).val();return null==n?null:ft.isArray(n)?ft.map(n,function(t){return{name:e.name,value:t.replace(Le,"\r\n")}}):{name:e.name,value:n.replace(Le,"\r\n")}}).get()}});var Ee=/%20/g,Ae=/#.*$/,Me=/([?&])_=[^&]*/,ze=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ie=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ne=/^(?:GET|HEAD)$/,De=/^\/\//,Oe={},je={},Be="*/".concat("*"),Re=et.createElement("a");Re.href=we.href,ft.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:we.href,type:"GET",isLocal:Ie.test(we.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Be,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ft.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Y(Y(t,ft.ajaxSettings),e):Y(ft.ajaxSettings,t)},ajaxPrefilter:G(Oe),ajaxTransport:G(je),ajax:function(e,n){function i(e,n,i,s){var u,d,p,b,x,w=n;c||(c=!0,l&&t.clearTimeout(l),o=void 0,a=s||"",T.readyState=e>0?4:0,u=e>=200&&e<300||304===e,i&&(b=K(f,T,i)),b=J(f,b,T,u),u?(f.ifModified&&(x=T.getResponseHeader("Last-Modified"),x&&(ft.lastModified[r]=x),(x=T.getResponseHeader("etag"))&&(ft.etag[r]=x)),204===e||"HEAD"===f.type?w="nocontent":304===e?w="notmodified":(w=b.state,d=b.data,p=b.error,u=!p)):(p=w,!e&&w||(w="error",e<0&&(e=0))),T.status=e,T.statusText=(n||w)+"",u?v.resolveWith(m,[d,w,T]):v.rejectWith(m,[T,w,p]),T.statusCode(y),y=void 0,h&&g.trigger(u?"ajaxSuccess":"ajaxError",[T,f,u?d:p]),_.fireWith(m,[T,w]),h&&(g.trigger("ajaxComplete",[T,f]),--ft.active||ft.event.trigger("ajaxStop")))}"object"==typeof e&&(n=e,e=void 0),n=n||{};var o,r,a,s,l,u,c,h,d,p,f=ft.ajaxSetup({},n),m=f.context||f,g=f.context&&(m.nodeType||m.jquery)?ft(m):ft.event,v=ft.Deferred(),_=ft.Callbacks("once memory"),y=f.statusCode||{},b={},x={},w="canceled",T={readyState:0,getResponseHeader:function(t){var e;if(c){if(!s)for(s={};e=ze.exec(a);)s[e[1].toLowerCase()]=e[2];e=s[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(t,e){return null==c&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==c&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)T.always(t[T.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||w;return o&&o.abort(e),i(0,e),this}};if(v.promise(T),f.url=((e||f.url||we.href)+"").replace(De,we.protocol+"//"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(Et)||[""],null==f.crossDomain){u=et.createElement("a");try{u.href=f.url,u.href=u.href,f.crossDomain=Re.protocol+"//"+Re.host!=u.protocol+"//"+u.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=ft.param(f.data,f.traditional)),X(Oe,f,n,T),c)return T;h=ft.event&&f.global,h&&0==ft.active++&&ft.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ne.test(f.type),r=f.url.replace(Ae,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Ee,"+")):(p=f.url.slice(r.length),f.data&&(r+=(Ce.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(Me,"$1"),p=(Ce.test(r)?"&":"?")+"_="+Te+++p),f.url=r+p),f.ifModified&&(ft.lastModified[r]&&T.setRequestHeader("If-Modified-Since",ft.lastModified[r]),ft.etag[r]&&T.setRequestHeader("If-None-Match",ft.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||n.contentType)&&T.setRequestHeader("Content-Type",f.contentType),T.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Be+"; q=0.01":""):f.accepts["*"]);for(d in f.headers)T.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(m,T,f)||c))return T.abort();if(w="abort",_.add(f.complete),T.done(f.success),T.fail(f.error),o=X(je,f,n,T)){if(T.readyState=1,h&&g.trigger("ajaxSend",[T,f]),c)return T;f.async&&f.timeout>0&&(l=t.setTimeout(function(){T.abort("timeout")},f.timeout));try{c=!1,o.send(b,i)}catch(t){if(c)throw t;i(-1,t)}}else i(-1,"No Transport");return T},getJSON:function(t,e,n){return ft.get(t,e,n,"json")},getScript:function(t,e){return ft.get(t,void 0,e,"script")}}),ft.each(["get","post"],function(t,e){ft[e]=function(t,n,i,o){return ft.isFunction(n)&&(o=o||i,i=n,n=void 0),ft.ajax(ft.extend({url:t,type:e,dataType:o,data:n,success:i},ft.isPlainObject(t)&&t))}}),ft._evalUrl=function(t){return ft.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},ft.fn.extend({wrapAll:function(t){var e;return this[0]&&(ft.isFunction(t)&&(t=t.call(this[0])),e=ft(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return ft.isFunction(t)?this.each(function(e){ft(this).wrapInner(t.call(this,e))}):this.each(function(){var e=ft(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=ft.isFunction(t);return this.each(function(n){ft(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){ft(this).replaceWith(this.childNodes)}),this}}),ft.expr.pseudos.hidden=function(t){return!ft.expr.pseudos.visible(t)},ft.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},ft.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var Fe={0:200,1223:204},Ze=ft.ajaxSettings.xhr();dt.cors=!!Ze&&"withCredentials"in Ze,dt.ajax=Ze=!!Ze,ft.ajaxTransport(function(e){var n,i;if(dt.cors||Ze&&!e.crossDomain)return{send:function(o,r){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest");for(a in o)s.setRequestHeader(a,o[a]);n=function(t){return function(){n&&(n=i=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?r(0,"error"):r(s.status,s.statusText):r(Fe[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),i=s.onerror=n("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&t.setTimeout(function(){n&&i()})},n=n("abort");try{s.send(e.hasContent&&e.data||null)}catch(t){if(n)throw t}},abort:function(){n&&n()}}}),ft.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),ft.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return ft.globalEval(t),t}}}),ft.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),ft.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(i,o){e=ft("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&o("error"===t.type?404:200,t.type)}),et.head.appendChild(e[0])},abort:function(){n&&n()}}}});var He=[],qe=/(=)\?(?=&|$)|\?\?/;ft.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=He.pop()||ft.expando+"_"+Te++;return this[t]=!0,t}}),ft.ajaxPrefilter("json jsonp",function(e,n,i){var o,r,a,s=!1!==e.jsonp&&(qe.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&qe.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=ft.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(qe,"$1"+o):!1!==e.jsonp&&(e.url+=(Ce.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return a||ft.error(o+" was not called"),a[0]},e.dataTypes[0]="json",r=t[o],t[o]=function(){a=arguments},i.always(function(){void 0===r?ft(t).removeProp(o):t[o]=r,e[o]&&(e.jsonpCallback=n.jsonpCallback,He.push(o)),a&&ft.isFunction(r)&&r(a[0]),a=r=void 0}),"script"}),dt.createHTMLDocument=function(){var t=et.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),ft.parseHTML=function(t,e,n){if("string"!=typeof t)return[];"boolean"==typeof e&&(n=e,e=!1);var i,o,r;return e||(dt.createHTMLDocument?(e=et.implementation.createHTMLDocument(""),i=e.createElement("base"),i.href=et.location.href,e.head.appendChild(i)):e=et),o=Tt.exec(t),r=!n&&[],o?[e.createElement(o[1])]:(o=y([t],e,r),r&&r.length&&ft(r).remove(),ft.merge([],o.childNodes))},ft.fn.load=function(t,e,n){var i,o,r,a=this,s=t.indexOf(" ");return s>-1&&(i=V(t.slice(s)),t=t.slice(0,s)),ft.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(o="POST"),a.length>0&&ft.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done(function(t){r=arguments,a.html(i?ft("<div>").append(ft.parseHTML(t)).find(i):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,r||[t.responseText,e,t])})}),this},ft.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){ft.fn[e]=function(t){return this.on(e,t)}}),ft.expr.pseudos.animated=function(t){return ft.grep(ft.timers,function(e){return t===e.elem}).length},ft.offset={setOffset:function(t,e,n){var i,o,r,a,s,l,u,c=ft.css(t,"position"),h=ft(t),d={};"static"===c&&(t.style.position="relative"),s=h.offset(),r=ft.css(t,"top"),l=ft.css(t,"left"),u=("absolute"===c||"fixed"===c)&&(r+l).indexOf("auto")>-1,u?(i=h.position(),a=i.top,o=i.left):(a=parseFloat(r)||0,o=parseFloat(l)||0),ft.isFunction(e)&&(e=e.call(t,n,ft.extend({},s))),null!=e.top&&(d.top=e.top-s.top+a),null!=e.left&&(d.left=e.left-s.left+o),"using"in e?e.using.call(t,d):h.css(d)}},ft.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ft.offset.setOffset(this,t,e)});var e,n,i,o,r=this[0];return r?r.getClientRects().length?(i=r.getBoundingClientRect(),i.width||i.height?(o=r.ownerDocument,n=Q(o),e=o.documentElement,{top:i.top+n.pageYOffset-e.clientTop,left:i.left+n.pageXOffset-e.clientLeft}):i):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n=this[0],i={top:0,left:0};return"fixed"===ft.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),ft.nodeName(t[0],"html")||(i=t.offset()),i={top:i.top+ft.css(t[0],"borderTopWidth",!0),left:i.left+ft.css(t[0],"borderLeftWidth",!0)}),{top:e.top-i.top-ft.css(n,"marginTop",!0),left:e.left-i.left-ft.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===ft.css(t,"position");)t=t.offsetParent;return t||Xt})}}),ft.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;ft.fn[t]=function(i){return zt(this,function(t,i,o){var r=Q(t);return void 0===o?r?r[e]:t[i]:void(r?r.scrollTo(n?r.pageXOffset:o,n?o:r.pageYOffset):t[i]=o)},t,i,arguments.length)}}),ft.each(["top","left"],function(t,e){ft.cssHooks[e]=z(dt.pixelPosition,function(t,n){if(n)return n=M(t,e),re.test(n)?ft(t).position()[e]+"px":n})}),ft.each({Height:"height",Width:"width"},function(t,e){ft.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){ft.fn[i]=function(o,r){var a=arguments.length&&(n||"boolean"!=typeof o),s=n||(!0===o||!0===r?"margin":"border");return zt(this,function(e,n,o){var r;return ft.isWindow(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===o?ft.css(e,n,s):ft.style(e,n,o,s)},e,a?o:void 0,a)}})}),ft.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),ft.parseJSON=JSON.parse,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ft});var We=t.jQuery,Ve=t.$;return ft.noConflict=function(e){return t.$===ft&&(t.$=Ve),e&&t.jQuery===ft&&(t.jQuery=We),ft},e||(t.jQuery=t.$=ft),ft}),function(t){var e=!0;t.flexslider=function(n,i){var o=t(n);o.vars=t.extend({},t.flexslider.defaults,i);var r,a=o.vars.namespace,s=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,l=("ontouchstart"in window||s||window.DocumentTouch&&document instanceof DocumentTouch)&&o.vars.touch,u="click touchend MSPointerUp keyup",c="",h="vertical"===o.vars.direction,d=o.vars.reverse,p=o.vars.itemWidth>0,f="fade"===o.vars.animation,m=""!==o.vars.asNavFor,g={};t.data(n,"flexslider",o),g={init:function(){o.animating=!1,o.currentSlide=parseInt(o.vars.startAt?o.vars.startAt:0,10),isNaN(o.currentSlide)&&(o.currentSlide=0),o.animatingTo=o.currentSlide,o.atEnd=0===o.currentSlide||o.currentSlide===o.last,o.containerSelector=o.vars.selector.substr(0,o.vars.selector.search(" ")),o.slides=t(o.vars.selector,o),o.container=t(o.containerSelector,o),o.count=o.slides.length,o.syncExists=t(o.vars.sync).length>0,"slide"===o.vars.animation&&(o.vars.animation="swing"),o.prop=h?"top":"marginLeft",o.args={},o.manualPause=!1,o.stopped=!1,o.started=!1,o.startTimeout=null,o.transitions=!o.vars.video&&!f&&o.vars.useCSS&&function(){var t=document.createElement("div"),e=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var n in e)if(void 0!==t.style[e[n]])return o.pfx=e[n].replace("Perspective","").toLowerCase(),o.prop="-"+o.pfx+"-transform",!0;return!1}(),o.ensureAnimationEnd="",""!==o.vars.controlsContainer&&(o.controlsContainer=t(o.vars.controlsContainer).length>0&&t(o.vars.controlsContainer)),""!==o.vars.manualControls&&(o.manualControls=t(o.vars.manualControls).length>0&&t(o.vars.manualControls)),""!==o.vars.customDirectionNav&&(o.customDirectionNav=2===t(o.vars.customDirectionNav).length&&t(o.vars.customDirectionNav)),o.vars.randomize&&(o.slides.sort(function(){return Math.round(Math.random())-.5}),o.container.empty().append(o.slides)),o.doMath(),o.setup("init"),o.vars.controlNav&&g.controlNav.setup(),o.vars.directionNav&&g.directionNav.setup(),o.vars.keyboard&&(1===t(o.containerSelector).length||o.vars.multipleKeyboard)&&t(document).bind("keyup",function(t){var e=t.keyCode;if(!o.animating&&(39===e||37===e)){var n=39===e?o.getTarget("next"):37===e&&o.getTarget("prev");o.flexAnimate(n,o.vars.pauseOnAction)}}),o.vars.mousewheel&&o.bind("mousewheel",function(t,e,n,i){t.preventDefault();var r=e<0?o.getTarget("next"):o.getTarget("prev");o.flexAnimate(r,o.vars.pauseOnAction)}),o.vars.pausePlay&&g.pausePlay.setup(),o.vars.slideshow&&o.vars.pauseInvisible&&g.pauseInvisible.init(),o.vars.slideshow&&(o.vars.pauseOnHover&&o.hover(function(){o.manualPlay||o.manualPause||o.pause()},function(){o.manualPause||o.manualPlay||o.stopped||o.play()}),o.vars.pauseInvisible&&g.pauseInvisible.isHidden()||(o.vars.initDelay>0?o.startTimeout=setTimeout(o.play,o.vars.initDelay):o.play())),m&&g.asNav.setup(),l&&o.vars.touch&&g.touch(),(!f||f&&o.vars.smoothHeight)&&t(window).bind("resize orientationchange focus",g.resize),o.find("img").attr("draggable","false"),setTimeout(function(){o.vars.start(o)},200)},asNav:{setup:function(){o.asNav=!0,o.animatingTo=Math.floor(o.currentSlide/o.move),o.currentItem=o.currentSlide,o.slides.removeClass(a+"active-slide").eq(o.currentItem).addClass(a+"active-slide"),s?(n._slider=o,o.slides.each(function(){var e=this;e._gesture=new MSGesture,e._gesture.target=e,e.addEventListener("MSPointerDown",function(t){t.preventDefault(),t.currentTarget._gesture&&t.currentTarget._gesture.addPointer(t.pointerId)},!1),e.addEventListener("MSGestureTap",function(e){e.preventDefault();var n=t(this),i=n.index();t(o.vars.asNavFor).data("flexslider").animating||n.hasClass("active")||(o.direction=o.currentItem<i?"next":"prev",o.flexAnimate(i,o.vars.pauseOnAction,!1,!0,!0))})})):o.slides.on(u,function(e){e.preventDefault();var n=t(this),i=n.index();n.offset().left-t(o).scrollLeft()<=0&&n.hasClass(a+"active-slide")?o.flexAnimate(o.getTarget("prev"),!0):t(o.vars.asNavFor).data("flexslider").animating||n.hasClass(a+"active-slide")||(o.direction=o.currentItem<i?"next":"prev",o.flexAnimate(i,o.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){o.manualControls?g.controlNav.setupManual():g.controlNav.setupPaging()},setupPaging:function(){var e,n,i="thumbnails"===o.vars.controlNav?"control-thumbs":"control-paging",r=1;if(o.controlNavScaffold=t('<ol class="'+a+"control-nav "+a+i+'"></ol>'),o.pagingCount>1)for(var s=0;s<o.pagingCount;s++){n=o.slides.eq(s),void 0===n.attr("data-thumb-alt")&&n.attr("data-thumb-alt","");var l=""!==n.attr("data-thumb-alt")?l=' alt="'+n.attr("data-thumb-alt")+'"':"";if(e="thumbnails"===o.vars.controlNav?'<img src="'+n.attr("data-thumb")+'"'+l+"/>":'<button aria-label="Slajd '+r+'">'+r+"</button>","thumbnails"===o.vars.controlNav&&!0===o.vars.thumbCaptions){var h=n.attr("data-thumbcaption");""!==h&&void 0!==h&&(e+='<span class="'+a+'caption">'+h+"</span>")}o.controlNavScaffold.append("<li>"+e+"</li>"),r++}o.controlsContainer?t(o.controlsContainer).append(o.controlNavScaffold):o.append(o.controlNavScaffold),g.controlNav.set(),g.controlNav.active(),o.controlNavScaffold.delegate("a, button, img",u,function(e){if(e.preventDefault(),""===c||c===e.type){var n=t(this),i=o.controlNav.index(n);n.hasClass(a+"active")||(o.direction=i>o.currentSlide?"next":"prev",o.flexAnimate(i,o.vars.pauseOnAction))}""===c&&(c=e.type),g.setToClearWatchedEvent()})},setupManual:function(){o.controlNav=o.manualControls,g.controlNav.active(),o.controlNav.bind(u,function(e){if(e.preventDefault(),""===c||c===e.type){var n=t(this),i=o.controlNav.index(n);n.hasClass(a+"active")||(i>o.currentSlide?o.direction="next":o.direction="prev",o.flexAnimate(i,o.vars.pauseOnAction))}""===c&&(c=e.type),g.setToClearWatchedEvent()})},set:function(){var e="thumbnails"===o.vars.controlNav?"img":"button";o.controlNav=t("."+a+"control-nav li "+e,o.controlsContainer?o.controlsContainer:o)},active:function(){o.controlNav.removeClass(a+"active").eq(o.animatingTo).addClass(a+"active")},update:function(e,n){o.pagingCount>1&&"add"===e?o.controlNavScaffold.append(t('<li><button aria-label="Slajd '+o.count+'">'+o.count+"</button></li>")):1===o.pagingCount?o.controlNavScaffold.find("li").remove():o.controlNav.eq(n).closest("li").remove(),g.controlNav.set(),o.pagingCount>1&&o.pagingCount!==o.controlNav.length?o.update(n,e):g.controlNav.active()}},directionNav:{setup:function(){var e=t('<ul class="'+a+'direction-nav"><li class="'+a+'nav-prev"><button class="'+a+'prev">'+o.vars.prevText+'</button></li><li class="'+a+'nav-next"><button class="'+a+'next">'+o.vars.nextText+"</button></li></ul>");o.customDirectionNav?o.directionNav=o.customDirectionNav:o.controlsContainer?(t(o.controlsContainer).append(e),o.directionNav=t("."+a+"direction-nav li button",o.controlsContainer)):(o.append(e),o.directionNav=t("."+a+"direction-nav li button",o)),g.directionNav.update(),o.directionNav.bind(u,function(e){e.preventDefault();var n;""!==c&&c!==e.type||(n=t(this).hasClass(a+"next")?o.getTarget("next"):o.getTarget("prev"),o.flexAnimate(n,o.vars.pauseOnAction)),""===c&&(c=e.type),g.setToClearWatchedEvent()})},update:function(){var t=a+"disabled";1===o.pagingCount?o.directionNav.addClass(t).attr("tabindex","-1"):o.vars.animationLoop?o.directionNav.removeClass(t).removeAttr("tabindex"):0===o.animatingTo?o.directionNav.removeClass(t).filter("."+a+"prev").addClass(t).attr("tabindex","-1"):o.animatingTo===o.last?o.directionNav.removeClass(t).filter("."+a+"next").addClass(t).attr("tabindex","-1"):o.directionNav.removeClass(t).removeAttr("tabindex")}},pausePlay:{setup:function(){var e=t('<div class="'+a+'pauseplay"><button aria-label="Zatrzymaj / odtwarzaj rotator"></button></div>');o.controlsContainer?(o.controlsContainer.append(e),o.pausePlay=t("."+a+"pauseplay button",o.controlsContainer)):(o.append(e),o.pausePlay=t("."+a+"pauseplay button",o)),g.pausePlay.update(o.vars.slideshow?a+"pause":a+"play"),o.pausePlay.bind(u,function(e){e.preventDefault(),""!==c&&c!==e.type||(t(this).hasClass(a+"pause")?(o.manualPause=!0,o.manualPlay=!1,o.pause()):(o.manualPause=!1,o.manualPlay=!0,o.play())),""===c&&(c=e.type),g.setToClearWatchedEvent()})},update:function(t){"play"===t?o.pausePlay.removeClass(a+"pause").addClass(a+"play").html(o.vars.playText):o.pausePlay.removeClass(a+"play").addClass(a+"pause").html(o.vars.pauseText)}},touch:function(){function t(t){t.stopPropagation(),o.animating?t.preventDefault():(o.pause(),n._gesture.addPointer(t.pointerId),w=0,u=h?o.h:o.w,m=Number(new Date),l=p&&d&&o.animatingTo===o.last?0:p&&d?o.limit-(o.itemW+o.vars.itemMargin)*o.move*o.animatingTo:p&&o.currentSlide===o.last?o.limit:p?(o.itemW+o.vars.itemMargin)*o.move*o.currentSlide:d?(o.last-o.currentSlide+o.cloneOffset)*u:(o.currentSlide+o.cloneOffset)*u)}function e(t){t.stopPropagation();var e=t.target._slider;if(e){var i=-t.translationX,o=-t.translationY;if(w+=h?o:i,c=w,y=h?Math.abs(w)<Math.abs(-i):Math.abs(w)<Math.abs(-o),
t.detail===t.MSGESTURE_FLAG_INERTIA)return void setImmediate(function(){n._gesture.stop()});(!y||Number(new Date)-m>500)&&(t.preventDefault(),!f&&e.transitions&&(e.vars.animationLoop||(c=w/(0===e.currentSlide&&w<0||e.currentSlide===e.last&&w>0?Math.abs(w)/u+2:1)),e.setProps(l+c,"setTouch")))}}function i(t){t.stopPropagation();var e=t.target._slider;if(e){if(e.animatingTo===e.currentSlide&&!y&&null!==c){var n=d?-c:c,i=n>0?e.getTarget("next"):e.getTarget("prev");e.canAdvance(i)&&(Number(new Date)-m<550&&Math.abs(n)>50||Math.abs(n)>u/2)?e.flexAnimate(i,e.vars.pauseOnAction):f||e.flexAnimate(e.currentSlide,e.vars.pauseOnAction,!0)}r=null,a=null,c=null,l=null,w=0}}var r,a,l,u,c,m,g,v,_,y=!1,b=0,x=0,w=0;s?(n.style.msTouchAction="none",n._gesture=new MSGesture,n._gesture.target=n,n.addEventListener("MSPointerDown",t,!1),n._slider=o,n.addEventListener("MSGestureChange",e,!1),n.addEventListener("MSGestureEnd",i,!1)):(g=function(t){o.animating?t.preventDefault():(window.navigator.msPointerEnabled||1===t.touches.length)&&(o.pause(),u=h?o.h:o.w,m=Number(new Date),b=t.touches[0].pageX,x=t.touches[0].pageY,l=p&&d&&o.animatingTo===o.last?0:p&&d?o.limit-(o.itemW+o.vars.itemMargin)*o.move*o.animatingTo:p&&o.currentSlide===o.last?o.limit:p?(o.itemW+o.vars.itemMargin)*o.move*o.currentSlide:d?(o.last-o.currentSlide+o.cloneOffset)*u:(o.currentSlide+o.cloneOffset)*u,r=h?x:b,a=h?b:x,n.addEventListener("touchmove",v,!1),n.addEventListener("touchend",_,!1))},v=function(t){b=t.touches[0].pageX,x=t.touches[0].pageY,c=h?r-x:r-b,y=h?Math.abs(c)<Math.abs(b-a):Math.abs(c)<Math.abs(x-a);(!y||Number(new Date)-m>500)&&(t.preventDefault(),!f&&o.transitions&&(o.vars.animationLoop||(c/=0===o.currentSlide&&c<0||o.currentSlide===o.last&&c>0?Math.abs(c)/u+2:1),o.setProps(l+c,"setTouch")))},_=function(t){if(n.removeEventListener("touchmove",v,!1),o.animatingTo===o.currentSlide&&!y&&null!==c){var e=d?-c:c,i=e>0?o.getTarget("next"):o.getTarget("prev");o.canAdvance(i)&&(Number(new Date)-m<550&&Math.abs(e)>50||Math.abs(e)>u/2)?o.flexAnimate(i,o.vars.pauseOnAction):f||o.flexAnimate(o.currentSlide,o.vars.pauseOnAction,!0)}n.removeEventListener("touchend",_,!1),r=null,a=null,c=null,l=null},n.addEventListener("touchstart",g,!1))},resize:function(){!o.animating&&o.is(":visible")&&(p||o.doMath(),f?g.smoothHeight():p?(o.slides.width(o.computedW),o.update(o.pagingCount),o.setProps()):h?(o.viewport.height(o.h),o.setProps(o.h,"setTotal")):(o.vars.smoothHeight&&g.smoothHeight(),o.newSlides.width(o.computedW),o.setProps(o.computedW,"setTotal")))},smoothHeight:function(t){if(!h||f){var e=f?o:o.viewport;t?e.animate({height:o.slides.eq(o.animatingTo).innerHeight()},t):e.innerHeight(o.slides.eq(o.animatingTo).innerHeight())}},sync:function(e){var n=t(o.vars.sync).data("flexslider"),i=o.animatingTo;switch(e){case"animate":n.flexAnimate(i,o.vars.pauseOnAction,!1,!0);break;case"play":n.playing||n.asNav||n.play();break;case"pause":n.pause()}},uniqueID:function(e){return e.filter("[id]").add(e.find("[id]")).each(function(){var e=t(this);e.attr("id",e.attr("id")+"_clone")}),e},pauseInvisible:{visProp:null,init:function(){var t=g.pauseInvisible.getHiddenProp();if(t){var e=t.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(e,function(){g.pauseInvisible.isHidden()?o.startTimeout?clearTimeout(o.startTimeout):o.pause():o.started?o.play():o.vars.initDelay>0?setTimeout(o.play,o.vars.initDelay):o.play()})}},isHidden:function(){var t=g.pauseInvisible.getHiddenProp();return!!t&&document[t]},getHiddenProp:function(){var t=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var e=0;e<t.length;e++)if(t[e]+"Hidden"in document)return t[e]+"Hidden";return null}},setToClearWatchedEvent:function(){clearTimeout(r),r=setTimeout(function(){c=""},3e3)}},o.flexAnimate=function(e,n,i,r,s){if(o.vars.animationLoop||e===o.currentSlide||(o.direction=e>o.currentSlide?"next":"prev"),m&&1===o.pagingCount&&(o.direction=o.currentItem<e?"next":"prev"),!o.animating&&(o.canAdvance(e,s)||i)&&o.is(":visible")){if(m&&r){var u=t(o.vars.asNavFor).data("flexslider");if(o.atEnd=0===e||e===o.count-1,u.flexAnimate(e,!0,!1,!0,s),o.direction=o.currentItem<e?"next":"prev",u.direction=o.direction,Math.ceil((e+1)/o.visible)-1===o.currentSlide||0===e)return o.currentItem=e,o.slides.removeClass(a+"active-slide").eq(e).addClass(a+"active-slide"),!1;o.currentItem=e,o.slides.removeClass(a+"active-slide").eq(e).addClass(a+"active-slide"),e=Math.floor(e/o.visible)}if(o.animating=!0,o.animatingTo=e,n&&o.pause(),o.vars.before(o),o.syncExists&&!s&&g.sync("animate"),o.vars.controlNav&&g.controlNav.active(),p||o.slides.removeClass(a+"active-slide").eq(e).addClass(a+"active-slide"),o.atEnd=0===e||e===o.last,o.vars.directionNav&&g.directionNav.update(),e===o.last&&(o.vars.end(o),o.vars.animationLoop||o.pause()),f)l?(o.slides.eq(o.currentSlide).css({opacity:0,zIndex:1}),o.slides.eq(e).css({opacity:1,zIndex:2}),o.wrapup(y)):(o.slides.eq(o.currentSlide).css({zIndex:1}).animate({opacity:0},o.vars.animationSpeed,o.vars.easing),o.slides.eq(e).css({zIndex:2}).animate({opacity:1},o.vars.animationSpeed,o.vars.easing,o.wrapup));else{var c,v,_,y=h?o.slides.filter(":first").height():o.computedW;p?(c=o.vars.itemMargin,_=(o.itemW+c)*o.move*o.animatingTo,v=_>o.limit&&1!==o.visible?o.limit:_):v=0===o.currentSlide&&e===o.count-1&&o.vars.animationLoop&&"next"!==o.direction?d?(o.count+o.cloneOffset)*y:0:o.currentSlide===o.last&&0===e&&o.vars.animationLoop&&"prev"!==o.direction?d?0:(o.count+1)*y:d?(o.count-1-e+o.cloneOffset)*y:(e+o.cloneOffset)*y,o.setProps(v,"",o.vars.animationSpeed),o.transitions?(o.vars.animationLoop&&o.atEnd||(o.animating=!1,o.currentSlide=o.animatingTo),o.container.unbind("webkitTransitionEnd transitionend"),o.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(o.ensureAnimationEnd),o.wrapup(y)}),clearTimeout(o.ensureAnimationEnd),o.ensureAnimationEnd=setTimeout(function(){o.wrapup(y)},o.vars.animationSpeed+100)):o.container.animate(o.args,o.vars.animationSpeed,o.vars.easing,function(){o.wrapup(y)})}o.vars.smoothHeight&&g.smoothHeight(o.vars.animationSpeed)}},o.wrapup=function(t){f||p||(0===o.currentSlide&&o.animatingTo===o.last&&o.vars.animationLoop?o.setProps(t,"jumpEnd"):o.currentSlide===o.last&&0===o.animatingTo&&o.vars.animationLoop&&o.setProps(t,"jumpStart")),o.animating=!1,o.currentSlide=o.animatingTo,o.vars.after(o)},o.animateSlides=function(){!o.animating&&e&&o.flexAnimate(o.getTarget("next"))},o.pause=function(){clearInterval(o.animatedSlides),o.animatedSlides=null,o.playing=!1,o.vars.pausePlay&&g.pausePlay.update("play"),o.syncExists&&g.sync("pause")},o.play=function(){o.playing&&clearInterval(o.animatedSlides),o.animatedSlides=o.animatedSlides||setInterval(o.animateSlides,o.vars.slideshowSpeed),o.started=o.playing=!0,o.vars.pausePlay&&g.pausePlay.update("pause"),o.syncExists&&g.sync("play")},o.stop=function(){o.pause(),o.stopped=!0},o.canAdvance=function(t,e){var n=m?o.pagingCount-1:o.last;return!!e||(!(!m||o.currentItem!==o.count-1||0!==t||"prev"!==o.direction)||(!m||0!==o.currentItem||t!==o.pagingCount-1||"next"===o.direction)&&(!(t===o.currentSlide&&!m)&&(!!o.vars.animationLoop||(!o.atEnd||0!==o.currentSlide||t!==n||"next"===o.direction)&&(!o.atEnd||o.currentSlide!==n||0!==t||"next"!==o.direction))))},o.getTarget=function(t){return o.direction=t,"next"===t?o.currentSlide===o.last?0:o.currentSlide+1:0===o.currentSlide?o.last:o.currentSlide-1},o.setProps=function(t,e,n){var i=function(){var n=t||(o.itemW+o.vars.itemMargin)*o.move*o.animatingTo;return-1*function(){if(p)return"setTouch"===e?t:d&&o.animatingTo===o.last?0:d?o.limit-(o.itemW+o.vars.itemMargin)*o.move*o.animatingTo:o.animatingTo===o.last?o.limit:n;switch(e){case"setTotal":return d?(o.count-1-o.currentSlide+o.cloneOffset)*t:(o.currentSlide+o.cloneOffset)*t;case"setTouch":return t;case"jumpEnd":return d?t:o.count*t;case"jumpStart":return d?o.count*t:t;default:return t}}()+"px"}();o.transitions&&(i=h?"translate3d(0,"+i+",0)":"translate3d("+i+",0,0)",n=void 0!==n?n/1e3+"s":"0s",o.container.css("-"+o.pfx+"-transition-duration",n),o.container.css("transition-duration",n)),o.args[o.prop]=i,(o.transitions||void 0===n)&&o.container.css(o.args),o.container.css("transform",i)},o.setup=function(e){if(f)o.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),"init"===e&&(l?o.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+o.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(o.currentSlide).css({opacity:1,zIndex:2}):0==o.vars.fadeFirstSlide?o.slides.css({opacity:0,display:"block",zIndex:1}).eq(o.currentSlide).css({zIndex:2}).css({opacity:1}):o.slides.css({opacity:0,display:"block",zIndex:1}).eq(o.currentSlide).css({zIndex:2}).animate({opacity:1},o.vars.animationSpeed,o.vars.easing)),o.vars.smoothHeight&&g.smoothHeight();else{var n,i;"init"===e&&(o.viewport=t('<div class="'+a+'viewport"></div>').css({overflow:"hidden",position:"relative"}).appendTo(o).append(o.container),o.cloneCount=0,o.cloneOffset=0,d&&(i=t.makeArray(o.slides).reverse(),o.slides=t(i),o.container.empty().append(o.slides))),o.vars.animationLoop&&!p&&(o.cloneCount=2,o.cloneOffset=1,"init"!==e&&o.container.find(".clone").remove(),o.container.append(g.uniqueID(o.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(g.uniqueID(o.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))),o.newSlides=t(o.vars.selector,o),n=d?o.count-1-o.currentSlide+o.cloneOffset:o.currentSlide+o.cloneOffset,h&&!p?(o.container.height(200*(o.count+o.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){o.newSlides.css({display:"block"}),o.doMath(),o.viewport.height(o.h),o.setProps(n*o.h,"init")},"init"===e?100:0)):(o.container.width(200*(o.count+o.cloneCount)+"%"),o.setProps(n*o.computedW,"init"),setTimeout(function(){o.doMath(),o.newSlides.css({width:o.computedW,marginRight:o.computedM,float:"left",display:"block"}),o.vars.smoothHeight&&g.smoothHeight()},"init"===e?100:0))}p||o.slides.removeClass(a+"active-slide").eq(o.currentSlide).addClass(a+"active-slide"),o.vars.init(o)},o.doMath=function(){var t=o.slides.first(),e=o.vars.itemMargin,n=o.vars.minItems,i=o.vars.maxItems;o.w=void 0===o.viewport?o.width():o.viewport.width(),o.h=t.height(),o.boxPadding=t.outerWidth()-t.width(),p?(o.itemT=o.vars.itemWidth+e,o.itemM=e,o.minW=n?n*o.itemT:o.w,o.maxW=i?i*o.itemT-e:o.w,o.itemW=o.minW>o.w?(o.w-e*(n-1))/n:o.maxW<o.w?(o.w-e*(i-1))/i:o.vars.itemWidth>o.w?o.w:o.vars.itemWidth,o.visible=Math.floor(o.w/o.itemW),o.move=o.vars.move>0&&o.vars.move<o.visible?o.vars.move:o.visible,o.pagingCount=Math.ceil((o.count-o.visible)/o.move+1),o.last=o.pagingCount-1,o.limit=1===o.pagingCount?0:o.vars.itemWidth>o.w?o.itemW*(o.count-1)+e*(o.count-1):(o.itemW+e)*o.count-o.w-e):(o.itemW=o.w,o.itemM=e,o.pagingCount=o.count,o.last=o.count-1),o.computedW=o.itemW-o.boxPadding,o.computedM=o.itemM},o.update=function(t,e){o.doMath(),p||(t<o.currentSlide?o.currentSlide+=1:t<=o.currentSlide&&0!==t&&(o.currentSlide-=1),o.animatingTo=o.currentSlide),o.vars.controlNav&&!o.manualControls&&("add"===e&&!p||o.pagingCount>o.controlNav.length?g.controlNav.update("add"):("remove"===e&&!p||o.pagingCount<o.controlNav.length)&&(p&&o.currentSlide>o.last&&(o.currentSlide-=1,o.animatingTo-=1),g.controlNav.update("remove",o.last))),o.vars.directionNav&&g.directionNav.update()},o.addSlide=function(e,n){var i=t(e);o.count+=1,o.last=o.count-1,h&&d?void 0!==n?o.slides.eq(o.count-n).after(i):o.container.prepend(i):void 0!==n?o.slides.eq(n).before(i):o.container.append(i),o.update(n,"add"),o.slides=t(o.vars.selector+":not(.clone)",o),o.setup(),o.vars.added(o)},o.removeSlide=function(e){var n=isNaN(e)?o.slides.index(t(e)):e;o.count-=1,o.last=o.count-1,isNaN(e)?t(e,o.slides).remove():h&&d?o.slides.eq(o.last).remove():o.slides.eq(e).remove(),o.doMath(),o.update(n,"remove"),o.slides=t(o.vars.selector+":not(.clone)",o),o.setup(),o.vars.removed(o)},g.init()},t(window).blur(function(t){e=!1}).focus(function(t){e=!0}),t.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Poprzedni slajd",nextText:"Następny slajd",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Wstrzymaj",playText:"Odtwarzaj",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}},t.fn.flexslider=function(e){if(void 0===e&&(e={}),"object"==typeof e)return this.each(function(){var n=t(this),i=e.selector?e.selector:".slides > li",o=n.find(i);1===o.length&&!1===e.allowOneSlide||0===o.length?(o.fadeIn(400),e.start&&e.start(n)):void 0===n.data("flexslider")&&new t.flexslider(this,e)});var n=t(this).data("flexslider");switch(e){case"play":n.play();break;case"pause":n.pause();break;case"stop":n.stop();break;case"next":n.flexAnimate(n.getTarget("next"),!0);break;case"prev":case"previous":n.flexAnimate(n.getTarget("prev"),!0);break;default:"number"==typeof e&&n.flexAnimate(e,!0)}}}(jQuery),function(t){function e(e){var n=0;return e.children("li").each(function(){n+=t(this).outerWidth(!0)}),n}function n(e){return Math.max.apply(Math,e.children().map(function(){return t(this).width()}).get())}function i(t){var e=t.data("settings")||{direction:"left",speed:50},n=t.children().first(),i=Math.abs(-t.css(e.direction).replace("px","").replace("auto","0")-n.outerWidth(!0)),o=1e3*i/e.speed,r={};return r[e.direction]=t.css(e.direction).replace("px","").replace("auto","0")-i,{css:r,time:o}}function o(t){var e=t.data("settings")||{direction:"left"};t.css("transition-duration","0s").css(e.direction,"0");var n=t.children().first();n.hasClass("webticker-init")?n.remove():t.children().last().after(n)}function r(t,e){var n=t.data("settings")||{direction:"left"};void 0===e&&(e=!1),e&&o(t);var a=i(t);t.animate(a.css,a.time,"linear",function(){t.css(n.direction,"0"),r(t,!0)})}function a(t,e){void 0===e&&(e=!1),e&&o(t);var n=i(t),r=n.time/1e3;r+="s",t.css(n.css).css("transition-duration",r)}function s(e,n,i){var o=[];t.get(e,function(e){t(e).find("item").each(function(){var e=t(this),n={title:e.find("title").text(),link:e.find("link").text()};o+='<li><a href="'+n.link+'"">'+n.title+"</a></li>"}),i.webTicker("update",o,n)})}function l(i,o){if(i.children("li").length<1)return window.console,!1;var r=i.data("settings");r.duplicateLoops=r.duplicateLoops||0,i.width("auto");var a=0;i.children("li").each(function(){a+=t(this).outerWidth(!0)});var s,l=i.find("li:first").height();if(r.duplicate){s=n(i);for(var u=0;a-s<i.parent().width()||1===i.children().length||u<r.duplicateLoops;){var c=i.children().clone();i.append(c),a=0,a=e(i),s=n(i),u++}r.duplicateLoops=u}else{var h=i.parent().width()-a;h+=i.find("li:first").width(),i.find(".ticker-spacer").length>0?i.find(".ticker-spacer").width(h):i.append('<li class="ticker-spacer" style="float: '+r.direction+";width:"+h+"px;height:"+l+'px;"></li>')}r.startEmpty&&o&&i.prepend('<li class="webticker-init" style="float: '+r.direction+";width:"+i.parent().width()+"px;height:"+l+'px;"></li>'),a=0,a=e(i),i.width(a+200);var d=0;for(d=e(i);d>=i.width();)i.width(i.width()+200),d=0,d=e(i);return!0}var u=function(){var t=document.createElement("p").style,e=["ms","O","Moz","Webkit"];if(""===t.transition)return!0;for(;e.length;)if(e.pop()+"Transition"in t)return!0;return!1}(),c={init:function(e){return e=jQuery.extend({speed:50,direction:"left",moving:!0,startEmpty:!0,duplicate:!1,rssurl:!1,hoverpause:!0,rssfrequency:0,updatetype:"reset",transition:"linear",height:"30px",maskleft:"",maskright:"",maskwidth:0},e),this.each(function(){jQuery(this).data("settings",e);var n=jQuery(this),i=n.wrap('<div class="mask"></div>');i.after('<span class="tickeroverlay-left">&nbsp;</span><span class="tickeroverlay-right">&nbsp;</span>');var o,c=n.parent().wrap('<div class="tickercontainer"></div>');if(t(window).resize(function(){clearTimeout(o),o=setTimeout(function(){console.log("window was resized"),l(n,!1)},500)}),n.children("li").css("white-space","nowrap"),n.children("li").css("float",e.direction),n.children("li").css("padding","0 7px"),n.children("li").css("line-height",e.height),i.css("position","relative"),i.css("overflow","hidden"),n.closest(".tickercontainer").css("height",e.height),n.closest(".tickercontainer").css("overflow","hidden"),n.css("float",e.direction),n.css("position","relative"),n.css("font","bold 10px Verdana"),n.css("list-style-type","none"),n.css("margin","0"),n.css("padding","0"),""!==e.maskleft&&""!==e.maskright){var h='url("'+e.maskleft+'")';c.find(".tickeroverlay-left").css("background-image",h),c.find(".tickeroverlay-left").css("display","block"),c.find(".tickeroverlay-left").css("pointer-events","none"),c.find(".tickeroverlay-left").css("position","absolute"),c.find(".tickeroverlay-left").css("z-index","30"),c.find(".tickeroverlay-left").css("height",e.height),c.find(".tickeroverlay-left").css("width",e.maskwidth),c.find(".tickeroverlay-left").css("top","0"),c.find(".tickeroverlay-left").css("left","-2px"),h='url("'+e.maskright+'")',c.find(".tickeroverlay-right").css("background-image",h),c.find(".tickeroverlay-right").css("display","block"),c.find(".tickeroverlay-right").css("pointer-events","none"),c.find(".tickeroverlay-right").css("position","absolute"),c.find(".tickeroverlay-right").css("z-index","30"),c.find(".tickeroverlay-right").css("height",e.height),c.find(".tickeroverlay-right").css("width",e.maskwidth),c.find(".tickeroverlay-right").css("top","0"),c.find(".tickeroverlay-right").css("right","-2px")}else c.find(".tickeroverlay-left").css("display","none"),c.find(".tickeroverlay-right").css("display","none");n.children("li").last().addClass("last");var d=l(n,!0);e.rssurl&&(s(e.rssurl,e.type,n),e.rssfrequency>0&&window.setInterval(function(){s(e.rssurl,e.type,n)},1e3*e.rssfrequency*60)),u?(n.css("transition-timing-function",e.transition),n.css("transition-duration","0s").css(e.direction,"0"),d&&a(n,!1),n.on("transitionend webkitTransitionEnd oTransitionEnd otransitionend",function(e){return!!n.is(e.target)&&void a(t(this),!0)})):d&&r(t(this)),e.hoverpause&&n.hover(function(){if(u){var n=t(this).css(e.direction);t(this).css("transition-duration","0s").css(e.direction,n)}else jQuery(this).stop()},function(){jQuery(this).data("settings").moving&&(u?a(t(this),!1):r(n))})})},stop:function(){var e=t(this).data("settings");if(e.moving)return e.moving=!1,this.each(function(){if(u){var n=t(this).css(e.direction);t(this).css("transition-duration","0s").css(e.direction,n)}else t(this).stop()})},cont:function(){var e=t(this).data("settings");if(!e.moving)return e.moving=!0,this.each(function(){u?a(t(this),!1):r(t(this))})},transition:function(e){var n=t(this);u&&n.css("transition-timing-function",e)},update:function(n,i,o,r){i=i||"reset",void 0===o&&(o=!0),void 0===r&&(r=!1),"string"==typeof n&&(n=t(n));var a=t(this);a.webTicker("stop");var s=t(this).data("settings");if("reset"===i)a.html(n),l(a,!0);else if("swap"===i){var u,c,h,d;if(window.console,a.children("li").length<1)a.html(n),a.css(s.direction,"0"),l(a,!0);else if(!0===s.duplicate){a.children("li").addClass("old");for(var p=n.length-1;p>=0;p--)u=t(n[p]).data("update"),c=a.find('[data-update="'+u+'"]'),c.length<1?o&&(0===a.find(".ticker-spacer:first-child").length&&a.find(".ticker-spacer").length>0?a.children("li.ticker-spacer").before(n[p]):(h=t(n[p]),p===n.length-1&&h.addClass("last"),a.find("last").after(h),a.find("last").removeClass("last"))):a.find('[data-update="'+u+'"]').replaceWith(n[p]);a.children("li.webticker-init, li.ticker-spacer").removeClass("old"),r&&a.children("li").remove(".old"),d=0,d=e(a),a.width(d+200),a.find("li.webticker-init").length<1&&(s.startEmpty=!1),a.html(n),a.children("li").css("white-space","nowrap"),a.children("li").css("float",s.direction),a.children("li").css("padding","0 7px"),a.children("li").css("line-height",s.height),l(a,!0)}else{a.children("li").addClass("old");for(var f=0;f<n.length;f++)u=t(n[f]).data("update"),c=a.find('[data-update="'+u+'"]'),c.length<1?o&&(0===a.find(".ticker-spacer:first-child").length&&a.find(".ticker-spacer").length>0?a.children("li.ticker-spacer").before(n[f]):(h=t(n[f]),f===n.length-1&&h.addClass("last"),a.find(".old.last").after(h),a.find(".old.last").removeClass("last"))):a.find('[data-update="'+u+'"]').replaceWith(n[f]);a.children("li.webticker-init, li.ticker-spacer").removeClass("old"),a.children("li").css("white-space","nowrap"),a.children("li").css("float",s.direction),a.children("li").css("padding","0 7px"),a.children("li").css("line-height",s.height),r&&a.children("li").remove(".old"),d=0,d=e(a),a.width(d+200)}}a.webTicker("cont")}};t.fn.webTicker=function(e){return c[e]?c[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.webTicker"):c.init.apply(this,arguments)}}(jQuery),function(t,e,n,i){"use strict";e=void 0!==e&&e.Math==Math?e:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),t.fn.dimmer=function(e){var o,r=t(this),a=(new Date).getTime(),s=[],l=arguments[0],u="string"==typeof l,c=[].slice.call(arguments,1);return r.each(function(){var h,d,p,f=t.isPlainObject(e)?t.extend(!0,{},t.fn.dimmer.settings,e):t.extend({},t.fn.dimmer.settings),m=f.selector,g=f.namespace,v=f.className,_=f.error,y="."+g,b="module-"+g,x=r.selector||"",w="ontouchstart"in n.documentElement?"touchstart":"click",T=t(this),C=this,P=T.data(b);p={preinitialize:function(){p.is.dimmer()?(d=T.parent(),h=T):(d=T,h=p.has.dimmer()?f.dimmerName?d.find(m.dimmer).filter("."+f.dimmerName):d.find(m.dimmer):p.create(),p.set.variation())},initialize:function(){p.debug("Initializing dimmer",f),p.bind.events(),p.set.dimmable(),p.instantiate()},instantiate:function(){p.verbose("Storing instance of module",p),P=p,T.data(b,P)},destroy:function(){p.verbose("Destroying previous module",h),p.unbind.events(),p.remove.variation(),d.off(y)},bind:{events:function(){"hover"==f.on?d.on("mouseenter"+y,p.show).on("mouseleave"+y,p.hide):"click"==f.on&&d.on(w+y,p.toggle),p.is.page()&&(p.debug("Setting as a page dimmer",d),p.set.pageDimmer()),p.is.closable()&&(p.verbose("Adding dimmer close event",h),d.on(w+y,m.dimmer,p.event.click))}},unbind:{events:function(){T.removeData(b),d.off(y)}},event:{click:function(e){p.verbose("Determining if event occured on dimmer",e),(0===h.find(e.target).length||t(e.target).is(m.content))&&(p.hide(),e.stopImmediatePropagation())}},addContent:function(e){var n=t(e);p.debug("Add content to dimmer",n),n.parent()[0]!==h[0]&&n.detach().appendTo(h)},create:function(){var e=t(f.template.dimmer());return f.dimmerName&&(p.debug("Creating named dimmer",f.dimmerName),e.addClass(f.dimmerName)),e.appendTo(d),e},show:function(e){e=t.isFunction(e)?e:function(){},p.debug("Showing dimmer",h,f),p.is.dimmed()&&!p.is.animating()||!p.is.enabled()?p.debug("Dimmer is already shown or disabled"):(p.animate.show(e),f.onShow.call(C),f.onChange.call(C))},hide:function(e){e=t.isFunction(e)?e:function(){},p.is.dimmed()||p.is.animating()?(p.debug("Hiding dimmer",h),p.animate.hide(e),f.onHide.call(C),f.onChange.call(C)):p.debug("Dimmer is not visible")},toggle:function(){p.verbose("Toggling dimmer visibility",h),p.is.dimmed()?p.hide():p.show()},animate:{show:function(e){e=t.isFunction(e)?e:function(){},f.useCSS&&t.fn.transition!==i&&h.transition("is supported")?("auto"!==f.opacity&&p.set.opacity(),h.transition({animation:f.transition+" in",queue:!1,duration:p.get.duration(),useFailSafe:!0,onStart:function(){p.set.dimmed()},onComplete:function(){p.set.active(),e()}})):(p.verbose("Showing dimmer animation with javascript"),p.set.dimmed(),"auto"==f.opacity&&(f.opacity=.8),h.stop().css({opacity:0,width:"100%",height:"100%"}).fadeTo(p.get.duration(),f.opacity,function(){h.removeAttr("style"),p.set.active(),e()}))},hide:function(e){e=t.isFunction(e)?e:function(){},f.useCSS&&t.fn.transition!==i&&h.transition("is supported")?(p.verbose("Hiding dimmer with css"),h.transition({animation:f.transition+" out",queue:!1,duration:p.get.duration(),useFailSafe:!0,onStart:function(){p.remove.dimmed()},onComplete:function(){p.remove.active(),e()}})):(p.verbose("Hiding dimmer with javascript"),p.remove.dimmed(),h.stop().fadeOut(p.get.duration(),function(){p.remove.active(),h.removeAttr("style"),e()}))}},get:{dimmer:function(){return h},duration:function(){return"object"==typeof f.duration?p.is.active()?f.duration.hide:f.duration.show:f.duration}},has:{dimmer:function(){return f.dimmerName?T.find(m.dimmer).filter("."+f.dimmerName).length>0:T.find(m.dimmer).length>0}},is:{active:function(){return h.hasClass(v.active)},animating:function(){return h.is(":animated")||h.hasClass(v.animating)},closable:function(){return"auto"==f.closable?"hover"!=f.on:f.closable},dimmer:function(){return T.hasClass(v.dimmer)},dimmable:function(){return T.hasClass(v.dimmable)},dimmed:function(){return d.hasClass(v.dimmed)},disabled:function(){return d.hasClass(v.disabled)},enabled:function(){return!p.is.disabled()},page:function(){return d.is("body")},pageDimmer:function(){return h.hasClass(v.pageDimmer)}},can:{show:function(){return!h.hasClass(v.disabled)}},set:{opacity:function(t){var e=h.css("background-color"),n=e.split(","),i=n&&3==n.length,o=n&&4==n.length;t=0===f.opacity?0:f.opacity||t,i||o?(n[3]=t+")",e=n.join(",")):e="rgba(0, 0, 0, "+t+")",p.debug("Setting opacity to",t),h.css("background-color",e)},active:function(){h.addClass(v.active)},dimmable:function(){d.addClass(v.dimmable)},dimmed:function(){d.addClass(v.dimmed)},pageDimmer:function(){h.addClass(v.pageDimmer)},disabled:function(){h.addClass(v.disabled)},variation:function(t){(t=t||f.variation)&&h.addClass(t)}},remove:{active:function(){h.removeClass(v.active)},dimmed:function(){d.removeClass(v.dimmed)},disabled:function(){h.removeClass(v.disabled)},variation:function(t){(t=t||f.variation)&&h.removeClass(t)}},setting:function(e,n){if(p.debug("Changing setting",e,n),t.isPlainObject(e))t.extend(!0,f,e);else{if(n===i)return f[e];t.isPlainObject(f[e])?t.extend(!0,f[e],n):f[e]=n}},internal:function(e,n){if(t.isPlainObject(e))t.extend(!0,p,e);else{if(n===i)return p[e];p[e]=n}},debug:function(){!f.silent&&f.debug&&(f.performance?p.performance.log(arguments):(p.debug=Function.prototype.bind.call(console.info,console,f.name+":"),p.debug.apply(console,arguments)))},verbose:function(){!f.silent&&f.verbose&&f.debug&&(f.performance?p.performance.log(arguments):(p.verbose=Function.prototype.bind.call(console.info,console,f.name+":"),p.verbose.apply(console,arguments)))},error:function(){f.silent||(p.error=Function.prototype.bind.call(console.error,console,f.name+":"),p.error.apply(console,arguments))},performance:{log:function(t){var e,n,i;f.performance&&(e=(new Date).getTime(),i=a||e,n=e-i,a=e,s.push({Name:t[0],Arguments:[].slice.call(t,1)||"",Element:C,"Execution Time":n})),clearTimeout(p.performance.timer),p.performance.timer=setTimeout(p.performance.display,500)},display:function(){var e=f.name+":",n=0;a=!1,clearTimeout(p.performance.timer),t.each(s,function(t,e){n+=e["Execution Time"]}),e+=" "+n+"ms",x&&(e+=" '"+x+"'"),r.length>1&&(e+=" ("+r.length+")"),(console.group!==i||console.table!==i)&&s.length>0&&(console.groupCollapsed(e),console.table?console.table(s):t.each(s,function(t,e){console.log(e.Name+": "+e["Execution Time"]+"ms")}),console.groupEnd()),s=[]}},invoke:function(e,n,r){var a,s,l,u=P;return n=n||c,r=C||r,"string"==typeof e&&u!==i&&(e=e.split(/[\. ]/),a=e.length-1,t.each(e,function(n,o){var r=n!=a?o+e[n+1].charAt(0).toUpperCase()+e[n+1].slice(1):e;if(t.isPlainObject(u[r])&&n!=a)u=u[r];else{if(u[r]!==i)return s=u[r],!1;if(!t.isPlainObject(u[o])||n==a)return u[o]!==i?(s=u[o],!1):(p.error(_.method,e),!1);u=u[o]}})),t.isFunction(s)?l=s.apply(r,n):s!==i&&(l=s),t.isArray(o)?o.push(l):o!==i?o=[o,l]:l!==i&&(o=l),s}},p.preinitialize(),u?(P===i&&p.initialize(),p.invoke(l)):(P!==i&&P.invoke("destroy"),p.initialize())}),o!==i?o:this},t.fn.dimmer.settings={name:"Dimmer",namespace:"dimmer",silent:!1,debug:!1,verbose:!1,performance:!0,dimmerName:!1,variation:!1,closable:"auto",useCSS:!0,transition:"fade",on:!1,opacity:"auto",duration:{show:500,hide:500},onChange:function(){},onShow:function(){},onHide:function(){},error:{method:"The method you called is not defined."},className:{active:"active",animating:"animating",dimmable:"dimmable",dimmed:"dimmed",dimmer:"dimmer",disabled:"disabled",hide:"hide",pageDimmer:"page",show:"show"},selector:{dimmer:"> .ui.dimmer",content:".ui.dimmer > .content, .ui.dimmer > .content > .center"},template:{dimmer:function(){return t("<div />").attr("class","ui dimmer")}}}}(jQuery,window,document),function(t,e,n,i){"use strict";e=void 0!==e&&e.Math==Math?e:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),t.fn.form=function(e){var o,r=t(this),a=r.selector||"",s=(new Date).getTime(),l=[],u=arguments[0],c=arguments[1],h="string"==typeof u,d=[].slice.call(arguments,1);return r.each(function(){var p,f,m,g,v,_,y,b,x,w,T,C,P,L,k,S,E,A,M,z=t(this),I=this,N=[],D=!1;M={initialize:function(){M.get.settings(),h?(A===i&&M.instantiate(),M.invoke(u)):(A!==i&&A.invoke("destroy"),M.verbose("Initializing form validation",z,b),M.bindEvents(),M.set.defaults(),M.instantiate())},instantiate:function(){M.verbose("Storing instance of module",M),A=M,z.data(S,M)},destroy:function(){M.verbose("Destroying previous module",A),M.removeEvents(),z.removeData(S)},refresh:function(){M.verbose("Refreshing selector cache"),p=z.find(T.field),f=z.find(T.group),m=z.find(T.message),g=z.find(T.prompt),v=z.find(T.submit),_=z.find(T.clear),y=z.find(T.reset)},submit:function(){M.verbose("Submitting form",z),z.submit()},attachEvents:function(e,n){n=n||"submit",t(e).on("click"+E,function(t){M[n](),t.preventDefault()})},bindEvents:function(){M.verbose("Attaching form events"),z.on("submit"+E,M.validate.form).on("blur"+E,T.field,M.event.field.blur).on("click"+E,T.submit,M.submit).on("click"+E,T.reset,M.reset).on("click"+E,T.clear,M.clear),b.keyboardShortcuts&&z.on("keydown"+E,T.field,M.event.field.keydown),p.each(function(){var e=t(this),n=e.prop("type"),i=M.get.changeEvent(n,e);t(this).on(i+E,M.event.field.change)})},clear:function(){p.each(function(){var e=t(this),n=e.parent(),i=e.closest(f),o=i.find(T.prompt),r=e.data(w.defaultValue)||"",a=n.is(T.uiCheckbox),s=n.is(T.uiDropdown);i.hasClass(C.error)&&(M.verbose("Resetting error on field",i),i.removeClass(C.error),o.remove()),s?(M.verbose("Resetting dropdown value",n,r),n.dropdown("clear")):a?e.prop("checked",!1):(M.verbose("Resetting field value",e,r),e.val(""))})},reset:function(){p.each(function(){var e=t(this),n=e.parent(),o=e.closest(f),r=o.find(T.prompt),a=e.data(w.defaultValue),s=n.is(T.uiCheckbox),l=n.is(T.uiDropdown),u=o.hasClass(C.error);a!==i&&(u&&(M.verbose("Resetting error on field",o),o.removeClass(C.error),r.remove()),l?(M.verbose("Resetting dropdown value",n,a),n.dropdown("restore defaults")):s?(M.verbose("Resetting checkbox value",n,a),e.prop("checked",a)):(M.verbose("Resetting field value",e,a),e.val(a)))})},determine:{isValid:function(){var e=!0;return t.each(x,function(t,n){M.validate.field(n,t,!0)||(e=!1)}),e}},is:{bracketedRule:function(t){return t.type&&t.type.match(b.regExp.bracket)},empty:function(t){return!t||0===t.length||(t.is('input[type="checkbox"]')?!t.is(":checked"):M.is.blank(t))},blank:function(e){return""===t.trim(e.val())},valid:function(e){var n=!0;return e?(M.verbose("Checking if field is valid",e),M.validate.field(x[e],e,!1)):(M.verbose("Checking if form is valid"),
t.each(x,function(t,e){M.is.valid(t)||(n=!1)}),n)}},removeEvents:function(){z.off(E),p.off(E),v.off(E),p.off(E)},event:{field:{keydown:function(e){var n=t(this),i=e.which,o=n.is(T.input),r=n.is(T.checkbox),a=n.closest(T.uiDropdown).length>0,s={enter:13,escape:27};i==s.escape&&(M.verbose("Escape key pressed blurring field"),n.blur()),e.ctrlKey||i!=s.enter||!o||a||r||(D||(n.one("keyup"+E,M.event.field.keyup),M.submit(),M.debug("Enter pressed on input submitting form")),D=!0)},keyup:function(){D=!1},blur:function(e){var n=t(this),i=n.closest(f),o=M.get.validation(n);i.hasClass(C.error)?(M.debug("Revalidating field",n,o),o&&M.validate.field(o)):"blur"!=b.on&&"change"!=b.on||o&&M.validate.field(o)},change:function(e){var n=t(this),i=n.closest(f),o=M.get.validation(n);o&&("change"==b.on||i.hasClass(C.error)&&b.revalidate)&&(clearTimeout(M.timer),M.timer=setTimeout(function(){M.debug("Revalidating field",n,M.get.validation(n)),M.validate.field(o)},b.delay))}}},get:{ancillaryValue:function(t){return!(!t.type||!t.value&&!M.is.bracketedRule(t))&&(t.value!==i?t.value:t.type.match(b.regExp.bracket)[1]+"")},ruleName:function(t){return M.is.bracketedRule(t)?t.type.replace(t.type.match(b.regExp.bracket)[0],""):t.type},changeEvent:function(t,e){return"checkbox"==t||"radio"==t||"hidden"==t||e.is("select")?"change":M.get.inputEvent()},inputEvent:function(){return n.createElement("input").oninput!==i?"input":n.createElement("input").onpropertychange!==i?"propertychange":"keyup"},prompt:function(t,e){var n,i,o,r=M.get.ruleName(t),a=M.get.ancillaryValue(t),s=t.prompt||b.prompt[r]||b.text.unspecifiedRule,l=-1!==s.search("{value}"),u=-1!==s.search("{name}");return(u||l)&&(i=M.get.field(e.identifier)),l&&(s=s.replace("{value}",i.val())),u&&(n=i.closest(T.group).find("label").eq(0),o=1==n.length?n.text():i.prop("placeholder")||b.text.unspecifiedField,s=s.replace("{name}",o)),s=s.replace("{identifier}",e.identifier),s=s.replace("{ruleValue}",a),t.prompt||M.verbose("Using default validation prompt for type",s,r),s},settings:function(){if(t.isPlainObject(e)){var n,o=Object.keys(e);o.length>0&&(e[o[0]].identifier!==i&&e[o[0]].rules!==i)?(b=t.extend(!0,{},t.fn.form.settings,c),x=t.extend({},t.fn.form.settings.defaults,e),M.error(b.error.oldSyntax,I),M.verbose("Extending settings from legacy parameters",x,b)):(e.fields&&(n=Object.keys(e.fields),("string"==typeof e.fields[n[0]]||t.isArray(e.fields[n[0]]))&&t.each(e.fields,function(n,i){"string"==typeof i&&(i=[i]),e.fields[n]={rules:[]},t.each(i,function(t,i){e.fields[n].rules.push({type:i})})})),b=t.extend(!0,{},t.fn.form.settings,e),x=t.extend({},t.fn.form.settings.defaults,b.fields),M.verbose("Extending settings",x,b))}else b=t.fn.form.settings,x=t.fn.form.settings.defaults,M.verbose("Using default form validation",x,b);k=b.namespace,w=b.metadata,T=b.selector,C=b.className,P=b.regExp,L=b.error,S="module-"+k,E="."+k,A=z.data(S),M.refresh()},field:function(e){return M.verbose("Finding field with identifier",e),e=M.escape.string(e),p.filter("#"+e).length>0?p.filter("#"+e):p.filter('[name="'+e+'"]').length>0?p.filter('[name="'+e+'"]'):p.filter('[name="'+e+'[]"]').length>0?p.filter('[name="'+e+'[]"]'):p.filter("[data-"+w.validate+'="'+e+'"]').length>0?p.filter("[data-"+w.validate+'="'+e+'"]'):t("<input/>")},fields:function(e){var n=t();return t.each(e,function(t,e){n=n.add(M.get.field(e))}),n},validation:function(e){var n,i;return!!x&&(t.each(x,function(t,o){i=o.identifier||t,M.get.field(i)[0]==e[0]&&(o.identifier=i,n=o)}),n||!1)},value:function(t){var e,n=[];return n.push(t),e=M.get.values.call(I,n),e[t]},values:function(e){var n=t.isArray(e)?M.get.fields(e):p,i={};return n.each(function(e,n){var o=t(n),r=(o.prop("type"),o.prop("name")),a=o.val(),s=o.is(T.checkbox),l=o.is(T.radio),u=-1!==r.indexOf("[]"),c=!!s&&o.is(":checked");r&&(u?(r=r.replace("[]",""),i[r]||(i[r]=[]),s?c?i[r].push(a||!0):i[r].push(!1):i[r].push(a)):l?c&&(i[r]=a):i[r]=s?!!c&&(a||!0):a)}),i}},has:{field:function(t){return M.verbose("Checking for existence of a field with identifier",t),t=M.escape.string(t),"string"!=typeof t&&M.error(L.identifier,t),p.filter("#"+t).length>0||(p.filter('[name="'+t+'"]').length>0||p.filter("[data-"+w.validate+'="'+t+'"]').length>0)}},escape:{string:function(t){return t=String(t),t.replace(P.escape,"\\$&")}},add:{prompt:function(e,n){var o=M.get.field(e),r=o.closest(f),a=r.children(T.prompt),s=0!==a.length;n="string"==typeof n?[n]:n,M.verbose("Adding field error state",e),r.addClass(C.error),b.inline&&(s||(a=b.templates.prompt(n),a.appendTo(r)),a.html(n[0]),s?M.verbose("Inline errors are disabled, no inline error added",e):b.transition&&t.fn.transition!==i&&z.transition("is supported")?(M.verbose("Displaying error with css transition",b.transition),a.transition(b.transition+" in",b.duration)):(M.verbose("Displaying error with fallback javascript animation"),a.fadeIn(b.duration)))},errors:function(t){M.debug("Adding form error messages",t),M.set.error(),m.html(b.templates.error(t))}},remove:{prompt:function(e){var n=M.get.field(e),o=n.closest(f),r=o.children(T.prompt);o.removeClass(C.error),b.inline&&r.is(":visible")&&(M.verbose("Removing prompt for field",e),b.transition&&t.fn.transition!==i&&z.transition("is supported")?r.transition(b.transition+" out",b.duration,function(){r.remove()}):r.fadeOut(b.duration,function(){r.remove()}))}},set:{success:function(){z.removeClass(C.error).addClass(C.success)},defaults:function(){p.each(function(){var e=t(this),n=e.filter(T.checkbox).length>0,i=n?e.is(":checked"):e.val();e.data(w.defaultValue,i)})},error:function(){z.removeClass(C.success).addClass(C.error)},value:function(t,e){var n={};return n[t]=e,M.set.values.call(I,n)},values:function(e){t.isEmptyObject(e)||t.each(e,function(e,n){var i,o=M.get.field(e),r=o.parent(),a=t.isArray(n),s=r.is(T.uiCheckbox),l=r.is(T.uiDropdown),u=o.is(T.radio)&&s;o.length>0&&(a&&s?(M.verbose("Selecting multiple",n,o),r.checkbox("uncheck"),t.each(n,function(t,e){i=o.filter('[value="'+e+'"]'),r=i.parent(),i.length>0&&r.checkbox("check")})):u?(M.verbose("Selecting radio value",n,o),o.filter('[value="'+n+'"]').parent(T.uiCheckbox).checkbox("check")):s?(M.verbose("Setting checkbox value",n,r),!0===n?r.checkbox("check"):r.checkbox("uncheck")):l?(M.verbose("Setting dropdown value",n,r),r.dropdown("set selected",n)):(M.verbose("Setting field value",n,o),o.val(n)))})}},validate:{form:function(t,e){var n=M.get.values();if(D)return!1;if(N=[],M.determine.isValid()){if(M.debug("Form has no validation errors, submitting"),M.set.success(),!0!==e)return b.onSuccess.call(I,t,n)}else if(M.debug("Form has errors"),M.set.error(),b.inline||M.add.errors(N),z.data("moduleApi")!==i&&t.stopImmediatePropagation(),!0!==e)return b.onFailure.call(I,N,n)},field:function(e,n,o){o=o===i||o,"string"==typeof e&&(M.verbose("Validating field",e),n=e,e=x[e]);var r=e.identifier||n,a=M.get.field(r),s=!!e.depends&&M.get.field(e.depends),l=!0,u=[];return e.identifier||(M.debug("Using field name as identifier",r),e.identifier=r),a.prop("disabled")?(M.debug("Field is disabled. Skipping",r),l=!0):e.optional&&M.is.blank(a)?(M.debug("Field is optional and blank. Skipping",r),l=!0):e.depends&&M.is.empty(s)?(M.debug("Field depends on another value that is not present or empty. Skipping",s),l=!0):e.rules!==i&&t.each(e.rules,function(t,n){M.has.field(r)&&!M.validate.rule(e,n)&&(M.debug("Field is invalid",r,n.type),u.push(M.get.prompt(n,e)),l=!1)}),l?(o&&(M.remove.prompt(r,u),b.onValid.call(a)),!0):(o&&(N=N.concat(u),M.add.prompt(r,u),b.onInvalid.call(a,u)),!1)},rule:function(e,n){var o=M.get.field(e.identifier),r=(n.type,o.val()),a=M.get.ancillaryValue(n),s=M.get.ruleName(n),l=b.rules[s];return t.isFunction(l)?(r=r===i||""===r||null===r?"":t.trim(r+""),l.call(o,r,a)):void M.error(L.noRule,s)}},setting:function(e,n){if(t.isPlainObject(e))t.extend(!0,b,e);else{if(n===i)return b[e];b[e]=n}},internal:function(e,n){if(t.isPlainObject(e))t.extend(!0,M,e);else{if(n===i)return M[e];M[e]=n}},debug:function(){!b.silent&&b.debug&&(b.performance?M.performance.log(arguments):(M.debug=Function.prototype.bind.call(console.info,console,b.name+":"),M.debug.apply(console,arguments)))},verbose:function(){!b.silent&&b.verbose&&b.debug&&(b.performance?M.performance.log(arguments):(M.verbose=Function.prototype.bind.call(console.info,console,b.name+":"),M.verbose.apply(console,arguments)))},error:function(){b.silent||(M.error=Function.prototype.bind.call(console.error,console,b.name+":"),M.error.apply(console,arguments))},performance:{log:function(t){var e,n,i;b.performance&&(e=(new Date).getTime(),i=s||e,n=e-i,s=e,l.push({Name:t[0],Arguments:[].slice.call(t,1)||"",Element:I,"Execution Time":n})),clearTimeout(M.performance.timer),M.performance.timer=setTimeout(M.performance.display,500)},display:function(){var e=b.name+":",n=0;s=!1,clearTimeout(M.performance.timer),t.each(l,function(t,e){n+=e["Execution Time"]}),e+=" "+n+"ms",a&&(e+=" '"+a+"'"),r.length>1&&(e+=" ("+r.length+")"),(console.group!==i||console.table!==i)&&l.length>0&&(console.groupCollapsed(e),console.table?console.table(l):t.each(l,function(t,e){console.log(e.Name+": "+e["Execution Time"]+"ms")}),console.groupEnd()),l=[]}},invoke:function(e,n,r){var a,s,l,u=A;return n=n||d,r=I||r,"string"==typeof e&&u!==i&&(e=e.split(/[\. ]/),a=e.length-1,t.each(e,function(n,o){var r=n!=a?o+e[n+1].charAt(0).toUpperCase()+e[n+1].slice(1):e;if(t.isPlainObject(u[r])&&n!=a)u=u[r];else{if(u[r]!==i)return s=u[r],!1;if(!t.isPlainObject(u[o])||n==a)return u[o]!==i&&(s=u[o],!1);u=u[o]}})),t.isFunction(s)?l=s.apply(r,n):s!==i&&(l=s),t.isArray(o)?o.push(l):o!==i?o=[o,l]:l!==i&&(o=l),s}},M.initialize()}),o!==i?o:this},t.fn.form.settings={name:"Form",namespace:"form",debug:!1,verbose:!1,performance:!0,fields:!1,keyboardShortcuts:!0,on:"submit",inline:!1,delay:200,revalidate:!0,transition:"scale",duration:200,onValid:function(){},onInvalid:function(){},onSuccess:function(){return!0},onFailure:function(){return!1},metadata:{defaultValue:"default",validate:"validate"},regExp:{htmlID:/^[a-zA-Z][\w:.-]*$/g,bracket:/\[(.*)\]/i,decimal:/^\d+\.?\d*$/,email:/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,escape:/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,flags:/^\/(.*)\/(.*)?/,integer:/^\-?\d+$/,number:/^\-?\d*(\.\d+)?$/,url:/(https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/i},text:{unspecifiedRule:"Please enter a valid value",unspecifiedField:"This field"},prompt:{empty:"{name} must have a value",checked:"{name} must be checked",email:"{name} must be a valid e-mail",url:"{name} must be a valid url",regExp:"{name} is not formatted correctly",integer:"{name} must be an integer",decimal:"{name} must be a decimal number",number:"{name} must be set to a number",is:'{name} must be "{ruleValue}"',isExactly:'{name} must be exactly "{ruleValue}"',not:'{name} cannot be set to "{ruleValue}"',notExactly:'{name} cannot be set to exactly "{ruleValue}"',contain:'{name} cannot contain "{ruleValue}"',containExactly:'{name} cannot contain exactly "{ruleValue}"',doesntContain:'{name} must contain  "{ruleValue}"',doesntContainExactly:'{name} must contain exactly "{ruleValue}"',minLength:"{name} must be at least {ruleValue} characters",length:"{name} must be at least {ruleValue} characters",exactLength:"{name} must be exactly {ruleValue} characters",maxLength:"{name} cannot be longer than {ruleValue} characters",match:"{name} must match {ruleValue} field",different:"{name} must have a different value than {ruleValue} field",creditCard:"{name} must be a valid credit card number",minCount:"{name} must have at least {ruleValue} choices",exactCount:"{name} must have exactly {ruleValue} choices",maxCount:"{name} must have {ruleValue} or less choices"},selector:{checkbox:'input[type="checkbox"], input[type="radio"]',clear:".clear",field:"input, textarea, select",group:".field",input:"input",message:".error.message",prompt:".prompt.label",radio:'input[type="radio"]',reset:'.reset:not([type="reset"])',submit:'.submit:not([type="submit"])',uiCheckbox:".ui.checkbox",uiDropdown:".ui.dropdown"},className:{error:"error",label:"ui prompt label",pressed:"down",success:"success"},error:{identifier:"You must specify a string identifier for each field",method:"The method you called is not defined.",noRule:"There is no rule matching the one you specified",oldSyntax:"Starting in 2.0 forms now only take a single settings object. Validation settings converted to new syntax automatically."},templates:{error:function(e){var n='<ul class="list">';return t.each(e,function(t,e){n+="<li>"+e+"</li>"}),n+="</ul>",t(n)},prompt:function(e){return t("<div/>").addClass("ui basic red pointing prompt label").html(e[0])}},rules:{empty:function(e){return!(e===i||""===e||t.isArray(e)&&0===e.length)},checked:function(){return t(this).filter(":checked").length>0},email:function(e){return t.fn.form.settings.regExp.email.test(e)},url:function(e){return t.fn.form.settings.regExp.url.test(e)},regExp:function(e,n){if(n instanceof RegExp)return e.match(n);var i,o=n.match(t.fn.form.settings.regExp.flags);return o&&(n=o.length>=2?o[1]:n,i=o.length>=3?o[2]:""),e.match(new RegExp(n,i))},integer:function(e,n){var o,r,a,s=t.fn.form.settings.regExp.integer;return n&&-1===["",".."].indexOf(n)&&(-1==n.indexOf("..")?s.test(n)&&(o=r=n-0):(a=n.split("..",2),s.test(a[0])&&(o=a[0]-0),s.test(a[1])&&(r=a[1]-0))),s.test(e)&&(o===i||e>=o)&&(r===i||r>=e)},decimal:function(e){return t.fn.form.settings.regExp.decimal.test(e)},number:function(e){return t.fn.form.settings.regExp.number.test(e)},is:function(t,e){return e="string"==typeof e?e.toLowerCase():e,(t="string"==typeof t?t.toLowerCase():t)==e},isExactly:function(t,e){return t==e},not:function(t,e){return t="string"==typeof t?t.toLowerCase():t,e="string"==typeof e?e.toLowerCase():e,t!=e},notExactly:function(t,e){return t!=e},contains:function(e,n){return n=n.replace(t.fn.form.settings.regExp.escape,"\\$&"),-1!==e.search(new RegExp(n,"i"))},containsExactly:function(e,n){return n=n.replace(t.fn.form.settings.regExp.escape,"\\$&"),-1!==e.search(new RegExp(n))},doesntContain:function(e,n){return n=n.replace(t.fn.form.settings.regExp.escape,"\\$&"),-1===e.search(new RegExp(n,"i"))},doesntContainExactly:function(e,n){return n=n.replace(t.fn.form.settings.regExp.escape,"\\$&"),-1===e.search(new RegExp(n))},minLength:function(t,e){return t!==i&&t.length>=e},length:function(t,e){return t!==i&&t.length>=e},exactLength:function(t,e){return t!==i&&t.length==e},maxLength:function(t,e){return t!==i&&t.length<=e},match:function(e,n){var o;return t(this),t('[data-validate="'+n+'"]').length>0?o=t('[data-validate="'+n+'"]').val():t("#"+n).length>0?o=t("#"+n).val():t('[name="'+n+'"]').length>0?o=t('[name="'+n+'"]').val():t('[name="'+n+'[]"]').length>0&&(o=t('[name="'+n+'[]"]')),o!==i&&e.toString()==o.toString()},different:function(e,n){var o;return t(this),t('[data-validate="'+n+'"]').length>0?o=t('[data-validate="'+n+'"]').val():t("#"+n).length>0?o=t("#"+n).val():t('[name="'+n+'"]').length>0?o=t('[name="'+n+'"]').val():t('[name="'+n+'[]"]').length>0&&(o=t('[name="'+n+'[]"]')),o!==i&&e.toString()!==o.toString()},creditCard:function(e,n){var i,o,r={visa:{pattern:/^4/,length:[16]},amex:{pattern:/^3[47]/,length:[15]},mastercard:{pattern:/^5[1-5]/,length:[16]},discover:{pattern:/^(6011|622(12[6-9]|1[3-9][0-9]|[2-8][0-9]{2}|9[0-1][0-9]|92[0-5]|64[4-9])|65)/,length:[16]},unionPay:{pattern:/^(62|88)/,length:[16,17,18,19]},jcb:{pattern:/^35(2[89]|[3-8][0-9])/,length:[16]},maestro:{pattern:/^(5018|5020|5038|6304|6759|676[1-3])/,length:[12,13,14,15,16,17,18,19]},dinersClub:{pattern:/^(30[0-5]|^36)/,length:[14]},laser:{pattern:/^(6304|670[69]|6771)/,length:[16,17,18,19]},visaElectron:{pattern:/^(4026|417500|4508|4844|491(3|7))/,length:[16]}},a={},s=!1,l="string"==typeof n&&n.split(",");if("string"==typeof e&&0!==e.length){if(e=e.replace(/[\-]/g,""),l&&(t.each(l,function(n,i){(o=r[i])&&(a={length:-1!==t.inArray(e.length,o.length),pattern:-1!==e.search(o.pattern)},a.length&&a.pattern&&(s=!0))}),!s))return!1;if(i={number:-1!==t.inArray(e.length,r.unionPay.length),pattern:-1!==e.search(r.unionPay.pattern)},i.number&&i.pattern)return!0;for(var u=e.length,c=0,h=[[0,1,2,3,4,5,6,7,8,9],[0,2,4,6,8,1,3,5,7,9]],d=0;u--;)d+=h[c][parseInt(e.charAt(u),10)],c^=1;return d%10==0&&d>0}},minCount:function(t,e){return 0==e||(1==e?""!==t:t.split(",").length>=e)},exactCount:function(t,e){return 0==e?""===t:1==e?""!==t&&-1===t.search(","):t.split(",").length==e},maxCount:function(t,e){return 0!=e&&(1==e?-1===t.search(","):t.split(",").length<=e)}}}}(jQuery,window,document),function(t){var e=!1;if("function"==typeof define&&define.amd&&(define(t),e=!0),"object"==typeof exports&&(module.exports=t(),e=!0),!e){var n=window.Cookies,i=window.Cookies=t();i.noConflict=function(){return window.Cookies=n,i}}}(function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}function e(n){function i(e,o,r){var a;if("undefined"!=typeof document){if(arguments.length>1){if(r=t({path:"/"},i.defaults,r),"number"==typeof r.expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*r.expires),r.expires=s}try{a=JSON.stringify(o),/^[\{\[]/.test(a)&&(o=a)}catch(t){}return o=n.write?n.write(o,e):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)),e=e.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),e=e.replace(/[\(\)]/g,escape),document.cookie=[e,"=",o,r.expires?"; expires="+r.expires.toUTCString():"",r.path?"; path="+r.path:"",r.domain?"; domain="+r.domain:"",r.secure?"; secure":""].join("")}e||(a={});for(var l=document.cookie?document.cookie.split("; "):[],u=/(%[0-9A-Z]{2})+/g,c=0;c<l.length;c++){var h=l[c].split("="),d=h.slice(1).join("=");'"'===d.charAt(0)&&(d=d.slice(1,-1));try{var p=h[0].replace(u,decodeURIComponent);if(d=n.read?n.read(d,p):n(d,p)||d.replace(u,decodeURIComponent),this.json)try{d=JSON.parse(d)}catch(t){}if(e===p){a=d;break}e||(a[p]=d)}catch(t){}}return a}}return i.set=i,i.get=function(t){return i.call(i,t)},i.getJSON=function(){return i.apply({json:!0},[].slice.call(arguments))},i.defaults={},i.remove=function(e,n){i(e,"",t(n,{expires:-1}))},i.withConverter=e,i}return e(function(){})}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.L={})}(this,function(t){"use strict";function e(t){var e,n,i,o;for(n=1,i=arguments.length;n<i;n++)for(e in o=arguments[n])t[e]=o[e];return t}function n(){}function i(t,e){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var i=n.call(arguments,2);return function(){return t.apply(e,i.length?i.concat(n.call(arguments)):arguments)}}function o(t){return t._leaflet_id=t._leaflet_id||++Gt,t._leaflet_id}function r(t,e,n){var i,o,r,a;return a=function(){i=!1,o&&(r.apply(n,o),o=!1)},r=function(){i?o=arguments:(t.apply(n,arguments),setTimeout(a,e),i=!0)}}function a(t,e,n){var i=e[1],o=e[0],r=i-o;return t===i&&n?t:((t-o)%r+r)%r+o}function s(){return!1}function l(t,e){var n=Math.pow(10,void 0===e?6:e);return Math.round(t*n)/n}function u(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function c(t){return u(t).split(/\s+/)}function h(t,e){for(var n in t.hasOwnProperty("options")||(t.options=t.options?Ut(t.options):{}),e)t.options[n]=e[n];return t.options}function d(t,e,n){var i=[];for(var o in t)i.push(encodeURIComponent(n?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(e&&-1!==e.indexOf("?")?"&":"?")+i.join("&")}function p(t,e){return t.replace(Xt,function(t,n){var i=e[n];if(void 0===i)throw new Error("No value provided for variable "+t);return"function"==typeof i&&(i=i(e)),i})}function f(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}function m(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}function g(t){var e=+new Date,n=Math.max(0,16-(e-Jt));return Jt=e+n,window.setTimeout(t,n)}function v(t,e,n){if(!n||Qt!==g)return Qt.call(window,i(t,e));t.call(e)}function _(t){t&&te.call(window,t)}function y(){}function b(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}function x(t,e,n){return t instanceof b?t:Yt(t)?new b(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new b(t.x,t.y):new b(t,e,n)}function w(t,e){if(t)for(var n=e?[t,e]:t,i=0,o=n.length;i<o;i++)this.extend(n[i])}function T(t,e){return!t||t instanceof w?t:new w(t,e)}function C(t,e){if(t)for(var n=e?[t,e]:t,i=0,o=n.length;i<o;i++)this.extend(n[i])}function P(t,e){return t instanceof C?t:new C(t,e)}function k(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==n&&(this.alt=+n)}function S(t,e,n){return t instanceof k?t:Yt(t)&&"object"!=typeof t[0]?3===t.length?new k(t[0],t[1],t[2]):2===t.length?new k(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new k(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new k(t,e,n)}function E(t,e,n,i){if(Yt(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=n,this._d=i}function A(t,e,n,i){return new E(t,e,n,i)}function M(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function z(t,e){var n,i,o,r,a,s,l="";for(n=0,o=t.length;n<o;n++){for(i=0,r=(a=t[n]).length;i<r;i++)l+=(i?"L":"M")+(s=a[i]).x+" "+s.y;l+=e?Xe?"z":"x":""}return l||"M0 0"}function I(t){return 0<=navigator.userAgent.toLowerCase().indexOf(t)}function N(t,e,n,o){return"touchstart"===e?function(t,e,n){var o=i(function(t){if("mouse"!==t.pointerType&&t.MSPOINTER_TYPE_MOUSE&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE){if(!(nn.indexOf(t.target.tagName)<0))return;vt(t)}B(t,e)});t["_leaflet_touchstart"+n]=o,t.addEventListener(Je,o,!1),rn||(document.documentElement.addEventListener(Je,D,!0),document.documentElement.addEventListener(Qe,O,!0),document.documentElement.addEventListener(tn,j,!0),document.documentElement.addEventListener(en,j,!0),rn=!0)}(t,n,o):"touchmove"===e?function(t,e,n){function i(t){(t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&"mouse"!==t.pointerType||0!==t.buttons)&&B(t,e)}t["_leaflet_touchmove"+n]=i,t.addEventListener(Qe,i,!1)}(t,n,o):"touchend"===e&&function(t,e,n){function i(t){B(t,e)}t["_leaflet_touchend"+n]=i,t.addEventListener(tn,i,!1),t.addEventListener(en,i,!1)}(t,n,o),this}function D(t){on[t.pointerId]=t,an++}function O(t){on[t.pointerId]&&(on[t.pointerId]=t)}function j(t){delete on[t.pointerId],an--}function B(t,e){for(var n in t.touches=[],on)t.touches.push(on[n]);t.changedTouches=[t],e(t)}function R(t,e,n){function i(t){var e;if(He){if(!xe||"mouse"===t.pointerType)return;e=an}else e=t.touches.length;if(!(1<e)){var n=Date.now(),i=n-(r||n);a=t.touches?t.touches[0]:t,s=0<i&&i<=250,r=n}}function o(t){if(s&&!a.cancelBubble){if(He){if(!xe||"mouse"===t.pointerType)return;var n,i,o={};for(i in a)n=a[i],o[i]=n&&n.bind?n.bind(a):n;a=o}a.type="dblclick",a.button=0,e(a),r=null}}var r,a,s=!1;return t[un+sn+n]=i,t[un+ln+n]=o,t[un+"dblclick"+n]=e,t.addEventListener(sn,i,!!Ue&&{passive:!1}),t.addEventListener(ln,o,!!Ue&&{passive:!1}),t.addEventListener("dblclick",e,!1),this}function F(t,e){var n=t[un+sn+e],i=t[un+ln+e],o=t[un+"dblclick"+e];return t.removeEventListener(sn,n,!!Ue&&{passive:!1}),t.removeEventListener(ln,i,!!Ue&&{passive:!1}),xe||t.removeEventListener("dblclick",o,!1),this}function Z(t){return"string"==typeof t?document.getElementById(t):t}function H(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var i=document.defaultView.getComputedStyle(t,null);n=i?i[e]:null}return"auto"===n?null:n}function q(t,e,n){var i=document.createElement(t);return i.className=e||"",n&&n.appendChild(i),i}function W(t){var e=t.parentNode;e&&e.removeChild(t)}function V(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function $(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function U(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function G(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=J(t);return 0<n.length&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function X(t,e){if(void 0!==t.classList)for(var n=c(e),i=0,o=n.length;i<o;i++)t.classList.add(n[i]);else if(!G(t,e)){var r=J(t);K(t,(r?r+" ":"")+e)}}function Y(t,e){void 0!==t.classList?t.classList.remove(e):K(t,u((" "+J(t)+" ").replace(" "+e+" "," ")))}function K(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function J(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function Q(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&function(t,e){var n=!1,i="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(i)}catch(t){if(1===e)return}e=Math.round(100*e),n?(n.Enabled=100!==e,n.Opacity=e):t.style.filter+=" progid:"+i+"(opacity="+e+")"}(t,e)}function tt(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function et(t,e,n){var i=e||new b(0,0);t.style[cn]=(Ne?"translate("+i.x+"px,"+i.y+"px)":"translate3d("+i.x+"px,"+i.y+"px,0)")+(n?" scale("+n+")":"")}function nt(t,e){t._leaflet_pos=e,je?et(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function it(t){return t._leaflet_pos||new b(0,0)}function ot(){ct(window,"dragstart",vt)}function rt(){ht(window,"dragstart",vt)}function at(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(st(),me=(fe=t).style.outline,t.style.outline="none",ct(window,"keydown",st))}function st(){fe&&(fe.style.outline=me,me=fe=void 0,ht(window,"keydown",st))}function lt(t){for(;!((t=t.parentNode).offsetWidth&&t.offsetHeight||t===document.body););return t}function ut(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}function ct(t,e,n,i){if("object"==typeof e)for(var o in e)dt(t,o,e[o],n);else for(var r=0,a=(e=c(e)).length;r<a;r++)dt(t,e[r],n,i);return this}function ht(t,e,n,i){if("object"==typeof e)for(var o in e)pt(t,o,e[o],n);else if(e)for(var r=0,a=(e=c(e)).length;r<a;r++)pt(t,e[r],n,i);else{for(var s in t[gn])pt(t,s,t[gn][s]);delete t[gn]}return this}function dt(t,e,n,i){var r=e+o(n)+(i?"_"+o(i):"");if(t[gn]&&t[gn][r])return this;var a=function(e){return n.call(i||t,e||window.event)},s=a;He&&0===e.indexOf("touch")?N(t,e,a,r):!qe||"dblclick"!==e||He&&Se?"addEventListener"in t?"mousewheel"===e?t.addEventListener("onwheel"in t?"wheel":"mousewheel",a,!!Ue&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(a=function(e){e=e||window.event,Tt(t,e)&&s(e)},t.addEventListener("mouseenter"===e?"mouseover":"mouseout",a,!1)):("click"===e&&Te&&(a=function(t){!function(t,e){var n=t.timeStamp||t.originalEvent&&t.originalEvent.timeStamp,i=fn&&n-fn;if(i&&100<i&&i<500||t.target._simulatedClick&&!t._simulated)return _t(t);fn=n,e(t)}(t,s)}),t.addEventListener(e,a,!1)):"attachEvent"in t&&t.attachEvent("on"+e,a):R(t,a,r),t[gn]=t[gn]||{},t[gn][r]=a}function pt(t,e,n,i){var r=e+o(n)+(i?"_"+o(i):""),a=t[gn]&&t[gn][r];if(!a)return this;He&&0===e.indexOf("touch")?function(t,e,n){var i=t["_leaflet_"+e+n];"touchstart"===e?t.removeEventListener(Je,i,!1):"touchmove"===e?t.removeEventListener(Qe,i,!1):"touchend"===e&&(t.removeEventListener(tn,i,!1),t.removeEventListener(en,i,!1))}(t,e,r):!qe||"dblclick"!==e||He&&Se?"removeEventListener"in t?"mousewheel"===e?t.removeEventListener("onwheel"in t?"wheel":"mousewheel",a,!!Ue&&{passive:!1}):t.removeEventListener("mouseenter"===e?"mouseover":"mouseleave"===e?"mouseout":e,a,!1):"detachEvent"in t&&t.detachEvent("on"+e,a):F(t,r),t[gn][r]=null}function ft(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,wt(t),this}function mt(t){return dt(t,"mousewheel",ft),this}function gt(t){return ct(t,"mousedown touchstart dblclick",ft),dt(t,"click",xt),this}function vt(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function _t(t){return vt(t),ft(t),this}function yt(t,e){if(!e)return new b(t.clientX,t.clientY);var n=ut(e),i=n.boundingClientRect;return new b((t.clientX-i.left)/n.x-e.clientLeft,(t.clientY-i.top)/n.y-e.clientTop)}function bt(t){return xe?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/vn: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 xt(t){_n[t.type]=!0}function wt(t){var e=_n[t.type];return _n[t.type]=!1,e}function Tt(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}function Ct(t){return new wn(t)}function Pt(t,e){if(!e||!t.length)return t.slice();var n=e*e;return t=function(t,e){var n=t.length,i=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);i[0]=i[n-1]=1,function t(e,n,i,o,r){var a,s,l,u=0;for(s=o+1;s<=r-1;s++)l=At(e[s],e[o],e[r],!0),u<l&&(a=s,u=l);i<u&&(n[a]=1,t(e,n,i,o,a),t(e,n,i,a,r))}(t,i,e,0,n-1);var o,r=[];for(o=0;o<n;o++)i[o]&&r.push(t[o]);return r}(t=function(t,e){for(var n=[t[0]],i=1,o=0,r=t.length;i<r;i++)a=t[i],s=t[o],l=s.x-a.x,u=s.y-a.y,e<l*l+u*u&&(n.push(t[i]),o=i);var a,s,l,u;return o<r-1&&n.push(t[r-1]),n}(t,n),n)}function Lt(t,e,n){return Math.sqrt(At(t,e,n,!0))}function kt(t,e,n,i,o){var r,a,s,l=i?Sn:Et(t,n),u=Et(e,n);for(Sn=u;;){if(!(l|u))return[t,e];if(l&u)return!1;s=Et(a=St(t,e,r=l||u,n,o),n),r===l?(t=a,l=s):(e=a,u=s)}}function St(t,e,n,i,o){var r,a,s=e.x-t.x,l=e.y-t.y,u=i.min,c=i.max;return 8&n?(r=t.x+s*(c.y-t.y)/l,a=c.y):4&n?(r=t.x+s*(u.y-t.y)/l,a=u.y):2&n?(r=c.x,a=t.y+l*(c.x-t.x)/s):1&n&&(r=u.x,a=t.y+l*(u.x-t.x)/s),new b(r,a,o)}function Et(t,e){var n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n}function At(t,e,n,i){var o,r=e.x,a=e.y,s=n.x-r,l=n.y-a,u=s*s+l*l;return 0<u&&(1<(o=((t.x-r)*s+(t.y-a)*l)/u)?(r=n.x,a=n.y):0<o&&(r+=s*o,a+=l*o)),s=t.x-r,l=t.y-a,i?s*s+l*l:new b(r,a)}function Mt(t){return!Yt(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function zt(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Mt(t)}function It(t,e,n){var i,o,r,a,s,l,u,c,h,d=[1,4,2,8];for(o=0,u=t.length;o<u;o++)t[o]._code=Et(t[o],e);for(a=0;a<4;a++){for(c=d[a],i=[],o=0,r=(u=t.length)-1;o<u;r=o++)s=t[o],l=t[r],s._code&c?l._code&c||((h=St(l,s,c,e,n))._code=Et(h,e),i.push(h)):(l._code&c&&((h=St(l,s,c,e,n))._code=Et(h,e),i.push(h)),i.push(s));t=i}return t}function Nt(t,e){var n,i,o,r,a="Feature"===t.type?t.geometry:t,s=a?a.coordinates:null,l=[],u=e&&e.pointToLayer,c=e&&e.coordsToLatLng||Ot;if(!s&&!a)return null;switch(a.type){case"Point":return Dt(u,t,n=c(s),e);case"MultiPoint":for(o=0,r=s.length;o<r;o++)n=c(s[o]),l.push(Dt(u,t,n,e));return new Vn(l);case"LineString":case"MultiLineString":return i=jt(s,"LineString"===a.type?0:1,c),new Qn(i,e);case"Polygon":case"MultiPolygon":return i=jt(s,"Polygon"===a.type?1:2,c),new ti(i,e);case"GeometryCollection":for(o=0,r=a.geometries.length;o<r;o++){var h=Nt({geometry:a.geometries[o],type:"Feature",properties:t.properties},e);h&&l.push(h)}return new Vn(l);default:throw new Error("Invalid GeoJSON object.")}}function Dt(t,e,n,i){return t?t(e,n):new Xn(n,i&&i.markersInheritOptions&&i)}function Ot(t){return new k(t[1],t[0],t[2])}function jt(t,e,n){for(var i,o=[],r=0,a=t.length;r<a;r++)i=e?jt(t[r],e-1,n):(n||Ot)(t[r]),o.push(i);return o}function Bt(t,e){return e="number"==typeof e?e:6,void 0!==t.alt?[l(t.lng,e),l(t.lat,e),l(t.alt,e)]:[l(t.lng,e),l(t.lat,e)]}function Rt(t,e,n,i){for(var o=[],r=0,a=t.length;r<a;r++)o.push(e?Rt(t[r],e-1,n,i):Bt(t[r],i));return!e&&n&&o.push(o[0]),o}function Ft(t,n){return t.feature?e({},t.feature,{geometry:n}):Zt(n)}function Zt(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}function Ht(t,e){return new ei(t,e)}function qt(t,e){return new di(t,e)}function Wt(t){return Ge?new mi(t):null}
function Vt(t){return Xe||Ye?new yi(t):null}var $t=Object.freeze;Object.freeze=function(t){return t};var Ut=Object.create||function(t){return n.prototype=t,new n},Gt=0,Xt=/\{ *([\w_-]+) *\}/g,Yt=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},Kt="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",Jt=0,Qt=window.requestAnimationFrame||m("RequestAnimationFrame")||g,te=window.cancelAnimationFrame||m("CancelAnimationFrame")||m("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)},ee=(Object.freeze||Object)({freeze:$t,extend:e,create:Ut,bind:i,lastId:Gt,stamp:o,throttle:r,wrapNum:a,falseFn:s,formatNum:l,trim:u,splitWords:c,setOptions:h,getParamString:d,template:p,isArray:Yt,indexOf:f,emptyImageUrl:Kt,requestFn:Qt,cancelFn:te,requestAnimFrame:v,cancelAnimFrame:_});y.extend=function(t){function n(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()}var i=n.__super__=this.prototype,o=Ut(i);for(var r in(o.constructor=n).prototype=o,this)this.hasOwnProperty(r)&&"prototype"!==r&&"__super__"!==r&&(n[r]=this[r]);return t.statics&&(e(n,t.statics),delete t.statics),t.includes&&(function(t){if("undefined"!=typeof L&&L&&L.Mixin){t=Yt(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)}}(t.includes),e.apply(null,[o].concat(t.includes)),delete t.includes),o.options&&(t.options=e(Ut(o.options),t.options)),e(o,t),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){i.callInitHooks&&i.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=o._initHooks.length;t<e;t++)o._initHooks[t].call(this)}},n},y.include=function(t){return e(this.prototype,t),this},y.mergeOptions=function(t){return e(this.prototype.options,t),this},y.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),n="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var ne={on:function(t,e,n){if("object"==typeof t)for(var i in t)this._on(i,t[i],e);else for(var o=0,r=(t=c(t)).length;o<r;o++)this._on(t[o],e,n);return this},off:function(t,e,n){if(t)if("object"==typeof t)for(var i in t)this._off(i,t[i],e);else for(var o=0,r=(t=c(t)).length;o<r;o++)this._off(t[o],e,n);else delete this._events;return this},_on:function(t,e,n){this._events=this._events||{};var i=this._events[t];i||(i=[],this._events[t]=i),n===this&&(n=void 0);for(var o={fn:e,ctx:n},r=i,a=0,s=r.length;a<s;a++)if(r[a].fn===e&&r[a].ctx===n)return;r.push(o)},_off:function(t,e,n){var i,o,r;if(this._events&&(i=this._events[t]))if(e){if(n===this&&(n=void 0),i)for(o=0,r=i.length;o<r;o++){var a=i[o];if(a.ctx===n&&a.fn===e)return a.fn=s,this._firingCount&&(this._events[t]=i=i.slice()),void i.splice(o,1)}}else{for(o=0,r=i.length;o<r;o++)i[o].fn=s;delete this._events[t]}},fire:function(t,n,i){if(!this.listens(t,i))return this;var o=e({},n,{type:t,target:this,sourceTarget:n&&n.sourceTarget||this});if(this._events){var r=this._events[t];if(r){this._firingCount=this._firingCount+1||1;for(var a=0,s=r.length;a<s;a++){var l=r[a];l.fn.call(l.ctx||this,o)}this._firingCount--}}return i&&this._propagateEvent(o),this},listens:function(t,e){var n=this._events&&this._events[t];if(n&&n.length)return!0;if(e)for(var i in this._eventParents)if(this._eventParents[i].listens(t,e))return!0;return!1},once:function(t,e,n){if("object"==typeof t){for(var o in t)this.once(o,t[o],e);return this}var r=i(function(){this.off(t,e,n).off(t,r,n)},this);return this.on(t,e,n).on(t,r,n)},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[o(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[o(t)],this},_propagateEvent:function(t){for(var n in this._eventParents)this._eventParents[n].fire(t.type,e({layer:t.target,propagatedFrom:t.target},t),!0)}};ne.addEventListener=ne.on,ne.removeEventListener=ne.clearAllEventListeners=ne.off,ne.addOneTimeEventListener=ne.once,ne.fireEvent=ne.fire,ne.hasEventListeners=ne.listens;var ie=y.extend(ne),oe=Math.trunc||function(t){return 0<t?Math.floor(t):Math.ceil(t)};b.prototype={clone:function(){return new b(this.x,this.y)},add:function(t){return this.clone()._add(x(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(x(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 b(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new b(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=oe(this.x),this.y=oe(this.y),this},distanceTo:function(t){var e=(t=x(t)).x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return(t=x(t)).x===this.x&&t.y===this.y},contains:function(t){return t=x(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+l(this.x)+", "+l(this.y)+")"}},w.prototype={extend:function(t){return t=x(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new b((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new b(this.min.x,this.max.y)},getTopRight:function(){return new b(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,n;return(t="number"==typeof t[0]||t instanceof b?x(t):T(t))instanceof w?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=T(t);var e=this.min,n=this.max,i=t.min,o=t.max,r=o.x>=e.x&&i.x<=n.x,a=o.y>=e.y&&i.y<=n.y;return r&&a},overlaps:function(t){t=T(t);var e=this.min,n=this.max,i=t.min,o=t.max,r=o.x>e.x&&i.x<n.x,a=o.y>e.y&&i.y<n.y;return r&&a},isValid:function(){return!(!this.min||!this.max)}},C.prototype={extend:function(t){var e,n,i=this._southWest,o=this._northEast;if(t instanceof k)n=e=t;else{if(!(t instanceof C))return t?this.extend(S(t)||P(t)):this;if(e=t._southWest,n=t._northEast,!e||!n)return this}return i||o?(i.lat=Math.min(e.lat,i.lat),i.lng=Math.min(e.lng,i.lng),o.lat=Math.max(n.lat,o.lat),o.lng=Math.max(n.lng,o.lng)):(this._southWest=new k(e.lat,e.lng),this._northEast=new k(n.lat,n.lng)),this},pad:function(t){var e=this._southWest,n=this._northEast,i=Math.abs(e.lat-n.lat)*t,o=Math.abs(e.lng-n.lng)*t;return new C(new k(e.lat-i,e.lng-o),new k(n.lat+i,n.lng+o))},getCenter:function(){return new k((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 k(this.getNorth(),this.getWest())},getSouthEast:function(){return new k(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof k||"lat"in t?S(t):P(t);var e,n,i=this._southWest,o=this._northEast;return t instanceof C?(e=t.getSouthWest(),n=t.getNorthEast()):e=n=t,e.lat>=i.lat&&n.lat<=o.lat&&e.lng>=i.lng&&n.lng<=o.lng},intersects:function(t){t=P(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>=e.lat&&i.lat<=n.lat,a=o.lng>=e.lng&&i.lng<=n.lng;return r&&a},overlaps:function(t){t=P(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>e.lat&&i.lat<n.lat,a=o.lng>e.lng&&i.lng<n.lng;return r&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=P(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}};var re,ae={latLngToPoint:function(t,e){var n=this.projection.project(t),i=this.scale(e);return this.transformation._transform(n,i)},pointToLatLng:function(t,e){var n=this.scale(e),i=this.transformation.untransform(t,n);return this.projection.unproject(i)},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,n=this.scale(t);return new w(this.transformation.transform(e.min,n),this.transformation.transform(e.max,n))},infinite:!(k.prototype={equals:function(t,e){return!!t&&(t=S(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("+l(this.lat,t)+", "+l(this.lng,t)+")"},distanceTo:function(t){return se.distance(this,S(t))},wrap:function(){return se.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return P([this.lat-e,this.lng-n],[this.lat+e,this.lng+n])},clone:function(){return new k(this.lat,this.lng,this.alt)}}),wrapLatLng:function(t){var e=this.wrapLng?a(t.lng,this.wrapLng,!0):t.lng;return new k(this.wrapLat?a(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),n=this.wrapLatLng(e),i=e.lat-n.lat,o=e.lng-n.lng;if(0==i&&0==o)return t;var r=t.getSouthWest(),a=t.getNorthEast();return new C(new k(r.lat-i,r.lng-o),new k(a.lat-i,a.lng-o))}},se=e({},ae,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,i=t.lat*n,o=e.lat*n,r=Math.sin((e.lat-t.lat)*n/2),a=Math.sin((e.lng-t.lng)*n/2),s=r*r+Math.cos(i)*Math.cos(o)*a*a,l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*l}}),le=6378137,ue={R:le,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,n=this.MAX_LATITUDE,i=Math.max(Math.min(n,t.lat),-n),o=Math.sin(i*e);return new b(this.R*t.lng*e,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var e=180/Math.PI;return new k((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(re=le*Math.PI,new w([-re,-re],[re,re]))};E.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 b((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var ce,he,de,pe,fe,me,ge=e({},se,{code:"EPSG:3857",projection:ue,transformation:(ce=.5/(Math.PI*ue.R),A(ce,.5,-ce,.5))}),ve=e({},ge,{code:"EPSG:900913"}),_e=document.documentElement.style,ye="ActiveXObject"in window,be=ye&&!document.addEventListener,xe="msLaunchUri"in navigator&&!("documentMode"in document),we=I("webkit"),Te=I("android"),Ce=I("android 2")||I("android 3"),Pe=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Le=Te&&I("Google")&&Pe<537&&!("AudioNode"in window),ke=!!window.opera,Se=I("chrome"),Ee=I("gecko")&&!we&&!ke&&!ye,Ae=!Se&&I("safari"),Me=I("phantom"),ze="OTransition"in _e,Ie=0===navigator.platform.indexOf("Win"),Ne=ye&&"transition"in _e,De="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Ce,Oe="MozPerspective"in _e,je=!window.L_DISABLE_3D&&(Ne||De||Oe)&&!ze&&!Me,Be="undefined"!=typeof orientation||I("mobile"),Re=Be&&we,Fe=Be&&De,Ze=!window.PointerEvent&&window.MSPointerEvent,He=!(we||!window.PointerEvent&&!Ze),qe=!window.L_NO_TOUCH&&(He||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),We=Be&&ke,Ve=Be&&Ee,$e=1<(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI),Ue=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",s,e),window.removeEventListener("testPassiveEventSupport",s,e)}catch(t){}return t},Ge=!!document.createElement("canvas").getContext,Xe=!(!document.createElementNS||!M("svg").createSVGRect),Ye=!Xe&&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}}(),Ke=(Object.freeze||Object)({ie:ye,ielt9:be,edge:xe,webkit:we,android:Te,android23:Ce,androidStock:Le,opera:ke,chrome:Se,gecko:Ee,safari:Ae,phantom:Me,opera12:ze,win:Ie,ie3d:Ne,webkit3d:De,gecko3d:Oe,any3d:je,mobile:Be,mobileWebkit:Re,mobileWebkit3d:Fe,msPointer:Ze,pointer:He,touch:qe,mobileOpera:We,mobileGecko:Ve,retina:$e,passiveEvents:Ue,canvas:Ge,svg:Xe,vml:Ye}),Je=Ze?"MSPointerDown":"pointerdown",Qe=Ze?"MSPointerMove":"pointermove",tn=Ze?"MSPointerUp":"pointerup",en=Ze?"MSPointerCancel":"pointercancel",nn=["INPUT","SELECT","OPTION"],on={},rn=!1,an=0,sn=Ze?"MSPointerDown":He?"pointerdown":"touchstart",ln=Ze?"MSPointerUp":He?"pointerup":"touchend",un="_leaflet_",cn=tt(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),hn=tt(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),dn="webkitTransition"===hn||"OTransition"===hn?hn+"End":"transitionend";if("onselectstart"in document)he=function(){ct(window,"selectstart",vt)},de=function(){ht(window,"selectstart",vt)};else{var pn=tt(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);he=function(){if(pn){var t=document.documentElement.style;pe=t[pn],t[pn]="none"}},de=function(){pn&&(document.documentElement.style[pn]=pe,pe=void 0)}}var fn,mn=(Object.freeze||Object)({TRANSFORM:cn,TRANSITION:hn,TRANSITION_END:dn,get:Z,getStyle:H,create:q,remove:W,empty:V,toFront:$,toBack:U,hasClass:G,addClass:X,removeClass:Y,setClass:K,getClass:J,setOpacity:Q,testProp:tt,setTransform:et,setPosition:nt,getPosition:it,disableTextSelection:he,enableTextSelection:de,disableImageDrag:ot,enableImageDrag:rt,preventOutline:at,restoreOutline:st,getSizedParentNode:lt,getScale:ut}),gn="_leaflet_events",vn=Ie&&Se?2*window.devicePixelRatio:Ee?window.devicePixelRatio:1,_n={},yn=(Object.freeze||Object)({on:ct,off:ht,stopPropagation:ft,disableScrollPropagation:mt,disableClickPropagation:gt,preventDefault:vt,stop:_t,getMousePosition:yt,getWheelDelta:bt,fakeStop:xt,skipped:wt,isExternalTarget:Tt,addListener:ct,removeListener:ht}),bn=ie.extend({run:function(t,e,n,i){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(i||.5,.2),this._startPos=it(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=v(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=1e3*this._duration;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var n=this._startPos.add(this._offset.multiplyBy(t));e&&n._round(),nt(this._el,n),this.fire("step")},_complete:function(){_(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),xn=ie.extend({options:{crs:ge,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=h(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=i(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(S(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=hn&&je&&!We&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),ct(this._proxy,dn,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,n,i){return n=void 0===n?this._zoom:this._limitZoom(n),t=this._limitCenter(S(t),n,this.options.maxBounds),i=i||{},this._stop(),this._loaded&&!i.reset&&!0!==i&&(void 0!==i.animate&&(i.zoom=e({animate:i.animate},i.zoom),i.pan=e({animate:i.animate,duration:i.duration},i.pan)),this._zoom!==n?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,n,i.zoom):this._tryAnimatedPan(t,i.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,n),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||(je?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(je?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,n){var i=this.getZoomScale(e),o=this.getSize().divideBy(2),r=(t instanceof b?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/i),a=this.containerPointToLatLng(o.add(r));return this.setView(a,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():P(t);var n=x(e.paddingTopLeft||e.padding||[0,0]),i=x(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,n.add(i));if((o="number"==typeof e.maxZoom?Math.min(e.maxZoom,o):o)===1/0)return{center:t.getCenter(),zoom:o};var r=i.subtract(n).divideBy(2),a=this.project(t.getSouthWest(),o),s=this.project(t.getNorthEast(),o);return{center:this.unproject(a.add(s).divideBy(2).add(r),o),zoom:o}},fitBounds:function(t,e){if(!(t=P(t)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,e);return this.setView(n.center,n.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=x(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 bn,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){X(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,n){function i(t){var e=(d*d-h*h+(t?-1:1)*m*m*p*p)/(2*(t?d:h)*m*p),n=Math.sqrt(e*e+1)-e;return n<1e-9?-18:Math.log(n)}function o(t){return(Math.exp(t)-Math.exp(-t))/2}function r(t){return(Math.exp(t)+Math.exp(-t))/2}function a(t){return h*(r(g)*function(t){return o(t)/r(t)}(g+f*t)-o(g))/m}if(!1===(n=n||{}).animate||!je)return this.setView(t,e,n);this._stop();var s=this.project(this.getCenter()),l=this.project(t),u=this.getSize(),c=this._zoom;t=S(t),e=void 0===e?c:e;var h=Math.max(u.x,u.y),d=h*this.getZoomScale(c,e),p=l.distanceTo(s)||1,f=1.42,m=f*f,g=i(0),_=Date.now(),y=(i(1)-g)/f,b=n.duration?1e3*n.duration:1e3*y*.8;return this._moveStart(!0,n.noMoveStart),function n(){var i=(Date.now()-_)/b,o=function(t){return 1-Math.pow(1-t,1.5)}(i)*y;i<=1?(this._flyToFrame=v(n,this),this._move(this.unproject(s.add(l.subtract(s).multiplyBy(a(o)/p)),c),this.getScaleZoom(h/function(t){return h*(r(g)/r(g+f*t))}(o),c),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,e){var n=this._getBoundsCenterZoom(t,e);return this.flyTo(n.center,n.zoom,e)},setMaxBounds:function(t){return(t=P(t)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},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 n=this.getCenter(),i=this._limitCenter(n,this._zoom,P(t));return n.equals(i)||this.panTo(i,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n=x((e=e||{}).paddingTopLeft||e.padding||[0,0]),i=x(e.paddingBottomRight||e.padding||[0,0]),o=this.getCenter(),r=this.project(o),a=this.project(t),s=this.getPixelBounds(),l=s.getSize().divideBy(2),u=T([s.min.add(n),s.max.subtract(i)]);if(!u.contains(a)){this._enforcingBounds=!0;var c=r.subtract(a),h=x(a.x+c.x,a.y+c.y);(a.x<u.min.x||a.x>u.max.x)&&(h.x=r.x-c.x,0<c.x?h.x+=l.x-n.x:h.x-=l.x-i.x),(a.y<u.min.y||a.y>u.max.y)&&(h.y=r.y-c.y,0<c.y?h.y+=l.y-n.y:h.y-=l.y-i.y),this.panTo(this.unproject(h),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),r=n.divideBy(2).round(),a=o.divideBy(2).round(),s=r.subtract(a);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:o})):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=e({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=i(this._handleGeolocationResponse,this),o=i(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,o,t):navigator.geolocation.getCurrentPosition(n,o,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){var e=t.code,n=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: "+n+"."})},_handleGeolocationResponse:function(t){var e=new k(t.coords.latitude,t.coords.longitude),n=e.toBounds(2*t.coords.accuracy),i=this._locateOptions;if(i.setView){var o=this.getBoundsZoom(n);this.setView(e,i.maxZoom?Math.min(o,i.maxZoom):o)}var r={latlng:e,bounds:n,timestamp:t.timestamp};for(var a in t.coords)"number"==typeof t.coords[a]&&(r[a]=t.coords[a]);this.fire("locationfound",r)},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),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(),W(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(_(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)W(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n=q("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new C(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,n){t=P(t),n=x(n||[0,0]);var i=this.getZoom()||0,o=this.getMinZoom(),r=this.getMaxZoom(),a=t.getNorthWest(),s=t.getSouthEast(),l=this.getSize().subtract(n),u=T(this.project(s,i),this.project(a,i)).getSize(),c=je?this.options.zoomSnap:1,h=l.x/u.x,d=l.y/u.y,p=e?Math.max(h,d):Math.min(h,d);return i=this.getScaleZoom(p,i),c&&(i=Math.round(i/(c/100))*(c/100),i=e?Math.ceil(i/c)*c:Math.floor(i/c)*c),Math.max(o,Math.min(r,i))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new b(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new w(n,n.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 n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var i=n.zoom(t*n.scale(e));return isNaN(i)?1/0:i},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(S(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(x(t),e)},layerPointToLatLng:function(t){var e=x(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(S(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(S(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(P(t))},distance:function(t,e){return this.options.crs.distance(S(t),S(e))},containerPointToLayerPoint:function(t){return x(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return x(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(x(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(S(t)))},mouseEventToContainerPoint:function(t){return yt(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=Z(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");ct(e,"scroll",this._onScroll,this),this._containerId=o(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&je,X(t,"leaflet-container"+(qe?" leaflet-touch":"")+($e?" leaflet-retina":"")+(be?" leaflet-oldie":"")+(Ae?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=H(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==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),nt(this._mapPane,new b(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(X(t.markerPane,"leaflet-zoom-hide"),X(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){nt(this._mapPane,new b(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var i=this._zoom!==e;this._moveStart(i,!1)._move(t,e)._moveEnd(i),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,n){void 0===e&&(e=this._zoom);var i=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(i||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return _(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){nt(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={};var e=t?ht:ct;e((this._targets[o(this._container)]=this)._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),je&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){_(this._resizeRequest),this._resizeRequest=v(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 n,i=[],r="mouseout"===e||"mouseover"===e,a=t.target||t.srcElement,s=!1;a;){if((n=this._targets[o(a)])&&("click"===e||"preclick"===e)&&!t._simulated&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(e,!0)){if(r&&!Tt(a,t))break;if(i.push(n),r)break}if(a===this._container)break;a=a.parentNode}return i.length||s||r||!Tt(a,t)||(i=[this]),i},_handleDOMEvent:function(t){if(this._loaded&&!wt(t)){var e=t.type;"mousedown"!==e&&"keypress"!==e&&"keyup"!==e&&"keydown"!==e||at(t.target||t.srcElement),this._fireDOMEvent(t,e)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,n,i){if("click"===t.type){var o=e({},t);o.type="preclick",this._fireDOMEvent(o,o.type,i)}if(!t._stopped&&(i=(i||[]).concat(this._findEventTargets(t,n))).length){var r=i[0];"contextmenu"===n&&r.listens(n,!0)&&vt(t);var a={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var s=r.getLatLng&&(!r._radius||r._radius<=10);a.containerPoint=s?this.latLngToContainerPoint(r.getLatLng()):this.mouseEventToContainerPoint(t),a.layerPoint=this.containerPointToLayerPoint(a.containerPoint),a.latlng=s?r.getLatLng():this.layerPointToLatLng(a.layerPoint)}for(var l=0;l<i.length;l++)if(i[l].fire(n,a,!0),
a.originalEvent._stopped||!1===i[l].options.bubblingMouseEvents&&-1!==f(this._mouseEvents,n))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 it(this._mapPane)||new b(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 n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,n){var i=this._getNewPixelOrigin(n,e);return this.project(t,e)._subtract(i)},_latLngBoundsToNewLayerBounds:function(t,e,n){var i=this._getNewPixelOrigin(n,e);return T([this.project(t.getSouthWest(),e)._subtract(i),this.project(t.getNorthWest(),e)._subtract(i),this.project(t.getSouthEast(),e)._subtract(i),this.project(t.getNorthEast(),e)._subtract(i)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n)return t;var i=this.project(t,e),o=this.getSize().divideBy(2),r=new w(i.subtract(o),i.add(o)),a=this._getBoundsOffset(r,n,e);return a.round().equals([0,0])?t:this.unproject(i.add(a),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),i=new w(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(i,e))},_getBoundsOffset:function(t,e,n){var i=T(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n)),o=i.min.subtract(t.min),r=i.max.subtract(t.max);return new b(this._rebound(o.x,-r.x),this._rebound(o.y,-r.y))},_rebound:function(t,e){return 0<t+e?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),i=je?this.options.zoomSnap:1;return i&&(t=Math.round(t/i)*i),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Y(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n)||(this.panBy(n,e),0))},_createAnimProxy:function(){var t=this._proxy=q("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(t){var e=cn,n=this._proxy.style[e];et(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){W(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();et(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&0<=t.propertyName.indexOf("transform")&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var i=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/i);return!(!0!==n.animate&&!this.getSize().contains(o)||(v(function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)},this),0))},_animateZoom:function(t,e,n,o){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,X(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:o}),setTimeout(i(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Y(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),v(function(){this._moveEnd(!0)},this))}}),wn=y.extend({options:{position:"topright"},initialize:function(t){h(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),n=this.getPosition(),i=t._controlCorners[n];return X(e,"leaflet-control"),-1!==n.indexOf("bottom")?i.insertBefore(e,i.firstChild):i.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(W(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(t){this._map&&t&&0<t.screenX&&0<t.screenY&&this._map.getContainer().focus()}});xn.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){function t(t,o){var r=n+t+" "+n+o;e[t+o]=q("div",r,i)}var e=this._controlCorners={},n="leaflet-",i=this._controlContainer=q("div",n+"control-container",this._container);t("top","left"),t("top","right"),t("bottom","left"),t("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)W(this._controlCorners[t]);W(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Tn=wn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,i){return n<i?-1:i<n?1:0}},initialize:function(t,e,n){for(var i in h(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,t)this._addLayer(t[i],i);for(i in e)this._addLayer(e[i],i,!0)},onAdd:function(t){this._initLayout(),this._update(),(this._map=t).on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return wn.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(o(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){X(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?(X(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):Y(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Y(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=q("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",!0),gt(e),mt(e);var i=this._section=q("section",t+"-list");n&&(this._map.on("click",this.collapse,this),Te||ct(e,{mouseenter:this.expand,mouseleave:this.collapse},this));var o=this._layersLink=q("a",t+"-toggle",e);o.href="#",o.title="Layers",qe?(ct(o,"click",_t),ct(o,"click",this.expand,this)):ct(o,"focus",this.expand,this),n||this.expand(),this._baseLayersList=q("div",t+"-base",i),this._separator=q("div",t+"-separator",i),this._overlaysList=q("div",t+"-overlays",i),e.appendChild(i)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&o(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort(i(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;V(this._baseLayersList),V(this._overlaysList),this._layerControlInputs=[];var t,e,n,i,o=0;for(n=0;n<this._layers.length;n++)i=this._layers[n],this._addItem(i),e=e||i.overlay,t=t||!i.overlay,o+=i.overlay?0:1;return this.options.hideSingleBase&&(t=t&&1<o,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(o(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",i=document.createElement("div");return i.innerHTML=n,i.firstChild},_addItem:function(t){var e,n=document.createElement("label"),i=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=i):e=this._createRadioElement("leaflet-base-layers_"+o(this),i),this._layerControlInputs.push(e),e.layerId=o(t.layer),ct(e,"click",this._onInputClick,this);var r=document.createElement("span");r.innerHTML=" "+t.name;var a=document.createElement("div");return n.appendChild(a),a.appendChild(e),a.appendChild(r),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var t,e,n=this._layerControlInputs,i=[],o=[];this._handlingClick=!0;for(var r=n.length-1;0<=r;r--)t=n[r],e=this._getLayer(t.layerId).layer,t.checked?i.push(e):t.checked||o.push(e);for(r=0;r<o.length;r++)this._map.hasLayer(o[r])&&this._map.removeLayer(o[r]);for(r=0;r<i.length;r++)this._map.hasLayer(i[r])||this._map.addLayer(i[r]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,e,n=this._layerControlInputs,i=this._map.getZoom(),o=n.length-1;0<=o;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&i<e.options.minZoom||void 0!==e.options.maxZoom&&i>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),Cn=wn.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"&#x2212;",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=q("div",e+" leaflet-bar"),i=this.options;return this._zoomInButton=this._createButton(i.zoomInText,i.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(i.zoomOutText,i.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},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,n,i,o){var r=q("a",n,i);return r.innerHTML=t,r.href="#",r.title=e,r.setAttribute("role","button"),r.setAttribute("aria-label",e),gt(r),ct(r,"click",_t),ct(r,"click",o,this),ct(r,"click",this._refocusOnMap,this),r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";Y(this._zoomInButton,e),Y(this._zoomOutButton,e),!this._disabled&&t._zoom!==t.getMinZoom()||X(this._zoomOutButton,e),!this._disabled&&t._zoom!==t.getMaxZoom()||X(this._zoomInButton,e)}});xn.mergeOptions({zoomControl:!0}),xn.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Cn,this.addControl(this.zoomControl))});var Pn=wn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=q("div",e),i=this.options;return this._addScales(i,e+"-line",n),t.on(i.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=q("div",e,n)),t.imperial&&(this._iScale=q("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_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),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,i,o=3.2808399*t;5280<o?(e=o/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(i=this._getRoundNum(o),this._updateScale(this._iScale,i+" ft",i/o))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return e*(n=10<=n?10:5<=n?5:3<=n?3:2<=n?2:1)}}),Ln=wn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){h(this,t),this._attributions={}},onAdd:function(t){for(var e in(t.attributionControl=this)._container=q("div","leaflet-control-attribution"),gt(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t&&(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update()),this},removeAttribution:function(t){return t&&this._attributions[t]&&(this._attributions[t]--,this._update()),this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(" | ")}}});xn.mergeOptions({attributionControl:!0}),xn.addInitHook(function(){this.options.attributionControl&&(new Ln).addTo(this)}),wn.Layers=Tn,wn.Zoom=Cn,wn.Scale=Pn,wn.Attribution=Ln,Ct.layers=function(t,e,n){return new Tn(t,e,n)},Ct.zoom=function(t){return new Cn(t)},Ct.scale=function(t){return new Pn(t)},Ct.attribution=function(t){return new Ln(t)};var kn=y.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled:function(){return!!this._enabled}});kn.addTo=function(t,e){return t.addHandler(e,this),this};var Sn,En,An={Events:ne},Mn=qe?"touchstart mousedown":"mousedown",zn={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},In={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},Nn=ie.extend({options:{clickTolerance:3},initialize:function(t,e,n,i){h(this,i),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(ct(this._dragStartTarget,Mn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Nn._dragging===this&&this.finishDrag(),ht(this._dragStartTarget,Mn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!G(this._element,"leaflet-zoom-anim")&&!(Nn._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||((Nn._dragging=this)._preventOutline&&at(this._element),ot(),he(),this._moving)))){this.fire("down");var e=t.touches?t.touches[0]:t,n=lt(this._element);this._startPoint=new b(e.clientX,e.clientY),this._parentScale=ut(n),ct(document,In[t.type],this._onMove,this),ct(document,zn[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled)if(t.touches&&1<t.touches.length)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new b(e.clientX,e.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,vt(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=it(this._element).subtract(n),X(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),X(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,_(this._animRequest),this._lastEvent=t,this._animRequest=v(this._updatePosition,this,!0)))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),nt(this._element,this._newPos),this.fire("drag",t)},_onUp:function(t){!t._simulated&&this._enabled&&this.finishDrag()},finishDrag:function(){for(var t in Y(document.body,"leaflet-dragging"),this._lastTarget&&(Y(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),In)ht(document,In[t],this._onMove,this),ht(document,zn[t],this._onUp,this);rt(),de(),this._moved&&this._moving&&(_(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1,Nn._dragging=!1}}),Dn=(Object.freeze||Object)({simplify:Pt,pointToSegmentDistance:Lt,closestPointOnSegment:function(t,e,n){return At(t,e,n)},clipSegment:kt,_getEdgeIntersection:St,_getBitCode:Et,_sqClosestPointOnSegment:At,isFlat:Mt,_flat:zt}),On=(Object.freeze||Object)({clipPolygon:It}),jn={project:function(t){return new b(t.lng,t.lat)},unproject:function(t){return new k(t.y,t.x)},bounds:new w([-180,-90],[180,90])},Bn={R:6378137,R_MINOR:6356752.314245179,bounds:new w([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,n=this.R,i=t.lat*e,o=this.R_MINOR/n,r=Math.sqrt(1-o*o),a=r*Math.sin(i),s=Math.tan(Math.PI/4-i/2)/Math.pow((1-a)/(1+a),r/2);return i=-n*Math.log(Math.max(s,1e-10)),new b(t.lng*e*n,i)},unproject:function(t){for(var e,n=180/Math.PI,i=this.R,o=this.R_MINOR/i,r=Math.sqrt(1-o*o),a=Math.exp(-t.y/i),s=Math.PI/2-2*Math.atan(a),l=0,u=.1;l<15&&1e-7<Math.abs(u);l++)e=r*Math.sin(s),e=Math.pow((1-e)/(1+e),r/2),s+=u=Math.PI/2-2*Math.atan(a*e)-s;return new k(s*n,t.x*n/i)}},Rn=(Object.freeze||Object)({LonLat:jn,Mercator:Bn,SphericalMercator:ue}),Fn=e({},se,{code:"EPSG:3395",projection:Bn,transformation:(En=.5/(Math.PI*Bn.R),A(En,.5,-En,.5))}),Zn=e({},se,{code:"EPSG:4326",projection:jn,transformation:A(1/180,1,-1/180,.5)}),Hn=e({},ae,{projection:jn,transformation:A(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 n=e.lng-t.lng,i=e.lat-t.lat;return Math.sqrt(n*n+i*i)},infinite:!0});ae.Earth=se,ae.EPSG3395=Fn,ae.EPSG3857=ge,ae.EPSG900913=ve,ae.EPSG4326=Zn,ae.Simple=Hn;var qn=ie.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[o(t)]=this},removeInteractiveTarget:function(t){return delete this._map._targets[o(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 n=this.getEvents();e.on(n,this),this.once("remove",function(){e.off(n,this)},this)}this.onAdd(e),this.getAttribution&&e.attributionControl&&e.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),e.fire("layeradd",{layer:this})}}});xn.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=o(t);return this._layers[e]||((this._layers[e]=t)._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=o(t);return this._layers[e]&&(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null),this},hasLayer:function(t){return!!t&&o(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){for(var e=0,n=(t=t?Yt(t)?t:[t]:[]).length;e<n;e++)this.addLayer(t[e])},_addZoomLimit:function(t){!isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[o(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=o(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,n=this._getZoomSpan();for(var i in this._zoomBoundLayers){var o=this._zoomBoundLayers[i].options;t=void 0===o.minZoom?t:Math.min(t,o.minZoom),e=void 0===o.maxZoom?e:Math.max(e,o.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Wn=qn.extend({initialize:function(t,e){var n,i;if(h(this,e),this._layers={},t)for(n=0,i=t.length;n<i;n++)this.addLayer(t[n])},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!!t&&(t in this._layers||this.getLayerId(t)in this._layers)},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,n,i=Array.prototype.slice.call(arguments,1);for(e in this._layers)(n=this._layers[e])[t]&&n[t].apply(n,i);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);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 o(t)}}),Vn=Wn.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Wn.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),Wn.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 C;for(var e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),$n=y.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0]},initialize:function(t){h(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n=this._getIconUrl(t);if(!n){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var i=this._createImg(n,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(i,t),i},_setIconStyles:function(t,e){var n=this.options,i=n[e+"Size"];"number"==typeof i&&(i=[i,i]);var o=x(i),r=x("shadow"===e&&n.shadowAnchor||n.iconAnchor||o&&o.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(n.className||""),r&&(t.style.marginLeft=-r.x+"px",t.style.marginTop=-r.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return $e&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}}),Un=$n.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 Un.imagePath||(Un.imagePath=this._detectIconPath()),(this.options.imagePath||Un.imagePath)+$n.prototype._getIconUrl.call(this,t)},_detectIconPath:function(){var t=q("div","leaflet-default-icon-path",document.body),e=H(t,"background-image")||H(t,"backgroundImage");return document.body.removeChild(t),e=null===e||0!==e.indexOf("url")?"":e.replace(/^url\(["']?/,"").replace(/marker-icon\.png["']?\)$/,"")}}),Gn=kn.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new Nn(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),X(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&&Y(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,n=e._map,i=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,r=it(e._icon),a=n.getPixelBounds(),s=n.getPixelOrigin(),l=T(a.min._subtract(s).add(o),a.max._subtract(s).subtract(o));if(!l.contains(r)){var u=x((Math.max(l.max.x,r.x)-l.max.x)/(a.max.x-l.max.x)-(Math.min(l.min.x,r.x)-l.min.x)/(a.min.x-l.min.x),(Math.max(l.max.y,r.y)-l.max.y)/(a.max.y-l.max.y)-(Math.min(l.min.y,r.y)-l.min.y)/(a.min.y-l.min.y)).multiplyBy(i);n.panBy(u,{animate:!1}),this._draggable._newPos._add(u),this._draggable._startPos._add(u),nt(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=v(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup().fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(_(this._panRequest),this._panRequest=v(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,n=e._shadow,i=it(e._icon),o=e._map.layerPointToLatLng(i);n&&nt(n,i),e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){_(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Xn=qn.extend({options:{icon:new Un,interactive:!0,keyboard:!0,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){h(this,e),this._latlng=S(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=S(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"),n=t.icon.createIcon(this._icon),i=!1;n!==this._icon&&(this._icon&&this._removeIcon(),i=!0,t.title&&(n.title=t.title),"IMG"===n.tagName&&(n.alt=t.alt||"")),X(n,e),t.keyboard&&(n.tabIndex="0"),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});var o=t.icon.createShadow(this._shadow),r=!1;o!==this._shadow&&(this._removeShadow(),r=!0),o&&(X(o,e),o.alt=""),this._shadow=o,t.opacity<1&&this._updateOpacity(),i&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&r&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),W(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&W(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&nt(this._icon,t),this._shadow&&nt(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&&(X(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Gn)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Gn(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&&Q(this._icon,t),this._shadow&&Q(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),Yn=qn.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 h(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&t.hasOwnProperty("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}}),Kn=Yn.extend({options:{fill:!0,radius:10},initialize:function(t,e){h(this,e),this._latlng=S(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=S(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 Yn.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,n=this._clickTolerance(),i=[t+n,e+n];this._pxBounds=new w(this._point.subtract(i),this._point.add(i))},_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()}}),Jn=Kn.extend({initialize:function(t,n,i){if("number"==typeof n&&(n=e({},i,{radius:n})),h(this,n),this._latlng=S(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 C(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Yn.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,n=this._map,i=n.options.crs;if(i.distance===se.distance){var o=Math.PI/180,r=this._mRadius/se.R/o,a=n.project([e+r,t]),s=n.project([e-r,t]),l=a.add(s).divideBy(2),u=n.unproject(l).lat,c=Math.acos((Math.cos(r*o)-Math.sin(e*o)*Math.sin(u*o))/(Math.cos(e*o)*Math.cos(u*o)))/o;!isNaN(c)&&0!==c||(c=r/Math.cos(Math.PI/180*e)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(c)?0:l.x-n.project([u,t-c]).x,this._radiusY=l.y-a.y}else{var h=i.unproject(i.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(h).x}this._updateBounds()}}),Qn=Yn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){h(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,n,i=1/0,o=null,r=At,a=0,s=this._parts.length;a<s;a++)for(var l=this._parts[a],u=1,c=l.length;u<c;u++){var h=r(t,e=l[u-1],n=l[u],!0);h<i&&(i=h,o=r(t,e,n))}return o&&(o.distance=Math.sqrt(i)),o},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,n,i,o,r,a,s=this._rings[0],l=s.length;if(!l)return null;for(e=t=0;t<l-1;t++)e+=s[t].distanceTo(s[t+1])/2;if(0===e)return this._map.layerPointToLatLng(s[0]);for(i=t=0;t<l-1;t++)if(o=s[t],r=s[t+1],e<(i+=n=o.distanceTo(r)))return a=(i-e)/n,this._map.layerPointToLatLng([r.x-a*(r.x-o.x),r.y-a*(r.y-o.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=S(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new C,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Mt(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=Mt(t),i=0,o=t.length;i<o;i++)n?(e[i]=S(t[i]),this._bounds.extend(e[i])):e[i]=this._convertLatLngs(t[i]);return e},_project:function(){var t=new w;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 b(t,t);this._pxBounds=new w([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)])},_projectLatlngs:function(t,e,n){var i,o,r=t[0]instanceof k,a=t.length;if(r){for(o=[],i=0;i<a;i++)o[i]=this._map.latLngToLayerPoint(t[i]),n.extend(o[i]);e.push(o)}else for(i=0;i<a;i++)this._projectLatlngs(t[i],e,n)},_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,n,i,o,r,a,s,l=this._parts;for(i=e=0,o=this._rings.length;e<o;e++)for(n=0,r=(s=this._rings[e]).length;n<r-1;n++)(a=kt(s[n],s[n+1],t,n,!0))&&(l[i]=l[i]||[],l[i].push(a[0]),a[1]===s[n+1]&&n!==r-2||(l[i].push(a[1]),i++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,n=0,i=t.length;n<i;n++)t[n]=Pt(t[n],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var n,i,o,r,a,s,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,r=this._parts.length;n<r;n++)for(i=0,o=(a=(s=this._parts[n]).length)-1;i<a;o=i++)if((e||0!==i)&&Lt(t,s[o],s[i])<=l)return!0;return!1}});Qn._flat=zt;var ti=Qn.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()");var t,e,n,i,o,r,a,s,l,u=this._rings[0],c=u.length;if(!c)return null;for(r=a=s=0,t=0,e=c-1;t<c;e=t++)n=u[t],i=u[e],o=n.y*i.x-i.y*n.x,a+=(n.x+i.x)*o,s+=(n.y+i.y)*o,r+=3*o;return l=0===r?u[0]:[a/r,s/r],this._map.layerPointToLatLng(l)},_convertLatLngs:function(t){var e=Qn.prototype._convertLatLngs.call(this,t),n=e.length;return 2<=n&&e[0]instanceof k&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){Qn.prototype._setLatLngs.call(this,t),Mt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Mt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new b(e,e);if(t=new w(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var i,o=0,r=this._rings.length;o<r;o++)(i=It(this._rings[o],t,!0)).length&&this._parts.push(i)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,n,i,o,r,a,s,l,u=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(o=0,s=this._parts.length;o<s;o++)for(r=0,a=(l=(e=this._parts[o]).length)-1;r<l;a=r++)n=e[r],i=e[a],n.y>t.y!=i.y>t.y&&t.x<(i.x-n.x)*(t.y-n.y)/(i.y-n.y)+n.x&&(u=!u);return u||Qn.prototype._containsPoint.call(this,t,!0)}}),ei=Vn.extend({initialize:function(t,e){h(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,i,o=Yt(t)?t:t.features;if(o){for(e=0,n=o.length;e<n;e++)((i=o[e]).geometries||i.geometry||i.features||i.coordinates)&&this.addData(i);return this}var r=this.options;if(r.filter&&!r.filter(t))return this;var a=Nt(t,r);return a?(a.feature=Zt(t),a.defaultOptions=a.options,this.resetStyle(a),r.onEachFeature&&r.onEachFeature(t,a),this.addLayer(a)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=e({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}}),ni={toGeoJSON:function(t){return Ft(this,{type:"Point",coordinates:Bt(this.getLatLng(),t)})}};Xn.include(ni),Jn.include(ni),Kn.include(ni),Qn.include({toGeoJSON:function(t){var e=!Mt(this._latlngs);return Ft(this,{type:(e?"Multi":"")+"LineString",coordinates:Rt(this._latlngs,e?1:0,!1,t)})}}),ti.include({toGeoJSON:function(t){var e=!Mt(this._latlngs),n=e&&!Mt(this._latlngs[0]),i=Rt(this._latlngs,n?2:e?1:0,!0,t);return e||(i=[i]),Ft(this,{type:(n?"Multi":"")+"Polygon",coordinates:i})}}),Wn.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(n){e.push(n.toGeoJSON(t).geometry.coordinates)}),Ft(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 n="GeometryCollection"===e,i=[];return this.eachLayer(function(e){if(e.toGeoJSON){var o=e.toGeoJSON(t);if(n)i.push(o.geometry);else{var r=Zt(o);"FeatureCollection"===r.type?i.push.apply(i,r.features):i.push(r)}}}),n?Ft(this,{geometries:i,type:"GeometryCollection"}):{type:"FeatureCollection",features:i}}});var ii=Ht,oi=qn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=P(e),h(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(X(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){W(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&&$(this._image),this},bringToBack:function(){return this._map&&U(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=P(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:q("img");X(e,"leaflet-image-layer"),this._zoomAnimated&&X(e,"leaflet-zoom-animated"),this.options.className&&X(e,this.options.className),e.onselectstart=s,e.onmousemove=s,e.onload=i(this.fire,this,"load"),e.onerror=i(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),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;et(this._image,n,e)},_reset:function(){var t=this._image,e=new w(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();nt(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){Q(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)}}),ri=oi.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:q("video");if(X(e,"leaflet-image-layer"),this._zoomAnimated&&X(e,"leaflet-zoom-animated"),this.options.className&&X(e,this.options.className),e.onselectstart=s,e.onmousemove=s,e.onloadeddata=i(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),o=[],r=0;r<n.length;r++)o.push(n[r].src);this._url=0<n.length?o:[e.src]}else{Yt(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&e.style.hasOwnProperty("objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop;for(var a=0;a<this._url.length;a++){var l=q("source");l.src=this._url[a],e.appendChild(l)}}}}),ai=oi.extend({_initImage:function(){var t=this._image=this._url;X(t,"leaflet-image-layer"),this._zoomAnimated&&X(t,"leaflet-zoom-animated"),this.options.className&&X(t,this.options.className),t.onselectstart=s,t.onmousemove=s}}),si=qn.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(t,e){h(this,t),this._source=e},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&Q(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&Q(this._container,1),this.bringToFront()},onRemove:function(t){t._fadeAnimated?(Q(this._container,0),this._removeTimeout=setTimeout(i(W,void 0,this._container),200)):W(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=S(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&&$(this._container),this},bringToBack:function(){return this._map&&U(this._container),this},_prepareOpen:function(t,e,n){if(e instanceof qn||(n=e,e=t),e instanceof Vn)for(var i in t._layers){e=t._layers[i];break}if(!n)if(e.getCenter)n=e.getCenter();else{if(!e.getLatLng)throw new Error("Unable to get source layer LatLng.");n=e.getLatLng()}return this._source=e,this.update(),n},_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=x(this.options.offset),n=this._getAnchor();this._zoomAnimated?nt(this._container,t.add(n)):e=e.add(t).add(n);var i=this._containerBottom=-e.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=i+"px",this._container.style.left=o+"px"}},_getAnchor:function(){return[0,0]}}),li=si.extend({options:{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.openPopup(this),this},onAdd:function(t){si.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Yn||this._source.on("preclick",ft))},onRemove:function(t){si.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Yn||this._source.off("preclick",ft))},getEvents:function(){var t=si.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},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var t="leaflet-popup",e=this._container=q("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=q("div",t+"-content-wrapper",e);if(this._contentNode=q("div",t+"-content",n),gt(n),mt(this._contentNode),ct(n,"contextmenu",ft),this._tipContainer=q("div",t+"-tip-container",e),this._tip=q("div",t+"-tip",this._tipContainer),this.options.closeButton){var i=this._closeButton=q("a",t+"-close-button",e);i.href="#close",i.innerHTML="&#215;",ct(i,"click",this._onCloseButtonClick,this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),e.width=n+1+"px",e.whiteSpace="",e.height="";var i=t.offsetHeight,o=this.options.maxHeight,r="leaflet-popup-scrolled";o&&o<i?(e.height=o+"px",X(t,r)):Y(t,r),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();nt(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var t=this._map,e=parseInt(H(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,i=this._containerWidth,o=new b(this._containerLeft,-n-this._containerBottom);o._add(it(this._container));var r=t.layerPointToContainerPoint(o),a=x(this.options.autoPanPadding),s=x(this.options.autoPanPaddingTopLeft||a),l=x(this.options.autoPanPaddingBottomRight||a),u=t.getSize(),c=0,h=0;r.x+i+l.x>u.x&&(c=r.x+i-u.x+l.x),r.x-c-s.x<0&&(c=r.x-s.x),r.y+n+l.y>u.y&&(h=r.y+n-u.y+l.y),r.y-h-s.y<0&&(h=r.y-s.y),(c||h)&&t.fire("autopanstart").panBy([c,h])}},_onCloseButtonClick:function(t){this._close(),_t(t)},_getAnchor:function(){return x(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});xn.mergeOptions({closePopupOnClick:!0}),xn.include({openPopup:function(t,e,n){return t instanceof li||(t=new li(n).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),qn.include({bindPopup:function(t,e){return t instanceof li?(h(t,e),(this._popup=t)._source=this):(this._popup&&!e||(this._popup=new li(e,this)),this._popup.setContent(t)),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,e){return this._popup&&this._map&&(e=this._popup._prepareOpen(this,t,e),this._map.openPopup(this._popup,e)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e=t.layer||t.target;this._popup&&this._map&&(_t(t),e instanceof Yn?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===e?this.closePopup():this.openPopup(e,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var ui=si.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){si.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){si.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=si.prototype.getEvents.call(this);return qe&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=q("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e=this._map,n=this._container,i=e.latLngToContainerPoint(e.getCenter()),o=e.layerPointToContainerPoint(t),r=this.options.direction,a=n.offsetWidth,s=n.offsetHeight,l=x(this.options.offset),u=this._getAnchor();t="top"===r?t.add(x(-a/2+l.x,-s+l.y+u.y,!0)):"bottom"===r?t.subtract(x(a/2-l.x,-l.y,!0)):"center"===r?t.subtract(x(a/2+l.x,s/2-u.y+l.y,!0)):"right"===r||"auto"===r&&o.x<i.x?(r="right",t.add(x(l.x+u.x,u.y-s/2+l.y,!0))):(r="left",t.subtract(x(a+u.x-l.x,s/2-u.y-l.y,!0))),Y(n,"leaflet-tooltip-right"),Y(n,"leaflet-tooltip-left"),Y(n,"leaflet-tooltip-top"),Y(n,"leaflet-tooltip-bottom"),X(n,"leaflet-tooltip-"+r),nt(n,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&Q(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return x(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});xn.include({openTooltip:function(t,e,n){return t instanceof ui||(t=new ui(n).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:this.addLayer(t)},closeTooltip:function(t){return t&&this.removeLayer(t),this}}),qn.include({bindTooltip:function(t,e){return t instanceof ui?(h(t,e),(this._tooltip=t)._source=this):(this._tooltip&&!e||(this._tooltip=new ui(e,this)),this._tooltip.setContent(t)),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",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),qe&&(n.click=this._openTooltip)),this[e](n),this._tooltipHandlersAdded=!t}},openTooltip:function(t,e){return this._tooltip&&this._map&&(e=this._tooltip._prepareOpen(this,t,e),this._map.openTooltip(this._tooltip,e),this._tooltip.options.interactive&&this._tooltip._container&&(X(this._tooltip._container,"leaflet-clickable"),this.addInteractiveTarget(this._tooltip._container))),this},closeTooltip:function(){return this._tooltip&&(this._tooltip._close(),this._tooltip.options.interactive&&this._tooltip._container&&(Y(this._tooltip._container,"leaflet-clickable"),this.removeInteractiveTarget(this._tooltip._container))),this},toggleTooltip:function(t){return this._tooltip&&(this._tooltip._map?this.closeTooltip():this.openTooltip(t)),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){var e=t.layer||t.target;this._tooltip&&this._map&&this.openTooltip(e,this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,n,i=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),n=this._map.containerPointToLayerPoint(e),i=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(i)}});var ci=$n.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"),n=this.options;if(n.html instanceof Element?(V(e),e.appendChild(n.html)):e.innerHTML=!1!==n.html?n.html:"",n.bgPos){var i=x(n.bgPos);e.style.backgroundPosition=-i.x+"px "+-i.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});$n.Default=Un;var hi=qn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Be,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){h(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView(),this._update()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),W(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&($(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(U(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(){return this._map&&(this._removeAllTiles(),this._update()),this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=r(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof b?t:new b(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,n=this.getPane().children,i=-t(-1/0,1/0),o=0,r=n.length;o<r;o++)e=n[o].style.zIndex,n[o]!==this._container&&e&&(i=t(i,+e));isFinite(i)&&(this.options.zIndex=i+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!be){Q(this._container,this.options.opacity);var t=+new Date,e=!1,n=!1;for(var i in this._tiles){var o=this._tiles[i];if(o.current&&o.loaded){var r=Math.min(1,(t-o.loaded)/200);Q(o.el,r),r<1?e=!0:(o.active?n=!0:this._onOpaqueTile(o),o.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),e&&(_(this._fadeFrame),this._fadeFrame=v(this._updateOpacity,this))}},_onOpaqueTile:s,_initContainer:function(){this._container||(this._container=q("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 n in this._levels)this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):(W(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var i=this._levels[t],o=this._map;return i||((i=this._levels[t]={}).el=q("div","leaflet-tile-container leaflet-zoom-animated",this._container),i.el.style.zIndex=e,i.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),i.zoom=t,this._setZoomTransform(i,o.getCenter(),o.getZoom()),i.el.offsetWidth,this._onCreateLevel(i)),this._level=i}},_onUpdateLevel:s,_onRemoveLevel:s,_onCreateLevel:s,_pruneTiles:function(){if(this._map){var t,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<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 i=e.coords;this._retainParent(i.x,i.y,i.z,i.z-5)||this._retainChildren(i.x,i.y,i.z,i.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)W(this._levels[t].el),this._onRemoveLevel(t),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,n,i){var o=Math.floor(t/2),r=Math.floor(e/2),a=n-1,s=new b(+o,+r);s.z=+a;var l=this._tileCoordsToKey(s),u=this._tiles[l];return u&&u.active?u.retain=!0:(u&&u.loaded&&(u.retain=!0),i<a&&this._retainParent(o,r,a,i))},_retainChildren:function(t,e,n,i){for(var o=2*t;o<2*t+2;o++)for(var r=2*e;r<2*e+2;r++){var a=new b(o,r);a.z=n+1;var s=this._tileCoordsToKey(a),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1<i&&this._retainChildren(o,r,n+1,i))}},_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,n,i){var o=this._clampZoom(Math.round(e));(void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom)&&(o=void 0);var r=this.options.updateWhenZooming&&o!==this._tileZoom;i&&!r||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,e)},_setZoomTransform:function(t,e,n){var i=this._map.getZoomScale(n,t.zoom),o=t.origin.multiplyBy(i).subtract(this._map._getNewPixelOrigin(e,n)).round();je?et(t.el,o,i):nt(t.el,o)},_resetGrid:function(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),i=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],i).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],i).x/n.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],i).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],i).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,n=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),i=e.getZoomScale(n,this._tileZoom),o=e.project(t,this._tileZoom).floor(),r=e.getSize().divideBy(2*i);return new w(o.subtract(r),o.add(r))},_update:function(t){var e=this._map;if(e){var n=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var i=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(i),r=o.getCenter(),a=[],s=this.options.keepBuffer,l=new w(o.getBottomLeft().subtract([s,-s]),o.getTopRight().add([s,-s]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var u in this._tiles){var c=this._tiles[u].coords;c.z===this._tileZoom&&l.contains(new b(c.x,c.y))||(this._tiles[u].current=!1)}if(1<Math.abs(n-this._tileZoom))this._setView(t,n);else{for(var h=o.min.y;h<=o.max.y;h++)for(var d=o.min.x;d<=o.max.x;d++){var p=new b(d,h);if(p.z=this._tileZoom,this._isValidTile(p)){var f=this._tiles[this._tileCoordsToKey(p)];f?f.current=!0:a.push(p)}}if(a.sort(function(t,e){return t.distanceTo(r)-e.distanceTo(r)}),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(d=0;d<a.length;d++)this._addTile(a[d],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var i=this._tileCoordsToBounds(t)
;return P(this.options.bounds).overlaps(i)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),i=t.scaleBy(n),o=i.add(n);return[e.unproject(i,t.z),e.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new C(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new b(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(W(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){X(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=s,t.onmousemove=s,be&&this.options.opacity<1&&Q(t,this.options.opacity),Te&&!Ce&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,e){var n=this._getTilePos(t),o=this._tileCoordsToKey(t),r=this.createTile(this._wrapCoords(t),i(this._tileReady,this,t));this._initTile(r),this.createTile.length<2&&v(i(this._tileReady,this,t,null,r)),nt(r,n),this._tiles[o]={el:r,coords:t,current:!0},e.appendChild(r),this.fire("tileloadstart",{tile:r,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var o=this._tileCoordsToKey(t);(n=this._tiles[o])&&(n.loaded=+new Date,this._map._fadeAnimated?(Q(n.el,0),_(this._fadeFrame),this._fadeFrame=v(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(X(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),be||!this._map._fadeAnimated?v(this._pruneTiles,this):setTimeout(i(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new b(this._wrapX?a(t.x,this._wrapX):t.x,this._wrapY?a(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new w(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}}),di=hi.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,e){this._url=t,(e=h(this,e)).detectRetina&&$e&&0<e.maxZoom&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom++):(e.zoomOffset++,e.maxZoom--),e.minZoom=Math.max(0,e.minZoom)),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),Te||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 n=document.createElement("img");return ct(n,"load",i(this._tileOnLoad,this,e,n)),ct(n,"error",i(this._tileOnError,this,e,n)),!this.options.crossOrigin&&""!==this.options.crossOrigin||(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(t),n},getTileUrl:function(t){var n={r:$e?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;this.options.tms&&(n.y=i),n["-y"]=i}return p(this._url,e(n,this.options))},_tileOnLoad:function(t,e){be?setTimeout(i(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var i=this.options.errorTileUrl;i&&e.getAttribute("src")!==i&&(e.src=i),t(n,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)this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=s,e.onerror=s,e.complete||(e.src=Kt,W(e),delete this._tiles[t]))},_removeTile:function(t){var e=this._tiles[t];if(e)return Le||e.el.setAttribute("src",Kt),hi.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==Kt))return hi.prototype._tileReady.call(this,t,e,n)}}),pi=di.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,n){this._url=t;var i=e({},this.defaultWmsParams);for(var o in n)o in this.options||(i[o]=n[o]);var r=(n=h(this,n)).detectRetina&&$e?2:1,a=this.getTileSize();i.width=a.x*r,i.height=a.y*r,this.wmsParams=i},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=1.3<=this._wmsVersion?"crs":"srs";this.wmsParams[e]=this._crs.code,di.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,i=T(n.project(e[0]),n.project(e[1])),o=i.min,r=i.max,a=(1.3<=this._wmsVersion&&this._crs===Zn?[o.y,o.x,r.y,r.x]:[o.x,o.y,r.x,r.y]).join(","),s=di.prototype.getTileUrl.call(this,t);return s+d(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(t,n){return e(this.wmsParams,t),n||this.redraw(),this}});di.WMS=pi,qt.wms=function(t,e){return new pi(t,e)};var fi=qn.extend({options:{padding:.1,tolerance:0},initialize:function(t){h(this,t),o(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&X(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 n=this._map.getZoomScale(e,this._zoom),i=it(this._container),o=this._map.getSize().multiplyBy(.5+this.options.padding),r=this._map.project(this._center,e),a=this._map.project(t,e).subtract(r),s=o.multiplyBy(-n).add(i).add(o).subtract(a);je?et(this._container,s,n):nt(this._container,s)},_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(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new w(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),mi=fi.extend({getEvents:function(){var t=fi.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){fi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");ct(t,"mousemove",this._onMouseMove,this),ct(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),ct(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){_(this._redrawRequest),delete this._ctx,W(this._container),ht(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){fi.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),i=$e?2:1;nt(e,t.min),e.width=i*n.x,e.height=i*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",$e&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){fi.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t);var e=(this._layers[o(t)]=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,n=e.next,i=e.prev;n?n.prev=i:this._drawLast=i,i?i.next=n:this._drawFirst=n,delete t._order,delete this._layers[o(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,n,i=t.options.dashArray.split(/[, ]+/),o=[];for(n=0;n<i.length;n++){if(e=Number(i[n]),isNaN(e))return;o.push(e)}t.options._dashArray=o}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||v(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new w,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.clearRect(0,0,this._container.width,this._container.height)},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var n=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var i=this._drawFirst;i;i=i.next)t=i.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var n,i,o,r,a=t._parts,s=a.length,l=this._ctx;if(s){for(l.beginPath(),n=0;n<s;n++){for(i=0,o=a[n].length;i<o;i++)r=a[n][i],l[i?"lineTo":"moveTo"](r.x,r.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,n=this._ctx,i=Math.max(Math.round(t._radius),1),o=(Math.max(Math.round(t._radiusY),1)||i)/i;1!=o&&(n.save(),n.scale(1,o)),n.beginPath(),n.arc(e.x,e.y/o,i,0,2*Math.PI,!1),1!=o&&n.restore(),this._fillStroke(n,t)}},_fillStroke:function(t,e){var n=e.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var e,n,i=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)(e=o.layer).options.interactive&&e._containsPoint(i)&&!this._map._draggableMoved(e)&&(n=e);n&&(xt(t),this._fireEvent([n],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&&(Y(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var n,i,o=this._drawFirst;o;o=o.next)(n=o.layer).options.interactive&&n._containsPoint(e)&&(i=n);i!==this._hoveredLayer&&(this._handleMouseOut(t),i&&(X(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseover"),this._hoveredLayer=i)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(L.bind(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var n=e.next,i=e.prev;n&&((n.prev=i)?i.next=n:n&&(this._drawFirst=n),e.prev=this._drawLast,(this._drawLast.next=e).next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var n=e.next,i=e.prev;i&&((i.next=n)?n.prev=i:i&&(this._drawLast=i),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}}),gi=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">')}}}(),vi={_initContainer:function(){this._container=q("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(fi.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=gi("shape");X(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=gi("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[o(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;W(e),t.removeInteractiveTarget(e),delete this._layers[o(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,i=t.options,o=t._container;o.stroked=!!i.stroke,o.filled=!!i.fill,i.stroke?(e||(e=t._stroke=gi("stroke")),o.appendChild(e),e.weight=i.weight+"px",e.color=i.color,e.opacity=i.opacity,i.dashArray?e.dashStyle=Yt(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=i.lineCap.replace("butt","flat"),e.joinstyle=i.lineJoin):e&&(o.removeChild(e),t._stroke=null),i.fill?(n||(n=t._fill=gi("fill")),o.appendChild(n),n.color=i.fillColor||i.color,n.opacity=i.fillOpacity):n&&(o.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),i=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+i+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){$(t._container)},_bringToBack:function(t){U(t._container)}},_i=Ye?gi:M,yi=fi.extend({getEvents:function(){var t=fi.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=_i("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=_i("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){W(this._container),ht(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){fi.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),nt(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=_i("path");t.options.className&&X(e,t.options.className),t.options.interactive&&X(e,"leaflet-interactive"),this._updateStyle(t),this._layers[o(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){W(t._path),t.removeInteractiveTarget(t._path),delete this._layers[o(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,z(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),i="a"+n+","+(Math.max(Math.round(t._radiusY),1)||n)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+i+2*n+",0 "+i+2*-n+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){$(t._path)},_bringToBack:function(t){U(t._path)}});Ye&&yi.include(vi),xn.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&&Wt(t)||Vt(t)}});var bi=ti.extend({initialize:function(t,e){ti.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=P(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});yi.create=_i,yi.pointsToPath=z,ei.geometryToLayer=Nt,ei.coordsToLatLng=Ot,ei.coordsToLatLngs=jt,ei.latLngToCoords=Bt,ei.latLngsToCoords=Rt,ei.getFeature=Ft,ei.asFeature=Zt,xn.mergeOptions({boxZoom:!0});var xi=kn.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(){ct(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){ht(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){W(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(),he(),ot(),this._startPoint=this._map.mouseEventToContainerPoint(t),ct(document,{contextmenu:_t,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=q("div","leaflet-zoom-box",this._container),X(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new w(this._point,this._startPoint),n=e.getSize();nt(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(W(this._box),Y(this._container,"leaflet-crosshair")),de(),rt(),ht(document,{contextmenu:_t,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(i(this._resetState,this),0);var e=new C(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()}});xn.addInitHook("addHandler","boxZoom",xi),xn.mergeOptions({doubleClickZoom:!0});var wi=kn.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,n=e.getZoom(),i=e.options.zoomDelta,o=t.originalEvent.shiftKey?n-i:n+i;"center"===e.options.doubleClickZoom?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});xn.addInitHook("addHandler","doubleClickZoom",wi),xn.mergeOptions({dragging:!0,inertia:!Ce,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Ti=kn.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new Nn(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))}X(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Y(this._map._container,"leaflet-grab"),Y(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=P(this._map.options.maxBounds);this._offsetLimit=T(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,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;1<this._positions.length&&50<t-this._times[0];)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){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),n=this._initialWorldOffset,i=this._draggable._newPos.x,o=(i-e+n)%t+e-n,r=(i+e+n)%t-e-n,a=Math.abs(o+n)<Math.abs(r+n)?o:r;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=a},_onDragEnd:function(t){var e=this._map,n=e.options,i=!n.inertia||this._times.length<2;if(e.fire("dragend",t),i)e.fire("moveend");else{this._prunePositions(+new Date);var o=this._lastPos.subtract(this._positions[0]),r=(this._lastTime-this._times[0])/1e3,a=n.easeLinearity,s=o.multiplyBy(a/r),l=s.distanceTo([0,0]),u=Math.min(n.inertiaMaxSpeed,l),c=s.multiplyBy(u/l),h=u/(n.inertiaDeceleration*a),d=c.multiplyBy(-h/2).round();d.x||d.y?(d=e._limitOffset(d,e.options.maxBounds),v(function(){e.panBy(d,{duration:h,easeLinearity:a,noMoveStart:!0,animate:!0})})):e.fire("moveend")}}});xn.addInitHook("addHandler","dragging",Ti),xn.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Ci=kn.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"),ct(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(),ht(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,n=t.scrollTop||e.scrollTop,i=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(i,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,n,i=this._panKeys={},o=this.keyCodes;for(e=0,n=o.left.length;e<n;e++)i[o.left[e]]=[-1*t,0];for(e=0,n=o.right.length;e<n;e++)i[o.right[e]]=[t,0];for(e=0,n=o.down.length;e<n;e++)i[o.down[e]]=[0,t];for(e=0,n=o.up.length;e<n;e++)i[o.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,n,i=this._zoomKeys={},o=this.keyCodes;for(e=0,n=o.zoomIn.length;e<n;e++)i[o.zoomIn[e]]=t;for(e=0,n=o.zoomOut.length;e<n;e++)i[o.zoomOut[e]]=-t},_addHooks:function(){ct(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){ht(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,n=t.keyCode,i=this._map;if(n in this._panKeys)i._panAnim&&i._panAnim._inProgress||(e=this._panKeys[n],t.shiftKey&&(e=x(e).multiplyBy(3)),i.panBy(e),i.options.maxBounds&&i.panInsideBounds(i.options.maxBounds));else if(n in this._zoomKeys)i.setZoom(i.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!i._popup||!i._popup.options.closeOnEscapeKey)return;i.closePopup()}_t(t)}}});xn.addInitHook("addHandler","keyboard",Ci),xn.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Pi=kn.extend({addHooks:function(){ct(this._map._container,"mousewheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){ht(this._map._container,"mousewheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=bt(t),n=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var o=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(i(this._performZoom,this),o),_t(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var i=this._delta/(4*this._map.options.wheelPxPerZoomLevel),o=4*Math.log(2/(1+Math.exp(-Math.abs(i))))/Math.LN2,r=n?Math.ceil(o/n)*n:o,a=t._limitZoom(e+(0<this._delta?r:-r))-e;this._delta=0,this._startTime=null,a&&("center"===t.options.scrollWheelZoom?t.setZoom(e+a):t.setZoomAround(this._lastMousePos,e+a))}});xn.addInitHook("addHandler","scrollWheelZoom",Pi),xn.mergeOptions({tap:!0,tapTolerance:15});var Li=kn.extend({addHooks:function(){ct(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){ht(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(vt(t),this._fireClick=!0,1<t.touches.length)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],n=e.target;this._startPos=this._newPos=new b(e.clientX,e.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&X(n,"leaflet-active"),this._holdTimeout=setTimeout(i(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",e))},this),1e3),this._simulateEvent("mousedown",e),ct(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),ht(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],n=e.target;n&&n.tagName&&"a"===n.tagName.toLowerCase()&&Y(n,"leaflet-active"),this._simulateEvent("mouseup",e),this._isTapValid()&&this._simulateEvent("click",e)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new b(e.clientX,e.clientY),this._simulateEvent("mousemove",e)},_simulateEvent:function(t,e){var n=document.createEvent("MouseEvents");n._simulated=!0,e.target._simulatedClick=!0,n.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(n)}});qe&&!He&&xn.addInitHook("addHandler","tap",Li),xn.mergeOptions({touchZoom:qe&&!Ce,bounceAtZoomLimits:!0});var ki=kn.extend({addHooks:function(){X(this._map._container,"leaflet-touch-zoom"),ct(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Y(this._map._container,"leaflet-touch-zoom"),ht(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 n=e.mouseEventToContainerPoint(t.touches[0]),i=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(n.add(i)._divideBy(2))),this._startDist=n.distanceTo(i),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),ct(document,"touchmove",this._onTouchMove,this),ct(document,"touchend",this._onTouchEnd,this),vt(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]),r=n.distanceTo(o)/this._startDist;if(this._zoom=e.getScaleZoom(r,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&r<1||this._zoom>e.getMaxZoom()&&1<r)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1==r)return}else{var a=n._add(o)._divideBy(2)._subtract(this._centerPoint);if(1==r&&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),_(this._animRequest);var s=i(e._move,e,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=v(s,this,!0),vt(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,_(this._animRequest),ht(document,"touchmove",this._onTouchMove),ht(document,"touchend",this._onTouchEnd),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}});xn.addInitHook("addHandler","touchZoom",ki),xn.BoxZoom=xi,xn.DoubleClickZoom=wi,xn.Drag=Ti,xn.Keyboard=Ci,xn.ScrollWheelZoom=Pi,xn.Tap=Li,xn.TouchZoom=ki,Object.freeze=$t,t.version="1.6.0",t.Control=wn,t.control=Ct,t.Browser=Ke,t.Evented=ie,t.Mixin=An,t.Util=ee,t.Class=y,t.Handler=kn,t.extend=e,t.bind=i,t.stamp=o,t.setOptions=h,t.DomEvent=yn,t.DomUtil=mn,t.PosAnimation=bn,t.Draggable=Nn,t.LineUtil=Dn,t.PolyUtil=On,t.Point=b,t.point=x,t.Bounds=w,t.bounds=T,t.Transformation=E,t.transformation=A,t.Projection=Rn,t.LatLng=k,t.latLng=S,t.LatLngBounds=C,t.latLngBounds=P,t.CRS=ae,t.GeoJSON=ei,t.geoJSON=Ht,t.geoJson=ii,t.Layer=qn,t.LayerGroup=Wn,t.layerGroup=function(t,e){return new Wn(t,e)},t.FeatureGroup=Vn,t.featureGroup=function(t){return new Vn(t)},t.ImageOverlay=oi,t.imageOverlay=function(t,e,n){return new oi(t,e,n)},t.VideoOverlay=ri,t.videoOverlay=function(t,e,n){return new ri(t,e,n)},t.SVGOverlay=ai,t.svgOverlay=function(t,e,n){return new ai(t,e,n)},t.DivOverlay=si,t.Popup=li,t.popup=function(t,e){return new li(t,e)},t.Tooltip=ui,t.tooltip=function(t,e){return new ui(t,e)},t.Icon=$n,t.icon=function(t){return new $n(t)},t.DivIcon=ci,t.divIcon=function(t){return new ci(t)},t.Marker=Xn,t.marker=function(t,e){
return new Xn(t,e)},t.TileLayer=di,t.tileLayer=qt,t.GridLayer=hi,t.gridLayer=function(t){return new hi(t)},t.SVG=yi,t.svg=Vt,t.Renderer=fi,t.Canvas=mi,t.canvas=Wt,t.Path=Yn,t.CircleMarker=Kn,t.circleMarker=function(t,e){return new Kn(t,e)},t.Circle=Jn,t.circle=function(t,e,n){return new Jn(t,e,n)},t.Polyline=Qn,t.polyline=function(t,e){return new Qn(t,e)},t.Polygon=ti,t.polygon=function(t,e){return new ti(t,e)},t.Rectangle=bi,t.rectangle=function(t,e){return new bi(t,e)},t.Map=xn,t.map=function(t,e){return new xn(t,e)};var Si=window.L;t.noConflict=function(){return window.L=Si,this},window.L=t}),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):t.lightbox=e(t.jQuery)}(this,function(t){function e(e){this.album=[],this.currentImageIndex=void 0,this.init(),this.options=t.extend({},this.constructor.defaults),this.option(e)}return e.defaults={albumLabel:"Zdjęcie %1 z %2",alwaysShowNavOnTouchDevices:!1,fadeDuration:600,fitImagesInViewport:!0,imageFadeDuration:600,positionFromTop:50,resizeDuration:700,showImageNumberLabel:!0,wrapAround:!1,disableScrolling:!1,sanitizeTitle:!1},e.prototype.option=function(e){t.extend(this.options,e)},e.prototype.imageCountLabel=function(t,e){return this.options.albumLabel.replace(/%1/g,t).replace(/%2/g,e)},e.prototype.init=function(){var e=this;t(document).ready(function(){e.enable(),e.build()})},e.prototype.enable=function(){var e=this;t("body").on("click","a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]",function(n){return e.start(t(n.currentTarget)),!1})},e.prototype.build=function(){if(!(t("#lightbox").length>0)){var e=this;t('<div id="lightboxOverlay" tabindex="-1" class="lightboxOverlay"></div><div id="lightbox" tabindex="-1" class="lightbox"><div class="lb-outerContainer"><div class="lb-container"><img class="lb-image" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" alt=""/><div class="lb-nav"><a class="lb-prev" aria-label="Previous image" href="" ></a><a class="lb-next" aria-label="Next image" href="" ></a></div><div class="lb-loader"><a class="lb-cancel"></a></div></div></div><div class="lb-dataContainer"><div class="lb-data"><div class="lb-details"><span class="lb-caption"></span><span class="lb-number"></span></div><div class="lb-closeContainer"><a class="lb-close"></a></div></div></div></div>').appendTo(t("body")),this.$lightbox=t("#lightbox"),this.$overlay=t("#lightboxOverlay"),this.$outerContainer=this.$lightbox.find(".lb-outerContainer"),this.$container=this.$lightbox.find(".lb-container"),this.$image=this.$lightbox.find(".lb-image"),this.$nav=this.$lightbox.find(".lb-nav"),this.containerPadding={top:parseInt(this.$container.css("padding-top"),10),right:parseInt(this.$container.css("padding-right"),10),bottom:parseInt(this.$container.css("padding-bottom"),10),left:parseInt(this.$container.css("padding-left"),10)},this.imageBorderWidth={top:parseInt(this.$image.css("border-top-width"),10),right:parseInt(this.$image.css("border-right-width"),10),bottom:parseInt(this.$image.css("border-bottom-width"),10),left:parseInt(this.$image.css("border-left-width"),10)},this.$overlay.hide().on("click",function(){return e.end(),!1}),this.$lightbox.hide().on("click",function(n){"lightbox"===t(n.target).attr("id")&&e.end()}),this.$outerContainer.on("click",function(n){return"lightbox"===t(n.target).attr("id")&&e.end(),!1}),this.$lightbox.find(".lb-prev").on("click",function(){return 0===e.currentImageIndex?e.changeImage(e.album.length-1):e.changeImage(e.currentImageIndex-1),!1}),this.$lightbox.find(".lb-next").on("click",function(){return e.currentImageIndex===e.album.length-1?e.changeImage(0):e.changeImage(e.currentImageIndex+1),!1}),this.$nav.on("mousedown",function(t){3===t.which&&(e.$nav.css("pointer-events","none"),e.$lightbox.one("contextmenu",function(){setTimeout(function(){this.$nav.css("pointer-events","auto")}.bind(e),0)}))}),this.$lightbox.find(".lb-loader, .lb-close").on("click",function(){return e.end(),!1})}},e.prototype.start=function(e){function n(t){i.album.push({alt:t.attr("data-alt"),link:t.attr("href"),title:t.attr("data-title")||t.attr("title")})}var i=this,o=t(window);o.on("resize",t.proxy(this.sizeOverlay,this)),this.sizeOverlay(),this.album=[];var r,a=0,s=e.attr("data-lightbox");if(s){r=t(e.prop("tagName")+'[data-lightbox="'+s+'"]');for(var l=0;l<r.length;l=++l)n(t(r[l])),r[l]===e[0]&&(a=l)}else if("lightbox"===e.attr("rel"))n(e);else{r=t(e.prop("tagName")+'[rel="'+e.attr("rel")+'"]');for(var u=0;u<r.length;u=++u)n(t(r[u])),r[u]===e[0]&&(a=u)}var c=o.scrollTop()+this.options.positionFromTop,h=o.scrollLeft();this.$lightbox.css({top:c+"px",left:h+"px"}).fadeIn(this.options.fadeDuration),this.options.disableScrolling&&t("body").addClass("lb-disable-scrolling"),this.changeImage(a)},e.prototype.changeImage=function(e){var n=this,i=this.album[e].link,o=i.split(".").slice(-1)[0],r=this.$lightbox.find(".lb-image");this.disableKeyboardNav(),this.$overlay.fadeIn(this.options.fadeDuration),t(".lb-loader").fadeIn("slow"),this.$lightbox.find(".lb-image, .lb-nav, .lb-prev, .lb-next, .lb-dataContainer, .lb-numbers, .lb-caption").hide(),this.$outerContainer.addClass("animating");var a=new Image;a.onload=function(){var s,l,u,c,h,d;r.attr({alt:n.album[e].alt,src:i}),t(a),r.width(a.width),r.height(a.height),d=t(window).width(),h=t(window).height(),c=d-n.containerPadding.left-n.containerPadding.right-n.imageBorderWidth.left-n.imageBorderWidth.right-20,u=h-n.containerPadding.top-n.containerPadding.bottom-n.imageBorderWidth.top-n.imageBorderWidth.bottom-n.options.positionFromTop-70,"svg"===o&&(r.width(c),r.height(u)),n.options.fitImagesInViewport?(n.options.maxWidth&&n.options.maxWidth<c&&(c=n.options.maxWidth),n.options.maxHeight&&n.options.maxHeight<u&&(u=n.options.maxHeight)):(c=n.options.maxWidth||a.width||c,u=n.options.maxHeight||a.height||u),(a.width>c||a.height>u)&&(a.width/c>a.height/u?(l=c,s=parseInt(a.height/(a.width/l),10),r.width(l),r.height(s)):(s=u,l=parseInt(a.width/(a.height/s),10),r.width(l),r.height(s))),n.sizeContainer(r.width(),r.height())},a.src=this.album[e].link,this.currentImageIndex=e},e.prototype.sizeOverlay=function(){var e=this;setTimeout(function(){e.$overlay.width(t(document).width()).height(t(document).height())},0)},e.prototype.sizeContainer=function(t,e){function n(){i.$lightbox.find(".lb-dataContainer").width(a),i.$lightbox.find(".lb-prevLink").height(s),i.$lightbox.find(".lb-nextLink").height(s),i.$overlay.focus(),i.showImage()}var i=this,o=this.$outerContainer.outerWidth(),r=this.$outerContainer.outerHeight(),a=t+this.containerPadding.left+this.containerPadding.right+this.imageBorderWidth.left+this.imageBorderWidth.right,s=e+this.containerPadding.top+this.containerPadding.bottom+this.imageBorderWidth.top+this.imageBorderWidth.bottom;o!==a||r!==s?this.$outerContainer.animate({width:a,height:s},this.options.resizeDuration,"swing",function(){n()}):n()},e.prototype.showImage=function(){this.$lightbox.find(".lb-loader").stop(!0).hide(),this.$lightbox.find(".lb-image").fadeIn(this.options.imageFadeDuration),this.updateNav(),this.updateDetails(),this.preloadNeighboringImages(),this.enableKeyboardNav()},e.prototype.updateNav=function(){var t=!1;try{document.createEvent("TouchEvent"),t=!!this.options.alwaysShowNavOnTouchDevices}catch(t){}this.$lightbox.find(".lb-nav").show(),this.album.length>1&&(this.options.wrapAround?(t&&this.$lightbox.find(".lb-prev, .lb-next").css("opacity","1"),this.$lightbox.find(".lb-prev, .lb-next").show()):(this.currentImageIndex>0&&(this.$lightbox.find(".lb-prev").show(),t&&this.$lightbox.find(".lb-prev").css("opacity","1")),this.currentImageIndex<this.album.length-1&&(this.$lightbox.find(".lb-next").show(),t&&this.$lightbox.find(".lb-next").css("opacity","1"))))},e.prototype.updateDetails=function(){var t=this;if(void 0!==this.album[this.currentImageIndex].title&&""!==this.album[this.currentImageIndex].title){var e=this.$lightbox.find(".lb-caption");this.options.sanitizeTitle?e.text(this.album[this.currentImageIndex].title):e.html(this.album[this.currentImageIndex].title),e.fadeIn("fast")}if(this.album.length>1&&this.options.showImageNumberLabel){var n=this.imageCountLabel(this.currentImageIndex+1,this.album.length);this.$lightbox.find(".lb-number").text(n).fadeIn("fast")}else this.$lightbox.find(".lb-number").hide();this.$outerContainer.removeClass("animating"),this.$lightbox.find(".lb-dataContainer").fadeIn(this.options.resizeDuration,function(){return t.sizeOverlay()})},e.prototype.preloadNeighboringImages=function(){if(this.album.length>this.currentImageIndex+1){(new Image).src=this.album[this.currentImageIndex+1].link}if(this.currentImageIndex>0){(new Image).src=this.album[this.currentImageIndex-1].link}},e.prototype.enableKeyboardNav=function(){this.$lightbox.on("keyup.keyboard",t.proxy(this.keyboardAction,this)),this.$overlay.on("keyup.keyboard",t.proxy(this.keyboardAction,this))},e.prototype.disableKeyboardNav=function(){this.$lightbox.off(".keyboard"),this.$overlay.off(".keyboard")},e.prototype.keyboardAction=function(t){var e=t.keyCode;27===e?(t.stopPropagation(),this.end()):37===e?0!==this.currentImageIndex?this.changeImage(this.currentImageIndex-1):this.options.wrapAround&&this.album.length>1&&this.changeImage(this.album.length-1):39===e&&(this.currentImageIndex!==this.album.length-1?this.changeImage(this.currentImageIndex+1):this.options.wrapAround&&this.album.length>1&&this.changeImage(0))},e.prototype.end=function(){this.disableKeyboardNav(),t(window).off("resize",this.sizeOverlay),this.$lightbox.fadeOut(this.options.fadeDuration),this.$overlay.fadeOut(this.options.fadeDuration),this.options.disableScrolling&&t("body").removeClass("lb-disable-scrolling")},new e}),function(t,e,n,i){"use strict";e=void 0!==e&&e.Math==Math?e:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),t.fn.modal=function(o){var r,a=t(this),s=t(e),l=t(n),u=t("body"),c=a.selector||"",h=(new Date).getTime(),d=[],p=arguments[0],f="string"==typeof p,m=[].slice.call(arguments,1),g=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||e.msRequestAnimationFrame||function(t){setTimeout(t,0)};return a.each(function(){var a,v,_,y,b,x,w,T,C,P=t.isPlainObject(o)?t.extend(!0,{},t.fn.modal.settings,o):t.extend({},t.fn.modal.settings),L=P.selector,k=P.className,S=P.namespace,E=P.error,A="."+S,M="module-"+S,z=t(this),I=t(P.context),N=z.find(L.close),D=this,O=z.data(M);C={initialize:function(){C.verbose("Initializing dimmer",I),C.create.id(),C.create.dimmer(),C.refreshModals(),C.bind.events(),P.observeChanges&&C.observeChanges(),C.instantiate()},instantiate:function(){C.verbose("Storing instance of modal"),O=C,z.data(M,O)},create:{dimmer:function(){var e={debug:P.debug,dimmerName:"modals",duration:{show:P.duration,hide:P.duration}},n=t.extend(!0,e,P.dimmerSettings);return P.inverted&&(n.variation=n.variation!==i?n.variation+" inverted":"inverted"),t.fn.dimmer===i?void C.error(E.dimmer):(C.debug("Creating dimmer with settings",n),y=I.dimmer(n),P.detachable?(C.verbose("Modal is detachable, moving content into dimmer"),y.dimmer("add content",z)):C.set.undetached(),P.blurring&&y.addClass(k.blurring),void(b=y.dimmer("get dimmer")))},id:function(){w=(Math.random().toString(16)+"000000000").substr(2,8),x="."+w,C.verbose("Creating unique id for element",w)}},destroy:function(){C.verbose("Destroying previous modal"),z.removeData(M).off(A),s.off(x),b.off(x),N.off(A),I.dimmer("destroy")},observeChanges:function(){"MutationObserver"in e&&(T=new MutationObserver(function(t){C.debug("DOM tree modified, refreshing"),C.refresh()}),T.observe(D,{childList:!0,subtree:!0}),C.debug("Setting up mutation observer",T))},refresh:function(){C.remove.scrolling(),C.cacheSizes(),C.set.screenHeight(),C.set.type(),C.set.position()},refreshModals:function(){v=z.siblings(L.modal),a=v.add(z)},attachEvents:function(e,n){var i=t(e);n=t.isFunction(C[n])?C[n]:C.toggle,i.length>0?(C.debug("Attaching modal events to element",e,n),i.off(A).on("click"+A,n)):C.error(E.notFound,e)},bind:{events:function(){C.verbose("Attaching events"),z.on("click"+A,L.close,C.event.close).on("click"+A,L.approve,C.event.approve).on("click"+A,L.deny,C.event.deny),s.on("resize"+x,C.event.resize)}},get:{id:function(){return(Math.random().toString(16)+"000000000").substr(2,8)}},event:{approve:function(){return!1===P.onApprove.call(D,t(this))?void C.verbose("Approve callback returned false cancelling hide"):void C.hide()},deny:function(){return!1===P.onDeny.call(D,t(this))?void C.verbose("Deny callback returned false cancelling hide"):void C.hide()},close:function(){C.hide()},click:function(e){var i=t(e.target),o=i.closest(L.modal).length>0,r=t.contains(n.documentElement,e.target);!o&&r&&(C.debug("Dimmer clicked, hiding all modals"),C.is.active()&&(C.remove.clickaway(),P.allowMultiple?C.hide():C.hideAll()))},debounce:function(t,e){clearTimeout(C.timer),C.timer=setTimeout(t,e)},keyboard:function(t){27==t.which&&(P.closable?(C.debug("Escape key pressed hiding modal"),C.hide()):C.debug("Escape key pressed, but closable is set to false"),t.preventDefault())},resize:function(){y.dimmer("is active")&&g(C.refresh)}},toggle:function(){C.is.active()||C.is.animating()?C.hide():C.show()},show:function(e){e=t.isFunction(e)?e:function(){},C.refreshModals(),C.showModal(e)},hide:function(e){e=t.isFunction(e)?e:function(){},C.refreshModals(),C.hideModal(e)},showModal:function(e){e=t.isFunction(e)?e:function(){},C.is.animating()||!C.is.active()?(C.showDimmer(),C.cacheSizes(),C.set.position(),C.set.screenHeight(),C.set.type(),C.set.clickaway(),!P.allowMultiple&&C.others.active()?C.hideOthers(C.showModal):(P.onShow.call(D),P.transition&&t.fn.transition!==i&&z.transition("is supported")?(C.debug("Showing modal with css animations"),z.transition({debug:P.debug,animation:P.transition+" in",queue:P.queue,duration:P.duration,useFailSafe:!0,onComplete:function(){P.onVisible.apply(D),P.keyboardShortcuts&&C.add.keyboardShortcuts(),C.save.focus(),C.set.active(),P.autofocus&&C.set.autofocus(),e()}})):C.error(E.noTransition))):C.debug("Modal is already visible")},hideModal:function(e,n){return e=t.isFunction(e)?e:function(){},C.debug("Hiding modal"),!1===P.onHide.call(D,t(this))?void C.verbose("Hide callback returned false cancelling hide"):void((C.is.animating()||C.is.active())&&(P.transition&&t.fn.transition!==i&&z.transition("is supported")?(C.remove.active(),z.transition({debug:P.debug,animation:P.transition+" out",queue:P.queue,duration:P.duration,useFailSafe:!0,onStart:function(){C.others.active()||n||C.hideDimmer(),P.keyboardShortcuts&&C.remove.keyboardShortcuts()},onComplete:function(){P.onHidden.call(D),C.restore.focus(),e()}})):C.error(E.noTransition)))},showDimmer:function(){y.dimmer("is animating")||!y.dimmer("is active")?(C.debug("Showing dimmer"),y.dimmer("show")):C.debug("Dimmer already visible")},hideDimmer:function(){return y.dimmer("is animating")||y.dimmer("is active")?void y.dimmer("hide",function(){C.remove.clickaway(),C.remove.screenHeight()}):void C.debug("Dimmer is not visible cannot hide")},hideAll:function(e){var n=a.filter("."+k.active+", ."+k.animating);e=t.isFunction(e)?e:function(){},n.length>0&&(C.debug("Hiding all visible modals"),C.hideDimmer(),n.modal("hide modal",e))},hideOthers:function(e){var n=v.filter("."+k.active+", ."+k.animating);e=t.isFunction(e)?e:function(){},n.length>0&&(C.debug("Hiding other modals",v),n.modal("hide modal",e,!0))},others:{active:function(){return v.filter("."+k.active).length>0},animating:function(){return v.filter("."+k.animating).length>0}},add:{keyboardShortcuts:function(){C.verbose("Adding keyboard shortcuts"),l.on("keyup"+A,C.event.keyboard)}},save:{focus:function(){_=t(n.activeElement).blur()}},restore:{focus:function(){_&&_.length>0&&_.focus()}},remove:{active:function(){z.removeClass(k.active)},clickaway:function(){P.closable&&b.off("click"+x)},bodyStyle:function(){""===u.attr("style")&&(C.verbose("Removing style attribute"),u.removeAttr("style"))},screenHeight:function(){C.debug("Removing page height"),u.css("height","")},keyboardShortcuts:function(){C.verbose("Removing keyboard shortcuts"),l.off("keyup"+A)},scrolling:function(){y.removeClass(k.scrolling),z.removeClass(k.scrolling)}},cacheSizes:function(){var o=z.outerHeight();C.cache!==i&&0===o||(C.cache={pageHeight:t(n).outerHeight(),height:o+P.offset,contextHeight:"body"==P.context?t(e).height():y.height()}),C.debug("Caching modal and container sizes",C.cache)},can:{fit:function(){return C.cache.height+2*P.padding<C.cache.contextHeight}},is:{active:function(){return z.hasClass(k.active)},animating:function(){return z.transition("is supported")?z.transition("is animating"):z.is(":visible")},scrolling:function(){return y.hasClass(k.scrolling)},modernBrowser:function(){return!(e.ActiveXObject||"ActiveXObject"in e)}},set:{autofocus:function(){var t=z.find("[tabindex], :input").filter(":visible"),e=t.filter("[autofocus]"),n=e.length>0?e.first():t.first();n.length>0&&n.focus()},clickaway:function(){P.closable&&b.on("click"+x,C.event.click)},screenHeight:function(){C.can.fit()?u.css("height",""):(C.debug("Modal is taller than page content, resizing page height"),u.css("height",C.cache.height+2*P.padding))},active:function(){z.addClass(k.active)},scrolling:function(){y.addClass(k.scrolling),z.addClass(k.scrolling)},type:function(){C.can.fit()?(C.verbose("Modal fits on screen"),C.others.active()||C.others.animating()||C.remove.scrolling()):(C.verbose("Modal cannot fit on screen setting to scrolling"),C.set.scrolling())},position:function(){C.verbose("Centering modal on page",C.cache),C.can.fit()?z.css({top:"",marginTop:-C.cache.height/2}):z.css({marginTop:"",top:l.scrollTop()})},undetached:function(){y.addClass(k.undetached)}},setting:function(e,n){if(C.debug("Changing setting",e,n),t.isPlainObject(e))t.extend(!0,P,e);else{if(n===i)return P[e];t.isPlainObject(P[e])?t.extend(!0,P[e],n):P[e]=n}},internal:function(e,n){if(t.isPlainObject(e))t.extend(!0,C,e);else{if(n===i)return C[e];C[e]=n}},debug:function(){!P.silent&&P.debug&&(P.performance?C.performance.log(arguments):(C.debug=Function.prototype.bind.call(console.info,console,P.name+":"),C.debug.apply(console,arguments)))},verbose:function(){!P.silent&&P.verbose&&P.debug&&(P.performance?C.performance.log(arguments):(C.verbose=Function.prototype.bind.call(console.info,console,P.name+":"),C.verbose.apply(console,arguments)))},error:function(){P.silent||(C.error=Function.prototype.bind.call(console.error,console,P.name+":"),C.error.apply(console,arguments))},performance:{log:function(t){var e,n,i;P.performance&&(e=(new Date).getTime(),i=h||e,n=e-i,h=e,d.push({Name:t[0],Arguments:[].slice.call(t,1)||"",Element:D,"Execution Time":n})),clearTimeout(C.performance.timer),C.performance.timer=setTimeout(C.performance.display,500)},display:function(){var e=P.name+":",n=0;h=!1,clearTimeout(C.performance.timer),t.each(d,function(t,e){n+=e["Execution Time"]}),e+=" "+n+"ms",c&&(e+=" '"+c+"'"),(console.group!==i||console.table!==i)&&d.length>0&&(console.groupCollapsed(e),console.table?console.table(d):t.each(d,function(t,e){console.log(e.Name+": "+e["Execution Time"]+"ms")}),console.groupEnd()),d=[]}},invoke:function(e,n,o){var a,s,l,u=O;return n=n||m,o=D||o,"string"==typeof e&&u!==i&&(e=e.split(/[\. ]/),a=e.length-1,t.each(e,function(n,o){var r=n!=a?o+e[n+1].charAt(0).toUpperCase()+e[n+1].slice(1):e;if(t.isPlainObject(u[r])&&n!=a)u=u[r];else{if(u[r]!==i)return s=u[r],!1;if(!t.isPlainObject(u[o])||n==a)return u[o]!==i&&(s=u[o],!1);u=u[o]}})),t.isFunction(s)?l=s.apply(o,n):s!==i&&(l=s),t.isArray(r)?r.push(l):r!==i?r=[r,l]:l!==i&&(r=l),s}},f?(O===i&&C.initialize(),C.invoke(p)):(O!==i&&O.invoke("destroy"),C.initialize())}),r!==i?r:this},t.fn.modal.settings={name:"Modal",namespace:"modal",silent:!1,debug:!1,verbose:!1,performance:!0,observeChanges:!1,allowMultiple:!1,detachable:!0,closable:!0,autofocus:!0,inverted:!1,blurring:!1,dimmerSettings:{closable:!1,useCSS:!0},keyboardShortcuts:!0,context:"body",queue:!1,duration:500,offset:0,transition:"scale",padding:50,onShow:function(){},onVisible:function(){},onHide:function(){return!0},onHidden:function(){},onApprove:function(){return!0},onDeny:function(){return!0},selector:{close:"> .close",approve:".actions .positive, .actions .approve, .actions .ok",deny:".actions .negative, .actions .deny, .actions .cancel",modal:".ui.modal"},error:{dimmer:"UI Dimmer, a required component is not included in this page",method:"The method you called is not defined.",notFound:"The element you specified could not be found"},className:{active:"active",animating:"animating",blurring:"blurring",scrolling:"scrolling",undetached:"undetached"}}}(jQuery,window,document),function(t,e,n,i){"use strict";e=void 0!==e&&e.Math==Math?e:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),void 0!==e&&e.Math==Math||("undefined"!=typeof self&&self.Math==Math?self:Function("return this")()),t.fn.progress=function(e){var i,o=t(this),r=o.selector||"",a=(new Date).getTime(),s=[],l=arguments[0],u="string"==typeof l,c=[].slice.call(arguments,1);return o.each(function(){var o,h,d=t.isPlainObject(e)?t.extend(!0,{},t.fn.progress.settings,e):t.extend({},t.fn.progress.settings),p=d.className,f=d.metadata,m=d.namespace,g=d.selector,v=d.error,_="."+m,y="module-"+m,b=t(this),x=t(this).find(g.bar),w=t(this).find(g.progress),T=t(this).find(g.label),C=this,P=b.data(y),L=!1;h={initialize:function(){h.debug("Initializing progress bar",d),h.set.duration(),h.set.transitionEvent(),h.read.metadata(),h.read.settings(),h.instantiate()},instantiate:function(){h.verbose("Storing instance of progress",h),P=h,b.data(y,h)},destroy:function(){h.verbose("Destroying previous progress for",b),clearInterval(P.interval),h.remove.state(),b.removeData(y),P=void 0},reset:function(){h.remove.nextValue(),h.update.progress(0)},complete:function(){(void 0===h.percent||h.percent<100)&&(h.remove.progressPoll(),h.set.percent(100))},read:{metadata:function(){var t={percent:b.data(f.percent),total:b.data(f.total),value:b.data(f.value)};t.percent&&(h.debug("Current percent value set from metadata",t.percent),h.set.percent(t.percent)),t.total&&(h.debug("Total value set from metadata",t.total),h.set.total(t.total)),t.value&&(h.debug("Current value set from metadata",t.value),h.set.value(t.value),h.set.progress(t.value))},settings:function(){!1!==d.total&&(h.debug("Current total set in settings",d.total),h.set.total(d.total)),!1!==d.value&&(h.debug("Current value set in settings",d.value),h.set.value(d.value),h.set.progress(h.value)),!1!==d.percent&&(h.debug("Current percent set in settings",d.percent),h.set.percent(d.percent))}},bind:{transitionEnd:function(t){var e=h.get.transitionEnd();x.one(e+_,function(e){clearTimeout(h.failSafeTimer),t.call(this,e)}),h.failSafeTimer=setTimeout(function(){x.triggerHandler(e)},d.duration+d.failSafeDelay),h.verbose("Adding fail safe timer",h.timer)}},increment:function(t){var e,n;h.has.total()?(e=h.get.value(),t=t||1,n=e+t):(e=h.get.percent(),t=t||h.get.randomValue(),n=e+t,h.debug("Incrementing percentage by",e,n)),n=h.get.normalizedValue(n),h.set.progress(n)},decrement:function(t){var e,n;h.get.total()?(e=h.get.value(),t=t||1,n=e-t,h.debug("Decrementing value by",t,e)):(e=h.get.percent(),t=t||h.get.randomValue(),n=e-t,h.debug("Decrementing percentage by",t,e)),n=h.get.normalizedValue(n),h.set.progress(n)},has:{progressPoll:function(){return h.progressPoll},total:function(){return!1!==h.get.total()}},get:{text:function(t){var e=h.value||0,n=h.total||0,i=L?h.get.displayPercent():h.percent||0,o=h.total>0?n-e:100-i;return t=t||"",t=t.replace("{value}",e).replace("{total}",n).replace("{left}",o).replace("{percent}",i),h.verbose("Adding variables to progress bar text",t),t},normalizedValue:function(t){if(t<0)return h.debug("Value cannot decrement below 0"),0;if(h.has.total()){if(t>h.total)return h.debug("Value cannot increment above total",h.total),h.total}else if(t>100)return h.debug("Value cannot increment above 100 percent"),100;return t},updateInterval:function(){return"auto"==d.updateInterval?d.duration:d.updateInterval},randomValue:function(){return h.debug("Generating random increment percentage"),Math.floor(Math.random()*d.random.max+d.random.min)},numericValue:function(t){return"string"==typeof t?""!==t.replace(/[^\d.]/g,"")&&+t.replace(/[^\d.]/g,""):t},transitionEnd:function(){var t,e=n.createElement("element"),i={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in i)if(void 0!==e.style[t])return i[t]},displayPercent:function(){var t=x.width(),e=b.width(),n=parseInt(x.css("min-width"),10),i=t>n?t/e*100:h.percent;return d.precision>0?Math.round(i*(10*d.precision))/(10*d.precision):Math.round(i)},percent:function(){return h.percent||0},value:function(){return h.nextValue||h.value||0},total:function(){return h.total||!1}},create:{progressPoll:function(){h.progressPoll=setTimeout(function(){h.update.toNextValue(),h.remove.progressPoll()},h.get.updateInterval())}},is:{complete:function(){return h.is.success()||h.is.warning()||h.is.error()},success:function(){return b.hasClass(p.success)},warning:function(){return b.hasClass(p.warning)},error:function(){return b.hasClass(p.error)},active:function(){return b.hasClass(p.active)},visible:function(){return b.is(":visible")}},remove:{progressPoll:function(){h.verbose("Removing progress poll timer"),h.progressPoll&&(clearTimeout(h.progressPoll),delete h.progressPoll)},nextValue:function(){h.verbose("Removing progress value stored for next update"),delete h.nextValue},state:function(){h.verbose("Removing stored state"),delete h.total,delete h.percent,delete h.value},active:function(){h.verbose("Removing active state"),b.removeClass(p.active)},success:function(){h.verbose("Removing success state"),b.removeClass(p.success)},warning:function(){h.verbose("Removing warning state"),b.removeClass(p.warning)},error:function(){h.verbose("Removing error state"),b.removeClass(p.error)}},set:{barWidth:function(t){t>100?h.error(v.tooHigh,t):t<0?h.error(v.tooLow,t):(x.css("width",t+"%"),b.attr("data-percent",parseInt(t,10)))},duration:function(t){t=t||d.duration,t="number"==typeof t?t+"ms":t,h.verbose("Setting progress bar transition duration",t),x.css({"transition-duration":t})},percent:function(t){t="string"==typeof t?+t.replace("%",""):t,t=d.precision>0?Math.round(t*(10*d.precision))/(10*d.precision):Math.round(t),h.percent=t,h.has.total()||(h.value=d.precision>0?Math.round(t/100*h.total*(10*d.precision))/(10*d.precision):Math.round(t/100*h.total*10)/10,d.limitValues&&(h.value=h.value>100?100:h.value<0?0:h.value)),h.set.barWidth(t),h.set.labelInterval(),h.set.labels(),d.onChange.call(C,t,h.value,h.total)},labelInterval:function(){var e=function(){h.verbose("Bar finished animating, removing continuous label updates"),clearInterval(h.interval),L=!1,h.set.labels()};clearInterval(h.interval),h.bind.transitionEnd(e),L=!0,h.interval=setInterval(function(){t.contains(n.documentElement,C)||(clearInterval(h.interval),L=!1),h.set.labels()},d.framerate)},labels:function(){h.verbose("Setting both bar progress and outer label text"),h.set.barLabel(),h.set.state()},label:function(t){(t=t||"")&&(t=h.get.text(t),h.verbose("Setting label to text",t),T.text(t))},state:function(t){t=void 0!==t?t:h.percent,100===t?d.autoSuccess&&!(h.is.warning()||h.is.error()||h.is.success())?(h.set.success(),h.debug("Automatically triggering success at 100%")):(h.verbose("Reached 100% removing active state"),h.remove.active(),h.remove.progressPoll()):t>0?(h.verbose("Adjusting active progress bar label",t),h.set.active()):(h.remove.active(),h.set.label(d.text.active))},barLabel:function(t){void 0!==t?w.text(h.get.text(t)):"ratio"==d.label&&h.total?(h.verbose("Adding ratio to bar label"),w.text(h.get.text(d.text.ratio))):"percent"==d.label&&(h.verbose("Adding percentage to bar label"),w.text(h.get.text(d.text.percent)))},active:function(t){t=t||d.text.active,h.debug("Setting active state"),d.showActivity&&!h.is.active()&&b.addClass(p.active),h.remove.warning(),h.remove.error(),h.remove.success(),t=d.onLabelUpdate("active",t,h.value,h.total),t&&h.set.label(t),h.bind.transitionEnd(function(){d.onActive.call(C,h.value,h.total)})},success:function(t){t=t||d.text.success||d.text.active,h.debug("Setting success state"),b.addClass(p.success),h.remove.active(),h.remove.warning(),h.remove.error(),h.complete(),d.text.success?(t=d.onLabelUpdate("success",t,h.value,h.total),h.set.label(t)):(t=d.onLabelUpdate("active",t,h.value,h.total),h.set.label(t)),h.bind.transitionEnd(function(){d.onSuccess.call(C,h.total)})},warning:function(t){t=t||d.text.warning,h.debug("Setting warning state"),b.addClass(p.warning),h.remove.active(),h.remove.success(),h.remove.error(),h.complete(),t=d.onLabelUpdate("warning",t,h.value,h.total),t&&h.set.label(t),h.bind.transitionEnd(function(){d.onWarning.call(C,h.value,h.total)})},error:function(t){t=t||d.text.error,h.debug("Setting error state"),b.addClass(p.error),h.remove.active(),h.remove.success(),h.remove.warning(),h.complete(),t=d.onLabelUpdate("error",t,h.value,h.total),t&&h.set.label(t),h.bind.transitionEnd(function(){d.onError.call(C,h.value,h.total)})},transitionEvent:function(){o=h.get.transitionEnd()},total:function(t){h.total=t},value:function(t){h.value=t},progress:function(t){h.has.progressPoll()?(h.debug("Updated within interval, setting next update to use new value",t),h.set.nextValue(t)):(h.debug("First update in progress update interval, immediately updating",t),h.update.progress(t),h.create.progressPoll())},nextValue:function(t){h.nextValue=t}},update:{toNextValue:function(){var t=h.nextValue;t&&(h.debug("Update interval complete using last updated value",t),h.update.progress(t),h.remove.nextValue())},progress:function(t){var e;t=h.get.numericValue(t),!1===t&&h.error(v.nonNumeric,t),t=h.get.normalizedValue(t),h.has.total()?(h.set.value(t),e=t/h.total*100,h.debug("Calculating percent complete from total",e),h.set.percent(e)):(e=t,h.debug("Setting value to exact percentage value",e),h.set.percent(e))}},setting:function(e,n){if(h.debug("Changing setting",e,n),t.isPlainObject(e))t.extend(!0,d,e);else{if(void 0===n)return d[e];t.isPlainObject(d[e])?t.extend(!0,d[e],n):d[e]=n}},internal:function(e,n){if(t.isPlainObject(e))t.extend(!0,h,e);else{if(void 0===n)return h[e];h[e]=n}},debug:function(){!d.silent&&d.debug&&(d.performance?h.performance.log(arguments):(h.debug=Function.prototype.bind.call(console.info,console,d.name+":"),h.debug.apply(console,arguments)))},verbose:function(){!d.silent&&d.verbose&&d.debug&&(d.performance?h.performance.log(arguments):(h.verbose=Function.prototype.bind.call(console.info,console,d.name+":"),h.verbose.apply(console,arguments)))},error:function(){d.silent||(h.error=Function.prototype.bind.call(console.error,console,d.name+":"),h.error.apply(console,arguments))},performance:{log:function(t){var e,n,i;d.performance&&(e=(new Date).getTime(),i=a||e,n=e-i,a=e,s.push({Name:t[0],Arguments:[].slice.call(t,1)||"",Element:C,"Execution Time":n})),clearTimeout(h.performance.timer),h.performance.timer=setTimeout(h.performance.display,500)},display:function(){var e=d.name+":",n=0;a=!1,clearTimeout(h.performance.timer),t.each(s,function(t,e){n+=e["Execution Time"]}),e+=" "+n+"ms",r&&(e+=" '"+r+"'"),(void 0!==console.group||void 0!==console.table)&&s.length>0&&(console.groupCollapsed(e),console.table?console.table(s):t.each(s,function(t,e){console.log(e.Name+": "+e["Execution Time"]+"ms")}),console.groupEnd()),s=[]}},invoke:function(e,n,o){var r,a,s,l=P;return n=n||c,o=C||o,"string"==typeof e&&void 0!==l&&(e=e.split(/[\. ]/),r=e.length-1,t.each(e,function(n,i){var o=n!=r?i+e[n+1].charAt(0).toUpperCase()+e[n+1].slice(1):e;if(t.isPlainObject(l[o])&&n!=r)l=l[o];else{if(void 0!==l[o])return a=l[o],!1
;if(!t.isPlainObject(l[i])||n==r)return void 0!==l[i]?(a=l[i],!1):(h.error(v.method,e),!1);l=l[i]}})),t.isFunction(a)?s=a.apply(o,n):void 0!==a&&(s=a),t.isArray(i)?i.push(s):void 0!==i?i=[i,s]:void 0!==s&&(i=s),a}},u?(void 0===P&&h.initialize(),h.invoke(l)):(void 0!==P&&P.invoke("destroy"),h.initialize())}),void 0!==i?i:this},t.fn.progress.settings={name:"Progress",namespace:"progress",silent:!1,debug:!1,verbose:!1,performance:!0,random:{min:2,max:5},duration:300,updateInterval:"auto",autoSuccess:!0,showActivity:!0,limitValues:!0,label:"percent",precision:0,framerate:1e3/30,percent:!1,total:!1,value:!1,failSafeDelay:100,onLabelUpdate:function(t,e,n,i){return e},onChange:function(t,e,n){},onSuccess:function(t){},onActive:function(t,e){},onError:function(t,e){},onWarning:function(t,e){},error:{method:"The method you called is not defined.",nonNumeric:"Progress value is non numeric",tooHigh:"Value specified is above 100%",tooLow:"Value specified is below 0%"},regExp:{variable:/\{\$*[A-z0-9]+\}/g},metadata:{percent:"percent",total:"total",value:"value"},selector:{bar:"> .bar",label:"> .label",progress:".bar > .progress"},text:{active:!1,error:!1,success:!1,warning:!1,percent:"{percent}%",ratio:"{value} of {total}"},className:{active:"active",error:"error",success:"success",warning:"warning"}}}(jQuery,window,document),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Siema",[],e):"object"==typeof exports?exports.Siema=e():t.Siema=e()}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=function(){function t(e){var n=this;i(this,t),this.config=t.mergeSettings(e),this.selector="string"==typeof this.config.selector?document.querySelector(this.config.selector):this.config.selector,this.selectorWidth=this.selector.offsetWidth,this.innerElements=[].slice.call(this.selector.children),this.currentSlide=this.config.startIndex,this.transformProperty=t.webkitOrNot(),["resizeHandler","touchstartHandler","touchendHandler","touchmoveHandler","mousedownHandler","mouseupHandler","mouseleaveHandler","mousemoveHandler"].forEach(function(t){n[t]=n[t].bind(n)}),this.init()}return r(t,[{key:"init",value:function(){if(window.addEventListener("resize",this.resizeHandler),this.config.draggable&&(this.pointerDown=!1,this.drag={startX:0,endX:0,startY:0,letItGo:null},this.selector.addEventListener("touchstart",this.touchstartHandler,{passive:!0}),this.selector.addEventListener("touchend",this.touchendHandler),this.selector.addEventListener("touchmove",this.touchmoveHandler,{passive:!0}),this.selector.addEventListener("mousedown",this.mousedownHandler),this.selector.addEventListener("mouseup",this.mouseupHandler),this.selector.addEventListener("mouseleave",this.mouseleaveHandler),this.selector.addEventListener("mousemove",this.mousemoveHandler)),null===this.selector)throw new Error("Something wrong with your selector 😭");this.resolveSlidesNumber(),this.selector.style.overflow="hidden",this.sliderFrame=document.createElement("div"),this.sliderFrame.style.width=this.selectorWidth/this.perPage*this.innerElements.length+"px",this.sliderFrame.style.webkitTransition="all "+this.config.duration+"ms "+this.config.easing,this.sliderFrame.style.transition="all "+this.config.duration+"ms "+this.config.easing,this.config.draggable&&(this.selector.style.cursor="-webkit-grab");for(var t=document.createDocumentFragment(),e=0;e<this.innerElements.length;e++){var n=document.createElement("div");n.style.cssFloat="left",n.style.float="left",n.style.width=100/this.innerElements.length+"%",n.appendChild(this.innerElements[e]),t.appendChild(n)}this.sliderFrame.appendChild(t),this.selector.innerHTML="",this.selector.appendChild(this.sliderFrame),this.slideToCurrent(),this.config.onInit.call(this)}},{key:"resolveSlidesNumber",value:function(){if("number"==typeof this.config.perPage)this.perPage=this.config.perPage;else if("object"===o(this.config.perPage)){this.perPage=1;for(var t in this.config.perPage)window.innerWidth>=t&&(this.perPage=this.config.perPage[t])}}},{key:"prev",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments[1];if(!(this.innerElements.length<=this.perPage)){var n=this.currentSlide;0===this.currentSlide&&this.config.loop?this.currentSlide=this.innerElements.length-this.perPage:this.currentSlide=Math.max(this.currentSlide-t,0),n!==this.currentSlide&&(this.slideToCurrent(),this.config.onChange.call(this),e&&e.call(this))}}},{key:"next",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments[1];if(!(this.innerElements.length<=this.perPage)){var n=this.currentSlide;this.currentSlide===this.innerElements.length-this.perPage&&this.config.loop?this.currentSlide=0:this.currentSlide=Math.min(this.currentSlide+t,this.innerElements.length-this.perPage),n!==this.currentSlide&&(this.slideToCurrent(),this.config.onChange.call(this),e&&e.call(this))}}},{key:"goTo",value:function(t,e){if(!(this.innerElements.length<=this.perPage)){var n=this.currentSlide;this.currentSlide=Math.min(Math.max(t,0),this.innerElements.length-this.perPage),n!==this.currentSlide&&(this.slideToCurrent(),this.config.onChange.call(this),e&&e.call(this))}}},{key:"slideToCurrent",value:function(){this.sliderFrame.style[this.transformProperty]="translate3d(-"+this.currentSlide*(this.selectorWidth/this.perPage)+"px, 0, 0)"}},{key:"updateAfterDrag",value:function(){var t=this.drag.endX-this.drag.startX,e=Math.abs(t),n=Math.ceil(e/(this.selectorWidth/this.perPage));t>0&&e>this.config.threshold&&this.innerElements.length>this.perPage?this.prev(n):t<0&&e>this.config.threshold&&this.innerElements.length>this.perPage&&this.next(n),this.slideToCurrent()}},{key:"resizeHandler",value:function(){this.resolveSlidesNumber(),this.selectorWidth=this.selector.offsetWidth,this.sliderFrame.style.width=this.selectorWidth/this.perPage*this.innerElements.length+"px",this.slideToCurrent()}},{key:"clearDrag",value:function(){this.drag={startX:0,endX:0,startY:0,letItGo:null}}},{key:"touchstartHandler",value:function(t){t.stopPropagation(),this.pointerDown=!0,this.drag.startX=t.touches[0].pageX,this.drag.startY=t.touches[0].pageY}},{key:"touchendHandler",value:function(t){t.stopPropagation(),this.pointerDown=!1,this.sliderFrame.style.webkitTransition="all "+this.config.duration+"ms "+this.config.easing,this.sliderFrame.style.transition="all "+this.config.duration+"ms "+this.config.easing,this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"touchmoveHandler",value:function(t){t.stopPropagation(),null===this.drag.letItGo&&(this.drag.letItGo=Math.abs(this.drag.startY-t.touches[0].pageY)<Math.abs(this.drag.startX-t.touches[0].pageX)),this.pointerDown&&this.drag.letItGo&&(this.drag.endX=t.touches[0].pageX,this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing,this.sliderFrame.style[this.transformProperty]="translate3d("+-1*(this.currentSlide*(this.selectorWidth/this.perPage)+(this.drag.startX-this.drag.endX))+"px, 0, 0)")}},{key:"mousedownHandler",value:function(t){t.preventDefault(),t.stopPropagation(),this.pointerDown=!0,this.drag.startX=t.pageX}},{key:"mouseupHandler",value:function(t){t.stopPropagation(),this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.sliderFrame.style.webkitTransition="all "+this.config.duration+"ms "+this.config.easing,this.sliderFrame.style.transition="all "+this.config.duration+"ms "+this.config.easing,this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"mousemoveHandler",value:function(t){t.preventDefault(),this.pointerDown&&(this.drag.endX=t.pageX,this.selector.style.cursor="-webkit-grabbing",this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing,this.sliderFrame.style[this.transformProperty]="translate3d("+-1*(this.currentSlide*(this.selectorWidth/this.perPage)+(this.drag.startX-this.drag.endX))+"px, 0, 0)")}},{key:"mouseleaveHandler",value:function(t){this.pointerDown&&(this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.drag.endX=t.pageX,this.sliderFrame.style.webkitTransition="all "+this.config.duration+"ms "+this.config.easing,this.sliderFrame.style.transition="all "+this.config.duration+"ms "+this.config.easing,this.updateAfterDrag(),this.clearDrag())}},{key:"updateFrame",value:function(){this.sliderFrame=document.createElement("div"),this.sliderFrame.style.width=this.selectorWidth/this.perPage*this.innerElements.length+"px",this.sliderFrame.style.webkitTransition="all "+this.config.duration+"ms "+this.config.easing,this.sliderFrame.style.transition="all "+this.config.duration+"ms "+this.config.easing,this.config.draggable&&(this.selector.style.cursor="-webkit-grab");for(var t=document.createDocumentFragment(),e=0;e<this.innerElements.length;e++){var n=document.createElement("div");n.style.cssFloat="left",n.style.float="left",n.style.width=100/this.innerElements.length+"%",n.appendChild(this.innerElements[e]),t.appendChild(n)}this.sliderFrame.appendChild(t),this.selector.innerHTML="",this.selector.appendChild(this.sliderFrame),this.slideToCurrent()}},{key:"remove",value:function(t,e){if(t<0||t>=this.innerElements.length)throw new Error("Item to remove doesn't exist 😭");this.innerElements.splice(t,1),this.currentSlide=t<=this.currentSlide?this.currentSlide-1:this.currentSlide,this.updateFrame(),e&&e.call(this)}},{key:"insert",value:function(t,e,n){if(e<0||e>this.innerElements.length+1)throw new Error("Unable to inset it at this index 😭");if(-1!==this.innerElements.indexOf(t))throw new Error("The same item in a carousel? Really? Nope 😭");this.innerElements.splice(e,0,t),this.currentSlide=e<=this.currentSlide?this.currentSlide+1:this.currentSlide,this.updateFrame(),n&&n.call(this)}},{key:"prepend",value:function(t,e){this.insert(t,0),e&&e.call(this)}},{key:"append",value:function(t,e){this.insert(t,this.innerElements.length+1),e&&e.call(this)}},{key:"destroy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments[1];if(window.removeEventListener("resize",this.resizeHandler),this.selector.style.cursor="auto",this.selector.removeEventListener("touchstart",this.touchstartHandler),this.selector.removeEventListener("touchend",this.touchendHandler),this.selector.removeEventListener("touchmove",this.touchmoveHandler),this.selector.removeEventListener("mousedown",this.mousedownHandler),this.selector.removeEventListener("mouseup",this.mouseupHandler),this.selector.removeEventListener("mouseleave",this.mouseleaveHandler),this.selector.removeEventListener("mousemove",this.mousemoveHandler),t){for(var n=document.createDocumentFragment(),i=0;i<this.innerElements.length;i++)n.appendChild(this.innerElements[i]);this.selector.innerHTML="",this.selector.appendChild(n),this.selector.removeAttribute("style")}e&&e.call(this)}}],[{key:"mergeSettings",value:function(t){var e={selector:".siema",duration:200,easing:"ease-out",perPage:1,startIndex:0,draggable:!0,threshold:20,loop:!1,onInit:function(){},onChange:function(){}},n=t;for(var i in n)e[i]=n[i];return e}},{key:"webkitOrNot",value:function(){return"string"==typeof document.documentElement.style.transform?"transform":"WebkitTransform"}}]),t}();e.default=a,t.exports=e.default}])}),function(t,e,n,i){"use strict";e=void 0!==e&&e.Math==Math?e:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),t.fn.tab=function(o){var r,a=t(t.isFunction(this)?e:this),s=a.selector||"",l=(new Date).getTime(),u=[],c=arguments[0],h="string"==typeof c,d=[].slice.call(arguments,1),p=!1;return a.each(function(){var f,m,g,v,_,y,b=t.isPlainObject(o)?t.extend(!0,{},t.fn.tab.settings,o):t.extend({},t.fn.tab.settings),x=b.className,w=b.metadata,T=b.selector,C=b.error,P="."+b.namespace,L="module-"+b.namespace,k=t(this),S={},E=!0,A=0,M=this,z=k.data(L);_={initialize:function(){_.debug("Initializing tab menu item",k),_.fix.callbacks(),_.determineTabs(),_.debug("Determining tabs",b.context,m),b.auto&&_.set.auto(),_.bind.events(),b.history&&!p&&(_.initializeHistory(),p=!0),_.instantiate()},instantiate:function(){_.verbose("Storing instance of module",_),z=_,k.data(L,_)},destroy:function(){_.debug("Destroying tabs",k),k.removeData(L).off(P)},bind:{events:function(){t.isWindow(M)||(_.debug("Attaching tab activation events to element",k),k.on("click"+P,_.event.click))}},determineTabs:function(){var e;"parent"===b.context?(k.closest(T.ui).length>0?(e=k.closest(T.ui),_.verbose("Using closest UI element as parent",e)):e=k,f=e.parent(),_.verbose("Determined parent element for creating context",f)):b.context?(f=t(b.context),_.verbose("Using selector for tab context",b.context,f)):f=t("body"),b.childrenOnly?(m=f.children(T.tabs),_.debug("Searching tab context children for tabs",f,m)):(m=f.find(T.tabs),_.debug("Searching tab context for tabs",f,m))},fix:{callbacks:function(){t.isPlainObject(o)&&(o.onTabLoad||o.onTabInit)&&(o.onTabLoad&&(o.onLoad=o.onTabLoad,delete o.onTabLoad,_.error(C.legacyLoad,o.onLoad)),o.onTabInit&&(o.onFirstLoad=o.onTabInit,delete o.onTabInit,_.error(C.legacyInit,o.onFirstLoad)),b=t.extend(!0,{},t.fn.tab.settings,o))}},initializeHistory:function(){if(_.debug("Initializing page state"),t.address===i)return _.error(C.state),!1;if("state"==b.historyType){if(_.debug("Using HTML5 to manage state"),!1===b.path)return _.error(C.path),!1;t.address.history(!0).state(b.path)}t.address.bind("change",_.event.history.change)},event:{click:function(e){var n=t(this).data(w.tab);n!==i?(b.history?(_.verbose("Updating page state",e),t.address.value(n)):(_.verbose("Changing tab",e),_.changeTab(n)),e.preventDefault()):_.debug("No tab specified")},history:{change:function(e){var n=e.pathNames.join("/")||_.get.initialPath(),o=b.templates.determineTitle(n)||!1;_.performance.display(),_.debug("History change event",n,e),y=e,n!==i&&_.changeTab(n),o&&t.address.title(o)}}},refresh:function(){g&&(_.debug("Refreshing tab",g),_.changeTab(g))},cache:{read:function(t){return t!==i&&S[t]},add:function(t,e){t=t||g,_.debug("Adding cached content for",t),S[t]=e},remove:function(t){t=t||g,_.debug("Removing cached content for",t),delete S[t]}},set:{auto:function(){var e="string"==typeof b.path?b.path.replace(/\/$/,"")+"/{$tab}":"/{$tab}";_.verbose("Setting up automatic tab retrieval from server",e),t.isPlainObject(b.apiSettings)?b.apiSettings.url=e:b.apiSettings={url:e}},loading:function(t){var e=_.get.tabElement(t);e.hasClass(x.loading)||(_.verbose("Setting loading state for",e),e.addClass(x.loading).siblings(m).removeClass(x.active+" "+x.loading),e.length>0&&b.onRequest.call(e[0],t))},state:function(e){t.address.value(e)}},changeTab:function(n){var i=e.history&&e.history.pushState,o=i&&b.ignoreFirstLoad&&E,r=b.auto||t.isPlainObject(b.apiSettings),a=r&&!o?_.utilities.pathToArray(n):_.get.defaultPathArray(n);n=_.utilities.arrayToPath(a),t.each(a,function(e,i){var s,l,u,c,h=a.slice(0,e+1),d=_.utilities.arrayToPath(h),p=_.is.tab(d),m=e+1==a.length,T=_.get.tabElement(d);if(_.verbose("Looking for tab",i),p){if(_.verbose("Tab was found",i),g=d,v=_.utilities.filterArray(a,h),m?c=!0:(l=a.slice(0,e+2),u=_.utilities.arrayToPath(l),(c=!_.is.tab(u))&&_.verbose("Tab parameters found",l)),c&&r)return o?(_.debug("Ignoring remote content on first tab load",d),E=!1,_.cache.add(n,T.html()),_.activate.all(d),b.onFirstLoad.call(T[0],d,v,y),b.onLoad.call(T[0],d,v,y)):(_.activate.navigation(d),_.fetch.content(d,n)),!1;_.debug("Opened local tab",d),_.activate.all(d),_.cache.read(d)||(_.cache.add(d,!0),_.debug("First time tab loaded calling tab init"),b.onFirstLoad.call(T[0],d,v,y)),b.onLoad.call(T[0],d,v,y)}else{if(-1!=n.search("/")||""===n)return _.error(C.missingTab,k,f,d),!1;if(s=t("#"+n+', a[name="'+n+'"]'),d=s.closest("[data-tab]").data(w.tab),T=_.get.tabElement(d),s&&s.length>0&&d)return _.debug("Anchor link used, opening parent tab",T,s),T.hasClass(x.active)||setTimeout(function(){_.scrollTo(s)},0),_.activate.all(d),_.cache.read(d)||(_.cache.add(d,!0),_.debug("First time tab loaded calling tab init"),b.onFirstLoad.call(T[0],d,v,y)),b.onLoad.call(T[0],d,v,y),!1}})},scrollTo:function(e){var i=!!(e&&e.length>0)&&e.offset().top;!1!==i&&(_.debug("Forcing scroll to an in-page link in a hidden tab",i,e),t(n).scrollTop(i))},update:{content:function(e,n,o){var r=_.get.tabElement(e),a=r[0];o=o!==i?o:b.evaluateScripts,"string"==typeof b.cacheType&&"dom"==b.cacheType.toLowerCase()&&"string"!=typeof n?r.empty().append(t(n).clone(!0)):o?(_.debug("Updating HTML and evaluating inline scripts",e,n),r.html(n)):(_.debug("Updating HTML",e,n),a.innerHTML=n)}},fetch:{content:function(e,n){var o,r,a=_.get.tabElement(e),s={dataType:"html",encodeParameters:!1,on:"now",cache:b.alwaysRefresh,headers:{"X-Remote":!0},onSuccess:function(t){"response"==b.cacheType&&_.cache.add(n,t),_.update.content(e,t),e==g?(_.debug("Content loaded",e),_.activate.tab(e)):_.debug("Content loaded in background",e),b.onFirstLoad.call(a[0],e,v,y),b.onLoad.call(a[0],e,v,y),b.loadOnce?_.cache.add(n,!0):"string"==typeof b.cacheType&&"dom"==b.cacheType.toLowerCase()&&a.children().length>0?setTimeout(function(){var t=a.children().clone(!0);t=t.not("script"),_.cache.add(n,t)},0):_.cache.add(n,a.html())},urlData:{tab:n}},l=a.api("get request")||!1,u=l&&"pending"===l.state();n=n||e,r=_.cache.read(n),b.cache&&r?(_.activate.tab(e),_.debug("Adding cached content",n),b.loadOnce||("once"==b.evaluateScripts?_.update.content(e,r,!1):_.update.content(e,r)),b.onLoad.call(a[0],e,v,y)):u?(_.set.loading(e),_.debug("Content is already loading",n)):t.api!==i?(o=t.extend(!0,{},b.apiSettings,s),_.debug("Retrieving remote content",n,o),_.set.loading(e),a.api(o)):_.error(C.api)}},activate:{all:function(t){_.activate.tab(t),_.activate.navigation(t)},tab:function(t){var e=_.get.tabElement(t),n="siblings"==b.deactivate?e.siblings(m):m.not(e),i=e.hasClass(x.active);_.verbose("Showing tab content for",e),i||(e.addClass(x.active),n.removeClass(x.active+" "+x.loading),e.length>0&&b.onVisible.call(e[0],t))},navigation:function(t){var e=_.get.navElement(t),n="siblings"==b.deactivate?e.siblings(a):a.not(e),i=e.hasClass(x.active);_.verbose("Activating tab navigation for",e,t),i||(e.addClass(x.active),n.removeClass(x.active+" "+x.loading))}},deactivate:{all:function(){_.deactivate.navigation(),_.deactivate.tabs()},navigation:function(){a.removeClass(x.active)},tabs:function(){m.removeClass(x.active+" "+x.loading)}},is:{tab:function(t){return t!==i&&_.get.tabElement(t).length>0}},get:{initialPath:function(){return a.eq(0).data(w.tab)||m.eq(0).data(w.tab)},path:function(){return t.address.value()},defaultPathArray:function(t){return _.utilities.pathToArray(_.get.defaultPath(t))},defaultPath:function(t){var e=a.filter("[data-"+w.tab+'^="'+t+'/"]').eq(0),n=e.data(w.tab)||!1;if(n){if(_.debug("Found default tab",n),A<b.maxDepth)return A++,_.get.defaultPath(n);_.error(C.recursion)}else _.debug("No default tabs found for",t,m);return A=0,t},navElement:function(t){return t=t||g,a.filter("[data-"+w.tab+'="'+t+'"]')},tabElement:function(t){var e,n,i,o;return t=t||g,i=_.utilities.pathToArray(t),o=_.utilities.last(i),e=m.filter("[data-"+w.tab+'="'+t+'"]'),n=m.filter("[data-"+w.tab+'="'+o+'"]'),e.length>0?e:n},tab:function(){return g}},utilities:{filterArray:function(e,n){return t.grep(e,function(e){return-1==t.inArray(e,n)})},last:function(e){return!!t.isArray(e)&&e[e.length-1]},pathToArray:function(t){return t===i&&(t=g),"string"==typeof t?t.split("/"):[t]},arrayToPath:function(e){return!!t.isArray(e)&&e.join("/")}},setting:function(e,n){if(_.debug("Changing setting",e,n),t.isPlainObject(e))t.extend(!0,b,e);else{if(n===i)return b[e];t.isPlainObject(b[e])?t.extend(!0,b[e],n):b[e]=n}},internal:function(e,n){if(t.isPlainObject(e))t.extend(!0,_,e);else{if(n===i)return _[e];_[e]=n}},debug:function(){!b.silent&&b.debug&&(b.performance?_.performance.log(arguments):(_.debug=Function.prototype.bind.call(console.info,console,b.name+":"),_.debug.apply(console,arguments)))},verbose:function(){!b.silent&&b.verbose&&b.debug&&(b.performance?_.performance.log(arguments):(_.verbose=Function.prototype.bind.call(console.info,console,b.name+":"),_.verbose.apply(console,arguments)))},error:function(){b.silent||(_.error=Function.prototype.bind.call(console.error,console,b.name+":"),_.error.apply(console,arguments))},performance:{log:function(t){var e,n,i;b.performance&&(e=(new Date).getTime(),i=l||e,n=e-i,l=e,u.push({Name:t[0],Arguments:[].slice.call(t,1)||"",Element:M,"Execution Time":n})),clearTimeout(_.performance.timer),_.performance.timer=setTimeout(_.performance.display,500)},display:function(){var e=b.name+":",n=0;l=!1,clearTimeout(_.performance.timer),t.each(u,function(t,e){n+=e["Execution Time"]}),e+=" "+n+"ms",s&&(e+=" '"+s+"'"),(console.group!==i||console.table!==i)&&u.length>0&&(console.groupCollapsed(e),console.table?console.table(u):t.each(u,function(t,e){console.log(e.Name+": "+e["Execution Time"]+"ms")}),console.groupEnd()),u=[]}},invoke:function(e,n,o){var a,s,l,u=z;return n=n||d,o=M||o,"string"==typeof e&&u!==i&&(e=e.split(/[\. ]/),a=e.length-1,t.each(e,function(n,o){var r=n!=a?o+e[n+1].charAt(0).toUpperCase()+e[n+1].slice(1):e;if(t.isPlainObject(u[r])&&n!=a)u=u[r];else{if(u[r]!==i)return s=u[r],!1;if(!t.isPlainObject(u[o])||n==a)return u[o]!==i?(s=u[o],!1):(_.error(C.method,e),!1);u=u[o]}})),t.isFunction(s)?l=s.apply(o,n):s!==i&&(l=s),t.isArray(r)?r.push(l):r!==i?r=[r,l]:l!==i&&(r=l),s}},h?(z===i&&_.initialize(),_.invoke(c)):(z!==i&&z.invoke("destroy"),_.initialize())}),r!==i?r:this},t.tab=function(){t(e).tab.apply(this,arguments)},t.fn.tab.settings={name:"Tab",namespace:"tab",silent:!1,debug:!1,verbose:!1,performance:!0,auto:!1,history:!1,historyType:"hash",path:!1,context:!1,childrenOnly:!1,maxDepth:25,deactivate:"siblings",alwaysRefresh:!1,cache:!0,loadOnce:!1,cacheType:"response",ignoreFirstLoad:!1,apiSettings:!1,evaluateScripts:"once",onFirstLoad:function(t,e,n){},onLoad:function(t,e,n){},onVisible:function(t,e,n){},onRequest:function(t,e,n){},templates:{determineTitle:function(t){}},error:{api:"You attempted to load content without API module",method:"The method you called is not defined",missingTab:"Activated tab cannot be found. Tabs are case-sensitive.",noContent:"The tab you specified is missing a content url.",path:"History enabled, but no path was specified",recursion:"Max recursive depth reached",legacyInit:"onTabInit has been renamed to onFirstLoad in 2.0, please adjust your code.",legacyLoad:"onTabLoad has been renamed to onLoad in 2.0. Please adjust your code",state:"History requires Asual's Address library <https://github.com/asual/jquery-address>"},metadata:{tab:"tab",loaded:"loaded",promise:"promise"},className:{loading:"loading",active:"active"},selector:{tabs:".ui.tab",ui:".ui"}}}(jQuery,window,document),function(t,e,n,i){"use strict";e=void 0!==e&&e.Math==Math?e:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),t.fn.transition=function(){var o,r=t(this),a=r.selector||"",s=(new Date).getTime(),l=[],u=arguments,c=u[0],h=[].slice.call(arguments,1),d="string"==typeof c;return e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||e.msRequestAnimationFrame,r.each(function(e){var p,f,m,g,v,_,y,b,x,w=t(this),T=this;x={initialize:function(){p=x.get.settings.apply(T,u),g=p.className,m=p.error,v=p.metadata,b="."+p.namespace,y="module-"+p.namespace,f=w.data(y)||x,_=x.get.animationEndEvent(),d&&(d=x.invoke(c)),!1===d&&(x.verbose("Converted arguments into settings object",p),p.interval?x.delay(p.animate):x.animate(),x.instantiate())},instantiate:function(){x.verbose("Storing instance of module",x),f=x,w.data(y,f)},destroy:function(){x.verbose("Destroying previous module for",T),w.removeData(y)},refresh:function(){x.verbose("Refreshing display type on next animation"),delete x.displayType},forceRepaint:function(){x.verbose("Forcing element repaint");var t=w.parent(),e=w.next();0===e.length?w.detach().appendTo(t):w.detach().insertBefore(e)},repaint:function(){x.verbose("Repainting element"),T.offsetWidth},delay:function(t){var n,o,a=x.get.animationDirection();a||(a=x.can.transition()?x.get.direction():"static"),t=t!==i?t:p.interval,n="auto"==p.reverse&&a==g.outward,o=n||1==p.reverse?(r.length-e)*p.interval:e*p.interval,x.debug("Delaying animation by",o),setTimeout(x.animate,o)},animate:function(t){if(p=t||p,!x.is.supported())return x.error(m.support),!1;if(x.debug("Preparing animation",p.animation),x.is.animating()){if(p.queue)return!p.allowRepeats&&x.has.direction()&&x.is.occurring()&&!0!==x.queuing?x.debug("Animation is currently occurring, preventing queueing same animation",p.animation):x.queue(p.animation),!1;if(!p.allowRepeats&&x.is.occurring())return x.debug("Animation is already occurring, will not execute repeated animation",p.animation),!1;x.debug("New animation started, completing previous early",p.animation),f.complete()}x.can.animate()?x.set.animating(p.animation):x.error(m.noAnimation,p.animation,T)},reset:function(){x.debug("Resetting animation to beginning conditions"),x.remove.animationCallbacks(),x.restore.conditions(),x.remove.animating()},queue:function(t){x.debug("Queueing animation of",t),x.queuing=!0,w.one(_+".queue"+b,function(){x.queuing=!1,x.repaint(),x.animate.apply(this,p)})},complete:function(t){x.debug("Animation complete",p.animation),x.remove.completeCallback(),x.remove.failSafe(),x.is.looping()||(x.is.outward()?(x.verbose("Animation is outward, hiding element"),x.restore.conditions(),x.hide()):x.is.inward()?(x.verbose("Animation is outward, showing element"),x.restore.conditions(),x.show()):(x.verbose("Static animation completed"),x.restore.conditions(),p.onComplete.call(T)))},force:{visible:function(){var t=w.attr("style"),e=x.get.userStyle(),n=x.get.displayType(),o=e+"display: "+n+" !important;",r=w.css("display"),a=t===i||""===t;r!==n?(x.verbose("Overriding default display to show element",n),w.attr("style",o)):a&&w.removeAttr("style")},hidden:function(){var t=w.attr("style"),e=w.css("display"),n=t===i||""===t;"none"===e||x.is.hidden()?n&&w.removeAttr("style"):(x.verbose("Overriding default display to hide element"),w.css("display","none"))}},has:{direction:function(e){var n=!1;return e=e||p.animation,"string"==typeof e&&(e=e.split(" "),t.each(e,function(t,e){e!==g.inward&&e!==g.outward||(n=!0)})),n},inlineDisplay:function(){var e=w.attr("style")||"";return t.isArray(e.match(/display.*?;/,""))}},set:{animating:function(t){var e;x.remove.completeCallback(),t=t||p.animation,e=x.get.animationClass(t),x.save.animation(e),x.force.visible(),x.remove.hidden(),x.remove.direction(),x.start.animation(e)},duration:function(t,e){e=e||p.duration,((e="number"==typeof e?e+"ms":e)||0===e)&&(x.verbose("Setting animation duration",e),w.css({"animation-duration":e}))},direction:function(t){t=t||x.get.direction(),t==g.inward?x.set.inward():x.set.outward()},looping:function(){x.debug("Transition set to loop"),w.addClass(g.looping)},hidden:function(){w.addClass(g.transition).addClass(g.hidden)},inward:function(){x.debug("Setting direction to inward"),w.removeClass(g.outward).addClass(g.inward)},outward:function(){x.debug("Setting direction to outward"),w.removeClass(g.inward).addClass(g.outward)},visible:function(){w.addClass(g.transition).addClass(g.visible)}},start:{animation:function(t){t=t||x.get.animationClass(),x.debug("Starting tween",t),w.addClass(t).one(_+".complete"+b,x.complete),p.useFailSafe&&x.add.failSafe(),x.set.duration(p.duration),p.onStart.call(T)}},save:{animation:function(t){x.cache||(x.cache={}),x.cache.animation=t},displayType:function(t){"none"!==t&&w.data(v.displayType,t)},transitionExists:function(e,n){t.fn.transition.exists[e]=n,x.verbose("Saving existence of transition",e,n)}},restore:{conditions:function(){var t=x.get.currentAnimation();t&&(w.removeClass(t),x.verbose("Removing animation class",x.cache)),x.remove.duration()}},add:{failSafe:function(){var t=x.get.duration();x.timer=setTimeout(function(){w.triggerHandler(_)},t+p.failSafeDelay),x.verbose("Adding fail safe timer",x.timer)}},remove:{animating:function(){w.removeClass(g.animating)},animationCallbacks:function(){x.remove.queueCallback(),x.remove.completeCallback()},queueCallback:function(){w.off(".queue"+b)},completeCallback:function(){w.off(".complete"+b)},display:function(){w.css("display","")},direction:function(){w.removeClass(g.inward).removeClass(g.outward)},duration:function(){w.css("animation-duration","")},failSafe:function(){x.verbose("Removing fail safe timer",x.timer),x.timer&&clearTimeout(x.timer)},hidden:function(){w.removeClass(g.hidden)},visible:function(){w.removeClass(g.visible)},looping:function(){x.debug("Transitions are no longer looping"),x.is.looping()&&(x.reset(),w.removeClass(g.looping))},transition:function(){w.removeClass(g.visible).removeClass(g.hidden)}},get:{settings:function(e,n,i){return"object"==typeof e?t.extend(!0,{},t.fn.transition.settings,e):"function"==typeof i?t.extend({},t.fn.transition.settings,{animation:e,onComplete:i,duration:n}):"string"==typeof n||"number"==typeof n?t.extend({},t.fn.transition.settings,{animation:e,duration:n}):"object"==typeof n?t.extend({},t.fn.transition.settings,n,{animation:e}):"function"==typeof n?t.extend({},t.fn.transition.settings,{animation:e,onComplete:n}):t.extend({},t.fn.transition.settings,{animation:e})},animationClass:function(t){var e=t||p.animation,n=x.can.transition()&&!x.has.direction()?x.get.direction()+" ":"";return g.animating+" "+g.transition+" "+n+e},currentAnimation:function(){return!(!x.cache||x.cache.animation===i)&&x.cache.animation},currentDirection:function(){return x.is.inward()?g.inward:g.outward},direction:function(){return x.is.hidden()||!x.is.visible()?g.inward:g.outward},animationDirection:function(e){var n;return e=e||p.animation,"string"==typeof e&&(e=e.split(" "),t.each(e,function(t,e){e===g.inward?n=g.inward:e===g.outward&&(n=g.outward)})),!!n&&n},duration:function(t){return t=t||p.duration,!1===t&&(t=w.css("animation-duration")||0),"string"==typeof t?t.indexOf("ms")>-1?parseFloat(t):1e3*parseFloat(t):t},displayType:function(t){return t=t===i||t,p.displayType?p.displayType:(t&&w.data(v.displayType)===i&&x.can.transition(!0),w.data(v.displayType))},userStyle:function(t){return t=t||w.attr("style")||"",t.replace(/display.*?;/,"")},transitionExists:function(e){return t.fn.transition.exists[e]},animationStartEvent:function(){var t,e=n.createElement("div"),o={animation:"animationstart",OAnimation:"oAnimationStart",MozAnimation:"mozAnimationStart",WebkitAnimation:"webkitAnimationStart"};for(t in o)if(e.style[t]!==i)return o[t];return!1},animationEndEvent:function(){var t,e=n.createElement("div"),o={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"};for(t in o)if(e.style[t]!==i)return o[t]
;return!1}},can:{transition:function(e){var n,o,r,a,s,l,u=p.animation,c=x.get.transitionExists(u),h=x.get.displayType(!1);if(c===i||e){if(x.verbose("Determining whether animation exists"),n=w.attr("class"),o=w.prop("tagName"),r=t("<"+o+" />").addClass(n).insertAfter(w),a=r.addClass(u).removeClass(g.inward).removeClass(g.outward).addClass(g.animating).addClass(g.transition).css("animationName"),s=r.addClass(g.inward).css("animationName"),h||(h=r.attr("class",n).removeAttr("style").removeClass(g.hidden).removeClass(g.visible).show().css("display"),x.verbose("Determining final display state",h),x.save.displayType(h)),r.remove(),a!=s)x.debug("Direction exists for animation",u),l=!0;else{if("none"==a||!a)return void x.debug("No animation defined in css",u);x.debug("Static animation found",u,h),l=!1}x.save.transitionExists(u,l)}return c!==i?c:l},animate:function(){return x.can.transition()!==i}},is:{animating:function(){return w.hasClass(g.animating)},inward:function(){return w.hasClass(g.inward)},outward:function(){return w.hasClass(g.outward)},looping:function(){return w.hasClass(g.looping)},occurring:function(t){return t=t||p.animation,t="."+t.replace(" ","."),w.filter(t).length>0},visible:function(){return w.is(":visible")},hidden:function(){return"hidden"===w.css("visibility")},supported:function(){return!1!==_}},hide:function(){x.verbose("Hiding element"),x.is.animating()&&x.reset(),T.blur(),x.remove.display(),x.remove.visible(),x.set.hidden(),x.force.hidden(),p.onHide.call(T),p.onComplete.call(T)},show:function(t){x.verbose("Showing element",t),x.remove.hidden(),x.set.visible(),x.force.visible(),p.onShow.call(T),p.onComplete.call(T)},toggle:function(){x.is.visible()?x.hide():x.show()},stop:function(){x.debug("Stopping current animation"),w.triggerHandler(_)},stopAll:function(){x.debug("Stopping all animation"),x.remove.queueCallback(),w.triggerHandler(_)},clear:{queue:function(){x.debug("Clearing animation queue"),x.remove.queueCallback()}},enable:function(){x.verbose("Starting animation"),w.removeClass(g.disabled)},disable:function(){x.debug("Stopping animation"),w.addClass(g.disabled)},setting:function(e,n){if(x.debug("Changing setting",e,n),t.isPlainObject(e))t.extend(!0,p,e);else{if(n===i)return p[e];t.isPlainObject(p[e])?t.extend(!0,p[e],n):p[e]=n}},internal:function(e,n){if(t.isPlainObject(e))t.extend(!0,x,e);else{if(n===i)return x[e];x[e]=n}},debug:function(){!p.silent&&p.debug&&(p.performance?x.performance.log(arguments):(x.debug=Function.prototype.bind.call(console.info,console,p.name+":"),x.debug.apply(console,arguments)))},verbose:function(){!p.silent&&p.verbose&&p.debug&&(p.performance?x.performance.log(arguments):(x.verbose=Function.prototype.bind.call(console.info,console,p.name+":"),x.verbose.apply(console,arguments)))},error:function(){p.silent||(x.error=Function.prototype.bind.call(console.error,console,p.name+":"),x.error.apply(console,arguments))},performance:{log:function(t){var e,n,i;p.performance&&(e=(new Date).getTime(),i=s||e,n=e-i,s=e,l.push({Name:t[0],Arguments:[].slice.call(t,1)||"",Element:T,"Execution Time":n})),clearTimeout(x.performance.timer),x.performance.timer=setTimeout(x.performance.display,500)},display:function(){var e=p.name+":",n=0;s=!1,clearTimeout(x.performance.timer),t.each(l,function(t,e){n+=e["Execution Time"]}),e+=" "+n+"ms",a&&(e+=" '"+a+"'"),r.length>1&&(e+=" ("+r.length+")"),(console.group!==i||console.table!==i)&&l.length>0&&(console.groupCollapsed(e),console.table?console.table(l):t.each(l,function(t,e){console.log(e.Name+": "+e["Execution Time"]+"ms")}),console.groupEnd()),l=[]}},invoke:function(e,n,r){var a,s,l,u=f;return n=n||h,r=T||r,"string"==typeof e&&u!==i&&(e=e.split(/[\. ]/),a=e.length-1,t.each(e,function(n,o){var r=n!=a?o+e[n+1].charAt(0).toUpperCase()+e[n+1].slice(1):e;if(t.isPlainObject(u[r])&&n!=a)u=u[r];else{if(u[r]!==i)return s=u[r],!1;if(!t.isPlainObject(u[o])||n==a)return u[o]!==i&&(s=u[o],!1);u=u[o]}})),t.isFunction(s)?l=s.apply(r,n):s!==i&&(l=s),t.isArray(o)?o.push(l):o!==i?o=[o,l]:l!==i&&(o=l),s!==i&&s}},x.initialize()}),o!==i?o:this},t.fn.transition.exists={},t.fn.transition.settings={name:"Transition",silent:!1,debug:!1,verbose:!1,performance:!0,namespace:"transition",interval:0,reverse:"auto",onStart:function(){},onComplete:function(){},onShow:function(){},onHide:function(){},useFailSafe:!0,failSafeDelay:100,allowRepeats:!1,displayType:!1,animation:"fade",duration:!1,queue:!0,metadata:{displayType:"display"},className:{animating:"animating",disabled:"disabled",hidden:"hidden",inward:"in",loading:"loading",looping:"looping",outward:"out",transition:"transition",visible:"visible"},error:{noAnimation:"Element is no longer attached to DOM. Unable to animate.  Use silent setting to surpress this warning in production.",repeated:"That animation is already occurring, cancelling repeated animation",method:"The method you called is not defined",support:"This browser does not support CSS animations"}}}(jQuery,window,document);