(function(h,m){"object"===typeof module&&"object"===typeof module.exports?module.exports=h.document?m(h,!0):function(h){if(!h.document)throw Error("jQuery requires a window with a document");return m(h)}:m(h)})("undefined"!==typeof window?window:this,function(h,m){function l(a){var c=!!a&&"length"in a&&a.length,b=g.type(a);return"function"===b||g.isWindow(a)?!1:"array"===b||0===c||"number"===typeof c&&0<c&&c-1 in a}function n(a,c,b){if(g.isFunction(c))return g.grep(a,function(a,q){return!!c.call(a,
q,a)!==b});if(c.nodeType)return g.grep(a,function(a){return a===c!==b});if("string"===typeof c){if(Tb.test(c))return g.filter(c,a,b);c=g.filter(c,a)}return g.grep(a,function(a){return-1<g.inArray(a,c)!==b})}function b(a,c){do a=a[c];while(a&&1!==a.nodeType);return a}function k(a){var c={};g.each(a.match(V)||[],function(a,b){c[b]=!0});return c}function a(){u.addEventListener?(u.removeEventListener("DOMContentLoaded",c),h.removeEventListener("load",c)):(u.detachEvent("onreadystatechange",c),h.detachEvent("onload",
c))}function c(){if(u.addEventListener||"load"===h.event.type||"complete"===u.readyState)a(),g.ready()}function d(a,c,b){if(void 0===b&&1===a.nodeType)if(b="data-"+c.replace(Ub,"-$1").toLowerCase(),b=a.getAttribute(b),"string"===typeof b){try{b="true"===b?!0:"false"===b?!1:"null"===b?null:+b+""===b?+b:Vb.test(b)?g.parseJSON(b):b}catch(d){}g.data(a,c,b)}else b=void 0;return b}function e(a){for(var c in a)if(("data"!==c||!g.isEmptyObject(a[c]))&&"toJSON"!==c)return!1;return!0}function f(a,c,b,d){if(ta(a)){var e=
g.expando,f=a.nodeType,k=f?g.cache:a,h=f?a[e]:a[e]&&e;if(h&&k[h]&&(d||k[h].data)||void 0!==b||"string"!==typeof c){h||(h=f?a[e]=W.pop()||g.guid++:e);k[h]||(k[h]=f?{}:{toJSON:g.noop});if("object"===typeof c||"function"===typeof c)d?k[h]=g.extend(k[h],c):k[h].data=g.extend(k[h].data,c);a=k[h];d||(a.data||(a.data={}),a=a.data);void 0!==b&&(a[g.camelCase(c)]=b);"string"===typeof c?(b=a[c],null==b&&(b=a[g.camelCase(c)])):b=a;return b}}}function p(a,c,b){if(ta(a)){var d,f,O=a.nodeType,k=O?g.cache:a,h=O?
a[g.expando]:g.expando;if(k[h]){if(c&&(d=b?k[h]:k[h].data)){g.isArray(c)?c=c.concat(g.map(c,g.camelCase)):c in d?c=[c]:(c=g.camelCase(c),c=c in d?[c]:c.split(" "));for(f=c.length;f--;)delete d[c[f]];if(b?!e(d):!g.isEmptyObject(d))return}if(!b&&(delete k[h].data,!e(k[h])))return;O?g.cleanData([a],!0):t.deleteExpando||k!=k.window?delete k[h]:k[h]=void 0}}}function w(a,c,b,d){var e,f=1,k=20,h=d?function(){return d.cur()}:function(){return g.css(a,c,"")},p=h(),l=b&&b[3]||(g.cssNumber[c]?"":"px"),n=(g.cssNumber[c]||
"px"!==l&&+p)&&Na.exec(g.css(a,c));if(n&&n[3]!==l){l=l||n[3];b=b||[];n=+p||1;do f=f||".5",n/=f,g.style(a,c,n+l);while(f!==(f=h()/p)&&1!==f&&--k)}b&&(n=+n||+p||0,e=b[1]?n+(b[1]+1)*b[2]:+b[2],d&&(d.unit=l,d.start=n,d.end=e));return e}function y(a){var c="abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video".split(" ");a=a.createDocumentFragment();if(a.createElement)for(;c.length;)a.createElement(c.pop());
return a}function F(a,c){var b,d,e=0,f="undefined"!==typeof a.getElementsByTagName?a.getElementsByTagName(c||"*"):"undefined"!==typeof a.querySelectorAll?a.querySelectorAll(c||"*"):void 0;if(!f)for(f=[],b=a.childNodes||a;null!=(d=b[e]);e++)!c||g.nodeName(d,c)?f.push(d):g.merge(f,F(d,c));return void 0===c||c&&g.nodeName(a,c)?g.merge([a],f):f}function J(a,c){for(var b,d=0;null!=(b=a[d]);d++)g._data(b,"globalEval",!c||g._data(c[d],"globalEval"))}function G(a){Oa.test(a.type)&&(a.defaultChecked=a.checked)}
function C(a,c,b,d,e){for(var f,k,h,p,l,n,w=a.length,m=y(c),u=[],Ca=0;Ca<w;Ca++)if((k=a[Ca])||0===k)if("object"===g.type(k))g.merge(u,k.nodeType?[k]:k);else if(Xb.test(k)){h=h||m.appendChild(c.createElement("div"));p=(hb.exec(k)||["",""])[1].toLowerCase();n=D[p]||D._default;h.innerHTML=n[1]+g.htmlPrefilter(k)+n[2];for(f=n[0];f--;)h=h.lastChild;!t.leadingWhitespace&&Pa.test(k)&&u.push(c.createTextNode(Pa.exec(k)[0]));if(!t.tbody)for(f=(k="table"!==p||ib.test(k)?"<table>"!==n[1]||ib.test(k)?0:h:h.firstChild)&&
k.childNodes.length;f--;)g.nodeName(l=k.childNodes[f],"tbody")&&!l.childNodes.length&&k.removeChild(l);g.merge(u,h.childNodes);for(h.textContent="";h.firstChild;)h.removeChild(h.firstChild);h=m.lastChild}else u.push(c.createTextNode(k));h&&m.removeChild(h);t.appendChecked||g.grep(F(u,"input"),G);for(Ca=0;k=u[Ca++];)if(d&&-1<g.inArray(k,d))e&&e.push(k);else if(a=g.contains(k.ownerDocument,k),h=F(m.appendChild(k),"script"),a&&J(h),b)for(f=0;k=h[f++];)jb.test(k.type||"")&&b.push(k);return m}function H(){return!0}
function Q(){return!1}function S(){try{return u.activeElement}catch(a){}}function M(a,c,b,d,e,f){var k,h;if("object"===typeof c){"string"!==typeof b&&(d=d||b,b=void 0);for(h in c)M(a,h,b,d,c[h],f);return a}null==d&&null==e?(e=b,d=b=void 0):null==e&&("string"===typeof b?(e=d,d=void 0):(e=d,d=b,b=void 0));if(!1===e)e=Q;else if(!e)return a;1===f&&(k=e,e=function(a){g().off(a);return k.apply(this,arguments)},e.guid=k.guid||(k.guid=g.guid++));return a.each(function(){g.event.add(this,c,e,d,b)})}function la(a,
c){return g.nodeName(a,"table")&&g.nodeName(11!==c.nodeType?c:c.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function ua(a){a.type=(null!==g.find.attr(a,"type"))+"/"+a.type;return a}function Aa(a){var c=Yb.exec(a.type);c?a.type=c[1]:a.removeAttribute("type");return a}function E(a,c){if(1===c.nodeType&&g.hasData(a)){var b,d,e;d=g._data(a);var f=g._data(c,d),k=d.events;if(k)for(b in delete f.handle,f.events={},k)for(d=0,e=k[b].length;d<
e;d++)g.event.add(c,b,k[b][d]);f.data&&(f.data=g.extend({},f.data))}}function ga(a,c,b,d){c=kb.apply([],c);var e,f,k,h,p=0,l=a.length,n=l-1,w=c[0],m=g.isFunction(w);if(m||1<l&&"string"===typeof w&&!t.checkClone&&Zb.test(w))return a.each(function(e){var g=a.eq(e);m&&(c[0]=w.call(this,e,g.html()));ga(g,c,b,d)});if(l&&(h=C(c,a[0].ownerDocument,!1,a,d),e=h.firstChild,1===h.childNodes.length&&(h=e),e||d)){k=g.map(F(h,"script"),ua);for(f=k.length;p<l;p++)e=h,p!==n&&(e=g.clone(e,!0,!0),f&&g.merge(k,F(e,
"script"))),b.call(a[p],e,p);if(f)for(h=k[k.length-1].ownerDocument,g.map(k,Aa),p=0;p<f;p++)e=k[p],jb.test(e.type||"")&&!g._data(e,"globalEval")&&g.contains(h,e)&&(e.src?g._evalUrl&&g._evalUrl(e.src):g.globalEval((e.text||e.textContent||e.innerHTML||"").replace($b,"")));h=e=null}return a}function lb(a,c,b){for(var d=c?g.filter(c,a):a,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||g.cleanData(F(c)),c.parentNode&&(b&&g.contains(c.ownerDocument,c)&&J(F(c,"script")),c.parentNode.removeChild(c));return a}function mb(a,
c){var b=g(c.createElement(a)).appendTo(c.body),d=g.css(b[0],"display");b.detach();return d}function va(a){var c=u,b=nb[a];b||(b=mb(a,c),"none"!==b&&b||(Y=(Y||g("<iframe frameborder='0' width='0' height='0'/>")).appendTo(c.documentElement),c=(Y[0].contentWindow||Y[0].contentDocument).document,c.write(),c.close(),b=mb(a,c),Y.detach()),nb[a]=b);return b}function Qa(a,c){return{get:function(){if(a())delete this.get;else return(this.get=c).apply(this,arguments)}}}function ob(a){if(a in pb)return a;for(var c=
a.charAt(0).toUpperCase()+a.slice(1),b=qb.length;b--;)if(a=qb[b]+c,a in pb)return a}function rb(a,c){for(var b,d,e,f=[],k=0,h=a.length;k<h;k++)d=a[k],d.style&&(f[k]=g._data(d,"olddisplay"),b=d.style.display,c?(f[k]||"none"!==b||(d.style.display=""),""===d.style.display&&wa(d)&&(f[k]=g._data(d,"olddisplay",va(d.nodeName)))):(e=wa(d),(b&&"none"!==b||!e)&&g._data(d,"olddisplay",e?b:g.css(d,"display"))));for(k=0;k<h;k++)d=a[k],!d.style||c&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=
c?f[k]||"":"none");return a}function sb(a,c,b){return(a=ac.exec(c))?Math.max(0,a[1]-(b||0))+(a[2]||"px"):c}function tb(a,c,b,d,e){c=b===(d?"border":"content")?4:"width"===c?1:0;for(var f=0;4>c;c+=2)"margin"===b&&(f+=g.css(a,b+da[c],!0,e)),d?("content"===b&&(f-=g.css(a,"padding"+da[c],!0,e)),"margin"!==b&&(f-=g.css(a,"border"+da[c]+"Width",!0,e))):(f+=g.css(a,"padding"+da[c],!0,e),"padding"!==b&&(f+=g.css(a,"border"+da[c]+"Width",!0,e)));return f}function ub(a,c,b){var d=!0,e="width"===c?a.offsetWidth:
a.offsetHeight,f=T(a),k=t.boxSizing&&"border-box"===g.css(a,"boxSizing",!1,f);if(0>=e||null==e){e=R(a,c,f);if(0>e||null==e)e=a.style[c];if(Ea.test(e))return e;d=k&&(t.boxSizingReliable()||e===a.style[c]);e=parseFloat(e)||0}return e+tb(a,c,b||(k?"border":"content"),d,f)+"px"}function N(a,c,b,d,e){return new N.prototype.init(a,c,b,d,e)}function vb(){h.setTimeout(function(){ma=void 0});return ma=g.now()}function Fa(a,c){var b,d={height:a},e=0;for(c=c?1:0;4>e;e+=2-c)b=da[e],d["margin"+b]=d["padding"+
b]=a;c&&(d.opacity=d.width=a);return d}function wb(a,c,b){for(var d,e=(U.tweeners[c]||[]).concat(U.tweeners["*"]),g=0,f=e.length;g<f;g++)if(d=e[g].call(b,c,a))return d}function bc(a,c){var b,d,e,f,k;for(b in a)if(d=g.camelCase(b),e=c[d],f=a[b],g.isArray(f)&&(e=f[1],f=a[b]=f[0]),b!==d&&(a[d]=f,delete a[b]),(k=g.cssHooks[d])&&"expand"in k)for(b in f=k.expand(f),delete a[d],f)b in a||(a[b]=f[b],c[b]=e);else c[d]=e}function U(a,c,b){var d,e=0,f=U.prefilters.length,k=g.Deferred().always(function(){delete h.elem}),
h=function(){if(d)return!1;for(var c=ma||vb(),c=Math.max(0,p.startTime+p.duration-c),b=1-(c/p.duration||0),e=0,x=p.tweens.length;e<x;e++)p.tweens[e].run(b);k.notifyWith(a,[p,b,c]);if(1>b&&x)return c;k.resolveWith(a,[p]);return!1},p=k.promise({elem:a,props:g.extend({},c),opts:g.extend(!0,{specialEasing:{},easing:g.easing._default},b),originalProperties:c,originalOptions:b,startTime:ma||vb(),duration:b.duration,tweens:[],createTween:function(c,b){var d=g.Tween(a,p.opts,c,b,p.opts.specialEasing[c]||
p.opts.easing);p.tweens.push(d);return d},stop:function(c){var b=0,e=c?p.tweens.length:0;if(d)return this;for(d=!0;b<e;b++)p.tweens[b].run(1);c?(k.notifyWith(a,[p,1,0]),k.resolveWith(a,[p,c])):k.rejectWith(a,[p,c]);return this}});b=p.props;for(bc(b,p.opts.specialEasing);e<f;e++)if(c=U.prefilters[e].call(p,a,b,p.opts))return g.isFunction(c.stop)&&(g._queueHooks(p.elem,p.opts.queue).stop=g.proxy(c.stop,c)),c;g.map(b,wb,p);g.isFunction(p.opts.start)&&p.opts.start.call(a,p);g.fx.timer(g.extend(h,{elem:a,
anim:p,queue:p.opts.queue}));return p.progress(p.opts.progress).done(p.opts.done,p.opts.complete).fail(p.opts.fail).always(p.opts.always)}function ha(a){return g.attr(a,"class")||""}function xb(a){return function(c,b){"string"!==typeof c&&(b=c,c="*");var d,e=0,f=c.toLowerCase().match(V)||[];if(g.isFunction(b))for(;d=f[e++];)"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(b)):(a[d]=a[d]||[]).push(b)}}function yb(a,c,b,d){function e(h){var p;f[h]=!0;g.each(a[h]||[],function(a,q){var g=
q(c,b,d);if("string"===typeof g&&!k&&!f[g])return c.dataTypes.unshift(g),e(g),!1;if(k)return!(p=g)});return p}var f={},k=a===Ra;return e(c.dataTypes[0])||!f["*"]&&e("*")}function Sa(a,c){var b,d,e=g.ajaxSettings.flatOptions||{};for(d in c)void 0!==c[d]&&((e[d]?a:b||(b={}))[d]=c[d]);b&&g.extend(!0,a,b);return a}function cc(a){if(!g.contains(a.ownerDocument||u,a))return!0;for(;a&&1===a.nodeType;){if("none"===(a.style&&a.style.display||g.css(a,"display"))||"hidden"===a.type)return!0;a=a.parentNode}return!1}
function Ta(a,c,b,d){var e;if(g.isArray(c))g.each(c,function(c,e){b||dc.test(a)?d(a,e):Ta(a+"["+("object"===typeof e&&null!=e?c:"")+"]",e,b,d)});else if(b||"object"!==g.type(c))d(a,c);else for(e in c)Ta(a+"["+e+"]",c[e],b,d)}function Ua(){try{return new h.XMLHttpRequest}catch(a){}}function zb(){try{return new h.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}}function Ab(a){return g.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}var W=[],u=h.document,ea=W.slice,kb=W.concat,Va=W.push,Bb=
W.indexOf,Ga={},ec=Ga.toString,na=Ga.hasOwnProperty,t={},g=function(a,c){return new g.fn.init(a,c)},fc=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,gc=/^-ms-/,hc=/-([\da-z])/gi,ic=function(a,c){return c.toUpperCase()};g.fn=g.prototype={jquery:"1.12.4",constructor:g,selector:"",length:0,toArray:function(){return ea.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:ea.call(this)},pushStack:function(a){a=g.merge(this.constructor(),a);a.prevObject=this;a.context=this.context;return a},
each:function(a){return g.each(this,a)},map:function(a){return this.pushStack(g.map(this,function(c,b){return a.call(c,b,c)}))},slice:function(){return this.pushStack(ea.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var c=this.length;a=+a+(0>a?c:0);return this.pushStack(0<=a&&a<c?[this[a]]:[])},end:function(){return this.prevObject||this.constructor()},push:Va,sort:W.sort,splice:W.splice};g.extend=g.fn.extend=function(){var a,c,b,d,
e,f=arguments[0]||{},k=1,h=arguments.length,p=!1;"boolean"===typeof f&&(p=f,f=arguments[k]||{},k++);"object"===typeof f||g.isFunction(f)||(f={});k===h&&(f=this,k--);for(;k<h;k++)if(null!=(e=arguments[k]))for(d in e)a=f[d],b=e[d],f!==b&&(p&&b&&(g.isPlainObject(b)||(c=g.isArray(b)))?(c?(c=!1,a=a&&g.isArray(a)?a:[]):a=a&&g.isPlainObject(a)?a:{},f[d]=g.extend(p,a,b)):void 0!==b&&(f[d]=b));return f};g.extend({expando:"jQuery"+("1.12.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw Error(a);
},noop:function(){},isFunction:function(a){return"function"===g.type(a)},isArray:Array.isArray||function(a){return"array"===g.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){var c=a&&a.toString();return!g.isArray(a)&&0<=c-parseFloat(c)+1},isEmptyObject:function(a){for(var c in a)return!1;return!0},isPlainObject:function(a){var c;if(!a||"object"!==g.type(a)||a.nodeType||g.isWindow(a))return!1;try{if(a.constructor&&!na.call(a,"constructor")&&!na.call(a.constructor.prototype,
"isPrototypeOf"))return!1}catch(b){return!1}if(!t.ownFirst)for(c in a)return na.call(a,c);for(c in a);return void 0===c||na.call(a,c)},type:function(a){return null==a?a+"":"object"===typeof a||"function"===typeof a?Ga[ec.call(a)]||"object":typeof a},globalEval:function(a){a&&g.trim(a)&&(h.execScript||function(a){h.eval.call(h,a)})(a)},camelCase:function(a){return a.replace(gc,"ms-").replace(hc,ic)},nodeName:function(a,c){return a.nodeName&&a.nodeName.toLowerCase()===c.toLowerCase()},each:function(a,
c){var b,d=0;if(l(a))for(b=a.length;d<b&&!1!==c.call(a[d],d,a[d]);d++);else for(d in a)if(!1===c.call(a[d],d,a[d]))break;return a},trim:function(a){return null==a?"":(a+"").replace(fc,"")},makeArray:function(a,c){var b=c||[];null!=a&&(l(Object(a))?g.merge(b,"string"===typeof a?[a]:a):Va.call(b,a));return b},inArray:function(a,c,b){var d;if(c){if(Bb)return Bb.call(c,a,b);d=c.length;for(b=b?0>b?Math.max(0,d+b):b:0;b<d;b++)if(b in c&&c[b]===a)return b}return-1},merge:function(a,c){for(var b=+c.length,
d=0,e=a.length;d<b;)a[e++]=c[d++];if(b!==b)for(;void 0!==c[d];)a[e++]=c[d++];a.length=e;return a},grep:function(a,c,b){for(var d=[],e=0,g=a.length,f=!b;e<g;e++)b=!c(a[e],e),b!==f&&d.push(a[e]);return d},map:function(a,c,b){var d,e,g=0,f=[];if(l(a))for(d=a.length;g<d;g++)e=c(a[g],g,b),null!=e&&f.push(e);else for(g in a)e=c(a[g],g,b),null!=e&&f.push(e);return kb.apply([],f)},guid:1,proxy:function(a,c){var b,d;"string"===typeof c&&(d=a[c],c=a,a=d);if(g.isFunction(a))return b=ea.call(arguments,2),d=function(){return a.apply(c||
this,b.concat(ea.call(arguments)))},d.guid=a.guid=a.guid||g.guid++,d},now:function(){return+new Date},support:t});"function"===typeof Symbol&&(g.fn[Symbol.iterator]=W[Symbol.iterator]);g.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,c){Ga["[object "+c+"]"]=c.toLowerCase()});var ra=function(a){function c(a,b,d,q){var e,g,x,f,r,k=b&&b.ownerDocument,h=b?b.nodeType:9;d=d||[];if("string"!==typeof a||!a||1!==h&&9!==h&&11!==h)return d;if(!q&&((b?b.ownerDocument||
b:P)!==I&&oa(b),b=b||I,Z)){if(11!==h&&(f=wa.exec(a)))if(e=f[1])if(9===h)if(g=b.getElementById(e)){if(g.id===e)return d.push(g),d}else return d;else{if(k&&(g=k.getElementById(e))&&M(b,g)&&g.id===e)return d.push(g),d}else{if(f[2])return pa.apply(d,b.getElementsByTagName(a)),d;if((e=f[3])&&E.getElementsByClassName&&b.getElementsByClassName)return pa.apply(d,b.getElementsByClassName(e)),d}if(!(!E.qsa||S[a+" "]||z&&z.test(a))){if(1!==h)k=b,r=a;else if("object"!==b.nodeName.toLowerCase()){(x=b.getAttribute("id"))?
x=x.replace(Aa,"\\$&"):b.setAttribute("id",x=A);f=Da(a);e=f.length;for(g=ka.test(x)?"#"+x:"[id='"+x+"']";e--;)f[e]=g+" "+w(f[e]);r=f.join(",");k=la.test(a)&&l(b.parentNode)||b}if(r)try{return pa.apply(d,k.querySelectorAll(r)),d}catch(B){}finally{x===A&&b.removeAttribute("id")}}}return Q(a.replace(X,"$1"),b,d,q)}function b(){function a(b,d){c.push(b+" ")>v.cacheLength&&delete a[c.shift()];return a[b+" "]=d}var c=[];return a}function d(a){a[A]=!0;return a}function e(a){var c=I.createElement("div");
try{return!!a(c)}catch(b){return!1}finally{c.parentNode&&c.parentNode.removeChild(c)}}function g(a,c){for(var b=a.split("|"),d=b.length;d--;)v.attrHandle[b[d]]=c}function f(a,c){var b=c&&a,d=b&&1===a.nodeType&&1===c.nodeType&&(~c.sourceIndex||-2147483648)-(~a.sourceIndex||-2147483648);if(d)return d;if(b)for(;b=b.nextSibling;)if(b===c)return-1;return a?1:-1}function k(a){return function(c){return"input"===c.nodeName.toLowerCase()&&c.type===a}}function h(a){return function(c){var b=c.nodeName.toLowerCase();
return("input"===b||"button"===b)&&c.type===a}}function p(a){return d(function(c){c=+c;return d(function(b,d){for(var q,e=a([],b.length,c),g=e.length;g--;)b[q=e[g]]&&(b[q]=!(d[q]=b[q]))})})}function l(a){return a&&"undefined"!==typeof a.getElementsByTagName&&a}function n(){}function w(a){for(var c=0,b=a.length,d="";c<b;c++)d+=a[c].value;return d}function m(a,c,b){var d=c.dir,q=b&&"parentNode"===d,e=ga++;return c.first?function(c,b,e){for(;c=c[d];)if(1===c.nodeType||q)return a(c,b,e)}:function(c,b,
g){var x,f,r=[D,e];if(g)for(;c=c[d];){if((1===c.nodeType||q)&&a(c,b,g))return!0}else for(;c=c[d];)if(1===c.nodeType||q){f=c[A]||(c[A]={});f=f[c.uniqueID]||(f[c.uniqueID]={});if((x=f[d])&&x[0]===D&&x[1]===e)return r[2]=x[2];f[d]=r;if(r[2]=a(c,b,g))return!0}}}function y(a){return 1<a.length?function(c,b,d){for(var q=a.length;q--;)if(!a[q](c,b,d))return!1;return!0}:a[0]}function F(a,c,b,d,q){for(var e,g=[],x=0,f=a.length,r=null!=c;x<f;x++)if(e=a[x])if(!b||b(e,d,q))g.push(e),r&&c.push(x);return g}function t(a,
b,q,e,g,f){e&&!e[A]&&(e=t(e));g&&!g[A]&&(g=t(g,f));return d(function(d,f,r,k){var h,B,K=[],O=[],p=f.length,l;if(!(l=d)){l=b||"*";for(var n=r.nodeType?[r]:r,w=[],za=0,m=n.length;za<m;za++)c(l,n[za],w);l=w}l=!a||!d&&b?l:F(l,K,a,r,k);n=q?g||(d?a:p||e)?[]:f:l;q&&q(l,n,r,k);if(e)for(h=F(n,O),e(h,[],r,k),r=h.length;r--;)if(B=h[r])n[O[r]]=!(l[O[r]]=B);if(d){if(g||a){if(g){h=[];for(r=n.length;r--;)(B=n[r])&&h.push(l[r]=B);g(null,n=[],h,k)}for(r=n.length;r--;)(B=n[r])&&-1<(h=g?T(d,B):K[r])&&(d[h]=!(f[h]=B))}}else n=
F(n===f?n.splice(p,n.length):n),g?g(null,f,n,k):pa.apply(f,n)})}function u(a){var c,b,d,q=a.length,e=v.relative[a[0].type];b=e||v.relative[" "];for(var g=e?1:0,x=m(function(a){return a===c},b,!0),f=m(function(a){return-1<T(c,a)},b,!0),r=[function(a,b,d){a=!e&&(d||b!==N)||((c=b).nodeType?x(a,b,d):f(a,b,d));c=null;return a}];g<q;g++)if(b=v.relative[a[g].type])r=[m(y(r),b)];else{b=v.filter[a[g].type].apply(null,a[g].matches);if(b[A]){for(d=++g;d<q&&!v.relative[a[d].type];d++);return t(1<g&&y(r),1<g&&
w(a.slice(0,g-1).concat({value:" "===a[g-2].type?"*":""})).replace(X,"$1"),b,g<d&&u(a.slice(g,d)),d<q&&u(a=a.slice(d)),d<q&&w(a))}r.push(b)}return y(r)}function C(a,b){var q=0<b.length,e=0<a.length,g=function(d,g,f,r,k){var h,B,K,O=0,p="0",l=d&&[],n=[],w=N,za=d||e&&v.find.TAG("*",k),m=D+=null==w?1:Math.random()||.1,y=za.length;for(k&&(N=g===I||g||k);p!==y&&null!=(h=za[p]);p++){if(e&&h){B=0;g||h.ownerDocument===I||(oa(h),f=!Z);for(;K=a[B++];)if(K(h,g||I,f)){r.push(h);break}k&&(D=m)}q&&((h=!K&&h)&&
O--,d&&l.push(h))}O+=p;if(q&&p!==O){for(B=0;K=b[B++];)K(l,n,g,f);if(d){if(0<O)for(;p--;)l[p]||n[p]||(n[p]=ea.call(r));n=F(n)}pa.apply(r,n);k&&!d&&0<n.length&&1<O+b.length&&c.uniqueSort(r)}k&&(D=m,N=w);return l};return q?d(g):g}var J,E,v,xa,G,Da,H,Q,N,qa,Ba,oa,I,aa,Z,z,ya,Ha,M,A="sizzle"+1*new Date,P=a.document,D=0,ga=0,U=b(),V=b(),S=b(),W=function(a,c){a===c&&(Ba=!0);return 0},ba={}.hasOwnProperty,R=[],ea=R.pop,fa=R.push,pa=R.push,da=R.slice,T=function(a,c){for(var b=0,d=a.length;b<d;b++)if(a[b]===
c)return b;return-1},ha=/[\x20\t\r\n\f]+/g,X=/^[\x20\t\r\n\f]+|((?:^|[^\\])(?:\\.)*)[\x20\t\r\n\f]+$/g,ma=/^[\x20\t\r\n\f]*,[\x20\t\r\n\f]*/,na=/^[\x20\t\r\n\f]*([>+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,ra=/=[\x20\t\r\n\f]*([^\]'"]*?)[\x20\t\r\n\f]*\]/g,sa=/:((?:\\.|[\w-]|[^\x00-\xa0])+)(?:\((('((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|\[[\x20\t\r\n\f]*((?:\\.|[\w-]|[^\x00-\xa0])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\.|[\w-]|[^\x00-\xa0])+))|)[\x20\t\r\n\f]*\])*)|.*)\)|)/,
ka=/^(?:\\.|[\w-]|[^\x00-\xa0])+$/,ca={ID:/^#((?:\\.|[\w-]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[\w-]|[^\x00-\xa0])+)/,TAG:/^((?:\\.|[\w-]|[^\x00-\xa0])+|[*])/,ATTR:/^\[[\x20\t\r\n\f]*((?:\\.|[\w-]|[^\x00-\xa0])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\.|[\w-]|[^\x00-\xa0])+))|)[\x20\t\r\n\f]*\]/,PSEUDO:/^:((?:\\.|[\w-]|[^\x00-\xa0])+)(?:\((('((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|\[[\x20\t\r\n\f]*((?:\\.|[\w-]|[^\x00-\xa0])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\.|[\w-]|[^\x00-\xa0])+))|)[\x20\t\r\n\f]*\])*)|.*)\)|)/,
CHILD:/^:(only|first|last|nth|nth-last)-(child|of-type)(?:\([\x20\t\r\n\f]*(even|odd|(([+-]|)(\d*)n|)[\x20\t\r\n\f]*(?:([+-]|)[\x20\t\r\n\f]*(\d+)|))[\x20\t\r\n\f]*\)|)/i,bool:/^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$/i,needsContext:/^[\x20\t\r\n\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\([\x20\t\r\n\f]*((?:-\d)?\d*)[\x20\t\r\n\f]*\)|)(?=[^-]|$)/i},ta=/^(?:input|select|textarea|button)$/i,ua=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,
wa=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,la=/[+~]/,Aa=/'|\\/g,ia=/\\([\da-f]{1,6}[\x20\t\r\n\f]?|([\x20\t\r\n\f])|.)/ig,ja=function(a,c,b){a="0x"+c-65536;return a!==a||b?c:0>a?String.fromCharCode(a+65536):String.fromCharCode(a>>10|55296,a&1023|56320)},va=function(){oa()};try{pa.apply(R=da.call(P.childNodes),P.childNodes),R[P.childNodes.length].nodeType}catch(Oc){pa={apply:R.length?function(a,c){fa.apply(a,da.call(c))}:function(a,c){for(var b=a.length,d=0;a[b++]=c[d++];);a.length=b-1}}}E=c.support={};
G=c.isXML=function(a){return(a=a&&(a.ownerDocument||a).documentElement)?"HTML"!==a.nodeName:!1};oa=c.setDocument=function(a){var c;a=a?a.ownerDocument||a:P;if(a===I||9!==a.nodeType||!a.documentElement)return I;I=a;aa=I.documentElement;Z=!G(I);(c=I.defaultView)&&c.top!==c&&(c.addEventListener?c.addEventListener("unload",va,!1):c.attachEvent&&c.attachEvent("onunload",va));E.attributes=e(function(a){a.className="i";return!a.getAttribute("className")});E.getElementsByTagName=e(function(a){a.appendChild(I.createComment(""));
return!a.getElementsByTagName("*").length});E.getElementsByClassName=Y.test(I.getElementsByClassName);E.getById=e(function(a){aa.appendChild(a).id=A;return!I.getElementsByName||!I.getElementsByName(A).length});E.getById?(v.find.ID=function(a,c){if("undefined"!==typeof c.getElementById&&Z){var b=c.getElementById(a);return b?[b]:[]}},v.filter.ID=function(a){var c=a.replace(ia,ja);return function(a){return a.getAttribute("id")===c}}):(delete v.find.ID,v.filter.ID=function(a){var c=a.replace(ia,ja);return function(a){return(a=
"undefined"!==typeof a.getAttributeNode&&a.getAttributeNode("id"))&&a.value===c}});v.find.TAG=E.getElementsByTagName?function(a,c){if("undefined"!==typeof c.getElementsByTagName)return c.getElementsByTagName(a);if(E.qsa)return c.querySelectorAll(a)}:function(a,c){var b,d=[],q=0,e=c.getElementsByTagName(a);if("*"===a){for(;b=e[q++];)1===b.nodeType&&d.push(b);return d}return e};v.find.CLASS=E.getElementsByClassName&&function(a,c){if("undefined"!==typeof c.getElementsByClassName&&Z)return c.getElementsByClassName(a)};
ya=[];z=[];if(E.qsa=Y.test(I.querySelectorAll))e(function(a){aa.appendChild(a).innerHTML="<a id='"+A+"'></a><select id='"+A+"-\r\\' msallowcapture=''><option selected=''></option></select>";a.querySelectorAll("[msallowcapture^='']").length&&z.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")");a.querySelectorAll("[selected]").length||z.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)");a.querySelectorAll("[id~="+
A+"-]").length||z.push("~=");a.querySelectorAll(":checked").length||z.push(":checked");a.querySelectorAll("a#"+A+"+*").length||z.push(".#.+[+~]")}),e(function(a){var c=I.createElement("input");c.setAttribute("type","hidden");a.appendChild(c).setAttribute("name","D");a.querySelectorAll("[name=d]").length&&z.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?=");a.querySelectorAll(":enabled").length||z.push(":enabled",":disabled");a.querySelectorAll("*,:x");z.push(",.*:")});(E.matchesSelector=Y.test(Ha=aa.matches||
aa.webkitMatchesSelector||aa.mozMatchesSelector||aa.oMatchesSelector||aa.msMatchesSelector))&&e(function(a){E.disconnectedMatch=Ha.call(a,"div");Ha.call(a,"[s!='']:x");ya.push("!=",":((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)")});
z=z.length&&new RegExp(z.join("|"));ya=ya.length&&new RegExp(ya.join("|"));M=(c=Y.test(aa.compareDocumentPosition))||Y.test(aa.contains)?function(a,c){var b=9===a.nodeType?a.documentElement:a,d=c&&c.parentNode;return a===d||!!(d&&1===d.nodeType&&(b.contains?b.contains(d):a.compareDocumentPosition&&a.compareDocumentPosition(d)&16))}:function(a,c){if(c)for(;c=c.parentNode;)if(c===a)return!0;return!1};W=c?function(a,c){if(a===c)return Ba=!0,0;var b=!a.compareDocumentPosition-!c.compareDocumentPosition;
if(b)return b;b=(a.ownerDocument||a)===(c.ownerDocument||c)?a.compareDocumentPosition(c):1;return b&1||!E.sortDetached&&c.compareDocumentPosition(a)===b?a===I||a.ownerDocument===P&&M(P,a)?-1:c===I||c.ownerDocument===P&&M(P,c)?1:qa?T(qa,a)-T(qa,c):0:b&4?-1:1}:function(a,c){if(a===c)return Ba=!0,0;var b,d=0;b=a.parentNode;var q=c.parentNode,e=[a],g=[c];if(!b||!q)return a===I?-1:c===I?1:b?-1:q?1:qa?T(qa,a)-T(qa,c):0;if(b===q)return f(a,c);for(b=a;b=b.parentNode;)e.unshift(b);for(b=c;b=b.parentNode;)g.unshift(b);
for(;e[d]===g[d];)d++;return d?f(e[d],g[d]):e[d]===P?-1:g[d]===P?1:0};return I};c.matches=function(a,b){return c(a,null,null,b)};c.matchesSelector=function(a,b){(a.ownerDocument||a)!==I&&oa(a);b=b.replace(ra,"='$1']");if(!(!E.matchesSelector||!Z||S[b+" "]||ya&&ya.test(b)||z&&z.test(b)))try{var d=Ha.call(a,b);if(d||E.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(q){}return 0<c(b,I,null,[a]).length};c.contains=function(a,c){(a.ownerDocument||a)!==I&&oa(a);return M(a,c)};c.attr=
function(a,c){(a.ownerDocument||a)!==I&&oa(a);var b=v.attrHandle[c.toLowerCase()],b=b&&ba.call(v.attrHandle,c.toLowerCase())?b(a,c,!Z):void 0;return void 0!==b?b:E.attributes||!Z?a.getAttribute(c):(b=a.getAttributeNode(c))&&b.specified?b.value:null};c.error=function(a){throw Error("Syntax error, unrecognized expression: "+a);};c.uniqueSort=function(a){var c,b=[],d=0,q=0;Ba=!E.detectDuplicates;qa=!E.sortStable&&a.slice(0);a.sort(W);if(Ba){for(;c=a[q++];)c===a[q]&&(d=b.push(q));for(;d--;)a.splice(b[d],
1)}qa=null;return a};xa=c.getText=function(a){var c,b="",d=0;c=a.nodeType;if(!c)for(;c=a[d++];)b+=xa(c);else if(1===c||9===c||11===c){if("string"===typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)b+=xa(a)}else if(3===c||4===c)return a.nodeValue;return b};v=c.selectors={cacheLength:50,createPseudo:d,match:ca,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){a[1]=
a[1].replace(ia,ja);a[3]=(a[3]||a[4]||a[5]||"").replace(ia,ja);"~="===a[2]&&(a[3]=" "+a[3]+" ");return a.slice(0,4)},CHILD:function(a){a[1]=a[1].toLowerCase();"nth"===a[1].slice(0,3)?(a[3]||c.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&c.error(a[0]);return a},PSEUDO:function(a){var c,b=!a[6]&&a[2];if(ca.CHILD.test(a[0]))return null;a[3]?a[2]=a[4]||a[5]||"":b&&sa.test(b)&&(c=Da(b,!0))&&(c=b.indexOf(")",b.length-c)-b.length)&&(a[0]=
a[0].slice(0,c),a[2]=b.slice(0,c));return a.slice(0,3)}},filter:{TAG:function(a){var c=a.replace(ia,ja).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===c}},CLASS:function(a){var c=U[a+" "];return c||(c=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+a+"([\\x20\\t\\r\\n\\f]|$)"))&&U(a,function(a){return c.test("string"===typeof a.className&&a.className||"undefined"!==typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,d){return function(q){q=
c.attr(q,a);if(null==q)return"!="===b;if(!b)return!0;q+="";return"="===b?q===d:"!="===b?q!==d:"^="===b?d&&0===q.indexOf(d):"*="===b?d&&-1<q.indexOf(d):"$="===b?d&&q.slice(-d.length)===d:"~="===b?-1<(" "+q.replace(ha," ")+" ").indexOf(d):"|="===b?q===d||q.slice(0,d.length+1)===d+"-":!1}},CHILD:function(a,c,b,d,q){var e="nth"!==a.slice(0,3),g="last"!==a.slice(-4),x="of-type"===c;return 1===d&&0===q?function(a){return!!a.parentNode}:function(c,b,f){var r,k,h,B,K;b=e!==g?"nextSibling":"previousSibling";
var O=c.parentNode,p=x&&c.nodeName.toLowerCase();f=!f&&!x;r=!1;if(O){if(e){for(;b;){for(h=c;h=h[b];)if(x?h.nodeName.toLowerCase()===p:1===h.nodeType)return!1;K=b="only"===a&&!K&&"nextSibling"}return!0}K=[g?O.firstChild:O.lastChild];if(g&&f)for(h=O,k=h[A]||(h[A]={}),k=k[h.uniqueID]||(k[h.uniqueID]={}),r=k[a]||[],r=(B=r[0]===D&&r[1])&&r[2],h=B&&O.childNodes[B];h=++B&&h&&h[b]||(r=B=0)||K.pop();){if(1===h.nodeType&&++r&&h===c){k[a]=[D,B,r];break}}else if(f&&(h=c,k=h[A]||(h[A]={}),k=k[h.uniqueID]||(k[h.uniqueID]=
{}),r=k[a]||[],r=B=r[0]===D&&r[1]),!1===r)for(;(h=++B&&h&&h[b]||(r=B=0)||K.pop())&&((x?h.nodeName.toLowerCase()!==p:1!==h.nodeType)||!++r||(f&&(k=h[A]||(h[A]={}),k=k[h.uniqueID]||(k[h.uniqueID]={}),k[a]=[D,r]),h!==c)););r-=q;return r===d||0===r%d&&0<=r/d}}},PSEUDO:function(a,b){var q,e=v.pseudos[a]||v.setFilters[a.toLowerCase()]||c.error("unsupported pseudo: "+a);return e[A]?e(b):1<e.length?(q=[a,a,"",b],v.setFilters.hasOwnProperty(a.toLowerCase())?d(function(a,c){for(var d,q=e(a,b),g=q.length;g--;)d=
T(a,q[g]),a[d]=!(c[d]=q[g])}):function(a){return e(a,0,q)}):e}},pseudos:{not:d(function(a){var c=[],b=[],q=H(a.replace(X,"$1"));return q[A]?d(function(a,c,b,d){d=q(a,null,d,[]);for(var e=a.length;e--;)if(b=d[e])a[e]=!(c[e]=b)}):function(a,d,e){c[0]=a;q(c,null,e,b);c[0]=null;return!b.pop()}}),has:d(function(a){return function(b){return 0<c(a,b).length}}),contains:d(function(a){a=a.replace(ia,ja);return function(c){return-1<(c.textContent||c.innerText||xa(c)).indexOf(a)}}),lang:d(function(a){ka.test(a||
"")||c.error("unsupported lang: "+a);a=a.replace(ia,ja).toLowerCase();return function(c){var b;do if(b=Z?c.lang:c.getAttribute("xml:lang")||c.getAttribute("lang"))return b=b.toLowerCase(),b===a||0===b.indexOf(a+"-");while((c=c.parentNode)&&1===c.nodeType);return!1}}),target:function(c){var b=a.location&&a.location.hash;return b&&b.slice(1)===c.id},root:function(a){return a===aa},focus:function(a){return a===I.activeElement&&(!I.hasFocus||I.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return!1===
a.disabled},disabled:function(a){return!0===a.disabled},checked:function(a){var c=a.nodeName.toLowerCase();return"input"===c&&!!a.checked||"option"===c&&!!a.selected},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return!0===a.selected},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(6>a.nodeType)return!1;return!0},parent:function(a){return!v.pseudos.empty(a)},header:function(a){return ua.test(a.nodeName)},input:function(a){return ta.test(a.nodeName)},button:function(a){var c=
a.nodeName.toLowerCase();return"input"===c&&"button"===a.type||"button"===c},text:function(a){var c;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(c=a.getAttribute("type"))||"text"===c.toLowerCase())},first:p(function(){return[0]}),last:p(function(a,c){return[c-1]}),eq:p(function(a,c,b){return[0>b?b+c:b]}),even:p(function(a,c){for(var b=0;b<c;b+=2)a.push(b);return a}),odd:p(function(a,c){for(var b=1;b<c;b+=2)a.push(b);return a}),lt:p(function(a,c,b){for(c=0>b?b+c:b;0<=--c;)a.push(c);
return a}),gt:p(function(a,c,b){for(b=0>b?b+c:b;++b<c;)a.push(b);return a})}};v.pseudos.nth=v.pseudos.eq;for(J in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})v.pseudos[J]=k(J);for(J in{submit:!0,reset:!0})v.pseudos[J]=h(J);n.prototype=v.filters=v.pseudos;v.setFilters=new n;Da=c.tokenize=function(a,b){var d,q,e,g,f,r,k;if(f=V[a+" "])return b?0:f.slice(0);f=a;r=[];for(k=v.preFilter;f;){if(!d||(q=ma.exec(f)))q&&(f=f.slice(q[0].length)||f),r.push(e=[]);d=!1;if(q=na.exec(f))d=q.shift(),e.push({value:d,
type:q[0].replace(X," ")}),f=f.slice(d.length);for(g in v.filter)!(q=ca[g].exec(f))||k[g]&&!(q=k[g](q))||(d=q.shift(),e.push({value:d,type:g,matches:q}),f=f.slice(d.length));if(!d)break}return b?f.length:f?c.error(a):V(a,r).slice(0)};H=c.compile=function(a,c){var b,d=[],q=[],e=S[a+" "];if(!e){c||(c=Da(a));for(b=c.length;b--;)e=u(c[b]),e[A]?d.push(e):q.push(e);e=S(a,C(q,d));e.selector=a}return e};Q=c.select=function(a,c,b,d){var q,e,g,x,f="function"===typeof a&&a,r=!d&&Da(a=f.selector||a);b=b||[];
if(1===r.length){e=r[0]=r[0].slice(0);if(2<e.length&&"ID"===(g=e[0]).type&&E.getById&&9===c.nodeType&&Z&&v.relative[e[1].type]){c=(v.find.ID(g.matches[0].replace(ia,ja),c)||[])[0];if(!c)return b;f&&(c=c.parentNode);a=a.slice(e.shift().value.length)}for(q=ca.needsContext.test(a)?0:e.length;q--;){g=e[q];if(v.relative[x=g.type])break;if(x=v.find[x])if(d=x(g.matches[0].replace(ia,ja),la.test(e[0].type)&&l(c.parentNode)||c)){e.splice(q,1);a=d.length&&w(e);if(!a)return pa.apply(b,d),b;break}}}(f||H(a,r))(d,
c,!Z,b,!c||la.test(a)&&l(c.parentNode)||c);return b};E.sortStable=A.split("").sort(W).join("")===A;E.detectDuplicates=!!Ba;oa();E.sortDetached=e(function(a){return a.compareDocumentPosition(I.createElement("div"))&1});e(function(a){a.innerHTML="<a href='#'></a>";return"#"===a.firstChild.getAttribute("href")})||g("type|href|height|width",function(a,c,b){if(!b)return a.getAttribute(c,"type"===c.toLowerCase()?1:2)});E.attributes&&e(function(a){a.innerHTML="<input/>";a.firstChild.setAttribute("value",
"");return""===a.firstChild.getAttribute("value")})||g("value",function(a,c,b){if(!b&&"input"===a.nodeName.toLowerCase())return a.defaultValue});e(function(a){return null==a.getAttribute("disabled")})||g("checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",function(a,c,b){var d;if(!b)return!0===a[c]?c.toLowerCase():(d=a.getAttributeNode(c))&&d.specified?d.value:null});return c}(h);g.find=ra;g.expr=ra.selectors;g.expr[":"]=g.expr.pseudos;
g.uniqueSort=g.unique=ra.uniqueSort;g.text=ra.getText;g.isXMLDoc=ra.isXML;g.contains=ra.contains;var sa=function(a,c,b){for(var d=[],e=void 0!==b;(a=a[c])&&9!==a.nodeType;)if(1===a.nodeType){if(e&&g(a).is(b))break;d.push(a)}return d},Cb=function(a,c){for(var b=[];a;a=a.nextSibling)1===a.nodeType&&a!==c&&b.push(a);return b},Db=g.expr.match.needsContext,Eb=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Tb=/^.[^:#\[\.,]*$/;g.filter=function(a,c,b){var d=c[0];b&&(a=":not("+a+")");return 1===c.length&&1===d.nodeType?
g.find.matchesSelector(d,a)?[d]:[]:g.find.matches(a,g.grep(c,function(a){return 1===a.nodeType}))};g.fn.extend({find:function(a){var c,b=[],d=this,e=d.length;if("string"!==typeof a)return this.pushStack(g(a).filter(function(){for(c=0;c<e;c++)if(g.contains(d[c],this))return!0}));for(c=0;c<e;c++)g.find(a,d[c],b);b=this.pushStack(1<e?g.unique(b):b);b.selector=this.selector?this.selector+" "+a:a;return b},filter:function(a){return this.pushStack(n(this,a||[],!1))},not:function(a){return this.pushStack(n(this,
a||[],!0))},is:function(a){return!!n(this,"string"===typeof a&&Db.test(a)?g(a):a||[],!1).length}});var Wa,jc=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(g.fn.init=function(a,c,b){var d;if(!a)return this;b=b||Wa;if("string"===typeof a){d="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&3<=a.length?[null,a,null]:jc.exec(a);if(!d||!d[1]&&c)return!c||c.jquery?(c||b).find(a):this.constructor(c).find(a);if(d[1]){if(c=c instanceof g?c[0]:c,g.merge(this,g.parseHTML(d[1],c&&c.nodeType?c.ownerDocument||c:u,!0)),Eb.test(d[1])&&
g.isPlainObject(c))for(d in c)if(g.isFunction(this[d]))this[d](c[d]);else this.attr(d,c[d])}else{if((c=u.getElementById(d[2]))&&c.parentNode){if(c.id!==d[2])return Wa.find(a);this.length=1;this[0]=c}this.context=u;this.selector=a}return this}if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(g.isFunction(a))return"undefined"!==typeof b.ready?b.ready(a):a(g);void 0!==a.selector&&(this.selector=a.selector,this.context=a.context);return g.makeArray(a,this)}).prototype=g.fn;Wa=g(u);var kc=
/^(?:parents|prev(?:Until|All))/,lc={children:!0,contents:!0,next:!0,prev:!0};g.fn.extend({has:function(a){var c,b=g(a,this),d=b.length;return this.filter(function(){for(c=0;c<d;c++)if(g.contains(this,b[c]))return!0})},closest:function(a,c){for(var b,d=0,e=this.length,f=[],k=Db.test(a)||"string"!==typeof a?g(a,c||this.context):0;d<e;d++)for(b=this[d];b&&b!==c;b=b.parentNode)if(11>b.nodeType&&(k?-1<k.index(b):1===b.nodeType&&g.find.matchesSelector(b,a))){f.push(b);break}return this.pushStack(1<f.length?
g.uniqueSort(f):f)},index:function(a){return a?"string"===typeof a?g.inArray(this[0],g(a)):g.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,c){return this.pushStack(g.uniqueSort(g.merge(this.get(),g(a,c))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});g.each({parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},parents:function(a){return sa(a,"parentNode")},parentsUntil:function(a,
c,b){return sa(a,"parentNode",b)},next:function(a){return b(a,"nextSibling")},prev:function(a){return b(a,"previousSibling")},nextAll:function(a){return sa(a,"nextSibling")},prevAll:function(a){return sa(a,"previousSibling")},nextUntil:function(a,c,b){return sa(a,"nextSibling",b)},prevUntil:function(a,c,b){return sa(a,"previousSibling",b)},siblings:function(a){return Cb((a.parentNode||{}).firstChild,a)},children:function(a){return Cb(a.firstChild)},contents:function(a){return g.nodeName(a,"iframe")?
a.contentDocument||a.contentWindow.document:g.merge([],a.childNodes)}},function(a,c){g.fn[a]=function(b,d){var e=g.map(this,c,b);"Until"!==a.slice(-5)&&(d=b);d&&"string"===typeof d&&(e=g.filter(d,e));1<this.length&&(lc[a]||(e=g.uniqueSort(e)),kc.test(a)&&(e=e.reverse()));return this.pushStack(e)}});var V=/\S+/g;g.Callbacks=function(a){a="string"===typeof a?k(a):g.extend({},a);var c,b,d,e,f=[],h=[],p=-1,l=function(){e=a.once;for(d=c=!0;h.length;p=-1)for(b=h.shift();++p<f.length;)!1===f[p].apply(b[0],
b[1])&&a.stopOnFalse&&(p=f.length,b=!1);a.memory||(b=!1);c=!1;e&&(f=b?[]:"")},n={add:function(){f&&(b&&!c&&(p=f.length-1,h.push(b)),function Wb(c){g.each(c,function(c,b){g.isFunction(b)?a.unique&&n.has(b)||f.push(b):b&&b.length&&"string"!==g.type(b)&&Wb(b)})}(arguments),b&&!c&&l());return this},remove:function(){g.each(arguments,function(a,c){for(var b;-1<(b=g.inArray(c,f,b));)f.splice(b,1),b<=p&&p--});return this},has:function(a){return a?-1<g.inArray(a,f):0<f.length},empty:function(){f&&(f=[]);
return this},disable:function(){e=h=[];f=b="";return this},disabled:function(){return!f},lock:function(){e=!0;b||n.disable();return this},locked:function(){return!!e},fireWith:function(a,b){e||(b=b||[],b=[a,b.slice?b.slice():b],h.push(b),c||l());return this},fire:function(){n.fireWith(this,arguments);return this},fired:function(){return!!d}};return n};g.extend({Deferred:function(a){var c=[["resolve","done",g.Callbacks("once memory"),"resolved"],["reject","fail",g.Callbacks("once memory"),"rejected"],
["notify","progress",g.Callbacks("memory")]],b="pending",d={state:function(){return b},always:function(){e.done(arguments).fail(arguments);return this},then:function(){var a=arguments;return g.Deferred(function(b){g.each(c,function(c,q){var f=g.isFunction(a[c])&&a[c];e[q[1]](function(){var a=f&&f.apply(this,arguments);if(a&&g.isFunction(a.promise))a.promise().progress(b.notify).done(b.resolve).fail(b.reject);else b[q[0]+"With"](this===d?b.promise():this,f?[a]:arguments)})});a=null}).promise()},promise:function(a){return null!=
a?g.extend(a,d):d}},e={};d.pipe=d.then;g.each(c,function(a,q){var g=q[2],f=q[3];d[q[1]]=g.add;f&&g.add(function(){b=f},c[a^1][2].disable,c[2][2].lock);e[q[0]]=function(){e[q[0]+"With"](this===e?d:this,arguments);return this};e[q[0]+"With"]=g.fireWith});d.promise(e);a&&a.call(e,e);return e},when:function(a){var c=0,b=ea.call(arguments),d=b.length,e=1!==d||a&&g.isFunction(a.promise)?d:0,f=1===e?a:g.Deferred(),k=function(a,c,b){return function(d){c[a]=this;b[a]=1<arguments.length?ea.call(arguments):
d;b===h?f.notifyWith(c,b):--e||f.resolveWith(c,b)}},h,p,l;if(1<d)for(h=Array(d),p=Array(d),l=Array(d);c<d;c++)b[c]&&g.isFunction(b[c].promise)?b[c].promise().progress(k(c,p,h)).done(k(c,l,b)).fail(f.reject):--e;e||f.resolveWith(l,b);return f.promise()}});var Ia;g.fn.ready=function(a){g.ready.promise().done(a);return this};g.extend({isReady:!1,readyWait:1,holdReady:function(a){a?g.readyWait++:g.ready(!0)},ready:function(a){(!0===a?--g.readyWait:g.isReady)||(g.isReady=!0,!0!==a&&0<--g.readyWait||(Ia.resolveWith(u,
[g]),g.fn.triggerHandler&&(g(u).triggerHandler("ready"),g(u).off("ready"))))}});g.ready.promise=function(b){if(!Ia)if(Ia=g.Deferred(),"complete"===u.readyState||"loading"!==u.readyState&&!u.documentElement.doScroll)h.setTimeout(g.ready);else if(u.addEventListener)u.addEventListener("DOMContentLoaded",c),h.addEventListener("load",c);else{u.attachEvent("onreadystatechange",c);h.attachEvent("onload",c);var d=!1;try{d=null==h.frameElement&&u.documentElement}catch(e){}d&&d.doScroll&&function B(){if(!g.isReady){try{d.doScroll("left")}catch(c){return h.setTimeout(B,
50)}a();g.ready()}}()}return Ia.promise(b)};g.ready.promise();for(var mc in g(t))break;t.ownFirst="0"===mc;t.inlineBlockNeedsLayout=!1;g(function(){var a,c,b;(c=u.getElementsByTagName("body")[0])&&c.style&&(a=u.createElement("div"),b=u.createElement("div"),b.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(b).appendChild(a),"undefined"!==typeof a.style.zoom&&(a.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",t.inlineBlockNeedsLayout=
a=3===a.offsetWidth)&&(c.style.zoom=1),c.removeChild(b))});(function(){var a=u.createElement("div");t.deleteExpando=!0;try{delete a.test}catch(c){t.deleteExpando=!1}})();var ta=function(a){var c=g.noData[(a.nodeName+" ").toLowerCase()],b=+a.nodeType||1;return 1!==b&&9!==b?!1:!c||!0!==c&&a.getAttribute("classid")===c},Vb=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ub=/([A-Z])/g;g.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){a=a.nodeType?
g.cache[a[g.expando]]:a[g.expando];return!!a&&!e(a)},data:function(a,c,b){return f(a,c,b)},removeData:function(a,c){return p(a,c)},_data:function(a,c,b){return f(a,c,b,!0)},_removeData:function(a,c){return p(a,c,!0)}});g.fn.extend({data:function(a,c){var b,e,f,k=this[0],h=k&&k.attributes;if(void 0===a){if(this.length&&(f=g.data(k),1===k.nodeType&&!g._data(k,"parsedAttrs"))){for(b=h.length;b--;)h[b]&&(e=h[b].name,0===e.indexOf("data-")&&(e=g.camelCase(e.slice(5)),d(k,e,f[e])));g._data(k,"parsedAttrs",
!0)}return f}return"object"===typeof a?this.each(function(){g.data(this,a)}):1<arguments.length?this.each(function(){g.data(this,a,c)}):k?d(k,a,g.data(k,a)):void 0},removeData:function(a){return this.each(function(){g.removeData(this,a)})}});g.extend({queue:function(a,c,b){var d;if(a)return c=(c||"fx")+"queue",d=g._data(a,c),b&&(!d||g.isArray(b)?d=g._data(a,c,g.makeArray(b)):d.push(b)),d||[]},dequeue:function(a,c){c=c||"fx";var b=g.queue(a,c),d=b.length,e=b.shift(),f=g._queueHooks(a,c),k=function(){g.dequeue(a,
c)};"inprogress"===e&&(e=b.shift(),d--);e&&("fx"===c&&b.unshift("inprogress"),delete f.stop,e.call(a,k,f));!d&&f&&f.empty.fire()},_queueHooks:function(a,c){var b=c+"queueHooks";return g._data(a,b)||g._data(a,b,{empty:g.Callbacks("once memory").add(function(){g._removeData(a,c+"queue");g._removeData(a,b)})})}});g.fn.extend({queue:function(a,c){var b=2;"string"!==typeof a&&(c=a,a="fx",b--);return arguments.length<b?g.queue(this[0],a):void 0===c?this:this.each(function(){var b=g.queue(this,a,c);g._queueHooks(this,
a);"fx"===a&&"inprogress"!==b[0]&&g.dequeue(this,a)})},dequeue:function(a){return this.each(function(){g.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){var b,d=1,e=g.Deferred(),f=this,k=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!==typeof a&&(c=a,a=void 0);for(a=a||"fx";k--;)(b=g._data(f[k],a+"queueHooks"))&&b.empty&&(d++,b.empty.add(h));h();return e.promise(c)}});(function(){var a;t.shrinkWrapBlocks=function(){if(null!=a)return a;a=
!1;var c,b,d;if((b=u.getElementsByTagName("body")[0])&&b.style)return c=u.createElement("div"),d=u.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",b.appendChild(d).appendChild(c),"undefined"!==typeof c.style.zoom&&(c.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",c.appendChild(u.createElement("div")).style.width="5px",a=3!==c.offsetWidth),
b.removeChild(d),a}})();var Xa=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Na=new RegExp("^(?:([+-])=|)("+Xa+")([a-z%]*)$","i"),da=["Top","Right","Bottom","Left"],wa=function(a,c){a=c||a;return"none"===g.css(a,"display")||!g.contains(a.ownerDocument,a)},fa=function(a,c,b,d,e,f,k){var h=0,p=a.length,l=null==b;if("object"===g.type(b))for(h in e=!0,b)fa(a,c,h,b[h],!0,f,k);else if(void 0!==d&&(e=!0,g.isFunction(d)||(k=!0),l&&(k?(c.call(a,d),c=null):(l=c,c=function(a,c,b){return l.call(g(a),b)})),c))for(;h<
p;h++)c(a[h],b,k?d:d.call(a[h],h,c(a[h],b)));return e?a:l?c.call(a):p?c(a[0],b):f},Oa=/^(?:checkbox|radio)$/i,hb=/<([\w:-]+)/,jb=/^$|\/(?:java|ecma)script/i,Pa=/^\s+/;(function(){var a=u.createElement("div"),c=u.createDocumentFragment(),b=u.createElement("input");a.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";t.leadingWhitespace=3===a.firstChild.nodeType;t.tbody=!a.getElementsByTagName("tbody").length;t.htmlSerialize=!!a.getElementsByTagName("link").length;t.html5Clone=
"<:nav></:nav>"!==u.createElement("nav").cloneNode(!0).outerHTML;b.type="checkbox";b.checked=!0;c.appendChild(b);t.appendChecked=b.checked;a.innerHTML="<textarea>x</textarea>";t.noCloneChecked=!!a.cloneNode(!0).lastChild.defaultValue;c.appendChild(a);b=u.createElement("input");b.setAttribute("type","radio");b.setAttribute("checked","checked");b.setAttribute("name","t");a.appendChild(b);t.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked;t.noCloneEvent=!!a.addEventListener;a[g.expando]=1;
t.attributes=!a.getAttribute(g.expando)})();var D={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:t.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};D.optgroup=D.option;D.tbody=D.tfoot=D.colgroup=D.caption=
D.thead;D.th=D.td;var Xb=/<|&#?\w+;/,ib=/<tbody/i;(function(){var a,c,b=u.createElement("div");for(a in{submit:!0,change:!0,focusin:!0})c="on"+a,(t[a]=c in h)||(b.setAttribute(c,"t"),t[a]=!1===b.attributes[c].expando)})();var Ya=/^(?:input|select|textarea)$/i,nc=/^key/,oc=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Fb=/^(?:focusinfocus|focusoutblur)$/,Gb=/^([^.]*)(?:\.(.+)|)/;g.event={global:{},add:function(a,c,b,d,e){var f,k,h,p,l,n,w,m,y;if(h=g._data(a)){b.handler&&(p=b,b=p.handler,e=p.selector);
b.guid||(b.guid=g.guid++);(k=h.events)||(k=h.events={});(l=h.handle)||(l=h.handle=function(a){return"undefined"===typeof g||a&&g.event.triggered===a.type?void 0:g.event.dispatch.apply(l.elem,arguments)},l.elem=a);c=(c||"").match(V)||[""];for(h=c.length;h--;)f=Gb.exec(c[h])||[],m=n=f[1],y=(f[2]||"").split(".").sort(),m&&(f=g.event.special[m]||{},m=(e?f.delegateType:f.bindType)||m,f=g.event.special[m]||{},n=g.extend({type:m,origType:n,data:d,handler:b,guid:b.guid,selector:e,needsContext:e&&g.expr.match.needsContext.test(e),
namespace:y.join(".")},p),(w=k[m])||(w=k[m]=[],w.delegateCount=0,f.setup&&!1!==f.setup.call(a,d,y,l)||(a.addEventListener?a.addEventListener(m,l,!1):a.attachEvent&&a.attachEvent("on"+m,l))),f.add&&(f.add.call(a,n),n.handler.guid||(n.handler.guid=b.guid)),e?w.splice(w.delegateCount++,0,n):w.push(n),g.event.global[m]=!0);a=null}},remove:function(a,c,b,d,e){var f,k,h,p,l,n,w,m,y,F,t,u=g.hasData(a)&&g._data(a);if(u&&(n=u.events)){c=(c||"").match(V)||[""];for(l=c.length;l--;)if(h=Gb.exec(c[l])||[],y=t=
h[1],F=(h[2]||"").split(".").sort(),y){w=g.event.special[y]||{};y=(d?w.delegateType:w.bindType)||y;m=n[y]||[];h=h[2]&&new RegExp("(^|\\.)"+F.join("\\.(?:.*\\.|)")+"(\\.|$)");for(p=f=m.length;f--;)k=m[f],!e&&t!==k.origType||b&&b.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,w.remove&&w.remove.call(a,k));p&&!m.length&&(w.teardown&&!1!==w.teardown.call(a,F,u.handle)||g.removeEvent(a,y,u.handle),delete n[y])}else for(y in n)g.event.remove(a,
y+c[l],b,d,!0);g.isEmptyObject(n)&&(delete u.handle,g._removeData(a,"events"))}},trigger:function(a,c,b,d){var e,f,k,p,l,n,w=[b||u],m=na.call(a,"type")?a.type:a;l=na.call(a,"namespace")?a.namespace.split("."):[];k=e=b=b||u;if(3!==b.nodeType&&8!==b.nodeType&&!Fb.test(m+g.event.triggered)&&(-1<m.indexOf(".")&&(l=m.split("."),m=l.shift(),l.sort()),f=0>m.indexOf(":")&&"on"+m,a=a[g.expando]?a:new g.Event(m,"object"===typeof a&&a),a.isTrigger=d?2:3,a.namespace=l.join("."),a.rnamespace=a.namespace?new RegExp("(^|\\.)"+
l.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,a.result=void 0,a.target||(a.target=b),c=null==c?[a]:g.makeArray(c,[a]),l=g.event.special[m]||{},d||!l.trigger||!1!==l.trigger.apply(b,c))){if(!d&&!l.noBubble&&!g.isWindow(b)){p=l.delegateType||m;Fb.test(p+m)||(k=k.parentNode);for(;k;k=k.parentNode)w.push(k),e=k;e===(b.ownerDocument||u)&&w.push(e.defaultView||e.parentWindow||h)}for(n=0;(k=w[n++])&&!a.isPropagationStopped();)a.type=1<n?p:l.bindType||m,(e=(g._data(k,"events")||{})[a.type]&&g._data(k,"handle"))&&
e.apply(k,c),(e=f&&k[f])&&e.apply&&ta(k)&&(a.result=e.apply(k,c),!1===a.result&&a.preventDefault());a.type=m;if(!(d||a.isDefaultPrevented()||l._default&&!1!==l._default.apply(w.pop(),c))&&ta(b)&&f&&b[m]&&!g.isWindow(b)){(e=b[f])&&(b[f]=null);g.event.triggered=m;try{b[m]()}catch(y){}g.event.triggered=void 0;e&&(b[f]=e)}return a.result}},dispatch:function(a){a=g.event.fix(a);var c,b,d,e,f=[],k=ea.call(arguments);c=(g._data(this,"events")||{})[a.type]||[];var h=g.event.special[a.type]||{};k[0]=a;a.delegateTarget=
this;if(!h.preDispatch||!1!==h.preDispatch.call(this,a)){f=g.event.handlers.call(this,a,c);for(c=0;(e=f[c++])&&!a.isPropagationStopped();)for(a.currentTarget=e.elem,b=0;(d=e.handlers[b++])&&!a.isImmediatePropagationStopped();)if(!a.rnamespace||a.rnamespace.test(d.namespace))a.handleObj=d,a.data=d.data,d=((g.event.special[d.origType]||{}).handle||d.handler).apply(e.elem,k),void 0!==d&&!1===(a.result=d)&&(a.preventDefault(),a.stopPropagation());h.postDispatch&&h.postDispatch.call(this,a);return a.result}},
handlers:function(a,c){var b,d,e,f,k=[],h=c.delegateCount,p=a.target;if(h&&p.nodeType&&("click"!==a.type||isNaN(a.button)||1>a.button))for(;p!=this;p=p.parentNode||this)if(1===p.nodeType&&(!0!==p.disabled||"click"!==a.type)){d=[];for(b=0;b<h;b++)f=c[b],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?-1<g(e,this).index(p):g.find(e,this,null,[p]).length),d[e]&&d.push(f);d.length&&k.push({elem:p,handlers:d})}h<c.length&&k.push({elem:this,handlers:c.slice(h)});return k},fix:function(a){if(a[g.expando])return a;
var c,b,d;c=a.type;var e=a,f=this.fixHooks[c];f||(this.fixHooks[c]=f=oc.test(c)?this.mouseHooks:nc.test(c)?this.keyHooks:{});d=f.props?this.props.concat(f.props):this.props;a=new g.Event(e);for(c=d.length;c--;)b=d[c],a[b]=e[b];a.target||(a.target=e.srcElement||u);3===a.target.nodeType&&(a.target=a.target.parentNode);a.metaKey=!!a.metaKey;return f.filter?f.filter(a,e):a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
fixHooks:{},keyHooks:{props:["char","charCode","key","keyCode"],filter:function(a,c){null==a.which&&(a.which=null!=c.charCode?c.charCode:c.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,c){var b,d,e=c.button,g=c.fromElement;null==a.pageX&&null!=c.clientX&&(b=a.target.ownerDocument||u,d=b.documentElement,b=b.body,a.pageX=c.clientX+(d&&d.scrollLeft||b&&b.scrollLeft||0)-(d&&d.clientLeft||
b&&b.clientLeft||0),a.pageY=c.clientY+(d&&d.scrollTop||b&&b.scrollTop||0)-(d&&d.clientTop||b&&b.clientTop||0));!a.relatedTarget&&g&&(a.relatedTarget=g===a.target?c.toElement:g);a.which||void 0===e||(a.which=e&1?1:e&2?3:e&4?2:0);return a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==S()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){if(this===S()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(g.nodeName(this,
"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(a){return g.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,c,b){a=g.extend(new g.Event,b,{type:a,isSimulated:!0});g.event.trigger(a,null,c);a.isDefaultPrevented()&&b.preventDefault()}};g.removeEvent=u.removeEventListener?function(a,c,b){a.removeEventListener&&a.removeEventListener(c,b)}:function(a,
c,b){c="on"+c;a.detachEvent&&("undefined"===typeof a[c]&&(a[c]=null),a.detachEvent(c,b))};g.Event=function(a,c){if(!(this instanceof g.Event))return new g.Event(a,c);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&!1===a.returnValue?H:Q):this.type=a;c&&g.extend(this,c);this.timeStamp=a&&a.timeStamp||g.now();this[g.expando]=!0};g.Event.prototype={constructor:g.Event,isDefaultPrevented:Q,isPropagationStopped:Q,isImmediatePropagationStopped:Q,
preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=H;a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=H;a&&!this.isSimulated&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=H;a&&a.stopImmediatePropagation&&a.stopImmediatePropagation();this.stopPropagation()}};g.each({mouseenter:"mouseover",
mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,c){g.event.special[a]={delegateType:c,bindType:c,handle:function(a){var b,d=a.relatedTarget,e=a.handleObj;if(!d||d!==this&&!g.contains(this,d))a.type=e.origType,b=e.handler.apply(this,arguments),a.type=c;return b}}});t.submit||(g.event.special.submit={setup:function(){if(g.nodeName(this,"form"))return!1;g.event.add(this,"click._submit keypress._submit",function(a){a=a.target;(a=g.nodeName(a,"input")||g.nodeName(a,
"button")?g.prop(a,"form"):void 0)&&!g._data(a,"submit")&&(g.event.add(a,"submit._submit",function(a){a._submitBubble=!0}),g._data(a,"submit",!0))})},postDispatch:function(a){a._submitBubble&&(delete a._submitBubble,this.parentNode&&!a.isTrigger&&g.event.simulate("submit",this.parentNode,a))},teardown:function(){if(g.nodeName(this,"form"))return!1;g.event.remove(this,"._submit")}});t.change||(g.event.special.change={setup:function(){if(Ya.test(this.nodeName)){if("checkbox"===this.type||"radio"===
this.type)g.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._justChanged=!0)}),g.event.add(this,"click._change",function(a){this._justChanged&&!a.isTrigger&&(this._justChanged=!1);g.event.simulate("change",this,a)});return!1}g.event.add(this,"beforeactivate._change",function(a){a=a.target;Ya.test(a.nodeName)&&!g._data(a,"change")&&(g.event.add(a,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||g.event.simulate("change",
this.parentNode,a)}),g._data(a,"change",!0))})},handle:function(a){var c=a.target;if(this!==c||a.isSimulated||a.isTrigger||"radio"!==c.type&&"checkbox"!==c.type)return a.handleObj.handler.apply(this,arguments)},teardown:function(){g.event.remove(this,"._change");return!Ya.test(this.nodeName)}});t.focusin||g.each({focus:"focusin",blur:"focusout"},function(a,c){var b=function(a){g.event.simulate(c,a.target,g.event.fix(a))};g.event.special[c]={setup:function(){var d=this.ownerDocument||this,e=g._data(d,
c);e||d.addEventListener(a,b,!0);g._data(d,c,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=g._data(d,c)-1;e?g._data(d,c,e):(d.removeEventListener(a,b,!0),g._removeData(d,c))}}});g.fn.extend({on:function(a,c,b,d){return M(this,a,c,b,d)},one:function(a,c,b,d){return M(this,a,c,b,d,1)},off:function(a,c,b){var d;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,g(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"===typeof a){for(d in a)this.off(d,
c,a[d]);return this}if(!1===c||"function"===typeof c)b=c,c=void 0;!1===b&&(b=Q);return this.each(function(){g.event.remove(this,a,b,c)})},trigger:function(a,c){return this.each(function(){g.event.trigger(a,c,this)})},triggerHandler:function(a,c){var b=this[0];if(b)return g.event.trigger(a,c,b,!0)}});var pc=/ jQuery\d+="(?:null|\d+)"/g,Hb=/<(?:abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video)[\s/>]/i,
qc=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,rc=/<script|<style|<link/i,Zb=/checked\s*(?:[^=]|=\s*.checked.)/i,Yb=/^true\/(.*)/,$b=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Za=y(u).appendChild(u.createElement("div"));g.extend({htmlPrefilter:function(a){return a.replace(qc,"<$1></$2>")},clone:function(a,c,b){var d,e,f,k,h,p=g.contains(a.ownerDocument,a);t.html5Clone||g.isXMLDoc(a)||!Hb.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(Za.innerHTML=a.outerHTML,Za.removeChild(f=
Za.firstChild));if(!(t.noCloneEvent&&t.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||g.isXMLDoc(a)))for(d=F(f),h=F(a),k=0;null!=(e=h[k]);++k)if(d[k]){var l=d[k],n=void 0,w=void 0,m=void 0;if(1===l.nodeType){n=l.nodeName.toLowerCase();if(!t.noCloneEvent&&l[g.expando]){m=g._data(l);for(w in m.events)g.removeEvent(l,w,m.handle);l.removeAttribute(g.expando)}if("script"===n&&l.text!==e.text)ua(l).text=e.text,Aa(l);else if("object"===n)l.parentNode&&(l.outerHTML=e.outerHTML),t.html5Clone&&e.innerHTML&&
!g.trim(l.innerHTML)&&(l.innerHTML=e.innerHTML);else if("input"===n&&Oa.test(e.type))l.defaultChecked=l.checked=e.checked,l.value!==e.value&&(l.value=e.value);else if("option"===n)l.defaultSelected=l.selected=e.defaultSelected;else if("input"===n||"textarea"===n)l.defaultValue=e.defaultValue}}if(c)if(b)for(h=h||F(a),d=d||F(f),k=0;null!=(e=h[k]);k++)E(e,d[k]);else E(a,f);d=F(f,"script");0<d.length&&J(d,!p&&F(a,"script"));return f},cleanData:function(a,c){for(var b,d,e,f,k=0,h=g.expando,p=g.cache,l=
t.attributes,n=g.event.special;null!=(b=a[k]);k++)if(c||ta(b))if(f=(e=b[h])&&p[e]){if(f.events)for(d in f.events)n[d]?g.event.remove(b,d):g.removeEvent(b,d,f.handle);p[e]&&(delete p[e],l||"undefined"===typeof b.removeAttribute?b[h]=void 0:b.removeAttribute(h),W.push(e))}}});g.fn.extend({domManip:ga,detach:function(a){return lb(this,a,!0)},remove:function(a){return lb(this,a)},text:function(a){return fa(this,function(a){return void 0===a?g.text(this):this.empty().append((this[0]&&this[0].ownerDocument||
u).createTextNode(a))},null,a,arguments.length)},append:function(){return ga(this,arguments,function(a){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||la(this,a).appendChild(a)})},prepend:function(){return ga(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var c=la(this,a);c.insertBefore(a,c.firstChild)}})},before:function(){return ga(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return ga(this,
arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,c=0;null!=(a=this[c]);c++){for(1===a.nodeType&&g.cleanData(F(a,!1));a.firstChild;)a.removeChild(a.firstChild);a.options&&g.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,c){a=null==a?!1:a;c=null==c?a:c;return this.map(function(){return g.clone(this,a,c)})},html:function(a){return fa(this,function(a){var c=this[0]||{},b=0,d=this.length;if(void 0===a)return 1===
c.nodeType?c.innerHTML.replace(pc,""):void 0;if(!("string"!==typeof a||rc.test(a)||!t.htmlSerialize&&Hb.test(a)||!t.leadingWhitespace&&Pa.test(a)||D[(hb.exec(a)||["",""])[1].toLowerCase()])){a=g.htmlPrefilter(a);try{for(;b<d;b++)c=this[b]||{},1===c.nodeType&&(g.cleanData(F(c,!1)),c.innerHTML=a);c=0}catch(e){}}c&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return ga(this,arguments,function(c){var b=this.parentNode;0>g.inArray(this,a)&&(g.cleanData(F(this)),b&&
b.replaceChild(c,this))},a)}});g.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,c){g.fn[a]=function(a){for(var b=0,d=[],e=g(a),f=e.length-1;b<=f;b++)a=b===f?this:this.clone(!0),g(e[b])[c](a),Va.apply(d,a.get());return this.pushStack(d)}});var Y,nb={HTML:"block",BODY:"block"},Ib=/^margin/,Ea=new RegExp("^("+Xa+")(?!px)[a-z%]+$","i"),$a=function(a,c,b,d){var e,g={};for(e in c)g[e]=a.style[e],a.style[e]=c[e];b=b.apply(a,d||[]);
for(e in c)a.style[e]=g[e];return b},Jb=u.documentElement;(function(){function a(){var g,q=u.documentElement;q.appendChild(p);l.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%";c=d=k=!1;b=f=!0;h.getComputedStyle&&(g=h.getComputedStyle(l),c="1%"!==(g||{}).top,k="2px"===(g||{}).marginLeft,d="4px"===(g||{width:"4px"}).width,l.style.marginRight="50%",b="4px"===(g||{marginRight:"4px"}).marginRight,g=
l.appendChild(u.createElement("div")),g.style.cssText=l.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",g.style.marginRight=g.style.width="0",l.style.width="1px",f=!parseFloat((h.getComputedStyle(g)||{}).marginRight),l.removeChild(g));l.style.display="none";if(e=0===l.getClientRects().length)if(l.style.display="",l.innerHTML="<table><tr><td></td><td>t</td></tr></table>",l.childNodes[0].style.borderCollapse=
"separate",g=l.getElementsByTagName("td"),g[0].style.cssText="margin:0;border:0;padding:0;display:none",e=0===g[0].offsetHeight)g[0].style.display="",g[1].style.display="none",e=0===g[0].offsetHeight;q.removeChild(p)}var c,b,d,e,f,k,p=u.createElement("div"),l=u.createElement("div");l.style&&(l.style.cssText="float:left;opacity:.5",t.opacity="0.5"===l.style.opacity,t.cssFloat=!!l.style.cssFloat,l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===
l.style.backgroundClip,p=u.createElement("div"),p.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",l.innerHTML="",p.appendChild(l),t.boxSizing=""===l.style.boxSizing||""===l.style.MozBoxSizing||""===l.style.WebkitBoxSizing,g.extend(t,{reliableHiddenOffsets:function(){null==c&&a();return e},boxSizingReliable:function(){null==c&&a();return d},pixelMarginRight:function(){null==c&&a();return b},pixelPosition:function(){null==c&&a();return c},reliableMarginRight:function(){null==
c&&a();return f},reliableMarginLeft:function(){null==c&&a();return k}}))})();var T,R,sc=/^(top|right|bottom|left)$/;h.getComputedStyle?(T=function(a){var c=a.ownerDocument.defaultView;c&&c.opener||(c=h);return c.getComputedStyle(a)},R=function(a,c,b){var d,e,f=a.style;e=(b=b||T(a))?b.getPropertyValue(c)||b[c]:void 0;""!==e&&void 0!==e||g.contains(a.ownerDocument,a)||(e=g.style(a,c));b&&!t.pixelMarginRight()&&Ea.test(e)&&Ib.test(c)&&(a=f.width,c=f.minWidth,d=f.maxWidth,f.minWidth=f.maxWidth=f.width=
e,e=b.width,f.width=a,f.minWidth=c,f.maxWidth=d);return void 0===e?e:e+""}):Jb.currentStyle&&(T=function(a){return a.currentStyle},R=function(a,c,b){var d,e,g,f=a.style;g=(b=b||T(a))?b[c]:void 0;null==g&&f&&f[c]&&(g=f[c]);if(Ea.test(g)&&!sc.test(c)){b=f.left;if(e=(d=a.runtimeStyle)&&d.left)d.left=a.currentStyle.left;f.left="fontSize"===c?"1em":g;g=f.pixelLeft+"px";f.left=b;e&&(d.left=e)}return void 0===g?g:g+""||"auto"});var ab=/alpha\([^)]*\)/i,tc=/opacity\s*=\s*([^)]*)/i,uc=/^(none|table(?!-c[ea]).+)/,
ac=new RegExp("^("+Xa+")(.*)$","i"),vc={position:"absolute",visibility:"hidden",display:"block"},Kb={letterSpacing:"0",fontWeight:"400"},qb=["Webkit","O","Moz","ms"],pb=u.createElement("div").style;g.extend({cssHooks:{opacity:{get:function(a,c){if(c){var b=R(a,"opacity");return""===b?"1":b}}}},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":t.cssFloat?
"cssFloat":"styleFloat"},style:function(a,c,b,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,k,h=g.camelCase(c),p=a.style;c=g.cssProps[h]||(g.cssProps[h]=ob(h)||h);k=g.cssHooks[c]||g.cssHooks[h];if(void 0!==b){if(f=typeof b,"string"===f&&(e=Na.exec(b))&&e[1]&&(b=w(a,c,e),f="number"),null!=b&&b===b&&("number"===f&&(b+=e&&e[3]||(g.cssNumber[h]?"":"px")),t.clearCloneStyle||""!==b||0!==c.indexOf("background")||(p[c]="inherit"),!(k&&"set"in k)||void 0!==(b=k.set(a,b,d))))try{p[c]=b}catch(l){}}else return k&&
"get"in k&&void 0!==(e=k.get(a,!1,d))?e:p[c]}},css:function(a,c,b,d){var e,f;f=g.camelCase(c);c=g.cssProps[f]||(g.cssProps[f]=ob(f)||f);(f=g.cssHooks[c]||g.cssHooks[f])&&"get"in f&&(e=f.get(a,!0,b));void 0===e&&(e=R(a,c,d));"normal"===e&&c in Kb&&(e=Kb[c]);return""===b||b?(a=parseFloat(e),!0===b||isFinite(a)?a||0:e):e}});g.each(["height","width"],function(a,c){g.cssHooks[c]={get:function(a,b,d){if(b)return uc.test(g.css(a,"display"))&&0===a.offsetWidth?$a(a,vc,function(){return ub(a,c,d)}):ub(a,c,
d)},set:function(a,b,d){var e=d&&T(a);return sb(a,b,d?tb(a,c,d,t.boxSizing&&"border-box"===g.css(a,"boxSizing",!1,e),e):0)}}});t.opacity||(g.cssHooks.opacity={get:function(a,c){return tc.test((c&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":c?"1":""},set:function(a,c){var b=a.style,d=a.currentStyle,e=g.isNumeric(c)?"alpha(opacity="+100*c+")":"",f=d&&d.filter||b.filter||"";b.zoom=1;if((1<=c||""===c)&&""===g.trim(f.replace(ab,""))&&b.removeAttribute&&(b.removeAttribute("filter"),
""===c||d&&!d.filter))return;b.filter=ab.test(f)?f.replace(ab,e):f+" "+e}});g.cssHooks.marginRight=Qa(t.reliableMarginRight,function(a,c){if(c)return $a(a,{display:"inline-block"},R,[a,"marginRight"])});g.cssHooks.marginLeft=Qa(t.reliableMarginLeft,function(a,c){if(c)return(parseFloat(R(a,"marginLeft"))||(g.contains(a.ownerDocument,a)?a.getBoundingClientRect().left-$a(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}):0))+"px"});g.each({margin:"",padding:"",border:"Width"},function(a,
c){g.cssHooks[a+c]={expand:function(b){var d=0,e={};for(b="string"===typeof b?b.split(" "):[b];4>d;d++)e[a+da[d]+c]=b[d]||b[d-2]||b[0];return e}};Ib.test(a)||(g.cssHooks[a+c].set=sb)});g.fn.extend({css:function(a,c){return fa(this,function(a,c,b){var d,e={},f=0;if(g.isArray(c)){b=T(a);for(d=c.length;f<d;f++)e[c[f]]=g.css(a,c[f],!1,b);return e}return void 0!==b?g.style(a,c,b):g.css(a,c)},a,c,1<arguments.length)},show:function(){return rb(this,!0)},hide:function(){return rb(this)},toggle:function(a){return"boolean"===
typeof a?a?this.show():this.hide():this.each(function(){wa(this)?g(this).show():g(this).hide()})}});g.Tween=N;N.prototype={constructor:N,init:function(a,c,b,d,e,f){this.elem=a;this.prop=b;this.easing=e||g.easing._default;this.options=c;this.start=this.now=this.cur();this.end=d;this.unit=f||(g.cssNumber[b]?"":"px")},cur:function(){var a=N.propHooks[this.prop];return a&&a.get?a.get(this):N.propHooks._default.get(this)},run:function(a){var c,b=N.propHooks[this.prop];this.pos=this.options.duration?c=
g.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):c=a;this.now=(this.end-this.start)*c+this.start;this.options.step&&this.options.step.call(this.elem,this.now,this);b&&b.set?b.set(this):N.propHooks._default.set(this);return this}};N.prototype.init.prototype=N.prototype;N.propHooks={_default:{get:function(a){return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(a=g.css(a.elem,a.prop,""))&&"auto"!==a?a:0},set:function(a){if(g.fx.step[a.prop])g.fx.step[a.prop](a);
else 1!==a.elem.nodeType||null==a.elem.style[g.cssProps[a.prop]]&&!g.cssHooks[a.prop]?a.elem[a.prop]=a.now:g.style(a.elem,a.prop,a.now+a.unit)}}};N.propHooks.scrollTop=N.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}};g.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"};g.fx=N.prototype.init;g.fx.step={};var ma,Ja,wc=/^(?:toggle|show|hide)$/,xc=/queueHooks$/;g.Animation=g.extend(U,{tweeners:{"*":[function(a,
c){var b=this.createTween(a,c);w(b.elem,a,Na.exec(c),b);return b}]},tweener:function(a,c){g.isFunction(a)?(c=a,a=["*"]):a=a.match(V);for(var b,d=0,e=a.length;d<e;d++)b=a[d],U.tweeners[b]=U.tweeners[b]||[],U.tweeners[b].unshift(c)},prefilters:[function(a,c,b){var d,e,f,k,h,p,l=this,n={},w=a.style,m=a.nodeType&&wa(a),y=g._data(a,"fxshow");b.queue||(k=g._queueHooks(a,"fx"),null==k.unqueued&&(k.unqueued=0,h=k.empty.fire,k.empty.fire=function(){k.unqueued||h()}),k.unqueued++,l.always(function(){l.always(function(){k.unqueued--;
g.queue(a,"fx").length||k.empty.fire()})}));1===a.nodeType&&("height"in c||"width"in c)&&(b.overflow=[w.overflow,w.overflowX,w.overflowY],p=g.css(a,"display"),e="none"===p?g._data(a,"olddisplay")||va(a.nodeName):p,"inline"===e&&"none"===g.css(a,"float")&&(t.inlineBlockNeedsLayout&&"inline"!==va(a.nodeName)?w.zoom=1:w.display="inline-block"));b.overflow&&(w.overflow="hidden",t.shrinkWrapBlocks()||l.always(function(){w.overflow=b.overflow[0];w.overflowX=b.overflow[1];w.overflowY=b.overflow[2]}));for(d in c)if(e=
c[d],wc.exec(e)){delete c[d];f=f||"toggle"===e;if(e===(m?"hide":"show"))if("show"===e&&y&&void 0!==y[d])m=!0;else continue;n[d]=y&&y[d]||g.style(a,d)}else p=void 0;if(g.isEmptyObject(n))"inline"===("none"===p?va(a.nodeName):p)&&(w.display=p);else for(d in y?"hidden"in y&&(m=y.hidden):y=g._data(a,"fxshow",{}),f&&(y.hidden=!m),m?g(a).show():l.done(function(){g(a).hide()}),l.done(function(){var c;g._removeData(a,"fxshow");for(c in n)g.style(a,c,n[c])}),n)c=wb(m?y[d]:0,d,l),d in y||(y[d]=c.start,m&&(c.end=
c.start,c.start="width"===d||"height"===d?1:0))}],prefilter:function(a,c){c?U.prefilters.unshift(a):U.prefilters.push(a)}});g.speed=function(a,c,b){var d=a&&"object"===typeof a?g.extend({},a):{complete:b||!b&&c||g.isFunction(a)&&a,duration:a,easing:b&&c||c&&!g.isFunction(c)&&c};d.duration=g.fx.off?0:"number"===typeof d.duration?d.duration:d.duration in g.fx.speeds?g.fx.speeds[d.duration]:g.fx.speeds._default;if(null==d.queue||!0===d.queue)d.queue="fx";d.old=d.complete;d.complete=function(){g.isFunction(d.old)&&
d.old.call(this);d.queue&&g.dequeue(this,d.queue)};return d};g.fn.extend({fadeTo:function(a,c,b,d){return this.filter(wa).css("opacity",0).show().end().animate({opacity:c},a,b,d)},animate:function(a,c,b,d){var e=g.isEmptyObject(a),f=g.speed(c,b,d);c=function(){var c=U(this,g.extend({},a),f);(e||g._data(this,"finish"))&&c.stop(!0)};c.finish=c;return e||!1===f.queue?this.each(c):this.queue(f.queue,c)},stop:function(a,c,b){var d=function(a){var c=a.stop;delete a.stop;c(b)};"string"!==typeof a&&(b=c,
c=a,a=void 0);c&&!1!==a&&this.queue(a||"fx",[]);return this.each(function(){var c=!0,e=null!=a&&a+"queueHooks",f=g.timers,k=g._data(this);if(e)k[e]&&k[e].stop&&d(k[e]);else for(e in k)k[e]&&k[e].stop&&xc.test(e)&&d(k[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(b),c=!1,f.splice(e,1));!c&&b||g.dequeue(this,a)})},finish:function(a){!1!==a&&(a=a||"fx");return this.each(function(){var c,b=g._data(this),d=b[a+"queue"];c=b[a+"queueHooks"];var e=g.timers,f=d?d.length:
0;b.finish=!0;g.queue(this,a,[]);c&&c.stop&&c.stop.call(this,!0);for(c=e.length;c--;)e[c].elem===this&&e[c].queue===a&&(e[c].anim.stop(!0),e.splice(c,1));for(c=0;c<f;c++)d[c]&&d[c].finish&&d[c].finish.call(this);delete b.finish})}});g.each(["toggle","show","hide"],function(a,c){var b=g.fn[c];g.fn[c]=function(a,d,e){return null==a||"boolean"===typeof a?b.apply(this,arguments):this.animate(Fa(c,!0),a,d,e)}});g.each({slideDown:Fa("show"),slideUp:Fa("hide"),slideToggle:Fa("toggle"),fadeIn:{opacity:"show"},
fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,c){g.fn[a]=function(a,b,d){return this.animate(c,a,b,d)}});g.timers=[];g.fx.tick=function(){var a,c=g.timers,b=0;for(ma=g.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||g.fx.stop();ma=void 0};g.fx.timer=function(a){g.timers.push(a);a()?g.fx.start():g.timers.pop()};g.fx.interval=13;g.fx.start=function(){Ja||(Ja=h.setInterval(g.fx.tick,g.fx.interval))};g.fx.stop=function(){h.clearInterval(Ja);Ja=null};g.fx.speeds=
{slow:600,fast:200,_default:400};g.fn.delay=function(a,c){a=g.fx?g.fx.speeds[a]||a:a;return this.queue(c||"fx",function(c,b){var d=h.setTimeout(c,a);b.stop=function(){h.clearTimeout(d)}})};(function(){var a,c=u.createElement("input"),b=u.createElement("div"),d=u.createElement("select"),e=d.appendChild(u.createElement("option")),b=u.createElement("div");b.setAttribute("className","t");b.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";b.getElementsByTagName("a");c.setAttribute("type",
"checkbox");b.appendChild(c);a=b.getElementsByTagName("a")[0];a.style.cssText="top:1px";t.getSetAttribute="t"!==b.className;t.style=/top/.test(a.getAttribute("style"));t.hrefNormalized="/a"===a.getAttribute("href");t.checkOn=!!c.value;t.optSelected=e.selected;t.enctype=!!u.createElement("form").enctype;d.disabled=!0;t.optDisabled=!e.disabled;c=u.createElement("input");c.setAttribute("value","");t.input=""===c.getAttribute("value");c.value="t";c.setAttribute("type","radio");t.radioValue="t"===c.value})();
var yc=/\r/g,zc=/[\x20\t\r\n\f]+/g;g.fn.extend({val:function(a){var c,b,d,e=this[0];if(arguments.length)return d=g.isFunction(a),this.each(function(b){1===this.nodeType&&(b=d?a.call(this,b,g(this).val()):a,null==b?b="":"number"===typeof b?b+="":g.isArray(b)&&(b=g.map(b,function(a){return null==a?"":a+""})),c=g.valHooks[this.type]||g.valHooks[this.nodeName.toLowerCase()],c&&"set"in c&&void 0!==c.set(this,b,"value")||(this.value=b))});if(e){if((c=g.valHooks[e.type]||g.valHooks[e.nodeName.toLowerCase()])&&
"get"in c&&void 0!==(b=c.get(e,"value")))return b;b=e.value;return"string"===typeof b?b.replace(yc,""):null==b?"":b}}});g.extend({valHooks:{option:{get:function(a){var c=g.find.attr(a,"value");return null!=c?c:g.trim(g.text(a)).replace(zc," ")}},select:{get:function(a){for(var c,b=a.options,d=a.selectedIndex,e=(a="select-one"===a.type||0>d)?null:[],f=a?d+1:b.length,k=0>d?f:a?d:0;k<f;k++)if(c=b[k],!(!c.selected&&k!==d||(t.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&
g.nodeName(c.parentNode,"optgroup"))){c=g(c).val();if(a)return c;e.push(c)}return e},set:function(a,c){for(var b,d,e=a.options,f=g.makeArray(c),k=e.length;k--;)if(d=e[k],-1<g.inArray(g.valHooks.option.get(d),f))try{d.selected=b=!0}catch(h){d.scrollHeight}else d.selected=!1;b||(a.selectedIndex=-1);return e}}}});g.each(["radio","checkbox"],function(){g.valHooks[this]={set:function(a,c){if(g.isArray(c))return a.checked=-1<g.inArray(g(a).val(),c)}};t.checkOn||(g.valHooks[this].get=function(a){return null===
a.getAttribute("value")?"on":a.value})});var ka,Lb,ba=g.expr.attrHandle,bb=/^(?:checked|selected)$/i,X=t.getSetAttribute,Ka=t.input;g.fn.extend({attr:function(a,c){return fa(this,g.attr,a,c,1<arguments.length)},removeAttr:function(a){return this.each(function(){g.removeAttr(this,a)})}});g.extend({attr:function(a,c,b){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f){if("undefined"===typeof a.getAttribute)return g.prop(a,c,b);1===f&&g.isXMLDoc(a)||(c=c.toLowerCase(),e=g.attrHooks[c]||(g.expr.match.bool.test(c)?
Lb:ka));if(void 0!==b){if(null===b){g.removeAttr(a,c);return}if(e&&"set"in e&&void 0!==(d=e.set(a,b,c)))return d;a.setAttribute(c,b+"");return b}if(e&&"get"in e&&null!==(d=e.get(a,c)))return d;d=g.find.attr(a,c);return null==d?void 0:d}},attrHooks:{type:{set:function(a,c){if(!t.radioValue&&"radio"===c&&g.nodeName(a,"input")){var b=a.value;a.setAttribute("type",c);b&&(a.value=b);return c}}}},removeAttr:function(a,c){var b,d,e=0,f=c&&c.match(V);if(f&&1===a.nodeType)for(;b=f[e++];)d=g.propFix[b]||b,
g.expr.match.bool.test(b)?Ka&&X||!bb.test(b)?a[d]=!1:a[g.camelCase("default-"+b)]=a[d]=!1:g.attr(a,b,""),a.removeAttribute(X?b:d)}});Lb={set:function(a,c,b){!1===c?g.removeAttr(a,b):Ka&&X||!bb.test(b)?a.setAttribute(!X&&g.propFix[b]||b,b):a[g.camelCase("default-"+b)]=a[b]=!0;return b}};g.each(g.expr.match.bool.source.match(/\w+/g),function(a,c){var b=ba[c]||g.find.attr;Ka&&X||!bb.test(c)?ba[c]=function(a,c,d){var e,g;d||(g=ba[c],ba[c]=e,e=null!=b(a,c,d)?c.toLowerCase():null,ba[c]=g);return e}:ba[c]=
function(a,c,b){if(!b)return a[g.camelCase("default-"+c)]?c.toLowerCase():null}});Ka&&X||(g.attrHooks.value={set:function(a,c,b){if(g.nodeName(a,"input"))a.defaultValue=c;else return ka&&ka.set(a,c,b)}});X||(ka={set:function(a,c,b){var d=a.getAttributeNode(b);d||a.setAttributeNode(d=a.ownerDocument.createAttribute(b));d.value=c+="";if("value"===b||c===a.getAttribute(b))return c}},ba.id=ba.name=ba.coords=function(a,c,b){var d;if(!b)return(d=a.getAttributeNode(c))&&""!==d.value?d.value:null},g.valHooks.button=
{get:function(a,c){var b=a.getAttributeNode(c);if(b&&b.specified)return b.value},set:ka.set},g.attrHooks.contenteditable={set:function(a,c,b){ka.set(a,""===c?!1:c,b)}},g.each(["width","height"],function(a,c){g.attrHooks[c]={set:function(a,b){if(""===b)return a.setAttribute(c,"auto"),b}}}));t.style||(g.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,c){return a.style.cssText=c+""}});var Ac=/^(?:input|select|textarea|button|object)$/i,Bc=/^(?:a|area)$/i;g.fn.extend({prop:function(a,
c){return fa(this,g.prop,a,c,1<arguments.length)},removeProp:function(a){a=g.propFix[a]||a;return this.each(function(){try{this[a]=void 0,delete this[a]}catch(c){}})}});g.extend({prop:function(a,c,b){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&g.isXMLDoc(a)||(c=g.propFix[c]||c,e=g.propHooks[c]),void 0!==b?e&&"set"in e&&void 0!==(d=e.set(a,b,c))?d:a[c]=b:e&&"get"in e&&null!==(d=e.get(a,c))?d:a[c]},propHooks:{tabIndex:{get:function(a){var c=g.find.attr(a,"tabindex");return c?parseInt(c,
10):Ac.test(a.nodeName)||Bc.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});t.hrefNormalized||g.each(["href","src"],function(a,c){g.propHooks[c]={get:function(a){return a.getAttribute(c,4)}}});t.optSelected||(g.propHooks.selected={get:function(a){if(a=a.parentNode)a.selectedIndex,a.parentNode&&a.parentNode.selectedIndex;return null},set:function(a){if(a=a.parentNode)a.selectedIndex,a.parentNode&&a.parentNode.selectedIndex}});g.each("tabIndex readOnly maxLength cellSpacing cellPadding rowSpan colSpan useMap frameBorder contentEditable".split(" "),
function(){g.propFix[this.toLowerCase()]=this});t.enctype||(g.propFix.enctype="encoding");var cb=/[\t\r\n\f]/g;g.fn.extend({addClass:function(a){var c,b,d,e,f,k,h=0;if(g.isFunction(a))return this.each(function(c){g(this).addClass(a.call(this,c,ha(this)))});if("string"===typeof a&&a)for(c=a.match(V)||[];b=this[h++];)if(e=ha(b),d=1===b.nodeType&&(" "+e+" ").replace(cb," ")){for(k=0;f=c[k++];)0>d.indexOf(" "+f+" ")&&(d+=f+" ");d=g.trim(d);e!==d&&g.attr(b,"class",d)}return this},removeClass:function(a){var c,
b,d,e,f,k,h=0;if(g.isFunction(a))return this.each(function(c){g(this).removeClass(a.call(this,c,ha(this)))});if(!arguments.length)return this.attr("class","");if("string"===typeof a&&a)for(c=a.match(V)||[];b=this[h++];)if(e=ha(b),d=1===b.nodeType&&(" "+e+" ").replace(cb," ")){for(k=0;f=c[k++];)for(;-1<d.indexOf(" "+f+" ");)d=d.replace(" "+f+" "," ");d=g.trim(d);e!==d&&g.attr(b,"class",d)}return this},toggleClass:function(a,c){var b=typeof a;return"boolean"===typeof c&&"string"===b?c?this.addClass(a):
this.removeClass(a):g.isFunction(a)?this.each(function(b){g(this).toggleClass(a.call(this,b,ha(this),c),c)}):this.each(function(){var c,d,e,f;if("string"===b)for(d=0,e=g(this),f=a.match(V)||[];c=f[d++];)e.hasClass(c)?e.removeClass(c):e.addClass(c);else if(void 0===a||"boolean"===b)(c=ha(this))&&g._data(this,"__className__",c),g.attr(this,"class",c||!1===a?"":g._data(this,"__className__")||"")})},hasClass:function(a){var c,b=0;for(a=" "+a+" ";c=this[b++];)if(1===c.nodeType&&-1<(" "+ha(c)+" ").replace(cb,
" ").indexOf(a))return!0;return!1}});g.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,c){g.fn[c]=function(a,b){return 0<arguments.length?this.on(c,null,a,b):this.trigger(c)}});g.fn.extend({hover:function(a,c){return this.mouseenter(a).mouseleave(c||a)}});var Cc=h.location,db=g.now(),eb=/\?/,Dc=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;
g.parseJSON=function(a){if(h.JSON&&h.JSON.parse)return h.JSON.parse(a+"");var c,b=null,d=g.trim(a+"");return d&&!g.trim(d.replace(Dc,function(a,d,e,g){c&&d&&(b=0);if(0===b)return a;c=e||d;b+=!g-!e;return""}))?Function("return "+d)():g.error("Invalid JSON: "+a)};g.parseXML=function(a){var c,b;if(!a||"string"!==typeof a)return null;try{h.DOMParser?(b=new h.DOMParser,c=b.parseFromString(a,"text/xml")):(c=new h.ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(a))}catch(d){c=void 0}c&&c.documentElement&&
!c.getElementsByTagName("parsererror").length||g.error("Invalid XML: "+a);return c};var Ec=/#.*$/,Mb=/([?&])_=[^&]*/,Fc=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Gc=/^(?:GET|HEAD)$/,Hc=/^\/\//,Nb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ob={},Ra={},Pb="*/".concat("*"),fb=Cc.href,ca=Nb.exec(fb.toLowerCase())||[];g.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:fb,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ca[1]),global:!0,processData:!0,
async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pb,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":g.parseJSON,"text xml":g.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,c){return c?Sa(Sa(a,g.ajaxSettings),
c):Sa(g.ajaxSettings,a)},ajaxPrefilter:xb(Ob),ajaxTransport:xb(Ra),ajax:function(a,c){function b(a,c,d,e){var q,w,r,x;x=c;if(2!==G){G=2;p&&h.clearTimeout(p);n=void 0;k=e||"";v.readyState=0<a?4:0;e=200<=a&&300>a||304===a;if(d){r=m;for(var B=v,K,J,C,z,H=r.contents,D=r.dataTypes;"*"===D[0];)D.shift(),void 0===J&&(J=r.mimeType||B.getResponseHeader("Content-Type"));if(J)for(z in H)if(H[z]&&H[z].test(J)){D.unshift(z);break}if(D[0]in d)C=D[0];else{for(z in d){if(!D[0]||r.converters[z+" "+D[0]]){C=z;break}K||
(K=z)}C=C||K}C?(C!==D[0]&&D.unshift(C),r=d[C]):r=void 0}a:{d=m;K=r;J=v;C=e;var M,A,P,B={},H=d.dataTypes.slice();if(H[1])for(A in d.converters)B[A.toLowerCase()]=d.converters[A];for(z=H.shift();z;)if(d.responseFields[z]&&(J[d.responseFields[z]]=K),!P&&C&&d.dataFilter&&(K=d.dataFilter(K,d.dataType)),P=z,z=H.shift())if("*"===z)z=P;else if("*"!==P&&P!==z){A=B[P+" "+z]||B["* "+z];if(!A)for(M in B)if(r=M.split(" "),r[1]===z&&(A=B[P+" "+r[0]]||B["* "+r[0]])){!0===A?A=B[M]:!0!==B[M]&&(z=r[0],H.unshift(r[1]));
break}if(!0!==A)if(A&&d["throws"])K=A(K);else try{K=A(K)}catch(N){r={state:"parsererror",error:A?N:"No conversion from "+P+" to "+z};break a}}r={state:"success",data:K}}if(e)m.ifModified&&((x=v.getResponseHeader("Last-Modified"))&&(g.lastModified[f]=x),(x=v.getResponseHeader("etag"))&&(g.etag[f]=x)),204===a||"HEAD"===m.type?x="nocontent":304===a?x="notmodified":(x=r.state,q=r.data,w=r.error,e=!w);else if(w=x,a||!x)x="error",0>a&&(a=0);v.status=a;v.statusText=(c||x)+"";e?t.resolveWith(y,[q,x,v]):t.rejectWith(y,
[v,x,w]);v.statusCode(E);E=void 0;l&&F.trigger(e?"ajaxSuccess":"ajaxError",[v,m,e?q:w]);u.fireWith(y,[v,x]);l&&(F.trigger("ajaxComplete",[v,m]),--g.active||g.event.trigger("ajaxStop"))}}"object"===typeof a&&(c=a,a=void 0);c=c||{};var d,e,f,k,p,l,n,w,m=g.ajaxSetup({},c),y=m.context||m,F=m.context&&(y.nodeType||y.jquery)?g(y):g.event,t=g.Deferred(),u=g.Callbacks("once memory"),E=m.statusCode||{},J={},C={},G=0,H="canceled",v={readyState:0,getResponseHeader:function(a){var c;if(2===G){if(!w)for(w={};c=
Fc.exec(k);)w[c[1].toLowerCase()]=c[2];c=w[a.toLowerCase()]}return null==c?null:c},getAllResponseHeaders:function(){return 2===G?k:null},setRequestHeader:function(a,c){var b=a.toLowerCase();G||(a=C[b]=C[b]||a,J[a]=c);return this},overrideMimeType:function(a){G||(m.mimeType=a);return this},statusCode:function(a){var c;if(a)if(2>G)for(c in a)E[c]=[E[c],a[c]];else v.always(a[v.status]);return this},abort:function(a){a=a||H;n&&n.abort(a);b(0,a);return this}};t.promise(v).complete=u.add;v.success=v.done;
v.error=v.fail;m.url=((a||m.url||fb)+"").replace(Ec,"").replace(Hc,ca[1]+"//");m.type=c.method||c.type||m.method||m.type;m.dataTypes=g.trim(m.dataType||"*").toLowerCase().match(V)||[""];null==m.crossDomain&&(d=Nb.exec(m.url.toLowerCase()),m.crossDomain=!(!d||d[1]===ca[1]&&d[2]===ca[2]&&(d[3]||("http:"===d[1]?"80":"443"))===(ca[3]||("http:"===ca[1]?"80":"443"))));m.data&&m.processData&&"string"!==typeof m.data&&(m.data=g.param(m.data,m.traditional));yb(Ob,m,c,v);if(2===G)return v;(l=g.event&&m.global)&&
0===g.active++&&g.event.trigger("ajaxStart");m.type=m.type.toUpperCase();m.hasContent=!Gc.test(m.type);f=m.url;m.hasContent||(m.data&&(f=m.url+=(eb.test(f)?"&":"?")+m.data,delete m.data),!1===m.cache&&(m.url=Mb.test(f)?f.replace(Mb,"$1_="+db++):f+(eb.test(f)?"&":"?")+"_="+db++));m.ifModified&&(g.lastModified[f]&&v.setRequestHeader("If-Modified-Since",g.lastModified[f]),g.etag[f]&&v.setRequestHeader("If-None-Match",g.etag[f]));(m.data&&m.hasContent&&!1!==m.contentType||c.contentType)&&v.setRequestHeader("Content-Type",
m.contentType);v.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Pb+"; q=0.01":""):m.accepts["*"]);for(e in m.headers)v.setRequestHeader(e,m.headers[e]);if(m.beforeSend&&(!1===m.beforeSend.call(y,v,m)||2===G))return v.abort();H="abort";for(e in{success:1,error:1,complete:1})v[e](m[e]);if(n=yb(Ra,m,c,v)){v.readyState=1;l&&F.trigger("ajaxSend",[v,m]);if(2===G)return v;m.async&&0<m.timeout&&(p=h.setTimeout(function(){v.abort("timeout")},
m.timeout));try{G=1,n.send(J,b)}catch(xa){if(2>G)b(-1,xa);else throw xa;}}else b(-1,"No Transport");return v},getJSON:function(a,c,b){return g.get(a,c,b,"json")},getScript:function(a,c){return g.get(a,void 0,c,"script")}});g.each(["get","post"],function(a,c){g[c]=function(a,b,d,e){g.isFunction(b)&&(e=e||d,d=b,b=void 0);return g.ajax(g.extend({url:a,type:c,dataType:e,data:b,success:d},g.isPlainObject(a)&&a))}});g._evalUrl=function(a){return g.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,
global:!1,"throws":!0})};g.fn.extend({wrapAll:function(a){if(g.isFunction(a))return this.each(function(c){g(this).wrapAll(a.call(this,c))});if(this[0]){var c=g(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var a=this;a.firstChild&&1===a.firstChild.nodeType;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return g.isFunction(a)?this.each(function(c){g(this).wrapInner(a.call(this,c))}):this.each(function(){var c=g(this),
b=c.contents();b.length?b.wrapAll(a):c.append(a)})},wrap:function(a){var c=g.isFunction(a);return this.each(function(b){g(this).wrapAll(c?a.call(this,b):a)})},unwrap:function(){return this.parent().each(function(){g.nodeName(this,"body")||g(this).replaceWith(this.childNodes)}).end()}});g.expr.filters.hidden=function(a){return t.reliableHiddenOffsets()?0>=a.offsetWidth&&0>=a.offsetHeight&&!a.getClientRects().length:cc(a)};g.expr.filters.visible=function(a){return!g.expr.filters.hidden(a)};var Ic=/%20/g,
dc=/\[\]$/,Qb=/\r?\n/g,Jc=/^(?:submit|button|image|reset|file)$/i,Kc=/^(?:input|select|textarea|keygen)/i;g.param=function(a,c){var b,d=[],e=function(a,c){c=g.isFunction(c)?c():null==c?"":c;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(c)};void 0===c&&(c=g.ajaxSettings&&g.ajaxSettings.traditional);if(g.isArray(a)||a.jquery&&!g.isPlainObject(a))g.each(a,function(){e(this.name,this.value)});else for(b in a)Ta(b,a[b],c,e);return d.join("&").replace(Ic,"+")};g.fn.extend({serialize:function(){return g.param(this.serializeArray())},
serializeArray:function(){return this.map(function(){var a=g.prop(this,"elements");return a?g.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!g(this).is(":disabled")&&Kc.test(this.nodeName)&&!Jc.test(a)&&(this.checked||!Oa.test(a))}).map(function(a,c){var b=g(this).val();return null==b?null:g.isArray(b)?g.map(b,function(a){return{name:c.name,value:a.replace(Qb,"\r\n")}}):{name:c.name,value:b.replace(Qb,"\r\n")}}).get()}});g.ajaxSettings.xhr=void 0!==h.ActiveXObject?function(){return this.isLocal?
zb():8<u.documentMode?Ua():/^(get|post|head|put|delete|options)$/i.test(this.type)&&Ua()||zb()}:Ua;var Lc=0,La={},Ma=g.ajaxSettings.xhr();h.attachEvent&&h.attachEvent("onunload",function(){for(var a in La)La[a](void 0,!0)});t.cors=!!Ma&&"withCredentials"in Ma;(Ma=t.ajax=!!Ma)&&g.ajaxTransport(function(a){if(!a.crossDomain||t.cors){var c;return{send:function(b,d){var e,f=a.xhr(),k=++Lc;f.open(a.type,a.url,a.async,a.username,a.password);if(a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&
f.overrideMimeType&&f.overrideMimeType(a.mimeType);a.crossDomain||b["X-Requested-With"]||(b["X-Requested-With"]="XMLHttpRequest");for(e in b)void 0!==b[e]&&f.setRequestHeader(e,b[e]+"");f.send(a.hasContent&&a.data||null);c=function(b,e){var h,p,l;if(c&&(e||4===f.readyState))if(delete La[k],c=void 0,f.onreadystatechange=g.noop,e)4!==f.readyState&&f.abort();else{l={};h=f.status;"string"===typeof f.responseText&&(l.text=f.responseText);try{p=f.statusText}catch(n){p=""}h||!a.isLocal||a.crossDomain?1223===
h&&(h=204):h=l.text?200:404}l&&d(h,p,l,f.getAllResponseHeaders())};a.async?4===f.readyState?h.setTimeout(c):f.onreadystatechange=La[k]=c:c()},abort:function(){c&&c(void 0,!0)}}}});g.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){g.globalEval(a);return a}}});g.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1);a.crossDomain&&(a.type=
"GET",a.global=!1)});g.ajaxTransport("script",function(a){if(a.crossDomain){var c,b=u.head||g("head")[0]||u.documentElement;return{send:function(d,e){c=u.createElement("script");c.async=!0;a.scriptCharset&&(c.charset=a.scriptCharset);c.src=a.url;c.onload=c.onreadystatechange=function(a,b){if(b||!c.readyState||/loaded|complete/.test(c.readyState))c.onload=c.onreadystatechange=null,c.parentNode&&c.parentNode.removeChild(c),c=null,b||e(200,"success")};b.insertBefore(c,b.firstChild)},abort:function(){if(c)c.onload(void 0,
!0)}}}});var Rb=[],gb=/(=)\?(?=&|$)|\?\?/;g.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Rb.pop()||g.expando+"_"+db++;this[a]=!0;return a}});g.ajaxPrefilter("json jsonp",function(a,c,b){var d,e,f,k=!1!==a.jsonp&&(gb.test(a.url)?"url":"string"===typeof a.data&&0===(a.contentType||"").indexOf("application/x-www-form-urlencoded")&&gb.test(a.data)&&"data");if(k||"jsonp"===a.dataTypes[0])return d=a.jsonpCallback=g.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,k?a[k]=a[k].replace(gb,
"$1"+d):!1!==a.jsonp&&(a.url+=(eb.test(a.url)?"&":"?")+a.jsonp+"="+d),a.converters["script json"]=function(){f||g.error(d+" was not called");return f[0]},a.dataTypes[0]="json",e=h[d],h[d]=function(){f=arguments},b.always(function(){void 0===e?g(h).removeProp(d):h[d]=e;a[d]&&(a.jsonpCallback=c.jsonpCallback,Rb.push(d));f&&g.isFunction(e)&&e(f[0]);f=e=void 0}),"script"});g.parseHTML=function(a,c,b){if(!a||"string"!==typeof a)return null;"boolean"===typeof c&&(b=c,c=!1);c=c||u;var d=Eb.exec(a);b=!b&&
[];if(d)return[c.createElement(d[1])];d=C([a],c,b);b&&b.length&&g(b).remove();return g.merge([],d.childNodes)};var Sb=g.fn.load;g.fn.load=function(a,c,b){if("string"!==typeof a&&Sb)return Sb.apply(this,arguments);var d,e,f,k=this,h=a.indexOf(" ");-1<h&&(d=g.trim(a.slice(h,a.length)),a=a.slice(0,h));g.isFunction(c)?(b=c,c=void 0):c&&"object"===typeof c&&(e="POST");0<k.length&&g.ajax({url:a,type:e||"GET",dataType:"html",data:c}).done(function(a){f=arguments;k.html(d?g("<div>").append(g.parseHTML(a)).find(d):
a)}).always(b&&function(a,c){k.each(function(){b.apply(this,f||[a.responseText,c,a])})});return this};g.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,c){g.fn[c]=function(a){return this.on(c,a)}});g.expr.filters.animated=function(a){return g.grep(g.timers,function(c){return a===c.elem}).length};g.offset={setOffset:function(a,c,b){var d,e,f,k=g.css(a,"position"),h=g(a),p={};"static"===k&&(a.style.position="relative");f=h.offset();e=g.css(a,"top");d=g.css(a,
"left");("absolute"===k||"fixed"===k)&&-1<g.inArray("auto",[e,d])?(d=h.position(),e=d.top,d=d.left):(e=parseFloat(e)||0,d=parseFloat(d)||0);g.isFunction(c)&&(c=c.call(a,b,g.extend({},f)));null!=c.top&&(p.top=c.top-f.top+e);null!=c.left&&(p.left=c.left-f.left+d);"using"in c?c.using.call(a,p):h.css(p)}};g.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(c){g.offset.setOffset(this,a,c)});var c,b,d={top:0,left:0},e=(b=this[0])&&b.ownerDocument;if(e){c=e.documentElement;
if(!g.contains(c,b))return d;"undefined"!==typeof b.getBoundingClientRect&&(d=b.getBoundingClientRect());b=Ab(e);return{top:d.top+(b.pageYOffset||c.scrollTop)-(c.clientTop||0),left:d.left+(b.pageXOffset||c.scrollLeft)-(c.clientLeft||0)}}},position:function(){if(this[0]){var a,c,b={top:0,left:0},d=this[0];"fixed"===g.css(d,"position")?c=d.getBoundingClientRect():(a=this.offsetParent(),c=this.offset(),g.nodeName(a[0],"html")||(b=a.offset()),b.top+=g.css(a[0],"borderTopWidth",!0),b.left+=g.css(a[0],
"borderLeftWidth",!0));return{top:c.top-b.top-g.css(d,"marginTop",!0),left:c.left-b.left-g.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent;a&&!g.nodeName(a,"html")&&"static"===g.css(a,"position");)a=a.offsetParent;return a||Jb})}});g.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var b=/Y/.test(c);g.fn[a]=function(d){return fa(this,function(a,d,e){var f=Ab(a);if(void 0===e)return f?c in f?f[c]:f.document.documentElement[d]:
a[d];f?f.scrollTo(b?g(f).scrollLeft():e,b?e:g(f).scrollTop()):a[d]=e},a,d,arguments.length,null)}});g.each(["top","left"],function(a,c){g.cssHooks[c]=Qa(t.pixelPosition,function(a,b){if(b)return b=R(a,c),Ea.test(b)?g(a).position()[c]+"px":b})});g.each({Height:"height",Width:"width"},function(a,c){g.each({padding:"inner"+a,content:c,"":"outer"+a},function(b,d){g.fn[d]=function(d,e){var f=arguments.length&&(b||"boolean"!==typeof d),k=b||(!0===d||!0===e?"margin":"border");return fa(this,function(c,b,
d){return g.isWindow(c)?c.document.documentElement["client"+a]:9===c.nodeType?(b=c.documentElement,Math.max(c.body["scroll"+a],b["scroll"+a],c.body["offset"+a],b["offset"+a],b["client"+a])):void 0===d?g.css(c,b,k):g.style(c,b,d,k)},c,f?d:void 0,f,null)}})});g.fn.extend({bind:function(a,c,b){return this.on(a,null,c,b)},unbind:function(a,c){return this.off(a,null,c)},delegate:function(a,c,b,d){return this.on(c,a,b,d)},undelegate:function(a,c,b){return 1===arguments.length?this.off(a,"**"):this.off(c,
a||"**",b)}});g.fn.size=function(){return this.length};g.fn.andSelf=g.fn.addBack;"function"===typeof define&&define.amd&&define("jquery",[],function(){return g});var Mc=h.jQuery,Nc=h.$;g.noConflict=function(a){h.$===g&&(h.$=Nc);a&&h.jQuery===g&&(h.jQuery=Mc);return g};m||(h.jQuery=h.$=g);return g});
(function(h,m){h.rails!==m&&h.error("jquery-ujs has already been loaded!");var l,n=h(document);h.rails=l={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:"button[data-remote]:not([form]):not(form button), button[data-confirm]:not([form]):not(form button)",inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",
disableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",requiredInputSelector:"input[name][required]:not([disabled]), textarea[name][required]:not([disabled])",
fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]",csrfToken:function(){return h("meta[name=csrf-token]").attr("content")},csrfParam:function(){return h("meta[name=csrf-param]").attr("content")},CSRFProtection:function(b){var k=l.csrfToken();k&&b.setRequestHeader("X-CSRF-Token",k)},refreshCSRFTokens:function(){h('form input[name="'+l.csrfParam()+
'"]').val(l.csrfToken())},fire:function(b,k,a){k=h.Event(k);b.trigger(k,a);return!1!==k.result},confirm:function(b){return confirm(b)},ajax:function(b){return h.ajax(b)},href:function(b){return b[0].href},isRemote:function(b){return b.data("remote")!==m&&!1!==b.data("remote")},handleRemote:function(b){var k,a,c,d,e;if(l.fire(b,"ajax:before")){d=b.data("with-credentials")||null;e=b.data("type")||h.ajaxSettings&&h.ajaxSettings.dataType;if(b.is("form")){k=b.data("ujs:submit-button-formmethod")||b.attr("method");
a=b.data("ujs:submit-button-formaction")||b.attr("action");c=h(b[0]).serializeArray();var f=b.data("ujs:submit-button");f&&(c.push(f),b.data("ujs:submit-button",null));b.data("ujs:submit-button-formmethod",null);b.data("ujs:submit-button-formaction",null)}else b.is(l.inputChangeSelector)?(k=b.data("method"),a=b.data("url"),c=b.serialize(),b.data("params")&&(c=c+"&"+b.data("params"))):b.is(l.buttonClickSelector)?(k=b.data("method")||"get",a=b.data("url"),c=b.serialize(),b.data("params")&&(c=c+"&"+
b.data("params"))):(k=b.data("method"),a=l.href(b),c=b.data("params")||null);k={type:k||"GET",data:c,dataType:e,beforeSend:function(a,c){c.dataType===m&&a.setRequestHeader("accept","*/*;q=0.5, "+c.accepts.script);if(l.fire(b,"ajax:beforeSend",[a,c]))b.trigger("ajax:send",a);else return!1},success:function(a,c,d){b.trigger("ajax:success",[a,c,d])},complete:function(a,c){b.trigger("ajax:complete",[a,c])},error:function(a,c,d){b.trigger("ajax:error",[a,c,d])},crossDomain:l.isCrossDomain(a)};d&&(k.xhrFields=
{withCredentials:d});a&&(k.url=a);return l.ajax(k)}return!1},isCrossDomain:function(b){var k=document.createElement("a");k.href=location.href;var a=document.createElement("a");try{return a.href=b,a.href=a.href,!(!(a.protocol&&":"!==a.protocol||a.host)||k.protocol+"//"+k.host===a.protocol+"//"+a.host)}catch(c){return!0}},handleMethod:function(b){var k=l.href(b),a=b.data("method");b=b.attr("target");var c=l.csrfToken(),d=l.csrfParam(),e=h('<form method="post" action="'+k+'"></form>'),a='<input name="_method" value="'+
a+'" type="hidden" />';d===m||c===m||l.isCrossDomain(k)||(a+='<input name="'+d+'" value="'+c+'" type="hidden" />');b&&e.attr("target",b);e.hide().append(a).appendTo("body");e.submit()},formElements:function(b,k){return b.is("form")?h(b[0].elements).filter(k):b.find(k)},disableFormElements:function(b){l.formElements(b,l.disableSelector).each(function(){l.disableFormElement(h(this))})},disableFormElement:function(b){var k,a;k=b.is("button")?"html":"val";a=b.data("disable-with");a!==m&&(b.data("ujs:enable-with",
b[k]()),b[k](a));b.prop("disabled",!0);b.data("ujs:disabled",!0)},enableFormElements:function(b){l.formElements(b,l.enableSelector).each(function(){l.enableFormElement(h(this))})},enableFormElement:function(b){var k=b.is("button")?"html":"val";b.data("ujs:enable-with")!==m&&(b[k](b.data("ujs:enable-with")),b.removeData("ujs:enable-with"));b.prop("disabled",!1);b.removeData("ujs:disabled")},allowAction:function(b){var k=b.data("confirm"),a=!1,c;if(!k)return!0;if(l.fire(b,"confirm")){try{a=l.confirm(k)}catch(d){(console.error||
console.log).call(console,d.stack||d)}c=l.fire(b,"confirm:complete",[a])}return a&&c},blankInputs:function(b,k,a){var c=h(),d,e,f,p,l={};b.find(k||"input,textarea").each(function(){d=h(this);d.is("input[type=radio]")?(p=d.attr("name"),l[p]||(0===b.find('input[type=radio]:checked[name="'+p+'"]').length&&(f=b.find('input[type=radio][name="'+p+'"]'),c=c.add(f)),l[p]=p)):(e=d.is("input[type=checkbox],input[type=radio]")?d.is(":checked"):!!d.val(),e===a&&(c=c.add(d)))});return c.length?c:!1},nonBlankInputs:function(b,
k){return l.blankInputs(b,k,!0)},stopEverything:function(b){h(b.target).trigger("ujs:everythingStopped");b.stopImmediatePropagation();return!1},disableElement:function(b){var k=b.data("disable-with");k!==m&&(b.data("ujs:enable-with",b.html()),b.html(k));b.bind("click.railsDisable",function(a){return l.stopEverything(a)});b.data("ujs:disabled",!0)},enableElement:function(b){b.data("ujs:enable-with")!==m&&(b.html(b.data("ujs:enable-with")),b.removeData("ujs:enable-with"));b.unbind("click.railsDisable");
b.removeData("ujs:disabled")}};l.fire(n,"rails:attachBindings")&&(h.ajaxPrefilter(function(b,k,a){b.crossDomain||l.CSRFProtection(a)}),h(window).on("pageshow.rails",function(){h(h.rails.enableSelector).each(function(){var b=h(this);b.data("ujs:disabled")&&h.rails.enableFormElement(b)});h(h.rails.linkDisableSelector).each(function(){var b=h(this);b.data("ujs:disabled")&&h.rails.enableElement(b)})}),n.on("ajax:complete",l.linkDisableSelector,function(){l.enableElement(h(this))}),n.on("ajax:complete",
l.buttonDisableSelector,function(){l.enableFormElement(h(this))}),n.on("click.rails",l.linkClickSelector,function(b){var k=h(this),a=k.data("method"),c=k.data("params"),d=b.metaKey||b.ctrlKey;if(!l.allowAction(k))return l.stopEverything(b);!d&&k.is(l.linkDisableSelector)&&l.disableElement(k);if(l.isRemote(k)){if(d&&(!a||"GET"===a)&&!c)return!0;b=l.handleRemote(k);!1===b?l.enableElement(k):b.fail(function(){l.enableElement(k)});return!1}if(a)return l.handleMethod(k),!1}),n.on("click.rails",l.buttonClickSelector,
function(b){var k=h(this);if(!l.allowAction(k)||!l.isRemote(k))return l.stopEverything(b);k.is(l.buttonDisableSelector)&&l.disableFormElement(k);b=l.handleRemote(k);!1===b?l.enableFormElement(k):b.fail(function(){l.enableFormElement(k)});return!1}),n.on("change.rails",l.inputChangeSelector,function(b){var k=h(this);if(!l.allowAction(k)||!l.isRemote(k))return l.stopEverything(b);l.handleRemote(k);return!1}),n.on("submit.rails",l.formSubmitSelector,function(b){var k=h(this),a=l.isRemote(k),c;if(!l.allowAction(k))return l.stopEverything(b);
if(k.attr("novalidate")===m)if(k.data("ujs:formnovalidate-button")===m){if((c=l.blankInputs(k,l.requiredInputSelector,!1))&&l.fire(k,"ajax:aborted:required",[c]))return l.stopEverything(b)}else k.data("ujs:formnovalidate-button",m);if(a){if(b=l.nonBlankInputs(k,l.fileInputSelector))return setTimeout(function(){l.disableFormElements(k)},13),(b=l.fire(k,"ajax:aborted:file",[b]))||setTimeout(function(){l.enableFormElements(k)},13),b;l.handleRemote(k);return!1}setTimeout(function(){l.disableFormElements(k)},
13)}),n.on("click.rails",l.formInputClickSelector,function(b){var k=h(this);if(!l.allowAction(k))return l.stopEverything(b);b=(b=k.attr("name"))?{name:b,value:k.val()}:null;var a=k.closest("form");0===a.length&&(a=h("#"+k.attr("form")));a.data("ujs:submit-button",b);a.data("ujs:formnovalidate-button",k.attr("formnovalidate"));a.data("ujs:submit-button-formaction",k.attr("formaction"));a.data("ujs:submit-button-formmethod",k.attr("formmethod"))}),n.on("ajax:send.rails",l.formSubmitSelector,function(b){this===
b.target&&l.disableFormElements(h(this))}),n.on("ajax:complete.rails",l.formSubmitSelector,function(b){this===b.target&&l.enableFormElements(h(this))}),h(function(){l.refreshCSRFTokens()}))})(jQuery);
+function(h){function m(){var h=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},b;for(b in n)if(void 0!==h.style[b])return{end:n[b]};return!1}h.fn.emulateTransitionEnd=function(l){var n=!1,b=this;h(this).one("bsTransitionEnd",function(){n=!0});setTimeout(function(){n||h(b).trigger(h.support.transition.end)},l);return this};h(function(){h.support.transition=m();h.support.transition&&
(h.event.special.bsTransitionEnd={bindType:h.support.transition.end,delegateType:h.support.transition.end,handle:function(l){if(h(l.target).is(this))return l.handleObj.handler.apply(this,arguments)}})})}(jQuery);
+function(h){var m=function(l){h(l).on("click",'[data-dismiss="alert"]',this.close)};m.VERSION="3.3.7";m.TRANSITION_DURATION=150;m.prototype.close=function(l){function b(){c.detach().trigger("closed.bs.alert").remove()}var k=h(this),a=k.attr("data-target");a||(a=(a=k.attr("href"))&&a.replace(/.*(?=#[^\s]*$)/,""));var c=h("#"===a?[]:a);l&&l.preventDefault();c.length||(c=k.closest(".alert"));c.trigger(l=h.Event("close.bs.alert"));l.isDefaultPrevented()||(c.removeClass("in"),h.support.transition&&c.hasClass("fade")?
c.one("bsTransitionEnd",b).emulateTransitionEnd(m.TRANSITION_DURATION):b())};var l=h.fn.alert;h.fn.alert=function(l){return this.each(function(){var b=h(this),k=b.data("bs.alert");k||b.data("bs.alert",k=new m(this));"string"==typeof l&&k[l].call(b)})};h.fn.alert.Constructor=m;h.fn.alert.noConflict=function(){h.fn.alert=l;return this};h(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',m.prototype.close)}(jQuery);
+function(h){function m(b){return this.each(function(){var k=h(this),a=k.data("bs.button"),c="object"==typeof b&&b;a||k.data("bs.button",a=new l(this,c));"toggle"==b?a.toggle():b&&a.setState(b)})}var l=function(b,k){this.$element=h(b);this.options=h.extend({},l.DEFAULTS,k);this.isLoading=!1};l.VERSION="3.3.7";l.DEFAULTS={loadingText:"loading..."};l.prototype.setState=function(b){var k=this.$element,a=k.is("input")?"val":"html",c=k.data();b+="Text";null==c.resetText&&k.data("resetText",k[a]());setTimeout(h.proxy(function(){k[a](null==
c[b]?this.options[b]:c[b]);"loadingText"==b?(this.isLoading=!0,k.addClass("disabled").attr("disabled","disabled").prop("disabled",!0)):this.isLoading&&(this.isLoading=!1,k.removeClass("disabled").removeAttr("disabled").prop("disabled",!1))},this),0)};l.prototype.toggle=function(){var b=!0,k=this.$element.closest('[data-toggle="buttons"]');if(k.length){var a=this.$element.find("input");"radio"==a.prop("type")?(a.prop("checked")&&(b=!1),k.find(".active").removeClass("active"),this.$element.addClass("active")):
"checkbox"==a.prop("type")&&(a.prop("checked")!==this.$element.hasClass("active")&&(b=!1),this.$element.toggleClass("active"));a.prop("checked",this.$element.hasClass("active"));b&&a.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var n=h.fn.button;h.fn.button=m;h.fn.button.Constructor=l;h.fn.button.noConflict=function(){h.fn.button=n;return this};h(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(b){var k=
h(b.target).closest(".btn");m.call(k,"toggle");h(b.target).is('input[type="radio"], input[type="checkbox"]')||(b.preventDefault(),k.is("input,button")?k.trigger("focus"):k.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){h(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery);
+function(h){function m(b){return this.each(function(){var a=h(this),c=a.data("bs.carousel"),d=h.extend({},l.DEFAULTS,a.data(),"object"==typeof b&&b),e="string"==typeof b?b:d.slide;c||a.data("bs.carousel",c=new l(this,d));if("number"==typeof b)c.to(b);else if(e)c[e]();else d.interval&&c.pause().cycle()})}var l=function(b,a){this.$element=h(b);this.$indicators=this.$element.find(".carousel-indicators");this.options=a;this.$items=this.$active=this.interval=this.sliding=this.paused=null;this.options.keyboard&&
this.$element.on("keydown.bs.carousel",h.proxy(this.keydown,this));"hover"!=this.options.pause||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",h.proxy(this.pause,this)).on("mouseleave.bs.carousel",h.proxy(this.cycle,this))};l.VERSION="3.3.7";l.TRANSITION_DURATION=600;l.DEFAULTS={interval:5E3,pause:"hover",wrap:!0,keyboard:!0};l.prototype.keydown=function(b){if(!/input|textarea/i.test(b.target.tagName)){switch(b.which){case 37:this.prev();break;case 39:this.next();
break;default:return}b.preventDefault()}};l.prototype.cycle=function(b){b||(this.paused=!1);this.interval&&clearInterval(this.interval);this.options.interval&&!this.paused&&(this.interval=setInterval(h.proxy(this.next,this),this.options.interval));return this};l.prototype.getItemIndex=function(b){this.$items=b.parent().children(".item");return this.$items.index(b||this.$active)};l.prototype.getItemForDirection=function(b,a){var c=this.getItemIndex(a);return("prev"==b&&0===c||"next"==b&&c==this.$items.length-
1)&&!this.options.wrap?a:this.$items.eq((c+("prev"==b?-1:1))%this.$items.length)};l.prototype.to=function(b){var a=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(b>this.$items.length-1||0>b))return this.sliding?this.$element.one("slid.bs.carousel",function(){a.to(b)}):c==b?this.pause().cycle():this.slide(b>c?"next":"prev",this.$items.eq(b))};l.prototype.pause=function(b){b||(this.paused=!0);this.$element.find(".next, .prev").length&&h.support.transition&&(this.$element.trigger(h.support.transition.end),
this.cycle(!0));this.interval=clearInterval(this.interval);return this};l.prototype.next=function(){if(!this.sliding)return this.slide("next")};l.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};l.prototype.slide=function(b,a){var c=this.$element.find(".item.active"),d=a||this.getItemForDirection(b,c),e=this.interval,f="next"==b?"left":"right",p=this;if(d.hasClass("active"))return this.sliding=!1;var m=d[0],n=h.Event("slide.bs.carousel",{relatedTarget:m,direction:f});this.$element.trigger(n);
if(!n.isDefaultPrevented()){this.sliding=!0;e&&this.pause();this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),(n=h(this.$indicators.children()[this.getItemIndex(d)]))&&n.addClass("active"));var F=h.Event("slid.bs.carousel",{relatedTarget:m,direction:f});h.support.transition&&this.$element.hasClass("slide")?(d.addClass(b),d[0].offsetWidth,c.addClass(f),d.addClass(f),c.one("bsTransitionEnd",function(){d.removeClass([b,f].join(" ")).addClass("active");c.removeClass(["active",
f].join(" "));p.sliding=!1;setTimeout(function(){p.$element.trigger(F)},0)}).emulateTransitionEnd(l.TRANSITION_DURATION)):(c.removeClass("active"),d.addClass("active"),this.sliding=!1,this.$element.trigger(F));e&&this.cycle();return this}};var n=h.fn.carousel;h.fn.carousel=m;h.fn.carousel.Constructor=l;h.fn.carousel.noConflict=function(){h.fn.carousel=n;return this};var b=function(b){var a,c=h(this),d=h(c.attr("data-target")||(a=c.attr("href"))&&a.replace(/.*(?=#[^\s]+$)/,""));if(d.hasClass("carousel")){a=
h.extend({},d.data(),c.data());if(c=c.attr("data-slide-to"))a.interval=!1;m.call(d,a);c&&d.data("bs.carousel").to(c);b.preventDefault()}};h(document).on("click.bs.carousel.data-api","[data-slide]",b).on("click.bs.carousel.data-api","[data-slide-to]",b);h(window).on("load",function(){h('[data-ride="carousel"]').each(function(){var b=h(this);m.call(b,b.data())})})}(jQuery);
+function(h){function m(b){var a;b=b.attr("data-target")||(a=b.attr("href"))&&a.replace(/.*(?=#[^\s]+$)/,"");return h(b)}function l(b){return this.each(function(){var a=h(this),c=a.data("bs.collapse"),d=h.extend({},n.DEFAULTS,a.data(),"object"==typeof b&&b);!c&&d.toggle&&/show|hide/.test(b)&&(d.toggle=!1);c||a.data("bs.collapse",c=new n(this,d));if("string"==typeof b)c[b]()})}var n=function(b,a){this.$element=h(b);this.options=h.extend({},n.DEFAULTS,a);this.$trigger=h('[data-toggle="collapse"][href="#'+
b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]');this.transitioning=null;this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger);this.options.toggle&&this.toggle()};n.VERSION="3.3.7";n.TRANSITION_DURATION=350;n.DEFAULTS={toggle:!0};n.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"};n.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,a=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");
if(a&&a.length&&(b=a.data("bs.collapse"))&&b.transitioning)return;var c=h.Event("show.bs.collapse");this.$element.trigger(c);if(!c.isDefaultPrevented()){a&&a.length&&(l.call(a,"hide"),b||a.data("bs.collapse",null));var d=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[d](0).attr("aria-expanded",!0);this.$trigger.removeClass("collapsed").attr("aria-expanded",!0);this.transitioning=1;b=function(){this.$element.removeClass("collapsing").addClass("collapse in")[d]("");this.transitioning=
0;this.$element.trigger("shown.bs.collapse")};if(!h.support.transition)return b.call(this);a=h.camelCase(["scroll",d].join("-"));this.$element.one("bsTransitionEnd",h.proxy(b,this)).emulateTransitionEnd(n.TRANSITION_DURATION)[d](this.$element[0][a])}}};n.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=h.Event("hide.bs.collapse");this.$element.trigger(b);if(!b.isDefaultPrevented()){b=this.dimension();this.$element[b](this.$element[b]())[0].offsetHeight;this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",
!1);this.$trigger.addClass("collapsed").attr("aria-expanded",!1);this.transitioning=1;var a=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!h.support.transition)return a.call(this);this.$element[b](0).one("bsTransitionEnd",h.proxy(a,this)).emulateTransitionEnd(n.TRANSITION_DURATION)}}};n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};n.prototype.getParent=function(){return h(this.options.parent).find('[data-toggle="collapse"][data-parent="'+
this.options.parent+'"]').each(h.proxy(function(b,a){var c=h(a);this.addAriaAndCollapsedClass(m(c),c)},this)).end()};n.prototype.addAriaAndCollapsedClass=function(b,a){var c=b.hasClass("in");b.attr("aria-expanded",c);a.toggleClass("collapsed",!c).attr("aria-expanded",c)};var b=h.fn.collapse;h.fn.collapse=l;h.fn.collapse.Constructor=n;h.fn.collapse.noConflict=function(){h.fn.collapse=b;return this};h(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(b){var a=h(this);a.attr("data-target")||
b.preventDefault();b=m(a);a=b.data("bs.collapse")?"toggle":a.data();l.call(b,a)})}(jQuery);
+function(h){function m(b){var a=b.attr("data-target");a||(a=(a=b.attr("href"))&&/#[A-Za-z]/.test(a)&&a.replace(/.*(?=#[^\s]*$)/,""));return(a=a&&h(a))&&a.length?a:b.parent()}function l(b){b&&3===b.which||(h(".dropdown-backdrop").remove(),h('[data-toggle="dropdown"]').each(function(){var a=h(this),c=m(a),d={relatedTarget:this};!c.hasClass("open")||b&&"click"==b.type&&/input|textarea/i.test(b.target.tagName)&&h.contains(c[0],b.target)||(c.trigger(b=h.Event("hide.bs.dropdown",d)),b.isDefaultPrevented()||
(a.attr("aria-expanded","false"),c.removeClass("open").trigger(h.Event("hidden.bs.dropdown",d))))}))}var n=function(b){h(b).on("click.bs.dropdown",this.toggle)};n.VERSION="3.3.7";n.prototype.toggle=function(b){var a=h(this);if(!a.is(".disabled, :disabled")){var c=m(a);b=c.hasClass("open");l();if(!b){if("ontouchstart"in document.documentElement&&!c.closest(".navbar-nav").length)h(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(h(this)).on("click",l);var d={relatedTarget:this};
c.trigger(b=h.Event("show.bs.dropdown",d));if(b.isDefaultPrevented())return;a.trigger("focus").attr("aria-expanded","true");c.toggleClass("open").trigger(h.Event("shown.bs.dropdown",d))}return!1}};n.prototype.keydown=function(b){if(/(38|40|27|32)/.test(b.which)&&!/input|textarea/i.test(b.target.tagName)){var a=h(this);b.preventDefault();b.stopPropagation();if(!a.is(".disabled, :disabled")){var c=m(a),d=c.hasClass("open");if(!d&&27!=b.which||d&&27==b.which)return 27==b.which&&c.find('[data-toggle="dropdown"]').trigger("focus"),
a.trigger("click");a=c.find(".dropdown-menu li:not(.disabled):visible a");a.length&&(c=a.index(b.target),38==b.which&&0<c&&c--,40==b.which&&c<a.length-1&&c++,~c||(c=0),a.eq(c).trigger("focus"))}}};var b=h.fn.dropdown;h.fn.dropdown=function(b){return this.each(function(){var a=h(this),c=a.data("bs.dropdown");c||a.data("bs.dropdown",c=new n(this));"string"==typeof b&&c[b].call(a)})};h.fn.dropdown.Constructor=n;h.fn.dropdown.noConflict=function(){h.fn.dropdown=b;return this};h(document).on("click.bs.dropdown.data-api",
l).on("click.bs.dropdown.data-api",".dropdown form",function(b){b.stopPropagation()}).on("click.bs.dropdown.data-api",'[data-toggle="dropdown"]',n.prototype.toggle).on("keydown.bs.dropdown.data-api",'[data-toggle="dropdown"]',n.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",n.prototype.keydown)}(jQuery);
+function(h){function m(b,k){return this.each(function(){var a=h(this),c=a.data("bs.modal"),d=h.extend({},l.DEFAULTS,a.data(),"object"==typeof b&&b);c||a.data("bs.modal",c=new l(this,d));if("string"==typeof b)c[b](k);else d.show&&c.show(k)})}var l=function(b,k){this.options=k;this.$body=h(document.body);this.$element=h(b);this.$dialog=this.$element.find(".modal-dialog");this.originalBodyPad=this.isShown=this.$backdrop=null;this.scrollbarWidth=0;this.ignoreBackdropClick=!1;this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,
h.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};l.VERSION="3.3.7";l.TRANSITION_DURATION=300;l.BACKDROP_TRANSITION_DURATION=150;l.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};l.prototype.toggle=function(b){return this.isShown?this.hide():this.show(b)};l.prototype.show=function(b){var k=this,a=h.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(a);this.isShown||a.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),
this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',h.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){k.$element.one("mouseup.dismiss.bs.modal",function(a){h(a.target).is(k.$element)&&(k.ignoreBackdropClick=!0)})}),this.backdrop(function(){var a=h.support.transition&&k.$element.hasClass("fade");k.$element.parent().length||k.$element.appendTo(k.$body);k.$element.show().scrollTop(0);k.adjustDialog();a&&k.$element[0].offsetWidth;
k.$element.addClass("in");k.enforceFocus();var d=h.Event("shown.bs.modal",{relatedTarget:b});a?k.$dialog.one("bsTransitionEnd",function(){k.$element.trigger("focus").trigger(d)}).emulateTransitionEnd(l.TRANSITION_DURATION):k.$element.trigger("focus").trigger(d)}))};l.prototype.hide=function(b){b&&b.preventDefault();b=h.Event("hide.bs.modal");this.$element.trigger(b);this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),h(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),
this.$dialog.off("mousedown.dismiss.bs.modal"),h.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",h.proxy(this.hideModal,this)).emulateTransitionEnd(l.TRANSITION_DURATION):this.hideModal())};l.prototype.enforceFocus=function(){h(document).off("focusin.bs.modal").on("focusin.bs.modal",h.proxy(function(b){document===b.target||this.$element[0]===b.target||this.$element.has(b.target).length||this.$element.trigger("focus")},this))};l.prototype.escape=function(){if(this.isShown&&
this.options.keyboard)this.$element.on("keydown.dismiss.bs.modal",h.proxy(function(b){27==b.which&&this.hide()},this));else this.isShown||this.$element.off("keydown.dismiss.bs.modal")};l.prototype.resize=function(){if(this.isShown)h(window).on("resize.bs.modal",h.proxy(this.handleUpdate,this));else h(window).off("resize.bs.modal")};l.prototype.hideModal=function(){var b=this;this.$element.hide();this.backdrop(function(){b.$body.removeClass("modal-open");b.resetAdjustments();b.resetScrollbar();b.$element.trigger("hidden.bs.modal")})};
l.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};l.prototype.backdrop=function(b){var k=this,a=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var c=h.support.transition&&a;this.$backdrop=h(document.createElement("div")).addClass("modal-backdrop "+a).appendTo(this.$body);this.$element.on("click.dismiss.bs.modal",h.proxy(function(a){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:a.target===a.currentTarget&&("static"==
this.options.backdrop?this.$element[0].focus():this.hide())},this));c&&this.$backdrop[0].offsetWidth;this.$backdrop.addClass("in");b&&(c?this.$backdrop.one("bsTransitionEnd",b).emulateTransitionEnd(l.BACKDROP_TRANSITION_DURATION):b())}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),a=function(){k.removeBackdrop();b&&b()},h.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(l.BACKDROP_TRANSITION_DURATION):a()):b&&b()};
l.prototype.handleUpdate=function(){this.adjustDialog()};l.prototype.adjustDialog=function(){var b=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&b?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!b?this.scrollbarWidth:""})};l.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};l.prototype.checkScrollbar=function(){var b=window.innerWidth;b||(b=document.documentElement.getBoundingClientRect(),
b=b.right-Math.abs(b.left));this.bodyIsOverflowing=document.body.clientWidth<b;this.scrollbarWidth=this.measureScrollbar()};l.prototype.setScrollbar=function(){var b=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";this.bodyIsOverflowing&&this.$body.css("padding-right",b+this.scrollbarWidth)};l.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)};l.prototype.measureScrollbar=function(){var b=document.createElement("div");
b.className="modal-scrollbar-measure";this.$body.append(b);var h=b.offsetWidth-b.clientWidth;this.$body[0].removeChild(b);return h};var n=h.fn.modal;h.fn.modal=m;h.fn.modal.Constructor=l;h.fn.modal.noConflict=function(){h.fn.modal=n;return this};h(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(b){var k=h(this),a=k.attr("href"),c=h(k.attr("data-target")||a&&a.replace(/.*(?=#[^\s]+$)/,"")),a=c.data("bs.modal")?"toggle":h.extend({remote:!/#/.test(a)&&a},c.data(),k.data());k.is("a")&&
b.preventDefault();c.one("show.bs.modal",function(a){if(!a.isDefaultPrevented())c.one("hidden.bs.modal",function(){k.is(":visible")&&k.trigger("focus")})});m.call(c,a,this)})}(jQuery);
+function(h){function m(b){return this.each(function(){var a=h(this),c=a.data("bs.tab");c||a.data("bs.tab",c=new l(this));if("string"==typeof b)c[b]()})}var l=function(b){this.element=h(b)};l.VERSION="3.3.7";l.TRANSITION_DURATION=150;l.prototype.show=function(){var b=this.element,a=b.closest("ul:not(.dropdown-menu)"),c=b.data("target");c||(c=(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]*$)/,""));if(!b.parent("li").hasClass("active")){var d=a.find(".active:last a"),e=h.Event("hide.bs.tab",{relatedTarget:b[0]}),
f=h.Event("show.bs.tab",{relatedTarget:d[0]});d.trigger(e);b.trigger(f);f.isDefaultPrevented()||e.isDefaultPrevented()||(c=h(c),this.activate(b.closest("li"),a),this.activate(c,c.parent(),function(){d.trigger({type:"hidden.bs.tab",relatedTarget:b[0]});b.trigger({type:"shown.bs.tab",relatedTarget:d[0]})}))}};l.prototype.activate=function(b,a,c){function d(){e.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1);b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",
!0);f?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade");b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0);c&&c()}var e=a.find("> .active"),f=c&&h.support.transition&&(e.length&&e.hasClass("fade")||!!a.find("> .fade").length);e.length&&f?e.one("bsTransitionEnd",d).emulateTransitionEnd(l.TRANSITION_DURATION):d();e.removeClass("in")};var n=h.fn.tab;h.fn.tab=m;h.fn.tab.Constructor=l;h.fn.tab.noConflict=function(){h.fn.tab=
n;return this};var b=function(b){b.preventDefault();m.call(h(this),"show")};h(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',b).on("click.bs.tab.data-api",'[data-toggle="pill"]',b)}(jQuery);
+function(h){function m(b){return this.each(function(){var k=h(this),a=k.data("bs.affix"),c="object"==typeof b&&b;a||k.data("bs.affix",a=new l(this,c));if("string"==typeof b)a[b]()})}var l=function(b,k){this.options=h.extend({},l.DEFAULTS,k);this.$target=h(this.options.target).on("scroll.bs.affix.data-api",h.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",h.proxy(this.checkPositionWithEventLoop,this));this.$element=h(b);this.pinnedOffset=this.unpin=this.affixed=null;this.checkPosition()};
l.VERSION="3.3.7";l.RESET="affix affix-top affix-bottom";l.DEFAULTS={offset:0,target:window};l.prototype.getState=function(b,h,a,c){var d=this.$target.scrollTop(),e=this.$element.offset(),f=this.$target.height();if(null!=a&&"top"==this.affixed)return d<a?"top":!1;if("bottom"==this.affixed)return null!=a?d+this.unpin<=e.top?!1:"bottom":d+f<=b-c?!1:"bottom";var p=null==this.affixed,e=p?d:e.top;return null!=a&&d<=a?"top":null!=c&&e+(p?f:h)>=b-c?"bottom":!1};l.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;
this.$element.removeClass(l.RESET).addClass("affix");var b=this.$target.scrollTop();return this.pinnedOffset=this.$element.offset().top-b};l.prototype.checkPositionWithEventLoop=function(){setTimeout(h.proxy(this.checkPosition,this),1)};l.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),k=this.options.offset,a=k.top,c=k.bottom,d=Math.max(h(document).height(),h(document.body).height());"object"!=typeof k&&(c=a=k);"function"==typeof a&&(a=k.top(this.$element));
"function"==typeof c&&(c=k.bottom(this.$element));k=this.getState(d,b,a,c);if(this.affixed!=k){null!=this.unpin&&this.$element.css("top","");var a="affix"+(k?"-"+k:""),e=h.Event(a+".bs.affix");this.$element.trigger(e);if(e.isDefaultPrevented())return;this.affixed=k;this.unpin="bottom"==k?this.getPinnedOffset():null;this.$element.removeClass(l.RESET).addClass(a).trigger(a.replace("affix","affixed")+".bs.affix")}"bottom"==k&&this.$element.offset({top:d-b-c})}};var n=h.fn.affix;h.fn.affix=m;h.fn.affix.Constructor=
l;h.fn.affix.noConflict=function(){h.fn.affix=n;return this};h(window).on("load",function(){h('[data-spy="affix"]').each(function(){var b=h(this),k=b.data();k.offset=k.offset||{};null!=k.offsetBottom&&(k.offset.bottom=k.offsetBottom);null!=k.offsetTop&&(k.offset.top=k.offsetTop);m.call(b,k)})})}(jQuery);
+function(h){function m(b,k){this.$body=h(document.body);this.$scrollElement=h(b).is(document.body)?h(window):h(b);this.options=h.extend({},m.DEFAULTS,k);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",h.proxy(this.process,this));this.refresh();this.process()}function l(b){return this.each(function(){var k=h(this),a=k.data("bs.scrollspy"),c="object"==typeof b&&b;a||k.data("bs.scrollspy",
a=new m(this,c));if("string"==typeof b)a[b]()})}m.VERSION="3.3.7";m.DEFAULTS={offset:10};m.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};m.prototype.refresh=function(){var b=this,k="offset",a=0;this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();h.isWindow(this.$scrollElement[0])||(k="position",a=this.$scrollElement.scrollTop());this.$body.find(this.selector).map(function(){var c=
h(this),c=c.data("target")||c.attr("href"),b=/^#./.test(c)&&h(c);return b&&b.length&&b.is(":visible")&&[[b[k]().top+a,c]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]);b.targets.push(this[1])})};m.prototype.process=function(){var b=this.$scrollElement.scrollTop()+this.options.offset,h=this.getScrollHeight(),a=this.options.offset+h-this.$scrollElement.height(),c=this.offsets,d=this.targets,e=this.activeTarget,f;this.scrollHeight!=h&&this.refresh();if(b>=a)return e!=
(f=d[d.length-1])&&this.activate(f);if(e&&b<c[0])return this.activeTarget=null,this.clear();for(f=c.length;f--;)e!=d[f]&&b>=c[f]&&(void 0===c[f+1]||b<c[f+1])&&this.activate(d[f])};m.prototype.activate=function(b){this.activeTarget=b;this.clear();b=h(this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]').parents("li").addClass("active");b.parent(".dropdown-menu").length&&(b=b.closest("li.dropdown").addClass("active"));b.trigger("activate.bs.scrollspy")};m.prototype.clear=function(){h(this.selector).parentsUntil(this.options.target,
".active").removeClass("active")};var n=h.fn.scrollspy;h.fn.scrollspy=l;h.fn.scrollspy.Constructor=m;h.fn.scrollspy.noConflict=function(){h.fn.scrollspy=n;return this};h(window).on("load.bs.scrollspy.data-api",function(){h('[data-spy="scroll"]').each(function(){var b=h(this);l.call(b,b.data())})})}(jQuery);
+function(h){var m=function(h,b){this.inState=this.$element=this.hoverState=this.timeout=this.enabled=this.options=this.type=null;this.init("tooltip",h,b)};m.VERSION="3.3.7";m.TRANSITION_DURATION=150;m.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}};m.prototype.init=function(l,b,
k){this.enabled=!0;this.type=l;this.$element=h(b);this.options=this.getOptions(k);this.$viewport=this.options.viewport&&h(h.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport);this.inState={click:!1,hover:!1,focus:!1};if(this.$element[0]instanceof document.constructor&&!this.options.selector)throw Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");l=this.options.trigger.split(" ");
for(b=l.length;b--;)if(k=l[b],"click"==k)this.$element.on("click."+this.type,this.options.selector,h.proxy(this.toggle,this));else if("manual"!=k){var a="hover"==k?"mouseleave":"focusout";this.$element.on(("hover"==k?"mouseenter":"focusin")+"."+this.type,this.options.selector,h.proxy(this.enter,this));this.$element.on(a+"."+this.type,this.options.selector,h.proxy(this.leave,this))}this.options.selector?this._options=h.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};m.prototype.getDefaults=
function(){return m.DEFAULTS};m.prototype.getOptions=function(l){l=h.extend({},this.getDefaults(),this.$element.data(),l);l.delay&&"number"==typeof l.delay&&(l.delay={show:l.delay,hide:l.delay});return l};m.prototype.getDelegateOptions=function(){var l={},b=this.getDefaults();this._options&&h.each(this._options,function(h,a){b[h]!=a&&(l[h]=a)});return l};m.prototype.enter=function(l){var b=l instanceof this.constructor?l:h(l.currentTarget).data("bs."+this.type);b||(b=new this.constructor(l.currentTarget,
this.getDelegateOptions()),h(l.currentTarget).data("bs."+this.type,b));l instanceof h.Event&&(b.inState["focusin"==l.type?"focus":"hover"]=!0);if(b.tip().hasClass("in")||"in"==b.hoverState)b.hoverState="in";else{clearTimeout(b.timeout);b.hoverState="in";if(!b.options.delay||!b.options.delay.show)return b.show();b.timeout=setTimeout(function(){"in"==b.hoverState&&b.show()},b.options.delay.show)}};m.prototype.isInStateTrue=function(){for(var h in this.inState)if(this.inState[h])return!0;return!1};m.prototype.leave=
function(l){var b=l instanceof this.constructor?l:h(l.currentTarget).data("bs."+this.type);b||(b=new this.constructor(l.currentTarget,this.getDelegateOptions()),h(l.currentTarget).data("bs."+this.type,b));l instanceof h.Event&&(b.inState["focusout"==l.type?"focus":"hover"]=!1);if(!b.isInStateTrue()){clearTimeout(b.timeout);b.hoverState="out";if(!b.options.delay||!b.options.delay.hide)return b.hide();b.timeout=setTimeout(function(){"out"==b.hoverState&&b.hide()},b.options.delay.hide)}};m.prototype.show=
function(){var l=h.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(l);var b=h.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(!l.isDefaultPrevented()&&b){var k=this,l=this.tip(),b=this.getUID(this.type);this.setContent();l.attr("id",b);this.$element.attr("aria-describedby",b);this.options.animation&&l.addClass("fade");var b="function"==typeof this.options.placement?this.options.placement.call(this,l[0],this.$element[0]):this.options.placement,
a=/\s?auto?\s?/i,c=a.test(b);c&&(b=b.replace(a,"")||"top");l.detach().css({top:0,left:0,display:"block"}).addClass(b).data("bs."+this.type,this);this.options.container?l.appendTo(this.options.container):l.insertAfter(this.$element);this.$element.trigger("inserted.bs."+this.type);var a=this.getPosition(),d=l[0].offsetWidth,e=l[0].offsetHeight;if(c){var c=b,f=this.getPosition(this.$viewport),b="bottom"==b&&a.bottom+e>f.bottom?"top":"top"==b&&a.top-e<f.top?"bottom":"right"==b&&a.right+d>f.width?"left":
"left"==b&&a.left-d<f.left?"right":b;l.removeClass(c).addClass(b)}a=this.getCalculatedOffset(b,a,d,e);this.applyPlacement(a,b);b=function(){var a=k.hoverState;k.$element.trigger("shown.bs."+k.type);k.hoverState=null;"out"==a&&k.leave(k)};h.support.transition&&this.$tip.hasClass("fade")?l.one("bsTransitionEnd",b).emulateTransitionEnd(m.TRANSITION_DURATION):b()}}};m.prototype.applyPlacement=function(l,b){var k=this.tip(),a=k[0].offsetWidth,c=k[0].offsetHeight,d=parseInt(k.css("margin-top"),10),e=parseInt(k.css("margin-left"),
10);isNaN(d)&&(d=0);isNaN(e)&&(e=0);l.top+=d;l.left+=e;h.offset.setOffset(k[0],h.extend({using:function(a){k.css({top:Math.round(a.top),left:Math.round(a.left)})}},l),0);k.addClass("in");var e=k[0].offsetWidth,f=k[0].offsetHeight;"top"==b&&f!=c&&(l.top=l.top+c-f);var p=this.getViewportAdjustedDelta(b,l,e,f);p.left?l.left+=p.left:l.top+=p.top;a=(d=/top|bottom/.test(b))?2*p.left-a+e:2*p.top-c+f;c=d?"offsetWidth":"offsetHeight";k.offset(l);this.replaceArrow(a,k[0][c],d)};m.prototype.replaceArrow=function(h,
b,k){this.arrow().css(k?"left":"top",50*(1-h/b)+"%").css(k?"top":"left","")};m.prototype.setContent=function(){var h=this.tip(),b=this.getTitle();h.find(".tooltip-inner")[this.options.html?"html":"text"](b);h.removeClass("fade in top bottom left right")};m.prototype.hide=function(l){function b(){"in"!=k.hoverState&&a.detach();k.$element&&k.$element.removeAttr("aria-describedby").trigger("hidden.bs."+k.type);l&&l()}var k=this,a=h(this.$tip),c=h.Event("hide.bs."+this.type);this.$element.trigger(c);
if(!c.isDefaultPrevented())return a.removeClass("in"),h.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",b).emulateTransitionEnd(m.TRANSITION_DURATION):b(),this.hoverState=null,this};m.prototype.fixTitle=function(){var h=this.$element;(h.attr("title")||"string"!=typeof h.attr("data-original-title"))&&h.attr("data-original-title",h.attr("title")||"").attr("title","")};m.prototype.hasContent=function(){return this.getTitle()};m.prototype.getPosition=function(l){l=l||this.$element;var b=
l[0],k="BODY"==b.tagName,a=b.getBoundingClientRect();null==a.width&&(a=h.extend({},a,{width:a.right-a.left,height:a.bottom-a.top}));b=window.SVGElement&&b instanceof window.SVGElement;b=k?{top:0,left:0}:b?null:l.offset();l={scroll:k?document.documentElement.scrollTop||document.body.scrollTop:l.scrollTop()};k=k?{width:h(window).width(),height:h(window).height()}:null;return h.extend({},a,l,k,b)};m.prototype.getCalculatedOffset=function(h,b,k,a){return"bottom"==h?{top:b.top+b.height,left:b.left+b.width/
2-k/2}:"top"==h?{top:b.top-a,left:b.left+b.width/2-k/2}:"left"==h?{top:b.top+b.height/2-a/2,left:b.left-k}:{top:b.top+b.height/2-a/2,left:b.left+b.width}};m.prototype.getViewportAdjustedDelta=function(h,b,k,a){var c={top:0,left:0};if(!this.$viewport)return c;var d=this.options.viewport&&this.options.viewport.padding||0,e=this.getPosition(this.$viewport);/right|left/.test(h)?(k=b.top-d-e.scroll,b=b.top+d-e.scroll+a,k<e.top?c.top=e.top-k:b>e.top+e.height&&(c.top=e.top+e.height-b)):(a=b.left-d,b=b.left+
d+k,a<e.left?c.left=e.left-a:b>e.right&&(c.left=e.left+e.width-b));return c};m.prototype.getTitle=function(){var h=this.$element,b=this.options;return h.attr("data-original-title")||("function"==typeof b.title?b.title.call(h[0]):b.title)};m.prototype.getUID=function(h){do h+=~~(1E6*Math.random());while(document.getElementById(h));return h};m.prototype.tip=function(){if(!this.$tip&&(this.$tip=h(this.options.template),1!=this.$tip.length))throw Error(this.type+" `template` option must consist of exactly 1 top-level element!");
return this.$tip};m.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};m.prototype.enable=function(){this.enabled=!0};m.prototype.disable=function(){this.enabled=!1};m.prototype.toggleEnabled=function(){this.enabled=!this.enabled};m.prototype.toggle=function(l){var b=this;l&&(b=h(l.currentTarget).data("bs."+this.type),b||(b=new this.constructor(l.currentTarget,this.getDelegateOptions()),h(l.currentTarget).data("bs."+this.type,b)));l?(b.inState.click=!b.inState.click,
b.isInStateTrue()?b.enter(b):b.leave(b)):b.tip().hasClass("in")?b.leave(b):b.enter(b)};m.prototype.destroy=function(){var h=this;clearTimeout(this.timeout);this.hide(function(){h.$element.off("."+h.type).removeData("bs."+h.type);h.$tip&&h.$tip.detach();h.$tip=null;h.$arrow=null;h.$viewport=null;h.$element=null})};var l=h.fn.tooltip;h.fn.tooltip=function(l){return this.each(function(){var b=h(this),k=b.data("bs.tooltip"),a="object"==typeof l&&l;if(k||!/destroy|hide/.test(l))if(k||b.data("bs.tooltip",
k=new m(this,a)),"string"==typeof l)k[l]()})};h.fn.tooltip.Constructor=m;h.fn.tooltip.noConflict=function(){h.fn.tooltip=l;return this}}(jQuery);
+function(h){var m=function(h,b){this.init("popover",h,b)};if(!h.fn.tooltip)throw Error("Popover requires tooltip.js");m.VERSION="3.3.7";m.DEFAULTS=h.extend({},h.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'});m.prototype=h.extend({},h.fn.tooltip.Constructor.prototype);m.prototype.constructor=m;m.prototype.getDefaults=function(){return m.DEFAULTS};
m.prototype.setContent=function(){var h=this.tip(),b=this.getTitle(),k=this.getContent();h.find(".popover-title")[this.options.html?"html":"text"](b);h.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof k?"html":"append":"text"](k);h.removeClass("fade top bottom left right in");h.find(".popover-title").html()||h.find(".popover-title").hide()};m.prototype.hasContent=function(){return this.getTitle()||this.getContent()};m.prototype.getContent=function(){var h=this.$element,
b=this.options;return h.attr("data-content")||("function"==typeof b.content?b.content.call(h[0]):b.content)};m.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var l=h.fn.popover;h.fn.popover=function(l){return this.each(function(){var b=h(this),k=b.data("bs.popover"),a="object"==typeof l&&l;if(k||!/destroy|hide/.test(l))if(k||b.data("bs.popover",k=new m(this,a)),"string"==typeof l)k[l]()})};h.fn.popover.Constructor=m;h.fn.popover.noConflict=function(){h.fn.popover=
l;return this}}(jQuery);
(function(h,m,l){function n(){var a=h.L;b.noConflict=function(){h.L=a;return this};h.L=b}var b={version:"1.0.3"};"object"===typeof module&&"object"===typeof module.exports?module.exports=b:"function"===typeof define&&define.amd&&define(b);"undefined"!==typeof h&&n();b.Util={extend:function(a){var c,b,e,f;b=1;for(e=arguments.length;b<e;b++)for(c in f=arguments[b],f)a[c]=f[c];return a},create:Object.create||function(){function a(){}return function(c){a.prototype=c;return new a}}(),bind:function(a,c){var b=
Array.prototype.slice;if(a.bind)return a.bind.apply(a,b.call(arguments,1));var e=b.call(arguments,2);return function(){return a.apply(c,e.length?e.concat(b.call(arguments)):arguments)}},stamp:function(a){a._leaflet_id=a._leaflet_id||++b.Util.lastId;return a._leaflet_id},lastId:0,throttle:function(a,c,b){var e,f,h,k;k=function(){e=!1;f&&(h.apply(b,f),f=!1)};return h=function(){e?f=arguments:(a.apply(b,arguments),setTimeout(k,c),e=!0)}},wrapNum:function(a,c,b){var e=c[1];c=c[0];var f=e-c;return a===
e&&b?a:((a-c)%f+f)%f+c},falseFn:function(){return!1},formatNum:function(a,c){var b=Math.pow(10,c||5);return Math.round(a*b)/b},trim:function(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")},splitWords:function(a){return b.Util.trim(a).split(/\s+/)},setOptions:function(a,c){a.hasOwnProperty("options")||(a.options=a.options?b.Util.create(a.options):{});for(var d in c)a.options[d]=c[d];return a.options},getParamString:function(a,c,b){var e=[],f;for(f in a)e.push(encodeURIComponent(b?f.toUpperCase():
f)+"="+encodeURIComponent(a[f]));return(c&&-1!==c.indexOf("?")?"&":"?")+e.join("&")},template:function(a,c){return a.replace(b.Util.templateRe,function(a,b){var f=c[b];if(f===l)throw Error("No value provided for variable "+a);"function"===typeof f&&(f=f(c));return f})},templateRe:/\{ *([\w_\-]+) *\}/g,isArray:Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)},indexOf:function(a,c){for(var b=0;b<a.length;b++)if(a[b]===c)return b;return-1},emptyImageUrl:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="};
(function(){function a(a){return h["webkit"+a]||h["moz"+a]||h["ms"+a]}function c(a){var c=+new Date,b=Math.max(0,16-(c-d));d=c+b;return h.setTimeout(a,b)}var d=0,e=h.requestAnimationFrame||a("RequestAnimationFrame")||c,f=h.cancelAnimationFrame||a("CancelAnimationFrame")||a("CancelRequestAnimationFrame")||function(a){h.clearTimeout(a)};b.Util.requestAnimFrame=function(a,d,f){if(f&&e===c)a.call(d);else return e.call(h,b.bind(a,d))};b.Util.cancelAnimFrame=function(a){a&&f.call(h,a)}})();b.extend=b.Util.extend;
b.bind=b.Util.bind;b.stamp=b.Util.stamp;b.setOptions=b.Util.setOptions;b.Class=function(){};b.Class.extend=function(a){var c=function(){this.initialize&&this.initialize.apply(this,arguments);this.callInitHooks()},d=c.__super__=this.prototype,e=b.Util.create(d);e.constructor=c;c.prototype=e;for(var f in this)this.hasOwnProperty(f)&&"prototype"!==f&&(c[f]=this[f]);a.statics&&(b.extend(c,a.statics),delete a.statics);a.includes&&(b.Util.extend.apply(null,[e].concat(a.includes)),delete a.includes);e.options&&
(a.options=b.Util.extend(b.Util.create(e.options),a.options));b.extend(e,a);e._initHooks=[];e.callInitHooks=function(){if(!this._initHooksCalled){d.callInitHooks&&d.callInitHooks.call(this);this._initHooksCalled=!0;for(var a=0,c=e._initHooks.length;a<c;a++)e._initHooks[a].call(this)}};return c};b.Class.include=function(a){b.extend(this.prototype,a);return this};b.Class.mergeOptions=function(a){b.extend(this.prototype.options,a);return this};b.Class.addInitHook=function(a){var c=Array.prototype.slice.call(arguments,
1);this.prototype._initHooks=this.prototype._initHooks||[];this.prototype._initHooks.push("function"===typeof a?a:function(){this[a].apply(this,c)});return this};b.Evented=b.Class.extend({on:function(a,c,d){if("object"===typeof a)for(var e in a)this._on(e,a[e],c);else{a=b.Util.splitWords(a);e=0;for(var f=a.length;e<f;e++)this._on(a[e],c,d)}return this},off:function(a,c,d){if(a)if("object"===typeof a)for(var e in a)this._off(e,a[e],c);else{a=b.Util.splitWords(a);e=0;for(var f=a.length;e<f;e++)this._off(a[e],
c,d)}else delete this._events;return this},_on:function(a,c,b){this._events=this._events||{};var e=this._events[a];e||(e=[],this._events[a]=e);b===this&&(b=l);a={fn:c,ctx:b};for(var f=0,h=e.length;f<h;f++)if(e[f].fn===c&&e[f].ctx===b)return;e.push(a)},_off:function(a,c,d){var e,f,h;if(this._events&&(e=this._events[a]))if(c){if(d===this&&(d=l),e)for(f=0,h=e.length;f<h;f++){var k=e[f];if(k.ctx===d&&k.fn===c){k.fn=b.Util.falseFn;this._firingCount&&(this._events[a]=e=e.slice());e.splice(f,1);break}}}else{f=
0;for(h=e.length;f<h;f++)e[f].fn=b.Util.falseFn;delete this._events[a]}},fire:function(a,c,d){if(!this.listens(a,d))return this;c=b.Util.extend({},c,{type:a,target:this});if(this._events&&(a=this._events[a])){this._firingCount=this._firingCount+1||1;for(var e=0,f=a.length;e<f;e++){var h=a[e];h.fn.call(h.ctx||this,c)}this._firingCount--}d&&this._propagateEvent(c);return this},listens:function(a,c){var b=this._events&&this._events[a];if(b&&b.length)return!0;if(c)for(var e in this._eventParents)if(this._eventParents[e].listens(a,
c))return!0;return!1},once:function(a,c,d){if("object"===typeof a){for(var e in a)this.once(e,a[e],c);return this}var f=b.bind(function(){this.off(a,c,d).off(a,f,d)},this);return this.on(a,c,d).on(a,f,d)},addEventParent:function(a){this._eventParents=this._eventParents||{};this._eventParents[b.stamp(a)]=a;return this},removeEventParent:function(a){this._eventParents&&delete this._eventParents[b.stamp(a)];return this},_propagateEvent:function(a){for(var c in this._eventParents)this._eventParents[c].fire(a.type,
b.extend({layer:a.target},a),!0)}});var k=b.Evented.prototype;k.addEventListener=k.on;k.removeEventListener=k.clearAllEventListeners=k.off;k.addOneTimeEventListener=k.once;k.fireEvent=k.fire;k.hasEventListeners=k.listens;b.Mixin={Events:k};(function(){var a=navigator.userAgent.toLowerCase(),c=m.documentElement,d="ActiveXObject"in h,e=-1!==a.indexOf("webkit"),f=-1!==a.indexOf("phantom"),k=-1!==a.search("android [23]"),l=-1!==a.indexOf("chrome"),y=-1!==a.indexOf("gecko")&&!e&&!h.opera&&!d,n=0===navigator.platform.indexOf("Win"),
J="undefined"!==typeof orientation||-1!==a.indexOf("mobile"),G=!h.PointerEvent&&h.MSPointerEvent,C=h.PointerEvent||G,H=d&&"transition"in c.style,Q="WebKitCSSMatrix"in h&&"m11"in new h.WebKitCSSMatrix&&!k,S="MozPerspective"in c.style,c="OTransition"in c.style,M=!h.L_NO_TOUCH&&(C||"ontouchstart"in h||h.DocumentTouch&&m instanceof h.DocumentTouch);b.Browser={ie:d,ielt9:d&&!m.addEventListener,edge:"msLaunchUri"in navigator&&!("documentMode"in m),webkit:e,gecko:y,android:-1!==a.indexOf("android"),android23:k,
chrome:l,safari:!l&&-1!==a.indexOf("safari"),win:n,ie3d:H,webkit3d:Q,gecko3d:S,opera12:c,any3d:!h.L_DISABLE_3D&&(H||Q||S)&&!c&&!f,mobile:J,mobileWebkit:J&&e,mobileWebkit3d:J&&Q,mobileOpera:J&&h.opera,mobileGecko:J&&y,touch:!!M,msPointer:!!G,pointer:!!C,retina:1<(h.devicePixelRatio||h.screen.deviceXDPI/h.screen.logicalXDPI)}})();b.Point=function(a,c,b){this.x=b?Math.round(a):a;this.y=b?Math.round(c):c};b.Point.prototype={clone:function(){return new b.Point(this.x,this.y)},add:function(a){return this.clone()._add(b.point(a))},
_add:function(a){this.x+=a.x;this.y+=a.y;return this},subtract:function(a){return this.clone()._subtract(b.point(a))},_subtract:function(a){this.x-=a.x;this.y-=a.y;return this},divideBy:function(a){return this.clone()._divideBy(a)},_divideBy:function(a){this.x/=a;this.y/=a;return this},multiplyBy:function(a){return this.clone()._multiplyBy(a)},_multiplyBy:function(a){this.x*=a;this.y*=a;return this},scaleBy:function(a){return new b.Point(this.x*a.x,this.y*a.y)},unscaleBy:function(a){return new b.Point(this.x/
a.x,this.y/a.y)},round:function(){return this.clone()._round()},_round:function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this},floor:function(){return this.clone()._floor()},_floor:function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this},ceil:function(){return this.clone()._ceil()},_ceil:function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this},distanceTo:function(a){a=b.point(a);var c=a.x-this.x;a=a.y-this.y;return Math.sqrt(c*c+a*a)},equals:function(a){a=
b.point(a);return a.x===this.x&&a.y===this.y},contains:function(a){a=b.point(a);return Math.abs(a.x)<=Math.abs(this.x)&&Math.abs(a.y)<=Math.abs(this.y)},toString:function(){return"Point("+b.Util.formatNum(this.x)+", "+b.Util.formatNum(this.y)+")"}};b.point=function(a,c,d){return a instanceof b.Point?a:b.Util.isArray(a)?new b.Point(a[0],a[1]):a===l||null===a?a:"object"===typeof a&&"x"in a&&"y"in a?new b.Point(a.x,a.y):new b.Point(a,c,d)};b.Bounds=function(a,c){if(a)for(var b=c?[a,c]:a,e=0,f=b.length;e<
f;e++)this.extend(b[e])};b.Bounds.prototype={extend:function(a){a=b.point(a);this.min||this.max?(this.min.x=Math.min(a.x,this.min.x),this.max.x=Math.max(a.x,this.max.x),this.min.y=Math.min(a.y,this.min.y),this.max.y=Math.max(a.y,this.max.y)):(this.min=a.clone(),this.max=a.clone());return this},getCenter:function(a){return new b.Point((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,a)},getBottomLeft:function(){return new b.Point(this.min.x,this.max.y)},getTopRight:function(){return new b.Point(this.max.x,
this.min.y)},getSize:function(){return this.max.subtract(this.min)},contains:function(a){var c;a="number"===typeof a[0]||a instanceof b.Point?b.point(a):b.bounds(a);a instanceof b.Bounds?(c=a.min,a=a.max):c=a;return c.x>=this.min.x&&a.x<=this.max.x&&c.y>=this.min.y&&a.y<=this.max.y},intersects:function(a){a=b.bounds(a);var c=this.min,d=this.max,e=a.min;a=a.max;var f=a.y>=c.y&&e.y<=d.y;return a.x>=c.x&&e.x<=d.x&&f},overlaps:function(a){a=b.bounds(a);var c=this.min,d=this.max,e=a.min;a=a.max;var f=
a.y>c.y&&e.y<d.y;return a.x>c.x&&e.x<d.x&&f},isValid:function(){return!(!this.min||!this.max)}};b.bounds=function(a,c){return!a||a instanceof b.Bounds?a:new b.Bounds(a,c)};b.Transformation=function(a,c,b,e){this._a=a;this._b=c;this._c=b;this._d=e};b.Transformation.prototype={transform:function(a,c){return this._transform(a.clone(),c)},_transform:function(a,c){c=c||1;a.x=c*(this._a*a.x+this._b);a.y=c*(this._c*a.y+this._d);return a},untransform:function(a,c){c=c||1;return new b.Point((a.x/c-this._b)/
this._a,(a.y/c-this._d)/this._c)}};b.DomUtil={get:function(a){return"string"===typeof a?m.getElementById(a):a},getStyle:function(a,c){var b=a.style[c]||a.currentStyle&&a.currentStyle[c];b&&"auto"!==b||!m.defaultView||(b=(b=m.defaultView.getComputedStyle(a,null))?b[c]:null);return"auto"===b?null:b},create:function(a,c,b){a=m.createElement(a);a.className=c||"";b&&b.appendChild(a);return a},remove:function(a){var c=a.parentNode;c&&c.removeChild(a)},empty:function(a){for(;a.firstChild;)a.removeChild(a.firstChild)},
toFront:function(a){a.parentNode.appendChild(a)},toBack:function(a){var c=a.parentNode;c.insertBefore(a,c.firstChild)},hasClass:function(a,c){if(a.classList!==l)return a.classList.contains(c);var d=b.DomUtil.getClass(a);return 0<d.length&&(new RegExp("(^|\\s)"+c+"(\\s|$)")).test(d)},addClass:function(a,c){if(a.classList!==l)for(var d=b.Util.splitWords(c),e=0,f=d.length;e<f;e++)a.classList.add(d[e]);else b.DomUtil.hasClass(a,c)||(d=b.DomUtil.getClass(a),b.DomUtil.setClass(a,(d?d+" ":"")+c))},removeClass:function(a,
c){a.classList!==l?a.classList.remove(c):b.DomUtil.setClass(a,b.Util.trim((" "+b.DomUtil.getClass(a)+" ").replace(" "+c+" "," ")))},setClass:function(a,c){a.className.baseVal===l?a.className=c:a.className.baseVal=c},getClass:function(a){return a.className.baseVal===l?a.className:a.className.baseVal},setOpacity:function(a,c){"opacity"in a.style?a.style.opacity=c:"filter"in a.style&&b.DomUtil._setOpacityIE(a,c)},_setOpacityIE:function(a,c){var b=!1;try{b=a.filters.item("DXImageTransform.Microsoft.Alpha")}catch(e){if(1===
c)return}c=Math.round(100*c);b?(b.Enabled=100!==c,b.Opacity=c):a.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(opacity="+c+")"},testProp:function(a){for(var c=m.documentElement.style,b=0;b<a.length;b++)if(a[b]in c)return a[b];return!1},setTransform:function(a,c,d){c=c||new b.Point(0,0);a.style[b.DomUtil.TRANSFORM]=(b.Browser.ie3d?"translate("+c.x+"px,"+c.y+"px)":"translate3d("+c.x+"px,"+c.y+"px,0)")+(d?" scale("+d+")":"")},setPosition:function(a,c){a._leaflet_pos=c;b.Browser.any3d?b.DomUtil.setTransform(a,
c):(a.style.left=c.x+"px",a.style.top=c.y+"px")},getPosition:function(a){return a._leaflet_pos||new b.Point(0,0)}};(function(){b.DomUtil.TRANSFORM=b.DomUtil.testProp(["transform","WebkitTransform","OTransform","MozTransform","msTransform"]);var a=b.DomUtil.TRANSITION=b.DomUtil.testProp(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);b.DomUtil.TRANSITION_END="webkitTransition"===a||"OTransition"===a?a+"End":"transitionend";if("onselectstart"in m)b.DomUtil.disableTextSelection=
function(){b.DomEvent.on(h,"selectstart",b.DomEvent.preventDefault)},b.DomUtil.enableTextSelection=function(){b.DomEvent.off(h,"selectstart",b.DomEvent.preventDefault)};else{var c=b.DomUtil.testProp(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);b.DomUtil.disableTextSelection=function(){if(c){var a=m.documentElement.style;this._userSelect=a[c];a[c]="none"}};b.DomUtil.enableTextSelection=function(){c&&(m.documentElement.style[c]=this._userSelect,delete this._userSelect)}}b.DomUtil.disableImageDrag=
function(){b.DomEvent.on(h,"dragstart",b.DomEvent.preventDefault)};b.DomUtil.enableImageDrag=function(){b.DomEvent.off(h,"dragstart",b.DomEvent.preventDefault)};b.DomUtil.preventOutline=function(a){for(;-1===a.tabIndex;)a=a.parentNode;a&&a.style&&(b.DomUtil.restoreOutline(),this._outlineElement=a,this._outlineStyle=a.style.outline,a.style.outline="none",b.DomEvent.on(h,"keydown",b.DomUtil.restoreOutline,this))};b.DomUtil.restoreOutline=function(){this._outlineElement&&(this._outlineElement.style.outline=
this._outlineStyle,delete this._outlineElement,delete this._outlineStyle,b.DomEvent.off(h,"keydown",b.DomUtil.restoreOutline,this))}})();b.LatLng=function(a,c,b){if(isNaN(a)||isNaN(c))throw Error("Invalid LatLng object: ("+a+", "+c+")");this.lat=+a;this.lng=+c;b!==l&&(this.alt=+b)};b.LatLng.prototype={equals:function(a,c){if(!a)return!1;a=b.latLng(a);return Math.max(Math.abs(this.lat-a.lat),Math.abs(this.lng-a.lng))<=(c===l?1E-9:c)},toString:function(a){return"LatLng("+b.Util.formatNum(this.lat,a)+
", "+b.Util.formatNum(this.lng,a)+")"},distanceTo:function(a){return b.CRS.Earth.distance(this,b.latLng(a))},wrap:function(){return b.CRS.Earth.wrapLatLng(this)},toBounds:function(a){a=180*a/40075017;var c=a/Math.cos(Math.PI/180*this.lat);return b.latLngBounds([this.lat-a,this.lng-c],[this.lat+a,this.lng+c])},clone:function(){return new b.LatLng(this.lat,this.lng,this.alt)}};b.latLng=function(a,c,d){return a instanceof b.LatLng?a:b.Util.isArray(a)&&"object"!==typeof a[0]?3===a.length?new b.LatLng(a[0],
a[1],a[2]):2===a.length?new b.LatLng(a[0],a[1]):null:a===l||null===a?a:"object"===typeof a&&"lat"in a?new b.LatLng(a.lat,"lng"in a?a.lng:a.lon,a.alt):c===l?null:new b.LatLng(a,c,d)};b.LatLngBounds=function(a,c){if(a)for(var b=c?[a,c]:a,e=0,f=b.length;e<f;e++)this.extend(b[e])};b.LatLngBounds.prototype={extend:function(a){var c=this._southWest,d=this._northEast,e;if(a instanceof b.LatLng)e=a;else if(a instanceof b.LatLngBounds){if(e=a._southWest,a=a._northEast,!e||!a)return this}else return a?this.extend(b.latLng(a)||
b.latLngBounds(a)):this;c||d?(c.lat=Math.min(e.lat,c.lat),c.lng=Math.min(e.lng,c.lng),d.lat=Math.max(a.lat,d.lat),d.lng=Math.max(a.lng,d.lng)):(this._southWest=new b.LatLng(e.lat,e.lng),this._northEast=new b.LatLng(a.lat,a.lng));return this},pad:function(a){var c=this._southWest,d=this._northEast,e=Math.abs(c.lat-d.lat)*a;a*=Math.abs(c.lng-d.lng);return new b.LatLngBounds(new b.LatLng(c.lat-e,c.lng-a),new b.LatLng(d.lat+e,d.lng+a))},getCenter:function(){return new b.LatLng((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 b.LatLng(this.getNorth(),this.getWest())},getSouthEast:function(){return new b.LatLng(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(a){a=
"number"===typeof a[0]||a instanceof b.LatLng||"lat"in a?b.latLng(a):b.latLngBounds(a);var c=this._southWest,d=this._northEast,e;a instanceof b.LatLngBounds?(e=a.getSouthWest(),a=a.getNorthEast()):e=a;return e.lat>=c.lat&&a.lat<=d.lat&&e.lng>=c.lng&&a.lng<=d.lng},intersects:function(a){a=b.latLngBounds(a);var c=this._southWest,d=this._northEast,e=a.getSouthWest();a=a.getNorthEast();var f=a.lng>=c.lng&&e.lng<=d.lng;return a.lat>=c.lat&&e.lat<=d.lat&&f},overlaps:function(a){a=b.latLngBounds(a);var c=
this._southWest,d=this._northEast,e=a.getSouthWest();a=a.getNorthEast();var f=a.lng>c.lng&&e.lng<d.lng;return a.lat>c.lat&&e.lat<d.lat&&f},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join()},equals:function(a){if(!a)return!1;a=b.latLngBounds(a);return this._southWest.equals(a.getSouthWest())&&this._northEast.equals(a.getNorthEast())},isValid:function(){return!(!this._southWest||!this._northEast)}};b.latLngBounds=function(a,c){return a instanceof b.LatLngBounds?
a:new b.LatLngBounds(a,c)};b.Projection={};b.Projection.LonLat={project:function(a){return new b.Point(a.lng,a.lat)},unproject:function(a){return new b.LatLng(a.y,a.x)},bounds:b.bounds([-180,-90],[180,90])};b.Projection.SphericalMercator={R:6378137,MAX_LATITUDE:85.0511287798,project:function(a){var c=Math.PI/180,d=this.MAX_LATITUDE,d=Math.sin(Math.max(Math.min(d,a.lat),-d)*c);return new b.Point(this.R*a.lng*c,this.R*Math.log((1+d)/(1-d))/2)},unproject:function(a){var c=180/Math.PI;return new b.LatLng((2*
Math.atan(Math.exp(a.y/this.R))-Math.PI/2)*c,a.x*c/this.R)},bounds:function(){var a=6378137*Math.PI;return b.bounds([-a,-a],[a,a])}()};b.CRS={latLngToPoint:function(a,c){var b=this.projection.project(a),e=this.scale(c);return this.transformation._transform(b,e)},pointToLatLng:function(a,c){var b=this.scale(c),b=this.transformation.untransform(a,b);return this.projection.unproject(b)},project:function(a){return this.projection.project(a)},unproject:function(a){return this.projection.unproject(a)},
scale:function(a){return 256*Math.pow(2,a)},zoom:function(a){return Math.log(a/256)/Math.LN2},getProjectedBounds:function(a){if(this.infinite)return null;var c=this.projection.bounds,d=this.scale(a);a=this.transformation.transform(c.min,d);c=this.transformation.transform(c.max,d);return b.bounds(a,c)},infinite:!1,wrapLatLng:function(a){var c=this.wrapLng?b.Util.wrapNum(a.lng,this.wrapLng,!0):a.lng,d=this.wrapLat?b.Util.wrapNum(a.lat,this.wrapLat,!0):a.lat;return b.latLng(d,c,a.alt)},wrapLatLngBounds:function(a){var c=
a.getCenter(),d=this.wrapLatLng(c),e=c.lat-d.lat,c=c.lng-d.lng;if(0===e&&0===c)return a;d=a.getSouthWest();a=a.getNorthEast();d=b.latLng({lat:d.lat-e,lng:d.lng-c});e=b.latLng({lat:a.lat-e,lng:a.lng-c});return new b.LatLngBounds(d,e)}};b.CRS.Simple=b.extend({},b.CRS,{projection:b.Projection.LonLat,transformation:new b.Transformation(1,0,-1,0),scale:function(a){return Math.pow(2,a)},zoom:function(a){return Math.log(a)/Math.LN2},distance:function(a,c){var b=c.lng-a.lng,e=c.lat-a.lat;return Math.sqrt(b*
b+e*e)},infinite:!0});b.CRS.Earth=b.extend({},b.CRS,{wrapLng:[-180,180],R:6371E3,distance:function(a,c){var b=Math.PI/180,e=a.lat*b,f=c.lat*b;return this.R*Math.acos(Math.min(Math.sin(e)*Math.sin(f)+Math.cos(e)*Math.cos(f)*Math.cos((c.lng-a.lng)*b),1))}});b.CRS.EPSG3857=b.extend({},b.CRS.Earth,{code:"EPSG:3857",projection:b.Projection.SphericalMercator,transformation:function(){var a=.5/(Math.PI*b.Projection.SphericalMercator.R);return new b.Transformation(a,.5,-a,.5)}()});b.CRS.EPSG900913=b.extend({},
b.CRS.EPSG3857,{code:"EPSG:900913"});b.CRS.EPSG4326=b.extend({},b.CRS.Earth,{code:"EPSG:4326",projection:b.Projection.LonLat,transformation:new b.Transformation(1/180,1,-1/180,.5)});b.Map=b.Evented.extend({options:{crs:b.CRS.EPSG3857,center:l,zoom:l,minZoom:l,maxZoom:l,layers:[],maxBounds:l,renderer:l,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(a,c){c=b.setOptions(this,c);this._initContainer(a);
this._initLayout();this._onResize=b.bind(this._onResize,this);this._initEvents();c.maxBounds&&this.setMaxBounds(c.maxBounds);c.zoom!==l&&(this._zoom=this._limitZoom(c.zoom));c.center&&c.zoom!==l&&this.setView(b.latLng(c.center),c.zoom,{reset:!0});this._handlers=[];this._layers={};this._zoomBoundLayers={};this._sizeChanged=!0;this.callInitHooks();if(this._zoomAnimated=b.DomUtil.TRANSITION&&b.Browser.any3d&&!b.Browser.mobileOpera&&this.options.zoomAnimation)this._createAnimProxy(),b.DomEvent.on(this._proxy,
b.DomUtil.TRANSITION_END,this._catchTransitionEnd,this);this._addLayers(this.options.layers)},setView:function(a,c,d){c=c===l?this._zoom:this._limitZoom(c);a=this._limitCenter(b.latLng(a),c,this.options.maxBounds);d=d||{};this._stop();if(this._loaded&&!d.reset&&!0!==d&&(d.animate!==l&&(d.zoom=b.extend({animate:d.animate},d.zoom),d.pan=b.extend({animate:d.animate,duration:d.duration},d.pan)),this._zoom!==c?this._tryAnimatedZoom&&this._tryAnimatedZoom(a,c,d.zoom):this._tryAnimatedPan(a,d.pan)))return clearTimeout(this._sizeTimer),
this;this._resetView(a,c);return this},setZoom:function(a,c){return this._loaded?this.setView(this.getCenter(),a,{zoom:c}):(this._zoom=a,this)},zoomIn:function(a,c){a=a||(b.Browser.any3d?this.options.zoomDelta:1);return this.setZoom(this._zoom+a,c)},zoomOut:function(a,c){a=a||(b.Browser.any3d?this.options.zoomDelta:1);return this.setZoom(this._zoom-a,c)},setZoomAround:function(a,c,d){var e=this.getZoomScale(c),f=this.getSize().divideBy(2);a=(a instanceof b.Point?a:this.latLngToContainerPoint(a)).subtract(f).multiplyBy(1-
1/e);f=this.containerPointToLatLng(f.add(a));return this.setView(f,c,{zoom:d})},_getBoundsCenterZoom:function(a,c){c=c||{};a=a.getBounds?a.getBounds():b.latLngBounds(a);var d=b.point(c.paddingTopLeft||c.padding||[0,0]),e=b.point(c.paddingBottomRight||c.padding||[0,0]),f=this.getBoundsZoom(a,!1,d.add(e)),f="number"===typeof c.maxZoom?Math.min(c.maxZoom,f):f,d=e.subtract(d).divideBy(2),e=this.project(a.getSouthWest(),f),h=this.project(a.getNorthEast(),f);return{center:this.unproject(e.add(h).divideBy(2).add(d),
f),zoom:f}},fitBounds:function(a,c){a=b.latLngBounds(a);if(!a.isValid())throw Error("Bounds are not valid.");var d=this._getBoundsCenterZoom(a,c);return this.setView(d.center,d.zoom,c)},fitWorld:function(a){return this.fitBounds([[-90,-180],[90,180]],a)},panTo:function(a,c){return this.setView(a,this._zoom,{pan:c})},panBy:function(a,c){a=b.point(a).round();c=c||{};if(!a.x&&!a.y)return this.fire("moveend");if(!0!==c.animate&&!this.getSize().contains(a))return this._resetView(this.unproject(this.project(this.getCenter()).add(a)),
this.getZoom()),this;this._panAnim||(this._panAnim=new b.PosAnimation,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this));c.noMoveStart||this.fire("movestart");if(!1!==c.animate){b.DomUtil.addClass(this._mapPane,"leaflet-pan-anim");var d=this._getMapPanePos().subtract(a).round();this._panAnim.run(this._mapPane,d,c.duration||.25,c.easeLinearity)}else this._rawPanBy(a),this.fire("move").fire("moveend");return this},flyTo:function(a,c,d){function e(a){a=(Q*Q-H*H+2.0164*
(a?-1:1)*2.0164*S*S)/(4.0328*(a?Q:H)*S);a=Math.sqrt(a*a+1)-a;return 1E-9>a?-18:Math.log(a)}function f(a){return(Math.exp(a)+Math.exp(-a))/2}function h(a){return H*(f(M)/f(M+1.42*a))}function k(a){var c=f(M);a=M+1.42*a;a=(Math.exp(a)-Math.exp(-a))/2/f(a);return H*(c*a-(Math.exp(M)-Math.exp(-M))/2)/2.0164}function m(){var d=(Date.now()-la)/Aa,e=(1-Math.pow(1-d,1.5))*ua;1>=d?(this._flyToFrame=b.Util.requestAnimFrame(m,this),this._move(this.unproject(n.add(J.subtract(n).multiplyBy(k(e)/S)),C),this.getScaleZoom(H/
h(e),C),{flyTo:!0})):this._move(a,c)._moveEnd(!0)}d=d||{};if(!1===d.animate||!b.Browser.any3d)return this.setView(a,c,d);this._stop();var n=this.project(this.getCenter()),J=this.project(a),G=this.getSize(),C=this._zoom;a=b.latLng(a);c=c===l?C:c;var H=Math.max(G.x,G.y),Q=H*this.getZoomScale(C,c),S=J.distanceTo(n)||1,M=e(0),la=Date.now(),ua=(e(1)-M)/1.42,Aa=d.duration?1E3*d.duration:800*ua;this._moveStart(!0);m.call(this);return this},flyToBounds:function(a,c){var b=this._getBoundsCenterZoom(a,c);return this.flyTo(b.center,
b.zoom,c)},setMaxBounds:function(a){a=b.latLngBounds(a);if(a.isValid())this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds);else return this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds);this.options.maxBounds=a;this._loaded&&this._panInsideMaxBounds();return this.on("moveend",this._panInsideMaxBounds)},setMinZoom:function(a){this.options.minZoom=a;return this._loaded&&this.getZoom()<this.options.minZoom?this.setZoom(a):this},setMaxZoom:function(a){this.options.maxZoom=
a;return this._loaded&&this.getZoom()>this.options.maxZoom?this.setZoom(a):this},panInsideBounds:function(a,c){this._enforcingBounds=!0;var d=this.getCenter(),e=this._limitCenter(d,this._zoom,b.latLngBounds(a));d.equals(e)||this.panTo(e,c);this._enforcingBounds=!1;return this},invalidateSize:function(a){if(!this._loaded)return this;a=b.extend({animate:!1,pan:!0},!0===a?{animate:!0}:a);var c=this.getSize();this._sizeChanged=!0;this._lastCenter=null;var d=this.getSize(),e=c.divideBy(2).round(),f=d.divideBy(2).round(),
e=e.subtract(f);if(!e.x&&!e.y)return this;a.animate&&a.pan?this.panBy(e):(a.pan&&this._rawPanBy(e),this.fire("move"),a.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(b.bind(this.fire,this,"moveend"),200)):this.fire("moveend"));return this.fire("resize",{oldSize:c,newSize:d})},stop:function(){this.setZoom(this._limitZoom(this._zoom));this.options.zoomSnap||this.fire("viewreset");return this._stop()},locate:function(a){a=this._locateOptions=b.extend({timeout:1E4,watch:!1},
a);if(!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var c=b.bind(this._handleGeolocationResponse,this),d=b.bind(this._handleGeolocationError,this);a.watch?this._locationWatchId=navigator.geolocation.watchPosition(c,d,a):navigator.geolocation.getCurrentPosition(c,d,a);return this},stopLocate:function(){navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId);this._locateOptions&&
(this._locateOptions.setView=!1);return this},_handleGeolocationError:function(a){var c=a.code;a=a.message||(1===c?"permission denied":2===c?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld();this.fire("locationerror",{code:c,message:"Geolocation error: "+a+"."})},_handleGeolocationResponse:function(a){var c=new b.LatLng(a.coords.latitude,a.coords.longitude),d=c.toBounds(a.coords.accuracy),e=this._locateOptions;if(e.setView){var f=this.getBoundsZoom(d);this.setView(c,
e.maxZoom?Math.min(f,e.maxZoom):f)}var c={latlng:c,bounds:d,timestamp:a.timestamp},h;for(h in a.coords)"number"===typeof a.coords[h]&&(c[h]=a.coords[h]);this.fire("locationfound",c)},addHandler:function(a,c){if(!c)return this;var b=this[a]=new c(this);this._handlers.push(b);this.options[a]&&b.enable();return this},remove:function(){this._initEvents(!0);if(this._containerId!==this._container._leaflet_id)throw Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,
delete this._containerId}catch(c){this._containerId=this._container._leaflet_id=l}b.DomUtil.remove(this._mapPane);this._clearControlPos&&this._clearControlPos();this._clearHandlers();this._loaded&&this.fire("unload");for(var a in this._layers)this._layers[a].remove();return this},createPane:function(a,c){var d="leaflet-pane"+(a?" leaflet-"+a.replace("Pane","")+"-pane":""),d=b.DomUtil.create("div",d,c||this._mapPane);a&&(this._panes[a]=d);return d},getCenter:function(){this._checkIfLoaded();return this._lastCenter&&
!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var a=this.getPixelBounds(),c=this.unproject(a.getBottomLeft()),a=this.unproject(a.getTopRight());return new b.LatLngBounds(c,a)},getMinZoom:function(){return this.options.minZoom===l?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===l?this._layersMaxZoom===l?Infinity:this._layersMaxZoom:this.options.maxZoom},
getBoundsZoom:function(a,c,d){a=b.latLngBounds(a);d=b.point(d||[0,0]);var e=this.getZoom()||0,f=this.getMinZoom(),h=this.getMaxZoom(),k=a.getNorthWest();a=a.getSouthEast();d=this.getSize().subtract(d);k=b.bounds(this.project(a,e),this.project(k,e)).getSize();a=b.Browser.any3d?this.options.zoomSnap:1;e=this.getScaleZoom(Math.min(d.x/k.x,d.y/k.y),e);a&&(e=a/100*Math.round(e/(a/100)),e=c?Math.ceil(e/a)*a:Math.floor(e/a)*a);return Math.max(f,Math.min(h,e))},getSize:function(){if(!this._size||this._sizeChanged)this._size=
new b.Point(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1;return this._size.clone()},getPixelBounds:function(a,c){var d=this._getTopLeftPoint(a,c);return new b.Bounds(d,d.add(this.getSize()))},getPixelOrigin:function(){this._checkIfLoaded();return this._pixelOrigin},getPixelWorldBounds:function(a){return this.options.crs.getProjectedBounds(a===l?this.getZoom():a)},getPane:function(a){return"string"===typeof a?this._panes[a]:a},getPanes:function(){return this._panes},
getContainer:function(){return this._container},getZoomScale:function(a,c){var b=this.options.crs;c=c===l?this._zoom:c;return b.scale(a)/b.scale(c)},getScaleZoom:function(a,c){var b=this.options.crs;c=c===l?this._zoom:c;b=b.zoom(a*b.scale(c));return isNaN(b)?Infinity:b},project:function(a,c){c=c===l?this._zoom:c;return this.options.crs.latLngToPoint(b.latLng(a),c)},unproject:function(a,c){c=c===l?this._zoom:c;return this.options.crs.pointToLatLng(b.point(a),c)},layerPointToLatLng:function(a){a=b.point(a).add(this.getPixelOrigin());
return this.unproject(a)},latLngToLayerPoint:function(a){return this.project(b.latLng(a))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(a){return this.options.crs.wrapLatLng(b.latLng(a))},wrapLatLngBounds:function(a){return this.options.crs.wrapLatLngBounds(b.latLngBounds(a))},distance:function(a,c){return this.options.crs.distance(b.latLng(a),b.latLng(c))},containerPointToLayerPoint:function(a){return b.point(a).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(a){return b.point(a).add(this._getMapPanePos())},
containerPointToLatLng:function(a){a=this.containerPointToLayerPoint(b.point(a));return this.layerPointToLatLng(a)},latLngToContainerPoint:function(a){return this.layerPointToContainerPoint(this.latLngToLayerPoint(b.latLng(a)))},mouseEventToContainerPoint:function(a){return b.DomEvent.getMousePosition(a,this._container)},mouseEventToLayerPoint:function(a){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(a))},mouseEventToLatLng:function(a){return this.layerPointToLatLng(this.mouseEventToLayerPoint(a))},
_initContainer:function(a){a=this._container=b.DomUtil.get(a);if(!a)throw Error("Map container not found.");if(a._leaflet_id)throw Error("Map container is already initialized.");b.DomEvent.addListener(a,"scroll",this._onScroll,this);this._containerId=b.Util.stamp(a)},_initLayout:function(){var a=this._container;this._fadeAnimated=this.options.fadeAnimation&&b.Browser.any3d;b.DomUtil.addClass(a,"leaflet-container"+(b.Browser.touch?" leaflet-touch":"")+(b.Browser.retina?" leaflet-retina":"")+(b.Browser.ielt9?
" leaflet-oldie":"")+(b.Browser.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var c=b.DomUtil.getStyle(a,"position");"absolute"!==c&&"relative"!==c&&"fixed"!==c&&(a.style.position="relative");this._initPanes();this._initControlPos&&this._initControlPos()},_initPanes:function(){var a=this._panes={};this._paneRenderers={};this._mapPane=this.createPane("mapPane",this._container);b.DomUtil.setPosition(this._mapPane,new b.Point(0,0));this.createPane("tilePane");this.createPane("shadowPane");
this.createPane("overlayPane");this.createPane("markerPane");this.createPane("tooltipPane");this.createPane("popupPane");this.options.markerZoomAnimation||(b.DomUtil.addClass(a.markerPane,"leaflet-zoom-hide"),b.DomUtil.addClass(a.shadowPane,"leaflet-zoom-hide"))},_resetView:function(a,c){b.DomUtil.setPosition(this._mapPane,new b.Point(0,0));var d=!this._loaded;this._loaded=!0;c=this._limitZoom(c);this.fire("viewprereset");var e=this._zoom!==c;this._moveStart(e)._move(a,c)._moveEnd(e);this.fire("viewreset");
d&&this.fire("load")},_moveStart:function(a){a&&this.fire("zoomstart");return this.fire("movestart")},_move:function(a,c,b){c===l&&(c=this._zoom);var e=this._zoom!==c;this._zoom=c;this._lastCenter=a;this._pixelOrigin=this._getNewPixelOrigin(a);(e||b&&b.pinch)&&this.fire("zoom",b);return this.fire("move",b)},_moveEnd:function(a){a&&this.fire("zoomend");return this.fire("moveend")},_stop:function(){b.Util.cancelAnimFrame(this._flyToFrame);this._panAnim&&this._panAnim.stop();return this},_rawPanBy:function(a){b.DomUtil.setPosition(this._mapPane,
this._getMapPanePos().subtract(a))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw Error("Set map center and zoom first.");},_initEvents:function(a){if(b.DomEvent){this._targets={};this._targets[b.stamp(this._container)]=this;a=a?"off":"on";b.DomEvent[a](this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress",
this._handleDOMEvent,this);if(this.options.trackResize)b.DomEvent[a](h,"resize",this._onResize,this);if(b.Browser.any3d&&this.options.transform3DLimit)this[a]("moveend",this._onMoveEnd)}},_onResize:function(){b.Util.cancelAnimFrame(this._resizeRequest);this._resizeRequest=b.Util.requestAnimFrame(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0;this._container.scrollLeft=0},_onMoveEnd:function(){var a=this._getMapPanePos();Math.max(Math.abs(a.x),
Math.abs(a.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(a,c){for(var d=[],e,f="mouseout"===c||"mouseover"===c,h=a.target||a.srcElement,k=!1;h;){if((e=this._targets[b.stamp(h)])&&("click"===c||"preclick"===c)&&!a._simulated&&this._draggableMoved(e)){k=!0;break}if(e&&e.listens(c,!0)){if(f&&!b.DomEvent._isExternalTarget(h,a))break;d.push(e);if(f)break}if(h===this._container)break;h=h.parentNode}d.length||k||f||!b.DomEvent._isExternalTarget(h,
a)||(d=[this]);return d},_handleDOMEvent:function(a){if(this._loaded&&!b.DomEvent._skipped(a)){var c="keypress"===a.type&&13===a.keyCode?"click":a.type;"mousedown"===c&&b.DomUtil.preventOutline(a.target||a.srcElement);this._fireDOMEvent(a,c)}},_fireDOMEvent:function(a,c,d){if("click"===a.type){var e=b.Util.extend({},a);e.type="preclick";this._fireDOMEvent(e,e.type,d)}if(!a._stopped&&(d=(d||[]).concat(this._findEventTargets(a,c)),d.length)){var f=d[0];"contextmenu"===c&&f.listens(c,!0)&&b.DomEvent.preventDefault(a);
e={originalEvent:a};if("keypress"!==a.type){var h=f instanceof b.Marker;e.containerPoint=h?this.latLngToContainerPoint(f.getLatLng()):this.mouseEventToContainerPoint(a);e.layerPoint=this.containerPointToLayerPoint(e.containerPoint);e.latlng=h?f.getLatLng():this.layerPointToLatLng(e.layerPoint)}for(a=0;a<d.length&&!(d[a].fire(c,e,!0),e.originalEvent._stopped||d[a].options.nonBubblingEvents&&-1!==b.Util.indexOf(d[a].options.nonBubblingEvents,c));a++);}},_draggableMoved:function(a){a=a.dragging&&a.dragging.enabled()?
a:this;return a.dragging&&a.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var a=0,c=this._handlers.length;a<c;a++)this._handlers[a].disable()},whenReady:function(a,c){if(this._loaded)a.call(c||this,{target:this});else this.on("load",a,c);return this},_getMapPanePos:function(){return b.DomUtil.getPosition(this._mapPane)||new b.Point(0,0)},_moved:function(){var a=this._getMapPanePos();return a&&!a.equals([0,0])},_getTopLeftPoint:function(a,c){return(a&&c!==l?this._getNewPixelOrigin(a,
c):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(a,c){var b=this.getSize()._divideBy(2);return this.project(a,c)._subtract(b)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(a,c,b){b=this._getNewPixelOrigin(b,c);return this.project(a,c)._subtract(b)},_latLngBoundsToNewLayerBounds:function(a,c,d){d=this._getNewPixelOrigin(d,c);return b.bounds([this.project(a.getSouthWest(),c)._subtract(d),this.project(a.getNorthWest(),c)._subtract(d),this.project(a.getSouthEast(),
c)._subtract(d),this.project(a.getNorthEast(),c)._subtract(d)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(a){return this.latLngToLayerPoint(a).subtract(this._getCenterLayerPoint())},_limitCenter:function(a,c,d){if(!d)return a;var e=this.project(a,c),f=this.getSize().divideBy(2),f=new b.Bounds(e.subtract(f),e.add(f));d=this._getBoundsOffset(f,d,c);return d.round().equals([0,0])?a:this.unproject(e.add(d),c)},_limitOffset:function(a,
c){if(!c)return a;var d=this.getPixelBounds(),d=new b.Bounds(d.min.add(a),d.max.add(a));return a.add(this._getBoundsOffset(d,c))},_getBoundsOffset:function(a,c,d){d=b.bounds(this.project(c.getNorthEast(),d),this.project(c.getSouthWest(),d));c=d.min.subtract(a.min);d=d.max.subtract(a.max);a=this._rebound(c.x,-d.x);c=this._rebound(c.y,-d.y);return new b.Point(a,c)},_rebound:function(a,c){return 0<a+c?Math.round(a-c)/2:Math.max(0,Math.ceil(a))-Math.max(0,Math.floor(c))},_limitZoom:function(a){var c=
this.getMinZoom(),d=this.getMaxZoom(),e=b.Browser.any3d?this.options.zoomSnap:1;e&&(a=Math.round(a/e)*e);return Math.max(c,Math.min(d,a))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){b.DomUtil.removeClass(this._mapPane,"leaflet-pan-anim");this.fire("moveend")},_tryAnimatedPan:function(a,c){var b=this._getCenterOffset(a)._floor();if(!0!==(c&&c.animate)&&!this.getSize().contains(b))return!1;this.panBy(b,c);return!0},_createAnimProxy:function(){var a=this._proxy=
b.DomUtil.create("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(a);this.on("zoomanim",function(c){var d=b.DomUtil.TRANSFORM,e=a.style[d];b.DomUtil.setTransform(a,this.project(c.center,c.zoom),this.getZoomScale(c.zoom,1));e===a.style[d]&&this._animatingZoom&&this._onZoomTransitionEnd()},this);this.on("load moveend",function(){var c=this.getCenter(),d=this.getZoom();b.DomUtil.setTransform(a,this.project(c,d),this.getZoomScale(d,1))},this)},_catchTransitionEnd:function(a){this._animatingZoom&&
0<=a.propertyName.indexOf("transform")&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(a,c,d){if(this._animatingZoom)return!0;d=d||{};if(!this._zoomAnimated||!1===d.animate||this._nothingToAnimate()||Math.abs(c-this._zoom)>this.options.zoomAnimationThreshold)return!1;var e=this.getZoomScale(c),e=this._getCenterOffset(a)._divideBy(1-1/e);if(!0!==d.animate&&!this.getSize().contains(e))return!1;
b.Util.requestAnimFrame(function(){this._moveStart(!0)._animateZoom(a,c,!0)},this);return!0},_animateZoom:function(a,c,d,e){d&&(this._animatingZoom=!0,this._animateToCenter=a,this._animateToZoom=c,b.DomUtil.addClass(this._mapPane,"leaflet-zoom-anim"));this.fire("zoomanim",{center:a,zoom:c,noUpdate:e});setTimeout(b.bind(this._onZoomTransitionEnd,this),250)},_onZoomTransitionEnd:function(){this._animatingZoom&&(b.DomUtil.removeClass(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,
this._animateToZoom),b.Util.requestAnimFrame(function(){this._moveEnd(!0)},this))}});b.map=function(a,c){return new b.Map(a,c)};b.Layer=b.Evented.extend({options:{pane:"overlayPane",nonBubblingEvents:[],attribution:null},addTo:function(a){a.addLayer(this);return this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(a){a&&a.removeLayer(this);return this},getPane:function(a){return this._map.getPane(a?this.options[a]||a:this.options.pane)},addInteractiveTarget:function(a){this._map._targets[b.stamp(a)]=
this;return this},removeInteractiveTarget:function(a){delete this._map._targets[b.stamp(a)];return this},getAttribution:function(){return this.options.attribution},_layerAdd:function(a){var c=a.target;if(c.hasLayer(this)){this._map=c;this._zoomAnimated=c._zoomAnimated;if(this.getEvents){var b=this.getEvents();c.on(b,this);this.once("remove",function(){c.off(b,this)},this)}this.onAdd(c);this.getAttribution&&c.attributionControl&&c.attributionControl.addAttribution(this.getAttribution());this.fire("add");
c.fire("layeradd",{layer:this})}}});b.Map.include({addLayer:function(a){var c=b.stamp(a);if(this._layers[c])return this;this._layers[c]=a;a._mapToAdd=this;a.beforeAdd&&a.beforeAdd(this);this.whenReady(a._layerAdd,a);return this},removeLayer:function(a){var c=b.stamp(a);if(!this._layers[c])return this;if(this._loaded)a.onRemove(this);a.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(a.getAttribution());delete this._layers[c];this._loaded&&(this.fire("layerremove",
{layer:a}),a.fire("remove"));a._map=a._mapToAdd=null;return this},hasLayer:function(a){return!!a&&b.stamp(a)in this._layers},eachLayer:function(a,c){for(var b in this._layers)a.call(c,this._layers[b]);return this},_addLayers:function(a){a=a?b.Util.isArray(a)?a:[a]:[];for(var c=0,d=a.length;c<d;c++)this.addLayer(a[c])},_addZoomLimit:function(a){if(isNaN(a.options.maxZoom)||!isNaN(a.options.minZoom))this._zoomBoundLayers[b.stamp(a)]=a,this._updateZoomLevels()},_removeZoomLimit:function(a){a=b.stamp(a);
this._zoomBoundLayers[a]&&(delete this._zoomBoundLayers[a],this._updateZoomLevels())},_updateZoomLevels:function(){var a=Infinity,c=-Infinity,b=this._getZoomSpan(),e;for(e in this._zoomBoundLayers)var f=this._zoomBoundLayers[e].options,a=f.minZoom===l?a:Math.min(a,f.minZoom),c=f.maxZoom===l?c:Math.max(c,f.maxZoom);this._layersMaxZoom=-Infinity===c?l:c;this._layersMinZoom=Infinity===a?l:a;b!==this._getZoomSpan()&&this.fire("zoomlevelschange");this.options.maxZoom===l&&this._layersMaxZoom&&this.getZoom()>
this._layersMaxZoom&&this.setZoom(this._layersMaxZoom);this.options.minZoom===l&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});b.DomEvent={on:function(a,c,d,e){if("object"===typeof c)for(var f in c)this._on(a,f,c[f],d);else{c=b.Util.splitWords(c);f=0;for(var h=c.length;f<h;f++)this._on(a,c[f],d,e)}return this},off:function(a,c,d,e){if("object"===typeof c)for(var f in c)this._off(a,f,c[f],d);else{c=b.Util.splitWords(c);f=0;for(var h=c.length;f<h;f++)this._off(a,
c[f],d,e)}return this},_on:function(a,c,d,e){var f=c+b.stamp(d)+(e?"_"+b.stamp(e):"");if(a._leaflet_events&&a._leaflet_events[f])return this;var k=function(c){return d.call(e||a,c||h.event)},l=k;b.Browser.pointer&&0===c.indexOf("touch")?this.addPointerListener(a,c,k,f):!b.Browser.touch||"dblclick"!==c||!this.addDoubleTapListener||b.Browser.pointer&&b.Browser.chrome?"addEventListener"in a?"mousewheel"===c?a.addEventListener("onwheel"in a?"wheel":"mousewheel",k,!1):"mouseenter"===c||"mouseleave"===
c?(k=function(c){c=c||h.event;b.DomEvent._isExternalTarget(a,c)&&l(c)},a.addEventListener("mouseenter"===c?"mouseover":"mouseout",k,!1)):("click"===c&&b.Browser.android&&(k=function(a){return b.DomEvent._filterClick(a,l)}),a.addEventListener(c,k,!1)):"attachEvent"in a&&a.attachEvent("on"+c,k):this.addDoubleTapListener(a,k,f);a._leaflet_events=a._leaflet_events||{};a._leaflet_events[f]=k;return this},_off:function(a,c,d,e){d=c+b.stamp(d)+(e?"_"+b.stamp(e):"");e=a._leaflet_events&&a._leaflet_events[d];
if(!e)return this;b.Browser.pointer&&0===c.indexOf("touch")?this.removePointerListener(a,c,d):b.Browser.touch&&"dblclick"===c&&this.removeDoubleTapListener?this.removeDoubleTapListener(a,d):"removeEventListener"in a?"mousewheel"===c?a.removeEventListener("onwheel"in a?"wheel":"mousewheel",e,!1):a.removeEventListener("mouseenter"===c?"mouseover":"mouseleave"===c?"mouseout":c,e,!1):"detachEvent"in a&&a.detachEvent("on"+c,e);a._leaflet_events[d]=null;return this},stopPropagation:function(a){a.stopPropagation?
a.stopPropagation():a.originalEvent?a.originalEvent._stopped=!0:a.cancelBubble=!0;b.DomEvent._skipped(a);return this},disableScrollPropagation:function(a){return b.DomEvent.on(a,"mousewheel",b.DomEvent.stopPropagation)},disableClickPropagation:function(a){var c=b.DomEvent.stopPropagation;b.DomEvent.on(a,b.Draggable.START.join(" "),c);return b.DomEvent.on(a,{click:b.DomEvent._fakeStop,dblclick:c})},preventDefault:function(a){a.preventDefault?a.preventDefault():a.returnValue=!1;return this},stop:function(a){return b.DomEvent.preventDefault(a).stopPropagation(a)},
getMousePosition:function(a,c){if(!c)return new b.Point(a.clientX,a.clientY);var d=c.getBoundingClientRect();return new b.Point(a.clientX-d.left-c.clientLeft,a.clientY-d.top-c.clientTop)},_wheelPxFactor:b.Browser.win&&b.Browser.chrome?2:b.Browser.gecko?h.devicePixelRatio:1,getWheelDelta:function(a){return b.Browser.edge?a.wheelDeltaY/2:a.deltaY&&0===a.deltaMode?-a.deltaY/b.DomEvent._wheelPxFactor:a.deltaY&&1===a.deltaMode?20*-a.deltaY:a.deltaY&&2===a.deltaMode?60*-a.deltaY:a.deltaX||a.deltaZ?0:a.wheelDelta?
(a.wheelDeltaY||a.wheelDelta)/2:a.detail&&32765>Math.abs(a.detail)?20*-a.detail:a.detail?a.detail/-32765*60:0},_skipEvents:{},_fakeStop:function(a){b.DomEvent._skipEvents[a.type]=!0},_skipped:function(a){var c=this._skipEvents[a.type];this._skipEvents[a.type]=!1;return c},_isExternalTarget:function(a,c){var b=c.relatedTarget;if(!b)return!0;try{for(;b&&b!==a;)b=b.parentNode}catch(e){return!1}return b!==a},_filterClick:function(a,c){var d=a.timeStamp||a.originalEvent&&a.originalEvent.timeStamp,e=b.DomEvent._lastClick&&
d-b.DomEvent._lastClick;e&&100<e&&500>e||a.target._simulatedClick&&!a._simulated?b.DomEvent.stop(a):(b.DomEvent._lastClick=d,c(a))}};b.DomEvent.addListener=b.DomEvent.on;b.DomEvent.removeListener=b.DomEvent.off;b.PosAnimation=b.Evented.extend({run:function(a,c,d,e){this.stop();this._el=a;this._inProgress=!0;this._duration=d||.25;this._easeOutPower=1/Math.max(e||.5,.2);this._startPos=b.DomUtil.getPosition(a);this._offset=c.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=b.Util.requestAnimFrame(this._animate,this);this._step()},_step:function(a){var c=+new Date-this._startTime,b=1E3*this._duration;c<b?this._runFrame(this._easeOut(c/b),a):(this._runFrame(1),this._complete())},_runFrame:function(a,c){var d=this._startPos.add(this._offset.multiplyBy(a));c&&d._round();b.DomUtil.setPosition(this._el,d);this.fire("step")},_complete:function(){b.Util.cancelAnimFrame(this._animId);
this._inProgress=!1;this.fire("end")},_easeOut:function(a){return 1-Math.pow(1-a,this._easeOutPower)}});b.Projection.Mercator={R:6378137,R_MINOR:6356752.314245179,bounds:b.bounds([-2.003750834279E7,-1.549657073972E7],[2.003750834279E7,1.876465623138E7]),project:function(a){var c=Math.PI/180,d=this.R,e=a.lat*c,f=this.R_MINOR/d,f=Math.sqrt(1-f*f),h=f*Math.sin(e),e=-d*Math.log(Math.max(Math.tan(Math.PI/4-e/2)/Math.pow((1-h)/(1+h),f/2),1E-10));return new b.Point(a.lng*c*d,e)},unproject:function(a){for(var c=
180/Math.PI,d=this.R,e=this.R_MINOR/d,e=Math.sqrt(1-e*e),f=Math.exp(-a.y/d),h=Math.PI/2-2*Math.atan(f),k=0,l=.1;15>k&&1E-7<Math.abs(l);k++)l=e*Math.sin(h),l=Math.pow((1-l)/(1+l),e/2),l=Math.PI/2-2*Math.atan(f*l)-h,h+=l;return new b.LatLng(h*c,a.x*c/d)}};b.CRS.EPSG3395=b.extend({},b.CRS.Earth,{code:"EPSG:3395",projection:b.Projection.Mercator,transformation:function(){var a=.5/(Math.PI*b.Projection.Mercator.R);return new b.Transformation(a,.5,-a,.5)}()});b.GridLayer=b.Layer.extend({options:{tileSize:256,
opacity:1,updateWhenIdle:b.Browser.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:l,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(a){b.setOptions(this,a)},onAdd:function(){this._initContainer();this._levels={};this._tiles={};this._resetView();this._update()},beforeAdd:function(a){a._addZoomLimit(this)},onRemove:function(a){this._removeAllTiles();b.DomUtil.remove(this._container);a._removeZoomLimit(this);this._tileZoom=this._container=
null},bringToFront:function(){this._map&&(b.DomUtil.toFront(this._container),this._setAutoZIndex(Math.max));return this},bringToBack:function(){this._map&&(b.DomUtil.toBack(this._container),this._setAutoZIndex(Math.min));return this},getContainer:function(){return this._container},setOpacity:function(a){this.options.opacity=a;this._updateOpacity();return this},setZIndex:function(a){this.options.zIndex=a;this._updateZIndex();return this},isLoading:function(){return this._loading},redraw:function(){this._map&&
(this._removeAllTiles(),this._update());return this},getEvents:function(){var a={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};this.options.updateWhenIdle||(this._onMove||(this._onMove=b.Util.throttle(this._onMoveEnd,this.options.updateInterval,this)),a.move=this._onMove);this._zoomAnimated&&(a.zoomanim=this._animateZoom);return a},createTile:function(){return m.createElement("div")},getTileSize:function(){var a=this.options.tileSize;return a instanceof
b.Point?a:new b.Point(a,a)},_updateZIndex:function(){this._container&&this.options.zIndex!==l&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(a){for(var c=this.getPane().children,b=-a(-Infinity,Infinity),e=0,f=c.length,h;e<f;e++)h=c[e].style.zIndex,c[e]!==this._container&&h&&(b=a(b,+h));isFinite(b)&&(this.options.zIndex=b+a(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!b.Browser.ielt9){b.DomUtil.setOpacity(this._container,
this.options.opacity);var a=+new Date,c=!1,d=!1,e;for(e in this._tiles){var f=this._tiles[e];if(f.current&&f.loaded){var h=Math.min(1,(a-f.loaded)/200);b.DomUtil.setOpacity(f.el,h);1>h?c=!0:(f.active&&(d=!0),f.active=!0)}}d&&!this._noPrune&&this._pruneTiles();c&&(b.Util.cancelAnimFrame(this._fadeFrame),this._fadeFrame=b.Util.requestAnimFrame(this._updateOpacity,this))}},_initContainer:function(){this._container||(this._container=b.DomUtil.create("div","leaflet-layer "+(this.options.className||"")),
this._updateZIndex(),1>this.options.opacity&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var a=this._tileZoom,c=this.options.maxZoom;if(a===l)return l;for(var d in this._levels)this._levels[d].el.children.length||d===a?this._levels[d].el.style.zIndex=c-Math.abs(a-d):(b.DomUtil.remove(this._levels[d].el),this._removeTilesAtZoom(d),delete this._levels[d]);d=this._levels[a];var e=this._map;d||(d=this._levels[a]={},d.el=b.DomUtil.create("div","leaflet-tile-container leaflet-zoom-animated",
this._container),d.el.style.zIndex=c,d.origin=e.project(e.unproject(e.getPixelOrigin()),a).round(),d.zoom=a,this._setZoomTransform(d,e.getCenter(),e.getZoom()),b.Util.falseFn(d.el.offsetWidth));return this._level=d},_pruneTiles:function(){if(this._map){var a,c;c=this._map.getZoom();if(c>this.options.maxZoom||c<this.options.minZoom)this._removeAllTiles();else{for(a in this._tiles)c=this._tiles[a],c.retain=c.current;for(a in this._tiles)c=this._tiles[a],c.current&&!c.active&&(c=c.coords,this._retainParent(c.x,
c.y,c.z,c.z-5)||this._retainChildren(c.x,c.y,c.z,c.z+2));for(a in this._tiles)this._tiles[a].retain||this._removeTile(a)}}},_removeTilesAtZoom:function(a){for(var c in this._tiles)this._tiles[c].coords.z===a&&this._removeTile(c)},_removeAllTiles:function(){for(var a in this._tiles)this._removeTile(a)},_invalidateAll:function(){for(var a in this._levels)b.DomUtil.remove(this._levels[a].el),delete this._levels[a];this._removeAllTiles();this._tileZoom=null},_retainParent:function(a,c,d,e){a=Math.floor(a/
2);c=Math.floor(c/2);--d;var f=new b.Point(+a,+c);f.z=+d;f=this._tileCoordsToKey(f);if((f=this._tiles[f])&&f.active)return f.retain=!0;f&&f.loaded&&(f.retain=!0);return d>e?this._retainParent(a,c,d,e):!1},_retainChildren:function(a,c,d,e){for(var f=2*a;f<2*a+2;f++)for(var h=2*c;h<2*c+2;h++){var k=new b.Point(f,h);k.z=d+1;k=this._tileCoordsToKey(k);(k=this._tiles[k])&&k.active?k.retain=!0:(k&&k.loaded&&(k.retain=!0),d+1<e&&this._retainChildren(f,h,d+1,e))}},_resetView:function(a){a=a&&(a.pinch||a.flyTo);
this._setView(this._map.getCenter(),this._map.getZoom(),a,a)},_animateZoom:function(a){this._setView(a.center,a.zoom,!0,a.noUpdate)},_setView:function(a,c,b,e){var f=Math.round(c);if(this.options.maxZoom!==l&&f>this.options.maxZoom||this.options.minZoom!==l&&f<this.options.minZoom)f=l;var h=this.options.updateWhenZooming&&f!==this._tileZoom;if(!e||h)this._tileZoom=f,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),f!==l&&this._update(a),b||this._pruneTiles(),this._noPrune=
!!b;this._setZoomTransforms(a,c)},_setZoomTransforms:function(a,c){for(var b in this._levels)this._setZoomTransform(this._levels[b],a,c)},_setZoomTransform:function(a,c,d){var e=this._map.getZoomScale(d,a.zoom);c=a.origin.multiplyBy(e).subtract(this._map._getNewPixelOrigin(c,d)).round();b.Browser.any3d?b.DomUtil.setTransform(a.el,c,e):b.DomUtil.setPosition(a.el,c)},_resetGrid:function(){var a=this._map,c=a.options.crs,b=this._tileSize=this.getTileSize(),e=this._tileZoom,f=this._map.getPixelWorldBounds(this._tileZoom);
f&&(this._globalTileRange=this._pxBoundsToTileRange(f));this._wrapX=c.wrapLng&&!this.options.noWrap&&[Math.floor(a.project([0,c.wrapLng[0]],e).x/b.x),Math.ceil(a.project([0,c.wrapLng[1]],e).x/b.y)];this._wrapY=c.wrapLat&&!this.options.noWrap&&[Math.floor(a.project([c.wrapLat[0],0],e).y/b.x),Math.ceil(a.project([c.wrapLat[1],0],e).y/b.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(a){var c=this._map,d=c._animatingZoom?Math.max(c._animateToZoom,
c.getZoom()):c.getZoom(),d=c.getZoomScale(d,this._tileZoom);a=c.project(a,this._tileZoom).floor();c=c.getSize().divideBy(2*d);return new b.Bounds(a.subtract(c),a.add(c))},_update:function(a){var c=this._map;if(c){var d=c.getZoom();a===l&&(a=c.getCenter());if(this._tileZoom!==l){var c=this._getTiledPixelBounds(a),e=this._pxBoundsToTileRange(c),f=e.getCenter(),c=[],h=this.options.keepBuffer,h=new b.Bounds(e.getBottomLeft().subtract([h,-h]),e.getTopRight().add([h,-h])),k;for(k in this._tiles){var n=
this._tiles[k].coords;n.z===this._tileZoom&&h.contains(b.point(n.x,n.y))||(this._tiles[k].current=!1)}if(1<Math.abs(d-this._tileZoom))this._setView(a,d);else{for(d=e.min.y;d<=e.max.y;d++)for(a=e.min.x;a<=e.max.x;a++)k=new b.Point(a,d),k.z=this._tileZoom,this._isValidTile(k)&&((h=this._tiles[this._tileCoordsToKey(k)])?h.current=!0:c.push(k));c.sort(function(a,c){return a.distanceTo(f)-c.distanceTo(f)});if(0!==c.length){this._loading||(this._loading=!0,this.fire("loading"));e=m.createDocumentFragment();
for(a=0;a<c.length;a++)this._addTile(c[a],e);this._level.el.appendChild(e)}}}}},_isValidTile:function(a){var c=this._map.options.crs;if(!c.infinite){var d=this._globalTileRange;if(!c.wrapLng&&(a.x<d.min.x||a.x>d.max.x)||!c.wrapLat&&(a.y<d.min.y||a.y>d.max.y))return!1}if(!this.options.bounds)return!0;a=this._tileCoordsToBounds(a);return b.latLngBounds(this.options.bounds).overlaps(a)},_keyToBounds:function(a){return this._tileCoordsToBounds(this._keyToTileCoords(a))},_tileCoordsToBounds:function(a){var c=
this._map,d=this.getTileSize(),e=a.scaleBy(d),d=e.add(d),e=c.unproject(e,a.z);a=c.unproject(d,a.z);a=new b.LatLngBounds(e,a);this.options.noWrap||c.wrapLatLngBounds(a);return a},_tileCoordsToKey:function(a){return a.x+":"+a.y+":"+a.z},_keyToTileCoords:function(a){a=a.split(":");var c=new b.Point(+a[0],+a[1]);c.z=+a[2];return c},_removeTile:function(a){var c=this._tiles[a];c&&(b.DomUtil.remove(c.el),delete this._tiles[a],this.fire("tileunload",{tile:c.el,coords:this._keyToTileCoords(a)}))},_initTile:function(a){b.DomUtil.addClass(a,
"leaflet-tile");var c=this.getTileSize();a.style.width=c.x+"px";a.style.height=c.y+"px";a.onselectstart=b.Util.falseFn;a.onmousemove=b.Util.falseFn;b.Browser.ielt9&&1>this.options.opacity&&b.DomUtil.setOpacity(a,this.options.opacity);b.Browser.android&&!b.Browser.android23&&(a.style.WebkitBackfaceVisibility="hidden")},_addTile:function(a,c){var d=this._getTilePos(a),e=this._tileCoordsToKey(a),f=this.createTile(this._wrapCoords(a),b.bind(this._tileReady,this,a));this._initTile(f);2>this.createTile.length&&
b.Util.requestAnimFrame(b.bind(this._tileReady,this,a,null,f));b.DomUtil.setPosition(f,d);this._tiles[e]={el:f,coords:a,current:!0};c.appendChild(f);this.fire("tileloadstart",{tile:f,coords:a})},_tileReady:function(a,c,d){this._map&&(c&&this.fire("tileerror",{error:c,tile:d,coords:a}),d=this._tileCoordsToKey(a),d=this._tiles[d])&&(d.loaded=+new Date,this._map._fadeAnimated?(b.DomUtil.setOpacity(d.el,0),b.Util.cancelAnimFrame(this._fadeFrame),this._fadeFrame=b.Util.requestAnimFrame(this._updateOpacity,
this)):(d.active=!0,this._pruneTiles()),c||(b.DomUtil.addClass(d.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:d.el,coords:a})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),b.Browser.ielt9||!this._map._fadeAnimated?b.Util.requestAnimFrame(this._pruneTiles,this):setTimeout(b.bind(this._pruneTiles,this),250)))},_getTilePos:function(a){return a.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(a){var c=new b.Point(this._wrapX?b.Util.wrapNum(a.x,this._wrapX):
a.x,this._wrapY?b.Util.wrapNum(a.y,this._wrapY):a.y);c.z=a.z;return c},_pxBoundsToTileRange:function(a){var c=this.getTileSize();return new b.Bounds(a.min.unscaleBy(c).floor(),a.max.unscaleBy(c).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var a in this._tiles)if(!this._tiles[a].loaded)return!1;return!0}});b.gridLayer=function(a){return new b.GridLayer(a)};b.TileLayer=b.GridLayer.extend({options:{minZoom:0,maxZoom:18,maxNativeZoom:null,minNativeZoom:null,subdomains:"abc",errorTileUrl:"",
zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(a,c){this._url=a;c=b.setOptions(this,c);c.detectRetina&&b.Browser.retina&&0<c.maxZoom&&(c.tileSize=Math.floor(c.tileSize/2),c.zoomReverse?(c.zoomOffset--,c.minZoom++):(c.zoomOffset++,c.maxZoom--),c.minZoom=Math.max(0,c.minZoom));"string"===typeof c.subdomains&&(c.subdomains=c.subdomains.split(""));if(!b.Browser.android)this.on("tileunload",this._onTileRemove)},setUrl:function(a,c){this._url=a;c||this.redraw();return this},
createTile:function(a,c){var d=m.createElement("img");b.DomEvent.on(d,"load",b.bind(this._tileOnLoad,this,c,d));b.DomEvent.on(d,"error",b.bind(this._tileOnError,this,c,d));this.options.crossOrigin&&(d.crossOrigin="");d.alt="";d.setAttribute("role","presentation");d.src=this.getTileUrl(a);return d},getTileUrl:function(a){var c={r:b.Browser.retina?"@2x":"",s:this._getSubdomain(a),x:a.x,y:a.y,z:this._getZoomForUrl()};this._map&&!this._map.options.crs.infinite&&(a=this._globalTileRange.max.y-a.y,this.options.tms&&
(c.y=a),c["-y"]=a);return b.Util.template(this._url,b.extend(c,this.options))},_tileOnLoad:function(a,c){b.Browser.ielt9?setTimeout(b.bind(a,this,null,c),0):a(null,c)},_tileOnError:function(a,c,b){var e=this.options.errorTileUrl;e&&c.src!==e&&(c.src=e);a(b,c)},getTileSize:function(){var a=this._map,c=b.GridLayer.prototype.getTileSize.call(this),d=this._tileZoom+this.options.zoomOffset,e=this.options.minNativeZoom,f=this.options.maxNativeZoom;return null!==e&&d<e?c.divideBy(a.getZoomScale(e,d)).round():
null!==f&&d>f?c.divideBy(a.getZoomScale(f,d)).round():c},_onTileRemove:function(a){a.tile.onload=null},_getZoomForUrl:function(){var a=this._tileZoom,c=this.options.maxZoom,b=this.options.zoomOffset,e=this.options.minNativeZoom,f=this.options.maxNativeZoom;this.options.zoomReverse&&(a=c-a);a+=b;return null!==e&&a<e?e:null!==f&&a>f?f:a},_getSubdomain:function(a){return this.options.subdomains[Math.abs(a.x+a.y)%this.options.subdomains.length]},_abortLoading:function(){var a,c;for(a in this._tiles)this._tiles[a].coords.z!==
this._tileZoom&&(c=this._tiles[a].el,c.onload=b.Util.falseFn,c.onerror=b.Util.falseFn,c.complete||(c.src=b.Util.emptyImageUrl,b.DomUtil.remove(c)))}});b.tileLayer=function(a,c){return new b.TileLayer(a,c)};b.TileLayer.WMS=b.TileLayer.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(a,c){this._url=a;var d=b.extend({},this.defaultWmsParams),e;for(e in c)e in this.options||
(d[e]=c[e]);c=b.setOptions(this,c);d.width=d.height=c.tileSize*(c.detectRetina&&b.Browser.retina?2:1);this.wmsParams=d},onAdd:function(a){this._crs=this.options.crs||a.options.crs;this._wmsVersion=parseFloat(this.wmsParams.version);this.wmsParams[1.3<=this._wmsVersion?"crs":"srs"]=this._crs.code;b.TileLayer.prototype.onAdd.call(this,a)},getTileUrl:function(a){var c=this._tileCoordsToBounds(a),d=this._crs.project(c.getNorthWest()),c=this._crs.project(c.getSouthEast()),d=(1.3<=this._wmsVersion&&this._crs===
b.CRS.EPSG4326?[c.y,d.x,d.y,c.x]:[d.x,c.y,c.x,d.y]).join(",");a=b.TileLayer.prototype.getTileUrl.call(this,a);return a+b.Util.getParamString(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+d},setParams:function(a,c){b.extend(this.wmsParams,a);c||this.redraw();return this}});b.tileLayer.wms=function(a,c){return new b.TileLayer.WMS(a,c)};b.ImageOverlay=b.Layer.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1},initialize:function(a,c,d){this._url=a;
this._bounds=b.latLngBounds(c);b.setOptions(this,d)},onAdd:function(){this._image||(this._initImage(),1>this.options.opacity&&this._updateOpacity());this.options.interactive&&(b.DomUtil.addClass(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image));this.getPane().appendChild(this._image);this._reset()},onRemove:function(){b.DomUtil.remove(this._image);this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(a){this.options.opacity=a;this._image&&
this._updateOpacity();return this},setStyle:function(a){a.opacity&&this.setOpacity(a.opacity);return this},bringToFront:function(){this._map&&b.DomUtil.toFront(this._image);return this},bringToBack:function(){this._map&&b.DomUtil.toBack(this._image);return this},setUrl:function(a){this._url=a;this._image&&(this._image.src=a);return this},setBounds:function(a){this._bounds=a;this._map&&this._reset();return this},getEvents:function(){var a={zoom:this._reset,viewreset:this._reset};this._zoomAnimated&&
(a.zoomanim=this._animateZoom);return a},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var a=this._image=b.DomUtil.create("img","leaflet-image-layer "+(this._zoomAnimated?"leaflet-zoom-animated":""));a.onselectstart=b.Util.falseFn;a.onmousemove=b.Util.falseFn;a.onload=b.bind(this.fire,this,"load");this.options.crossOrigin&&(a.crossOrigin="");a.src=this._url;a.alt=this.options.alt},_animateZoom:function(a){var c=this._map.getZoomScale(a.zoom);
a=this._map._latLngBoundsToNewLayerBounds(this._bounds,a.zoom,a.center).min;b.DomUtil.setTransform(this._image,a,c)},_reset:function(){var a=this._image,c=new b.Bounds(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),d=c.getSize();b.DomUtil.setPosition(a,c.min);a.style.width=d.x+"px";a.style.height=d.y+"px"},_updateOpacity:function(){b.DomUtil.setOpacity(this._image,this.options.opacity)}});b.imageOverlay=function(a,c,d){return new b.ImageOverlay(a,
c,d)};b.Icon=b.Class.extend({initialize:function(a){b.setOptions(this,a)},createIcon:function(a){return this._createIcon("icon",a)},createShadow:function(a){return this._createIcon("shadow",a)},_createIcon:function(a,c){var b=this._getIconUrl(a);if(!b){if("icon"===a)throw Error("iconUrl not set in Icon options (see the docs).");return null}b=this._createImg(b,c&&"IMG"===c.tagName?c:null);this._setIconStyles(b,a);return b},_setIconStyles:function(a,c){var d=this.options,e=d[c+"Size"];"number"===typeof e&&
(e=[e,e]);var e=b.point(e),f=b.point("shadow"===c&&d.shadowAnchor||d.iconAnchor||e&&e.divideBy(2,!0));a.className="leaflet-marker-"+c+" "+(d.className||"");f&&(a.style.marginLeft=-f.x+"px",a.style.marginTop=-f.y+"px");e&&(a.style.width=e.x+"px",a.style.height=e.y+"px")},_createImg:function(a,c){c=c||m.createElement("img");c.src=a;return c},_getIconUrl:function(a){return b.Browser.retina&&this.options[a+"RetinaUrl"]||this.options[a+"Url"]}});b.icon=function(a){return new b.Icon(a)};b.Icon.Default=
b.Icon.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(a){b.Icon.Default.imagePath||(b.Icon.Default.imagePath=this._detectIconPath());return(this.options.imagePath||b.Icon.Default.imagePath)+b.Icon.prototype._getIconUrl.call(this,a)},_detectIconPath:function(){var a=b.DomUtil.create("div","leaflet-default-icon-path",m.body),
c=b.DomUtil.getStyle(a,"background-image")||b.DomUtil.getStyle(a,"backgroundImage");m.body.removeChild(a);return 0===c.indexOf("url")?c.replace(/^url\([\"\']?/,"").replace(/marker-icon\.png[\"\']?\)$/,""):""}});b.Marker=b.Layer.extend({options:{icon:new b.Icon.Default,interactive:!0,draggable:!1,keyboard:!0,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",nonBubblingEvents:["click","dblclick","mouseover","mouseout","contextmenu"]},initialize:function(a,c){b.setOptions(this,
c);this._latlng=b.latLng(a)},onAdd:function(a){if(this._zoomAnimated=this._zoomAnimated&&a.options.markerZoomAnimation)a.on("zoomanim",this._animateZoom,this);this._initIcon();this.update()},onRemove:function(a){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks());this._zoomAnimated&&a.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(a){var c=this._latlng;this._latlng=b.latLng(a);this.update();return this.fire("move",{oldLatLng:c,latlng:this._latlng})},setZIndexOffset:function(a){this.options.zIndexOffset=a;return this.update()},setIcon:function(a){this.options.icon=a;this._map&&(this._initIcon(),this.update());this._popup&&this.bindPopup(this._popup,this._popup.options);return this},getElement:function(){return this._icon},update:function(){if(this._icon){var a=this._map.latLngToLayerPoint(this._latlng).round();
this._setPos(a)}return this},_initIcon:function(){var a=this.options,c="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),d=a.icon.createIcon(this._icon),e=!1;d!==this._icon&&(this._icon&&this._removeIcon(),e=!0,a.title&&(d.title=a.title),a.alt&&(d.alt=a.alt));b.DomUtil.addClass(d,c);a.keyboard&&(d.tabIndex="0");this._icon=d;if(a.riseOnHover)this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});var d=a.icon.createShadow(this._shadow),f=!1;d!==this._shadow&&(this._removeShadow(),f=
!0);d&&(b.DomUtil.addClass(d,c),d.alt="");this._shadow=d;1>a.opacity&&this._updateOpacity();e&&this.getPane().appendChild(this._icon);this._initInteraction();d&&f&&this.getPane("shadowPane").appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex});b.DomUtil.remove(this._icon);this.removeInteractiveTarget(this._icon);this._icon=null},_removeShadow:function(){this._shadow&&b.DomUtil.remove(this._shadow);this._shadow=
null},_setPos:function(a){b.DomUtil.setPosition(this._icon,a);this._shadow&&b.DomUtil.setPosition(this._shadow,a);this._zIndex=a.y+this.options.zIndexOffset;this._resetZIndex()},_updateZIndex:function(a){this._icon.style.zIndex=this._zIndex+a},_animateZoom:function(a){a=this._map._latLngToNewLayerPoint(this._latlng,a.zoom,a.center).round();this._setPos(a)},_initInteraction:function(){if(this.options.interactive&&(b.DomUtil.addClass(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),
b.Handler.MarkerDrag)){var a=this.options.draggable;this.dragging&&(a=this.dragging.enabled(),this.dragging.disable());this.dragging=new b.Handler.MarkerDrag(this);a&&this.dragging.enable()}},setOpacity:function(a){this.options.opacity=a;this._map&&this._updateOpacity();return this},_updateOpacity:function(){var a=this.options.opacity;b.DomUtil.setOpacity(this._icon,a);this._shadow&&b.DomUtil.setOpacity(this._shadow,a)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},
_getPopupAnchor:function(){return this.options.icon.options.popupAnchor||[0,0]},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor||[0,0]}});b.marker=function(a,c){return new b.Marker(a,c)};b.DivIcon=b.Icon.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(a){a=a&&"DIV"===a.tagName?a:m.createElement("div");var c=this.options;a.innerHTML=!1!==c.html?c.html:"";c.bgPos&&(c=b.point(c.bgPos),a.style.backgroundPosition=-c.x+"px "+
-c.y+"px");this._setIconStyles(a,"icon");return a},createShadow:function(){return null}});b.divIcon=function(a){return new b.DivIcon(a)};b.DivOverlay=b.Layer.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(a,c){b.setOptions(this,a);this._source=c},onAdd:function(a){this._zoomAnimated=a._zoomAnimated;this._container||this._initLayout();a._fadeAnimated&&b.DomUtil.setOpacity(this._container,0);clearTimeout(this._removeTimeout);this.getPane().appendChild(this._container);
this.update();a._fadeAnimated&&b.DomUtil.setOpacity(this._container,1);this.bringToFront()},onRemove:function(a){a._fadeAnimated?(b.DomUtil.setOpacity(this._container,0),this._removeTimeout=setTimeout(b.bind(b.DomUtil.remove,b.DomUtil,this._container),200)):b.DomUtil.remove(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(a){this._latlng=b.latLng(a);this._map&&(this._updatePosition(),this._adjustPan());return this},getContent:function(){return this._content},setContent:function(a){this._content=
a;this.update();return 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 a={zoom:this._updatePosition,viewreset:this._updatePosition};this._zoomAnimated&&(a.zoomanim=this._animateZoom);return a},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){this._map&&
b.DomUtil.toFront(this._container);return this},bringToBack:function(){this._map&&b.DomUtil.toBack(this._container);return this},_updateContent:function(){if(this._content){var a=this._contentNode,c="function"===typeof this._content?this._content(this._source||this):this._content;if("string"===typeof c)a.innerHTML=c;else{for(;a.hasChildNodes();)a.removeChild(a.firstChild);a.appendChild(c)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var a=this._map.latLngToLayerPoint(this._latlng),
c=b.point(this.options.offset),d=this._getAnchor();this._zoomAnimated?b.DomUtil.setPosition(this._container,a.add(d)):c=c.add(a).add(d);a=this._containerBottom=-c.y;c=this._containerLeft=-Math.round(this._containerWidth/2)+c.x;this._container.style.bottom=a+"px";this._container.style.left=c+"px"}},_getAnchor:function(){return[0,0]}});b.Popup=b.DivOverlay.extend({options:{maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,
5],keepInView:!1,closeButton:!0,autoClose:!0,className:""},openOn:function(a){a.openPopup(this);return this},onAdd:function(a){b.DivOverlay.prototype.onAdd.call(this,a);a.fire("popupopen",{popup:this});if(this._source&&(this._source.fire("popupopen",{popup:this},!0),!(this._source instanceof b.Path)))this._source.on("preclick",b.DomEvent.stopPropagation)},onRemove:function(a){b.DivOverlay.prototype.onRemove.call(this,a);a.fire("popupclose",{popup:this});this._source&&(this._source.fire("popupclose",
{popup:this},!0),this._source instanceof b.Path||this._source.off("preclick",b.DomEvent.stopPropagation))},getEvents:function(){var a=b.DivOverlay.prototype.getEvents.call(this);if("closeOnClick"in this.options?this.options.closeOnClick:this._map.options.closePopupOnClick)a.preclick=this._close;this.options.keepInView&&(a.moveend=this._adjustPan);return a},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var a=this._container=b.DomUtil.create("div","leaflet-popup "+
(this.options.className||"")+" leaflet-zoom-animated");if(this.options.closeButton){var c=this._closeButton=b.DomUtil.create("a","leaflet-popup-close-button",a);c.href="#close";c.innerHTML="&#215;";b.DomEvent.on(c,"click",this._onCloseButtonClick,this)}c=this._wrapper=b.DomUtil.create("div","leaflet-popup-content-wrapper",a);this._contentNode=b.DomUtil.create("div","leaflet-popup-content",c);b.DomEvent.disableClickPropagation(c).disableScrollPropagation(this._contentNode).on(c,"contextmenu",b.DomEvent.stopPropagation);
this._tipContainer=b.DomUtil.create("div","leaflet-popup-tip-container",a);this._tip=b.DomUtil.create("div","leaflet-popup-tip",this._tipContainer)},_updateLayout:function(){var a=this._contentNode,c=a.style;c.width="";c.whiteSpace="nowrap";var d=a.offsetWidth,d=Math.min(d,this.options.maxWidth),d=Math.max(d,this.options.minWidth);c.width=d+1+"px";c.whiteSpace="";c.height="";var d=a.offsetHeight,e=this.options.maxHeight;e&&d>e?(c.height=e+"px",b.DomUtil.addClass(a,"leaflet-popup-scrolled")):b.DomUtil.removeClass(a,
"leaflet-popup-scrolled");this._containerWidth=this._container.offsetWidth},_animateZoom:function(a){a=this._map._latLngToNewLayerPoint(this._latlng,a.zoom,a.center);var c=this._getAnchor();b.DomUtil.setPosition(this._container,a.add(c))},_adjustPan:function(){if(!(!this.options.autoPan||this._map._panAnim&&this._map._panAnim._inProgress)){var a=this._map,c=parseInt(b.DomUtil.getStyle(this._container,"marginBottom"),10)||0,c=this._container.offsetHeight+c,d=this._containerWidth,e=new b.Point(this._containerLeft,
-c-this._containerBottom);e._add(b.DomUtil.getPosition(this._container));var e=a.layerPointToContainerPoint(e),f=b.point(this.options.autoPanPadding),h=b.point(this.options.autoPanPaddingTopLeft||f),f=b.point(this.options.autoPanPaddingBottomRight||f),k=a.getSize(),l=0,m=0;e.x+d+f.x>k.x&&(l=e.x+d-k.x+f.x);0>e.x-l-h.x&&(l=e.x-h.x);e.y+c+f.y>k.y&&(m=e.y+c-k.y+f.y);0>e.y-m-h.y&&(m=e.y-h.y);(l||m)&&a.fire("autopanstart").panBy([l,m])}},_onCloseButtonClick:function(a){this._close();b.DomEvent.stop(a)},
_getAnchor:function(){return b.point(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});b.popup=function(a,c){return new b.Popup(a,c)};b.Map.mergeOptions({closePopupOnClick:!0});b.Map.include({openPopup:function(a,c,d){a instanceof b.Popup||(a=(new b.Popup(d)).setContent(a));c&&a.setLatLng(c);if(this.hasLayer(a))return this;this._popup&&this._popup.options.autoClose&&this.closePopup();this._popup=a;return this.addLayer(a)},closePopup:function(a){a&&a!==this._popup||
(a=this._popup,this._popup=null);a&&this.removeLayer(a);return this}});b.Layer.include({bindPopup:function(a,c){if(a instanceof b.Popup)b.setOptions(a,c),this._popup=a,a._source=this;else{if(!this._popup||c)this._popup=new b.Popup(c,this);this._popup.setContent(a)}this._popupHandlersAdded||(this.on({click:this._openPopup,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0);return this},unbindPopup:function(){this._popup&&(this.off({click:this._openPopup,remove:this.closePopup,
move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null);return this},openPopup:function(a,c){a instanceof b.Layer||(c=a,a=this);if(a instanceof b.FeatureGroup)for(var d in this._layers){a=this._layers[d];break}c||(c=a.getCenter?a.getCenter():a.getLatLng());this._popup&&this._map&&(this._popup._source=a,this._popup.update(),this._map.openPopup(this._popup,c));return this},closePopup:function(){this._popup&&this._popup._close();return this},togglePopup:function(a){this._popup&&(this._popup._map?
this.closePopup():this.openPopup(a));return this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(a){this._popup&&this._popup.setContent(a);return this},getPopup:function(){return this._popup},_openPopup:function(a){var c=a.layer||a.target;this._popup&&this._map&&(b.DomEvent.stop(a),c instanceof b.Path?this.openPopup(a.layer||a.target,a.latlng):this._map.hasLayer(this._popup)&&this._popup._source===c?this.closePopup():this.openPopup(c,a.latlng))},_movePopup:function(a){this._popup.setLatLng(a.latlng)}});
b.Tooltip=b.DivOverlay.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(a){b.DivOverlay.prototype.onAdd.call(this,a);this.setOpacity(this.options.opacity);a.fire("tooltipopen",{tooltip:this});this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(a){b.DivOverlay.prototype.onRemove.call(this,a);a.fire("tooltipclose",{tooltip:this});this._source&&this._source.fire("tooltipclose",{tooltip:this},
!0)},getEvents:function(){var a=b.DivOverlay.prototype.getEvents.call(this);b.Browser.touch&&!this.options.permanent&&(a.preclick=this._close);return a},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){this._contentNode=this._container=b.DomUtil.create("div","leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(a){var c=this._map,d=this._container,
e=c.latLngToContainerPoint(c.getCenter()),c=c.layerPointToContainerPoint(a),f=this.options.direction,h=d.offsetWidth,k=d.offsetHeight,l=b.point(this.options.offset),m=this._getAnchor();"top"===f?a=a.add(b.point(-h/2+l.x,-k+l.y+m.y,!0)):"bottom"===f?a=a.subtract(b.point(h/2-l.x,-l.y,!0)):"center"===f?a=a.subtract(b.point(h/2+l.x,k/2-m.y+l.y,!0)):"right"===f||"auto"===f&&c.x<e.x?(f="right",a=a.add(b.point(l.x+m.x,m.y-k/2+l.y,!0))):(f="left",a=a.subtract(b.point(h+m.x-l.x,k/2-m.y-l.y,!0)));b.DomUtil.removeClass(d,
"leaflet-tooltip-right");b.DomUtil.removeClass(d,"leaflet-tooltip-left");b.DomUtil.removeClass(d,"leaflet-tooltip-top");b.DomUtil.removeClass(d,"leaflet-tooltip-bottom");b.DomUtil.addClass(d,"leaflet-tooltip-"+f);b.DomUtil.setPosition(d,a)},_updatePosition:function(){var a=this._map.latLngToLayerPoint(this._latlng);this._setPosition(a)},setOpacity:function(a){this.options.opacity=a;this._container&&b.DomUtil.setOpacity(this._container,a)},_animateZoom:function(a){a=this._map._latLngToNewLayerPoint(this._latlng,
a.zoom,a.center);this._setPosition(a)},_getAnchor:function(){return b.point(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});b.tooltip=function(a,c){return new b.Tooltip(a,c)};b.Map.include({openTooltip:function(a,c,d){a instanceof b.Tooltip||(a=(new b.Tooltip(d)).setContent(a));c&&a.setLatLng(c);return this.hasLayer(a)?this:this.addLayer(a)},closeTooltip:function(a){a&&this.removeLayer(a);return this}});b.Layer.include({bindTooltip:function(a,
c){if(a instanceof b.Tooltip)b.setOptions(a,c),this._tooltip=a,a._source=this;else{if(!this._tooltip||c)this._tooltip=b.tooltip(c,this);this._tooltip.setContent(a)}this._initTooltipInteractions();this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip();return this},unbindTooltip:function(){this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null);return this},_initTooltipInteractions:function(a){if(a||!this._tooltipHandlersAdded){var c=
{remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?c.add=this._openTooltip:(c.mouseover=this._openTooltip,c.mouseout=this.closeTooltip,this._tooltip.options.sticky&&(c.mousemove=this._moveTooltip),b.Browser.touch&&(c.click=this._openTooltip));this[a?"off":"on"](c);this._tooltipHandlersAdded=!a}},openTooltip:function(a,c){a instanceof b.Layer||(c=a,a=this);if(a instanceof b.FeatureGroup)for(var d in this._layers){a=this._layers[d];break}c||(c=a.getCenter?a.getCenter():
a.getLatLng());this._tooltip&&this._map&&(this._tooltip._source=a,this._tooltip.update(),this._map.openTooltip(this._tooltip,c),this._tooltip.options.interactive&&this._tooltip._container&&(b.DomUtil.addClass(this._tooltip._container,"leaflet-clickable"),this.addInteractiveTarget(this._tooltip._container)));return this},closeTooltip:function(){this._tooltip&&(this._tooltip._close(),this._tooltip.options.interactive&&this._tooltip._container&&(b.DomUtil.removeClass(this._tooltip._container,"leaflet-clickable"),
this.removeInteractiveTarget(this._tooltip._container)));return this},toggleTooltip:function(a){this._tooltip&&(this._tooltip._map?this.closeTooltip():this.openTooltip(a));return this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(a){this._tooltip&&this._tooltip.setContent(a);return this},getTooltip:function(){return this._tooltip},_openTooltip:function(a){var c=a.layer||a.target;this._tooltip&&this._map&&this.openTooltip(c,this._tooltip.options.sticky?a.latlng:
l)},_moveTooltip:function(a){var c=a.latlng;this._tooltip.options.sticky&&a.originalEvent&&(a=this._map.mouseEventToContainerPoint(a.originalEvent),a=this._map.containerPointToLayerPoint(a),c=this._map.layerPointToLatLng(a));this._tooltip.setLatLng(c)}});b.LayerGroup=b.Layer.extend({initialize:function(a){this._layers={};var c,b;if(a)for(c=0,b=a.length;c<b;c++)this.addLayer(a[c])},addLayer:function(a){var c=this.getLayerId(a);this._layers[c]=a;this._map&&this._map.addLayer(a);return this},removeLayer:function(a){a=
a in this._layers?a:this.getLayerId(a);this._map&&this._layers[a]&&this._map.removeLayer(this._layers[a]);delete this._layers[a];return this},hasLayer:function(a){return!!a&&(a in this._layers||this.getLayerId(a)in this._layers)},clearLayers:function(){for(var a in this._layers)this.removeLayer(this._layers[a]);return this},invoke:function(a){var c=Array.prototype.slice.call(arguments,1),b,e;for(b in this._layers)e=this._layers[b],e[a]&&e[a].apply(e,c);return this},onAdd:function(a){for(var c in this._layers)a.addLayer(this._layers[c])},
onRemove:function(a){for(var c in this._layers)a.removeLayer(this._layers[c])},eachLayer:function(a,c){for(var b in this._layers)a.call(c,this._layers[b]);return this},getLayer:function(a){return this._layers[a]},getLayers:function(){var a=[],c;for(c in this._layers)a.push(this._layers[c]);return a},setZIndex:function(a){return this.invoke("setZIndex",a)},getLayerId:function(a){return b.stamp(a)}});b.layerGroup=function(a){return new b.LayerGroup(a)};b.FeatureGroup=b.LayerGroup.extend({addLayer:function(a){if(this.hasLayer(a))return this;
a.addEventParent(this);b.LayerGroup.prototype.addLayer.call(this,a);return this.fire("layeradd",{layer:a})},removeLayer:function(a){if(!this.hasLayer(a))return this;a in this._layers&&(a=this._layers[a]);a.removeEventParent(this);b.LayerGroup.prototype.removeLayer.call(this,a);return this.fire("layerremove",{layer:a})},setStyle:function(a){return this.invoke("setStyle",a)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var a=
new b.LatLngBounds,c;for(c in this._layers){var d=this._layers[c];a.extend(d.getBounds?d.getBounds():d.getLatLng())}return a}});b.featureGroup=function(a){return new b.FeatureGroup(a)};b.Renderer=b.Layer.extend({options:{padding:.1},initialize:function(a){b.setOptions(this,a);b.stamp(this);this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&b.DomUtil.addClass(this._container,"leaflet-zoom-animated"));this.getPane().appendChild(this._container);
this._update();this.on("update",this._updatePaths,this)},onRemove:function(){b.DomUtil.remove(this._container);this.off("update",this._updatePaths,this)},getEvents:function(){var a={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};this._zoomAnimated&&(a.zoomanim=this._onAnimZoom);return a},_onAnimZoom:function(a){this._updateTransform(a.center,a.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(a,
c){var d=this._map.getZoomScale(c,this._zoom),e=b.DomUtil.getPosition(this._container),f=this._map.getSize().multiplyBy(.5+this.options.padding),h=this._map.project(this._center,c),h=this._map.project(a,c).subtract(h),e=f.multiplyBy(-d).add(e).add(f).subtract(h);b.Browser.any3d?b.DomUtil.setTransform(this._container,e,d):b.DomUtil.setPosition(this._container,e)},_reset:function(){this._update();this._updateTransform(this._center,this._zoom);for(var a in this._layers)this._layers[a]._reset()},_onZoomEnd:function(){for(var a in this._layers)this._layers[a]._project()},
_updatePaths:function(){for(var a in this._layers)this._layers[a]._update()},_update:function(){var a=this.options.padding,c=this._map.getSize(),d=this._map.containerPointToLayerPoint(c.multiplyBy(-a)).round();this._bounds=new b.Bounds(d,d.add(c.multiplyBy(1+2*a)).round());this._center=this._map.getCenter();this._zoom=this._map.getZoom()}});b.Map.include({getRenderer:function(a){a=a.options.renderer||this._getPaneRenderer(a.options.pane)||this.options.renderer||this._renderer;a||(a=this._renderer=
this.options.preferCanvas&&b.canvas()||b.svg());this.hasLayer(a)||this.addLayer(a);return a},_getPaneRenderer:function(a){if("overlayPane"===a||a===l)return!1;var c=this._paneRenderers[a];c===l&&(c=b.SVG&&b.svg({pane:a})||b.Canvas&&b.canvas({pane:a}),this._paneRenderers[a]=c);return c}});b.Path=b.Layer.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},
beforeAdd:function(a){this._renderer=a.getRenderer(this)},onAdd:function(){this._renderer._initPath(this);this._reset();this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){this._map&&this._renderer._updatePath(this);return this},setStyle:function(a){b.setOptions(this,a);this._renderer&&this._renderer._updateStyle(this);return this},bringToFront:function(){this._renderer&&this._renderer._bringToFront(this);return this},bringToBack:function(){this._renderer&&
this._renderer._bringToBack(this);return this},getElement:function(){return this._path},_reset:function(){this._project();this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(b.Browser.touch?10:0)}});b.LineUtil={simplify:function(a,c){if(!c||!a.length)return a.slice();var b=c*c;a=this._reducePoints(a,b);return a=this._simplifyDP(a,b)},pointToSegmentDistance:function(a,c,b){return Math.sqrt(this._sqClosestPointOnSegment(a,c,b,!0))},closestPointOnSegment:function(a,
c,b){return this._sqClosestPointOnSegment(a,c,b)},_simplifyDP:function(a,c){var b=a.length,e=new (typeof Uint8Array!==l+""?Uint8Array:Array)(b);e[0]=e[b-1]=1;this._simplifyDPStep(a,e,c,0,b-1);var f,h=[];for(f=0;f<b;f++)e[f]&&h.push(a[f]);return h},_simplifyDPStep:function(a,c,b,e,f){var h=0,k,l,m;for(l=e+1;l<=f-1;l++)m=this._sqClosestPointOnSegment(a[l],a[e],a[f],!0),m>h&&(k=l,h=m);h>b&&(c[k]=1,this._simplifyDPStep(a,c,b,e,k),this._simplifyDPStep(a,c,b,k,f))},_reducePoints:function(a,c){for(var b=
[a[0]],e=1,f=0,h=a.length;e<h;e++)this._sqDist(a[e],a[f])>c&&(b.push(a[e]),f=e);f<h-1&&b.push(a[h-1]);return b},clipSegment:function(a,c,b,e,f){e=e?this._lastCode:this._getBitCode(a,b);var h=this._getBitCode(c,b),k,l,m;for(this._lastCode=h;;){if(!(e|h))return[a,c];if(e&h)return!1;k=e||h;l=this._getEdgeIntersection(a,c,k,b,f);m=this._getBitCode(l,b);k===e?(a=l,e=m):(c=l,h=m)}},_getEdgeIntersection:function(a,c,d,e,f){var h=c.x-a.x;c=c.y-a.y;var k=e.min;e=e.max;var l,m;d&8?(l=a.x+h*(e.y-a.y)/c,m=e.y):
d&4?(l=a.x+h*(k.y-a.y)/c,m=k.y):d&2?(l=e.x,m=a.y+c*(e.x-a.x)/h):d&1&&(l=k.x,m=a.y+c*(k.x-a.x)/h);return new b.Point(l,m,f)},_getBitCode:function(a,c){var b=0;a.x<c.min.x?b|=1:a.x>c.max.x&&(b|=2);a.y<c.min.y?b|=4:a.y>c.max.y&&(b|=8);return b},_sqDist:function(a,c){var b=c.x-a.x,e=c.y-a.y;return b*b+e*e},_sqClosestPointOnSegment:function(a,c,d,e){var f=c.x;c=c.y;var h=d.x-f,k=d.y-c,l=h*h+k*k;0<l&&(l=((a.x-f)*h+(a.y-c)*k)/l,1<l?(f=d.x,c=d.y):0<l&&(f+=h*l,c+=k*l));h=a.x-f;k=a.y-c;return e?h*h+k*k:new b.Point(f,
c)}};b.Polyline=b.Path.extend({options:{smoothFactor:1,noClip:!1},initialize:function(a,c){b.setOptions(this,c);this._setLatLngs(a)},getLatLngs:function(){return this._latlngs},setLatLngs:function(a){this._setLatLngs(a);return this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(a){for(var c=Infinity,d=null,e=b.LineUtil._sqClosestPointOnSegment,f,h,k=0,l=this._parts.length;k<l;k++)for(var m=this._parts[k],n=1,G=m.length;n<G;n++){f=m[n-1];h=m[n];var C=e(a,f,h,!0);
C<c&&(c=C,d=e(a,f,h))}d&&(d.distance=Math.sqrt(c));return d},getCenter:function(){if(!this._map)throw Error("Must add layer to map before using getCenter()");var a,c,b,e,f,h,k=this._rings[0],l=k.length;if(!l)return null;for(c=a=0;a<l-1;a++)c+=k[a].distanceTo(k[a+1])/2;if(0===c)return this._map.layerPointToLatLng(k[0]);for(e=a=0;a<l-1;a++)if(f=k[a],h=k[a+1],b=f.distanceTo(h),e+=b,e>c)return a=(e-c)/b,this._map.layerPointToLatLng([h.x-a*(h.x-f.x),h.y-a*(h.y-f.y)])},getBounds:function(){return this._bounds},
addLatLng:function(a,c){c=c||this._defaultShape();a=b.latLng(a);c.push(a);this._bounds.extend(a);return this.redraw()},_setLatLngs:function(a){this._bounds=new b.LatLngBounds;this._latlngs=this._convertLatLngs(a)},_defaultShape:function(){return b.Polyline._flat(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(a){for(var c=[],d=b.Polyline._flat(a),e=0,f=a.length;e<f;e++)d?(c[e]=b.latLng(a[e]),this._bounds.extend(c[e])):c[e]=this._convertLatLngs(a[e]);return c},_project:function(){var a=
new b.Bounds;this._rings=[];this._projectLatlngs(this._latlngs,this._rings,a);var c=this._clickTolerance(),c=new b.Point(c,c);this._bounds.isValid()&&a.isValid()&&(a.min._subtract(c),a.max._add(c),this._pxBounds=a)},_projectLatlngs:function(a,c,d){var e=a.length,f,h;if(a[0]instanceof b.LatLng){h=[];for(f=0;f<e;f++)h[f]=this._map.latLngToLayerPoint(a[f]),d.extend(h[f]);c.push(h)}else for(f=0;f<e;f++)this._projectLatlngs(a[f],c,d)},_clipPoints:function(){var a=this._renderer._bounds;this._parts=[];
if(this._pxBounds&&this._pxBounds.intersects(a))if(this.options.noClip)this._parts=this._rings;else{var c=this._parts,d,e,f,h,k,l,m;f=d=0;for(h=this._rings.length;d<h;d++)for(m=this._rings[d],e=0,k=m.length;e<k-1;e++)if(l=b.LineUtil.clipSegment(m[e],m[e+1],a,e,!0))if(c[f]=c[f]||[],c[f].push(l[0]),l[1]!==m[e+1]||e===k-2)c[f].push(l[1]),f++}},_simplifyPoints:function(){for(var a=this._parts,c=this.options.smoothFactor,d=0,e=a.length;d<e;d++)a[d]=b.LineUtil.simplify(a[d],c)},_update:function(){this._map&&
(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)}});b.polyline=function(a,c){return new b.Polyline(a,c)};b.Polyline._flat=function(a){return!b.Util.isArray(a[0])||"object"!==typeof a[0][0]&&"undefined"!==typeof a[0][0]};b.PolyUtil={};b.PolyUtil.clipPolygon=function(a,c,d){var e,f=[1,4,2,8],h,k,l,m,n,G,C=b.LineUtil;h=0;for(n=a.length;h<n;h++)a[h]._code=C._getBitCode(a[h],c);for(l=0;4>l;l++){G=f[l];e=[];h=0;n=a.length;for(k=n-1;h<
n;k=h++)(m=a[h],k=a[k],m._code&G)?k._code&G||(k=C._getEdgeIntersection(k,m,G,c,d),k._code=C._getBitCode(k,c),e.push(k)):(k._code&G&&(k=C._getEdgeIntersection(k,m,G,c,d),k._code=C._getBitCode(k,c),e.push(k)),e.push(m));a=e}return a};b.Polygon=b.Polyline.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw Error("Must add layer to map before using getCenter()");var a,c,b,e,f,h,k,l=this._rings[0],m=l.length;if(!m)return null;
a=f=h=k=0;for(c=m-1;a<m;c=a++)b=l[a],c=l[c],e=b.y*c.x-c.y*b.x,h+=(b.x+c.x)*e,k+=(b.y+c.y)*e,f+=3*e;return this._map.layerPointToLatLng(0===f?l[0]:[h/f,k/f])},_convertLatLngs:function(a){a=b.Polyline.prototype._convertLatLngs.call(this,a);var c=a.length;2<=c&&a[0]instanceof b.LatLng&&a[0].equals(a[c-1])&&a.pop();return a},_setLatLngs:function(a){b.Polyline.prototype._setLatLngs.call(this,a);b.Polyline._flat(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return b.Polyline._flat(this._latlngs[0])?
this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var a=this._renderer._bounds,c=this.options.weight,c=new b.Point(c,c),a=new b.Bounds(a.min.subtract(c),a.max.add(c));this._parts=[];if(this._pxBounds&&this._pxBounds.intersects(a))if(this.options.noClip)this._parts=this._rings;else for(var c=0,d=this._rings.length,e;c<d;c++)e=b.PolyUtil.clipPolygon(this._rings[c],a,!0),e.length&&this._parts.push(e)},_updatePath:function(){this._renderer._updatePoly(this,!0)}});b.polygon=function(a,c){return new b.Polygon(a,
c)};b.Rectangle=b.Polygon.extend({initialize:function(a,c){b.Polygon.prototype.initialize.call(this,this._boundsToLatLngs(a),c)},setBounds:function(a){return this.setLatLngs(this._boundsToLatLngs(a))},_boundsToLatLngs:function(a){a=b.latLngBounds(a);return[a.getSouthWest(),a.getNorthWest(),a.getNorthEast(),a.getSouthEast()]}});b.rectangle=function(a,c){return new b.Rectangle(a,c)};b.CircleMarker=b.Path.extend({options:{fill:!0,radius:10},initialize:function(a,c){b.setOptions(this,c);this._latlng=
b.latLng(a);this._radius=this.options.radius},setLatLng:function(a){this._latlng=b.latLng(a);this.redraw();return this.fire("move",{latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(a){this.options.radius=this._radius=a;return this.redraw()},getRadius:function(){return this._radius},setStyle:function(a){var c=a&&a.radius||this._radius;b.Path.prototype.setStyle.call(this,a);this.setRadius(c);return this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng);
this._updateBounds()},_updateBounds:function(){var a=this._radius,c=this._radiusY||a,d=this._clickTolerance(),a=[a+d,c+d];this._pxBounds=new b.Bounds(this._point.subtract(a),this._point.add(a))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)}});b.circleMarker=function(a,c){return new b.CircleMarker(a,c)};b.Circle=b.CircleMarker.extend({initialize:function(a,
c,d){"number"===typeof c&&(c=b.extend({},d,{radius:c}));b.setOptions(this,c);this._latlng=b.latLng(a);if(isNaN(this.options.radius))throw Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(a){this._mRadius=a;return this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var a=[this._radius,this._radiusY||this._radius];return new b.LatLngBounds(this._map.layerPointToLatLng(this._point.subtract(a)),this._map.layerPointToLatLng(this._point.add(a)))},
setStyle:b.Path.prototype.setStyle,_project:function(){var a=this._latlng.lng,c=this._latlng.lat,d=this._map,e=d.options.crs;if(e.distance===b.CRS.Earth.distance){var f=Math.PI/180,e=this._mRadius/b.CRS.Earth.R/f,h=d.project([c+e,a]),k=d.project([c-e,a]),k=h.add(k).divideBy(2),l=d.unproject(k).lat,f=Math.acos((Math.cos(e*f)-Math.sin(c*f)*Math.sin(l*f))/(Math.cos(c*f)*Math.cos(l*f)))/f;if(isNaN(f)||0===f)f=e/Math.cos(Math.PI/180*c);this._point=k.subtract(d.getPixelOrigin());this._radius=isNaN(f)?0:
Math.max(Math.round(k.x-d.project([l,a-f]).x),1);this._radiusY=Math.max(Math.round(k.y-h.y),1)}else a=e.unproject(e.project(this._latlng).subtract([this._mRadius,0])),this._point=d.latLngToLayerPoint(this._latlng),this._radius=this._point.x-d.latLngToLayerPoint(a).x;this._updateBounds()}});b.circle=function(a,c,d){return new b.Circle(a,c,d)};b.SVG=b.Renderer.extend({getEvents:function(){var a=b.Renderer.prototype.getEvents.call(this);a.zoomstart=this._onZoomStart;return a},_initContainer:function(){this._container=
b.SVG.create("svg");this._container.setAttribute("pointer-events","none");this._rootGroup=b.SVG.create("g");this._container.appendChild(this._rootGroup)},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){b.Renderer.prototype._update.call(this);var a=this._bounds,c=a.getSize(),d=this._container;this._svgSize&&this._svgSize.equals(c)||(this._svgSize=c,d.setAttribute("width",c.x),d.setAttribute("height",c.y));b.DomUtil.setPosition(d,a.min);d.setAttribute("viewBox",
[a.min.x,a.min.y,c.x,c.y].join(" "));this.fire("update")}},_initPath:function(a){var c=a._path=b.SVG.create("path");a.options.className&&b.DomUtil.addClass(c,a.options.className);a.options.interactive&&b.DomUtil.addClass(c,"leaflet-interactive");this._updateStyle(a);this._layers[b.stamp(a)]=a},_addPath:function(a){this._rootGroup.appendChild(a._path);a.addInteractiveTarget(a._path)},_removePath:function(a){b.DomUtil.remove(a._path);a.removeInteractiveTarget(a._path);delete this._layers[b.stamp(a)]},
_updatePath:function(a){a._project();a._update()},_updateStyle:function(a){var c=a._path;a=a.options;c&&(a.stroke?(c.setAttribute("stroke",a.color),c.setAttribute("stroke-opacity",a.opacity),c.setAttribute("stroke-width",a.weight),c.setAttribute("stroke-linecap",a.lineCap),c.setAttribute("stroke-linejoin",a.lineJoin),a.dashArray?c.setAttribute("stroke-dasharray",a.dashArray):c.removeAttribute("stroke-dasharray"),a.dashOffset?c.setAttribute("stroke-dashoffset",a.dashOffset):c.removeAttribute("stroke-dashoffset")):
c.setAttribute("stroke","none"),a.fill?(c.setAttribute("fill",a.fillColor||a.color),c.setAttribute("fill-opacity",a.fillOpacity),c.setAttribute("fill-rule",a.fillRule||"evenodd")):c.setAttribute("fill","none"))},_updatePoly:function(a,c){this._setPath(a,b.SVG.pointsToPath(a._parts,c))},_updateCircle:function(a){var c=a._point,b=a._radius,e="a"+b+","+(a._radiusY||b)+" 0 1,0 ",c=a._empty()?"M0 0":"M"+(c.x-b)+","+c.y+e+2*b+",0 "+e+2*-b+",0 ";this._setPath(a,c)},_setPath:function(a,c){a._path.setAttribute("d",
c)},_bringToFront:function(a){b.DomUtil.toFront(a._path)},_bringToBack:function(a){b.DomUtil.toBack(a._path)}});b.extend(b.SVG,{create:function(a){return m.createElementNS("http://www.w3.org/2000/svg",a)},pointsToPath:function(a,c){var d="",e,f,h,k,l,m;e=0;for(h=a.length;e<h;e++){l=a[e];f=0;for(k=l.length;f<k;f++)m=l[f],d+=(f?"L":"M")+m.x+" "+m.y;d+=c?b.Browser.svg?"z":"x":""}return d||"M0 0"}});b.Browser.svg=!(!m.createElementNS||!b.SVG.create("svg").createSVGRect);b.svg=function(a){return b.Browser.svg||
b.Browser.vml?new b.SVG(a):null};b.Browser.vml=!b.Browser.svg&&function(){try{var a=m.createElement("div");a.innerHTML='<v:shape adj="1"/>';var c=a.firstChild;c.style.behavior="url(#default#VML)";return c&&"object"===typeof c.adj}catch(b){return!1}}();b.SVG.include(b.Browser.vml?{_initContainer:function(){this._container=b.DomUtil.create("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(b.Renderer.prototype._update.call(this),this.fire("update"))},_initPath:function(a){var c=
a._container=b.SVG.create("shape");b.DomUtil.addClass(c,"leaflet-vml-shape "+(this.options.className||""));c.coordsize="1 1";a._path=b.SVG.create("path");c.appendChild(a._path);this._updateStyle(a);this._layers[b.stamp(a)]=a},_addPath:function(a){var c=a._container;this._container.appendChild(c);a.options.interactive&&a.addInteractiveTarget(c)},_removePath:function(a){var c=a._container;b.DomUtil.remove(c);a.removeInteractiveTarget(c);delete this._layers[b.stamp(a)]},_updateStyle:function(a){var c=
a._stroke,d=a._fill,e=a.options,f=a._container;f.stroked=!!e.stroke;f.filled=!!e.fill;e.stroke?(c||(c=a._stroke=b.SVG.create("stroke")),f.appendChild(c),c.weight=e.weight+"px",c.color=e.color,c.opacity=e.opacity,c.dashStyle=e.dashArray?b.Util.isArray(e.dashArray)?e.dashArray.join(" "):e.dashArray.replace(/( *, *)/g," "):"",c.endcap=e.lineCap.replace("butt","flat"),c.joinstyle=e.lineJoin):c&&(f.removeChild(c),a._stroke=null);e.fill?(d||(d=a._fill=b.SVG.create("fill")),f.appendChild(d),d.color=e.fillColor||
e.color,d.opacity=e.fillOpacity):d&&(f.removeChild(d),a._fill=null)},_updateCircle:function(a){var c=a._point.round(),b=Math.round(a._radius),e=Math.round(a._radiusY||b);this._setPath(a,a._empty()?"M0 0":"AL "+c.x+","+c.y+" "+b+","+e+" 0,23592600")},_setPath:function(a,c){a._path.v=c},_bringToFront:function(a){b.DomUtil.toFront(a._container)},_bringToBack:function(a){b.DomUtil.toBack(a._container)}}:{});b.Browser.vml&&(b.SVG.create=function(){try{return m.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),
function(a){return m.createElement("<lvml:"+a+' class="lvml">')}}catch(a){return function(a){return m.createElement("<"+a+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}());b.Canvas=b.Renderer.extend({getEvents:function(){var a=b.Renderer.prototype.getEvents.call(this);a.viewprereset=this._onViewPreReset;return a},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){b.Renderer.prototype.onAdd.call(this);this._draw()},_initContainer:function(){var a=this._container=
m.createElement("canvas");b.DomEvent.on(a,"mousemove",b.Util.throttle(this._onMouseMove,32,this),this).on(a,"click dblclick mousedown mouseup contextmenu",this._onClick,this).on(a,"mouseout",this._handleMouseOut,this);this._ctx=a.getContext("2d")},_updatePaths:function(){if(!this._postponeUpdatePaths){var a;this._redrawBounds=null;for(var c in this._layers)a=this._layers[c],a._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){this._drawnLayers={};b.Renderer.prototype._update.call(this);
var a=this._bounds,c=this._container,d=a.getSize(),e=b.Browser.retina?2:1;b.DomUtil.setPosition(c,a.min);c.width=e*d.x;c.height=e*d.y;c.style.width=d.x+"px";c.style.height=d.y+"px";b.Browser.retina&&this._ctx.scale(2,2);this._ctx.translate(-a.min.x,-a.min.y);this.fire("update")}},_reset:function(){b.Renderer.prototype._reset.call(this);this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(a){this._updateDashArray(a);this._layers[b.stamp(a)]=a;a=a._order=
{layer:a,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=a);this._drawLast=a;this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(a){this._requestRedraw(a)},_removePath:function(a){var c=a._order,d=c.next,c=c.prev;d?d.prev=c:this._drawLast=c;c?c.next=d:this._drawFirst=d;delete a._order;delete this._layers[b.stamp(a)];this._requestRedraw(a)},_updatePath:function(a){this._extendRedrawBounds(a);a._project();a._update();this._requestRedraw(a)},_updateStyle:function(a){this._updateDashArray(a);
this._requestRedraw(a)},_updateDashArray:function(a){if(a.options.dashArray){var c=a.options.dashArray.split(","),b=[],e;for(e=0;e<c.length;e++)b.push(Number(c[e]));a.options._dashArray=b}},_requestRedraw:function(a){this._map&&(this._extendRedrawBounds(a),this._redrawRequest=this._redrawRequest||b.Util.requestAnimFrame(this._redraw,this))},_extendRedrawBounds:function(a){var c=(a.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new b.Bounds;this._redrawBounds.extend(a._pxBounds.min.subtract([c,
c]));this._redrawBounds.extend(a._pxBounds.max.add([c,c]))},_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 a=this._redrawBounds;if(a){var c=a.getSize();this._ctx.clearRect(a.min.x,a.min.y,c.x,c.y)}else this._ctx.clearRect(0,0,this._container.width,this._container.height)},_draw:function(){var a,c=this._redrawBounds;this._ctx.save();c&&(a=c.getSize(),
this._ctx.beginPath(),this._ctx.rect(c.min.x,c.min.y,a.x,a.y),this._ctx.clip());this._drawing=!0;for(var b=this._drawFirst;b;b=b.next)a=b.layer,(!c||a._pxBounds&&a._pxBounds.intersects(c))&&a._updatePath();this._drawing=!1;this._ctx.restore()},_updatePoly:function(a,c){if(this._drawing){var b,e,f,h,k=a._parts,l=k.length,m=this._ctx;if(l){this._drawnLayers[a._leaflet_id]=a;m.beginPath();m.setLineDash&&m.setLineDash(a.options&&a.options._dashArray||[]);for(b=0;b<l;b++){e=0;for(f=k[b].length;e<f;e++)h=
k[b][e],m[e?"lineTo":"moveTo"](h.x,h.y);c&&m.closePath()}this._fillStroke(m,a)}}},_updateCircle:function(a){if(this._drawing&&!a._empty()){var c=a._point,b=this._ctx,e=a._radius,f=(a._radiusY||e)/e;this._drawnLayers[a._leaflet_id]=a;1!==f&&(b.save(),b.scale(1,f));b.beginPath();b.arc(c.x,c.y/f,e,0,2*Math.PI,!1);1!==f&&b.restore();this._fillStroke(b,a)}},_fillStroke:function(a,c){var b=c.options;b.fill&&(a.globalAlpha=b.fillOpacity,a.fillStyle=b.fillColor||b.color,a.fill(b.fillRule||"evenodd"));b.stroke&&
0!==b.weight&&(a.globalAlpha=b.opacity,a.lineWidth=b.weight,a.strokeStyle=b.color,a.lineCap=b.lineCap,a.lineJoin=b.lineJoin,a.stroke())},_onClick:function(a){for(var c=this._map.mouseEventToLayerPoint(a),d,e,f=this._drawFirst;f;f=f.next)d=f.layer,d.options.interactive&&d._containsPoint(c)&&!this._map._draggableMoved(d)&&(e=d);e&&(b.DomEvent._fakeStop(a),this._fireEvent([e],a))},_onMouseMove:function(a){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var b=this._map.mouseEventToLayerPoint(a);
this._handleMouseHover(a,b)}},_handleMouseOut:function(a){var c=this._hoveredLayer;c&&(b.DomUtil.removeClass(this._container,"leaflet-interactive"),this._fireEvent([c],a,"mouseout"),this._hoveredLayer=null)},_handleMouseHover:function(a,c){for(var d,e,f=this._drawFirst;f;f=f.next)d=f.layer,d.options.interactive&&d._containsPoint(c)&&(e=d);e!==this._hoveredLayer&&(this._handleMouseOut(a),e&&(b.DomUtil.addClass(this._container,"leaflet-interactive"),this._fireEvent([e],a,"mouseover"),this._hoveredLayer=
e));this._hoveredLayer&&this._fireEvent([this._hoveredLayer],a)},_fireEvent:function(a,b,d){this._map._fireDOMEvent(b,d||b.type,a)},_bringToFront:function(a){var b=a._order,d=b.next,e=b.prev;d&&((d.prev=e)?e.next=d:d&&(this._drawFirst=d),b.prev=this._drawLast,this._drawLast.next=b,b.next=null,this._drawLast=b,this._requestRedraw(a))},_bringToBack:function(a){var b=a._order,d=b.next,e=b.prev;e&&((e.next=d)?d.prev=e:e&&(this._drawLast=e),b.prev=null,b.next=this._drawFirst,this._drawFirst=this._drawFirst.prev=
b,this._requestRedraw(a))}});b.Browser.canvas=!!m.createElement("canvas").getContext;b.canvas=function(a){return b.Browser.canvas?new b.Canvas(a):null};b.Polyline.prototype._containsPoint=function(a,c){var d,e,f,h,k,l,m=this._clickTolerance();if(!this._pxBounds.contains(a))return!1;d=0;for(h=this._parts.length;d<h;d++)for(l=this._parts[d],e=0,k=l.length,f=k-1;e<k;f=e++)if((c||0!==e)&&b.LineUtil.pointToSegmentDistance(a,l[f],l[e])<=m)return!0;return!1};b.Polygon.prototype._containsPoint=function(a){var c=
!1,d,e,f,h,k,l,m;if(!this._pxBounds.contains(a))return!1;h=0;for(l=this._parts.length;h<l;h++)for(d=this._parts[h],k=0,m=d.length,f=m-1;k<m;f=k++)e=d[k],f=d[f],e.y>a.y!==f.y>a.y&&a.x<(f.x-e.x)*(a.y-e.y)/(f.y-e.y)+e.x&&(c=!c);return c||b.Polyline.prototype._containsPoint.call(this,a,!0)};b.CircleMarker.prototype._containsPoint=function(a){return a.distanceTo(this._point)<=this._radius+this._clickTolerance()};b.GeoJSON=b.FeatureGroup.extend({initialize:function(a,c){b.setOptions(this,c);this._layers=
{};a&&this.addData(a)},addData:function(a){var c=b.Util.isArray(a)?a:a.features,d,e;if(c){a=0;for(d=c.length;a<d;a++)e=c[a],(e.geometries||e.geometry||e.features||e.coordinates)&&this.addData(e);return this}c=this.options;if(c.filter&&!c.filter(a))return this;d=b.GeoJSON.geometryToLayer(a,c);if(!d)return this;d.feature=b.GeoJSON.asFeature(a);d.defaultOptions=d.options;this.resetStyle(d);if(c.onEachFeature)c.onEachFeature(a,d);return this.addLayer(d)},resetStyle:function(a){a.options=b.Util.extend({},
a.defaultOptions);this._setLayerStyle(a,this.options.style);return this},setStyle:function(a){return this.eachLayer(function(b){this._setLayerStyle(b,a)},this)},_setLayerStyle:function(a,b){"function"===typeof b&&(b=b(a.feature));a.setStyle&&a.setStyle(b)}});b.extend(b.GeoJSON,{geometryToLayer:function(a,c){var d="Feature"===a.type?a.geometry:a,e=d?d.coordinates:null,f=[],h=c&&c.pointToLayer,k=c&&c.coordsToLatLng||this.coordsToLatLng,l,m;if(!e&&!d)return null;switch(d.type){case "Point":return d=
k(e),h?h(a,d):new b.Marker(d);case "MultiPoint":l=0;for(m=e.length;l<m;l++)d=k(e[l]),f.push(h?h(a,d):new b.Marker(d));return new b.FeatureGroup(f);case "LineString":case "MultiLineString":return f=this.coordsToLatLngs(e,"LineString"===d.type?0:1,k),new b.Polyline(f,c);case "Polygon":case "MultiPolygon":return f=this.coordsToLatLngs(e,"Polygon"===d.type?1:2,k),new b.Polygon(f,c);case "GeometryCollection":l=0;for(m=d.geometries.length;l<m;l++)(e=this.geometryToLayer({geometry:d.geometries[l],type:"Feature",
properties:a.properties},c))&&f.push(e);return new b.FeatureGroup(f);default:throw Error("Invalid GeoJSON object.");}},coordsToLatLng:function(a){return new b.LatLng(a[1],a[0],a[2])},coordsToLatLngs:function(a,b,d){for(var e=[],f=0,h=a.length,k;f<h;f++)k=b?this.coordsToLatLngs(a[f],b-1,d):(d||this.coordsToLatLng)(a[f]),e.push(k);return e},latLngToCoords:function(a){return a.alt!==l?[a.lng,a.lat,a.alt]:[a.lng,a.lat]},latLngsToCoords:function(a,c,d){for(var e=[],f=0,h=a.length;f<h;f++)e.push(c?b.GeoJSON.latLngsToCoords(a[f],
c-1,d):b.GeoJSON.latLngToCoords(a[f]));!c&&d&&e.push(e[0]);return e},getFeature:function(a,c){return a.feature?b.extend({},a.feature,{geometry:c}):b.GeoJSON.asFeature(c)},asFeature:function(a){return"Feature"===a.type||"FeatureCollection"===a.type?a:{type:"Feature",properties:{},geometry:a}}});k={toGeoJSON:function(){return b.GeoJSON.getFeature(this,{type:"Point",coordinates:b.GeoJSON.latLngToCoords(this.getLatLng())})}};b.Marker.include(k);b.Circle.include(k);b.CircleMarker.include(k);b.Polyline.prototype.toGeoJSON=
function(){var a=!b.Polyline._flat(this._latlngs),c=b.GeoJSON.latLngsToCoords(this._latlngs,a?1:0);return b.GeoJSON.getFeature(this,{type:(a?"Multi":"")+"LineString",coordinates:c})};b.Polygon.prototype.toGeoJSON=function(){var a=!b.Polyline._flat(this._latlngs),c=a&&!b.Polyline._flat(this._latlngs[0]),d=b.GeoJSON.latLngsToCoords(this._latlngs,c?2:a?1:0,!0);a||(d=[d]);return b.GeoJSON.getFeature(this,{type:(c?"Multi":"")+"Polygon",coordinates:d})};b.LayerGroup.include({toMultiPoint:function(){var a=
[];this.eachLayer(function(b){a.push(b.toGeoJSON().geometry.coordinates)});return b.GeoJSON.getFeature(this,{type:"MultiPoint",coordinates:a})},toGeoJSON:function(){var a=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===a)return this.toMultiPoint();var c="GeometryCollection"===a,d=[];this.eachLayer(function(a){a.toGeoJSON&&(a=a.toGeoJSON(),d.push(c?a.geometry:b.GeoJSON.asFeature(a)))});return c?b.GeoJSON.getFeature(this,{geometries:d,type:"GeometryCollection"}):{type:"FeatureCollection",
features:d}}});b.geoJSON=function(a,c){return new b.GeoJSON(a,c)};b.geoJson=b.geoJSON;b.Draggable=b.Evented.extend({options:{clickTolerance:3},statics:{START:b.Browser.touch?["touchstart","mousedown"]:["mousedown"],END:{mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},MOVE:{mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"}},initialize:function(a,b,d){this._element=a;this._dragStartTarget=b||a;this._preventOutline=
d},enable:function(){this._enabled||(b.DomEvent.on(this._dragStartTarget,b.Draggable.START.join(" "),this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(b.Draggable._dragging===this&&this.finishDrag(),b.DomEvent.off(this._dragStartTarget,b.Draggable.START.join(" "),this._onDown,this),this._moved=this._enabled=!1)},_onDown:function(a){if(!a._simulated&&this._enabled&&(this._moved=!1,!(b.DomUtil.hasClass(this._element,"leaflet-zoom-anim")||b.Draggable._dragging||a.shiftKey||1!==
a.which&&1!==a.button&&!a.touches||(b.Draggable._dragging=this,this._preventOutline&&b.DomUtil.preventOutline(this._element),b.DomUtil.disableImageDrag(),b.DomUtil.disableTextSelection(),this._moving)))){this.fire("down");var c=a.touches?a.touches[0]:a;this._startPoint=new b.Point(c.clientX,c.clientY);b.DomEvent.on(m,b.Draggable.MOVE[a.type],this._onMove,this).on(m,b.Draggable.END[a.type],this._onUp,this)}},_onMove:function(a){if(!a._simulated&&this._enabled)if(a.touches&&1<a.touches.length)this._moved=
!0;else{var c=a.touches&&1===a.touches.length?a.touches[0]:a,c=(new b.Point(c.clientX,c.clientY)).subtract(this._startPoint);!c.x&&!c.y||Math.abs(c.x)+Math.abs(c.y)<this.options.clickTolerance||(b.DomEvent.preventDefault(a),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=b.DomUtil.getPosition(this._element).subtract(c),b.DomUtil.addClass(m.body,"leaflet-dragging"),this._lastTarget=a.target||a.srcElement,h.SVGElementInstance&&this._lastTarget instanceof SVGElementInstance&&(this._lastTarget=
this._lastTarget.correspondingUseElement),b.DomUtil.addClass(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(c),this._moving=!0,b.Util.cancelAnimFrame(this._animRequest),this._lastEvent=a,this._animRequest=b.Util.requestAnimFrame(this._updatePosition,this,!0))}},_updatePosition:function(){var a={originalEvent:this._lastEvent};this.fire("predrag",a);b.DomUtil.setPosition(this._element,this._newPos);this.fire("drag",a)},_onUp:function(a){!a._simulated&&this._enabled&&this.finishDrag()},
finishDrag:function(){b.DomUtil.removeClass(m.body,"leaflet-dragging");this._lastTarget&&(b.DomUtil.removeClass(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null);for(var a in b.Draggable.MOVE)b.DomEvent.off(m,b.Draggable.MOVE[a],this._onMove,this).off(m,b.Draggable.END[a],this._onUp,this);b.DomUtil.enableImageDrag();b.DomUtil.enableTextSelection();this._moved&&this._moving&&(b.Util.cancelAnimFrame(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)}));
this._moving=!1;b.Draggable._dragging=!1}});b.Handler=b.Class.extend({initialize:function(a){this._map=a},enable:function(){if(this._enabled)return this;this._enabled=!0;this.addHooks();return this},disable:function(){if(!this._enabled)return this;this._enabled=!1;this.removeHooks();return this},enabled:function(){return!!this._enabled}});b.Map.mergeOptions({dragging:!0,inertia:!b.Browser.android23,inertiaDeceleration:3400,inertiaMaxSpeed:Infinity,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});
b.Map.Drag=b.Handler.extend({addHooks:function(){if(!this._draggable){var a=this._map;this._draggable=new b.Draggable(a._mapPane,a._container);this._draggable.on({down:this._onDown,dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this);this._draggable.on("predrag",this._onPreDragLimit,this);a.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),a.on("zoomend",this._onZoomEnd,this),a.whenReady(this._onZoomEnd,this))}b.DomUtil.addClass(this._map._container,
"leaflet-grab leaflet-touch-drag");this._draggable.enable();this._positions=[];this._times=[]},removeHooks:function(){b.DomUtil.removeClass(this._map._container,"leaflet-grab");b.DomUtil.removeClass(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},_onDown:function(){this._map._stop()},_onDragStart:function(){var a=this._map;if(this._map.options.maxBounds&&
this._map.options.maxBoundsViscosity){var c=b.latLngBounds(this._map.options.maxBounds);this._offsetLimit=b.bounds(this._map.latLngToContainerPoint(c.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(c.getSouthEast()).multiplyBy(-1).add(this._map.getSize()));this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;a.fire("movestart").fire("dragstart");a.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(a){if(this._map.options.inertia){var b=
this._lastTime=+new Date,d=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(d);this._times.push(b);50<b-this._times[0]&&(this._positions.shift(),this._times.shift())}this._map.fire("move",a).fire("drag",a)},_onZoomEnd:function(){var a=this._map.getSize().divideBy(2);this._initialWorldOffset=this._map.latLngToLayerPoint([0,0]).subtract(a).x;this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(a,b){return a-(a-b)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&
this._offsetLimit){var a=this._draggable._newPos.subtract(this._draggable._startPos),b=this._offsetLimit;a.x<b.min.x&&(a.x=this._viscousLimit(a.x,b.min.x));a.y<b.min.y&&(a.y=this._viscousLimit(a.y,b.min.y));a.x>b.max.x&&(a.x=this._viscousLimit(a.x,b.max.x));a.y>b.max.y&&(a.y=this._viscousLimit(a.y,b.max.y));this._draggable._newPos=this._draggable._startPos.add(a)}},_onPreDragWrap:function(){var a=this._worldWidth,b=Math.round(a/2),d=this._initialWorldOffset,e=this._draggable._newPos.x,f=(e-b+d)%a+
b-d,a=(e+b+d)%a-b-d,d=Math.abs(f+d)<Math.abs(a+d)?f:a;this._draggable._absPos=this._draggable._newPos.clone();this._draggable._newPos.x=d},_onDragEnd:function(a){var c=this._map,d=c.options,e=!d.inertia||2>this._times.length;c.fire("dragend",a);if(e)c.fire("moveend");else{a=this._lastPos.subtract(this._positions[0]);var f=d.easeLinearity,e=a.multiplyBy(f/((this._lastTime-this._times[0])/1E3)),h=e.distanceTo([0,0]);a=Math.min(d.inertiaMaxSpeed,h);var e=e.multiplyBy(a/h),k=a/(d.inertiaDeceleration*
f),l=e.multiplyBy(-k/2).round();l.x||l.y?(l=c._limitOffset(l,c.options.maxBounds),b.Util.requestAnimFrame(function(){c.panBy(l,{duration:k,easeLinearity:f,noMoveStart:!0,animate:!0})})):c.fire("moveend")}}});b.Map.addInitHook("addHandler","dragging",b.Map.Drag);b.Map.mergeOptions({doubleClickZoom:!0});b.Map.DoubleClickZoom=b.Handler.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(a){var b=
this._map,d=b.getZoom(),e=b.options.zoomDelta,d=a.originalEvent.shiftKey?d-e:d+e;"center"===b.options.doubleClickZoom?b.setZoom(d):b.setZoomAround(a.containerPoint,d)}});b.Map.addInitHook("addHandler","doubleClickZoom",b.Map.DoubleClickZoom);b.Map.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});b.Map.ScrollWheelZoom=b.Handler.extend({addHooks:function(){b.DomEvent.on(this._map._container,"mousewheel",this._onWheelScroll,this);this._delta=0},removeHooks:function(){b.DomEvent.off(this._map._container,
"mousewheel",this._onWheelScroll,this)},_onWheelScroll:function(a){var c=b.DomEvent.getWheelDelta(a),d=this._map.options.wheelDebounceTime;this._delta+=c;this._lastMousePos=this._map.mouseEventToContainerPoint(a);this._startTime||(this._startTime=+new Date);c=Math.max(d-(+new Date-this._startTime),0);clearTimeout(this._timer);this._timer=setTimeout(b.bind(this._performZoom,this),c);b.DomEvent.stop(a)},_performZoom:function(){var a=this._map,b=a.getZoom(),d=this._map.options.zoomSnap||0;a._stop();
var e=4*Math.log(2/(1+Math.exp(-Math.abs(this._delta/(4*this._map.options.wheelPxPerZoomLevel)))))/Math.LN2,d=d?Math.ceil(e/d)*d:e,d=a._limitZoom(b+(0<this._delta?d:-d))-b;this._delta=0;this._startTime=null;d&&("center"===a.options.scrollWheelZoom?a.setZoom(b+d):a.setZoomAround(this._lastMousePos,b+d))}});b.Map.addInitHook("addHandler","scrollWheelZoom",b.Map.ScrollWheelZoom);b.extend(b.DomEvent,{_touchstart:b.Browser.msPointer?"MSPointerDown":b.Browser.pointer?"pointerdown":"touchstart",_touchend:b.Browser.msPointer?
"MSPointerUp":b.Browser.pointer?"pointerup":"touchend",addDoubleTapListener:function(a,c,d){function e(a){var c;if(b.Browser.pointer){if(!b.Browser.edge||"mouse"===a.pointerType)return;c=b.DomEvent._pointersCount}else c=a.touches.length;if(!(1<c)){c=Date.now();var d=c-(h||c);k=a.touches?a.touches[0]:a;l=0<d&&250>=d;h=c}}function f(a){if(l&&!k.cancelBubble){if(b.Browser.pointer){if(!b.Browser.edge||"mouse"===a.pointerType)return;a={};var d,e;for(e in k)d=k[e],a[e]=d&&d.bind?d.bind(k):d;k=a}k.type=
"dblclick";c(k);h=null}}var h,k,l=!1,m=this._touchstart,n=this._touchend;a["_leaflet_"+m+d]=e;a["_leaflet_"+n+d]=f;a["_leaflet_dblclick"+d]=c;a.addEventListener(m,e,!1);a.addEventListener(n,f,!1);a.addEventListener("dblclick",c,!1);return this},removeDoubleTapListener:function(a,c){var d=a["_leaflet_"+this._touchend+c],e=a["_leaflet_dblclick"+c];a.removeEventListener(this._touchstart,a["_leaflet_"+this._touchstart+c],!1);a.removeEventListener(this._touchend,d,!1);b.Browser.edge||a.removeEventListener("dblclick",
e,!1);return this}});b.extend(b.DomEvent,{POINTER_DOWN:b.Browser.msPointer?"MSPointerDown":"pointerdown",POINTER_MOVE:b.Browser.msPointer?"MSPointerMove":"pointermove",POINTER_UP:b.Browser.msPointer?"MSPointerUp":"pointerup",POINTER_CANCEL:b.Browser.msPointer?"MSPointerCancel":"pointercancel",TAG_WHITE_LIST:["INPUT","SELECT","OPTION"],_pointers:{},_pointersCount:0,addPointerListener:function(a,b,d,e){"touchstart"===b?this._addPointerStart(a,d,e):"touchmove"===b?this._addPointerMove(a,d,e):"touchend"===
b&&this._addPointerEnd(a,d,e);return this},removePointerListener:function(a,b,d){d=a["_leaflet_"+b+d];"touchstart"===b?a.removeEventListener(this.POINTER_DOWN,d,!1):"touchmove"===b?a.removeEventListener(this.POINTER_MOVE,d,!1):"touchend"===b&&(a.removeEventListener(this.POINTER_UP,d,!1),a.removeEventListener(this.POINTER_CANCEL,d,!1));return this},_addPointerStart:function(a,c,d){var e=b.bind(function(a){if("mouse"!==a.pointerType&&a.MSPOINTER_TYPE_MOUSE&&a.pointerType!==a.MSPOINTER_TYPE_MOUSE)if(0>
this.TAG_WHITE_LIST.indexOf(a.target.tagName))b.DomEvent.preventDefault(a);else return;this._handlePointer(a,c)},this);a["_leaflet_touchstart"+d]=e;a.addEventListener(this.POINTER_DOWN,e,!1);this._pointerDocListener||(a=b.bind(this._globalPointerUp,this),m.documentElement.addEventListener(this.POINTER_DOWN,b.bind(this._globalPointerDown,this),!0),m.documentElement.addEventListener(this.POINTER_MOVE,b.bind(this._globalPointerMove,this),!0),m.documentElement.addEventListener(this.POINTER_UP,a,!0),m.documentElement.addEventListener(this.POINTER_CANCEL,
a,!0),this._pointerDocListener=!0)},_globalPointerDown:function(a){this._pointers[a.pointerId]=a;this._pointersCount++},_globalPointerMove:function(a){this._pointers[a.pointerId]&&(this._pointers[a.pointerId]=a)},_globalPointerUp:function(a){delete this._pointers[a.pointerId];this._pointersCount--},_handlePointer:function(a,b){a.touches=[];for(var d in this._pointers)a.touches.push(this._pointers[d]);a.changedTouches=[a];b(a)},_addPointerMove:function(a,c,d){var e=b.bind(function(a){(a.pointerType!==
a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType||0!==a.buttons)&&this._handlePointer(a,c)},this);a["_leaflet_touchmove"+d]=e;a.addEventListener(this.POINTER_MOVE,e,!1)},_addPointerEnd:function(a,c,d){var e=b.bind(function(a){this._handlePointer(a,c)},this);a["_leaflet_touchend"+d]=e;a.addEventListener(this.POINTER_UP,e,!1);a.addEventListener(this.POINTER_CANCEL,e,!1)}});b.Map.mergeOptions({touchZoom:b.Browser.touch&&!b.Browser.android23,bounceAtZoomLimits:!0});b.Map.TouchZoom=b.Handler.extend({addHooks:function(){b.DomUtil.addClass(this._map._container,
"leaflet-touch-zoom");b.DomEvent.on(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){b.DomUtil.removeClass(this._map._container,"leaflet-touch-zoom");b.DomEvent.off(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(a){var c=this._map;if(a.touches&&2===a.touches.length&&!c._animatingZoom&&!this._zooming){var d=c.mouseEventToContainerPoint(a.touches[0]),e=c.mouseEventToContainerPoint(a.touches[1]);this._centerPoint=c.getSize()._divideBy(2);
this._startLatLng=c.containerPointToLatLng(this._centerPoint);"center"!==c.options.touchZoom&&(this._pinchStartLatLng=c.containerPointToLatLng(d.add(e)._divideBy(2)));this._startDist=d.distanceTo(e);this._startZoom=c.getZoom();this._moved=!1;this._zooming=!0;c._stop();b.DomEvent.on(m,"touchmove",this._onTouchMove,this).on(m,"touchend",this._onTouchEnd,this);b.DomEvent.preventDefault(a)}},_onTouchMove:function(a){if(a.touches&&2===a.touches.length&&this._zooming){var c=this._map,d=c.mouseEventToContainerPoint(a.touches[0]),
e=c.mouseEventToContainerPoint(a.touches[1]),f=d.distanceTo(e)/this._startDist;this._zoom=c.getScaleZoom(f,this._startZoom);!c.options.bounceAtZoomLimits&&(this._zoom<c.getMinZoom()&&1>f||this._zoom>c.getMaxZoom()&&1<f)&&(this._zoom=c._limitZoom(this._zoom));if("center"===c.options.touchZoom){if(this._center=this._startLatLng,1===f)return}else{d=d._add(e)._divideBy(2)._subtract(this._centerPoint);if(1===f&&0===d.x&&0===d.y)return;this._center=c.unproject(c.project(this._pinchStartLatLng,this._zoom).subtract(d),
this._zoom)}this._moved||(c._moveStart(!0),this._moved=!0);b.Util.cancelAnimFrame(this._animRequest);c=b.bind(c._move,c,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=b.Util.requestAnimFrame(c,this,!0);b.DomEvent.preventDefault(a)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,b.Util.cancelAnimFrame(this._animRequest),b.DomEvent.off(m,"touchmove",this._onTouchMove).off(m,"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}});b.Map.addInitHook("addHandler","touchZoom",b.Map.TouchZoom);b.Map.mergeOptions({tap:!0,tapTolerance:15});b.Map.Tap=b.Handler.extend({addHooks:function(){b.DomEvent.on(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){b.DomEvent.off(this._map._container,"touchstart",this._onDown,this)},_onDown:function(a){if(a.touches)if(b.DomEvent.preventDefault(a),
this._fireClick=!0,1<a.touches.length)this._fireClick=!1,clearTimeout(this._holdTimeout);else{var c=a.touches[0];a=c.target;this._startPos=this._newPos=new b.Point(c.clientX,c.clientY);a.tagName&&"a"===a.tagName.toLowerCase()&&b.DomUtil.addClass(a,"leaflet-active");this._holdTimeout=setTimeout(b.bind(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",c))},this),1E3);this._simulateEvent("mousedown",c);b.DomEvent.on(m,{touchmove:this._onMove,touchend:this._onUp},
this)}},_onUp:function(a){clearTimeout(this._holdTimeout);b.DomEvent.off(m,{touchmove:this._onMove,touchend:this._onUp},this);if(this._fireClick&&a&&a.changedTouches){a=a.changedTouches[0];var c=a.target;c&&c.tagName&&"a"===c.tagName.toLowerCase()&&b.DomUtil.removeClass(c,"leaflet-active");this._simulateEvent("mouseup",a);this._isTapValid()&&this._simulateEvent("click",a)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(a){a=
a.touches[0];this._newPos=new b.Point(a.clientX,a.clientY);this._simulateEvent("mousemove",a)},_simulateEvent:function(a,b){var d=m.createEvent("MouseEvents");d._simulated=!0;b.target._simulatedClick=!0;d.initMouseEvent(a,!0,!0,h,1,b.screenX,b.screenY,b.clientX,b.clientY,!1,!1,!1,!1,0,null);b.target.dispatchEvent(d)}});b.Browser.touch&&!b.Browser.pointer&&b.Map.addInitHook("addHandler","tap",b.Map.Tap);b.Map.mergeOptions({boxZoom:!0});b.Map.BoxZoom=b.Handler.extend({initialize:function(a){this._map=
a;this._container=a._container;this._pane=a._panes.overlayPane},addHooks:function(){b.DomEvent.on(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){b.DomEvent.off(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_resetState:function(){this._moved=!1},_onMouseDown:function(a){if(!a.shiftKey||1!==a.which&&1!==a.button)return!1;this._resetState();b.DomUtil.disableTextSelection();b.DomUtil.disableImageDrag();this._startPoint=this._map.mouseEventToContainerPoint(a);
b.DomEvent.on(m,{contextmenu:b.DomEvent.stop,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(a){this._moved||(this._moved=!0,this._box=b.DomUtil.create("div","leaflet-zoom-box",this._container),b.DomUtil.addClass(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart"));this._point=this._map.mouseEventToContainerPoint(a);a=new b.Bounds(this._point,this._startPoint);var c=a.getSize();b.DomUtil.setPosition(this._box,a.min);this._box.style.width=
c.x+"px";this._box.style.height=c.y+"px"},_finish:function(){this._moved&&(b.DomUtil.remove(this._box),b.DomUtil.removeClass(this._container,"leaflet-crosshair"));b.DomUtil.enableTextSelection();b.DomUtil.enableImageDrag();b.DomEvent.off(m,{contextmenu:b.DomEvent.stop,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(a){if(1===a.which||1===a.button)this._finish(),this._moved&&(setTimeout(b.bind(this._resetState,this),0),a=new b.LatLngBounds(this._map.containerPointToLatLng(this._startPoint),
this._map.containerPointToLatLng(this._point)),this._map.fitBounds(a).fire("boxzoomend",{boxZoomBounds:a}))},_onKeyDown:function(a){27===a.keyCode&&this._finish()}});b.Map.addInitHook("addHandler","boxZoom",b.Map.BoxZoom);b.Map.mergeOptions({keyboard:!0,keyboardPanDelta:80});b.Map.Keyboard=b.Handler.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(a){this._map=a;this._setPanDelta(a.options.keyboardPanDelta);this._setZoomDelta(a.options.zoomDelta)},
addHooks:function(){var a=this._map._container;0>=a.tabIndex&&(a.tabIndex="0");b.DomEvent.on(a,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this);this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks();b.DomEvent.off(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 a=
m.body,b=m.documentElement,d=a.scrollTop||b.scrollTop,a=a.scrollLeft||b.scrollLeft;this._map._container.focus();h.scrollTo(a,d)}},_onFocus:function(){this._focused=!0;this._map.fire("focus")},_onBlur:function(){this._focused=!1;this._map.fire("blur")},_setPanDelta:function(a){var b=this._panKeys={},d=this.keyCodes,e,f;e=0;for(f=d.left.length;e<f;e++)b[d.left[e]]=[-1*a,0];e=0;for(f=d.right.length;e<f;e++)b[d.right[e]]=[a,0];e=0;for(f=d.down.length;e<f;e++)b[d.down[e]]=[0,a];e=0;for(f=d.up.length;e<
f;e++)b[d.up[e]]=[0,-1*a]},_setZoomDelta:function(a){var b=this._zoomKeys={},d=this.keyCodes,e,f;e=0;for(f=d.zoomIn.length;e<f;e++)b[d.zoomIn[e]]=a;e=0;for(f=d.zoomOut.length;e<f;e++)b[d.zoomOut[e]]=-a},_addHooks:function(){b.DomEvent.on(m,"keydown",this._onKeyDown,this)},_removeHooks:function(){b.DomEvent.off(m,"keydown",this._onKeyDown,this)},_onKeyDown:function(a){if(!(a.altKey||a.ctrlKey||a.metaKey)){var c=a.keyCode,d=this._map;if(c in this._panKeys){if(d._panAnim&&d._panAnim._inProgress)return;
c=this._panKeys[c];a.shiftKey&&(c=b.point(c).multiplyBy(3));d.panBy(c);d.options.maxBounds&&d.panInsideBounds(d.options.maxBounds)}else if(c in this._zoomKeys)d.setZoom(d.getZoom()+(a.shiftKey?3:1)*this._zoomKeys[c]);else if(27===c)d.closePopup();else return;b.DomEvent.stop(a)}}});b.Map.addInitHook("addHandler","keyboard",b.Map.Keyboard);b.Handler.MarkerDrag=b.Handler.extend({initialize:function(a){this._marker=a},addHooks:function(){var a=this._marker._icon;this._draggable||(this._draggable=new b.Draggable(a,
a,!0));this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this).enable();b.DomUtil.addClass(a,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this).disable();this._marker._icon&&b.DomUtil.removeClass(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng();
this._marker.closePopup().fire("movestart").fire("dragstart")},_onDrag:function(a){var c=this._marker,d=c._shadow,e=b.DomUtil.getPosition(c._icon),f=c._map.layerPointToLatLng(e);d&&b.DomUtil.setPosition(d,e);c._latlng=f;a.latlng=f;a.oldLatLng=this._oldLatLng;c.fire("move",a).fire("drag",a)},_onDragEnd:function(a){delete this._oldLatLng;this._marker.fire("moveend").fire("dragend",a)}});b.Control=b.Class.extend({options:{position:"topright"},initialize:function(a){b.setOptions(this,a)},getPosition:function(){return this.options.position},
setPosition:function(a){var b=this._map;b&&b.removeControl(this);this.options.position=a;b&&b.addControl(this);return this},getContainer:function(){return this._container},addTo:function(a){this.remove();this._map=a;var c=this._container=this.onAdd(a),d=this.getPosition();a=a._controlCorners[d];b.DomUtil.addClass(c,"leaflet-control");-1!==d.indexOf("bottom")?a.insertBefore(c,a.firstChild):a.appendChild(c);return this},remove:function(){if(!this._map)return this;b.DomUtil.remove(this._container);if(this.onRemove)this.onRemove(this._map);
this._map=null;return this},_refocusOnMap:function(a){this._map&&a&&0<a.screenX&&0<a.screenY&&this._map.getContainer().focus()}});b.control=function(a){return new b.Control(a)};b.Map.include({addControl:function(a){a.addTo(this);return this},removeControl:function(a){a.remove();return this},_initControlPos:function(){function a(a,f){c[a+f]=b.DomUtil.create("div","leaflet-"+a+" leaflet-"+f,d)}var c=this._controlCorners={},d=this._controlContainer=b.DomUtil.create("div","leaflet-control-container",
this._container);a("top","left");a("top","right");a("bottom","left");a("bottom","right")},_clearControlPos:function(){b.DomUtil.remove(this._controlContainer)}});b.Control.Zoom=b.Control.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"-",zoomOutTitle:"Zoom out"},onAdd:function(a){var c=b.DomUtil.create("div","leaflet-control-zoom leaflet-bar"),d=this.options;this._zoomInButton=this._createButton(d.zoomInText,d.zoomInTitle,"leaflet-control-zoom-in",c,this._zoomIn);
this._zoomOutButton=this._createButton(d.zoomOutText,d.zoomOutTitle,"leaflet-control-zoom-out",c,this._zoomOut);this._updateDisabled();a.on("zoomend zoomlevelschange",this._updateDisabled,this);return c},onRemove:function(a){a.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){this._disabled=!0;this._updateDisabled();return this},enable:function(){this._disabled=!1;this._updateDisabled();return this},_zoomIn:function(a){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&
this._map.zoomIn(this._map.options.zoomDelta*(a.shiftKey?3:1))},_zoomOut:function(a){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(a.shiftKey?3:1))},_createButton:function(a,c,d,e,f){d=b.DomUtil.create("a",d,e);d.innerHTML=a;d.href="#";d.title=c;d.setAttribute("role","button");d.setAttribute("aria-label",c);b.DomEvent.on(d,"mousedown dblclick",b.DomEvent.stopPropagation).on(d,"click",b.DomEvent.stop).on(d,"click",f,this).on(d,"click",this._refocusOnMap,
this);return d},_updateDisabled:function(){var a=this._map;b.DomUtil.removeClass(this._zoomInButton,"leaflet-disabled");b.DomUtil.removeClass(this._zoomOutButton,"leaflet-disabled");(this._disabled||a._zoom===a.getMinZoom())&&b.DomUtil.addClass(this._zoomOutButton,"leaflet-disabled");(this._disabled||a._zoom===a.getMaxZoom())&&b.DomUtil.addClass(this._zoomInButton,"leaflet-disabled")}});b.Map.mergeOptions({zoomControl:!0});b.Map.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new b.Control.Zoom,
this.addControl(this.zoomControl))});b.control.zoom=function(a){return new b.Control.Zoom(a)};b.Control.Attribution=b.Control.extend({options:{position:"bottomright",prefix:'<a href="http://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(a){b.setOptions(this,a);this._attributions={}},onAdd:function(a){a.attributionControl=this;this._container=b.DomUtil.create("div","leaflet-control-attribution");b.DomEvent&&b.DomEvent.disableClickPropagation(this._container);
for(var c in a._layers)a._layers[c].getAttribution&&this.addAttribution(a._layers[c].getAttribution());this._update();return this._container},setPrefix:function(a){this.options.prefix=a;this._update();return this},addAttribution:function(a){if(!a)return this;this._attributions[a]||(this._attributions[a]=0);this._attributions[a]++;this._update();return this},removeAttribution:function(a){if(!a)return this;this._attributions[a]&&(this._attributions[a]--,this._update());return this},_update:function(){if(this._map){var a=
[],b;for(b in this._attributions)this._attributions[b]&&a.push(b);b=[];this.options.prefix&&b.push(this.options.prefix);a.length&&b.push(a.join(", "));this._container.innerHTML=b.join(" | ")}}});b.Map.mergeOptions({attributionControl:!0});b.Map.addInitHook(function(){this.options.attributionControl&&(new b.Control.Attribution).addTo(this)});b.control.attribution=function(a){return new b.Control.Attribution(a)};b.Control.Scale=b.Control.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,
imperial:!0},onAdd:function(a){var c=b.DomUtil.create("div","leaflet-control-scale"),d=this.options;this._addScales(d,"leaflet-control-scale-line",c);a.on(d.updateWhenIdle?"moveend":"move",this._update,this);a.whenReady(this._update,this);return c},onRemove:function(a){a.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(a,c,d){a.metric&&(this._mScale=b.DomUtil.create("div",c,d));a.imperial&&(this._iScale=b.DomUtil.create("div",c,d))},_update:function(){var a=
this._map,b=a.getSize().y/2,a=a.distance(a.containerPointToLatLng([0,b]),a.containerPointToLatLng([this.options.maxWidth,b]));this._updateScales(a)},_updateScales:function(a){this.options.metric&&a&&this._updateMetric(a);this.options.imperial&&a&&this._updateImperial(a)},_updateMetric:function(a){var b=this._getRoundNum(a);this._updateScale(this._mScale,1E3>b?b+" m":b/1E3+" km",b/a)},_updateImperial:function(a){a*=3.2808399;var b;5280<a?(a/=5280,b=this._getRoundNum(a),this._updateScale(this._iScale,
b+" mi",b/a)):(b=this._getRoundNum(a),this._updateScale(this._iScale,b+" ft",b/a))},_updateScale:function(a,b,d){a.style.width=Math.round(this.options.maxWidth*d)+"px";a.innerHTML=b},_getRoundNum:function(a){var b=Math.pow(10,(Math.floor(a)+"").length-1);a/=b;return b*(10<=a?10:5<=a?5:3<=a?3:2<=a?2:1)}});b.control.scale=function(a){return new b.Control.Scale(a)};b.Control.Layers=b.Control.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(a,
b,d,e){return d<e?-1:e<d?1:0}},initialize:function(a,c,d){b.setOptions(this,d);this._layers=[];this._lastZIndex=0;this._handlingClick=!1;for(var e in a)this._addLayer(a[e],e);for(e in c)this._addLayer(c[e],e,!0)},onAdd:function(a){this._initLayout();this._update();this._map=a;a.on("zoomend",this._checkDisabledLayers,this);return this._container},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var a=0;a<this._layers.length;a++)this._layers[a].layer.off("add remove",
this._onLayerChange,this)},addBaseLayer:function(a,b){this._addLayer(a,b);return this._map?this._update():this},addOverlay:function(a,b){this._addLayer(a,b,!0);return this._map?this._update():this},removeLayer:function(a){a.off("add remove",this._onLayerChange,this);(a=this._getLayer(b.stamp(a)))&&this._layers.splice(this._layers.indexOf(a),1);return this._map?this._update():this},expand:function(){b.DomUtil.addClass(this._container,"leaflet-control-layers-expanded");this._form.style.height=null;
var a=this._map.getSize().y-(this._container.offsetTop+50);a<this._form.clientHeight?(b.DomUtil.addClass(this._form,"leaflet-control-layers-scrollbar"),this._form.style.height=a+"px"):b.DomUtil.removeClass(this._form,"leaflet-control-layers-scrollbar");this._checkDisabledLayers();return this},collapse:function(){b.DomUtil.removeClass(this._container,"leaflet-control-layers-expanded");return this},_initLayout:function(){var a=this._container=b.DomUtil.create("div","leaflet-control-layers"),c=this.options.collapsed;
a.setAttribute("aria-haspopup",!0);b.DomEvent.disableClickPropagation(a);b.Browser.touch||b.DomEvent.disableScrollPropagation(a);var d=this._form=b.DomUtil.create("form","leaflet-control-layers-list");if(c&&(this._map.on("click",this.collapse,this),!b.Browser.android))b.DomEvent.on(a,{mouseenter:this.expand,mouseleave:this.collapse},this);var e=this._layersLink=b.DomUtil.create("a","leaflet-control-layers-toggle",a);e.href="#";e.title="Layers";if(b.Browser.touch)b.DomEvent.on(e,"click",b.DomEvent.stop).on(e,
"click",this.expand,this);else b.DomEvent.on(e,"focus",this.expand,this);b.DomEvent.on(d,"click",function(){setTimeout(b.bind(this._onInputClick,this),0)},this);c||this.expand();this._baseLayersList=b.DomUtil.create("div","leaflet-control-layers-base",d);this._separator=b.DomUtil.create("div","leaflet-control-layers-separator",d);this._overlaysList=b.DomUtil.create("div","leaflet-control-layers-overlays",d);a.appendChild(d)},_getLayer:function(a){for(var c=0;c<this._layers.length;c++)if(this._layers[c]&&
b.stamp(this._layers[c].layer)===a)return this._layers[c]},_addLayer:function(a,c,d){a.on("add remove",this._onLayerChange,this);this._layers.push({layer:a,name:c,overlay:d});this.options.sortLayers&&this._layers.sort(b.bind(function(a,b){return this.options.sortFunction(a.layer,b.layer,a.name,b.name)},this));this.options.autoZIndex&&a.setZIndex&&(this._lastZIndex++,a.setZIndex(this._lastZIndex))},_update:function(){if(!this._container)return this;b.DomUtil.empty(this._baseLayersList);b.DomUtil.empty(this._overlaysList);
var a,c,d,e,f=0;for(d=0;d<this._layers.length;d++)e=this._layers[d],this._addItem(e),c=c||e.overlay,a=a||!e.overlay,f+=e.overlay?0:1;this.options.hideSingleBase&&(a=a&&1<f,this._baseLayersList.style.display=a?"":"none");this._separator.style.display=c&&a?"":"none";return this},_onLayerChange:function(a){this._handlingClick||this._update();var c=this._getLayer(b.stamp(a.target));(a=c.overlay?"add"===a.type?"overlayadd":"overlayremove":"add"===a.type?"baselayerchange":null)&&this._map.fire(a,c)},_createRadioElement:function(a,
b){var d='<input type="radio" class="leaflet-control-layers-selector" name="'+a+'"'+(b?' checked="checked"':"")+"/>",e=m.createElement("div");e.innerHTML=d;return e.firstChild},_addItem:function(a){var c=m.createElement("label"),d=this._map.hasLayer(a.layer),e;a.overlay?(e=m.createElement("input"),e.type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=d):e=this._createRadioElement("leaflet-base-layers",d);e.layerId=b.stamp(a.layer);b.DomEvent.on(e,"click",this._onInputClick,
this);d=m.createElement("span");d.innerHTML=" "+a.name;var f=m.createElement("div");c.appendChild(f);f.appendChild(e);f.appendChild(d);(a.overlay?this._overlaysList:this._baseLayersList).appendChild(c);this._checkDisabledLayers();return c},_onInputClick:function(){var a=this._form.getElementsByTagName("input"),b,d,e,f=[],h=[];this._handlingClick=!0;for(var k=a.length-1;0<=k;k--)b=a[k],d=this._getLayer(b.layerId).layer,e=this._map.hasLayer(d),b.checked&&!e?f.push(d):!b.checked&&e&&h.push(d);for(k=
0;k<h.length;k++)this._map.removeLayer(h[k]);for(k=0;k<f.length;k++)this._map.addLayer(f[k]);this._handlingClick=!1;this._refocusOnMap()},_checkDisabledLayers:function(){for(var a=this._form.getElementsByTagName("input"),b,d,e=this._map.getZoom(),f=a.length-1;0<=f;f--)b=a[f],d=this._getLayer(b.layerId).layer,b.disabled=d.options.minZoom!==l&&e<d.options.minZoom||d.options.maxZoom!==l&&e>d.options.maxZoom},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}});b.control.layers=
function(a,c,d){return new b.Control.Layers(a,c,d)}})(window,document);L.Icon.Default=L.Icon.Default.extend({_getIconUrl:function(h){return{"icon-2x.png":"/assets/marker-icon-2x-2d77a2e4c2f08bbac41808324ef946b9a2fe61b6150480d011b72b379c3b238d.png","shadow.png":"/assets/marker-shadow-264f5c640339f042dd729062cfc04c17f8ea0f29882b538e3848ed8f10edb4da.png","icon.png":"/assets/marker-icon-574c3a5cca85f4114085b6841596d62f00d7c892c7b03f28cbfa301deb1dc437.png"}[h+".png"]},_detectIconPath:function(){}});
L.Marker=L.Marker.extend({options:{icon:new L.Icon.Default}});(function(){0<$("#map").length&&(window.setupMap=function(h,m,l){window.Map=L.map("map").setView([h,m],l);return L.tileLayer("https://osm.karaniwan.org/{z}/{x}/{y}.png",{maxZoom:18,minZoom:2,attribution:'Map &copy; <a href="http://openstreetmap.org">OpenStreetMap contributors</a>'}).addTo(window.Map)})}).call(this);
