1/* 2 Leaflet, a JavaScript library for mobile-friendly interactive maps. http://leafletjs.com 3 (c) 2010-2013, Vladimir Agafonkin 4 (c) 2010-2011, CloudMade 5 */"use strict";!(function(t,e,i){var n=t.L,o={};o.version = "0.7.5","object" == typeof module && "object" == typeof module.exports?module.exports = o:"function" == typeof define && define.amd && define(o),o.noConflict = function(){return t.L = n,this;},t.L = o,o.Util = {extend:function extend(t){var e,i,n,o,s=Array.prototype.slice.call(arguments,1);for(i = 0,n = s.length;n > i;i++) {o = s[i] || {};for(e in o) o.hasOwnProperty(e) && (t[e] = o[e]);}return t;},bind:function bind(t,e){var i=arguments.length > 2?Array.prototype.slice.call(arguments,2):null;return function(){return t.apply(e,i || arguments);};},stamp:(function(){var t=0,e="_leaflet_id";return function(i){return i[e] = i[e] || ++t,i[e];};})(),invokeEach:function invokeEach(t,e,i){var n,o;if("object" == typeof t){o = Array.prototype.slice.call(arguments,3);for(n in t) e.apply(i,[n,t[n]].concat(o));return !0;}return !1;},limitExecByInterval:function limitExecByInterval(t,e,i){var n,o;return function s(){var a=arguments;return n?void (o = !0):(n = !0,setTimeout(function(){n = !1,o && (s.apply(i,a),o = !1);},e),void t.apply(i,a));};},falseFn:function falseFn(){return !1;},formatNum:function formatNum(t,e){var i=Math.pow(10,e || 5);return Math.round(t * i) / i;},trim:function trim(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"");},splitWords:function splitWords(t){return o.Util.trim(t).split(/\s+/);},setOptions:function setOptions(t,e){return t.options = o.extend({},t.options,e),t.options;},getParamString:function getParamString(t,e,i){var n=[];for(var o in t) n.push(encodeURIComponent(i?o.toUpperCase():o) + "=" + encodeURIComponent(t[o]));return (e && -1 !== e.indexOf("?")?"&":"?") + n.join("&");},template:function template(t,e){return t.replace(/\{ *([\w_]+) *\}/g,function(t,n){var o=e[n];if(o === i)throw new Error("No value provided for variable " + t);return "function" == typeof o && (o = o(e)),o;});},isArray:Array.isArray || function(t){return "[object Array]" === Object.prototype.toString.call(t);},emptyImageUrl:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="},(function(){function e(e){var i,n,o=["webkit","moz","o","ms"];for(i = 0;i < o.length && !n;i++) n = t[o[i] + e];return n;}function i(e){var i=+new Date(),o=Math.max(0,16 - (i - n));return n = i + o,t.setTimeout(e,o);}var n=0,s=t.requestAnimationFrame || e("RequestAnimationFrame") || i,a=t.cancelAnimationFrame || e("CancelAnimationFrame") || e("CancelRequestAnimationFrame") || function(e){t.clearTimeout(e);};o.Util.requestAnimFrame = function(e,n,a,r){return e = o.bind(e,n),a && s === i?void e():s.call(t,e,r);},o.Util.cancelAnimFrame = function(e){e && a.call(t,e);};})(),o.extend = o.Util.extend,o.bind = o.Util.bind,o.stamp = o.Util.stamp,o.setOptions = o.Util.setOptions,o.Class = function(){},o.Class.extend = function(t){var e=function e(){this.initialize && this.initialize.apply(this,arguments),this._initHooks && this.callInitHooks();},i=function i(){};i.prototype = this.prototype;var n=new i();n.constructor = e,e.prototype = n;for(var s in this) this.hasOwnProperty(s) && "prototype" !== s && (e[s] = this[s]);t.statics && (o.extend(e,t.statics),delete t.statics),t.includes && (o.Util.extend.apply(null,[n].concat(t.includes)),delete t.includes),t.options && n.options && (t.options = o.extend({},n.options,t.options)),o.extend(n,t),n._initHooks = [];var a=this;return e.__super__ = a.prototype,n.callInitHooks = function(){if(!this._initHooksCalled){a.prototype.callInitHooks && a.prototype.callInitHooks.call(this),this._initHooksCalled = !0;for(var t=0,e=n._initHooks.length;e > t;t++) n._initHooks[t].call(this);}},e;},o.Class.include = function(t){o.extend(this.prototype,t);},o.Class.mergeOptions = function(t){o.extend(this.prototype.options,t);},o.Class.addInitHook = function(t){var e=Array.prototype.slice.call(arguments,1),i="function" == typeof t?t:function(){this[t].apply(this,e);};this.prototype._initHooks = this.prototype._initHooks || [],this.prototype._initHooks.push(i);};var s="_leaflet_events";o.Mixin = {},o.Mixin.Events = {addEventListener:function addEventListener(t,e,i){if(o.Util.invokeEach(t,this.addEventListener,this,e,i))return this;var n,a,r,h,l,u,c,d=this[s] = this[s] || {},p=i && i !== this && o.stamp(i);for(t = o.Util.splitWords(t),n = 0,a = t.length;a > n;n++) r = {action:e,context:i || this},h = t[n],p?(l = h + "_idx",u = l + "_len",c = d[l] = d[l] || {},c[p] || (c[p] = [],d[u] = (d[u] || 0) + 1),c[p].push(r)):(d[h] = d[h] || [],d[h].push(r));return this;},hasEventListeners:function hasEventListeners(t){var e=this[s];return !!e && (t in e && e[t].length > 0 || t + "_idx" in e && e[t + "_idx_len"] > 0);},removeEventListener:function removeEventListener(t,e,i){if(!this[s])return this;if(!t)return this.clearAllEventListeners();if(o.Util.invokeEach(t,this.removeEventListener,this,e,i))return this;var n,a,r,h,l,u,c,d,p,_=this[s],m=i && i !== this && o.stamp(i);for(t = o.Util.splitWords(t),n = 0,a = t.length;a > n;
5n++) if((r = t[n],u = r + "_idx",c = u + "_len",d = _[u],e)){if(h = m && d?d[m]:_[r]){for(l = h.length - 1;l >= 0;l--) h[l].action !== e || i && h[l].context !== i || (p = h.splice(l,1),p[0].action = o.Util.falseFn);i && d && 0 === h.length && (delete d[m],_[c]--);}}else delete _[r],delete _[u],delete _[c];return this;},clearAllEventListeners:function clearAllEventListeners(){return delete this[s],this;},fireEvent:function fireEvent(t,e){if(!this.hasEventListeners(t))return this;var i,n,a,r,h,l=o.Util.extend({},e,{type:t,target:this}),u=this[s];if(u[t])for(i = u[t].slice(),n = 0,a = i.length;a > n;n++) i[n].action.call(i[n].context,l);r = u[t + "_idx"];for(h in r) if(i = r[h].slice())for(n = 0,a = i.length;a > n;n++) i[n].action.call(i[n].context,l);return this;},addOneTimeEventListener:function addOneTimeEventListener(t,e,i){if(o.Util.invokeEach(t,this.addOneTimeEventListener,this,e,i))return this;var n=o.bind(function(){this.removeEventListener(t,e,i).removeEventListener(t,n,i);},this);return this.addEventListener(t,e,i).addEventListener(t,n,i);}},o.Mixin.Events.on = o.Mixin.Events.addEventListener,o.Mixin.Events.off = o.Mixin.Events.removeEventListener,o.Mixin.Events.once = o.Mixin.Events.addOneTimeEventListener,o.Mixin.Events.fire = o.Mixin.Events.fireEvent,(function(){var n=("ActiveXObject" in t),s=n && !e.addEventListener,a=navigator.userAgent.toLowerCase(),r=-1 !== a.indexOf("webkit"),h=-1 !== a.indexOf("chrome"),l=-1 !== a.indexOf("phantom"),u=-1 !== a.indexOf("android"),c=-1 !== a.search("android [23]"),d=-1 !== a.indexOf("gecko"),p=typeof orientation != i + "",_=!t.PointerEvent && t.MSPointerEvent,m=t.PointerEvent && t.navigator.pointerEnabled && t.navigator.maxTouchPoints || _,f="devicePixelRatio" in t && t.devicePixelRatio > 1 || "matchMedia" in t && t.matchMedia("(min-resolution:144dpi)") && t.matchMedia("(min-resolution:144dpi)").matches,g=e.documentElement,v=n && "transition" in g.style,y="WebKitCSSMatrix" in t && "m11" in new t.WebKitCSSMatrix() && !c,P=("MozPerspective" in g.style),L=("OTransition" in g.style),x=!t.L_DISABLE_3D && (v || y || P || L) && !l,w=!t.L_NO_TOUCH && !l && (m || "ontouchstart" in t || t.DocumentTouch && e instanceof t.DocumentTouch);o.Browser = {ie:n,ielt9:s,webkit:r,gecko:d && !r && !t.opera && !n,android:u,android23:c,chrome:h,ie3d:v,webkit3d:y,gecko3d:P,opera3d:L,any3d:x,mobile:p,mobileWebkit:p && r,mobileWebkit3d:p && y,mobileOpera:p && t.opera,touch:w,msPointer:_,pointer:m,retina:f};})(),o.Point = function(t,e,i){this.x = i?Math.round(t):t,this.y = i?Math.round(e):e;},o.Point.prototype = {clone:function clone(){return new o.Point(this.x,this.y);},add:function add(t){return this.clone()._add(o.point(t));},_add:function _add(t){return this.x += t.x,this.y += t.y,this;},subtract:function subtract(t){return this.clone()._subtract(o.point(t));},_subtract:function _subtract(t){return this.x -= t.x,this.y -= t.y,this;},divideBy:function divideBy(t){return this.clone()._divideBy(t);},_divideBy:function _divideBy(t){return this.x /= t,this.y /= t,this;},multiplyBy:function multiplyBy(t){return this.clone()._multiplyBy(t);},_multiplyBy:function _multiplyBy(t){return this.x *= t,this.y *= t,this;},round:function round(){return this.clone()._round();},_round:function _round(){return this.x = Math.round(this.x),this.y = Math.round(this.y),this;},floor:function floor(){return this.clone()._floor();},_floor:function _floor(){return this.x = Math.floor(this.x),this.y = Math.floor(this.y),this;},distanceTo:function distanceTo(t){t = o.point(t);var e=t.x - this.x,i=t.y - this.y;return Math.sqrt(e * e + i * i);},equals:function equals(t){return t = o.point(t),t.x === this.x && t.y === this.y;},contains:function contains(t){return t = o.point(t),Math.abs(t.x) <= Math.abs(this.x) && Math.abs(t.y) <= Math.abs(this.y);},toString:function toString(){return "Point(" + o.Util.formatNum(this.x) + ", " + o.Util.formatNum(this.y) + ")";}},o.point = function(t,e,n){return t instanceof o.Point?t:o.Util.isArray(t)?new o.Point(t[0],t[1]):t === i || null === t?t:new o.Point(t,e,n);},o.Bounds = function(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;o > n;n++) this.extend(i[n]);},o.Bounds.prototype = {extend:function extend(t){return t = o.point(t),this.min || this.max?(this.min.x = Math.min(t.x,this.min.x),this.max.x = Math.max(t.x,this.max.x),this.min.y = Math.min(t.y,this.min.y),this.max.y = Math.max(t.y,this.max.y)):(this.min = t.clone(),this.max = t.clone()),this;},getCenter:function getCenter(t){return new o.Point((this.min.x + this.max.x) / 2,(this.min.y + this.max.y) / 2,t);},getBottomLeft:function getBottomLeft(){return new o.Point(this.min.x,this.max.y);},getTopRight:function getTopRight(){return new o.Point(this.max.x,this.min.y);}
5,getSize:function getSize(){return this.max.subtract(this.min);},contains:function contains(t){var e,i;return t = "number" == typeof t[0] || t instanceof o.Point?o.point(t):o.bounds(t),t instanceof o.Bounds?(e = t.min,i = t.max):e = i = t,e.x >= this.min.x && i.x <= this.max.x && e.y >= this.min.y && i.y <= this.max.y;},intersects:function intersects(t){t = o.bounds(t);var e=this.min,i=this.max,n=t.min,s=t.max,a=s.x >= e.x && n.x <= i.x,r=s.y >= e.y && n.y <= i.y;return a && r;},isValid:function isValid(){return !(!this.min || !this.max);}},o.bounds = function(t,e){return !t || t instanceof o.Bounds?t:new o.Bounds(t,e);},o.Transformation = function(t,e,i,n){this._a = t,this._b = e,this._c = i,this._d = n;},o.Transformation.prototype = {transform:function transform(t,e){return this._transform(t.clone(),e);},_transform:function _transform(t,e){return e = e || 1,t.x = e * (this._a * t.x + this._b),t.y = e * (this._c * t.y + this._d),t;},untransform:function untransform(t,e){return e = e || 1,new o.Point((t.x / e - this._b) / this._a,(t.y / e - this._d) / this._c);}},o.DomUtil = {get:function get(t){return "string" == typeof t?e.getElementById(t):t;},getStyle:function getStyle(t,i){var n=t.style[i];if((!n && t.currentStyle && (n = t.currentStyle[i]),(!n || "auto" === n) && e.defaultView)){var o=e.defaultView.getComputedStyle(t,null);n = o?o[i]:null;}return "auto" === n?null:n;},getViewportOffset:function getViewportOffset(t){var i,n=0,s=0,a=t,r=e.body,h=e.documentElement;do {if((n += a.offsetTop || 0,s += a.offsetLeft || 0,n += parseInt(o.DomUtil.getStyle(a,"borderTopWidth"),10) || 0,s += parseInt(o.DomUtil.getStyle(a,"borderLeftWidth"),10) || 0,i = o.DomUtil.getStyle(a,"position"),a.offsetParent === r && "absolute" === i))break;if("fixed" === i){n += r.scrollTop || h.scrollTop || 0,s += r.scrollLeft || h.scrollLeft || 0;break;}if("relative" === i && !a.offsetLeft){var l=o.DomUtil.getStyle(a,"width"),u=o.DomUtil.getStyle(a,"max-width"),c=a.getBoundingClientRect();("none" !== l || "none" !== u) && (s += c.left + a.clientLeft),n += c.top + (r.scrollTop || h.scrollTop || 0);break;}a = a.offsetParent;}while(a);a = t;do {if(a === r)break;n -= a.scrollTop || 0,s -= a.scrollLeft || 0,a = a.parentNode;}while(a);return new o.Point(s,n);},documentIsLtr:function documentIsLtr(){return o.DomUtil._docIsLtrCached || (o.DomUtil._docIsLtrCached = !0,o.DomUtil._docIsLtr = "ltr" === o.DomUtil.getStyle(e.body,"direction")),o.DomUtil._docIsLtr;},create:function create(t,i,n){var o=e.createElement(t);return o.className = i,n && n.appendChild(o),o;},hasClass:function hasClass(t,e){if(t.classList !== i)return t.classList.contains(e);var n=o.DomUtil._getClass(t);return n.length > 0 && new RegExp("(^|\\s)" + e + "(\\s|$)").test(n);},addClass:function addClass(t,e){if(t.classList !== i)for(var n=o.Util.splitWords(e),s=0,a=n.length;a > s;s++) t.classList.add(n[s]);else if(!o.DomUtil.hasClass(t,e)){var r=o.DomUtil._getClass(t);o.DomUtil._setClass(t,(r?r + " ":"") + e);}},removeClass:function removeClass(t,e){t.classList !== i?t.classList.remove(e):o.DomUtil._setClass(t,o.Util.trim((" " + o.DomUtil._getClass(t) + " ").replace(" " + e + " "," ")));},_setClass:function _setClass(t,e){t.className.baseVal === i?t.className = e:t.className.baseVal = e;},_getClass:function _getClass(t){return t.className.baseVal === i?t.className:t.className.baseVal;},setOpacity:function setOpacity(t,e){if("opacity" in t.style)t.style.opacity = e;else if("filter" in t.style){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i = t.filters.item(n);}catch(o) {if(1 === e)return;}e = Math.round(100 * e),i?(i.Enabled = 100 !== e,i.Opacity = e):t.style.filter += " progid:" + n + "(opacity=" + e + ")";}},testProp:function testProp(t){for(var i=e.documentElement.style,n=0;n < t.length;n++) if(t[n] in i)return t[n];return !1;},getTranslateString:function getTranslateString(t){var e=o.Browser.webkit3d,i="translate" + (e?"3d":"") + "(",n=(e?",0":"") + ")";return i + t.x + "px," + t.y + "px" + n;},getScaleString:function getScaleString(t,e){var i=o.DomUtil.getTranslateString(e.add(e.multiplyBy(-1 * t))),n=" scale(" + t + ") ";return i + n;}
5,setPosition:function setPosition(t,e,i){t._leaflet_pos = e,!i && o.Browser.any3d?t.style[o.DomUtil.TRANSFORM] = o.DomUtil.getTranslateString(e):(t.style.left = e.x + "px",t.style.top = e.y + "px");},getPosition:function getPosition(t){return t._leaflet_pos;}},o.DomUtil.TRANSFORM = o.DomUtil.testProp(["transform","WebkitTransform","OTransform","MozTransform","msTransform"]),o.DomUtil.TRANSITION = o.DomUtil.testProp(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),o.DomUtil.TRANSITION_END = "webkitTransition" === o.DomUtil.TRANSITION || "OTransition" === o.DomUtil.TRANSITION?o.DomUtil.TRANSITION + "End":"transitionend",(function(){if("onselectstart" in e)o.extend(o.DomUtil,{disableTextSelection:function disableTextSelection(){o.DomEvent.on(t,"selectstart",o.DomEvent.preventDefault);},enableTextSelection:function enableTextSelection(){o.DomEvent.off(t,"selectstart",o.DomEvent.preventDefault);}});else {var i=o.DomUtil.testProp(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);o.extend(o.DomUtil,{disableTextSelection:function disableTextSelection(){if(i){var t=e.documentElement.style;this._userSelect = t[i],t[i] = "none";}},enableTextSelection:function enableTextSelection(){i && (e.documentElement.style[i] = this._userSelect,delete this._userSelect);}});}o.extend(o.DomUtil,{disableImageDrag:function disableImageDrag(){o.DomEvent.on(t,"dragstart",o.DomEvent.preventDefault);},enableImageDrag:function enableImageDrag(){o.DomEvent.off(t,"dragstart",o.DomEvent.preventDefault);}});})(),o.LatLng = function(t,e,n){if((t = parseFloat(t),e = parseFloat(e),isNaN(t) || isNaN(e)))throw new Error("Invalid LatLng object: (" + t + ", " + e + ")");this.lat = t,this.lng = e,n !== i && (this.alt = parseFloat(n));},o.extend(o.LatLng,{DEG_TO_RAD:Math.PI / 180,RAD_TO_DEG:180 / Math.PI,MAX_MARGIN:1e-9}),o.LatLng.prototype = {equals:function equals(t){if(!t)return !1;t = o.latLng(t);var e=Math.max(Math.abs(this.lat - t.lat),Math.abs(this.lng - t.lng));return e <= o.LatLng.MAX_MARGIN;},toString:function toString(t){return "LatLng(" + o.Util.formatNum(this.lat,t) + ", " + o.Util.formatNum(this.lng,t) + ")";},distanceTo:function distanceTo(t){t = o.latLng(t);var e=6378137,i=o.LatLng.DEG_TO_RAD,n=(t.lat - this.lat) * i,s=(t.lng - this.lng) * i,a=this.lat * i,r=t.lat * i,h=Math.sin(n / 2),l=Math.sin(s / 2),u=h * h + l * l * Math.cos(a) * Math.cos(r);return 2 * e * Math.atan2(Math.sqrt(u),Math.sqrt(1 - u));},wrap:function wrap(t,e){var i=this.lng;return t = t || -180,e = e || 180,i = (i + e) % (e - t) + (t > i || i === e?e:t),new o.LatLng(this.lat,i);}},o.latLng = function(t,e){return t instanceof o.LatLng?t:o.Util.isArray(t)?"number" == typeof t[0] || "string" == typeof t[0]?new o.LatLng(t[0],t[1],t[2]):null:t === i || null === t?t:"object" == typeof t && "lat" in t?new o.LatLng(t.lat,"lng" in t?t.lng:t.lon):e === i?null:new o.LatLng(t,e);},o.LatLngBounds = function(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;o > n;n++) this.extend(i[n]);},o.LatLngBounds.prototype = {extend:function extend(t){if(!t)return this;var e=o.latLng(t);return t = null !== e?e:o.latLngBounds(t),t instanceof o.LatLng?this._southWest || this._northEast?(this._southWest.lat = Math.min(t.lat,this._southWest.lat),this._southWest.lng = Math.min(t.lng,this._southWest.lng),this._northEast.lat = Math.max(t.lat,this._northEast.lat),this._northEast.lng = Math.max(t.lng,this._northEast.lng)):(this._southWest = new o.LatLng(t.lat,t.lng),this._northEast = new o.LatLng(t.lat,t.lng)):t instanceof o.LatLngBounds && (this.extend(t._southWest),this.extend(t._northEast)),this;},pad:function pad(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat - i.lat) * t,s=Math.abs(e.lng - i.lng) * t;return new o.LatLngBounds(new o.LatLng(e.lat - n,e.lng - s),new o.LatLng(i.lat + n,i.lng + s));},getCenter:function getCenter(){return new o.LatLng((this._southWest.lat + this._northEast.lat) / 2,(this._southWest.lng + this._northEast.lng) / 2);}
5,getSouthWest:function getSouthWest(){return this._southWest;},getNorthEast:function getNorthEast(){return this._northEast;},getNorthWest:function getNorthWest(){return new o.LatLng(this.getNorth(),this.getWest());},getSouthEast:function getSouthEast(){return new o.LatLng(this.getSouth(),this.getEast());},getWest:function getWest(){return this._southWest.lng;},getSouth:function getSouth(){return this._southWest.lat;},getEast:function getEast(){return this._northEast.lng;},getNorth:function getNorth(){return this._northEast.lat;},contains:function contains(t){t = "number" == typeof t[0] || t instanceof o.LatLng?o.latLng(t):o.latLngBounds(t);var e,i,n=this._southWest,s=this._northEast;return t instanceof o.LatLngBounds?(e = t.getSouthWest(),i = t.getNorthEast()):e = i = t,e.lat >= n.lat && i.lat <= s.lat && e.lng >= n.lng && i.lng <= s.lng;},intersects:function intersects(t){t = o.latLngBounds(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),s=t.getNorthEast(),a=s.lat >= e.lat && n.lat <= i.lat,r=s.lng >= e.lng && n.lng <= i.lng;return a && r;},toBBoxString:function toBBoxString(){return [this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",");},equals:function equals(t){return t?(t = o.latLngBounds(t),this._southWest.equals(t.getSouthWest
5()) && this._northEast.equals(t.getNorthEast())):!1;},isValid:function isValid(){return !(!this._southWest || !this._northEast);}},o.latLngBounds = function(t,e){return !t || t instanceof o.LatLngBounds?t:new o.LatLngBounds(t,e);},o.Projection = {},o.Projection.SphericalMercator = {MAX_LATITUDE:85.0511287798,project:function project(t){var e=o.LatLng.DEG_TO_RAD,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),s=t.lng * e,a=n * e;return a = Math.log(Math.tan(Math.PI / 4 + a / 2)),new o.Point(s,a);},unproject:function unproject(t){var e=o.LatLng.RAD_TO_DEG,i=t.x * e,n=(2 * Math.atan(Math.exp(t.y)) - Math.PI / 2) * e;return new o.LatLng(n,i);}},o.Projection.LonLat = {project:function project(t){return new o.Point(t.lng,t.lat);},unproject:function unproject(t){return new o.LatLng(t.y,t.x);}},o.CRS = {latLngToPoint:function latLngToPoint(t,e){var i=this.projection.project(t),n=this.scale(e);return this.transformation._transform(i,n);},pointToLatLng:function pointToLatLng(t,e){var i=this.scale(e),n=this.transformation.untransform(t,i);return this.projection.unproject(n);},project:function project(t){return this.projection.project(t);},scale:function scale(t){return 256 * Math.pow(2,t);},getSize:function getSize(t){var e=this.scale(t);return o.point(e,e);}},o.CRS.Simple = o.extend({},o.CRS,{projection:o.Projection.LonLat,transformation:new o.Transformation(1,0,-1,0),scale:function scale(t){return Math.pow(2,t);}}),o.CRS.EPSG3857 = o.extend({},o.CRS,{code:"EPSG:3857",projection:o.Projection.SphericalMercator,transformation:new o.Transformation(.5 / Math.PI,.5,-.5 / Math.PI,.5),project:function project(t){var e=this.projection.project(t),i=6378137;return e.multiplyBy(i);}}),o.CRS.EPSG900913 = o.extend({},o.CRS.EPSG3857,{code:"EPSG:900913"}),o.CRS.EPSG4326 = o.extend({},o.CRS,{code:"EPSG:4326",projection:o.Projection.LonLat,transformation:new o.Transformation(1 / 360,.5,-1 / 360,.5)}),o.Map = o.Class.extend({includes:o.Mixin.Events,options:{crs:o.CRS.EPSG3857,fadeAnimation:o.DomUtil.TRANSITION && !o.Browser.android23,trackResize:!0,markerZoomAnimation:o.DomUtil.TRANSITION && o.Browser.any3d},initialize:function initialize(t,e){e = o.setOptions(this,e),this._initContainer(t),this._initLayout(),this._onResize = o.bind(this._onResize,this),this._initEvents(),e.maxBounds && this.setMaxBounds(e.maxBounds),e.center && e.zoom !== i && this.setView(o.latLng(e.center),e.zoom,{reset:!0}),this._handlers = [],this._layers = {},this._zoomBoundLayers = {},this._tileLayersNum = 0,this.callInitHooks(),this._addLayers(e.layers);},setView:function setView(t,e){return e = e === i?this.getZoom():e,this._resetView(o.latLng(t),this._limitZoom(e)),this;},setZoom:function setZoom(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom = this._limitZoom(t),this);},zoomIn:function zoomIn(t,e){return this.setZoom(this._zoom + (t || 1),e);},zoomOut:function zoomOut(t,e){return this.setZoom(this._zoom - (t || 1),e);},setZoomAround:function setZoomAround(t,e,i){var n=this.getZoomScale(e),s=this.getSize().divideBy(2),a=t instanceof o.Point?t:this.latLngToContainerPoint(t),r=a.subtract(s).multiplyBy(1 - 1 / n),h=this.containerPointToLatLng(s.add(r));return this.setView(h,e,{zoom:i});},fitBounds:function fitBounds(t,e){e = e || {},t = t.getBounds?t.getBounds():o.latLngBounds(t);var i=o.point(e.paddingTopLeft || e.padding || [0,0]),n=o.point(e.paddingBottomRight || e.padding || [0,0]),s=this.getBoundsZoom(t,!1,i.add(n));s = e.maxZoom?Math.min(e.maxZoom,s):s;
5var a=n.subtract(i).divideBy(2),r=this.project(t.getSouthWest(),s),h=this.project(t.getNorthEast(),s),l=this.unproject(r.add(h).divideBy(2).add(a),s);return this.setView(l,s,e);},fitWorld:function fitWorld(t){return this.fitBounds([[-90,-180],[90,180]],t);},panTo:function panTo(t,e){return this.setView(t,this._zoom,{pan:e});},panBy:function panBy(t){return this.fire("movestart"),this._rawPanBy(o.point(t)),this.fire("move"),this.fire("moveend");},setMaxBounds:function setMaxBounds(t){return t = o.latLngBounds(t),this.options.maxBounds = t,t?(this._loaded && this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds,this)):this.off("moveend",this._panInsideMaxBounds,this);},panInsideBounds:function panInsideBounds(t,e){var i=this.getCenter(),n=this._limitCenter(i,this._zoom,t);return i.equals(n)?this:this.panTo(n,e);},addLayer:function addLayer(t){var e=o.stamp(t);return this._layers[e]?this:(this._layers[e] = t,!t.options || isNaN(t.options.maxZoom) && isNaN(t.options.minZoom) || (this._zoomBoundLayers[e] = t,this._updateZoomLevels()),this.options.zoomAnimation && o.TileLayer && t instanceof o.TileLayer && (this._tileLayersNum++,this._tileLayersToLoad++,t.on("load",this._onTileLayerLoad,this)),this._loaded && this._layerAdd(t),this);},removeLayer:function removeLayer(t){var e=o.stamp(t);return this._layers[e]?(this._loaded && t.onRemove(this),delete this._layers[e],this._loaded && this.fire("layerremove",{layer:t}),this._zoomBoundLayers[e] && (delete this._zoomBoundLayers[e],this._updateZoomLevels()),this.options.zoomAnimation && o.TileLayer && t instanceof o.TileLayer && (this._tileLayersNum--,this._tileLayersToLoad--,t.off("load",this._onTileLayerLoad,this)),this):this;},hasLayer:function hasLayer(t){return t?o.stamp(t) in this._layers:!1;},eachLayer:function eachLayer(t,e){for(var i in this._layers) t.call(e,this._layers[i]);return this;}
5,invalidateSize:function invalidateSize(t){if(!this._loaded)return this;t = o.extend({animate:!1,pan:!0},t === !0?{animate:!0}:t);var e=this.getSize();this._sizeChanged = !0,this._initialCenter = null;var i=this.getSize(),n=e.divideBy(2).round(),s=i.divideBy(2).round(),a=n.subtract(s);return a.x || a.y?(t.animate && t.pan?this.panBy(a):(t.pan && this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer = setTimeout(o.bind(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:i})):this;},addHandler:function addHandler(t,e){if(!e)return this;var i=this[t] = new e(this);return this._handlers.push(i),this.options[t] && i.enable(),this;},remove:function remove(){this._loaded && this.fire("unload"),this._initEvents("off");try{delete this._container._leaflet;}catch(t) {this._container._leaflet = i;}return this._clearPanes(),this._clearControlPos && this._clearControlPos(),this._clearHandlers(),this;},getCenter:function getCenter(){return this._checkIfLoaded(),this._initialCenter && !this._moved()?this._initialCenter:this.layerPointToLatLng(this._getCenterLayerPoint());},getZoom:function getZoom(){return this._zoom;},getBounds:function getBounds(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),i=this.unproject(t.getTopRight());return new o.LatLngBounds(e,i);},getMinZoom:function getMinZoom(){return this.options.minZoom === i?this._layersMinZoom === i?0:this._layersMinZoom:this.options.minZoom;},getMaxZoom:function getMaxZoom(){return this.options.maxZoom === i?this._layersMaxZoom === i?1 / 0:this._layersMaxZoom:this.options.maxZoom;},getBoundsZoom:function getBoundsZoom(t,e,i){t = o.latLngBounds(t);var n,s=this.getMinZoom() - (e?1:0),a=this.getMaxZoom(),r=this.getSize(),h=t.getNorthWest(),l=t.getSouthEast(),u=!0;i = o.point(i || [0,0]);do s++,n = this.project(l,s).subtract(this.project(h,s)).add(i),u = e?n.x < r.x || n.y < r.y:r.contains(n);while(u && a >= s);return u && e?null:e?s:s - 1;},getSize:function getSize(){return (!this._size || this._sizeChanged) && (this._size = new o.Point(this._container.clientWidth,this._container.clientHeight),this._sizeChanged = !1),this._size.clone();},getPixelBounds:function getPixelBounds(){var t=this._getTopLeftPoint();return new o.Bounds(t,t.add(this.getSize()));},getPixelOrigin:function getPixelOrigin(){return this._checkIfLoaded(),this._initialTopLeftPoint;},getPanes:function getPanes(){return this._panes;},getContainer:function getContainer(){return this._container;},getZoomScale:function getZoomScale(t){var e=this.options.crs;return e.scale(t) / e.scale(this._zoom);},getScaleZoom:function getScaleZoom(t){return this._zoom + Math.log(t) / Math.LN2;},project:function project(t,e){return e = e === i?this._zoom:e,this.options.crs.latLngToPoint(o.latLng(t),e);},unproject:function unproject(t,e){return e = e === i?this._zoom:e,this.options.crs.pointToLatLng(o.point(t),e);},layerPointToLatLng:function layerPointToLatLng(t){var e=o.point(t).add(this.getPixelOrigin());return this.unproject(e);},latLngToLayerPoint:function latLngToLayerPoint(t){var e=this.project(o.latLng(t))._round();return e._subtract(this.getPixelOrigin());},containerPointToLayerPoint:function containerPointToLayerPoint(t){return o.point(t).subtract(this._getMapPanePos());},layerPointToContainerPoint:function layerPointToContainerPoint(t){return o.point(t).add(this._getMapPanePos());},containerPointToLatLng:function containerPointToLatLng(t){var e=this.containerPointToLayerPoint(o.point(t));return this.layerPointToLatLng(e);},latLngToContainerPoint:function latLngToContainerPoint(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(o.latLng(t)));},mouseEventToContainerPoint:function mouseEventToContainerPoint(t){return o.DomEvent.getMousePosition(t,this._container);},mouseEventToLayerPoint:function mouseEventToLayerPoint(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t));},mouseEventToLatLng:function mouseEventToLatLng(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t));},_initContainer:function _initContainer(t){var e=this._container = o.Dom
5Util.get(t);if(!e)throw new Error("Map container not found.");if(e._leaflet)throw new Error("Map container is already initialized.");e._leaflet = !0;},_initLayout:function _initLayout(){var t=this._container;o.DomUtil.addClass(t,"leaflet-container" + (o.Browser.touch?" leaflet-touch":"") + (o.Browser.retina?" leaflet-retina":"") + (o.Browser.ielt9?" leaflet-oldie":"") + (this.options.fadeAnimation?" leaflet-fade-anim":""));var e=o.DomUtil.getStyle(t,"position");"absolute" !== e && "relative" !== e && "fixed" !== e && (t.style.position = "relative"),this._initPanes(),this._initControlPos && this._initControlPos();},_initPanes:function _initPanes(){var t=this._panes = {};this._mapPane = t.mapPane = this._createPane("leaflet-map-pane",this._container),this._tilePane = t.tilePane = this._createPane("leaflet-tile-pane",this._mapPane),t.objectsPane = this._createPane("leaflet-objects-pane",this._mapPane),t.shadowPane = this._createPane("leaflet-shadow-pane"),t.overlayPane = this._createPane("leaflet-overlay-pane"),t.markerPane = this._createPane("leaflet-marker-pane"),t.popupPane = this._createPane("leaflet-popup-pane");var e=" leaflet-zoom-hide";this.options.markerZoomAnimation || (o.DomUtil.addClass(t.markerPane,e),o.DomUtil.addClass(t.shadowPane,e),o.DomUtil.addClass(t.popupPane,e));},_createPane:function _createPane(t,e){return o.DomUtil.create("div",t,e || this._panes.objectsPane);},_clearPanes:function _clearPanes(){this._container.removeChild(this._mapPane);},_addLayers:function _addLayers(t){t = t?o.Util.isArray(t)?t:[t]:[];for(var e=0,i=t.length;i > e;e++) this.addLayer(t[e]);},_resetView:function _resetView(t,e,i,n){var s=this._zoom !== e;n || (this.fire("movestart"),s && this.fire("zoomstart")),this._zoom = e,this._initialCenter = t,this._initialTopLeftPoint = this._getNewTopLeftPoint(t),i?this._initialTopLeftPoint._add(this._getMapPanePos()):o.DomUtil.setPosition(this._mapPane,new o.Point(0,0)),this._tileLayersToLoad = this._tileLayersNum;var a=!this._loaded;this._loaded = !0,this.fire("viewreset",{hard:!i}),a && (this.fire("load"),this.eachLayer(this._layerAdd,this)),this.fire("move"),(s || n) && this.fire("zoomend"),this.fire("moveend",{hard:!i});},_rawPanBy:function _rawPanBy(t){o.DomUtil.setPosition(this._mapPane,this._getMapPanePos().subtract(t));},_getZoomSpan:function _getZoomSpan(){return this.getMaxZoom() - this.getMinZoom();},_updateZoomLevels:function _updateZoomLevels(){var t,e=1 / 0,n=-(1 / 0),o=this._getZoomSpan();for(t in this._zoomBoundLayers) {var s=this._zoomBoundLayers[t];isNaN(s.options.minZoom) || (e = Math.min(e,s.options.minZoom)),isNaN(s.options.maxZoom) || (n = Math.max(n,s.options.maxZoom));}t === i?this._layersMaxZoom = this._layersMinZoom = i:(this._layersMaxZoom = n,this._layersMinZoom = e),o !== this._getZoomSpan() && this.fire("zoomlevelschange");},_panInsideMaxBounds:function _panInsideMaxBounds(){this.panInsideBounds(this.options.maxBounds);},_checkIfLoaded:function _checkIfLoaded(){if(!this._loaded)throw new Error("Set map center and zoom first.");},_initEvents:function _initEvents(e){if(o.DomEvent){e = e || "on",o.DomEvent[e](this._container,"click",this._onMouseClick,this);var i,n,s=["dblclick","mousedown","mouseup","mouseenter","mouseleave","mousemove","contextmenu"];for(i = 0,n = s.length;n > i;i++) o.DomEvent[e](this._container,s[i],this._fireMouseEvent,this);this.options.trackResize && o.DomEvent[e](t,"resize",this._onResize,this);}},_onResize:function _onResize(){o.Util.cancelAnimFrame(this._resizeRequest),this._resizeRequest = o.Util.requestAnimFrame(function(){this.invalidateSize({debounceMoveend:!0});},this,!1,this._container);},_onMouseClick:function _onMouseClick(t){!this._loaded || !t._simulated && (this.dragging && this.dragging.moved() || this.boxZoom && this.boxZoom.moved()) || o.DomEvent._skipped(t) || (this.fire("preclick"),this._fireMouseEvent(t));},_fireMouseEvent:function _fireMouseEvent(t){if(this._loaded && !o.DomEvent._skipped(t)){var e=t.type;if((e = "mouseenter" === e?"mouseover":"mouseleave" === e?"mouseout":e,this.hasEventListeners(e))){"contextmenu" === e && o.DomEvent.preventDefault(t);var i=this.mouseEventToContainerPoint(t),n=this.containerPointToLayerPoint(i),s=this.layerPointToLatLng(n);this.fire(e,{latlng:s,layerPoint:n,containerPoint:i,originalEvent:t});}}},_onTileLayerLoad:function _onTileLayerLoad(){this._tileLayersToLoad--,this._tileLayersNum && !this._tileLayersToLoad && this.fire("tilelayersload");},_clearHandlers:function _clearHandlers(){for(var t=0,e=this._handlers.length;e > t;t++) this._handlers[t].disable();},whenReady:function whenReady(t,e){return this._loaded?t.call(e || this,this):this.on("load",t,e),this;},_layerAdd:function _layerAdd(t){t.onAdd(this),this.fire("layeradd",{layer:t});},_getMapPanePos:function _getMapPanePos(){return o.DomUtil.getPosition(this._mapPane);},_moved:function _moved(){var t=this._getMapPanePos();return t && !t.equals([0,0]);},_getTopLeftPoint:function _getTopLeftPoint(){return this.getPixelOrigin().subtract(this._getMapPanePos());},_getNewTopLeftPoint:function _getNewTopLeftPoint(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._round();},_latLngToNewLayerPoint:function _latLngToNewLayerPoint(t,e,i){var n=this._getNewTopLeftPoint(i,e).add(this._getMapPanePos());return this.project(t,e)._subtract(n);},_getCenterLayerPoint:function _getCenterLayerPoint(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2));},_getCenterOffset:function _getCenterOffset(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint());},_limitCenter:function _limitCenter(t,e,i){if(!i)return t;var n=this.project(t,e),s=this.getSize().divideBy(2),a=new o.Bounds(n.subtract(s),n.add(s)),r=this._getBoundsOffset(a,i,e);return this.unproject(n.add(r),e);},_limitOffset:function _limitOffset(t,e){if(!e)return t;var i=this.getPixelBounds(),n=new o.Bounds(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e));},_getBoundsOffset:function _getBoundsOffset(t,e,i){var n=this.project(e.getNorthWest(),i).subtract(t.min),s=this.project(e.getSouthEast(),i).subtract(t.max),a=this._rebound(n.x,-s.x),r=this._rebound(n.y,-s.y);return new o.Point(a,r);},_rebound:function _rebound(t,e){return t + e > 0?Math.round(t - e) / 2:Math.max(0,Math.ceil(t)) - Math.max(0,Math.floor(e));},_limitZoom:function _limitZoom(t){var e=this.getMinZoom(),i=this.getMaxZoom();return Math.max(e,Math.min(i,t));}}),o.map = function(t,e){return new o.Map(t,e);},o.Projection.Mercator = {MAX_LATITUDE:85.0840591556,R_MINOR:6356752.314245179,R_MAJOR:6378137,project:function project(t){var e=o.LatLng.DEG_TO_RAD,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),s=this.R_MAJOR,a=this.R_MINOR,r=t.lng * e * s,h=n * e,l=a / s,u=Math.sqrt(1 - l * l),c=u * Math.sin(h);c = Math.pow((1 - c) / (1 + c),.5 * u);var d=Math.tan(.5 * (.5 * Math.PI - h)) / c;return h = -s * Math.log(d),new o.Point(r,h);},unproject:function unproject(t){for(var e,i=o.LatLng.RAD_TO_DEG,n=this.R_MAJOR,s=this.R_MINOR,a=t.x * i / n,r=s / n,h=Math.sqrt(1 - r * r),l=Math.exp(-t.y / n),u=Math.PI / 2 - 2 * Math.atan(l),c=15,d=1e-7,p=c,_=.1;Math.abs(_) > d && --p > 0;) e = h * Math.sin(u),_ = Math.PI / 2 - 2 * Math.atan(l * Math.pow((1 - e) / (1 + e),.5 * h)) - u,u += _;return new o.LatLng(u * i,a);}},o.CRS.EPSG3395 = o.extend({},o.CRS,{code:"EPSG:3395",projection:o.Projection.Mercator,transformation:(function(){var t=o.Projection.Mercator,e=t.R_MAJOR,i=.5 / (Math.PI * e);return new o.Transformation(i,.5,-i,.5);})()}),o.TileLayer = o.Class.extend({includes:o.Mixin.Events,options:{minZoom:0,maxZoom:18,tileSize:256,subdomains:"abc",errorTileUrl:"",attribution:"",zoomOffset:0,opacity:1,unloadInvisibleTiles:o.Browser.mobile,updateWhenIdle:o.Browser.mobile},initialize:function initialize(t,e){e = o.setOptions(this,e),e.detectRetina && o.Browser.retina && e.maxZoom > 0 && (e.tileSize = Math.floor(e.tileSize / 2),e.zoomOffset++,e.minZoom > 0 && e.minZoom--,this.options.maxZoom--),e.bounds && (e.bounds = o.latLngBounds(e.bounds)),this._url = t;var i=this.options.subdomains;"string" == typeof i && (this.options.subdomains = i.split(""));},onAdd:function onAdd(t){this._map = t,this._animated = t._zoomAnimated,this._initContainer(),t.on({viewreset:this._reset,moveend:this._update},this),this._animated && t.on({zoomanim:this._animateZoom,zoomend:this._endZoomAnim},this),this.options.updateWhenIdle || (this._limitedUpdate = o.Util.limitExecByInterval(this._update,150,this),t.on("move",this._limitedUpdate,this)),this._reset(),this._update();},addTo:function addTo(t){return t.addLayer(this),this;},onRemove:function onRemove(t){this._container.parentNode.removeChild(this._container),t.off({viewreset:this._reset,moveend:this._update},this),this._animated && t.off({zoomanim:this._animateZoom,zoomend:this._endZoomAnim},this),this.options.updateWhenIdle || t.off("move",this._limitedUpdate,this),this._container = null,this._map = null;},bringToFront:function bringToFront(){var t=this._map._panes.tilePane;return this._container && (t.appendChild(this._container),this._setAutoZIndex(t,Math.max)),this;},bringToBack:function bringToBack(){var t=this._map._panes.tilePane;return this._container && (t.insertBefore(this._container,t.firstChild),this._setAutoZIndex(t,Math.min)),this;},getAttribution:function getAttribution(){return this.options.attribution;},getContainer:function getContainer(){return this._container;},setOpacity:function setOpacity(t){return this.options.opacity = t,this._map && this._updateOpacity(),this;},setZIndex:function setZIndex(t){return this.options.zIndex = t,this._updateZIndex(),this;},setUrl:function setUrl(t,e){return this._url = t,e || this.redraw(),this;},redraw:function redraw(){return this._map && (this._reset({hard:!0}),this._update()),this;},_updateZIndex:function _updateZIndex(){this._container && this.options.zIndex !== i && (this._container.style.zIndex = this.options.zIndex);},_setAutoZIndex:function _setAutoZIndex(t,e){var i,n,o,s=t.children,a=-e(1 / 0,-(1 / 0));for(n = 0,o = s.length;o > n;n++) s[n] !== this._container && (i = parseInt(s[n].style.zIndex,10),isNaN(i) || (a = e(a,i)));this.options.zIndex = this._container.style.zIndex = (isFinite(a)?a:0) + e(1,-1);},_updateOpacity:function _updateOpacity(){var t,e=this._tiles;if(o.Browser.ielt9)for(t in e) o.DomUtil.setOpacity(e[t],this.options.opacity);else o.DomUtil.setOpacity(this._container,this.options.opacity);},_initContainer:function _initContainer(){var t=this._map._panes.tilePane;
5if(!this._container){if((this._container = o.DomUtil.create("div","leaflet-layer"),this._updateZIndex(),this._animated)){var e="leaflet-tile-container";this._bgBuffer = o.DomUtil.create("div",e,this._container),this._tileContainer = o.DomUtil.create("div",e,this._container);}else this._tileContainer = this._container;t.appendChild(this._container),this.options.opacity < 1 && this._updateOpacity();}},_reset:function _reset(t){for(var e in this._tiles) this.fire("tileunload",{tile:this._tiles[e]});this._tiles = {},this._tilesToLoad = 0,this.options.reuseTiles && (this._unusedTiles = []),this._tileContainer.innerHTML = "",this._animated && t && t.hard && this._clearBgBuffer(),this._initContainer();},_getTileSize:function _getTileSize(){var t=this._map,e=t.getZoom() + this.options.zoomOffset,i=this.options.maxNativeZoom,n=this.options.tileSize;return i && e > i && (n = Math.round(t.getZoomScale(e) / t.getZoomScale(i) * n)),n;},_update:function _update(){if(this._map){var t=this._map,e=t.getPixelBounds(),i=t.getZoom(),n=this._getTileSize();if(!(i > this.options.maxZoom || i < this.options.minZoom)){var s=o.bounds(e.min.divideBy(n)._floor(),e.max.divideBy(n)._floor());this._addTilesFromCenterOut(s),(this.options.unloadInvisibleTiles || this.options.reuseTiles) && this._removeOtherTiles(s);}}},_addTilesFromCenterOut:function _addTilesFromCenterOut(t){var i,n,s,a=[],r=t.getCenter();for(i = t.min.y;i <= t.max.y;i++) for(n = t.min.x;n <= t.max.x;n++) s = new o.Point(n,i),this._tileShouldBeLoaded(s) && a.push(s);var h=a.length;if(0 !== h){a.sort(function(t,e){return t.distanceTo(r) - e.distanceTo(r);});var l=e.createDocumentFragment();for(this._tilesToLoad || this.fire("loading"),this._tilesToLoad += h,n = 0;h > n;n++) this._addTile(a[n],l);this._tileContainer.appendChild(l);}},_tileShouldBeLoaded:function _tileShouldBeLoaded(t){if(t.x + ":" + t.y in this._tiles)return !1;var e=this.options;if(!e.continuousWorld){var i=this._getWrapTileNum();if(e.noWrap && (t.x < 0 || t.x >= i.x) || t.y < 0 || t.y >= i.y)return !1;}if(e.bounds){var n=this._getTileSize(),o=t.multiplyBy(n),s=o.add([n,n]),a=this._map.unproject(o),r=this._map.unproject(s);if((e.continuousWorld || e.noWrap || (a = a.wrap(),r = r.wrap()),!e.bounds.intersects([a,r])))return !1;}return !0;},_removeOtherTiles:function _removeOtherTiles(t){var e,i,n,o;for(o in this._tiles) e = o.split(":"),i = parseInt(e[0],10),n = parseInt(e[1],10),(i < t.min.x || i > t.max.x || n < t.min.y || n > t.max.y) && this._removeTile(o);},_removeTile:function _removeTile(t){var e=this._tiles[t];this.fire("tileunload",{tile:e,url:e.src}),this.options.reuseTiles?(o.DomUtil.removeClass(e,"leaflet-tile-loaded"),this._unusedTiles.push(e)):e.parentNode === this._tileContainer && this._tileContainer.removeChild(e),o.Browser.android || (e.onload = null,e.src = o.Util.emptyImageUrl),delete this._tiles[t];},_addTile:function _addTile(t,e){var i=this._getTilePos(t),n=this._getTile();o.DomUtil.setPosition(n,i,o.Browser.chrome),this._tiles[t.x + ":" + t.y] = n,this._loadTile(n,t),n.parentNode !== this._tileContainer && e.appendChild(n);},_getZoomForUrl:function _getZoomForUrl(){var t=this.options,e=this._map.getZoom();return t.zoomReverse && (e = t.maxZoom - e),e += t.zoomOffset,t.maxNativeZoom?Math.min(e,t.maxNativeZoom):e;},_getTilePos:function _getTilePos(t){var e=this._map.getPixelOrigin(),i=this._getTileSize();return t.multiplyBy(i).subtract(e);},getTileUrl:function getTileUrl(t){return o.Util.template(this._url,o.extend({s:this._getSubdomain(t),z:t.z,x:t.x,y:t.y},this.options));},_getWrapTileNum:function _getWrapTileNum(){var t=this._map.options.crs,e=t.getSize(this._map.getZoom());return e.divideBy(this._getTileSize())._floor();},_adjustTilePoint:function _adjustTilePoint(t){var e=this._getWrapTileNum();this.options.continuousWorld || this.options.noWrap || (t.x = (t.x % e.x + e.x) % e.x),this.options.tms && (t.y = e.y - t.y - 1),t.z = this._getZoomForUrl();},_getSubdomain:function _getSubdomain(t){var e=Math.abs(t.x + t.y) % this.options.subdomains.length;return this.options.subdomains[e];},_getTile:function _getTile(){if(this.options.reuseTiles && this._unusedTiles.length > 0){var t=this._unusedTiles.pop();return this._resetTile(t),t;}return this._createTile();},_resetTile:function _resetTile(){},_createTile:function _createTile(){var t=o.DomUtil.create("img","leaflet-tile");return t.style.width = t.style.height = this._getTileSize() + "px",t.galleryimg = "no",t.onselectstart = t.onmousemove = o.Util.falseFn,o.Browser.ielt9 && this.options.opacity !== i && o.DomUtil.setOpacity(t,this.options.opacity),o.Browser.mobileWebkit3d && (t.style.WebkitBackfaceVisibility = "hidden"),t;},_loadTile:function _loadTile(t,e){t._layer = this,t.onload = this._tileOnLoad,t.onerror = this._tileOnError,this._adjustTilePoint(e),t.src = this.getTileUrl(e),this.fire("tileloadstart",{tile:t,url:t.src});},_tileLoaded:function _tileLoaded(){this._tilesToLoad--,this._animated && o.DomUtil.addClass(this._tileContainer,"leaflet-zoom-animated"),this._tilesToLoad || (this.fire("load"),this._animated && (clearTimeout(this._clearBgBufferTimer),this._clearBgBufferTimer = setTimeout(o.bind(this._clearBgBuffer,this),500)));},_tileOnLoad:function _tileOnLoad(){var t=this._layer;this.src !== o.Util.emptyImageUrl && (o.DomUtil.addClass(this,"leaflet-tile-loaded"),t.fire("tileload",{tile:this,url:this.src})),t._tileLoaded();},_tileOnError:function _tileOnError(){var t=this._layer;t.fire("tileerror",{tile:this,url:this.src});var e=t.options.errorTileUrl;e && (this.src = e),t._tileLoaded();}}),o.tileLayer = function(t,e){return new o.TileLayer(t,e);},o.TileLayer.WMS = o.TileLayer.extend({defaultWmsParams:{service:"WMS",request:"GetMap",version:"1.1.1",layers:"",styles:"",format:"image/jpeg",transparent:!1},initialize:function initialize(t,e){this._url = t;var i=o.extend({},this.defaultWmsParams),n=e.tileSize || this.options.tileSize;e.detectRetina && o.Browser.retina?i.width = i.height = 2 * n:i.width = i.height = n;for(var s in e) this.options.hasOwnProperty(s) || "crs" === s || (i[s] = e[s]);this.wmsParams = i,o.setOptions(this,e);},onAdd:function onAdd(t){this._crs = this.options.crs || t.options.crs,this._wmsVersion = parseFloat(this.wmsParams.version);var e=this._wmsVersion >= 1.3?"crs":"srs";this.wmsParams[e] = this._crs.code,o.TileLayer.prototype.onAdd.call(this,t);},getTileUrl:function getTileUrl(t){var e=this._map,i=this.options.tileSize,n=t.multiplyBy(i),s=n.add([i,i]),a=this._crs.project(e.unproject(n,t.z)),r=this._crs.project(e.unproject(s,t.z)),h=this._wmsVersion >= 1.3 && this._crs === o.CRS.EPSG4326?[r.y,a.x,a.y,r.x].join(","):[a.x,r.y,r.x,a.y].join(","),l=o.Util.template(this._url,{s:this._getSubdomain(t)});return l + o.Util.getParamString(this.wmsParams,l,!0) + "&BBOX=" + h;},setParams:function setParams(t,e){return o.extend(this.wmsParams,t),e || this.redraw(),this;}}),o.tileLayer.wms = function(t,e){return new o.TileLayer.WMS(t,e);},o.TileLayer.Canvas = o.TileLayer.extend({options:{async:!1},initialize:function initialize(t){o.setOptions(this,t);},redraw:function redraw(){this._map && (this._reset({hard:!0}),this._update());for(var t in this._tiles) this._redrawTile(this._tiles[t]);return this;},_redrawTile:function _redrawTile(t){this.drawTile(t,t._tilePoint,this._map._zoom);},_createTile:function _createTile(){var t=o.DomUtil.create("canvas","leaflet-tile");return t.width = t.height = this.options.tileSize,t.onselectstart = t.onmousemove = o.Util.falseFn,t;},_loadTile:function _loadTile(t,e){t._layer = this,t._tilePoint = e,this._redrawTile(t),this.options.async || this.tileDrawn(t);},drawTile:function drawTile(){}
5,tileDrawn:function tileDrawn(t){this._tileOnLoad.call(t);}}),o.tileLayer.canvas = function(t){return new o.TileLayer.Canvas(t);},o.ImageOverlay = o.Class.extend({includes:o.Mixin.Events,options:{opacity:1},initialize:function initialize(t,e,i){this._url = t,this._bounds = o.latLngBounds(e),o.setOptions(this,i);},onAdd:function onAdd(t){this._map = t,this._image || this._initImage(),t._panes.overlayPane.appendChild(this._image),t.on("viewreset",this._reset,this),t.options.zoomAnimation && o.Browser.any3d && t.on("zoomanim",this._animateZoom,this),this._reset();},onRemove:function onRemove(t){t.getPanes().overlayPane.removeChild(this._image),t.off("viewreset",this._reset,this),t.options.zoomAnimation && t.off("zoomanim",this._animateZoom,this);},addTo:function addTo(t){return t.addLayer(this),this;},setOpacity:function setOpacity(t){return this.options.opacity = t,this._updateOpacity(),this;},bringToFront:function bringToFront(){return this._image && this._map._panes.overlayPane.appendChild(this._image),this;},bringToBack:function bringToBack(){var t=this._map._panes.overlayPane;return this._image && t.insertBefore(this._image,t.firstChild),this;},setUrl:function setUrl(t){this._url = t,this._image.src = this._url;},getAttribution:function getAttribution(){return this.options.attribution;},_initImage:function _initImage(){this._image = o.DomUtil.create("img","leaflet-image-layer"),this._map.options.zoomAnimation && o.Browser.any3d?o.DomUtil.addClass(this._image,"leaflet-zoom-animated"):o.DomUtil.addClass(this._image,"leaflet-zoom-hide"),this._updateOpacity(),o.extend(this._image,{galleryimg:"no",onselectstart:o.Util.falseFn,onmousemove:o.Util.falseFn,onload:o.bind(this._onImageLoad,this),src:this._url});},_animateZoom:function _animateZoom(t){var e=this._map,i=this._image,n=e.getZoomScale(t.zoom),s=this._bounds.getNorthWest(),a=this._bounds.getSouthEast(),r=e._latLngToNewLayerPoint(s,t.zoom,t.center),h=e._latLngToNewLayerPoint(a,t.zoom,t.center)._subtract(r),l=r._add(h._multiplyBy(.5 * (1 - 1 / n)));i.style[o.DomUtil.TRANSFORM] = o.DomUtil.getTranslateString(l) + " scale(" + n + ") ";},_reset:function _reset(){var t=this._image,e=this._map.latLngToLayerPoint(this._bounds.getNorthWest()),i=this._map.latLngToLayerPoint(this._bounds.getSouthEast())._subtract(e);o.DomUtil.setPosition(t,e),t.style.width = i.x + "px",t.style.height = i.y + "px";},_onImageLoad:function _onImageLoad(){this.fire("load");},_updateOpacity:function _updateOpacity(){o.DomUtil.setOpacity(this._image,this.options.opacity);}}),o.imageOverlay = function(t,e,i){return new o.ImageOverlay(t,e,i);},o.Icon = o.Class.extend({options:{className:""},initialize:function initialize(t){o.setOptions(this,t);},createIcon:function createIcon(t){return this._createIcon("icon",t);},createShadow:function createShadow(t){return this._createIcon("shadow",t);},_createIcon:function _createIcon(t,e){var i=this._getIconUrl(t);if(!i){if("icon" === t)throw new Error("iconUrl not set in Icon options (see the docs).");return null;}var n;return n = e && "IMG" === e.tagName?this._createImg(i,e):this._createImg(i),this._setIconStyles(n,t),n;},_setIconStyles:function _setIconStyles(t,e){var i,n=this.options,s=o.point(n[e + "Size"]);i = "shadow" === e?o.point(n.shadowAnchor || n.iconAnchor):o.point(n.iconAnchor),!i && s && (i = s.divideBy(2,!0)),t.className = "leaflet-marker-" + e + " " + n.className,i && (t.style.marginLeft = -i.x + "px",t.style.marginTop = -i.y + "px"),s && (t.style.width = s.x + "px",t.style.height = s.y + "px");},_createImg:function _createImg(t,i){return i = i || e.createElement("img"),i.src = t,i;},_getIconUrl:function _getIconUrl(t){return o.Browser.retina && this.options[t + "RetinaUrl"]?this.options[t + "RetinaUrl"]:this.options[t + "Url"];}}),o.icon = function(t){return new o.Icon(t);},o.Icon.Default = o.Icon.extend({options:{iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]},_getIconUrl:function _getIconUrl(t){var e=t + "Url";if(this.options[e])return this.options[e];o.Browser.retina && "icon" === t && (t += "-2x");var i=o.Icon.Default.imagePath;if(!i)throw new Error("Couldn't autodetect L.Icon.Default.imagePath, set it manually.");return i + "/marker-" + t + ".png";}}),o.Icon.Default.imagePath = (function(){var t,i,n,o,s,a=e.getElementsByTagName("script"),r=/[\/^]leaflet[\-\._]?([\w\-\._]*)\.js\??/;for(t = 0,i = a.length;i > t;t++) if((n = a[t].src,o = n.match(r)))return s = n.split(r)[0],(s?s + "/":"") + "images";})(),o.Marker = o.Class.extend({includes:o.Mixin.Events,options:{icon:new o.Icon.Default(),title:"",alt:"",clickable:!0,draggable:!1,keyboard:!0,zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250},initialize:function initialize(t,e){o.setOptions(this,e),this._latlng = o.latLng(t);},onAdd:function onAdd(t){this._map = t,t.on("viewreset",this.update,this),this._initIcon(),this.update(),this.fire("add"),t.options.zoomAnimation && t.options.markerZoomAnimation && t.on("zoomanim",this._animateZoom,this);},addTo:function addTo(t){return t.addLayer(this),this;},onRemove:function onRemove(t){this.dragging && this.dragging.disable(),this._removeIcon(),this._removeShadow(),this.fire("remove"),t.off({viewreset:this.update,zoomanim:this._animateZoom},this),this._map = null;},getLatLng:function getLatLng(){return this._latlng;},setLatLng:function setLatLng(t){return this._latlng = o.latLng(t),this.update(),this.fire("move",{latlng:this._latlng});},setZIndexOffset:function setZIndexOffset(t){return this.options.zIndexOffset = t,this.update(),this;},setIcon:function setIcon(t){return this.options.icon = t,this._map && (this._initIcon(),this.update()),this._popup && this.bindPopup(this._popup),this;}
5,update:function update(){return this._icon && this._setPos(this._map.latLngToLayerPoint(this._latlng).round()),this;},_initIcon:function _initIcon(){var t=this.options,e=this._map,i=e.options.zoomAnimation && e.options.markerZoomAnimation,n=i?"leaflet-zoom-animated":"leaflet-zoom-hide",s=t.icon.createIcon(this._icon),a=!1;s !== this._icon && (this._icon && this._removeIcon(),a = !0,t.title && (s.title = t.title),t.alt && (s.alt = t.alt)),o.DomUtil.addClass(s,n),t.keyboard && (s.tabIndex = "0"),this._icon = s,this._initInteraction(),t.riseOnHover && o.DomEvent.on(s,"mouseover",this._bringToFront,this).on(s,"mouseout",this._resetZIndex,this);var r=t.icon.createShadow(this._shadow),h=!1;r !== this._shadow && (this._removeShadow(),h = !0),r && o.DomUtil.addClass(r,n),this._shadow = r,t.opacity < 1 && this._updateOpacity();var l=this._map._panes;a && l.markerPane.appendChild(this._icon),r && h && l.shadowPane.appendChild(this._shadow);},_removeIcon:function _removeIcon(){this.options.riseOnHover && o.DomEvent.off(this._icon,"mouseover",this._bringToFront).off(this._icon,"mouseout",this._resetZIndex),this._map._panes.markerPane.removeChild(this._icon),this._icon = null;},_removeShadow:function _removeShadow(){this._shadow && this._map._panes.shadowPane.removeChild(this._shadow),this._shadow = null;},_setPos:function _setPos(t){o.DomUtil.setPosition(this._icon,t),this._shadow && o.DomUtil.setPosition(this._shadow,t),this._zIndex = t.y + this.options.zIndexOffset,this._resetZIndex();},_updateZIndex:function _updateZIndex(t){this._icon.style.zIndex = this._zIndex + t;},_animateZoom:function _animateZoom(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e);},_initInteraction:function _initInteraction(){if(this.options.clickable){var t=this._icon,e=["dblclick","mousedown","mouseover","mouseout","contextmenu"];o.DomUtil.addClass(t,"leaflet-clickable"),o.DomEvent.on(t,"click",this._onMouseClick,this),o.DomEvent.on(t,"keypress",this._onKeyPress,this);for(var i=0;i < e.length;i++) o.DomEvent.on(t,e[i],this._fireMouseEvent,this);o.Handler.MarkerDrag && (this.dragging = new o.Handler.MarkerDrag(this),this.options.draggable && this.dragging.enable());}},_onMouseClick:function _onMouseClick(t){var e=this.dragging && this.dragging.moved();(this.hasEventListeners(t.type) || e) && o.DomEvent.stopPropagation(t),e || (this.dragging && this.dragging._enabled || !this._map.dragging || !this._map.dragging.moved()) && this.fire(t.type,{originalEvent:t,latlng:this._latlng});},_onKeyPress:function _onKeyPress(t){13 === t.keyCode && this.fire("click",{originalEvent:t,latlng:this._latlng});},_fireMouseEvent:function _fireMouseEvent(t){this.fire(t.type,{originalEvent:t,latlng:this._latlng}),"contextmenu" === t.type && this.hasEventListeners(t.type) && o.DomEvent.preventDefault(t),"mousedown" !== t.type?o.DomEvent.stopPropagation(t):o.DomEvent.preventDefault(t);},setOpacity:function setOpacity(t){return this.options.opacity = t,this._map && this._updateOpacity(),this;},_updateOpacity:function _updateOpacity(){o.DomUtil.setOpacity(this._icon,this.options.opacity),this._shadow && o.DomUtil.setOpacity(this._shadow,this.options.opacity);},_bringToFront:function _bringToFront(){this._updateZIndex(this.options.riseOffset);},_resetZIndex:function _resetZIndex(){this._updateZIndex(0);}}),o.marker = function(t,e){return new o.Marker(t,e);},o.DivIcon = o.Icon.extend({options:{iconSize:[12,12],className:"leaflet-div-icon",html:!1},createIcon:function createIcon(t){var i=t && "DIV" === t.tagName?t:e.createElement("div"),n=this.options;return n.html !== !1?i.innerHTML = n.html:i.innerHTML = "",n.bgPos && (i.style.backgroundPosition = -n.bgPos.x + "px " + -n.bgPos.y + "px"),this._setIconStyles(i,"icon"),i;},createShadow:function createShadow(){return null;}}),o.divIcon = function(t){return new o.DivIcon(t);},o.Map.mergeOptions({closePopupOnClick:!0}),o.Popup = o.Class.extend({includes:o.Mixin.Events,options:{minWidth:50,maxWidth:300,autoPan:!0,closeButton:!0,offset:[0,7],autoPanPadding:[5,5],keepInView:!1,className:"",zoomAnimation:!0},initialize:function initialize(t,e){o.setOptions(this,t),this._source = e,this._animated = o.Browser.any3d && this.options.zoomAnimation,this._isOpen = !1;},onAdd:function onAdd(t){this._map = t,this._container || this._initLayout();var e=t.options.fadeAnimation;e && o.DomUtil.setOpacity(this._container,0),t._panes.popupPane.appendChild(this._container),t.on(this._getEvents(),this),this.update(),e && o.DomUtil.setOpacity(this._container,1),this.fire("open"),t.fire("popupopen",{popup:this}),this._source && this._source.fire("popupopen",{popup:this});},addTo:function addTo(t){return t.addLayer(this),this;},openOn:function openOn(t){return t.openPopup(this),this;},onRemove:function onRemove(t){t._panes.popupPane.removeChild(this._container),o.Util.falseFn(this._container.offsetWidth),t.off(this._getEvents(),this),t.options.fadeAnimation && o.DomUtil.setOpacity(this._container,0),this._map = null,this.fire("close"),t.fire("popupclose",{popup:this}),this._source && this._source.fire("popupclose",{popup:this});},getLatLng:function getLatLng(){return this._latlng;},setLatLng:function setLatLng(t){return this._latlng = o.latLng(t),this._map && (this._updatePosition(),this._adjustPan()),this;},getContent:function getContent(){return this._content;},setContent:function setContent(t){return this._content = t,this.update(),this;}
5,update:function update(){this._map && (this._container.style.visibility = "hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility = "",this._adjustPan());},_getEvents:function _getEvents(){var t={viewreset:this._updatePosition};return this._animated && (t.zoomanim = this._zoomAnimation),("closeOnClick" in this.options?this.options.closeOnClick:this._map.options.closePopupOnClick) && (t.preclick = this._close),this.options.keepInView && (t.moveend = this._adjustPan),t;},_close:function _close(){this._map && this._map.closePopup(this);},_initLayout:function _initLayout(){var t,e="leaflet-popup",i=e + " " + this.options.className + " leaflet-zoom-" + (this._animated?"animated":"hide"),n=this._container = o.DomUtil.create("div",i);this.options.closeButton && (t = this._closeButton = o.DomUtil.create("a",e + "-close-button",n),t.href = "#close",t.innerHTML = "×",o.DomEvent.disableClickPropagation(t),o.DomEvent.on(t,"click",this._onCloseButtonClick,this));var s=this._wrapper = o.DomUtil.create("div",e + "-content-wrapper",n);
5o.DomEvent.disableClickPropagation(s),this._contentNode = o.DomUtil.create("div",e + "-content",s),o.DomEvent.disableScrollPropagation(this._contentNode),o.DomEvent.on(s,"contextmenu",o.DomEvent.stopPropagation),this._tipContainer = o.DomUtil.create("div",e + "-tip-container",n),this._tip = o.DomUtil.create("div",e + "-tip",this._tipContainer);},_updateContent:function _updateContent(){if(this._content){if("string" == typeof this._content)this._contentNode.innerHTML = this._content;else {for(;this._contentNode.hasChildNodes();) this._contentNode.removeChild(this._contentNode.firstChild);this._contentNode.appendChild(this._content);}this.fire("contentupdate");}},_updateLayout:function _updateLayout(){var t=this._contentNode,e=t.style;e.width = "",e.whiteSpace = "nowrap";var i=t.offsetWidth;i = Math.min(i,this.options.maxWidth),i = Math.max(i,this.options.minWidth),e.width = i + 1 + "px",e.whiteSpace = "",e.height = "";var n=t.offsetHeight,s=this.options.maxHeight,a="leaflet-popup-scrolled";s && n > s?(e.height = s + "px",o.DomUtil.addClass(t,a)):o.DomUtil.removeClass(t,a),this._containerWidth = this._container.offsetWidth;},_updatePosition:function _updatePosition(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=this._animated,i=o.point(this.options.offset);e && o.DomUtil.setPosition(this._container,t),this._containerBottom = -i.y - (e?0:t.y),this._containerLeft = -Math.round(this._containerWidth / 2) + i.x + (e?0:t.x),this._container.style.bottom = this._containerBottom + "px",this._container.style.left = this._containerLeft + "px";}},_zoomAnimation:function _zoomAnimation(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);o.DomUtil.setPosition(this._container,e);},_adjustPan:function _adjustPan(){if(this.options.autoPan){var t=this._map,e=this._container.offsetHeight,i=this._containerWidth,n=new o.Point(this._containerLeft,-e - this._containerBottom);this._animated && n._add(o.DomUtil.getPosition(this._container));var s=t.layerPointToContainerPoint(n),a=o.point(this.options.autoPanPadding),r=o.point(this.options.autoPanPaddingTopLeft || a),h=o.point(this.options.autoPanPaddingBottomRight || a),l=t.getSize(),u=0,c=0;s.x + i + h.x > l.x && (u = s.x + i - l.x + h.x),s.x - u - r.x < 0 && (u = s.x - r.x),s.y + e + h.y > l.y && (c = s.y + e - l.y + h.y),s.y - c - r.y < 0 && (c = s.y - r.y),(u || c) && t.fire("autopanstart").panBy([u,c]);}},_onCloseButtonClick:function _onCloseButtonClick(t){this._close(),o.DomEvent.stop(t);}}),o.popup = function(t,e){return new o.Popup(t,e);},o.Map.include({openPopup:function openPopup(t,e,i){if((this.closePopup(),!(t instanceof o.Popup))){var n=t;t = new o.Popup(i).setLatLng(e).setContent(n);}return t._isOpen = !0,this._popup = t,this.addLayer(t);},closePopup:function closePopup(t){return t && t !== this._popup || (t = this._popup,this._popup = null),t && (this.removeLayer(t),t._isOpen = !1),this;}}),o.Marker.include({openPopup:function openPopup(){return this._popup && this._map && !this._map.hasLayer(this._popup) && (this._popup.setLatLng(this._latlng),this._map.openPopup(this._popup)),this;},closePopup:function closePopup(){return this._popup && this._popup._close(),this;},togglePopup:function togglePopup(){return this._popup && (this._popup._isOpen?this.closePopup():this.openPopup()),this;},bindPopup:function bindPopup(t,e){var i=o.point(this.options.icon.options.popupAnchor || [0,0]);return i = i.add(o.Popup.prototype.options.offset),e && e.offset && (i = i.add(e.offset)),e = o.extend({offset:i},e),this._popupHandlersAdded || (this.on("click",this.togglePopup,this).on("remove",this.closePopup,this).on("move",this._movePopup,this),this._popupHandlersAdded = !0),t instanceof o.Popup?(o.setOptions(t,e),this._popup = t,t._source = this):this._popup = new o.Popup(e,this).setContent(t),this;},setPopupContent:function setPopupContent(t){return this._popup && this._popup.setContent(t),this;},unbindPopup:function unbindPopup(){return this._popup && (this._popup = null,this.off("click",this.togglePopup,this).off("remove",this.closePopup,this).off("move",this._movePopup,this),this._popupHandlersAdded = !1),this;},getPopup:function getPopup(){return this._popup;},_movePopup:function _movePopup(t){this._popup.setLatLng(t.latlng);}}),o.LayerGroup = o.Class.extend({initialize:function initialize(t){this._layers = {};var e,i;if(t)for(e = 0,i = t.length;i > e;e++) this.addLayer(t[e]);},addLayer:function addLayer(t){var e=this.getLayerId(t);return this._layers[e] = t,this._map && this._map.addLayer(t),this;},removeLayer:function removeLayer(t){var e=t in this._layers?t:this.getLayerId(t);return this._map && this._layers[e] && this._map.removeLayer(this._layers[e]),delete this._layers[e],this;},hasLayer:function hasLayer(t){return t?t in this._layers || this.getLayerId(t) in this._layers:!1;},clearLayers:function clearLayers(){return this.eachLayer(this.removeLayer,this),this;},invoke:function invoke(t){var e,i,n=Array.prototype.slice.call(arguments,1
5);for(e in this._layers) i = this._layers[e],i[t] && i[t].apply(i,n);return this;},onAdd:function onAdd(t){this._map = t,this.eachLayer(t.addLayer,t);},onRemove:function onRemove(t){this.eachLayer(t.removeLayer,t),this._map = null;},addTo:function addTo(t){return t.addLayer(this),this;},eachLayer:function eachLayer(t,e){for(var i in this._layers) t.call(e,this._layers[i]);return this;},getLayer:function getLayer(t){return this._layers[t];},getLayers:function getLayers(){var t=[];for(var e in this._layers) t.push(this._layers[e]);return t;},setZIndex:function setZIndex(t){return this.invoke("setZIndex",t);},getLayerId:function getLayerId(t){return o.stamp(t);}}),o.layerGroup = function(t){return new o.LayerGroup(t);},o.FeatureGroup = o.LayerGroup.extend({includes:o.Mixin.Events,statics:{EVENTS:"click dblclick mouseover mouseout mousemove contextmenu popupopen popupclose"},addLayer:function addLayer(t){return this.hasLayer(t)?this:("on" in t && t.on(o.FeatureGroup.EVENTS,this._propagateEvent,this),o.LayerGroup.prototype.addLayer.call(this,t),this._popupContent && t.bindPopup && t.bindPopup(this._popupContent,this._popupOptions),this.fire("layeradd",{layer:t}));},removeLayer:function removeLayer(t){return this.hasLayer(t)?(t in this._layers && (t = this._layers[t]),t.off(o.FeatureGroup.EVENTS,this._propagateEvent,this),o.LayerGroup.prototype.removeLayer.call(this,t),this._popupContent && this.invoke("unbindPopup"),this.fire("layerremove",{layer:t})):this;},bindPopup:function bindPopup(t,e){return this._popupContent = t,this._popupOptions = e,this.invoke("bindPopup",t,e);},openPopup:function openPopup(t){for(var e in this._layers) {this._layers[e].openPopup(t);break;}return this;},setStyle:function setStyle(t){return this.invoke("setStyle",t);},bringToFront:function bringToFront(){return this.invoke("bringToFront");},bringToBack:function bringToBack(){return this.invoke("bringToBack");},getBounds:function getBounds(){var t=new o.LatLngBounds();return this.eachLayer(function(e){t.extend(e instanceof o.Marker?e.getLatLng():e.getBounds());}),t;},_propagateEvent:function _propagateEvent(t){t = o.extend({layer:t.target,target:this},t),this.fire(t.type,t);}}),o.featureGroup = function(t){return new o.FeatureGroup(t);},o.Path = o.Class.extend({includes:[o.Mixin.Events],statics:{CLIP_PADDING:(function(){var e=o.Browser.mobile?1280:2e3,i=(e / Math.max(t.outerWidth,t.outerHeight) - 1) / 2;return Math.max(0,Math.min(.5,i));})()},options:{stroke:!0,color:"#0033ff",dashArray:null,lineCap:null,lineJoin:null,weight:5,opacity:.5,fill:!1,fillColor:null,fillOpacity:.2,clickable:!0},initialize:function initialize(t){o.setOptions(this,t);},onAdd:function onAdd(t){this._map = t,this._container || (this._initElements(),this._initEvents()),this.projectLatlngs(),this._updatePath(),this._container && this._map._pathRoot.appendChild(this._container),this.fire("add"),t.on({viewreset:this.projectLatlngs,moveend:this._updatePath},this);},addTo:function addTo(t){return t.addLayer(this),this;},onRemove:function onRemove(t){t._pathRoot.removeChild(this._container),this.fire("remove"),this._map = null,o.Browser.vml && (this._container = null,this._stroke = null,this._fill = null),t.off({viewreset:this.projectLatlngs,moveend:this._updatePath},this);},projectLatlngs:function projectLatlngs(){},setStyle:function setStyle(t){return o.setOptions(this,t),this._container && this._updateStyle(),this;},redraw:function redraw(){return this._map && (this.projectLatlngs(),this._updatePath()),this;}}),o.Map.include({_updatePathViewport:function _updatePathViewport(){var t=o.Path.CLIP_PADDING,e=this.getSize(),i=o.DomUtil.getPosition(this._mapPane),n=i.multiplyBy(-1)._subtract(e.multiplyBy(t)._round()),s=n.add(e.multiplyBy(1 + 2 * t)._round());this._pathViewport = new o.Bounds(n,s);}}),o.Path.SVG_NS = "http://www.w3.org/2000/svg",o.Browser.svg = !(!e.createElementNS || !e.createElementNS(o.Path.SVG_NS,"svg").createSVGRect),o.Path = o.Path.extend({statics:{SVG:o.Browser.svg},bringToFront:function bringToFront(){var t=this._map._pathRoot,e=this._container;return e && t.lastChild !== e && t.appendChild(e),this;},bringToBack:function bringToBack(){var t=this._map._pathRoot,e=this._container,i=t.firstChild;return e && i !== e && t.insertBefore(e,i),this;},getPathString:function getPathString(){},_createElement:function _createElement(t){return e.createElementNS(o.Path.SVG_NS,t);},_initElements:function _initElements(){this._map._initPathRoot(),this._initPath(),this._initStyle();},_initPath:function _initPath(){this._container = this._createElement("g"),this._path = this._createElement("path"),this.options.className && o.DomUtil.addClass(this._path,this.options.className),this._container.appendChild(this._path);},_initStyle:function _initStyle(){this.options.stroke && (this._path.setAttribute("stroke-linejoin","round"),this._path.setAttribute("stroke-linecap","round")),this.options.fill && this._path.setAttribute("fill-rule","evenodd"),this.options.pointerEvents && this._path.setAttribute("pointer-events",this.options.pointerEvents),this.options.clickable || this.options.pointerEvents || this._path.setAttribute("pointer-events","none"),this._updateStyle();},_updateStyle:function _updateStyle(){this.options.stroke?(this._path.setAttribute("stroke",this.options.color),this._path.setAttribute("stroke-opacity",this.options.opacity),this._path.setAttribute("stroke-width",this.options.weight),this.options.dashArray?this._path.setAttribute("stroke-dasharray",this.options.dashArray):this._path.removeAttribute("stroke-dasharray"),this.options.lineCap && this._path.setAttribute("stroke-linecap",this.options.lineCap),this.options.lineJoin && this._path.setAttribute("stroke-linejoin",this.options.lineJoin)):this._path.setAttribute("stroke","none"),this.options.fill?(this._path.setAttribute("fill",this.options.fillColor || this.options.color),this._path.setAttribute("fill-opacity",this.options.fillOpacity)):this._path.setAttribute("fill","none");},_updatePath:function _updatePath(){var t=this.getPathString();t || (t = "M0 0"),this._path.setAttribute("d",t);},_initEvents:function _initEvents(){if(this.options.clickable){(o.Browser.svg || !
5o.Browser.vml) && o.DomUtil.addClass(this._path,"leaflet-clickable"),o.DomEvent.on(this._container,"click",this._onMouseClick,this);for(var t=["dblclick","mousedown","mouseover","mouseout","mousemove","contextmenu"],e=0;e < t.length;e++) o.DomEvent.on(this._container,t[e],this._fireMouseEvent,this);}},_onMouseClick:function _onMouseClick(t){this._map.dragging && this._map.dragging.moved() || this._fireMouseEvent(t);},_fireMouseEvent:function _fireMouseEvent(t){if(this.hasEventListeners(t.type)){var e=this._map,i=e.mouseEventToContainerPoint(t),n=e.containerPointToLayerPoint(i),s=e.layerPointToLatLng(n);this.fire(t.type,{latlng:s,layerPoint:n,containerPoint:i,originalEvent:t}),"contextmenu" === t.type && o.DomEvent.preventDefault(t),"mousemove" !== t.type && o.DomEvent.stopPropagation(t);}}}),o.Map.include({_initPathRoot:function _initPathRoot(){this._pathRoot || (this._pathRoot = o.Path.prototype._createElement("svg"),this._panes.overlayPane.appendChild(this._pathRoot),this.options.zoomAnimation && o.Browser.any3d?(o.DomUtil.addClass(this._pathRoot,"leaflet-zoom-animated"),this.on({zoomanim:this._animatePathZoom,zoomend:this._endPathZoom})):o.DomUtil.addClass(this._pathRoot,"leaflet-zoom-hide"),this.on("moveend",this._updateSvgViewport),this._updateSvgViewport());},_animatePathZoom:function _animatePathZoom(t){var e=this.getZoomScale(t.zoom),i=this._getCenterOffset(t.center)._multiplyBy(-e)._add(this._pathViewport.min);this._pathRoot.style[o.DomUtil.TRANSFORM] = o.DomUtil.getTranslateString(i) + " scale(" + e + ") ",this._pathZooming = !0;},_endPathZoom:function _endPathZoom(){this._pathZooming = !1;},_updateSvgViewport:function _updateSvgViewport(){if(!this._pathZooming){this._updatePathViewport();var t=this._pathViewport,e=t.min,i=t.max,n=i.x - e.x,s=i.y - e.y,a=this._pathRoot,r=this._panes.overlayPane;o.Browser.mobileWebkit && r.removeChild(a),o.DomUtil.setPosition(a,e),a.setAttribute("width",n),a.setAttribute("height",s),a.setAttribute("viewBox",[e.x,e.y,n,s].join(" ")),o.Browser.mobileWebkit && r.appendChild(a);}}}),o.Path.include({bindPopup:function bindPopup(t,e){return t instanceof o.Popup?this._popup = t:((!this._popup || e) && (this._popup = new o.Popup(e,this)),this._popup.setContent(t)),this._popupHandlersAdded || (this.on("click",this._openPopup,this).on("remove",this.closePopup,this),this._popupHandlersAdded = !0),this;},unbindPopup:function unbindPopup(){return this._popup && (this._popup = null,this.off("click",this._openPopup).off("remove",this.closePopup),this._popupHandlersAdded = !1),this;},openPopup:function openPopup(t){return this._popup && (t = t || this._latlng || this._latlngs[Math.floor(this._latlngs.length / 2)],this._openPopup({latlng:t})),this;},closePopup:function closePopup(){return this._popup && this._popup._close(),this;},_openPopup:function _openPopup(t){this._popup.setLatLng(t.latlng),this._map.openPopup(this._popup);}}),o.Browser.vml = !o.Browser.svg && (function(){try{var t=e.createElement("div");t.innerHTML = '<v:shape adj="1"/>';var i=t.firstChild;return i.style.behavior = "url(#default#VML)",i && "object" == typeof i.adj;}catch(n) {return !1;}})(),o.Path = o.Browser.svg || !o.Browser.vml?o.Path:o.Path.extend({statics:{VML:!0,CLIP_PADDING:.02},_createElement:(function(){try{return e.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return e.createElement("<lvml:" + t + ' class="lvml">');};}catch(t) {return function(t){return e.createElement("<" + t + ' xmlns="urn:schemas-microsoft.com:vml" class="lvml">');};}})(),_initPath:function _initPath(){var t=this._container = this._createElement("shape");o.DomUtil.addClass(t,"leaflet-vml-shape" + (this.options.className?" " + this.options.className:"")),this.options.clickable && o.DomUtil.addClass(t,"leaflet-clickable"),t.coordsize = "1 1",this._path = this._createElement("path"),t.appendChild(this._path),this._map._pathRoot.appendChild(t);},_initStyle:function _initStyle(){this._updateStyle();},_updateStyle:function _updateStyle(){var t=this._stroke,e=this._fill,i=this.options,n=this._container;n.stroked = i.stroke,n.filled = i.fill,i.stroke?(t || (t = this._stroke = this._createElement("stroke"),t.endcap = "round",n.appendChild(t)),t.weight = i.weight + "px",t.color = i.color,t.opacity = i.opacity,i.dashArray?t.dashStyle = o.Util.isArray(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):t.dashStyle = "",i.lineCap && (t.endcap = i.lineCap.replace("butt","flat")),i.lineJoin && (t.joinstyle = i.lineJoin)):t && (n.removeChild(t),this._stroke = null),i.fill?(e || (e = this._fill = this._createElement("fill"),n.appendChild(e)),e.color = i.fillColor || i.color,e.opacity = i.fillOpacity):e && (n.removeChild(e),this._fill = null);},_updatePath:function _updatePath(){var t=this._container.style;
5t.display = "none",this._path.v = this.getPathString() + " ",t.display = "";}}),o.Map.include(o.Browser.svg || !o.Browser.vml?{}:{_initPathRoot:function _initPathRoot(){if(!this._pathRoot){var t=this._pathRoot = e.createElement("div");t.className = "leaflet-vml-container",this._panes.overlayPane.appendChild(t),this.on("moveend",this._updatePathViewport),this._updatePathViewport();}}}),o.Browser.canvas = (function(){return !!e.createElement("canvas").getContext;})(),o.Path = o.Path.SVG && !t.L_PREFER_CANVAS || !o.Browser.canvas?o.Path:o.Path.extend({statics:{CANVAS:!0,SVG:!1},redraw:function redraw(){return this._map && (this.projectLatlngs(),this._requestUpdate()),this;},setStyle:function setStyle(t){return o.setOptions(this,t),this._map && (this._updateStyle(),this._requestUpdate()),this;},onRemove:function onRemove(t){t.off("viewreset",this.projectLatlngs,this).off("moveend",this._updatePath,this),this.options.clickable && (this._map.off("click",this._onClick,this),this._map.off("mousemove",this._onMouseMove,this)),this._requestUpdate(),this.fire("remove"),this._map = null;},_requestUpdate:function _requestUpdate(){this._map && !o.Path._updateRequest && (o.Path._updateRequest = o.Util.requestAnimFrame(this._fireMapMoveEnd,this._map));},_fireMapMoveEnd:function _fireMapMoveEnd(){o.Path._updateRequest = null,this.fire("moveend");},_initElements:function _initElements(){this._map._initPathRoot(),this._ctx = this._map._canvasCtx;},_updateStyle:function _updateStyle(){var t=this.options;t.stroke && (this._ctx.lineWidth = t.weight,this._ctx.strokeStyle = t.color),t.fill && (this._ctx.fillStyle = t.fillColor || t.color),t.lineCap && (this._ctx.lineCap = t.lineCap),t.lineJoin && (this._ctx.lineJoin = t.lineJoin);},_drawPath:function _drawPath(){var t,e,i,n,s,a;for(this._ctx.beginPath(),t = 0,i = this._parts.length;i > t;t++) {for(e = 0,n = this._parts[t].length;n > e;e++) s = this._parts[t][e],a = (0 === e?"move":"line") + "To",this._ctx[a](s.x,s.y);this instanceof o.Polygon && this._ctx.closePath();}},_checkIfEmpty:function _checkIfEmpty(){return !this._parts.length;},_updatePath:function _updatePath(){if(!this._checkIfEmpty()){var t=this._ctx,e=this.options;this._drawPath(),t.save(),this._updateStyle(),e.fill && (t.globalAlpha = e.fillOpacity,t.fill(e.fillRule || "evenodd")),e.stroke && (t.globalAlpha = e.opacity,t.stroke()),t.restore();}},_initEvents:function _initEvents(){this.options.clickable && (this._map.on("mousemove",this._onMouseMove,this),this._map.on("click dblclick contextmenu",this._fireMouseEvent,this));},_fireMouseEvent:function _fireMouseEvent(t){this._containsPoint(t.layerPoint) && this.fire(t.type,t);},_onMouseMove:function _onMouseMove(t){this._map && !this._map._animatingZoom && (this._containsPoint(t.layerPoint)?(this._ctx.canvas.style.cursor = "pointer",this._mouseInside = !0,this.fire("mouseover",t)):this._mouseInside && (this._ctx.canvas.style.cursor = "",this._mouseInside = !1,this.fire("mouseout",t)));}}),o.Map.include(o.Path.SVG && !t.L_PREFER_CANVAS || !o.Browser.canvas?{}:{_initPathRoot:function _initPathRoot(){var t,i=this._pathRoot;i || (i = this._pathRoot = e.createElement("canvas"),i.style.position = "absolute",t = this._canvasCtx = i.getContext("2d"),t.lineCap = "round",t.lineJoin = "round",this._panes.overlayPane.appendChild(i),this.options.zoomAnimation && (this._pathRoot.className = "leaflet-zoom-animated",this.on("zoomanim",this._animatePathZoom),this.on("zoomend",this._endPathZoom)),this.on("moveend",this._updateCanvasViewport),this._updateCanvasViewport());},_updateCanvasViewport:function _updateCanvasViewport(){if(!this._pathZooming){this._updatePathViewport();var t=this._pathViewport,e=t.min,i=t.max.subtract(e),n=this._pathRoot;o.DomUtil.setPosition(n,e),n.width = i.x,n.height = i.y,n.getContext("2d").translate(-e.x,-e.y);}}}),o.LineUtil = {simplify:function simplify(t,e){if(!e || !t.length)return t.slice();var i=e * e;return t = this._reducePoints(t,i),t = this._simplifyDP(t,i);},pointToSegmentDistance:function pointToSegmentDistance(t,e,i){return Math.sqrt(this._sqClosestPointOnSegment(t,e,i,!0));},closestPointOnSegment:function closestPointOnSegment(t,e,i){return this._sqClosestPointOnSegment(t,e,i);},_simplifyDP:function _simplifyDP(t,e){var n=t.length,o=typeof Uint8Array != i + ""?Uint8Array:Array,s=new o(n);s[0] = s[n - 1] = 1,this._simplifyDPStep(t,s,e,0,n - 1);var a,r=[];for(a = 0;n > a;a++) s[a] && r.push(t[a]);return r;},_simplifyDPStep:function _simplifyDPStep(t,e,i,n,o){var s,a,r,h=0;for(a = n + 1;o - 1 >= a;a++) r = this._sqClosestPointOnSegment(t[a],t[n],t[o],!0),r > h && (s = a,h = r);h > i && (e[s] = 1,this._simplifyDPStep(t,e,i,n,s),this._simplifyDPStep(t,e,i,s,o));},_reducePoints:function _reducePoints(t,e){for(var i=[t[0]],n=1,o=0,s=t.length;s > n;n++) this._sqDist(t[n],t[o]) > e && (i.push(t[n]),o = n);return s - 1 > o && i.push(t[s - 1]),i;},clipSegment:function clipSegment(t,e,i,n){var o,s,a,r=n?this._lastCode:this._getBitCode(t,i),h=this._getBitCode(e,i);for(this._lastCode = h;;) {if(!(r | h))return [t,e];if(r & h)return !1;o = r || h,s = this._getEdgeIntersection(t,e,o,i),a = this._getBitCode(s,i),o === r?(t = s,r = a):(e = s,h = a);}}
5,_getEdgeIntersection:function _getEdgeIntersection(t,e,i,n){var s=e.x - t.x,a=e.y - t.y,r=n.min,h=n.max;return 8 & i?new o.Point(t.x + s * (h.y - t.y) / a,h.y):4 & i?new o.Point(t.x + s * (r.y - t.y) / a,r.y):2 & i?new o.Point(h.x,t.y + a * (h.x - t.x) / s):1 & i?new o.Point(r.x,t.y + a * (r.x - t.x) / s):void 0;},_getBitCode:function _getBitCode(t,e){var i=0;return t.x < e.min.x?i |= 1:t.x > e.max.x && (i |= 2),t.y < e.min.y?i |= 4:t.y > e.max.y && (i |= 8),i;},_sqDist:function _sqDist(t,e){var i=e.x - t.x,n=e.y - t.y;return i * i + n * n;},_sqClosestPointOnSegment:function _sqClosestPointOnSegment(t,e,i,n){var s,a=e.x,r=e.y,h=i.x - a,l=i.y - r,u=h * h + l * l;return u > 0 && (s = ((t.x - a) * h + (t.y - r) * l) / u,s > 1?(a = i.x,r = i.y):s > 0 && (a += h * s,r += l * s)),h = t.x - a,l = t.y - r,n?h * h + l * l:new o.Point(a,r);}},o.Polyline = o.Path.extend({initialize:function initialize(t,e){o.Path.prototype.initialize.call(this,e),this._latlngs = this._convertLatLngs(t);},options:{smoothFactor:1,noClip:!1},projectLatlngs:function projectLatlngs(){this._originalPoints = [];for(var t=0,e=this._latlngs.length;e > t;t++) this._originalPoints[t] = this._map.latLngToLayerPoint(this._latlngs[t]);},getPathString:function getPathString(){for(var t=0,e=this._parts.length,i="";e > t;t++) i += this._getPathPartStr(this._parts[t]);return i;},getLatLngs:function getLatLngs(){return this._latlngs;},setLatLngs:function setLatLngs(t){return this._latlngs = this._convertLatLngs(t),this.redraw();},addLatLng:function addLatLng(t){return this._latlngs.push(o.latLng(t)),this.redraw();},spliceLatLngs:function spliceLatLngs(){var t=[].splice.apply(this._latlngs,arguments);return this._convertLatLngs(this._latlngs,!0),this.redraw(),t;},closestLayerPoint:function closestLayerPoint(t){for(var e,i,n=1 / 0,s=this._parts,a=null,r=0,h=s.length;h > r;r++) for(var l=s[r],u=1,c=l.length;c > u;u++) {e = l[u - 1],i = l[u];var d=o.LineUtil._sqClosestPointOnSegment(t,e,i,!0);n > d && (n = d,a = o.LineUtil._sqClosestPointOnSegment(t,e,i));}return a && (a.distance = Math.sqrt(n)),a;},getBounds:function getBounds(){return new o.LatLngBounds(this.getLatLngs());},_convertLatLngs:function _convertLatLngs(t,e){var i,n,s=e?t:[];for(i = 0,n = t.length;n > i;i++) {if(o.Util.isArray(t[i]) && "number" != typeof t[i][0])return;s[i] = o.latLng(t[i]);}return s;},_initEvents:function _initEvents(){o.Path.prototype._initEvents.call(this);},_getPathPartStr:function _getPathPartStr(t){for(var e,i=o.Path.VML,n=0,s=t.length,a="";s > n;n++) e = t[n],i && e._round(),a += (n?"L":"M") + e.x + " " + e.y;return a;},_clipPoints:function _clipPoints(){var t,e,i,n=this._originalPoints,s=n.length;if(this.options.noClip)return void (this._parts = [n]);this._parts = [];var a=this._parts,r=this._map._pathViewport,h=o.LineUtil;for(t = 0,e = 0;s - 1 > t;t++) i = h.clipSegment(n[t],n[t + 1],r,t),i && (a[e] = a[e] || [],a[e].push(i[0]),(i[1] !== n[t + 1] || t === s - 2) && (a[e].push(i[1]),e++));},_simplifyPoints:function _simplifyPoints(){for(var t=this._parts,e=o.LineUtil,i=0,n=t.length;n > i;i++) t[i] = e.simplify(t[i],this.options.smoothFactor);},_updatePath:function _updatePath(){this._map && (this._clipPoints(),this._simplifyPoints(),o.Path.prototype._updatePath.call(this));}}),o.polyline = function(t,e){return new o.Polyline(t,e);},o.PolyUtil = {},o.PolyUtil.clipPolygon = function(t,e){var i,n,s,a,r,h,l,u,c,d=[1,4,2,8],p=o.LineUtil;for(n = 0,l = t.length;l > n;n++) t[n]._code = p._getBitCode(t[n],e);for(a = 0;4 > a;a++) {for(u = d[a],i = [],n = 0,l = t.length,s = l - 1;l > n;s = n++) r = t[n],h = t[s],r._code & u?h._code & u || (c = p._getEdgeIntersection(h,r,u,e),c._code = p._getBitCode(c,e),i.push(c)):(h._code & u && (c = p._getEdgeIntersection(h,r,u,e),c._code = p._getBitCode(c,e),i.push(c)),i.push(r));t = i;}return t;},o.Polygon = o.Polyline.extend({options:{fill:!0},initialize:function initialize(t,e){o.Polyline.prototype.initialize.call(this,t,e),this._initWithHoles(t);},_initWithHoles:function _initWithHoles(t){var e,i,n;if(t && o.Util.isArray(t[0]) && "number" != typeof t[0][0])for(this._latlngs = this._convertLatLngs(t[0]),this._holes = t.slice(1),e = 0,i = this._holes.length;i > e;e++) n = this._holes[e] = this._convertLatLngs(this._holes[e]),n[0].equals(n[n.length - 1]) && n.pop();t = this._latlngs,t.length >= 2 && t[0].equals(t[t.length - 1]) && t.pop();},projectLatlngs:function projectLatlngs(){if((o.Polyline.prototype.projectLatlngs.call(this),this._holePoints = [],this._holes)){var t,e,i,n;for(t = 0,i = this._holes.length;i > t;t++) for(this._holePoints[t] = [],e = 0,n = this._holes[t].length;n > e;e++) this._holePoints[t][e] = this._map.latLngToLayerPoint(this._holes[t][e]);}},setLatLngs:function setLatLngs(t){return t && o.Util.isArray(t[0]) && "number" != typeof t[0][0]?(this._initWithHoles(t),this.redraw()):o.Polyline.prototype.setLatLngs.call(this,t);},_clipPoints:function _clipPoints(){var t=this._originalPoints,e=[];
5if((this._parts = [t].concat(this._holePoints),!this.options.noClip)){for(var i=0,n=this._parts.length;n > i;i++) {var s=o.PolyUtil.clipPolygon(this._parts[i],this._map._pathViewport);s.length && e.push(s);}this._parts = e;}},_getPathPartStr:function _getPathPartStr(t){var e=o.Polyline.prototype._getPathPartStr.call(this,t);return e + (o.Browser.svg?"z":"x");}}),o.polygon = function(t,e){return new o.Polygon(t,e);},(function(){function t(t){return o.FeatureGroup.extend({initialize:function initialize(t,e){this._layers = {},this._options = e,this.setLatLngs(t);},setLatLngs:function setLatLngs(e){var i=0,n=e.length;for(this.eachLayer(function(t){n > i?t.setLatLngs(e[i++]):this.removeLayer(t);},this);n > i;) this.addLayer(new t(e[i++],this._options));return this;},getLatLngs:function getLatLngs(){var t=[];return this.eachLayer(function(e){t.push(e.getLatLngs());}),t;}});}o.MultiPolyline = t(o.Polyline),o.MultiPolygon = t(o.Polygon),o.multiPolyline = function(t,e){return new o.MultiPolyline(t,e);},o.multiPolygon = function(t,e){return new o.MultiPolygon(t,e);};})(),o.Rectangle = o.Polygon.extend({initialize:function initialize(t,e){o.Polygon.prototype.initialize.call(this,this._boundsToLatLngs(t),e);},setBounds:function setBounds(t){this.setLatLngs(this._boundsToLatLngs(t));},_boundsToLatLngs:function _boundsToLatLngs(t){return t = o.latLngBounds(t),[t.getSouthWest
5(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()];}}),o.rectangle = function(t,e){return new o.Rectangle(t,e);},o.Circle = o.Path.extend({initialize:function initialize(t,e,i){o.Path.prototype.initialize.call(this,i),this._latlng = o.latLng(t),this._mRadius = e;},options:{fill:!0},setLatLng:function setLatLng(t){return this._latlng = o.latLng(t),this.redraw();},setRadius:function setRadius(t){return this._mRadius = t,this.redraw();},projectLatlngs:function projectLatlngs(){var t=this._getLngRadius(),e=this._latlng,i=this._map.latLngToLayerPoint([e.lat,e.lng - t]);this._point = this._map.latLngToLayerPoint(e),this._radius = Math.max(this._point.x - i.x,1);},getBounds:function getBounds(){var t=this._getLngRadius(),e=this._mRadius / 40075017 * 360,i=this._latlng;return new o.LatLngBounds([i.lat - e,i.lng - t],[i.lat + e,i.lng + t]);},getLatLng:function getLatLng(){return this._latlng;},getPathString:function getPathString(){var t=this._point,e=this._radius;return this._checkIfEmpty()?"":o.Browser.svg?"M" + t.x + "," + (t.y - e) + "A" + e + "," + e + ",0,1,1," + (t.x - .1) + "," + (t.y - e) + " z":(t._round(),e = Math.round(e),"AL " + t.x + "," + t.y + " " + e + "," + e + " 0,23592600");},getRadius:function getRadius(){return this._mRadius;},_getLatRadius:function _getLatRadius(){return this._mRadius / 40075017 * 360;},_getLngRadius:function _getLngRadius(){return this._getLatRadius() / Math.cos(o.LatLng.DEG_TO_RAD * this._latlng.lat);},_checkIfEmpty:function _checkIfEmpty(){if(!this._map)return !1;var t=this._map._pathViewport,e=this._radius,i=this._point;return i.x - e > t.max.x || i.y - e > t.max.y || i.x + e < t.min.x || i.y + e < t.min.y;}}),o.circle = function(t,e,i){return new o.Circle(t,e,i);},o.CircleMarker = o.Circle.extend({options:{radius:10,weight:2},initialize:function initialize(t,e){o.Circle.prototype.initialize.call(this,t,null,e),this._radius = this.options.radius;},projectLatlngs:function projectLatlngs(){this._point = this._map.latLngToLayerPoint(this._latlng);},_updateStyle:function _updateStyle(){o.Circle.prototype._updateStyle.call(this),this.setRadius(this.options.radius);},setLatLng:function setLatLng(t){return o.Circle.prototype.setLatLng.call(this,t),this._popup && this._popup._isOpen && this._popup.setLatLng(t),this;},setRadius:function setRadius(t){return this.options.radius = this._radius = t,this.redraw();},getRadius:function getRadius(){return this._radius;}}),o.circleMarker = function(t,e){return new o.CircleMarker(t,e);},o.Polyline.include(o.Path.CANVAS?{_containsPoint:function _containsPoint(t,e){var i,n,s,a,r,h,l,u=this.options.weight / 2;for(o.Browser.touch && (u += 10),i = 0,a = this._parts.length;a > i;i++) for(l = this._parts[i],n = 0,r = l.length,s = r - 1;r > n;s = n++) if((e || 0 !== n) && (h = o.LineUtil.pointToSegmentDistance(t,l[s],l[n]),u >= h))return !0;return !1;}}:{}),o.Polygon.include(o.Path.CANVAS?{_containsPoint:function _containsPoint(t){var e,i,n,s,a,r,h,l,u=!1;if(o.Polyline.prototype._containsPoint.call(this,t,!0))return !0;for(s = 0,h = this._parts.length;h > s;s++) for(e = this._parts[s],a = 0,l = e.length,r = l - 1;l > a;r = a++) i = e[a],n = e[r],i.y > t.y != n.y > t.y && t.x < (n.x - i.x) * (t.y - i.y) / (n.y - i.y) + i.x && (u = !u);return u;}}:{}),o.Circle.include(o.Path.CANVAS?{_drawPath:function _drawPath(){var t=this._point;this._ctx.beginPath(),this._ctx.arc(t.x,t.y,this._radius,0,2 * Math.PI,!1);},_containsPoint:function _containsPoint(t){var e=this._point,i=this.options.stroke?this.options.weight / 2:0;return t.distanceTo(e) <= this._radius + i;}}:{}),o.CircleMarker.include(o.Path.CANVAS?{_updateStyle:function _updateStyle(){o.Path.prototype._updateStyle.call(this);}}:{}),o.GeoJSON = o.FeatureGroup.extend({initialize:function initialize(t,e){o.setOptions(this,e),this._layers = {},t && this.addData(t);},addData:function addData(t){var e,i,n,s=o.Util.isArray(t)?t:t.features;if(s){for(e = 0,i = s.length;i > e;e++) n = s[e],(n.geometries || n.geometry || n.features || n.coordinates) && this.addData(s[e]);return this;}var a=this.options;if(!a.filter || a.filter(t)){var r=o.GeoJSON.geometryToLayer(t,a.pointToLayer,a.coordsToLatLng,a);return r.feature = o.GeoJSON.asFeature(t),r.defaultOptions = r.options,this.resetStyle(r),a.onEachFeature && a.onEachFeature(t,r),this.addLayer(r);}},resetStyle:function resetStyle(t){var e=this.options.style;e && (o.Util.extend(t.options,t.defaultOptions),this._setLayerStyle(t,e));},setStyle:function setStyle(t){this.eachLayer(function(e){this._setLayerStyle(e,t);},this);},_setLayerStyle:function _setLayerStyle(t,e){"function" == typeof e && (e = e(t.feature)),t.setStyle && t.setStyle(e);}}),o.extend(o.GeoJSON,{geometryToLayer:function geometryToLayer(t,e,i,n){var s,a,r,h,l="Feature" === t.type?t.geometry:t,u=l.coordinates,c=[];switch((i = i || this.coordsToLatLng,l.type)){case "Point":return s = i(u),e?e(t,s):new o.Marker(s);case "MultiPoint":for(r = 0,h = u.length;h > r;r++) s = i(u[r]),c.push(e?e(t,s):new o.Marker(s));return new o.FeatureGroup(c);case "LineString":return a = this.coordsToLatLngs(u,0,i),new o.Polyline(a,n);case "Polygon":if(2 === u.length && !u[1].length)throw new Error("Invalid GeoJSON object.");return a = this.coordsToLatLngs(u,1,i),new o.Polygon(a,n);case "MultiLineString":return a = this.coordsToLatLngs(u,1,i),new o.MultiPolyline(a,n);case "MultiPolygon":return a = this.coordsToLatLngs(u,2,i),new o.MultiPolygon(a,n);case "GeometryCollection":for(r = 0,h = l.geometries.length;h > r;r++) c.push(this.geometryToLayer({geometry:l.geometries[r],type:"Feature",properties:t.properties},e,i,n));return new o.FeatureGroup(c);default:throw new Error("Invalid GeoJSON object.");}},coordsToLatLng:function coordsToLatLng(t){return new o.LatLng(t[1],t[0],t[2]);},coordsToLatLngs:function coordsToLatLngs(t,e,i){var n,o,s,a=[];for(o = 0,s = t.length;s > o;o++) n = e?this.coordsToLatLngs(t[o],e - 1,i):(i || this.coordsToLatLng)(t[o]),a.push(n);return a;},latLngToCoords:function latLngToCoords(t){var e=[t.lng,t.lat];return t.alt !== i && e.push(t.alt),e;},latLngsToCoords:function latLngsToCoords(t){for(var e=[],i=0,n=t.length;n > i;i++) e.push(o.GeoJSON.latLngToCoords(t[i]));return e;},getFeature:function getFeature(t,e){return t.feature?o.extend({},t.feature,{geometry:e}):o.GeoJSON.asFeature(e);},asFeature:function asFeature(t){return "Feature" === t.type?t:{type:"Feature",properties:{},geometry:t};}});var a={toGeoJSON:function toGeoJSON(){return o.GeoJSON.getFeature(this,{type:"Point",coordinates:o.GeoJSON.latLngToCoords(this.getLatLng())});}}
5;o.Marker.include(a),o.Circle.include(a),o.CircleMarker.include(a),o.Polyline.include({toGeoJSON:function toGeoJSON(){return o.GeoJSON.getFeature(this,{type:"LineString",coordinates:o.GeoJSON.latLngsToCoords(this.getLatLngs())});}}),o.Polygon.include({toGeoJSON:function toGeoJSON(){var t,e,i,n=[o.GeoJSON.latLngsToCoords(this.getLatLngs())];if((n[0].push(n[0][0]),this._holes))for(t = 0,e = this._holes.length;e > t;t++) i = o.GeoJSON.latLngsToCoords(this._holes[t]),i.push(i[0]),n.push(i);return o.GeoJSON.getFeature(this,{type:"Polygon",coordinates:n});}}),(function(){function t(t){return function(){var e=[];return this.eachLayer(function(t){e.push(t.toGeoJSON().geometry.coordinates);}),o.GeoJSON.getFeature(this,{type:t,coordinates:e});};}o.MultiPolyline.include({toGeoJSON:t("MultiLineString")}),o.MultiPolygon.include({toGeoJSON:t("MultiPolygon")}),o.LayerGroup.include({toGeoJSON:function toGeoJSON(){var e,i=this.feature && this.feature.geometry,n=[];if(i && "MultiPoint" === i.type)return t("MultiPoint").call(this);var s=i && "GeometryCollection" === i.type;return this.eachLayer(function(t){t.toGeoJSON && (e = t.toGeoJSON(),n.push(s?e.geometry:o.GeoJSON.asFeature(e)));}),s?o.GeoJSON.getFeature(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n};}});})(),o.geoJson = function(t,e){return new o.GeoJSON(t,e);},o.DomEvent = {addListener:function addListener(t,e,i,n){var s,a,r,h=o.stamp(i),l="_leaflet_" + e + h;return t[l]?this:(s = function(e){return i.call(n || t,e || o.DomEvent._getEvent());},o.Browser.pointer && 0 === e.indexOf("touch")?this.addPointerListener(t,e,s,h):(o.Browser.touch && "dblclick" === e && this.addDoubleTapListener && this.addDoubleTapListener(t,s,h),"addEventListener" in t?"mousewheel" === e?(t.addEventListener("DOMMouseScroll",s,!1),t.addEventListener(e,s,!1)):"mouseenter" === e || "mouseleave" === e?(a = s,r = "mouseenter" === e?"mouseover":"mouseout",s = function(e){return o.DomEvent._checkMouse(t,e)?a(e):void 0;},t.addEventListener(r,s,!1)):"click" === e && o.Browser.android?(a = s,s = function(t){return o.DomEvent._filterClick(t,a);},t.addEventListener(e,s,!1)):t.addEventListener(e,s,!1):"attachEvent" in t && t.attachEvent("on" + e,s),t[l] = s,this));},removeListener:function removeListener(t,e,i){var n=o.stamp(i),s="_leaflet_" + e + n,a=t[s];return a?(o.Browser.pointer && 0 === e.indexOf("touch")?this.removePointerListener(t,e,n):o.Browser.touch && "dblclick" === e && this.removeDoubleTapListener?this.removeDoubleTapListener(t,n):"removeEventListener" in t?"mousewheel" === e?(t.removeEventListener("DOMMouseScroll",a,!1),t.removeEventListener(e,a,!1)):"mouseenter" === e || "mouseleave" === e?t.removeEventListener("mouseenter" === e?"mouseover":"mouseout",a,!1):t.removeEventListener(e,a,!1):"detachEvent" in t && t.detachEvent("on" + e,a),t[s] = null,this):this;},stopPropagation:function stopPropagation(t){return t.stopPropagation?t.stopPropagation():t.cancelBubble = !0,o.DomEvent._skipped(t),this;},disableScrollPropagation:function disableScrollPropagation(t){var e=o.DomEvent.stopPropagation;return o.DomEvent.on(t,"mousewheel",e).on(t,"MozMousePixelScroll",e);},disableClickPropagation:function disableClickPropagation(t){for(var e=o.DomEvent.stopPropagation,i=o.Draggable.START.length - 1;i >= 0;i--) o.DomEvent.on(t,o.Draggable.START[i],e);return o.DomEvent.on(t,"click",o.DomEvent._fakeStop).on(t,"dblclick",e);},preventDefault:function preventDefault(t){return t.preventDefault?t.preventDefault():t.returnValue = !1,this;},stop:function stop(t){return o.DomEvent.preventDefault(t).stopPropagation(t);},getMousePosition:function getMousePosition(t,e){if(!e)return new o.Point(t.clientX,t.clientY);var i=e.getBoundingClientRect();return new o.Point(t.clientX - i.left - e.clientLeft,t.clientY - i.top - e.clientTop);},getWheelDelta:function getWheelDelta(t){var e=0;return t.wheelDelta && (e = t.wheelDelta / 120),t.detail && (e = -t.detail / 3),e;},_skipEvents:{},_fakeStop:function _fakeStop(t){o.DomEvent._skipEvents[t.type] = !0;},_skipped:function _skipped(t){var e=this._skipEvents[t.type];return this._skipEvents[t.type] = !1,e;},_checkMouse:function _checkMouse(t,e){var i=e.relatedTarget;if(!i)return !0;try{for(;i && i !== t;) i = i.parentNode;}catch(n) {return !1;}return i !== t;},_getEvent:function _getEvent(){var e=t.event;if(!e)for(var i=arguments.callee.caller;i && (e = i.arguments[0],!e || t.Event !== e.constructor);) i = i.caller;return e;},_filterClick:function _filterClick(t,e){var i=t.timeStamp || t.originalEvent.timeStamp,n=o.DomEvent._lastClick && i - o.DomEvent._lastClick;return n && n > 100 && 500 > n || t.target._simulatedClick && !t._simulated?void o.DomEvent.stop(t):(o.DomEvent._lastClick = i,e(t));}},o.DomEvent.on = o.DomEvent.addListener,o.DomEvent.off = o.DomEvent.removeListener,o.Draggable = o.Class.extend({includes:o.Mixin.Events,statics:{START:o.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 initialize(t,e){this._element = t,this._dragStartTarget = e || t;},enable:function enable(){if(!this._enabled){for(var t=o.Draggable.START.length - 1;t >= 0;t--) o.DomEvent.on(this._dragStartTarget,o.Draggable.START[t],this._onDown,this);this._enabled = !0;}},disable:function disable(){if(this._enabled){for(var t=o.Draggable.START.length - 1;t >= 0;t--) o.DomEvent.off(this._dragStartTarget,o.Draggable.START[t],this._onDown,this);this._enabled = !1,this._moved = !1;}},_onDown:function _onDown(t){if((this._moved = !1,!(t.shiftKey || 1 !== t.which && 1 !== t.button && !t.touches || (o.DomEvent.stopPropagation(t),o.Draggable._disabled || (o.DomUtil.disableImageDrag(),o.DomUtil.disableTextSelection(),this._moving))))){var i=t.touches?t.touches[0]:t;this._startPoint = new o.Point(i.clientX,i.clientY),this._startPos = this._newPos = o.DomUtil.getPosition(this._element),o.DomEvent.on(e,o.Draggable.MOVE[t.type],this._onMove,this).on(e,o.Draggable.END[t.type],this._onUp,this);}},_onMove:function _onMove(t){if(t.touches && t.touches.length > 1)return void (this._moved = !0);var i=t.touches && 1 === t.touches.length?t.touches[0]:t,n=new o.Point(i.clientX,i.clientY),s=n.subtract(this._startPoint);(s.x || s.y) && (o.Browser.touch && Math.abs(s.x) + Math.abs(s.y) < 3 || (o.DomEvent.preventDefault(t),this._moved || (this.fire("dragstart"),this._moved = !0,this._startPos = o.DomUtil.getPosition(this._element).subtract(s),o.DomUtil.addClass(e.body,"leaflet-dragging"),this._lastTarget = t.target || t.srcElement,o.DomUtil.addClass(this._lastTarget,"leaflet-drag-target")),this._newPos = this._startPos.add(s),this._moving = !0,o.Util.cancelAnimFrame
5(this._animRequest),this._animRequest = o.Util.requestAnimFrame(this._updatePosition,this,!0,this._dragStartTarget)));},_updatePosition:function _updatePosition(){this.fire("predrag"),o.DomUtil.setPosition(this._element,this._newPos),this.fire("drag");},_onUp:function _onUp(){o.DomUtil.removeClass(e.body,"leaflet-dragging"),this._lastTarget && (o.DomUtil.removeClass(this._lastTarget,"leaflet-drag-target"),this._lastTarget = null);for(var t in o.Draggable.MOVE) o.DomEvent.off(e,o.Draggable.MOVE[t],this._onMove).off(e,o.Draggable.END[t],this._onUp);o.DomUtil.enableImageDrag(),o.DomUtil.enableTextSelection(),this._moved && this._moving && (o.Util.cancelAnimFrame(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving = !1;}}),o.Handler = o.Class.extend({initialize:function initialize(t){this._map = t;},enable:function enable(){this._enabled || (this._enabled = !0,this.addHooks());},disable:function disable(){this._enabled && (this._enabled = !1,this.removeHooks());},enabled:function enabled(){return !!this._enabled;}}),o.Map.mergeOptions({dragging:!0,inertia:!o.Browser.android23,inertiaDeceleration:3400,inertiaMaxSpeed:1 / 0,inertiaThreshold:o.Browser.touch?32:18,easeLinearity:.25,worldCopyJump:!1}),o.Map.Drag = o.Handler.extend({addHooks:function addHooks(){if(!this._draggable){var t=this._map;this._draggable = new o.Draggable(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),t.options.worldCopyJump && (this._draggable.on("predrag",this._onPreDrag,this),t.on("viewreset",this._onViewReset,this),t.whenReady(this._onViewReset,this));}this._draggable.enable();},removeHooks:function removeHooks(){this._draggable.disable();},moved:function moved(){return this._draggable && this._draggable._moved;},_onDragStart:function _onDragStart(){var t=this._map;t._panAnim && t._panAnim.stop(),t.fire("movestart").fire("dragstart"),t.options.inertia && (this._positions = [],this._times = []);},_onDrag:function _onDrag(){if(this._map.options.inertia){var t=this._lastTime = +new Date(),e=this._lastPos = this._draggable._newPos;this._positions.push(e),this._times.push(t),t - this._times[0] > 200 && (this._positions.shift(),this._times.shift());}this._map.fire("move").fire("drag");},_onViewReset:function _onViewReset(){var t=this._map.getSize()._divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset = e.subtract(t).x,this._worldWidth = this._map.project([0,180]).x;},_onPreDrag:function _onPreDrag(){var t=this._worldWidth,e=Math.round(t / 2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n - e + i) % t + e - i,s=(n + e + i) % t - e - i,a=Math.abs(o + i) < Math.abs(s + i)?o:s;this._draggable._newPos.x = a;},_onDragEnd:function _onDragEnd(t){var e=this._map,i=e.options,n=+new Date() - this._lastTime,s=!i.inertia || n > i.inertiaThreshold || !this._positions[0];if((e.fire("dragend",t),s))e.fire("moveend");else {var a=this._lastPos.subtract(this._positions[0]),r=(this._lastTime + n - this._times[0]) / 1e3,h=i.easeLinearity,l=a.multiplyBy(h / r),u=l.distanceTo([0,0]),c=Math.min(i.inertiaMaxSpeed,u),d=l.multiplyBy(c / u),p=c / (i.inertiaDeceleration * h),_=d.multiplyBy(-p / 2).round();_.x && _.y?(_ = e._limitOffset(_,e.options.maxBounds),o.Util.requestAnimFrame(function(){e.panBy(_,{duration:p,easeLinearity:h,noMoveStart:!0});})):e.fire("moveend");}}}),o.Map.addInitHook("addHandler","dragging",o.Map.Drag),o.Map.mergeOptions({doubleClickZoom:!0}),o.Map.DoubleClickZoom = o.Handler.extend({addHooks:function addHooks(){this._map.on("dblclick",this._onDoubleClick,this);},removeHooks:function removeHooks(){this._map.off("dblclick",this._onDoubleClick,this);},_onDoubleClick:function _onDoubleClick(t){var e=this._map,i=e.getZoom() + (t.originalEvent.shiftKey?-1:1);"center" === e.options.doubleClickZoom?e.setZoom(i):e.setZoomAround(t.containerPoint,i);}}),o.Map.addInitHook("addHandler","doubleClickZoom",o.Map.DoubleClickZoom),o.Map.mergeOptions({scrollWheelZoom:!0}),o.Map.ScrollWheelZoom = o.Handler.extend({addHooks:function addHooks(){o.DomEvent.on(this._map._container,"mousewheel",this._onWheelScroll,this),o.DomEvent.on(this._map._container,"MozMousePixelScroll",o.DomEvent.preventDefault),this._delta = 0;},removeHooks:function removeHooks(){o.DomEvent.off(this._map._container,"mousewheel",this._onWheelScroll),o.DomEvent.off(this._map._container,"MozMousePixelScroll",o.DomEvent.preventDefault);},_onWheelScroll:function _onWheelScroll(t){var e=o.DomEvent.getWheelDelta(t);this._delta += e,this._lastMousePos = this._map.mouseEventToContainerPoint(t),this._startTime || (this._startTime = +new Date());var i=Math.max(40 - (+new Date() - this._startTime),0);clearTimeout(this._timer),this._timer = setTimeout(o.bind(this._performZoom,this),i),o.DomEvent.preventDefault(t),o.DomEvent.stopPropagation(t);},_performZoom:function _performZoom(){var t=this._map,e=this._delta,i=t.getZoom();e = e >
5 0?Math.ceil(e):Math.floor(e),e = Math.max(Math.min(e,4),-4),e = t._limitZoom(i + e) - i,this._delta = 0,this._startTime = null,e && ("center" === t.options.scrollWheelZoom?t.setZoom(i + e):t.setZoomAround(this._lastMousePos,i + e));}}),o.Map.addInitHook("addHandler","scrollWheelZoom",o.Map.ScrollWheelZoom),o.extend(o.DomEvent,{_touchstart:o.Browser.msPointer?"MSPointerDown":o.Browser.pointer?"pointerdown":"touchstart",_touchend:o.Browser.msPointer?"MSPointerUp":o.Browser.pointer?"pointerup":"touchend",addDoubleTapListener:function addDoubleTapListener(t,i,n){function s(t){var e;if((o.Browser.pointer?(_.push(t.pointerId),e = _.length):e = t.touches.length,!(e > 1))){var i=Date.now(),n=i - (r || i);h = t.touches?t.touches[0]:t,l = n > 0 && u >= n,r = i;}}function a(t){if(o.Browser.pointer){var e=_.indexOf(t.pointerId);if(-1 === e)return;_.splice(e,1);}if(l){if(o.Browser.pointer){var n,s={};for(var a in h) n = h[a],"function" == typeof n?s[a] = n.bind(h):s[a] = n;h = s;}h.type = "dblclick",i(h),r = null;}}var r,h,l=!1,u=250,c="_leaflet_",d=this._touchstart,p=this._touchend,_=[];t[c + d + n] = s,t[c + p + n] = a;var m=o.Browser.pointer?e.documentElement:t;return t.addEventListener(d,s,!1),m.addEventListener(p,a,!1),o.Browser.pointer && m.addEventListener(o.DomEvent.POINTER_CANCEL,a,!1),this;},removeDoubleTapListener:function removeDoubleTapListener(t,i){var n="_leaflet_";return t.removeEventListener(this._touchstart,t[n + this._touchstart + i],!1),(o.Browser.pointer?e.documentElement:t).removeEventListener(this._touchend,t[n + this._touchend + i],!1),o.Browser.pointer && e.documentElement.removeEventListener(o.DomEvent.POINTER_CANCEL,t[n + this._touchend + i],!1),this;}}),o.extend(o.DomEvent,{POINTER_DOWN:o.Browser.msPointer?"MSPointerDown":"pointerdown",POINTER_MOVE:o.Browser.msPointer?"MSPointerMove":"pointermove",POINTER_UP:o.Browser.msPointer?"MSPointerUp":"pointerup",POINTER_CANCEL:o.Browser.msPointer?"MSPointerCancel":"pointercancel",_pointers:[],_pointerDocumentListener:!1,addPointerListener:function addPointerListener(t,e,i,n){switch(e){case "touchstart":return this.addPointerListenerStart(t,e,i,n);case "touchend":return this.addPointerListenerEnd(t,e,i,n);case "touchmove":return this.addPointerListenerMove(t,e,i,n);default:throw "Unknown touch event type";}},addPointerListenerStart:function addPointerListenerStart(t,i,n,s){var a="_leaflet_",r=this._pointers,h=function h(t){o.DomEvent.preventDefault(t);for(var e=!1,i=0;i < r.length;i++) if(r[i].pointerId === t.pointerId){e = !0;break;}e || r.push(t),t.touches = r.slice(),t.changedTouches = [t],n(t);};if((t[a + "touchstart" + s] = h,t.addEventListener(this.POINTER_DOWN,h,!1),!this._pointerDocumentListener)){var l=function l(t){for(var e=0;e < r.length;e++) if(r[e].pointerId === t.pointerId){r.splice(e,1);break;}};e.documentElement.addEventListener(this.POINTER_UP,l,!1),e.documentElement.addEventListener(this.POINTER_CANCEL,l,!1),this._pointerDocumentListener = !0;}return this;},addPointerListenerMove:function addPointerListenerMove(t,e,i,n){function o(t){if(t.pointerType !== t.MSPOINTER_TYPE_MOUSE && "mouse" !== t.pointerType || 0 !== t.buttons){for(var e=0;e < a.length;e++) if(a[e].pointerId === t.pointerId){a[e] = t;break;}t.touches = a.slice(),t.changedTouches = [t],i(t);}}var s="_leaflet_",a=this._pointers;return t[s + "touchmove" + n] = o,t.addEventListener(this.POINTER_MOVE,o,!1),this;},addPointerListenerEnd:function addPointerListenerEnd(t,e,i,n){var o="_leaflet_",s=this._pointers,a=function a(t){for(var e=0;e < s.length;e++) if(s[e].pointerId === t.pointerId){s.splice(e,1);break;}t.touches = s.slice(),t.changedTouches = [t],i(t);};return t[o + "touchend" + n] = a,t.addEventListener(this.POINTER_UP,a,!1),t.addEventListener(this.POINTER_CANCEL,a,!1),this;},removePointerListener:function removePointerListener(t,e,i){var n="_leaflet_",o=t[n + e + i];switch(e){case "touchstart":t.removeEventListener(this.POINTER_DOWN,o,!1);break;case "touchmove":t.removeEventListener(this.POINTER_MOVE,o,!1);break;case "touchend":t.removeEventListener(this.POINTER_UP,o,!1),t.removeEventListener(this.POINTER_CANCEL,o,!1);}return this;}}
5),o.Map.mergeOptions({touchZoom:o.Browser.touch && !o.Browser.android23,bounceAtZoomLimits:!0}),o.Map.TouchZoom = o.Handler.extend({addHooks:function addHooks(){o.DomEvent.on(this._map._container,"touchstart",this._onTouchStart,this);},removeHooks:function removeHooks(){o.DomEvent.off(this._map._container,"touchstart",this._onTouchStart,this);},_onTouchStart:function _onTouchStart(t){var i=this._map;if(t.touches && 2 === t.touches.length && !i._animatingZoom && !this._zooming){var n=i.mouseEventToLayerPoint(t.touches[0]),s=i.mouseEventToLayerPoint(t.touches[1]),a=i._getCenterLayerPoint();this._startCenter = n.add(s)._divideBy(2),this._startDist = n.distanceTo(s),this._moved = !1,this._zooming = !0,this._centerOffset = a.subtract(this._startCenter),i._panAnim && i._panAnim.stop(),o.DomEvent.on(e,"touchmove",this._onTouchMove,this).on(e,"touchend",this._onTouchEnd,this),o.DomEvent.preventDefault(t);}},_onTouchMove:function _onTouchMove(t){var e=this._map;if(t.touches && 2 === t.touches.length && this._zooming){var i=e.mouseEventToLayerPoint(t.touches[0]),n=e.mouseEventToLayerPoint(t.touches[1]);this._scale = i.distanceTo(n) / this._startDist,this._delta = i._add(n)._divideBy(2)._subtract(this._startCenter),1 !== this._scale && (e.options.bounceAtZoomLimits || !(e.getZoom() === e.getMinZoom() && this._scale < 1 || e.getZoom() === e.getMaxZoom() && this._scale > 1)) && (this._moved || (o.DomUtil.addClass(e._mapPane,"leaflet-touching"),e.fire("movestart").fire("zoomstart"),this._moved = !0),o.Util.cancelAnimFrame(this._animRequest),this._animRequest = o.Util.requestAnimFrame(this._updateOnMove,this,!0,this._map._container),o.DomEvent.preventDefault(t));}},_updateOnMove:function _updateOnMove(){var t=this._map,e=this._getScaleOrigin(),i=t.layerPointToLatLng(e),n=t.getScaleZoom(this._scale);t._animateZoom(i,n,this._startCenter,this._scale,this._delta,!1,!0);},_onTouchEnd:function _onTouchEnd(){if(!this._moved || !this._zooming)return void (this._zooming = !1);var t=this._map;this._zooming = !1,o.DomUtil.removeClass(t._mapPane,"leaflet-touching"),o.Util.cancelAnimFrame(this._animRequest),o.DomEvent.off(e,"touchmove",this._onTouchMove).off(e,"touchend",this._onTouchEnd);var i=this._getScaleOrigin(),n=t.layerPointToLatLng(i),s=t.getZoom(),a=t.getScaleZoom(this._scale) - s,r=a > 0?Math.ceil(a):Math.floor(a),h=t._limitZoom(s + r),l=t.getZoomScale(h) / this._scale;t._animateZoom(n,h,i,l);},_getScaleOrigin:function _getScaleOrigin(){var t=this._centerOffset.subtract(this._delta).divideBy(this._scale);return this._startCenter.add(t);}}),o.Map.addInitHook("addHandler","touchZoom",o.Map.TouchZoom),o.Map.mergeOptions({tap:!0,tapTolerance:15}),o.Map.Tap = o.Handler.extend({addHooks:function addHooks(){o.DomEvent.on(this._map._container,"touchstart",this._onDown,this);},removeHooks:function removeHooks(){o.DomEvent.off(this._map._container,"touchstart",this._onDown,this);},_onDown:function _onDown(t){if(t.touches){if((o.DomEvent.preventDefault(t),this._fireClick = !0,t.touches.length > 1))return this._fireClick = !1,void clearTimeout(this._holdTimeout);var i=t.touches[0],n=i.target;this._startPos = this._newPos = new o.Point(i.clientX,i.clientY),n.tagName && "a" === n.tagName.toLowerCase() && o.DomUtil.addClass(n,"leaflet-active"),this._holdTimeout = setTimeout(o.bind(function(){this._isTapValid() && (this._fireClick = !1,this._onUp(),this._simulateEvent("contextmenu",i));},this),1e3),o.DomEvent.on(e,"touchmove",this._onMove,this).on(e,"touchend",this._onUp,this);}},_onUp:function _onUp(t){if((clearTimeout(this._holdTimeout),o.DomEvent.off(e,"touchmove",this._onMove,this).off(e,"touchend",this._onUp,this),this._fireClick && t && t.changedTouches)){var i=t.changedTouches[0],n=i.target;n && n.tagName && "a" === n.tagName.toLowerCase() && o.DomUtil.removeClass(n,"leaflet-active"),this._isTapValid() && this._simulateEvent("click",i);}},_isTapValid:function _isTapValid(){return this._newPos.distanceTo(this._startPos) <= this._map.options.tapTolerance;},_onMove:function _onMove(t){var e=t.touches[0];this._newPos = new o.Point(e.clientX,e.clientY);},_simulateEvent:function _simulateEvent(i,n){var o=e.createEvent("MouseEvents");o._simulated = !0,n.target._simulatedClick = !0,o.initMouseEvent(i,!0,
5!0,t,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),n.target.dispatchEvent(o);}}),o.Browser.touch && !o.Browser.pointer && o.Map.addInitHook("addHandler","tap",o.Map.Tap),o.Map.mergeOptions({boxZoom:!0}),o.Map.BoxZoom = o.Handler.extend({initialize:function initialize(t){this._map = t,this._container = t._container,this._pane = t._panes.overlayPane,this._moved = !1;},addHooks:function addHooks(){o.DomEvent.on(this._container,"mousedown",this._onMouseDown,this);},removeHooks:function removeHooks(){o.DomEvent.off(this._container,"mousedown",this._onMouseDown),this._moved = !1;},moved:function moved(){return this._moved;},_onMouseDown:function _onMouseDown(t){return this._moved = !1,!t.shiftKey || 1 !== t.which && 1 !== t.button?!1:(o.DomUtil.disableTextSelection(),o.DomUtil.disableImageDrag(),this._startLayerPoint = this._map.mouseEventToLayerPoint(t),void o.DomEvent.on(e,"mousemove",this._onMouseMove,this).on(e,"mouseup",this._onMouseUp,this).on(e,"keydown",this._onKeyDown,this));},_onMouseMove:function _onMouseMove(t){this._moved || (this._box = o.DomUtil.create("div","leaflet-zoom-box",this._pane),o.DomUtil.setPosition(this._box,this._startLayerPoint),this._container.style.cursor = "crosshair",this._map.fire("boxzoomstart"));var e=this._startLayerPoint,i=this._box,n=this._map.mouseEventToLayerPoint(t),s=n.subtract(e),a=new o.Point(Math.min(n.x,e.x),Math.min(n.y,e.y));o.DomUtil.setPosition(i,a),this._moved = !0,i.style.width = Math.max(0,Math.abs(s.x) - 4) + "px",i.style.height = Math.max(0,Math.abs(s.y) - 4) + "px";},_finish:function _finish(){this._moved && (this._pane.removeChild(this._box),this._container.style.cursor = ""),o.DomUtil.enableTextSelection(),o.DomUtil.enableImageDrag(),o.DomEvent.off(e,"mousemove",this._onMouseMove).off(e,"mouseup",this._onMouseUp).off(e,"keydown",this._onKeyDown);},_onMouseUp:function _onMouseUp(t){this._finish();var e=this._map,i=e.mouseEventToLayerPoint(t);if(!this._startLayerPoint.equals(i)){var n=new o.LatLngBounds(e.layerPointToLatLng(this._startLayerPoint),e.layerPointToLatLng(i));e.fitBounds(n),e.fire("boxzoomend",{boxZoomBounds:n});}},_onKeyDown:function _onKeyDown(t){27 === t.keyCode && this._finish();}}),o.Map.addInitHook("addHandler","boxZoom",o.Map.BoxZoom),o.Map.mergeOptions({keyboard:!0,keyboardPanOffset:80,keyboardZoomOffset:1}),o.Map.Keyboard = o.Handler.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,173]},initialize:function initialize(t){this._map = t,this._setPanOffset(t.options.keyboardPanOffset),this._setZoomOffset(t.options.keyboardZoomOffset);},addHooks:function addHooks(){var t=this._map._container;-1 === t.tabIndex && (t.tabIndex = "0"),o.DomEvent.on(t,"focus",this._onFocus,this).on(t,"blur",this._onBlur,this).on(t,"mousedown",this._onMouseDown,this),this._map.on("focus",this._addHooks,this).on("blur",this._removeHooks,this);},removeHooks:function removeHooks(){this._removeHooks();var t=this._map._container;o.DomEvent.off(t,"focus",this._onFocus,this).off(t,"blur",this._onBlur,this).off(t,"mousedown",this._onMouseDown,this),this._map.off("focus",this._addHooks,this).off("blur",this._removeHooks,this);},_onMouseDown:function _onMouseDown(){if(!this._focused){var i=e.body,n=e.documentElement,o=i.scrollTop || n.scrollTop,s=i.scrollLeft || n.scrollLeft;this._map._container.focus(),t.scrollTo(s,o);}},_onFocus:function _onFocus(){this._focused = !0,this._map.fire("focus");},_onBlur:function _onBlur(){this._focused = !1,this._map.fire("blur");},_setPanOffset:function _setPanOffset(t){var e,i,n=this._panKeys = {},o=this.keyCodes;for(e = 0,i = o.left.length;i > e;e++) n[o.left[e]] = [-1 * t,0];for(e = 0,i = o.right.length;i > e;e++) n[o.right[e]] = [t,0];for(e = 0,i = o.down.length;i > e;e++) n[o.down[e]] = [0,t];for(e = 0,i = o.up.length;i > e;e++) n[o.up[e]] = [0,-1 * t];},_setZoomOffset:function _setZoomOffset(t){var e,i,n=this._zoomKeys = {},o=this.keyCodes;for(e = 0,i = o.zoomIn.length;i > e;e++) n[o.zoomIn[e]] = t;for(e = 0,i = o.zoomOut.length;i > e;e++) n[o.zoomOut[e]] = -t;},_addHooks:function _addHooks(){o.DomEvent.on(e,"keydown",this._onKeyDown,this);},_removeHooks:function _removeHooks(){o.DomEvent.off(e,"keydown",this._onKeyDown,this);},_onKeyDown:function _onKeyDown(t){var e=t.keyCode,i=this._map;
5if(e in this._panKeys){if(i._panAnim && i._panAnim._inProgress)return;i.panBy(this._panKeys[e]),i.options.maxBounds && i.panInsideBounds(i.options.maxBounds);}else {if(!(e in this._zoomKeys))return;i.setZoom(i.getZoom() + this._zoomKeys[e]);}o.DomEvent.stop(t);}}),o.Map.addInitHook("addHandler","keyboard",o.Map.Keyboard),o.Handler.MarkerDrag = o.Handler.extend({initialize:function initialize(t){this._marker = t;},addHooks:function addHooks(){var t=this._marker._icon;this._draggable || (this._draggable = new o.Draggable(t,t)),this._draggable.on("dragstart",this._onDragStart,this).on("drag",this._onDrag,this).on("dragend",this._onDragEnd,this),this._draggable.enable(),o.DomUtil.addClass(this._marker._icon,"leaflet-marker-draggable");},removeHooks:function removeHooks(){this._draggable.off("dragstart",this._onDragStart,this).off("drag",this._onDrag,this).off("dragend",this._onDragEnd,this),this._draggable.disable(),o.DomUtil.removeClass(this._marker._icon,"leaflet-marker-draggable");},moved:function moved(){return this._draggable && this._draggable._moved;},_onDragStart:function _onDragStart(){this._marker.closePopup().fire("movestart").fire("dragstart");},_onDrag:function _onDrag(){var t=this._marker,e=t._shadow,i=o.DomUtil.getPosition(t._icon),n=t._map.layerPointToLatLng(i);e && o.DomUtil.setPosition(e,i),t._latlng = n,t.fire("move",{latlng:n}).fire("drag");},_onDragEnd:function _onDragEnd(t){this._marker.fire("moveend").fire("dragend",t);}}),o.Control = o.Class.extend({options:{position:"topright"},initialize:function initialize(t){o.setOptions(this,t);},getPosition:function getPosition(){return this.options.position;},setPosition:function setPosition(t){var e=this._map;return e && e.removeControl(this),this.options.position = t,e && e.addControl(this),this;},getContainer:function getContainer(){return this._container;},addTo:function addTo(t){this._map = t;var e=this._container = this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return o.DomUtil.addClass(e,"leaflet-control"),-1 !== i.indexOf("bottom")?n.insertBefore(e,n.firstChild):n.appendChild(e),this;},removeFrom:function removeFrom(t){var e=this.getPosition(),i=t._controlCorners[e];return i.removeChild(this._container),this._map = null,this.onRemove && this.onRemove(t),this;},_refocusOnMap:function _refocusOnMap(){this._map && this._map.getContainer().focus();}}),o.control = function(t){return new o.Control(t);},o.Map.include({addControl:function addControl(t){return t.addTo(this),this;},removeControl:function removeControl(t){return t.removeFrom(this),this;},_initControlPos:function _initControlPos(){function t(t,s){var a=i + t + " " + i + s;e[t + s] = o.DomUtil.create("div",a,n);}var e=this._controlCorners = {},i="leaflet-",n=this._controlContainer = o.DomUtil.create("div",i + "control-container",this._container);t("top","left"),t("top","right"),t("bottom","left"),t("bottom","right");},_clearControlPos:function _clearControlPos(){this._container.removeChild(this._controlContainer);}}),o.Control.Zoom = o.Control.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"-",zoomOutTitle:"Zoom out"},onAdd:function onAdd(t){var e="leaflet-control-zoom",i=o.DomUtil.create("div",e + " leaflet-bar");return this._map = t,this._zoomInButton = this._createButton(this.options.zoomInText,this.options.zoomInTitle,e + "-in",i,this._zoomIn,this),this._zoomOutButton = this._createButton(this.options.zoomOutText,this.options.zoomOutTitle,e + "-out",i,this._zoomOut,this),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i;},onRemove:function onRemove(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this);},_zoomIn:function _zoomIn(t){this._map.zoomIn(t.shiftKey?3:1);},_zoomOut:function _zoomOut(t){this._map.zoomOut(t.shiftKey?3:1);},_createButton:function _createButton(t,e,i,n,s,a){var r=o.DomUtil.create("a",i,n);r.innerHTML = t,r.href = "#",r.title = e;var h=o.DomEvent.stopPropagation;return o.DomEvent.on(r,"click",h).on(r,"mousedown",h).on(r,"dblclick",h).on(r,"click",o.DomEvent.preventDefault).on(r,"click",s,a).on(r,"click",this._refocusOnMap,a),r;},_updateDisabled:function _updateDisabled(){var t=this._map,e="leaflet-disabled";o.DomUtil.removeClass(this._zoomInButton,e),o.DomUtil.removeClass(this._zoomOutButton,e),t._zoom === t.getMin
5Zoom() && o.DomUtil.addClass(this._zoomOutButton,e),t._zoom === t.getMaxZoom() && o.DomUtil.addClass(this._zoomInButton,e);}}),o.Map.mergeOptions({zoomControl:!0}),o.Map.addInitHook(function(){this.options.zoomControl && (this.zoomControl = new o.Control.Zoom(),this.addControl(this.zoomControl));}),o.control.zoom = function(t){return new o.Control.Zoom(t);},o.Control.Attribution = o.Control.extend({options:{position:"bottomright",prefix:'<a href="http://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function initialize(t){o.setOptions(this,t),this._attributions = {};},onAdd:function onAdd(t){this._container = o.DomUtil.create("div","leaflet-control-attribution"),o.DomEvent.disableClickPropagation(this._container);for(var e in t._layers) t._layers[e].getAttribution && this.addAttribution(t._layers[e].getAttribution());return t.on("layeradd",this._onLayerAdd,this).on("layerremove",this._onLayerRemove,this),this._update(),this._container;},onRemove:function onRemove(t){t.off("layeradd",this._onLayerAdd).off("layerremove",this._onLayerRemove);},setPrefix:function setPrefix(t){return this.options.prefix = t,this._update(),this;},addAttribution:function addAttribution(t){return t?(this._attributions[t] || (this._attributions[t] = 0),this._attributions[t]++,this._update(),this):void 0;},removeAttribution:function removeAttribution(t){return t?(this._attributions[t] && (this._attributions[t]--,this._update()),this):void 0;},_update:function _update(){if(this._map){var t=[];for(var e in this._attributions) this._attributions[e] && t.push(e);var i=[];this.options.prefix && i.push(this.options.prefix),t.length && i.push(t.join(", ")),this._container.innerHTML = i.join(" | ");}},_onLayerAdd:function _onLayerAdd(t){t.layer.getAttribution && this.addAttribution(t.layer.getAttribution());},_onLayerRemove:function _onLayerRemove(t){t.layer.getAttribution && this.removeAttribution(t.layer.getAttribution());}}),o.Map.mergeOptions({attributionControl:!0}),o.Map.addInitHook(function(){this.options.attributionControl && (this.attributionControl = new o.Control.Attribution().addTo(this));}),o.control.attribution = function(t){return new o.Control.Attribution(t);},o.Control.Scale = o.Control.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0,updateWhenIdle:!1},onAdd:function onAdd(t){this._map = t;var e="leaflet-control-scale",i=o.DomUtil.create("div",e),n=this.options;return this._addScales(n,e,i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i;},onRemove:function onRemove(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this);},_addScales:function _addScales(t,e,i){t.metric && (this._mScale = o.DomUtil.create("div",e + "-line",i)),t.imperial && (this._iScale = o.DomUtil.create("div",e + "-line",i));},_update:function _update(){var t=this._map.getBounds(),e=t.getCenter().lat,i=6378137 * Math.PI * Math.cos(e * Math.PI / 180),n=i * (t.getNorthEast().lng - t.getSouthWest
5().lng) / 180,o=this._map.getSize(),s=this.options,a=0;o.x > 0 && (a = n * (s.maxWidth / o.x)),this._updateScales(s,a);},_updateScales:function _updateScales(t,e){t.metric && e && this._updateMetric(e),t.imperial && e && this._updateImperial(e);},_updateMetric:function _updateMetric(t){var e=this._getRoundNum(t);this._mScale.style.width = this._getScaleWidth(e / t) + "px",this._mScale.innerHTML = 1e3 > e?e + " m":e / 1e3 + " km";},_updateImperial:function _updateImperial(t){var e,i,n,o=3.2808399 * t,s=this._iScale;o > 5280?(e = o / 5280,i = this._getRoundNum(e),s.style.width = this._getScaleWidth(i / e) + "px",s.innerHTML = i + " mi"):(n = this._getRoundNum(o),s.style.width = this._getScaleWidth(n / o) + "px",s.innerHTML = n + " ft");},_getScaleWidth:function _getScaleWidth(t){return Math.round(this.options.maxWidth * t) - 10;},_getRoundNum:function _getRoundNum(t){var e=Math.pow(10,(Math.floor(t) + "").length - 1),i=t / e;return i = i >= 10?10:i >= 5?5:i >= 3?3:i >= 2?2:1,e * i;}}),o.control.scale = function(t){return new o.Control.Scale(t);},o.Control.Layers = o.Control.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0},initialize:function initialize(t,e,i){o.setOptions(this,i),this._layers = {},this._lastZIndex = 0,this._handlingClick = !1;for(var n in t) this._addLayer(t[n],n);for(n in e) this._addLayer(e[n],n,!0);},onAdd:function onAdd(t){return this._initLayout(),this._update(),t.on("layeradd",this._onLayerChange,this).on("layerremove",this._onLayerChange,this),this._container;},onRemove:function onRemove(t){t.off("layeradd",this._onLayerChange,this).off("layerremove",this._onLayerChange,this);},addBaseLayer:function addBaseLayer(t,e){return this._addLayer(t,e),this._update(),this;},addOverlay:function addOverlay(t,e){return this._addLayer(t,e,!0),this._update(),this;},removeLayer:function removeLayer(t){var e=o.stamp(t);return delete this._layers[e],this._update(),this;},_initLayout:function _initLayout(){var t="leaflet-control-layers",e=this._container = o.DomUtil.create("div",t);e.setAttribute("aria-haspopup",!0),o.Browser.touch?o.DomEvent.on(e,"click",o.DomEvent.stopPropagation):o.DomEvent.disableClickPropagation(e).disableScrollPropagation(e);var i=this._form = o.DomUtil.create("form",t + "-list");if(this.options.collapsed){o.Browser.android || o.DomEvent.on(e,"mouseover",this._expand,this).on(e,"mouseout",this._collapse,this);var n=this._layersLink = o.DomUtil.create("a",t + "-toggle",e);n.href = "#",n.title = "Layers",o.Browser.touch?o.DomEvent.on(n,"click",o.DomEvent.stop).on(n,"click",this._expand,this):o.DomEvent.on(n,"focus",this._expand,this),o.DomEvent.on(i,"click",function(){setTimeout(o.bind(this._onInputClick,this),0);},this),this._map.on("click",this._collapse,this);}else this._expand();this._baseLayersList = o.DomUtil.create("div",t + "-base",i),this._separator = o.DomUtil.create("div",t + "-separator",i),this._overlaysList = o.DomUtil.create("div",t + "-overlays",i),e.appendChild(i);},_addLayer:function _addLayer(t,e,i){var n=o.stamp(t);this._layers[n] = {layer:t,name:e,overlay:i},this.options.autoZIndex && t.setZIndex && (this._lastZIndex++,t.setZIndex(this._lastZIndex));},_update:function _update(){if(this._container){this._baseLayersList.innerHTML = "",this._overlaysList.innerHTML = "";var t,e,i=!1,n=!1;for(t in this._layers) e = this._layers[t],this._addItem(e),n = n || e.overlay,i = i || !e.overlay;this._separator.style.display = n && i?"":"none";}},_onLayerChange:function _onLayerChange(t){var e=this._layers[o.stamp(t.layer)];if(e){this._handlingClick || this._update();var i=e.overlay?"layeradd" === t.type?"overlayadd":"overlayremove":"layeradd" === t.type?"baselayerchange":null;i && this._map.fire(i,e);}},_createRadioElement:function _createRadioElement(t,i){var n='<input type="radio" class="leaflet-control-layers-selector" name="' + t + '"';i && (n += ' checked="checked"'),n += "/>";var o=e.createElement("div");return o.innerHTML = n,o.firstChild;},_addItem:function _addItem(t){var i,n=e.createElement("label"),s=this._map.hasLayer(t.layer);t.overlay?(i = e.createElement("input"),i.type = "checkbox",i.className = "leaflet-control-layers-selector",i.defaultChecked = s):i = this._createRadioElement("leaflet-base-layers",s),i.layerId = o.stamp(t.layer),o.DomEvent.on(i,"click",this._onInputClick,this);var a=e.createElement("span");a.innerHTML = " " + t.name,n.appendChild(i),n.appendChild(a);var r=t.overlay?this._overlaysList:this._baseLayersList;return r.appendChild(n),n;},_onInputClick:function _onInputClick(){var t,e,i,n=this._form.getElementsByTagName("input"),o=n.length;for(this._handlingClick = !0,t = 0;o > t;t++) e = n[t],i = this._layers[e.layerId],e.checked && !this._map.hasLayer(i.layer)?this._map.addLayer(i.layer):!e.checked && this._map.hasLayer(i.layer) && this._map.removeLayer(i.layer);this._handlingClick = !1,this._refocusOnMap();},_expand:function _expand(){o.DomUtil.addClass(this._container,"leaflet-control-layers-expanded");},_collapse:function _collapse(){this._container.className = this._container.className.replace(" leaflet-control-layers-expanded","");}}
5),o.control.layers = function(t,e,i){return new o.Control.Layers(t,e,i);},o.PosAnimation = o.Class.extend({includes:o.Mixin.Events,run:function run(t,e,i,n){this.stop(),this._el = t,this._inProgress = !0,this._newPos = e,this.fire("start"),t.style[o.DomUtil.TRANSITION] = "all " + (i || .25) + "s cubic-bezier(0,0," + (n || .5) + ",1)",o.DomEvent.on(t,o.DomUtil.TRANSITION_END,this._onTransitionEnd,this),o.DomUtil.setPosition(t,e),o.Util.falseFn(t.offsetWidth),this._stepTimer = setInterval(o.bind(this._onStep,this),50);},stop:function stop(){this._inProgress && (o.DomUtil.setPosition(this._el,this._getPos()),this._onTransitionEnd(),o.Util.falseFn(this._el.offsetWidth));},_onStep:function _onStep(){var t=this._getPos();return t?(this._el._leaflet_pos = t,void this.fire("step")):void this._onTransitionEnd();},_transformRe:/([-+]?(?:\d*\.)?\d+)\D*, ([-+]?(?:\d*\.)?\d+)\D*\)/,_getPos:function _getPos(){var e,i,n,s=this._el,a=t.getComputedStyle(s);if(o.Browser.any3d){if((n = a[o.DomUtil.TRANSFORM].match(this._transformRe),!n))return;e = parseFloat(n[1]),i = parseFloat(n[2]);}else e = parseFloat(a.left),i = parseFloat(a.top);return new o.Point(e,i,!0);},_onTransitionEnd:function _onTransitionEnd(){o.DomEvent.off(this._el,o.DomUtil.TRANSITION_END,this._onTransitionEnd,this),this._inProgress && (this._inProgress = !1,this._el.style[o.DomUtil.TRANSITION] = "",this._el._leaflet_pos = this._newPos,clearInterval(this._stepTimer),this.fire("step").fire("end"));}}),o.Map.include({setView:function setView(t,e,n){if((e = e === i?this._zoom:this._limitZoom(e),t = this._limitCenter(o.latLng(t),e,this.options.maxBounds),n = n || {},this._panAnim && this._panAnim.stop(),this._loaded && !n.reset && n !== !0)){n.animate !== i && (n.zoom = o.extend({animate:n.animate},n.zoom),n.pan = o.extend({animate:n.animate},n.pan));var s=this._zoom !== e?this._tryAnimatedZoom && this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan);if(s)return clearTimeout(this._sizeTimer),this;}return this._resetView(t,e),this;},panBy:function panBy(t,e){if((t = o.point(t).round(),e = e || {},!t.x && !t.y))return this;if((this._panAnim || (this._panAnim = new o.PosAnimation(),this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart || this.fire("movestart"),e.animate !== !1)){o.DomUtil.addClass(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t);this._panAnim.run(this._mapPane,i,e.duration || .25,e.easeLinearity);}else this._rawPanBy(t),this.fire("move").fire("moveend");return this;},_onPanTransitionStep:function _onPanTransitionStep(){this.fire("move");},_onPanTransitionEnd:function _onPanTransitionEnd(){o.DomUtil.removeClass(this._mapPane,"leaflet-pan-anim"),this.fire("moveend");},_tryAnimatedPan:function _tryAnimatedPan(t,e){var i=this._getCenterOffset(t)._floor();
5return (e && e.animate) === !0 || this.getSize().contains(i)?(this.panBy(i,e),!0):!1;}}),o.PosAnimation = o.DomUtil.TRANSITION?o.PosAnimation:o.PosAnimation.extend({run:function run(t,e,i,n){this.stop(),this._el = t,this._inProgress = !0,this._duration = i || .25,this._easeOutPower = 1 / Math.max(n || .5,.2),this._startPos = o.DomUtil.getPosition(t),this._offset = e.subtract(this._startPos),this._startTime = +new Date(),this.fire("start"),this._animate();},stop:function stop(){this._inProgress && (this._step(),this._complete());},_animate:function _animate(){this._animId = o.Util.requestAnimFrame(this._animate,this),this._step();},_step:function _step(){var t=+new Date() - this._startTime,e=1e3 * this._duration;e > t?this._runFrame(this._easeOut(t / e)):(this._runFrame(1),this._complete());},_runFrame:function _runFrame(t){var e=this._startPos.add(this._offset.multiplyBy(t));o.DomUtil.setPosition(this._el,e),this.fire("step");},_complete:function _complete(){o.Util.cancelAnimFrame(this._animId),this._inProgress = !1,this.fire("end");},_easeOut:function _easeOut(t){return 1 - Math.pow(1 - t,this._easeOutPower);}}),o.Map.mergeOptions({zoomAnimation:!0,zoomAnimationThreshold:4}),o.DomUtil.TRANSITION && o.Map.addInitHook(function(){this._zoomAnimated = this.options.zoomAnimation && o.DomUtil.TRANSITION && o.Browser.any3d && !o.Browser.android23 && !o.Browser.mobileOpera,this._zoomAnimated && o.DomEvent.on(this._mapPane,o.DomUtil.TRANSITION_END,this._catchTransitionEnd,this);}),o.Map.include(o.DomUtil.TRANSITION?{_catchTransitionEnd:function _catchTransitionEnd(t){this._animatingZoom && t.propertyName.indexOf("transform") >= 0 && this._onZoomTransitionEnd();},_nothingToAnimate:function _nothingToAnimate(){return !this._container.getElementsByClassName("leaflet-zoom-animated").length;},_tryAnimatedZoom:function _tryAnimatedZoom(t,e,i){if(this._animatingZoom)return !0;if((i = i || {},!this._zoomAnimated || i.animate === !1 || this._nothingToAnimate() || Math.abs(e - this._zoom) > this.options.zoomAnimationThreshold))return !1;var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1 - 1 / n),s=this._getCenterLayerPoint()._add(o);
5return i.animate === !0 || this.getSize().contains(o)?(this.fire("movestart").fire("zoomstart"),this._animateZoom(t,e,s,n,null,!0),!0):!1;},_animateZoom:function _animateZoom(t,e,i,n,s,a,r){r || (this._animatingZoom = !0),o.DomUtil.addClass(this._mapPane,"leaflet-zoom-anim"),this._animateToCenter = t,this._animateToZoom = e,o.Draggable && (o.Draggable._disabled = !0),o.Util.requestAnimFrame(function(){this.fire("zoomanim",{center:t,zoom:e,origin:i,scale:n,delta:s,backwards:a}),setTimeout(o.bind(this._onZoomTransitionEnd,this),250);},this);},_onZoomTransitionEnd:function _onZoomTransitionEnd(){this._animatingZoom && (this._animatingZoom = !1,o.DomUtil.removeClass(this._mapPane,"leaflet-zoom-anim"),this._resetView(this._animateToCenter,this._animateToZoom,!0,!0),o.Draggable && (o.Draggable._disabled = !1));}}:{}),o.TileLayer.include({_animateZoom:function _animateZoom(t){this._animating || (this._animating = !0,this._prepareBgBuffer());var e=this._bgBuffer,i=o.DomUtil.TRANSFORM,n=t.delta?o.DomUtil.getTranslateString(t.delta):e.style[i],s=o.DomUtil.getScaleString(t.scale,t.origin);e.style[i] = t.backwards?s + " " + n:n + " " + s;},_endZoomAnim:function _endZoomAnim(){var t=this._tileContainer,e=this._bgBuffer;t.style.visibility = "",t.parentNode.appendChild(t),o.Util.falseFn(e.offsetWidth);var i=this._map.getZoom();(i > this.options.maxZoom || i < this.options.minZoom) && this._clearBgBuffer(),this._animating = !1;},_clearBgBuffer:function _clearBgBuffer(){var t=this._map;!t || t._animatingZoom || t.touchZoom._zooming || (this._bgBuffer.innerHTML = "",this._bgBuffer.style[o.DomUtil.TRANSFORM] = "");},_prepareBgBuffer:function _prepareBgBuffer(){var t=this._tileContainer,e=this._bgBuffer,i=this._getLoadedTilesPercentage(e),n=this._getLoadedTilesPercentage(t);return e && i > .5 && .5 > n?(t.style.visibility = "hidden",void this._stopLoadingImages(t)):(e.style.visibility = "hidden",e.style[o.DomUtil.TRANSFORM] = "",this._tileContainer = e,e = this._bgBuffer = t,this._stopLoadingImages(e),void clearTimeout(this._clearBgBufferTimer));},_getLoadedTilesPercentage:function _getLoadedTilesPercentage(t){var e,i,n=t.getElementsByTagName("img"),o=0;for(e = 0,i = n.length;i > e;e++) n[e].complete && o++;return o / i;},_stopLoadingImages:function _stopLoadingImages(t){var e,i,n,s=Array.prototype.slice.call(t.getElementsByTagName("img"));for(e = 0,i = s.length;i > e;e++) n = s[e],n.complete || (n.onload = o.Util.falseFn,n.onerror = o.Util.falseFn,n.src = o.Util.emptyImageUrl,n.parentNode.removeChild(n));}}),o.Map.include({_defaultLocateOptions:{watch:!1,setView:!1,maxZoom:1 / 0,timeout:1e4,maximumAge:0,enableHighAccuracy:!1},locate:function locate(t){if((t = this._locateOptions = o.extend(this._defaultLocateOptions,t),!navigator.geolocation))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=o.bind(this._handleGeolocationResponse,this),i=o.bind(this._handleGeolocationError,this);return t.watch?this._locationWatchId = navigator.geolocation.watchPosition(e,i,t):navigator.geolocation.getCurrentPosition(e,i,t),this;},stopLocate:function stopLocate(){return navigator.geolocation && navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions && (this._locateOptions.setView = !1),this;},_handleGeolocationError:function _handleGeolocationError(t){var e=t.code,i=t.message || (1 === e?"permission denied":2 === e?"position unavailable":"timeout");this._locateOptions.setView && !this._loaded && this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: " + i + "."});},_handleGeolocationResponse:function _handleGeolocationResponse(t){var e=t.coords.latitude,i=t.coords.longitude,n=new o.LatLng(e,i),s=180 * t.coords.accuracy / 40075017,a=s / Math.cos(o.LatLng.DEG_TO_RAD * e),r=o.latLngBounds([e - s,i - a],[e + s,i + a]),h=this._locateOptions;if(h.setView){var l=Math.min(this.getBoundsZoom(r),h.maxZoom);this.setView(n,l);}var u={latlng:n,bounds:r,timestamp:t.timestamp};for(var c in t.coords) "number" == typeof t.coords[c] && (u[c] = t.coords[c]);this.fire("locationfound",u);}});})(window,document); /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */!(function(a,b){"object" == typeof module && "object" == typeof module.exports?module.exports = a.document?b(a,!0):function(a){if
5(!a.document)throw new Error("jQuery requires a window with a document");return b(a);}:b(a);})("undefined" != typeof window?window:undefined,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.3",m=function m(a,b){return new m.fn.init(a,b);},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function q(a,b){return b.toUpperCase();};m.fn = m.prototype = {jquery:l,constructor:m,selector:"",length:0,toArray:function toArray(){return d.call(this);},get:function get(a){return null != a?0 > a?this[a + this.length]:this[a]:d.call(this);},pushStack:function pushStack(a){var b=m.merge(this.constructor(),a);return b.prevObject = this,b.context = this.context,b;},each:function each(a,b){return m.each(this,a,b);},map:function map(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b);}));},slice:function slice(){return this.pushStack(d.apply(this,arguments));},first:function first(){return this.eq(0);},last:function last(){return this.eq(-1);},eq:function eq(a){var b=this.length,c=+a + (0 > a?b:0);return this.pushStack(c >= 0 && b > c?[this[c]]:[]);},end:function end(){return this.prevObject || this.constructor(null);},push:f,sort:c.sort,splice:c.splice},m.extend = m.fn.extend = function(){var a,b,c,d,e,f,g=arguments[0] || {},h=1,i=arguments.length,j=!1;for("boolean" == typeof g && (j = g,g = arguments[h] || {},h++),"object" == typeof g || m.isFunction(g) || (g = {}),h === i && (g = this,h--);i > h;h++) if(null != (e = arguments[h]))for(d in e) a = g[d],c = e[d],g !== c && (j && c && (m.isPlainObject(c) || (b = m.isArray(c)))?(b?(b = !1,f = a && m.isArray(a)?a:[]):f = a && m.isPlainObject(a)?a:{},g[d] = m.extend(j,f,c)):void 0 !== c && (g[d] = c));return g;},m.extend({expando:"jQuery" + (l + Math.random()).replace(/\D/g,""),isReady:!0,error:function error(a){throw new Error(a);},noop:function noop(){},isFunction:function isFunction(a){return "function" === m.type(a);},isArray:Array.isArray || function(a){return "array" === m.type(a);},isWindow:function isWindow(a){return null != a && a == a.window;},isNumeric:function isNumeric(a){return !m.isArray(a) && a - parseFloat(a) + 1 >= 0;},isEmptyObject:function isEmptyObject(a){var b;for(b in a) return !1;return !0;},isPlainObject:function isPlainObject(a){var b;if(!a || "object" !== m.type(a) || a.nodeType || m.isWindow(a))return !1;try{if(a.constructor && !j.call(a,"constructor") && !j.call(a.constructor.prototype,"isPrototypeOf"))return !1;}catch(c) {return !1;}if(k.ownLast)for(b in a) return j.call(a,b);for(b in a);return void 0 === b || j.call(a,b);},type:function type(a){return null == a?a + "":"object" == typeof a || "function" == typeof a?h[i.call(a)] || "object":typeof a;},globalEval:function globalEval(b){b && m.trim(b) && (a.execScript || function(b){a.eval.call(a,b);})(b);},camelCase:function camelCase(a){return a.replace(o,"ms-").replace(p,q);},nodeName:function nodeName(a,b){return a.nodeName && a.nodeName.toLowerCase() === b.toLowerCase();},each:function each(a,b,c){var d,e=0,f=a.length,g=r(a);if(c){if(g){for(;f > e;e++) if((d = b.apply(a[e],c),d === !1))break;}else for(e in a) if((d = b.apply(a[e],c),d === !1))break;}else if(g){for(;f > e;e++) if((d = b.call(a[e],e,a[e]),d === !1))break;}else for(e in a) if((d = b.call(a[e],e,a[e]),d === !1))break;return a;},trim:function trim(a){return null == a?"":(a + "").replace(n,"");},makeArray:function makeArray(a,b){var c=b || [];return null != a && (r(Object(a))?m.merge(c,"string" == typeof a?[a]:a):f.call(c,a)),c;},inArray:function inArray(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d = b.length,c = c?0 > c?Math.max(0,d + c):c:0;d > c;c++) if(c in b && b[c] === a)return c;}return -1;},merge:function merge(a,b){var c=+b.length,d=0,e=a.length;while(c > d) a[e++] = b[d++];if(c !== c)while(void 0 !== b[d]) a[e++] = b[d++];return a.length = e,a;},grep:function grep(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g > f;f++) d = !b(a[f],f),d !== h && e.push(a[f]);return e;},map:function map(a,b,c){var d,f=0,g=a.length,h=r(a),i=[];if(h)for(;g > f;f++) d = b(a[f],f,c),null != d && i.push(d);else for(f in a) d = b(a[f],f,c),null != d && i.push(d);return e.apply([],i);},guid:1,proxy:function proxy(a,b){var c,e,f;return "string" == typeof b && (f = a[b],b = a,a = f),m.isFunction(a)?(c = d.call(arguments,2),e = function(){return a.apply(b || this,c.concat(d.call(arguments)));},e.guid = a.guid = a.guid || m.guid++,e):void 0;},now:function now(){return +new Date();},support:k}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object " + b + "]"] = b.toLowerCase();});function r(a){var b="length" in a && a.length,c=m.type(a);return "function" === c || m.isWindow(a)?!1:1 === a.nodeType && b?!0:"array" === c || 0 === b || "number" == typeof b && b > 0 && b - 1 in a;}var s=(function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle" + 1 * new Date(),v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function B(a,b){return a === b && (l = !0),0;},C=1 << 31,D=({}).hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function J(a,b){for(var c=0,d=a.length;d > c;c++) if(a[c] === b)return c;return -1;},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=M.replace("w","w#"),O="\\[" + L + "*(" + M + ")(?:" + L + "*([*^$|!~]?=)" + L + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + N + "))|)" + L + "*\\]",P=":(" + M + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + O + ")*)|.*)\\)|)",Q=new RegExp(L + "+","g"),R=new RegExp("^" + L + "+|((?:^|[^\\\\])(?:\\\\.)*)" + L + "+$","g"),S=new RegExp("^" + L + "*," + L + "*"),T=new RegExp("^" + L + "*([>+~]|" + L + ")" + L + "*"),U=new RegExp("=" + L + "*([^\\]'\"]*?)" + L + "*\\]","g"),V=new RegExp(P),W=new RegExp("^" + N + "$"),X={ID:new RegExp("^#(" + M + ")"),CLASS:new RegExp("^\\.(" + M + ")"),TAG:new RegExp("^(" + M.replace("w","w*") + ")"),ATTR:new RegExp("^" + O),PSEUDO:new RegExp("^" + P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + L + "*(even|odd|(([+-]|)(\\d*)n|)" + L + "*(?:([+-]|)" + L + "*(\\d+)|))" + L + "*\\)|)","i"),bool:new RegExp("^(?:" + K + ")$","i"),needsContext:new RegExp("^" + L + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + L + "*((?:-\\d)?\\d*)" + L + "*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,aa=/[+~]/,ba=/'|\\/g,ca=new RegExp("\\\\([\\da-f]{1,6}" + L + "?|(" + L + ")|.)","ig"),da=function da(a,b,c){var d="0x" + b - 65536;return d !== d || c?b:0 > d?String.fromCharCode(d + 65536):String.fromCharCode(d >> 10 | 55296,1023 & d | 56320);},ea=function ea(){m();};try{H.apply(E = I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType;}catch(fa) {H = {apply:E.length?function(a,b){G.apply(a,I.call(b));}:function(a,b){var c=a.length,d=0;while(a[c++] = b[d++]);a.length = c - 1;}};}function ga(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if(((b?b.ownerDocument || b:v) !== n && m(b),b = b || n,d = d || [],k = b.nodeType,"string" != typeof a || !a || 1 !== k && 9 !== k && 11 !== k))return d;if(!e && p){if(11 !== k && (f = _.exec(a)))if(j = f[1]){if(9 === k){if((h = b.getElementById(j),!h || !h.parentNode))return d;if(h.id === j)return d.push(h),d;}else if(b.ownerDocument && (h = b.ownerDocument.getElementById(j)) && t(b,h) && h.id === j)return d.push(h),d;}else {if(f[2])return H.apply(d,b.getElementsByTagName(a)),d;if((j = f[3]) && c.getElementsByClassName)return H.apply(d,b.getElementsByClassName(j)),d;}if(c.qsa && (!q || !q.test(a))){if((s = r = u,w = b,x = 1 !== k && a,1 === k && "object" !== b.nodeName.toLowerCase())){o = g(a),(r = b.getAttribute("id"))?s = r.replace(ba,"\\$&"):b.setAttribute("id",s),s = "[id='" + s + "'] ",l = o.length;while(l--) o[l] = s + ra(o[l]);w = aa.test(a) && pa(b.parentNode) || b,x = o.join(",");}if(x)try{return H.apply(d,w.querySelectorAll(x)),d;}catch(y) {}finally {r || b.removeAttribute("id");}}}return i(a.replace(R,"$1"),b,d,e);}function ha(){var a=[];function b(c,e){return a.push(c + " ") > d.cacheLength && delete b[a.shift()],b[c + " "] = e;}return b;}function ia(a){return a[u] = !0,a;}function ja(a){var b=n.createElement("div");try{return !!a(b);}catch(c) {return !1;}finally {b.parentNode && b.parentNode.removeChild(b),b = null;}}function ka(a,b){var c=a.split("|"),e=a.length;while(e--) d.attrHandle[c[e]] = b;}function la(a,b){var c=b && a,d=c && 1 === a.nodeType && 1 === b.nodeType && (~b.sourceIndex || C) - (~a.sourceIndex || C);if(d)return d;
5if(c)while(c = c.nextSibling) if(c === b)return -1;return a?1:-1;}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return "input" === c && b.type === a;};}function na(a){return function(b){var c=b.nodeName.toLowerCase();return ("input" === c || "button" === c) && b.type === a;};}function oa(a){return ia(function(b){return b = +b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--) c[e = f[g]] && (c[e] = !(d[e] = c[e]));});});}function pa(a){return a && "undefined" != typeof a.getElementsByTagName && a;}c = ga.support = {},f = ga.isXML = function(a){var b=a && (a.ownerDocument || a).documentElement;return b?"HTML" !== b.nodeName:!1;},m = ga.setDocument = function(a){var b,e,g=a?a.ownerDocument || a:v;return g !== n && 9 === g.nodeType && g.documentElement?(n = g,o = g.documentElement,e = g.defaultView,e && e !== e.top && (e.addEventListener?e.addEventListener("unload",ea,!1):e.attachEvent && e.attachEvent("onunload",ea)),p = !f(g),c.attributes = ja(function(a){return a.className = "i",!a.getAttribute("className");}),c.getElementsByTagName = ja(function(a){return a.appendChild(g.createComment("")),!a.getElementsByTagName("*").length;}),c.getElementsByClassName = $.test(g.getElementsByClassName),c.getById = ja(function(a){return o.appendChild(a).id = u,!g.getElementsByName || !g.getElementsByName(u).length;}),c.getById?(d.find.ID = function(a,b){if("undefined" != typeof b.getElementById && p){var c=b.getElementById(a);return c && c.parentNode?[c]:[];}},d.filter.ID = function(a){var b=a.replace(ca,da);return function(a){return a.getAttribute("id") === b;};}):(delete d.find.ID,d.filter.ID = function(a){var b=a.replace(ca,da);return function(a){var c="undefined" != typeof a.getAttributeNode && a.getAttributeNode("id");return c && c.value === b;};}),d.find.TAG = c.getElementsByTagName?function(a,b){return "undefined" != typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0;}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*" === a){while(c = f[e++]) 1 === c.nodeType && d.push(c);return d;}return f;},d.find.CLASS = c.getElementsByClassName && function(a,b){return p?b.getElementsByClassName(a):void 0;},r = [],q = [],(c.qsa = $.test(g.querySelectorAll)) && (ja(function(a){o.appendChild(a).innerHTML = "<a id='" + u + "'></a><select id='" + u + "-\f]' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length && q.push("[*^$]=" + L + "*(?:''|\"\")"),a.querySelectorAll("[selected]").length || q.push("\\[" + L + "*(?:value|" + K + ")"),a.querySelectorAll("[id~=" + u + "-]").length || q.push("~="),a.querySelectorAll(":checked").length || q.push(":checked"),a.querySelectorAll("a#" + u + "+*").length || q.push(".#.+[+~]");}),ja(function(a){var b=g.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length && q.push("name" + L + "*[*^$|!~]?="),a.querySelectorAll(":enabled").length || q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:");})),(c.matchesSelector = $.test(s = o.matches || o.webkitMatchesSelector || o.mozMatchesSelector || o.oMatchesSelector || o.msMatchesSelector)) && ja(function(a){c.disconnectedMatch = s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",P);}),q = q.length && new RegExp(q.join("|")),r = r.length && new RegExp(r.join("|")),b = $.test(o.compareDocumentPosition),t = b || $.test(o.contains)?function(a,b){var c=9 === a.nodeType?a.documentElement:a,d=b && b.parentNode;return a === d || !(!d || 1 !== d.nodeType || !(c.contains?c.contains(d):a.compareDocumentPosition && 16 & a.compareDocumentPosition(d)));}:function(a,b){if(b)while(b = b.parentNode) if(b === a)return !0;return !1;},B = b?function(a,b){if(a === b)return l = !0,0;var d=!a.compareDocumentPosition - !b.compareDocumentPosition;return d?d:(d = (a.ownerDocument || a) === (b.ownerDocument || b)?a.compareDocumentPosition(b):1,1 & d || !c.sortDetached && b.compareDocumentPosition(a) === d?a === g || a.ownerDocument === v && t(v,a)?-1:b === g || b.ownerDocument === v && t(v,b)?1:k?J(k,a) - J(k,b):0:4 & d?-1:1);}:function(a,b){if(a === b)return l = !0,0;var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e || !f)return a === g?-1:b === g?1:e?-1:f?1:k?J(k,a) - J(k,b):0;if(e === f)return la(a,b);c = a;while(c = c.parentNode) h.unshift(c);c = b;while(c = c.parentNode) i.unshift(c);while(h[d] === i[d]) d++;return d?la(h[d],i[d]):h[d] === v?-1:i[d] === v?1:0;},g):n;},ga.matches = function(a,b){return ga(a,null,null,b);},ga.matchesSelector = function(a,b){if(((a.ownerDocument || a) !== n && m(a),b = b.replace(U,"='$1']"),!(!c.matchesSelector || !p || r && r.test(b) || q && q.test(b))))try{var d=s.call(a,b);if(d || c.disconnectedMatch || a.document && 11 !== a.document.nodeType)return d;}catch(e) {}return ga(b,n,null,[a]).length > 0;},ga.contains = function(a,b){return (a.ownerDocument || a) !== n && m(a),t(a,b);},ga.attr = function(a,b){(a.ownerDocument || a) !== n && m(a);
5var e=d.attrHandle[b.toLowerCase()],f=e && D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0 !== f?f:c.attributes || !p?a.getAttribute(b):(f = a.getAttributeNode(b)) && f.specified?f.value:null;},ga.error = function(a){throw new Error("Syntax error, unrecognized expression: " + a);},ga.uniqueSort = function(a){var b,d=[],e=0,f=0;if((l = !c.detectDuplicates,k = !c.sortStable && a.slice(0),a.sort(B),l)){while(b = a[f++]) b === a[f] && (e = d.push(f));while(e--) a.splice(d[e],1);}return k = null,a;},e = ga.getText = function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1 === f || 9 === f || 11 === f){if("string" == typeof a.textContent)return a.textContent;for(a = a.firstChild;a;a = a.nextSibling) c += e(a);}else if(3 === f || 4 === f)return a.nodeValue;}else while(b = a[d++]) c += e(b);return c;},d = ga.selectors = {cacheLength:50,createPseudo:ia,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function ATTR(a){return a[1] = a[1].replace(ca,da),a[3] = (a[3] || a[4] || a[5] || "").replace(ca,da),"~=" === a[2] && (a[3] = " " + a[3] + " "),a.slice(0,4);},CHILD:function CHILD(a){return a[1] = a[1].toLowerCase(),"nth" === a[1].slice(0,3)?(a[3] || ga.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] && ga.error(a[0]),a;},PSEUDO:function PSEUDO(a){var b,c=!a[6] && a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2] = a[4] || a[5] || "":c && V.test(c) && (b = g(c,!0)) && (b = c.indexOf(")",c.length - b) - c.length) && (a[0] = a[0].slice(0,b),a[2] = c.slice(0,b)),a.slice(0,3));}},filter:{TAG:function TAG(a){var b=a.replace(ca,da).toLowerCase();return "*" === a?function(){return !0;}:function(a){return a.nodeName && a.nodeName.toLowerCase() === b;};},CLASS:function CLASS(a){var b=y[a + " "];return b || (b = new RegExp("(^|" + L + ")" + a + "(" + L + "|$)")) && y(a,function(a){return b.test("string" == typeof a.className && a.className || "undefined" != typeof a.getAttribute && a.getAttribute("class") || "");});},ATTR:function ATTR(a,b,c){return function(d){var e=ga.attr(d,a);return null == e?"!=" === b:b?(e += "","=" === b?e === c:"!=" === b?e !== c:"^=" === b?c && 0 === e.indexOf(c):"*=" === b?c && e.indexOf(c) > -1:"$=" === b?c && e.slice(-c.length) === c:"~=" === b?(" " + e.replace(Q," ") + " ").indexOf(c) > -1:"|=" === b?e === c || e.slice(0,c.length + 1) === c + "-":!1):!0;};},CHILD:function CHILD(a,b,c,d,e){var f="nth" !== a.slice(0,3),g="last" !== a.slice(-4),h="of-type" === b;return 1 === d && 0 === e?function(a){return !!a.parentNode;}:function(b,c,i){var j,k,l,m,n,o,p=f !== g?"nextSibling":"previousSibling",q=b.parentNode,r=h && b.nodeName.toLowerCase(),s=!i && !h;if(q){if(f){while(p) {l = b;while(l = l[p]) if(h?l.nodeName.toLowerCase() === r:1 === l.nodeType)return !1;o = p = "only" === a && !o && "nextSibling";}return !0;}if((o = [g?q.firstChild:q.lastChild],g && s)){k = q[u] || (q[u] = {}),j = k[a] || [],n = j[0] === w && j[1],m = j[0] === w && j[2],l = n && q.childNodes[n];while(l = ++n && l && l[p] || (m = n = 0) || o.pop()) if(1 === l.nodeType && ++m && l === b){k[a] = [w,n,m];break;}}else if(s && (j = (b[u] || (b[u] = {}))[a]) && j[0] === w)m = j[1];else while(l = ++n && l && l[p] || (m = n = 0) || o.pop()) if((h?l.nodeName.toLowerCase() === r:1 === l.nodeType) && ++m && (s && ((l[u] || (l[u] = {}))[a] = [w,m]),l === b))break;return m -= e,m === d || m % d === 0 && m / d >= 0;}};},PSEUDO:function PSEUDO(a,b){var c,e=d.pseudos[a] || d.setFilters[a.toLowerCase()] || ga.error("unsupported pseudo: " + a);return e[u]?e(b):e.length > 1?(c = [a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--) d = J(a,f[g]),a[d] = !(c[d] = f[g]);}):function(a){return e(a,0,c);}):e;}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--) (f = g[h]) && (a[h] = !(b[h] = f));}):function(a,e,f){return b[0] = a,d(b,null,f,c),b[0] = null,!c.pop();};}),has:ia(function(a){return function(b){return ga(a,b).length > 0;};}),contains:ia(function(a){return a = a.replace(ca,da),function(b){return (b.textContent || b.innerText || e(b)).indexOf(a) > -1;};}),lang:ia(function(a){return W.test(a || "") || ga.error("unsupported lang: " + a),a = a.replace(ca,da).toLowerCase(),function(b){var c;do if(c = p?b.lang:b.getAttribute("xml:lang") || b.getAttribute("lang"))return c = c.toLowerCase(),c === a || 0 === c.indexOf(a + "-");while((b = b.parentNode) && 1 === b.nodeType);return !1;};}),target:function target(b){var c=a.location && a.location.hash;return c && c.slice(1) === b.id;},root:function root(a){return a === o;},focus:function focus(a){return a === n.activeElement && (!n.hasFocus || n.hasFocus()) && !!(a.type || a.href || ~a.tabIndex);},enabled:function enabled(a){return a.disabled === !1;},disabled:function disabled(a){return a.disabled === !0;},checked:function checked(a){var b=a.nodeName.toLowerCase();return "input" === b && !!a.checked || "option" === b && !!a.selected;},selected:function selected(a){return a.parentNode && a.parentNode.selectedIndex,a.selected === !0;},empty:function empty(a){for(a = a.firstChild;a;a = a.nextSibling) if(a.nodeType < 6)return !1;return !0;},parent:function parent(a){return !d.pseudos.empty(a);},header:function header(a){return Z.test(a.nodeName);},input:function input(a){return Y.test(a.nodeName);},button:function button(a){var b=a.nodeName.toLowerCase();return "input" === b && "button" === a.type || "button" === b;},text:function text(a){var b;return "input" === a.nodeName.toLowerCase() && "text" === a.type && (null == (b = a.getAttribute("type")) || "text" === b.toLowerCase());},first:oa(function(){return [0];}),last:oa(function(a,b){return [b - 1];}),eq:oa(function(a,b,c){return [0 > c?c + b:c];}),even:oa(function(a,b){for(var c=0;b > c;c += 2) a.push(c);return a;}),odd:oa(function(a,b){for(var c=1;b > c;c += 2) a.push(c);return a;}),lt:oa(function(a,b,c){for(var d=0 > c?c + b:c;--d >= 0;) a.push(d);return a;}),gt:oa(function(a,b,c){for(var d=0 > c?c + b:c;++d < b;) a.push(d);return a;})}},d.pseudos.nth = d.pseudos.eq;for(b in {radio:!0,checkbox:!0,file:!0,password:!0,image:!0}) d.pseudos[b] = ma(b);for(b in {submit:!0,reset:!0}) d.pseudos[b] = na(b);function qa(){}qa.prototype = d.filters = d.pseudos,d.setFilters = new qa(),g = ga.tokenize = function(a,b){var c,e,f,g,h,i,j,k=z[a + " "];if(k)return b?0:k.slice(0);h = a,i = [],j = d.preFilter;while(h) {(!c || (e = S.exec(h))) && (e && (h = h.slice(e[0].length) || h),i.push(f = [])),c = !1,(e = T.exec(h)) && (c = e.shift(),f.push({value:c,type:e[0].replace(R," ")}
5),h = h.slice(c.length));for(g in d.filter) !(e = X[g].exec(h)) || j[g] && !(e = j[g](e)) || (c = e.shift(),f.push({value:c,type:g,matches:e}),h = h.slice(c.length));if(!c)break;}return b?h.length:h?ga.error(a):z(a,i).slice(0);};function ra(a){for(var b=0,c=a.length,d="";c > b;b++) d += a[b].value;return d;}function sa(a,b,c){var d=b.dir,e=c && "parentNode" === d,f=x++;return b.first?function(b,c,f){while(b = b[d]) if(1 === b.nodeType || e)return a(b,c,f);}:function(b,c,g){var h,i,j=[w,f];if(g){while(b = b[d]) if((1 === b.nodeType || e) && a(b,c,g))return !0;}else while(b = b[d]) if(1 === b.nodeType || e){if((i = b[u] || (b[u] = {}),(h = i[d]) && h[0] === w && h[1] === f))return j[2] = h[2];if((i[d] = j,j[2] = a(b,c,g)))return !0;}};}function ta(a){return a.length > 1?function(b,c,d){var e=a.length;while(e--) if(!a[e](b,c,d))return !1;return !0;}:a[0];}function ua(a,b,c){for(var d=0,e=b.length;e > d;d++) ga(a,b[d],c);return c;}function va(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null != b;i > h;h++) (f = a[h]) && (!c || c(f,d,e)) && (g.push(f),j && b.push(h));return g;}function wa(a,b,c,d,e,f){return d && !d[u] && (d = wa(d)),e && !e[u] && (e = wa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f || ua(b || "*",h.nodeType?[h]:h,[]),q=!a || !f && b?p:va(p,m,a,h,i),r=c?e || (f?a:o || d)?[]:g:q;if((c && c(q,r,h,i),d)){j = va(r,n),d(j,[],h,i),k = j.length;while(k--) (l = j[k]) && (r[n[k]] = !(q[n[k]] = l));}if(f){if(e || a){if(e){j = [],k = r.length;while(k--) (l = r[k]) && j.push(q[k] = l);e(null,r = [],j,i);}k = r.length;while(k--) (l = r[k]) && (j = e?J(f,l):m[k]) > -1 && (f[j] = !(g[j] = l));}}else r = va(r === g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r);});}function xa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g || d.relative[" "],i=g?1:0,k=sa(function(a){return a === b;},h,!0),l=sa(function(a){return J(b,a) > -1;},h,!0),m=[function(a,c,d){var e=!g && (d || c !== j) || ((b = c).nodeType?k(a,c,d):l(a,c,d));return b = null,e;}];f > i;i++) if(c = d.relative[a[i].type])m = [sa(ta(m),c)];else {if((c = d.filter[a[i].type].apply(null,a[i].matches),c[u])){for(e = ++i;f > e;e++) if(d.relative[a[e].type])break;return wa(i > 1 && ta(m),i > 1 && ra(a.slice(0,i - 1).concat({value:" " === a[i - 2].type?"*":""})).replace(R,"$1"),c,e > i && xa(a.slice(i,e)),f > e && xa(a = a.slice(e)),f > e && ra(a));}m.push(c);}return ta(m);}function ya(a,b){var c=b.length > 0,e=a.length > 0,f=function f(_f,g,h,i,k){var l,m,o,p=0,q="0",r=_f && [],s=[],t=j,u=_f || e && d.find.TAG("*",k),v=w += null == t?1:Math.random() || .1,x=u.length;for(k && (j = g !== n && g);q !== x && null != (l = u[q]);q++) {if(e && l){m = 0;while(o = a[m++]) if(o(l,g,h)){i.push(l);break;}k && (w = v);}c && ((l = !o && l) && p--,_f && r.push(l));}if((p += q,c && q !== p)){m = 0;while(o = b[m++]) o(r,s,g,h);if(_f){if(p > 0)while(q--) r[q] || s[q] || (s[q] = F.call(i));s = va(s);}H.apply(i,s),k && !_f && s.length > 0 && p + b.length > 1 && ga.uniqueSort(i);}return k && (w = v,j = t),r;};return c?ia(f):f;}return h = ga.compile = function(a,b){var c,d=[],e=[],f=A[a + " "];if(!f){b || (b = g(a)),c = b.length;while(c--) f = xa(b[c]),f[u]?d.push(f):e.push(f);f = A(a,ya(e,d)),f.selector = a;}return f;},i = ga.select = function(a,b,e,f){var i,j,k,l,m,n="function" == typeof a && a,o=!f && g(a = n.selector || a);if((e = e || [],1 === o.length)){if((j = o[0] = o[0].slice(0),j.length > 2 && "ID" === (k = j[0]).type && c.getById && 9 === b.nodeType && p && d.relative[j[1].type])){if((b = (d.find.ID(k.matches[0].replace(ca,da),b) || [])[0],!b))return e;n && (b = b.parentNode),a = a.slice(j.shift().value.length);}i = X.needsContext.test(a)?0:j.length;while(i--) {if((k = j[i],d.relative[l = k.type]))break;if((m = d.find[l]) && (f = m(k.matches[0].replace(ca,da),aa.test(j[0].type) && pa(b.parentNode) || b))){if((j.splice(i,1),a = f.length && ra(j),!a))return H.apply(e,f),e;break;}}}return (n || h(a,o))(f,b,!p,e,aa.test(a) && pa(b.parentNode) || b),e;},c.sortStable = u.split("").sort(B).join("") === u,c.detectDuplicates = !!l,m(),c.sortDetached = ja(function(a){return 1 & a.compareDocumentPosition(n.createElement("div"));}),ja(function(a){return a.innerHTML = "<a href='#'></a>","#" === a.firstChild.getAttribute("href");}) || ka("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type" === b.toLowerCase()?1:2);}),c.attributes && ja(function(a){return a.innerHTML = "<input/>",a.firstChild.setAttribute("value",""),"" === a.firstChild.getAttribute("value");}) || ka("value",function(a,b,c){return c || "input" !== a.nodeName.toLowerCase()?void 0:a.defaultValue;}),ja(function(a){return null == a.getAttribute("disabled");}) || ka(K,function(a,b,c){var d;return c?void 0:a[b] === !0?b.toLowerCase():(d = a.getAttributeNode(b)) && d.specified?d.value:null;}),ga;})(a);m.find = s,m.expr = s.selectors,m.expr[":"] = m.expr.pseudos,m.unique = s.uniqueSort,m.text = s.getText,m.isXMLDoc = s.isXML,m.contains = s.contains;var t=m.expr.match.needsContext,u=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/^.[^:#\[\.,]*$/;function w(a,b,c){if(m.isFunction(b))return m.grep(a,function(a,d){return !!b.call(a,d,a) !== c;});if(b.nodeType)return m.grep(a,function(a){return a === b !== c;});if("string" == typeof b){if(v.test(b))return m.filter(b,a,c);b = m.filter(b,a);}return m.grep(a,function(a){return m.inArray(a,b) >= 0 !== c;});}m.filter = function(a,b,c){var d=b[0];return c && (a = ":not(" + a + ")"),1 === b.length && 1 === d.nodeType?m.find.matchesSelector(d,a)?[d]:[]:m.find.matches(a,m.grep(b,function(a){return 1 === a.nodeType;}));},m.fn.extend({find:function find(a){var b,c=[],d=this,e=d.length;if("string" != typeof a)return this.pushStack(m(a).filter(function(){for(b = 0;e > b;b++) if(m.contains(d[b],this))return !0;}));for(b = 0;e > b;b++) m.find(a,d[b],c);return c = this.pushStack(e > 1?m.unique(c):c),c.selector = this.selector?this.selector + " " + a:a,c;},filter:function filter(a){return this.pushStack(w(this,a || [],!1));},not:function not(a){return this.pushStack(w(this,a || [],!0));},is:function is(a){return !!w(this,"string" == typeof a && t.test(a)?m(a):a || [],!1).length;}});var x,y=a.document,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=m.fn.init = function(a,b){var c,d;if(!a)return this;if("string" == typeof a){if((c = "<" === a.charAt(0) && ">" === a.charAt(a.length - 1) && a.length >= 3?[null,a,null]:z.exec(a),!c || !c[1] && b))return !b || b.jquery?(b || x).find(a):this.constructor(b).find(a);if(c[1]){if((b = b instanceof m?b[0]:b,m.merge(this,m.parseHTML(c[1],b && b.nodeType?b.ownerDocument || b:y,!0)),u.test(c[1]) && m.isPlainObject(b)))for(c in b) m.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this;}if((d = y.getElementById(c[2]),d && d.parentNode)){if(d.id !== c[2])return x.find(a);this.length = 1,this[0] = d;}return this.context = y,this.selector = a,this;}return a.nodeType?(this.context = this[0] = a,this.length = 1,this):m.isFunction(a)?"undefined" != typeof x.ready?x.ready(a):a(m):(void 0 !== a.selector && (this.selector = a.selector,this.context = a.context),m.makeArray(a,this));};A.prototype = m.fn,x = m(y);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};m.extend({dir:function dir(a,b,c){var d=[],e=a[b];
5while(e && 9 !== e.nodeType && (void 0 === c || 1 !== e.nodeType || !m(e).is(c))) 1 === e.nodeType && d.push(e),e = e[b];return d;},sibling:function sibling(a,b){for(var c=[];a;a = a.nextSibling) 1 === a.nodeType && a !== b && c.push(a);return c;}}),m.fn.extend({has:function has(a){var b,c=m(a,this),d=c.length;return this.filter(function(){for(b = 0;d > b;b++) if(m.contains(this,c[b]))return !0;});},closest:function closest(a,b){for(var c,d=0,e=this.length,f=[],g=t.test(a) || "string" != typeof a?m(a,b || this.context):0;e > d;d++) for(c = this[d];c && c !== b;c = c.parentNode) if(c.nodeType < 11 && (g?g.index(c) > -1:1 === c.nodeType && m.find.matchesSelector(c,a))){f.push(c);break;}return this.pushStack(f.length > 1?m.unique(f):f);},index:function index(a){return a?"string" == typeof a?m.inArray(this[0],m(a)):m.inArray(a.jquery?a[0]:a,this):this[0] && this[0].parentNode?this.first().prevAll().length:-1;},add:function add(a,b){return this.pushStack(m.unique(m.merge(this.get(),m(a,b))));},addBack:function addBack(a){return this.add(null == a?this.prevObject:this.prevObject.filter(a));}});function D(a,b){do a = a[b];while(a && 1 !== a.nodeType);return a;}m.each({parent:function parent(a){var b=a.parentNode;return b && 11 !== b.nodeType?b:null;},parents:function parents(a){return m.dir(a,"parentNode");},parentsUntil:function parentsUntil(a,b,c){return m.dir(a,"parentNode",c);},next:function next(a){return D(a,"nextSibling");},prev:function prev(a){return D(a,"previousSibling");},nextAll:function nextAll(a){return m.dir(a,"nextSibling");},prevAll:function prevAll(a){return m.dir(a,"previousSibling");},nextUntil:function nextUntil(a,b,c){return m.dir(a,"nextSibling",c);},prevUntil:function prevUntil(a,b,c){return m.dir(a,"previousSibling",c);},siblings:function siblings(a){return m.sibling((a.parentNode || {}).firstChild,a);},children:function children(a){return m.sibling(a.firstChild);},contents:function contents(a){return m.nodeName(a,"iframe")?a.contentDocument || a.contentWindow.document:m.merge([],a.childNodes);}},function(a,b){m.fn[a] = function(c,d){var e=m.map(this,b,c);return "Until" !== a.slice(-5) && (d = c),d && "string" == typeof d && (e = m.filter(d,e)),this.length > 1 && (C[a] || (e = m.unique(e)),B.test(a) && (e = e.reverse())),this.pushStack(e);};});var E=/\S+/g,F={};function G(a){var b=F[a] = {};return m.each(a.match(E) || [],function(a,c){b[c] = !0;}),b;}m.Callbacks = function(a){a = "string" == typeof a?F[a] || G(a):m.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once && [],j=function j(l){for(c = a.memory && l,d = !0,f = g || 0,g = 0,e = h.length,b = !0;h && e > f;f++) if(h[f].apply(l[0],l[1]) === !1 && a.stopOnFalse){c = !1;break;}b = !1,h && (i?i.length && j(i.shift()):c?h = []:k.disable());},k={add:function add(){if(h){var d=h.length;!(function f(b){m.each(b,function(b,c){var d=m.type(c);"function" === d?a.unique && k.has(c) || h.push(c):c && c.length && "string" !== d && f(c);});})(arguments),b?e = h.length:c && (g = d,j(c));}return this;},remove:function remove(){return h && m.each(arguments,function(a,c){var d;while((d = m.inArray(c,h,d)) > -1) h.splice(d,1),b && (e >= d && e--,f >= d && f--);}),this;},has:function has(a){return a?m.inArray(a,h) > -1:!(!h || !h.length);},empty:function empty(){return h = [],e = 0,this;},disable:function disable(){return h = i = c = void 0,this;},disabled:function disabled(){return !h;},lock:function lock(){return i = void 0,c || k.disable(),this;},locked:function locked(){return !i;},fireWith:function fireWith(a,c){return !h || d && !i || (c = c || [],c = [a,c.slice?c.slice():c],b?i.push(c):j(c)),this;},fire:function fire(){return k.fireWith(this,arguments),this;},fired:function fired(){return !!d;}};return k;},m.extend({Deferred:function Deferred(a){var b=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],c="pending",d={state:function state(){return c;},always:function always(){return e.done(arguments).fail(arguments),this;},then:function then(){var a=arguments;return m.Deferred(function(c){m.each(b,function(b,f){var g=m.isFunction(a[b]) && a[b];e[f[1]](function(){var a=g && g.apply(this,arguments);a && m.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0] + "With"](this === d?c.promise():this,g?[a]:arguments);});}),a = null;}).promise();},promise:function promise(a){return null != a?m.extend(a,d):d;}},e={};return d.pipe = d.then,m.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]] = g.add,h && g.add(function(){c = h;},b[1 ^ a][2].disable,b[2][2].lock),e[f[0]] = function(){return e[f[0] + "With"](this === e?d:this,arguments),this;},e[f[0] + "With"] = g.fireWith;}),d.promise(e),a && a.call(e,e),e;},when:function when(a){var b=0,c=d.call(arguments),e=c.length,f=1 !== e || a && m.isFunction(a.promise)?e:0,g=1 === f?a:m.Deferred(),h=function h(a,b,c){return function(e){b[a] = this,c[a] = arguments.length > 1?d.call(arguments):e,c === i?g.notifyWith(b,c):--f || g.resolveWith(b,c);};},i,j,k;if(e > 1)for(i = new Array(e),j = new Array(e),k = new Array(e);e > b;b++) c[b] && m.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f || g.resolveWith(k,c),g.promise();}});var H;m.fn.ready = function(a){return m.ready.promise().done(a),this;},m.extend({isReady:!1,readyWait:1,holdReady:function holdReady(a){a?m.readyWait++:m.ready(!0);}
5,ready:function ready(a){if(a === !0?! --m.readyWait:!m.isReady){if(!y.body)return setTimeout(m.ready);m.isReady = !0,a !== !0 && --m.readyWait > 0 || (H.resolveWith(y,[m]),m.fn.triggerHandler && (m(y).triggerHandler("ready"),m(y).off("ready")));}}});function I(){y.addEventListener?(y.removeEventListener("DOMContentLoaded",J,!1),a.removeEventListener("load",J,!1)):(y.detachEvent("onreadystatechange",J),a.detachEvent("onload",J));}function J(){(y.addEventListener || "load" === event.type || "complete" === y.readyState) && (I(),m.ready());}m.ready.promise = function(b){if(!H)if((H = m.Deferred(),"complete" === y.readyState))setTimeout(m.ready);else if(y.addEventListener)y.addEventListener("DOMContentLoaded",J,!1),a.addEventListener("load",J,!1);else {y.attachEvent("onreadystatechange",J),a.attachEvent("onload",J);var c=!1;try{c = null == a.frameElement && y.documentElement;}catch(d) {}c && c.doScroll && !(function e(){if(!m.isReady){try{c.doScroll("left");}catch(a) {return setTimeout(e,50);}I(),m.ready();}})();}return H.promise(b);};var K="undefined",L;for(L in m(k)) break;k.ownLast = "0" !== L,k.inlineBlockNeedsLayout = !1,m(function(){var a,b,c,d;c = y.getElementsByTagName("body")[0],c && c.style && (b = y.createElement("div"),d = y.createElement("div"),d.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom !== K && (b.style.cssText = "display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",k.inlineBlockNeedsLayout = a = 3 === b.offsetWidth,a && (c.style.zoom = 1)),c.removeChild(d));}),(function(){var a=y.createElement("div");if(null == k.deleteExpando){k.deleteExpando = !0;try{delete a.test;}catch(b) {k.deleteExpando = !1;}}a = null;})(),m.acceptData = function(a){var b=m.noData[(a.nodeName + " ").toLowerCase()],c=+a.nodeType || 1;return 1 !== c && 9 !== c?!1:!b || b !== !0 && a.getAttribute("classid") === b;};var M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,N=/([A-Z])/g;function O(a,b,c){if(void 0 === c && 1 === a.nodeType){var d="data-" + b.replace(N,"-$1").toLowerCase();if((c = a.getAttribute(d),"string" == typeof c)){try{c = "true" === c?!0:"false" === c?!1:"null" === c?null:+c + "" === c?+c:M.test(c)?m.parseJSON(c):c;}catch(e) {}m.data(a,b,c);}else c = void 0;}return c;}function P(a){var b;for(b in a) if(("data" !== b || !m.isEmptyObject(a[b])) && "toJSON" !== b)return !1;return !0;}function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType,j=i?m.cache:a,k=i?a[h]:a[h] && h;if(k && j[k] && (e || j[k].data) || void 0 !== d || "string" != typeof b)return k || (k = i?a[h] = c.pop() || m.guid++:h),j[k] || (j[k] = i?{}:{toJSON:m.noop}),("object" == typeof b || "function" == typeof b) && (e?j[k] = m.extend(j[k],b):j[k].data = m.extend(j[k].data,b)),g = j[k],e || (g.data || (g.data = {}),g = g.data),void 0 !== d && (g[m.camelCase(b)] = d),"string" == typeof b?(f = g[b],null == f && (f = g[m.camelCase(b)])):f = g,f;}}function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b && (d = c?g[h]:g[h].data)){m.isArray(b)?b = b.concat(m.map(b,m.camelCase)):b in d?b = [b]:(b = m.camelCase(b),b = b in d?[b]:b.split(" ")),e = b.length;while(e--) delete d[b[e]];if(c?!P(d):!m.isEmptyObject(d))return;}(c || (delete g[h].data,P(g[h]))) && (f?m.cleanData([a],!0):k.deleteExpando || g != g.window?delete g[h]:g[h] = null);}}}m.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function hasData(a){return a = a.nodeType?m.cache[a[m.expando]]:a[m.expando],!!a && !P(a);},data:function data(a,b,c){return Q(a,b,c);},removeData:function removeData(a,b){return R(a,b);},_data:function _data(a,b,c){return Q(a,b,c,!0);},_removeData:function _removeData(a,b){return R(a,b,!0);}}),m.fn.extend({data:function data(a,b){var c,d,e,f=this[0],g=f && f.attributes;if(void 0 === a){if(this.length && (e = m.data(f),1 === f.nodeType && !m._data(f,"parsedAttrs"))){c = g.length;while(c--) g[c] && (d = g[c].name,0 === d.indexOf("data-") && (d = m.camelCase(d.slice(5)),O(f,d,e[d])));m._data(f,"parsedAttrs",!0);}return e;}return "object" == typeof a?this.each(function(){m.data(this,a);}):arguments.length > 1?this.each(function(){m.data(this,a,b);}):f?O(f,a,m.data(f,a)):void 0;},removeData:function removeData(a){return this.each(function(){m.removeData(this,a);});}}),m.extend({queue:function queue(a,b,c){var d;return a?(b = (b || "fx") + "queue",d = m._data(a,b),c && (!d || m.isArray(c)?d = m._data(a,b,m.makeArray(c)):d.push(c)),d || []):void 0;},dequeue:function dequeue(a,b){b = b || "fx";var c=m.queue(a,b),d=c.length,e=c.shift(),f=m._queueHooks(a,b),g=function g(){m.dequeue(a,b);};"inprogress" === e && (e = c.shift(),d--),e && ("fx" === b && c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d && f && f.empty.fire();},_queueHooks:function _queueHooks(a,b){var c=b + "queueHooks";return m._data(a,c) || m._data(a,c,{empty:m.Callbacks("once memory").add(function(){m._removeData(a,b + "queue"),m._removeData(a,c);})});}}),m.fn.extend({queue:function queue(a,b){var c=2;return "string" != typeof a && (b = a,a = "fx",c--),arguments.length < c?m.queue(this[0],a):void 0 === b?this:this.each(function(){var c=m.queue(this,a,b);m._queueHooks(this,a),"fx" === a && "inprogress" !== c[0] && m.dequeue(this,a);});},dequeue:function dequeue(a){return this.each(function(){m.dequeue(this,a);});},clearQueue:function clearQueue(a){return this.queue(a || "fx",[]);},promise:function promise(a,b){var c,d=1,e=m.Deferred(),f=this,g=this.length,h=function h(){--d || e.resolveWith(f,[f]);};"string" != typeof a && (b = a,a = void 0),a = a || "fx";while(g--) c = m._data(f[g],a + "queueHooks"),c && c.empty && (d++,c.empty.add(h));return h(),e.promise(b);}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=["Top","Right","Bottom","Left"],U=function U(a,b){return a = b || a,"none" === m.css(a,"display") || !m.contains(a.ownerDocument,a);},V=m.access = function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null == c;if("object" === m.type(c)){e = !0;
5for(h in c) m.access(a,b,h,c[h],!0,f,g);}else if(void 0 !== d && (e = !0,m.isFunction(d) || (g = !0),j && (g?(b.call(a,d),b = null):(j = b,b = function(a,b,c){return j.call(m(a),c);})),b))for(;i > h;h++) b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f;},W=/^(?:checkbox|radio)$/i;!(function(){var a=y.createElement("input"),b=y.createElement("div"),c=y.createDocumentFragment();if((b.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",k.leadingWhitespace = 3 === b.firstChild.nodeType,k.tbody = !b.getElementsByTagName("tbody").length,k.htmlSerialize = !!b.getElementsByTagName("link").length,k.html5Clone = "<:nav></:nav>" !== y.createElement("nav").cloneNode(!0).outerHTML,a.type = "checkbox",a.checked = !0,c.appendChild(a),k.appendChecked = a.checked,b.innerHTML = "<textarea>x</textarea>",k.noCloneChecked = !!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML = "<input type='radio' checked='checked' name='t'/>",k.checkClone = b.cloneNode(!0).cloneNode(!0).lastChild.checked,k.noCloneEvent = !0,b.attachEvent && (b.attachEvent("onclick",function(){k.noCloneEvent = !1;}),b.cloneNode(!0).click()),null == k.deleteExpando)){k.deleteExpando = !0;try{delete b.test;}catch(d) {k.deleteExpando = !1;}}})(),(function(){var b,c,d=y.createElement("div");for(b in {submit:!0,change:!0,focusin:!0}) c = "on" + b,(k[b + "Bubbles"] = c in a) || (d.setAttribute(c,"t"),k[b + "Bubbles"] = d.attributes[c].expando === !1);d = null;})();var X=/^(?:input|select|textarea)$/i,Y=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=/^([^.]*)(?:\.(.+)|)$/;function aa(){return !0;}function ba(){return !1;}function ca(){try{return y.activeElement;}catch(a) {}}m.event = {global:{},add:function add(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m._data(a);if(r){c.handler && (i = c,c = i.handler,e = i.selector),c.guid || (c.guid = m.guid++),(g = r.events) || (g = r.events = {}),(k = r.handle) || (k = r.handle = function(a){return typeof m === K || a && m.event.triggered === a.type?void 0:m.event.dispatch.apply(k.elem,arguments);},k.elem = a),b = (b || "").match(E) || [""],h = b.length;while(h--) f = _.exec(b[h]) || [],o = q = f[1],p = (f[2] || "").split(".").sort(),o && (j = m.event.special[o] || {},o = (e?j.delegateType:j.bindType) || o,j = m.event.special[o] || {},l = m.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e && m.expr.match.needsContext.test(e),namespace:p.join(".")},i),(n = g[o]) || (n = g[o] = [],n.delegateCount = 0,j.setup && j.setup.call(a,d,p,k) !== !1 || (a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent && a.attachEvent("on" + o,k))),j.add && (j.add.call(a,l),l.handler.guid || (l.handler.guid = c.guid)),e?n.splice(n.delegateCount++,0,l):n.push(l),m.event.global[o] = !0);a = null;}},remove:function remove(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m.hasData(a) && m._data(a);if(r && (k = r.events)){b = (b || "").match(E) || [""],j = b.length;while(j--) if((h = _.exec(b[j]) || [],o = q = h[1],p = (h[2] || "").split(".").sort(),o)){l = m.event.special[o] || {},o = (d?l.delegateType:l.bindType) || o,n = k[o] || [],h = h[2] && new RegExp("(^|\\.)" + p.join("\\.(?:.*\\.|)") + "(\\.|$)"),i = f = n.length;while(f--) g = n[f],!e && q !== g.origType || c && c.guid !== g.guid || h && !h.test(g.namespace) || d && d !== g.selector && ("**" !== d || !g.selector) || (n.splice(f,1),g.selector && n.delegateCount--,l.remove && l.remove.call(a,g));i && !n.length && (l.teardown && l.teardown.call(a,p,r.handle) !== !1 || m.removeEvent(a,o,r.handle),delete k[o]);}else for(o in k) m.event.remove(a,o + b[j],c,d,!0);m.isEmptyObject(k) && (delete r.handle,m._removeData(a,"events"));}},trigger:function trigger(b,c,d,e){var f,g,h,i,k,l,n,o=[d || y],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if((h = l = d = d || y,3 !== d.nodeType && 8 !== d.nodeType && !$.test(p + m.event.triggered) && (p.indexOf(".") >= 0 && (q = p.split("."),p = q.shift(),q.sort()),g = p.indexOf(":") < 0 && "on" + p,b = b[m.expando]?b:new m.Event(p,"object" == typeof b && b),b.isTrigger = e?2:3,b.namespace = q.join("."),b.namespace_re = b.namespace?new RegExp("(^|\\.)" + q.join("\\.(?:.*\\.|)") + "(\\.|$)"):null,b.result = void 0,b.target || (b.target = d),c = null == c?[b]:m.makeArray(c,[b]),k = m.event.special[p] || {},e || !k.trigger || k.trigger.apply(d,c) !== !1))){if(!e && !k.noBubble && !m.isWindow(d)){for(i = k.delegateType || p,$.test(i + p) || (h = h.parentNode);h;h = h.parentNode) o.push(h),l = h;l === (d.ownerDocument || y) && o.push(l.defaultView || l.parentWindow || a);}n = 0;while((h = o[n++]) && !b.isPropagationStopped()) b.type = n > 1?i:k.bindType || p,f = (m._data(h,"events") || {})[b.type] && m._data(h,"handle"),f && f.apply(h,c),f = g && h[g],f && f.apply && m.acceptData(h) && (b.result = f.apply(h,c),b.result === !1 && b.preventDefault());if((b.type = p,!e && !b.isDefaultPrevented() && (!k._default || k._default.apply(o.pop(),c) === !1) && m.acceptData(d) && g && d[p] && !m.isWindow(d))){l = d[g],l && (d[g] = null),m.event.triggered = p;try{d[p]();}catch(r) {}m.event.triggered = void 0,l && (d[g] = l);}return b.result;}},dispatch:function dispatch(a){a = m.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(m._data(this,"events") || {})[a.type] || [],k=m.event.special[a.type] || {};if((i[0] = a,a.delegateTarget = this,!k.preDispatch || k.preDispatch.call(this,a) !== !1)){h = m.event.handlers.call(this,a,j),b = 0;while((f = h[b++]) && !a.isPropagationStopped()) {a.currentTarget = f.elem,g = 0;while((e = f.handlers[g++]) && !a.isImmediatePropagationStopped()) (!a.namespace_re || a.namespace_re.test(e.namespace)) && (a.handleObj = e,a.data = e.data,c = ((m.event.special[e.origType] || {}).handle || e.handler).apply(f.elem,i),void 0 !== c && (a.result = c) === !1 && (a.preventDefault(),a.stopPropagation()));}return k.postDispatch && k.postDispatch.call(this,a),a.result;}},handlers:function handlers(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h && i.nodeType && (!a.button || "click" !== a.type))for(;i != this;i = i.parentNode || this) if(1 === i.nodeType && (i.disabled !== !0 || "click" !== a.type)){for(e = [],f = 0;h > f;f++) d = b[f],c = d.selector + " ",void 0 === e[c] && (e[c] = d.needsContext?m(c,this).index(i) >= 0:m.find(c,this,null,[i]).length),e[c] && e.push(d);e.length && g.push({elem:i,handlers:e});}return h < b.length && g.push({elem:this,handlers:b.slice(h)}),g;},fix:function fix(a){if(a[m.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g || (this.fixHooks[e] = g = Z.test(e)?this.mouseHooks:Y.test(e)?this.keyHooks:{}),d = g.props?this.props.concat(g.props):this.props,a = new m.Event(f),b = d.length;while(b--) c = d[b],a[c] = f[c];return a.target || (a.target = f.srcElement || y),3 === a.target.nodeType && (a.target = a.target.parentNode),a.metaKey = !!a.metaKey,g.filter?g.filter(a,f):a;},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{}
5,keyHooks:{props:"char charCode key keyCode".split(" "),filter:function filter(a,b){return null == a.which && (a.which = null != b.charCode?b.charCode:b.keyCode),a;}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function filter(a,b){var c,d,e,f=b.button,g=b.fromElement;return null == a.pageX && null != b.clientX && (d = a.target.ownerDocument || y,e = d.documentElement,c = d.body,a.pageX = b.clientX + (e && e.scrollLeft || c && c.scrollLeft || 0) - (e && e.clientLeft || c && c.clientLeft || 0),a.pageY = b.clientY + (e && e.scrollTop || c && c.scrollTop || 0) - (e && e.clientTop || c && c.clientTop || 0)),!a.relatedTarget && g && (a.relatedTarget = g === a.target?b.toElement:g),a.which || void 0 === f || (a.which = 1 & f?1:2 & f?3:4 & f?2:0),a;}},special:{load:{noBubble:!0},focus:{trigger:function trigger(){if(this !== ca() && this.focus)try{return this.focus(),!1;}catch(a) {}},delegateType:"focusin"},blur:{trigger:function trigger(){return this === ca() && this.blur?(this.blur(),!1):void 0;},delegateType:"focusout"},click:{trigger:function trigger(){return m.nodeName(this,"input") && "checkbox" === this.type && this.click?(this.click(),!1):void 0;},_default:function _default(a){return m.nodeName(a.target,"a");}},beforeunload:{postDispatch:function postDispatch(a){void 0 !== a.result && a.originalEvent && (a.originalEvent.returnValue = a.result);}}},simulate:function simulate(a,b,c,d){var e=m.extend(new m.Event(),c,{type:a,isSimulated:!0,originalEvent:{}});d?m.event.trigger(e,null,b):m.event.dispatch.call(b,e),e.isDefaultPrevented() && c.preventDefault();}},m.removeEvent = y.removeEventListener?function(a,b,c){a.removeEventListener && a.removeEventListener(b,c,!1);}:function(a,b,c){var d="on" + b;a.detachEvent && (typeof a[d] === K && (a[d] = null),a.detachEvent(d,c));},m.Event = function(a,b){return this instanceof m.Event?(a && a.type?(this.originalEvent = a,this.type = a.type,this.isDefaultPrevented = a.defaultPrevented || void 0 === a.defaultPrevented && a.returnValue === !1?aa:ba):this.type = a,b && m.extend(this,b),this.timeStamp = a && a.timeStamp || m.now(),void (this[m.expando] = !0)):new m.Event(a,b);},m.Event.prototype = {isDefaultPrevented:ba,isPropagationStopped:ba,isImmediatePropagationStopped:ba,preventDefault:function preventDefault(){var a=this.originalEvent;this.isDefaultPrevented = aa,a && (a.preventDefault?a.preventDefault():a.returnValue = !1);},stopPropagation:function stopPropagation(){var a=this.originalEvent;this.isPropagationStopped = aa,a && (a.stopPropagation && a.stopPropagation(),a.cancelBubble = !0);},stopImmediatePropagation:function stopImmediatePropagation(){var a=this.originalEvent;this.isImmediatePropagationStopped = aa,a && a.stopImmediatePropagation && a.stopImmediatePropagation(),this.stopPropagation();}}
5,m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){m.event.special[a] = {delegateType:b,bindType:b,handle:function handle(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return (!e || e !== d && !m.contains(d,e)) && (a.type = f.origType,c = f.handler.apply(this,arguments),a.type = b),c;}};}),k.submitBubbles || (m.event.special.submit = {setup:function setup(){return m.nodeName(this,"form")?!1:void m.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=m.nodeName(b,"input") || m.nodeName(b,"button")?b.form:void 0;c && !m._data(c,"submitBubbles") && (m.event.add(c,"submit._submit",function(a){a._submit_bubble = !0;}),m._data(c,"submitBubbles",!0));});},postDispatch:function postDispatch(a){a._submit_bubble && (delete a._submit_bubble,this.parentNode && !a.isTrigger && m.event.simulate("submit",this.parentNode,a,!0));},teardown:function teardown(){return m.nodeName(this,"form")?!1:void m.event.remove(this,"._submit");}}),k.changeBubbles || (m.event.special.change = {setup:function setup(){return X.test(this.nodeName)?(("checkbox" === this.type || "radio" === this.type) && (m.event.add(this,"propertychange._change",function(a){"checked" === a.originalEvent.propertyName && (this._just_changed = !0);}),m.event.add(this,"click._change",function(a){this._just_changed && !a.isTrigger && (this._just_changed = !1),m.event.simulate("change",this,a,!0);})),!1):void m.event.add(this,"beforeactivate._change",function(a){var b=a.target;X.test(b.nodeName) && !m._data(b,"changeBubbles") && (m.event.add(b,"change._change",function(a){!this.parentNode || a.isSimulated || a.isTrigger || m.event.simulate("change",this.parentNode,a,!0);}),m._data(b,"changeBubbles",!0));});},handle:function handle(a){var b=a.target;return this !== b || a.isSimulated || a.isTrigger || "radio" !== b.type && "checkbox" !== b.type?a.handleObj.handler.apply(this,arguments):void 0;},teardown:function teardown(){return m.event.remove(this,"._change"),!X.test(this.nodeName);}}),k.focusinBubbles || m.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function c(a){m.event.simulate(b,a.target,m.event.fix(a),!0);};m.event.special[b] = {setup:function setup(){var d=this.ownerDocument || this,e=m._data(d,b);e || d.addEventListener(a,c,!0),m._data(d,b,(e || 0) + 1);},teardown:function teardown(){var d=this.ownerDocument || this,e=m._data(d,b) - 1;e?m._data(d,b,e):(d.removeEventListener(a,c,!0),m._removeData(d,b));}};}),m.fn.extend({on:function on(a,b,c,d,e){var f,g;if("object" == typeof a){"string" != typeof b && (c = c || b,b = void 0);for(f in a) this.on(f,b,c,a[f],e);return this;}if((null == c && null == d?(d = b,c = b = void 0):null == d && ("string" == typeof b?(d = c,c = void 0):(d = c,c = b,b = void 0)),d === !1))d = ba;else if(!d)return this;return 1 === e && (g = d,d = function(a){return m().off(a),g.apply(this,arguments);},d.guid = g.guid || (g.guid = m.guid++)),this.each(function(){m.event.add(this,a,d,c,b);});},one:function one(a,b,c,d){return this.on(a,b,c,d,1);},off:function off(a,b,c){var d,e;if(a && a.preventDefault && a.handleObj)return d = a.handleObj,m(a.delegateTarget).off(d.namespace?d.origType + "." + d.namespace:d.origType,d.selector,d.handler),this;if("object" == typeof a){for(e in a) this.off(e,b,a[e]);return this;}return (b === !1 || "function" == typeof b) && (c = b,b = void 0),c === !1 && (c = ba),this.each(function(){m.event.remove(this,a,c,b);});},trigger:function trigger(a,b){return this.each(function(){m.event.trigger(a,b,this);});},triggerHandler:function triggerHandler(a,b){var c=this[0];return c?m.event.trigger(a,b,c,!0):void 0;}});function da(a){var b=ea.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length) c.createElement(b.pop());return c;}var ea="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",fa=/ jQuery\d+="(?:null|\d+)"/g,ga=new RegExp("<(?:" + ea + ")[\\s/>]","i"),ha=/^\s+/,ia=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ja=/<([\w:]+)/,ka=/<tbody/i,la=/<|&#?\w+;/,ma=/<(?:script|style|link)/i,na=/checked\s*(?:[^=]|=\s*.checked.)/i,oa=/^$|\/(?:java|ecma)script/i,pa=/^true\/(.*)/,qa=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ra={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:k.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},sa=da(y),ta=sa.appendChild(y.createElement("div"));
5ra.optgroup = ra.option,ra.tbody = ra.tfoot = ra.colgroup = ra.caption = ra.thead,ra.th = ra.td;function ua(a,b){var c,d,e=0,f=typeof a.getElementsByTagName !== K?a.getElementsByTagName(b || "*"):typeof a.querySelectorAll !== K?a.querySelectorAll(b || "*"):void 0;if(!f)for(f = [],c = a.childNodes || a;null != (d = c[e]);e++) !b || m.nodeName(d,b)?f.push(d):m.merge(f,ua(d,b));return void 0 === b || b && m.nodeName(a,b)?m.merge([a],f):f;}function va(a){W.test(a.type) && (a.defaultChecked = a.checked);}function wa(a,b){return m.nodeName(a,"table") && m.nodeName(11 !== b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0] || a.appendChild(a.ownerDocument.createElement("tbody")):a;}function xa(a){return a.type = (null !== m.find.attr(a,"type")) + "/" + a.type,a;}function ya(a){var b=pa.exec(a.type);return b?a.type = b[1]:a.removeAttribute("type"),a;}function za(a,b){for(var c,d=0;null != (c = a[d]);d++) m._data(c,"globalEval",!b || m._data(b[d],"globalEval"));}function Aa(a,b){if(1 === b.nodeType && m.hasData(a)){var c,d,e,f=m._data(a),g=m._data(b,f),h=f.events;if(h){delete g.handle,g.events = {};for(c in h) for(d = 0,e = h[c].length;e > d;d++) m.event.add(b,c,h[c][d]);}g.data && (g.data = m.extend({},g.data));}}function Ba(a,b){var c,d,e;if(1 === b.nodeType){if((c = b.nodeName.toLowerCase(),!k.noCloneEvent && b[m.expando])){e = m._data(b);for(d in e.events) m.removeEvent(b,d,e.handle);b.removeAttribute(m.expando);}"script" === c && b.text !== a.text?(xa(b).text = a.text,ya(b)):"object" === c?(b.parentNode && (b.outerHTML = a.outerHTML),k.html5Clone && a.innerHTML && !m.trim(b.innerHTML) && (b.innerHTML = a.innerHTML)):"input" === c && W.test(a.type)?(b.defaultChecked = b.checked = a.checked,b.value !== a.value && (b.value = a.value)):"option" === c?b.defaultSelected = b.selected = a.defaultSelected:("input" === c || "textarea" === c) && (b.defaultValue = a.defaultValue);}}m.extend({clone:function clone(a,b,c){var d,e,f,g,h,i=m.contains(a.ownerDocument,a);if((k.html5Clone || m.isXMLDoc(a) || !ga.test("<" + a.nodeName + ">")?f = a.cloneNode(!0):(ta.innerHTML = a.outerHTML,ta.removeChild(f = ta.firstChild)),!(k.noCloneEvent && k.noCloneChecked || 1 !== a.nodeType && 11 !== a.nodeType || m.isXMLDoc(a))))for(d = ua(f),h = ua(a),g = 0;null != (e = h[g]);++g) d[g] && Ba(e,d[g]);if(b)if(c)for(h = h || ua(a),d = d || ua(f),g = 0;null != (e = h[g]);g++) Aa(e,d[g]);else Aa(a,f);return d = ua(f,"script"),d.length > 0 && za(d,!i && ua(a,"script")),d = h = e = null,f;},buildFragment:function buildFragment(a,b,c,d){for(var e,f,g,h,i,j,l,n=a.length,o=da(b),p=[],q=0;n > q;q++) if((f = a[q],f || 0 === f))if("object" === m.type(f))m.merge(p,f.nodeType?[f]:f);else if(la.test(f)){h = h || o.appendChild(b.createElement("div")),i = (ja.exec(f) || ["",""])[1].toLowerCase(),l = ra[i] || ra._default,h.innerHTML = l[1] + f.replace(ia,"<$1></$2>") + l[2],e = l[0];while(e--) h = h.lastChild;if((!k.leadingWhitespace && ha.test(f) && p.push(b.createTextNode(ha.exec(f)[0])),!k.tbody)){f = "table" !== i || ka.test(f)?"<table>" !== l[1] || ka.test(f)?0:h:h.firstChild,e = f && f.childNodes.length;while(e--) m.nodeName(j = f.childNodes[e],"tbody") && !j.childNodes.length && f.removeChild(j);}m.merge(p,h.childNodes),h.textContent = "";while(h.firstChild) h.removeChild(h.firstChild);h = o.lastChild;}else p.push(b.createTextNode(f));h && o.removeChild(h),k.appendChecked || m.grep(ua(p,"input"),va),q = 0;while(f = p[q++]) if((!d || -1 === m.inArray(f,d)) && (g = m.contains(f.ownerDocument,f),h = ua(o.appendChild(f),"script"),g && za(h),c)){e = 0;while(f = h[e++]) oa.test(f.type || "") && c.push(f);}return h = null,o;},cleanData:function cleanData(a,b){for(var d,e,f,g,h=0,i=m.expando,j=m.cache,l=k.deleteExpando,n=m.event.special;null != (d = a[h]);h++) if((b || m.acceptData(d)) && (f = d[i],g = f && j[f])){if(g.events)for(e in g.events) n[e]?m.event.remove(d,e):m.removeEvent(d,e,g.handle);j[f] && (delete j[f],l?delete d[i]:typeof d.removeAttribute !== K?d.removeAttribute(i):d[i] = null,c.push(f));}}}),m.fn.extend({text:function text(a){return V(this,function(a){return void 0 === a?m.text(this):this.empty().append((this[0] && this[0].ownerDocument || y).createTextNode(a));},null,a,arguments.length);},append:function append(){return this.domManip(arguments,function(a){if
5(1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType){var b=wa(this,a);b.appendChild(a);}});},prepend:function prepend(){return this.domManip(arguments,function(a){if(1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType){var b=wa(this,a);b.insertBefore(a,b.firstChild);}});},before:function before(){return this.domManip(arguments,function(a){this.parentNode && this.parentNode.insertBefore(a,this);});},after:function after(){return this.domManip(arguments,function(a){this.parentNode && this.parentNode.insertBefore(a,this.nextSibling);});},remove:function remove(a,b){for(var c,d=a?m.filter(a,this):this,e=0;null != (c = d[e]);e++) b || 1 !== c.nodeType || m.cleanData(ua(c)),c.parentNode && (b && m.contains(c.ownerDocument,c) && za(ua(c,"script")),c.parentNode.removeChild(c));return this;},empty:function empty(){for(var a,b=0;null != (a = this[b]);b++) {1 === a.nodeType && m.cleanData(ua(a,!1));while(a.firstChild) a.removeChild(a.firstChild);a.options && m.nodeName(a,"select") && (a.options.length = 0);}return this;},clone:function clone(a,b){return a = null == a?!1:a,b = null == b?a:b,this.map(function(){return m.clone(this,a,b);});},html:function html(a){return V(this,function(a){var b=this[0] || {},c=0,d=this.length;if(void 0 === a)return 1 === b.nodeType?b.innerHTML.replace(fa,""):void 0;if(!("string" != typeof a || ma.test(a) || !k.htmlSerialize && ga.test(a) || !k.leadingWhitespace && ha.test(a) || ra[(ja.exec(a) || ["",""])[1].toLowerCase()])){a = a.replace(ia,"<$1></$2>");try{for(;d > c;c++) b = this[c] || {},1 === b.nodeType && (m.cleanData(ua(b,!1)),b.innerHTML = a);b = 0;}catch(e) {}}b && this.empty().append(a);},null,a,arguments.length);},replaceWith:function replaceWith(){var a=arguments[0];return this.domManip(arguments,function(b){a = this.parentNode,m.cleanData(ua(this)),a && a.replaceChild(b,this);}),a && (a.length || a.nodeType)?this:this.remove();},detach:function detach(a){return this.remove(a,!0);},domManip:function domManip(a,b){a = e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,n=this,o=l - 1,p=a[0],q=m.isFunction(p);if(q || l > 1 && "string" == typeof p && !k.checkClone && na.test(p))return this.each(function(c){var d=n.eq(c);q && (a[0] = p.call(this,c,d.html())),d.domManip(a,b);});if(l && (i = m.buildFragment(a,this[0].ownerDocument,!1,this),c = i.firstChild,1 === i.childNodes.length && (i = c),c)){for(g = m.map(ua(i,"script"),xa),f = g.length;l > j;j++) d = i,j !== o && (d = m.clone(d,!0,!0),f && m.merge(g,ua(d,"script"))),b.call(this[j],d,j);if(f)for(h = g[g.length - 1].ownerDocument,m.map(g,ya),j = 0;f > j;j++) d = g[j],oa.test(d.type || "") && !m._data(d,"globalEval") && m.contains(h,d) && (d.src?m._evalUrl && m._evalUrl(d.src):m.globalEval((d.text || d.textContent || d.innerHTML || "").replace(qa,"")));i = c = null;}return this;}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){m.fn[a] = function(a){for(var c,d=0,e=[],g=m(a),h=g.length - 1;h >= d;d++) c = d === h?this:this.clone(!0),m(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e);};});var Ca,Da={};function Ea(b,c){var d,e=m(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle && (d = a.getDefaultComputedStyle(e[0]))?d.display:m.css(e[0],"display");return e.detach(),f;}function Fa(a){var b=y,c=Da[a];return c || (c = Ea(a,b),"none" !== c && c || (Ca = (Ca || m("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b = (Ca[0].contentWindow || Ca[0].contentDocument).document,b.write(),b.close(),c = Ea(a,b),Ca.detach()),Da[a] = c),c;}!(function(){var a;k.shrinkWrapBlocks = function(){if(null != a)return a;a = !1;var b,c,d;return c = y.getElementsByTagName("body")[0],c && c.style?(b = y.createElement("div"),d = y.createElement("div"),d.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom !== K && (b.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",b.appendChild(y.createElement("div")).style.width = "5px",a = 3 !== b.offsetWidth),c.removeChild(d),a):void 0;};})();var Ga=/^margin/,Ha=new RegExp("^(" + S + ")(?!px)[a-z%]+$","i"),Ia,Ja,Ka=/^(top|right|bottom|left)$/;a.getComputedStyle?(Ia = function(b){return b.ownerDocument.defaultView.opener?b.ownerDocument.defaultView.getComputedStyle(b,null):a.getComputedStyle(b,null);},Ja = function(a,b,c){var d,e,f,g,h=a.style;return c = c || Ia(a),g = c?c.getPropertyValue(b) || c[b]:void 0,c && ("" !== g || m.contains(a.ownerDocument,a) || (g = m.style(a,b)),Ha.test(g) && Ga.test(b) && (d = h.width,e = h.minWidth,f = h.maxWidth,h.minWidth = h.maxWidth = h.width = g,g = c.width,h.width = d,h.minWidth = e,h.maxWidth = f)),void 0 === g?g:g + "";}):y.documentElement.currentStyle && (Ia = function(a){return a.currentStyle;},Ja = function(a,b,c){var d,e,f,g,h=a.style;return c = c || Ia(a),g = c?c[b]:void 0,null == g && h && h[b] && (g = h[b]),Ha.test(g) && !Ka.test(b) && (d = h.left,e = a.runtimeStyle,f = e && e.left,f && (e.left = a.
5currentStyle.left),h.left = "fontSize" === b?"1em":g,g = h.pixelLeft + "px",h.left = d,f && (e.left = f)),void 0 === g?g:g + "" || "auto";});function La(a,b){return {get:function get(){var c=a();if(null != c)return c?void delete this.get:(this.get = b).apply(this,arguments);}};}!(function(){var b,c,d,e,f,g,h;if((b = y.createElement("div"),b.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d = b.getElementsByTagName("a")[0],c = d && d.style)){(function(){var i=function i(){var b,c,d,i;c = y.getElementsByTagName("body")[0],c && c.style && (b = y.createElement("div"),d = y.createElement("div"),d.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),b.style.cssText = "-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",e = f = !1,h = !0,a.getComputedStyle && (e = "1%" !== (a.getComputedStyle(b,null) || {}).top,f = "4px" === (a.getComputedStyle(b,null) || {width:"4px"}).width,i = b.appendChild(y.createElement("div")),i.style.cssText = b.style.cssText = "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight = i.style.width = "0",b.style.width = "1px",h = !parseFloat((a.getComputedStyle(i,null) || {}).marginRight),b.removeChild(i)),b.innerHTML = "<table><tr><td></td><td>t</td></tr></table>",i = b.getElementsByTagName("td"),i[0].style.cssText = "margin:0;border:0;padding:0;display:none",g = 0 === i[0].offsetHeight,g && (i[0].style.display = "",i[1].style.display = "none",g = 0 === i[0].offsetHeight),c.removeChild(d));};c.cssText = "float:left;opacity:.5",k.opacity = "0.5" === c.opacity,k.cssFloat = !!c.cssFloat,b.style.backgroundClip = "content-box",b.cloneNode(!0).style.backgroundClip = "",k.clearCloneStyle = "content-box" === b.style.backgroundClip,k.boxSizing = "" === c.boxSizing || "" === c.MozBoxSizing || "" === c.WebkitBoxSizing,m.extend(k,{reliableHiddenOffsets:function reliableHiddenOffsets(){return null == g && i(),g;},boxSizingReliable:function boxSizingReliable(){return null == f && i(),f;},pixelPosition:function pixelPosition(){return null == e && i(),e;},reliableMarginRight:function reliableMarginRight(){return null == h && i(),h;}});})();}})(),m.swap = function(a,b,c,d){var e,f,g={};for(f in b) g[f] = a.style[f],a.style[f] = b[f];e = c.apply(a,d || []);for(f in b) a.style[f] = g[f];return e;};var Ma=/alpha\([^)]*\)/i,Na=/opacity\s*=\s*([^)]*)/,Oa=/^(none|table(?!-c[ea]).+)/,Pa=new RegExp("^(" + S + ")(.*)$","i"),Qa=new RegExp("^([+-])=(" + S + ")","i"),Ra={position:"absolute",visibility:"hidden",display:"block"},Sa={letterSpacing:"0",fontWeight:"400"},Ta=["Webkit","O","Moz","ms"];function Ua(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase() + b.slice(1),d=b,e=Ta.length;while(e--) if((b = Ta[e] + c,b in a))return b;return d;}function Va(a,b){for(var c,d,e,f=[],g=0,h=a.length;h > g;g++) d = a[g],d.style && (f[g] = m._data(d,"olddisplay"),c = d.style.display,b?(f[g] || "none" !== c || (d.style.display = ""),"" === d.style.display && U(d) && (f[g] = m._data(d,"olddisplay",Fa(d.nodeName)))):(e = U(d),(c && "none" !== c || !e) && m._data(d,"olddisplay",e?c:m.css(d,"display"))));for(g = 0;h > g;g++) d = a[g],d.style && (b && "none" !== d.style.display && "" !== d.style.display || (d.style.display = b?f[g] || "":"none"));return a;}function Wa(a,b,c){var d=Pa.exec(b);return d?Math.max(0,d[1] - (c || 0)) + (d[2] || "px"):b;}function Xa(a,b,c,d,e){for(var f=c === (d?"border":"content")?4:"width" === b?1:0,g=0;4 > f;f += 2) "margin" === c && (g += m.css(a,c + T[f],!0,e)),d?("content" === c && (g -= m.css(a,"padding" + T[f],!0,e)),"margin" !== c && (g -= m.css(a,"border" + T[f] + "Width",!0,e))):(g += m.css(a,"padding" + T[f],!0,e),"padding" !== c && (g += m.css(a,"border" + T[f] + "Width",!0,e)));return g;}function Ya(a,b,c){var d=!0,e="width" === b?a.offsetWidth:a.offsetHeight,f=Ia(a),g=k.boxSizing && "border-box" === m.css(a,"boxSizing",!1,f);
5if(0 >= e || null == e){if((e = Ja(a,b,f),(0 > e || null == e) && (e = a.style[b]),Ha.test(e)))return e;d = g && (k.boxSizingReliable() || e === a.style[b]),e = parseFloat(e) || 0;}return e + Xa(a,b,c || (g?"border":"content"),d,f) + "px";}m.extend({cssHooks:{opacity:{get:function get(a,b){if(b){var c=Ja(a,"opacity");return "" === c?"1":c;}}}},cssNumber:{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":k.cssFloat?"cssFloat":"styleFloat"},style:function style(a,b,c,d){if(a && 3 !== a.nodeType && 8 !== a.nodeType && a.style){var e,f,g,h=m.camelCase(b),i=a.style;if((b = m.cssProps[h] || (m.cssProps[h] = Ua(i,h)),g = m.cssHooks[b] || m.cssHooks[h],void 0 === c))return g && "get" in g && void 0 !== (e = g.get(a,!1,d))?e:i[b];if((f = typeof c,"string" === f && (e = Qa.exec(c)) && (c = (e[1] + 1) * e[2] + parseFloat(m.css(a,b)),f = "number"),null != c && c === c && ("number" !== f || m.cssNumber[h] || (c += "px"),k.clearCloneStyle || "" !== c || 0 !== b.indexOf("background") || (i[b] = "inherit"),!(g && "set" in g && void 0 === (c = g.set(a,c,d))))))try{i[b] = c;}catch(j) {}}},css:function css(a,b,c,d){var e,f,g,h=m.camelCase(b);return b = m.cssProps[h] || (m.cssProps[h] = Ua(a.style,h)),g = m.cssHooks[b] || m.cssHooks[h],g && "get" in g && (f = g.get(a,!0,c)),void 0 === f && (f = Ja(a,b,d)),"normal" === f && b in Sa && (f = Sa[b]),"" === c || c?(e = parseFloat(f),c === !0 || m.isNumeric(e)?e || 0:f):f;}}),m.each(["height","width"],function(a,b){m.cssHooks[b] = {get:function get(a,c,d){return c?Oa.test(m.css(a,"display")) && 0 === a.offsetWidth?m.swap(a,Ra,function(){return Ya(a,b,d);}):Ya(a,b,d):void 0;},set:function set(a,c,d){var e=d && Ia(a);return Wa(a,c,d?Xa(a,b,d,k.boxSizing && "border-box" === m.css(a,"boxSizing",!1,e),e):0);}};}),k.opacity || (m.cssHooks.opacity = {get:function get(a,b){return Na.test((b && a.currentStyle?a.currentStyle.filter:a.style.filter) || "")?.01 * parseFloat(RegExp.$1) + "":b?"1":"";},set:function set(a,b){var c=a.style,d=a.currentStyle,e=m.isNumeric(b)?"alpha(opacity=" + 100 * b + ")":"",f=d && d.filter || c.filter || "";c.zoom = 1,(b >= 1 || "" === b) && "" === m.trim(f.replace(Ma,"")) && c.removeAttribute && (c.removeAttribute("filter"),"" === b || d && !d.filter) || (c.filter = Ma.test(f)?f.replace(Ma,e):f + " " + e);}}),m.cssHooks.marginRight = La(k.reliableMarginRight,function(a,b){return b?m.swap(a,{display:"inline-block"},Ja,[a,"marginRight"]):void 0;}),m.each({margin:"",padding:"",border:"Width"},function(a,b){m.cssHooks[a + b] = {expand:function expand(c){for(var d=0,e={},f="string" == typeof c?c.split(" "):[c];4 > d;d++) e[a + T[d] + b] = f[d] || f[d - 2] || f[0];return e;}},Ga.test(a) || (m.cssHooks[a + b].set = Wa);}),m.fn.extend({css:function css(a,b){return V(this,function(a,b,c){var d,e,f={},g=0;if(m.isArray(b)){for(d = Ia(a),e = b.length;e > g;g++) f[b[g]] = m.css(a,b[g],!1,d);return f;}return void 0 !== c?m.style(a,b,c):m.css(a,b);},a,b,arguments.length > 1);},show:function show(){return Va(this,!0);},hide:function hide(){return Va(this);},toggle:function toggle(a){return "boolean" == typeof a?a?this.show():this.hide():this.each(function(){U(this)?m(this).show():m(this).hide();});}});function Za(a,b,c,d,e){return new Za.prototype.init(a,b,c,d,e);}m.Tween = Za,Za.prototype = {constructor:Za,init:function init(a,b,c,d,e,f){this.elem = a,this.prop = c,this.easing = e || "swing",this.options = b,this.start = this.now = this.cur(),this.end = d,this.unit = f || (m.cssNumber[c]?"":"px");},cur:function cur(){var a=Za.propHooks[this.prop];return a && a.get?a.get(this):Za.propHooks._default.get(this);},run:function run(a){var b,c=Za.propHooks[this.prop];return this.options.duration?this.pos = b = m.easing[this.easing](a,this.options.duration * a,0,1,this.options.duration):this.pos = b = a,this.now = (this.end - this.start) * b + this.start,this.options.step && this.options.step.call(this.elem,this.now,this),c && c.set?c.set(this):Za.propHooks._default.set(this),this;}},Za.prototype.init.prototype = Za.prototype,Za.propHooks = {_default:{get:function get(a){var b;return null == a.elem[a.prop] || a.elem.style && null != a.elem.style[a.prop]?(b = m.css(a.elem,a.prop,""),b && "auto" !== b?b:0):a.elem[a.prop];}
5,set:function set(a){m.fx.step[a.prop]?m.fx.step[a.prop](a):a.elem.style && (null != a.elem.style[m.cssProps[a.prop]] || m.cssHooks[a.prop])?m.style(a.elem,a.prop,a.now + a.unit):a.elem[a.prop] = a.now;}}},Za.propHooks.scrollTop = Za.propHooks.scrollLeft = {set:function set(a){a.elem.nodeType && a.elem.parentNode && (a.elem[a.prop] = a.now);}},m.easing = {linear:function linear(a){return a;},swing:function swing(a){return .5 - Math.cos(a * Math.PI) / 2;}},m.fx = Za.prototype.init,m.fx.step = {};var $a,_a,ab=/^(?:toggle|show|hide)$/,bb=new RegExp("^(?:([+-])=|)(" + S + ")([a-z%]*)$","i"),cb=/queueHooks$/,db=[ib],eb={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=bb.exec(b),f=e && e[3] || (m.cssNumber[a]?"":"px"),g=(m.cssNumber[a] || "px" !== f && +d) && bb.exec(m.css(c.elem,a)),h=1,i=20;if(g && g[3] !== f){f = f || g[3],e = e || [],g = +d || 1;do h = h || ".5",g /= h,m.style(c.elem,a,g + f);while(h !== (h = c.cur() / d) && 1 !== h && --i);}return e && (g = c.start = +g || +d || 0,c.unit = f,c.end = e[1]?g + (e[1] + 1) * e[2]:+e[2]),c;}]};function fb(){return setTimeout(function(){$a = void 0;}),$a = m.now();}function gb(a,b){var c,d={height:a},e=0;for(b = b?1:0;4 > e;e += 2 - b) c = T[e],d["margin" + c] = d["padding" + c] = a;return b && (d.opacity = d.width = a),d;}function hb(a,b,c){for(var d,e=(eb[b] || []).concat(eb["*"]),f=0,g=e.length;g > f;f++) if(d = e[f].call(c,b,a))return d;}function ib(a,b,c){var d,e,f,g,h,i,j,l,n=this,o={},p=a.style,q=a.nodeType && U(a),r=m._data(a,"fxshow");c.queue || (h = m._queueHooks(a,"fx"),null == h.unqueued && (h.unqueued = 0,i = h.empty.fire,h.empty.fire = function(){h.unqueued || i();}),h.unqueued++,n.always(function(){n.always(function(){h.unqueued--,m.queue(a,"fx").length || h.empty.fire();});})),1 === a.nodeType && ("height" in b || "width" in b) && (c.overflow = [p.overflow,p.overflowX,p.overflowY],j = m.css(a,"display"),l = "none" === j?m._data(a,"olddisplay") || Fa(a.nodeName):j,"inline" === l && "none" === m.css(a,"float") && (k.inlineBlockNeedsLayout && "inline" !== Fa(a.nodeName)?p.zoom = 1:p.display = "inline-block")),c.overflow && (p.overflow = "hidden",k.shrinkWrapBlocks() || n.always(function(){p.overflow = c.overflow[0],p.overflowX = c.overflow[1],p.overflowY = c.overflow[2];}));for(d in b) if((e = b[d],ab.exec(e))){if((delete b[d],f = f || "toggle" === e,e === (q?"hide":"show"))){if("show" !== e || !r || void 0 === r[d])continue;q = !0;}o[d] = r && r[d] || m.style(a,d);}else j = void 0;if(m.isEmptyObject(o))"inline" === ("none" === j?Fa(a.nodeName):j) && (p.display = j);else {r?"hidden" in r && (q = r.hidden):r = m._data(a,"fxshow",{}),f && (r.hidden = !q),q?m(a).show():n.done(function(){m(a).hide();}),n.done(function(){var b;m._removeData(a,"fxshow");for(b in o) m.style(a,b,o[b]);});for(d in o) g = hb(q?r[d]:0,d,n),d in r || (r[d] = g.start,q && (g.end = g.start,g.start = "width" === d || "height" === d?1:0));}}function jb(a,b){var c,d,e,f,g;for(c in a) if((d = m.camelCase(c),e = b[d],f = a[c],m.isArray(f) && (e = f[1],f = a[c] = f[0]),c !== d && (a[d] = f,delete a[c]),g = m.cssHooks[d],g && "expand" in g)){f = g.expand(f),delete a[d];for(c in f) c in a || (a[c] = f[c],b[c] = e);}else b[d] = e;}function kb(a,b,c){var d,e,f=0,g=db.length,h=m.Deferred().always(function(){delete i.elem;}),i=function i(){if(e)return !1;for(var b=$a || fb(),c=Math.max(0,j.startTime + j.duration - b),d=c / j.duration || 0,f=1 - d,g=0,i=j.tweens.length;i > g;g++) j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1 > f && i?c:(h.resolveWith(a,[j]),!1);},j=h.promise({elem:a,props:m.extend({},b),opts:m.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:$a || fb(),duration:c.duration,tweens:[],createTween:function createTween(b,c){var d=m.Tween(a,j.opts,b,c,j.opts.specialEasing[b] || j.opts.easing);return j.tweens.push(d),d;},stop:function stop(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e = !0;d > c;c++) j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this;}}),k=j.props;for(jb(k,j.opts.specialEasing);g > f;f++) if(d = db[f].call(j,a,k,j.opts))return d;return m.map(k,hb,j),m.isFunction(j.opts.start) && j.opts.start.call(a,j),m.fx.timer(m.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always);}m.Animation = m.extend(kb,{tweener:function tweener(a,b){m.isFunction(a)?(b = a,a = ["*"]):a = a.split(" ");for(var c,d=0,e=a.length;e > d;d++) c = a[d],eb[c] = eb[c] || [],eb[c].unshift(b);},prefilter:function prefilter(a,b){b?db.unshift(a):db.push(a);}}),m.speed = function(a,b,c){var d=a && "object" == typeof a?m.extend({},a):{complete:c || !c && b || m.isFunction(a) && a,duration:a,easing:c && b || b && !m.isFunction(b) && b};return d.duration = m.fx.off?0:"number" == typeof d.duration?d.duration:d.duration in m.fx.speeds?m.fx.speeds[d.duration]:m.fx.speeds._default,(null == d.queue || d.queue === !0) && (d.queue = "fx"),d.old = d.complete,d.complete = function(){m.isFunction(d.old) && d.old.call(this),d.queue && m.dequeue(this,d.queue);},d;},m.fn.extend({fadeTo:function fadeTo(a,b,c,d){return this.filter(U).css("opacity",0).show().end().animate({opacity:b},a,c,d);},animate:function animate(a,b,c,d){var e=m.isEmptyObject(a),f=m.speed(b,c,d),g=function g(){var b=kb(this,m.extend({},a),f);(e || m._data(this,"finish")) && b.stop(!0);};return g.finish = g,e || f.queue === !1?this.each(g):this.queue(f.queue,g);},stop:function stop(a,b,c){var d=function d(a){var b=a.stop;delete a.stop,b(c);};return "string" != typeof a && (c = b,b = a,a = void 0),b && a !== !1 && this.queue(a || "fx",[]),this.each(function(){var b=!0,e=null != a && a + "queueHooks",f=m.timers,g=m._data(this);if(e)g[e] && g[e].stop && d(g[e]);else for(e in g) g[e] && g[e].stop && cb.test(e) && d(g[e]);for(e = f.length;e--;) f[e].elem !== this || null != a && f[e].queue !== a || (f[e].anim.stop(c),b = !1,f.splice(e,1));(b || !c) && m.dequeue(this,a);});},finish:function finish(a){return a !== !1 && (a = a || "fx"),this.each(function(){var b,c=m._data(this),d=c[a + "queue"],e=c[a + "queueHooks"],f=m.timers,g=d?d.length:0;for(c.finish = !0,m.queue(this,a,[]),e && e.stop && e.stop.call(this,!0),b = f.length;b--;) f[b].elem === this && f[b].queue === a && (f[b].anim.stop(!0),f.splice(b,1));for(b = 0;g > b;b++) d[b] && d[b].finish && d[b].finish.call(this);delete c.finish;});}}),m.each(["toggle","show","hide"],function(a,b){var c=m.fn[b];m.fn[b] = function(a,d,e){return null == a || "boolean" == typeof a?c.apply(this,arguments):this.animate(gb(b,!0),a,d,e);};}),m.each({slideDown:gb("show"),slideUp:gb("hide"),slideToggle:gb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}}
5,function(a,b){m.fn[a] = function(a,c,d){return this.animate(b,a,c,d);};}),m.timers = [],m.fx.tick = function(){var a,b=m.timers,c=0;for($a = m.now();c < b.length;c++) a = b[c],a() || b[c] !== a || b.splice(c--,1);b.length || m.fx.stop(),$a = void 0;},m.fx.timer = function(a){m.timers.push(a),a()?m.fx.start():m.timers.pop();},m.fx.interval = 13,m.fx.start = function(){_a || (_a = setInterval(m.fx.tick,m.fx.interval));},m.fx.stop = function(){clearInterval(_a),_a = null;},m.fx.speeds = {slow:600,fast:200,_default:400},m.fn.delay = function(a,b){return a = m.fx?m.fx.speeds[a] || a:a,b = b || "fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop = function(){clearTimeout(d);};});},(function(){var a,b,c,d,e;b = y.createElement("div"),b.setAttribute("className","t"),b.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d = b.getElementsByTagName("a")[0],c = y.createElement("select"),e = c.appendChild(y.createElement("option")),a = b.getElementsByTagName("input")[0],d.style.cssText = "top:1px",k.getSetAttribute = "t" !== b.className,k.style = /top/.test(d.getAttribute("style")),k.hrefNormalized = "/a" === d.getAttribute("href"),k.checkOn = !!a.value,k.optSelected = e.selected,k.enctype = !!y.createElement("form").enctype,c.disabled = !0,k.optDisabled = !e.disabled,a = y.createElement("input"),a.setAttribute("value",""),k.input = "" === a.getAttribute("value"),a.value = "t",a.setAttribute("type","radio"),k.radioValue = "t" === a.value;})();var lb=/\r/g;m.fn.extend({val:function val(a){var b,c,d,e=this[0];{if(arguments.length)return d = m.isFunction(a),this.each(function(c){var e;1 === this.nodeType && (e = d?a.call(this,c,m(this).val()):a,null == e?e = "":"number" == typeof e?e += "":m.isArray(e) && (e = m.map(e,function(a){return null == a?"":a + "";})),b = m.valHooks[this.type] || m.valHooks[this.nodeName.toLowerCase()],b && "set" in b && void 0 !== b.set(this,e,"value") || (this.value = e));});if(e)return b = m.valHooks[e.type] || m.valHooks[e.nodeName.toLowerCase()],b && "get" in b && void 0 !== (c = b.get(e,"value"))?c:(c = e.value,"string" == typeof c?c.replace(lb,""):null == c?"":c);}}}),m.extend({valHooks:{option:{get:function get(a){var b=m.find.attr(a,"value");return null != b?b:m.trim(m.text(a));}},select:{get:function get(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one" === a.type || 0 > e,g=f?null:[],h=f?e + 1:d.length,i=0 > e?h:f?e:0;h > i;i++) if((c = d[i],!(!c.selected && i !== e || (k.optDisabled?c.disabled:null !== c.getAttribute("disabled")) || c.parentNode.disabled && m.nodeName(c.parentNode,"optgroup")))){if((b = m(c).val(),f))return b;g.push(b);}return g;},set:function set(a,b){var c,d,e=a.options,f=m.makeArray(b),g=e.length;while(g--) if((d = e[g],m.inArray(m.valHooks.option.get(d),f) >= 0))try{d.selected = c = !0;}catch(h) {d.scrollHeight;}else d.selected = !1;return c || (a.selectedIndex = -1),e;}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this] = {set:function set(a,b){return m.isArray(b)?a.checked = m.inArray(m(a).val(),b) >= 0:void 0;}},k.checkOn || (m.valHooks[this].get = function(a){return null === a.getAttribute("value")?"on":a.value;});});var mb,nb,ob=m.expr.attrHandle,pb=/^(?:checked|selected)$/i,qb=k.getSetAttribute,rb=k.input;m.fn.extend({attr:function attr(a,b){return V(this,m.attr,a,b,arguments.length > 1);},removeAttr:function removeAttr(a){return this.each(function(){m.removeAttr(this,a);});}}),m.extend({attr:function attr(a,b,c){var d,e,f=a.nodeType;if(a && 3 !== f && 8 !== f && 2 !== f)return typeof a.getAttribute === K?m.prop(a,b,c):(1 === f && m.isXMLDoc(a) || (b = b.toLowerCase(),d = m.attrHooks[b] || (m.expr.match.bool.test(b)?nb:mb)),void 0 === c?d && "get" in d && null !== (e = d.get(a,b))?e:(e = m.find.attr(a,b),null == e?void 0:e):null !== c?d && "set" in d && void 0 !== (e = d.set(a,c,b))?e:(a.setAttribute(b,c + ""),c):void m.removeAttr(a,b));},removeAttr:function removeAttr(a,b){var c,d,e=0,f=b && b.match(E);if(f && 1 === a.nodeType)while(c = f[e++]) d = m.propFix[c] || c,m.expr.match.bool.test(c)?rb && qb || !pb.test(c)?a[d] = !1:a[m.camelCase("default-" + c)] = a[d] = !1:m.attr(a,c,""),a.removeAttribute(qb?c:d);},attrHooks:{type:{set:function set(a,b){if(!k.radioValue && "radio" === b && m.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c && (a.value = c),b;}}}}}),nb = {set:function set(a,b,c){return b === !1?m.removeAttr(a,c):rb && qb || !pb.test(c)?a.setAttribute(!qb && m.propFix[c] || c,c):a[m.camelCase("default-" + c)] = a[c] = !0,c;}},m.each(m.expr.match.bool.source.match(/\w+/g),function(a,b){var c=ob[b] || m.find.attr;ob[b] = rb && qb || !pb.test(b)?function(a,b,d){var e,f;return d || (f = ob[b],ob[b] = e,e = null != c(a,b,d)?b.toLowerCase():null,ob[b] = f),e;}:function(a,b,c){return c?void 0:a[m.camelCase("default-" + b)]?b.toLowerCase():null;};}),rb && qb || (m.attrHooks.value = {set:function set(a,b,c){return m.nodeName(a,"input")?void (a.defaultValue = b):mb && mb.set(a,b,c);}}),qb || (mb = {set:function set(a,b,c){var d=a.getAttributeNode(c);return d || a.setAttributeNode(d = a.ownerDocument.createAttribute(c)),d.value = b += "","value" === c || b === a.getAttribute(c)?b:void 0;}},ob.id = ob.name = ob.coords = function(a,b,c){var d;return c?void 0:(d = a.getAttributeNode(b)) && "" !== d.value?d.value:null;},m.valHooks.button = {get:function get(a,b){var c=a.getAttributeNode(b);return c && c.specified?c.value:void 0;},set:mb.set},m.attrHooks.contenteditable = {set:function set(a,b,c){mb.set(a,"" === b?!1:b,c);}},m.each(["width","height"],function(a,b){m.attrHooks[b] = {set:function set(a,c){return "" === c?(a.setAttribute(b,"auto"),c):void 0;}};})),k.style || (m.attrHooks.style = {get:function get(a){return a.style.cssText || void 0;},set:function set(a,b){return a.style.cssText = b + "";}});var sb=/^(?:input|select|textarea|button|object)$/i,tb=/^(?:a|area)$/i;m.fn.extend({prop:function prop(a,b){return V(this,m.prop,a,b,arguments.length > 1);},removeProp:function removeProp(a){return a = m.propFix[a] || a,this.each(function(){try{this[a] = void 0,delete this[a];}catch(b) {}});}}),m.extend({propFix:{"for":"htmlFor","class":"className"},prop:function prop(a,b,c){var d,e,f,g=a.nodeType;if(a && 3 !== g && 8 !== g && 2 !== g)return f = 1 !== g || !m.isXMLDoc(a),f && (b = m.propFix[b] || b,e = m.propHooks[b]),void 0 !== c?e && "set" in e && void 0 !== (d = e.set(a,c,b))?d:a[b] = c:e && "get" in e && null !== (d = e.get(a,b))?d:a[b];},propHooks:{tabIndex:{get:function get(a){var b=m.find.attr(a,"tabindex");return b?parseInt(b,10):sb.test(a.nodeName) || tb.test(a.nodeName) && a.href?0:-1;}}}}),k.hrefNormalized || m.each(["href","src"],function(a,b){m.propHooks[b] = {get:function get(a){return a.getAttribute(b,4);}};}),k.optSelected || (m.propHooks.selected = {get:function get(a){var b=a.parentNode;return b && (b.selectedIndex,b.parentNode && b.parentNode.selectedIndex),null;}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()] = this;}),k.enctype || (m.propFix.enctype = "encoding");var ub=/[\t\r\n\f]/g;m.fn.extend({addClass:function addClass(a){var b,c,d,e,f,g,h=0,i=this.length,j="string" == typeof a && a;
5if(m.isFunction(a))return this.each(function(b){m(this).addClass(a.call(this,b,this.className));});if(j)for(b = (a || "").match(E) || [];i > h;h++) if((c = this[h],d = 1 === c.nodeType && (c.className?(" " + c.className + " ").replace(ub," "):" "))){f = 0;while(e = b[f++]) d.indexOf(" " + e + " ") < 0 && (d += e + " ");g = m.trim(d),c.className !== g && (c.className = g);}return this;},removeClass:function removeClass(a){var b,c,d,e,f,g,h=0,i=this.length,j=0 === arguments.length || "string" == typeof a && a;if(m.isFunction(a))return this.each(function(b){m(this).removeClass(a.call(this,b,this.className));});if(j)for(b = (a || "").match(E) || [];i > h;h++) if((c = this[h],d = 1 === c.nodeType && (c.className?(" " + c.className + " ").replace(ub," "):""))){f = 0;while(e = b[f++]) while(d.indexOf(" " + e + " ") >= 0) d = d.replace(" " + e + " "," ");g = a?m.trim(d):"",c.className !== g && (c.className = g);}return this;},toggleClass:function toggleClass(a,b){var c=typeof a;return "boolean" == typeof b && "string" === c?b?this.addClass(a):this.removeClass(a):this.each(m.isFunction(a)?function(c){m(this).toggleClass(a.call(this,c,this.className,b),b);}:function(){if("string" === c){var b,d=0,e=m(this),f=a.match(E) || [];while(b = f[d++]) e.hasClass(b)?e.removeClass(b):e.addClass(b);}else (c === K || "boolean" === c) && (this.className && m._data(this,"__className__",this.className),this.className = this.className || a === !1?"":m._data(this,"__className__") || "");});},hasClass:function hasClass(a){for(var b=" " + a + " ",c=0,d=this.length;d > c;c++) if(1 === this[c].nodeType && (" " + this[c].className + " ").replace(ub," ").indexOf(b) >= 0)return !0;return !1;}}),m.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,b){m.fn[b] = function(a,c){return arguments.length > 0?this.on(b,null,a,c):this.trigger(b);};}),m.fn.extend({hover:function hover(a,b){return this.mouseenter(a).mouseleave(b || a);},bind:function bind(a,b,c){return this.on(a,null,b,c);},unbind:function unbind(a,b){return this.off(a,null,b);},delegate:function delegate(a,b,c,d){return this.on(b,a,c,d);},undelegate:function undelegate(a,b,c){return 1 === arguments.length?this.off(a,"**"):this.off(b,a || "**",c);}});var vb=m.now(),wb=/\?/,xb=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;m.parseJSON = function(b){if(a.JSON && a.JSON.parse)return a.JSON.parse(b + "");var c,d=null,e=m.trim(b + "");return e && !m.trim(e.replace(xb,function(a,b,e,f){return c && b && (d = 0),0 === d?a:(c = e || b,d += !f - !e,"");}))?Function("return " + e)():m.error("Invalid JSON: " + b);},m.parseXML = function(b){var c,d;if(!b || "string" != typeof b)return null;try{a.DOMParser?(d = new DOMParser(),c = d.parseFromString(b,"text/xml")):(c = new ActiveXObject("Microsoft.XMLDOM"),c.async = "false",c.loadXML(b));}catch(e) {c = void 0;}return c && c.documentElement && !c.getElementsByTagName("parsererror").length || m.error("Invalid XML: " + b),c;};var yb,zb,Ab=/#.*$/,Bb=/([?&])_=[^&]*/,Cb=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Db=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Eb=/^(?:GET|HEAD)$/,Fb=/^\/\//,Gb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Hb={},Ib={},Jb="*/".concat("*");try{zb = location.href;}catch(Kb) {zb = y.createElement("a"),zb.href = "",zb = zb.href;}yb = Gb.exec(zb.toLowerCase()) || [];
5function Lb(a){return function(b,c){"string" != typeof b && (c = b,b = "*");var d,e=0,f=b.toLowerCase().match(E) || [];if(m.isFunction(c))while(d = f[e++]) "+" === d.charAt(0)?(d = d.slice(1) || "*",(a[d] = a[d] || []).unshift(c)):(a[d] = a[d] || []).push(c);};}function Mb(a,b,c,d){var e={},f=a === Ib;function g(h){var i;return e[h] = !0,m.each(a[h] || [],function(a,h){var j=h(b,c,d);return "string" != typeof j || f || e[j]?f?!(i = j):void 0:(b.dataTypes.unshift(j),g(j),!1);}),i;}return g(b.dataTypes[0]) || !e["*"] && g("*");}function Nb(a,b){var c,d,e=m.ajaxSettings.flatOptions || {};for(d in b) void 0 !== b[d] && ((e[d]?a:c || (c = {}))[d] = b[d]);return c && m.extend(!0,a,c),a;}function Ob(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*" === i[0]) i.shift(),void 0 === e && (e = a.mimeType || b.getResponseHeader("Content-Type"));if(e)for(g in h) if(h[g] && h[g].test(e)){i.unshift(g);break;}if(i[0] in c)f = i[0];else {for(g in c) {if(!i[0] || a.converters[g + " " + i[0]]){f = g;break;}d || (d = g);}f = f || d;}return f?(f !== i[0] && i.unshift(f),c[f]):void 0;}function Pb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters) j[g.toLowerCase()] = a.converters[g];f = k.shift();while(f) if((a.responseFields[f] && (c[a.responseFields[f]] = b),!i && d && a.dataFilter && (b = a.dataFilter(b,a.dataType)),i = f,f = k.shift()))if("*" === f)f = i;else if("*" !== i && i !== f){if((g = j[i + " " + f] || j["* " + f],!g))for(e in j) if((h = e.split(" "),h[1] === f && (g = j[i + " " + h[0]] || j["* " + h[0]]))){g === !0?g = j[e]:j[e] !== !0 && (f = h[0],k.unshift(h[1]));break;}if(g !== !0)if(g && a["throws"])b = g(b);else try{b = g(b);}catch(l) {return {state:"parsererror",error:g?l:"No conversion from " + i + " to " + f};}}return {state:"success",data:b};}m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:zb,type:"GET",isLocal:Db.test(yb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Jb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":m.parseJSON,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function ajaxSetup(a,b){return b?Nb(Nb(a,m.ajaxSettings),b):Nb(m.ajaxSettings,a);},ajaxPrefilter:Lb(Hb),ajaxTransport:Lb(Ib),ajax:function ajax(a,b){"object" == typeof a && (b = a,a = void 0),b = b || {};var c,d,e,f,g,h,i,j,k=m.ajaxSetup({},b),l=k.context || k,n=k.context && (l.nodeType || l.jquery)?m(l):m.event,o=m.Deferred(),p=m.Callbacks("once memory"),q=k.statusCode || {},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function getResponseHeader(a){var b;if(2 === t){if(!j){j = {};while(b = Cb.exec(f)) j[b[1].toLowerCase()] = b[2];}b = j[a.toLowerCase()];}return null == b?null:b;},getAllResponseHeaders:function getAllResponseHeaders(){return 2 === t?f:null;},setRequestHeader:function setRequestHeader(a,b){var c=a.toLowerCase();return t || (a = s[c] = s[c] || a,r[a] = b),this;},overrideMimeType:function overrideMimeType(a){return t || (k.mimeType = a),this;},statusCode:function statusCode(a){var b;if(a)if(2 > t)for(b in a) q[b] = [q[b],a[b]];else v.always(a[v.status]);return this;},abort:function abort(a){var b=a || u;return i && i.abort(b),x(0,b),this;}};if((o.promise(v).complete = p.add,v.success = v.done,v.error = v.fail,k.url = ((a || k.url || zb) + "").replace(Ab,"").replace(Fb,yb[1] + "//"),k.type = b.method || b.type || k.method || k.type,k.dataTypes = m.trim(k.dataType || "*").toLowerCase().match(E) || [""],null == k.crossDomain && (c = Gb.exec(k.url.toLowerCase()),k.crossDomain = !(!c || c[1] === yb[1] && c[2] === yb[2] && (c[3] || ("http:" === c[1]?"80":"443")) === (yb[3] || ("http:" === yb[1]?"80":"443")))),k.data && k.processData && "string" != typeof k.data && (k.data = m.param(k.data,k.traditional)),Mb(Hb,k,b,v),2 === t))return v;
5h = m.event && k.global,h && 0 === m.active++ && m.event.trigger("ajaxStart"),k.type = k.type.toUpperCase(),k.hasContent = !Eb.test(k.type),e = k.url,k.hasContent || (k.data && (e = k.url += (wb.test(e)?"&":"?") + k.data,delete k.data),k.cache === !1 && (k.url = Bb.test(e)?e.replace(Bb,"$1_=" + vb++):e + (wb.test(e)?"&":"?") + "_=" + vb++)),k.ifModified && (m.lastModified[e] && v.setRequestHeader("If-Modified-Since",m.lastModified[e]),m.etag[e] && v.setRequestHeader("If-None-Match",m.etag[e])),(k.data && k.hasContent && k.contentType !== !1 || b.contentType) && v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0] && k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]] + ("*" !== k.dataTypes[0]?", " + Jb + "; q=0.01":""):k.accepts["*"]);for(d in k.headers) v.setRequestHeader(d,k.headers[d]);if(k.beforeSend && (k.beforeSend.call(l,v,k) === !1 || 2 === t))return v.abort();u = "abort";for(d in {success:1,error:1,complete:1}) v[d](k[d]);if(i = Mb(Ib,k,b,v)){v.readyState = 1,h && n.trigger("ajaxSend",[v,k]),k.async && k.timeout > 0 && (g = setTimeout(function(){v.abort("timeout");},k.timeout));try{t = 1,i.send(r,x);}catch(w) {if(!(2 > t))throw w;x(-1,w);}}else x(-1,"No Transport");function x(a,b,c,d){var j,r,s,u,w,x=b;2 !== t && (t = 2,g && clearTimeout(g),i = void 0,f = d || "",v.readyState = a > 0?4:0,j = a >= 200 && 300 > a || 304 === a,c && (u = Ob(k,v,c)),u = Pb(k,u,v,j),j?(k.ifModified && (w = v.getResponseHeader("Last-Modified"),w && (m.lastModified[e] = w),w = v.getResponseHeader("etag"),w && (m.etag[e] = w)),204 === a || "HEAD" === k.type?x = "nocontent":304 === a?x = "notmodified":(x = u.state,r = u.data,s = u.error,j = !s)):(s = x,(a || !x) && (x = "error",0 > a && (a = 0))),v.status = a,v.statusText = (b || x) + "",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q = void 0,h && n.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),h && (n.trigger("ajaxComplete",[v,k]),--m.active || m.event.trigger("ajaxStop")));}return v;},getJSON:function getJSON(a,b,c){return m.get(a,b,c,"json");},getScript:function getScript(a,b){return m.get(a,void 0,b,"script");}}),m.each(["get","post"],function(a,b){m[b] = function(a,c,d,e){return m.isFunction(c) && (e = e || d,d = c,c = void 0),m.ajax({url:a,type:b,dataType:e,data:c,success:d});};}),m._evalUrl = function(a){return m.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0});},m.fn.extend({wrapAll:function wrapAll(a){if(m.isFunction(a))return this.each(function(b){m(this).wrapAll(a.call(this,b));});if(this[0]){var b=m(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode && b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild && 1 === a.firstChild.nodeType) a = a.firstChild;return a;}).append(this);}return this;},wrapInner:function wrapInner(a){return this.each(m.isFunction(a)?function(b){m(this).wrapInner(a.call(this,b));}:function(){var b=m(this),c=b.contents();c.length?c.wrapAll(a):b.append(a);});},wrap:function wrap(a){var b=m.isFunction(a);return this.each(function(c){m(this).wrapAll(b?a.call(this,c):a);});},unwrap:function unwrap(){return this.parent().each(function(){m.nodeName(this,"body") || m(this).replaceWith(this.childNodes);}).end();}}),m.expr.filters.hidden = function(a){return a.offsetWidth <= 0 && a.offsetHeight <= 0 || !k.reliableHiddenOffsets() && "none" === (a.style && a.style.display || m.css(a,"display"));},m.expr.filters.visible = function(a){return !m.expr.filters.hidden(a);};var Qb=/%20/g,Rb=/\[\]$/,Sb=/\r?\n/g,Tb=/^(?:submit|button|image|reset|file)$/i,Ub=/^(?:input|select|textarea|keygen)/i;function Vb(a,b,c,d){var e;if(m.isArray(b))m.each(b,function(b,e){c || Rb.test(a)?d(a,e):Vb(a + "[" + ("object" == typeof e?b:"") + "]",e,c,d);});else if(c || "object" !== m.type(b))d(a,b);else for(e in b) Vb(a + "[" + e + "]",b[e],c,d);}m.param = function(a,b){var c,d=[],e=function e(a,b){b = m.isFunction(b)?b():null == b?"":b,d[d.length] = encodeURIComponent(a) + "=" + encodeURIComponent(b);};if((void 0 === b && (b = m.ajaxSettings && m.ajaxSettings.traditional),m.isArray(a) || a.jquery && !m.isPlainObject(a)))m.each(a,function(){e(this.name,this.value);});else for(c in a) Vb(c,a[c],b,e);return d.join("&").replace(Qb,"+");},m.fn.extend({serialize:function serialize(){return m.param(this.serializeArray());},serializeArray:function serializeArray(){return this.map(function(){var a=m.prop(this,"elements");return a?m.makeArray(a):this;}).filter(function(){var a=this.type;return this.name && !m(this).is(":disabled") && Ub.test(this.nodeName) && !Tb.test(a) && (this.checked || !W.test(a));}).map(function(a,b){var c=m(this).val();return null == c?null:m.isArray(c)?m.map(c,function(a){return {name:b.name,value:a.replace(Sb,"\r\n")};}):{name:b.name,value:c.replace(Sb,"\r\n")};}).get();}}),m.ajaxSettings.xhr = void 0 !== a.ActiveXObject?function(){return !this.isLocal && /^(get|post|head|put|delete|options)$/i.test(this.t
5ype) && Zb() || $b();}:Zb;var Wb=0,Xb={},Yb=m.ajaxSettings.xhr();a.attachEvent && a.attachEvent("onunload",function(){for(var a in Xb) Xb[a](void 0,!0);}),k.cors = !!Yb && "withCredentials" in Yb,Yb = k.ajax = !!Yb,Yb && m.ajaxTransport(function(a){if(!a.crossDomain || k.cors){var b;return {send:function send(c,d){var e,f=a.xhr(),g=++Wb;if((f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields))for(e in a.xhrFields) f[e] = a.xhrFields[e];a.mimeType && f.overrideMimeType && f.overrideMimeType(a.mimeType),a.crossDomain || c["X-Requested-With"] || (c["X-Requested-With"] = "XMLHttpRequest");for(e in c) void 0 !== c[e] && f.setRequestHeader(e,c[e] + "");f.send(a.hasContent && a.data || null),b = function(c,e){var h,i,j;if(b && (e || 4 === f.readyState))if((delete Xb[g],b = void 0,f.onreadystatechange = m.noop,e))4 !== f.readyState && f.abort();else {j = {},h = f.status,"string" == typeof f.responseText && (j.text = f.responseText);try{i = f.statusText;}catch(k) {i = "";}h || !a.isLocal || a.crossDomain?1223 === h && (h = 204):h = j.text?200:404;}j && d(h,i,j,f.getAllResponseHeaders());},a.async?4 === f.readyState?setTimeout(b):f.onreadystatechange = Xb[g] = b:b();},abort:function abort(){b && b(void 0,!0);}};}});function Zb(){try{return new a.XMLHttpRequest();}catch(b) {}}function $b(){try{return new a.ActiveXObject("Microsoft.XMLHTTP");}catch(b) {}}m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function textScript(a){return m.globalEval(a),a;}}}),m.ajaxPrefilter("script",function(a){void 0 === a.cache && (a.cache = !1),a.crossDomain && (a.type = "GET",a.global = !1);}),m.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=y.head || m("head")[0] || y.documentElement;return {send:function send(d,e){b = y.createElement("script"),b.async = !0,a.scriptCharset && (b.charset = a.scriptCharset),b.src = a.url,b.onload = b.onreadystatechange = function(a,c){(c || !b.readyState || /loaded|complete/.test(b.readyState)) && (b.onload = b.onreadystatechange = null,b.parentNode && b.parentNode.removeChild(b),b = null,c || e(200,"success"));},c.insertBefore(b,c.firstChild);},abort:function abort(){b && b.onload(void 0,!0);}};}});var _b=[],ac=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function jsonpCallback(){var a=_b.pop() || m.expando + "_" + vb++;return this[a] = !0,a;}}),m.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp !== !1 && (ac.test(b.url)?"url":"string" == typeof b.data && !(b.contentType || "").indexOf("application/x-www-form-urlencoded") && ac.test(b.data) && "data");return h || "jsonp" === b.dataTypes[0]?(e = b.jsonpCallback = m.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h] = b[h].replace(ac,"$1" + e):b.jsonp !== !1 && (b.url += (wb.test(b.url)?"&":"?") + b.jsonp + "=" + e),b.converters["script json"] = function(){return g || m.error(e + " was not called"),g[0];},b.dataTypes[0] = "json",f = a[e],a[e] = function(){g = arguments;},d.always(function(){a[e] = f,b[e] && (b.jsonpCallback = c.jsonpCallback,_b.push(e)),g && m.isFunction(f) && f(g[0]),g = f = void 0;}),"script"):void 0;}),m.parseHTML = function(a,b,c){if(!a || "string" != typeof a)return null;"boolean" == typeof b && (c = b,b = !1),b = b || y;var d=u.exec(a),e=!c && [];return d?[b.createElement(d[1])]:(d = m.buildFragment([a],b,e),e && e.length && m(e).remove(),m.merge([],d.childNodes));};var bc=m.fn.load;m.fn.load = function(a,b,c){if("string" != typeof a && bc)return bc.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h >= 0 && (d = m.trim(a.slice(h,a.length)),a = a.slice(0,h)),m.isFunction(b)?(c = b,b = void 0):b && "object" == typeof b && (f = "POST"),g.length > 0 && m.ajax({url:a,type:f,dataType:"html",data:b}).done(function(a){e = arguments,g.html(d?m("<div>").append(m.parseHTML(a)).find(d):a);}).complete(c && function(a,b){g.each(c,e || [a.responseText,b,a]);}),this;},m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){m.f
5n[b] = function(a){return this.on(b,a);};}),m.expr.filters.animated = function(a){return m.grep(m.timers,function(b){return a === b.elem;}).length;};var cc=a.document.documentElement;function dc(a){return m.isWindow(a)?a:9 === a.nodeType?a.defaultView || a.parentWindow:!1;}m.offset = {setOffset:function setOffset(a,b,c){var d,e,f,g,h,i,j,k=m.css(a,"position"),l=m(a),n={};"static" === k && (a.style.position = "relative"),h = l.offset(),f = m.css(a,"top"),i = m.css(a,"left"),j = ("absolute" === k || "fixed" === k) && m.inArray("auto",[f,i]) > -1,j?(d = l.position(),g = d.top,e = d.left):(g = parseFloat(f) || 0,e = parseFloat(i) || 0),m.isFunction(b) && (b = b.call(a,c,h)),null != b.top && (n.top = b.top - h.top + g),null != b.left && (n.left = b.left - h.left + e),"using" in b?b.using.call(a,n):l.css(n);}},m.fn.extend({offset:function offset(a){if(arguments.length)return void 0 === a?this:this.each(function(b){m.offset.setOffset(this,a,b);});var b,c,d={top:0,left:0},e=this[0],f=e && e.ownerDocument;if(f)return b = f.documentElement,m.contains(b,e)?(typeof e.getBoundingClientRect !== K && (d = e.getBoundingClientRect()),c = dc(f),{top:d.top + (c.pageYOffset || b.scrollTop) - (b.clientTop || 0),left:d.left + (c.pageXOffset || b.scrollLeft) - (b.clientLeft || 0)}):d;},position:function position(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return "fixed" === m.css(d,"position")?b = d.getBoundingClientRect():(a = this.offsetParent(),b = this.offset(),m.nodeName(a[0],"html") || (c = a.offset()),c.top += m.css(a[0],"borderTopWidth",!0),c.left += m.css(a[0],"borderLeftWidth",!0)),{top:b.top - c.top - m.css(d,"marginTop",!0),left:b.left - c.left - m.css(d,"marginLeft",!0)};}},offsetParent:function offsetParent(){return this.map(function(){var a=this.offsetParent || cc;while(a && !m.nodeName(a,"html") && "static" === m.css(a,"position")) a = a.offsetParent;return a || cc;});}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);m.fn[a] = function(d){return V(this,function(a,d,e){var f=dc(a);return void 0 === e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void (f?f.scrollTo(c?m(f).scrollLeft():e,c?e:m(f).scrollTop()):a[d] = e);},a,d,arguments.length,null);};}),m.each(["top","left"],function(a,b){m.cssHooks[b] = La(k.pixelPosition,function(a,c){return c?(c = Ja(a,b),Ha.test(c)?m(a).position()[b] + "px":c):void 0;});}),m.each({Height:"height",Width:"width"},function(a,b){m.each({padding:"inner" + a,content:b,"":"outer" + a},function(c,d){m.fn[d] = function(d,e){var f=arguments.length && (c || "boolean" != typeof d),g=c || (d === !0 || e === !0?"margin":"border");return V(this,function(b,c,d){var e;return m.isWindow(b)?b.document.documentElement["client" + a]:9 === b.nodeType?(e = b.documentElement,Math.max(b.body["scroll" + a],e["scroll" + a],b.body["offset" + a],e["offset" + a],e["client" + a])):void 0 === d?m.css(b,c,g):m.style(b,c,d,g);},b,f?d:void 0,f,null);};});}),m.fn.size = function(){return this.length;},m.fn.andSelf = m.fn.addBack,"function" == typeof define && define.amd && define("jquery",[],function(){return m;});var ec=a.jQuery,fc=a.$;return m.noConflict = function(b){return a.$ === m && (a.$ = fc),b && a.jQuery === m && (a.jQuery = ec),m;},typeof b === K && (a.jQuery = a.$ = m),m;}); /* @license 6 * jQuery.print, version 1.3.3 7 * (c) Sathvik Ponangi, Doers' Guild 8 * Licence: CC-By (http://creativecommons.org/licenses/by/3.0/) 9 *--------------------------------------------------------------------------*/(function($){"use strict"; // A nice closure for our definitions 10function getjQueryObject(string){ // Make string a vaild jQuery thing 11var jqObj=$("");try{jqObj = $(string).clone();}catch(e) {jqObj = $("<span />").html(string);}return jqObj;}function printFrame(frameWindow,timeout){ // Print the selected window/iframe 12var def=$.Deferred();try{setTimeout(function(){ // Fix for IE : Allow it to render the iframe 13frameWindow.focus();try{ // Fix for IE11 - printng the whole page instead of the iframe content 14if(!frameWindow.document.execCommand('print',false,null)){ // document.execCommand returns false if it failed -http://stackoverflow.com/a/21336448/937891 15frameWindow.print();}}catch(e) {frameWindow.print();}frameWindow.close();def.resolve();},timeout);}catch(err) {def.reject(err);}return def;}function printContentInNewWindow(content,timeout){ // Open a new window and print selected content 16var w=window.open();w.document.write(content);w.document.close();return printFrame(w,timeout);}function isNode(o){ /* http://stackoverflow.com/a/384380/937891 */return !!(typeof Node === "object"?o instanceof Node:o && typeof o === "object" && typeof o.nodeType === "number" && typeof o.nodeName === "string");}$.print = $.fn.print = function(){ // Print a given set of elements 17var options,$this,self=this; // console.log("Printing", this, arguments); 18if(self instanceof $){ // Get the node if it is a jQuery object 19self = self.get(0);}if(isNode(self)){ // If `this` is a HTML element, i.e. for 20// $(selector).print() 21$this = $(self);
21if(arguments.length > 0){options = arguments[0];}}else {if(arguments.length > 0){ // $.print(selector,options) 22$this = $(arguments[0]);if(isNode($this[0])){if(arguments.length > 1){options = arguments[1];}}else { // $.print(options) 23options = arguments[0];$this = $("html");}}else { // $.print() 24$this = $("html");}} // Default options 25var defaults={globalStyles:true,mediaPrint:false,stylesheet:null,noPrintSelector:".no-print",iframe:true,append:null,prepend:null,manuallyCopyFormValues:true,deferred:$.Deferred(),timeout:250}; // Merge with user-options 26options = $.extend({},defaults,options || {});var $styles=$("");if(options.globalStyles){ // Apply the stlyes from the current sheet to the printed page 27$styles = $("style, link, meta, title");}else if(options.mediaPrint){ // Apply the media-print stylesheet 28$styles = $("link[media=print]");}if(options.stylesheet){ // Add a custom stylesheet if given 29$styles = $.merge($styles,$('<link rel="stylesheet" href="' + options.stylesheet + '">'));} // Create a copy of the element to print 30var copy=$this.clone(); // Wrap it in a span to get the HTML markup string 31copy = $("<span/>").append(copy); // Remove unwanted elements 32copy.find(options.noPrintSelector).remove(); // Add in the styles 33copy.append($styles.clone()); // Appedned content 34copy.append(getjQueryObject(options.append)); // Prepended content 35copy.prepend(getjQueryObject(options.prepend));if(options.manuallyCopyFormValues){ // Manually copy form values into the HTML for printing user-modified input fields 36// http://stackoverflow.com/a/26707753 37copy.find("input").each(function(){var $field=$(this);if($field.is("[type='radio']") || $field.is("[type='checkbox']")){if($field.prop("checked")){$field.attr("checked","checked");}}else {$field.attr("value",$field.val());}});copy.find("select").each(function(){var $field=$(this);$field.find(":selected").attr("selected","selected");});copy.find("textarea").each(function(){ // Fix for https://github.com/DoersGuild/jQuery.print/issues/18#issuecomment-96451589 38var $field=$(this);$field.text($field.val());});} // Get the HTML markup string 39var content=copy.html(); // Notify with generated markup & cloned elements - useful for logging, etc 40try{options.deferred.notify('generated_markup',content,copy);}catch(err) {console.warn('Error notifying deferred',err);} // Destroy the copy 41copy.remove();if(options.iframe){ // Use an iframe for printing 42try{var $iframe=$(options.iframe + "");var iframeCount=$iframe.length;if(iframeCount === 0){ // Create a new iFrame if none is given 43$iframe = $('<iframe height="0" width="0" border="0" wmode="Opaque"/>').prependTo('body').css({"position":"absolute","top":-999,"left":-999});}var w,wdoc;w = $iframe.get(0);w = w.contentWindow || w.contentDocument || w;wdoc = w.document || w.contentDocument || w;wdoc.open();wdoc.write(content);wdoc.close();printFrame(w,options.timeout).done(function(){ // Success 44setTimeout(function(){ // Wait for IE 45if(iframeCount === 0){ // Destroy the iframe if created here 46$iframe.remove();}},100);}).fail(function(err){ // Use the pop-up method if iframe fails for some reason 47console.error("Failed to print from iframe",err);printContentInNewWindow(content,options.timeout);}).always(function(){try{options.deferred.resolve();}catch(err) {console.warn('Error notifying deferred',err);}});}catch(e) { // Use the pop-up method if iframe fails for some reason 48console.error("Failed to print from iframe",e.stack,e.message);printContentInNewWindow(content,options.timeout).always(function(){try{options.deferred.resolve();}catch(err) {console.warn('Error notifying deferred',err);}});}}else { // Use a new window for printing 49printContentInNewWindow(content,options.timeout).always(function(){try{options.deferred.resolve();}catch(err) {console.warn('Error notifying deferred',err);}});}return this;};})(jQuery);L.Icon.Default.imagePath = (function(){return "images/ui/";})();L.Control.ZoomMin = L.Control.Zoom.extend({options:{position:"topright",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"-",zoomOutTitle:"Zoom out",zoomMinText:"",zoomMinTitle:"Reset View"}
49,onAdd:function onAdd(map){var zoomName="leaflet-control-zoom",container=L.DomUtil.create("div",zoomName + " leaflet-bar"),options=this.options;this._map = map;this._zoomInButton = this._createButton(options.zoomInText,options.zoomInTitle,zoomName + '-in',container,this._zoomIn,this);this._zoomOutButton = this._createButton(options.zoomOutText,options.zoomOutTitle,zoomName + '-out',container,this._zoomOut,this);this._zoomMinButton = this._createButton(options.zoomMinText,options.zoomMinTitle,zoomName + '-min',container,this._zoomMin,this);this._updateDisabled();map.on('zoomend zoomlevelschange onMaxChange',this._updateDisabled,this);return container;},_zoomMin:function _zoomMin(){this._map.fire('onZoomMin'); /* 50 if (this.options.minBounds) { 51 return this._map.fitBounds(this.options.minBounds); 52 } 53 54 this._map.setZoom(this._map.getMinZoom()) 55 */},_updateDisabled:function _updateDisabled(){var map=this._map,className="leaflet-disabled";L.DomUtil.removeClass(this._zoomInButton,className);L.DomUtil.removeClass(this._zoomOutButton,className);L.DomUtil.removeClass(this._zoomMinButton,className);if(map._zoom === map.getMinZoom()){L.DomUtil.addClass(this._zoomOutButton,className);}if(map._zoom === map.getMaxZoom()){L.DomUtil.addClass(this._zoomInButton,className);}if(map._zoom === map.getMinZoom()){L.DomUtil.addClass(this._zoomMinButton,className);}}}); //'use strict'; 56function dtaMap(mapDiv,dataRef, mapVersions){ // initial display 57var pois,optionalZoomLevel,strOldView,mapPath='',tileFormat='';var mapPath='https://secure.cdn1.wdpromedia.com/media/dvc/en/map/';var tileFormat='images/tiles/{z}/{x}/{y}.jpg'; // if (window.location.href.indexOf('qa0') != -1 || window.location.protocol.indexOf('file:') != -1) { 58// // QA media: 59// mapPath = 'http://qn7prmedia01.starwave.com:8888/media/wdpro_v0101/dvc-evo-maps/'; 60// tileFormat = 'images/tiles/{z}/{x}/{y}.png' 61// } 62var regularPin=L.divIcon({html:'<img alt="Map Pin" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAAtCAYAAAAz8ULgAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2tpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo1M0ZEODY1RDY1MjE2ODExQTYxMzhFRjJDMTY4NzZGQyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpGNzI3QzA3QTY5REIxMUU1OTc2NEVFQTY2QTYxMTVFOCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpGNzI3QzA3OTY5REIxMUU1OTc2NEVFQTY2QTYxMTVFOCIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDplYTZiZGJlYS03MjY2LTQ4ZWItYjUwOS1iMzRhY2Q0Y2Q0NDciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NTNGRDg2NUQ2NTIxNjgxMUE2MTM4RUYyQzE2ODc2RkMiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz55TayTAAAI30lEQVR42rxZaWxU1xU+nnnj8TYzHm/YHq8wtlnMYuzWTREhqQMuwmqTKErbH1SoqEJqWsQPrFaV6J9U4i9SoYIKaCkqCKUSqmkgEQgHcLCIicFLQGAcL+MFL+PxePa933m+Ez1bNsx4oNc6ep737rvvu993zrnnvpe0d+9eSqSdP39+xfdGIpGY+klxAkpS/OT/lU+J0GtqUgyg2FQwNVt1dbUuOzs7Xa1WS6FQyDc4ODg7NDTkw7UQLCws8tpBKsAxME19fX1eYWFhpU6nK6+oqMgsKSkxpqamah0Oh7u7u/v5GJrdbv+2vb29H+e8CsCR1wJSAGTmNLW1tbkmk2ndrl27frh79+4fFRcXb9FoNLpFfhW2Wq3Purq62i5evNgBvA+uXbvWi0tRdiOvFKQAKLPX2Ni4Aaz94ODBg++bzea3ktDGnAFqfWqjZzY/uYNhykuTqGZVqmpbUXZlQ0NDJRj/8YULF85iIhktLS1fCaCBRIFKSzG4c+fO9XV1dTuam5t/ZzAYSnunvHS0fYK+GHLKT0tWq8iYoqZZb4h8oTDpklW0f3M2fVSbU7h///5muEMuGJauXLlyVwAMJgJUWhStmo0bN+Yzg4cPH/6IAf6jZ4b+dPu53GH3Gj29VZJBJQYNRcN8xBGgL4ad9NfOaWrps9O5phItVPi1x+PxI7D8V69e7RAAVyy9apHMWrCw9tChQ+9nZmaWn+2y0h9bxyg3VU0fv5lPP1tnoFXpavJBaq+wHFz7oMpAf8Z1Pv/uvwdoyB5QNTU1/aqmpmYrJr0q3lS3JEjBorR+/foCSP099sEHE24wOE6GFBX9ti6XDFo1uQKRZS0jWU0H0S+CvwOfDZNKktL37dvXhGCr4skLEhICycfk0tJS8549e95GjKg+vjNOoXAYLGUSXI5c/tBLTYWpcv9uTPCTx7NUXl6+raqqyoy8qhdsJiUKUgsfzMXMt34z7aH2UScVZEhUpNeQM
62xCK2Qp0EpXgnn/2TBMSPmeJ6srKyiL295WClIQ/SvBFw6ZNm/K1Wq3+du+U7OJl+mRy+MJxD1pm0FKbxUFzvhAVFRUVZ2RkZAomVSLJryi61Xq9XgcWeTCy2H2cpUkD/ea8wbhBIjtROBxB5PuJAUqSlJqI3FGQnKsxliQ795x/Plv4kQMd8v/xNU70fL8DTBqTk1N5nRcsrhikvE67XK6gzWZz88lspBVm0uYJzP8fZ7O5A/L9uWka8s56HX6/P7hSgFGQnGDDo6Ojrp6enolwOBysNKZI/JBxyJWXpol7UL5Pq04ik05DD59OjqHo8KzEFxfLHfahDQ8P26enp580rDZuwDPg+EGadPkoVRM7m15E+AwUaFyTSVpJRffu3XtksVisispoxSmIB/ChLpzq7Oz8Mj9DQx9uyJIlG5z1ycHj9L3cHOjH/fm+A7WraGZmpv/GjRsDIyMjtkQKDRW2D9F11ffo0aPRS5cudaI2tDRvM1EW/JGZGUG0OxgIgmg54yCxzPnIg/4frM+mN4p1kevXr/+HJ46xPaLISJhJP/zR8fDhw7HLly//Kz9dE/77uxWQOgmVTgiyB1D1BOZXl4DC8JvPT7r8WLtDcv8jO4oJEn916tSpLhTFFgXIhJZFZtMPcwHkwJkzZ3pxbPm+SUdHG8pk+TABQl0D6QOQNUBOb1A+8m8+z9fZc082mRHVUvA22sDAwDhnNHbVhKsgheQ8Y9uDBw8Gjh079tnU1NTjn2/MpR2lehlo1CLhedB8VJ4/UJdPjWYj3blz5+LJkycfYv8zwhMX/hhOlEkSgzCbTuTMCUTl6OnTp8/zZuvortUkqaKEL21lmVr6/fZigg/ePXLkyM22tranuGBXSB1JGKRgMyiksT958mQQlfUQWP3vamMK/WJj3gLWFtsf3iyBFgH78ePHPxEyz/CExcQT2j4omVQC/U72s2fPtnq9Xttv6k3ovDTAcrD4k7U5dP/+/U9v3br1HEFjESwm5ItLglTIzhsoF8BZ8eBJgP28HGy+vdq4pNS/rMmngN9nP3fuXBvy7ABOzvISnqjMy4JUBBGz4MBSaUHuvBsMBj0fVufJr0aUlgQMP12XS319fXd7e3tn4MM2RbC8kn236gXXmAU3S409tRUKdr5jzkKVnrRA6uq8dCrUo35sa7uPPhMC4Cvbcy8LUsGmnDtRfE
62xDxq/TsY95o0S/QOrtZZmEiczevHlzCMvfdDzRjPIwYSajbHqRViaxBj/hLWp9sWEBk1sKdWS1Wr/FUuoRfphQTowLpJJNNBekdKLeHKgz6RfEzeZ8GeQYcqtbMB93sIBRDcwAy4Flw1LjefX3Xe7kl1Mo44a3lJmrohhY/lJjKt34enLS7XZHgyVWX+RtbhYA8ZYlbQngPN4ggtP7QrkVeTM4hwafsxhQDxdkJMtSl2amzL/FGBmZxGVXjDUjv/BaC9sCK+a5LtOPz1cxy6oYZswPDczOzs719/eP8Yk1OWkyWeVZ86rAFWwA6X4Ji3zTJthWWK5QUa2wpGWK8qxYQMpsTkxMOFBvTvLviuy0+ZUGUvOrPyyDcyhw3cswyQD4LcZ2WL7Yf0uL7EVgg1KMTIY8Ho93fHzchaPVnJOewxfKs9IIvjiByEbJGYr6o7IVwDbzLjc6jjiqFv1WWvQ1d1gsKLZYXyTJUQ4wLpRv/VsLDTnM5KYCHSGYhpxoitTDD0CeolrB3FLgVDGA5QWhj5V6qdzK7QV873lHR8e9GpMh8pf3qqk6XxdGEm8VvuoXjG2DvQcrUcipidGiW2x+19gLgL54vj7IIB8/fjxy4sSJL5E3A2VlZaa/nWrpw7reDZAzIijKBDuRRUyFl2EwWhq6RVnH40wBXHAln0iiBfFca2trFxidMhqNGVguPWNjY7xOvqN4aERI5RbreBSAe5HJZVws33JiBRkRPseDR549e+YUeczEaRL2jagfo2D+P8vicn4pgHC9yH7IL++7YP2wCXHtlQKMGeQSQKPFhEe4wYrKstfy2U4AXfCJLpFvi7G2/wkwALlld6CLx23PAAAAAElFTkSuQmCC">', // 63// cb732b 64//iconUrl: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDY4NkIzN0ExMTM4MTFFNTkxNkU4RDMyQUM0ODFENkQiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDY4NkIzNzkxMTM4MTFFNTkxNkU4RDMyQUM0ODFENkQiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RjJGQ0JCRkVGMjhGMTFFNEFDNDVCMjVDM0E4QkYxQ0UiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RjJGQ0JCRkZGMjhGMTFFNEFDNDVCMjVDM0E4QkYxQ0UiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6yEyslAAAHuUlEQVR42qRXaWxT2RU+tp/t2PESZ4+dlWwzwWQISZQS0namLSCG0Uw7Go3UHyCkqBq10/KLSK2KKqT+qMTfQqUuiprSgtCoqA0BpgKxDIGICU2apaRMksliJ15ix/u+vH738Tx9KXhC2msd+b13l+/s51zZsWPHaLtx4cIFmeSVPfOSd367/TKef36NDEM8TA5SMLJarfqSkpJChULBZTKZxPLysn9lZSWBuQwoK9ILAbk8h7ODlT09PeVms7lFr9c3NDc3F9XW1po0Go06FApFp6ennesYgUDg87GxsUV8i0sA+ReCiACMc2VnZ2eZxWJ59dChQ71Hjhz5Rk1NzV6lUqmXboQGsl6vd2Fqamr00qVL48CbvHHjxiymctLxW9QlAgjcHz58eDe4/srJkyffbWpqep3NrYdTdGclTAu+JEXTWSrXctRRoaED1YWkVsgoHA6vX7x4cfDatWt3h4eHPxWBUjkgTirBwYMH27q6ur4+MDDwI6PRWDe7EadfjLnoLgDYapVCTqYCBfnjGUpksqRXyan/tRL6sLPU3N/fPwB1loFp7urVqw9FgDT750QbKPfs2VPJJDh16tSHDOD3M5v0s0+cgrhHGg30eq2Oao1KyrmZPZSiu6th+tWEh4bnAzT0Vq0aWvheLBZLwjGS169fHxeBMgrRLpru7u6OM2fO9MMW+wanvPTTuw6qKOToJ70VtN+iJR24zmR5SoukVcqprbSAesxaemCP0B9nffRmo1HWZW21PsXw+/12t9sdYSBMTVxbW1sVVNXNbDDpikICBxkL5PTDrjIyqhUUSfF5SadS0Ems4/H74ONVknNc4YkTJ96Cs7TibDWzNQNR1dXVNR09evQNmEf+8/sOcJyl91qLCMxTJJnZluTQIVs/DQY/mvNTQ0PDgdbW1ibElYEJwUDUsEEZkPf90xOjsbUwVek4qjYoKZzKvDRV6TmqxZ4/zHgIAcu81NrS0lLN7M3BI4zt7e2VarXa8MnshmCqeoOKQoks7XTUG9U0agtRMJGh6urqGp1OV8Qk4QwGgx5SsBeyBRIsykgJ+YPx9I5B4N2UhVPYQ0liABzHaQQQ2AHPHPMyCiafBWoSMRASnnc2WKCy/SFIYlKpNCzPsRjkIpFI2ufzRdmiEo1CkMQXSz173uHwRVPC/jKtkuL+eCiZTDJ1yLi1tbXIzMyMK5vNpltMBRxb5IC45Vi408H2sTRj0SvpH5+515E0YyxhcgmM1dXVgMfjefrNXabdWAPDpckdSZBG+fLSxOFhm9DA4cYiUsNpHz169MRms3lzwZhAXdiYmJh4UKlT0vu7iwWRl/0JwfjhxPYUwjq2nu37oLOCNjc3F2/durVkt9t9LFEKIE+ePFm7fPnyBGqDbeCAhYphD8aZHd4WYgfBCfIRM7ItmKAY1r/XVkL7a/T8zZs3/8oYx9lMXWmh6iFzsn8tgtLf172vt9uil/3lX16Kw1uiqSxyVRZZACzBPb+gDI+5jBATbF6DXHbh3VbadK1/evr06RGo6ynzBabJnNLlTqczjSIk7+joUHS11L1SWaiij+c3WXGiNA5MAJC5dirNnjPCO/vO5hWoFr99p5naK7TpkZGRy1euXJlCglzHuSGmri2WBQgfDAZDfX19jT0NZWXj9iCt+ONbWgahJ/ivSv797irq76yk+/fv/+ns2bOjKM2f4bNfVFdGIek4+FQqxcfjcTXc2dnb29vXVW3khiadlOXzNyT1RQX0u2+30ppt9SGq6Z8BNIfPHlAYlGTnyvln7QoLGsZyAKVgGZVtZXJycmSXqYC+u6dc8Jp89OOv1YLXVODcuXMfLS0tOXDGphSAxLJLEiAmng8AS4ODg3cgle8HPRYsejFAQ5Ga3n6llB4/fnzt3r17TsSFjTEqMpzZAiKOrNgARHC4FxvdAPtbA6R5Y5cpp9EtdLyjklLJRGBoaGgUcbYk2iGaq+25g+WSFocX0RkXIaQaG2LnYTqdjr1vLRcMLiUZznjn1TKan59/ODs7u4m6ztw1Iu1SngORDMZFlKkKPZUXGpj4VlMxqqRsi6qs5YVkNqB+jI4+xhqXCPBcz/UciEQaZrQIkqcHavh7Ier4/lrDFlV9tb6IwIj/9u3bK0gfnlx0v6hVlefxTMHbkBrcyEFPWYvTU2PcIsles57F1edIRTHRDinRrrQtiFQajAhUEUa9WeqyGLbY/bVKAWQd9SgqSp7O13Dnk+SL2GHNNcrA6l7zf9RViDamzqQh9FXuaDSaM3ZmRyCSuEkjzQShc5sR9axKpxJUVYcoF7pIu92N6Yikm6edSJKLmxQSXXBxcZElO2os1QrMNhRrhAVQpQ8g0S+TYjsQQRqXyxVCvXGz9+YS7bNIh6rY1QFpJIgCFf1/JcmggY47HI4I/r1NpYXCREOxlmALFzwrAc/L2YP+FxDKeRkOi2xsbCzuY8aHJO1VeoIzrOBeEpa47s7VJXHlBHTvHB8ff9RhMfK//I6VrJX6LILwjmir5HaScC8hSWJubs5+/vz5B4ibVH19veU3vx6eR16bBohDTCXZHd9+JfdIudj+60DFuFqYTSaTDjYKwH0dYg3P1Y68QNzx48dpGw9LiWmDX1hYCIt3y1y2jn1ZpOfGvwUYADID7IXwipFtAAAAAElFTkSuQmCC', 65//iconRetinaUrl: mapPath + 'images/ui/blue-marker-icon-2x.png', 66iconSize:[25,41],iconAnchor:[12,41], // centered above: 67popupAnchor:[1,-34],keyboard:true, //popupAnchor: [0, 0], 68shadowSize:[41,41],shadowUrl:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAYAAACoYAD2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i
6877u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjA2ODZCMzdEMTEzODExRTU5MTZFOEQzMkFDNDgxRDZEIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjA2ODZCMzdFMTEzODExRTU5MTZFOEQzMkFDNDgxRDZEIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MDY4NkIzN0IxMTM4MTFFNTkxNkU4RDMyQUM0ODFENkQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MDY4NkIzN0MxMTM4MTFFNTkxNkU4RDMyQUM0ODFENkQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4ZFjJ2AAABLklEQVR42uzY3wvBUBQHcHcIk/x4Ii8ULxLK//9vePEiT6R4sV+523xvHdJtmLZpck59u03ZPp2d3dVEGIaFvJdR+IFiJCMZyU
68hGMpKRjGQkIxnJSEYykpGMzH+Vkp5ACJHo/3G+Rf1HJxNWGXfCVKtqKmKjs04ekBWkg7QQM2J8LCwbYN37b0m/T34wkw2kjzSpawGtUSWRFWyXb3VSdWuEtAl2i3iBLVG391kji4QbPGB8DfoKK7OeyR4yR6oazoiJVfN4ygqp5m2JdJ/gjBhYD1ljHoO0kXVkgYzpOHiDi8Kqh2SHbAH0U9uC8GRXCTehc4XaxZ9hJd1SGzkjR+QAnExtMwdO7XUzZEob8a08urD1ALC1uNS52K/Fj/dJAGtYhlo3HEqQxbv7KsAApq6JJyvioFwAAAAASUVORK5CYII='}); // visually, nothing really. 69// shadowRetinaUrl: mapPath + 'images/ui/marker-shadow.png', 70var areaPin=L.divIcon({html:'',iconUrl:'',iconSize:[25,41],iconAnchor:[12,41], // centered above: 71popupAnchor:[1,-34],keyboard:true, //popupAnchor: [0, 0], 72shadowSize:[41,41],shadowUrl:'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAYAAACoYAD2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjA2ODZCMzdEMTEzODExRTU5MTZFOEQzMkFDNDgxRDZEIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjA2ODZCMzdFMTEzODExRTU5MTZFOEQzMkFDNDgxRDZEIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MDY4NkIzN0IxMTM4MTFFNTkxNkU4RDMyQUM0ODFENkQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MDY4NkIzN0MxMTM4MTFFNTkxNkU4RDMyQUM0ODFENkQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4ZFjJ2AAABLklEQVR42uzY3wvBUBQHcHcIk/x4Ii8ULxLK//9vePEiT6R4sV+523xvHdJtmLZpck59u03ZPp2d3dVEGIaFvJdR+IFiJCMZyU
72hGMpKRjGQkIxnJSEYykpGMzH+Vkp5ACJHo/3G+Rf1HJxNWGXfCVKtqKmKjs04ekBWkg7QQM2J8LCwbYN37b0m/T34wkw2kjzSpawGtUSWRFWyXb3VSdWuEtAl2i3iBLVG391kji4QbPGB8DfoKK7OeyR4yR6oazoiJVfN4ygqp5m2JdJ/gjBhYD1ljHoO0kXVkgYzpOHiDi8Kqh2SHbAH0U9uC8GRXCTehc4XaxZ9hJd1SGzkjR+QAnExtMwdO7XUzZEob8a08urD1ALC1uNS52K/Fj/dJAGtYhlo3HEqQxbv7KsAApq6JJyvioFwAAAAASUVORK5CYII='}); // shadowRetinaUrl: mapPath + 'images/ui/marker-shadow.png', 73var anchorPOI={};anchorPOI.name = "";anchorPOI.latLng = L.latLng(17.97873309555617,9.140625);anchorPOI.type = "";var globalmultipleGuestEntrance=[]; ////////////////////////////////////// BOUNDS 74// order of outlaying is important: wdw is zoom is higer than fla 75var objBounds={wdw:{bounds:L.latLngBounds(L.latLng(28.15616,-81.90857),L.latLng(28.60683,-81.21506)),tiles:'https://cdn6.parksmedia.wdprapps.disney.com/media/maps/prod/'+mapVersions.wdwMap+'/{z}/{x}/{y}.jpg',maxZoom:18},fla:{bounds:L.latLngBounds(L.latLng(27.3596,-83.5675),L.latLng(29.447,-79.933)),maxZoom:12},dlr:{bounds:L.latLngBounds(L.latLng(33.85281,-117.79198),L.latLng(33.77365,-117.99625)),tiles:'https://cdn6.parksmedia.wdprapps.disney.com/media/maps/prod/disneyland/'+mapVersions.dlrMap+'/{z}/{x}/{y}.jpg',maxZoom:16},socal:{bounds:L.latLngBounds(L.latLng(34.35477,-116.66382),L.latLng(33.5185,-118.78143)),maxZoom:14},paris:{bounds:L.latLngBounds(L.latLng(48.9234,2.94846),L.latLng(48.77248,2.58041)),tiles:'https://cdn6.parksmedia.wdprapps.disney.com/media/maps/prod/dlp/127/{z}/{x}/{y}.jpg',maxZoom:17},hkdl:{bounds:L.latLngBounds(L.latLng(22.27234,113.9647),L.latLng(22.36151,114.088)),tiles:'https://cdn6.parksmedia.wdprapps.disney.com/media/maps/prod/hkdl/27/{z}/{x}/{y}.jpg',maxZoom:17},hkarea:{bounds:L.latLngBounds(L.latLng(22.07164,113.3638),L.latLng(22.76732,114.4129)),maxZoom:13},normal:{bounds:L.latLngBounds(L.latLng(85,-180),L.latLng(-85,180)),tiles:mapPath + tileFormat,maxZoom:11}}; // creates thumbnail of map 76function createStaticMap(poi,noPin){var containerElement=document.getElementById(mapDiv);if(containerElement){createStaticMapExtend(poi,noPin,containerElement);}}function createStaticMapExtend(poi,noPin,containerElement){ // functionality for calling modal map. 77containerElement.addEventListener("click",requestMapModal);containerElement.style.cursor = "pointer";$(containerElement).addClass("map-height-bump");var ii=$(containerElement).children('img')[0];$(ii).addClass("map-height-inherit");globalmultipleGuestEntrance = poi.coordinates.multipleGuestEntrance; // data error, just show the world map 78if(!poi || noPin){anchorPOI.name = "";anchorPOI.type = areaPin;if(poi.coordinates){anchorPOI.latLng = L.latLng(globalmultipleGuestEntrance[0].gps.latitude,globalmultipleGuestEntrance[0].gps.longitude);}else { // defaulting to WDW Resort 79anchorPOI.latLng = L.latLng(28.383969,-81.5637940);optionalZoomLevel = 6;}}else {anchorPOI.type = regularPin;anchorPOI.name = poi.name;anchorPOI.latLng = L.latLng(globalmultipleGuestEntrance[0].gps.latitude,globalmultipleGuestEntrance[0].gps.longitude);}var tiles=L.tileLayer(mapPath + tileFormat,{maxZoom:16,attribution:'',detectRetina:false,reuseTiles:true,maxNativeZoom:16,noWrap:true,tileSize:256});var staticMap=new L.map(containerElement,{center:anchorPOI.latLng,zoom:12,zoomControl:false,minZoom:2,scrollWheelZoom:false,zoomAnimationThreshold:16,dragging:false,doubleClickZoom:false}); // create pin 80var marker=L.marker(anchorPOI.latLng,{name:anchorPOI.name,icon:anchorPOI.type,clickable:false}); // create pin 81var marker,markerTargetArea,targetZoom,newLatLng,fitBoundsArray=[];for(var i=0;i < globalmultipleGuestEntrance.length;i++) {newLatLng = L.latLng(globalmultipleGuestEntrance[i].gps.latitude,globalmultipleGuestEntrance[i].gps.longitude);marker = L.marker(newLatLng,{name:anchorPOI.name,icon:anchorPOI.type,clickable:false});fitBoundsArray.push([globalmultipleGuestEntrance[i].gps.latitude,globalmultipleGuestEntrance[i].gps.longitude]); // where the marker is, in whatever zone, name of area 82markerTargetArea = getContainingBounds(newLatLng);targetZoom = objBounds[markerTargetArea].maxZoom;if(objBounds[markerTargetArea].maxZoom >= 16)targetZoom = 16;staticMap.options.maxZoom = targetZoom;
82staticMap._layersMaxZoom = targetZoom;if(!optionalZoomLevel)optionalZoomLevel = objBounds[markerTargetArea].maxZoom;staticMap.setView(newLatLng,optionalZoomLevel);marker.addTo(staticMap);}checkView(staticMap,tiles,true);staticMap.addLayer(tiles);var bounds=new L.LatLngBounds(fitBoundsArray);staticMap.fitBounds(bounds);}function createLargeMap(divTarget){var mapContainerElement=document.getElementById(divTarget);if(mapContainerElement && !document.querySelector('#mapTarget .leaflet-layer')){createLargeMapExtend(mapContainerElement);}}function createLargeMapExtend(mapContainerElement){var tiles=L.tileLayer(mapPath + tileFormat,{maxZoom:20,attribution:'',detectRetina:false,reuseTiles:true,maxNativeZoom:20,noWrap:true});var largeMap=new L.map(mapContainerElement,{center:anchorPOI.latLng,zoom:2,zoomControl:false,minZoom:2,scrollWheelZoom:false,zoomAnimationThreshold:16,tap:false});var popupOptions={closeButton:false,className:'map-popup-preview-floater',maxWidth:500};L.control.scale({position:'bottomleft',metric:false}).addTo(largeMap);largeMap.addControl(new L.Control.ZoomMin());function createPois(largeMap){function getIconType(type){type = type.toLowerCase();var iconClassType='map-svg-icon map-icon-' + type;var iconType=L.divIcon({ // to be replaced when sorting what type via class 83//iconUrl: 'data:image/png;base64', 84html:'',iconSize:[25,25],iconAnchor:[0,25], // centered above: 85popupAnchor:[12,-22],keyboard:true,className:iconClassType});return iconType;}if(pois && pois.length){for(var i=0;i < pois.length;i++) {if(anchorPOI.name != pois[i].name){if(pois[i].coordinates){new L.marker([pois[i].coordinates.guestEntrance.gps.latitude,pois[i].coordinates.guestEntrance.gps.longitude],{name:pois[i].name,icon:getIconType(pois[i].type),clickable:true}).addTo(largeMap).bindPopup('<span class="map-popup-poi-preview">' + pois[i].name + '</span>',popupOptions);}}}}checkZoomPOIs();}largeMap.addEventListener("popupopen",function(event){event.popup.update();});function checkZoomPOIs(){if(largeMap.getZoom() <= 13){ // turn off resorts if zoomed out this much: 86//document.getElementsByClassName("map-svg-icon"); 87$(".map-icon-resort").css('visibility','hidden');}else {$(".map-icon-resort").css('visibility','visible');}if(largeMap.getZoom() <= 16){ // turn off resorts if zoomed out this much: 88//document.getElementsByClassName("map-svg-icon"); 89$(".map-icon-attraction").css('visibility','hidden');}else {$(".map-icon-attraction").css('visibility','visible');}if(largeMap.getZoom() <= 16){ // turn off resorts if zoomed out this much: 90//document.getElementsByClassName("map-svg-icon"); 91$(".map-icon-restaurant").css('visibility','hidden');}else {$(".map-icon-restaurant").css('visibility','visible');}}function showLargeMapPin(){var marker,newLatLng,markerTargetArea,themarker,fitBoundsArray=[],defaultZoomLevel=12;for(var j=0;j < globalmultipleGuestEntrance.length;j++) {fitBoundsArray.push([globalmultipleGuestEntrance[j].gps.latitude,globalmultipleGuestEntrance[j].gps.longitude]);newLatLng = L.latLng(globalmultipleGuestEntrance[j].gps.latitude,globalmultipleGuestEntrance[j].gps.longitude);marker = L.marker(newLatLng,{name:globalmultipleGuestEntrance[j].name,icon:anchorPOI.type,clickable:globalmultipleGuestEntrance[j].name?true:false});if(globalmultipleGuestEntrance[j].name){marker.bindPopup('<span class="map-popup-poi-preview">' + globalmultipleGuestEntrance[j].name + '</span>',popupOptions);}marker.addTo(largeMap);markerTargetArea = getContainingBounds(newLatLng); // //getMaxTargetZoom(latLng); 92if(!optionalZoomLevel)optionalZoomLevel = objBounds[markerTargetArea].maxZoom;largeMap.once("zoomend",function(){checkView(largeMap,tiles,true);largeMap.addLayer(tiles);marker.addTo(largeMap);themarker = document.getElementsByClassName("leaflet-div-icon"); // $(themarker).css({ "top": "-=500px" }); 93$(themarker).animate({ // top: "+=500" 94},400,function(){marker.fire("click");setTimeout(function(){createPois(largeMap);},500);}); // TweenLite.set(document.getElementsByClassName("leaflet-div-icon"), { 95// css: { 96// top: "-=300" 97// } 98// }); 99// TweenLite.to(document.getElementsByClassName("leaflet-div-icon"), 1, {
100// css: { 101// top: "0" 102// }, 103// ease: Bounce.easeOut, 104// delay: 0.3, 105// onComplete: function() { 106// marker.fire("click"); 107// setTimeout(function() { 108// createPois(map); 109// }, 500); 110// } 111// }); 112});if(!document.getElementById('mapTarget')){if(globalmultipleGuestEntrance.length > 1){largeMap.setView(newLatLng,{animate:true});}else {if(optionalZoomLevel < 1 || optionalZoomLevel > 17){largeMap.setView(newLatLng,defaultZoomLevel,{animate:true});}else {largeMap.setView(newLatLng,optionalZoomLevel,{animate:true});}}}else {if(globalmultipleGuestEntrance.length > 1){largeMap.setView(newLatLng,{animate:true});}else {largeMap.setView(newLatLng,optionalZoomLevel,{animate:true});}}largeMap.on('move',function(){checkView(largeMap,tiles);});largeMap.on('zoomend',checkZoomPOIs);largeMap.addEventListener('onZoomMin',function(){largeMap.setView(newLatLng,optionalZoomLevel);checkView(largeMap,tiles); // tiles.redraw(); 113});}var bounds=new L.LatLngBounds(fitBoundsArray);largeMap.fitBounds(bounds);}showLargeMapPin();}function printMap(){$("#mapTarget").print({globalStyles:true,mediaPrint:true,stylesheet:null,noPrintSelector:".no-print",iframe:true,append:null,prepend:null,manuallyCopyFormValues:true,deferred:$.Deferred(),timeout:250});}function requestMapModal(){var modalReady=false;function checkDataLoaded(bForce){if(pois && modalReady){createLargeMap('mapTarget');}if(bForce){createLargeMap('mapTarget');}}loadDataPOI(checkDataLoaded);var md1=$('<div>',{'id':'mapModalContainer'});var md2=$('<div>',{'id':'mapModal','class':'modalcorners'});var md3=$('<div>',{'id':'mapTarget','class':'modalcorners'});$('body').append(md1);$(md1).append(md2);var printDiv=$('<div>',{id:'modalPrintDiv',html:'<a href="#" id="printLink">Print</a>'});$(md2).append(printDiv);$('#printLink').click(printMap);var closeDiv=$('<div>',{id:'modalCloseDiv'});$(md2).append(closeDiv);$(md2).append(md3); // dimmed background 114$(md1).css({'height':$(document).height() + 'px','width':$(window).width() + 'px'}); // 'opacity': 0 115$(md1).fadeIn(); // TweenLite.set(md1, { 116// height: $(document).height(), 117// width: $(window).width(), 118// alpha: 0 119// }); 120// TweenLite.to(md1, 0.2, { 121// alpha: 1 122// }); 123$(md1).click(function(e){e.preventDefault();}); // TweenLite.set(md2, { 124// y: window.pageYOffset + 50 125// }); 126$(md2).css({'top':window.pageYOffset + 50 + 'px','opacity':'0'}); // TweenLite.from(md2, 0.3, { 127// scaleX: 0.4, 128// scaleY: 0.4, 129// onComplete: function() { 130// modalReady = true; 131// checkDataLoaded(); 132// } 133// }); 134setTimeout(function(){$(md2).animate({'opacity':'1'},400,function(){modalReady = true;checkDataLoaded();});},200);var respondSize=function respondSize(){ // dimmed background 135$(md1).css({'height':$(document).height() + 'px','width':$(window).width() + 'px'}); // TweenLite.set(md1, { 136// height: $(document).height(), 137// width: $(window).width() 138// }); 139if($(window).width() < 900){$(md2).removeClass("modalcorners");$(md3).removeClass("modalcorners");$(md3).css("width",$(window).width() - 20);}else {$(md2).addClass("modalcorners");$(md3).addClass("modalcorners");$(md3).css("width","100%");}};function closeModal(){$(window).unbind('resize',respondSize); // $("#mapModal").animate({ 140// 'transform': 'scale(0.5, 0.5)' 141// }, 300); 142$("#mapModalContainer").animate({'opacity':'0'},300,function(){$("#mapModalContainer").remove();}); // TweenLite.to("#mapModal", 0.3, { 143// scaleX: 0.5, 144// scaleY: 0.5 145// }); 146// TweenLite.to("#mapModalContainer", 0.3, { 147// alpha: 0, 148// onComplete: (function() { 149// $("#mapModalContainer").remove(); 150// }) 151// }); 152}closeDiv.on("click",closeModal);$(window).resize(respondSize); 153// TRADE-14491: eTools | Embed Content | Opening Map does not Anchor Correctly 154 if (window.location !== window.parent.location && (sessionStorage.getItem("type") === "embed-content")) { 155 // Only apply if embedded. 156 document.querySelector('#mapModalContainer').scrollIntoView(); 157 document.querySelector('body').classList.add('embedContent'); 158 } 159//-- 160}function getContainingBounds(targetLatLng){var strBounds='normal';for(var area in objBounds) {if(objBounds[area].bounds.contains(targetLatLng)){strBounds = area;break;}}return strBounds;}function checkView(map,tiles,forceCheck){var viewBounds=map.getBounds();var strNewView=getContainingBounds(viewBounds); // only change if difference detected. 161if(strOldView != strNewView || forceCheck === true){switch(strNewView){case 'dlr':tiles.setUrl(objBounds.dlr.tiles);break;case 'socal':if(strOldView != 'normal'){tiles.setUrl(objBounds.normal.tiles);}break;case 'wdw':tiles.setUrl(objBounds.wdw.tiles);break;case 'fla':if(strOldView != 'normal')tiles.setUrl(objBounds.normal.tiles);if(map.getZoom() >= 13){setTimeout(function(){map.setZoom(12);},20);}break;case 'paris':tiles.setUrl(objBounds.paris.tiles);break;case 'hkdl':tiles.setUrl(objBounds.hkdl.tiles);break;case 'hkarea': //if (strOldView != "normal") { 162tiles.setUrl(objBounds.normal.tiles); //} 163if(map.getZoom() >= 13){setTimeout(function(){map.fitBounds(objBounds.hkdl.bounds);},20);}break;case 'normal':tiles.setUrl(objBounds.normal.tiles);if(map.getZoom() >= 11){setTimeout(function(){map.setZoom(10);},20);}break;}map.fire('onMaxChange');strOldView = strNewView;}}function loadDataPOI(callback){$.get(dataRef).done(function(data){ // for a stub: 164// pois = JSON.parse(data); 165pois = data.results;callback();}).fail(function(){console.log("Failed loading data - trying backup");callback(true);});}this.showPOI = function(strName,objCoordinates,zoom){if(zoom)optionalZoomLevel = zoom;globalmultipleGuestEntrance = [objCoordinates.coordinates.multipleGuestEntrance[0]];return createStaticMap({"name":strName,"coordinates":objCoordinates.coordinates});};this.createPinThumbnail = function(strName,objCoordinates,zoom){if(zoom)optionalZoomLevel = zoom;globalmultipleGuestEntrance = [objCoordinates.coordinates.multipleGuestEntrance[0]];return createStaticMap({"name":strName,"coordinates":objCoordinates.coordinates});};this.createPinInteractive = function(strName,objCoordinates,zoom){if(zoom)optionalZoomLevel = zoom;anchorPOI.type = regularPin;anchorPOI.name = strName;globalmultipleGuestEntrance = [objCoordinates.coordinates.multipleGuestEntrance[0]];anchorPOI.latLng = L.latLng(globalmultipleGuestEntrance[0].gps.latitude,globalmultipleGuestEntrance[0].gps.longitude);return loadDataPOI(function(){createLargeMap(mapDiv);});};this.createAreaThumbnail = function(objCoordinates,zoom){if(zoom)optionalZoomLevel = zoom;globalmultipleGuestEntrance = [objCoordinates.coordinates.multipleGuestEntrance[0]];return createStaticMap({"coordinates":objCoordinates.coordinates},true);};this.createAreaInteractive = function(objCoordinates,zoom){if(zoom)optionalZoomLevel = zoom;globalmultipleGuestEntrance = [objCoordinates.coordinates.multipleGuestEntrance[0]];anchorPOI.latLng = L.latLng(globalmultipleGuestEntrance[0].gps.latitude,globalmultipleGuestEntrance[0].gps.longitude);anchorPOI.type = areaPin;return loadDataPOI(function(){createLargeMap(mapDiv);});};} 166
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.